/*! For license information please see dll.206.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[206],{3544: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),p=n.n(d),f=n(8),b=n.n(f),h=n(7),v=n.n(h),m=n(0),w=n.n(m),y=n(1),g=n.n(y),k=n(75),x=n(987),E=n(67),_=n.n(E);n(3545);function C(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=b()(e);if(t){var r=b()(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p()(this,n)}}var R=function(e){u()(n,e);var t=C(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]=w.a.createElement("td",{key:"".concat(n,"-").concat(r),className:"grid_select"},w.a.createElement("div",{role:"button",onClick:a,onKeyPress:a,onMouseOver:l,onFocus:l,tabIndex:0},n,"-",r)):e[r-1]=w.a.createElement("td",{key:"".concat(n,"-").concat(r),className:"cell"},w.a.createElement("div",{role:"button",tabIndex:0,onClick:a,onKeyPress:a,onMouseOver:l,onFocus:l},n,"-",r))}t[n-1]=w.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]=w.a.createElement("th",{key:s,className:"selected_cols"},s+1):c[s]=w.a.createElement("th",{key:s,className:"un_selected_cols"},s+1);return w.a.createElement("table",{className:"tableSelect",align:"center"},w.a.createElement("thead",null,c),w.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 w.a.createElement(x.default,{onHide:this.props.onHide,show:this.props.show},w.a.createElement(x.default.Header,{closeButton:!0},w.a.createElement(x.default.Title,{as:"h5"},this.props.t("choose-dimensions"),this.props.t("row"),": ",this.state.hoverRow," ",this.props.t("col"),": ",this.state.hoverCol)),w.a.createElement(x.default.Body,null,w.a.createElement("div",null,this.createTable(),w.a.createElement(k.default,{block:!0,className:"insert_button",variant:"primary",align:"center",onClick:this.insertTable},this.props.t("insert-table-spec",{rows:this.state.rows,cols:this.state.cols})))))}}]),n}(m.Component);R.propTypes={onHide:g.a.func,show:g.a.bool.isRequired},R.defaultProps={onHide:_.a},t.default=R},3545:function(e,t,n){"use strict";n.r(t);var o=n(22),r=n.n(o),a=n(3546),l={insert:"head",singleton:!1};r()(a.default,l);t.default=a.default.locals||{}},3546:function(e,t,n){"use strict";n.r(t);var o=n(23),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}}]);