diff --git a/client/dist/js/bundle.js b/client/dist/js/bundle.js index 611473f2..bb9bb25f 100644 --- a/client/dist/js/bundle.js +++ b/client/dist/js/bundle.js @@ -1 +1 @@ -!function(e){function t(s){if(o[s])return o[s].exports;var n=o[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var o={};t.m=e,t.c=o,t.d=function(e,o,s){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="./client/src/bundles/bundle.js")}({"./client/src/boot/index.js":function(e,t,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}var n=o("./client/src/boot/registerComponents.js"),r=s(n),l=o("./client/src/boot/registerReducers.js"),a=s(l);window.document.addEventListener("DOMContentLoaded",function(){(0,r.default)(),(0,a.default)()})},"./client/src/boot/registerComponents.js":function(e,t,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=o("lib/Injector"),r=s(n),l=o("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/HistoryViewer/HistoryViewer.js"),a=s(l),i=o("./client/src/components/HistoryViewer/HistoryViewerHeading.js"),d=s(i),u=o("./client/src/components/HistoryViewer/HistoryViewerVersion.js"),c=s(u),p=o("./client/src/components/HistoryViewer/HistoryViewerVersionDetail.js"),h=s(p),m=o("./client/src/components/HistoryViewer/HistoryViewerVersionList.js"),f=s(m),_=o("./client/src/components/HistoryViewer/HistoryViewerVersionState.js"),g=s(_);t.default=function(){r.default.component.registerMany({HistoryViewer:a.default,HistoryViewerHeading:d.default,HistoryViewerVersion:c.default,HistoryViewerVersionDetail:h.default,HistoryViewerVersionList:f.default,HistoryViewerVersionState:g.default})}},"./client/src/boot/registerReducers.js":function(e,t,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=o("lib/Injector"),r=s(n),l=o("redux"),a=o("./client/src/state/historyviewer/HistoryViewerReducer.js"),i=s(a),d=function(){r.default.reducer.register("versionedAdmin",(0,l.combineReducers)({historyViewer:i.default}))};t.default=d},"./client/src/bundles/bundle.js":function(e,t,o){"use strict";o("./node_modules/expose-loader/index.js?HistoryViewer!./client/src/components/HistoryViewer/HistoryViewer.js-exposed"),o("./node_modules/expose-loader/index.js?versionType!./client/src/types/versionType.js-exposed"),o("./client/src/legacy/HistoryViewer/HistoryViewerEntwine.js"),o("./client/src/boot/index.js")},"./client/src/components/HistoryViewer/HistoryViewerHeading.js":function(e,t,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=o("i18n"),r=s(n),l=o("react"),a=s(l),i=function(e){return a.default.createElement("tr",null,a.default.createElement("th",null,"#"),a.default.createElement("th",null,r.default._t("HistoryViewer.Record","Record")),a.default.createElement("th",null,r.default._t("HistoryViewer.Author","Author")),e.hasActions?a.default.createElement("th",null):null)};i.propTypes={hasActions:a.default.PropTypes.bool},i.defaultProps={hasActions:!1},t.default=i},"./client/src/components/HistoryViewer/HistoryViewerVersion.js":function(e,t,o){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return{onSelect:function(t){e((0,m.setCurrentVersion)(t))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var a=function(){function e(e,t){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.type,s=t.payload;switch(o){case l.default.SET_CURRENT_VERSION:return n({},e,{currentVersion:s.id});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0}},{key:"getMetadataColumnProperty",value:function(e,t,o){var s=this.getColumnMetadataByName(e);return void 0===s||null===s?o:s.hasOwnProperty(t)?s[t]:o}},{key:"orderColumns",value:function(e){var t=this;return i(e,function(e){var o=a(t.columnMetadata,{columnName:e});return void 0===o||null===o||isNaN(o.order)?100:o.order})}},{key:"getColumns",value:function(){var e=0===this.filteredColumns.length?this.allColumns:this.filteredColumns;return e=d(e,this.metadataColumns),e=this.orderColumns(e)}}]),e}();e.exports=u},"./node_modules/griddle-react/modules/customFilterContainer.jsx.js":function(e,t,o){"use strict";var s=o("react"),n=s.createClass({displayName:"CustomFilterContainer",getDefaultProps:function(){return{placeholderText:""}},render:function(){var e=this;return"function"!=typeof e.props.customFilterComponent?(console.log("Couldn't find valid template."),s.createElement("div",null)):s.createElement(e.props.customFilterComponent,{changeFilter:this.props.changeFilter,results:this.props.results,currentResults:this.props.currentResults,placeholderText:this.props.placeholderText})}});e.exports=n},"./node_modules/griddle-react/modules/customPaginationContainer.jsx.js":function(e,t,o){"use strict";var s=Object.assign||function(e){for(var t=1;t0&&(e=s.createElement("button",{type:"button",onClick:this.props.previous,style:this.props.useGriddleStyles?{color:"#222",border:"none",background:"none",margin:"0 0 0 10px"}:null},this.props.previousIconComponent,this.props.previousText)),this.props.currentPage!==this.props.maxPage-1&&(t=s.createElement("button",{type:"button",onClick:this.props.next,style:this.props.useGriddleStyles?{color:"#222",border:"none",background:"none",margin:"0 10px 0 0"}:null},this.props.nextText,this.props.nextIconComponent));var o=null,r=null,l=null;if(!0===this.props.useGriddleStyles){var a={float:"left",minHeight:"1px",marginTop:"5px"};l=n({textAlign:"right",width:"34%"},a),r=n({textAlign:"center",width:"33%"},a),o=n({width:"33%"},a)}for(var i=[],d=1;d<=this.props.maxPage;d++)i.push(s.createElement("option",{value:d,key:d},d));return s.createElement("div",{style:this.props.useGriddleStyles?{minHeight:"35px"}:null},s.createElement("div",{className:this.props.previousClassName,style:o},e),s.createElement("div",{className:"griddle-page",style:r},s.createElement("select",{value:this.props.currentPage+1,onChange:this.pageChange},i)," / ",this.props.maxPage),s.createElement("div",{className:this.props.nextClassName,style:l},t))}});e.exports=r},"./node_modules/griddle-react/modules/gridRow.jsx.js":function(e,t,o){"use strict";var s=o("react"),n=(o("./node_modules/griddle-react/modules/columnProperties.js"),o("./node_modules/griddle-react/modules/deep.js")),r=o("./node_modules/lodash/isFunction.js"),l=o("./node_modules/lodash/zipObject.js"),a=o("./node_modules/lodash/assign.js"),i=o("./node_modules/lodash/defaults.js"),d=o("./node_modules/lodash/toPairs.js"),u=o("./node_modules/lodash/without.js"),c=s.createClass({displayName:"GridRow",getDefaultProps:function(){return{isChildRow:!1,showChildren:!1,data:{},columnSettings:null,rowSettings:null,hasChildren:!1,useGriddleStyles:!0,useGriddleIcons:!0,isSubGriddle:!1,paddingHeight:null,rowHeight:null,parentRowCollapsedClassName:"parent-row",parentRowExpandedClassName:"parent-row expanded",parentRowCollapsedComponent:"▶",parentRowExpandedComponent:"▼",onRowClick:null,multipleSelectionSettings:null}},handleClick:function(e){null!==this.props.onRowClick&&r(this.props.onRowClick)?this.props.onRowClick(this,e):this.props.hasChildren&&this.props.toggleChildren()},handleSelectionChange:function(e){},handleSelectClick:function(e){this.props.multipleSelectionSettings.isMultipleSelection&&("checkbox"===e.target.type?this.props.multipleSelectionSettings.toggleSelectRow(this.props.data,this.refs.selected.checked):this.props.multipleSelectionSettings.toggleSelectRow(this.props.data,!this.refs.selected.checked))},verifyProps:function(){null===this.props.columnSettings&&console.error("gridRow: The columnSettings prop is null and it shouldn't be")},formatData:function(e){return"boolean"==typeof e?String(e):e},render:function(){var e=this;this.verifyProps();var t=this,o=null;this.props.useGriddleStyles&&(o={margin:"0px",padding:t.props.paddingHeight+"px 5px "+t.props.paddingHeight+"px 5px",height:t.props.rowHeight?this.props.rowHeight-2*t.props.paddingHeight+"px":null,backgroundColor:"#FFF",borderTopColor:"#DDD",color:"#222"});var c=this.props.columnSettings.getColumns(),p=l(c,[]),h=a({},this.props.data);i(h,p);var m,f,_=d(n.pick(h,u(c,"children"))),g=_.map(function(t,n){var r=null,l=e.props.columnSettings.getColumnMetadataByName(t[0]),i=0===n&&e.props.hasChildren&&!1===e.props.showChildren&&e.props.useGriddleIcons?s.createElement("span",{style:e.props.useGriddleStyles?{fontSize:"10px",marginRight:"5px"}:null},e.props.parentRowCollapsedComponent):0===n&&e.props.hasChildren&&e.props.showChildren&&e.props.useGriddleIcons?s.createElement("span",{style:e.props.useGriddleStyles?{fontSize:"10px"}:null},e.props.parentRowExpandedComponent):"";if(0===n&&e.props.isChildRow&&e.props.useGriddleStyles&&(o=a(o,{paddingLeft:10})),e.props.columnSettings.hasColumnMetadata()&&void 0!==l&&null!==l)if(void 0!==l.customComponent&&null!==l.customComponent){var d=s.createElement(l.customComponent,{data:t[1],rowData:h,metadata:l});r=s.createElement("td",{onClick:e.handleClick,className:l.cssClassName,key:n,style:o},d)}else r=s.createElement("td",{onClick:e.handleClick,className:l.cssClassName,key:n,style:o},i,e.formatData(t[1]));return r||s.createElement("td",{onClick:e.handleClick,key:n,style:o},i,t[1])});null!==this.props.onRowClick&&r(this.props.onRowClick)?(m=null,f=this.handleSelectClick):this.props.multipleSelectionSettings&&this.props.multipleSelectionSettings.isMultipleSelection?(m=this.handleSelectClick,f=null):(m=null,f=null),g&&this.props.multipleSelectionSettings&&this.props.multipleSelectionSettings.isMultipleSelection&&(this.props.multipleSelectionSettings.getSelectedRowIds(),g.unshift(s.createElement("td",{key:"selection",style:o,className:"griddle-select griddle-select-cell",onClick:f},s.createElement("input",{type:"checkbox",checked:this.props.multipleSelectionSettings.getIsRowChecked(h),onChange:this.handleSelectionChange,ref:"selected"}))));var j=t.props.rowSettings&&t.props.rowSettings.getBodyRowMetadataClass(t.props.data)||"standard-row";return t.props.isChildRow?j="child-row":t.props.hasChildren&&(j=t.props.showChildren?this.props.parentRowExpandedClassName:this.props.parentRowCollapsedClassName),s.createElement("tr",{onClick:m,className:j},g)}});e.exports=c},"./node_modules/griddle-react/modules/gridRowContainer.jsx.js":function(e,t,o){"use strict";var s=o("react"),n=(o("./node_modules/griddle-react/modules/columnProperties.js"),o("./node_modules/lodash/pick.js")),r=s.createClass({displayName:"GridRowContainer",getDefaultProps:function(){return{useGriddleStyles:!0,useGriddleIcons:!0,isSubGriddle:!1,columnSettings:null,rowSettings:null,paddingHeight:null,rowHeight:null,parentRowCollapsedClassName:"parent-row",parentRowExpandedClassName:"parent-row expanded",parentRowCollapsedComponent:"▶",parentRowExpandedComponent:"▼",onRowClick:null,multipleSelectionSettings:null}},getInitialState:function(){return{data:{},showChildren:!1}},componentWillReceiveProps:function(){this.setShowChildren(!1)},toggleChildren:function(){this.setShowChildren(!1===this.state.showChildren)},setShowChildren:function(e){this.setState({showChildren:e})},verifyProps:function(){null===this.props.columnSettings&&console.error("gridRowContainer: The columnSettings prop is null and it shouldn't be")},render:function(){this.verifyProps();var e=this;if(void 0===this.props.data)return s.createElement("tbody",null);var t=[],o=this.props.columnSettings.getColumns();t.push(s.createElement(this.props.rowSettings.rowComponent,{useGriddleStyles:this.props.useGriddleStyles,isSubGriddle:this.props.isSubGriddle,data:this.props.rowSettings.isCustom?n(this.props.data,o):this.props.data,rowData:this.props.rowSettings.isCustom?this.props.data:null,columnSettings:this.props.columnSettings,rowSettings:this.props.rowSettings,hasChildren:e.props.hasChildren,toggleChildren:e.toggleChildren,showChildren:e.state.showChildren,key:e.props.uniqueId+"_base_row",useGriddleIcons:e.props.useGriddleIcons,parentRowExpandedClassName:this.props.parentRowExpandedClassName,parentRowCollapsedClassName:this.props.parentRowCollapsedClassName,parentRowExpandedComponent:this.props.parentRowExpandedComponent,parentRowCollapsedComponent:this.props.parentRowCollapsedComponent,paddingHeight:e.props.paddingHeight,rowHeight:e.props.rowHeight,onRowClick:e.props.onRowClick,multipleSelectionSettings:this.props.multipleSelectionSettings}));var r=null;return e.state.showChildren&&(r=e.props.hasChildren&&this.props.data.children.map(function(t,o){var n=e.props.rowSettings.getRowKey(t,o);if(void 0!==t.children){var r=e.constructor.Griddle;return s.createElement("tr",{key:n,style:{paddingLeft:5}},s.createElement("td",{colSpan:e.props.columnSettings.getVisibleColumnCount(),className:"griddle-parent",style:e.props.useGriddleStyles?{border:"none",padding:"0 0 0 5px"}:null},s.createElement(r,{rowMetadata:{key:"id"},isSubGriddle:!0,results:[t],columns:e.props.columnSettings.getColumns(),tableClassName:e.props.tableClassName,parentRowExpandedClassName:e.props.parentRowExpandedClassName,parentRowCollapsedClassName:e.props.parentRowCollapsedClassName,showTableHeading:!1,showPager:!1,columnMetadata:e.props.columnSettings.columnMetadata,parentRowExpandedComponent:e.props.parentRowExpandedComponent,parentRowCollapsedComponent:e.props.parentRowCollapsedComponent,paddingHeight:e.props.paddingHeight,rowHeight:e.props.rowHeight})))}return s.createElement(e.props.rowSettings.rowComponent,{useGriddleStyles:e.props.useGriddleStyles,isSubGriddle:e.props.isSubGriddle,data:t,columnSettings:e.props.columnSettings,isChildRow:!0,columnMetadata:e.props.columnSettings.columnMetadata,key:n})})),!1===e.props.hasChildren?t[0]:s.createElement("tbody",null,e.state.showChildren?t.concat(r):t)}});e.exports=r},"./node_modules/griddle-react/modules/gridSettings.jsx.js":function(e,t,o){"use strict";var s=o("react"),n=o("./node_modules/lodash/includes.js"),r=o("./node_modules/lodash/without.js"),l=o("./node_modules/lodash/find.js"),a=s.createClass({displayName:"GridSettings",getDefaultProps:function(){return{columns:[],columnMetadata:[],selectedColumns:[],settingsText:"",maxRowsText:"",resultsPerPage:0,enableToggleCustom:!1,useCustomComponent:!1,useGriddleStyles:!0,toggleCustomComponent:function(){}}},setPageSize:function(e){var t=parseInt(e.target.value,10);this.props.setPageSize(t)},handleChange:function(e){var t=e.target.dataset?e.target.dataset.name:e.target.getAttribute("data-name");!0===e.target.checked&&!1===n(this.props.selectedColumns,t)?(this.props.selectedColumns.push(t),this.props.setColumns(this.props.selectedColumns)):this.props.setColumns(r(this.props.selectedColumns,t))},render:function(){var e=this,t=[];!1===e.props.useCustomComponent&&(t=this.props.columns.map(function(t,o){var r=n(e.props.selectedColumns,t),a=l(e.props.columnMetadata,{columnName:t}),i=t;return void 0!==a&&void 0!==a.displayName&&null!=a.displayName&&(i=a.displayName),void 0!==a&&null!=a&&a.locked?s.createElement("div",{className:"column checkbox"},s.createElement("label",null,s.createElement("input",{type:"checkbox",disabled:!0,name:"check",checked:r,"data-name":t}),i)):void 0!==a&&null!=a&&void 0!==a.visible&&!1===a.visible?null:s.createElement("div",{className:"griddle-column-selection checkbox",key:t,style:e.props.useGriddleStyles?{float:"left",width:"20%"}:null},s.createElement("label",null,s.createElement("input",{type:"checkbox",name:"check",onChange:e.handleChange,checked:r,"data-name":t}),i))}));var o=e.props.enableToggleCustom?s.createElement("div",{className:"form-group"},s.createElement("label",{htmlFor:"maxRows"},s.createElement("input",{type:"checkbox",checked:this.props.useCustomComponent,onChange:this.props.toggleCustomComponent})," ",this.props.enableCustomFormatText)):"",r=this.props.showSetPageSize?s.createElement("div",null,s.createElement("label",{htmlFor:"maxRows"},this.props.maxRowsText,":",s.createElement("select",{onChange:this.setPageSize,value:this.props.resultsPerPage},s.createElement("option",{value:"5"},"5"),s.createElement("option",{value:"10"},"10"),s.createElement("option",{value:"25"},"25"),s.createElement("option",{value:"50"},"50"),s.createElement("option",{value:"100"},"100")))):"";return s.createElement("div",{className:"griddle-settings",style:this.props.useGriddleStyles?{backgroundColor:"#FFF",border:"1px solid #DDD",color:"#222",padding:"10px",marginBottom:"10px"}:null},s.createElement("h6",null,this.props.settingsText),s.createElement("div",{className:"griddle-columns",style:this.props.useGriddleStyles?{clear:"both",display:"table",width:"100%",borderBottom:"1px solid #EDEDED",marginBottom:"10px"}:null},t),r,o)}});e.exports=a},"./node_modules/griddle-react/modules/gridTable.jsx.js":function(e,t,o){"use strict";var s=o("react"),n=o("./node_modules/griddle-react/modules/gridTitle.jsx.js"),r=o("./node_modules/griddle-react/modules/gridRowContainer.jsx.js"),l=(o("./node_modules/griddle-react/modules/columnProperties.js"),o("./node_modules/griddle-react/modules/rowProperties.js"),s.createClass({displayName:"GridTable",getDefaultProps:function(){return{data:[],columnSettings:null,rowSettings:null,sortSettings:null,multipleSelectionSettings:null,className:"",enableInfiniteScroll:!1,nextPage:null,hasMorePages:!1,useFixedHeader:!1,useFixedLayout:!0,paddingHeight:null,rowHeight:null,filterByColumn:null,infiniteScrollLoadTreshold:null,bodyHeight:null,useGriddleStyles:!0,useGriddleIcons:!0,isSubGriddle:!1,parentRowCollapsedClassName:"parent-row",parentRowExpandedClassName:"parent-row expanded",parentRowCollapsedComponent:"▶",parentRowExpandedComponent:"▼",externalLoadingComponent:null,externalIsLoading:!1,onRowClick:null}},getInitialState:function(){return{scrollTop:0,scrollHeight:this.props.bodyHeight,clientHeight:this.props.bodyHeight}},componentDidMount:function(){this.gridScroll()},componentDidUpdate:function(e,t){this.gridScroll()},gridScroll:function(){if(this.props.enableInfiniteScroll&&!this.props.externalIsLoading){var e=this.refs.scrollable,t=e.scrollTop,o=e.scrollHeight,s=e.clientHeight;if(null!==this.props.rowHeight&&this.state.scrollTop!==t&&Math.abs(this.state.scrollTop-t)>=this.getAdjustedRowHeight()){var n={scrollTop:t,scrollHeight:o,clientHeight:s};this.setState(n)}.6*(o-(t+s)-this.props.infiniteScrollLoadTreshold)<=this.props.infiniteScrollLoadTreshold&&this.props.nextPage()}},verifyProps:function(){null===this.props.columnSettings&&console.error("gridTable: The columnSettings prop is null and it shouldn't be"),null===this.props.rowSettings&&console.error("gridTable: The rowSettings prop is null and it shouldn't be")},getAdjustedRowHeight:function(){return this.props.rowHeight+2*this.props.paddingHeight},getNodeContent:function(){this.verifyProps();var e=this,t=!1;if(!this.props.externalIsLoading||this.props.enableInfiniteScroll){var o=e.props.data,n=null,l=null;if(this.props.enableInfiniteScroll&&null!==this.props.rowHeight&&void 0!==this.refs.scrollable){var a=e.getAdjustedRowHeight(),i=Math.ceil(e.state.clientHeight/a),d=Math.max(0,Math.floor(e.state.scrollTop/a)-.25*i),u=Math.min(d+1.25*i,this.props.data.length-1);o=o.slice(d,u+1);var c={height:d*a+"px"};n=s.createElement("tr",{key:"above-"+c.height,style:c});var p={height:(this.props.data.length-u)*a+"px"};l=s.createElement("tr",{key:"below-"+p.height,style:p})}var h=o.map(function(o,n){var l=void 0!==o.children&&o.children.length>0,a=e.props.rowSettings.getRowKey(o,n);return l&&(t=l),s.createElement(r,{useGriddleStyles:e.props.useGriddleStyles,isSubGriddle:e.props.isSubGriddle,parentRowExpandedClassName:e.props.parentRowExpandedClassName,parentRowCollapsedClassName:e.props.parentRowCollapsedClassName,parentRowExpandedComponent:e.props.parentRowExpandedComponent,parentRowCollapsedComponent:e.props.parentRowCollapsedComponent,data:o,key:a+"-container",uniqueId:a,columnSettings:e.props.columnSettings,rowSettings:e.props.rowSettings,paddingHeight:e.props.paddingHeight,multipleSelectionSettings:e.props.multipleSelectionSettings,rowHeight:e.props.rowHeight,hasChildren:l,tableClassName:e.props.className,onRowClick:e.props.onRowClick})});if(this.props.showNoData){var m=this.props.columnSettings.getVisibleColumnCount();h.push(s.createElement("tr",{key:"no-data-section"},s.createElement("td",{colSpan:m},this.props.noDataSection)))}return n&&h.unshift(n),l&&h.push(l),{nodes:h,anyHasChildren:t}}return null},render:function(){var e=[],t=!1,o=this.getNodeContent();o&&(e=o.nodes,t=o.anyHasChildren);var r=null,l=null,a={width:"100%"};if(this.props.useFixedLayout&&(a.tableLayout="fixed"),this.props.enableInfiniteScroll&&(r={position:"relative",overflowY:"scroll",height:this.props.bodyHeight+"px",width:"100%"}),this.props.externalIsLoading){var i=null,d=null;this.props.useGriddleStyles&&(i={textAlign:"center",paddingBottom:"40px"}),d=this.props.columnSettings.getVisibleColumnCount();var u=this.props.externalLoadingComponent?s.createElement(this.props.externalLoadingComponent,null):s.createElement("div",null,"Loading...");l=s.createElement("tbody",null,s.createElement("tr",null,s.createElement("td",{style:i,colSpan:d},u)))}var c=this.props.showTableHeading?s.createElement(n,{useGriddleStyles:this.props.useGriddleStyles,useGriddleIcons:this.props.useGriddleIcons,sortSettings:this.props.sortSettings,multipleSelectionSettings:this.props.multipleSelectionSettings,columnSettings:this.props.columnSettings,filterByColumn:this.props.filterByColumn,rowSettings:this.props.rowSettings}):void 0;t||(e=s.createElement("tbody",null,e));var p=s.createElement("tbody",null);if(this.props.showPager){var h=this.props.useGriddleStyles?{padding:"0px",backgroundColor:"#EDEDED",border:"0px",color:"#222",height:this.props.showNoData?"20px":null}:null;p=s.createElement("tbody",null,s.createElement("tr",null,s.createElement("td",{colSpan:this.props.multipleSelectionSettings.isMultipleSelection?this.props.columnSettings.getVisibleColumnCount()+1:this.props.columnSettings.getVisibleColumnCount(),style:h,className:"footer-container"},this.props.showNoData?null:this.props.pagingContent)))}return this.props.useFixedHeader?(this.props.useGriddleStyles&&(a.tableLayout="fixed"),s.createElement("div",null,s.createElement("table",{className:this.props.className,style:this.props.useGriddleStyles&&a||null},c),s.createElement("div",{ref:"scrollable",onScroll:this.gridScroll,style:r},s.createElement("table",{className:this.props.className,style:this.props.useGriddleStyles&&a||null},e,l,p)))):s.createElement("div",{ref:"scrollable",onScroll:this.gridScroll,style:r},s.createElement("table",{className:this.props.className,style:this.props.useGriddleStyles&&a||null},c,e,l,p))}}));e.exports=l},"./node_modules/griddle-react/modules/gridTitle.jsx.js":function(e,t,o){"use strict";var s=Object.assign||function(e){for(var t=1;t=0)return!0;return!1})},defaultColumnFilter:function(e,t){return A(g.getObjectValues(e),function(e){return e.toString().toLowerCase().indexOf(t.toLowerCase())>=0}).length>0},filterByColumnFilters:function(e){var t=this.defaultColumnFilter,o=Object.keys(e).reduce(function(o,s){return A(o,function(o){var n=g.getAt(o,s||""),r=e[s];return t(n,r)})},this.props.results),s={columnFilters:e};e?(s.filteredResults=o,s.maxPage=this.getMaxPage(s.filteredResults)):this.state.filter?s.filteredResults=this.props.useCustomFilterer?this.props.customFilterer(this.props.results,filter):this.defaultFilter(this.props.results,filter):s.filteredResults=null,this.setState(s)},filterByColumn:function(e,t){var o=this.state.columnFilters;if(o.hasOwnProperty(t)&&!e)o=E(o,t);else{var s={};s[t]=e,o=k({},o,s)}this.filterByColumnFilters(o)},setFilter:function(e){if(this.props.useExternal)return void this.props.externalSetFilter(e);var t=this,o={page:0,filter:e};o.filteredResults=this.props.useCustomFilterer?this.props.customFilterer(this.props.results,e):this.defaultFilter(this.props.results,e),o.maxPage=t.getMaxPage(o.filteredResults),(O(e)||T(e)||P(e))&&(o.filter=e,o.filteredResults=null),t.setState(o),this._resetSelectedRows()},setPageSize:function(e){if(this.props.useExternal)return this.setState({resultsPerPage:e}),void this.props.externalSetPageSize(e);this.state.resultsPerPage=e,this.setMaxPage()},toggleColumnChooser:function(){this.setState({showColumnChooser:!this.state.showColumnChooser})},isNullOrUndefined:function(e){return void 0===e||null===e},shouldUseCustomRowComponent:function(){return this.isNullOrUndefined(this.state.useCustomRowComponent)?this.props.useCustomRowComponent:this.state.useCustomRowComponent},shouldUseCustomGridComponent:function(){return this.isNullOrUndefined(this.state.useCustomGridComponent)?this.props.useCustomGridComponent:this.state.useCustomGridComponent},toggleCustomComponent:function(){"grid"===this.state.customComponentType?this.setState({useCustomGridComponent:!this.shouldUseCustomGridComponent()}):"row"===this.state.customComponentType&&this.setState({useCustomRowComponent:!this.shouldUseCustomRowComponent()})},getMaxPage:function(e,t){return this.props.useExternal?this.props.externalMaxPage:(t||(t=(e||this.getCurrentResults()).length),Math.ceil(t/this.state.resultsPerPage))},setMaxPage:function(e){var t=this.getMaxPage(e);this.state.maxPage!==t&&this.setState({page:0,maxPage:t,filteredColumns:this.columnSettings.filteredColumns})},setPage:function(e){if(this.props.useExternal)return void this.props.externalSetPage(e);if(e*this.state.resultsPerPage<=this.state.resultsPerPage*this.state.maxPage){var t=this,o={page:e};t.setState(o)}this.props.enableInfiniteScroll&&this.setState({isSelectAllChecked:!1})},setColumns:function(e){this.columnSettings.filteredColumns=S(e)?e:[e],this.setState({filteredColumns:this.columnSettings.filteredColumns})},nextPage:function(){var e=this.getCurrentPage();e0&&this.setPage(e-1)},changeSort:function(e){if(!1!==this.props.enableSort){if(this.props.useExternal){var t=this.props.externalSortColumn!==e||!this.props.externalSortAscending;return this.setState({sortColumn:e,sortDirection:t?"asc":"desc"}),void this.props.externalChangeSort(e,t)}var o=v(this.props.columnMetadata,{columnName:e})||{},s=o.sortDirectionCycle?o.sortDirectionCycle:[null,"asc","desc"],n=null,r=s.indexOf(this.state.sortDirection&&e===this.state.sortColumn?this.state.sortDirection:null);r=(r+1)%s.length,n=s[r]?s[r]:null;var l={page:0,sortColumn:e,sortDirection:n};this.setState(l)}},componentWillReceiveProps:function(e){if(this.setMaxPage(e.results),e.resultsPerPage!==this.props.resultsPerPage&&this.setPageSize(e.resultsPerPage),this.columnSettings.columnMetadata=e.columnMetadata,e.results.length>0){var t=g.keys(e.results[0]);this.columnSettings.allColumns.length==t.length&&this.columnSettings.allColumns.every(function(e,o){return e===t[o]})||(this.columnSettings.allColumns=t)}else this.columnSettings.allColumns.length>0&&(this.columnSettings.allColumns=[]);if(e.selectedRowIds){var o=this.getDataForRender(this.getCurrentResults(e.results),this.columnSettings.getColumns(),!0);this.setState({isSelectAllChecked:this._getAreAllRowsChecked(e.selectedRowIds,R(o,this.props.uniqueIdentifier)),selectedRowIds:e.selectedRowIds})}},getInitialState:function(){return{maxPage:0,page:0,filteredResults:null,filteredColumns:[],filter:"",columnFilters:{},resultsPerPage:this.props.resultsPerPage||5,showColumnChooser:!1,isSelectAllChecked:!1,selectedRowIds:this.props.selectedRowIds}},componentWillMount:function(){this.verifyExternal(),this.verifyCustom(),this.columnSettings=new f(this.props.results.length>0?g.keys(this.props.results[0]):[],this.props.columns,this.props.childrenColumnName,this.props.columnMetadata,this.props.metadataColumns),this.rowSettings=new _(this.props.rowMetadata,this.props.useCustomTableRowComponent&&this.props.customTableRowComponent?this.props.customTableRowComponent:u,this.props.useCustomTableRowComponent),this.props.initialSort&&(this.props.useExternal?this.setState({sortColumn:this.props.externalSortColumn,sortDirection:this.props.externalSortAscending?"asc":"desc"}):this.changeSort(this.props.initialSort)),this.setMaxPage(),this.shouldUseCustomGridComponent()?this.setState({customComponentType:"grid"}):this.shouldUseCustomRowComponent()?this.setState({customComponentType:"row"}):this.setState({filteredColumns:this.columnSettings.filteredColumns})},componentDidMount:function(){if(this.props.componentDidMount&&"function"==typeof this.props.componentDidMount)return this.props.componentDidMount()},componentDidUpdate:function(){if(this.props.componentDidUpdate&&"function"==typeof this.props.componentDidUpdate)return this.props.componentDidUpdate(this.state)},verifyExternal:function(){!0===this.props.useExternal&&(null===this.props.externalSetPage&&console.error("useExternal is set to true but there is no externalSetPage function specified."),null===this.props.externalChangeSort&&console.error("useExternal is set to true but there is no externalChangeSort function specified."),null===this.props.externalSetFilter&&console.error("useExternal is set to true but there is no externalSetFilter function specified."),null===this.props.externalSetPageSize&&console.error("useExternal is set to true but there is no externalSetPageSize function specified."),null===this.props.externalMaxPage&&console.error("useExternal is set to true but externalMaxPage is not set."),null===this.props.externalCurrentPage&&console.error("useExternal is set to true but externalCurrentPage is not set. Griddle will not page correctly without that property when using external data."))},verifyCustom:function(){!0===this.props.useCustomGridComponent&&null===this.props.customGridComponent&&console.error("useCustomGridComponent is set to true but no custom component was specified."),!0===this.props.useCustomRowComponent&&null===this.props.customRowComponent&&console.error("useCustomRowComponent is set to true but no custom component was specified."),!0===this.props.useCustomGridComponent&&!0===this.props.useCustomRowComponent&&console.error("Cannot currently use both customGridComponent and customRowComponent."),!0===this.props.useCustomFilterer&&null===this.props.customFilterer&&console.error("useCustomFilterer is set to true but no custom filter function was specified."),!0===this.props.useCustomFilterComponent&&null===this.props.customFilterComponent&&console.error("useCustomFilterComponent is set to true but no customFilterComponent was specified.")},getDataForRender:function(e,t,o){var s=this,n=this;if(""!==this.state.sortColumn){var r,l=this.state.sortColumn,a=A(this.props.columnMetadata,{columnName:l}),i={columns:[],orders:[]};if(a.length>0&&(r=a[0].hasOwnProperty("customCompareFn")&&a[0].customCompareFn,a[0].multiSort&&(i=a[0].multiSort)),this.state.sortDirection)if("function"==typeof r)2===r.length?(e=e.sort(function(e,t){return r(I(e,l),I(t,l))}),"desc"===this.state.sortDirection&&e.reverse()):1===r.length&&(e=N(e,function(e){return r(I(e,l))},[this.state.sortDirection]));else{var d=[function(e){return(I(e,l)||"").toString().toLowerCase()}],u=[this.state.sortDirection];i.columns.forEach(function(e,t){d.push(function(t){return(I(t,e)||"").toString().toLowerCase()}),"asc"===i.orders[t]||"desc"===i.orders[t]?u.push(i.orders[t]):u.push(s.state.sortDirection)}),e=N(e,d,u)}}var c=this.getCurrentPage();if(!this.props.useExternal&&o&&this.state.resultsPerPage*(c+1)<=this.state.resultsPerPage*this.state.maxPage&&c>=0)if(this.isInfiniteScrollEnabled())e=b(e,(c+1)*this.state.resultsPerPage);else{var p=j(e,c*this.state.resultsPerPage);e=(y||x)(p,p.length-this.state.resultsPerPage)}for(var h=(this.columnSettings.getMetadataColumns,[]),m=0;m0&&(f.children=n.getDataForRender(f[n.props.childrenColumnName],t,!1),"children"!==n.props.childrenColumnName&&delete f[n.props.childrenColumnName]),h.push(f)}return h},getCurrentResults:function(e){return this.state.filteredResults||e||this.props.results},getCurrentPage:function(){return this.props.externalCurrentPage||this.state.page},getCurrentSort:function(){return this.props.useExternal?this.props.externalSortColumn:this.state.sortColumn},getCurrentSortAscending:function(){return this.props.useExternal?this.props.externalSortAscending:"asc"===this.state.sortDirection},getCurrentMaxPage:function(){return this.props.useExternal?this.props.externalMaxPage:this.state.maxPage},getSortObject:function(){return{enableSort:this.props.enableSort,changeSort:this.changeSort,sortColumn:this.getCurrentSort(),sortAscending:this.getCurrentSortAscending(),sortDirection:this.state.sortDirection,sortAscendingClassName:this.props.sortAscendingClassName,sortDescendingClassName:this.props.sortDescendingClassName,sortAscendingComponent:this.props.sortAscendingComponent,sortDescendingComponent:this.props.sortDescendingComponent,sortDefaultComponent:this.props.sortDefaultComponent}},_toggleSelectAll:function(){var e=this.getDataForRender(this.getCurrentResults(),this.columnSettings.getColumns(),!0),t=!this.state.isSelectAllChecked,o=JSON.parse(JSON.stringify(this.state.selectedRowIds)),s=this;C(e,function(e){s._updateSelectedRowIds(e[s.props.uniqueIdentifier],o,t)},this),this.setState({isSelectAllChecked:t,selectedRowIds:o}),this.props.onSelectionChange&&this.props.onSelectionChange(o,t)},_toggleSelectRow:function(e,t){var o=this.getDataForRender(this.getCurrentResults(),this.columnSettings.getColumns(),!0),s=JSON.parse(JSON.stringify(this.state.selectedRowIds));this._updateSelectedRowIds(e[this.props.uniqueIdentifier],s,t);var n=this._getAreAllRowsChecked(s,R(o,this.props.uniqueIdentifier));this.setState({isSelectAllChecked:n,selectedRowIds:s}),this.props.onSelectionChange&&this.props.onSelectionChange(s,n)},_updateSelectedRowIds:function(e,t,o){o?void 0===v(t,function(t){return e===t})&&t.push(e):t.splice(t.indexOf(e),1)},_getIsSelectAllChecked:function(){return this.state.isSelectAllChecked},_getAreAllRowsChecked:function(e,t){return t.length===w(t,e).length},_getIsRowChecked:function(e){return this.state.selectedRowIds.indexOf(e[this.props.uniqueIdentifier])>-1},getSelectedRowIds:function(){return this.state.selectedRowIds},_resetSelectedRows:function(){this.setState({isSelectAllChecked:!1,selectedRowIds:[]})},getMultipleSelectionObject:function(){return{isMultipleSelection:!v(this.props.results,function(e){return"children"in e})&&this.props.isMultipleSelection,toggleSelectAll:this._toggleSelectAll,getIsSelectAllChecked:this._getIsSelectAllChecked,toggleSelectRow:this._toggleSelectRow,getSelectedRowIds:this.getSelectedRowIds,getIsRowChecked:this._getIsRowChecked}},isInfiniteScrollEnabled:function(){return!this.props.useCustomPagerComponent&&this.props.enableInfiniteScroll},getClearFixStyles:function(){return{clear:"both",display:"table",width:"100%"}},getSettingsStyles:function(){return{float:"left",width:"50%",textAlign:"right"}},getFilterStyles:function(){return{float:"left",width:"50%",textAlign:"left",color:"#222",minHeight:"1px"}},getFilter:function(){return this.props.showFilter&&!1===this.shouldUseCustomGridComponent()?this.props.useCustomFilterComponent?n.createElement(m,{changeFilter:this.setFilter,placeholderText:this.props.filterPlaceholderText,customFilterComponent:this.props.customFilterComponent,results:this.props.results,currentResults:this.getCurrentResults()}):n.createElement(l,{changeFilter:this.setFilter,placeholderText:this.props.filterPlaceholderText}):""},getSettings:function(){return this.props.showSettings?n.createElement("button",{type:"button",className:this.props.settingsToggleClassName,onClick:this.toggleColumnChooser,style:this.props.useGriddleStyles?{background:"none",border:"none",padding:0,margin:0,fontSize:14}:null},this.props.settingsText,this.props.settingsIconComponent):""},getTopSection:function(e,t){if(!1===this.props.showFilter&&!1===this.props.showSettings)return"";var o=null,s=null,r=null;return this.props.useGriddleStyles&&(o=this.getFilterStyles(),s=this.getSettingsStyles(),r=this.getClearFixStyles()),n.createElement("div",{className:"top-section",style:r},n.createElement("div",{className:"griddle-filter",style:o},e),n.createElement("div",{className:"griddle-settings-toggle",style:s},t))},getPagingSection:function(e,t){if(!1!==(this.props.showPager&&!this.isInfiniteScrollEnabled()&&!this.shouldUseCustomGridComponent()))return n.createElement("div",{className:"griddle-footer"},this.props.useCustomPagerComponent?n.createElement(h,{customPagerComponentOptions:this.props.customPagerComponentOptions,next:this.nextPage,previous:this.previousPage,currentPage:e,maxPage:t,setPage:this.setPage,nextText:this.props.nextText,previousText:this.props.previousText,customPagerComponent:this.props.customPagerComponent}):n.createElement(a,{useGriddleStyles:this.props.useGriddleStyles,next:this.nextPage,previous:this.previousPage,nextClassName:this.props.nextClassName,nextIconComponent:this.props.nextIconComponent,previousClassName:this.props.previousClassName,previousIconComponent:this.props.previousIconComponent,currentPage:e,maxPage:t,setPage:this.setPage,nextText:this.props.nextText,previousText:this.props.previousText}))},getColumnSelectorSection:function(e,t){return this.state.showColumnChooser?n.createElement(i,{columns:e,selectedColumns:t,setColumns:this.setColumns,settingsText:this.props.settingsText,settingsIconComponent:this.props.settingsIconComponent,maxRowsText:this.props.maxRowsText,setPageSize:this.setPageSize,showSetPageSize:!this.shouldUseCustomGridComponent(),resultsPerPage:this.state.resultsPerPage,enableToggleCustom:this.props.enableToggleCustom,toggleCustomComponent:this.toggleCustomComponent,useCustomComponent:this.shouldUseCustomRowComponent()||this.shouldUseCustomGridComponent(),useGriddleStyles:this.props.useGriddleStyles,enableCustomFormatText:this.props.enableCustomFormatText,columnMetadata:this.props.columnMetadata}):""},getCustomGridSection:function(){return n.createElement(this.props.customGridComponent,s({data:this.props.results,className:this.props.customGridComponentClassName},this.props.gridMetadata))},getCustomRowSection:function(e,t,o,s,r){return n.createElement("div",null,n.createElement(p,{data:e,columns:t,metadataColumns:o,globalData:r,className:this.props.customRowComponentClassName,customComponent:this.props.customRowComponent,style:this.props.useGriddleStyles?this.getClearFixStyles():null}),this.props.showPager&&s)},getStandardGridSection:function(e,t,o,s,l){var a=this.getSortObject(),i=this.getMultipleSelectionObject(),d=this.shouldShowNoDataSection(e),u=this.getNoDataSection();return n.createElement("div",{className:"griddle-body"},n.createElement(r,{useGriddleStyles:this.props.useGriddleStyles,noDataSection:u,showNoData:d,columnSettings:this.columnSettings,rowSettings:this.rowSettings,sortSettings:a,multipleSelectionSettings:i,filterByColumn:this.filterByColumn,isSubGriddle:this.props.isSubGriddle,useGriddleIcons:this.props.useGriddleIcons,useFixedLayout:this.props.useFixedLayout,showPager:this.props.showPager,pagingContent:s,data:e,className:this.props.tableClassName,enableInfiniteScroll:this.isInfiniteScrollEnabled(),nextPage:this.nextPage,showTableHeading:this.props.showTableHeading,useFixedHeader:this.props.useFixedHeader,parentRowCollapsedClassName:this.props.parentRowCollapsedClassName,parentRowExpandedClassName:this.props.parentRowExpandedClassName,parentRowCollapsedComponent:this.props.parentRowCollapsedComponent,parentRowExpandedComponent:this.props.parentRowExpandedComponent,bodyHeight:this.props.bodyHeight,paddingHeight:this.props.paddingHeight,rowHeight:this.props.rowHeight,infiniteScrollLoadTreshold:this.props.infiniteScrollLoadTreshold,externalLoadingComponent:this.props.externalLoadingComponent,externalIsLoading:this.props.externalIsLoading,hasMorePages:l,onRowClick:this.props.onRowClick}))},getContentSection:function(e,t,o,s,n,r){return this.shouldUseCustomGridComponent()&&null!==this.props.customGridComponent?this.getCustomGridSection():this.shouldUseCustomRowComponent()?this.getCustomRowSection(e,t,o,s,r):this.getStandardGridSection(e,t,o,s,n)},getNoDataSection:function(){return null!=this.props.customNoDataComponent?n.createElement("div",{className:this.props.noDataClassName},n.createElement(this.props.customNoDataComponent,this.props.customNoDataComponentProps)):n.createElement(d,{noDataMessage:this.props.noDataMessage})},shouldShowNoDataSection:function(e){return!this.props.allowEmptyGrid&&(!1===this.props.useExternal&&(void 0===e||0===e.length)||!0===this.props.useExternal&&!1===this.props.externalIsLoading&&0===e.length)},render:function(){var e=this.getCurrentResults(),t=(this.props.tableClassName,this.getFilter()),o=this.getSettings(),s=this.getTopSection(t,o),r=[],l=this.columnSettings.getColumns(),a=this.getDataForRender(e,l,!0),i=this.columnSettings.getMetadataColumns();this.props.columnMetadata?C(this.props.columnMetadata,function(e){"boolean"==typeof e.visible&&!1===e.visible||r.push(e.columnName)}):r=g.keys(E(e[0],i)),r=this.columnSettings.orderColumns(r);var d=this.getCurrentPage(),u=this.getCurrentMaxPage(),c=d+10?"griddle "+this.props.gridClassName:"griddle";return f+=this.shouldUseCustomRowComponent()?" griddle-custom":"",n.createElement("div",{className:f},s,m,n.createElement("div",{className:"griddle-container",style:this.props.useGriddleStyles&&!this.props.isSubGriddle?{border:"1px solid #DDD"}:null},h))}});c.Griddle=e.exports=M},"./node_modules/griddle-react/modules/rowProperties.js":function(e,t,o){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function e(e,t){for(var o=0;o-1}var n=o("./node_modules/lodash/_baseIndexOf.js");e.exports=s},"./node_modules/lodash/_arrayIncludesWith.js":function(e,t){function o(e,t,o){for(var s=-1,n=null==e?0:e.length;++s=u&&(p=d,h=!1,t=new n(t));e:for(;++c0&&o(u)?t>1?s(u,t-1,o,l,a):n(a,u):l||(a[a.length]=u)}return a}var n=o("./node_modules/lodash/_arrayPush.js"),r=o("./node_modules/lodash/_isFlattenable.js");e.exports=s},"./node_modules/lodash/_baseFor.js":function(e,t,o){var s=o("./node_modules/lodash/_createBaseFor.js"),n=s();e.exports=n},"./node_modules/lodash/_baseForOwn.js":function(e,t,o){function s(e,t){return e&&n(e,t,r)}var n=o("./node_modules/lodash/_baseFor.js"),r=o("./node_modules/lodash/keys.js");e.exports=s},"./node_modules/lodash/_baseGet.js":function(e,t,o){function s(e,t){t=n(t,e);for(var o=0,s=t.length;null!=e&&o=120&&g.length>=120)?new n(h&&g):void 0}g=e[0];var j=-1,y=m[0];e:for(;++jn?0:n+t),o=o>n?n:o,o<0&&(o+=n),n=t>o?0:o-t>>>0,t>>>=0;for(var r=Array(n);++st||l&&a&&d&&!i&&!u||s&&a&&d||!o&&d||!r)return 1;if(!s&&!l&&!u&&e=i?d:d*("desc"==o[s]?-1:1)}return e.index-t.index}var n=o("./node_modules/lodash/_compareAscending.js");e.exports=s},"./node_modules/lodash/_copyArray.js":function(e,t){function o(e,t){var o=-1,s=e.length;for(t||(t=Array(s));++o1?o[n-1]:void 0,a=n>2?o[2]:void 0;for(l=e.length>3&&"function"==typeof l?(n--,l):void 0,a&&r(o[0],o[1],a)&&(l=n<3?void 0:l,n=1),t=Object(t);++s-1?a[i?t[d]:d]:void 0}}var n=o("./node_modules/lodash/_baseIteratee.js"),r=o("./node_modules/lodash/isArrayLike.js"),l=o("./node_modules/lodash/keys.js");e.exports=s},"./node_modules/lodash/_createToPairs.js":function(e,t,o){function s(e){return function(t){var o=r(t);return o==i?l(t):o==d?a(t):n(t,e(t))}}var n=o("./node_modules/lodash/_baseToPairs.js"),r=o("./node_modules/lodash/_getTag.js"),l=o("./node_modules/lodash/_mapToArray.js"),a=o("./node_modules/lodash/_setToPairs.js"),i="[object Map]",d="[object Set]";e.exports=s},"./node_modules/lodash/_customOmitClone.js":function(e,t,o){function s(e){return n(e)?void 0:e}var n=o("./node_modules/lodash/isPlainObject.js");e.exports=s},"./node_modules/lodash/_defineProperty.js":function(e,t,o){var s=o("./node_modules/lodash/_getNative.js"),n=function(){try{var e=s(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},"./node_modules/lodash/_equalArrays.js":function(e,t,o){function s(e,t,o,s,d,u){var c=o&a,p=e.length,h=t.length;if(p!=h&&!(c&&h>p))return!1;var m=u.get(e);if(m&&u.get(t))return m==t;var f=-1,_=!0,g=o&i?new n:void 0;for(u.set(e,t),u.set(t,e);++f-1&&e%1==0&&e-1}var n=o("./node_modules/lodash/_assocIndexOf.js");e.exports=s},"./node_modules/lodash/_listCacheSet.js":function(e,t,o){function s(e,t){var o=this.__data__,s=n(o,e);return s<0?(++this.size,o.push([e,t])):o[s][1]=t,this}var n=o("./node_modules/lodash/_assocIndexOf.js");e.exports=s},"./node_modules/lodash/_mapCacheClear.js":function(e,t,o){function s(){this.size=0,this.__data__={hash:new n,map:new(l||r),string:new n}}var n=o("./node_modules/lodash/_Hash.js"),r=o("./node_modules/lodash/_ListCache.js"),l=o("./node_modules/lodash/_Map.js");e.exports=s},"./node_modules/lodash/_mapCacheDelete.js":function(e,t,o){function s(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}var n=o("./node_modules/lodash/_getMapData.js");e.exports=s},"./node_modules/lodash/_mapCacheGet.js":function(e,t,o){function s(e){return n(this,e).get(e)}var n=o("./node_modules/lodash/_getMapData.js");e.exports=s},"./node_modules/lodash/_mapCacheHas.js":function(e,t,o){function s(e){return n(this,e).has(e)}var n=o("./node_modules/lodash/_getMapData.js");e.exports=s},"./node_modules/lodash/_mapCacheSet.js":function(e,t,o){function s(e,t){var o=n(this,e),s=o.size;return o.set(e,t),this.size+=o.size==s?0:1,this}var n=o("./node_modules/lodash/_getMapData.js");e.exports=s},"./node_modules/lodash/_mapToArray.js":function(e,t){function o(e){var t=-1,o=Array(e.size);return e.forEach(function(e,s){o[++t]=[s,e]}),o}e.exports=o},"./node_modules/lodash/_matchesStrictComparable.js":function(e,t){function o(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}e.exports=o},"./node_modules/lodash/_memoizeCapped.js":function(e,t,o){function s(e){var t=n(e,function(e){return o.size===r&&o.clear(),e}),o=t.cache;return t}var n=o("./node_modules/lodash/memoize.js"),r=500;e.exports=s},"./node_modules/lodash/_nativeCreate.js":function(e,t,o){var s=o("./node_modules/lodash/_getNative.js"),n=s(Object,"create");e.exports=n},"./node_modules/lodash/_nativeKeys.js":function(e,t,o){var s=o("./node_modules/lodash/_overArg.js"),n=s(Object.keys,Object);e.exports=n},"./node_modules/lodash/_nativeKeysIn.js":function(e,t){function o(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}e.exports=o},"./node_modules/lodash/_nodeUtil.js":function(e,t,o){(function(e){var s=o("./node_modules/lodash/_freeGlobal.js"),n="object"==typeof t&&t&&!t.nodeType&&t,r=n&&"object"==typeof e&&e&&!e.nodeType&&e,l=r&&r.exports===n,a=l&&s.process,i=function(){try{return r&&r.require&&r.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}).call(t,o("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/lodash/_objectToString.js":function(e,t){function o(e){return n.call(e)}var s=Object.prototype,n=s.toString;e.exports=o},"./node_modules/lodash/_overArg.js":function(e,t){function o(e,t){return function(o){return e(t(o))}}e.exports=o},"./node_modules/lodash/_overRest.js":function(e,t,o){function s(e,t,o){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,l=-1,a=r(s.length-t,0),i=Array(a);++l0){if(++t>=s)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var s=800,n=16,r=Date.now;e.exports=o},"./node_modules/lodash/_stackClear.js":function(e,t,o){function s(){this.__data__=new n,this.size=0}var n=o("./node_modules/lodash/_ListCache.js");e.exports=s},"./node_modules/lodash/_stackDelete.js":function(e,t){function o(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}e.exports=o},"./node_modules/lodash/_stackGet.js":function(e,t){function o(e){return this.__data__.get(e)}e.exports=o},"./node_modules/lodash/_stackHas.js":function(e,t){function o(e){return this.__data__.has(e)}e.exports=o},"./node_modules/lodash/_stackSet.js":function(e,t,o){function s(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length2?t[2]:void 0;for(d&&r(t[0],t[1],d)&&(s=1);++o-1:!!u&&n(e,t,o)>-1}var n=o("./node_modules/lodash/_baseIndexOf.js"),r=o("./node_modules/lodash/isArrayLike.js"),l=o("./node_modules/lodash/isString.js"),a=o("./node_modules/lodash/toInteger.js"),i=o("./node_modules/lodash/values.js"),d=Math.max;e.exports=s},"./node_modules/lodash/initial.js":function(e,t,o){function s(e){return(null==e?0:e.length)?n(e,0,-1):[]}var n=o("./node_modules/lodash/_baseSlice.js");e.exports=s},"./node_modules/lodash/intersection.js":function(e,t,o){var s=o("./node_modules/lodash/_arrayMap.js"),n=o("./node_modules/lodash/_baseIntersection.js"),r=o("./node_modules/lodash/_baseRest.js"),l=o("./node_modules/lodash/_castArrayLikeObject.js"),a=r(function(e){var t=s(e,l);return t.length&&t[0]===e[0]?n(t):[]});e.exports=a},"./node_modules/lodash/isArguments.js":function(e,t,o){var s=o("./node_modules/lodash/_baseIsArguments.js"),n=o("./node_modules/lodash/isObjectLike.js"),r=Object.prototype,l=r.hasOwnProperty,a=r.propertyIsEnumerable,i=s(function(){return arguments}())?s:function(e){return n(e)&&l.call(e,"callee")&&!a.call(e,"callee")};e.exports=i},"./node_modules/lodash/isArray.js":function(e,t){var o=Array.isArray;e.exports=o},"./node_modules/lodash/isArrayLike.js":function(e,t,o){function s(e){return null!=e&&r(e.length)&&!n(e)}var n=o("./node_modules/lodash/isFunction.js"),r=o("./node_modules/lodash/isLength.js");e.exports=s},"./node_modules/lodash/isArrayLikeObject.js":function(e,t,o){function s(e){return r(e)&&n(e)}var n=o("./node_modules/lodash/isArrayLike.js"),r=o("./node_modules/lodash/isObjectLike.js");e.exports=s},"./node_modules/lodash/isBuffer.js":function(e,t,o){(function(e){var s=o("./node_modules/lodash/_root.js"),n=o("./node_modules/lodash/stubFalse.js"),r="object"==typeof t&&t&&!t.nodeType&&t,l=r&&"object"==typeof e&&e&&!e.nodeType&&e,a=l&&l.exports===r,i=a?s.Buffer:void 0,d=i?i.isBuffer:void 0,u=d||n;e.exports=u}).call(t,o("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/lodash/isEmpty.js":function(e,t,o){function s(e){if(null==e)return!0;if(i(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||d(e)||c(e)||l(e)))return!e.length;var t=r(e);if(t==p||t==h)return!e.size;if(u(e))return!n(e).length;for(var o in e)if(f.call(e,o))return!1;return!0}var n=o("./node_modules/lodash/_baseKeys.js"),r=o("./node_modules/lodash/_getTag.js"),l=o("./node_modules/lodash/isArguments.js"),a=o("./node_modules/lodash/isArray.js"),i=o("./node_modules/lodash/isArrayLike.js"),d=o("./node_modules/lodash/isBuffer.js"),u=o("./node_modules/lodash/_isPrototype.js"),c=o("./node_modules/lodash/isTypedArray.js"),p="[object Map]",h="[object Set]",m=Object.prototype,f=m.hasOwnProperty;e.exports=s},"./node_modules/lodash/isFunction.js":function(e,t,o){function s(e){if(!r(e))return!1;var t=n(e);return t==a||t==i||t==l||t==d}var n=o("./node_modules/lodash/_baseGetTag.js"),r=o("./node_modules/lodash/isObject.js"),l="[object AsyncFunction]",a="[object Function]",i="[object GeneratorFunction]",d="[object Proxy]";e.exports=s},"./node_modules/lodash/isLength.js":function(e,t){function o(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}var s=9007199254740991;e.exports=o},"./node_modules/lodash/isMap.js":function(e,t,o){var s=o("./node_modules/lodash/_baseIsMap.js"),n=o("./node_modules/lodash/_baseUnary.js"),r=o("./node_modules/lodash/_nodeUtil.js"),l=r&&r.isMap,a=l?n(l):s;e.exports=a},"./node_modules/lodash/isNull.js":function(e,t){function o(e){return null===e}e.exports=o},"./node_modules/lodash/isObject.js":function(e,t){function o(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=o},"./node_modules/lodash/isObjectLike.js":function(e,t){function o(e){return null!=e&&"object"==typeof e}e.exports=o},"./node_modules/lodash/isPlainObject.js":function(e,t,o){function s(e){if(!l(e)||n(e)!=a)return!1;var t=r(e);if(null===t)return!0;var o=c.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&u.call(o)==p}var n=o("./node_modules/lodash/_baseGetTag.js"),r=o("./node_modules/lodash/_getPrototype.js"),l=o("./node_modules/lodash/isObjectLike.js"),a="[object Object]",i=Function.prototype,d=Object.prototype,u=i.toString,c=d.hasOwnProperty,p=u.call(Object);e.exports=s},"./node_modules/lodash/isSet.js":function(e,t,o){var s=o("./node_modules/lodash/_baseIsSet.js"),n=o("./node_modules/lodash/_baseUnary.js"),r=o("./node_modules/lodash/_nodeUtil.js"),l=r&&r.isSet,a=l?n(l):s;e.exports=a},"./node_modules/lodash/isString.js":function(e,t,o){function s(e){return"string"==typeof e||!r(e)&&l(e)&&n(e)==a}var n=o("./node_modules/lodash/_baseGetTag.js"),r=o("./node_modules/lodash/isArray.js"),l=o("./node_modules/lodash/isObjectLike.js"),a="[object String]";e.exports=s},"./node_modules/lodash/isSymbol.js":function(e,t,o){function s(e){return"symbol"==typeof e||r(e)&&n(e)==l}var n=o("./node_modules/lodash/_baseGetTag.js"),r=o("./node_modules/lodash/isObjectLike.js"),l="[object Symbol]";e.exports=s},"./node_modules/lodash/isTypedArray.js":function(e,t,o){var s=o("./node_modules/lodash/_baseIsTypedArray.js"),n=o("./node_modules/lodash/_baseUnary.js"),r=o("./node_modules/lodash/_nodeUtil.js"),l=r&&r.isTypedArray,a=l?n(l):s;e.exports=a},"./node_modules/lodash/isUndefined.js":function(e,t){function o(e){return void 0===e}e.exports=o},"./node_modules/lodash/keys.js":function(e,t,o){function s(e){return l(e)?n(e):r(e)}var n=o("./node_modules/lodash/_arrayLikeKeys.js"),r=o("./node_modules/lodash/_baseKeys.js"),l=o("./node_modules/lodash/isArrayLike.js");e.exports=s},"./node_modules/lodash/keysIn.js":function(e,t,o){function s(e){return l(e)?n(e,!0):r(e)}var n=o("./node_modules/lodash/_arrayLikeKeys.js"),r=o("./node_modules/lodash/_baseKeysIn.js"),l=o("./node_modules/lodash/isArrayLike.js");e.exports=s},"./node_modules/lodash/last.js":function(e,t){function o(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=o},"./node_modules/lodash/map.js":function(e,t,o){function s(e,t){return(a(e)?n:l)(e,r(t,3))}var n=o("./node_modules/lodash/_arrayMap.js"),r=o("./node_modules/lodash/_baseIteratee.js"),l=o("./node_modules/lodash/_baseMap.js"),a=o("./node_modules/lodash/isArray.js");e.exports=s},"./node_modules/lodash/memoize.js":function(e,t,o){function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(r);var o=function(){var s=arguments,n=t?t.apply(this,s):s[0],r=o.cache;if(r.has(n))return r.get(n);var l=e.apply(this,s);return o.cache=r.set(n,l)||r,l};return o.cache=new(s.Cache||n),o}var n=o("./node_modules/lodash/_MapCache.js"),r="Expected a function";s.Cache=n,e.exports=s},"./node_modules/lodash/omit.js":function(e,t,o){var s=o("./node_modules/lodash/_arrayMap.js"),n=o("./node_modules/lodash/_baseClone.js"),r=o("./node_modules/lodash/_baseUnset.js"),l=o("./node_modules/lodash/_castPath.js"),a=o("./node_modules/lodash/_copyObject.js"),i=o("./node_modules/lodash/_customOmitClone.js"),d=o("./node_modules/lodash/_flatRest.js"),u=o("./node_modules/lodash/_getAllKeysIn.js"),c=d(function(e,t){var o={};if(null==e)return o;var d=!1;t=s(t,function(t){return t=l(t,e),d||(d=t.length>1),t}),a(e,u(e),o),d&&(o=n(o,7,i));for(var c=t.length;c--;)r(o,t[c]);return o});e.exports=c},"./node_modules/lodash/orderBy.js":function(e,t,o){function s(e,t,o,s){return null==e?[]:(r(t)||(t=null==t?[]:[t]),o=s?void 0:o,r(o)||(o=null==o?[]:[o]),n(e,t,o))}var n=o("./node_modules/lodash/_baseOrderBy.js"),r=o("./node_modules/lodash/isArray.js");e.exports=s},"./node_modules/lodash/pick.js":function(e,t,o){var s=o("./node_modules/lodash/_basePick.js"),n=o("./node_modules/lodash/_flatRest.js"),r=n(function(e,t){return null==e?{}:s(e,t)});e.exports=r},"./node_modules/lodash/property.js":function(e,t,o){function s(e){return l(e)?n(a(e)):r(e)}var n=o("./node_modules/lodash/_baseProperty.js"),r=o("./node_modules/lodash/_basePropertyDeep.js"),l=o("./node_modules/lodash/_isKey.js"),a=o("./node_modules/lodash/_toKey.js");e.exports=s},"./node_modules/lodash/sortBy.js":function(e,t,o){var s=o("./node_modules/lodash/_baseFlatten.js"),n=o("./node_modules/lodash/_baseOrderBy.js"),r=o("./node_modules/lodash/_baseRest.js"),l=o("./node_modules/lodash/_isIterateeCall.js"),a=r(function(e,t){if(null==e)return[];var o=t.length;return o>1&&l(e,t[0],t[1])?t=[]:o>2&&l(t[0],t[1],t[2])&&(t=[t[0]]),n(e,s(t,1),[])});e.exports=a},"./node_modules/lodash/stubArray.js":function(e,t){function o(){return[]}e.exports=o},"./node_modules/lodash/stubFalse.js":function(e,t){function o(){return!1}e.exports=o},"./node_modules/lodash/take.js":function(e,t,o){function s(e,t,o){return e&&e.length?(t=o||void 0===t?1:r(t),n(e,0,t<0?0:t)):[]}var n=o("./node_modules/lodash/_baseSlice.js"),r=o("./node_modules/lodash/toInteger.js");e.exports=s},"./node_modules/lodash/toFinite.js":function(e,t,o){function s(e){return e?(e=n(e))===r||e===-r?(e<0?-1:1)*l:e===e?e:0:0===e?e:0}var n=o("./node_modules/lodash/toNumber.js"),r=1/0,l=1.7976931348623157e308;e.exports=s},"./node_modules/lodash/toInteger.js":function(e,t,o){function s(e){var t=n(e),o=t%1;return t===t?o?t-o:t:0}var n=o("./node_modules/lodash/toFinite.js");e.exports=s},"./node_modules/lodash/toNumber.js":function(e,t,o){function s(e){if("number"==typeof e)return e;if(r(e))return l;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var o=d.test(e);return o||u.test(e)?c(e.slice(2),o?2:8):i.test(e)?l:+e}var n=o("./node_modules/lodash/isObject.js"),r=o("./node_modules/lodash/isSymbol.js"),l=NaN,a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=s},"./node_modules/lodash/toPairs.js":function(e,t,o){var s=o("./node_modules/lodash/_createToPairs.js"),n=o("./node_modules/lodash/keys.js"),r=s(n);e.exports=r},"./node_modules/lodash/toString.js":function(e,t,o){function s(e){return null==e?"":n(e)}var n=o("./node_modules/lodash/_baseToString.js");e.exports=s},"./node_modules/lodash/uniqueId.js":function(e,t,o){function s(e){var t=++r;return n(e)+t}var n=o("./node_modules/lodash/toString.js"),r=0;e.exports=s},"./node_modules/lodash/values.js":function(e,t,o){function s(e){return null==e?[]:n(e,r(e))}var n=o("./node_modules/lodash/_baseValues.js"),r=o("./node_modules/lodash/keys.js");e.exports=s},"./node_modules/lodash/without.js":function(e,t,o){var s=o("./node_modules/lodash/_baseDifference.js"),n=o("./node_modules/lodash/_baseRest.js"),r=o("./node_modules/lodash/isArrayLikeObject.js"),l=n(function(e,t){return r(e)?s(e,t):[]});e.exports=l},"./node_modules/lodash/zipObject.js":function(e,t,o){function s(e,t){return r(e||[],t||[],n)}var n=o("./node_modules/lodash/_assignValue.js"),r=o("./node_modules/lodash/_baseZipObject.js");e.exports=s},"./node_modules/webpack/buildin/global.js":function(e,t){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(o=window)}e.exports=o},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],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}}),e.webpackPolyfill=1),e}},classnames:function(e,t){e.exports=classnames},"components/Loading/Loading":function(e,t){e.exports=Loading},"components/Preview/Preview":function(e,t){e.exports=Preview},"containers/FormBuilderLoader/FormBuilderLoader":function(e,t){e.exports=FormBuilderLoader},i18n:function(e,t){e.exports=i18n},jquery:function(e,t){e.exports=jQuery},"lib/Config":function(e,t){e.exports=Config},"lib/Injector":function(e,t){e.exports=Injector},moment:function(e,t){e.exports=moment},react:function(e,t){e.exports=React},"react-dom":function(e,t){e.exports=ReactDom},"react-redux":function(e,t){e.exports=ReactRedux},redux:function(e,t){e.exports=Redux}}); \ No newline at end of file +!function(e){function t(s){if(o[s])return o[s].exports;var n=o[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var o={};t.m=e,t.c=o,t.d=function(e,o,s){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="./client/src/bundles/bundle.js")}({"./client/src/boot/index.js":function(e,t,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}var n=o("./client/src/boot/registerComponents.js"),r=s(n),l=o("./client/src/boot/registerReducers.js"),a=s(l);window.document.addEventListener("DOMContentLoaded",function(){(0,r.default)(),(0,a.default)()})},"./client/src/boot/registerComponents.js":function(e,t,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=o("lib/Injector"),r=s(n),l=o("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/HistoryViewer/HistoryViewer.js"),a=s(l),i=o("./client/src/components/HistoryViewer/HistoryViewerHeading.js"),d=s(i),u=o("./client/src/components/HistoryViewer/HistoryViewerVersion.js"),c=s(u),p=o("./client/src/components/HistoryViewer/HistoryViewerVersionDetail.js"),h=s(p),m=o("./client/src/components/HistoryViewer/HistoryViewerVersionList.js"),f=s(m),_=o("./client/src/components/HistoryViewer/HistoryViewerVersionState.js"),g=s(_);t.default=function(){r.default.component.registerMany({HistoryViewer:a.default,HistoryViewerHeading:d.default,HistoryViewerVersion:c.default,HistoryViewerVersionDetail:h.default,HistoryViewerVersionList:f.default,HistoryViewerVersionState:g.default})}},"./client/src/boot/registerReducers.js":function(e,t,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=o("lib/Injector"),r=s(n),l=o("redux"),a=o("./client/src/state/historyviewer/HistoryViewerReducer.js"),i=s(a),d=function(){r.default.reducer.register("versionedAdmin",(0,l.combineReducers)({historyViewer:i.default}))};t.default=d},"./client/src/bundles/bundle.js":function(e,t,o){"use strict";o("./node_modules/expose-loader/index.js?HistoryViewer!./client/src/components/HistoryViewer/HistoryViewer.js-exposed"),o("./node_modules/expose-loader/index.js?versionType!./client/src/types/versionType.js-exposed"),o("./client/src/legacy/HistoryViewer/HistoryViewerEntwine.js"),o("./client/src/boot/index.js")},"./client/src/components/HistoryViewer/HistoryViewerHeading.js":function(e,t,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=o("i18n"),r=s(n),l=o("react"),a=s(l),i=function(e){return a.default.createElement("tr",null,a.default.createElement("th",null,"#"),a.default.createElement("th",null,r.default._t("HistoryViewer.Record","Record")),a.default.createElement("th",null,r.default._t("HistoryViewer.Author","Author")),e.hasActions?a.default.createElement("th",null):null)};i.propTypes={hasActions:a.default.PropTypes.bool},i.defaultProps={hasActions:!1},t.default=i},"./client/src/components/HistoryViewer/HistoryViewerVersion.js":function(e,t,o){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return{onSelect:function(t){e((0,m.setCurrentVersion)(t))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var a=function(){function e(e,t){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.type,s=t.payload;switch(o){case l.default.SET_CURRENT_VERSION:return n({},e,{currentVersion:s.id});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0}},{key:"getMetadataColumnProperty",value:function(e,t,o){var s=this.getColumnMetadataByName(e);return void 0===s||null===s?o:s.hasOwnProperty(t)?s[t]:o}},{key:"orderColumns",value:function(e){var t=this;return i(e,function(e){var o=a(t.columnMetadata,{columnName:e});return void 0===o||null===o||isNaN(o.order)?100:o.order})}},{key:"getColumns",value:function(){var e=0===this.filteredColumns.length?this.allColumns:this.filteredColumns;return e=d(e,this.metadataColumns),e=this.orderColumns(e)}}]),e}();e.exports=u},"./node_modules/griddle-react/modules/customFilterContainer.jsx.js":function(e,t,o){"use strict";var s=o("react"),n=s.createClass({displayName:"CustomFilterContainer",getDefaultProps:function(){return{placeholderText:""}},render:function(){var e=this;return"function"!=typeof e.props.customFilterComponent?(console.log("Couldn't find valid template."),s.createElement("div",null)):s.createElement(e.props.customFilterComponent,{changeFilter:this.props.changeFilter,results:this.props.results,currentResults:this.props.currentResults,placeholderText:this.props.placeholderText})}});e.exports=n},"./node_modules/griddle-react/modules/customPaginationContainer.jsx.js":function(e,t,o){"use strict";var s=Object.assign||function(e){for(var t=1;t0&&(e=s.createElement("button",{type:"button",onClick:this.props.previous,style:this.props.useGriddleStyles?{color:"#222",border:"none",background:"none",margin:"0 0 0 10px"}:null},this.props.previousIconComponent,this.props.previousText)),this.props.currentPage!==this.props.maxPage-1&&(t=s.createElement("button",{type:"button",onClick:this.props.next,style:this.props.useGriddleStyles?{color:"#222",border:"none",background:"none",margin:"0 10px 0 0"}:null},this.props.nextText,this.props.nextIconComponent));var o=null,r=null,l=null;if(!0===this.props.useGriddleStyles){var a={float:"left",minHeight:"1px",marginTop:"5px"};l=n({textAlign:"right",width:"34%"},a),r=n({textAlign:"center",width:"33%"},a),o=n({width:"33%"},a)}for(var i=[],d=1;d<=this.props.maxPage;d++)i.push(s.createElement("option",{value:d,key:d},d));return s.createElement("div",{style:this.props.useGriddleStyles?{minHeight:"35px"}:null},s.createElement("div",{className:this.props.previousClassName,style:o},e),s.createElement("div",{className:"griddle-page",style:r},s.createElement("select",{value:this.props.currentPage+1,onChange:this.pageChange},i)," / ",this.props.maxPage),s.createElement("div",{className:this.props.nextClassName,style:l},t))}});e.exports=r},"./node_modules/griddle-react/modules/gridRow.jsx.js":function(e,t,o){"use strict";var s=o("react"),n=(o("./node_modules/griddle-react/modules/columnProperties.js"),o("./node_modules/griddle-react/modules/deep.js")),r=o("./node_modules/lodash/isFunction.js"),l=o("./node_modules/lodash/zipObject.js"),a=o("./node_modules/lodash/assign.js"),i=o("./node_modules/lodash/defaults.js"),d=o("./node_modules/lodash/toPairs.js"),u=o("./node_modules/lodash/without.js"),c=s.createClass({displayName:"GridRow",getDefaultProps:function(){return{isChildRow:!1,showChildren:!1,data:{},columnSettings:null,rowSettings:null,hasChildren:!1,useGriddleStyles:!0,useGriddleIcons:!0,isSubGriddle:!1,paddingHeight:null,rowHeight:null,parentRowCollapsedClassName:"parent-row",parentRowExpandedClassName:"parent-row expanded",parentRowCollapsedComponent:"▶",parentRowExpandedComponent:"▼",onRowClick:null,multipleSelectionSettings:null}},handleClick:function(e){null!==this.props.onRowClick&&r(this.props.onRowClick)?this.props.onRowClick(this,e):this.props.hasChildren&&this.props.toggleChildren()},handleSelectionChange:function(e){},handleSelectClick:function(e){this.props.multipleSelectionSettings.isMultipleSelection&&("checkbox"===e.target.type?this.props.multipleSelectionSettings.toggleSelectRow(this.props.data,this.refs.selected.checked):this.props.multipleSelectionSettings.toggleSelectRow(this.props.data,!this.refs.selected.checked))},verifyProps:function(){null===this.props.columnSettings&&console.error("gridRow: The columnSettings prop is null and it shouldn't be")},formatData:function(e){return"boolean"==typeof e?String(e):e},render:function(){var e=this;this.verifyProps();var t=this,o=null;this.props.useGriddleStyles&&(o={margin:"0px",padding:t.props.paddingHeight+"px 5px "+t.props.paddingHeight+"px 5px",height:t.props.rowHeight?this.props.rowHeight-2*t.props.paddingHeight+"px":null,backgroundColor:"#FFF",borderTopColor:"#DDD",color:"#222"});var c=this.props.columnSettings.getColumns(),p=l(c,[]),h=a({},this.props.data);i(h,p);var m,f,_=d(n.pick(h,u(c,"children"))),g=_.map(function(t,n){var r=null,l=e.props.columnSettings.getColumnMetadataByName(t[0]),i=0===n&&e.props.hasChildren&&!1===e.props.showChildren&&e.props.useGriddleIcons?s.createElement("span",{style:e.props.useGriddleStyles?{fontSize:"10px",marginRight:"5px"}:null},e.props.parentRowCollapsedComponent):0===n&&e.props.hasChildren&&e.props.showChildren&&e.props.useGriddleIcons?s.createElement("span",{style:e.props.useGriddleStyles?{fontSize:"10px"}:null},e.props.parentRowExpandedComponent):"";if(0===n&&e.props.isChildRow&&e.props.useGriddleStyles&&(o=a(o,{paddingLeft:10})),e.props.columnSettings.hasColumnMetadata()&&void 0!==l&&null!==l)if(void 0!==l.customComponent&&null!==l.customComponent){var d=s.createElement(l.customComponent,{data:t[1],rowData:h,metadata:l});r=s.createElement("td",{onClick:e.handleClick,className:l.cssClassName,key:n,style:o},d)}else r=s.createElement("td",{onClick:e.handleClick,className:l.cssClassName,key:n,style:o},i,e.formatData(t[1]));return r||s.createElement("td",{onClick:e.handleClick,key:n,style:o},i,t[1])});null!==this.props.onRowClick&&r(this.props.onRowClick)?(m=null,f=this.handleSelectClick):this.props.multipleSelectionSettings&&this.props.multipleSelectionSettings.isMultipleSelection?(m=this.handleSelectClick,f=null):(m=null,f=null),g&&this.props.multipleSelectionSettings&&this.props.multipleSelectionSettings.isMultipleSelection&&(this.props.multipleSelectionSettings.getSelectedRowIds(),g.unshift(s.createElement("td",{key:"selection",style:o,className:"griddle-select griddle-select-cell",onClick:f},s.createElement("input",{type:"checkbox",checked:this.props.multipleSelectionSettings.getIsRowChecked(h),onChange:this.handleSelectionChange,ref:"selected"}))));var j=t.props.rowSettings&&t.props.rowSettings.getBodyRowMetadataClass(t.props.data)||"standard-row";return t.props.isChildRow?j="child-row":t.props.hasChildren&&(j=t.props.showChildren?this.props.parentRowExpandedClassName:this.props.parentRowCollapsedClassName),s.createElement("tr",{onClick:m,className:j},g)}});e.exports=c},"./node_modules/griddle-react/modules/gridRowContainer.jsx.js":function(e,t,o){"use strict";var s=o("react"),n=(o("./node_modules/griddle-react/modules/columnProperties.js"),o("./node_modules/lodash/pick.js")),r=s.createClass({displayName:"GridRowContainer",getDefaultProps:function(){return{useGriddleStyles:!0,useGriddleIcons:!0,isSubGriddle:!1,columnSettings:null,rowSettings:null,paddingHeight:null,rowHeight:null,parentRowCollapsedClassName:"parent-row",parentRowExpandedClassName:"parent-row expanded",parentRowCollapsedComponent:"▶",parentRowExpandedComponent:"▼",onRowClick:null,multipleSelectionSettings:null}},getInitialState:function(){return{data:{},showChildren:!1}},componentWillReceiveProps:function(){this.setShowChildren(!1)},toggleChildren:function(){this.setShowChildren(!1===this.state.showChildren)},setShowChildren:function(e){this.setState({showChildren:e})},verifyProps:function(){null===this.props.columnSettings&&console.error("gridRowContainer: The columnSettings prop is null and it shouldn't be")},render:function(){this.verifyProps();var e=this;if(void 0===this.props.data)return s.createElement("tbody",null);var t=[],o=this.props.columnSettings.getColumns();t.push(s.createElement(this.props.rowSettings.rowComponent,{useGriddleStyles:this.props.useGriddleStyles,isSubGriddle:this.props.isSubGriddle,data:this.props.rowSettings.isCustom?n(this.props.data,o):this.props.data,rowData:this.props.rowSettings.isCustom?this.props.data:null,columnSettings:this.props.columnSettings,rowSettings:this.props.rowSettings,hasChildren:e.props.hasChildren,toggleChildren:e.toggleChildren,showChildren:e.state.showChildren,key:e.props.uniqueId+"_base_row",useGriddleIcons:e.props.useGriddleIcons,parentRowExpandedClassName:this.props.parentRowExpandedClassName,parentRowCollapsedClassName:this.props.parentRowCollapsedClassName,parentRowExpandedComponent:this.props.parentRowExpandedComponent,parentRowCollapsedComponent:this.props.parentRowCollapsedComponent,paddingHeight:e.props.paddingHeight,rowHeight:e.props.rowHeight,onRowClick:e.props.onRowClick,multipleSelectionSettings:this.props.multipleSelectionSettings}));var r=null;return e.state.showChildren&&(r=e.props.hasChildren&&this.props.data.children.map(function(t,o){var n=e.props.rowSettings.getRowKey(t,o);if(void 0!==t.children){var r=e.constructor.Griddle;return s.createElement("tr",{key:n,style:{paddingLeft:5}},s.createElement("td",{colSpan:e.props.columnSettings.getVisibleColumnCount(),className:"griddle-parent",style:e.props.useGriddleStyles?{border:"none",padding:"0 0 0 5px"}:null},s.createElement(r,{rowMetadata:{key:"id"},isSubGriddle:!0,results:[t],columns:e.props.columnSettings.getColumns(),tableClassName:e.props.tableClassName,parentRowExpandedClassName:e.props.parentRowExpandedClassName,parentRowCollapsedClassName:e.props.parentRowCollapsedClassName,showTableHeading:!1,showPager:!1,columnMetadata:e.props.columnSettings.columnMetadata,parentRowExpandedComponent:e.props.parentRowExpandedComponent,parentRowCollapsedComponent:e.props.parentRowCollapsedComponent,paddingHeight:e.props.paddingHeight,rowHeight:e.props.rowHeight})))}return s.createElement(e.props.rowSettings.rowComponent,{useGriddleStyles:e.props.useGriddleStyles,isSubGriddle:e.props.isSubGriddle,data:t,columnSettings:e.props.columnSettings,isChildRow:!0,columnMetadata:e.props.columnSettings.columnMetadata,key:n})})),!1===e.props.hasChildren?t[0]:s.createElement("tbody",null,e.state.showChildren?t.concat(r):t)}});e.exports=r},"./node_modules/griddle-react/modules/gridSettings.jsx.js":function(e,t,o){"use strict";var s=o("react"),n=o("./node_modules/lodash/includes.js"),r=o("./node_modules/lodash/without.js"),l=o("./node_modules/lodash/find.js"),a=s.createClass({displayName:"GridSettings",getDefaultProps:function(){return{columns:[],columnMetadata:[],selectedColumns:[],settingsText:"",maxRowsText:"",resultsPerPage:0,enableToggleCustom:!1,useCustomComponent:!1,useGriddleStyles:!0,toggleCustomComponent:function(){}}},setPageSize:function(e){var t=parseInt(e.target.value,10);this.props.setPageSize(t)},handleChange:function(e){var t=e.target.dataset?e.target.dataset.name:e.target.getAttribute("data-name");!0===e.target.checked&&!1===n(this.props.selectedColumns,t)?(this.props.selectedColumns.push(t),this.props.setColumns(this.props.selectedColumns)):this.props.setColumns(r(this.props.selectedColumns,t))},render:function(){var e=this,t=[];!1===e.props.useCustomComponent&&(t=this.props.columns.map(function(t,o){var r=n(e.props.selectedColumns,t),a=l(e.props.columnMetadata,{columnName:t}),i=t;return void 0!==a&&void 0!==a.displayName&&null!=a.displayName&&(i=a.displayName),void 0!==a&&null!=a&&a.locked?s.createElement("div",{className:"column checkbox"},s.createElement("label",null,s.createElement("input",{type:"checkbox",disabled:!0,name:"check",checked:r,"data-name":t}),i)):void 0!==a&&null!=a&&void 0!==a.visible&&!1===a.visible?null:s.createElement("div",{className:"griddle-column-selection checkbox",key:t,style:e.props.useGriddleStyles?{float:"left",width:"20%"}:null},s.createElement("label",null,s.createElement("input",{type:"checkbox",name:"check",onChange:e.handleChange,checked:r,"data-name":t}),i))}));var o=e.props.enableToggleCustom?s.createElement("div",{className:"form-group"},s.createElement("label",{htmlFor:"maxRows"},s.createElement("input",{type:"checkbox",checked:this.props.useCustomComponent,onChange:this.props.toggleCustomComponent})," ",this.props.enableCustomFormatText)):"",r=this.props.showSetPageSize?s.createElement("div",null,s.createElement("label",{htmlFor:"maxRows"},this.props.maxRowsText,":",s.createElement("select",{onChange:this.setPageSize,value:this.props.resultsPerPage},s.createElement("option",{value:"5"},"5"),s.createElement("option",{value:"10"},"10"),s.createElement("option",{value:"25"},"25"),s.createElement("option",{value:"50"},"50"),s.createElement("option",{value:"100"},"100")))):"";return s.createElement("div",{className:"griddle-settings",style:this.props.useGriddleStyles?{backgroundColor:"#FFF",border:"1px solid #DDD",color:"#222",padding:"10px",marginBottom:"10px"}:null},s.createElement("h6",null,this.props.settingsText),s.createElement("div",{className:"griddle-columns",style:this.props.useGriddleStyles?{clear:"both",display:"table",width:"100%",borderBottom:"1px solid #EDEDED",marginBottom:"10px"}:null},t),r,o)}});e.exports=a},"./node_modules/griddle-react/modules/gridTable.jsx.js":function(e,t,o){"use strict";var s=o("react"),n=o("./node_modules/griddle-react/modules/gridTitle.jsx.js"),r=o("./node_modules/griddle-react/modules/gridRowContainer.jsx.js"),l=(o("./node_modules/griddle-react/modules/columnProperties.js"),o("./node_modules/griddle-react/modules/rowProperties.js"),s.createClass({displayName:"GridTable",getDefaultProps:function(){return{data:[],columnSettings:null,rowSettings:null,sortSettings:null,multipleSelectionSettings:null,className:"",enableInfiniteScroll:!1,nextPage:null,hasMorePages:!1,useFixedHeader:!1,useFixedLayout:!0,paddingHeight:null,rowHeight:null,filterByColumn:null,infiniteScrollLoadTreshold:null,bodyHeight:null,useGriddleStyles:!0,useGriddleIcons:!0,isSubGriddle:!1,parentRowCollapsedClassName:"parent-row",parentRowExpandedClassName:"parent-row expanded",parentRowCollapsedComponent:"▶",parentRowExpandedComponent:"▼",externalLoadingComponent:null,externalIsLoading:!1,onRowClick:null}},getInitialState:function(){return{scrollTop:0,scrollHeight:this.props.bodyHeight,clientHeight:this.props.bodyHeight}},componentDidMount:function(){this.gridScroll()},componentDidUpdate:function(e,t){this.gridScroll()},gridScroll:function(){if(this.props.enableInfiniteScroll&&!this.props.externalIsLoading){var e=this.refs.scrollable,t=e.scrollTop,o=e.scrollHeight,s=e.clientHeight;if(null!==this.props.rowHeight&&this.state.scrollTop!==t&&Math.abs(this.state.scrollTop-t)>=this.getAdjustedRowHeight()){var n={scrollTop:t,scrollHeight:o,clientHeight:s};this.setState(n)}.6*(o-(t+s)-this.props.infiniteScrollLoadTreshold)<=this.props.infiniteScrollLoadTreshold&&this.props.nextPage()}},verifyProps:function(){null===this.props.columnSettings&&console.error("gridTable: The columnSettings prop is null and it shouldn't be"),null===this.props.rowSettings&&console.error("gridTable: The rowSettings prop is null and it shouldn't be")},getAdjustedRowHeight:function(){return this.props.rowHeight+2*this.props.paddingHeight},getNodeContent:function(){this.verifyProps();var e=this,t=!1;if(!this.props.externalIsLoading||this.props.enableInfiniteScroll){var o=e.props.data,n=null,l=null;if(this.props.enableInfiniteScroll&&null!==this.props.rowHeight&&void 0!==this.refs.scrollable){var a=e.getAdjustedRowHeight(),i=Math.ceil(e.state.clientHeight/a),d=Math.max(0,Math.floor(e.state.scrollTop/a)-.25*i),u=Math.min(d+1.25*i,this.props.data.length-1);o=o.slice(d,u+1);var c={height:d*a+"px"};n=s.createElement("tr",{key:"above-"+c.height,style:c});var p={height:(this.props.data.length-u)*a+"px"};l=s.createElement("tr",{key:"below-"+p.height,style:p})}var h=o.map(function(o,n){var l=void 0!==o.children&&o.children.length>0,a=e.props.rowSettings.getRowKey(o,n);return l&&(t=l),s.createElement(r,{useGriddleStyles:e.props.useGriddleStyles,isSubGriddle:e.props.isSubGriddle,parentRowExpandedClassName:e.props.parentRowExpandedClassName,parentRowCollapsedClassName:e.props.parentRowCollapsedClassName,parentRowExpandedComponent:e.props.parentRowExpandedComponent,parentRowCollapsedComponent:e.props.parentRowCollapsedComponent,data:o,key:a+"-container",uniqueId:a,columnSettings:e.props.columnSettings,rowSettings:e.props.rowSettings,paddingHeight:e.props.paddingHeight,multipleSelectionSettings:e.props.multipleSelectionSettings,rowHeight:e.props.rowHeight,hasChildren:l,tableClassName:e.props.className,onRowClick:e.props.onRowClick})});if(this.props.showNoData){var m=this.props.columnSettings.getVisibleColumnCount();h.push(s.createElement("tr",{key:"no-data-section"},s.createElement("td",{colSpan:m},this.props.noDataSection)))}return n&&h.unshift(n),l&&h.push(l),{nodes:h,anyHasChildren:t}}return null},render:function(){var e=[],t=!1,o=this.getNodeContent();o&&(e=o.nodes,t=o.anyHasChildren);var r=null,l=null,a={width:"100%"};if(this.props.useFixedLayout&&(a.tableLayout="fixed"),this.props.enableInfiniteScroll&&(r={position:"relative",overflowY:"scroll",height:this.props.bodyHeight+"px",width:"100%"}),this.props.externalIsLoading){var i=null,d=null;this.props.useGriddleStyles&&(i={textAlign:"center",paddingBottom:"40px"}),d=this.props.columnSettings.getVisibleColumnCount();var u=this.props.externalLoadingComponent?s.createElement(this.props.externalLoadingComponent,null):s.createElement("div",null,"Loading...");l=s.createElement("tbody",null,s.createElement("tr",null,s.createElement("td",{style:i,colSpan:d},u)))}var c=this.props.showTableHeading?s.createElement(n,{useGriddleStyles:this.props.useGriddleStyles,useGriddleIcons:this.props.useGriddleIcons,sortSettings:this.props.sortSettings,multipleSelectionSettings:this.props.multipleSelectionSettings,columnSettings:this.props.columnSettings,filterByColumn:this.props.filterByColumn,rowSettings:this.props.rowSettings}):void 0;t||(e=s.createElement("tbody",null,e));var p=s.createElement("tbody",null);if(this.props.showPager){var h=this.props.useGriddleStyles?{padding:"0px",backgroundColor:"#EDEDED",border:"0px",color:"#222",height:this.props.showNoData?"20px":null}:null;p=s.createElement("tbody",null,s.createElement("tr",null,s.createElement("td",{colSpan:this.props.multipleSelectionSettings.isMultipleSelection?this.props.columnSettings.getVisibleColumnCount()+1:this.props.columnSettings.getVisibleColumnCount(),style:h,className:"footer-container"},this.props.showNoData?null:this.props.pagingContent)))}return this.props.useFixedHeader?(this.props.useGriddleStyles&&(a.tableLayout="fixed"),s.createElement("div",null,s.createElement("table",{className:this.props.className,style:this.props.useGriddleStyles&&a||null},c),s.createElement("div",{ref:"scrollable",onScroll:this.gridScroll,style:r},s.createElement("table",{className:this.props.className,style:this.props.useGriddleStyles&&a||null},e,l,p)))):s.createElement("div",{ref:"scrollable",onScroll:this.gridScroll,style:r},s.createElement("table",{className:this.props.className,style:this.props.useGriddleStyles&&a||null},c,e,l,p))}}));e.exports=l},"./node_modules/griddle-react/modules/gridTitle.jsx.js":function(e,t,o){"use strict";var s=Object.assign||function(e){for(var t=1;t=0)return!0;return!1})},defaultColumnFilter:function(e,t){return A(g.getObjectValues(e),function(e){return e.toString().toLowerCase().indexOf(t.toLowerCase())>=0}).length>0},filterByColumnFilters:function(e){var t=this.defaultColumnFilter,o=Object.keys(e).reduce(function(o,s){return A(o,function(o){var n=g.getAt(o,s||""),r=e[s];return t(n,r)})},this.props.results),s={columnFilters:e};e?(s.filteredResults=o,s.maxPage=this.getMaxPage(s.filteredResults)):this.state.filter?s.filteredResults=this.props.useCustomFilterer?this.props.customFilterer(this.props.results,filter):this.defaultFilter(this.props.results,filter):s.filteredResults=null,this.setState(s)},filterByColumn:function(e,t){var o=this.state.columnFilters;if(o.hasOwnProperty(t)&&!e)o=E(o,t);else{var s={};s[t]=e,o=k({},o,s)}this.filterByColumnFilters(o)},setFilter:function(e){if(this.props.useExternal)return void this.props.externalSetFilter(e);var t=this,o={page:0,filter:e};o.filteredResults=this.props.useCustomFilterer?this.props.customFilterer(this.props.results,e):this.defaultFilter(this.props.results,e),o.maxPage=t.getMaxPage(o.filteredResults),(O(e)||T(e)||P(e))&&(o.filter=e,o.filteredResults=null),t.setState(o),this._resetSelectedRows()},setPageSize:function(e){if(this.props.useExternal)return this.setState({resultsPerPage:e}),void this.props.externalSetPageSize(e);this.state.resultsPerPage=e,this.setMaxPage()},toggleColumnChooser:function(){this.setState({showColumnChooser:!this.state.showColumnChooser})},isNullOrUndefined:function(e){return void 0===e||null===e},shouldUseCustomRowComponent:function(){return this.isNullOrUndefined(this.state.useCustomRowComponent)?this.props.useCustomRowComponent:this.state.useCustomRowComponent},shouldUseCustomGridComponent:function(){return this.isNullOrUndefined(this.state.useCustomGridComponent)?this.props.useCustomGridComponent:this.state.useCustomGridComponent},toggleCustomComponent:function(){"grid"===this.state.customComponentType?this.setState({useCustomGridComponent:!this.shouldUseCustomGridComponent()}):"row"===this.state.customComponentType&&this.setState({useCustomRowComponent:!this.shouldUseCustomRowComponent()})},getMaxPage:function(e,t){return this.props.useExternal?this.props.externalMaxPage:(t||(t=(e||this.getCurrentResults()).length),Math.ceil(t/this.state.resultsPerPage))},setMaxPage:function(e){var t=this.getMaxPage(e);this.state.maxPage!==t&&this.setState({page:0,maxPage:t,filteredColumns:this.columnSettings.filteredColumns})},setPage:function(e){if(this.props.useExternal)return void this.props.externalSetPage(e);if(e*this.state.resultsPerPage<=this.state.resultsPerPage*this.state.maxPage){var t=this,o={page:e};t.setState(o)}this.props.enableInfiniteScroll&&this.setState({isSelectAllChecked:!1})},setColumns:function(e){this.columnSettings.filteredColumns=S(e)?e:[e],this.setState({filteredColumns:this.columnSettings.filteredColumns})},nextPage:function(){var e=this.getCurrentPage();e0&&this.setPage(e-1)},changeSort:function(e){if(!1!==this.props.enableSort){if(this.props.useExternal){var t=this.props.externalSortColumn!==e||!this.props.externalSortAscending;return this.setState({sortColumn:e,sortDirection:t?"asc":"desc"}),void this.props.externalChangeSort(e,t)}var o=v(this.props.columnMetadata,{columnName:e})||{},s=o.sortDirectionCycle?o.sortDirectionCycle:[null,"asc","desc"],n=null,r=s.indexOf(this.state.sortDirection&&e===this.state.sortColumn?this.state.sortDirection:null);r=(r+1)%s.length,n=s[r]?s[r]:null;var l={page:0,sortColumn:e,sortDirection:n};this.setState(l)}},componentWillReceiveProps:function(e){if(this.setMaxPage(e.results),e.resultsPerPage!==this.props.resultsPerPage&&this.setPageSize(e.resultsPerPage),this.columnSettings.columnMetadata=e.columnMetadata,e.results.length>0){var t=g.keys(e.results[0]);this.columnSettings.allColumns.length==t.length&&this.columnSettings.allColumns.every(function(e,o){return e===t[o]})||(this.columnSettings.allColumns=t)}else this.columnSettings.allColumns.length>0&&(this.columnSettings.allColumns=[]);if(e.selectedRowIds){var o=this.getDataForRender(this.getCurrentResults(e.results),this.columnSettings.getColumns(),!0);this.setState({isSelectAllChecked:this._getAreAllRowsChecked(e.selectedRowIds,R(o,this.props.uniqueIdentifier)),selectedRowIds:e.selectedRowIds})}},getInitialState:function(){return{maxPage:0,page:0,filteredResults:null,filteredColumns:[],filter:"",columnFilters:{},resultsPerPage:this.props.resultsPerPage||5,showColumnChooser:!1,isSelectAllChecked:!1,selectedRowIds:this.props.selectedRowIds}},componentWillMount:function(){this.verifyExternal(),this.verifyCustom(),this.columnSettings=new f(this.props.results.length>0?g.keys(this.props.results[0]):[],this.props.columns,this.props.childrenColumnName,this.props.columnMetadata,this.props.metadataColumns),this.rowSettings=new _(this.props.rowMetadata,this.props.useCustomTableRowComponent&&this.props.customTableRowComponent?this.props.customTableRowComponent:u,this.props.useCustomTableRowComponent),this.props.initialSort&&(this.props.useExternal?this.setState({sortColumn:this.props.externalSortColumn,sortDirection:this.props.externalSortAscending?"asc":"desc"}):this.changeSort(this.props.initialSort)),this.setMaxPage(),this.shouldUseCustomGridComponent()?this.setState({customComponentType:"grid"}):this.shouldUseCustomRowComponent()?this.setState({customComponentType:"row"}):this.setState({filteredColumns:this.columnSettings.filteredColumns})},componentDidMount:function(){if(this.props.componentDidMount&&"function"==typeof this.props.componentDidMount)return this.props.componentDidMount()},componentDidUpdate:function(){if(this.props.componentDidUpdate&&"function"==typeof this.props.componentDidUpdate)return this.props.componentDidUpdate(this.state)},verifyExternal:function(){!0===this.props.useExternal&&(null===this.props.externalSetPage&&console.error("useExternal is set to true but there is no externalSetPage function specified."),null===this.props.externalChangeSort&&console.error("useExternal is set to true but there is no externalChangeSort function specified."),null===this.props.externalSetFilter&&console.error("useExternal is set to true but there is no externalSetFilter function specified."),null===this.props.externalSetPageSize&&console.error("useExternal is set to true but there is no externalSetPageSize function specified."),null===this.props.externalMaxPage&&console.error("useExternal is set to true but externalMaxPage is not set."),null===this.props.externalCurrentPage&&console.error("useExternal is set to true but externalCurrentPage is not set. Griddle will not page correctly without that property when using external data."))},verifyCustom:function(){!0===this.props.useCustomGridComponent&&null===this.props.customGridComponent&&console.error("useCustomGridComponent is set to true but no custom component was specified."),!0===this.props.useCustomRowComponent&&null===this.props.customRowComponent&&console.error("useCustomRowComponent is set to true but no custom component was specified."),!0===this.props.useCustomGridComponent&&!0===this.props.useCustomRowComponent&&console.error("Cannot currently use both customGridComponent and customRowComponent."),!0===this.props.useCustomFilterer&&null===this.props.customFilterer&&console.error("useCustomFilterer is set to true but no custom filter function was specified."),!0===this.props.useCustomFilterComponent&&null===this.props.customFilterComponent&&console.error("useCustomFilterComponent is set to true but no customFilterComponent was specified.")},getDataForRender:function(e,t,o){var s=this,n=this;if(""!==this.state.sortColumn){var r,l=this.state.sortColumn,a=A(this.props.columnMetadata,{columnName:l}),i={columns:[],orders:[]};if(a.length>0&&(r=a[0].hasOwnProperty("customCompareFn")&&a[0].customCompareFn,a[0].multiSort&&(i=a[0].multiSort)),this.state.sortDirection)if("function"==typeof r)2===r.length?(e=e.sort(function(e,t){return r(I(e,l),I(t,l))}),"desc"===this.state.sortDirection&&e.reverse()):1===r.length&&(e=N(e,function(e){return r(I(e,l))},[this.state.sortDirection]));else{var d=[function(e){return(I(e,l)||"").toString().toLowerCase()}],u=[this.state.sortDirection];i.columns.forEach(function(e,t){d.push(function(t){return(I(t,e)||"").toString().toLowerCase()}),"asc"===i.orders[t]||"desc"===i.orders[t]?u.push(i.orders[t]):u.push(s.state.sortDirection)}),e=N(e,d,u)}}var c=this.getCurrentPage();if(!this.props.useExternal&&o&&this.state.resultsPerPage*(c+1)<=this.state.resultsPerPage*this.state.maxPage&&c>=0)if(this.isInfiniteScrollEnabled())e=b(e,(c+1)*this.state.resultsPerPage);else{var p=j(e,c*this.state.resultsPerPage);e=(y||x)(p,p.length-this.state.resultsPerPage)}for(var h=(this.columnSettings.getMetadataColumns,[]),m=0;m0&&(f.children=n.getDataForRender(f[n.props.childrenColumnName],t,!1),"children"!==n.props.childrenColumnName&&delete f[n.props.childrenColumnName]),h.push(f)}return h},getCurrentResults:function(e){return this.state.filteredResults||e||this.props.results},getCurrentPage:function(){return this.props.externalCurrentPage||this.state.page},getCurrentSort:function(){return this.props.useExternal?this.props.externalSortColumn:this.state.sortColumn},getCurrentSortAscending:function(){return this.props.useExternal?this.props.externalSortAscending:"asc"===this.state.sortDirection},getCurrentMaxPage:function(){return this.props.useExternal?this.props.externalMaxPage:this.state.maxPage},getSortObject:function(){return{enableSort:this.props.enableSort,changeSort:this.changeSort,sortColumn:this.getCurrentSort(),sortAscending:this.getCurrentSortAscending(),sortDirection:this.state.sortDirection,sortAscendingClassName:this.props.sortAscendingClassName,sortDescendingClassName:this.props.sortDescendingClassName,sortAscendingComponent:this.props.sortAscendingComponent,sortDescendingComponent:this.props.sortDescendingComponent,sortDefaultComponent:this.props.sortDefaultComponent}},_toggleSelectAll:function(){var e=this.getDataForRender(this.getCurrentResults(),this.columnSettings.getColumns(),!0),t=!this.state.isSelectAllChecked,o=JSON.parse(JSON.stringify(this.state.selectedRowIds)),s=this;C(e,function(e){s._updateSelectedRowIds(e[s.props.uniqueIdentifier],o,t)},this),this.setState({isSelectAllChecked:t,selectedRowIds:o}),this.props.onSelectionChange&&this.props.onSelectionChange(o,t)},_toggleSelectRow:function(e,t){var o=this.getDataForRender(this.getCurrentResults(),this.columnSettings.getColumns(),!0),s=JSON.parse(JSON.stringify(this.state.selectedRowIds));this._updateSelectedRowIds(e[this.props.uniqueIdentifier],s,t);var n=this._getAreAllRowsChecked(s,R(o,this.props.uniqueIdentifier));this.setState({isSelectAllChecked:n,selectedRowIds:s}),this.props.onSelectionChange&&this.props.onSelectionChange(s,n)},_updateSelectedRowIds:function(e,t,o){o?void 0===v(t,function(t){return e===t})&&t.push(e):t.splice(t.indexOf(e),1)},_getIsSelectAllChecked:function(){return this.state.isSelectAllChecked},_getAreAllRowsChecked:function(e,t){return t.length===w(t,e).length},_getIsRowChecked:function(e){return this.state.selectedRowIds.indexOf(e[this.props.uniqueIdentifier])>-1},getSelectedRowIds:function(){return this.state.selectedRowIds},_resetSelectedRows:function(){this.setState({isSelectAllChecked:!1,selectedRowIds:[]})},getMultipleSelectionObject:function(){return{isMultipleSelection:!v(this.props.results,function(e){return"children"in e})&&this.props.isMultipleSelection,toggleSelectAll:this._toggleSelectAll,getIsSelectAllChecked:this._getIsSelectAllChecked,toggleSelectRow:this._toggleSelectRow,getSelectedRowIds:this.getSelectedRowIds,getIsRowChecked:this._getIsRowChecked}},isInfiniteScrollEnabled:function(){return!this.props.useCustomPagerComponent&&this.props.enableInfiniteScroll},getClearFixStyles:function(){return{clear:"both",display:"table",width:"100%"}},getSettingsStyles:function(){return{float:"left",width:"50%",textAlign:"right"}},getFilterStyles:function(){return{float:"left",width:"50%",textAlign:"left",color:"#222",minHeight:"1px"}},getFilter:function(){return this.props.showFilter&&!1===this.shouldUseCustomGridComponent()?this.props.useCustomFilterComponent?n.createElement(m,{changeFilter:this.setFilter,placeholderText:this.props.filterPlaceholderText,customFilterComponent:this.props.customFilterComponent,results:this.props.results,currentResults:this.getCurrentResults()}):n.createElement(l,{changeFilter:this.setFilter,placeholderText:this.props.filterPlaceholderText}):""},getSettings:function(){return this.props.showSettings?n.createElement("button",{type:"button",className:this.props.settingsToggleClassName,onClick:this.toggleColumnChooser,style:this.props.useGriddleStyles?{background:"none",border:"none",padding:0,margin:0,fontSize:14}:null},this.props.settingsText,this.props.settingsIconComponent):""},getTopSection:function(e,t){if(!1===this.props.showFilter&&!1===this.props.showSettings)return"";var o=null,s=null,r=null;return this.props.useGriddleStyles&&(o=this.getFilterStyles(),s=this.getSettingsStyles(),r=this.getClearFixStyles()),n.createElement("div",{className:"top-section",style:r},n.createElement("div",{className:"griddle-filter",style:o},e),n.createElement("div",{className:"griddle-settings-toggle",style:s},t))},getPagingSection:function(e,t){if(!1!==(this.props.showPager&&!this.isInfiniteScrollEnabled()&&!this.shouldUseCustomGridComponent()))return n.createElement("div",{className:"griddle-footer"},this.props.useCustomPagerComponent?n.createElement(h,{customPagerComponentOptions:this.props.customPagerComponentOptions,next:this.nextPage,previous:this.previousPage,currentPage:e,maxPage:t,setPage:this.setPage,nextText:this.props.nextText,previousText:this.props.previousText,customPagerComponent:this.props.customPagerComponent}):n.createElement(a,{useGriddleStyles:this.props.useGriddleStyles,next:this.nextPage,previous:this.previousPage,nextClassName:this.props.nextClassName,nextIconComponent:this.props.nextIconComponent,previousClassName:this.props.previousClassName,previousIconComponent:this.props.previousIconComponent,currentPage:e,maxPage:t,setPage:this.setPage,nextText:this.props.nextText,previousText:this.props.previousText}))},getColumnSelectorSection:function(e,t){return this.state.showColumnChooser?n.createElement(i,{columns:e,selectedColumns:t,setColumns:this.setColumns,settingsText:this.props.settingsText,settingsIconComponent:this.props.settingsIconComponent,maxRowsText:this.props.maxRowsText,setPageSize:this.setPageSize,showSetPageSize:!this.shouldUseCustomGridComponent(),resultsPerPage:this.state.resultsPerPage,enableToggleCustom:this.props.enableToggleCustom,toggleCustomComponent:this.toggleCustomComponent,useCustomComponent:this.shouldUseCustomRowComponent()||this.shouldUseCustomGridComponent(),useGriddleStyles:this.props.useGriddleStyles,enableCustomFormatText:this.props.enableCustomFormatText,columnMetadata:this.props.columnMetadata}):""},getCustomGridSection:function(){return n.createElement(this.props.customGridComponent,s({data:this.props.results,className:this.props.customGridComponentClassName},this.props.gridMetadata))},getCustomRowSection:function(e,t,o,s,r){return n.createElement("div",null,n.createElement(p,{data:e,columns:t,metadataColumns:o,globalData:r,className:this.props.customRowComponentClassName,customComponent:this.props.customRowComponent,style:this.props.useGriddleStyles?this.getClearFixStyles():null}),this.props.showPager&&s)},getStandardGridSection:function(e,t,o,s,l){var a=this.getSortObject(),i=this.getMultipleSelectionObject(),d=this.shouldShowNoDataSection(e),u=this.getNoDataSection();return n.createElement("div",{className:"griddle-body"},n.createElement(r,{useGriddleStyles:this.props.useGriddleStyles,noDataSection:u,showNoData:d,columnSettings:this.columnSettings,rowSettings:this.rowSettings,sortSettings:a,multipleSelectionSettings:i,filterByColumn:this.filterByColumn,isSubGriddle:this.props.isSubGriddle,useGriddleIcons:this.props.useGriddleIcons,useFixedLayout:this.props.useFixedLayout,showPager:this.props.showPager,pagingContent:s,data:e,className:this.props.tableClassName,enableInfiniteScroll:this.isInfiniteScrollEnabled(),nextPage:this.nextPage,showTableHeading:this.props.showTableHeading,useFixedHeader:this.props.useFixedHeader,parentRowCollapsedClassName:this.props.parentRowCollapsedClassName,parentRowExpandedClassName:this.props.parentRowExpandedClassName,parentRowCollapsedComponent:this.props.parentRowCollapsedComponent,parentRowExpandedComponent:this.props.parentRowExpandedComponent,bodyHeight:this.props.bodyHeight,paddingHeight:this.props.paddingHeight,rowHeight:this.props.rowHeight,infiniteScrollLoadTreshold:this.props.infiniteScrollLoadTreshold,externalLoadingComponent:this.props.externalLoadingComponent,externalIsLoading:this.props.externalIsLoading,hasMorePages:l,onRowClick:this.props.onRowClick}))},getContentSection:function(e,t,o,s,n,r){return this.shouldUseCustomGridComponent()&&null!==this.props.customGridComponent?this.getCustomGridSection():this.shouldUseCustomRowComponent()?this.getCustomRowSection(e,t,o,s,r):this.getStandardGridSection(e,t,o,s,n)},getNoDataSection:function(){return null!=this.props.customNoDataComponent?n.createElement("div",{className:this.props.noDataClassName},n.createElement(this.props.customNoDataComponent,this.props.customNoDataComponentProps)):n.createElement(d,{noDataMessage:this.props.noDataMessage})},shouldShowNoDataSection:function(e){return!this.props.allowEmptyGrid&&(!1===this.props.useExternal&&(void 0===e||0===e.length)||!0===this.props.useExternal&&!1===this.props.externalIsLoading&&0===e.length)},render:function(){var e=this.getCurrentResults(),t=(this.props.tableClassName,this.getFilter()),o=this.getSettings(),s=this.getTopSection(t,o),r=[],l=this.columnSettings.getColumns(),a=this.getDataForRender(e,l,!0),i=this.columnSettings.getMetadataColumns();this.props.columnMetadata?C(this.props.columnMetadata,function(e){"boolean"==typeof e.visible&&!1===e.visible||r.push(e.columnName)}):r=g.keys(E(e[0],i)),r=this.columnSettings.orderColumns(r);var d=this.getCurrentPage(),u=this.getCurrentMaxPage(),c=d+10?"griddle "+this.props.gridClassName:"griddle";return f+=this.shouldUseCustomRowComponent()?" griddle-custom":"",n.createElement("div",{className:f},s,m,n.createElement("div",{className:"griddle-container",style:this.props.useGriddleStyles&&!this.props.isSubGriddle?{border:"1px solid #DDD"}:null},h))}});c.Griddle=e.exports=M},"./node_modules/griddle-react/modules/rowProperties.js":function(e,t,o){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function e(e,t){for(var o=0;o-1}var n=o("./node_modules/lodash/_baseIndexOf.js");e.exports=s},"./node_modules/lodash/_arrayIncludesWith.js":function(e,t){function o(e,t,o){for(var s=-1,n=null==e?0:e.length;++s=u&&(p=d,h=!1,t=new n(t));e:for(;++c0&&o(u)?t>1?s(u,t-1,o,l,a):n(a,u):l||(a[a.length]=u)}return a}var n=o("./node_modules/lodash/_arrayPush.js"),r=o("./node_modules/lodash/_isFlattenable.js");e.exports=s},"./node_modules/lodash/_baseFor.js":function(e,t,o){var s=o("./node_modules/lodash/_createBaseFor.js"),n=s();e.exports=n},"./node_modules/lodash/_baseForOwn.js":function(e,t,o){function s(e,t){return e&&n(e,t,r)}var n=o("./node_modules/lodash/_baseFor.js"),r=o("./node_modules/lodash/keys.js");e.exports=s},"./node_modules/lodash/_baseGet.js":function(e,t,o){function s(e,t){t=n(t,e);for(var o=0,s=t.length;null!=e&&o=120&&g.length>=120)?new n(h&&g):void 0}g=e[0];var j=-1,y=m[0];e:for(;++jn?0:n+t),o=o>n?n:o,o<0&&(o+=n),n=t>o?0:o-t>>>0,t>>>=0;for(var r=Array(n);++st||l&&a&&d&&!i&&!u||s&&a&&d||!o&&d||!r)return 1;if(!s&&!l&&!u&&e=i?d:d*("desc"==o[s]?-1:1)}return e.index-t.index}var n=o("./node_modules/lodash/_compareAscending.js");e.exports=s},"./node_modules/lodash/_copyArray.js":function(e,t){function o(e,t){var o=-1,s=e.length;for(t||(t=Array(s));++o1?o[n-1]:void 0,a=n>2?o[2]:void 0;for(l=e.length>3&&"function"==typeof l?(n--,l):void 0,a&&r(o[0],o[1],a)&&(l=n<3?void 0:l,n=1),t=Object(t);++s-1?a[i?t[d]:d]:void 0}}var n=o("./node_modules/lodash/_baseIteratee.js"),r=o("./node_modules/lodash/isArrayLike.js"),l=o("./node_modules/lodash/keys.js");e.exports=s},"./node_modules/lodash/_createToPairs.js":function(e,t,o){function s(e){return function(t){var o=r(t);return o==i?l(t):o==d?a(t):n(t,e(t))}}var n=o("./node_modules/lodash/_baseToPairs.js"),r=o("./node_modules/lodash/_getTag.js"),l=o("./node_modules/lodash/_mapToArray.js"),a=o("./node_modules/lodash/_setToPairs.js"),i="[object Map]",d="[object Set]";e.exports=s},"./node_modules/lodash/_customOmitClone.js":function(e,t,o){function s(e){return n(e)?void 0:e}var n=o("./node_modules/lodash/isPlainObject.js");e.exports=s},"./node_modules/lodash/_defineProperty.js":function(e,t,o){var s=o("./node_modules/lodash/_getNative.js"),n=function(){try{var e=s(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},"./node_modules/lodash/_equalArrays.js":function(e,t,o){function s(e,t,o,s,d,u){var c=o&a,p=e.length,h=t.length;if(p!=h&&!(c&&h>p))return!1;var m=u.get(e);if(m&&u.get(t))return m==t;var f=-1,_=!0,g=o&i?new n:void 0;for(u.set(e,t),u.set(t,e);++f-1&&e%1==0&&e-1}var n=o("./node_modules/lodash/_assocIndexOf.js");e.exports=s},"./node_modules/lodash/_listCacheSet.js":function(e,t,o){function s(e,t){var o=this.__data__,s=n(o,e);return s<0?(++this.size,o.push([e,t])):o[s][1]=t,this}var n=o("./node_modules/lodash/_assocIndexOf.js");e.exports=s},"./node_modules/lodash/_mapCacheClear.js":function(e,t,o){function s(){this.size=0,this.__data__={hash:new n,map:new(l||r),string:new n}}var n=o("./node_modules/lodash/_Hash.js"),r=o("./node_modules/lodash/_ListCache.js"),l=o("./node_modules/lodash/_Map.js");e.exports=s},"./node_modules/lodash/_mapCacheDelete.js":function(e,t,o){function s(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}var n=o("./node_modules/lodash/_getMapData.js");e.exports=s},"./node_modules/lodash/_mapCacheGet.js":function(e,t,o){function s(e){return n(this,e).get(e)}var n=o("./node_modules/lodash/_getMapData.js");e.exports=s},"./node_modules/lodash/_mapCacheHas.js":function(e,t,o){function s(e){return n(this,e).has(e)}var n=o("./node_modules/lodash/_getMapData.js");e.exports=s},"./node_modules/lodash/_mapCacheSet.js":function(e,t,o){function s(e,t){var o=n(this,e),s=o.size;return o.set(e,t),this.size+=o.size==s?0:1,this}var n=o("./node_modules/lodash/_getMapData.js");e.exports=s},"./node_modules/lodash/_mapToArray.js":function(e,t){function o(e){var t=-1,o=Array(e.size);return e.forEach(function(e,s){o[++t]=[s,e]}),o}e.exports=o},"./node_modules/lodash/_matchesStrictComparable.js":function(e,t){function o(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}e.exports=o},"./node_modules/lodash/_memoizeCapped.js":function(e,t,o){function s(e){var t=n(e,function(e){return o.size===r&&o.clear(),e}),o=t.cache;return t}var n=o("./node_modules/lodash/memoize.js"),r=500;e.exports=s},"./node_modules/lodash/_nativeCreate.js":function(e,t,o){var s=o("./node_modules/lodash/_getNative.js"),n=s(Object,"create");e.exports=n},"./node_modules/lodash/_nativeKeys.js":function(e,t,o){var s=o("./node_modules/lodash/_overArg.js"),n=s(Object.keys,Object);e.exports=n},"./node_modules/lodash/_nativeKeysIn.js":function(e,t){function o(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}e.exports=o},"./node_modules/lodash/_nodeUtil.js":function(e,t,o){(function(e){var s=o("./node_modules/lodash/_freeGlobal.js"),n="object"==typeof t&&t&&!t.nodeType&&t,r=n&&"object"==typeof e&&e&&!e.nodeType&&e,l=r&&r.exports===n,a=l&&s.process,i=function(){try{return r&&r.require&&r.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}).call(t,o("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/lodash/_objectToString.js":function(e,t){function o(e){return n.call(e)}var s=Object.prototype,n=s.toString;e.exports=o},"./node_modules/lodash/_overArg.js":function(e,t){function o(e,t){return function(o){return e(t(o))}}e.exports=o},"./node_modules/lodash/_overRest.js":function(e,t,o){function s(e,t,o){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,l=-1,a=r(s.length-t,0),i=Array(a);++l0){if(++t>=s)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var s=800,n=16,r=Date.now;e.exports=o},"./node_modules/lodash/_stackClear.js":function(e,t,o){function s(){this.__data__=new n,this.size=0}var n=o("./node_modules/lodash/_ListCache.js");e.exports=s},"./node_modules/lodash/_stackDelete.js":function(e,t){function o(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}e.exports=o},"./node_modules/lodash/_stackGet.js":function(e,t){function o(e){return this.__data__.get(e)}e.exports=o},"./node_modules/lodash/_stackHas.js":function(e,t){function o(e){return this.__data__.has(e)}e.exports=o},"./node_modules/lodash/_stackSet.js":function(e,t,o){function s(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length2?t[2]:void 0;for(d&&r(t[0],t[1],d)&&(s=1);++o-1:!!u&&n(e,t,o)>-1}var n=o("./node_modules/lodash/_baseIndexOf.js"),r=o("./node_modules/lodash/isArrayLike.js"),l=o("./node_modules/lodash/isString.js"),a=o("./node_modules/lodash/toInteger.js"),i=o("./node_modules/lodash/values.js"),d=Math.max;e.exports=s},"./node_modules/lodash/initial.js":function(e,t,o){function s(e){return(null==e?0:e.length)?n(e,0,-1):[]}var n=o("./node_modules/lodash/_baseSlice.js");e.exports=s},"./node_modules/lodash/intersection.js":function(e,t,o){var s=o("./node_modules/lodash/_arrayMap.js"),n=o("./node_modules/lodash/_baseIntersection.js"),r=o("./node_modules/lodash/_baseRest.js"),l=o("./node_modules/lodash/_castArrayLikeObject.js"),a=r(function(e){var t=s(e,l);return t.length&&t[0]===e[0]?n(t):[]});e.exports=a},"./node_modules/lodash/isArguments.js":function(e,t,o){var s=o("./node_modules/lodash/_baseIsArguments.js"),n=o("./node_modules/lodash/isObjectLike.js"),r=Object.prototype,l=r.hasOwnProperty,a=r.propertyIsEnumerable,i=s(function(){return arguments}())?s:function(e){return n(e)&&l.call(e,"callee")&&!a.call(e,"callee")};e.exports=i},"./node_modules/lodash/isArray.js":function(e,t){var o=Array.isArray;e.exports=o},"./node_modules/lodash/isArrayLike.js":function(e,t,o){function s(e){return null!=e&&r(e.length)&&!n(e)}var n=o("./node_modules/lodash/isFunction.js"),r=o("./node_modules/lodash/isLength.js");e.exports=s},"./node_modules/lodash/isArrayLikeObject.js":function(e,t,o){function s(e){return r(e)&&n(e)}var n=o("./node_modules/lodash/isArrayLike.js"),r=o("./node_modules/lodash/isObjectLike.js");e.exports=s},"./node_modules/lodash/isBuffer.js":function(e,t,o){(function(e){var s=o("./node_modules/lodash/_root.js"),n=o("./node_modules/lodash/stubFalse.js"),r="object"==typeof t&&t&&!t.nodeType&&t,l=r&&"object"==typeof e&&e&&!e.nodeType&&e,a=l&&l.exports===r,i=a?s.Buffer:void 0,d=i?i.isBuffer:void 0,u=d||n;e.exports=u}).call(t,o("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/lodash/isEmpty.js":function(e,t,o){function s(e){if(null==e)return!0;if(i(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||d(e)||c(e)||l(e)))return!e.length;var t=r(e);if(t==p||t==h)return!e.size;if(u(e))return!n(e).length;for(var o in e)if(f.call(e,o))return!1;return!0}var n=o("./node_modules/lodash/_baseKeys.js"),r=o("./node_modules/lodash/_getTag.js"),l=o("./node_modules/lodash/isArguments.js"),a=o("./node_modules/lodash/isArray.js"),i=o("./node_modules/lodash/isArrayLike.js"),d=o("./node_modules/lodash/isBuffer.js"),u=o("./node_modules/lodash/_isPrototype.js"),c=o("./node_modules/lodash/isTypedArray.js"),p="[object Map]",h="[object Set]",m=Object.prototype,f=m.hasOwnProperty;e.exports=s},"./node_modules/lodash/isFunction.js":function(e,t,o){function s(e){if(!r(e))return!1;var t=n(e);return t==a||t==i||t==l||t==d}var n=o("./node_modules/lodash/_baseGetTag.js"),r=o("./node_modules/lodash/isObject.js"),l="[object AsyncFunction]",a="[object Function]",i="[object GeneratorFunction]",d="[object Proxy]";e.exports=s},"./node_modules/lodash/isLength.js":function(e,t){function o(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}var s=9007199254740991;e.exports=o},"./node_modules/lodash/isMap.js":function(e,t,o){var s=o("./node_modules/lodash/_baseIsMap.js"),n=o("./node_modules/lodash/_baseUnary.js"),r=o("./node_modules/lodash/_nodeUtil.js"),l=r&&r.isMap,a=l?n(l):s;e.exports=a},"./node_modules/lodash/isNull.js":function(e,t){function o(e){return null===e}e.exports=o},"./node_modules/lodash/isObject.js":function(e,t){function o(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=o},"./node_modules/lodash/isObjectLike.js":function(e,t){function o(e){return null!=e&&"object"==typeof e}e.exports=o},"./node_modules/lodash/isPlainObject.js":function(e,t,o){function s(e){if(!l(e)||n(e)!=a)return!1;var t=r(e);if(null===t)return!0;var o=c.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&u.call(o)==p}var n=o("./node_modules/lodash/_baseGetTag.js"),r=o("./node_modules/lodash/_getPrototype.js"),l=o("./node_modules/lodash/isObjectLike.js"),a="[object Object]",i=Function.prototype,d=Object.prototype,u=i.toString,c=d.hasOwnProperty,p=u.call(Object);e.exports=s},"./node_modules/lodash/isSet.js":function(e,t,o){var s=o("./node_modules/lodash/_baseIsSet.js"),n=o("./node_modules/lodash/_baseUnary.js"),r=o("./node_modules/lodash/_nodeUtil.js"),l=r&&r.isSet,a=l?n(l):s;e.exports=a},"./node_modules/lodash/isString.js":function(e,t,o){function s(e){return"string"==typeof e||!r(e)&&l(e)&&n(e)==a}var n=o("./node_modules/lodash/_baseGetTag.js"),r=o("./node_modules/lodash/isArray.js"),l=o("./node_modules/lodash/isObjectLike.js"),a="[object String]";e.exports=s},"./node_modules/lodash/isSymbol.js":function(e,t,o){function s(e){return"symbol"==typeof e||r(e)&&n(e)==l}var n=o("./node_modules/lodash/_baseGetTag.js"),r=o("./node_modules/lodash/isObjectLike.js"),l="[object Symbol]";e.exports=s},"./node_modules/lodash/isTypedArray.js":function(e,t,o){var s=o("./node_modules/lodash/_baseIsTypedArray.js"),n=o("./node_modules/lodash/_baseUnary.js"),r=o("./node_modules/lodash/_nodeUtil.js"),l=r&&r.isTypedArray,a=l?n(l):s;e.exports=a},"./node_modules/lodash/isUndefined.js":function(e,t){function o(e){return void 0===e}e.exports=o},"./node_modules/lodash/keys.js":function(e,t,o){function s(e){return l(e)?n(e):r(e)}var n=o("./node_modules/lodash/_arrayLikeKeys.js"),r=o("./node_modules/lodash/_baseKeys.js"),l=o("./node_modules/lodash/isArrayLike.js");e.exports=s},"./node_modules/lodash/keysIn.js":function(e,t,o){function s(e){return l(e)?n(e,!0):r(e)}var n=o("./node_modules/lodash/_arrayLikeKeys.js"),r=o("./node_modules/lodash/_baseKeysIn.js"),l=o("./node_modules/lodash/isArrayLike.js");e.exports=s},"./node_modules/lodash/last.js":function(e,t){function o(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=o},"./node_modules/lodash/map.js":function(e,t,o){function s(e,t){return(a(e)?n:l)(e,r(t,3))}var n=o("./node_modules/lodash/_arrayMap.js"),r=o("./node_modules/lodash/_baseIteratee.js"),l=o("./node_modules/lodash/_baseMap.js"),a=o("./node_modules/lodash/isArray.js");e.exports=s},"./node_modules/lodash/memoize.js":function(e,t,o){function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(r);var o=function(){var s=arguments,n=t?t.apply(this,s):s[0],r=o.cache;if(r.has(n))return r.get(n);var l=e.apply(this,s);return o.cache=r.set(n,l)||r,l};return o.cache=new(s.Cache||n),o}var n=o("./node_modules/lodash/_MapCache.js"),r="Expected a function";s.Cache=n,e.exports=s},"./node_modules/lodash/omit.js":function(e,t,o){var s=o("./node_modules/lodash/_arrayMap.js"),n=o("./node_modules/lodash/_baseClone.js"),r=o("./node_modules/lodash/_baseUnset.js"),l=o("./node_modules/lodash/_castPath.js"),a=o("./node_modules/lodash/_copyObject.js"),i=o("./node_modules/lodash/_customOmitClone.js"),d=o("./node_modules/lodash/_flatRest.js"),u=o("./node_modules/lodash/_getAllKeysIn.js"),c=d(function(e,t){var o={};if(null==e)return o;var d=!1;t=s(t,function(t){return t=l(t,e),d||(d=t.length>1),t}),a(e,u(e),o),d&&(o=n(o,7,i));for(var c=t.length;c--;)r(o,t[c]);return o});e.exports=c},"./node_modules/lodash/orderBy.js":function(e,t,o){function s(e,t,o,s){return null==e?[]:(r(t)||(t=null==t?[]:[t]),o=s?void 0:o,r(o)||(o=null==o?[]:[o]),n(e,t,o))}var n=o("./node_modules/lodash/_baseOrderBy.js"),r=o("./node_modules/lodash/isArray.js");e.exports=s},"./node_modules/lodash/pick.js":function(e,t,o){var s=o("./node_modules/lodash/_basePick.js"),n=o("./node_modules/lodash/_flatRest.js"),r=n(function(e,t){return null==e?{}:s(e,t)});e.exports=r},"./node_modules/lodash/property.js":function(e,t,o){function s(e){return l(e)?n(a(e)):r(e)}var n=o("./node_modules/lodash/_baseProperty.js"),r=o("./node_modules/lodash/_basePropertyDeep.js"),l=o("./node_modules/lodash/_isKey.js"),a=o("./node_modules/lodash/_toKey.js");e.exports=s},"./node_modules/lodash/sortBy.js":function(e,t,o){var s=o("./node_modules/lodash/_baseFlatten.js"),n=o("./node_modules/lodash/_baseOrderBy.js"),r=o("./node_modules/lodash/_baseRest.js"),l=o("./node_modules/lodash/_isIterateeCall.js"),a=r(function(e,t){if(null==e)return[];var o=t.length;return o>1&&l(e,t[0],t[1])?t=[]:o>2&&l(t[0],t[1],t[2])&&(t=[t[0]]),n(e,s(t,1),[])});e.exports=a},"./node_modules/lodash/stubArray.js":function(e,t){function o(){return[]}e.exports=o},"./node_modules/lodash/stubFalse.js":function(e,t){function o(){return!1}e.exports=o},"./node_modules/lodash/take.js":function(e,t,o){function s(e,t,o){return e&&e.length?(t=o||void 0===t?1:r(t),n(e,0,t<0?0:t)):[]}var n=o("./node_modules/lodash/_baseSlice.js"),r=o("./node_modules/lodash/toInteger.js");e.exports=s},"./node_modules/lodash/toFinite.js":function(e,t,o){function s(e){return e?(e=n(e))===r||e===-r?(e<0?-1:1)*l:e===e?e:0:0===e?e:0}var n=o("./node_modules/lodash/toNumber.js"),r=1/0,l=1.7976931348623157e308;e.exports=s},"./node_modules/lodash/toInteger.js":function(e,t,o){function s(e){var t=n(e),o=t%1;return t===t?o?t-o:t:0}var n=o("./node_modules/lodash/toFinite.js");e.exports=s},"./node_modules/lodash/toNumber.js":function(e,t,o){function s(e){if("number"==typeof e)return e;if(r(e))return l;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var o=d.test(e);return o||u.test(e)?c(e.slice(2),o?2:8):i.test(e)?l:+e}var n=o("./node_modules/lodash/isObject.js"),r=o("./node_modules/lodash/isSymbol.js"),l=NaN,a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=s},"./node_modules/lodash/toPairs.js":function(e,t,o){var s=o("./node_modules/lodash/_createToPairs.js"),n=o("./node_modules/lodash/keys.js"),r=s(n);e.exports=r},"./node_modules/lodash/toString.js":function(e,t,o){function s(e){return null==e?"":n(e)}var n=o("./node_modules/lodash/_baseToString.js");e.exports=s},"./node_modules/lodash/uniqueId.js":function(e,t,o){function s(e){var t=++r;return n(e)+t}var n=o("./node_modules/lodash/toString.js"),r=0;e.exports=s},"./node_modules/lodash/values.js":function(e,t,o){function s(e){return null==e?[]:n(e,r(e))}var n=o("./node_modules/lodash/_baseValues.js"),r=o("./node_modules/lodash/keys.js");e.exports=s},"./node_modules/lodash/without.js":function(e,t,o){var s=o("./node_modules/lodash/_baseDifference.js"),n=o("./node_modules/lodash/_baseRest.js"),r=o("./node_modules/lodash/isArrayLikeObject.js"),l=n(function(e,t){return r(e)?s(e,t):[]});e.exports=l},"./node_modules/lodash/zipObject.js":function(e,t,o){function s(e,t){return r(e||[],t||[],n)}var n=o("./node_modules/lodash/_assignValue.js"),r=o("./node_modules/lodash/_baseZipObject.js");e.exports=s},"./node_modules/webpack/buildin/global.js":function(e,t){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(o=window)}e.exports=o},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],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}}),e.webpackPolyfill=1),e}},classnames:function(e,t){e.exports=classnames},"components/Loading/Loading":function(e,t){e.exports=Loading},"components/Preview/Preview":function(e,t){e.exports=Preview},"containers/FormBuilderLoader/FormBuilderLoader":function(e,t){e.exports=FormBuilderLoader},i18n:function(e,t){e.exports=i18n},jquery:function(e,t){e.exports=jQuery},"lib/Config":function(e,t){e.exports=Config},"lib/Injector":function(e,t){e.exports=Injector},moment:function(e,t){e.exports=moment},react:function(e,t){e.exports=React},"react-dom":function(e,t){e.exports=ReactDom},"react-redux":function(e,t){e.exports=ReactRedux},redux:function(e,t){e.exports=Redux}}); \ No newline at end of file diff --git a/client/src/components/HistoryViewer/HistoryViewerVersionDetail.js b/client/src/components/HistoryViewer/HistoryViewerVersionDetail.js index d73b76eb..91f62752 100644 --- a/client/src/components/HistoryViewer/HistoryViewerVersionDetail.js +++ b/client/src/components/HistoryViewer/HistoryViewerVersionDetail.js @@ -49,8 +49,7 @@ class HistoryViewerVersionDetail extends PureComponent { );