1"use strict";(self.webpackChunkportfoliodesign=self.webpackChunkportfoliodesign||[]).push([[7569,9113],{66945(e,t,r){var n;function o(e,t,r,o){n||(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=o;else if(a>1){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+3];t.children=u}if(t&&i)for(var l in i)void 0===t[l]&&(t[l]=i[l]);else t||(t=i||{});return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function i(e){var t=e.className;return o("div",{className:void 0===t?"col-sm-4":t,style:e.style},void 0,e.children)}r.d(t,{P:()=>i})},57753(e,t,r){r.d(t,{R:()=>O});var n,o=r(5556),i=r.n(o),a=r(13918),u=r(40518);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t,r,o){n||(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=o;else if(a>1){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+3];t.children=u}if(t&&i)for(var l in i)void 0===t[l]&&(t[l]=i[l]);else t||(t=i||{});return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function s(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function v(e,t,r){return t=b(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,r||[],b(e).constructor):t.apply(e,r))}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t,r){return(t=w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var O=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),r=t,(n=[{key:"getData",value:function(e){return e.reduce(function(e,t){return p(p({},e),{},g({},t.date,[].concat(s(e[t.date]||[]),[t])))},{})}},{key:"render",value:function(){var e=this.getData(this.props.entryValues),t=Object.keys(e);return l("div",{className:"col-sm-4 finance-table"},void 0,l("div",{},"work.edit.journalentries",I18n.translate("work.edit.journalentries"),l("hr",{})),l("div",{},void 0,l("div",{},void 0,t.map(function(t){return l("div",{style:{marginBottom:20}},t,l("div",{className:"finance-table__head-date"},void 0,t),e[t].map(function(e,t){return l("div",{className:"row"},t,l("div",{className:"col-xs-3"},void 0,e.accountNumber),l("div",{className:"col-xs-5"},void 0,e.accountName),l("div",{className:"col-xs-4 text-right"},void 0,e.amount))}))}),!t.length&&l("div",{className:"text-center"},void 0,I18n.translate("work.edit.journalentries.empty")))))}}
1])&&y(r.prototype,n),o&&y(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(a.b);g(O,"propTypes",{entryValues:i().arrayOf(i().instanceOf(u.H))})},29113(e,t,r){r.r(t),r.d(t,{DefaultTransactionForm:()=>b});var n,o=r(5556),i=r.n(o),a=r(13918),u=r(74218);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t,r,o){n||(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=o;else if(a>1){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+3];t.children=u}if(t&&i)for(var l in i)void 0===t[l]&&(t[l]=i[l]);else t||(t=i||{});return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function f(e,t,r){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function v(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),r=t,(n=[{key:"getFileIdentifiers",value:function(){return Promise.resolve([])}},{key:"getData",value:function(){return Promise.resolve(new u.A)}},{key:"validate",value:function(){return Promise.resolve(!0)}},{key:"isSaveDisabled",value:function(){return!1}},{key:"render",value:function(){return l("div",{})}}])&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(a.b);v(b,"propTypes",{companySelection:i().number.isRequired,companySelectionXid:i().number.isRequired,transaction:i().instanceOf(u.A).isRequired,options:i().object.isRequired,modeEdit:i().bool,onDisableSave:i().func.isRequired}),v(b,"defaultProps",{bankAccounts:[],currencies:[],depositories:[],financeAccounts:[],modeEdit:!1})},17569(e,t,r){r.r(t),r.d(t,{OwnerDividendTaxPaidTransactionForm:()=>N});var n,o=r(88482),i=r.n(o),a=r(91184),u=r(70508),c=r(74218),l=r(1477),s=r(826),f=r(48127),d=r(3373),p=r(35689),y=r(54739),v=r(45215),m=r(66945),b=r(57753),h=r(29113),g=r(95093),w=r(96540);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function j(e,t,r,o){n||(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=o;else if(a>1){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+3];t.children=u}if(t&&i)for(var l in i)void 0===t[l]&&(t[l]=i[l]);else t||(t=i||{});return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?S(Object(r),!0).forEach(function(t){x(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T(n.key),n)}}function D(e,t,r){return t=E(t),function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,A()?Reflect.construct(t,r||[],E(e).constructor):t.apply(e,r))}function A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(A=function(){return!!e})()}function I(){return I="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},I.apply(null,arguments)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function x(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O(t)?t:t+""}var N=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),x(r=D(this,t,[e]),"state",{transactiondate:"",initialDate:g(),amount:"",cashaccount:"",extraordinary:!1}),x(r,"methods",{}),x(r,"dateInp",null),x(r,"accountInp",null),x(r,"amountInp",null),r.dateValidators=[(0,l.A)({required:!0,mustBeOpen:!0},function(){return r.props.fiscalYears})],r.accountValidators=[f.A],r.priceValidators=[function(e){return(0,s.A)().validate({value:e,options:{forbidNegative:!0,required:!0}})}],r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(t,e),r=t,n=[{key:"componentDidMount",value:function(){var e,r,n,o,i,a=this;(e=t,r="componentDidMount",n=this,i=I(E(1&(o=3)?e.prototype:e),r,n),2&o&&"function"==typeof i?function(e){return i.apply(n,e)}:i)([]);var u=this.props.transaction.transactionDetails,c=u&&u.transactiondate||"";this.setState({transactiondate:c,initialDate:(0,d.HH)((this.props.fiscalYears.find(function(e){return e.fiscalYearIdentifier===a.props.currentlySelectedYear})||{fromDate:c}).fromDate),cashaccount:u&&u.cashaccount||this.props.bankAccounts[0]&&this.props.bankAccounts[0].value||"",amount:u&&u.amount||"",extraordinary:(0,d.PK)(u&&u.extraordinary||"")})}},{key:"componentDidUpdate",value:function(e){var t=this;(e.fiscalYears!==this.props.fiscalYears||e.currentlySelectedYear!==this.props.currentlySelectedYear&&!this.state.transactiondate)&&this.setState({initialDate:(0,d.HH)((this.props.fiscalYears.find(function(e){return e.fiscalYearIdentifier===t.props.currentlySelectedYear})||{fromDate:""}).fromDate)})}},{key:"validate",value:function(){return Promise.all([this.dateInp.validate(this.state.transactiondate),this.accountInp.validate(this.state.cashaccount),this.amountInp.validate(this.state.amount)]).then(function(e){return e.every(function(e){return e.every(function(e){return e.valid})})})}},{key:"getData",value:function(){var e=new c.A(this.props.transaction);
1return e.transactionDetails=new u.r(P(P({},this.state),{},{extraordinary:String(this.state.extraordinary)})),e}},{key:"render",value:function(){var e=this;return j("div",{className:"row"},void 0,j(m.P,{},void 0,w.createElement(p.$,{key:"date-inp",label:"work.edit.ownerdividendpaid.date",tooltip:"work.edit.ownerdividendpaid.date.balloon",ref:(0,d._s)(this.methods,1,function(t){e.dateInp=t}),disabled:this.props.disabled,value:this.state.transactiondate,initialVisibleMonth:this.state.initialDate,validators:this.dateValidators,onChange:(0,d._s)(this.methods,3,function(t){return e.setState({transactiondate:t,initialDate:(0,d.HH)(t,(e.props.fiscalYears.find(function(t){return t.fiscalYearIdentifier===e.props.currentlySelectedYear})||{fromDate:Date.now()}).fromDate)})}),autoFocus:!this.props.modeEdit}),w.createElement(y.x,{key:"amount-inp",label:"work.edit.ownerdividendtaxpaid.amount",tooltip:"work.edit.ownerdividendtaxpaid.amount.balloon",disabled:this.props.disabled,ref:(0,d._s)(this.methods,2,function(t){e.amountInp=t}),value:this.state.amount,validators:this.priceValidators,onChange:(0,d._s)(this.methods,4,function(t){return e.setState({amount:t})})}),w.createElement(v.X,{key:"account-inp",label:"work.edit.cashaccount",tooltip:"work.edit.cashaccount.balloon",disabled:this.props.disabled,ref:(0,d._s)(this.methods,5,function(t){e.accountInp=t}),value:this.state.cashaccount,options:this.props.bankAccounts,validators:this.accountValidators,onChange:(0,d._s)(this.methods,6,function(t){return e.setState({cashaccount:t})})}),j(i(),{checked:this.state.extraordinary,disabled:this.props.disabled,onChange:(0,d._s)(this.methods,7,function(){return e.setState({extraordinary:!e.state.extraordinary})})},void 0,I18n.translate("work.edit.ownerdividend.extraordinary"),j(a.$,{icon:"fa fa-info-circle space-left",tooltip:I18n.translate("work.edit.ownerdividend.extraordinary.balloon")}))),j(m.P,{}),this.props.showEntries&&this.props.modeEdit&&j(b.R,{entryValues:this.props.transaction.entryValues}))}}],n&&k(r.prototype,n),o&&k(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(h.DefaultTransactionForm)},83331(e,t,r){r.d(t,{j:()=>p});var n=r(98879),o=r.n(n),i=r(28646);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}i.registerLanguage(o(),!0);var p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"stringToNumber",value:function(e){var t=[",","0","0"],r=c(/^([^,]+)(,\d+)?$/.exec(e)||[],3),n=r[1],o=r[2],a=o?[].concat(u(t.map(function(e,t){return o[t]||e})),u(o.slice(3))).join(""):t.join(""),l="".concat(n).concat(a);return i(l).value()}},{key:"numberToString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i(e).format({thousandSeparated:!0,mantissa:t?0:2})}},{key:"sum",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reduce(function(t,r){return t.add(("string"==typeof r?e.stringToNumber(r):r)||0)}
1,i(0)).value()}},{key:"numberToPercentage",value:function(e){return i(e).format({output:"percent",mantissa:2})}}],(r=null)&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}()},1477(e,t,r){var n=r(199),o=r(45021),i=r(95093);const a=function(e,t,r,a){return function(u){var c=(0,o.A)(e)(u);if(!c.valid)return c;var l=i(u,n.D2);if(r&&r().isAfter(l)||a&&a().isBefore(l))return{valid:!1,message:I18n.translate("work.edit.validate.from.before.to")};var s=t().find(function(e){return l.isBetween(i(e.fromDate,n.D2),i(e.toDate,n.D2),null,"[]")});return s?{valid:!0!==e.mustBeOpen||!s.closed,message:I18n.translate("work.edit.validate.yearclosed")}:{valid:!1,message:I18n.translate("work.edit.validate.insideyears")}}};r.dn(a),r.d(t,["A",0,a])},45021(e,t,r){var n=r(199),o=r(48127),i=r(95093);const a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.required,r=void 0!==t&&t,a=e.min,u=e.max,c=e.format,l=void 0===c?n.D2:c,s=e.formatMessage,f=e.emptyMessage,d=e.checkFormat,p=void 0!==d&&d;return function(e){if(!(0,o.A)(e).valid)return r?{valid:!1,message:f||I18n.translate("work.edit.validate.missingdate")}:{valid:!0};if(p)return{valid:i(e,n.D2,!0).isValid(),message:I18n.translate("work.edit.validate.dateformat")};var t,c,d=i(e,l),y=d.parsingFlags(),v=[];(y.empty&&v.push({valid:!1,message:s||I18n.translate("work.edit.validate.dateformat")}),y.overflow>0&&v.push({valid:!1,message:I18n.translate("work.edit.validate.invali
1ddate")}),a)&&((t="function"==typeof a?i(a()):i(a,l)).isAfter(d)&&v.push({valid:!1,message:I18n.translate("work.edit.validate.date.min",t.format(l))}));u&&((c="function"==typeof u?i(u()):i(u,l)).isBefore(d)&&v.push({valid:!1,message:I18n.translate("work.edit.validate.date.max",c.format(l))}));return v.length?v[0]:{valid:!0}}};r.dn(a),r.d(t,["A",0,a])},826(e,t,r){var n=r(91505),o=r(68388),i=r(44918),a=r(83331);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}const f=function(){var e={thousandsSeparator:".",decimalSeparator:","},t={enabled:!0,inclusive:!1,min:0,message:I18n.translate("work.edit.validate.numeric.negative")},r={enabled:!0,inclusive:!1,max:0,message:I18n.translate("work.edit.validate.numeric.positive")},u={enabled:!0,message:I18n.translate("work.edit.validate.numeric.missing")},l={enabled:!0,trim:!0,max:25,message:I18n.translate("work.edit.validate.numeric.strlength")},f=I18n.translate("work.edit.validate.numeric.max2decimals");return{validate:function(d){var p=d.value,y=d.options,v=void 0===y?{}:y,m=v.forbidNegative,b=v.forbidPositive,h=v.forbidDecimals,g=v.max,w=void 0===g?1/0:g,O=v.maxMessage,j=v.min,S=void 0===j?-1/0:j,P=v.minMessage,k=v.required,D=v.stringLength,A=v.message,I=v.noZero,E=void 0!==I&&I,_=v.checkNaN,x=void 0!==_&&_,T=v.decimalPlaces,N=void 0===T?2:T,R=v.decimalPlacesMessage,Y=void 0===R?f:R,$=m&&("object"===s(m)?c(c({},t),m):t),B=b&&("object"===s(b)?c(c({},r),b):r),C=k&&("object"===s(k)?c(c({},u),k):u),V=D&&("object"===s(D)?c(c({},l),D):l),F=[],M=a.j.stringToNumber(p),q="string"==typeof w?a.j.stringToNumber(w):w,H="string"==typeof S?a.j.stringToNumber(S):S,U=c(c({},e),h?{decimalSeparator:""}:{}),L=(0,o.A)().validate({value:p,options:U}),X=(0,o.A)().validate({value:p,options:c(c({},U),{},{thousandsSeparator:""})});(F.push({valid:L.valid||X.valid,message:A||I18n.translate(h?"work.edit.validate.numeric.int":"work.edit.validate.numeric.format")}),isFinite(q)&&M>q&&F.push({valid:!1,message:O||I18n.translate("work.edit.validate.numeric.max",q)}),isFinite(H)&&M<H&&F.push({valid:!1,message:P||I18n.translate("work.edit.validate.numeric.min",H)}),C&&C.enabled)&&((0,n.A)().validate({value:p,options:C}).valid||F.push({valid:!1,message:C.message}));(x&&F.push({valid:!isNaN(M),message:I18n.translate("work.edit.validate.numeric.int")}),E&&F.push({valid:0!==M,message:I18n.translate("work.edit.validate.numeric.noZero")}),$&&$.enabled&&F.push({valid:void 0===M||M>=0,message:$.message}),B&&B.enabled&&F.push({valid:void 0===M||M<=0,message:B.message}),V&&V.enabled)&&((0,i.A)().validate({value:String(p||""),options:V}).valid||F.push({valid:!1,message:V.message}));if(void 0!==N&&N>=0){(function(e,t,r){if(!e||"string"!=typeof e)return 0;var n=e.split(r).join("").split(t);return 2===n.length?n[1].length:0})(p,U.decimalSeparator,U.thousandsSeparator)>N&&F.push({valid:!1,message:Y})}return F.find(function(e){return!e.valid})||{valid:!0}}}};r.dn(f),r.d(t,["A",0,f])},68388(e,t,r){function n(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=Object.assign({},{decimalSeparator:".",thousandsSeparator:""},e.options),r="".concat(e.value);r.substr(0,1)===t.decimalSeparator?r="0".concat(t.decimalSeparator).concat(r.substr(1)):r.substr(0,2)==="-".concat(t.decimalSeparator)&&(r="-0".concat(t.decimalSeparator).concat(r.substr(2)));var n="."===t.decimalSeparator?"\\.":t.decimalSeparator,o="."===t.thous
1andsSeparator?"\\.":t.thousandsSeparator,i=new RegExp("^-?[0-9]{1,3}(".concat(o,"[0-9]{3})*(").concat(n,"[0-9]+)?$")),a=new RegExp(o,"g");if(!i.test(r))return{valid:!1};o&&(r=r.replace(a,"")),n&&(r=r.replace(n,"."));var u=parseFloat(r);return{valid:!isNaN(u)&&isFinite(u)}}}}r.d(t,{A:()=>n})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.