/*! For license information please see dll.214.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[214],{3444:function(e,t,n){"use strict";n.r(t);var o=n(14),r=n.n(o),a=n(12),l=n.n(a),c=n(10),s=n.n(c),i=n(15),u=n.n(i),d=n(16),b=n.n(d),f=n(8),p=n.n(f),h=n(7),v=n.n(h),m=n(0),y=n.n(m),w=n(1),g=n.n(w),k=n(74),x=n(979),C=n(56),E=n.n(C);n(3445);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=p()(e);if(t){var r=p()(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b()(this,n)}}var R=function(e){u()(n,e);var t=_(n);function n(e){var o;return r()(this,n),o=t.call(this,e),v()(s()(o),"onClickFactory",(function(e,t){return function(){o.setState({rows:e,cols:t})}})),v()(s()(o),"onMouseOverFactory",(function(e,t){return function(){o.setState({hoverRow:e,hoverCol:t})}})),v()(s()(o),"createTable",(function(){for(var e,t=new Array(8),n=9;n>0;n--){e=new Array(8);for(var r=9;r>0;r--){var a=o.onClickFactory(n,r),l=o.onMouseOverFactory(n,r);r<=o.state.cols&&n<=o.state.rows?e[r-1]=y.a.createElement("td",{key:"".concat(n,"-").concat(r),className:"grid_select"},y.a.createElement("div",{role:"button",onClick:a,onKeyPress:a,onMouseOver:l,onFocus:l,tabIndex:0},n,"-",r)):e[r-1]=y.a.createElement("td",{key:"".concat(n,"-").concat(r),className:"cell"},y.a.createElement("div",{role:"button",tabIndex:0,onClick:a,onKeyPress:a,onMouseOver:l,onFocus:l},n,"-",r))}t[n-1]=y.a.createElement("tr",{key:n},e)}for(var c=new Array(9),s=0;s<c.length;s++)s<=o.state.cols-1?c[s]=y.a.createElement("th",{key:s,className:"selected_cols"},"Col",s+1):c[s]=y.a.createElement("th",{key:s,className:"un_selected_cols"},"Col",s+1);return y.a.createElement("table",{className:"tableSelect",align:"center"},y.a.createElement("thead",null,c),y.a.createElement("tbody",null,t))})),v()(s()(o),"insertTable",(function(){o.setState({rows:4,cols:3,hoverRow:0,hoverCol:0}),o.props.onHide({rowCount:o.state.rows,colCount:o.state.cols})})),o.state={rows:4,cols:3,hoverRow:0,hoverCol:0},o}return l()(n,[{key:"render",value:function(){return y.a.createElement(x.default,{onHide:this.props.onHide,show:this.props.show},y.a.createElement(x.default.Header,{closeButton:!0},y.a.createElement(x.default.Title,{as:"h5"},"Choose Table Dimensions: Row: ",this.state.hoverRow," Col: ",this.state.hoverCol)),y.a.createElement(x.default.Body,null,y.a.createElement("div",null,this.createTable(),y.a.createElement(k.default,{block:!0,className:"insert_button",variant:"primary",align:"center",onClick:this.insertTable},"Insert ",this.state.rows," x ",this.state.cols," table"))))}}]),n}(m.Component);R.propTypes={onHide:g.a.func,show:g.a.bool.isRequired},R.defaultProps={onHide:E.a},t.default=R},3445:function(e,t,n){var o=n(54),r=n(3446);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1};o(r,a);e.exports=r.locals||{}},3446:function(e,t,n){"use strict";n.r(t);var o=n(22),r=n.n(o)()(!1);r.push([e.i,"table.tableSelect {\n\tborder: 1px solid;\n\ttext-align: center;\n\twidth: 100%;\n\tbackground-color: #9999ff;\n\tborder-collapse: collapse;\n}\n\ntable.tableSelect tr td.cell {\n\tborder: 1px solid;\n\tcursor: pointer;\n}\n\ntable.tableSelect tr td.cell:hover {\n\tbackground-color: yellow;\n}\n\ntable.tableSelect tr td.grid_select {\n\tbackground-color: gray;\n\tborder: 1.25px solid;\n\tcursor: pointer;\n}\n\ntable.tableSelect tr td.grid_select:hover {\n\tbackground-color: yellow;\n\tcursor: pointer;\n}\n\n.selected_cols {\n\tbackground-color: #D3E272;\n\tborder: 1.5px solid;\n\tpadding: 4px 4px;\n\ttext-align: center;\n\tborder-bottom: 3.5px solid #444444;\n}\n\n.un_selected_cols {\n\tbackground-color: #CB97F0;\n\tborder: 1.5px solid;\n\tpadding: 4px 4px;\n\ttext-align: center;\n\tborder-bottom: 3.5px solid #444444;\n}\n\n.titleTable {\n\tmargin: 0 auto;\n}\n",""]),t.default=r}}]);