(this.webpackJsonpst_multi_textarea=this.webpackJsonpst_multi_textarea||[]).push([[0],{79:function(e,t,n){e.exports=n(91)},91:function(e,t,n){"use strict";n.r(t);var a=n(2),r=n.n(a),i=n(28),l=n.n(i),s=n(7),u=n(0),c=n(1),o=n(3),d=n(4),m=n(41),p=n(138),f=n(139),g=n(134),x=n(135),b=n(133),E=n(140),h=n(67),v=n(137),C=function(e){Object(o.a)(n,e);var t=Object(d.a)(n);function n(){var e;Object(c.a)(this,n);for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return(e=t.call.apply(t,[this].concat(i))).state={stringList:e.props.args.default_list?e.props.args.default_list.map((function(e,t){return{value:e,id:t}})):[],itemIdGen:e.props.args.default_list?e.props.args.default_list.length:0},e.render=function(){var t=e.props.args.label,n=(e.props.args.default_list,e.props.theme,Object(h.a)({palette:{mode:"dark"}})),a=e.state.stringList.map((function(n){return r.a.createElement(p.a,{container:!0,key:"stringGrid".concat(n.id)},r.a.createElement(p.a,{item:!0,xs:10.5},r.a.createElement(f.a,{sx:{pr:2}},r.a.createElement(g.a,{fullWidth:!0,multiline:!0,label:t,value:n.value,onChange:function(t){return e.onTextfieldChanged(t,n.id)},onBlur:function(t){return e.onTextfieldBlur(t,n.id)},rows:2}))),r.a.createElement(p.a,{item:!0,xs:1.5},r.a.createElement(f.a,{display:"flex",justifyContent:"center",alignItems:"center",sx:{height:"100%"}},r.a.createElement(x.a,{variant:"contained",onClick:function(t){return e.onDeleteClicked(t,n.id)}},"Delete"))))}));return r.a.createElement(v.a,{theme:n},r.a.createElement(f.a,{sx:{pt:2,pb:1,px:2,width:"100%",border:"1px solid grey",borderRadius:"8px"}},r.a.createElement(f.a,{sx:{mb:2}},r.a.createElement(b.a,{spacing:2},a)),r.a.createElement(E.a,null),r.a.createElement(f.a,{sx:{mt:1}},r.a.createElement(x.a,{onClick:e.onAddClicked},"Add"))))},e.onAddClicked=function(){e.setState((function(e){return{stringList:[].concat(Object(s.a)(e.stringList),[{value:"",id:e.itemIdGen}]),itemIdGen:e.itemIdGen+1}}),(function(){return m.a.setComponentValue(e.state.stringList.map((function(e){return e.value})))}))},e.onDeleteClicked=function(t,n){e.setState((function(e){return{stringList:e.stringList.filter((function(e){return e.id!==n}))}}),(function(){return m.a.setComponentValue(e.state.stringList.map((function(e){return e.value})))}))},e.onTextfieldChanged=function(t,n){e.setState((function(e){return{stringList:e.stringList.map((function(e){return e.id===n?Object.assign(e,{value:t.target.value}):e}))}}))},e.onTextfieldBlur=function(t,n){m.a.setComponentValue(e.state.stringList.map((function(e){return e.value})))},e}return Object(u.a)(n)}(m.b),L=Object(m.c)(C);l.a.render(r.a.createElement(r.a.StrictMode,null,r.a.createElement(L,null)),document.getElementById("root"))}},[[79,1,2]]]);
//# sourceMappingURL=main.e8672309.chunk.js.map