text: (window.webpackJsonp=window.webpackJsonp||[]).push([[83],{1457:function(e,t,a){"use strict";a.r(t);var n=a(11),o=a.n(n),l=a(24),r=a.n(l),c=a(25),s=a.n(c),i=a(22),m=a.n(i),d=a(26),u=a.n(d),h=a(27),p=a.n(h),f=a(16),g=a.n(f),v=a(6),b=a.n(v),E=a(0),N=a.n(E),y=a(699),w=a.n(y),C=a(197),A=a(692),k=a(32),I=a(148),S=a(713),x=a.n(S),T=Object(k.b)((function(e){return{permissions:e.meDetails.permissions}}))((function(e){var t=e.attachment,a=t.id,n=t.name;return N.a.createElement("div",{className:"row border ".concat(e.highlightLine),onMouseEnter:function(){return e.onLineEnter()},onMouseLeave:function(){return e.onLineLeave()}},N.a.createElement("div",{onClick:function(){return function(e,t){I.a.downloadAttachment(e).then((function(e){x()(e.data,t)}))}(a,n)},className:"col-sm-11"},n),N.a.createElement("div",{className:"col-sm-1"},e.showActionButtons?N.a.createElement("a",{role:"button",onClick:e.toggleDelete},N.a.createElement("span",{className:"glyphicon glyphicon-trash mybtn-danger"})," "):""))})),L=a(100),R=function(e){return N.a.createElement(L.a,{buttonConfirmText:"Verwijder",buttonClassName:"btn-danger",closeModal:e.toggleDelete,confirmAction:function(){return e.deleteAttachment(e.attachment.name,e.attachment.id),void e.toggleDelete()},title:"Verwijderen"},N.a.createElement("p",null,"Wil je deze bijlage verwijderen?"))};function j(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 a,n=g()(e);if(t){var o=g()(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return p()(this,a)}}var O=function(e){u()(a,e);var t=j(a);function a(e){var n;return r()(this,a),n=t.call(this,e),b()(m()(n),"onLineEnter",(function(){n.setState({showActionButtons:!0,highlightLine:"highlight-line"})})),b()(m()(n),"onLineLeave",(function(){n.setState({showActionButtons:!1,highlightLine:""})})),b()(m()(n),"toggleDelete",(function(){n.setState({showDelete:!n.state.showDelete})})),n.state={showActionButtons:!1,highlightLine:"",showDelete:!1},n}return s()(a,[{key:"render",value:function(){return N.a.createElement("div",null,N.a.createElement(T,{highlightLine:this.state.highlightLine,showActionButtons:this.state.showActionButtons,onLineEnter:this.onLineEnter,onLineLeave:this.onLineLeave,toggleDelete:this.toggleDelete,attachment:this.props.attachment}),this.state.showDelete&&N.a.createElement(R,{toggleDelete:this.toggleDelete,attachment:this.props.attachment,deleteAttachment:this.props.deleteAttachment}))}}]),a}(E.Component),D=function(e){var t=e.attachments;return N.a.createElement("div",null,N.a.createElement("div",{className:"row border header"},N.a.createElement("div",{className:"col-sm-11"},"Naam"),N.a.createElement("div",{className:"col-sm-1"})),t.length>0?t.map((function(t){return N.a.createElement(O,{key:t.name,attachment:t,deleteAttachment:e.deleteAttachment})})):N.a.createElement("div",null,"Geen bijlages bekend."))};function B(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 a,n=g()(e);if(t){var o=g()(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return p()(this,a)}}var q=a(781).default,P=function(e){u()(a,e);var t=B(a);function a(e){var n;return r()(this,a),(n=t.call(this,e)).state={error:!1,errorMaxSize:!1},n}return s()(a,[{key:"onDropAccepted",value:function(e){this.props.addAttachment(e),this.props.toggleShowNew()}},{key:"onDropRejected",value:function(){this.setState({errorMaxSize:!0})}},{key:"render",value:function(){return N.a.createElement(L.a,{closeModal:this.props.toggleShowNew,showConfirmAction:!1,title:"Upload bestand"},N.a.createElement("div",{className:"upload-file-content"},N.a.createElement(q,{className:"dropzone",onDropAccepted:this.onDropAccepted.bind(this),onDropRejected:this.onDropRejected.bind(this),maxSize:6e6},N.a.createElement("p",null,"Klik hier voor het uploaden van een bestand"),N.a.createElement("p",null,N.a.createElement("strong",null,"of")," sleep het bestand hierheen"))),this.state.error&&N.a.createElement("p",{className:"has-error-message"},"Uploaden mislukt. Probeer nogmaals een bestand te uploaden."),this.state.errorMaxSize&&N.a.createElement("p",{className:"has-error-message"},"Uploaden mislukt. Het bestand mag maximaal 6MB groot zijn."))}}]),a}(E.Component),M=a(693),G=a(700);function z(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 a,n=g()(e);if(t){var o=g()(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return p()(this,a)}}var U=function(e){u()(a,e);var t=z(a);function a(e){var n;return r()(this,a),n=t.call(this,e),b()(m()(n),"toggleShowNew",(function(){n.setState({showNew:!n.state.showNew})})),n.state={showNew:!1},n}return s()(a,[{key:"render",value:function(){return N.a.createElement("div",null,N.a.createElement(G.a,null,N.a.createElement("span",{className:"h5 text-bold"},"Bijlages"),N.a.createElement("a",{role:"button",className:"pull-right",onClick:this.toggleShowNew},N.a.createElement("span",{className:"glyphicon glyphicon-plus"}))),N.a.createElement(M.a,null,N.a.createElement("div",{className:"col-md-12"},N.a.createElement(D,{attachments:this.props.attachments,deleteAttachment:this.props.deleteAttachment})),N.a.createElement("div",{className:"col-md-12 margin-10-top"},this.state.showNew&&N.a.createElement(P,{toggleShowNew:this.toggleShowNew,addAttachment:this.props.addAttachment}))))}}]),a}(E.Component),F=Object(k.b)((function(e){return{permissions:e.meDetails.permissions}}))(U),V=a(744),J=a(836),K=(a(697),a(7),a(696)),_=function(e){var t=e.email,a=e.contactGroupName,n=e.emailAddresses,o=e.errors,l=e.hasLoaded,r=(e.handleSubmit,e.handleToIds),c=e.handleCcIds,s=e.handleBccIds,i=e.handleInputChange,m=e.handleTextChange,d=t.from,u=t.to,h=t.cc,p=t.bcc,f=t.subject,g=t.htmlBody,v=t.contactGroupId;return N.a.createElement(M.a,null,N.a.createElement("div",{className:"row"},N.a.createElement("div",{className:"row margin-10-bottom"},N.a.createElement("div",{className:"col-sm-3"},N.a.createElement("label",{htmlFor:"description",className:"col-sm-12"},"Van")),N.a.createElement("div",{className:"col-sm-9",id:"from"},d))),N.a.createElement("div",{className:"row"},v?N.a.createElement(K.a,{label:N.a.createElement("span",null,"Groep",N.a.createElement("br",null),N.a.createElement("small",{style:{color:"red",fontWeight:"normal"}},"Contacten in groep en extra contacten krijgen elk een aparte mail en zien niet de e-mail adressen van anderen. Samenvoegvelden werken.")),name:"contactGroupName",value:a,readOnly:!0}):N.a.createElement(J.a,{label:"Aan selecteren",name:"to",value:u,options:n,optionName:"name",onChangeAction:r,allowCreate:!0,required:"required",error:o.to})),N.a.createElement("div",{className:"row"},N.a.createElement(J.a,{label:v?"Extra contacten":"Cc selecteren",name:"cc",value:h,options:n,optionName:"name",onChangeAction:c})),v?null:N.a.createElement("div",{className:"row"},N.a.createElement(J.a,{label:"Bcc selecteren",name:"bcc",value:p,options:n,optionName:"name",onChangeAction:s})),N.a.createElement("div",{className:"row"},N.a.createElement("div",{className:"form-group col-sm-12"},N.a.createElement("div",{className:"row"},N.a.createElement("div",{className:"col-sm-3"},N.a.createElement("label",{className:"col-sm-12 required"},"Onderwerp")),N.a.createElement("div",{className:"col-sm-9"},N.a.createElement("input",{type:"text",className:"form-control input-sm ".concat(o.subject?"has-error":""),name:"subject",value:f,onChange:i}))))),N.a.createElement("div",{className:"row"},N.a.createElement("div",{className:"form-group col-sm-12"},N.a.createElement("div",{className:"row"},l&&N.a.createElement(V.a,{label:"Tekst",value:g,onChangeAction:m})))))},W=function(e){var t=e.email,a=e.contactGroupName,n=e.emailAddresses,o=e.errors,l=e.hasLoaded,r=e.handleSubmit,c=e.handleToIds,s=e.handleCcIds,i=e.handleBccIds,m=e.handleInputChange,d=e.handleTextChange,u=e.addAttachment,h=e.deleteAttachment;return N.a.createElement("form",{className:"form-horizontal",onSubmit:r},N.a.createElement(A.a,null,N.a.createElement(_,{email:t,contactGroupName:a,emailAddresses:n,errors:o,hasLoaded:l,handleSubmit:r,handleToIds:c,handleCcIds:s,handleBccIds:i,handleInputChange:m,handleTextChange:d}),N.a.createElement(F,{attachments:t.attachments,deleteAttachment:h,addAttachment:u})))},H=a(4),Q=a(694),X=a(695),Y=function(e){var t=e.handleSubmit,a=e.loading,n=e.removeEmail;return N.a.createElement("div",{className:"row"},N.a.createElement("div",{className:"col-md-4"},N.a.createElement("div",{className:"btn-group margin-small margin-10-right",role:"group"},N.a.createElement(Q.a,{iconName:"glyphicon-arrow-left",onClickAction:H.e.goBack})),N.a.createElement("div",{className:"btn-group margin-small",role:"group"},N.a.createElement(X.a,{buttonText:"Opslaan",onClickAction:function(e){t(e,!0)}}),N.a.createElement(X.a,{buttonText:"Verstuur e-mail",onClickAction:t,loading:a,loadText:"E-mail verzenden"})),N.a.createElement("div",{className:"btn-group margin-small margin-10-left",role:"group"},N.a.createElement(Q.a,{iconName:"glyphicon-trash",onClickAction:n}))),N.a.createElement("div",{className:"col-md-4"},N.a.createElement("h4",{className:"text-center margin-small"},"Concept bewerken")),N.a.createElement("div",{className:"col-md-4"}))},Z=a(214);function $(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function ee(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?$(Object(a),!0).forEach((function(t){b()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):$(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function te(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 a,n=g()(e);if(t){var o=g()(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return p()(this,a)}}var ae=function(e){u()(a,e);var t=te(a);function a(e){var n;return r()(this,a),n=t.call(this,e),b()(m()(n),"setButtonLoading",(function(){n.setState({buttonLoading:!0})})),n.state={buttonLoading:!1,emailAddresses:[],email:{from:"",mailboxId:"",to:"",cc:"",bcc:"",subject:"",htmlBody:"",attachments:[]},contactGroupName:"",errors:{to:!1,subject:!1},hasLoaded:!1},n.handleInputChange=n.handleInputChange.bind(m()(n)),n.handleToIds=n.handleToIds.bind(m()(n)),n.handleCcIds=n.handleCcIds.bind(m()(n)),n.handleBccIds=n.handleBccIds.bind(m()(n)),n.handleTextChange=n.handleTextChange.bind(m()(n)),n.addAttachment=n.addAttachment.bind(m()(n)),n.deleteAttachment=n.deleteAttachment.bind(m()(n)),n.handleSubmit=n.handleSubmit.bind(m()(n)),n.removeEmail=n.removeEmail.bind(m()(n)),n}return s()(a,[{key:"componentDidMount",value:function(){var e=this;Z.a.fetchEmailAddressessPeek().then((function(t){e.setState({emailAddresses:[].concat(o()(e.state.emailAddresses),o()(t))})})),I.a.fetchEmail(this.props.params.id).then((function(t){var a=e.createExtraOptions(t.to,t.cc,t.bcc);e.setState(ee(ee({},e.state),{},{email:{id:t.id,from:t.from,mailboxId:t.mailboxId,to:t.to?t.to.join(","):"",cc:t.cc?t.cc.join(","):"",bcc:t.bcc?t.bcc.join(","):"",subject:t.subject?t.subject:"",htmlBody:t.htmlBody?t.htmlBody:"",attachments:t.attachments?t.attachments:"",quotationRequestId:t.quotationRequestId?t.quotationRequestId:"",intakeId:t.intakeId?t.intakeId:"",taskId:t.taskId?t.taskId:"",replyTypeId:t.replyTypeId?t.replyTypeId:"",oldEmailId:t.oldEmailId?t.oldEmailId:"",contactGroupId:t.contactGroupId?t.contactGroupId:""},emailAddresses:[].concat(o()(e.state.emailAddresses),o()(a)),hasLoaded:!0}),(function(){t.contactGroupId&&I.a.fetchEmailGroup(t.contactGroupId).then((function(t){e.setState({contactGroupName:t})}))}))}))}},{key:"createExtraOptions",value:function(e,t,a){var n=Object(C.union)(e,t,a),o=[];return n.map((function(e){isNaN(e)&&o.push({id:e,name:e})})),o}},{key:"handleInputChange",value:function(e){var t=e.target,a="checkbox"===t.type?t.checked:t.value,n=t.name;this.setState(ee(ee({},this.state),{},{email:ee(ee({},this.state.email),{},b()({},n,a))}))}},{key:"handleToIds",value:function(e){this.setState(ee(ee({},this.state),{},{email:ee(ee({},this.state.email),{},{to:e})}))}},{key:"handleCcIds",value:function(e){this.setState(ee(ee({},this.state),{},{email:ee(ee({},this.state.email),{},{cc:e})}))}},{key:"handleBccIds",value:function(e){this.setState(ee(ee({},this.state),{},{email:ee(ee({},this.state.email),{},{bcc:e})}))}},{key:"handleTextChange",value:function(e){this.setState(ee(ee({},this.state),{},{email:ee(ee({},this.state.email),{},{htmlBody:e.target.getContent({format:"raw"})})}))}},{key:"addAttachment",value:function(e){var t=this,a=new FormData;e.map((function(e,t){a.append("attachments["+t+"]",e)})),I.a.storeAttachment(this.state.email.id,a).then((function(e){t.setState(ee(ee({},t.state),{},{email:ee(ee({},t.state.email),{},{attachments:e.data.data})}))}))}},{key:"deleteAttachment",value:function(e,t){var a=this;I.a.deleteAttachment(t).then((function(){a.setState(ee(ee({},a.state),{},{email:ee(ee({},a.state.email),{},{attachments:a.state.email.attachments.filter((function(t){return t.name!==e}))})}))}))}},{key:"handleSubmit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.preventDefault();var a=this.state.email,n={},o=!1;function l(e,t){I.a.updateConcept2(e,t).then((function(){H.f.push("/emails/concept")})).catch((function(e){}))}function r(e,t){I.a.sendConcept(e,t).then((function(){H.f.push("/emails/sent")})).catch((function(e){}))}if(w.a.isEmpty(""+a.contactGroupId)&&w.a.isEmpty(a.to)&&(n.to=!0,o=!0),w.a.isEmpty(""+a.from)&&(n.from=!0,o=!0),w.a.isEmpty(""+a.subject)&&(n.subject=!0,o=!0),this.setState(ee(ee({},this.state),{},{errors:n})),!o){a.to.length>0&&(a.to=a.to.split(",")),a.cc.length>0&&(a.cc=a.cc.split(",")),a.bcc.length>0&&(a.bcc=a.bcc.split(","));var c=new FormData;c.append("to",JSON.stringify(a.to)),c.append("cc",JSON.stringify(a.cc)),c.append("bcc",JSON.stringify(a.bcc)),c.append("quotationRequestId",a.quotationRequestId),c.append("intakeId",a.intakeId),c.append("taskId",a.taskId),c.append("replyTypeId",a.replyTypeId),c.append("oldEmailId",a.oldEmailId),c.append("contactGroupId",a.contactGroupId),t?I.a.updateConcept(a,this.props.params.id).then((function(e){l(c,e.data)})).catch((function(e){console.log(e)})):(this.setButtonLoading(),I.a.updateConcept(a,this.props.params.id).then((function(e){r(c,e.data)})).catch((function(e){console.log(e)})))}}},{key:"removeEmail",value:function(){I.a.deleteEmail(this.props.params.id).then((function(){H.e.goBack()}))}},{key:"render",value:function(){return N.a.createElement("div",{className:"row"},N.a.createElement("div",{className:"col-md-9"},N.a.createElement("div",{className:"col-md-12 margin-10-top"},N.a.createElement(A.a,null,N.a.createElement(M.a,{className:"panel-small"},N.a.createElement(Y,{loading:this.state.buttonLoading,handleSubmit:this.handleSubmit,removeEmail:this.removeEmail})))),N.a.createElement("div",{className:"col-md-12 margin-10-top"},N.a.createElement(W,{email:this.state.email,contactGroupName:this.state.contactGroupName,emailAddresses:this.state.emailAddresses,errors:this.state.errors,hasLoaded:this.state.hasLoaded,handleSubmit:this.handleSubmit,handleToIds:this.handleToIds,handleCcIds:this.handleCcIds,handleBccIds:this.handleBccIds,handleInputChange:this.handleInputChange,handleTextChange:this.handleTextChange,addAttachment:this.addAttachment,deleteAttachment:this.deleteAttachment}))),N.a.createElement("div",{className:"col-md-3"}))}}]),a}(E.Component);t.default=ae},692:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(8),r=a.n(l),c=function(e){var t=e.children,a=e.className,n=e.onMouseEnter,l=e.onMouseLeave;return o.a.createElement("div",{className:"panel panel-default ".concat(a),onMouseEnter:n,onMouseLeave:l},t)};c.defaultProps={className:"",onMouseEnter:function(){},onMouseLeave:function(){}},c.propTypes={className:r.a.string,onMouseEnter:r.a.func,onMouseLeave:r.a.func},t.a=c},693:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(8),r=a.n(l),c=function(e){var t=e.className,a=e.children;return o.a.createElement("div",{className:"panel-body ".concat(t)},a)};c.defaultProps={className:""},c.propTypes={className:r.a.string},t.a=c},694:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(8),r=a.n(l),c=function(e){var t=e.buttonClassName,a=e.iconName,n=e.onClickAction,l=e.title,r=e.disabled;return o.a.createElement("button",{type:"button",className:"btn ".concat(t),onClick:n,disabled:r,title:l},o.a.createElement("span",{className:"glyphicon ".concat(a)}))};c.defaultProps={buttonClassName:"btn-success btn-sm",title:"",disabled:!1},c.propTypes={buttonClassName:r.a.string,iconName:r.a.string.isRequired,onClickAction:r.a.func,title:r.a.string,disabled:r.a.bool},t.a=c},695:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(8),r=a.n(l),c=function(e){var t=e.buttonClassName,a=e.buttonText,n=e.onClickAction,l=e.type,r=e.value,c=e.loading,s=e.loadText,i=e.disabled;return c?o.a.createElement("button",{type:l,className:"btn btn-sm btn-loading ".concat(t),value:r,disabled:c},o.a.createElement("span",{className:"glyphicon glyphicon-refresh glyphicon-refresh-animate"})," ",s):o.a.createElement("button",{type:l,className:"btn btn-sm ".concat(t),onClick:n,value:r,disabled:i},a)};c.defaultProps={buttonClassName:"btn-success",type:"button",value:"",loading:!1,loadText:"Aan het laden",disabled:!1},c.propTypes={buttonClassName:r.a.string,buttonText:r.a.string.isRequired,onClickAction:r.a.func,type:r.a.string,value:r.a.string,loading:r.a.bool,loadText:r.a.string,disabled:r.a.bool},t.a=c},696:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(8),r=a.n(l),c=function(e){var t=e.label,a=e.type,n=e.className,l=e.size,r=e.id,c=e.placeholder,s=e.name,i=e.value,m=e.onClickAction,d=e.onChangeAction,u=e.onBlurAction,h=e.required,p=e.readOnly,f=e.maxLength,g=e.error,v=e.min,b=e.max,E=e.step,N=e.errorMessage,y=e.divSize,w=e.divClassName,C=e.autoComplete;return o.a.createElement("div",{className:"form-group ".concat(y," ").concat(w)},o.a.createElement("label",{htmlFor:r,className:"col-sm-6 ".concat(h)},t),o.a.createElement("div",{className:"".concat(l)},o.a.createElement("input",{type:a,className:"form-control input-sm ".concat(n)+(g?"has-error":""),id:r,placeholder:c,name:s,value:i,onClick:m,onChange:d,onBlur:u,readOnly:p,maxLength:f,min:v,max:b,autoComplete:C,step:E})),g&&o.a.createElement("div",{className:"col-sm-offset-6 col-sm-6"},o.a.createElement("span",{className:"has-error-message"}," ",N)))};c.defaultProps={divClassName:"",className:"",size:"col-sm-6",divSize:"col-sm-6",name:"",type:"text",value:"",required:"",readOnly:!1,maxLength:null,error:!1,min:"",max:"",step:"",errorMessage:"",autoComplete:"off",onBlurAction:function(){},onClickAction:function(){},onChangeAction:function(){}},c.propTypes={label:r.a.oneOfType([r.a.string,r.a.object]).isRequired,type:r.a.string,className:r.a.string,divClassName:r.a.string,size:r.a.string,divSize:r.a.string,id:r.a.string,placeholder:r.a.string,name:r.a.string.isRequired,value:r.a.oneOfType([r.a.string,r.a.number]),onClickAction:r.a.func,onChangeAction:r.a.func,onBlurAction:r.a.func,required:r.a.string,readOnly:r.a.bool,maxLength:r.a.string,error:r.a.bool,min:r.a.string,max:r.a.string,step:r.a.string,errorMessage:r.a.string,autoComplete:r.a.string},t.a=c},697:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(4),r=a(8),c=a.n(r),s=function(e){var t=e.label,a=e.className,n=e.id,r=e.value,c=e.link,s=e.hidden;return c.length>0?o.a.createElement("div",{className:a,style:s?{display:"none"}:{}},o.a.createElement("label",{htmlFor:n,className:"col-sm-6"},t),o.a.createElement("div",{className:"col-sm-6",id:n,onClick:null},o.a.createElement(l.b,{to:c,className:"link-underline"},r))):o.a.createElement("div",{className:a,style:s?{display:"none"}:{}},o.a.createElement("label",{htmlFor:n,className:"col-sm-6"},t),o.a.createElement("div",{className:"col-sm-6",id:n},r))};s.defaultProps={className:"col-sm-6",value:"",link:"",hidden:!1},s.propTypes={label:c.a.oneOfType([c.a.string,c.a.object]).isRequired,className:c.a.string,id:c.a.string,value:c.a.oneOfType([c.a.string,c.a.number]),link:c.a.string,hidden:c.a.bool},t.a=s},700:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(8),r=a.n(l),c=function(e){var t=e.className,a=e.children;return o.a.createElement("div",{className:"panel-heading ".concat(t)},a)};c.defaultProps={className:""},c.propTypes={className:r.a.string},t.a=c},713:function(e,t){e.exports=function(e,t,a,n){var o=new Blob(void 0!==n?[n,e]:[e],{type:a||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(o,t);else{var l=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(o):window.webkitURL.createObjectURL(o),r=document.createElement("a");r.style.display="none",r.href=l,r.setAttribute("download",t),void 0===r.download&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),setTimeout((function(){document.body.removeChild(r),window.URL.revokeObjectURL(l)}),200)}}},744:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(8),r=a.n(l),c=(a(762),a(763),a(764),a(765),a(766),a(767),a(768),a(769),a(770),a(771),a(772),a(780)),s=function(e){var t=e.label,a=e.value,n=e.onChangeAction;return o.a.createElement("div",null,o.a.createElement("div",{className:"col-sm-3"},o.a.createElement("label",{htmlFor:"quotationText",className:"col-sm-12"},t)),o.a.createElement("div",{className:"col-sm-9"},o.a.createElement(c.a,{initialValue:a,init:{branding:!1,language:"nl",menubar:!1,plugins:"paste lists advlist link image code table textcolor pagebreak",toolbar:"undo redo | formatselect fontselect | bold italic forecolor | alignleft aligncenter alignright | pagebreak | bullist numlist outdent indent | table | link image | code",height:"300",browser_spellcheck:!0,font_formats:"Courier New=courier new;Tahoma=tahoma;Times New Roman=times new roman;Verdana=verdana;"},onChange:n})))};s.defaultProps={value:"",errorMessage:""},s.propTypes={label:r.a.string.isRequired,type:r.a.string,id:r.a.string,placeholder:r.a.string,value:r.a.string,onChangeAction:r.a.func},t.a=s},836:function(e,t,a){"use strict";var n=a(0),o=a.n(n),l=a(8),r=a.n(l),c=a(715),s=(a(716),function(e){var t=e.label,a=(e.className,e.size),n=e.id,l=e.name,r=e.value,s=e.options,i=e.optionId,m=e.optionName,d=e.onChangeAction,u=e.required,h=(e.allowCreate,e.error);return o.a.createElement("div",{className:"form-group col-sm-12"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-sm-3"},o.a.createElement("label",{htmlFor:n,className:"col-sm-12 ".concat(u)},t)),o.a.createElement("div",{className:"".concat(a)},o.a.createElement(c.a.Creatable,{id:n,name:l,value:r,onChange:d,options:s,valueKey:i,labelKey:m,placeholder:"",noResultsText:"Geen resultaat gevonden",multi:!0,simpleValue:!0,removeSelected:!0,promptTextCreator:function(e){return'Maak optie "'.concat(e,'" aan')},className:h?" has-error":""}))))});s.defaultProps={allowCreate:!1,className:"",size:"col-sm-6",optionId:"id",optionName:"name",readOnly:!1,required:"",error:!1,value:""},s.propTypes={allowCreate:r.a.bool,label:r.a.string.isRequired,className:r.a.string,size:r.a.string,id:r.a.string,name:r.a.string.isRequired,options:r.a.array,optionId:r.a.string,optionName:r.a.string,value:r.a.string,onChangeAction:r.a.func,onBlurAction:r.a.func,required:r.a.string,readOnly:r.a.bool,error:r.a.bool},t.a=s}}]);