text: (window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1081:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),s=n.n(o),i=n(1082),l=n.n(i),c=n(7),u=n.n(c),p=function(e){var t=e.label,n=e.size,a=e.id,o=e.name,s=e.value,i=e.onChangeAction,c=e.start,p=e.end,d=e.step;return r.a.createElement("div",{className:"form-group col-sm-6"},r.a.createElement("label",{htmlFor:a,className:"col-sm-6"},t),r.a.createElement("div",{className:"".concat(n)},r.a.createElement(l.a,{name:o,value:s,onChange:function(e){var t=u()("1900-01-01 00:00:00").add(e,"seconds").format("HH:mm:ss");i(t,o)},start:c,end:p,step:d,format:24,className:"input-sm"})))};p.defaultProps={className:"",size:"col-sm-6",value:"",start:"08:00",end:"23:00",step:15},p.propTypes={label:s.a.string.isRequired,id:s.a.string,name:s.a.string.isRequired,value:s.a.oneOfType([s.a.string,s.a.number]),onChangeAction:s.a.func,start:s.a.string,end:s.a.string,step:s.a.number},t.a=p},1082:function(e,t,n){e.exports=function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};return e[a].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=e.end,n=void 0===t?"23:59":t,a=e.format,r=void 0===a?12:a,i=e.initialValue,u=void 0===i?"00:00":i,p=e.onChange,d=void 0===p?function(){}:p,m=e.start,f=void 0===m?"00:00":m,h=e.step,v=void 0===h?30:h,g=e.value,b=void 0===g?null:g,y=function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["end","format","initialValue","onChange","start","step","value"]),E=function(){for(var e=[],t=(0,c.timeToInt)(n,!1),a=(0,c.timeToInt)(f,!1);a<=t;a+=60*v)e.push(a);return e}().map((function(e){return{key:e,val:function(e){var t=(0,c.timeFromInt)(e,!1);if(24===r)return t;var n=t.match(/^(\d+):/),a=parseInt(n[1],10);if(0===a)return t.replace(/^\d+/,"12")+" AM";if(a<12)return t+" AM";if(12===a)return t+" PM";var o=a<22?"0"+(a-12):(a-12).toString();return t.replace(/^\d+/,o)+" PM"}(e)}})),k=E.map((function(e){var t=e.key,n=e.val;return s.default.createElement("option",{key:t,value:t},n)})),N=b||u;try{N=(0,c.timeToInt)(N)}catch(e){N=parseInt(N,10)}return E.filter((function(e){var t=e.key;return N===t})).length||(N=(0,c.timeToInt)(f)),s.default.createElement(l.default,o({componentClass:"select",onChange:function(e){d(parseInt(e.target.value,10))},value:N},y),k)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s=a(n(4)),i=a(n(3)),l=a(n(5)),c=n(6),u={end:i.default.string,format:i.default.number,initialValue:i.default.any,onChange:i.default.func,start:i.default.string,step:i.default.number,value:i.default.any};r.propTypes=u,t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n(1));t.default=a.default},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(1083)},function(e,t){e.exports=n(1088)}])},1083:function(e,t,n){"use strict";var a=n(791);t.__esModule=!0,t.default=void 0;var r=a(n(792)),o=a(n(821)),s=a(n(822)),i=a(n(712)),l=a(n(0)),c=a(n(8)),u=a(n(826)),p=(a(n(1084)),a(n(1085))),d=a(n(1087)),m=n(823),f=n(938),h={componentClass:u.default,type:c.default.string,id:c.default.string,inputRef:c.default.func},v={$bs_formGroup:c.default.object},g=function(e){function t(){return e.apply(this,arguments)||this}return(0,s.default)(t,e),t.prototype.render=function(){var e,t=this.context.$bs_formGroup,n=t&&t.controlId,a=this.props,s=a.componentClass,c=a.type,u=a.id,p=void 0===u?n:u,d=a.inputRef,h=a.className,v=a.bsSize,g=(0,o.default)(a,["componentClass","type","id","inputRef","className","bsSize"]),b=(0,m.splitBsProps)(g),y=b[0],E=b[1];if("file"!==c&&(e=(0,m.getClassSet)(y)),v){var k=f.SIZE_MAP[v]||v;e[(0,m.prefix)({bsClass:"input"},k)]=!0}return l.default.createElement(s,(0,r.default)({},E,{type:c,id:p,ref:d,className:(0,i.default)(h,e)}))},t}(l.default.Component);g.propTypes=h,g.defaultProps={componentClass:"input"},g.contextTypes=v,g.Feedback=p.default,g.Static=d.default;var b=(0,m.bsClass)("form-control",(0,m.bsSizes)([f.Size.SMALL,f.Size.LARGE],g));t.default=b,e.exports=t.default},1084:function(e,t,n){"use strict";e.exports=function(){}},1085:function(e,t,n){"use strict";var a=n(791);t.__esModule=!0,t.default=void 0;var r=a(n(821)),o=a(n(792)),s=a(n(822)),i=a(n(712)),l=a(n(0)),c=a(n(8)),u=a(n(1086)),p=n(823),d={$bs_formGroup:c.default.object},m=function(e){function t(){return e.apply(this,arguments)||this}(0,s.default)(t,e);var n=t.prototype;return n.getGlyph=function(e){switch(e){case"success":return"ok";case"warning":return"warning-sign";case"error":return"remove";default:return null}},n.renderDefaultFeedback=function(e,t,n,a){var r=this.getGlyph(e&&e.validationState);return r?l.default.createElement(u.default,(0,o.default)({},a,{glyph:r,className:(0,i.default)(t,n)})):null},n.render=function(){var e=this.props,t=e.className,n=e.children,a=(0,r.default)(e,["className","children"]),s=(0,p.splitBsProps)(a),c=s[0],u=s[1],d=(0,p.getClassSet)(c);if(!n)return this.renderDefaultFeedback(this.context.$bs_formGroup,t,d,u);var m=l.default.Children.only(n);return l.default.cloneElement(m,(0,o.default)({},u,{className:(0,i.default)(m.props.className,t,d)}))},t}(l.default.Component);m.defaultProps={bsRole:"feedback"},m.contextTypes=d;var f=(0,p.bsClass)("form-control-feedback",m);t.default=f,e.exports=t.default},1086:function(e,t,n){"use strict";var a=n(791);t.__esModule=!0,t.default=void 0;var r=a(n(792)),o=a(n(821)),s=a(n(822)),i=a(n(712)),l=a(n(0)),c=a(n(8)),u=n(823),p={glyph:c.default.string.isRequired},d=function(e){function t(){return e.apply(this,arguments)||this}return(0,s.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.glyph,a=t.className,s=(0,o.default)(t,["glyph","className"]),c=(0,u.splitBsProps)(s),p=c[0],d=c[1],m=(0,r.default)({},(0,u.getClassSet)(p),((e={})[(0,u.prefix)(p,n)]=!0,e));return l.default.createElement("span",(0,r.default)({},d,{className:(0,i.default)(a,m)}))},t}(l.default.Component);d.propTypes=p;var m=(0,u.bsClass)("glyphicon",d);t.default=m,e.exports=t.default},1087:function(e,t,n){"use strict";var a=n(791);t.__esModule=!0,t.default=void 0;var r=a(n(792)),o=a(n(821)),s=a(n(822)),i=a(n(712)),l=a(n(0)),c=a(n(826)),u=n(823),p={componentClass:c.default},d=function(e){function t(){return e.apply(this,arguments)||this}return(0,s.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,a=(0,o.default)(e,["componentClass","className"]),s=(0,u.splitBsProps)(a),c=s[0],p=s[1],d=(0,u.getClassSet)(c);return l.default.createElement(t,(0,r.default)({},p,{className:(0,i.default)(n,d)}))},t}(l.default.Component);d.propTypes=p,d.defaultProps={componentClass:"p"};var m=(0,u.bsClass)("form-control-static",d);t.default=m,e.exports=t.default},1088:function(e,t){e.exports=function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};return e[a].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t){"use strict";function n(e){return"time-number"===e.message.substring(0,11)}function a(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=e.toString(),a=t-n.length,r="";r.length<a;)r+="0";return""+r+n}function r(e,t){var n=t.validate,r=t.format,o=t.leadingZero,s=parseInt(e,10);if(n&&(s<0||s>=86400))throw new RangeError("time-number, timeFromInt(): rangeError, value supposed to be between 0 and 86399");var i=Math.floor(s/3600),l=Math.floor((s-3600*i)/60),c=s-3600*i-60*l,u=null;12!==r&&"12"!==r||(u=i<12?"AM":"PM",0===i?i=12:i>12&&(i-=12));var p=[o?a(i):i,a(l)];c&&p.push(a(c));var d=p.join(":");return u?d+" "+u:d}function o(e){return"boolean"==typeof e?{validate:e}:e}function s(e,t){for(var n=t.validate,a=e.split(":"),r=a.length;a.length<3;)a.push("0");var o=a.map((function(e){return parseInt(e,10)}));if(n){var s=o[0];if(s<0||s>23)throw new RangeError("time-number, timeToInt(): hours must be between 0 and 23, provided value: '"+e+"'");if(r>1){var i=o[1];if(i<0||i>59)throw new RangeError("time-number, timeToInt(): minutes must be between 0 and 59, provided value: '"+e+"'")}if(r>2){var l=o[2];if(l<0||l>59)throw new RangeError("time-number, timeToInt(): seconds must be between 0 and 59, provided value: '"+e+"'")}}return 3600*o[0]+60*o[1]+o[2]}function i(e){if(!e||!e.match)return e;if(!e.match(/(am|pm)$/i))return e;if(e.match(/^0+:/))throw new Error("12h format can't have 00:30 AM, it should be 12:30 AM instead");return e.match(/am$/i)?e.replace(/^(\d+)/,(function(e){return"12"===e?"0":e})).replace(/\s*am$/i,""):e.replace(/^(\d+)/,(function(e){return"12"===e?e:(parseInt(e,10)+12).toString()})).replace(/\s*pm$/i,"")}Object.defineProperty(t,"__esModule",{value:!0}),t.timeFromInt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={validate:!0,format:24,leadingZero:!0},s=Object.assign({},a,o(t)),i=s.validate;if(!i)return r(e,s);try{if(e-parseFloat(e,10)+1>=0)return r(e,s);throw new Error}catch(t){if(n(t))throw t;throw new Error("time-number, timeFromInt(): invalud value: '"+e+"', supposed to be number")}},t.timeToInt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={validate:!0},r=Object.assign({},a,o(t)),l=r.validate;if(!l){var c=i(e);return s(c,r)}try{var u=i(e);if(!u.match(/^\d+(:\d+(:\d+)?)?$/))throw new Error;return s(u,r)}catch(t){if(n(t))throw t;throw new Error("time-number, timeToInt(): supported formats are 'HH', 'HH:mm', 'HH:mm:ss', provided value: '"+e+"' doesn't match any of them")}}}])},1508:function(e,t,n){"use strict";n.r(t);var a=n(24),r=n.n(a),o=n(25),s=n.n(o),i=n(26),l=n.n(i),c=n(27),u=n.n(c),p=n(16),d=n.n(p),m=n(0),f=n.n(m),h=n(31),v=n(698),g=n(835),b=n(22),y=n.n(b),E=n(6),k=n.n(E),N=n(4),w=n(700),S=n(102),C=Object(h.b)(null,(function(e){return{deleteTask:function(t){e(Object(g.a)(t))}}}))((function(e){return f.a.createElement(S.a,{buttonConfirmText:"Verwijder",buttonClassName:"btn-danger",closeModal:e.closeDeleteItemModal,confirmAction:function(){return e.deleteTask(e.id),void e.closeDeleteItemModal()},title:"Verwijderen"},f.a.createElement("p",null,"Verwijder taak: ",f.a.createElement("strong",null," ","".concat(e.noteSummary)," ")))})),O=n(699),I=n(95),D=function(e){return f.a.createElement(S.a,{buttonConfirmText:"Dupliceer",closeModal:e.closeModal,confirmAction:function(){I.a.duplicateTask(e.id).then((function(t){var n=t.data.data.id;N.f.push("/taak/".concat(n)),e.closeModal()}))},title:"Dupliceer taak"},f.a.createElement("p",null,"Dupliceer taak: ",f.a.createElement("strong",null," ","".concat(e.noteSummary)," ")))};function x(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var j=function(e){l()(n,e);var t=x(n);function n(e){var a;return r()(this,n),a=t.call(this,e),k()(y()(a),"toggleDelete",(function(){a.setState({showDelete:!a.state.showDelete})})),k()(y()(a),"toggleDuplicate",(function(){a.setState({showDuplicate:!a.state.showDuplicate})})),a.state={showDelete:!1,showDuplicate:!1},a}return s()(n,[{key:"render",value:function(){var e=this.props.taskDetails.finished;return f.a.createElement("div",{className:"row"},f.a.createElement("div",{className:"col-sm-12"},f.a.createElement(v.a,null,f.a.createElement(O.a,{className:"panel-small"},f.a.createElement("div",{className:"col-md-4"},f.a.createElement("div",{className:"btn-group btn-group-flex",role:"group"},f.a.createElement(w.a,{iconName:"glyphicon-arrow-left",onClickAction:N.e.goBack}),this.props.permissions.manageTask&&f.a.createElement(w.a,{iconName:"glyphicon-duplicate",onClickAction:this.toggleDuplicate}),this.props.permissions.manageTask&&f.a.createElement(w.a,{iconName:"glyphicon-trash",onClickAction:this.toggleDelete}))),f.a.createElement("div",{className:"col-md-4"},f.a.createElement("h3",{className:"text-center table-title margin-small"},e?"Notitie":"Taak"," ")),f.a.createElement("div",{className:"col-md-4"})))),this.state.showDelete&&f.a.createElement(C,{closeDeleteItemModal:this.toggleDelete,noteSummary:this.props.taskDetails.noteSummary,id:this.props.id}),this.state.showDuplicate&&f.a.createElement(D,{closeModal:this.toggleDuplicate,noteSummary:this.props.taskDetails.noteSummary,id:this.props.id}))}}]),n}(m.Component),P=Object(h.b)((function(e){return{taskDetails:e.taskDetails,id:e.taskDetails.id,permissions:e.meDetails.permissions}}),null)(j),T=n(199),L=n(7),R=n.n(L),A=n(106),M=n(701),_=n(705),z=n(708),F=n(706),q=n.n(F),B=n(209),G=n(44),V=n(212),H=n(218),W=n(729),X=n(1081),U=function(e){var t=e.task,n=e.invoices,a=e.campaigns,r=e.intakes,o=e.contactGroups,s=e.opportunities,i=e.housingFiles,l=e.projects,c=e.participants,u=e.orders,p=e.handleReactSelectChange,d=e.peekLoading,m=t.intakeId,h=t.contactGroupId,v=t.opportunityId,g=t.campaignId,b=t.housingFileId,y=t.projectId,E=t.participantId,k=t.orderId,N=t.invoiceId;return f.a.createElement("div",null,f.a.createElement("div",{className:"row"},f.a.createElement(W.a,{label:"Campagne",name:"campaignId",options:a,value:g,onChangeAction:p,multi:!1,isLoading:d.campaigns}),f.a.createElement(W.a,{label:"Intake",size:"col-sm-6",name:"intakeId",options:r,value:m,onChangeAction:p,multi:!1,isLoading:d.intakes})),f.a.createElement("div",{className:"row"},f.a.createElement(W.a,{label:"Groep",size:"col-sm-6",name:"contactGroupId",options:o,value:h,onChangeAction:p,multi:!1,isLoading:d.contactGroups}),f.a.createElement(W.a,{label:"Kans",size:"col-sm-6",name:"opportunityId",options:s,value:v,onChangeAction:p,multi:!1,isLoading:d.opportunities})),f.a.createElement("div",{className:"row"},f.a.createElement(W.a,{label:"Woningdossier",size:"col-sm-6",name:"housingFileId",options:i,value:b,onChangeAction:p,multi:!1,isLoading:d.housingFiles}),f.a.createElement(W.a,{label:"Project",size:"col-sm-6",name:"projectId",options:l,value:y,onChangeAction:p,multi:!1,isLoading:d.projects})),f.a.createElement("div",{className:"row"},f.a.createElement(W.a,{label:"Participant project",size:"col-sm-6",name:"participantId",options:c,value:E,onChangeAction:p,multi:!1,isLoading:d.participants}),f.a.createElement(W.a,{label:"Order",size:"col-sm-6",name:"orderId",options:u,value:k,onChangeAction:p,multi:!1,isLoading:d.orders})),f.a.createElement("div",{className:"row"},f.a.createElement(W.a,{label:"Nota",size:"col-sm-6",name:"invoiceId",options:n,value:N,onChangeAction:p,multi:!1,isLoading:d.invoices})))},Z=n(769),K=n(710),Y=n(707),$=n(777),J=n(205),Q=n(219),ee=n(211),te=n(213),ne=n(216);function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){k()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}R.a.locale("nl");var se=function(e){l()(n,e);var t=oe(n);function n(e){var a;r()(this,n),a=t.call(this,e);var o=e.taskDetails,s=o.id,i=o.note,l=o.typeId,c=o.contactId,u=o.contact,p=o.finished,d=o.intakeId,m=o.campaignId,f=o.contactGroupId,h=o.housingFileId,v=o.projectId,g=o.participantId,b=o.datePlannedStart,E=o.datePlannedFinish,k=o.startTimePlanned,N=o.endTimePlanned,w=o.dateFinished,S=o.responsibleUserId,C=o.responsibleTeamId,O=o.finishedById,I=o.opportunityId,D=o.orderId,x=o.invoiceId;return a.state={contacts:c?[{id:c,fullName:u.fullName}]:[],intakes:[],contactGroups:[],opportunities:[],campaigns:[],housingFiles:[],projects:[],participants:[],orders:[],invoices:[],task:{id:s,note:i,typeId:l||"",contactId:c||"",campaignId:m||"",intakeId:d||"",opportunityId:I||"",contactGroupId:f||"",housingFileId:h||"",projectId:v||"",participantId:g||"",orderId:D||"",invoiceId:x||"",datePlannedStart:b||"",datePlannedFinish:E||"",startTimePlanned:k||"",endTimePlanned:N||"",finished:!!p,dateFinished:w||"",finishedById:O||"",responsibleUserId:S,responsibleTeamId:C,responsible:S?"user"+S:"team"+C},errors:{note:!1,responsible:!1},peekLoading:{contacts:!0,intakes:!0,contactGroups:!0,opportunities:!0,campaigns:!0,housingFiles:!0,projects:!0,participants:!0,orders:!0,invoices:!0}},a.handleInputChange=a.handleInputChange.bind(y()(a)),a.handleInputChangeDate=a.handleInputChangeDate.bind(y()(a)),a.handleInputChangeTime=a.handleInputChangeTime.bind(y()(a)),a.handleSubmit=a.handleSubmit.bind(y()(a)),a.handleReactSelectChange=a.handleReactSelectChange.bind(y()(a)),a}return s()(n,[{key:"componentDidMount",value:function(){var e=this;A.a.getContactsPeek().then((function(t){e.setState({contacts:t,peekLoading:re(re({},e.state.peekLoading),{},{contacts:!1})})})),B.a.peekIntakes().then((function(t){e.setState({intakes:t,peekLoading:re(re({},e.state.peekLoading),{},{intakes:!1})})})),G.a.peekContactGroups().then((function(t){e.setState({contactGroups:t,peekLoading:re(re({},e.state.peekLoading),{},{contactGroups:!1})})})),V.a.peekOpportunities().then((function(t){e.setState({opportunities:t,peekLoading:re(re({},e.state.peekLoading),{},{opportunities:!1})})})),H.a.peekCampaigns().then((function(t){e.setState({campaigns:t,peekLoading:re(re({},e.state.peekLoading),{},{campaigns:!1})})})),Q.a.peekHousingFiles().then((function(t){e.setState({housingFiles:t,peekLoading:re(re({},e.state.peekLoading),{},{housingFiles:!1})})})),J.a.peekProjects().then((function(t){e.setState({projects:t,peekLoading:re(re({},e.state.peekLoading),{},{projects:!1})})})),ee.a.peekParticipantsProjects().then((function(t){e.setState({participants:t,peekLoading:re(re({},e.state.peekLoading),{},{participants:!1})})})),te.a.peekOrders().then((function(t){e.setState({orders:t,peekLoading:re(re({},e.state.peekLoading),{},{orders:!1})})})),ne.a.peekInvoices().then((function(t){e.setState({invoices:t,peekLoading:re(re({},e.state.peekLoading),{},{invoices:!1})})}))}},{key:"handleInputChange",value:function(e){var t=e.target,n="checkbox"===t.type?t.checked:t.value,a=t.name;this.setState(re(re({},this.state),{},{task:re(re({},this.state.task),{},k()({},a,n))}))}},{key:"handleReactSelectChange",value:function(e,t){this.setState(re(re({},this.state),{},{task:re(re({},this.state.task),{},k()({},t,e))}))}},{key:"handleInputChangeTime",value:function(e,t){this.setState(re(re({},this.state),{},{task:re(re({},this.state.task),{},k()({},t,e))}))}},{key:"handleInputChangeDate",value:function(e,t){this.setState(re(re({},this.state),{},{task:re(re({},this.state.task),{},k()({},t,e))}))}},{key:"handleSubmit",value:function(e){var t=this;e.preventDefault();var n=this.state.task,a={},r=!1;q.a.isEmpty(n.note)&&(a.note=!0,r=!0),q.a.isEmpty(n.responsible.toString())&&(a.responsible=!0,r=!0),n.responsible.search("user")>=0&&(n.responsibleUserId=n.responsible.replace("user",""),n.responsibleTeamId=""),n.responsible.search("team")>=0&&(n.responsibleUserId="",n.responsibleTeamId=n.responsible.replace("team","")),this.setState(re(re({},this.state),{},{errors:a})),!r&&I.a.updateTask(n).then((function(e){t.props.updateTask(e.data.data),t.props.switchToView()}))}},{key:"render",value:function(){var e=this.state.task,t=e.note,n=e.typeId,a=e.contactId,r=e.finished,o=e.dateFinished,s=e.finishedById,i=e.datePlannedStart,l=e.datePlannedFinish,c=e.startTimePlanned,u=e.endTimePlanned,p=e.responsible;return f.a.createElement("form",{className:"form-horizontal",onSubmit:this.handleSubmit},f.a.createElement("div",{className:"row"},f.a.createElement(_.a,{label:"Type taak",size:"col-sm-6",name:"typeId",options:this.props.taskTypes,value:n,onChangeAction:this.handleInputChange})),f.a.createElement("div",{className:"row"},f.a.createElement(Z.a,{label:"Taak / notitie",name:"note",value:t,onChangeAction:this.handleInputChange,required:"required",error:this.state.errors.note})),f.a.createElement("div",{className:"row margin-20-top"},f.a.createElement(z.a,{label:"Datum afhandelen",size:"col-sm-6",name:"datePlannedStart",value:i,onChangeAction:this.handleInputChangeDate}),f.a.createElement(X.a,{label:"Begin tijd",name:"startTimePlanned",value:c,onChangeAction:this.handleInputChangeTime})),f.a.createElement("div",{className:"row"},f.a.createElement(z.a,{label:"Einddatum",size:"col-sm-6",name:"datePlannedFinish",value:l,onChangeAction:this.handleInputChangeDate}),f.a.createElement(X.a,{label:"Eind tijd",name:"endTimePlanned",value:u,onChangeAction:this.handleInputChangeTime})),f.a.createElement("div",{className:"row"},f.a.createElement(K.a,{label:"Afgehandeld?",name:"finished",value:r,onChangeAction:this.handleInputChange}),f.a.createElement($.a,{label:"Verantwoordelijke",size:"col-sm-6",name:"responsible",optionsInGroups:[{name:"user",label:"Gebruikers",options:this.props.users,optionName:"fullName"},{name:"team",label:"Teams",options:this.props.teams}],value:p,onChangeAction:this.handleInputChange,required:"required",error:this.state.errors.responsible})),f.a.createElement("div",{className:"row"},f.a.createElement(z.a,{label:"Datum gereed",name:"dateFinished",value:o,onChangeAction:this.handleInputChangeDate}),f.a.createElement(_.a,{label:"Afgerond door",name:"finishedById",options:this.props.users,value:s,onChangeAction:this.handleInputChange,optionName:"fullName"})),f.a.createElement("div",{className:"row margin-20-top"},f.a.createElement(W.a,{label:"Contact",name:"contactId",options:this.state.contacts,value:a,onChangeAction:this.handleReactSelectChange,optionName:"fullName",multi:!1,isLoading:this.state.peekLoading.contacts})),f.a.createElement("div",{className:"margin-10-top"},f.a.createElement(Y.a,null,f.a.createElement("div",{className:"row",onClick:this.props.toggleExtraConnections},this.props.showExtraConnections?f.a.createElement("span",{className:"glyphicon glyphicon-menu-down"}):f.a.createElement("span",{className:"glyphicon glyphicon-menu-right"}),f.a.createElement("span",{className:"h5"},"Overige koppelingen"))),this.props.showExtraConnections&&f.a.createElement(U,{task:this.state.task,intakes:this.state.intakes,contactGroups:this.state.contactGroups,opportunities:this.state.opportunities,campaigns:this.state.campaigns,housingFiles:this.state.housingFiles,projects:this.state.projects,participants:this.state.participants,orders:this.state.orders,invoices:this.state.invoices,handleReactSelectChange:this.handleReactSelectChange,peekLoading:this.state.peekLoading})),f.a.createElement("div",{className:"panel-footer"},f.a.createElement("div",{className:"pull-right btn-group",role:"group"},f.a.createElement(M.a,{buttonClassName:"btn-default",buttonText:"Sluiten",onClickAction:this.props.switchToView}),f.a.createElement(M.a,{buttonText:"Opslaan",onClickAction:this.handleSubmit}))))}}]),n}(m.Component),ie=Object(h.b)((function(e){return{taskDetails:e.taskDetails,meDetails:e.meDetails,permissions:e.systemData.permissions,taskTypes:e.systemData.taskTypes,teams:e.systemData.teams,users:e.systemData.users}}),(function(e){return{updateTask:function(t){e(Object(g.c)(t))}}}))(se),le=n(704),ce=Object(h.b)((function(e){return{taskDetails:e.taskDetails}}))((function(e){var t=e.taskDetails,n=t.note,a=t.type,r=t.contact,o=t.finished,s=t.intakeId,i=t.intakeName,l=t.contactGroup,c=t.order,u=t.invoice,p=t.campaign,d=t.housingFile,m=t.project,h=t.participant,v=t.datePlannedStart,g=t.datePlannedFinish,b=t.startTimePlanned,y=t.endTimePlanned,E=t.dateFinished,k=t.dateSentWfCompletedTask,N=t.dateSentWfExpiredTask,w=t.dateSentWfNewTask,S=t.responsibleUser,C=t.responsibleTeam,O=t.finishedBy,I=t.opportunityId,D=t.opportunityName;return f.a.createElement("div",null,f.a.createElement("div",{onClick:e.switchToEdit},f.a.createElement("div",{className:"row"},f.a.createElement(le.a,{label:"Type",value:a&&a.name})),f.a.createElement("div",{className:"row"},f.a.createElement("div",{className:"col-sm-3"},f.a.createElement("label",{htmlFor:"description",className:"col-sm-12"},"Taak / notitie")),f.a.createElement("div",{className:"col-sm-9",id:"description"},n)),f.a.createElement("div",{className:"row margin-20-top"},f.a.createElement(le.a,{label:"Datum afhandelen",value:v&&R()(v).format("L")}),f.a.createElement(le.a,{label:"Start tijd",value:b&&R()("1900-01-01 "+b).format("HH:mm")})),f.a.createElement("div",{className:"row"},f.a.createElement(le.a,{label:"Einddatum",value:g&&R()(g).format("L")}),f.a.createElement(le.a,{label:"Eind tijd",value:y&&R()("1900-01-01 "+y).format("HH:mm")})),f.a.createElement("div",{className:"row"},f.a.createElement(le.a,{label:"Afgehandeld?",value:o?"Ja":"Nee"}),f.a.createElement(le.a,{label:"Verantwoordelijke",value:S?S.fullName:C.name,link:S?"gebruiker/"+S.id:"team/"+C.id})),f.a.createElement("div",{className:"row"},f.a.createElement(le.a,{label:"Datum gereed",value:E&&R()(E).format("L")}),f.a.createElement(le.a,{label:"Afgerond door",value:O&&O.fullName,link:O?"gebruiker/"+O.id:""})),f.a.createElement("div",{className:"row"},a&&a.usesWfCompletedTask?f.a.createElement(le.a,{label:"Email taak afgehandeld verzonden",value:k?R()(k).format("L HH:mm"):""}):"",a&&a.usesWfExpiredTask?f.a.createElement(le.a,{label:"Email taak verlopen verzonden",value:N?R()(N).format("L HH:mm"):""}):"",a&&a.usesWfNewTask&&w?f.a.createElement(le.a,{label:"Email taak nieuw verzonden",value:w?R()(w).format("L HH:mm"):""}):""),f.a.createElement("div",{className:"row margin-20-top"},f.a.createElement(le.a,{label:"Contact",value:r&&r.fullName,link:r?"contact/"+r.id:""}))),f.a.createElement("div",{className:"margin-10-top"},f.a.createElement(Y.a,null,f.a.createElement("div",{className:"row",onClick:e.toggleExtraConnections},e.showExtraConnections?f.a.createElement("span",{className:"glyphicon glyphicon-menu-down"}):f.a.createElement("span",{className:"glyphicon glyphicon-menu-right"}),f.a.createElement("span",{className:"h5"},"Overige koppelingen"))),e.showExtraConnections&&f.a.createElement("div",null,f.a.createElement("div",{className:"row"},f.a.createElement(le.a,{label:"Campagne",value:p&&p.name,link:p?"campagne/"+p.id:""}),f.a.createElement(le.a,{label:"Intake",value:i,link:s?"intake/"+s:""})),f.a.createElement("div",{className:"row"},f.a.createElement(le.a,{label:"Groep",value:l&&l.name,link:l?"contact-groep/"+l.id:""}),f.a.createElement(le.a,{label:"Kans",value:D,link:I?"kans/"+I:""})),f.a.createElement("div",{className:"row"},f.a.createElement(le.a,{label:"Woningdossier",value:d&&d.id,link:d?"woningdossier/"+d.id:""}),f.a.createElement(le.a,{label:"Project",value:m&&m.name,link:m?"project/"+m.id:""})),f.a.createElement("div",{className:"row"},f.a.createElement(le.a,{label:"Participant project",value:h&&h.name,link:h?"project/deelnemer/"+h.id:""}),f.a.createElement(le.a,{label:"Order",value:c&&c.name,link:c?"order/"+c.id:""})),f.a.createElement("div",{className:"row"},f.a.createElement(le.a,{label:"Nota",value:u&&u.name,link:u?"nota/"+u.id:""})))))}));function ue(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var pe=function(e){l()(n,e);var t=ue(n);function n(e){var a;return r()(this,n),(a=t.call(this,e)).state={showEdit:!1,activeDiv:"",showExtraConnections:!1},a.switchToEdit=a.switchToEdit.bind(y()(a)),a.switchToView=a.switchToView.bind(y()(a)),a.toggleExtraConnections=a.toggleExtraConnections.bind(y()(a)),a}return s()(n,[{key:"switchToEdit",value:function(){this.setState({showEdit:!0})}},{key:"switchToView",value:function(){this.setState({showEdit:!1,activeDiv:""})}},{key:"onDivEnter",value:function(){this.setState({activeDiv:"panel-grey"})}},{key:"onDivLeave",value:function(){this.state.showEdit||this.setState({activeDiv:""})}},{key:"toggleExtraConnections",value:function(){this.setState({showExtraConnections:!this.state.showExtraConnections})}},{key:"render",value:function(){var e=this;return f.a.createElement(v.a,{className:this.state.activeDiv,onMouseEnter:function(){return e.onDivEnter()},onMouseLeave:function(){return e.onDivLeave()}},f.a.createElement(O.a,null,f.a.createElement("div",{className:"col-md-12"},this.state.showEdit&&this.props.permissions.manageTask?f.a.createElement(ie,{switchToView:this.switchToView,toggleExtraConnections:this.toggleExtraConnections,showExtraConnections:this.state.showExtraConnections}):f.a.createElement(ce,{switchToEdit:this.switchToEdit,toggleExtraConnections:this.toggleExtraConnections,showExtraConnections:this.state.showExtraConnections}))))}}]),n}(m.Component),de=Object(h.b)((function(e){return{permissions:e.meDetails.permissions}}))(pe),me=Object(h.b)((function(e){return{permissions:e.meDetails.permissions}}))((function(e){var t=e.property,n=t.value,a=t.property;return f.a.createElement("div",{className:"row border ".concat(e.highlightLine),onMouseEnter:function(){return e.onLineEnter()},onMouseLeave:function(){return e.onLineLeave()}},f.a.createElement("div",{onClick:e.openEdit},f.a.createElement("div",{className:"col-sm-6"},a.name),f.a.createElement("div",{className:"col-sm-5"},n)),f.a.createElement("div",{className:"col-sm-1"},e.showActionButtons&&e.permissions.manageTask?f.a.createElement("a",{role:"button",onClick:e.openEdit},f.a.createElement("span",{className:"glyphicon glyphicon-pencil mybtn-success"})," "):""))})),fe=n(702);function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){k()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var be=function(e){l()(n,e);var t=ge(n);function n(e){var a;r()(this,n),a=t.call(this,e),k()(y()(a),"handleInputPropertyChange",(function(e){var t=e.target,n="checkbox"===t.type?t.checked:t.value,r=t.name,o=t[t.selectedIndex].innerHTML;a.setState(ve(ve({},a.state),{},{property:ve(ve({},a.state.property),{},k()({},r,n))})),a.props.setPropertyIdAndName(n,o)})),k()(y()(a),"handleSubmit",(function(e){e.preventDefault();var t=a.props.property,n=!1;""==t.value&&""==t.propertyId?(n=!0,a.setState(ve(ve({},a.state),{},{errors:ve(ve({},a.state.errors),{},{value:!0,propertyId:!0})}))):""==t.value&&""!=t.propertyId?(n=!0,a.setState(ve(ve({},a.state),{},{errors:ve(ve({},a.state.errors),{},{value:!0,propertyId:!1})}))):""!=t.value&&""==t.propertyId?(n=!0,a.setState(ve(ve({},a.state),{},{errors:ve(ve({},a.state.errors),{},{value:!1,propertyId:!0})}))):""!=t.value&&""!=t.propertyId&&(n=!1,a.setState(ve(ve({},a.state),{},{errors:ve(ve({},a.state.errors),{},{value:!1,propertyId:!1})}))),n||a.props.handleSubmit()}));var o=e.property,s=o.id,i=o.value;return a.state={property:{propertyId:s,value:i},errors:{property:!1,value:!1}},a}return s()(n,[{key:"render",value:function(){var e=this.props.property,t=e.propertyId,n=e.value;return f.a.createElement("div",null,f.a.createElement("form",{className:"form-horizontal",onSubmit:this.handleSubmit},f.a.createElement(v.a,{className:"panel-grey"},f.a.createElement(O.a,null,f.a.createElement("div",{className:"row"},f.a.createElement(_.a,{label:"Kenmerk",size:"col-sm-6",name:"propertyId",options:this.props.properties,value:t,onChangeAction:this.handleInputPropertyChange,required:"required",error:this.state.errors.propertyId}),f.a.createElement(fe.a,{label:"Waarde",name:"value",value:n,onChangeAction:this.props.handleInputChange,required:"required",error:this.state.errors.value})),f.a.createElement("div",{className:"pull-right btn-group",role:"group"},f.a.createElement(M.a,{buttonClassName:"btn-default",buttonText:"Annuleren",onClickAction:this.props.cancelEdit}),f.a.createElement(M.a,{buttonText:"Opslaan",onClickAction:this.handleSubmit,type:"submit",value:"Submit"}))))))}}]),n}(m.Component),ye=Object(h.b)((function(e){return{properties:e.systemData.taskProperties}}))(be);function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){k()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var we=function(e){l()(n,e);var t=Ne(n);function n(e){var a;return r()(this,n),a=t.call(this,e),k()(y()(a),"onLineEnter",(function(){a.setState({showActionButtons:!0,highlightLine:"highlight-line"})})),k()(y()(a),"onLineLeave",(function(){a.setState({showActionButtons:!1,highlightLine:""})})),k()(y()(a),"openEdit",(function(){a.props.permissions.manageTask&&a.setState({showEdit:!0})})),k()(y()(a),"closeEdit",(function(){a.setState({showEdit:!1})})),k()(y()(a),"cancelEdit",(function(){a.setState(ke(ke({},a.state),{},{property:ke({},a.props.property)})),a.closeEdit()})),k()(y()(a),"handleInputChange",(function(e){var t=e.target,n="checkbox"===t.type?t.checked:t.value,r=t.name;a.setState(ke(ke({},a.state),{},{property:ke(ke({},a.state.property),{},k()({},r,n))}))})),k()(y()(a),"setPropertyIdAndName",(function(e,t){a.setState(ke(ke({},a.state),{},{property:ke(ke({},a.state.property),{},{propertyId:e,property:ke(ke({},a.state.property),{},{id:e,name:t})})}))})),k()(y()(a),"handleSubmit",(function(){var e=a.state.property;I.a.updateTaskProperty(e.id,e).then((function(){a.closeEdit()}))})),a.state={showActionButtons:!1,highlightLine:"",showEdit:!1,property:ke({},e.property)},a}return s()(n,[{key:"render",value:function(){return f.a.createElement("div",null,f.a.createElement(me,{property:this.state.property,highlightLine:this.state.highlightLine,showActionButtons:this.state.showActionButtons,onLineEnter:this.onLineEnter,onLineLeave:this.onLineLeave,openEdit:this.openEdit,updateTaskProperty:this.state.property}),this.state.showEdit&&f.a.createElement(ye,{property:this.state.property,handleSubmit:this.handleSubmit,cancelEdit:this.cancelEdit,handleInputChange:this.handleInputChange,setPropertyIdAndName:this.setPropertyIdAndName}))}}]),n}(m.Component),Se=Object(h.b)((function(e){return{permissions:e.meDetails.permissions}}))(we),Ce=Object(h.b)((function(e){return{properties:e.taskDetails.properties}}))((function(e){return f.a.createElement("div",null,f.a.createElement("div",{className:"row border header"},f.a.createElement("div",{className:"col-sm-6"},"Kenmerk"),f.a.createElement("div",{className:"col-sm-5"},"Waarde"),f.a.createElement("div",{className:"col-sm-1"})),e.properties.length>0?e.properties.map((function(e){return f.a.createElement(Se,{key:e.id,property:e})})):f.a.createElement("div",null,"Geen extra kenmerken bekend."))}));function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){k()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var xe=function(e){l()(n,e);var t=De(n);function n(e){var a;return r()(this,n),a=t.call(this,e),k()(y()(a),"handleInputChange",(function(e){var t=e.target,n="checkbox"===t.type?t.checked:t.value,r=t.name;a.setState(Ie(Ie({},a.state),{},{property:Ie(Ie({},a.state.property),{},k()({},r,n))}))})),k()(y()(a),"handleSubmit",(function(e){e.preventDefault();var t=a.state.property,n=!1;""==t.value&&""==t.propertyId?(n=!0,a.setState(Ie(Ie({},a.state),{},{errors:Ie(Ie({},a.state.errors),{},{value:!0,propertyId:!0})}))):""==t.value&&""!=t.propertyId?(n=!0,a.setState(Ie(Ie({},a.state),{},{errors:Ie(Ie({},a.state.errors),{},{value:!0,propertyId:!1})}))):""!=t.value&&""==t.propertyId?(n=!0,a.setState(Ie(Ie({},a.state),{},{errors:Ie(Ie({},a.state.errors),{},{value:!1,propertyId:!0})}))):""!=t.value&&""!=t.propertyId&&(n=!1,a.setState(Ie(Ie({},a.state),{},{errors:Ie(Ie({},a.state.errors),{},{value:!1,propertyId:!1})}))),n||I.a.storeTaskProperty(a.props.taskId,t).then((function(){a.props.fetchTaskDetails(a.props.taskId),a.props.toggleShowNew()}))})),a.state={property:{propertyId:"",value:""},errors:{propertyId:!1,value:!1}},a}return s()(n,[{key:"render",value:function(){var e=this.state.property,t=e.propertyId,n=e.value;return f.a.createElement("form",{className:"form-horizontal",onSubmit:this.handleSubmit},f.a.createElement(v.a,{className:"panel-grey"},f.a.createElement(O.a,null,f.a.createElement("div",{className:"row"},f.a.createElement(_.a,{label:"Kenmerk",size:"col-sm-6",name:"propertyId",options:this.props.properties,value:t,onChangeAction:this.handleInputChange,required:"required",error:this.state.errors.propertyId}),f.a.createElement(fe.a,{label:"Waarde",name:"value",value:n,onChangeAction:this.handleInputChange,required:"required",error:this.state.errors.value})),f.a.createElement("div",{className:"pull-right btn-group",role:"group"},f.a.createElement(M.a,{buttonClassName:"btn-default",buttonText:"Annuleren",onClickAction:this.props.toggleShowNew}),f.a.createElement(M.a,{buttonText:"Opslaan",onClickAction:this.handleSubmit,type:"submit",value:"Submit"})))))}}]),n}(m.Component),je=Object(h.b)((function(e){return{taskId:e.taskDetails.id,properties:e.systemData.taskProperties}}),(function(e){return{fetchTaskDetails:function(t){e(Object(g.b)(t))}}}))(xe);function Pe(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var Te=function(e){l()(n,e);var t=Pe(n);function n(e){var a;return r()(this,n),a=t.call(this,e),k()(y()(a),"toggleShowNew",(function(){a.setState({showNew:!a.state.showNew})})),a.state={showNew:!1},a}return s()(n,[{key:"render",value:function(){return f.a.createElement(v.a,null,f.a.createElement(Y.a,null,f.a.createElement("span",{className:"h5 text-bold"},"Extra kenmerken"),this.props.permissions.manageTask&&f.a.createElement("a",{role:"button",className:"pull-right",onClick:this.toggleShowNew},f.a.createElement("span",{className:"glyphicon glyphicon-plus"}))),f.a.createElement(O.a,null,f.a.createElement("div",{className:"col-md-12"},f.a.createElement(Ce,null)),f.a.createElement("div",{className:"col-md-12 margin-10-top"},this.state.showNew&&f.a.createElement(je,{toggleShowNew:this.toggleShowNew}))))}}]),n}(m.Component),Le=Object(h.b)((function(e){return{permissions:e.meDetails.permissions}}))(Te);R.a.locale("nl");var Re=Object(h.b)((function(e){return{taskDetails:e.taskDetails}}))((function(e){var t=e.taskDetails,n=t.createdAt,a=t.updatedAt,r=t.updatedBy,o=t.createdBy;return f.a.createElement("div",null,f.a.createElement("div",{className:"row"},f.a.createElement(le.a,{label:"Gemaakt door",value:o?o.fullName:"Onbekend",link:o?"gebruiker/"+o.id:""}),f.a.createElement(le.a,{label:"Laatste update door",value:r?r.fullName:"Onbekend",link:r?"gebruiker/"+r.id:""})),f.a.createElement("div",{className:"row"},f.a.createElement(le.a,{label:"Gemaakt op",value:n?R()(n).format("L"):"Onbekend"}),f.a.createElement(le.a,{label:"Laatste update op",value:a?R()(a).format("L"):"Onbekend"})))})),Ae=function(e){return f.a.createElement(v.a,null,f.a.createElement(Y.a,null,f.a.createElement("span",{className:"h5 text-bold"},"Afsluiting gegevens")),f.a.createElement(O.a,null,f.a.createElement("div",{className:"col-md-12"},f.a.createElement(Re,null))))};function Me(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var _e=function(e){l()(n,e);var t=Me(n);function n(e){return r()(this,n),t.call(this,e)}return s()(n,[{key:"render",value:function(){var e="",t=!0;return this.props.hasError?e="Fout bij het ophalen van gegevens.":this.props.isLoading?e="Gegevens aan het laden.":Object(T.isEmpty)(this.props.taskDetails)?e="Geen gegevens gevonden!":t=!1,t?f.a.createElement("div",null,e):f.a.createElement("div",null,f.a.createElement(de,null),f.a.createElement(Le,null),f.a.createElement(Ae,null))}}]),n}(m.Component),ze=Object(h.b)((function(e){return{taskDetails:e.taskDetails,isLoading:e.loadingData.isLoading,hasError:e.loadingData.hasError}}),null)(_e);function Fe(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var qe=function(e){l()(n,e);var t=Fe(n);function n(e){var a;return r()(this,n),a=t.call(this,e),k()(y()(a),"openItem",(function(e){N.f.push("/taak/".concat(e))})),a.state={relatedTasks:""},a}return s()(n,[{key:"render",value:function(){var e=this,t=this.props.relatedTasks;return f.a.createElement("div",null,""==t&&f.a.createElement("div",null,"Geen taken gevonden."),""!=t&&f.a.createElement("table",{className:"table harmonica-table"},f.a.createElement("tbody",null,t.map((function(t,n){return f.a.createElement("tr",{onClick:function(){return e.openItem(t.id)},key:n},f.a.createElement("td",{className:"col-xs-12 clickable"},R()(t.createdAt).format("L")," - ",t.noteSummary))})))))}}]),n}(m.Component),Be=Object(h.b)((function(e){return{relatedTasks:e.taskDetails.relatedTasks}}))(qe),Ge=Object(h.b)((function(e){return{permissions:e.meDetails.permissions}}),null)((function(e){var t=e.toggleShowList,n=e.showTasksList,a=e.taskCount;e.permissions;return f.a.createElement(v.a,{className:"harmonica-button"},f.a.createElement(O.a,null,f.a.createElement("div",{className:"col-sm-12",onClick:t,role:"button"},f.a.createElement("span",{className:""},"OPEN TAKEN ",f.a.createElement("span",{className:"badge"},a))),f.a.createElement("div",{className:"col-sm-12"},n&&f.a.createElement(Be,null))))}));function Ve(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var He=function(e){l()(n,e);var t=Ve(n);function n(e){var a;return r()(this,n),a=t.call(this,e),k()(y()(a),"openItem",(function(e){N.f.push("/taak/".concat(e))})),a.state={relatedNotes:""},a}return s()(n,[{key:"render",value:function(){var e=this,t=this.props.relatedNotes;return f.a.createElement("div",null,""==t&&f.a.createElement("div",null,"Geen notities gevonden."),""!=t&&f.a.createElement("table",{className:"table harmonica-table"},f.a.createElement("tbody",null,t.map((function(t,n){return f.a.createElement("tr",{onClick:function(){return e.openItem(t.id)},key:n},f.a.createElement("td",{className:"col-xs-12 clickable"},R()(t.createdAt).format("L")," - ",t.noteSummary))})))))}}]),n}(m.Component),We=Object(h.b)((function(e){return{relatedNotes:e.taskDetails.relatedNotes}}))(He),Xe=Object(h.b)((function(e){return{permissions:e.meDetails.permissions}}),null)((function(e){var t=e.toggleShowList,n=e.showNotesList,a=e.noteCount;e.permissions;return f.a.createElement(v.a,{className:"harmonica-button"},f.a.createElement(O.a,null,f.a.createElement("div",{className:"col-sm-12",onClick:t,role:"button"},f.a.createElement("span",{className:""},"NOTITIES ",f.a.createElement("span",{className:"badge"},a))),f.a.createElement("div",{className:"col-sm-12"},n&&f.a.createElement(We,null))))}));function Ue(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var Ze=function(e){l()(n,e);var t=Ue(n);function n(e){var a;return r()(this,n),a=t.call(this,e),k()(y()(a),"openItem",(function(e){N.f.push("/email/".concat(e))})),a.state={relatedOpportunities:""},a}return s()(n,[{key:"render",value:function(){var e=this,t=this.props.relatedEmailsInbox;return f.a.createElement("div",null,""==t&&f.a.createElement("div",null,"Geen e-mails gevonden."),""!=t&&f.a.createElement("table",{className:"table harmonica-table"},f.a.createElement("tbody",null,t.map((function(t,n){return f.a.createElement("tr",{key:n},f.a.createElement("td",{className:"col-xs-4 clickable",onClick:function(){return e.openItem(t.id)}},R()(t.date_sent).format("L")),f.a.createElement("td",{className:"col-xs-8 clickable",onClick:function(){return e.openItem(t.id)}},t.subject))})))))}}]),n}(m.Component),Ke=Object(h.b)((function(e){return{relatedEmailsInbox:e.taskDetails.relatedEmailsInbox}}))(Ze),Ye=function(e){var t=e.toggleShowList,n=e.showEmailsInboxList,a=e.newEmail,r=e.emailInboxCount;return f.a.createElement(v.a,{className:"harmonica-button"},f.a.createElement(O.a,null,f.a.createElement("div",{className:"col-sm-10",onClick:t,role:"button"},f.a.createElement("span",{onClick:t,role:"button",className:""},"E-MAIL INBOX ",f.a.createElement("span",{className:"badge"},r))),f.a.createElement("div",{className:"col-sm-2"},f.a.createElement("a",{role:"button",className:"pull-right",onClick:a},f.a.createElement("span",{className:"glyphicon glyphicon-plus glyphicon-white"}))),f.a.createElement("div",{className:"col-sm-12"},n&&f.a.createElement(Ke,null))))};function $e(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var Je=function(e){l()(n,e);var t=$e(n);function n(e){var a;return r()(this,n),a=t.call(this,e),k()(y()(a),"openItem",(function(e){N.f.push("/email/".concat(e))})),a.state={relatedOpportunities:""},a}return s()(n,[{key:"render",value:function(){var e=this,t=this.props.relatedEmailsSent;return f.a.createElement("div",null,""==t&&f.a.createElement("div",null,"Geen e-mails gevonden."),""!=t&&f.a.createElement("table",{className:"table harmonica-table"},f.a.createElement("tbody",null,t.map((function(t,n){return f.a.createElement("tr",{key:n},f.a.createElement("td",{className:"col-xs-4 clickable",onClick:function(){return e.openItem(t.id)}},R()(t.date_sent).format("L")),f.a.createElement("td",{className:"col-xs-8 clickable",onClick:function(){return e.openItem(t.id)}},t.subject))})))))}}]),n}(m.Component),Qe=Object(h.b)((function(e){return{relatedEmailsSent:e.taskDetails.relatedEmailsSent}}))(Je),et=function(e){var t=e.toggleShowList,n=e.showEmailsSentList,a=e.newEmail,r=e.emailSentCount;return f.a.createElement(v.a,{className:"harmonica-button"},f.a.createElement(O.a,null,f.a.createElement("div",{className:"col-sm-10",onClick:t,role:"button"},f.a.createElement("span",{onClick:t,className:""},"E-MAIL VERZONDEN ",f.a.createElement("span",{className:"badge"},r))),f.a.createElement("div",{className:"col-sm-2"},f.a.createElement("a",{role:"button",className:"pull-right",onClick:a},f.a.createElement("span",{className:"glyphicon glyphicon-plus glyphicon-white"}))),f.a.createElement("div",{className:"col-sm-12"},n&&f.a.createElement(Qe,null))))};function tt(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var nt=function(e){l()(n,e);var t=tt(n);function n(e){var a;return r()(this,n),a=t.call(this,e),k()(y()(a),"openItem",(function(e){N.f.push("/document/".concat(e))})),a.state={relatedDocuments:""},a}return s()(n,[{key:"render",value:function(){var e=this,t=this.props.relatedDocuments;return f.a.createElement("div",null,""==t&&f.a.createElement("div",null,"Geen documenten gevonden."),""!=t&&f.a.createElement("table",{className:"table harmonica-table"},f.a.createElement("tbody",null,t.map((function(t,n){return f.a.createElement("tr",{onClick:function(){return e.openItem(t.id)},key:n},f.a.createElement("td",{className:"col-xs-5 clickable"},R()(t.createdAt).format("L")),f.a.createElement("td",{className:"col-xs-6 clickable"},t.filename))})))))}}]),n}(m.Component),at=Object(h.b)((function(e){return{relatedDocuments:e.taskDetails.relatedDocuments}}))(nt),rt=Object(h.b)((function(e){return{permissions:e.meDetails.permissions}}),null)((function(e){var t=e.toggleShowList,n=e.showDocumentsList,a=e.newDocument,r=e.documentCount,o=e.permissions;return f.a.createElement(v.a,{className:"harmonica-button"},f.a.createElement(O.a,null,f.a.createElement("div",{className:"col-sm-10",onClick:t,role:"button"},f.a.createElement("span",null,"DOCUMENTEN ",f.a.createElement("span",{className:"badge"},r))),f.a.createElement("div",{className:"col-sm-2"},o.createDocument&&f.a.createElement("div",{className:"pull-right"},f.a.createElement("span",{className:"glyphicon glyphicon-plus glyphicon-white","data-toggle":"dropdown",role:"button"}),f.a.createElement("ul",{className:"dropdown-menu"},f.a.createElement("li",null,f.a.createElement("a",{className:"btn",onClick:function(){return a("internal")}},"Maak document")),f.a.createElement("li",null,f.a.createElement("a",{className:"btn",onClick:function(){return a("upload")}},"Upload document"))))),f.a.createElement("div",{className:"col-sm-12"},n&&f.a.createElement(at,null))))}));function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){k()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function it(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var lt=function(e){l()(n,e);var t=it(n);function n(e){var a;return r()(this,n),a=t.call(this,e),k()(y()(a),"newDocument",(function(e){N.f.push("/document/nieuw/".concat(e,"/taak/").concat(a.props.taskDetails.id))})),k()(y()(a),"newEmail",(function(){a.props.taskDetails.contact?N.f.push("/email/nieuw/taak/".concat(a.props.taskDetails.id,"/contact/").concat(a.props.taskDetails.contact.id)):N.f.push("/email/nieuw/taak/".concat(a.props.taskDetails.id))})),a.state={toggleShowList:{documents:!1,tasks:!1,notes:!1,emailsInbox:!1,emailsSent:!1}},a.toggleShowList=a.toggleShowList.bind(y()(a)),a}return s()(n,[{key:"componentWillReceiveProps",value:function(e){this.props.id!==e.id&&this.setState({toggleShowList:{tasks:!1,notes:!1,emailsInbox:!1,emailsSent:!1,documents:!1}})}},{key:"toggleShowList",value:function(e){this.setState(st(st({},this.state),{},{toggleShowList:st(st({},this.state.toggleShowList),{},k()({},e,!this.state.toggleShowList[e]))}))}},{key:"render",value:function(){var e=this;return f.a.createElement("div",{className:"margin-10-top"},f.a.createElement(Ge,{toggleShowList:function(){return e.toggleShowList("tasks")},showTasksList:this.state.toggleShowList.tasks,taskCount:this.props.taskDetails.taskCount}),f.a.createElement(Xe,{toggleShowList:function(){return e.toggleShowList("notes")},showNotesList:this.state.toggleShowList.notes,noteCount:this.props.taskDetails.noteCount}),f.a.createElement(Ye,{toggleShowList:function(){return e.toggleShowList("emailsInbox")},showEmailsInboxList:this.state.toggleShowList.emailsInbox,newEmail:this.newEmail,emailInboxCount:this.props.taskDetails.emailInboxCount}),f.a.createElement(et,{toggleShowList:function(){return e.toggleShowList("emailsSent")},showEmailsSentList:this.state.toggleShowList.emailsSent,newEmail:this.newEmail,emailSentCount:this.props.taskDetails.emailSentCount}),f.a.createElement(rt,{toggleShowList:function(){return e.toggleShowList("documents")},showDocumentsList:this.state.toggleShowList.documents,newDocument:this.newDocument,documentCount:this.props.taskDetails.documentCount}))}}]),n}(m.Component),ct=Object(h.b)((function(e){return{taskDetails:e.taskDetails,permissions:e.meDetails.permissions}}),null)(lt);function ut(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,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var pt=function(e){l()(n,e);var t=ut(n);function n(e){return r()(this,n),t.call(this,e)}return s()(n,[{key:"componentDidMount",value:function(){this.props.fetchTaskDetails(this.props.params.id)}},{key:"componentWillReceiveProps",value:function(e){this.props.params.id!==e.params.id&&this.props.fetchTaskDetails(e.params.id)}},{key:"render",value:function(){return f.a.createElement("div",{className:"row"},f.a.createElement("div",{className:"col-md-9"},f.a.createElement("div",{className:"col-md-12"},f.a.createElement(P,null)),f.a.createElement("div",{className:"col-md-12"},f.a.createElement(ze,null))),f.a.createElement(v.a,{className:"col-md-3 harmonica"},f.a.createElement(O.a,null,f.a.createElement(ct,null))))}}]),n}(m.Component);t.default=Object(h.b)(null,(function(e){return{fetchTaskDetails:function(t){e(Object(g.b)(t))}}}))(pt)},698:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),s=n.n(o),i=function(e){var t=e.children,n=e.className,a=e.onMouseEnter,o=e.onMouseLeave;return r.a.createElement("div",{className:"panel panel-default ".concat(n),onMouseEnter:a,onMouseLeave:o},t)};i.defaultProps={className:"",onMouseEnter:function(){},onMouseLeave:function(){}},i.propTypes={className:s.a.string,onMouseEnter:s.a.func,onMouseLeave:s.a.func},t.a=i},699:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),s=n.n(o),i=function(e){var t=e.className,n=e.children;return r.a.createElement("div",{className:"panel-body ".concat(t)},n)};i.defaultProps={className:""},i.propTypes={className:s.a.string},t.a=i},700:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),s=n.n(o),i=function(e){var t=e.buttonClassName,n=e.iconName,a=e.onClickAction,o=e.title,s=e.disabled;return r.a.createElement("button",{type:"button",className:"btn ".concat(t),onClick:a,disabled:s,title:o},r.a.createElement("span",{className:"glyphicon ".concat(n)}))};i.defaultProps={buttonClassName:"btn-success btn-sm",title:"",disabled:!1},i.propTypes={buttonClassName:s.a.string,iconName:s.a.string.isRequired,onClickAction:s.a.func,title:s.a.string,disabled:s.a.bool},t.a=i},701:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),s=n.n(o),i=function(e){var t=e.buttonClassName,n=e.buttonText,a=e.onClickAction,o=e.type,s=e.value,i=e.loading,l=e.loadText,c=e.disabled;return i?r.a.createElement("button",{type:o,className:"btn btn-sm btn-loading ".concat(t),value:s,disabled:i},r.a.createElement("span",{className:"glyphicon glyphicon-refresh glyphicon-refresh-animate"})," ",l):r.a.createElement("button",{type:o,className:"btn btn-sm ".concat(t),onClick:a,value:s,disabled:c},n)};i.defaultProps={buttonClassName:"btn-success",type:"button",value:"",loading:!1,loadText:"Aan het laden",disabled:!1},i.propTypes={buttonClassName:s.a.string,buttonText:s.a.string.isRequired,onClickAction:s.a.func,type:s.a.string,value:s.a.string,loading:s.a.bool,loadText:s.a.string,disabled:s.a.bool},t.a=i},702:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),s=n.n(o),i=function(e){var t=e.label,n=e.type,a=e.className,o=e.size,s=e.id,i=e.placeholder,l=e.name,c=e.value,u=e.onClickAction,p=e.onChangeAction,d=e.onBlurAction,m=e.required,f=e.readOnly,h=e.maxLength,v=e.error,g=e.min,b=e.max,y=e.step,E=e.errorMessage,k=e.divSize,N=e.divClassName,w=e.autoComplete;return r.a.createElement("div",{className:"form-group ".concat(k," ").concat(N)},r.a.createElement("label",{htmlFor:s,className:"col-sm-6 ".concat(m)},t),r.a.createElement("div",{className:"".concat(o)},r.a.createElement("input",{type:n,className:"form-control input-sm ".concat(a)+(v?"has-error":""),id:s,placeholder:i,name:l,value:c||"",onClick:u,onChange:p,onBlur:d,readOnly:f,maxLength:h,min:g,max:b,autoComplete:w,step:y})),v&&r.a.createElement("div",{className:"col-sm-offset-6 col-sm-6"},r.a.createElement("span",{className:"has-error-message"}," ",E)))};i.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(){}},i.propTypes={label:s.a.oneOfType([s.a.string,s.a.object]).isRequired,type:s.a.string,className:s.a.string,divClassName:s.a.string,size:s.a.string,divSize:s.a.string,id:s.a.string,placeholder:s.a.string,name:s.a.string.isRequired,value:s.a.oneOfType([s.a.string,s.a.number]),onClickAction:s.a.func,onChangeAction:s.a.func,onBlurAction:s.a.func,required:s.a.string,readOnly:s.a.bool,maxLength:s.a.string,error:s.a.bool,min:s.a.string,max:s.a.string,step:s.a.string,errorMessage:s.a.string,autoComplete:s.a.string},t.a=i},704:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(4),s=n(8),i=n.n(s),l=function(e){var t=e.label,n=e.className,a=e.id,s=e.value,i=e.link,l=e.hidden;return i.length>0?r.a.createElement("div",{className:n,style:l?{display:"none"}:{}},r.a.createElement("label",{htmlFor:a,className:"col-sm-6"},t),r.a.createElement("div",{className:"col-sm-6",id:a,onClick:null},r.a.createElement(o.b,{to:i,className:"link-underline"},s))):r.a.createElement("div",{className:n,style:l?{display:"none"}:{}},r.a.createElement("label",{htmlFor:a,className:"col-sm-6"},t),r.a.createElement("div",{className:"col-sm-6",id:a},s))};l.defaultProps={className:"col-sm-6",value:"",link:"",hidden:!1},l.propTypes={label:i.a.oneOfType([i.a.string,i.a.object]).isRequired,className:i.a.string,id:i.a.string,value:i.a.oneOfType([i.a.string,i.a.number]),link:i.a.string,hidden:i.a.bool},t.a=l},705:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),s=n.n(o),i=function(e){var t=e.label,n=e.className,a=e.size,o=e.id,s=e.name,i=e.value,l=e.options,c=e.onChangeAction,u=e.onBlurAction,p=e.required,d=e.error,m=e.errorMessage,f=e.optionValue,h=e.optionName,v=e.readOnly,g=e.placeholder,b=e.divClassName,y=e.emptyOption;return r.a.createElement("div",{className:"form-group ".concat(a," ").concat(b)},r.a.createElement("label",{htmlFor:o,className:"col-sm-6 ".concat(p)},t),r.a.createElement("div",{className:"col-sm-6"},r.a.createElement("select",{className:"form-control input-sm ".concat(n)+(d&&" has-error"),id:o,name:s,value:i||"",onChange:c,onBlur:u,readOnly:v},y&&r.a.createElement("option",{value:""},g),l.map((function(e){return r.a.createElement("option",{key:e[f],value:e[f]},e[h])})))),d&&r.a.createElement("div",{className:"col-sm-offset-6 col-sm-6"},r.a.createElement("span",{className:"has-error-message"}," ",m)))};i.defaultProps={divClassName:"",className:"",size:"col-sm-6",readOnly:!1,required:"",error:!1,errorMessage:"",value:"",optionValue:"id",optionName:"name",placeholder:"",emptyOption:!0},i.propTypes={label:s.a.string.isRequired,className:s.a.string,size:s.a.string,id:s.a.string,name:s.a.string.isRequired,options:s.a.array,value:s.a.oneOfType([s.a.string,s.a.number]),onChangeAction:s.a.func,onBlurAction:s.a.func,required:s.a.string,readOnly:s.a.bool,error:s.a.bool,errorMessage:s.a.string,emptyOption:s.a.bool,optionValue:s.a.string,optionName:s.a.string,placeholder:s.a.string},t.a=i},707:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),s=n.n(o),i=function(e){var t=e.className,n=e.children;return r.a.createElement("div",{className:"panel-heading ".concat(t)},n)};i.defaultProps={className:""},i.propTypes={className:s.a.string},t.a=i},708:function(e,t,n){"use strict";var a=n(24),r=n.n(a),o=n(25),s=n.n(o),i=n(22),l=n.n(i),c=n(26),u=n.n(c),p=n(27),d=n.n(p),m=n(16),f=n.n(m),h=n(6),v=n.n(h),g=n(0),b=n.n(g),y=n(8),E=n.n(y),k=n(727),N=n.n(k),w=n(728),S=n.n(w),C=n(7),O=n.n(C);function I(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,a=f()(e);if(t){var r=f()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return d()(this,n)}}O.a.locale("nl");var D=function(e){u()(n,e);var t=I(n);function n(e){var a;return r()(this,n),a=t.call(this,e),v()(l()(a),"validateDate",(function(e){var t=O()(e.target.value,"DD-MM-YYYY",!0),n=!1;t.isValid()||""===e.target.value||(n=!0),a.props.disabledBefore&&t.isBefore(a.props.disabledBefore)&&(n=!0),a.props.disabledAfter&&t.isAfter(a.props.disabledAfter)&&(n=!0),a.setState({errorDateFormat:n})})),v()(l()(a),"onDateChange",(function(e){var t=e?O()(e).format("Y-MM-DD"):"",n=!1;t&&a.props.disabledBefore&&O()(t).isBefore(a.props.disabledBefore)&&(n=!0),t&&a.props.disabledAfter&&O()(t).isAfter(a.props.disabledAfter)&&(n=!0),a.setState({errorDateFormat:n}),!n&&a.props.onChangeAction(t,a.props.name)})),a.state={errorDateFormat:!1},a}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.label,n=e.className,a=e.size,r=e.divSize,o=e.id,s=e.value,i=e.required,l=e.readOnly,c=e.name,u=e.error,p=e.errorMessage,d=e.disabledBefore,m=e.disabledAfter,f=s?O()(s).format("L"):"",h={};return d&&(h.before=new Date(d)),m&&(h.after=new Date(m)),b.a.createElement("div",{className:"form-group ".concat(r)},b.a.createElement("div",null,b.a.createElement("label",{htmlFor:o,className:"col-sm-6 ".concat(i)},t)),b.a.createElement("div",{className:"".concat(a)},b.a.createElement(N.a,{id:o,value:f,formatDate:w.formatDate,parseDate:w.parseDate,onDayChange:this.onDateChange,dayPickerProps:{showWeekNumbers:!0,locale:"nl",firstDayOfWeek:1,localeUtils:S.a,disabledDays:h},inputProps:{className:"form-control input-sm ".concat(n)+(this.state.errorDateFormat||u?" has-error":""),name:c,onBlur:this.validateDate,autoComplete:"off",readOnly:l,disabled:l},required:i,readOnly:l,placeholder:""})),u&&b.a.createElement("div",{className:"col-sm-offset-6 col-sm-6"},b.a.createElement("span",{className:"has-error-message"}," ",p)))}}]),n}(g.Component);D.defaultProps={className:"",size:"col-sm-6",divSize:"col-sm-6",required:"",readOnly:!1,value:null,error:!1,errorMessage:"",disabledBefore:null,disabledAfter:null},D.propTypes={label:E.a.string.isRequired,type:E.a.string,className:E.a.string,size:E.a.string,divSize:E.a.string,id:E.a.string,name:E.a.string,value:E.a.oneOfType([E.a.string,E.a.object]),onChangeAction:E.a.func,required:E.a.string,readOnly:E.a.bool,error:E.a.bool,errorMessage:E.a.string,disabledBefore:E.a.string,disabledAfter:E.a.string},t.a=D},710:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),s=n.n(o),i=n(716),l=n.n(i),c=function(e){var t=e.label,n=e.size,a=e.id,o=e.name,s=e.value,i=e.onChangeAction,c=e.required,u=e.divSize,p=e.className,d=e.disabled;return r.a.createElement("div",{className:"form-group ".concat(u," ").concat(p)},r.a.createElement("div",null,r.a.createElement("label",{htmlFor:a,className:"col-sm-6 ".concat(c)},t)),r.a.createElement("div",{className:"".concat(n)},r.a.createElement(l.a,{id:a,name:o,onChange:i,defaultChecked:s,disabled:d})))};c.defaultProps={className:"",size:"col-sm-6",divSize:"col-sm-6",required:"",disabled:!1,value:""},c.propTypes={label:s.a.string.isRequired,type:s.a.string,size:s.a.string,divSize:s.a.string,id:s.a.string,name:s.a.string.isRequired,value:s.a.bool,onChangeAction:s.a.func,required:s.a.string,disabled:s.a.bool},t.a=c},712:function(e,t,n){var a;
  /*!
    Copyright (c) 2017 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var o=typeof a;if("string"===o||"number"===o)e.push(a);else if(Array.isArray(a)&&a.length){var s=r.apply(null,a);s&&e.push(s)}else if("object"===o)for(var i in a)n.call(a,i)&&a[i]&&e.push(i)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a)}()},716:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),o=n(0),s=d(o),i=d(n(712)),l=d(n(8)),c=d(n(718)),u=d(n(719)),p=n(720);function d(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.previouslyChecked=!(!e.checked&&!e.defaultChecked),n.state={checked:!(!e.checked&&!e.defaultChecked),hasFocus:!1},n}return function(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)}(t,e),r(t,[{key:"componentDidUpdate",value:function(e){e.checked!==this.props.checked&&this.setState({checked:!!this.props.checked})}},{key:"handleClick",value:function(e){var t=this.input;if(e.target!==t&&!this.moved)return this.previouslyChecked=t.checked,e.preventDefault(),t.focus(),void t.click();var n=this.props.hasOwnProperty("checked")?this.props.checked:t.checked;this.setState({checked:n})}},{key:"handleTouchStart",value:function(e){this.startX=(0,p.pointerCoord)(e).x,this.activated=!0}},{key:"handleTouchMove",value:function(e){if(this.activated&&(this.moved=!0,this.startX)){var t=(0,p.pointerCoord)(e).x;this.state.checked&&t+15<this.startX?(this.setState({checked:!1}),this.startX=t,this.activated=!0):t-15>this.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=t<this.startX+5)}}},{key:"handleTouchEnd",value:function(e){if(this.moved){var t=this.input;if(e.preventDefault(),this.startX){var n=(0,p.pointerCoord)(e).x;!0===this.previouslyChecked&&this.startX+4>n?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4<n&&this.previouslyChecked!==this.state.checked&&(this.setState({checked:!0}),this.previouslyChecked=this.state.checked,t.click()),this.activated=!1,this.startX=null,this.moved=!1}}}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;t&&t(e),this.setState({hasFocus:!0})}},{key:"handleBlur",value:function(e){var t=this.props.onBlur;t&&t(e),this.setState({hasFocus:!1})}},{key:"getIcon",value:function(e){var n=this.props.icons;return n?void 0===n[e]?t.defaultProps.icons[e]:n[e]:null}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=(t.icons,function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(t,["className","icons"])),o=(0,i.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},n);return s.default.createElement("div",{className:o,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},s.default.createElement("div",{className:"react-toggle-track"},s.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),s.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),s.default.createElement("div",{className:"react-toggle-thumb"}),s.default.createElement("input",a({},r,{ref:function(t){e.input=t},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),t}(o.PureComponent);t.default=m,m.displayName="Toggle",m.defaultProps={icons:{checked:s.default.createElement(c.default,null),unchecked:s.default.createElement(u.default,null)}},m.propTypes={checked:l.default.bool,disabled:l.default.bool,defaultChecked:l.default.bool,onChange:l.default.func,onFocus:l.default.func,onBlur:l.default.func,className:l.default.string,name:l.default.string,value:l.default.string,id:l.default.string,"aria-labelledby":l.default.string,"aria-label":l.default.string,icons:l.default.oneOfType([l.default.bool,l.default.shape({checked:l.default.node,unchecked:l.default.node})])}},717:function(e,t,n){"use strict";n(734),n(198),n(709),n(12),n(6);var a=n(730),r=n(723),o=(n(22),n(733)),s=n(731),i=n(732),l=n(0),c=n.n(l),u=n(725),p=n(721),d=(n(103),n(92),n(703)),m=(n(722),n(714),n(724),n(726)),f=n(746);function h(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,a=Object(i.a)(e);if(t){var r=Object(i.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s.a)(this,n)}}l.Component;var v=Object(m.a)(d.a);t.a=v},718:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=n(0),o=(a=r)&&a.__esModule?a:{default:a};t.default=function(){return o.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},o.default.createElement("title",null,"switch-check"),o.default.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}))}},719:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=n(0),o=(a=r)&&a.__esModule?a:{default:a};t.default=function(){return o.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},o.default.createElement("title",null,"switch-x"),o.default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"}))}},720:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointerCoord=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}var a=e.pageX;if(void 0!==a)return{x:a,y:e.pageY}}return{x:0,y:0}}},729:function(e,t,n){"use strict";var a=n(6),r=n.n(a),o=n(0),s=n.n(o),i=n(8),l=n.n(i),c=n(717);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.label,n=e.divSize,a=e.size,r=e.id,o=e.name,i=e.value,l=e.options,u=e.optionId,d=e.optionName,m=e.onChangeAction,f=e.required,h=e.error,v=e.errorMessage,g=e.isLoading,b=e.disabled,y=e.placeholder,E=e.clearable,k={option:function(e){return p(p({},e),{},{fontSize:"12px"})},singleValue:function(e){return p(p({},e),{},{fontSize:"12px"})},menu:function(e){return p(p({},e),{},{zIndex:20})}};return s.a.createElement("div",{className:"form-group ".concat(n)},s.a.createElement("label",{htmlFor:r,className:"col-sm-6 ".concat(f)},t),s.a.createElement("div",{className:"".concat(a)},s.a.createElement(c.a,{id:r,name:o,value:l&&i?l.find((function(e){return e[u]===i})):"",onChange:function(e){return m(e?e[u]:"",o)},options:l,getOptionLabel:function(e){return e[d]},getOptionValue:function(e){return e[u]},placeholder:y,noOptionsMessage:function(){return"Geen opties gevonden"},loadingMessage:function(){return"Laden"},isMulti:!1,simpleValue:!0,removeSelected:!0,className:h?" has-error":"",isLoading:g,isDisabled:b,styles:k,isClearable:E,theme:function(e){return p(p({},e),{},{colors:p({},e.colors),spacing:p(p({},e.spacing),{},{baseUnit:2,controlHeight:24,menuGutter:4})})}})),h&&s.a.createElement("div",{className:"col-sm-offset-3 col-sm-8"},s.a.createElement("span",{className:"has-error-message"}," ",v)))};d.defaultProps={size:"col-sm-6",divSize:"col-sm-6",optionId:"id",optionName:"name",disabled:!1,required:"",error:!1,errorMessage:"",value:"",isLoading:!1,placeholder:"",clearable:!1},d.propTypes={label:l.a.string.isRequired,size:l.a.string,divSize:l.a.string,id:l.a.string,name:l.a.string.isRequired,options:l.a.array,optionId:l.a.string,optionName:l.a.string,value:l.a.oneOfType([l.a.string,l.a.number]),onChangeAction:l.a.func,onBlurAction:l.a.func,required:l.a.string,disabled:l.a.bool,error:l.a.bool,errorMessage:l.a.string,isLoading:l.a.bool,placeholder:l.a.string,clearable:l.a.bool},t.a=d},751:function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},754:function(e,t,n){e.exports=!n(772)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},769:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),s=n.n(o),i=function(e){var t=e.label,n=e.size,a=e.sizeLabel,o=e.sizeInput,s=e.id,i=e.name,l=e.value,c=e.onChangeAction,u=e.required,p=e.error,d=e.rows;return r.a.createElement("div",{className:"form-group ".concat(n)},r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:a},r.a.createElement("label",{htmlFor:s,className:"col-sm-12 ".concat(u)},t)),r.a.createElement("div",{className:o},r.a.createElement("textarea",{name:i,value:l,onChange:c,className:"form-control input-sm "+(p?"has-error":""),rows:d}))))};i.defaultProps={size:"col-sm-12",sizeLabel:"col-sm-3",sizeInput:"col-sm-9",value:"",required:"",error:!1,rows:"5"},i.propTypes={label:s.a.string.isRequired,type:s.a.string,size:s.a.string,sizeLabel:s.a.string,sizeInput:s.a.string,id:s.a.string,name:s.a.string.isRequired,value:s.a.oneOfType([s.a.string,s.a.number]),onChangeAction:s.a.func,required:s.a.string,error:s.a.bool},t.a=i},770:function(e,t,n){var a=n(771),r=n(751),o=n(908),s=n(910),i=n(838),l=function(e,t,n){var c,u,p,d=e&l.F,m=e&l.G,f=e&l.S,h=e&l.P,v=e&l.B,g=e&l.W,b=m?r:r[t]||(r[t]={}),y=b.prototype,E=m?a:f?a[t]:(a[t]||{}).prototype;for(c in m&&(n=t),n)(u=!d&&E&&void 0!==E[c])&&i(b,c)||(p=u?E[c]:n[c],b[c]=m&&"function"!=typeof E[c]?n[c]:v&&u?o(p,a):g&&E[c]==p?function(e){var t=function(t,n,a){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,a)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):h&&"function"==typeof p?o(Function.call,p):p,h&&((b.virtual||(b.virtual={}))[c]=p,e&l.R&&y&&!y[c]&&s(y,c,p)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},771:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},772:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},773:function(e,t,n){var a=n(915),r=n(843);e.exports=Object.keys||function(e){return a(e,r)}},777:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),s=n.n(o),i=function(e){var t=e.label,n=e.className,a=e.size,o=e.divSize,s=e.id,i=e.name,l=e.value,c=e.optionsInGroups,u=e.onChangeAction,p=e.onBlurAction,d=e.required,m=e.error,f=e.readOnly;return r.a.createElement("div",{className:"form-group ".concat(o)},r.a.createElement("label",{htmlFor:s,className:"col-sm-6 ".concat(d)},t),r.a.createElement("div",{className:"".concat(a)},r.a.createElement("select",{className:"form-control input-sm ".concat(n)+(m&&" has-error"),id:s,name:i,value:l,onChange:u,onBlur:p,readOnly:f},r.a.createElement("option",{value:""}),c.map((function(e,t){var n=e.optionName||"name";return r.a.createElement("optgroup",{key:t,label:e.label},e.options.map((function(t){return r.a.createElement("option",{key:t.id,value:e.name+t.id},t[n])})))})))))};i.defaultProps={className:"",size:"col-sm-6",divSize:"col-sm-6",readOnly:!1,required:"",error:!1,value:""},i.propTypes={label:s.a.string.isRequired,className:s.a.string,size:s.a.string,divSize:s.a.string,id:s.a.string,name:s.a.string.isRequired,optionsInGroups:s.a.array,value:s.a.oneOfType([s.a.string,s.a.number]),onChangeAction:s.a.func,onBlurAction:s.a.func,required:s.a.string,readOnly:s.a.bool,error:s.a.bool,optionName:s.a.string},t.a=i},791:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},792:function(e,t,n){var a=n(905);function r(){return e.exports=r=a||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r.apply(this,arguments)}e.exports=r},793:function(e,t,n){var a=n(794);e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},794:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},795:function(e,t,n){var a=n(839),r=n(840);e.exports=function(e){return a(r(e))}},821:function(e,t,n){var a=n(924);e.exports=function(e,t){if(null==e)return{};var n,r,o={},s=a(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},822:function(e,t,n){var a=n(928);e.exports=function(e,t){e.prototype=a(t.prototype),e.prototype.constructor=e,e.__proto__=t}},823:function(e,t,n){"use strict";var a=n(791);t.__esModule=!0,t.prefix=c,t.getClassSet=function(e){var t,n=((t={})[c(e)]=!0,t);if(e.bsSize){var a=i.SIZE_MAP[e.bsSize]||e.bsSize;n[c(e,a)]=!0}e.bsStyle&&(n[c(e,e.bsStyle)]=!0);return n},t.splitBsProps=function(e){var t={};return(0,r.default)(e).forEach((function(e){var n=e[0],a=e[1];f(n)||(t[n]=a)})),[m(e),t]},t.splitBsPropsAndOmit=function(e,t){var n={};t.forEach((function(e){n[e]=!0}));var a={};return(0,r.default)(e).forEach((function(e){var t=e[0],r=e[1];f(t)||n[t]||(a[t]=r)})),[m(e),a]},t.addStyle=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];p(n,e)},t._curry=t.bsSizes=t.bsStyles=t.bsClass=void 0;var r=a(n(934)),o=a(n(792)),s=(a(n(20)),a(n(8))),i=n(938);function l(e){return function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var r=n[n.length-1];return"function"==typeof r?e.apply(void 0,n):function(t){return e.apply(void 0,n.concat([t]))}}}function c(e,t){var n=(e.bsClass||"").trim();return null==n&&invariant(!1),n+(t?"-"+t:"")}var u=l((function(e,t){var n=t.propTypes||(t.propTypes={}),a=t.defaultProps||(t.defaultProps={});return n.bsClass=s.default.string,a.bsClass=e,t}));t.bsClass=u;var p=l((function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var a=n.STYLES||[],r=n.propTypes||{};e.forEach((function(e){-1===a.indexOf(e)&&a.push(e)}));var i=s.default.oneOf(a);(n.STYLES=a,i._values=a,n.propTypes=(0,o.default)({},r,{bsStyle:i}),void 0!==t)&&((n.defaultProps||(n.defaultProps={})).bsStyle=t);return n}));t.bsStyles=p;var d=l((function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var a=n.SIZES||[],r=n.propTypes||{};e.forEach((function(e){-1===a.indexOf(e)&&a.push(e)}));var l=[];a.forEach((function(e){var t=i.SIZE_MAP[e];t&&t!==e&&l.push(t),l.push(e)}));var c=s.default.oneOf(l);return c._values=l,n.SIZES=a,n.propTypes=(0,o.default)({},r,{bsSize:c}),void 0!==t&&(n.defaultProps||(n.defaultProps={}),n.defaultProps.bsSize=t),n}));function m(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function f(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}t.bsSizes=d;var h=l;t._curry=h},826:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(n(0)),r=n(62),o=s(n(848));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,n,o,s){var i=e[t];return a.default.isValidElement(i)?new Error("Invalid "+o+" `"+s+"` of type ReactElement supplied to `"+n+"`,expected an element type (a string , component class, or function component)."):(0,r.isValidElementType)(i)?null:new Error("Invalid "+o+" `"+s+"` of value `"+i+"` supplied to `"+n+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},835:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o}));var a=function(e){return{type:"FETCH_TASK_DETAILS",id:e}},r=function(e){return{type:"UPDATE_TASK_DETAILS",task:e}},o=function(e){return{type:"DELETE_TASK",id:e}}},836:function(e,t,n){var a=n(793),r=n(911),o=n(912),s=Object.defineProperty;t.f=n(754)?Object.defineProperty:function(e,t,n){if(a(e),t=o(t,!0),a(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},837:function(e,t,n){var a=n(794),r=n(771).document,o=a(r)&&a(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},838:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},839:function(e,t,n){var a=n(916);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},840:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},841:function(e,t){var n=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:n)(e)}},842:function(e,t,n){var a=n(920)("keys"),r=n(922);e.exports=function(e){return a[e]||(a[e]=r(e))}},843:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},844:function(e,t){t.f={}.propertyIsEnumerable},845:function(e,t,n){var a=n(840);e.exports=function(e){return Object(a(e))}},848:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,a,r,o,s){var i=r||"<<anonymous>>",l=s||a;if(null==n[a])return t?new Error("Required "+o+" `"+l+"` was not specified in `"+i+"`."):null;for(var c=arguments.length,u=Array(c>6?c-6:0),p=6;p<c;p++)u[p-6]=arguments[p];return e.apply(void 0,[n,a,i,o,l].concat(u))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},905:function(e,t,n){e.exports=n(906)},906:function(e,t,n){n(907),e.exports=n(751).Object.assign},907:function(e,t,n){var a=n(770);a(a.S+a.F,"Object",{assign:n(914)})},908:function(e,t,n){var a=n(909);e.exports=function(e,t,n){if(a(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,a){return e.call(t,n,a)};case 3:return function(n,a,r){return e.call(t,n,a,r)}}return function(){return e.apply(t,arguments)}}},909:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},910:function(e,t,n){var a=n(836),r=n(913);e.exports=n(754)?function(e,t,n){return a.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},911:function(e,t,n){e.exports=!n(754)&&!n(772)((function(){return 7!=Object.defineProperty(n(837)("div"),"a",{get:function(){return 7}}).a}))},912:function(e,t,n){var a=n(794);e.exports=function(e,t){if(!a(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!a(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},913:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},914:function(e,t,n){"use strict";var a=n(754),r=n(773),o=n(923),s=n(844),i=n(845),l=n(839),c=Object.assign;e.exports=!c||n(772)((function(){var e={},t={},n=Symbol(),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=a}))?function(e,t){for(var n=i(e),c=arguments.length,u=1,p=o.f,d=s.f;c>u;)for(var m,f=l(arguments[u++]),h=p?r(f).concat(p(f)):r(f),v=h.length,g=0;v>g;)m=h[g++],a&&!d.call(f,m)||(n[m]=f[m]);return n}:c},915:function(e,t,n){var a=n(838),r=n(795),o=n(917)(!1),s=n(842)("IE_PROTO");e.exports=function(e,t){var n,i=r(e),l=0,c=[];for(n in i)n!=s&&a(i,n)&&c.push(n);for(;t.length>l;)a(i,n=t[l++])&&(~o(c,n)||c.push(n));return c}},916:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},917:function(e,t,n){var a=n(795),r=n(918),o=n(919);e.exports=function(e){return function(t,n,s){var i,l=a(t),c=r(l.length),u=o(s,c);if(e&&n!=n){for(;c>u;)if((i=l[u++])!=i)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},918:function(e,t,n){var a=n(841),r=Math.min;e.exports=function(e){return e>0?r(a(e),9007199254740991):0}},919:function(e,t,n){var a=n(841),r=Math.max,o=Math.min;e.exports=function(e,t){return(e=a(e))<0?r(e+t,0):o(e,t)}},920:function(e,t,n){var a=n(751),r=n(771),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:a.version,mode:n(921)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},921:function(e,t){e.exports=!0},922:function(e,t){var n=0,a=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+a).toString(36))}},923:function(e,t){t.f=Object.getOwnPropertySymbols},924:function(e,t,n){e.exports=n(925)},925:function(e,t,n){n(926),e.exports=n(751).Object.keys},926:function(e,t,n){var a=n(845),r=n(773);n(927)("keys",(function(){return function(e){return r(a(e))}}))},927:function(e,t,n){var a=n(770),r=n(751),o=n(772);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],s={};s[e]=t(n),a(a.S+a.F*o((function(){n(1)})),"Object",s)}},928:function(e,t,n){e.exports=n(929)},929:function(e,t,n){n(930);var a=n(751).Object;e.exports=function(e,t){return a.create(e,t)}},930:function(e,t,n){var a=n(770);a(a.S,"Object",{create:n(931)})},931:function(e,t,n){var a=n(793),r=n(932),o=n(843),s=n(842)("IE_PROTO"),i=function(){},l=function(){var e,t=n(837)("iframe"),a=o.length;for(t.style.display="none",n(933).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;a--;)delete l.prototype[o[a]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(i.prototype=a(e),n=new i,i.prototype=null,n[s]=e):n=l(),void 0===t?n:r(n,t)}},932:function(e,t,n){var a=n(836),r=n(793),o=n(773);e.exports=n(754)?Object.defineProperties:function(e,t){r(e);for(var n,s=o(t),i=s.length,l=0;i>l;)a.f(e,n=s[l++],t[n]);return e}},933:function(e,t,n){var a=n(771).document;e.exports=a&&a.documentElement},934:function(e,t,n){e.exports=n(935)},935:function(e,t,n){n(936),e.exports=n(751).Object.entries},936:function(e,t,n){var a=n(770),r=n(937)(!0);a(a.S,"Object",{entries:function(e){return r(e)}})},937:function(e,t,n){var a=n(754),r=n(773),o=n(795),s=n(844).f;e.exports=function(e){return function(t){for(var n,i=o(t),l=r(i),c=l.length,u=0,p=[];c>u;)n=l[u++],a&&!s.call(i,n)||p.push(e?[n,i[n]]:i[n]);return p}}},938:function(e,t,n){"use strict";t.__esModule=!0,t.Style=t.State=t.DEVICE_SIZES=t.SIZE_MAP=t.Size=void 0;t.Size={LARGE:"large",SMALL:"small",XSMALL:"xsmall"};t.SIZE_MAP={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};t.DEVICE_SIZES=["lg","md","sm","xs"];t.State={SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"};t.Style={DEFAULT:"default",PRIMARY:"primary",LINK:"link",INVERSE:"inverse"}}}]);