text: (window.webpackJsonp=window.webpackJsonp||[]).push([[59],{1572:function(e,t,a){"use strict";a.r(t);var n=a(25),s=a.n(n),i=a(24),o=a.n(i),r=a(26),l=a.n(r),c=a(27),u=a.n(c),d=a(21),m=a.n(d),h=a(28),p=a.n(h),f=a(6),v=a.n(f),g=a(0),b=a.n(g),E=a(4),y=a(685),k=function(e){var t=e.name;return b.a.createElement("div",{className:"row"},b.a.createElement("div",{className:"col-md-4"},b.a.createElement("div",{className:"btn-group btn-group-flex margin-small",role:"group"},b.a.createElement(y.a,{iconName:"glyphicon-arrow-left",onClickAction:E.e.goBack}))),b.a.createElement("div",{className:"col-md-4"},b.a.createElement("h4",{className:"text-center"},"Offerte verzoek status: ",t)),b.a.createElement("div",{className:"col-md-4"}))},N=a(197),S=a(198),O=a.n(S),w=a(33),T=a(8),C=a.n(T),q=a(686),j=a(684),z=a(682),D=a(683),P=a(12),R={fld:["id","name","usesWf","emailTemplateIdWf","numberOfDaysToSendEmail","order"],rlt:{emailTemplateWorkflow:[]}},x=function(e){var t="jory/quotation-request-status/".concat(e);return P.a.get(t,{params:{jory:R}})},L=function(e){var t="".concat("quotation-request-status","/").concat(e.id);return P.a.post(t,e,{params:{jory:R}})},M=a(15),A=a(200),F=a(692),_=a(702),W=a(687),I=a(101),B=a(689),X=a.n(B);function V(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function G(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?V(Object(a),!0).forEach((function(t){v()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):V(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}C.a.locale("nl");var J=function(e){function t(e){var a;return s()(this,t),a=l()(this,u()(t).call(this,e)),v()(m()(a),"handleInputChange",(function(e){var t=e.target,n="checkbox"===t.type?t.checked:t.value,s=t.name;a.setState(G({},a.state,{quotationRequestStatus:G({},a.state.quotationRequestStatus,v()({},s,n))}))})),v()(m()(a),"handleSubmit",(function(e){e.preventDefault();var t=a.state.quotationRequestStatus,n={},s=!1;1==t.usesWf&&(t.emailTemplateIdWf||(n.emailTemplateIdWf=!0,s=!0),X.a.isEmpty(t.numberOfDaysToSendEmail.toString())&&(n.numberOfDaysToSendEmail=!0,s=!0)),a.setState(G({},a.state,{errors:n})),!s&&L(t).then((function(e){a.props.updateState(e.data.data),a.props.fetchSystemData(),a.props.switchToView()})).catch((function(e){alert("Er is iets misgegaan bij opslaan. Herlaad de pagina en probeer het nogmaals.")}))})),a.state={emailTemplates:[],quotationRequestStatus:G({},e.quotationRequestStatus),errors:{usesWf:!1,emailTemplateIdWf:!1,numberOfDaysToSendEmail:!1},peekLoading:{emailTemplates:!0}},a.handleReactSelectChange=a.handleReactSelectChange.bind(m()(a)),a}return p()(t,e),o()(t,[{key:"handleReactSelectChange",value:function(e,t){this.setState(G({},this.state,{quotationRequestStatus:G({},this.state.quotationRequestStatus,v()({},t,e))}))}},{key:"componentDidMount",value:function(){var e=this;I.a.fetchEmailTemplatesPeek().then((function(t){return e.setState({emailTemplates:t,peekLoading:G({},e.state.peekLoading,{emailTemplates:!1})})}))}},{key:"render",value:function(){var e=this.state.quotationRequestStatus,t=e.name,a=e.usesWf,n=e.emailTemplateIdWf,s=e.numberOfDaysToSendEmail;return b.a.createElement("form",{className:"form-horizontal",onSubmit:this.handleSubmit},b.a.createElement(z.a,null,b.a.createElement(D.a,null,b.a.createElement("div",{className:"row"},b.a.createElement(W.a,{label:"Omschrijving",divSize:"col-sm-10",value:t,className:"col-sm-10 form-group"})),b.a.createElement("div",{className:"row"},b.a.createElement(F.a,{label:"Gebruikt workflow email bij deze status",divSize:"col-sm-10",name:"usesWf",value:a,onChangeAction:this.handleInputChange})),1==a&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:"row"},b.a.createElement(W.a,{label:"Uitleg workflow",divSize:"col-sm-10",value:this.props.explanationWf,className:"col-sm-10 form-group"})),b.a.createElement("div",{className:"row"},b.a.createElement(_.a,{label:"Template email bij deze status",divSize:"col-sm-10",name:"emailTemplateIdWf",options:this.state.emailTemplates,value:n,onChangeAction:this.handleReactSelectChange,isLoading:this.state.peekLoading.emailTemplates,multi:!1,required:"required",error:this.state.errors.emailTemplateIdWf})),b.a.createElement("div",{className:"row"},b.a.createElement(q.a,{label:"Aantal dagen email na deze status",divSize:"col-sm-10",type:"number",min:"1",id:"numberOfDaysToSendEmail",name:"numberOfDaysToSendEmail",value:s,onChangeAction:this.handleInputChange,required:"required",error:this.state.errors.numberOfDaysToSendEmail})))),b.a.createElement(D.a,null,b.a.createElement("div",{className:"pull-right btn-group",role:"group"},b.a.createElement(j.a,{buttonClassName:"btn-default",buttonText:"Sluiten",onClickAction:this.props.switchToView}),b.a.createElement(j.a,{buttonText:"Opslaan",type:"submit",value:"Submit"})))))}}]),t}(g.Component),K=Object(w.b)(null,(function(e){return Object(M.b)({fetchSystemData:A.a},e)}))(J),Q=function(e){var t=e.name,a=e.usesWf,n=e.emailTemplateWorkflow,s=e.numberOfDaysToSendEmail,i=e.switchToEdit,o=e.explanationWf;return b.a.createElement("div",{onClick:i},b.a.createElement(z.a,null,b.a.createElement(D.a,null,b.a.createElement("div",{className:"row"},b.a.createElement(W.a,{label:"Omschrijving",divSize:"col-sm-10",value:t,className:"col-sm-10 form-group"})),b.a.createElement("div",{className:"row"},b.a.createElement(W.a,{label:"Gebruikt workflow bij deze status",divSize:"col-sm-10",value:a?"Ja":"Nee",className:"col-sm-10 form-group"})),1==a&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:"row"},b.a.createElement(W.a,{label:"Uitleg workflow",divSize:"col-sm-10",value:o,className:"col-sm-10 form-group"})),b.a.createElement("div",{className:"row"},b.a.createElement(W.a,{label:"Template email bij deze status",divSize:"col-sm-10",value:n?n.name:"",className:"col-sm-10 form-group"})),b.a.createElement("div",{className:"row"},b.a.createElement(W.a,{label:"Aantal dagen email na deze status",divSize:"col-sm-10",value:s,className:"col-sm-10 form-group"}))))))},U=function(e){function t(e){var a;return s()(this,t),a=l()(this,u()(t).call(this,e)),v()(m()(a),"switchToEdit",(function(){a.setState({showEdit:!0})})),v()(m()(a),"switchToView",(function(){a.setState({showEdit:!1,activeDiv:""})})),a.state={showEdit:!1,activeDiv:""},a}return p()(t,e),o()(t,[{key:"onDivEnter",value:function(){this.setState({activeDiv:"panel-grey"})}},{key:"onDivLeave",value:function(){this.state.showEdit||this.setState({activeDiv:""})}},{key:"render",value:function(){var e=this,t=this.props.meDetails.permissions,a=void 0===t?{}:t,n=b.a.createElement("span",null,"Als gebruik workflow bij deze status is aangezet, dan zal er automatisch eenmalig een email verstuurd gaan worden naar contact (verzoek voor) als offerteverzoek op deze status is gezet.",b.a.createElement("br",null),"De verzenddatum wordt dan bepaald, rekening houdend met het opgegeven aantal dagen.");return b.a.createElement("div",{className:this.state.activeDiv,onMouseEnter:function(){return e.onDivEnter()},onMouseLeave:function(){return e.onDivLeave()}},this.state.showEdit&&a.manageFinancial?b.a.createElement(K,{quotationRequestStatus:this.props.quotationRequestStatus,switchToView:this.switchToView,updateState:this.props.updateState,explanationWf:n}):b.a.createElement(Q,O()({},this.props.quotationRequestStatus,{switchToEdit:this.switchToEdit,explanationWf:n})))}}]),t}(g.Component),Y=Object(w.b)((function(e){return{meDetails:e.meDetails,permissions:e.meDetails.permissions}}))(U),H=function(e){var t=e.quotationRequestStatus,a=e.hasError,n=e.isLoading,s=e.updateState,i="",o=!0;return a?i="Fout bij het ophalen van offerte verzoek status.":n?i="Gegevens aan het laden.":Object(N.isEmpty)(t)?i="Geen offerte verzoek status gevonden!":o=!1,o?b.a.createElement("div",null,i):b.a.createElement("div",null,b.a.createElement(Y,{quotationRequestStatus:t,updateState:s}))};function Z(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function $(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(a),!0).forEach((function(t){v()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Z(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ee=function(e){function t(e){var a;return s()(this,t),a=l()(this,u()(t).call(this,e)),v()(m()(a),"callFetchQuotationRequestStatusDetails",(function(){a.setState({isLoading:!0,hasError:!1}),x(a.props.params.id).then((function(e){a.setState({isLoading:!1,quotationRequestStatus:$({},e.data.data)})})).catch((function(e){a.setState({isLoading:!1,hasError:!0})}))})),v()(m()(a),"updateState",(function(e){a.setState({quotationRequestStatus:e})})),a.state={quotationRequestStatus:{},isLoading:!1,hasError:!1},a}return p()(t,e),o()(t,[{key:"componentDidMount",value:function(){this.callFetchQuotationRequestStatusDetails()}},{key:"render",value:function(){return b.a.createElement("div",{className:"row"},b.a.createElement("div",{className:"col-md-9"},b.a.createElement("div",{className:"col-md-12 margin-10-top"},b.a.createElement(z.a,null,b.a.createElement(D.a,{className:"panel-small"},b.a.createElement(k,{name:this.state.quotationRequestStatus.name||""})))),b.a.createElement("div",{className:"col-md-12 margin-10-top"},b.a.createElement(H,{quotationRequestStatus:this.state.quotationRequestStatus,isLoading:this.state.isLoading,hasError:this.state.hasError,updateState:this.updateState}))),b.a.createElement("div",{className:"col-md-3"}))}}]),t}(g.Component);t.default=ee},682:function(e,t,a){"use strict";var n=a(0),s=a.n(n),i=a(14),o=a.n(i),r=function(e){var t=e.children,a=e.className,n=e.onMouseEnter,i=e.onMouseLeave;return s.a.createElement("div",{className:"panel panel-default ".concat(a),onMouseEnter:n,onMouseLeave:i},t)};r.defaultProps={className:"",onMouseEnter:function(){},onMouseLeave:function(){}},r.propTypes={className:o.a.string,onMouseEnter:o.a.func,onMouseLeave:o.a.func},t.a=r},683:function(e,t,a){"use strict";var n=a(0),s=a.n(n),i=a(14),o=a.n(i),r=function(e){var t=e.className,a=e.children;return s.a.createElement("div",{className:"panel-body ".concat(t)},a)};r.defaultProps={className:""},r.propTypes={className:o.a.string},t.a=r},684:function(e,t,a){"use strict";var n=a(0),s=a.n(n),i=a(14),o=a.n(i),r=function(e){var t=e.buttonClassName,a=e.buttonText,n=e.onClickAction,i=e.type,o=e.value,r=e.loading,l=e.loadText,c=e.disabled;return r?s.a.createElement("button",{type:i,className:"btn btn-sm btn-loading ".concat(t),value:o,disabled:r},s.a.createElement("span",{className:"glyphicon glyphicon-refresh glyphicon-refresh-animate"})," ",l):s.a.createElement("button",{type:i,className:"btn btn-sm ".concat(t),onClick:n,value:o,disabled:c},a)};r.defaultProps={buttonClassName:"btn-success",type:"button",value:"",loading:!1,loadText:"Aan het laden",disabled:!1},r.propTypes={buttonClassName:o.a.string,buttonText:o.a.string.isRequired,onClickAction:o.a.func,type:o.a.string,value:o.a.string,loading:o.a.bool,loadText:o.a.string,disabled:o.a.bool},t.a=r},685:function(e,t,a){"use strict";var n=a(0),s=a.n(n),i=a(14),o=a.n(i),r=function(e){var t=e.buttonClassName,a=e.iconName,n=e.onClickAction,i=e.title,o=e.disabled;return s.a.createElement("button",{type:"button",className:"btn ".concat(t),onClick:n,disabled:o,title:i},s.a.createElement("span",{className:"glyphicon ".concat(a)}))};r.defaultProps={buttonClassName:"btn-success btn-sm",title:"",disabled:!1},r.propTypes={buttonClassName:o.a.string,iconName:o.a.string.isRequired,onClickAction:o.a.func,title:o.a.string,disabled:o.a.bool},t.a=r},686:function(e,t,a){"use strict";var n=a(0),s=a.n(n),i=a(14),o=a.n(i),r=function(e){var t=e.label,a=e.type,n=e.className,i=e.size,o=e.id,r=e.placeholder,l=e.name,c=e.value,u=e.onClickAction,d=e.onChangeAction,m=e.onBlurAction,h=e.required,p=e.readOnly,f=e.maxLength,v=e.error,g=e.min,b=e.max,E=e.step,y=e.errorMessage,k=e.divSize,N=e.divClassName,S=e.autoComplete;return s.a.createElement("div",{className:"form-group ".concat(k," ").concat(N)},s.a.createElement("label",{htmlFor:o,className:"col-sm-6 ".concat(h)},t),s.a.createElement("div",{className:"".concat(i)},s.a.createElement("input",{type:a,className:"form-control input-sm ".concat(n)+(v?"has-error":""),id:o,placeholder:r,name:l,value:c,onClick:u,onChange:d,onBlur:m,readOnly:p,maxLength:f,min:g,max:b,autoComplete:S,step:E})),v&&s.a.createElement("div",{className:"col-sm-offset-6 col-sm-6"},s.a.createElement("span",{className:"has-error-message"}," ",y)))};r.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(){}},r.propTypes={label:o.a.oneOfType([o.a.string,o.a.object]).isRequired,type:o.a.string,className:o.a.string,divClassName:o.a.string,size:o.a.string,divSize:o.a.string,id:o.a.string,placeholder:o.a.string,name:o.a.string.isRequired,value:o.a.oneOfType([o.a.string,o.a.number]),onClickAction:o.a.func,onChangeAction:o.a.func,onBlurAction:o.a.func,required:o.a.string,readOnly:o.a.bool,maxLength:o.a.string,error:o.a.bool,min:o.a.string,max:o.a.string,step:o.a.string,errorMessage:o.a.string,autoComplete:o.a.string},t.a=r},687:function(e,t,a){"use strict";var n=a(0),s=a.n(n),i=a(4),o=a(14),r=a.n(o),l=function(e){var t=e.label,a=e.className,n=e.id,o=e.value,r=e.link,l=e.hidden;return r.length>0?s.a.createElement("div",{className:a,style:l?{display:"none"}:{}},s.a.createElement("label",{htmlFor:n,className:"col-sm-6"},t),s.a.createElement("div",{className:"col-sm-6",id:n,onClick:null},s.a.createElement(i.b,{to:r,className:"link-underline"},o))):s.a.createElement("div",{className:a,style:l?{display:"none"}:{}},s.a.createElement("label",{htmlFor:n,className:"col-sm-6"},t),s.a.createElement("div",{className:"col-sm-6",id:n},o))};l.defaultProps={className:"col-sm-6",value:"",link:"",hidden:!1},l.propTypes={label:r.a.oneOfType([r.a.string,r.a.object]).isRequired,className:r.a.string,id:r.a.string,value:r.a.oneOfType([r.a.string,r.a.number]),link:r.a.string,hidden:r.a.bool},t.a=l},692:function(e,t,a){"use strict";var n=a(0),s=a.n(n),i=a(14),o=a.n(i),r=a(696),l=a.n(r),c=function(e){var t=e.label,a=e.size,n=e.id,i=e.name,o=e.value,r=e.onChangeAction,c=e.required,u=e.divSize,d=e.className,m=e.disabled;return s.a.createElement("div",{className:"form-group ".concat(u," ").concat(d)},s.a.createElement("div",null,s.a.createElement("label",{htmlFor:n,className:"col-sm-6 ".concat(c)},t)),s.a.createElement("div",{className:"".concat(a)},s.a.createElement(l.a,{id:n,name:i,onChange:r,checked:o,disabled:m})))};c.defaultProps={className:"",size:"col-sm-6",divSize:"col-sm-6",required:"",disabled:!1,value:null},c.propTypes={label:o.a.string.isRequired,type:o.a.string,size:o.a.string,divSize:o.a.string,id:o.a.string,name:o.a.string.isRequired,value:o.a.bool,onChangeAction:o.a.func,required:o.a.string,disabled:o.a.bool},t.a=c},696:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),i=a(0),o=m(i),r=m(a(703)),l=m(a(14)),c=m(a(697)),u=m(a(698)),d=a(699);function m(e){return e&&e.__esModule?e:{default:e}}var h=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 a=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 a.handleClick=a.handleClick.bind(a),a.handleTouchStart=a.handleTouchStart.bind(a),a.handleTouchMove=a.handleTouchMove.bind(a),a.handleTouchEnd=a.handleTouchEnd.bind(a),a.handleFocus=a.handleFocus.bind(a),a.handleBlur=a.handleBlur.bind(a),a.previouslyChecked=!(!e.checked&&!e.defaultChecked),a.state={checked:!(!e.checked&&!e.defaultChecked),hasFocus:!1},a}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),s(t,[{key:"componentWillReceiveProps",value:function(e){"checked"in e&&this.setState({checked:!!e.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 a=this.props.hasOwnProperty("checked")?this.props.checked:t.checked;this.setState({checked:a})}},{key:"handleTouchStart",value:function(e){this.startX=(0,d.pointerCoord)(e).x,this.activated=!0}},{key:"handleTouchMove",value:function(e){if(this.activated&&(this.moved=!0,this.startX)){var t=(0,d.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 a=(0,d.pointerCoord)(e).x;!0===this.previouslyChecked&&this.startX+4>a?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4<a&&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 a=this.props.icons;return a?void 0===a[e]?t.defaultProps.icons[e]:a[e]:null}},{key:"render",value:function(){var e=this,t=this.props,a=t.className,s=(t.icons,function(e,t){var a={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(t,["className","icons"])),i=(0,r.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},a);return o.default.createElement("div",{className:i,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},o.default.createElement("div",{className:"react-toggle-track"},o.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),o.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),o.default.createElement("div",{className:"react-toggle-thumb"}),o.default.createElement("input",n({},s,{ref:function(t){e.input=t},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),t}(i.PureComponent);t.default=h,h.displayName="Toggle",h.defaultProps={icons:{checked:o.default.createElement(c.default,null),unchecked:o.default.createElement(u.default,null)}},h.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})])}},697:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,s=a(0),i=(n=s)&&n.__esModule?n:{default:n};t.default=function(){return i.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},i.default.createElement("title",null,"switch-check"),i.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"}))}},698:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,s=a(0),i=(n=s)&&n.__esModule?n:{default:n};t.default=function(){return i.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},i.default.createElement("title",null,"switch-x"),i.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"}))}},699:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointerCoord=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var a=t[0];return{x:a.clientX,y:a.clientY}}var n=e.pageX;if(void 0!==n)return{x:n,y:e.pageY}}return{x:0,y:0}}},702:function(e,t,a){"use strict";var n=a(0),s=a.n(n),i=a(14),o=a.n(i),r=a(707),l=(a(708),function(e){var t=e.label,a=e.divSize,n=e.size,i=e.id,o=e.name,l=e.value,c=e.options,u=e.optionId,d=e.optionName,m=e.onChangeAction,h=e.required,p=e.multi,f=e.error,v=e.isLoading;return s.a.createElement("div",{className:"form-group ".concat(a)},s.a.createElement("label",{htmlFor:i,className:"col-sm-6 ".concat(h)},t),s.a.createElement("div",{className:"".concat(n)},s.a.createElement(r.a,{id:i,name:o,value:l,onChange:function(e){m(e||"",o)},options:c,valueKey:u,labelKey:d,placeholder:"",noResultsText:"Geen resultaat gevonden",multi:p,simpleValue:!0,removeSelected:!0,className:f?" has-error":"",isLoading:v})))});l.defaultProps={className:"",size:"col-sm-6",divSize:"col-sm-6",optionId:"id",optionName:"name",readOnly:!1,required:"",error:!1,value:"",multi:!0,isLoading:!1},l.propTypes={label:o.a.string.isRequired,className:o.a.string,size:o.a.string,divSize:o.a.string,id:o.a.string,name:o.a.string.isRequired,options:o.a.array.isRequired,optionId:o.a.string,optionName:o.a.string,value:o.a.oneOfType([o.a.string,o.a.number]),onChangeAction:o.a.func,onBlurAction:o.a.func,required:o.a.string,readOnly:o.a.bool,error:o.a.bool,multi:o.a.bool,isLoading:o.a.bool},t.a=l}}]);