1"use strict";(self.webpackChunkportfoliodesign=self.webpackChunkportfoliodesign||[]).push([[7181],{57181(t,e,n){n.r(e),n.d(e,{ManualForm:()=>G});var r,o=n(42845),i=n.n(o),a=n(37995),s=n.n(a),c=n(16093),u=n(69549),l=n(74218),d=n(53197),h=n(1477),f=n(48127),p=n(81248),m=n(83331),y=n(48700),v=n(3373),w=n(199),b=n(826),g=n(79082),C=n(21794),R=n(35689),A=n(54739),D=n(25799),O=n(66945),k=n(29113),j=n(75348),x=n(95093),S=n(96540);function E(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),c=0;c<a;c++)s[c]=arguments[c+3];e.children=s}if(e&&i)for(var u in i)void 0===e[u]&&(e[u]=i[u]);else e||(e=i||{});return{$$typeof:r,type:t,key:void 0===n?null:""+n,ref:null,props:e,_owner:null}}function N(t){return N="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},N(t)}function K(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 P(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?K(Object(n),!0).forEach(function(e){W(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function T(t){return function(t){if(Array.isArray(t))return t}(t)||F(t)||_(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 V(t){return function(t){if(Array.isArray(t))return I(t)}(t)||F(t)||_(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 _(t,e){if(t){if("string"==typeof t)return I(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)?I(t,e):void 0}}function F(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function I(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 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,B(r.key),r)}}function M(t,e,n){return e=X(e),function(t,e){if(e&&("object"==N(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,q()?Reflect.construct(e,n||[],X(t).constructor):e.apply(t,n))}function q(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(q=function(){return!!t})()}function H(){return H="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=X(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}},H.apply(null,arguments)}function X(t){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},X(t)}
1function L(t,e){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},L(t,e)}function W(t,e,n){return(e=B(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B(t){var e=function(t,e){if("object"!=N(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==N(e)?e:e+""}var G=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),W(n=M(this,e,[t]),"state",{rows:[],balance:0,transactiondate:"",initialDate:x(),description:"",minimumRowsError:"",withCurrency:!1,exchangeRates:{}}),W(n,"inputRefs",{}),W(n,"methods",{}),W(n,"rows",{}),W(n,"rowRefs",{}),W(n,"requestHelper",new y.g),n.validators=n.getValidators(),n.handleCreditorChange=function(t){return n.setState({creditor:t})},n.handleDebitorChange=function(t){return n.setState({debitor:t})},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&&L(t,e)}(e,t),n=e,r=[{key:"withVat",get:function(){var t=(0,w.AG)();return this.props.companyVatType&&this.props.companyVatType!==(0,w.Aq)()[0].value||this.state.rows.some(function(e){return e.vatType&&e.vatType!==t[0].value})}},{key:"onLanguageChange",value:function(){var t,n,r,o,i;(t=e,n="onLanguageChange",r=this,i=H(X(1&(o=3)?t.prototype:t),n,r),2&o&&"function"==typeof i?function(t){return i.apply(r,t)}:i)([]),this.validators=this.getValidators()}},{key:"getValidators",value:function(){var t=this,e=function(e){return(0,b.A)().validate({value:e,options:{required:t.props.withCurrency,decimalPlaces:2,forbidNegative:!1}})};return{date:[(0,h.A)({required:!0,mustBeOpen:!0},function(){return t.props.fiscalYears})],description:[f.A,function(t){return(0,p.A)().validate({value:t})}],vatType:[f.A],amount:[e],currencyAmount:[e]}}},{key:"componentDidMount",value:function(){var t=this,n="",r="",o=this.props.transaction.entryValues||[],i=!1;o.some(function(t){return t.currency&&"DKK"!==t.currency})&&(i=!0);var a=(0,w.AG)()[0].value;this.props.transaction.transactionDetails&&(n=this.props.transaction.transactionDetails&&this.props.transaction.transactionDetails.transactiondate||"",r=this.props.transaction.transactionDetails.description),this.setState({transactiondate:n,initialDate:(0,v.HH)((this.props.fiscalYears.find(function(e){return e.fiscalYearIdentifier===t.props.currentlySelectedYear})||{fromDate:n}).fromDate),description:r,debitor:this.props.transaction.debitorXid,creditor:this.props.transaction.creditorXid,withCurrency:i,rows:this.props.disabled?o.map(function(t,e){return{accountNumber:t.accountNumber,amount:t.amount,currency:t.currency?t.currency:"DKK",currencyAmount:t.currencyAmount&&t.currency&&"DKK"!==t.currency?t.currencyAmount:t.amount,conversionDirection:t.conversionDirection,vatType:t.vatType||a,uuid:"".concat(Date.now(),"-").concat(e)}}):[].concat(V(o.map(function(t,e){return{accountNumber:t.accountNumber,amount:t.amount,currency:t.currency?t.currency:"DKK",currencyAmount:t.currencyAmount&&t.currency&&"DKK"!==t.currency?t.currencyAmount:t.amount,conversionDirection:t.conversionDirection,vatType:t.vatType||a,uuid:"".concat(Date.now(),"-").concat(e)}})),[e.getEmptyRow()]),balance:e.calcBalance(o)}),this.state.withCurrency&&this.state.transactiondate&&this.getMissingExchangeRates(n,o)}},{key:"componentDidUpdate",value:function(t){var n=this;(t.fiscalYears!==this.props.fiscalYears||t.currentlySelectedYear!==this.props.currentlySelectedYear&&!this.state.transactiondate)&&this.setState({initialDate:(0,v.HH)((this.props.fiscalYears.find(function(t){return t.fiscalYearIdentifier===n.props.currentlySelectedYear})||{fromDate:""}).fromDate)}),this.state.withCurrency&&this.state.transactiondate&&this.getMissingExchangeRates(this.state.transactiondate,e.getCompletedRows(this.state.rows))}},{key:"validate",value:function(){var t=this,n={minimumRowsError:""},r=e.getCompletedRows(this.state.rows);return r.length<2&&(n.minimumRowsError="work.edit.validate.rows.min.two"),Promise.all([this.inputRefs[3].validate(this.state.description),this.inputRefs[1].validate(this.state.transactiondate)].concat(V(r.map(function(e){return t.rows[e.uuid]?t.rows[e.uuid].validate():Promise.resolve(!1)})))).then(function(e){var r=T(e),o=r[0],i=r[1],a=r.slice(2);return new Promise(function(e){t.setState(n,function(){e(o.every(function(t){return t.valid})&&i.every(function(t){return t.valid})&&a.every(function(t){return t})&&!Object.keys(n).some(function(t){return n[t]}))})})})}},{key:"getData",value:function(){var t=new l.A(this.props.transaction);return t.entryValues=e.getCompletedRows(this.state.rows),t.transactionDetail
1s=new u.i(this.state),t.transactionDetails.transactiondate=(0,v.l8)(this.state.transactiondate),t.creditorXid=this.state.creditor,t.debitorXid=this.state.debitor,Promise.resolve(t)}},{key:"updateRow",value:function(t,n){var r=this,o=e.getCompletedRows(this.state.rows.map(function(e){return e.uuid===t?P(P({},e),n):e}));Object.keys(this.rows).forEach(function(t){o.some(function(e){return e.uuid===t})||(delete r.rows[t],delete r.rowRefs[t])});var i=this.state.description;if(!i&&n.accountNumber){var a=(this.props.financeAccounts.find(function(t){return t.value===n.accountNumber})||{}).text||"",s=/^\d+\s-\s(.+)$/.exec(a);s&&(i=s[1])}return new Promise(function(t){return r.setState({rows:[].concat(V(o),[e.getEmptyRow()]),minimumRowsError:o.length>1?"":r.state.minimumRowsError,balance:e.calcBalance(o),description:i},t)}).then(function(){return r.inputRefs[3].validate(r.state.description)})}},{key:"getMissingExchangeRates",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];e.filter(function(t){return"DKK"!==t.currency}).filter(function(e){return!(!e.currency||n.state.exchangeRates[t]&&Object.keys(n.state.exchangeRates[t]).includes(e.currency))}).map(function(t){o.push(t.currency)}),Promise.all(o.map(function(e){return n.requestHelper.registerRequest((0,c.Ej)({lookupDate:t,currency:e})).then(function(t){return P(P({},t),{},{currency:e})})})).then(function(e){if(!(e.length<=0)){var o=P({},n.state.exchangeRates);e.forEach(function(e){o[t]||(o[t]={}),o[t][e.currency]=e.body}),n.setState({exchangeRates:o}),r||n.recalculateWithNewExchangeRate()}}).finally(function(){r&&n.recalculateWithNewExchangeRate(),n.revalidateAllRowControlledInputsWithAccount(),n.revalidateAllRowAmountFields()})}},{key:"handleAccountChange",value:function(t,e){var n=this.state.rows.find(function(e){return e.uuid===t});if(this.withVat){var r,o,i={accountNumber:e};this.props.groupedFinanceAccounts.some(function(t){return t.options.some(function(t){return t.value===e&&(r=t.vatType,o=t.suggestCurrency,!0)})}),void 0!==r&&(i.vatType=r||(0,w.AG)()[0].value),void 0!==o&&this.state.withCurrency&&!n.currencyAmount&&(i.currency=o,i.conversionDirection="TO_DKK"),this.updateRow(t,i)}else this.updateRow(t,{accountNumber:e})}},{key:"handleVatChange",value:function(t,e){this.updateRow(t,{vatType:e})}},{key:"recalculateWithNewExchangeRate",value:function(){var t=this,n=this.state.rows.map(function(e){if((e.currencyChanged||e.amountChanged||e.conversionDirectionChanged||e.dateChanged)&&(t.state.exchangeRates[t.state.transactiondate]&&t.state.exchangeRates[t.state.transactiondate][e.currency]||"DKK"===e.currency)){var n=t.recalculateRowAmounts(e);return P(P(P({},e),n),{},{currencyChanged:!1,amountChanged:!1,conversionDirectionChanged:!1,dateChanged:!1})}return e});this.setState({rows:n},function(){var n=e.calcBalance(e.getCompletedRows(t.state.rows));t.setState({balance:n})})}},{key:"recalculateRowAmounts",value:function(t){if(!this.state.withCurrency)return{};if(!t.currency&&!t.conversionDirection)return{amount:t.currencyAmount};var e=this.state,n=e.transactiondate,r=e.exchangeRates[n]||{},o=t.currency&&"object"==N(r[t.currency])&&r[t.currency].pricePrHundred;if(!o&&"DKK"!==t.currency)return{};var i={};return"DKK"===t.currency?(t.amount!==t.currencyAmount&&(i.amount=t.currencyAmount),i.conversionDirection=null):"TO_DKK"!==t.conversionDirection||isNaN(Number.parseFloat(t.currencyAmount))?"FROM_DKK"!==t.conversionDirection||isNaN(Number.parseFloat(t.amount))||(i.currencyAmount=(0,d.I)(t.amount,o)):i.amount=(0,d.M)(t.currencyAmount,o),i}},{key:"handleAmountChange",value:function(t,e){var n=this.state.rows.find(function(e){return e.uuid===t});if(n.amount!==e){var r={amount:e,amountChanged:!0};if(this.state.withCurrency&&"FROM_DKK"===n.conversionDirection){var o=P(P({},n),{},{amount:e}),i={};this.validators.amount[0](e).valid&&(i=this.recalculateRowAmounts(o)
1),r=P(P({},r),i)}this.updateRow(t,r)}}},{key:"handleCurrencyChange",value:function(t,e){var n=this,r=this.state.rows.find(function(e){return e.uuid===t});if(r.currency!==e){var o={currency:e,currencyChanged:!0};"DKK"===e?(o.conversionDirection=null,o.amount=r.currencyAmount):r.conversionDirection||(o.conversionDirection="TO_DKK");var i=P(P({},r),o),a=this.recalculateRowAmounts(i);o=P(P({},o),a),this.updateRow(t,o).then(function(){if(n.rows[t]&&n.rows[t].inputRefs){var e=n.rows[t].inputRefs[2],r=n.rows[t].inputRefs[10];e&&e.reValidate&&e.reValidate(),r&&r.reValidate&&r.reValidate()}})}}},{key:"handleCurrencyAmountChange",value:function(t,e){var n=this.state.rows.find(function(e){return e.uuid===t});if(n.currencyAmount!==e){var r={currencyAmount:e,amountChanged:!0},o=P(P({},n),r),i={};this.validators.currencyAmount[0](e).valid&&(i=this.recalculateRowAmounts(o)),r=P(P({},r),i),this.updateRow(t,r)}}},{key:"handleConversionDirectionChange",value:function(t,e){var n=this,r=this.state.rows.find(function(e){return e.uuid===t});if(r.conversionDirection!==e){var o={conversionDirection:e,conversionDirectionChanged:!0},i=P(P({},r),o),a=this.recalculateRowAmounts(i);o=P(P({},o),a),this.updateRow(t,o).then(function(){if(n.rows[t]&&n.rows[t].inputRefs){var e=n.rows[t].inputRefs[2],r=n.rows[t].inputRefs[10];e&&e.reValidate&&e.reValidate(),r&&r.reValidate&&r.reValidate()}})}}},{key:"handleEqualizeAmount",value:function(t){var e=this;if(0===this.state.balance)return Promise.resolve();var n=this.state.rows.find(function(e){return e.uuid===t}),r=n&&m.j.stringToNumber(n.amount)||0;return this.updateRow(t,{amount:m.j.numberToString(0-this.state.balance+r)}).then(function(){e.rows[n.uuid]&&e.rows[n.uuid].validate()})}},{key:"handleWithCurrencyChange",value:function(t){var e=t.target.checked,n=this.state.rows.map(function(t){return e&&!t.currency?P(P({},t),{},{currency:"DKK",currencyAmount:t.amount}):e?t:P(P({},t),{},{currency:"DKK",currencyAmount:t.amount,conversionDirection:null})});this.setState({withCurrency:e,rows:n})}},{key:"revalidateAllRowControlledInputsWithAccount",value:function(){Object.values(this.rows).forEach(function(t){t&&t.inputRefs&&t.props.accountNumber&&Object.values(t.inputRefs).forEach(function(t){t&&t.reValidate&&t instanceof A.x&&t.reValidate()})})}},{key:"revalidateAllRowAmountFields",value:function(){Object.values(this.rows).forEach(function(t){if(t&&t.inputRefs){var e=t.inputRefs[2],n=t.inputRefs[10];e&&e.reValidate&&e.reValidate(),n&&n.reValidate&&n.reValidate()}})}},{key:"handleDateChange",value:function(t){var e=this;this.setState({transactiondate:t,initialDate:(0,v.HH)(t,(this.props.fiscalYears.find(function(t){return t.fiscalYearIdentifier===e.props.currentlySelectedYear})||{fromDate:Date.now()}).fromDate)},function(){var n=e.state.rows.map(function(t){return t.currency?P(P({},t),{},{dateChanged:!0}):t});e.setState({rows:n}),e.revalidateAllRowAmountFields(),e.getMissingExchangeRates(t,e.state.rows,!0)})}},{key:"render",value:function(){var t=this,e=(0,v._s)(this.methods,8,this.handleEqualizeAmount.bind(this)),n=(0,v._s)(this.methods,6,this.handleAmountChange.bind(this)),r=(0,v._s)(this.methods,7,this.handleAccountChange.bind(this)),o=(0,v._s)(this.methods,10,this.handleVatChange.bind(this)),a=(0,v._s)(this.methods,11,this.handleCurrencyAmountChange.bind(this)),c=(0,v._s)(this.methods,9,this.handleCurrencyChange.bind(this)),u=(0,v._s)(this.methods,12,this.handleConversionDirectionChange.bind(this)),l=this.withVat,d=this.props.currencies.map(function(t){return P(P({},t),{},{label:t.text})});return E("div",{className:"row",style:{marginLeft:"0px"}},void 0,E("div",{style:{display:"flex",flexDirection:"row",columnGap:"10px"}},void 0,S.createElement(R.$,{key:"date",disabled:this.props.disabled,label:"work.edit.entrydate",tooltip:"work.edit.entrydate.balloon",ref:(0,v.qP)(this.methods,this.inputRefs,1),value:this.state.transactiondate,initialVisibleMonth:this.state.initialDate,validators:this.validators.date,onChange:(0,v._s)(this.methods,2,this.handleDateChange.bind(this)),autoFocus:!this.props.modeEdit}),E("div",{style:{maxWidth:"280px",flex:1}},void 0,S.createElement(A.x,{key:"descr",disabled:this.props.disabled,label:"work.edit.description",tooltip:"work.edit.description.balloon",value:this.state.description,ref:(0,v.qP)(this.methods,this.inputRefs,3),validators:this.validators.description,onChange:(0,v._s)(this.methods,4,function(e){return t.setState({de
1scription:e})})})),E(C.A,{id:"withCurrency",label:"work.edit.usecurrency",tooltip:"work.edit.usecurrency.balloon",checked:this.state.withCurrency,onChange:this.handleWithCurrencyChange.bind(this)},"withCurrency")),E(O.P,{className:this.state.withCurrency?"col-sm-12":l?"col-sm-9":"col-sm-8",style:{paddingLeft:"0px",maxWidth:this.state.withCurrency||l?void 0:"700px"}},void 0,E("div",{className:"manual-form-rows",tabIndex:"-1"},void 0,this.state.rows.map(function(i,s){return S.createElement(j.T,{key:i.uuid,withLabels:!s,ref:(0,v._s)(t.rowRefs,i.uuid,function(e){t.rows[i.uuid]=e}),withVat:l,disabled:t.props.disabled,uuid:i.uuid,account:i.accountNumber,amount:i.amount,vatType:i.vatType,groupedOptions:t.props.groupedFinanceAccounts,equalizeAmount:e,onVatChange:o,onAmountChange:n,onAccountChange:r,withCurrency:t.state.withCurrency,onCurrencyChange:c,onCurrencyAmountChange:a,onConversionDirectionChange:u,currency:i.currency,currencyAmount:i.currencyAmount,conversionDirection:i.conversionDirection,currencyList:d,exchangeRate:t.state.exchangeRates&&t.state.exchangeRates[t.state.transactiondate]&&t.state.exchangeRates[t.state.transactiondate][i.currency]||void 0,transactiondate:t.state.transactiondate,isEmpty:s===t.state.rows.length-1&&!i.accountNumber,balance:t.state.balance})}),this.state.minimumRowsError?E("span",{className:"text-danger"},void 0,I18n.translate(this.state.minimumRowsError)):null,this.props.groupedFinanceAccounts.some(function(e){return e.options.some(function(e){return e.showCreditorChoice&&t.state.rows.some(function(t){return t.accountNumber===e.value})})})&&E(s(),{},void 0,E(i(),{sm:6},void 0,E(D.H,{label:"creditor",tooltip:"creditor.balloon",value:this.state.creditor,onChange:this.handleCreditorChange,options:this.props.suppliers})),E(i(),{sm:6,style:{marginTop:27}},void 0,this.state.creditor&&E(g.A,{companyXid:this.props.companySelectionXid,customerXid:this.state.creditor,type:"supplier",customerName:(this.props.suppliers.find(function(e){return e.value===t.state.creditor})||{}).label,hideLastAmount:!0}))),this.props.groupedFinanceAccounts.some(function(e){return e.options.some(function(e){return e.showDebitorChoice&&t.state.rows.some(function(t){return t.accountNumber===e.value})})})&&E(s(),{},void 0,E(i(),{sm:6},void 0,E(D.H,{label:"debitor",tooltip:"debitor.balloon",value:this.state.debitor,onChange:this.handleDebitorChange,options:this.props.customers,disabled:this.props.disabled})),E(i(),{sm:6,style:{marginTop:27}},void 0,this.state.creditor&&E(g.A,{companyXid:this.props.companySelectionXid,customerXid:this.state.debitor,customerName:(this.props.customers.find(function(e){return e.value===t.state.debitor})||{}).label,hideLastAmount:!0})))),E("div",{className:"row manual-form-balance-row"},void 0,E("div",{className:"alert alert-info",style:{marginLeft:"10px",marginRight:"14px",paddingRight:this.state.withCurrency?"100px":"16px"}},void 0,E("div",{className:"row"},void 0,E("label",{className:"col-sm-2 my-0"},void 0,I18n.translate("balance")),E("span",{className:"col-sm-10 text-right"},void 0,m.j.numberToString(this.state.balance)))))))}}],o=[{key:"getEmptyRow",value:function(){return{uuid:"".concat(Date.now(),"-").concat(Math.random()),accountNumber:"",amount:"",vatType:(0,w.AG)()[0].value}}},{key:"calcBalance",value:function(t){return m.j.sum.apply(m.j,V(t.map(function(t){return t.amount||0})))}},{key:"getCompletedRows",value:function(t){return t.filter(function(t){return t.accountNumber||t.amount&&0!==m.j.stringToNumber(t.amount)})}}],r&&Y(n.prototype,r),o&&Y(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(k.DefaultTransactionForm)}}]);
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.