PageSourceSearch

https://www.multiregnskab.dk/4725b80e44c2.js

js multiregnskab.dk collected 2026-10-02 00:40:01 UTC 42,474 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkportfoliodesign=self.webpackChunkportfoliodesign||[]).push([[4725],{79358(t,e,n){n.d(e,{A3:()=>O,C6:()=>l,Do:()=>a,Eu:()=>b,JM:()=>I,MI:()=>P,MU:()=>c,Mq:()=>D,QP:()=>R,SG:()=>s,Ui:()=>h,Uj:()=>f,Y2:()=>p,ao:()=>g,cc:()=>w,dz:()=>j,gH:()=>S,hN:()=>v,mY:()=>u,p6:()=>d,qP:()=>m,r3:()=>A,xt:()=>y,zh:()=>k});var r=n(20212),o=n(14670),i=n(51470);function a(t){var e=t.companyXid,n=t.selectedFiscalYearXid,o=t.firstInvoiceListInSession,a=void 0===o||o;return(0,r.RD)(i.tD5,{method:"post",data:{companyXid:e,selectedFiscalYearXid:n,firstInvoiceListInSession:a}})}function s(t){var e=t.companyXid,n=t.showSums;return(0,r.RD)(i.dPG,{method:"post",data:{companyXid:e,showSums:n}})}function u(t,e){return(0,r.RD)(i.rMT,{method:"post",data:{companyXid:t,invoiceXid:e},ignoreStatus:[o.BR]})}function c(t){var e=t.companyXid,n=t.copyFromInvoiceXid,a=t.creditnote,s=t.offer,u=void 0!==s&&s;return(0,r.RD)(i.hnd,{method:"post",data:{companyXid:e,copyFromInvoiceXid:n,creditnote:a,offer:u},ignoreStatus:[o.BR]})}function l(t,e,n){return(0,r.RD)(i.e47,{method:"post",data:{companyXid:t,invoiceXid:e,invoiceVersion:n}})}function p(t,e,n){return(0,r.RD)(i.LHc,{method:"post",data:{companyXid:t,invoiceXid:e,version:n}})}function d(t,e,n,a){return(0,r.RD)(i.eub,{method:"post",data:{companyXid:t,invoiceXid:e,version:n,email:a,sendInvoice:!!a},ignoreStatus:[406,o.BR]})}function f(t,e,n,a){return(0,r.RD)(i.lwT,{method:"post",data:{companyXid:t,invoiceXid:e,invoiceVersion:n,email:a,sendInvoice:!0},ignoreStatus:[406,o.BR]})}function v(t,e,n){return(0,r.RD)(i.eub,{method:"post",data:{companyXid:t,invoiceXid:e,version:n,email:null,sendInvoice:!0},ignoreStatus:[406,o.BR]})}function h(t,e,n){return(0,r.RD)(i.vJ_,{method:"post",data:{companyXid:t,invoiceXid:e,email:n}})}function m(t,e){return(0,r.RD)(i.NU$,{method:"post",data:{invoiceNumber:t,companyXid:e}})}function y(t,e){return(0,r.RD)(i.Yn$,{method:"post",data:{firstInvoiceNumber:t,companyXid:e}})}function b(t){var e=t.file,n=t.invoiceXid,o=t.companyXid;return(0,r.RD)(i.mtK,{method:"post",file:e,data:{invoiceXid:n,companyXid:o}},!0)}function g(t){var e=t.archiveFileXid,n=t.invoiceXid,o=t.companyXid;return(0,r.RD)(i.Mz6,{method:"post",data:{archiveFileXid:e,invoiceXid:n,companyXid:o}})}function O(t){var e=t.companyXid,n=t.invoiceXid,o=t.invoiceVersion,a=t.parameterName,s=t.value,u=t.value2;return(0,r.RD)(i.At9,{method:"post",data:{companyXid:e,invoiceXid:n,invoiceVersion:o,parameterName:a,value:s,value2:u}})}function w(t){var e=t.companyXid,n=t.invoiceXid,o=t.invoiceVersion,a=t.invoiceLines;return(0,r.RD)(i.ejD,{method:"post",data:{companyXid:e,invoiceXid:n,invoiceVersion:o,invoiceLines:a}})}function k(t,e,n,o){return(0,r.RD)(i.v_B,{method:"post",data:{companyXid:e,searchExpr:t,productIdSearchExpr:o,currency:n}})}function S(t,e){return(0,r.RD)(i.u6r,{method:"post",data:{companyXid:t,invoiceXid:e}})}function j(t){var e=t.companyXid,n=t.invoiceXid,o=t.invoiceVersion,a=t.toOrderConfirmation,s=t.toInvoice;return(0,r.RD)(i.z7y,{method:"post",data:{companyXid:e,invoiceXid:n,invoiceVersion:o,toOrderConfirmation:a,toInvoice:s}})}function P(t){var e=t.companyXid,n=t.invoiceXid;return(0,r.RD)(i.kn8,{method:"post",data:{companyXid:e,invoiceXid:n}})}function A(t){var e=t.companyXid,n=t.invoiceXid,o=t.reallySend,a=void 0!==o&&o;return(0,r.RD)(i.L$V,{method:"post",data:{companyXid:e,invoiceXid:n,reallySend:a}})}function I(t){var e=t.companyXid,n=t.invoiceXid;return(0,r.RD)(i.eHF,{method:"post",data:{companyXid:e,invoiceXid:n}})}function D(t){return(0,r.RD)(i.kQe,{method:"post",data:t})}function R(t){var e=t.companyXid,n=t.nextInvoiceNumber;return(0,r.RD)(i._jM,{method:"post",data:{companyXid:e,nextInvoiceNumber:n}})}},25799(t,e,n){n.d(e,{H:()=>j});var r,o=n(5556),i=n.n(o),a=n(91184),s=n(38838),u=n(3373),c=n(21886),l=n(96540);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function d(t,e,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=t&&t.defaultProps,a=arguments.length-3;if(e||0===a||(e={children:void 0}),1===a)e.children=o;else if(a>1){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+3];e.children=s}if(e&&i)for(var c in i)void 0===e[c]&&(e[c]=i[c]);else e||(e=i||{});return{$$typeof:r,type:t,key:void 0===n?null:""+n,ref:null,props:e,_owner:null}}function f(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(t,e):void 0}}(t)||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 v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?h(Object(n),!0).forEach(function(e){k(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,S(r.key),r)}}function b(t,e,n){return e=O(e),function(t,e){if(e&&("object"==p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,g()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(g=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}function k(t,e,n){return(e=S(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==p(e)?e:e+""}var j=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return k(t=b(this,e,[].concat(r)),"state",m(m({},c.c.initialState),{},{id:"".concat(Date.now(),"-").concat(Math.random()),value:void 0})),k(t,"methods",{}),k(t,"inp",void 0),k(t,"shouldValidate",!0),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(e,t),n=e,r=[{key:"componentDidMount",value:function(){this.props.checkExistenceOnRender&&this.props.value&&this.validate(this.props.value)}},{key:"select",value:function(){this.inp&&this.inp.select()}},{key:"validateExistence",value:function(t,e){return{valid:[null,void 0].includes(t)||void 0!==e,message:this.props.invalidOptionMessage&&this.props.invalidOptionMessage(t)||"We ran into technical issue, value ".concat(t," is not valid, please contact support")}}},{key:"validate",value:function(t,e){var n=this,r=null!=this.props.uid?this.props.uid:function(t){return t},o=this.props.groupedOptions?s.l.findGroupedValue(t,this.props.groupedOptions,void 0,r):s.l.findValue(t,this.props.options||[],void 0,r),i=o?Array.isArray(o)&&o||o.value:t,a=this.props.checkExistence?[].concat(f(this.props.validators),[function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return n.validateExistence.apply(n,[t].concat(r))}]):this.props.validators;return Promise.all(a.map(function(t){return t(i,e)})).then(function(t){return new Promise(function(e){var r=t.filter(function(t){return!(t.warning||t.pending||void 0===t.valid)}),o=t.some(function(t){return t.pending}),i=r.length&&r.every(function(t){return!0===t.valid})||!1;n.setState({valid:i,errors:r.filter(function(t){return!1===t.valid}).map(function(t){return{message:t.message,id:t.messageId||"".concat(Math.random(),"-").concat(Date.now(),"-err")}}),messages:t.filter(function(t){return!0===t.warning&&t.message}).map(function(t){return{message:t.message,id:t.messageId||"".concat(Math.random(),"-").concat(Date.now(),"-msg")}}),validating:i&&o,validated:!(i&&o)},function(){return e(r)})})})}},{key:"render",value:function(){var t,e=this;if(this.props.customLabel)t=this.props.customLabel;else if(this.props.label){var n=this.props.tooltip&&I18n.translate(this.props.tooltip);t=d("label",{className:"control-label",htmlFor:this.props.id||this.state.id},void 0,I18n.translate(this.props.label),!!n&&d(a.$,{icon:"fa fa-info-circle space-left",tooltip:n}))}return this.renderWithValidation(l.createElement(s.l,{id:this.props.id||this.state.id,key:"input",value:this.props.value,inputValue:this.props.inputValue,options:this.props.options,groupedOptions:this.props.groupedOptions,placeholder:this.props.placeholder||I18
1n.translate("select"),customSearchPlaceholder:this.props.customSearchPlaceholder,isLoading:this.props.isLoading,disabled:this.props.disabled,labelKey:this.props.labelKey,optionLabelFormatter:this.props.optionLabelFormatter,onInputValueChange:this.props.onInputValueChange,noDeselect:this.props.noDeselect,uid:this.props.uid,ref:(0,u._s)(this.methods,2,function(t){e.inp=t}),autoFocus:this.props.autoFocus,defaultOpen:this.props.defaultOpen,onChange:(0,u._s)(this.methods,1,this.handleChange.bind(this)),onBlur:this.props.onBlur}),this.props.inputWrapper,this.props.labelWrapper(t))}}],r&&y(n.prototype,r),o&&y(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c.c);k(j,"propTypes",{id:i().string,label:i().string,labelKey:i().string,placeholder:i().string,customSearchPlaceholder:i().string,customLabel:i().element,tooltip:i().string,disabled:i().bool,isLoading:i().bool,optionLabelFormatter:i().func,autoFocus:i().bool,defaultOpen:i().bool,validators:i().arrayOf(i().func),value:i().any,inputValue:i().string,noDeselect:i().bool,checkExistence:i().bool,checkExistenceOnRender:i().bool,groupedOptions:i().arrayOf(i().shape({label:i().any,options:i().arrayOf(i().shape({label:i().any,value:i().any}))})),options:i().arrayOf(i().shape({label:i().any,value:i().any})),onChange:i().func.isRequired,onBlur:i().func,uid:i().func,onInputValueChange:i().func,invalidOptionMessage:i().func}),k(j,"defaultProps",m(m({},c.c.defaultProps),{},{checkExistence:!0,checkExistenceOnRender:!1,noDeselect:!1,validators:[],inputWrapper:function(t){return t},labelWrapper:function(t){return t}}))},66945(t,e,n){var r;function o(t,e,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=t&&t.defaultProps,a=arguments.length-3;if(e||0===a||(e={children:void 0}),1===a)e.children=o;else if(a>1){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+3];e.children=s}if(e&&i)for(var c in i)void 0===e[c]&&(e[c]=i[c]);else e||(e=i||{});return{$$typeof:r,type:t,key:void 0===n?null:""+n,ref:null,props:e,_owner:null}}function i(t){var e=t.className;return o("div",{className:void 0===e?"col-sm-4":e,style:t.style},void 0,t.children)}n.d(e,{P:()=>i})},89420(t,e,n){n.d(e,{U:()=>v});var r,o=n(96540),i=n(91184);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=t&&t.defaultProps,a=arguments.length-3;if(e||0===a||(e={children:void 0}),1===a)e.children=o;else if(a>1){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+3];e.children=s}if(e&&i)for(var c in i)void 0===e[c]&&(e[c]=i[c]);else e||(e=i||{});return{$$typeof:r,type:t,key:void 0===n?null:""+n,ref:null,props:e,_owner:null}}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function l(t,e,n){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t,e=o.Children.toArray(this.props.children);if(this.props.customLabel)t=this.props.customLabel;else if(this.props.label){var n=I18n.translate(this.props.tooltip);t=s("label",{htmlFor:this.props.id,className:"control-label"},void 0,I18n.translate(this.props.label),!!n&&s(i.$,{icon:"fa fa-info-circle space-left",tooltip:n}))}return s("div",{},void 0,t,s("div",{className:"row"},void 0,s("div",{className:"col-sm-7"},void 0,e[0]),s("div",{className:"col-sm-5"},void 0,e[1])))}}])&&u(n.prototype,r),a&&u(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}
1(o.PureComponent)},57753(t,e,n){n.d(e,{R:()=>w});var r,o=n(5556),i=n.n(o),a=n(13918),s=n(40518);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=t&&t.defaultProps,a=arguments.length-3;if(e||0===a||(e={children:void 0}),1===a)e.children=o;else if(a>1){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+3];e.children=s}if(e&&i)for(var c in i)void 0===e[c]&&(e[c]=i[c]);else e||(e=i||{});return{$$typeof:r,type:t,key:void 0===n?null:""+n,ref:null,props:e,_owner:null}}function l(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}(t)||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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach(function(e){g(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,O(r.key),r)}}function h(t,e,n){return e=y(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,m()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(m=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function g(t,e,n){return(e=O(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var w=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(e,t),n=e,(r=[{key:"getData",value:function(t){return t.reduce(function(t,e){return f(f({},t),{},g({},e.date,[].concat(l(t[e.date]||[]),[e])))},{})}},{key:"render",value:function(){var t=this.getData(this.props.entryValues),e=Object.keys(t);return c("div",{className:"col-sm-4 finance-table"},void 0,c("div",{},"work.edit.journalentries",I18n.translate("work.edit.journalentries"),c("hr",{})),c("div",{},void 0,c("div",{},void 0,e.map(function(e){return c("div",{style:{marginBottom:20}},e,c("div",{className:"finance-table__head-date"},void 0,e),t[e].map(function(t,e){return c("div",{className:"row"},e,c("div",{className:"col-xs-3"},void 0,t.accountNumber),c("div",{className:"col-xs-5"},void 0,t.accountName),c("div",{className:"col-xs-4 text-right"},void 0,t.amount))}))}),!e.length&&c("div",{className:"text-center"},void 0,I18n.translate("work.edit.journalentries.empty")))))}}])&&v(n.prototype,r),o&&v(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.b);
1g(w,"propTypes",{entryValues:i().arrayOf(i().instanceOf(s.H))})},24725(t,e,n){n.r(e),n.d(e,{PaymentTransactionForm:()=>V});var r,o=n(88482),i=n.n(o),a=n(79358),s=n(13918),u=n(91184),c=n(89755),l=n(74218),p=n(1477),d=n(48127),f=n(62288),v=n(48700),h=n(3373),m=n(199),y=n(35689),b=n(54739),g=n(45215),O=n(25799),w=n(66945),k=n(89420),S=n(57753),j=n(96540),P=n(95093);function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}function I(t,e,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=t&&t.defaultProps,a=arguments.length-3;if(e||0===a||(e={children:void 0}),1===a)e.children=o;else if(a>1){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+3];e.children=s}if(e&&i)for(var c in i)void 0===e[c]&&(e[c]=i[c]);else e||(e=i||{});return{$$typeof:r,type:t,key:void 0===n?null:""+n,ref:null,props:e,_owner:null}}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,T(r.key),r)}}function R(t,e,n){return e=_(e),function(t,e){if(e&&("object"==A(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,X()?Reflect.construct(e,n||[],_(t).constructor):e.apply(t,n))}function X(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(X=function(){return!!t})()}function E(t,e,n,r){var o=C(_(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof o?function(t){return o.apply(n,t)}:o}function C(){return C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},C.apply(null,arguments)}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}function N(t,e){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},N(t,e)}function x(t,e,n){return(e=T(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t){var e=function(t,e){if("object"!=A(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==A(e)?e:e+""}var V=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),x(n=R(this,e,[t]),"state",{transactiondate:"",invoiceid:"",initialInvoiceId:"",currency:"",amount:"",cashamount:"",cashaccount:"",actualcash:!1,customerXid:null,invoiceTo:null,amountExclVat:null,amountInclVat:null,lookupCurrency:null,lookupBookkeepingCurrency:null,lookupExchangeRate:null,lookupBookkeepingAmountWhenOtherCurrency:null,settlesOtherAmount:!1,forceSettlesOtherAmount:!1}),x(n,"validators",{}),x(n,"methods",{}),x(n,"inputRefs",{}),x(n,"requestHelper",new v.g),n.toggleSettlesOtherAmount=n.toggleSettlesOtherAmount.bind(n),n.validators=n.getValidators(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e)}(e,t),n=e,r=[{key:"onLanguageChange",value:function(){E(e,"onLanguageChange",this,3)([]),this.validators=this.getValidators()}},{key:"componentDidMount",value:function(){var t=this;E(e,"componentDidMount",this,3)([]);
1var n=this.props.transaction,r=n.transactionDetails,o=n.debitorXid,i=r&&r.transactiondate||"",a=r&&r.invoiceid||"",s=this.props.options.isFromBank?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=String(t).match(/[0-9]+/g);return e?e[0]:t}(a):a,u=r&&r.amount||"",c=r&&r.cashamount||"";this.setState({initialDate:(0,h.HH)((this.props.fiscalYears.find(function(e){return e.fiscalYearIdentifier===t.props.currentlySelectedYear})||{fromDate:i}).fromDate),transactiondate:i,initialInvoiceId:r&&r.initialInvoiceId||a,invoiceid:s,amount:u,currency:this.props.defaultCurrency,cashamount:c,cashaccount:r&&r.cashaccount||this.props.bankAccounts.length&&this.props.bankAccounts[0].value||"",actualcash:r&&(0,h.PK)(r.actualcash),customerXid:o,settlesOtherAmount:u!==c}),s&&this.handleInvoiceChange(s,this.props.options.isFromBank)}},{key:"componentDidUpdate",value:function(t){var e=this;(t.fiscalYears!==this.props.fiscalYears||t.currentlySelectedYear!==this.props.currentlySelectedYear&&!this.state.transactiondate)&&this.setState({initialDate:(0,h.HH)((this.props.fiscalYears.find(function(t){return t.fiscalYearIdentifier===e.props.currentlySelectedYear})||{fromDate:""}).fromDate)})}},{key:"componentWillUnmount",value:function(){E(e,"componentWillUnmount",this,3)([]),this.requestHelper.abortAll()}},{key:"getData",value:function(){var t=new l.A(this.props.transaction);return t.debitorXid=this.state.customerXid,t.transactionDetails=new c.y({actualcash:String(this.state.actualcash),transactiondate:this.state.transactiondate,invoiceid:this.state.invoiceid,amount:this.state.settlesOtherAmount?this.state.amount:this.state.lookupBookkeepingAmountWhenOtherCurrency||this.state.cashamount,currency:this.state.currency,cashaccount:this.state.cashaccount,cashamount:this.state.cashamount}),Promise.resolve(t)}},{key:"validate",value:function(){var t=[];return this.inputRefs[1]&&t.push(this.inputRefs[1].validate(this.state.transactiondate)),this.inputRefs[3]&&t.push(this.inputRefs[3].validate(this.state.invoiceid)),this.state.settlesOtherAmount&&this.inputRefs[5]&&t.push(this.inputRefs[5].validate(this.state.amount)),!this.state.actualcash&&this.inputRefs[11]&&t.pu
1sh(this.inputRefs[11].validate(this.state.cashaccount)),this.inputRefs[9]&&t.push(this.inputRefs[9].validate(this.state.cashamount)),this.inputRefs[13]&&t.push(this.inputRefs[13].validate(this.state.customerXid)),Promise.all(t).then(function(t){return t.every(function(t){return Array.isArray(t)&&t.every(function(t){return t&&t.valid})})})}},{key:"getValidators",value:function(){var t=this;return{transactiondate:[(0,p.A)({required:!0,mustBeOpen:!0},function(){return t.props.fiscalYears})],invoiceid:[function(t){return(0,f.A)().validate({value:t,options:{required:!0,forbidNegative:!0,forbidDecimals:!0}})}],amount:[function(t){return(0,f.A)().validate({value:t,options:{required:!0,forbidNegative:!0,stringLength:!0}})}],cashaccount:this.state.actualcash?[]:[d.A],cashamount:[function(t){return(0,f.A)().validate({value:t,options:{required:!0,forbidNegative:!0,stringLength:!0}})}],customer:[]}}},{key:"handleInvoiceChange",value:function(t,e){var n=this;this.setState({invoiceid:t}),this.requestHelper.abortAll(),this.requestHelper.registerRequest((0,a.qP)(t,this.props.companySelectionXid)).then(function(t){return n.setState({invoiceTo:t.body.invoiceTo,customerXid:!1!==e?t.body.customerXid:n.state.customerXid,amountExclVat:t.body.amountExclVat,amountInclVat:t.body.amountInclVat,lookupCurrency:t.body.currency,lookupBookkeepingCurrency:t.body.bookkeepingCurrency,lookupExchangeRate:t.body.exchangeRate,lookupBookkeepingAmountWhenOtherCurrency:t.body.bookkeepingAmountWhenOtherCurrency,settlesOtherAmount:n.state.settlesOtherAmount||t.body.currency!==t.body.bookkeepingCurrency,amount:t.body.bookkeepingAmountWhenOtherCurrency&&!n.props.modeEdit?t.body.bookkeepingAmountWhenOtherCurrency:n.state.amount})}).catch(function(){return n.setState({invoiceTo:null,amountExclVat:null,amountInclVat:null,lookupCurrency:null,lookupBookkeepingCurrency:null,lookupExchangeRate:null,lookupBookkeepingAmountWhenOtherCurrency:null})}).then(function(){var t=n.inputRefs[13];t&&"function"==typeof t.reValidate&&t.reValidate()})}},{key:"toggleSettlesOtherAmount",value:function(){var t=this.state.settlesOtherAmount?this.state.cashamount:this.state.amount;this.setState({amount:t,settlesOtherAmount:!this.state.settlesOtherAmount})}},{key:"render",value:function(){var t=this,e=this.state.lookupBookkeepingAmountWhenOtherCurrency?this.state.lookupCurrency:"";return I("div",{className:"row",id:this.props.transaction.uuid||"_new"},void 0,I(w.P,{},void 0,j.createElement(y.$,{key:"transactiondate",label:"work.edit.paymentdate",tooltip:"work.edit.paymentdate.balloon",ref:(0,h.qP)(this.methods,this.inputRefs,1),disabled:this.props.disabled,value:this.state.transactiondate,validators:this.validators.transactiondate,initialVisibleMonth:this.state.initialDate,onChange:(0,h._s)(this.methods,2,function(e,n){return t.setState({transactiondate:e,initialDate:(0,h.HH)(P(n&&e||(t.props.fiscalYears.find(function(e){return e.fiscalYearIdentifier===t.props.currentlySelectedYear})||{fromDate:""}).fromDate,m.D2))})}),autoFocus:!this.props.modeEdit}),I("div",{className:"row"},void 0,I("div",{className:"col col-sm-5"},void 0,j.createElement(b.x,{key:"invoiceid",label:"work.edit.invoiceid",tooltip:"work.edit.invoiceid.balloon",ref:(0,h.qP)(this.methods,this.inputRefs,3),value:this.state.invoiceid,validators:this.validators.invoiceid,disabled:this.props.disabled,onChange:(0,h._s)(this.methods,4,function(e){return t.handleInvoiceChange(e)})})),this.props.options.isFromBank&&I("div",{className:"col col-sm-7"},void 0,I(b.x,{label:"work.edit.invoicelookup.original",tooltip:"work.edit.invoicelookup.original.balloon",value:this.state.initialInvoiceId,disabled:!0},"invoiceid-from-bank"))),this.state.invoiceid&&(this.state.invoiceTo&&I(j.Fragment,{},void 0,I("p",{},void 0,I18n.translate("work.edit.invoicelookup.invoiceto",this.state.invoiceTo)),I("p",{},void 0,I18n.translate("work.edit.invoicelookup.exclvat",this.state.amountExclVat)," ",e),I("p",{},void 0,I18n.translate("work.edit.invoicelookup.inclvat",this.state.amountInclVat)," ",e),this.state.lookupBookkeepingAmountWhenOtherCurrency&&I("p",{},void 0,I18n.translate("work.edit.invoicelookup.bookkeeping",this.state.lookupExchangeRate,this.state.lookupBookkeepingAmou
1ntWhenOtherCurrency,this.state.lookupBookkeepingCurrency)))||I("p",{},void 0,I18n.translate("work.edit.invoicelookup.notfound",this.state.invoiceid)))||null,this.props.customers.length>0&&j.createElement(O.H,{key:"customer",ref:(0,h.qP)(this.methods,this.inputRefs,13),label:"debitor",tooltip:"debitor.balloon",value:this.state.customerXid,validators:this.validators.customer,options:this.props.customers,disabled:this.props.disabled,onChange:(0,h._s)(this.methods,14,function(e){return t.setState({customerXid:e})})})),I(w.P,{},void 0,I(k.U,{label:"work.edit.invoicepaidcashamount",tooltip:"work.edit.invoicepaidcashamount.balloon"},void 0,j.createElement(b.x,{key:"cashamount",value:this.state.cashamount,ref:(0,h.qP)(this.methods,this.inputRefs,9),validators:this.validators.cashamount,disabled:this.props.disabled,onChange:(0,h._s)(this.methods,10,function(e){var n=t.state.settlesOtherAmount?t.state.amount:e;t.setState({amount:n,cashamount:e})})}),!this.state.actualcash&&j.createElement(g.X,{key:"cashaccount",value:this.state.cashaccount,ref:(0,h.qP)(this.methods,this.inputRefs,11),options:this.props.bankAccounts,validators:this.validators.cashaccount,disabled:this.props.disabled,onChange:(0,h._s)(this.methods,12,function(e){return t.setState({cashaccount:e})})})),I(i(),{checked:this.state.settlesOtherAmount,disabled:this.props.disabled||this.state.settlesOtherAmount&&this.state.amount,onChange:(0,h._s)(this.methods,16,function(){return t.toggleSettlesOtherAmount()})},void 0,I18n.translate("work.edit.settlesotheramount"),I(u.$,{icon:"fa fa-info-circle space-left",tooltip:I18n.translate("work.edit.settlesotheramount.balloon")})),this.state.settlesOtherAmount&&I(k.U,{label:"work.edit.invoicepaidamountandcurrency",tooltip:"work.edit.invoicepaidamountandcurrency.balloon"},void 0,j.createElement(b.x,{key:"amount",ref:(0,h.qP)(this.methods,this.inputRefs,5),value:this.state.amount,validators:this.validators.amount,disabled:this.props.disabled,onChange:(0,h._s)(this.methods,6,function(e){t.setState({amount:e})})}),j.createElement(g.X,{key:"currency",value:this.state.currency,options:this.props.currencies,ref:(0,h.qP)(this.methods,this.inputRefs,7),disabled:!0})),I(i(),{checked:this.state.actualcash,disabled:this.props.disabled,onChange:(0,h._s)(this.methods,15,function(){return t.setState({actualcash:!t.state.actualcash})})},void 0,I18n.translate("work.edit.actualcash"),I(u.$,{icon:"fa fa-info-circle space-left",tooltip:I18n.translate("work.edit.actualcash.balloon")}))),this.props.showEntries&&this.props.modeEdit&&I(S.R,{entryValues:this.props.transaction.entryValues}))}}],r&&D(n.prototype,r),o&&D(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(s.b)},83331(t,e,n){n.d(e,{j:()=>f});var r=n(98879),o=n.n(r),i=n(28646);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||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 u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||c(t,e)||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 c(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function d(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==a(e)?e:e+""}i.registerLanguage(o(),!0);var f=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,r=[{key:"stringToNumber",value:function(t){var e=[",","0","0"],n=u(/^([^,]+)(,\d+)?$/.exec(t)||[],3),r=n[1],o=n[2],a=o?[].concat(s(e.map(function(t,e){return o[e]||t})),s(o.slice(3))).join(""):e.join(""),c="".concat(r).concat(a);return i(c).value()}},{key:"numberToString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i(t).format({thousandSeparated:!0,mantissa:e?0:2})}},{key:"sum",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce(function(e,n){return e.add(("string"==typeof n?t.stringToNumber(n):n)||0)},i(0)).value()}},{key:"numberToPercentage",value:function(t){return i(t).format({output:"percent",mantissa:2})}}],(n=null)&&p(e.prototype,n),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}()},1477(t,e,n){var r=n(199),o=n(45021),i=n(95093);const a=function(t,e,n,a){return function(s){var u=(0,o.A)(t)(s);if(!u.valid)return u;var c=i(s,r.D2);if(n&&n().isAfter(c)||a&&a().isBefore(c))return{valid:!1,message:I18n.translate("work.edit.validate.from.before.to")};var l=e().find(function(t){return c.isBetween(i(t.fromDate,r.D2),i(t.toDate,r.D2),null,"[]")});return l?{valid:!0!==t.mustBeOpen||!l.closed,message:I18n.translate("work.edit.validate.yearclosed")}:{valid:!1,message:I18n.translate("work.edit.validate.insideyears")}}};n.dn(a),n.d(e,["A",0,a])},45021(t,e,n){var r=n(199),o=n(48127),i=n(95093);const a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.required,n=void 0!==e&&e,a=t.min,s=t.max,u=t.format,c=void 0===u?r.D2:u,l=t.formatMessage,p=t.emptyMessage,d=t.checkFormat,f=void 0!==d&&d;return function(t){if(!(0,o.A)(t).valid)return n?{valid:!1,message:p||I18n.translate("work.edit.validate.missingdate")}:{valid:!0};if(f)return{valid:i(t,r.D2,!0).isValid(),message:I18n.translate("work.edit.validate.dateformat")};var e,u,d=i(t,c),v=d.parsingFlags(),h=[];(v.empty&&h.push({valid:!1,message:l||I18n.translate("work.edit.validate.dateformat")}),v.overflow>0&&h.push({valid:!1,message:I18n.translate("work.edit.validate.invali
1ddate")}),a)&&((e="function"==typeof a?i(a()):i(a,c)).isAfter(d)&&h.push({valid:!1,message:I18n.translate("work.edit.validate.date.min",e.format(c))}));s&&((u="function"==typeof s?i(s()):i(s,c)).isBefore(d)&&h.push({valid:!1,message:I18n.translate("work.edit.validate.date.max",u.format(c))}));return h.length?h[0]:{valid:!0}}};n.dn(a),n.d(e,["A",0,a])},62288(t,e,n){var r=n(91505),o=n(68388),i=n(44918),a=n(83331);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}const p=function(){var t={thousandsSeparator:".",decimalSeparator:","},e={enabled:!0,inclusive:!1,min:0,message:I18n.translate("work.edit.validate.numeric.negative")},n={enabled:!0,inclusive:!1,max:0,message:I18n.translate("work.edit.validate.numeric.positive")},s={enabled:!0,message:I18n.translate("work.edit.validate.numeric.missing")},c={enabled:!0,trim:!0,max:25,message:I18n.translate("work.edit.validate.numeric.strlength")};return{validate:function(p){var d=p.value,f=p.options,v=void 0===f?{}:f,h=v.forbidNegative,m=v.forbidPositive,y=v.forbidDecimals,b=v.max,g=void 0===b?1/0:b,O=v.maxMessage,w=v.min,k=void 0===w?-1/0:w,S=v.minMessage,j=v.required,P=v.stringLength,A=v.message,I=v.noZero,D=void 0!==I&&I,R=v.checkNaN,X=void 0!==R&&R,E=h&&("object"===l(h)&&u(u({},e),h)||e)||null,C=m&&("object"===l(m)&&u(u({},n),m)||n)||null,_=j&&("object"===l(j)&&u(u({},s),j)||s)||null,N=P&&("object"===l(P)&&u(u({},c),P)||c)||null,x=[],T=a.j.stringToNumber(d),V="string"==typeof g?a.j.stringToNumber(g):g,B="string"==typeof k?a.j.stringToNumber(k):k,F=u(u({},t),y?{decimalSeparator:""}:{}),M=(0,o.A)().validate({value:d,options:F}),L=(0,o.A)().validate({value:d,options:u(u({},F),{},{thousandsSeparator:""})});return x.push({valid:M.valid||L.valid,message:A||I18n.translate(y?"work.edit.validate.numeric.int":"work.edit.validate.numeric.format")}),isFinite(V)&&isFinite(B)&&(T>V||T<B)?x.push({valid:!1,message:I18n.translate("work.edit.validate.numeric.range",B,V)}):T>V?x.push({valid:!1,message:I18n.translate(O||"work.edit.validate.numeric.max",V)}):T<B&&x.push({valid:!1,message:I18n.translate(S||"work.edit.validate.numeric.min",B)}),_&&_.enabled&&x.push(u(u({},(0,r.A)().validate({value:d,options:_})),{},{message:_.message})),X&&x.push({valid:!isNaN(d),message:I18n.translate("work.edit.validate.numeric.int")}),D&&x.push({valid:0!==T,message:I18n.translate("work.edit.validate.numeric.noZero")}),E&&E.enabled&&x.push({valid:void 0===T||T>=0,message:E.message}),C&&C.enabled&&x.push({valid:void 0===T||T<=0,message:C.message}),N&&N.enabled&&x.push(u(u({},(0,i.A)().validate({value:String(d||""),options:N})),{},{message:N.message})),x.find(function(t){return!t.valid})||{valid:!0}}}};n.dn(p),n.d(e,["A",0,p])},68388(t,e,n){function r(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=Object.assign({},{decimalSeparator:".",thousandsSeparator:""},t.options),n="".concat(t.value);n.substr(0,1)===e.decimalSeparator?n="0".concat(e.decimalSeparator).concat(n.substr(1)):n.substr(0,2)==="-".concat(e.decimalSeparator)&&(n="-0".concat(e.decimalSeparator).concat(n.substr(2)));var r="."===e.decimalSeparator?"\\.":e.decimalSeparator,o="."===e.thousandsSeparator?"\\.":e.thousandsSeparator,i=new RegExp("^-?[0-9]{1,3}(".concat(o,"[0-9]{3})*(").concat(r,"[0-9]+)?$")),a=new RegExp(o,"g");if(!i.test(n))return{valid:!1};o&&(n=n.replace(a,"")),r&&(n=n.replace(r,"."));var s=parseFloat(n);return{valid:!isNaN(s)&&isFinite(s)}}}}n.d(e,{A:()=>r})}}]);

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.