text: (window.webpackJsonp=window.webpackJsonp||[]).push([[76],{1711:function(e,t,n){"use strict";n.r(t);var a=n(24),i=n.n(a),c=n(25),o=n.n(c),r=n(22),l=n.n(r),s=n(26),u=n.n(s),v=n(27),f=n.n(v),d=n(16),p=n.n(d),m=n(6),w=n.n(m),h=n(0),g=n.n(h),y=n(691),C=n(692),b=n(198),E=n(730),O=n(751);var N=function(e){u()(n,e);var t=function(e){function t(){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=p()(e);if(t()){var i=p()(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return f()(this,n)}}(n);function n(e){var a;return i()(this,n),(a=t.call(this,e)).state={file:null},a}return o()(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;O.a.download(this.props.financialOverviewContactId).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(b.isEmpty)(this.props.financialOverviewContactDetails)||!this.state.file?g.a.createElement("div",null,"Geen gegevens gevonden."):g.a.createElement("div",null,g.a.createElement(E.a,{file:this.state.file,scale:this.props.scale}))}}]),n}(h.Component),k=n(4),R=n(693);var D=function(e){u()(n,e);var t=function(e){function t(){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=p()(e);if(t()){var i=p()(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return f()(this,n)}}(n);function n(e){return i()(this,n),t.call(this,e)}return o()(n,[{key:"render",value:function(){return g.a.createElement("div",{className:"row"},g.a.createElement("div",{className:"col-md-3"},g.a.createElement("div",{className:"btn-group",role:"group"},g.a.createElement(R.a,{iconName:"glyphicon-arrow-left",onClickAction:k.e.goBack}),g.a.createElement(R.a,{iconName:"glyphicon-download-alt",onClickAction:this.props.download}),g.a.createElement(R.a,{iconName:"glyphicon-zoom-in",onClickAction:this.props.zoomIn}),g.a.createElement(R.a,{iconName:"glyphicon-zoom-out",onClickAction:this.props.zoomOut}))),g.a.createElement("div",{className:"col-md-6"},g.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:""),g.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:""),g.a.createElement("br",null),"Status: "+(this.props.financialOverviewContactDetails&&this.props.financialOverviewContactDetails.financialOverviewContact?this.props.financialOverviewContactDetails.financialOverviewContact.status:""))),g.a.createElement("div",{className:"col-md-3"}))}}]),n}(h.Component),S=n(711),P=n.n(S);var T=function(e){u()(n,e);var t=function(e){function t(){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=p()(e);if(t()){var i=p()(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return f()(this,n)}}(n);function n(e){var a;return i()(this,n),a=t.call(this,e),w()(l()(a),"callFetchFinancialOverviewContactDetails",(function(){a.setState({isLoading:!0,hasError:!1}),O.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})}))})),w()(l()(a),"zoomIn",(function(){a.setState({scale:a.state.scale+.2})})),w()(l()(a),"zoomOut",(function(){a.setState({scale:a.state.scale-.2})})),a.state={financialOverviewContactDetails:{},isLoading:!1,hasError:!1,scale:1},a.download=a.download.bind(l()(a)),a}return o()(n,[{key:"componentDidMount",value:function(){this.callFetchFinancialOverviewContactDetails()}},{key:"download",value:function(){O.a.download(this.props.params.id).then((function(e){P()(e.data,e.headers["x-filename"])}))}},{key:"render",value:function(){return g.a.createElement("div",{className:"row"},g.a.createElement("div",{className:"col-md-12"},g.a.createElement("div",{className:"col-md-12 margin-10-top"},g.a.createElement(y.a,null,g.a.createElement(C.a,{className:"panel-small"},g.a.createElement(D,{financialOverviewContactDetails:this.state.financialOverviewContactDetails,zoomIn:this.zoomIn,zoomOut:this.zoomOut,download:this.download})))),g.a.createElement("div",{className:"col-md-12 margin-10-top"},g.a.createElement(N,{financialOverviewContactDetails:this.state.financialOverviewContactDetails,financialOverviewContactId:this.props.params.id,scale:this.state.scale}))))}}]),n}(h.Component);t.default=T},691:function(e,t,n){"use strict";var a=n(0),i=n.n(a),c=n(7),o=n.n(c),r=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)};r.defaultProps={className:"",onMouseEnter:function(){},onMouseLeave:function(){}},r.propTypes={className:o.a.string,onMouseEnter:o.a.func,onMouseLeave:o.a.func},t.a=r},692:function(e,t,n){"use strict";var a=n(0),i=n.n(a),c=n(7),o=n.n(c),r=function(e){var t=e.className,n=e.children;return i.a.createElement("div",{className:"panel-body ".concat(t)},n)};r.defaultProps={className:""},r.propTypes={className:o.a.string},t.a=r},693:function(e,t,n){"use strict";var a=n(0),i=n.n(a),c=n(7),o=n.n(c),r=function(e){var t=e.buttonClassName,n=e.iconName,a=e.onClickAction,c=e.title,o=e.disabled;return i.a.createElement("button",{type:"button",className:"btn ".concat(t),onClick:a,disabled:o,title:c},i.a.createElement("span",{className:"glyphicon ".concat(n)}))};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},711:function(e,t){e.exports=function(e,t,n,a){var i=new Blob(void 0!==a?[a,e]:[e],{type:n||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(i,t);else{var c=(window.URL?window.URL:window.webkitURL).createObjectURL(i),o=document.createElement("a");o.style.display="none",o.href=c,o.setAttribute("download",t),void 0===o.download&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout((function(){document.body.removeChild(o),window.URL.revokeObjectURL(c)}),0)}}},730:function(e,t,n){"use strict";var a=n(0),i=n.n(a),c=n(7),o=n.n(c),r=n(754),l=n.n(r),s=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},"<")};s.propTypes={page:o.a.number.isRequired,pages:o.a.number.isRequired,handlePrevClick:o.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:o.a.number.isRequired,pages:o.a.number.isRequired,handleNextClick:o.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:o.a.number.isRequired,pages:o.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(s,{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:o.a.number.isRequired,pages:o.a.number.isRequired,handlePrevClick:o.a.func.isRequired,handleNextClick:o.a.func.isRequired};var d=f;l.a.defaultProps={file:"",scale:1},l.a.propTypes={file:o.a.string,scale:o.a.number};t.a=function(e){var t=e.file,n=e.scale;return i.a.createElement("div",{className:"panel-heading"},i.a.createElement(l.a,{document:{file:t},navigation:d,scale:n}))}},751:function(e,t,n){"use strict";var a=n(12);n(2);t.a={fetchFinancialOverviewContacts:function(e,t,n,i,c,o){var r="".concat("financial-overview-contact","/grid");return a.a.get(r,{params:{financialOverviewId:JSON.stringify(i),onlyEmailFinancialOverviewContacts:JSON.stringify(c),onlyPostFinancialOverviewContacts:JSON.stringify(o),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)}}},755:function(e,t){},756:function(e,t){},757:function(e,t){},758:function(e,t){},759:function(e,t){}}]);