/**
 * orb v1.0.7, Pivot grid javascript library.
 *
 * Copyright (c) 2014-2015 Najmeddine Nouri <devnajm@gmail.com>.
 *
 * @version v1.0.7
 * @link http://nnajm.github.io/orb/
 * @license MIT
 */

"use strict";!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.orb=e()}}(function(){return function e(t,n,r){function a(o,s){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(i)return i(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};t[o][0].call(c.exports,function(e){var n=t[o][1][e];return a(n?n:e)},c,c.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(e,t){t.exports.utils=e("./orb.utils"),t.exports.pgrid=e("./orb.pgrid"),t.exports.pgridwidget=e("./orb.ui.pgridwidget"),t.exports.query=e("./orb.query")},{"./orb.pgrid":7,"./orb.query":8,"./orb.ui.pgridwidget":13,"./orb.utils":15}],2:[function(e,t){function n(e,t,n,a){var i=0,o=0,s=("all"===t?n:t).length;return s>0&&(a||s>1?(r(e,t,n,function(e){o+=e}),o/=s,r(e,t,n,function(e){i+=(e-o)*(e-o)}),i/=a?s:s-1):i=0/0),i}function r(e,t,n,r){var a="all"===t;if(t=a?n:t,t.length>0)for(var i=0;i<t.length;i++)r((a?t[i]:n[t[i]])[e])}var a=t.exports={toAggregateFunc:function(e){return e?"string"==typeof e&&a[e]?a[e]:"function"==typeof e?e:a.sum:a.sum},count:function(e,t,n){return"all"===t?n.length:t.length},sum:function(e,t,n){var a=0;return r(e,t,n,function(e){a+=e}),a},min:function(e,t,n){var a=null;return r(e,t,n,function(e){(null==a||a>e)&&(a=e)}),a},max:function(e,t,n){var a=null;return r(e,t,n,function(e){(null==a||e>a)&&(a=e)}),a},avg:function(e,t,n){var a=0,i=("all"===t?n:t).length;return i>0&&(r(e,t,n,function(e){a+=e}),a/=i),a},prod:function(e,t,n){var a,i=("all"===t?n:t).length;return i>0&&(a=1,r(e,t,n,function(e){a*=e})),a},stdev:function(e,t,r){return Math.sqrt(n(e,t,r,!1))},stdevp:function(e,t,r){return Math.sqrt(n(e,t,r,!0))},"var":function(e,t,r){return n(e,t,r,!1)},varp:function(e,t,r){return n(e,t,r,!0)}}},{}],3:[function(e,t){var n=e("./orb.utils"),r=e("./orb.dimension"),a={COLUMNS:1,ROWS:2,DATA:3};t.exports=function(e,t){function i(e){for(var t=0;t<s.fields.length;t++)if(s.fields[t].name===e.name)return t;return-1}function o(){if(null!=s.pgrid.filteredDataSource&&s.dimensionsCount>0){var e=s.pgrid.filteredDataSource;if(null!=e&&n.isArray(e)&&e.length>0)for(var t=0,a=e.length;a>t;t++)for(var i=e[t],o=s.root,u=0;u<s.dimensionsCount;u++){var c=s.dimensionsCount-u,d=s.fields[u],p=i[d.name],h=o.subdimvals;void 0!==h[p]?o=h[p]:(o.values.push(p),o=new r(++l,o,p,d,c,!1,u==s.dimensionsCount-1),h[p]=o,o.rowIndexes=[],s.dimensionsByDepth[c].push(o)),o.rowIndexes.push(t)}}}var s=this,l=0;null!=e&&null!=e.config&&(this.pgrid=e,this.type=t,this.fields=function(){switch(t){case a.COLUMNS:return s.pgrid.config.columnFields;case a.ROWS:return s.pgrid.config.rowFields;case a.DATA:return s.pgrid.config.dataFields;default:return[]}}(),this.dimensionsCount=null,this.root=null,this.dimensionsByDepth=null,this.update=function(){s.dimensionsCount=s.fields.length,s.root=new r(++l,null,null,null,s.dimensionsCount+1,!0),s.dimensionsByDepth={};for(var e=1;e<=s.dimensionsCount;e++)s.dimensionsByDepth[e]=[];o();for(var t=0;t<s.fields.length;t++){var n=s.fields[t];("asc"===n.sort.order||"desc"===n.sort.order)&&s.sort(n,!0)}},this.sort=function(e,t){if(null!=e){t!==!0&&(e.sort.order="asc"!==e.sort.order?"asc":"desc");for(var n=s.dimensionsCount-i(e),r=n===s.dimensionsCount?[s.root]:s.dimensionsByDepth[n+1],a=0;a<r.length;a++)r[a].values.sort(),"desc"===e.sort.order&&r[a].values.reverse()}})},t.exports.Type=a},{"./orb.dimension":5,"./orb.utils":15}],4:[function(e,t){function n(e,t,n){for(var r=0;r<t.length;r++)if(null!=t[r][e])return t[r][e];return n}function r(){for(var e=[],t=[],r=[],a=[],i=0;i<arguments.length;i++){var o=arguments[i]||{};e.push(o),t.push(o.sort||{}),r.push(o.subTotal||{}),a.push({aggregateFuncName:o.aggregateFuncName,aggregateFunc:0===i?o.aggregateFunc:o.aggregateFunc?o.aggregateFunc():null,formatFunc:0===i?o.formatFunc:o.formatFunc?o.formatFunc():null})}return new h({name:n("name",e,""),caption:n("caption",e,""),sort:{order:n("order",t,null),customfunc:n("customfunc",t,null)},subTotal:{visible:n("visible",r,!0),collapsible:n("collapsible",r,!0),collapsed:n("collapsed",r,!1)},aggregateFuncName:n("aggregateFuncName",a,"sum"),aggregateFunc:n("aggregateFunc",a,null),formatFunc:n("formatFunc",a,null)},!1)}function a(e,t,n,a){var i;if(a)switch(t){case u.Type.ROWS:i=a.rowSettings;break;case u.Type.COLUMNS:i=a.columnSettings;break;case u.Type.DATA:i=a.dataSettings;break;default:i=null}else i=null;return r(n,i,a,e)}function i(e){e=e||{},this.rowsvisible=void 0!==e.rowsvisible?e.rowsvisible:!0,this.columnsvisible=void 0!==e.columnsvisible?e.columnsvisible:!0}function o(e,t){var n={visible:t===!0?!0:void 0,collapsible:t===!0?!0:void 0,collapsed:t===!0?!1:void 0};e=e||{},this.visible=void 0!==e.visible?e.visible:n.visible,this.collapsible=void 0!==e.collapsible?e.collapsible:n.collapsible,this.collapsed=void 0!==e.collapsed?e.collapsed:n.collapsed}function s(e){e=e||{},this.order=e.order,this.customfunc=e.customfunc}var l=e("./orb.utils"),u=e("./orb.axe"),c=e("./orb.aggregation"),d=e("./orb.filtering"),p=e("./orb.themes"),h=t.exports.field=function(e,t){function n(e){return e?e.toString():""}e=e||{},this.name=e.name,this.caption=e.caption||this.name,this.sort=new s(e.sort),this.subTotal=new o(e.subTotal);var r,a;this.aggregateFunc=function(e){return e?void(r=c.toAggregateFunc(e)):r},this.formatFunc=function(e){return e?void(a=e):a},this.aggregateFuncName=e.aggregateFuncName||(e.aggregateFunc&&l.isString(e.aggregateFunc)?e.aggregateFunc:null),this.aggregateFunc(e.aggregateFunc||"sum"),this.formatFunc(e.formatFunc||n),t!==!1&&((this.rowSettings=new h(e.rowSettings,!1)).name=this.name,(this.columnSettings=new h(e.columnSettings,!1)).name=this.name,(this.dataSettings=new h(e.dataSettings,!1)).name=this.name)};t.exports.config=function(e){function t(e){return"string"==typeof e?{name:s.captionToName(e)}:e}function n(e,t){var n=r(e,t);return n>-1?e[n]:null}function r(e,t){for(var n=0;n<e.length;n++)if(e[n].name===t)return n;return-1}var s=this;this.dataSource=e.dataSource||[],this.dataHeadersLocation="columns"===e.dataHeadersLocation?"columns":"rows",this.grandTotal=new i(e.grandTotal),this.subTotal=new o(e.subTotal,!0),this.width=e.width,this.height=e.height,this.showToolbar=e.showToolbar||!1,this.theme=p,p.current(e.theme),this.dataSourceFieldNames=[],this.dataSourceFieldCaptions=[],this.captionToName=function(e){var t=s.dataSourceFieldCaptions.indexOf(e);return t>=0?s.dataSourceFieldNames[t]:e},this.nameToCaption=function(e){var t=s.dataSourceFieldNames.indexOf(e);return t>=0?s.dataSourceFieldCaptions[t]:e},this.setTheme=function(e){return s.theme.current()!==s.theme.current(e)},this.allFields=(e.fields||[]).map(function(e){var t=new h(e);return s.dataSourceFieldNames.push(t.name),s.dataSourceFieldCaptions.push(t.caption),t}),this.rowFields=(e.rows||[]).map(function(e){return e=t(e),a(s,u.Type.ROWS,e,n(s.allFields,e.name))}),this.columnFields=(e.columns||[]).map(function(e){return e=t(e),a(s,u.Type.COLUMNS,e,n(s.allFields,e.name))}),this.dataFields=(e.data||[]).map(function(e){return e=t(e),a(s,u.Type.DATA,e,n(s.allFields,e.name))}),this.dataFieldsCount=this.dataFields?this.dataFields.length||1:1,this.getField=function(e){return n(s.allFields,e)},this.getRowField=function(e){return n(s.rowFields,e)},this.getColumnField=function(e){return n(s.columnFields,e)},this.getDataField=function(e){return n(s.dataFields,e)},this.availablefields=function(){return s.allFields.filter(function(e){var t=function(t){return e.name!==t.name};return s.dataFields.every(t)&&s.rowFields.every(t)&&s.columnFields.every(t)})},this.getDataSourceFieldCaptions=function(){var e;if(s.dataSource&&(e=s.dataSource[0])){for(var t=l.ownProperties(e),n=[],r=0;r<t.length;r++)n.push(s.nameToCaption(t[r]));return n}return null},this.getPreFilters=function(){var t={};return e.preFilters&&l.ownProperties(e.preFilters).forEach(function(n){var r=e.preFilters[n];if(l.isArray(r))t[s.captionToName(n)]=new d.expressionFilter(null,null,r,!1);else{var a=l.ownProperties(r)[0];a&&(t[s.captionToName(n)]=new d.expressionFilter(a,r[a]))}}),t},this.moveField=function(e,t,i,o){var l,c,d,p=n(s.allFields,e);if(p){switch(t){case u.Type.ROWS:l=s.rowFields;break;case u.Type.COLUMNS:l=s.columnFields;break;case u.Type.DATA:l=s.dataFields}switch(i){case u.Type.ROWS:d=s.rowFields;break;case u.Type.COLUMNS:d=s.columnFields;break;case u.Type.DATA:d=s.dataFields}if(l||d){if(l){if(c=r(l,e),t===i&&(c==l.length-1&&null==o||c===o-1))return!1;l.splice(c,1)}return p=a(s,i,null,p),d&&(null!=o?d.splice(o,0,p):d.push(p)),s.dataFieldsCount=s.dataFields?s.dataFields.length||1:1,!0}}}}},{"./orb.aggregation":2,"./orb.axe":3,"./orb.filtering":6,"./orb.themes":10,"./orb.utils":15}],5:[function(e,t){t.exports=function(e,t,n,r,a,i,o){var s=this;this.id=e,this.parent=t,this.value=n,this.isRoot=i,this.isLeaf=o,this.field=r,this.depth=a,this.values=[],this.subdimvals={},this.rowIndexes=null,this.getRowIndexes=function(e){if(null==s.rowIndexes){s.rowIndexes=[];for(var t=0;t<s.values.length;t++)s.subdimvals[s.values[t]].getRowIndexes(s.rowIndexes)}if(null!=e){for(var n=0;n<s.rowIndexes.length;n++)e.push(s.rowIndexes[n]);return e}return s.rowIndexes}}},{}],6:[function(e,t){var n=e("./orb.utils"),r=t.exports={ALL:"#All#",NONE:"#None#",BLANK:'#Blank#"'};r.expressionFilter=function(e,t,i,o){var s=this;this.operator=a.get(e),this.regexpMode=!1,this.term=t||null,this.term&&this.operator&&this.operator.regexpSupported&&n.isRegExp(this.term)&&(this.regexpMode=!0,this.term.ignoreCase||(this.term=new RegExp(this.term.source,"i"))),this.staticValue=i,this.excludeStatic=o,this.test=function(e){if(n.isArray(s.staticValue)){var t=s.staticValue.indexOf(e)>=0;return s.excludeStatic&&!t||!s.excludeStatic&&t}return s.term?s.operator.func(e,s.term):s.staticValue===!0||s.staticValue===r.ALL?!0:s.staticValue===!1||s.staticValue===r.NONE?!1:!0},this.isAlwaysTrue=function(){return!(s.term||n.isArray(s.staticValue)||s.staticValue===r.NONE||s.staticValue===!1)}};var a=r.Operators={get:function(e){switch(e){case a.MATCH.name:return a.MATCH;case a.NOTMATCH.name:return a.NOTMATCH;case a.EQ.name:return a.EQ;case a.NEQ.name:return a.NEQ;case a.GT.name:return a.GT;case a.GTE.name:return a.GTE;case a.LT.name:return a.LT;case a.LTE.name:return a.LTE;default:return a.NONE}},NONE:null,MATCH:{name:"Matches",func:function(e,t){return e?e.toString().search(n.isRegExp(t)?t:new RegExp(t,"i"))>=0:!t},regexpSupported:!0},NOTMATCH:{name:"Does Not Match",func:function(e,t){return e?e.toString().search(n.isRegExp(t)?t:new RegExp(t,"i"))<0:!!t},regexpSupported:!0},EQ:{name:"=",func:function(e,t){return e==t},regexpSupported:!1},NEQ:{name:"<>",func:function(e,t){return e!=t},regexpSupported:!1},GT:{name:">",func:function(e,t){return e>t},regexpSupported:!1},GTE:{name:">=",func:function(e,t){return e>=t},regexpSupported:!1},LT:{name:"<",func:function(e,t){return t>e},regexpSupported:!1},LTE:{name:"<=",func:function(e,t){return t>=e},regexpSupported:!1}}},{"./orb.utils":15}],7:[function(e,t){var n=e("./orb.axe"),r=e("./orb.config").config,a=e("./orb.filtering"),i=e("./orb.query"),o=e("./orb.utils");t.exports=function(e){function t(e){e!==!1&&s(),h.rows.update(),h.columns.update(),c()}function s(){var e=o.ownProperties(h.filters);if(e.length>0){h.filteredDataSource=[];for(var t=0;t<h.config.dataSource.length;t++){for(var n=h.config.dataSource[t],r=!1,a=0;a<e.length;a++){var i=e[a],s=h.filters[i];if(s&&!s.test(n[i])){r=!0;break}}r||h.filteredDataSource.push(n)}}else h.filteredDataSource=h.config.dataSource}function l(e,t,n,r,a){var i={};if(h.config.dataFieldsCount>0){var o;if(null==e)o=t;else if(null==t)o=e;else{o=[];for(var s=0;s<e.length;s++){var l=e[s];if(l>=0){var u=t.indexOf(l);u>=0&&(e[s]=0-(l+2),o.push(l))}}}var c,d=(h.filteredDataSource,[]);if(r)for(var g=0;g<r.length;g++)c=h.config.getDataField(r[g]),a||(c?a=c.aggregateFunc():(c=h.config.getField(r[g]),c&&(a=c.dataSettings?c.dataSettings.aggregateFunc():c.aggregateFunc()))),c&&a&&d.push({field:c,aggregateFunc:a});else for(var f=0;f<h.config.dataFieldsCount;f++)c=h.config.dataFields[f]||p,(a||c.aggregateFunc)&&d.push({field:c,aggregateFunc:a||c.aggregateFunc()});for(var m=0;m<d.length;m++)c=d[m],i[c.field.name]=c.aggregateFunc(c.field.name,o||"all",h.filteredDataSource,n||e,t)}return i}function u(e){if(e){var t={},n="r"+e.id;if(void 0===d[n]&&(d[n]=e.isRoot?null:d[e.parent.id]||e.getRowIndexes()),t[h.columns.root.id]=l(e.isRoot?null:d[n].slice(0),null),h.columns.dimensionsCount>0)for(var r=0,a=[h.columns.root];r<a.length;){for(var i=a[r],o=e.isRoot?null:i.isRoot?d[n].slice(0):d["c"+i.id].slice(0),s=0;s<i.values.length;s++){var u=i.subdimvals[i.values[s]],c="c"+u.id;if(void 0===d[c]&&(d[c]=d[c]||u.getRowIndexes().slice(0)),t[u.id]=l(o,d[c],e.isRoot?null:e.getRowIndexes()),!u.isLeaf&&(a.push(u),o)){d[c]=[];for(var p=0;p<o.length;p++){var g=o[p];-1!=g&&0>g&&(d[c].push(0-(g+2)),o[p]=-1)}}}d["c"+i.id]=void 0,r++}return t}}function c(){if(h.dataMatrix={},d={},h.dataMatrix[h.rows.root.id]=u(h.rows.root),h.rows.dimensionsCount>0)for(var e,t=[h.rows.root],n=0;n<t.length;){e=t[n];for(var r=0;r<e.values.length;r++){var a=e.subdimvals[e.values[r]];h.dataMatrix[a.id]=u(a),a.isLeaf||t.push(a)}n++}}var d,p={name:"#undefined#"},h=this;this.config=new r(e),this.filters=h.config.getPreFilters(),this.filteredDataSource=h.config.dataSource,this.rows=new n(h,n.Type.ROWS),this.columns=new n(h,n.Type.COLUMNS),this.dataMatrix={},this.moveField=function(e,n,r,a){h.config.moveField(e,n,r,a)&&t(!1)},this.applyFilter=function(e,n,r,i,o){h.filters[e]=new a.expressionFilter(n,r,i,o),t()},this.refreshData=function(e){h.config.dataSource=e,t()},this.getFieldValues=function(e,t){for(var n=[],r=[],a=!1,i=0;i<h.config.dataSource.length;i++){var s=h.config.dataSource[i],l=s[e];void 0!==t?(t===!0||"function"==typeof t&&t(l))&&n.push(l):l?n.push(l):a=!0}if(n.length>1){o.isNumber(n[0])||o.isDate(n[0])?n.sort(function(e,t){return e?t?e-t:1:t?-1:0}):n.sort();for(var u=0;u<n.length;u++)(0===u||n[u]!==r[r.length-1])&&r.push(n[u])}else r=n;return r.containsBlank=a,r},this.getFieldFilter=function(e){return h.filters[e]},this.isFieldFiltered=function(e){var t=h.getFieldFilter(e);return null!=t&&!t.isAlwaysTrue()},this.getData=function(e,t,n,r){if(t&&n){var a=e||(h.config.dataFields[0]||p).name,i=h.config.getDataField(a);return!i||r&&i.aggregateFunc!=r?h.calcAggregation(t.getRowIndexes().slice(0),n.getRowIndexes().slice(0),[a],r)[a]||null:h.dataMatrix[t.id]&&h.dataMatrix[t.id][n.id]?h.dataMatrix[t.id][n.id][a]||null:null}},this.calcAggregation=function(e,t,n,r){return l(e,t,e,n,r)},this.query=i(h),t()}},{"./orb.axe":3,"./orb.config":4,"./orb.filtering":6,"./orb.query":8,"./orb.utils":15}],8:[function(e,t){var n=e("./orb.utils"),r=e("./orb.axe"),a=e("./orb.aggregation"),i=function(e,t,r){var i=this;this.source=e,this.query=t,this.filters=r,this.extractResult=function(e,t,n){if(n.multi===!0){for(var r={},a=0;a<t.multiFieldNames.length;a++)r[t.multiFieldNames[a]]=e[i.getCaptionName(t.multiFieldNames[a])];return r}return e[n.datafieldname]},this.measureFunc=function(e,t,n,r){var a={datafieldname:i.getCaptionName(e),multi:t,aggregateFunc:n};return function(e){e=i.cleanOptions(e,arguments,a);var n=i.compute(e,r,t);return i.extractResult(n,e,a)}},this.setDefaultAggFunctions=function(e){var t=i.query.val?"val_":"val";i.query[t]=i.measureFunc(void 0,!0,void 0,e);for(var r=n.ownProperties(a),o=0;o<r.length;o++){var s=r[o];"toAggregateFunc"!==s&&(i.query[s]=i.measureFunc(void 0,!0,a[s],e))}}},o=function(e){function t(e,t){return function(n){return n.value===t.val&&(!e||e.some(function(e){var t=n.parent;if(t)for(;t.depth<e.depth;)t=t.parent;return t===e}))}}i.call(this,e,{},{});var n=this;this.getCaptionName=function(e){return n.source.config.captionToName(e)},this.cleanOptions=function(e,t,r){var i={fieldNames:[]};if(r.multi===!0){e&&"object"==typeof e?(i.aggregateFunc=e.aggregateFunc,i.multiFieldNames=e.fields):(i.aggregateFunc=r.aggregateFunc,i.multiFieldNames=t);for(var o=0;o<i.multiFieldNames.length;o++)i.fieldNames.push(n.getCaptionName(i.multiFieldNames[o]))}else i.aggregateFunc=e,i.fieldNames.push(r.datafieldname);return i.aggregateFunc&&(i.aggregateFunc=a.toAggregateFunc(i.aggregateFunc)),i},this.setup=function(e){var t,a=n.source.config.rowFields,i=n.source.config.columnFields,o=n.source.config.dataFields;for(t=0;t<a.length;t++)n.slice(a[t],r.Type.ROWS,a.length-t);for(t=0;t<i.length;t++)n.slice(i[t],r.Type.COLUMNS,i.length-t);for(t=0;t<o.length;t++){var s=o[t],l=s.name,u=s.caption||l;n.query[l]=n.query[u]=n.measureFunc(l)}if(e)for(var c in e)e.hasOwnProperty(c)&&n.query[c](e[c]);return n.setDefaultAggFunctions(),n.query},this.slice=function(e,t,r){n.query[e.name]=n.query[e.caption||e.name]=function(a){var i={name:e.name,val:a,depth:r};return(n.filters[t]=n.filters[t]||[]).push(i),n.query}},this.applyFilters=function(e){if(n.filters[e]){for(var a=n.filters[e].sort(function(e,t){return t.depth-e.depth}),i=n.source[e===r.Type.ROWS?"rows":"columns"],o=0,s=null;o<a.length;){var l=a[o];s=i.dimensionsByDepth[l.depth].filter(t(s,l)),o++}return s}return null},this.compute=function(e){var t,a=n.applyFilters(r.Type.ROWS)||[n.source.rows.root],i=n.applyFilters(r.Type.COLUMNS)||[n.source.columns.root];if(1===a.length&&1===i.length){t={};for(var o=0;o<e.fieldNames.length;o++)t[e.fieldNames[o]]=n.source.getData(e.fieldNames[o],a[0],i[0],e.aggregateFunc)}else{for(var s=[],l=[],u=0;u<a.length;u++)s=s.concat(a[u].getRowIndexes());for(var c=0;c<i.length;c++)l=l.concat(i[c].getRowIndexes());t=n.source.calcAggregation(s,l,e.fieldNames,e.aggregateFunc)}return t}},s=function(e){i.call(this,e,{},[]);var t=this,r={};this.setCaptionName=function(e,t){r[e||t]=t},this.getCaptionName=function(e){return r[e]||e},this.cleanOptions=function(e,n,r){var a={fieldNames:[]};if(r.multi===!0){e&&"object"==typeof e?(a.aggregateFunc=e.aggregateFunc,a.multiFieldNames=e.fields):(a.aggregateFunc=r.aggregateFunc,a.multiFieldNames=n);for(var i=0;i<a.multiFieldNames.length;i++)a.fieldNames.push(t.getCaptionName(a.multiFieldNames[i]))}else a.aggregateFunc=e||r.aggregateFunc,a.fieldNames.push(r.datafieldname);return a},this.setup=function(e){if(t.query.slice=function(e,n){var r={name:e,val:n};return t.filters.push(r),t.query},e)for(var r=n.ownProperties(e),a=0;a<r.length;a++){var i=r[a],o=e[i],s=o.caption||o.name;o.name=i,t.setCaptionName(s,i),o.toAggregate?t.query[i]=t.query[s]=t.measureFunc(i,!1,o.aggregateFunc):t.slice(o)}return t.setDefaultAggFunctions(e),t.query},this.slice=function(e){t.query[e.name]=t.query[e.caption||e.name]=function(n){return t.query.slice(e.name,n)}},this.applyFilters=function(){for(var e=[],n=0;n<t.source.length;n++){for(var r=t.source[n],a=!0,i=0;i<t.filters.length;i++){var o=t.filters[i];if(r[o.name]!==o.val){a=!1;break}}a&&e.push(n)}return e},this.compute=function(e,n,r){for(var i=t.applyFilters(),o={},s=0;s<e.fieldNames.length;s++){var l=e.fieldNames[s],u=a.toAggregateFunc(r===!0?e.aggregateFunc||(n&&n[l]?n[l].aggregateFunc:void 0):e.aggregateFunc);o[l]=u(l,i||"all",t.source,i,null)}return o}};t.exports=function(e,t){return n.isArray(e)?new s(e).setup(t):function(t){return new o(e).setup(t)}}},{"./orb.aggregation":2,"./orb.axe":3,"./orb.utils":15}],9:[function(e,t){t.exports=function(){var e={};this.set=function(t,n){e[t]=n},this.get=function(t){return e[t]}}},{}],10:[function(e,t){t.exports=function(){function e(){return"bootstrap"===t}var t="blue",n={};return n.themes={red:"#C72C48",blue:"#268BD2",green:"#3A9D23",orange:"#f7840d",flower:"#A74AC7",gray:"#808080",white:"#FFFFFF",black:"#000000"},n.current=function(e){return e&&(t=n.validateTheme(e)),t},n.validateTheme=function(e){return e=(e||"").toString().trim(),n.themes[e]||"bootstrap"===e?e:"blue"},n.getPivotClasses=function(){return{container:"orb-container orb-"+t,table:"orb"+(e()?" table":"")}},n.getButtonClasses=function(){return{pivotButton:"fld-btn"+(e()?" btn btn-default":""),orbButton:"orb-btn"+(e()?" btn btn-default btn-xs":"")}},n.getFilterClasses=function(){return{container:"orb-"+t+" orb fltr-cntnr"}},n.getGridClasses=function(){return{table:e()?"table table-striped table-condensed":"orb-table"}},n.getDialogClasses=function(n){var r={overlay:"orb-overlay orb-overlay-"+(n?"visible":"hidden")+" orb-"+t,dialog:"orb-dialog",content:"",header:"orb-dialog-header",title:"",body:"orb-dialog-body"};return e()&&(r.overlay+=" modal",r.dialog+=" modal-dialog",r.content="modal-content",r.header+=" modal-header",r.title="modal-title",r.body+=" modal-body"),r},n}()},{}],11:[function(e,t){var n=e("./orb.axe"),r=e("./orb.ui.header");t.exports=function(e){function t(){function e(e){e&&e.dim.field.subTotal.visible&&t.push(e.subtotalHeader)}var t=[];if(i.uiInfos.length>0){for(var n,a=i.uiInfos[i.uiInfos.length-1],l=a[0],u=l.parent,c=0;c<a.length;c++){if(l=a[c],n=l.parent,n!=u){if(e(u),null!=n)for(var d=n.parent,p=u?u.parent:null;d!=p&&null!=p;)e(p),d=d?d.parent:null,p=p?p.parent:null;u=n}if(t.push(a[c]),c===a.length-1)for(;null!=u;)e(u),u=u.parent}i.axe.pgrid.config.grandTotal.columnsvisible&&i.axe.dimensionsCount>1&&t.push(i.uiInfos[0][i.uiInfos[0].length-1])}if(o){i.leafsHeaders=[];for(var h=0;h<t.length;h++)for(var g=0;s>g;g++)i.leafsHeaders.push(new r.dataHeader(i.axe.pgrid.config.dataFields[g],t[h]));i.uiInfos.push(i.leafsHeaders)}else i.leafsHeaders=t}function a(e,t){for(var a=t[t.length-1],o=i.axe.root.depth===e?[null]:t[i.axe.root.depth-e-1].filter(function(e){return e.type!==r.HeaderType.SUB_TOTAL}),l=0;l<o.length;l++)for(var u=o[l],c=null==u?i.axe.root:u.dim,d=0;d<c.values.length;d++){var p,h=c.values[d],g=c.subdimvals[h];p=!g.isLeaf&&g.field.subTotal.visible?new r.header(n.Type.COLUMNS,r.HeaderType.SUB_TOTAL,g,u,s):null;var f=new r.header(n.Type.COLUMNS,null,g,u,s,p);a.push(f),!g.isLeaf&&g.field.subTotal.visible&&a.push(p)}}var i=this;this.axe=e,this.uiInfos=null,this.leafsHeaders=null;var o,s;this.build=function(){if(s="columns"===i.axe.pgrid.config.dataHeadersLocation?i.axe.pgrid.config.dataFieldsCount:1,o="columns"===i.axe.pgrid.config.dataHeadersLocation&&s>1,i.uiInfos=[],null!=i.axe){for(var e=i.axe.root.depth;e>1;e--)i.uiInfos.push([]),a(e,i.uiInfos);i.axe.pgrid.config.grandTotal.columnsvisible&&(i.uiInfos[0]=i.uiInfos[0]||[]).push(new r.header(n.Type.COLUMNS,r.HeaderType.GRAND_TOTAL,i.axe.root,null,s)),0===i.uiInfos.length&&i.uiInfos.push([new r.header(n.Type.COLUMNS,r.HeaderType.INNER,i.axe.root,null,s)]),t()}},this.build()}},{"./orb.axe":3,"./orb.ui.header":12}],12:[function(e,t){function n(e){this.axetype=e.axetype,this.type=e.type,this.template=e.template,this.value=e.value,this.expanded=!0,this.cssclass=e.cssclass,this.hspan=e.hspan||function(){return 1},this.vspan=e.vspan||function(){return 1},this.visible=e.isvisible||function(){return!0},this.key=this.axetype+this.type+this.value,this.getState=function(){return a.get(this.key)},this.setState=function(e){a.set(this.key,e)}}var r=e("./orb.axe"),a=new(e("./orb.state")),i=t.exports.HeaderType={EMPTY:1,DATA_HEADER:2,DATA_VALUE:3,FIELD_BUTTON:4,INNER:5,WRAPPER:6,SUB_TOTAL:7,GRAND_TOTAL:8,getHeaderClass:function(e,t){var n=t===r.Type.ROWS?"header-row":t===r.Type.COLUMNS?"header-col":"";switch(e){case i.EMPTY:case i.FIELD_BUTTON:n="empty";break;case i.INNER:n="header "+n;break;case i.WRAPPER:n="header "+n;break;case i.SUB_TOTAL:n="header header-st "+n;break;case i.GRAND_TOTAL:n="header header-gt "+n}return n},getCellClass:function(e,t){var n="";switch(e){case i.GRAND_TOTAL:n="cell-gt";break;case i.SUB_TOTAL:n=t===i.GRAND_TOTAL?"cell-gt":"cell-st";break;default:n=t===i.GRAND_TOTAL?"cell-gt":t===i.SUB_TOTAL?"cell-st":"cell"}return n}};t.exports.header=function(e,t,a,o,s,l){function u(){if(g.type===i.SUB_TOTAL){for(var e=g.parent;null!=e;){if(e.subtotalHeader&&!e.subtotalHeader.expanded)return!1;e=e.parent}return!0}var t=g.dim.isRoot||g.dim.isLeaf||!g.dim.field.subTotal.visible||g.subtotalHeader.expanded;if(!t)return!1;for(var n=g.parent;null!=n&&(!n.dim.field.subTotal.visible||null!=n.subtotalHeader&&n.subtotalHeader.expanded);)n=n.parent;return null==n||null==n.subtotalHeader?t:n.subtotalHeader.expanded}function c(){var e,t=0,n=!1;if(g.visible()){if(g.dim.isLeaf)return s;for(var r=0;r<g.subheaders.length;r++){var a=g.subheaders[r];a.dim.isLeaf?t+=s:(e=f?a.vspan():a.hspan(),t+=e,0===r&&(0===e||f&&a.type===i.SUB_TOTAL&&!a.expanded)&&(n=!0))}return t+(n?1:0)}return t}var d,p,h,g=this,f=e===r.Type.ROWS;switch(t=t||(1===a.depth?i.INNER:i.WRAPPER)){case i.GRAND_TOTAL:h="Grand Total",d=f?a.depth-1||1:s,p=f?s:a.depth-1||1;break;case i.SUB_TOTAL:h="Total "+a.value,d=f?a.depth:s,p=f?s:a.depth;break;default:h=a.value,d=f?1:null,p=f?null:1}n.call(this,{axetype:e,type:t,template:f?"cell-template-row-header":"cell-template-column-header",value:h,cssclass:i.getHeaderClass(t,e),hspan:null!=d?function(){return d}:c,vspan:null!=p?function(){return p}:c,isvisible:u}),this.subtotalHeader=l,this.parent=o,this.subheaders=[],this.dim=a,this.expanded=this.getState()?this.getState().expanded:t!==i.SUB_TOTAL||!a.field.subTotal.collapsed,this.expand=function(){g.expanded=!0,this.setState({expanded:g.expanded})},this.collapse=function(){g.expanded=!1,this.setState({expanded:g.expanded})},null!=o&&o.subheaders.push(this)},t.exports.dataHeader=function(e,t){n.call(this,{axetype:null,type:i.DATA_HEADER,template:"cell-template-dataheader",value:e,cssclass:i.getHeaderClass(t.type,t.axetype),isvisible:t.visible}),this.parent=t},t.exports.dataCell=function(e,t,r,a){this.rowDimension=r.type===i.DATA_HEADER?r.parent.dim:r.dim,this.columnDimension=a.type===i.DATA_HEADER?a.parent.dim:a.dim,this.rowType=r.type===i.DATA_HEADER?r.parent.type:r.type,this.colType=a.type===i.DATA_HEADER?a.parent.type:a.type,this.datafield=e.config.dataFieldsCount>1?"rows"===e.config.dataHeadersLocation?r.value:a.value:e.config.dataFields[0],n.call(this,{axetype:null,type:i.DATA_VALUE,template:"cell-template-datavalue",value:e.getData(this.datafield?this.datafield.name:null,this.rowDimension,this.columnDimension),cssclass:"cell "+i.getCellClass(this.rowType,this.colType),isvisible:t})},t.exports.buttonCell=function(e){n.call(this,{axetype:null,type:i.FIELD_BUTTON,template:"cell-template-fieldbutton",value:e,cssclass:i.getHeaderClass(i.FIELD_BUTTON)})},t.exports.emptyCell=function(e,t){n.call(this,{axetype:null,type:i.EMPTY,template:"cell-template-empty",value:null,cssclass:i.getHeaderClass(i.EMPTY),hspan:function(){return e},vspan:function(){return t}})}},{"./orb.axe":3,"./orb.state":9}],13:[function(e,t){var n=e("./orb.axe"),r=e("./orb.pgrid"),a=e("./orb.ui.header"),i=e("./orb.ui.rows"),o=e("./orb.ui.cols"),s=e("./react/orb.react.compiled");t.exports=function(e){function t(){function e(e,t){return e.length!==t?(e.length=t,!0):!1}function t(e,t){return function(){return e()&&t()}}c.rows=new i(c.pgrid.rows),c.columns=new o(c.pgrid.columns);var n=c.rows.uiInfos,r=n.length,s=c.columns.uiInfos,l=s.length,u=c.columns.leafsHeaders,d=u.length;c.layout={rowHeaders:{width:(c.pgrid.rows.fields.length||1)+("rows"===c.pgrid.config.dataHeadersLocation&&c.pgrid.config.dataFieldsCount>1?1:0),height:r},columnHeaders:{width:d,height:(c.pgrid.columns.fields.length||1)+("columns"===c.pgrid.config.dataHeadersLocation&&c.pgrid.config.dataFieldsCount>1?1:0)}},c.layout.pivotTable={width:c.layout.rowHeaders.width+c.layout.columnHeaders.width,height:c.layout.rowHeaders.height+c.layout.columnHeaders.height};var p=[];e(p,l+r);for(var h,g=0;l>g;g++){var f=s[g],m=0;if(h=p[g]=p[g]||[],l>1&&0===g)m=1,e(h,m+f.length),h[0]=new a.emptyCell(c.layout.rowHeaders.width,c.layout.columnHeaders.height-1);else if(g===l-1)if(m=c.layout.rowHeaders.width,e(h,m+f.length),c.pgrid.rows.fields.length>0)for(var v=0;v<c.pgrid.config.rowFields.length;v++)h[v]=new a.buttonCell(c.pgrid.config.rowFields[v]);else h[0]=new a.emptyCell(c.layout.rowHeaders.width,1);for(var y=0;y<f.length;y++)h[m+y]=f[y]}for(var b=0;r>b;b++){var x=n[b];h=p[l+b]=p[l+b]||new Array(x.length+d),e(h,x.length+d);for(var w=0;w<x.length;w++)h[w]=x[w];for(var T=x[x.length-1],C=0;d>C;C++){var E=u[C],R=t(T.visible,E.visible);h[x.length+C]=new a.dataCell(c.pgrid,R,T,E)}}c.cells=p}var l,u,c=this,d=s.Dialog.create();this.pgrid=new r(e),this.rows=null,this.columns=null,this.cells=[],this.layout={rowHeaders:{width:null,height:null},columnHeaders:{width:null,height:null},pivotTable:{width:null,height:null}},this.sort=function(e,r){if(e===n.Type.ROWS)c.pgrid.rows.sort(r);else{if(e!==n.Type.COLUMNS)return;c.pgrid.columns.sort(r)}t()},this.refreshData=function(e){c.pgrid.refreshData(e),t(),u.setProps({})},this.applyFilter=function(e,n,r,a,i){c.pgrid.applyFilter(e,n,r,a,i),t()},this.moveField=function(e,n,r,a){c.pgrid.moveField(e,n,r,a),t()},this.changeTheme=function(e){u.changeTheme(e)},this.render=function(e){if(l=e){var t=React.createFactory(s.PivotTable),n=t({pgridwidget:c});u=React.render(n,e)}},this.drilldown=function(e){if(e){var t,n=e.columnDimension.getRowIndexes(),r=e.rowDimension.getRowIndexes().filter(function(e){return n.indexOf(e)>=0}).map(function(e){return c.pgrid.filteredDataSource[e]});t=e.rowType===a.HeaderType.GRAND_TOTAL&&e.colType===a.HeaderType.GRAND_TOTAL?"Grand total":e.rowType===a.HeaderType.GRAND_TOTAL?e.columnDimension.value+"/Grand total ":e.colType===a.HeaderType.GRAND_TOTAL?e.rowDimension.value+"/Grand total ":e.rowDimension.value+"/"+e.columnDimension.value;var i=window.getComputedStyle(u.getDOMNode(),null);d.show({title:t,comp:{type:s.Grid,props:{headers:c.pgrid.config.getDataSourceFieldCaptions(),data:r,theme:c.pgrid.config.theme}},theme:c.pgrid.config.theme,style:{fontFamily:i.getPropertyValue("font-family"),fontSize:i.getPropertyValue("font-size")}})}},t()}},{"./orb.axe":3,"./orb.pgrid":7,"./orb.ui.cols":11,"./orb.ui.header":12,"./orb.ui.rows":14,"./react/orb.react.compiled":16}],14:[function(e,t){var n=e("./orb.axe"),r=e("./orb.ui.header");t.exports=function(e){function t(e,t){if(o)for(var n=e[e.length-1],a=0;s>a;a++)n.push(new r.dataHeader(i.axe.pgrid.config.dataFields[a],t)),s-1>a&&e.push(n=[])}function a(e,i){if(i.values.length>0)for(var o=e.length-1,l=e[o],u=l.length>0?l[l.length-1]:null,c=0;c<i.values.length;c++){var d,p=i.values[c],h=i.subdimvals[p];d=!h.isLeaf&&h.field.subTotal.visible?new r.header(n.Type.ROWS,r.HeaderType.SUB_TOTAL,h,u,s):null;var g=new r.header(n.Type.ROWS,null,h,u,s,d);c>0&&e.push(l=[]),l.push(g),h.isLeaf?t(e,g):(a(e,h),h.field.subTotal.visible&&(e.push([d]),t(e,d)))}}var i=this;this.axe=e,this.uiInfos=[];var o,s;this.build=function(){s="rows"===i.axe.pgrid.config.dataHeadersLocation?i.axe.pgrid.config.dataFieldsCount||1:1,o="rows"===i.axe.pgrid.config.dataHeadersLocation&&s>1;var e=[[]];if(null!=i.axe){if(a(e,i.axe.root),i.axe.pgrid.config.grandTotal.rowsvisible){var l=e[e.length-1],u=new r.header(n.Type.ROWS,r.HeaderType.GRAND_TOTAL,i.axe.root,null,s);0===l.length?l.push(u):e.push([u]),t(e,u)}0===e[0].length&&e[0].push(new r.header(n.Type.ROWS,r.HeaderType.INNER,i.axe.root,null,s))}i.uiInfos=e},this.build()}},{"./orb.axe":3,"./orb.ui.header":12}],15:[function(e,t){t.exports={ns:function(e,t){var n=e.split("."),r=0;for(t=t||window;r<n.length;)t[n[r]]=t[n[r]]||{},t=t[n[r]],r++;return t},ownProperties:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},isNumber:function(e){return"[object Number]"===Object.prototype.toString.apply(e)},isDate:function(e){return"[object Date]"===Object.prototype.toString.apply(e)},isString:function(e){return"[object String]"===Object.prototype.toString.apply(e)},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.apply(e)},escapeRegex:function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},findInArray:function(e,t){if(this.isArray(e)&&t)for(var n=0;n<e.length;n++){var r=e[n];
if(t(r))return r}return void 0},jsonStringify:function(e,t){function n(e,n){return t&&t.indexOf(e)>-1?void 0:n}return JSON.stringify(e,n,2)}}},{}],16:[function(e,t){function n(e){var t=e.cell,n=t.cssclass,r=!t.visible(),a="cell-template-empty"===t.template;return r&&(n+=" cell-hidden"),(e.leftmostheader||e.leftmostdatavalue||e.leftmost&&!a)&&(n+=" cell-leftmost"),e.topmost&&!a&&(n+=" cell-topmost"),!e.rightmost||t.axetype===s.Type.COLUMNS&&t.type!==l.HeaderType.GRAND_TOTAL||(n+=" cell-rightmost"),("cell-template-column-header"===t.template||"cell-template-dataheader"===t.template)&&(n+=" cntr"),n}function r(e,t){function n(e,t){return null==t?"none"!=e.parentNode.parentNode.style.display:void(e.parentNode.parentNode.style.display=t?"":"none")}function r(){if(t){var e={values:t.staticValue,toExclude:t.excludeStatic};t.term?(p=!0,g=t.operator,c.toggleRegexpButtonVisibility(),t.regexpMode?(h=!0,c.toggleRegexpButtonState(),f=t.term.source):f=t.term,m.searchBox.value=f,c.applyFilterTerm(t.operator,t.term)):s=e,c.updateCheckboxes(e),c.updateAllCheckbox()}}function a(){c.toggleRegexpButtonVisibility(),m.filterContainer.addEventListener("click",c.valueChecked),m.searchBox.addEventListener("keyup",c.searchChanged),m.okButton.addEventListener("click",function(){var t=c.getCheckedValues();e.onFilter(g.name,g.regexpSupported&&p&&h?new RegExp(f,"i"):f,t.values,t.toExclude)}),m.cancelButton.addEventListener("click",function(){e.destroy()})}function i(e,t,n){var r=301,a=223,i={x:0,y:0},o=!1;this.resizeMouseDown=function(e){0===e.button&&(o=!0,document.body.style.cursor="se-resize",i.x=e.pageX,i.y=e.pageY,e.stopPropagation(),e.preventDefault())},this.resizeMouseUp=function(){return o=!1,document.body.style.cursor="auto",!0},this.resizeMouseMove=function(s){if(o){var l=n.getBoundingClientRect(),u=e.getBoundingClientRect(),c=t.getBoundingClientRect(),d=u.right-u.left,p=u.bottom-u.top,h={x:r>=d&&s.pageX<l.left?0:s.pageX-i.x,y:a>=p&&s.pageY<l.top?0:s.pageY-i.y},g=d+h.x,f=p+h.y;i.x=s.pageX,i.y=s.pageY,g>=r&&(e.style.width=g+"px"),f>=a&&(e.style.height=f+"px",t.style.height=c.bottom-c.top+h.y+"px"),s.stopPropagation(),s.preventDefault()}},n.addEventListener("mousedown",this.resizeMouseDown),document.addEventListener("mouseup",this.resizeMouseUp),document.addEventListener("mousemove",this.resizeMouseMove)}var s,l,c=this,d="indeterminate",p=!1,h=!1,g=u.Operators.MATCH,f="",m={filterContainer:null,checkboxes:{},searchBox:null,operatorBox:null,allCheckbox:null,addCheckbox:null,enableRegexButton:null,okButton:null,cancelButton:null,resizeGrip:null};this.init=function(e){m.filterContainer=e,m.checkboxes={},m.searchBox=m.filterContainer.rows[0].cells[2].children[0],m.operatorBox=m.filterContainer.rows[0].cells[0].children[0],m.okButton=m.filterContainer.rows[2].cells[0].children[0],m.cancelButton=m.filterContainer.rows[2].cells[0].children[1],m.resizeGrip=m.filterContainer.rows[2].cells[1].children[0];for(var t=m.filterContainer.rows[1].cells[0].children[0].rows,n=0;n<t.length;n++){var o=t[n].cells[0].children[0];m.checkboxes[o.value]=o}m.allCheckbox=m.checkboxes[u.ALL],m.addCheckbox=null,m.enableRegexButton=m.filterContainer.rows[0].cells[1],l=new i(m.filterContainer.parentNode,m.filterContainer.rows[1].cells[0].children[0],m.resizeGrip),r(),a()},this.onOperatorChanged=function(e){g.name!==e&&(g=u.Operators.get(e),c.toggleRegexpButtonVisibility(),c.searchChanged("operatorChanged"))},this.toggleRegexpButtonVisibility=function(){g.regexpSupported?(m.enableRegexButton.addEventListener("click",c.regexpActiveChanged),m.enableRegexButton.className=m.enableRegexButton.className.replace(/\s+srchtyp\-col\-hidden/,"")):(m.enableRegexButton.removeEventListener("click",c.regexpActiveChanged),m.enableRegexButton.className+=" srchtyp-col-hidden")},this.toggleRegexpButtonState=function(){m.enableRegexButton.className=m.enableRegexButton.className.replace("srchtyp-col-active",""),h&&(m.enableRegexButton.className+=" srchtyp-col-active")},this.regexpActiveChanged=function(){h=!h,c.toggleRegexpButtonState(),c.searchChanged("regexModeChanged")},this.valueChecked=function(e){var t=e.target;t&&t.type&&"checkbox"===t.type&&(t==m.allCheckbox?c.updateCheckboxes({values:m.allCheckbox.checked}):c.updateAllCheckbox())},this.applyFilterTerm=function(t,r){var a=r?!1:!0,i=t.regexpSupported&&p?h?r:o.escapeRegex(r):r;n(m.allCheckbox,a);for(var s=0;s<e.values.length;s++){var l=e.values[s],u=m.checkboxes[l],c=!p||t.func(l,i);n(u,c),u.checked=c}},this.searchChanged=function(e){var t=(m.searchBox.value||"").trim();if("operatorChanged"===e||"regexModeChanged"===e&&t||t!=f){f=t;var n=p;p=""!==t,p&&!n&&(s=c.getCheckedValues()),("operatorChanged"!==e||p)&&c.applyFilterTerm(g,t),!p&&n&&c.updateCheckboxes(s),c.updateAllCheckbox()}},this.getCheckedValues=function(){if(p||m.allCheckbox.indeterminate){var t,r,a,i,o=0,s=0;for(r=0;r<e.values.length;r++)a=e.values[r],i=m.checkboxes[a],n(i)&&(o++,i.checked&&s++);if(0==s)t=u.NONE;else if(s==o)t=u.ALL;else{t=[];var l=s>o/2+1;for(r=0;r<e.values.length;r++)a=e.values[r],i=m.checkboxes[a],n(i)&&(!l&&i.checked||l&&!i.checked)&&t.push(a)}return{values:t,toExclude:l}}return{values:m.allCheckbox.checked?u.ALL:u.NONE,toExclude:!1}},this.updateCheckboxes=function(t){for(var r=t?t.values:null,a=o.isArray(r)?null:null==r||r===u.ALL?!0:r===u.NONE?!1:!!r,i=0;i<e.values.length;i++){var s=e.values[i],l=m.checkboxes[s];if(n(l))if(null!=a)l.checked=a;else{var c=r.indexOf(s)>=0;l.checked=t.toExclude?!c:c}}},this.updateAllCheckbox=function(){if(!p){for(var t=null,n=0;n<e.values.length;n++){var r=m.checkboxes[e.values[n]];if(null==t)t=r.checked;else if(t!==r.checked){t=d;break}}t===d?(m.allCheckbox.indeterminate=!0,m.allCheckbox.checked=!1):(m.allCheckbox.indeterminate=!1,m.allCheckbox.checked=t)}}}function a(){var e=document.createElement("div");return e.className="orb-overlay orb-overlay-hidden",document.body.appendChild(e),e}var i="undefined"==typeof window?e("react"):window.React,o=e("../orb.utils"),s=e("../orb.axe"),l=e("../orb.ui.header"),u=e("../orb.filtering"),c=e("./orb.react.utils"),d=1,p=t.exports,h=1,g={};t.exports.PivotTable=i.createClass({id:h++,pgrid:null,pgridwidget:null,getInitialState:function(){return p.DragManager.init(this),g[this.id]=[],this.registerThemeChanged(this.updateClasses),this.pgridwidget=this.props.pgridwidget,this.pgrid=this.pgridwidget.pgrid,{}},sort:function(e,t){this.pgridwidget.sort(e,t),this.setProps({})},moveButton:function(e,t,n){this.pgridwidget.moveField(e.props.field.name,e.props.axetype,t,n),this.setProps({})},expandRow:function(e){e.expand(),this.setProps({})},collapseRow:function(e){e.subtotalHeader.collapse(),this.setProps({})},applyFilter:function(e,t,n,r,a){this.pgridwidget.applyFilter(e,t,n,r,a),this.setProps({})},registerThemeChanged:function(e){e&&g[this.id].push(e)},unregisterThemeChanged:function(e){var t;e&&(t=g[this.id].indexOf(e))>=0&&g[this.id].splice(t,1)},changeTheme:function(e){if(this.pgridwidget.pgrid.config.setTheme(e))for(var t=0;t<g[this.id].length;t++)g[this.id][t]()},updateClasses:function(){var e=this.getDOMNode(),t=this.pgridwidget.pgrid.config.theme.getPivotClasses();e.className=t.container,e.children[1].className=t.table},render:function(){var e=this,t=this.pgridwidget.pgrid.config,n=p.PivotButton,r=p.PivotRow,a=p.DropTarget,i=p.Toolbar,l=t.availablefields().map(function(t,r){return React.createElement(n,{key:t.name,field:t,axetype:null,position:r,pivotTableComp:e})}),u=t.dataFields.map(function(t,r){return React.createElement(n,{key:t.name,field:t,axetype:s.Type.DATA,position:r,pivotTableComp:e})}),c=t.columnFields.map(function(t,r){return React.createElement(n,{key:t.name,field:t,axetype:s.Type.COLUMNS,position:r,pivotTableComp:e})}),h=o.findInArray(this.pgridwidget.cells,function(e){return"cell-template-fieldbutton"===e[0].template});h=void 0!==h?h.filter(function(e){return"cell-template-fieldbutton"===e.template}).map(function(t,r){return React.createElement(n,{key:t.value.name,field:t.value,axetype:s.Type.ROWS,position:r,pivotTableComp:e})}):[];var g=React.createElement("td",{className:"empty",colSpan:this.pgridwidget.layout.rowHeaders.width+d,rowSpan:"1"},React.createElement(a,{buttons:h,axetype:s.Type.ROWS})),f=this.pgridwidget.cells.map(function(t,n){return n==e.pgridwidget.layout.columnHeaders.height-1?React.createElement(r,{key:n,row:t,topmost:0===n,rowButtonsCount:e.pgridwidget.layout.rowHeaders.width,rowButtonsCell:g,pivotTableComp:e}):React.createElement(r,{key:n,topmost:0===n,row:t,pivotTableComp:e})}),m=t.theme.getPivotClasses(),v={};return t.width&&(v.width=t.width),t.height&&(v.height=t.height),React.createElement("div",{className:m.container,style:v},React.createElement("div",{className:"orb-toolbar",style:{display:t.showToolbar?"block":"none"}},React.createElement(i,{pivotTableComp:e})),React.createElement("table",{id:"{'tbl' + self.id}",className:m.table,style:{width:"100%"}},React.createElement("tbody",null,React.createElement("tr",null,React.createElement("td",{className:"flds-grp-cap av-flds text-muted",colSpan:d,rowSpan:"1"},React.createElement("div",null,"Fields")),React.createElement("td",{className:"av-flds",colSpan:this.pgridwidget.layout.pivotTable.width,rowSpan:"1"},React.createElement(a,{buttons:l,axetype:null}))),React.createElement("tr",null,React.createElement("td",{className:"flds-grp-cap text-muted",colSpan:d,rowSpan:"1"},React.createElement("div",null,"Data")),React.createElement("td",{className:"empty",colSpan:this.pgridwidget.layout.pivotTable.width,rowSpan:"1"},React.createElement(a,{buttons:u,axetype:s.Type.DATA}))),React.createElement("tr",null,React.createElement("td",{className:"empty",colSpan:this.pgridwidget.layout.rowHeaders.width+d,rowSpan:"1"}),React.createElement("td",{className:"empty",colSpan:this.pgridwidget.layout.columnHeaders.width,rowSpan:"1"},React.createElement(a,{buttons:c,axetype:s.Type.COLUMNS}))),f)),React.createElement("div",{className:"orb-overlay orb-overlay-hidden",id:"drilldialog"+e.id}))}}),t.exports.PivotRow=i.createClass({render:function(){var e,t=this,n=p.PivotCell,r=this.props.row.length-1,a=this.props.row[0],i={};return void 0!==this.props.rowButtonsCell?(e=this.props.row.slice(this.props.rowButtonsCount).map(function(e,a){var i=a===r-t.props.rowButtonsCount,o=0===a;return React.createElement(n,{key:a,cell:e,topmost:t.props.topmost,rightmost:i,leftmostheader:o,pivotTableComp:t.props.pivotTableComp})}),React.createElement("tr",null,this.props.rowButtonsCell,e)):("cell-template-row-header"==a.template&&a.visible&&!a.visible()&&(i.display="none"),e=this.props.row.map(function(e,a){var i=a===r,o=0===a&&(e.type===l.HeaderType.EMPTY||e.type===l.HeaderType.SUB_TOTAL&&e.dim.parent.isRoot||e.type===l.HeaderType.GRAND_TOTAL||e.dim&&(e.dim.isRoot||e.dim.parent.isRoot)),s="cell-template-column-header"===e.template&&1===a,u="cell-template-datavalue"===e.template&&e.visible()&&("cell-template-datavalue"!==t.props.row[a-1].template||!t.props.row[a-1].visible());return React.createElement(n,{key:a,cell:e,topmost:t.props.topmost,leftmostheader:s,leftmostdatavalue:u,rightmost:i,leftmost:o,pivotTableComp:t.props.pivotTableComp})}),React.createElement("tr",{style:i},e))}}),t.exports.PivotCell=i.createClass({expand:function(){this.props.pivotTableComp.expandRow(this.props.cell)},collapse:function(){this.props.pivotTableComp.collapseRow(this.props.cell)},render:function(){var e,t,r=this,a=this.props.cell,i=[],o=!1;switch(a.template){case"cell-template-row-header":case"cell-template-column-header":var s=a.type===l.HeaderType.WRAPPER&&a.dim.field.subTotal.visible&&a.dim.field.subTotal.collapsible&&a.subtotalHeader.expanded,u=a.type===l.HeaderType.SUB_TOTAL&&!a.expanded;(s||u)&&(o=!0,i.push(React.createElement("table",{key:"header-value"},React.createElement("tbody",null,React.createElement("tr",null,React.createElement("td",{className:"orb-tgl-btn"},React.createElement("div",{className:"orb-tgl-btn-"+(s?"down":"right"),onClick:s?this.collapse:this.expand})),React.createElement("td",{className:"hdr-val"},React.createElement("div",null,a.value))))))),e=a.value;break;case"cell-template-dataheader":e=a.value.caption;break;case"cell-template-datavalue":e=a.datafield&&a.datafield.formatFunc?a.datafield.formatFunc()(a.value):a.value,t=function(){r.props.pivotTableComp.pgridwidget.drilldown(a,r.props.pivotTableComp.id)}}return o||i.push(React.createElement("div",{key:"cell-value",className:"cell-template-datavalue"!==a.template?"hdr-val":""},React.createElement("div",null,e))),React.createElement("td",{className:n(this.props),onDoubleClick:t,colSpan:a.hspan()+(this.props.leftmost?d:0),rowSpan:a.vspan()},React.createElement("div",null,i))}});var f=t.exports.DragManager=function(){function e(e,t){return!(e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function t(e){return e.onDragOver?(e.onDragOver(o),!0):!1}function n(e){return e.onDragEnd?(e.onDragEnd(),!0):!1}function r(){return c.forEach(l,function(e){return e.component.state.isover?e:void 0},!0)}function a(){return c.forEach(u,function(e){return e.component.state.isover?e:void 0},!0)}var i=null,o=null,s=null,l=[],u=[],d=!1;return{init:function(e){d=!0,i=e},dragElement:function(e){var t=o;if(o=e,o!=t)if(null==e){var d=r(),p=a();if(d){var h=null!=p?p.position:null;i.moveButton(t,d.component.props.axetype,h)}s=null,c.forEach(l,function(e){n(e)}),c.forEach(u,function(e){n(e)})}else s=o.getDOMNode()},registerTarget:function(e,t,n,r){l.push({component:e,axetype:t,onDragOver:n,onDragEnd:r})},unregisterTarget:function(e){for(var t,n=0;n<l.length;n++)if(l[n].component==e){t=n;break}null!=t&&l.splice(t,1)},registerIndicator:function(e,t,n,r,a){u.push({component:e,axetype:t,position:n,onDragOver:r,onDragEnd:a})},unregisterIndicator:function(e){for(var t,n=0;n<u.length;n++)if(u[n].component==e){t=n;break}null!=t&&u.splice(t,1)},elementMoved:function(){if(null!=o){var r,a=s.getBoundingClientRect();c.forEach(l,function(i){if(!r){var o=i.component.getDOMNode().getBoundingClientRect(),s=e(a,o);if(s&&t(i))return r=i,!0;n(i)}},!0);var i;if(r){if(c.forEach(u,function(s){if(!i){var l=s.component.props.axetype===o.props.axetype&&s.component.props.position===o.props.position,u=s.component.props.axetype===r.component.props.axetype;if(u&&!l){var c=s.component.getDOMNode().getBoundingClientRect(),d=e(a,c);if(d&&t(s))return void(i=s)}}n(s)}),!i){var d=u.filter(function(e){return e.component.props.axetype===r.component.props.axetype});d.length>0&&t(d[d.length-1])}}else c.forEach(u,function(e){n(e)})}}}}();t.exports.DropIndicator=i.createClass({displayName:"DropIndicator",getInitialState:function(){return f.registerIndicator(this,this.props.axetype,this.props.position,this.onDragOver,this.onDragEnd),{isover:!1}},componentWillUnmount:function(){f.unregisterIndicator(this)},onDragOver:function(e){this.setState({isover:!0,width:e.getDOMNode().style.width})},onDragEnd:function(){this.setState({isover:!1,width:null})},render:function(){var e="drp-indic";this.props.isFirst&&(e+=" drp-indic-first"),this.props.isLast&&(e+=" drp-indic-last");var t={};return this.state.isover&&(e+=" drp-indic-over"),React.createElement("div",{style:t,className:e})}});var m=0;t.exports.DropTarget=i.createClass({getInitialState:function(){return this.dtid=++m,f.registerTarget(this,this.props.axetype,this.onDragOver,this.onDragEnd),{isover:!1}},componentWillUnmount:function(){f.unregisterTarget(this)},onDragOver:function(){this.setState({isover:!0})},onDragEnd:function(){this.setState({isover:!1})},render:function(){var e=this,n=t.exports.DropIndicator,r=this.props.buttons.map(function(t,r){return r<e.props.buttons.length-1?[React.createElement(n,{isFirst:0===r,position:r,axetype:e.props.axetype}),t]:[React.createElement(n,{isFirst:0===r,position:r,axetype:e.props.axetype}),t,React.createElement(n,{isLast:!0,position:null,axetype:e.props.axetype})]});return React.createElement("div",{className:"drp-trgt"+(this.state.isover?" drp-trgt-over":"")},r)}});var v=0;t.exports.PivotButton=i.createClass({displayName:"PivotButton",getInitialState:function(){return this.pbid=++v,{pos:{x:0,y:0},startpos:{x:0,y:0},mousedown:!1,dragging:!1}},onFilterMouseDown:function(e){if(0===e.button){var t=this.getDOMNode().childNodes[0].rows[0].cells[2].childNodes[0],n=c.getOffset(t),r=document.createElement("div"),a=React.createFactory(p.FilterPanel),i=a({field:this.props.field.name,pivotTableComp:this.props.pivotTableComp});r.className=this.props.pivotTableComp.pgrid.config.theme.getFilterClasses().container,r.style.top=n.y+"px",r.style.left=n.x+"px",document.body.appendChild(r),React.render(i,r),e.stopPropagation(),e.preventDefault()}},componentDidUpdate:function(){this.state.mousedown?this.state.mousedown&&(f.dragElement(this),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)):(f.dragElement(null),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp))},componentDidMount:function(){this.props.pivotTableComp.registerThemeChanged(this.updateClasses)},componentWillUnmount:function(){this.props.pivotTableComp.unregisterThemeChanged(this.updateClasses),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp)},onMouseDown:function(e){if(0===e.button){var t=c.getOffset(this.getDOMNode());this.setState({mousedown:!0,mouseoffset:{x:t.x-e.pageX,y:t.y-e.pageY},startpos:{x:e.pageX,y:e.pageY}}),e.stopPropagation(),e.preventDefault()}},onMouseUp:function(){var e=this.state.dragging;return this.setState({mousedown:!1,dragging:!1,size:null,pos:{x:0,y:0}}),e||this.props.pivotTableComp.sort(this.props.axetype,this.props.field),!0},onMouseMove:function(e){if(this.state.mousedown){var t=null;t=this.state.dragging?this.state.size:c.getSize(this.getDOMNode());var n={x:e.pageX+this.state.mouseoffset.x,y:e.pageY+this.state.mouseoffset.y};this.setState({dragging:!0,size:t,pos:n}),f.elementMoved(),e.stopPropagation(),e.preventDefault()}},updateClasses:function(){this.getDOMNode().className=this.props.pivotTableComp.pgrid.config.theme.getButtonClasses().pivotButton},render:function(){var e=this,t={left:e.state.pos.x+"px",top:e.state.pos.y+"px",position:e.state.dragging?"fixed":""};e.state.size&&(t.width=e.state.size.width+"px");var n="asc"===e.props.field.sort.order?" \u2191":"desc"===e.props.field.sort.order?" \u2193":"",r=(e.state.dragging?"":"fltr-btn")+(this.props.pivotTableComp.pgrid.isFieldFiltered(this.props.field.name)?" fltr-btn-active":""),a="";return e.props.axetype===s.Type.DATA&&(a=React.createElement("small",null," ("+e.props.field.aggregateFuncName+")")),React.createElement("div",{key:e.props.field.name,className:this.props.pivotTableComp.pgrid.config.theme.getButtonClasses().pivotButton,onMouseDown:this.onMouseDown,style:t},React.createElement("table",null,React.createElement("tbody",null,React.createElement("tr",null,React.createElement("td",{style:{padding:0}},e.props.field.caption,a),React.createElement("td",{style:{padding:0,width:13}},n),React.createElement("td",{style:{padding:0,verticalAlign:"top"}},React.createElement("div",{className:r,onMouseDown:e.state.dragging?null:this.onFilterMouseDown}))))))}}),t.exports.FilterPanel=i.createClass({pgridwidget:null,values:null,filterManager:null,getInitialState:function(){return this.pgridwidget=this.props.pivotTableComp.pgridwidget,{}},destroy:function(){var e=this.getDOMNode().parentNode;React.unmountComponentAtNode(e),e.parentNode.removeChild(e)},onFilter:function(e,t,n,r){this.props.pivotTableComp.applyFilter(this.props.field,e,t,n,r),this.destroy()},onMouseDown:function(e){for(var t=this.getDOMNode().parentNode,n=e.target;null!=n;){if(n==t)return!0;n=n.parentNode}this.destroy()},onMouseWheel:function(e){for(var t=this.getDOMNode().rows[1].cells[0].children[0],n=e.target;null!=n;){if(n==t)return void(t.scrollHeight<=t.clientHeight&&(e.stopPropagation(),e.preventDefault()));n=n.parentNode}this.destroy()},componentWillMount:function(){document.addEventListener("mousedown",this.onMouseDown),document.addEventListener("wheel",this.onMouseWheel),window.addEventListener("resize",this.destroy)},componentDidMount:function(){this.filterManager.init(this.getDOMNode())},componentWillUnmount:function(){document.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("wheel",this.onMouseWheel),window.removeEventListener("resize",this.destroy)},render:function(){function e(e,t){return n.push(React.createElement("tr",{key:e},React.createElement("td",{className:"fltr-chkbox"},React.createElement("input",{type:"checkbox",value:e,defaultChecked:"checked"})),React.createElement("td",{className:"fltr-val",title:t||e},t||e)))}var t=p.Dropdown,n=[];this.filterManager=new r(this,this.pgridwidget.pgrid.getFieldFilter(this.props.field)),this.values=this.pgridwidget.pgrid.getFieldValues(this.props.field),e(u.ALL,"(Show All)"),this.values.containsBlank&&e(u.BLANK,"(Blank)");for(var a=0;a<this.values.length;a++)e(this.values[a]);var i=this.props.pivotTableComp.pgrid.config.theme.getButtonClasses().orbButton,o=window.getComputedStyle(this.props.pivotTableComp.getDOMNode(),null),s={fontFamily:o.getPropertyValue("font-family"),fontSize:o.getPropertyValue("font-size")},l=this.pgridwidget.pgrid.getFieldFilter(this.props.field);return React.createElement("table",{className:"fltr-scntnr",style:s},React.createElement("tbody",null,React.createElement("tr",null,React.createElement("td",{className:"srchop-col"},React.createElement(t,{values:[u.Operators.MATCH.name,u.Operators.NOTMATCH.name,u.Operators.EQ.name,u.Operators.NEQ.name,u.Operators.GT.name,u.Operators.GTE.name,u.Operators.LT.name,u.Operators.LTE.name],selectedValue:l&&l.operator?l.operator.name:u.Operators.MATCH.name,onValueChanged:this.filterManager.onOperatorChanged})),React.createElement("td",{className:"srchtyp-col",title:"Enable/disable Regular expressions"},".*"),React.createElement("td",{className:"srchbox-col"},React.createElement("input",{type:"text",placeholder:"search"}))),React.createElement("tr",null,React.createElement("td",{colSpan:"3",className:"fltr-vals-col"},React.createElement("table",{className:"fltr-vals-tbl"},React.createElement("tbody",null,n)))),React.createElement("tr",{className:"bottom-row"},React.createElement("td",{className:"cnfrm-btn-col",colSpan:"2"},React.createElement("input",{type:"button",className:i,value:"Ok",style:{"float":"left"}}),React.createElement("input",{type:"button",className:i,value:"Cancel",style:{"float":"left"}})),React.createElement("td",{className:"resize-col"},React.createElement("div",null)))))}}),t.exports.Dropdown=i.createClass({openOrClose:function(e){var t=this.refs.valueElement.getDOMNode(),n=this.refs.valuesList.getDOMNode();n.style.display=e.target===t&&"none"===n.style.display?"block":"none"},onMouseEnter:function(){var e=this.refs.valueElement.getDOMNode();e.className="orb-tgl-btn-down",e.style.backgroundPosition="right center"},onMouseLeave:function(){this.refs.valueElement.getDOMNode().className=""},componentDidMount:function(){document.addEventListener("click",this.openOrClose)},componentWillUnmount:function(){document.removeEventListener("click",this.openOrClose)},selectValue:function(e){for(var t=this.refs.valuesList.getDOMNode(),n=e.target,r=!1;!r&&null!=n;){if(n.parentNode==t){r=!0;break}n=n.parentNode}if(r){var a=n.textContent,i=this.refs.valueElement.getDOMNode();i.textContent!=a&&(i.textContent=a,this.props.onValueChanged&&this.props.onValueChanged(a))}},render:function(){for(var e=[],t=0;t<this.props.values.length;t++)e.push(React.createElement("li",{dangerouslySetInnerHTML:{__html:this.props.values[t]}}));return React.createElement("div",{className:"orb-select"},React.createElement("div",{ref:"valueElement",dangerouslySetInnerHTML:{__html:this.props.selectedValue},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave}),React.createElement("ul",{ref:"valuesList",style:{display:"none"},onClick:this.selectValue},e))}}),t.exports.Grid=i.createClass({render:function(){var e=this.props.data,t=this.props.headers,n=this.props.theme.getGridClasses(),r=[];if(t&&t.length>0){for(var a=[],i=0;i<t.length;i++)a.push(React.createElement("th",{key:"h"+i},t[i]));r.push(React.createElement("tr",{key:"h"},a))}if(e&&e.length>0)for(var o=0;o<e.length;o++){for(var s=[],l=0;l<e[o].length;l++)s.push(React.createElement("td",{key:o+""+l},e[o][l]));r.push(React.createElement("tr",{key:o},s))}return React.createElement("table",{className:n.table},React.createElement("tbody",null,r))}});var y=t.exports.Dialog=i.createClass({statics:{create:function(){var e=React.createFactory(y),t=a();return{show:function(n){React.render(e(n),t)}}}},overlayElement:null,setOverlayClass:function(e){this.overlayElement.className=this.props.theme.getDialogClasses(e).overlay},componentDidMount:function(){this.overlayElement=this.getDOMNode().parentNode,this.setOverlayClass(!0),this.overlayElement.addEventListener("click",this.close);var e=this.overlayElement.children[0],t=e.children[0].children[1],n=Math.max(document.documentElement.clientWidth,window.innerWidth||0),r=Math.max(document.documentElement.clientHeight,window.innerHeight||0),a=2*r/3;a=301>a?301:a;var i=e.offsetWidth+(e.offsetHeight>a?11:0),o=e.offsetHeight>a?a:e.offsetHeight;e.style.top=(r>o?(r-o)/2:0)+"px",e.style.left=(n>i?(n-i)/2:0)+"px",e.style.height=o+"px",t.style.width=i+"px",t.style.height=o-45+"px"},close:function(e){(e.target==this.overlayElement||"button-close"===e.target.className)&&(this.overlayElement.removeEventListener("click",this.close),React.unmountComponentAtNode(this.overlayElement),this.setOverlayClass(!1))},render:function(){if(this.props.comp){var e=React.createElement(this.props.comp.type,this.props.comp.props),t=this.props.theme.getDialogClasses();return React.createElement("div",{className:t.dialog,style:this.props.style||{}},React.createElement("div",{className:t.content},React.createElement("div",{className:t.header},React.createElement("div",{className:"button-close",onClick:this.close}),React.createElement("div",{className:t.title},this.props.title)),React.createElement("div",{className:t.body},e)))}}});t.exports.Toolbar=i.createClass({onThemeChanged:function(e){this.props.pivotTableComp.changeTheme(e)},render:function(){var t=p.Dropdown,n=e("../orb.themes").themes,r=[];for(var a in n)r.push('<div style="float: left; width: 16px; height: 16px; margin-right: 3px; border: 1px dashed lightgray; background-color: '+n[a]+'"></div><div style="float: left;">'+a+"</div>");r.push('<div style="float: left; width: 16px; height: 16px; margin-right: 3px; border: 1px dashed lightgray;"></div><div style="float: left;">bootstrap</div>');var i=[React.createElement("div",{className:"orb-tlbr-btn",style:{width:101}},React.createElement(t,{values:r,selectedValue:"Theme",onValueChanged:this.onThemeChanged}))];return React.createElement("div",null,i)}})},{"../orb.axe":3,"../orb.filtering":6,"../orb.themes":10,"../orb.ui.header":12,"../orb.utils":15,"./orb.react.utils":17,react:void 0}],17:[function(e,t){t.exports.forEach=function(e,t,n){var r;if(null!=e)for(var a=0,i=e.length;i>a&&(r=t(e[a],a),void 0===r||n!==!0);a++);return r},t.exports.getOffset=function(e){if(null!=e){var t=e.getBoundingClientRect();return{x:t.left+0,y:t.top+0}}return{x:0,y:0}},t.exports.getSize=function(e){if(null!=e){var t=e.getBoundingClientRect();return{width:t.right-t.left,height:t.bottom-t.top}}return{x:0,y:0}}},{}]},{},[1])(1)});
//# sourceMappingURL=orb.min.js.map