text: (window.webpackJsonp=window.webpackJsonp||[]).push([[22,7],{1483:function(e,a,t){"use strict";t.r(a);var n=t(24),r=t.n(n),i=t(25),l=t.n(i),s=t(26),o=t.n(s),c=t(27),u=t.n(c),m=t(16),d=t.n(m),p=t(0),h=t.n(p),g=t(32),b=t(768),f=t(22),y=t.n(f),v=t(6),N=t.n(v),A=t(4),I=t(701),E=t(101),w=t(876),C=Object(g.b)(null,(function(e){return{deleteAdministration:function(a){e(Object(w.b)(a))}}}))((function(e){return h.a.createElement(E.a,{buttonConfirmText:"Verwijder",buttonClassName:"btn-danger",closeModal:e.closeDeleteItemModal,confirmAction:function(){return e.deleteAdministration(e.id),void e.closeDeleteItemModal()},title:"Verwijderen"},"Verwijder administratie: ",h.a.createElement("strong",null,e.name),"?")})),R=t(702),B=t(62),x=t(203);function T(e){var a=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 t,n=d()(e);if(a){var r=d()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return u()(this,t)}}var _=function(e){o()(t,e);var a=T(t);function t(e){var n;return r()(this,t),n=a.call(this,e),N()(y()(n),"toggleDelete",(function(){n.setState({showDelete:!n.state.showDelete})})),N()(y()(n),"syncInvoicesToTwinfield",(function(){n.setState({syncingToInvoices:!0}),B.a.syncSentInvoicesToTwinfield(n.props.administrationDetails.id).then((function(e){n.setState({syncingToInvoices:!1}),n.props.setError(200,e.data)}))})),N()(y()(n),"syncInvoicesFromTwinfield",(function(){n.setState({syncingFromInvoices:!0}),B.a.syncSentInvoicesFromTwinfield(n.props.administrationDetails.id).then((function(e){n.setState({syncingFromInvoices:!1}),n.props.setError(200,e.data)}))})),n.state={showDelete:!1,syncingToInvoices:!1,syncingFromInvoices:!1},n}return l()(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"col-md-4"},h.a.createElement("div",{className:"btn-group btn-group-flex margin-small",role:"group"},h.a.createElement(I.a,{iconName:"glyphicon-arrow-left",onClickAction:A.e.goBack}),1==this.props.administrationDetails.usesTwinfield&&1==this.props.administrationDetails.twinfieldIsValid&&h.a.createElement(R.a,{loading:this.state.syncingInvoices,loadText:"Aan het synchroniseren",buttonText:h.a.createElement("span",null,h.a.createElement("span",{className:"glyphicon glyphicon-refresh",title:"Nota's naar Twinfield synchroniseren"})," Nota's"),onClickAction:this.syncInvoicesToTwinfield}),1==this.props.administrationDetails.usesTwinfield&&1==this.props.administrationDetails.twinfieldIsValid&&h.a.createElement(R.a,{loading:this.state.syncingFromInvoices,loadText:"Betalingen aan het ophalen",buttonText:h.a.createElement("span",null,h.a.createElement("span",{className:"glyphicon glyphicon-refresh",title:"Betalingen van Twinfield ophalen"})," Betalingen"),onClickAction:this.syncInvoicesFromTwinfield}),h.a.createElement(I.a,{iconName:"glyphicon-trash",onClickAction:this.toggleDelete}))),h.a.createElement("div",{className:"col-md-4"},h.a.createElement("h4",{className:"text-center"},"Administratie: ",this.props.name)),h.a.createElement("div",{className:"col-md-4"}),this.state.showDelete&&h.a.createElement(C,{closeDeleteItemModal:this.toggleDelete,name:this.props.name,id:this.props.id}))}}]),t}(p.Component),S=Object(g.b)((function(e){return{name:e.administrationDetails.name,administrationDetails:e.administrationDetails,id:e.administrationDetails.id}}),(function(e){return{setError:function(a,t){e(Object(x.b)(a,t))}}}))(_),k=t(199),D=t(706),O=t.n(D),P=t(703),L=t(699),M=t(700),j=t(757),Z=t(915),$=t(705),F=t(103),z=t(716),U=t(2),G=t.n(U),q=t(65),V=t(709),Y=t(704),K=t(708),H=t(7),W=t.n(H),J=(t(836),t(222));function X(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Q(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?X(Object(t),!0).forEach((function(a){N()(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}function ee(e){var a=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 t,n=d()(e);if(a){var r=d()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return u()(this,t)}}var ae=function(e){o()(t,e);var a=ee(t);function t(e){var n;r()(this,t),n=a.call(this,e),N()(y()(n),"toggleNewLogo",(function(){n.setState({newLogo:!n.state.newLogo})})),N()(y()(n),"addAttachment",(function(e){n.setState(Q(Q({},n.state),{},{administration:Q(Q({},n.state.administration),{},{attachment:e[0],filename:e[0].name})}))})),N()(y()(n),"handleInputChange",(function(e){var a=e.target,t="checkbox"===a.type?a.checked:a.value,r=a.name;n.setState(Q(Q({},n.state),{},{administration:Q(Q({},n.state.administration),{},N()({},r,t))}))})),N()(y()(n),"handleInputChangeDate",(function(e,a){n.setState(Q(Q({},n.state),{},N()({},a,e)))})),N()(y()(n),"handleUsesTwinfieldChange",(function(e){var a=e.target,t="checkbox"===a.type?a.checked:a.value,r=a.name;1==t&&(n.state.administration.twinfieldPasswordChange=!0),n.setState(Q(Q({},n.state),{},{administration:Q(Q({},n.state.administration),{},N()({},r,t))}))})),N()(y()(n),"handleSubmit",(function(e){e.preventDefault();var a=n.state.administration,t={},r=!1;O.a.isEmpty(a.name+"")&&(t.name=!0,r=!0);var i=a.countryId;O.a.isEmpty(a.countryId+"")&&(i="NL");if(O.a.isEmpty(a.postalCode+"")||("NL"==i?O.a.isPostalCode(a.postalCode,"NL"):O.a.isPostalCode(a.postalCode,"any"))||(t.postalCode=!0,t.countryId=!0,r=!0),O.a.isEmpty(a.administrationCode+"")||/^([\x2D0-9A-Z\\_a-z]+)$/.test(a.administrationCode)||(t.administrationCode=!0,r=!0),O.a.isEmpty(a.kvkNumber+"")||O.a.isInt(a.kvkNumber+"")||(t.kvkNumber=!0,r=!0),O.a.isEmpty(a.IBAN+"")||j.isValidIBAN(a.IBAN+"")||(t.IBAN=!0,r=!0),O.a.isEmpty(a.email+"")||O.a.isEmail(a.email+"")||(t.email=!0,r=!0),O.a.isEmpty(a.emailBccNotas+"")||O.a.isEmail(a.emailBccNotas+"")||(t.emailBccNotas=!0,r=!0),O.a.isEmpty(a.website+"")||O.a.isFQDN(a.website+"")||(t.website=!0,r=!0),a.usesTwinfield){O.a.isEmpty(a.twinfieldConnectionType+"")&&(t.twinfieldConnectionType=!0,r=!0),"webservice"===a.twinfieldConnectionType&&(O.a.isEmpty(a.twinfieldUsername+"")&&(t.twinfieldUsername=!0,r=!0),a.twinfieldPasswordChange&&O.a.isEmpty(a.twinfieldPassword+"")&&(t.twinfieldPassword=!0,r=!0)),"openid"===a.twinfieldConnectionType&&(O.a.isEmpty(a.twinfieldClientId+"")&&(t.twinfieldClientId=!0,r=!0),a.twinfieldPasswordChange&&O.a.isEmpty(a.twinfieldClientSecret+"")&&(t.twinfieldClientSecret=!0,r=!0)),O.a.isEmpty(a.twinfieldOfficeCode+"")&&(t.twinfieldOfficeCode=!0,r=!0),O.a.isEmpty(a.twinfieldOrganizationCode+"")&&(t.twinfieldOrganizationCode=!0,r=!0);var l=!1;O.a.isEmpty(a.administrationCode+"")||n.props.administrationsPeek.map((function(e){return e.id!==a.id&&null!==e.administrationCode&&!O.a.isEmpty(e.administrationCode+"")&&e.administrationCode&&a.administrationCode&&e.administrationCode.toUpperCase()===a.administrationCode.toUpperCase()&&(l=!0)})),l&&(t.administrationCode=!0,r=!0,console.log("fout 2"));var s=!1;n.state.twinfieldInfoAdministrations.map((function(e){return e.twinfieldOfficeCode&&a.twinfieldOfficeCode&&e.twinfieldOfficeCode.toUpperCase()===a.twinfieldOfficeCode.toUpperCase()&&e.twinfieldOrganizationCode&&a.twinfieldOrganizationCode&&e.twinfieldOrganizationCode.toUpperCase()===a.twinfieldOrganizationCode.toUpperCase()&&e.id!==a.id&&(s=!0)})),s&&(t.twinfieldOfficeCode=!0,r=!0)}if(n.setState(Q(Q({},n.state),{},{errors:t})),!r){var o="Aan het laden";a.usesTwinfield&&(o="De koppeling Econobis Twinfield wordt gemaakt. Dit kan enige tijd duren"),n.setState(Q(Q({},n.state),{},{loadingText:o,isSaving:!0}));var c=new FormData;c.append("id",a.id),c.append("name",a.name),c.append("administrationCode",a.administrationCode),c.append("address",a.address),c.append("postalCode",a.postalCode),c.append("city",a.city),c.append("countryId",a.countryId),c.append("kvkNumber",a.kvkNumber),c.append("btwNumber",a.btwNumber),c.append("IBAN",a.IBAN),c.append("ibanAttn",a.ibanAttn),c.append("email",a.email),c.append("website",a.website),c.append("bic",a.bic),c.append("sepaContractName",a.sepaContractName),c.append("sepaCreditorId",a.sepaCreditorId),c.append("rsinNumber",a.rsinNumber),c.append("defaultPaymentTerm",a.defaultPaymentTerm),c.append("emailTemplateIdCollection",a.emailTemplateIdCollection),c.append("emailTemplateIdTransfer",a.emailTemplateIdTransfer),c.append("emailTemplateReminderId",a.emailTemplateReminderId),c.append("emailTemplateExhortationId",a.emailTemplateExhortationId),c.append("emailTemplateFinancialOverviewId",a.emailTemplateFinancialOverviewId),c.append("attachment",a.attachment),c.append("mailboxId",a.mailboxId),c.append("usesTwinfield",a.usesTwinfield),c.append("twinfieldConnectionType",a.twinfieldConnectionType),c.append("twinfieldUsername",a.twinfieldUsername),a.twinfieldPasswordChange&&"webservice"===a.twinfieldConnectionType&&c.append("twinfieldPassword",a.twinfieldPassword),a.twinfieldPasswordChange&&"openid"===a.twinfieldConnectionType&&c.append("twinfieldClientSecret",a.twinfieldClientSecret),c.append("twinfieldClientId",a.twinfieldClientId),c.append("twinfieldOrganizationCode",a.twinfieldOrganizationCode),c.append("twinfieldOfficeCode",a.twinfieldOfficeCode),c.append("dateSyncTwinfieldContacts",a.dateSyncTwinfieldContacts),c.append("dateSyncTwinfieldPayments",a.dateSyncTwinfieldPayments),c.append("usesVat",a.usesVat),c.append("emailBccNotas",a.emailBccNotas),c.append("portalSettingsLayoutId",a.portalSettingsLayoutId),c.append("usesMollie",a.usesMollie),c.append("mollieApiKey",a.mollieApiKey),n.props.updateAdministration(c,a.id,n.props.switchToView)}})),n.manageUsesTwinfield="support@econobis.nl"==n.props.meDetails.email||"info@xaris.nl"==n.props.meDetails.email;var i=e.administrationDetails,l=i.id,s=i.name,o=i.administrationCode,c=i.address,u=i.emailTemplateIdCollection,m=i.emailTemplateIdTransfer,d=i.emailTemplateReminderId,p=i.emailTemplateExhortationId,h=i.emailTemplateFinancialOverviewId,g=i.postalCode,b=i.city,f=i.countryId,v=i.kvkNumber,A=i.btwNumber,I=i.IBAN,E=i.email,w=i.website,C=i.bic,R=i.sepaContractName,B=i.sepaCreditorId,x=i.rsinNumber,T=i.defaultPaymentTerm,_=i.logoName,S=i.ibanAttn,k=i.mailboxId,D=i.usesTwinfield,P=i.twinfieldConnectionType,L=i.twinfieldHasRefreshToken,M=i.twinfieldRedirectUri,Z=i.twinfieldUsername,$=i.twinfieldPassword,F=i.twinfieldPasswordChange,z=i.twinfieldClientId,U=i.twinfieldClientSecret,G=i.twinfieldOrganizationCode,q=i.twinfieldOfficeCode,V=i.dateSyncTwinfieldContacts,Y=i.dateSyncTwinfieldPayments,K=i.usesVat,H=i.emailBccNotas,W=i.portalSettingsLayoutId,J=i.usesMollie,X=i.mollieApiKey;return n.state={newLogo:!1,emailTemplates:[],mailboxAddresses:[],twinfieldInfoAdministrations:[],isSaving:!1,loadingText:"Aan het opslaan",administration:{id:l,name:s||"",administrationCode:o||"",address:c||"",postalCode:g||"",city:b||"",countryId:f||"",kvkNumber:v||"",btwNumber:A||"",IBAN:I||"",ibanAttn:S||"",email:E||"",website:w||"",bic:C||"",sepaContractName:R||"",sepaCreditorId:B||"",rsinNumber:x||"",defaultPaymentTerm:T||"",logoName:_||"",emailTemplateIdCollection:u||"",emailTemplateIdTransfer:m||"",emailTemplateReminderId:d||"",emailTemplateExhortationId:p||"",emailTemplateFinancialOverviewId:h||"",attachment:"",mailboxId:k||"",usesTwinfield:D,twinfieldConnectionType:P||"",twinfieldHasRefreshToken:L||"",twinfieldRedirectUri:M||"",twinfieldUsername:Z||"",twinfieldPassword:$||"",twinfieldPasswordChange:F||!1,twinfieldClientId:z||"",twinfieldClientSecret:U||"",twinfieldOrganizationCode:G||"",twinfieldOfficeCode:q||"",dateSyncTwinfieldContacts:V||"",dateSyncTwinfieldPayments:Y||"",usesVat:K,emailBccNotas:H||"",portalSettingsLayoutId:W||"",usesMollie:J,mollieApiKey:X},errors:{name:!1,administrationCode:!1,postalCode:!1,kvkNumber:!1,IBAN:!1,email:!1,website:!1,twinfieldConnectionType:!1,twinfieldUsername:!1,twinfieldPassword:!1,twinfieldClientId:!1,twinfieldClientSecret:!1,twinfieldOrganizationCode:!1,twinfieldOfficeCode:!1,dateSyncTwinfieldContacts:!1,dateSyncTwinfieldPayments:!1,mailboxId:!1,emailBccNotas:!1,countryId:!1},peekLoading:{emailTemplates:!0}},n.handleReactSelectChange=n.handleReactSelectChange.bind(y()(n)),n}return l()(t,[{key:"componentDidMount",value:function(){var e=this;G.a.all([F.a.fetchEmailTemplatesPeek(),q.a.fetchMailboxesLoggedInUserPeek(),J.a.fetchTwinfieldInfoAdministrations()]).then(G.a.spread((function(a,t,n){e.setState({emailTemplates:a,mailboxAddresses:t,twinfieldInfoAdministrations:n,peekLoading:Q(Q({},e.state.peekLoading),{},{emailTemplates:!1})})})))}},{key:"handleReactSelectChange",value:function(e,a){this.setState(Q(Q({},this.state),{},{administration:Q(Q({},this.state.administration),{},N()({},a,e))}))}},{key:"render",value:function(){var e=this.state.administration,a=e.name,t=e.administrationCode,n=e.emailTemplateIdCollection,r=e.emailTemplateIdTransfer,i=e.emailTemplateReminderId,l=e.emailTemplateExhortationId,s=e.emailTemplateFinancialOverviewId,o=e.address,c=e.postalCode,u=e.city,m=e.countryId,d=e.kvkNumber,p=e.btwNumber,g=e.IBAN,b=e.email,f=e.website,y=e.bic,v=e.sepaContractName,N=e.sepaCreditorId,A=e.rsinNumber,I=e.defaultPaymentTerm,E=e.attachment,w=e.logoName,C=e.ibanAttn,B=e.mailboxId,x=e.usesTwinfield,T=e.twinfieldConnectionType,_=e.twinfieldHasRefreshToken,S=(e.twinfieldRedirectUri,e.twinfieldUsername),D=e.twinfieldPassword,O=e.twinfieldPasswordChange,j=e.twinfieldClientId,F=e.twinfieldClientSecret,U=e.twinfieldOrganizationCode,G=e.twinfieldOfficeCode,q=e.dateSyncTwinfieldContacts,H=e.dateSyncTwinfieldPayments,J=e.usesVat,X=e.emailBccNotas,Q=e.portalSettingsLayoutId,ee=e.usesMollie,ae=e.mollieApiKey,te=null;te=q?W()(W()(q).format("YYYY")+"-01-01").format("YYYY-01-01"):W()(W()().format("YYYY")+"-01-01").format("YYYY-01-01");var ne=null;return ne=H?W()(W()(H).format("YYYY")+"-01-01").format("YYYY-01-01"):W()(W()().format("YYYY")+"-01-01").format("YYYY-01-01"),h.a.createElement("form",{className:"form-horizontal",onSubmit:this.handleSubmit},h.a.createElement(L.a,null,h.a.createElement(M.a,null,h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"Naam",name:"name",value:a,onChangeAction:this.handleInputChange,required:"required",error:this.state.errors.name}),h.a.createElement(P.a,{label:"Administratie code",name:"administrationCode",value:t,maxLength:5,onChangeAction:this.handleInputChange,error:this.state.errors.administrationCode})),h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"Adres",name:"address",value:o,onChangeAction:this.handleInputChange}),h.a.createElement(P.a,{label:"Postcode",name:"postalCode",value:c,onChangeAction:this.handleInputChange,error:this.state.errors.postalCode})),h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"Plaats",name:"city",value:u,onChangeAction:this.handleInputChange}),h.a.createElement($.a,{label:"Land",id:"countryId",size:"col-sm-6",name:"countryId",options:this.props.countries,value:m,onChangeAction:this.handleInputChange,error:this.state.errors.countryId})),h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"KvK",name:"kvkNumber",value:d,onChangeAction:this.handleInputChange,error:this.state.errors.kvkNumber}),h.a.createElement(P.a,{label:"BTW nummer",name:"btwNumber",value:p,onChangeAction:this.handleInputChange})),h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"IBAN",name:"IBAN",value:g,onChangeAction:this.handleInputChange,error:this.state.errors.IBAN}),h.a.createElement(P.a,{label:"IBAN t.n.v.",name:"ibanAttn",value:C,onChangeAction:this.handleInputChange})),h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"Website",name:"website",value:f,onChangeAction:this.handleInputChange,error:this.state.errors.website}),h.a.createElement(P.a,{label:"Bic",name:"bic",value:y,onChangeAction:this.handleInputChange})),h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"Sepa contractnaam",name:"sepaContractName",value:v,onChangeAction:this.handleInputChange}),h.a.createElement(P.a,{label:"Sepa crediteur id",name:"sepaCreditorId",value:N,onChangeAction:this.handleInputChange})),h.a.createElement("div",{className:"row"},h.a.createElement(z.a,{label:"E-mail template nota incasso",name:"emailTemplateIdCollection",options:this.state.emailTemplates,value:n,onChangeAction:this.handleReactSelectChange,isLoading:this.state.peekLoading.emailTemplates,multi:!1}),h.a.createElement(P.a,{label:"E-mail",name:"email",value:b,onChangeAction:this.handleInputChange,error:this.state.errors.email})),h.a.createElement("div",{className:"row"},h.a.createElement(z.a,{label:"E-mail template nota overboeken",name:"emailTemplateIdTransfer",options:this.state.emailTemplates,value:r,onChangeAction:this.handleReactSelectChange,isLoading:this.state.peekLoading.emailTemplates,multi:!1}),h.a.createElement(P.a,{label:"RSIN nummer",name:"rsinNumber",value:A,onChangeAction:this.handleInputChange})),h.a.createElement("div",{className:"row"},h.a.createElement(z.a,{label:"E-mail template herinnering",name:"emailTemplateReminderId",options:this.state.emailTemplates,value:i,onChangeAction:this.handleReactSelectChange,isLoading:this.state.peekLoading.emailTemplates,multi:!1}),h.a.createElement(P.a,{label:"Standaard betalingstermijn(dagen)",type:"number",min:"0",max:"9999",name:"defaultPaymentTerm",value:I,onChangeAction:this.handleInputChange})),h.a.createElement("div",{className:"row"},h.a.createElement(z.a,{label:"E-mail template aanmaning",name:"emailTemplateExhortationId",options:this.state.emailTemplates,value:l,onChangeAction:this.handleReactSelectChange,isLoading:this.state.peekLoading.emailTemplates,multi:!1}),h.a.createElement("div",{className:"form-group col-sm-6"},h.a.createElement("label",{className:"col-sm-6"},"Kies logo"),h.a.createElement("div",{className:"col-sm-6"},h.a.createElement("input",{type:"text",className:"form-control input-sm col-sm-6",value:E?E.name:w,onClick:this.toggleNewLogo,onChange:function(){}})))),h.a.createElement("div",{className:"row"},h.a.createElement(z.a,{label:"E-mail template waardestaat",name:"emailTemplateFinancialOverviewId",options:this.state.emailTemplates,value:s,onChangeAction:this.handleReactSelectChange,isLoading:this.state.peekLoading.emailTemplates,multi:!1})),h.a.createElement("div",{className:"row"},h.a.createElement($.a,{label:"Afzender van Rapportages en nota's is e-mail adres",id:"mailboxId",size:"col-sm-6",name:"mailboxId",options:this.state.mailboxAddresses,optionName:"email",value:B,onChangeAction:this.handleInputChange}),h.a.createElement(Y.a,{label:"Gebruikt BTW",value:J?"Ja":"Nee",className:"col-sm-6 form-group",hidden:!0})),h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"Nota's ook mailen in BCC naar",name:"emailBccNotas",value:X,onChangeAction:this.handleInputChange,error:this.state.errors.emailBccNotas})),h.a.createElement("div",{className:"row"},h.a.createElement(z.a,{label:"Portal instellingen layout",name:"portalSettingsLayoutId",options:this.props.portalSettingsLayouts,optionName:"description",value:Q,onChangeAction:this.handleReactSelectChange,isLoading:this.state.peekLoading.portalSettingsLayouts,multi:!1})),this.state.newLogo&&h.a.createElement(Z.a,{toggleShowNew:this.toggleNewLogo,addAttachment:this.addAttachment}),"support@econobis.nl"===this.props.meDetails.email&&h.a.createElement("div",{className:"row"},h.a.createElement(V.a,{label:"Gebruikt Mollie",name:"usesMollie",value:ee,onChangeAction:this.handleInputChange}),ee&&h.a.createElement(P.a,{label:"Mollie API key",name:"mollieApiKey",value:ae,onChangeAction:this.handleInputChange})),h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"panel-part panel-heading"},h.a.createElement("span",{className:"h5 text-bold"},"Twinfield"))),h.a.createElement("div",{className:"row"},h.a.createElement(V.a,{label:"Gebruikt Twinfield",name:"usesTwinfield",value:x,onChangeAction:this.handleUsesTwinfieldChange,disabled:!this.manageUsesTwinfield&&("webservice"===T&&!Object(k.isEmpty)(S)||"openid"===T&&!Object(k.isEmpty)(j))}),(1==x||!Object(k.isEmpty)(S))&&h.a.createElement($.a,{label:"API connection type",id:"twinfieldConnectionType",size:"col-sm-6",name:"twinfieldConnectionType",options:this.props.twinfieldConnectionTypes,optionName:"name",value:T,onChangeAction:this.handleInputChange,required:"required",error:this.state.errors.twinfieldConnectionType})),(1==x||!Object(k.isEmpty)(S))&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"Omgeving",name:"twinfieldOrganizationCode",value:U,onChangeAction:this.handleInputChange,required:"required",readOnly:0==x,error:this.state.errors.twinfieldOrganizationCode}),h.a.createElement(P.a,{label:"Code",name:"twinfieldOfficeCode",value:G,onChangeAction:this.handleInputChange,required:"required",readOnly:0==x,error:this.state.errors.twinfieldOfficeCode})),"webservice"===T&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"Gebruikersnaam",name:"twinfieldUsername",value:S,onChangeAction:this.handleInputChange,required:"required",readOnly:0==x,error:this.state.errors.twinfieldUsername}),h.a.createElement(P.a,{label:"Wachtwoord",name:"twinfieldPassword",value:D,placeholder:"**********",onChangeAction:this.handleInputChange,required:"required",readOnly:0==x,error:this.state.errors.twinfieldPassword})),h.a.createElement("div",{className:"row"},h.a.createElement(V.a,{label:"Wijzig wachtwoord",name:"twinfieldPasswordChange",value:O,onChangeAction:this.handleInputChange,className:"col-sm-push-6 col-sm-6",disabled:0==x}))),"openid"===T&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"Client Id",name:"twinfieldClientId",value:j,onChangeAction:this.handleInputChange,required:"required",readOnly:0==x,error:this.state.errors.twinfieldClientId}),h.a.createElement(P.a,{label:"Client Secret",name:"twinfieldClientSecret",value:F,placeholder:"**********",onChangeAction:this.handleInputChange,required:"required",readOnly:0==x,error:this.state.errors.twinfieldClientSecret})),h.a.createElement("div",{className:"row"},h.a.createElement(V.a,{label:"Wijzig client secret",name:"twinfieldPasswordChange",value:O,onChangeAction:this.handleInputChange,className:"col-sm-push-6 col-sm-6",disabled:0==x})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{className:"col-sm-6 form-group",label:"Heeft refresh token?",name:"twinfieldHasRefreshToken",value:_}))),h.a.createElement("div",{className:"row"},h.a.createElement(K.a,{label:h.a.createElement("span",null,"Synchroniseer contacten vanaf",h.a.createElement("br",null),h.a.createElement("small",{style:{color:"#ccc",fontWeight:"normal"}},"Nota aanmaakdatum vanaf wanneer contacten initieel gemaakt worden in Twinfield")),name:"dateSyncTwinfieldContacts",value:q,onChangeAction:this.handleInputChangeDate,disabledBefore:te,readOnly:0==x,error:this.state.errors.dateSyncTwinfieldContacts}),h.a.createElement(K.a,{label:h.a.createElement("span",null,"Synchroniseer betalingen vanaf",h.a.createElement("br",null),h.a.createElement("small",{style:{color:"#ccc",fontWeight:"normal"}},"Nota aanmaakdatum vanaf wanneer betalingen opgehaald worden uit Twinfield")),name:"dateSyncTwinfieldPayments",value:H,onChangeAction:this.handleInputChangeDate,disabledBefore:ne,readOnly:0==x,error:this.state.errors.dateSyncTwinfieldPayments}))),this.state.newLogo&&h.a.createElement(Z.a,{toggleShowNew:this.toggleNewLogo,addAttachment:this.addAttachment})),h.a.createElement(M.a,null,h.a.createElement("div",{className:"pull-right btn-group",role:"group"},h.a.createElement(R.a,{buttonClassName:"btn-default",buttonText:"Sluiten",onClickAction:this.props.switchToView}),h.a.createElement(R.a,{loading:this.state.isSaving,loadText:this.state.loadingText,buttonText:"Opslaan",onClickAction:this.handleSubmit,type:"submit",value:"Submit"})))))}}]),t}(p.Component),te=Object(g.b)((function(e){return{countries:e.systemData.countries,portalSettingsLayouts:e.systemData.portalSettingsLayouts,twinfieldConnectionTypes:e.systemData.twinfieldConnectionTypes,administrationsPeek:e.systemData.administrationsPeek,administrationDetails:e.administrationDetails}}),(function(e){return{updateAdministration:function(a,t,n){e(Object(b.e)(a,t,n))}}}))(ae),ne=Object(g.b)((function(e){return{administrationDetails:e.administrationDetails,meDetails:e.meDetails}}))((function(e){var a=e.administrationDetails,t=a.name,n=a.administrationCode,r=a.address,i=a.postalCode,l=a.emailTemplateCollection,s=a.emailTemplateTransfer,o=a.emailTemplateReminder,c=a.emailTemplateExhortation,u=a.emailTemplateFinancialOverview,m=a.city,d=a.country,p=a.kvkNumber,g=a.btwNumber,b=a.IBAN,f=a.ibanAttn,y=a.email,v=a.website,N=a.bic,A=a.sepaContractName,I=a.sepaCreditorId,E=a.rsinNumber,w=a.defaultPaymentTerm,C=a.logoName,R=a.mailboxEmail,B=a.usesTwinfield,x=a.twinfieldConnectionType,T=a.twinfieldConnectionTypeWithIdAndName,_=a.twinfieldHasRefreshToken,S=a.twinfieldRedirectUri,k=a.twinfieldUsername,D=a.twinfieldClientId,O=(a.twinfieldClientSecret,a.twinfieldOrganizationCode),P=a.twinfieldOfficeCode,j=a.dateSyncTwinfieldContacts,Z=a.dateSyncTwinfieldPayments,$=a.usesVat,F=a.emailBccNotas,z=a.portalSettingsLayout,U=a.usesMollie,G=a.mollieApiKey;return h.a.createElement("div",{onClick:e.switchToEdit},h.a.createElement(L.a,null,h.a.createElement(M.a,null,h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Naam",value:t}),h.a.createElement(Y.a,{label:"Administratie code",value:n||""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Adres",value:r||""}),h.a.createElement(Y.a,{label:"Postcode",value:i||""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Plaats",value:m||""}),h.a.createElement(Y.a,{label:"Land",value:d?d.name:""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"KvK",value:p||""}),h.a.createElement(Y.a,{label:"BTW nummer",value:g||""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"IBAN",value:b||""}),h.a.createElement(Y.a,{label:"IBAN t.n.v.",value:f||""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Website",value:v||""}),h.a.createElement(Y.a,{label:"Bic",value:N||""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Sepa contractnaam",value:A||""}),h.a.createElement(Y.a,{label:"Sepa crediteur id",value:I||""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"E-mail template nota incasso",value:l?l.name:""}),h.a.createElement(Y.a,{label:"E-mail",value:y||""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"E-mail template nota overboeken",value:s?s.name:""}),h.a.createElement(Y.a,{label:"RSIN nummer",value:E||""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"E-mail template herinnering",value:o?o.name:""}),h.a.createElement(Y.a,{label:"Standaard betalingstermijn(dagen)",value:w||""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"E-mail template aanmaning",value:c?c.name:""}),h.a.createElement(Y.a,{label:"Logo",value:C})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"E-mail template waardestaat",value:u?u.name:""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Afzender van Rapportages en nota's is e-mail adres",value:R}),h.a.createElement(Y.a,{label:"Gebruikt BTW",value:$?"Ja":"Nee",hidden:!0})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Nota's ook mailen in BCC naar",value:F||""})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Portal instellingen layout",value:z?z.description:"gebruikt standaard"})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Gebruikt Mollie",value:U?"Ja":"Nee"}),"support@econobis.nl"===e.meDetails.email&&U&&h.a.createElement(Y.a,{label:"Mollie API key",value:G})),1==B&&h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"panel-part panel-heading"},h.a.createElement("span",{className:"h5 text-bold"},"Twinfield"))),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Gebruikt Twinfield",value:B?"Ja":"Nee"}),1==B&&h.a.createElement(Y.a,{label:"API connection type",value:T?T.name:""})),1==B&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Omgeving",value:O}),h.a.createElement(Y.a,{label:"Code",value:P})),"webservice"===x&&h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Gebruikersnaam",value:k}),h.a.createElement(Y.a,{label:"Wachtwoord",value:"**********"})),"openid"===x&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Client Id",value:D}),h.a.createElement(Y.a,{label:"Client Secret",value:"**********"})),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Heeft refresh token?",value:_}),"Nee"===_&&h.a.createElement(Y.a,{className:"col-sm-6 form-group",label:"Haal nieuwe refresh token op",name:"twinfieldRedirectUri",value:h.a.createElement("span",null,h.a.createElement("a",{href:S+"?administrationId="+e.administrationDetails.id,className:"link-underline"},S))}))),h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:h.a.createElement("span",null,"Synchroniseer contacten vanaf",h.a.createElement("br",null),h.a.createElement("small",{style:{color:"#ccc",fontWeight:"normal"}},"Nota aanmaakdatum vanaf wanneer contacten initieel gemaakt worden in Twinfield")),value:j?W()(j).format("L"):""}),h.a.createElement(Y.a,{label:h.a.createElement("span",null,"Synchroniseer betalingen vanaf",h.a.createElement("br",null),h.a.createElement("small",{style:{color:"#ccc",fontWeight:"normal"}},"Nota aanmaakdatum vanaf wanneer betalingen opgehaald worden uit Twinfield")),value:Z?W()(Z).format("L"):""}))))))}));function re(e){var a=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 t,n=d()(e);if(a){var r=d()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return u()(this,t)}}var ie=function(e){o()(t,e);var a=re(t);function t(e){var n;return r()(this,t),n=a.call(this,e),N()(y()(n),"switchToEdit",(function(){n.setState({showEdit:!0})})),N()(y()(n),"switchToView",(function(){n.setState({showEdit:!1,activeDiv:""})})),n.state={showEdit:!1,activeDiv:""},n}return l()(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,a=this.props.meDetails.permissions,t=void 0===a?{}:a;return h.a.createElement("div",{className:this.state.activeDiv,onMouseEnter:function(){return e.onDivEnter()},onMouseLeave:function(){return e.onDivLeave()}},this.state.showEdit&&t.manageFinancial?h.a.createElement(te,{switchToView:this.switchToView,meDetails:this.props.meDetails}):h.a.createElement(ne,{switchToEdit:this.switchToEdit}))}}]),t}(p.Component),le=Object(g.b)((function(e){return{administrationDetails:e.administrationDetails,meDetails:e.meDetails}}))(ie),se=Object(g.b)((function(e){return{permissions:e.meDetails.permissions}}))((function(e){var a=e.user.fullName;return h.a.createElement("div",{className:"row border ".concat(e.highlightLine),onMouseEnter:function(){return e.onLineEnter()},onMouseLeave:function(){return e.onLineLeave()}},h.a.createElement("div",{className:"col-sm-11"},a),h.a.createElement("div",{className:"col-sm-1"},e.showActionButtons&&e.permissions.manageFinancial?h.a.createElement("a",{role:"button",onClick:e.toggleDelete},h.a.createElement("span",{className:"glyphicon glyphicon-trash mybtn-danger"})," "):""))})),oe=Object(g.b)((function(e){return{administrationId:e.administrationDetails.id}}),(function(e){return{deleteAdministrationUser:function(a,t){e(Object(b.c)(a,t))}}}))((function(e){return h.a.createElement(E.a,{buttonConfirmText:"Verwijder",buttonClassName:"btn-danger",closeModal:e.toggleDelete,confirmAction:function(){return e.deleteAdministrationUser(e.administrationId,e.userId),void e.toggleDelete()},title:"Verwijderen"},h.a.createElement("p",null,"Wil je deze gebruiker ontkoppelen van deze administratie?"))}));function ce(e){var a=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 t,n=d()(e);if(a){var r=d()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return u()(this,t)}}var ue=function(e){o()(t,e);var a=ce(t);function t(e){var n;return r()(this,t),n=a.call(this,e),N()(y()(n),"onLineEnter",(function(){n.setState({showActionButtons:!0,highlightLine:"highlight-line"})})),N()(y()(n),"onLineLeave",(function(){n.setState({showActionButtons:!1,highlightLine:""})})),N()(y()(n),"toggleDelete",(function(){n.setState({showDelete:!n.state.showDelete})})),n.state={showActionButtons:!1,highlightLine:"",showDelete:!1,user:e.user},n}return l()(t,[{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement(se,{highlightLine:this.state.highlightLine,showActionButtons:this.state.showActionButtons,onLineEnter:this.onLineEnter,onLineLeave:this.onLineLeave,toggleDelete:this.toggleDelete,user:this.state.user}),this.state.showDelete&&this.props.permissions.manageFinancial&&h.a.createElement(oe,{toggleDelete:this.toggleDelete,userId:this.state.user.id}))}}]),t}(p.Component),me=Object(g.b)((function(e){return{permissions:e.meDetails.permissions}}))(ue),de=Object(g.b)((function(e){return{users:e.administrationDetails.users}}))((function(e){return h.a.createElement("div",null,h.a.createElement("div",{className:"row border header"},h.a.createElement("div",{className:"col-sm-11"},"Naam"),h.a.createElement("div",{className:"col-sm-1"})),e.users.length>0?e.users.map((function(e){return h.a.createElement(me,{key:e.id,user:e})})):h.a.createElement("div",null,"Geen gebruikers bekend."))})),pe=t(12),he=t.n(pe);function ge(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function be(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?ge(Object(t),!0).forEach((function(a){N()(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ge(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}function fe(e){var a=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 t,n=d()(e);if(a){var r=d()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return u()(this,t)}}var ye=function(e){o()(t,e);var a=fe(t);function t(e){var n;return r()(this,t),(n=a.call(this,e)).state={userId:"",errors:{userId:!1,hasErrors:!0}},n.handleInputChange=n.handleInputChange.bind(y()(n)),n.handleSubmit=n.handleSubmit.bind(y()(n)),n}return l()(t,[{key:"handleInputChange",value:function(e){var a=e.target.value;this.setState({userId:a})}},{key:"handleSubmit",value:function(e){e.preventDefault();var a={administrationId:this.props.administrationId,userId:this.state.userId},t={},n=!1;O.a.isEmpty(a.userId)&&(t.userId=!0,n=!0),this.setState(be(be({},this.state),{},{errors:t})),n||(this.props.addAdministrationUser(a),this.props.toggleShowNew())}},{key:"render",value:function(){var e=[];return e=this.props.usersExtraAdministration?[].concat(he()(this.props.users),he()(this.props.usersExtraAdministration)):he()(this.props.users),h.a.createElement("form",{className:"form-horizontal",onSubmit:this.handleSubmit},h.a.createElement(L.a,{className:"panel-grey"},h.a.createElement(M.a,null,h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"Administratie",name:"administration",value:this.props.administrationName,readOnly:!0}),h.a.createElement($.a,{label:"Gebruiker",size:"col-sm-6",name:"userId",options:e,optionName:"fullName",value:this.state.userId,onChangeAction:this.handleInputChange,required:"required",error:this.state.errors.userId})),h.a.createElement("div",{className:"pull-right btn-group",role:"group"},h.a.createElement(R.a,{buttonClassName:"btn-default",buttonText:"Annuleren",onClickAction:this.props.toggleShowNew}),h.a.createElement(R.a,{buttonText:"Opslaan",onClickAction:this.handleSubmit,type:"submit",value:"Submit"})))))}}]),t}(p.Component),ve=Object(g.b)((function(e){return{administrationId:e.administrationDetails.id,administrationName:e.administrationDetails.name,users:e.systemData.users,usersExtraAdministration:e.systemData.usersExtraAdministration}}),(function(e){return{addAdministrationUser:function(a){e(Object(b.a)(a))}}}))(ye),Ne=t(707);function Ae(e){var a=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 t,n=d()(e);if(a){var r=d()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return u()(this,t)}}var Ie=function(e){o()(t,e);var a=Ae(t);function t(e){var n;return r()(this,t),n=a.call(this,e),N()(y()(n),"toggleShowNew",(function(){n.setState({showNew:!n.state.showNew})})),n.state={showNew:!1},n}return l()(t,[{key:"render",value:function(){return h.a.createElement(L.a,null,h.a.createElement(Ne.a,null,h.a.createElement("span",{className:"h5 text-bold"},"Gekoppelde gebruikers"),this.props.permissions.manageFinancial&&h.a.createElement("a",{role:"button",className:"pull-right",onClick:this.toggleShowNew},h.a.createElement("span",{className:"glyphicon glyphicon-plus"}))),h.a.createElement(M.a,null,h.a.createElement("div",{className:"col-md-12"},h.a.createElement(de,null)),h.a.createElement("div",{className:"col-md-12 margin-10-top"},this.state.showNew&&h.a.createElement(ve,{toggleShowNew:this.toggleShowNew}))))}}]),t}(p.Component),Ee=Object(g.b)((function(e){return{permissions:e.meDetails.permissions}}))(Ie);W.a.locale("nl");var we=Object(g.b)((function(e){return{administrationDetails:e.administrationDetails}}))((function(e){var a=e.administrationDetails,t=a.createdAt,n=a.createdBy;return h.a.createElement("div",null,h.a.createElement("div",{className:"row"},h.a.createElement(Y.a,{label:"Gemaakt door",value:n?n.fullName:"Onbekend",link:n?"gebruiker/"+n.id:""}),h.a.createElement(Y.a,{label:"Gemaakt op",value:t?W()(t).format("L"):"Onbekend"})))})),Ce=function(e){return h.a.createElement(L.a,null,h.a.createElement(Ne.a,null,h.a.createElement("span",{className:"h5 text-bold"},"Afsluiting gegevens")),h.a.createElement(M.a,null,h.a.createElement("div",{className:"col-md-12"},h.a.createElement(we,null))))};W.a.locale("nl");var Re=Object(g.b)((function(e){return{permissions:e.meDetails.permissions}}))((function(e){var a=e.sepa,t=a.id,n=a.name,r=a.createdAt,i=a.type;return h.a.createElement("div",{className:"row border ".concat(e.highlightLine),onMouseEnter:function(){return e.onLineEnter()},onMouseLeave:function(){return e.onLineLeave()}},h.a.createElement("div",null,h.a.createElement("div",{className:"col-sm-3"},t),h.a.createElement("div",{className:"col-sm-3"},n),h.a.createElement("div",{className:"col-sm-3"},r?W()(r).format("L"):""),h.a.createElement("div",{className:"col-sm-2"},i?i.name:""),h.a.createElement("div",{className:"col-sm-1"},e.showActionButtons&&e.permissions.manageFinancial?h.a.createElement("a",{role:"button",onClick:function(){return e.downloadSepa(t)}},h.a.createElement("span",{className:"glyphicon glyphicon-open-file mybtn-success"})," "):"",e.showActionButtons&&e.permissions.manageFinancial?h.a.createElement("a",{role:"button",onClick:e.toggleDelete},h.a.createElement("span",{className:"glyphicon glyphicon-trash mybtn-danger"})," "):"")))})),Be=t(719),xe=t.n(Be),Te=Object(g.b)(null,(function(e){return{deleteAdministrationSepa:function(a){e(Object(b.b)(a))}}}))((function(e){return h.a.createElement(E.a,{buttonConfirmText:"Verwijder",buttonClassName:"btn-danger",closeModal:e.toggleDelete,confirmAction:function(){return e.deleteAdministrationSepa(e.sepaId),void e.toggleDelete()},title:"Verwijderen"},h.a.createElement("p",null,"Wil je deze sepa verwijderen?"))}));function _e(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Se(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?_e(Object(t),!0).forEach((function(a){N()(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}function ke(e){var a=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 t,n=d()(e);if(a){var r=d()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return u()(this,t)}}var De=function(e){o()(t,e);var a=ke(t);function t(e){var n;return r()(this,t),n=a.call(this,e),N()(y()(n),"onLineEnter",(function(){n.setState({showActionButtons:!0,highlightLine:"highlight-line"})})),N()(y()(n),"onLineLeave",(function(){n.setState({showActionButtons:!1,highlightLine:""})})),N()(y()(n),"downloadSepa",(function(e){B.a.downloadSepa(e).then((function(e){xe()(e.data,e.headers["x-filename"])}))})),N()(y()(n),"toggleDelete",(function(){n.setState({showDelete:!n.state.showDelete})})),n.state={showActionButtons:!1,showDelete:!1,highlightLine:"",sepa:Se({},e.sepa)},n}return l()(t,[{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement(Re,{highlightLine:this.state.highlightLine,showActionButtons:this.state.showActionButtons,onLineEnter:this.onLineEnter,onLineLeave:this.onLineLeave,sepa:this.state.sepa,downloadSepa:this.downloadSepa,toggleDelete:this.toggleDelete}),this.state.showDelete&&h.a.createElement(Te,{toggleDelete:this.toggleDelete,sepaId:this.state.sepa.id}))}}]),t}(p.Component),Oe=Object(g.b)((function(e){return{sepas:e.administrationDetails.sepas}}))((function(e){return h.a.createElement("div",null,h.a.createElement("div",{className:"row border header"},h.a.createElement("div",{className:"col-sm-3"},"Id"),h.a.createElement("div",{className:"col-sm-3"},"Naam"),h.a.createElement("div",{className:"col-sm-3"},"Datum"),h.a.createElement("div",{className:"col-sm-2"},"Type"),h.a.createElement("div",{className:"col-sm-1"})),e.sepas.length>0?e.sepas.map((function(e){return h.a.createElement(De,{key:e.id,sepa:e})})):h.a.createElement("div",null,"Geen sepa bestanden bekend."))}));function Pe(e){var a=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 t,n=d()(e);if(a){var r=d()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return u()(this,t)}}var Le=function(e){o()(t,e);var a=Pe(t);function t(e){return r()(this,t),a.call(this,e)}return l()(t,[{key:"render",value:function(){return h.a.createElement(L.a,null,h.a.createElement(Ne.a,null,h.a.createElement("span",{className:"h5 text-bold"},"Sepa bestanden")),h.a.createElement(M.a,null,h.a.createElement("div",{className:"col-md-12"},h.a.createElement(Oe,null))))}}]),t}(p.Component),Me=Object(g.b)((function(e){return{permissions:e.meDetails.permissions}}))(Le);function je(e){var a=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 t,n=d()(e);if(a){var r=d()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return u()(this,t)}}W.a.locale("nl");var Ze=function(e){o()(t,e);var a=je(t);function t(e){return r()(this,t),a.call(this,e)}return l()(t,[{key:"render",value:function(){var e="",a=!0;return this.props.hasError?e="Fout bij het ophalen van administratie.":this.props.isLoading?e="Gegevens aan het laden.":Object(k.isEmpty)(this.props.administrationDetails)?e="Geen gegevens gevonden.":a=!1,a?h.a.createElement("div",null,e):h.a.createElement("div",null,0==this.props.administrationDetails.twinfieldIsValid&&1==this.props.administrationDetails.usesTwinfield&&h.a.createElement(L.a,null,h.a.createElement(Ne.a,null,h.a.createElement("span",{className:"h5",style:{color:"#e64a4a"}},"Twinfield is onjuist geconfigureerd. Pas de configuratie aan om Twinfield te gebruiken."))),h.a.createElement(le,null),h.a.createElement(Ee,null),h.a.createElement(Me,null),h.a.createElement(Ce,null))}}]),t}(p.Component),$e=Object(g.b)((function(e){return{administrationDetails:e.administrationDetails,isLoading:e.loadingData.isLoading,hasError:e.loadingData.hasError}}))(Ze);function Fe(e){var a=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 t,n=d()(e);if(a){var r=d()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return u()(this,t)}}var ze=function(e){o()(t,e);var a=Fe(t);function t(e){return r()(this,t),a.call(this,e)}return l()(t,[{key:"componentDidMount",value:function(){this.props.fetchAdministrationDetails(this.props.params.id)}},{key:"render",value:function(){return h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"col-md-9"},h.a.createElement("div",{className:"col-md-12 margin-10-top"},h.a.createElement(L.a,null,h.a.createElement(M.a,{className:"panel-small"},h.a.createElement(S,null)))),h.a.createElement("div",{className:"col-md-12 margin-10-top"},h.a.createElement($e,null))),h.a.createElement("div",{className:"col-md-3"}))}}]),t}(p.Component);a.default=Object(g.b)((function(e){return{administrationDetails:e.administrationDetails}}),(function(e){return{fetchAdministrationDetails:function(a){e(Object(b.d)(a))}}}))(ze)},699:function(e,a,t){"use strict";var n=t(0),r=t.n(n),i=t(8),l=t.n(i),s=function(e){var a=e.children,t=e.className,n=e.onMouseEnter,i=e.onMouseLeave;return r.a.createElement("div",{className:"panel panel-default ".concat(t),onMouseEnter:n,onMouseLeave:i},a)};s.defaultProps={className:"",onMouseEnter:function(){},onMouseLeave:function(){}},s.propTypes={className:l.a.string,onMouseEnter:l.a.func,onMouseLeave:l.a.func},a.a=s},700:function(e,a,t){"use strict";var n=t(0),r=t.n(n),i=t(8),l=t.n(i),s=function(e){var a=e.className,t=e.children;return r.a.createElement("div",{className:"panel-body ".concat(a)},t)};s.defaultProps={className:""},s.propTypes={className:l.a.string},a.a=s},701:function(e,a,t){"use strict";var n=t(0),r=t.n(n),i=t(8),l=t.n(i),s=function(e){var a=e.buttonClassName,t=e.iconName,n=e.onClickAction,i=e.title,l=e.disabled;return r.a.createElement("button",{type:"button",className:"btn ".concat(a),onClick:n,disabled:l,title:i},r.a.createElement("span",{className:"glyphicon ".concat(t)}))};s.defaultProps={buttonClassName:"btn-success btn-sm",title:"",disabled:!1},s.propTypes={buttonClassName:l.a.string,iconName:l.a.string.isRequired,onClickAction:l.a.func,title:l.a.string,disabled:l.a.bool},a.a=s},702:function(e,a,t){"use strict";var n=t(0),r=t.n(n),i=t(8),l=t.n(i),s=function(e){var a=e.buttonClassName,t=e.buttonText,n=e.onClickAction,i=e.type,l=e.value,s=e.loading,o=e.loadText,c=e.disabled;return s?r.a.createElement("button",{type:i,className:"btn btn-sm btn-loading ".concat(a),value:l,disabled:s},r.a.createElement("span",{className:"glyphicon glyphicon-refresh glyphicon-refresh-animate"})," ",o):r.a.createElement("button",{type:i,className:"btn btn-sm ".concat(a),onClick:n,value:l,disabled:c},t)};s.defaultProps={buttonClassName:"btn-success",type:"button",value:"",loading:!1,loadText:"Aan het laden",disabled:!1},s.propTypes={buttonClassName:l.a.string,buttonText:l.a.string.isRequired,onClickAction:l.a.func,type:l.a.string,value:l.a.string,loading:l.a.bool,loadText:l.a.string,disabled:l.a.bool},a.a=s},703:function(e,a,t){"use strict";var n=t(0),r=t.n(n),i=t(8),l=t.n(i),s=function(e){var a=e.label,t=e.type,n=e.className,i=e.size,l=e.id,s=e.placeholder,o=e.name,c=e.value,u=e.onClickAction,m=e.onChangeAction,d=e.onBlurAction,p=e.required,h=e.readOnly,g=e.maxLength,b=e.error,f=e.min,y=e.max,v=e.step,N=e.errorMessage,A=e.divSize,I=e.divClassName,E=e.autoComplete;return r.a.createElement("div",{className:"form-group ".concat(A," ").concat(I)},r.a.createElement("label",{htmlFor:l,className:"col-sm-6 ".concat(p)},a),r.a.createElement("div",{className:"".concat(i)},r.a.createElement("input",{type:t,className:"form-control input-sm ".concat(n)+(b?"has-error":""),id:l,placeholder:s,name:o,value:c,onClick:u,onChange:m,onBlur:d,readOnly:h,maxLength:g,min:f,max:y,autoComplete:E,step:v})),b&&r.a.createElement("div",{className:"col-sm-offset-6 col-sm-6"},r.a.createElement("span",{className:"has-error-message"}," ",N)))};s.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(){}},s.propTypes={label:l.a.oneOfType([l.a.string,l.a.object]).isRequired,type:l.a.string,className:l.a.string,divClassName:l.a.string,size:l.a.string,divSize:l.a.string,id:l.a.string,placeholder:l.a.string,name:l.a.string.isRequired,value:l.a.oneOfType([l.a.string,l.a.number]),onClickAction:l.a.func,onChangeAction:l.a.func,onBlurAction:l.a.func,required:l.a.string,readOnly:l.a.bool,maxLength:l.a.string,error:l.a.bool,min:l.a.string,max:l.a.string,step:l.a.string,errorMessage:l.a.string,autoComplete:l.a.string},a.a=s},704:function(e,a,t){"use strict";var n=t(0),r=t.n(n),i=t(4),l=t(8),s=t.n(l),o=function(e){var a=e.label,t=e.className,n=e.id,l=e.value,s=e.link,o=e.hidden;return s.length>0?r.a.createElement("div",{className:t,style:o?{display:"none"}:{}},r.a.createElement("label",{htmlFor:n,className:"col-sm-6"},a),r.a.createElement("div",{className:"col-sm-6",id:n,onClick:null},r.a.createElement(i.b,{to:s,className:"link-underline"},l))):r.a.createElement("div",{className:t,style:o?{display:"none"}:{}},r.a.createElement("label",{htmlFor:n,className:"col-sm-6"},a),r.a.createElement("div",{className:"col-sm-6",id:n},l))};o.defaultProps={className:"col-sm-6",value:"",link:"",hidden:!1},o.propTypes={label:s.a.oneOfType([s.a.string,s.a.object]).isRequired,className:s.a.string,id:s.a.string,value:s.a.oneOfType([s.a.string,s.a.number]),link:s.a.string,hidden:s.a.bool},a.a=o},705:function(e,a,t){"use strict";var n=t(0),r=t.n(n),i=t(8),l=t.n(i),s=function(e){var a=e.label,t=e.className,n=e.size,i=e.id,l=e.name,s=e.value,o=e.options,c=e.onChangeAction,u=e.onBlurAction,m=e.required,d=e.error,p=e.errorMessage,h=e.optionValue,g=e.optionName,b=e.readOnly,f=e.placeholder,y=e.divClassName,v=e.emptyOption;return r.a.createElement("div",{className:"form-group ".concat(n," ").concat(y)},r.a.createElement("label",{htmlFor:i,className:"col-sm-6 ".concat(m)},a),r.a.createElement("div",{className:"col-sm-6"},r.a.createElement("select",{className:"form-control input-sm ".concat(t)+(d&&" has-error"),id:i,name:l,value:s,onChange:c,onBlur:u,readOnly:b},v&&r.a.createElement("option",{value:""},f),o.map((function(e){return r.a.createElement("option",{key:e[h],value:e[h]},e[g])})))),d&&r.a.createElement("div",{className:"col-sm-offset-6 col-sm-6"},r.a.createElement("span",{className:"has-error-message"}," ",p)))};s.defaultProps={divClassName:"",className:"",size:"col-sm-6",readOnly:!1,required:"",error:!1,errorMessage:"",value:"",optionValue:"id",optionName:"name",placeholder:"",emptyOption:!0},s.propTypes={label:l.a.string.isRequired,className:l.a.string,size:l.a.string,id:l.a.string,name:l.a.string.isRequired,options:l.a.array,value:l.a.oneOfType([l.a.string,l.a.number]),onChangeAction:l.a.func,onBlurAction:l.a.func,required:l.a.string,readOnly:l.a.bool,error:l.a.bool,errorMessage:l.a.string,emptyOption:l.a.bool,optionValue:l.a.string,optionName:l.a.string,placeholder:l.a.string},a.a=s},707:function(e,a,t){"use strict";var n=t(0),r=t.n(n),i=t(8),l=t.n(i),s=function(e){var a=e.className,t=e.children;return r.a.createElement("div",{className:"panel-heading ".concat(a)},t)};s.defaultProps={className:""},s.propTypes={className:l.a.string},a.a=s},708:function(e,a,t){"use strict";var n=t(24),r=t.n(n),i=t(25),l=t.n(i),s=t(22),o=t.n(s),c=t(26),u=t.n(c),m=t(27),d=t.n(m),p=t(16),h=t.n(p),g=t(6),b=t.n(g),f=t(0),y=t.n(f),v=t(8),N=t.n(v),A=t(717),I=t.n(A),E=t(718),w=t.n(E),C=t(7),R=t.n(C);function B(e){var a=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 t,n=h()(e);if(a){var r=h()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return d()(this,t)}}R.a.locale("nl");var x=function(e){u()(t,e);var a=B(t);function t(e){var n;return r()(this,t),n=a.call(this,e),b()(o()(n),"validateDate",(function(e){var a=R()(e.target.value,"DD-MM-YYYY",!0),t=!1;a.isValid()||""===e.target.value||(t=!0),n.props.disabledBefore&&a.isBefore(n.props.disabledBefore)&&(t=!0),n.props.disabledAfter&&a.isAfter(n.props.disabledAfter)&&(t=!0),n.setState({errorDateFormat:t})})),b()(o()(n),"onDateChange",(function(e){var a=e?R()(e).format("Y-MM-DD"):"",t=!1;a&&n.props.disabledBefore&&R()(a).isBefore(n.props.disabledBefore)&&(t=!0),a&&n.props.disabledAfter&&R()(a).isAfter(n.props.disabledAfter)&&(t=!0),n.setState({errorDateFormat:t}),!t&&n.props.onChangeAction(a,n.props.name)})),n.state={errorDateFormat:!1},n}return l()(t,[{key:"render",value:function(){var e=this.props,a=e.label,t=e.className,n=e.size,r=e.divSize,i=e.id,l=e.value,s=e.required,o=e.readOnly,c=e.name,u=e.error,m=e.errorMessage,d=e.disabledBefore,p=e.disabledAfter,h=l?R()(l).format("L"):"",g={};return d&&(g.before=new Date(d)),p&&(g.after=new Date(p)),y.a.createElement("div",{className:"form-group ".concat(r)},y.a.createElement("div",null,y.a.createElement("label",{htmlFor:i,className:"col-sm-6 ".concat(s)},a)),y.a.createElement("div",{className:"".concat(n)},y.a.createElement(I.a,{id:i,value:h,formatDate:E.formatDate,parseDate:E.parseDate,onDayChange:this.onDateChange,dayPickerProps:{showWeekNumbers:!0,locale:"nl",firstDayOfWeek:1,localeUtils:w.a,disabledDays:g},inputProps:{className:"form-control input-sm ".concat(t)+(this.state.errorDateFormat||u?" has-error":""),name:c,onBlur:this.validateDate,autoComplete:"off",readOnly:o,disabled:o},required:s,readOnly:o,placeholder:""})),u&&y.a.createElement("div",{className:"col-sm-offset-6 col-sm-6"},y.a.createElement("span",{className:"has-error-message"}," ",m)))}}]),t}(f.Component);x.defaultProps={className:"",size:"col-sm-6",divSize:"col-sm-6",required:"",readOnly:!1,value:null,error:!1,errorMessage:"",disabledBefore:null,disabledAfter:null},x.propTypes={label:N.a.string.isRequired,type:N.a.string,className:N.a.string,size:N.a.string,divSize:N.a.string,id:N.a.string,name:N.a.string,value:N.a.oneOfType([N.a.string,N.a.object]),onChangeAction:N.a.func,required:N.a.string,readOnly:N.a.bool,error:N.a.bool,errorMessage:N.a.string,disabledBefore:N.a.string,disabledAfter:N.a.string},a.a=x},709:function(e,a,t){"use strict";var n=t(0),r=t.n(n),i=t(8),l=t.n(i),s=t(711),o=t.n(s),c=function(e){var a=e.label,t=e.size,n=e.id,i=e.name,l=e.value,s=e.onChangeAction,c=e.required,u=e.divSize,m=e.className,d=e.disabled;return r.a.createElement("div",{className:"form-group ".concat(u," ").concat(m)},r.a.createElement("div",null,r.a.createElement("label",{htmlFor:n,className:"col-sm-6 ".concat(c)},a)),r.a.createElement("div",{className:"".concat(t)},r.a.createElement(o.a,{id:n,name:i,onChange:s,checked:l,disabled:d})))};c.defaultProps={className:"",size:"col-sm-6",divSize:"col-sm-6",required:"",disabled:!1,value:null},c.propTypes={label:l.a.string.isRequired,type:l.a.string,size:l.a.string,divSize:l.a.string,id:l.a.string,name:l.a.string.isRequired,value:l.a.bool,onChangeAction:l.a.func,required:l.a.string,disabled:l.a.bool},a.a=c},711:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r=function(){function e(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(a,t,n){return t&&e(a.prototype,t),n&&e(a,n),a}}(),i=t(0),l=d(i),s=d(t(720)),o=d(t(8)),c=d(t(713)),u=d(t(714)),m=t(715);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function a(e){!function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a);var t=function(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e));return t.handleClick=t.handleClick.bind(t),t.handleTouchStart=t.handleTouchStart.bind(t),t.handleTouchMove=t.handleTouchMove.bind(t),t.handleTouchEnd=t.handleTouchEnd.bind(t),t.handleFocus=t.handleFocus.bind(t),t.handleBlur=t.handleBlur.bind(t),t.previouslyChecked=!(!e.checked&&!e.defaultChecked),t.state={checked:!(!e.checked&&!e.defaultChecked),hasFocus:!1},t}return function(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}(a,e),r(a,[{key:"componentDidUpdate",value:function(e){e.checked!==this.props.checked&&this.setState({checked:!!this.props.checked})}},{key:"handleClick",value:function(e){var a=this.input;if(e.target!==a&&!this.moved)return this.previouslyChecked=a.checked,e.preventDefault(),a.focus(),void a.click();var t=this.props.hasOwnProperty("checked")?this.props.checked:a.checked;this.setState({checked:t})}},{key:"handleTouchStart",value:function(e){this.startX=(0,m.pointerCoord)(e).x,this.activated=!0}},{key:"handleTouchMove",value:function(e){if(this.activated&&(this.moved=!0,this.startX)){var a=(0,m.pointerCoord)(e).x;this.state.checked&&a+15<this.startX?(this.setState({checked:!1}),this.startX=a,this.activated=!0):a-15>this.startX&&(this.setState({checked:!0}),this.startX=a,this.activated=a<this.startX+5)}}},{key:"handleTouchEnd",value:function(e){if(this.moved){var a=this.input;if(e.preventDefault(),this.startX){var t=(0,m.pointerCoord)(e).x;!0===this.previouslyChecked&&this.startX+4>t?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,a.click()):this.startX-4<t&&this.previouslyChecked!==this.state.checked&&(this.setState({checked:!0}),this.previouslyChecked=this.state.checked,a.click()),this.activated=!1,this.startX=null,this.moved=!1}}}},{key:"handleFocus",value:function(e){var a=this.props.onFocus;a&&a(e),this.setState({hasFocus:!0})}},{key:"handleBlur",value:function(e){var a=this.props.onBlur;a&&a(e),this.setState({hasFocus:!1})}},{key:"getIcon",value:function(e){var t=this.props.icons;return t?void 0===t[e]?a.defaultProps.icons[e]:t[e]:null}},{key:"render",value:function(){var e=this,a=this.props,t=a.className,r=(a.icons,function(e,a){var t={};for(var n in e)a.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(a,["className","icons"])),i=(0,s.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},t);return l.default.createElement("div",{className:i,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},l.default.createElement("div",{className:"react-toggle-track"},l.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),l.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),l.default.createElement("div",{className:"react-toggle-thumb"}),l.default.createElement("input",n({},r,{ref:function(a){e.input=a},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),a}(i.PureComponent);a.default=p,p.displayName="Toggle",p.defaultProps={icons:{checked:l.default.createElement(c.default,null),unchecked:l.default.createElement(u.default,null)}},p.propTypes={checked:o.default.bool,disabled:o.default.bool,defaultChecked:o.default.bool,onChange:o.default.func,onFocus:o.default.func,onBlur:o.default.func,className:o.default.string,name:o.default.string,value:o.default.string,id:o.default.string,"aria-labelledby":o.default.string,"aria-label":o.default.string,icons:o.default.oneOfType([o.default.bool,o.default.shape({checked:o.default.node,unchecked:o.default.node})])}},713:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n,r=t(0),i=(n=r)&&n.__esModule?n:{default:n};a.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"}))}},714:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n,r=t(0),i=(n=r)&&n.__esModule?n:{default:n};a.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"}))}},715:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.pointerCoord=function(e){if(e){var a=e.changedTouches;if(a&&a.length>0){var t=a[0];return{x:t.clientX,y:t.clientY}}var n=e.pageX;if(void 0!==n)return{x:n,y:e.pageY}}return{x:0,y:0}}},716:function(e,a,t){"use strict";var n=t(0),r=t.n(n),i=t(8),l=t.n(i),s=t(721),o=(t(722),function(e){var a=e.label,t=e.divSize,n=e.size,i=e.id,l=e.name,o=e.value,c=e.options,u=e.optionId,m=e.optionName,d=e.onChangeAction,p=e.required,h=e.multi,g=e.error,b=e.isLoading,f=e.disabled;return r.a.createElement("div",{className:"form-group ".concat(t)},r.a.createElement("label",{htmlFor:i,className:"col-sm-6 ".concat(p)},a),r.a.createElement("div",{className:"".concat(n)},r.a.createElement(s.a,{id:i,name:l,value:o,onChange:function(e){d(e||"",l)},options:c,valueKey:u,labelKey:m,placeholder:"",noResultsText:"Geen resultaat gevonden",multi:h,simpleValue:!0,removeSelected:!0,className:g?" has-error":"",isLoading:b,disabled:f})))});o.defaultProps={className:"",size:"col-sm-6",divSize:"col-sm-6",optionId:"id",optionName:"name",disabled:!1,required:"",error:!1,value:"",multi:!0,isLoading:!1},o.propTypes={label:l.a.string.isRequired,className:l.a.string,size:l.a.string,divSize:l.a.string,id:l.a.string,name:l.a.string.isRequired,options:l.a.array.isRequired,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,multi:l.a.bool,isLoading:l.a.bool},a.a=o},719:function(e,a){e.exports=function(e,a,t,n){var r=new Blob(void 0!==n?[n,e]:[e],{type:t||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(r,a);else{var i=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(r):window.webkitURL.createObjectURL(r),l=document.createElement("a");l.style.display="none",l.href=i,l.setAttribute("download",a),void 0===l.download&&l.setAttribute("target","_blank"),document.body.appendChild(l),l.click(),setTimeout((function(){document.body.removeChild(l),window.URL.revokeObjectURL(i)}),200)}}},757:function(e,a,t){"use strict";
  /*!
   * @license
   * This Source Code Form is subject to the terms of the Mozilla Public
   * License, v. 2.0. If a copy of the MPL was not distributed with this
   * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  /**
   * @file Validation, extraction and creation of IBAN, BBAN, BIC/SWIFT numbers plus some other helpful stuff
   * @author Saša Jovanić
   * @module ibantools
   * @see module:ibantools
   * @version 2.2.0
   * @license MPL-2.0
   */
  function n(e){if(null!=e){var a=new RegExp("^[0-9]{2}$",""),t=p[e.slice(0,2)];if(void 0!==t&&t.IBANRegistry&&t.chars===e.length&&a.test(e.slice(2,4))&&s(e.slice(4),t.bban_regexp)&&function(e){for(var a=parseInt(e.slice(2,4),10),t=e.slice(3)+e.slice(0,2)+"00",n="",r=1;r<t.length;r++){var i=t.charCodeAt(r);n+=i>=65?(i-55).toString():t[r]}for(;n.length>2;){var l=n.slice(0,6);n=(parseInt(l,10)%97).toString()+n.slice(l.length)}return 98-parseInt(n,10)%97===a}(e))return!0}return!1}function r(e,a){if(null!=e&&null!=a){var t=p[a];if(void 0!==t&&t.chars-4===e.length&&s(e,t.bban_regexp))return!0}return!1}function i(e){var a=o(e.bban),t=p[e.countryCode];if(null!==a&&void 0!==t&&t.chars===a.length+4&&s(a,t.bban_regexp)){var n=function(e){e=e.slice(3)+e.slice(0,4);for(var a="",t=1;t<e.length;t++){var n=e.charCodeAt(t);a+=n>=65?(n-55).toString():e[t]}for(;a.length>2;){var r=a.slice(0,6);a=(parseInt(r,10)%97).toString()+a.slice(r.length)}return parseInt(a,10)%97}(e.countryCode+"00"+a);return e.countryCode+("0"+(98-n)).slice(-2)+a}return null}function l(e){var a={};if(a.iban=e,n(e)){a.bban=e.slice(4),a.countryCode=e.slice(0,2);var t=p[a.countryCode];a.countryName=t.name,a.valid=!0}else a.valid=!1;return a}function s(e,a){return new RegExp(a,"").test(e)}function o(e){return"string"!=typeof e?null:e.replace(/[-\ ]/g,"").toUpperCase()}function c(e,a){return"string"!=typeof e?null:(void 0===a&&(a=" "),o(e).replace(/(.{4})(?!$)/g,"$1"+a))}function u(){return p}function m(e){var a=new RegExp("^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$",""),t=p[e.toUpperCase().slice(4,6)];return a.test(e)&&void 0!==t}function d(e){var a={},t=e.toUpperCase();if(m(t)){a.bankCode=t.slice(0,4),a.countryCode=t.slice(4,6);var n=p[a.countryCode];a.countryName=n.name,a.locationCode=t.slice(6,8),a.testBIC="0"===a.locationCode[1],a.branchCode=t.length>8?t.slice(8):"619",a.valid=!0}else a.valid=!1;return a}t.r(a),t.d(a,"isValidIBAN",(function(){return n})),t.d(a,"isValidBBAN",(function(){return r})),t.d(a,"composeIBAN",(function(){return i})),t.d(a,"extractIBAN",(function(){return l})),t.d(a,"electronicFormatIBAN",(function(){return o})),t.d(a,"friendlyFormatIBAN",(function(){return c})),t.d(a,"getCountrySpecifications",(function(){return u})),t.d(a,"isValidBIC",(function(){return m})),t.d(a,"extractBIC",(function(){return d}));var p={AD:{chars:24,bban_regexp:"^[0-9]{8}[A-Z0-9]{12}$",name:"Andorra",IBANRegistry:!0},AE:{chars:23,bban_regexp:"^[0-9]{3}[0-9]{16}$",name:"United Arab Emirates",IBANRegistry:!0},AF:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Afganistan"},AG:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Antigua and Bermuda"},AI:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Anguilla"},AL:{chars:28,bban_regexp:"^[0-9]{8}[A-Z0-9]{16}$",name:"Albania",IBANRegistry:!0},AM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Armenia"},AO:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Angola"},AQ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Antartica"},AR:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Argentina"},AS:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"American Samoa"},AT:{chars:20,bban_regexp:"^[0-9]{16}$",name:"Austria",IBANRegistry:!0},AU:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Australia"},AW:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Aruba"},AX:{chars:18,bban_regexp:"^[0-9]{14}$",name:"Åland Islands",IBANRegistry:!0},AZ:{chars:28,bban_regexp:"^[A-Z]{4}[0-9]{20}$",name:"Republic of Azerbaijan",IBANRegistry:!0},BA:{chars:20,bban_regexp:"^[0-9]{16}$",name:"Bosnia and Herzegovina",IBANRegistry:!0},BB:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Barbados"},BD:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Bangladesh"},BE:{chars:16,bban_regexp:"^[0-9]{12}$",name:"Belgium",IBANRegistry:!0},BF:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Burkina Faso"},BG:{chars:22,bban_regexp:"^[A-Z]{4}[0-9]{6}[A-Z0-9]{8}$",name:"Bulgaria",IBANRegistry:!0},BH:{chars:22,bban_regexp:"^[A-Z]{4}[A-Z0-9]{14}$",name:"Bahrain",IBANRegistry:!0},BI:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Burundi"},BJ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Benin"},BL:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"Saint Barthelemy",IBANRegistry:!0},BM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Bermuda"},BN:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Brunei Darusslam"},BO:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Bolivia, Plurinational State of"},BQ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Bonaire, Sint Eustatius and Saba"},BR:{chars:29,bban_regexp:"^[0-9]{23}[A-Z]{1}[A-Z0-9]{1}$",name:"Brazil",IBANRegistry:!0},BS:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Bahamas"},BT:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Bhutan"},BV:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Bouvet Island"},BW:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Botswana"},BY:{chars:28,bban_regexp:"^[A-Z]{4}[0-9]{4}[A-Z0-9]{16}$",name:"Republic of Belarus",IBANRegistry:!0},BZ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Belize"},CA:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Canada"},CC:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Cocos (Keeling) Islands"},CD:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Congo, the Democratic Republic of the"},CF:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Central African Republic"},CG:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Congo"},CH:{chars:21,bban_regexp:"^[0-9]{5}[A-Z0-9]{12}$",name:"Switzerland",IBANRegistry:!0},CI:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Côte d'Ivoire"},CK:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Cook Islands"},CL:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Chile"},CM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Cameroon"},CN:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"China"},CO:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Columbia"},CR:{chars:22,bban_regexp:"^[0-9]{18}$",name:"Costa Rica",IBANRegistry:!0},CU:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Cuba"},CV:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Cabo Verde"},CW:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Curaçao"},CX:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Christmas Island"},CY:{chars:28,bban_regexp:"^[0-9]{8}[A-Z0-9]{16}$",name:"Cyprus",IBANRegistry:!0},CZ:{chars:24,bban_regexp:"^[0-9]{20}$",name:"Czech Republic",IBANRegistry:!0},DE:{chars:22,bban_regexp:"^[0-9]{18}$",name:"Germany",IBANRegistry:!0},DJ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Djibouti"},DK:{chars:18,bban_regexp:"^[0-9]{14}$",name:"Denmark",IBANRegistry:!0},DM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Dominica"},DO:{chars:28,bban_regexp:"^[A-Z]{4}[0-9]{20}$",name:"Dominican Republic",IBANRegistry:!0},DZ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Algeria"},EC:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Ecuador"},EE:{chars:20,bban_regexp:"^[0-9]{16}$",name:"Estonia",IBANRegistry:!0},EG:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Egypt"},EH:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Western Sahara"},ER:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Eritrea"},ES:{chars:24,bban_regexp:"^[0-9]{20}$",name:"Spain",IBANRegistry:!0},ET:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Ethiopia"},FI:{chars:18,bban_regexp:"^[0-9]{14}$",name:"Finland",IBANRegistry:!0},FJ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Fiji"},FK:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Falkland Islands (Malvinas)"},FM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Micronesia, Federated States of"},FO:{chars:18,bban_regexp:"^[0-9]{14}$",name:"Faroe Islands (Denmark)",IBANRegistry:!0},FR:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"France",IBANRegistry:!0},GA:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Gabon"},GB:{chars:22,bban_regexp:"^[A-Z]{4}[0-9]{14}$",name:"United Kingdom",IBANRegistry:!0},GD:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Grenada"},GE:{chars:22,bban_regexp:"^[A-Z0-9]{2}[0-9]{16}$",name:"Georgia",IBANRegistry:!0},GF:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"French Guyana",IBANRegistry:!0},GG:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Guernsey"},GH:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Ghana"},GI:{chars:23,bban_regexp:"^[A-Z]{4}[A-Z0-9]{15}$",name:"Gibraltar",IBANRegistry:!0},GL:{chars:18,bban_regexp:"^[0-9]{14}$",name:"Greenland",IBANRegistry:!0},GM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Gambia"},GN:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Guinea"},GP:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"Guadeloupe",IBANRegistry:!0},GQ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Equatorial Guinea"},GR:{chars:27,bban_regexp:"^[0-9]{7}[A-Z0-9]{16}$",name:"Greece",IBANRegistry:!0},GS:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"South Georgia and the South Sandwitch Islands"},GT:{chars:28,bban_regexp:"^[A-Z0-9]{24}$",name:"Guatemala",IBANRegistry:!0},GU:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Guam"},GW:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Guinea-Bissau"},GY:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Guyana"},HK:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Hong Kong"},HM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Heard Island and McDonald Islands"},HN:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Honduras"},HR:{chars:21,bban_regexp:"^[0-9]{17}$",name:"Croatia",IBANRegistry:!0},HT:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Haiti"},HU:{chars:28,bban_regexp:"^[0-9]{24}$",name:"Hungary",IBANRegistry:!0},ID:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Indonesia"},IE:{chars:22,bban_regexp:"^[A-Z0-9]{4}[0-9]{14}$",name:"Republic of Ireland",IBANRegistry:!0},IL:{chars:23,bban_regexp:"^[0-9]{19}$",name:"Israel",IBANRegistry:!0},IM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Isle of Man"},IN:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"India"},IO:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"British Indian Ocean Territory"},IQ:{chars:23,bban_regexp:"^[A-Z]{4}[0-9]{15}$",name:"Iraq",IBANRegistry:!0},IR:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Iran, Islamic Republic of"},IS:{chars:26,bban_regexp:"^[0-9]{22}$",name:"Iceland",IBANRegistry:!0},IT:{chars:27,bban_regexp:"^[A-Z]{1}[0-9]{10}[A-Z0-9]{12}$",name:"Italy",IBANRegistry:!0},JE:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Jersey"},JM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Jamaica"},JO:{chars:30,bban_regexp:"^[A-Z]{4}[0-9]{4}[A-Z0-9]{18}$",name:"Jordan",IBANRegistry:!0},JP:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Japan"},KE:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Kenya"},KG:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Kyrgyzstan"},KH:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Cambodia"},KI:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Kiribati"},KM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Comoros"},KN:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Saint Kitts and Nevis"},KP:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Korea, Domocratic People's Republic of"},KR:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Korea, Republic of"},KW:{chars:30,bban_regexp:"^[A-Z]{4}[A-Z0-9]{22}$",name:"Kuwait",IBANRegistry:!0},KY:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Cayman Islands"},KZ:{chars:20,bban_regexp:"^[0-9]{3}[A-Z0-9]{13}$",name:"Kazakhstan",IBANRegistry:!0},LA:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Lao People's Democratic Republic"},LB:{chars:28,bban_regexp:"^[0-9]{4}[A-Z0-9]{20}$",name:"Lebanon",IBANRegistry:!0},LC:{chars:32,bban_regexp:"^[A-Z]{4}[A-Z0-9]{24}$",name:"Saint Lucia",IBANRegistry:!0},LI:{chars:21,bban_regexp:"^[0-9]{5}[A-Z0-9]{12}$",name:"Liechtenstein",IBANRegistry:!0},LK:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Sri Lanka"},LR:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Liberia"},LS:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Lesotho"},LT:{chars:20,bban_regexp:"^[0-9]{16}$",name:"Lithuania",IBANRegistry:!0},LU:{chars:20,bban_regexp:"^[0-9]{3}[A-Z0-9]{13}$",name:"Luxembourg",IBANRegistry:!0},LV:{chars:21,bban_regexp:"^[A-Z]{4}[A-Z0-9]{13}$",name:"Latvia",IBANRegistry:!0},LY:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Libya"},MA:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Marocco"},MC:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"Monaco",IBANRegistry:!0},MD:{chars:24,bban_regexp:"^[A-Z0-9]{2}[A-Z0-9]{18}$",name:"Moldova",IBANRegistry:!0},ME:{chars:22,bban_regexp:"^[0-9]{18}$",name:"Montenegro",IBANRegistry:!0},MF:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"Saint Martin",IBANRegistry:!0},MG:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Madagascar"},MH:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Marshall Islands"},MK:{chars:19,bban_regexp:"^[0-9]{3}[A-Z0-9]{10}[0-9]{2}$",name:"Macedonia, the former Yugoslav Republic of",IBANRegistry:!0},ML:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Mali"},MM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Myanman"},MN:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Mongolia"},MO:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Macao"},MP:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Northern mariana Islands"},MQ:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"Martinique",IBANRegistry:!0},MR:{chars:27,bban_regexp:"^[0-9]{23}$",name:"Mauritania",IBANRegistry:!0},MS:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Montserrat"},MT:{chars:31,bban_regexp:"^[A-Z]{4}[0-9]{5}[A-Z0-9]{18}$",name:"Malta",IBANRegistry:!0},MU:{chars:30,bban_regexp:"^[A-Z]{4}[0-9]{19}[A-Z]{3}$",name:"Mauritius",IBANRegistry:!0},MV:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Maldives"},MW:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Malawi"},MX:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Mexico"},MY:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Malaysia"},MZ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Mozambique"},NA:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Namibia"},NC:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"New Caledonia",IBANRegistry:!0},NE:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Niger"},NF:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Norfolk Island"},NG:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Nigeria"},NI:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Nicaraqua"},NL:{chars:18,bban_regexp:"^[A-Z]{4}[0-9]{10}$",name:"Netherlands",IBANRegistry:!0},NO:{chars:15,bban_regexp:"^[0-9]{11}$",name:"Norway",IBANRegistry:!0},NP:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Nepal"},NR:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Nauru"},NU:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Niue"},NZ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"New Zealand"},OM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Oman"},PA:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Panama"},PE:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Peru"},PF:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"French Polynesia",IBANRegistry:!0},PG:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Papua New Guinea"},PH:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Philippines"},PK:{chars:24,bban_regexp:"^[A-Z0-9]{4}[0-9]{16}$",name:"Pakistan",IBANRegistry:!0},PL:{chars:28,bban_regexp:"^[0-9]{24}$",name:"Poland",IBANRegistry:!0},PM:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"Saint Pierre et Miquelon",IBANRegistry:!0},PN:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Pitcairn"},PR:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Puerto Rico"},PS:{chars:29,bban_regexp:"^[A-Z0-9]{4}[0-9]{21}$",name:"Palestine, State of",IBANRegistry:!0},PT:{chars:25,bban_regexp:"^[0-9]{21}$",name:"Portugal",IBANRegistry:!0},PW:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Palau"},PY:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Paraguay"},QA:{chars:29,bban_regexp:"^[A-Z]{4}[A-Z0-9]{21}$",name:"Qatar",IBANRegistry:!0},RE:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"Reunion",IBANRegistry:!0},RO:{chars:24,bban_regexp:"^[A-Z]{4}[A-Z0-9]{16}$",name:"Romania",IBANRegistry:!0},RS:{chars:22,bban_regexp:"^[0-9]{18}$",name:"Serbia",IBANRegistry:!0},RU:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Russian Federation"},RW:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Rwanda"},SA:{chars:24,bban_regexp:"^[0-9]{2}[A-Z0-9]{18}$",name:"Saudi Arabia",IBANRegistry:!0},SB:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Solomon Islands"},SC:{chars:31,bban_regexp:"^[[A-Z]{4}[]0-9]{20}[A-Z]{3}$",name:"Seychelles",IBANRegistry:!0},SD:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Sudan"},SE:{chars:24,bban_regexp:"^[0-9]{20}$",name:"Sweden",IBANRegistry:!0},SG:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Singapore"},SH:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Saint Helena, Ascension and Tristan da Cunha"},SI:{chars:19,bban_regexp:"^[0-9]{15}$",name:"Slovenia",IBANRegistry:!0},SJ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Svalbard and Jan Mayen"},SK:{chars:24,bban_regexp:"^[0-9]{20}$",name:"Slovak Republic",IBANRegistry:!0},SL:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Siera Leone"},SM:{chars:27,bban_regexp:"^[A-Z]{1}[0-9]{10}[A-Z0-9]{12}$",name:"San Marino",IBANRegistry:!0},SN:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Senegal"},SO:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Somalia"},SR:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Suriname"},SS:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"South Sudan"},ST:{chars:25,bban_regexp:"^[0-9]{21}$",name:"Sao Tome And Principe",IBANRegistry:!0},SV:{chars:28,bban_regexp:"^[A-Z]{4}[0-9]{20}$",name:"El Salvador",IBANRegistry:!0},SX:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Sint Maarten (Dutch part)"},SY:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Syrian Arab Republic"},SZ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Swaziland"},TC:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Turks and Caicos Islands"},TD:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Chad"},TF:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"French Southern Territories",IBANRegistry:!0},TG:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Togo"},TH:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Thailand"},TJ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Tajikistan"},TK:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Tokelau"},TL:{chars:23,bban_regexp:"^[0-9]{19}$",name:"Timor-Leste",IBANRegistry:!0},TM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Turkmenistan"},TN:{chars:24,bban_regexp:"^[0-9]{20}$",name:"Tunisia",IBANRegistry:!0},TO:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Tonga"},TR:{chars:26,bban_regexp:"^[0-9]{5}[A-Z0-9]{17}$",name:"Turkey",IBANRegistry:!0},TT:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Trinidad and Tobago"},TV:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Tuvalu"},TW:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Taiwan, Province of China"},TZ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Tanzania, United republic of"},UA:{chars:29,bban_regexp:"^[0-9]{6}[A-Z0-9]{19}$",name:"Ukraine",IBANRegistry:!0},UG:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Uganda"},UM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"United States Minor Outlying Islands"},US:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"United States of America"},UY:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Uruguay"},UZ:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Uzbekistan"},VA:{chars:22,bban_regexp:"^[0-9]{18}",IBANRegistry:!0,name:"Vatican City State"},VC:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Saint Vincent and the Granadines"},VE:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Venezuela, Bolivian Republic of"},VG:{chars:24,bban_regexp:"^[A-Z0-9]{4}[0-9]{16}$",name:"Virgin Islands, British",IBANRegistry:!0},VI:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Virgin Islands, U.S."},VN:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Viet Nam"},VU:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Vanautu"},WF:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"Wallis and Futuna",IBANRegistry:!0},WS:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Samoa"},XK:{chars:20,bban_regexp:"^[0-9]{16}$",name:"Kosovo",IBANRegistry:!0},YE:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Yemen"},YT:{chars:27,bban_regexp:"^[0-9]{10}[A-Z0-9]{11}[0-9]{2}$",name:"Mayotte",IBANRegistry:!0},ZA:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"South Africa"},ZM:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Zambia"},ZW:{chars:null,bban_regexp:null,IBANRegistry:!1,name:"Zimbabwe"}}},768:function(e,a,t){"use strict";t.d(a,"d",(function(){return n})),t.d(a,"e",(function(){return r})),t.d(a,"a",(function(){return i})),t.d(a,"c",(function(){return l})),t.d(a,"b",(function(){return s}));var n=function(e){return{type:"FETCH_ADMINISTRATION_DETAILS",id:e}},r=function(e,a,t){return{type:"UPDATE_ADMINISTRATION",administration:e,administrationId:a,switchToView:t}},i=function(e){return{type:"ADD_ADMINISTRATION_USER",administrationUser:e}},l=function(e,a){return{type:"DELETE_ADMINISTRATION_USER",administrationId:e,userId:a}},s=function(e){return{type:"DELETE_ADMINISTRATION_SEPA",sepaId:e}}},836:function(e,a,t){"use strict";var n=t(11);a.a={fetchPortalSettingsLayouts:function(){return n.a.get("jory/portal-settings-layout",{params:{jory:{fld:["id","description","isDefault"]}}})}}},876:function(e,a,t){"use strict";t.d(a,"c",(function(){return n})),t.d(a,"a",(function(){return r})),t.d(a,"b",(function(){return i}));var n=function(){return{type:"FETCH_ADMINISTRATIONS"}},r=function(){return{type:"CLEAR_ADMINISTRATIONS"}},i=function(e){return{type:"DELETE_ADMINISTRATION",id:e}}},915:function(e,a,t){"use strict";var n=t(24),r=t.n(n),i=t(25),l=t.n(i),s=t(26),o=t.n(s),c=t(27),u=t.n(c),m=t(16),d=t.n(m),p=t(0),h=t.n(p),g=t(101);function b(e){var a=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 t,n=d()(e);if(a){var r=d()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return u()(this,t)}}var f=t(771).default,y=function(e){o()(t,e);var a=b(t);function t(e){var n;return r()(this,t),(n=a.call(this,e)).state={error:!1,errorMaxSize:!1},n}return l()(t,[{key:"onDropAccepted",value:function(e){var a=this;this.props.addAttachment(e),setTimeout((function(){a.props.toggleShowNew()}),500)}},{key:"onDropRejected",value:function(){this.setState({errorMaxSize:!0})}},{key:"render",value:function(){return h.a.createElement(g.a,{closeModal:this.props.toggleShowNew,showConfirmAction:!1,title:"Upload bestand"},h.a.createElement("div",{className:"upload-file-content"},h.a.createElement(f,{accept:"image/jpeg, image/png, image/jpg",multiple:!1,className:"dropzone",onDropAccepted:this.onDropAccepted.bind(this),onDropRejected:this.onDropRejected.bind(this),maxSize:6e6},h.a.createElement("p",null,"Klik hier voor het uploaden van een bestand"),h.a.createElement("p",null,h.a.createElement("strong",null,"of")," sleep het bestand hierheen"))),this.state.error&&h.a.createElement("p",{className:"has-error-message"},"Uploaden mislukt. Probeer nogmaals een bestand te uploaden."),this.state.errorMaxSize&&h.a.createElement("p",{className:"has-error-message"},"Uploaden mislukt. Het bestand mag maximaal 6MB groot zijn."))}}]),t}(p.Component);a.a=y}}]);