text: (window.webpackJsonp=window.webpackJsonp||[]).push([[81],{1546:function(e,t,n){"use strict";n.r(t);var a=n(24),i=n.n(a),c=n(25),r=n.n(c),o=n(22),s=n.n(o),l=n(26),u=n.n(l),v=n(27),f=n.n(v),p=n(16),d=n.n(p),m=n(6),h=n.n(m),g=n(0),w=n.n(g),y=n(692),C=n(693),E=n(197),O=n(728),b=n(748);function N(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 i=d()(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return f()(this,n)}}var k=function(e){u()(n,e);var t=N(n);function n(e){var a;return i()(this,n),(a=t.call(this,e)).state={file:null},a}return r()(n,[{key:"componentDidMount",value:function(){this.downloadFile()}},{key:"downloadFile",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;b.a.downloadPreview(this.props.financialOverviewId,this.props.contactId).then((function(t){e.setState({file:t.data})})).catch((function(){t<2&&setTimeout((function(){e.downloadFile(t)}),500),t++}))}},{key:"render",value:function(){return Object(E.isEmpty)(this.props.financialOverviewContactDetails)||!this.state.file?w.a.createElement("div",null,"Geen gegevens gevonden."):w.a.createElement("div",null,w.a.createElement(O.a,{file:this.state.file,scale:this.props.scale}))}}]),n}(g.Component),D=n(4),R=n(694);function P(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 i=d()(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return f()(this,n)}}var S=function(e){u()(n,e);var t=P(n);function n(e){return i()(this,n),t.call(this,e)}return r()(n,[{key:"render",value:function(){return w.a.createElement("div",{className:"row"},w.a.createElement("div",{className:"col-md-3"},w.a.createElement("div",{className:"btn-group",role:"group"},w.a.createElement(R.a,{iconName:"glyphicon-arrow-left",onClickAction:D.e.goBack}),w.a.createElement(R.a,{iconName:"glyphicon-zoom-in",onClickAction:this.props.zoomIn}),w.a.createElement(R.a,{iconName:"glyphicon-zoom-out",onClickAction:this.props.zoomOut}))),w.a.createElement("div",{className:"col-md-6"},w.a.createElement("h4",{className:"text-center"},"Contact: "+(this.props.financialOverviewContactDetails&&this.props.financialOverviewContactDetails.financialOverviewContact&&this.props.financialOverviewContactDetails.financialOverviewContact.contact?this.props.financialOverviewContactDetails.financialOverviewContact.contact.full_name:""),w.a.createElement("br",null),"Waardestaat: "+(this.props.financialOverviewContactDetails&&this.props.financialOverviewContactDetails.financialOverviewContact&&this.props.financialOverviewContactDetails.financialOverviewContact.financial_overview?this.props.financialOverviewContactDetails.financialOverviewContact.financial_overview.description:""),w.a.createElement("br",null),"Status: "+(this.props.financialOverviewContactDetails&&this.props.financialOverviewContactDetails.financialOverviewContact?this.props.financialOverviewContactDetails.financialOverviewContact.status:""))),w.a.createElement("div",{className:"col-md-3"}))}}]),n}(g.Component);function T(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 i=d()(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return f()(this,n)}}var F=function(e){u()(n,e);var t=T(n);function n(e){var a;return i()(this,n),a=t.call(this,e),h()(s()(a),"callFetchFinancialOverviewContactDetails",(function(){a.setState({isLoading:!0,hasError:!1}),b.a.fetchFinancialOverviewContactDetails(a.props.params.id).then((function(e){a.setState({isLoading:!1,financialOverviewContactDetails:e.data})})).catch((function(e){a.setState({isLoading:!1,hasError:!0})}))})),h()(s()(a),"zoomIn",(function(){a.setState({scale:a.state.scale+.2})})),h()(s()(a),"zoomOut",(function(){a.setState({scale:a.state.scale-.2})})),a.state={financialOverviewContactDetails:{},isLoading:!1,hasError:!1,scale:1},a}return r()(n,[{key:"componentDidMount",value:function(){this.callFetchFinancialOverviewContactDetails()}},{key:"render",value:function(){return w.a.createElement("div",{className:"row"},w.a.createElement("div",{className:"col-md-12"},w.a.createElement("div",{className:"col-md-12 margin-10-top"},w.a.createElement(y.a,null,w.a.createElement(C.a,{className:"panel-small"},w.a.createElement(S,{financialOverviewContactDetails:this.state.financialOverviewContactDetails,zoomIn:this.zoomIn,zoomOut:this.zoomOut})))),w.a.createElement("div",{className:"col-md-12 margin-10-top"},w.a.createElement(k,{financialOverviewContactDetails:this.state.financialOverviewContactDetails,financialOverviewId:this.props.params.id,contactId:this.props.params.contactId,scale:this.state.scale}))))}}]),n}(g.Component);t.default=F},692:function(e,t,n){"use strict";var a=n(0),i=n.n(a),c=n(8),r=n.n(c),o=function(e){var t=e.children,n=e.className,a=e.onMouseEnter,c=e.onMouseLeave;return i.a.createElement("div",{className:"panel panel-default ".concat(n),onMouseEnter:a,onMouseLeave:c},t)};o.defaultProps={className:"",onMouseEnter:function(){},onMouseLeave:function(){}},o.propTypes={className:r.a.string,onMouseEnter:r.a.func,onMouseLeave:r.a.func},t.a=o},693:function(e,t,n){"use strict";var a=n(0),i=n.n(a),c=n(8),r=n.n(c),o=function(e){var t=e.className,n=e.children;return i.a.createElement("div",{className:"panel-body ".concat(t)},n)};o.defaultProps={className:""},o.propTypes={className:r.a.string},t.a=o},694:function(e,t,n){"use strict";var a=n(0),i=n.n(a),c=n(8),r=n.n(c),o=function(e){var t=e.buttonClassName,n=e.iconName,a=e.onClickAction,c=e.title,r=e.disabled;return i.a.createElement("button",{type:"button",className:"btn ".concat(t),onClick:a,disabled:r,title:c},i.a.createElement("span",{className:"glyphicon ".concat(n)}))};o.defaultProps={buttonClassName:"btn-success btn-sm",title:"",disabled:!1},o.propTypes={buttonClassName:r.a.string,iconName:r.a.string.isRequired,onClickAction:r.a.func,title:r.a.string,disabled:r.a.bool},t.a=o},728:function(e,t,n){"use strict";var a=n(0),i=n.n(a),c=n(8),r=n.n(c),o=n(750),s=n.n(o),l=function(e){var t=e.page,n=(e.pages,e.handlePrevClick);return 1===t?i.a.createElement("div",null):i.a.createElement("h3",{style:{cursor:"pointer",display:"inline-block",marginRight:24,marginTop:0},onClick:n},"<")};l.propTypes={page:r.a.number.isRequired,pages:r.a.number.isRequired,handlePrevClick:r.a.func.isRequired};var u=function(e){var t=e.page,n=e.pages,a=e.handleNextClick;return t===n?i.a.createElement("div",null):i.a.createElement("h3",{style:{cursor:"pointer",display:"inline-block",marginLeft:24,marginTop:0},onClick:a},">")};u.propTypes={page:r.a.number.isRequired,pages:r.a.number.isRequired,handleNextClick:r.a.func.isRequired};var v=function(e){var t=e.page,n=e.pages;return i.a.createElement("h3",{style:{display:"inline-block",marginTop:0}},"Pagina ",t," van ",n)};v.propTypes={page:r.a.number.isRequired,pages:r.a.number.isRequired};var f=function(e){var t=e.page,n=e.pages,a=e.handlePrevClick,c=e.handleNextClick;return i.a.createElement("div",{className:"customWrapper"},i.a.createElement(l,{page:t,pages:n,handlePrevClick:a}),i.a.createElement(v,{page:t,pages:n}),i.a.createElement(u,{page:t,pages:n,handleNextClick:c}))};f.propTypes={page:r.a.number.isRequired,pages:r.a.number.isRequired,handlePrevClick:r.a.func.isRequired,handleNextClick:r.a.func.isRequired};var p=f;s.a.defaultProps={file:"",scale:1},s.a.propTypes={file:r.a.string,scale:r.a.number};t.a=function(e){var t=e.file,n=e.scale;return i.a.createElement("div",{className:"panel-heading"},i.a.createElement(s.a,{document:{file:t},navigation:p,scale:n}))}},748:function(e,t,n){"use strict";var a=n(12);n(2);t.a={fetchFinancialOverviewContacts:function(e,t,n,i,c,r){var o="".concat("financial-overview-contact","/grid");return a.a.get(o,{params:{financialOverviewId:JSON.stringify(i),onlyEmailFinancialOverviewContacts:JSON.stringify(c),onlyPostFinancialOverviewContacts:JSON.stringify(r),filters:JSON.stringify(e),sorts:JSON.stringify(t),limit:n.limit,offset:n.offset}})},fetchFinancialOverviewContactDetails:function(e){var t="".concat("financial-overview-contact","/").concat(e,"/get");return a.a.get(t)},getFinancialOverviewContactsForSending:function(e,t,n){var i="".concat("financial-overview-contact","/").concat(e,"/sending/").concat(n);return a.a.post(i,{ids:t})},sendAll:function(e,t){var n="".concat("financial-overview-contact","/").concat(e,"/send-all");document.body.style.cursor="wait";var i=a.a.post(n,{ids:t},{responseType:"blob"});return document.body.style.cursor="default",i},sendAllPost:function(e,t){var n="".concat("financial-overview-contact","/").concat(e,"/send-all-post");document.body.style.cursor="wait";var i=a.a.post(n,{ids:t},{responseType:"blob"});return document.body.style.cursor="default",i},download:function(e){var t="".concat("financial-overview-contact","/").concat(e,"/download");return a.a.get(t,{responseType:"blob"})},downloadPreview:function(e){var t="".concat("financial-overview-contact","/").concat(e,"}/download-preview");return a.a.get(t,{responseType:"blob"})},getEmailPreview:function(e){var t="".concat("financial-overview-contact","/").concat(e,"/email-preview");return a.a.get(t)}}},751:function(e,t){},752:function(e,t){},753:function(e,t){},754:function(e,t){},755:function(e,t){}}]);