PageSourceSearch

https://dotb.io/assets/accounting-panel.js

js dotb.io collected 2026-09-24 14:03:09 UTC 74,389 bytes, 10 lines download raw bytes

1import{j as e,g as Qe,m as Te,a1 as C,B as _e,C as Le,a2 as Je,Y as Ve,Z as Ye,a3 as Xe,a4 as et,a5 as Ue,a6 as tt,a7 as st,a8 as at,A as it,a9 as nt,aa as rt,ab as ot,ac as lt,a0 as ct,s as dt,r as ye}from"./account-selector.js";import{T as Ee,a as De,b as K,c as G,d as Be,e as f,P as qe,f as We,g as $e,S as Ne,h as Ie,i as Pe,j as Me,k as ke,F as ut,l as pt,m as mt,n as ht,o as gt,p as ft,q as yt,L as Ae,r as ve,s as xe,t as be,u as Re,v as vt,w as xt,x as bt,y as wt}from"./accounting-orders-table.js";const jt=()=>e.jsx("div",{className:"mx-auto w-full max-w-4xl",children:e.jsx("div",{className:"flex space-x-2 items-center justify-center",children:e.jsx("svg",{className:"animate-spin text-primary",width:40,height:40,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})})});var ze={exports:{}};var Vt=ze.exports,He;function kt(){return He||(He=1,(function(d,y){((w,l)=>{d.exports=l()})(Vt,function w(){var l=typeof self<"u"?self:typeof window<"u"?window:l!==void 0?l:{},v,m=!l.document&&!!l.postMessage,u=l.IS_PAPA_WORKER||!1,n={},I=0,i={};function r(s){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(t){var a=ae(t);a.chunkSize=parseInt(a.chunkSize),t.step||t.chunk||(a.chunkSize=null),this._handle=new me(a),(this._handle.streamer=this)._config=a}.call(this,s),this.parseChunk=function(t,a){var o=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<o){let j=this._config.newline;j||(c=this._config.quoteChar||'"',j=this._handle.guessLineEndings(t,c)),t=[...t.split(j).slice(o)].join(j)}this.isFirstChunk&&R(this._config.beforeFirstChunk)&&(c=this._config.beforeFirstChunk(t))!==void 0&&(t=c),this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+t,c=(this._partialLine="",this._handle.parse(o,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(t=c.meta.cursor,o=(this._finished||(this._partialLine=o.substring(t-this._baseIndex),this._baseIndex=t),c&&c.data&&(this._rowCount+=c.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),u)l.postMessage({results:c,workerId:i.WORKER_ID,finished:o});else if(R(this._config.chunk)&&!a){if(this._config.chunk(c,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=c=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(c.data),this._completeResults.errors=this._completeResults.errors.concat(c.errors),this._completeResults.meta=c.meta),this._completed||!o||!R(this._config.complete)||c&&c.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),o||c&&c.meta.paused||this._nextChunk(),c}this._halted=!0},this._sendError=function(t){R(this._config.error)?this._config.error(t):u&&this._config.error&&l.postMessage({workerId:i.WORKER_ID,error:t,finished:!1})}}function q(s){var t;(s=s||{}).chunkSize||(s.chunkSize=i.RemoteChunkSize),r.call(this,s),this._nextChunk=m?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(a){this._input=a,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),m||(t.onload=Q(this._chunkLoaded,this),t.onerror=Q(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!m),this._config.downloadRequestHeaders){var a,o=this._config.downloadRequestHeaders;for(a in o)t.setRequestHeader(a,o[a])}var c;this._config.chunkSize&&(c=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+c));try{t.send(this._config.downloadRequestBody)}catch(j){this._chunkError(j.message)}m&&t.status===0&&this._chunkError()}},this._chunkLoaded=function(){t.readyState===4&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(a=>(a=a.getResponseHeader("Content-Range"))!==null?parseInt(a.substring(a.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(a){a=t.statusText||a,this._sendError(new Error(a))}}function se(s){(s=s||{}).chunkSize||(s.chunkSize=i.LocalChunkSize),r.call(this,s);var t,a,o=typeof FileReader<"u";this.stream=function(c){this._input=c,a=c.slice||c.webkitSlice||c.mozSlice,o?((t=new FileReader).onload=Q(this._chunkLoaded,this),t.onerror=Q(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var c=this._input,j=(this._config.chunkSize&&(j=Math.min(this._start+this._config.chunkSize,this._input.size),c=a.call(c,this._start,j)),t.readAsText(c,this._config.encoding));o||this._chunkLoaded({target:{result:j}})},this._chunkLoaded=function(c){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(c.target.result)},this._chunkError=function(){this._sendError(t.error)}}function oe(s){var t;r.call(this,s=s||{}),this.stream=function(a){return t=a,this._nextChunk()},this._nextChunk=function(){var a,o;if(!this._finished)return a=this._config.chunkSize,t=a?(o=t.substring(0,a),t.substring(a)):(o=t,""),this._finished=!t,this.parseChunk(o)}}function pe(s){r.call(this,s=s||{});var t=[],a=!0,o=!1;this.pause=function(){r.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){r.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(c){this._input=c,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){o&&t.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):a=!0},this._streamData=Q(function(c){try{t.push(typeof c=="string"?c:c.toString(this._config.encoding)),a&&(a=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(j){this._streamError(j)}},this),this._streamError=Q(function(c){this._streamCleanUp(),this._sendError(c)},this),this._streamEnd=Q(function(){this._streamCleanUp(),o=!0,this._streamData("")},this),this._streamCleanUp=Q(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function me(s){var t,a,o,c,j=Math.pow(2,53),O=-j,J=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Y=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,V=this,M=0,h=0,$=!1,x=!1,k=[],p={data:[],errors:[],meta:{}};function F(A){return s.skipEmptyLines==="greedy"?A.join("").trim()==="":A.length===1&&A[0].length===0}function B(){if(p&&o&&(X("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+i.DefaultDelimiter+"'"),o=!1),s.skipEmptyLines&&(p.data=p.data.filter(function(g){return!F(g)})),W()){let g=function(D,L){R(s.transformHeader)&&(D=s.transformHeader(D,L)),k.push(D)};if(p)if(Array.isArray(p.data[0])){for(var A=0;W()&&A<p.data.length;A++)p.data[A].forEach(g);p.data.splice(0,1)}else p.data.forEach(g)}function z(g,D){for(var L=s.header?{}:[],S=0;S<g.length;S++){var N=S,T=g[S],T=((te,b)=>(P=>(s.dynamicTypingFunction&&s.dynamicTyping[P]===void 0&&(s.dynamicTyping[P]=s.dynamicTypingFunction(P)),(s.dynamicTyping[P]||s.dynamicTyping)===!0))(te)?b==="true"||b==="TRUE"||b!=="false"&&b!=="FALSE"&&((P=>{if(J.test(P)&&(P=parseFloat(P),O<P&&P<j))return 1})(b)?parseFloat(b):Y.test(b)?new Date(b):b===""?null:b):b)(N=s.header?S>=k.length?"__parsed_extra":k[S]:N,T=s.transform?s.transform(T,N):T);N==="__parsed_extra"?(L[N]=L[N]||[],L[N].push(T)):L[N]=T}return s.header&&(S>k.length?X("FieldMismatch","TooManyFields","Too many fields: expected "+k.length+" fields but parsed "+S,h+D):S<k.length&&X("FieldMismatch","TooFewFields","Too few fields: expected "+k.length+" fields but parsed "+S,h+D)),L}var E;p&&(s.header||s.dynamicTyping||s.transform)&&(E=1,!p.data.length||Array.isArray(p.data[0])?(p.data=p.data.map(z),E=p.data.length):p.data=z(p.data,0),s.header&&p.meta&&(p.meta.fields=k),h+=E)}function W(){return s.header&&k.length===0}function X(A,z,E,g){A={type:A,code:z,message:E},g!==void 0&&(A.row=g),p.errors.push(A)}R(s.step)&&(c=s.step,s.step=function(A){p=A,W()?B():(B(),p.data.length!==0&&(M+=A.data.length,s.preview&&M>s.preview?a.abort():(p.data=p.data[0],c(p,V))))}),this.parse=function(A,z,E){var g=s.quoteChar||'"',g=(s.newline||(s.newline=this.guessLineEndings(A,g)),o=!1,s.delimiter?R(s.delimiter)&&(s.delimiter=s.delimiter(A),p.meta.delimiter=s.delimiter):((g=((D,L,S,N,T)=>{var te,b,P,ce;T=T||[",","	","|",";",i.RECORD_SEP,i.UNIT_SEP];for(var ge=0;ge<T.length;ge++){for(var ie,we=T[ge],H=0,ne=0,U=0,Z=(P=void 0,new he({comments:N,delimiter:we,newline:L,preview:10}).parse(D)),le=0;le<Z.data.length;le++)S&&F(Z.data[le])?U++:(ie=Z.data[le].length,ne+=ie,P===void 0?P=ie:0<ie&&(H+=Math.abs(ie-P),P=ie));0<Z.data.length&&(ne/=Z.data.length-U),(b===void 0||H<=b)&&(ce===void 0||ce<ne)&&1.99<ne&&(b=H,te=we,ce=ne)}return{successful:!!(s.delimiter=te),bestDelimiter:te}})(A,s.newline,s.skipEmptyLines,s.comments,s.delimitersToGuess)).successful?s.delimiter=g.bestDelimiter:(o=!0,s.delimiter=i.DefaultDelimiter),p.meta.delimiter=s.delimiter),ae(s));return s.preview&&s.header&&g.preview++,t=A,a=new he(g),p=a.parse(t,z,E),B(),$?{meta:{paused:!0}}:p||{meta:{paused:!1}}},this.paused=function(){return $},this.pause=function(){$=!0,a.abort(),t=R(s.chunk)?"":t.substring(a.getCharIndex())},this.resume=function(){V.streamer._halted?($=!1,V.streamer.parseChunk(t,!0)):setTimeout(V.resume,3)},this.aborted=function(){return x},this.abort=function(){x=!0,a.abort(),p.meta.aborted=!0,R(s.complete)&&s.complete(p),t=""},this.guessLineEndings=function(D,g){D=D.substring(0,1048576);var g=new RegExp(ue(g)+"([^]*?)"+ue(g),"gm"),E=(D=D.replace(g,"")).split("\r"),g=D.split(`
2`),D=1<g.length&&g[0].length<E[0].length;if(E.length===1||D)return`
3`;for(var L=0,S=0;S<E.length;S++)E[S][0]===`
4`&&L++;return L>=E.length/2?`\r
5`:"\r"}}function ue(s){return s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function he(s){var t=(s=s||{}).delimiter,a=s.newline,o=s.comments,c=s.step,j=s.preview,O=s.fastMode,J=null,Y=!1,V=s.quoteChar==null?'"':s.quoteChar,M=V;if(s.escapeChar!==void 0&&(M=s.escapeChar),(typeof t!="string"||-1<i.BAD_DELIMITERS.indexOf(t))&&(t=","),o===t)throw new Error("Comment character same as delimiter");o===!0?o="#":(typeof o!="string"||-1<i.BAD_DELIMITERS.indexOf(o))&&(o=!1),a!==`
6`&&a!=="\r"&&a!==`\r
7`&&(a=`
8`);var h=0,$=!1;this.parse=function(x,k,p){if(typeof x!="string")throw new Error("Input must be a string");var F=x.length,B=t.length,W=a.length,X=o.length,A=R(c),z=[],E=[],g=[],D=h=0;if(!x)return H();if(O||O!==!1&&x.indexOf(V)===-1){for(var L=x.split(a),S=0;S<L.length;S++){if(g=L[S],h+=g.length,S!==L.length-1)h+=a.length;else if(p)return H();if(!o||g.substring(0,X)!==o){if(A){if(z=[],ce(g.split(t)),ne(),$)return H()}else ce(g.split(t));if(j&&j<=S)return z=z.slice(0,j),H(!0)}}return H()}for(var N=x.indexOf(t,h),T=x.indexOf(a,h),te=new RegExp(ue(M)+ue(V),"g"),b=x.indexOf(V,h);;)if(x[h]===V)for(b=h,h++;;){if((b=x.indexOf(V,b+1))===-1)return p||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:z.length,index:h}),ie();if(b===F-1)return ie(x.substring(h,b).replace(te,V));if(V===M&&x[b+1]===M)b++;else if(V===M||b===0||x[b-1]!==M){N!==-1&&N<b+1&&(N=x.indexOf(t,b+1));var P=ge((T=T!==-1&&T<b+1?x.indexOf(a,b+1):T)===-1?N:Math.min(N,T));if(x.substr(b+1+P,B)===t){g.push(x.substring(h,b).replace(te,V)),x[h=b+1+P+B]!==V&&(b=x.indexOf(V,h)),N=x.indexOf(t,h),T=x.indexOf(a,h);break}if(P=ge(T),x.substring(b+1+P,b+1+P+W)===a){if(g.push(x.substring(h,b).replace(te,V)),we(b+1+P+W),N=x.indexOf(t,h),b=x.indexOf(V,h),A&&(ne(),$))return H();if(j&&z.length>=j)return H(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:z.length,index:h}),b++}}else if(o&&g.length===0&&x.substring(h,h+X)===o){if(T===-1)return H();h=T+W,T=x.indexOf(a,h),N=x.indexOf(t,h)}else if(N!==-1&&(N<T||T===-1))g.push(x.substring(h,N)),h=N+B,N=x.indexOf(t,h);else{if(T===-1)break;if(g.push(x.substring(h,T)),we(T+W),A&&(ne(),$))return H();if(j&&z.length>=j)return H(!0)}return ie();function ce(U){z.push(U),D=h}function ge(U){var Z=0;return Z=U!==-1&&(U=x.substring(b+1,U))&&U.trim()===""?U.length:Z}function ie(U){return p||(U===void 0&&(U=x.substring(h)),g.push(U),h=F,ce(g),A&&ne()),H()}function we(U){h=U,ce(g),g=[],T=x.indexOf(a,h)}function H(U){if(s.header&&!k&&z.length&&!Y){var Z=z[0],le=Object.create(null),Ce=new Set(Z);let Oe=!1;for(let fe=0;fe<Z.length;fe++){let re=Z[fe];if(le[re=R(s.transformHeader)?s.transformHeader(re,fe):re]){let je,Fe=le[re];for(;je=re+"_"+Fe,Fe++,Ce.has(je););Ce.add(je),Z[fe]=je,le[re]++,Oe=!0,(J=J===null?{}:J)[je]=re}else le[re]=1,Z[fe]=re;Ce.add(re)}Oe&&console.warn("Duplicate headers found and renamed."),Y=!0}return{data:z,errors:E,meta:{delimiter:t,linebreak:a,aborted:$,truncated:!!U,cursor:D+(k||0),renamedHeaders:J}}}function ne(){c(H()),z=[],E=[]}},this.abort=function(){$=!0},this.getCharIndex=function(){return h}}function Se(s){var t=s.data,a=n[t.workerId],o=!1;if(t.error)a.userError(t.error,t.file);else if(t.results&&t.results.data){var c={abort:function(){o=!0,ee(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:_,resume:_};if(R(a.userStep)){for(var j=0;j<t.results.data.length&&(a.userStep({data:t.results.data[j],errors:t.results.errors,meta:t.results.meta},c),!o);j++);delete t.results}else R(a.userChunk)&&(a.userChunk(t.results,c,t.file),delete t.results)}t.finished&&!o&&ee(t.workerId,t.results)}function ee(s,t){var a=n[s];R(a.userComplete)&&a.userComplete(t),a.terminate(),delete n[s]}function _(){throw new Error("Not implemented.")}function ae(s){if(typeof s!="object"||s===null)return s;var t,a=Array.isArray(s)?[]:{};for(t in s)a[t]=ae(s[t]);return a}function Q(s,t){return function(){s.apply(t,arguments)}}function R(s){return typeof s=="function"}return i.parse=function(s,t){var a=(t=t||{}).dynamicTyping||!1;if(R(a)&&(t.dynamicTypingFunction=a,a={}),t.dynamicTyping=a,t.transform=!!R(t.transform)&&t.transform,!t.worker||!i.WORKERS_SUPPORTED)return a=null,i.NODE_STREAM_INPUT,typeof s=="string"?(s=(o=>
8o.charCodeAt(0)!==65279?o:o.slice(1))(s),a=new(t.download?q:oe)(t)):s.readable===!0&&R(s.read)&&R(s.on)?a=new pe(t):(l.File&&s instanceof File||s instanceof Object)&&(a=new se(t)),a.stream(s);(a=(()=>{var o;return!!i.WORKERS_SUPPORTED&&(o=(()=>{var c=l.URL||l.webkitURL||null,j=w.toString();return i.BLOB_URL||(i.BLOB_URL=c.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",j,")();"],{type:"text/javascript"})))})(),(o=new l.Worker(o)).onmessage=Se,o.id=I++,n[o.id]=o)})()).userStep=t.step,a.userChunk=t.chunk,a.userComplete=t.complete,a.userError=t.error,t.step=R(t.step),t.chunk=R(t.chunk),t.complete=R(t.complete),t.error=R(t.error),delete t.worker,a.postMessage({input:s,config:t,workerId:a.id})},i.unparse=function(s,t){var a=!1,o=!0,c=",",j=`\r
9`,O='"',J=O+O,Y=!1,V=null,M=!1,h=((()=>{if(typeof t=="object"){if(typeof t.delimiter!="string"||i.BAD_DELIMITERS.filter(function(k){return t.delimiter.indexOf(k)!==-1}).length||(c=t.delimiter),typeof t.quotes!="boolean"&&typeof t.quotes!="function"&&!Array.isArray(t.quotes)||(a=t.quotes),typeof t.skipEmptyLines!="boolean"&&typeof t.skipEmptyLines!="string"||(Y=t.skipEmptyLines),typeof t.newline=="string"&&(j=t.newline),typeof t.quoteChar=="string"&&(O=t.quoteChar),typeof t.header=="boolean"&&(o=t.header),Array.isArray(t.columns)){if(t.columns.length===0)throw new Error("Option columns is empty");V=t.columns}t.escapeChar!==void 0&&(J=t.escapeChar+O),t.escapeFormulae instanceof RegExp?M=t.escapeFormulae:typeof t.escapeFormulae=="boolean"&&t.escapeFormulae&&(M=/^[=+\-@\t\r].*$/)}})(),new RegExp(ue(O),"g"));if(typeof s=="string"&&(s=JSON.parse(s)),Array.isArray(s)){if(!s.length||Array.isArray(s[0]))return $(null,s,Y);if(typeof s[0]=="object")return $(V||Object.keys(s[0]),s,Y)}
9else if(typeof s=="object")return typeof s.data=="string"&&(s.data=JSON.parse(s.data)),Array.isArray(s.data)&&(s.fields||(s.fields=s.meta&&s.meta.fields||V),s.fields||(s.fields=Array.isArray(s.data[0])?s.fields:typeof s.data[0]=="object"?Object.keys(s.data[0]):[]),Array.isArray(s.data[0])||typeof s.data[0]=="object"||(s.data=[s.data])),$(s.fields||[],s.data||[],Y);throw new Error("Unable to serialize unrecognized input");function $(k,p,F){var B="",W=(typeof k=="string"&&(k=JSON.parse(k)),typeof p=="string"&&(p=JSON.parse(p)),Array.isArray(k)&&0<k.length),X=!Array.isArray(p[0]);if(W&&o){for(var A=0;A<k.length;A++)0<A&&(B+=c),B+=x(k[A],A);0<p.length&&(B+=j)}for(var z=0;z<p.length;z++){var E=(W?k:p[z]).length,g=!1,D=W?Object.keys(p[z]).length===0:p[z].length===0;if(F&&!W&&(g=F==="greedy"?p[z].join("").trim()==="":p[z].length===1&&p[z][0].length===0),F==="greedy"&&W){for(var L=[],S=0;S<E;S++){var N=X?k[S]:S;L.push(p[z][N])}g=L.join("").trim()===""}if(!g){for(var T=0;T<E;T++){0<T&&!D&&(B+=c);var te=W&&X?k[T]:T;B+=x(p[z][te],T)}z<p.length-1&&(!F||0<E&&!D)&&(B+=j)}}return B}function x(k,p){var F,B;return k==null?"":k.constructor===Date?JSON.stringify(k).slice(1,25):(B=!1,M&&typeof k=="string"&&M.test(k)&&(k="'"+k,B=!0),F=k.toString().replace(h,J),(B=B||a===!0||typeof a=="function"&&a(k,p)||Array.isArray(a)&&a[p]||((W,X)=>{for(var A=0;A<X.length;A++)if(-1<W.indexOf(X[A]))return!0;return!1})(F,i.BAD_DELIMITERS)||-1<F.indexOf(c)||F.charAt(0)===" "||F.charAt(F.length-1)===" ")?O+F+O:F)}},i.RECORD_SEP="�",i.UNIT_SEP="�",i.BYTE_ORDER_MARK="\uFEFF",i.BAD_DELIMITERS=["\r",`
10`,'"',i.BYTE_ORDER_MARK],i.WORKERS_SUPPORTED=!m&&!!l.Worker,i.NODE_STREAM_INPUT=1,i.LocalChunkSize=10485760,i.RemoteChunkSize=5242880,i.DefaultDelimiter=",",i.Parser=he,i.ParserHandle=me,i.NetworkStreamer=q,i.FileStreamer=se,i.StringStreamer=oe,i.ReadableStreamStreamer=pe,l.jQuery&&((v=l.jQuery).fn.parse=function(s){var t=s.config||{},a=[];return this.each(function(j){if(!(v(this).prop("tagName").toUpperCase()==="INPUT"&&v(this).attr("type").toLowerCase()==="file"&&l.FileReader)||!this.files||this.files.length===0)return!0;for(var O=0;O<this.files.length;O++)a.push({file:this.files[O],inputElem:this,instanceConfig:v.extend({},t)})}),o(),this;function o(){if(a.length===0)R(s.complete)&&s.complete();else{var j,O,J,Y,V=a[0];if(R(s.before)){var M=s.before(V.file,V.inputElem);if(typeof M=="object"){if(M.action==="abort")return j="AbortError",O=V.file,J=V.inputElem,Y=M.reason,void(R(s.error)&&s.error({name:j},O,J,Y));if(M.action==="skip")return void c();typeof M.config=="object"&&(V.instanceConfig=v.extend(V.instanceConfig,M.config))}else if(M==="skip")return void c()}var h=V.instanceConfig.complete;V.instanceConfig.complete=function($){R(h)&&h($,V.file,V.inputElem),c()},i.parse(V.file,V.instanceConfig)}}function c(){a.splice(0,1),o()}}),u&&(l.onmessage=function(s){s=s.data,i.WORKER_ID===void 0&&s&&(i.WORKER_ID=s.workerId),typeof s.input=="string"?l.postMessage({workerId:i.WORKER_ID,results:i.parse(s.input,s.config),finished:!0}):(l.File&&s.input instanceof File||s.input instanceof Object)&&(s=i.parse(s.input,s.config))&&l.postMessage({workerId:i.WORKER_ID,results:s,finished:!0})}),(q.prototype=Object.create(r.prototype)).constructor=q,(se.prototype=Object.create(r.prototype)).constructor=se,(oe.prototype=Object.create(oe.prototype)).constructor=oe,(pe.prototype=Object.create(r.prototype)).constructor=pe,i})})(ze)),ze.exports}var At=kt();const Tt=Qe(At);function _t(d,y){return y==="quarterly"?[`${d}-Q1`,`${d}-Q2`,`${d}-Q3`,`${d}-Q4`]:Array.from({length:12},(w,l)=>{const v=(l+1).toString().padStart(2,"0");return`${d}-${v}`})}function Rt(d,y){if(d.includes("-Q"))return d.split("-")[1];const[w,l]=d.split("-"),v=new Date(parseInt(w),parseInt(l)-1,1);return new Intl.DateTimeFormat(y,{month:"short"}).format(v)}function zt(d){return d.length?d.reduce((y,w)=>w.payout>y.payout?w:y):{currency:"EUR",grossRevenue:0,netRevenue:0,subtotalVat:0,shippingTotal:0,shippingVat:0,payout:0,serviceFees:0,totalCost:0,profit:0,spending:0}}const St={periodKey:"",orderCount:0,itemCount:0,revenueByCurrency:[]};function Ct({data:d,settings:y,locale:w}){const l=Te(),v=_t(y.year,y.periodType),m=new Map(d.map(i=>[i.periodKey,i])),u=v.map(i=>({periodKey:i,data:m.get(i)||{...St,periodKey:i}})),n=u.map(i=>zt(i.data.revenueByCurrency)),I=n.find(i=>i.currency!=="EUR")?.currency||"EUR";return e.jsx("div",{className:"rounded-md border overflow-x-auto",children:e.jsxs(Ee,{children:[e.jsx(De,{children:e.jsxs(K,{children:[e.jsx(G,{className:"sticky left-0 bg-background min-w-[120px]",children:l.formatMessage({id:"table.metric"})}),u.map(({periodKey:i})=>e.jsx(G,{className:"text-right min-w-[100px]",children:Rt(i,w)},i)),e.jsx(G,{className:"text-right min-w-[100px] font-semibold",children:l.formatMessage({id:"table.total"})})]})}),e.jsxs(Be,{children:[e.jsxs(K,{children:[e.jsx(f,{className:"sticky left-0 bg-background font-medium",children:l.formatMessage({id:"table.orders"})}),u.map(({periodKey:i,data:r})=>e.jsx(f,{className:"text-right",children:r.orderCount||"-"},i)),e.jsx(f,{className:"text-right font-semibold",children:u.reduce((i,{data:r})=>i+r.orderCount,0)})]}),e.jsxs(K,{children:[e.jsx(f,{className:"sticky left-0 bg-background font-medium",children:l.formatMessage({id:"table.items"})}),u.map(({periodKey:i,data:r})=>e.jsx(f,{className:"text-right",children:r.itemCount||"-"},i)),e.jsx(f,{className:"text-right font-semibold",children:u.reduce((i,{data:r})=>i+r.itemCount,0)})]}),e.jsxs(K,{children:[e.jsx(f,{className:"sticky left-0 bg-background font-medium",children:l.formatMessage({id:"table.grossRevenue"})}),u.map(({periodKey:i},r)=>e.jsx(f,{className:"text-right",children:n[r].grossRevenue?e.jsx(C,{value:n[r].grossRevenue,style:"currency",currency:n[r].currency}):"-"},i)),e.jsx(f,{className:"text-right font-semibold",children:e.jsx(C,{value:n.reduce((i,r)=>i+r.grossRevenue,0),style:"currency",currency:I})})]}),y.showVat&&e.jsxs(e.Fragment,{children:[e.jsxs(K,{children:[e.jsx(f,{className:"sticky left-0 bg-background font-medium",children:l.formatMessage({id:"table.subtotalVat"})}),u.map(({periodKey:i},r)=>e.jsx(f,{className:"text-right",children:n[r].subtotalVat?e.jsx(C,{value:n[r].subtotalVat,style:"currency",currency:n[r].currency}):"-"},i)),e.jsx(f,{className:"text-right font-semibold",children:e.jsx(C,{value:n.reduce((i,r)=>i+r.subtotalVat,0),style:"currency",currency:I})})]}),e.jsxs(K,{children:[e.jsx(f,{className:"sticky left-0 bg-background font-medium",children:l.formatMessage({id:"table.netRevenue"})}),u.map(({periodKey:i},r)=>e.jsx(f,{className:"text-right",children:n[r].netRevenue?e.jsx(C,{value:n[r].netRevenue,style:"currency",currency:n[r].currency}):"-"},i)),e.jsx(f,{className:"text-right font-semibold",children:e.jsx(C,{value:n.reduce((i,r)=>i+r.netRevenue,0),style:"currency",currency:I})})]}),e.jsxs(K,{children:[e.jsx(f,{className:"sticky left-0 bg-background font-medium",children:l.formatMessage({id:"table.shippingVat"})}),u.map(({periodKey:i},r)=>e.jsx(f,{className:"text-right",children:n[r].shippingVat?e.jsx(C,{value:n[r].shippingVat,style:"currency",currency:n[r].currency}):"-"},i)),e.jsx(f,{className:"text-right font-semibold",children:e.jsx(C,{value:n.reduce((i,r)=>i+r.shippingVat,0),style:"currency",currency:I})})]})]}),e.jsxs(K,{children:[e.jsx(f,{className:"sticky left-0 bg-background font-medium",children:l.formatMessage({id:"table.payout"})}),u.map(({periodKey:i},r)=>e.jsx(f,{className:"text-right",children:n[r].payout?e.jsx(C,{value:n[r].payout,style:"currency",currency:n[r].currency}):"-"},i)),e.jsx(f,{className:"text-right font-semibold",children:e.jsx(C,{value:n.reduce((i,r)=>i+r.payout,0),style:"currency",currency:I})})]}),y.showSpending&&e.jsxs(K,{children:[e.jsx(f,{className:"sticky left-0 bg-background font-medium",children:l.formatMessage({id:"table.spending"})}),u.map(({periodKey:i},r)=>e.jsx(f,{className:"text-right",children:n[r].spending?e.jsx(C,{value:n[r].spending,style:"currency",currency:n[r].currency}):"-"},i)),e.jsx(f,{className:"text-right font-semibold",children:e.jsx(C,{value:n.reduce((i,r)=>i+r.spending,0),style:"currency",currency:I})})]}),y.showProfit&&e.jsxs(e.Fragment,{children:[e.jsxs(K,{children:[e.jsx(f,{className:"sticky left-0 bg-background font-medium",children:l.formatMessage({id:"table.totalCost"})}),u.map(({periodKey:i},r)=>e.jsx(f,{className:"text-right",children:n[r].totalCost?e.jsx(C,{value:n[r].totalCost,style:"currency",currency:n[r].currency}):"-"},i)),e.jsx(f,{className:"text-right font-semibold",children:e.jsx(C,{value:n.reduce((i,r)=>i+r.totalCost,0),style:"currency",currency:I})})]}),e.jsxs(K,{children:[e.jsx(f,{className:"sticky left-0 bg-background font-medium",children:l.formatMessage({id:"table.profit"})}),u.map(({periodKey:i},r)=>{const q=n[r],se=(y.showVat?q.profit-q.subtotalVat-q.shippingVat:q.profit)-(y.showSpending?q.spending:0);return e.jsx(f,{className:"text-right",children:se?e.jsx(C,{value:se,style:"currency",currency:q.currency}):"-"},i)}),e.jsx(f,{className:"text-right font-semibold",children:e.jsx(C,{value:n.reduce((i,r)=>{const q=(y.showVat?r.profit-r.subtotalVat-r.shippingVat:r.profit)-(y.showSpending?r.spending:0);return i+q},0),style:"currency",currency:I})})]})]})]})]})})}function Nt({settings:d,accounts:y,onChange:w,onExport:l,exporting:v}){const m=Te(),u=new Date().getFullYear(),n=Array.from({length:5},(r,q)=>u-q),I=y.map(r=>
10({label:r.name,value:r.id})),i=d.periodType==="quarterly"?`Q ${d.year}`:`M ${d.year}`;return e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(qe,{children:[e.jsx(We,{asChild:!0,children:e.jsxs(_e,{variant:"outline",size:"sm",className:"gap-1",children:[i,e.jsx(Le,{className:"h-3 w-3 opacity-50"})]})}),e.jsx($e,{className:"w-auto p-3",align:"start",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(Ne,{value:d.periodType,onValueChange:r=>w({periodType:r}),children:[e.jsx(Ie,{className:"w-[130px]",children:e.jsx(Pe,{})}),e.jsxs(Me,{children:[e.jsx(ke,{value:"monthly",children:m.formatMessage({id:"settings.monthly"})}),e.jsx(ke,{value:"quarterly",children:m.formatMessage({id:"settings.quarterly"})})]})]}),e.jsxs(Ne,{value:String(d.year),onValueChange:r=>w({year:parseInt(r,10)}),children:[e.jsx(Ie,{className:"w-[90px]",children:e.jsx(Pe,{})}),e.jsx(Me,{children:n.map(r=>e.jsx(ke,{value:String(r),children:r},r))})]})]})})]}),e.jsxs(ut,{multiple:!0,value:d.accountIds,onValueChange:r=>w({accountIds:r??[]}),children:[e.jsx(pt,{asChild:!0,children:e.jsx(_e,{variant:"outline",size:"sm",className:"min-w-[160px] justify-start",children:e.jsx(mt,{options:I,placeholder:m.formatMessage({id:"accounts.placeholder"}),max:1,badgeClassName:"blur-sensitive"})})}),e.jsx(ht,{className:"w-[220px]",children:e.jsx(gt,{children:e.jsx(ft,{children:y.map(r=>e.jsx(yt,{value:r.id,children:e.jsx("span",{className:"blur-sensitive",children:r.name})},r.id))})})})]}),e.jsx("div",{className:"flex-1"}),e.jsxs(qe,{children:[e.jsx(We,{asChild:!0,children:e.jsxs(_e,{variant:"outline",size:"sm",className:"gap-1",children:[e.jsx(Je,{className:"h-3.5 w-3.5"}),m.formatMessage({id:"settings.display"}),e.jsx(Le,{className:"h-3 w-3 opacity-50"})]})}),e.jsx($e,{className:"w-72 p-3",align:"end",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ae,{className:"text-sm font-normal cursor-pointer",children:m.formatMessage({id:"settings.includePending"})}),e.jsxs(ve,{children:[e.jsx(xe,{asChild:!0,children:e.jsx(Ve,{className:"h-3.5 w-3.5 text-muted-foreground cursor-help"})}),e.jsx(be,{className:"max-w-xs",children:e.jsx("p",{children:m.formatMessage({id:"settings.includePending.tooltip"})})})]})]}),e.jsx(Re,{checked:d.includePending,onCheckedChange:r=>w({includePending:r})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ae,{className:"text-sm font-normal cursor-pointer",children:m.formatMessage({id:"settings.showVat"})}),e.jsxs(ve,{children:[e.jsx(xe,{asChild:!0,children:e.jsx(Ve,{className:"h-3.5 w-3.5 text-muted-foreground cursor-help"})}),e.jsx(be,{className:"max-w-xs",children:e.jsx("p",{children:m.formatMessage({id:"settings.showVat.tooltip"})})})]})]}),e.jsx(Re,{checked:d.showVat,onCheckedChange:r=>w({showVat:r})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ae,{className:"text-sm font-normal cursor-pointer",children:m.formatMessage({id:"settings.showProfit"})}),e.jsxs(ve,{children:[e.jsx(xe,{asChild:!0,children:e.jsx(Ve,{className:"h-3.5 w-3.5 text-muted-foreground cursor-help"})}),e.jsx(be,{className:"max-w-xs",children:e.jsx("p",{children:m.formatMessage({id:"settings.showProfit.tooltip"})})})]})]}),e.jsx(Re,{checked:d.showProfit,onCheckedChange:r=>w({showProfit:r})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ae,{className:"text-sm font-normal cursor-pointer",children:m.formatMessage({id:"settings.showSpending"})}),e.jsxs(ve,{children:[e.jsx(xe,{asChild:!0,children:e.jsx(Ve,{className:"h-3.5 w-3.5 text-muted-foreground cursor-help"})}),e.jsx(be,{className:"max-w-xs",children:e.jsx("p",{children:m.formatMessage({id:"settings.showSpending.tooltip"})})})]})]}),e.jsx(Re,{checked:d.showSpending,onCheckedChange:r=>w({showSpending:r})})]}),e.jsx(vt,{}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ae,{className:"text-xs text-muted-foreground",children:m.formatMessage({id:"settings.dateField"})}),e.jsxs(ve,{children:[e.jsx(xe,{asChild:!0,children:e.jsx(Ve,{className:"h-3 w-3 text-muted-foreground cursor-help"})}),e.jsx(be,{className:"max-w-xs",children:e.jsx("p",{children:m.formatMessage({id:"settings.dateField.tooltip"})})})]})]}),e.jsxs(Ne,{value:d.dateField,onValueChange:r=>w({dateField:r}),children:[e.jsx(Ie,{className:"w-full h-8 text-sm",children:e.jsx(Pe,{})}),e.jsxs(Me,{children:[e.jsx(ke,{value:"status_updated_at",children:m.formatMessage({id:"settings.statusUpdatedAt"})}),e.jsx(ke,{value:"order_date",children:m.formatMessage({id:"settings.orderDate"})})]})]})]})]})})]}),e.jsxs(_e,{size:"sm",onClick:l,disabled:v,children:[e.jsx(Ye,{className:"h-3.5 w-3.5"}),m.formatMessage({id:"export.csv"})]})]})}function It(d){return d.revenueByCurrency.length?d.revenueByCurrency.reduce((y,w)=>w.payout>y.payout?w:y):{currency:"EUR",grossRevenue:0,netRevenue:0,subtotalVat:0,shippingVat:0,payout:0,totalCost:0,profit:0,spending:0}}
10function de({title:d,tooltip:y,value:w,format:l="number",currency:v="EUR",icon:m}){return e.jsxs(nt,{children:[e.jsxs(rt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(ot,{className:"text-sm font-medium",children:e.jsxs(ve,{children:[e.jsx(xe,{className:"flex items-center gap-1 cursor-help",children:d}),e.jsx(be,{children:e.jsx("p",{children:y})})]})}),e.jsx("div",{className:"h-8 w-8 rounded-md bg-muted flex items-center justify-center",children:m})]}),e.jsx(lt,{children:e.jsx("div",{className:"text-2xl font-bold",children:l==="currency"?e.jsx(C,{value:w,style:"currency",currency:v}):e.jsx(C,{value:w})})})]})}function Pt({totals:d,showVat:y,showProfit:w,showSpending:l}){const v=Te(),m=It(d),u=m.subtotalVat+m.shippingVat,n=(y?m.profit-u:m.profit)-(l?m.spending:0),I=(y?2:0)+(w?1:0)+(l?1:0),i=I===0?"md:grid-cols-2 lg:grid-cols-4":I===1?"md:grid-cols-3 lg:grid-cols-5":I===2?"grid-cols-2 md:grid-cols-3":"grid-cols-2 md:grid-cols-4";return e.jsxs("div",{className:`grid gap-4 ${i}`,children:[e.jsx(de,{title:v.formatMessage({id:"summary.totalOrders"}),tooltip:v.formatMessage({id:"summary.totalOrders.tooltip"}),value:d.orderCount,icon:e.jsx(Xe,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx(de,{title:v.formatMessage({id:"summary.totalItems"}),tooltip:v.formatMessage({id:"summary.totalItems.tooltip"}),value:d.itemCount,icon:e.jsx(et,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx(de,{title:v.formatMessage({id:"summary.grossRevenue"}),tooltip:v.formatMessage({id:"summary.grossRevenue.tooltip"}),value:m.grossRevenue,format:"currency",currency:m.currency,icon:e.jsx(Ue,{className:"h-4 w-4 text-muted-foreground"})}),y&&e.jsxs(e.Fragment,{children:[e.jsx(de,{title:v.formatMessage({id:"summary.totalVat"}),tooltip:v.formatMessage({id:"summary.totalVat.tooltip"}),value:u,format:"currency",currency:m.currency,icon:e.jsx(tt,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx(de,{title:v.formatMessage({id:"summary.netRevenue"}),tooltip:v.formatMessage({id:"summary.netRevenue.tooltip"}),value:m.netRevenue,format:"currency",currency:m.currency,icon:e.jsx(Ue,{className:"h-4 w-4 text-muted-foreground"})})]}),e.jsx(de,{title:v.formatMessage({id:"summary.payout"}),tooltip:v.formatMessage({id:"summary.payout.tooltip"}),value:m.payout,format:"currency",currency:m.currency,icon:e.jsx(st,{className:"h-4 w-4 text-muted-foreground"})}),l&&e.jsx(de,{title:v.formatMessage({id:"summary.spending"}),tooltip:v.formatMessage({id:"summary.spending.tooltip"}),value:m.spending,format:"currency",currency:m.currency,icon:e.jsx(at,{className:"h-4 w-4 text-muted-foreground"})}),w&&e.jsx(de,{title:v.formatMessage({id:"summary.profit"}),tooltip:v.formatMessage({id:y?"summary.profit.tooltip.withVat":"summary.profit.tooltip"}),value:n,format:"currency",currency:m.currency,icon:e.jsx(it,{className:"h-4 w-4 text-muted-foreground"})})]})}const Mt={AT:"Austria",BE:"Belgium",BG:"Bulgaria",HR:"Croatia",CY:"Cyprus",CZ:"Czechia",DK:"Denmark",EE:"Estonia",FI:"Finland",FR:"France",DE:"Germany",GR:"Greece",HU:"Hungary",IE:"Ireland",IT:"Italy",LV:"Latvia",LT:"Lithuania",LU:"Luxembourg",MT:"Malta",NL:"Netherlands",PL:"Poland",PT:"Portugal",RO:"Romania",SK:"Slovakia",SI:"Slovenia",ES:"Spain",SE:"Sweden"};function Ge(d){return Mt[d]||d}function Et(d,y){if(d.includes("-Q")){const[u,n]=d.split("-");return`${n} ${u}`}const[w,l]=d.split("-"),v=new Date(parseInt(w),parseInt(l)-1,1),m=new Intl.DateTimeFormat(y,{month:"long"}).format(v);return`${m.charAt(0).toUpperCase()}${m.slice(1)} ${w}`}function Dt({data:d,totals:y,locale:w}){const l=Te();if(!d.length)return e.jsx("div",{className:"rounded-md border p-8 text-center text-muted-foreground",children:l.formatMessage({id:"table.noData"})});const v=d.reduce((u,n)=>(u[n.periodKey]||(u[n.periodKey]=[]),u[n.periodKey].push(n),u),{}),m=Object.keys(v).sort();return e.jsxs("div",{className:"space-y-6",children:[e.jsx("h3",{className:"text-lg font-semibold",children:l.formatMessage({id:"vat.title"})}),m.map(u=>e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-medium text-muted-foreground",children:Et(u,w)}),e.jsx("div",{className:"rounded-md border",children:e.jsxs(Ee,{children:[e.jsx(De,{children:e.jsxs(K,{children:[e.jsx(G,{children:l.formatMessage({id:"vat.country"})}),e.jsx(G,{className:"text-right",children:l.formatMessage({id:"table.orders"})}),e.jsx(G,{className:"text-right",children:l.formatMessage({id:"table.grossRevenue"})}),e.jsx(G,{className:"text-right",children:l.formatMessage({id:"vat.itemVat"})}),e.jsx(G,{className:"text-right",children:l.formatMessage({id:"vat.shippingVat"})}),e.jsx(G,{className:"text-right",children:l.formatMessage({id:"vat.totalVat"})})]})}),e.jsx(Be,{children:v[u].sort((n,I)=>I.totalVat-n.totalVat).map(n=>e.jsxs(K,{children:[e.jsx(f,{className:"font-medium",children:Ge(n.countryCode)}
10),e.jsx(f,{className:"text-right",children:n.orderCount}),e.jsx(f,{className:"text-right",children:e.jsx(C,{value:n.grossRevenue,style:"currency",currency:n.currency})}),e.jsx(f,{className:"text-right",children:e.jsx(C,{value:n.subtotalVat,style:"currency",currency:n.currency})}),e.jsx(f,{className:"text-right",children:e.jsx(C,{value:n.shippingVat,style:"currency",currency:n.currency})}),e.jsx(f,{className:"text-right font-semibold",children:e.jsx(C,{value:n.totalVat,style:"currency",currency:n.currency})})]},`${n.periodKey}-${n.countryCode}-${n.currency}`))})]})})]},u)),y.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-medium",children:l.formatMessage({id:"vat.yearlyTotals"})}),e.jsx("div",{className:"rounded-md border",children:e.jsxs(Ee,{children:[e.jsx(De,{children:e.jsxs(K,{children:[e.jsx(G,{children:l.formatMessage({id:"vat.country"})}),e.jsx(G,{className:"text-right",children:l.formatMessage({id:"table.orders"})}),e.jsx(G,{className:"text-right",children:l.formatMessage({id:"table.grossRevenue"})}),e.jsx(G,{className:"text-right",children:l.formatMessage({id:"table.netRevenue"})}),e.jsx(G,{className:"text-right",children:l.formatMessage({id:"vat.itemVat"})}),e.jsx(G,{className:"text-right",children:l.formatMessage({id:"vat.shippingVat"})}),e.jsx(G,{className:"text-right",children:l.formatMessage({id:"vat.totalVat"})})]})}),e.jsx(Be,{children:y.sort((u,n)=>n.totalVat-u.totalVat).map(u=>e.jsxs(K,{children:[e.jsx(f,{className:"font-medium",children:Ge(u.countryCode)}),e.jsx(f,{className:"text-right",children:u.orderCount}),e.jsx(f,{className:"text-right",children:e.jsx(C,{value:u.grossRevenue,style:"currency",currency:u.currency})}),e.jsx(f,{className:"text-right",children:e.jsx(C,{value:u.netRevenue,style:"currency",currency:u.currency})}),e.jsx(f,{className:"text-right",children:e.jsx(C,{value:u.subtotalVat,style:"currency",currency:u.currency})}),e.jsx(f,{className:"text-right",children:e.jsx(C,{value:u.shippingVat,style:"currency",currency:u.currency})}),e.jsx(f,{className:"text-right font-semibold",children:e.jsx(C,{value:u.totalVat,style:"currency",currency:u.currency})})]},`total-${u.countryCode}-${u.currency}`))})]})})]})]})}const Bt={"page.title":"Accounting","page.syncHelp":"How to sync your orders?","beta.badge":"Beta","beta.disclaimer":"This feature is in beta. Please verify all calculations with your accountant before using them for official tax declarations.","settings.periodType":"Period","settings.monthly":"Monthly","settings.quarterly":"Quarterly","settings.dateField":"Date based on","settings.dateField.tooltip":"Only completed transactions are included. Choose whether to group them by the date the order was placed or when it was marked as completed.","settings.orderDate":"Order date","settings.statusUpdatedAt":"Completion date","settings.includePending":"Include pending orders","settings.includePending.tooltip":"Include orders that are not yet completed (in progress or in transit). Warning: using this for accounting can lead to over-declaration, since pending orders may still be cancelled or returned.","settings.showVat":"Show VAT breakdown","settings.showVat.tooltip":"Only enable this if you are registered for VAT and need to report VAT to tax authorities.","settings.showProfit":"Show Profit","settings.showProfit.tooltip":"Only accurate if you fill the purchase price of your items.","settings.year":"Year","settings.display":"Accounting settings","accounts.placeholder":"All accounts","summary.totalOrders":"Total Orders","summary.totalOrders.tooltip":"Number of orders in the selected period","summary.totalItems":"Items Sold","summary.totalItems.tooltip":"Number of items sold in the selected period","summary.grossRevenue":"Gross Revenue","summary.grossRevenue.tooltip":"Total revenue including VAT","summary.netRevenue":"Net Revenue","summary.netRevenue.tooltip":"Revenue excluding VAT (Gross - VAT)","summary.totalVat":"Total VAT","summary.totalVat.tooltip":"Sum of item VAT and shipping VAT","summary.payout":"Total Payout","summary.payout.tooltip":"Amount received from Vinted","summary.profit":"Profit","summary.profit.tooltip":"Payout minus total purchase cost. Only accurate if purchase prices are filled 
10in.","summary.profit.tooltip.withVat":"Payout minus total purchase cost and VAT (item + shipping). Only accurate if purchase prices are filled in.","table.metric":"Metric","table.total":"Total","table.period":"Period","table.orders":"Orders","table.items":"Items","table.grossRevenue":"Gross Revenue","table.subtotalVat":"Item VAT","table.netRevenue":"Net Revenue","table.shippingVat":"Shipping VAT","table.payout":"Payout","table.totalCost":"Total Cost","table.profit":"Profit","table.spending":"Spending","settings.showSpending":"Show spending","settings.showSpending.tooltip":"Adds a spending row and deducts your expenses from profit. Expenses aren't tied to a specific account, so the full total is always used.","summary.spending":"Spending","summary.spending.tooltip":"Total expenses from your ledger (manual entries plus synced Dotb & Vinted fees) for the selected period.","table.noData":"No data for the selected period","vat.title":"VAT by Country","vat.country":"Country","vat.itemVat":"Item VAT","vat.shippingVat":"Shipping VAT","vat.totalVat":"Total VAT","vat.yearlyTotals":"Yearly Totals by Country","export.csv":"Export CSV","csv.period":"Period","csv.currency":"Currency","csv.orders":"Orders","csv.items":"Items","csv.grossRevenue":"Gross Revenue","csv.netRevenue":"Net Revenue","csv.itemVat":"Item VAT","csv.shippingTotal":"Shipping Total","csv.shippingVat":"Shipping VAT","csv.payout":"Payout","csv.serviceFees":"Service Fees","csv.spending":"Spending","csv.country":"Country","csv.totalVat":"Total VAT","csv.section.periods":"--- Period Breakdown ---","csv.section.vatByCountry":"--- VAT by Country ---","csv.section.totals":"--- Totals ---"},Ot={"page.title":"Comptabilité","page.syncHelp":"Comment synchroniser vos commandes ?","beta.badge":"Bêta","beta.disclaimer":"Cette fonctionnalité est en bêta. Veuillez vérifier tous les calculs avec votre comptable avant de les utiliser pour vos déclarations fiscales officielles.","settings.periodType":"Période","settings.monthly":"Mensuel","settings.quarterly":"Trimestriel","settings.dateField":"Date basée sur","settings.dateField.tooltip":"Seules les transactions finalisées sont incluses. Choisissez de les regrouper par date de commande ou par date de finalisation.","settings.orderDate":"Date de commande","settings.statusUpdatedAt":"Date de finalisation","settings.includePending":"Inclure les commandes en cours","settings.includePending.tooltip":"Inclut les commandes qui ne sont pas encore finalisées (en cours ou en transit). Attention : utiliser cette option pour la comptabilité peut entraîner une sur-déclaration, car les commandes en cours peuvent encore être annulées ou retournées.","settings.showVat":"Afficher la TVA","settings.showVat.tooltip":"Activez uniquement si vous êtes assujetti à la TVA et devez la déclarer aux autorités fiscales.","settings.showProfit":"Afficher le profit","settings.showProfit.tooltip":"Uniquement précis si vous renseignez le prix d'achat de vos articles.","settings.year":"Année","settings.display":"Paramètres comptables","accounts.placeholder":"Tous les comptes","summary.totalOrders":"Total commandes","summary.totalOrders.tooltip":"Nombre de commandes sur la période","summary.totalItems":"Articles vendus","summary.totalItems.tooltip":"Nombre d'articles vendus sur la période","summary.grossRevenue":"CA Brut","summary.grossRevenue.tooltip":"Revenus totaux TVA incluse","summary.netRevenue":"CA Net","summary.netRevenue.tooltip":"Revenus hors TVA (Brut - TVA)","summary.totalVat":"TVA totale","summary.totalVat.tooltip":"Somme de la TVA articles et TVA livraison","summary.payout":"Total versé","summary.payout.tooltip":"Montant reçu de Vinted","summary.profit":"Profit","summary.profit.tooltip":"Versement moins le coût d'achat total. Précis uniquement si les prix d'achat sont renseignés.","summary.profit.tooltip.withVat":"Versement moins le coût d'achat total et la TVA (articles + livraison). Précis uniquement si les prix d'achat sont renseignés.","table.metric":"Métrique","table.total":"Total","table.period":"Période","table.orders":"Commandes","table.items":"Articles","table.grossRevenue":"CA Brut","table.subtotalVat":"TVA Articles","table.netRevenue":"CA Net","table.shippingVat":"TVA Livraison","table.payout":"Versement","table.totalCost":"Coût total","table.profit":"Profit","table.spending":"Dépenses","settings.showSpending":"Afficher les dépenses","settings.showSpending.tooltip":"Ajoute une ligne de dépenses et les déduit du profit. Les dépenses ne sont pas liées à un compte précis : le total complet est donc toujours utilisé.","summary.spending":"Dépenses","summary.spending.tooltip":"Total des dépenses de votre journal (saisies manuelles et frais Dotb & Vinted synchronisés) pour la période sélectionnée.","table.noData":"Aucune donnée pour la période sélectionnée","vat.title":"TVA par pays","vat.country":"Pays","vat.itemVat":"TVA Articles","vat.shippingVat":"TVA Livraison","vat.totalVat":"TVA Totale","vat.yearlyTotals":"Totaux annuels par pays","export.csv":"Exporter CSV","csv.period":"Période","csv.currency":"Devise","csv.orders":"Commandes","csv.items":"Articles","csv.grossRevenue":"CA Brut","csv.netRevenue":"CA Net","csv.itemVat":"TVA Articles","csv.shippingTotal":"Total Livraison","csv.shippingVat":"TVA Livraison","csv.payout":"Versement","csv.serviceFees":"Frais de service","csv.spending":"Dépenses","csv.country":"Pays","csv.totalVat":"TVA Totale","csv.section.periods":"--- Répartition par période ---","csv.section.vatByCountry":"--- TVA par pays ---","csv.section.totals":"--- Totaux ---"},Ft={"page.title":"Contabilidad","page.syncHelp":"¿Como sincronizar tus pedidos?","beta.badge":"Beta","beta.disclaimer":"Esta función está en beta. Verifique todos los cálculos con su contador antes de utilizarlos para declaraciones fiscales oficiales.","settings.periodType":"Período","settings.monthly":"Mensual","settings.quarterly":"Trimestral","settings.dateField":"Fecha basada en","settings.dateField.tooltip":"Solo se incluyen las transacciones completadas. Elige si agruparlas por la fecha del pedido o por la fecha de finalización.","settings.orderDate":"Fecha de pedido","settings.statusUpdatedAt":"Fecha de finalización","settings.includePending":"Incluir pedidos pendientes","settings.includePending.tooltip":"Incluye pedidos que aún no están completados (en curso o en tránsito). Advertencia: usar esto para la contabilidad puede provocar una sobre-declaración, ya que los pedidos pendientes pueden ser cancelados o devueltos.","settings.showVat":"Mostrar IVA","settings.showVat.tooltip":"Activa esto solo si estás registrado para el IVA y necesitas declararlo a las autoridades fiscales.","settings.showProfit":"Mostrar benef
10icio","settings.showProfit.tooltip":"Solo es preciso si rellenas el precio de compra de tus artículos.","settings.year":"Año","settings.display":"Ajustes contables","accounts.placeholder":"Todas las cuentas","summary.totalOrders":"Total pedidos","summary.totalOrders.tooltip":"Número de pedidos en el período","summary.totalItems":"Artículos vendidos","summary.totalItems.tooltip":"Número de artículos vendidos en el período","summary.grossRevenue":"Ingresos brutos","summary.grossRevenue.tooltip":"Ingresos totales con IVA incluido","summary.netRevenue":"Ingresos netos","summary.netRevenue.tooltip":"Ingresos sin IVA (Bruto - IVA)","summary.totalVat":"IVA total","summary.totalVat.tooltip":"Suma del IVA de artículos y envío","summary.payout":"Total pagado","summary.payout.tooltip":"Cantidad recibida de Vinted","summary.profit":"Beneficio","summary.profit.tooltip":"Pago menos el coste total de compra. Solo preciso si los precios de compra están rellenados.","summary.profit.tooltip.withVat":"Pago menos el coste total de compra e IVA (artículos + envío). Solo preciso si los precios de compra están rellenados.","table.metric":"Métrica","table.total":"Total","table.period":"Período","table.orders":"Pedidos","table.items":"Artículos","table.grossRevenue":"Bruto","table.subtotalVat":"IVA Art.","table.netRevenue":"Neto","table.shippingVat":"IVA Envío","table.payout":"Pago","table.totalCost":"Coste total","table.profit":"Beneficio","table.spending":"Gastos","settings.showSpending":"Mostrar gastos","settings.showSpending.tooltip":"Añade una fila de gastos y los deduce del beneficio. Los gastos no están vinculados a una cuenta concreta, por lo que siempre se usa el total completo.","summary.spending":"Gastos","summary.spending.tooltip":"Total de gastos de tu registro (entradas manuales y comisiones de Dotb y Vinted sincronizadas) del período seleccionado.","table.noData":"Sin datos para el período seleccionado","vat.title":"IVA por país","vat.country":"País","vat.itemVat":"IVA Artículos","vat.shippingVat":"IVA Envío","vat.totalVat":"IVA Total","vat.yearlyTotals":"Totales anuales por país","export.csv":"Exportar CSV","csv.period":"Período","csv.currency":"Moneda","csv.orders":"Pedidos","csv.items":"Artículos","csv.grossRevenue":"Ingresos Brutos","csv.netRevenue":"Ingresos Netos","csv.itemVat":"IVA Artículos","csv.shippingTotal":"Total Envío","csv.shippingVat":"IVA Envío","csv.payout":"Pago","csv.serviceFees":"Comisiones","csv.spending":"Gastos","csv.country":"País","csv.totalVat":"IVA Total","csv.section.periods":"--- Desglose por período ---","csv.section.vatByCountry":"--- IVA por país ---","csv.section.totals":"--- Totales ---"},Lt={"page.title":"Contabilità","page.syncHelp":"Come sincronizzare i tuoi ordini?","beta.badge":"Beta","beta.disclaimer":"Questa funzionalità è in beta. Verificare tutti i calcoli con il proprio commercialista prima di utilizzarli per le dichiarazioni fiscali ufficiali.","settings.periodType":"Periodo","settings.monthly":"Mensile","settings.quarterly":"Trimestrale","settings.dateField":"Data basata su","settings.dateField.tooltip":"Sono incluse solo le transazioni completate. Scegli se raggrupparle per data dell'ordine o per data di completamento.","settings.orderDate":"Data dell'ordine","settings.statusUpdatedAt":"Data di completamento","settings.includePending":"Includi ordini in sospeso","settings.includePending.tooltip":"Include gli ordini non ancora completati (in corso o in transito). Attenzione: utilizzare questa opzione per la contabilità può comportare una sovra-dichiarazione, poiché gli ordini in sospeso possono ancora essere annullati o restituiti.","settings.showVat":"Mostra IVA","settings.showVat.tooltip":"Attiva solo se sei registrato per l'IVA e devi dichiararla alle autorità fiscali.","settings.showProfit":"Mostra profitto","settings.showProfit.tooltip":"Preciso solo se compili il prezzo d'acquisto dei tuoi articoli.","settings.year":"Anno","settings.display":"Impostazioni contabili","accounts.placeholder":"Tutti gli account","summary.totalOrders":"Totale ordini","summary.totalOrders.tooltip":"Numero di ordini nel periodo","summary.totalItems":"Articoli venduti","summary.totalItems.tooltip":"Numero di articoli venduti nel periodo","summary.grossRevenue":"Ricavi lordi","summary.grossRevenue.tooltip":"Ricavi totali IVA inclusa","summary.netRevenue":"Ricavi netti","summary.netRevenue.tooltip":"Ricavi esclusa IVA (Lordo - IVA)","summary.totalVat":"IVA totale","summary.totalVat.tooltip":"Somma dell'IVA articoli e spedizione","summary.payout":"Totale ricevuto","summary.payout.tooltip":"Importo ricevuto da Vinted","summary.profit":"Profitto","summary.profit.tooltip":"Pagamento meno il costo totale d'acquisto. Preciso solo se i prezzi d'acquisto sono compilati.","summary.profit.tooltip.withVat":"Pagamento meno il costo totale d'acquisto e IVA (articoli + spedizione). Preciso solo se i prezzi d'acquisto sono compilati.","table.metric":"Metrica","table.total":"Totale","table.period":"Periodo","table.orders":"Ordini","table.items":"Articoli","table.grossRevenue":"Lordo","table.subtotalVat":"IVA Art.","table.netRevenue":"Netto","table.shippingVat":"IVA Sped.","table.payout":"Pagamento","table.totalCost":"Costo totale","table.profit":"Profitto","table.spending":"Spese","settings.showSpending":"Mostra spese","settings.showSpending.tooltip":"Aggiunge una riga delle spese e le detrae dal profitto. Le spese non sono legate a un account specifico, quindi viene sempre usato il totale completo.","summary.spending":"Spese","summary.spending.tooltip":"Totale delle spese dal tuo registro (voci manuali e commissioni Dotb e Vinted sincronizzate) per il periodo selezionato.","table.noData":"Nessun dato per il periodo selezionato","vat.title":"IVA per paese","vat.country":"Paese","vat.itemVat":"IVA Articoli","vat.shippingVat":"IVA Spedizione","vat.totalVat":"IVA Totale","vat.yearlyTotals":"Totali annuali per paese","export.csv":"Esporta CSV","csv.period":"Periodo","csv.currency":"Valuta","csv.orders":"Ordini","csv.items":"Articoli","csv.grossRevenue":"Ricavi Lordi","csv.netRevenue":"Ricavi Netti","csv.itemVat":"IVA Articoli","csv.shippingTotal":"Totale Spedizione","csv.shippingVat":"IVA Spedizione","csv.payout":"Pagamento","csv.serviceFees":"Commissioni","csv.spending":"Spese","csv.country":"Paese","csv.totalVat":"IVA Totale","csv.section.periods":"--- Ripartizione per periodo ---","csv.section.vatByCountry":"--- IVA per paese ---","csv.section.totals":"--- Totali ---"},Ut={"page.title":"Contabilidade","page.syncHelp":"Como sincronizar as suas encomendas?","beta.badge":"Beta","beta.disclaimer":"Esta funcionalidade está em beta. Verifique todos os cálculos com o seu contabilista antes de os utilizar para declarações fiscais oficiais.","settings.periodType":"Período","settings.monthly":"Mensal","settings.quarterly":"Trimestral","settings.dateField":"Data baseada em","settings.dateField.tooltip":"Apenas transações concluídas são incluídas. Escolha se deseja agrupá-las pela data do pedido ou pela data de conclusão.","settings.orderDate":"Data do pedido","settings.statusUpdatedAt":"Data de conclusão","settings.includePending":"Incluir pedidos pendentes","settings.includePending.tooltip":"Inclui pedidos que ainda não foram concluídos (em curso ou em trânsito). Aviso: usar isto para a contabilidade pode levar a uma sobre-declaração, pois os pedidos pendentes podem ainda ser cancelados ou devolvidos.","settings.showVat":"Mostrar IVA","settings.showVat.tooltip":"Ative apenas se estiver registado para o IVA e precisar de o declarar às autoridades fiscais.","settings.showProfit":"Mostrar lucro","settings.showProfit.tooltip":"Só é preciso se preencher o preço de compra dos seus artigos.","settings.year":"Ano","settings.display":"Configurações contábeis","accounts.placeholder":"Todas as contas","summary.totalOrders":"Total pedidos","summary.totalOrders.tooltip":"Número de pedidos no período","summary.totalItems":"Itens vendidos","summary.totalItems.tooltip":"Número de itens vendidos no período","summary.grossRevenue":"Receita bruta","summary.grossRevenue.tooltip":"Receita total com IVA incluído","summary.netRevenue":"Receita líquida","summary.netRevenue.tooltip":"Receita sem IVA (Bruto - IVA)","summary.totalVat":"IVA total","summary.totalVat.tooltip":"Soma do IVA de itens e envio","summary.payout":"Total recebido","summary.payout.tooltip":"Valor recebido do Vinted","summary.profit":"Lucro","summary.profit.tooltip":"Pagamento menos o custo total de compra. Só preciso se os preços de compra estiverem preenchidos.","summary.profit.tooltip.withVat":"Pagamento menos o custo total de compra e IVA (artigos + envio). Só preciso se os preços de compra estiverem preenchidos.","table.metric":"Métrica","table.total":"Total","table.period":"Período","table.orders":"Pedidos","table.items":"Itens","table.grossRevenue":"Bruto","table.subtotalVat":"IVA Itens","table.netRevenue":"Líquido","table.shippingVat":"IVA Envio","table.payout":"Pagamento","table.totalCost":"Custo total","table.profit":"Lucro","table.spending":"Despesas","settings.showSpending":"Mostrar despesas","settings.showSpending.tooltip":"Adiciona uma linha de despesas e deduz-as do lucro. As despesas não estão associadas a uma conta específica, pelo que é sempre usado o total completo.","summary.spending":"Despesas","summary.spending.tooltip":"Total de despesas do seu registo (entradas manuais e taxas Dotb e Vinted sincronizadas) para o período selecionado.","table.noData":"Sem dados para o período selecionado","vat.title":"IVA por país","vat.country":"País","vat.itemVat":"IVA Itens","vat.shippingVat":"IVA Envio","vat.totalVat":"IVA Total","vat.yearlyTotals":"Totais anuais por país","export.csv":"Exportar CSV","csv.period":"Período","csv.currency":"Moeda","csv.orders":"Pedidos","csv.items":"Itens","csv.grossRevenue":"Receita Bruta","csv.netRevenue":"Receita Líquida","csv.itemVat":"IVA Itens","csv.shippingTotal":"Total Envio","csv.shippingVat":"IVA Envio","csv.payout":"Pagamento","csv.serviceFees":"Taxas de Serviço","csv.spending":"Despesas","csv.country":"País","csv.totalVat":"IVA Total","csv.section.periods":"--- Distribuição por período ---","csv.section.vatByCountry":"--- IVA por país ---","csv.section.totals":"--- Totais ---"},qt={"page.title":"Boekhouding","page.syncHelp":"Hoe je bestellingen synchroniseren?","beta.badge":"Beta","beta.disclaimer":"Deze functie is 
10in bèta. Controleer alle berekeningen met uw accountant voordat u ze gebruikt voor officiële belastingaangiften.","settings.periodType":"Periode","settings.monthly":"Maandelijks","settings.quarterly":"Kwartaal","settings.dateField":"Datum gebaseerd op","settings.dateField.tooltip":"Alleen voltooide transacties worden opgenomen. Kies of je ze wilt groeperen op besteldatum of op voltooiingsdatum.","settings.orderDate":"Besteldatum","settings.statusUpdatedAt":"Voltooiingsdatum","settings.includePending":"Lopende bestellingen meenemen","settings.includePending.tooltip":"Neem bestellingen mee die nog niet zijn voltooid (lopend of onderweg). Waarschuwing: dit gebruiken voor boekhouding kan leiden tot een te hoge aangifte, omdat lopende bestellingen nog kunnen worden geannuleerd of geretourneerd.","settings.showVat":"BTW tonen","settings.showVat.tooltip":"Schakel dit alleen in als je BTW-plichtig bent en BTW moet aangeven bij de belastingdienst.","settings.showProfit":"Winst tonen","settings.showProfit.tooltip":"Alleen nauwkeurig als je de aankoopprijs van je artikelen invult.","settings.year":"Jaar","settings.display":"Boekhoudingsinstellingen","accounts.placeholder":"Alle accounts","summary.totalOrders":"Totaal bestellingen","summary.totalOrders.tooltip":"Aantal bestellingen in de periode","summary.totalItems":"Verkochte artikelen","summary.totalItems.tooltip":"Aantal verkochte artikelen in de periode","summary.grossRevenue":"Bruto omzet","summary.grossRevenue.tooltip":"Totale omzet inclusief BTW","summary.netRevenue":"Netto omzet","summary.netRevenue.tooltip":"Omzet exclusief BTW (Bruto - BTW)","summary.totalVat":"Totaal BTW","summary.totalVat.tooltip":"Som van artikel-BTW en verzend-BTW","summary.payout":"Totaal uitbetaald","summary.payout.tooltip":"Bedrag ontvangen van Vinted","summary.profit":"Winst","summary.profit.tooltip":"Uitbetaling minus totale aankoopkosten. Alleen nauwkeurig als aankoopprijzen zijn ingevuld.","summary.profit.tooltip.withVat":"Uitbetaling minus totale aankoopkosten en btw (artikelen + verzending). Alleen nauwkeurig als aankoopprijzen zijn ingevuld.","table.metric":"Metriek","table.total":"Totaal","table.period":"Periode","table.orders":"Bestellingen","table.items":"Artikelen","table.grossRevenue":"Bruto","table.subtotalVat":"BTW Art.","table.netRevenue":"Netto","table.shippingVat":"BTW Verz.","table.payout":"Uitbetaling","table.totalCost":"Totale kosten","table.profit":"Winst","table.spending":"Uitgaven","settings.showSpending":"Uitgaven tonen","settings.showSpending.tooltip":"Voegt een uitgavenrij toe en trekt je uitgaven af van de winst. Uitgaven zijn niet aan een specifiek account gekoppeld, dus het volledige totaal wordt altijd gebruikt.","summary.spending":"Uitgaven","summary.spending.tooltip":"Totale uitgaven uit je overzicht (handmatige invoer en gesynchroniseerde Dotb- en Vinted-kosten) voor de geselecteerde periode.","table.noData":"Geen gegevens voor de geselecteerde periode","vat.title":"BTW per land","vat.country":"Land","vat.itemVat":"BTW Artikelen","vat.shippingVat":"BTW Verzending","vat.totalVat":"Totaal BTW","vat.yearlyTotals":"Jaartotalen per land","export.csv":"Exporteer CSV","csv.period":"Periode","csv.currency":"Valuta","csv.orders":"Bestellingen","csv.items":"Artikelen","csv.grossRevenue":"Bruto Omzet","csv.netRevenue":"Netto Omzet","csv.itemVat":"BTW Artikelen","csv.shippingTotal":"Totaal Verzending","csv.shippingVat":"BTW Verzending","csv.payout":"Uitbetaling","csv.serviceFees":"Servicekosten","csv.spending":"Uitgaven","csv.country":"Land","csv.totalVat":"Totaal BTW","csv.section.periods":"--- Uitsplitsing per periode ---","csv.section.vatByCountry":"--- BTW per land ---","csv.section.totals":"--- Totalen ---"},Wt={"page.title":"Księgowość","page.syncHelp":"Jak zsynchronizowac zamowienia?","beta.badge":"Beta","beta.disclaimer":"Ta funkcja jest w wersji beta. Zweryfikuj wszystkie obliczenia z księgowym przed wykorzystaniem ich do oficjalnych deklaracji podatkowych.","settings.periodType":"Okres","settings.monthly":"Miesięczny","settings.quarterly":"Kwartalny","settings.dateField":"Data oparta na","settings.dateField.tooltip":"Uwzględniane są tylko zakończone transakcje. Wybierz, czy grupować je według daty zamówienia, czy daty zakończenia.","settings.orderDate":"Data zamówienia","settings.statusUpdatedAt":"Data zakończenia","settings.includePending":"Uwzględnij oczekujące zamówienia","settings.includePending.tooltip":"Uwzględnia zamówienia, które nie zostały jeszcze zakończone (w trakcie lub w drodze). Uwaga: używanie tego do księgowości może prowadzić do zawyżenia deklaracji, ponieważ oczekujące zamówienia mogą zostać anulowane lub zwrócone.","settings.showVat":"Pokaż VAT","settings.showVat.tooltip":"Włącz tylko jeśli jesteś zarejestrowany jako płatnik VAT i musisz go rozliczać z urzędem skarbowym.","settings.showProfit":"Pokaż zysk","settings.showProfit.tooltip":"Dokładne tylko jeśli uzupełnisz cenę zakupu swoich przedmiotów.","settings.year":"Rok","settings.display":"Ustawienia księgowe","accounts.placeholder":"Wszystkie konta","summary.totalOrders":"Suma zamówień","summary.totalOrders.tooltip":"Liczba zamówień w okresie","summary.totalItems":"Sprzedane przedmioty","summary.totalItems.tooltip":"Liczba sprzedanych przedmiotów w okresie","summary.grossRevenue":"Przychód brutto","summary.grossRevenue.tooltip":"Całkowity przychód z VAT","summary.netRevenue":"Przychód netto","summary.netRevenue.tooltip":"Przychód bez VAT (Brutto - VAT)","summary.totalVat":"VAT razem","summary.totalVat.tooltip":"Suma VAT od przedmiotów i wysyłki","summary.payout":"Suma wypłat","summary.payout.tooltip":"Kwota otrzymana od Vinted","summary.profit":"Zysk","summary.profit.tooltip":"Wypłata minus całkowity koszt zakupu. Dokładne tylko jeśli ceny zakupu są uzupełnione.","summary.profit.tooltip.withVat":"Wypłata minus całkowity koszt zakupu i VAT (przedmioty + wysyłka). Dokładne tylko jeśli ceny zakupu są uzupełnione.","table.metric":"Metryka","table.total":"Suma","table.period":"Okres","table.orders":"Zamówienia","table.items":"Przedmioty","table.grossRevenue":"Brutto","table.subtotalVat":"VAT Przed.","table.netRevenue":"Netto","table.shippingVat":"VAT Wys.","table.payout":"Wypłata","table.totalCost":"Koszt całkowity","table.profit":"Zysk","table.spending":"Wydatki","settings.showSpending":"Pokaż wydatki","settings.showSpending.tooltip":"Dod
10aje wiersz wydatków i odejmuje je od zysku. Wydatki nie są powiązane z konkretnym kontem, dlatego zawsze używana jest pełna suma.","summary.spending":"Wydatki","summary.spending.tooltip":"Łączne wydatki z Twojego rejestru (wpisy ręczne oraz zsynchronizowane opłaty Dotb i Vinted) za wybrany okres.","table.noData":"Brak danych dla wybranego okresu","vat.title":"VAT wg kraju","vat.country":"Kraj","vat.itemVat":"VAT Przedmioty","vat.shippingVat":"VAT Wysyłka","vat.totalVat":"VAT Razem","vat.yearlyTotals":"Sumy roczne wg kraju","export.csv":"Eksportuj CSV","csv.period":"Okres","csv.currency":"Waluta","csv.orders":"Zamówienia","csv.items":"Przedmioty","csv.grossRevenue":"Przychód Brutto","csv.netRevenue":"Przychód Netto","csv.itemVat":"VAT Przedmioty","csv.shippingTotal":"Suma Wysyłki","csv.shippingVat":"VAT Wysyłka","csv.payout":"Wypłata","csv.serviceFees":"Opłaty Serwisowe","csv.spending":"Wydatki","csv.country":"Kraj","csv.totalVat":"VAT Razem","csv.section.periods":"--- Rozkład według okresu ---","csv.section.vatByCountry":"--- VAT według kraju ---","csv.section.totals":"--- Sumy ---"},$t={"page.title":"Buchhaltung","page.syncHelp":"So synchronisieren Sie Ihre Bestellungen?","beta.badge":"Beta","beta.disclaimer":"Diese Funktion befindet sich in der Beta-Phase. Bitte überprüfen Sie alle Berechnungen mit Ihrem Steuerberater, bevor Sie sie für offizielle Steuererklärungen verwenden.","settings.periodType":"Zeitraum","settings.monthly":"Monatlich","settings.quarterly":"Vierteljährlich","settings.dateField":"Datum basiert auf","settings.dateField.tooltip":"Nur abgeschlossene Transaktionen werden berücksichtigt. Wählen Sie, ob nach Bestelldatum oder Abschlussdatum gruppiert werden soll.","settings.orderDate":"Bestelldatum","settings.statusUpdatedAt":"Abschlussdatum","settings.includePending":"Ausstehende Bestellungen einbeziehen","settings.includePending.tooltip":"Bestellungen einbeziehen, die noch nicht abgeschlossen sind (in Bearbeitung oder unterwegs). Warnung: Die Verwendung für die Buchhaltung kann zu einer Über-Deklaration führen, da ausstehende Bestellungen noch storniert oder zurückgegeben werden können.","settings.showVat":"MwSt. anzeigen","settings.showVat.tooltip":"Aktivieren Sie dies nur, wenn Sie umsatzsteuerpflichtig sind und die MwSt. beim Finanzamt melden müssen.","settings.showProfit":"Gewinn anzeigen","settings.showProfit.tooltip":"Nur genau, wenn Sie den Einkaufspreis Ihrer Artikel ausfüllen.","settings.year":"Jahr","settings.display":"Buchhaltungseinstellungen","accounts.placeholder":"Alle Konten","summary.totalOrders":"Bestellungen gesamt","summary.totalOrders.tooltip":"Anzahl der Bestellungen im Zeitraum","summary.totalItems":"Verkaufte Artikel","summary.totalItems.tooltip":"Anzahl der verkauften Artikel im Zeitraum","summary.grossRevenue":"Bruttoumsatz","summary.grossRevenue.tooltip":"Gesamtumsatz inkl. MwSt.","summary.netRevenue":"Nettoumsatz","summary.netRevenue.tooltip":"Umsatz ohne MwSt. (Brutto - MwSt.)","summary.totalVat":"MwSt. gesamt","summary.totalVat.tooltip":"Summe aus Artikel-MwSt. und Versand-MwSt.","summary.payout":"Auszahlung gesamt","summary.payout.tooltip":"Von Vinted erhaltener Betrag","summary.profit":"Gewinn","summary.profit.tooltip":"Auszahlung minus Gesamteinkaufskosten. Nur genau, wenn Einkaufspreise ausgefüllt sind.","summary.profit.tooltip.withVat":"Auszahlung minus Gesamteinkaufskosten und MwSt. (Artikel + Versand). Nur genau, wenn Einkaufspreise ausgefüllt sind.","table.metric":"Kennzahl","table.total":"Gesamt","table.period":"Zeitraum","table.orders":"Bestellungen","table.items":"Artikel","table.grossRevenue":"Brutto","table.subtotalVat":"MwSt. Art.","table.netRevenue":"Netto","table.shippingVat":"MwSt. Vers.","table.payout":"Auszahlung","table.totalCost":"Gesamtkosten","table.profit":"Gewinn","table.spending":"Ausgaben","settings.showSpending":"Ausgaben anzeigen","settings.showSpending.tooltip":"Fügt eine Ausgabenzeile hinzu und zieht deine Ausgaben vom Gewinn ab. Ausgaben sind keinem bestimmten Konto zugeordnet, daher wird immer die volle Summe verwendet.","summary.spending":"Ausgaben","summary.spending.tooltip":"Gesamtausgaben aus deinem Verzeichnis (manuelle Einträge und synchronisierte Dotb- und Vinted-Gebühren) für den gewählten Zeitraum.","table.noData":"Keine Daten für den ausgewählten Zeitraum","vat.title":"MwSt. nach Land","vat.country":"Land","vat.itemVat":"MwSt. Artikel","vat.shippingVat":"MwSt. Versand","vat.totalVat":"MwSt. Gesamt","vat.yearlyTotals":"Jahressummen nach Land","export.csv":"CSV exportieren","csv.period":"Zeitraum","csv.currency":"Währung","csv.orders":"Bestellungen","csv.items":"Artikel","csv.grossRevenue":"Bruttoumsatz","csv.netRevenue":"Nettoumsatz","csv.itemVat":"MwSt. Artikel","csv.shippingTotal":"Versand Gesamt","csv.shippingVat":"MwSt. Versand","csv.payout":"Auszahlung","csv.serviceFees":"Servicegebühren","csv.spending":"Ausgaben","csv.country":"Land","csv.totalVat":"MwSt. Gesamt","csv.section.periods":"--- Aufschlüsselung nach Zeitraum ---","csv.section.vatByCountry":"--- MwSt. nach Land ---","csv.section.totals":"--- Summen ---"},Ke={en:Bt,fr:Ot,es:Ft,it:Lt,pt:Ut,nl:qt,pl:Wt,de:$t};function Ht(d){const y=d in Ke?d:"en";return Ke[y]}function Ze(d){return{...d,...bt()}}
10const Gt=({locale:d="en",accounts:y,periodData:w,totals:l,vatByCountry:v,vatCountryTotals:m,settings:u})=>{const n=Te(),{pushEvent:I}=dt(),[i,r]=ye.useState(()=>Ze(u)),[q,se]=ye.useState(!1),[oe,pe]=ye.useState(!0),me=ye.useRef(!1);ye.useEffect(()=>{if(I&&!me.current){me.current=!0;const ee=Intl.DateTimeFormat().resolvedOptions().timeZone,_=Ze(u);I("init",{timezone:ee,period_type:_.periodType,date_field:_.dateField,show_vat:_.showVat,show_profit:_.showProfit,show_spending:_.showSpending,include_pending:_.includePending,year:_.year,account_ids:_.accountIds})}},[]),ye.useEffect(()=>{me.current&&oe&&pe(!1)},[l,oe]);const ue=ee=>{const _={...i,...ee};r(_),wt({periodType:_.periodType,dateField:_.dateField,showVat:_.showVat,showProfit:_.showProfit,showSpending:_.showSpending,includePending:_.includePending}),I&&I("settings_changed",{period_type:_.periodType,date_field:_.dateField,show_vat:_.showVat,show_profit:_.showProfit,show_spending:_.showSpending,include_pending:_.includePending,year:_.year,account_ids:_.accountIds})},he=(ee,_)=>{const ae=Tt.unparse(ee),Q=new Blob([ae],{type:"text/csv;charset=utf-8;"}),R=URL.createObjectURL(Q),s=document.createElement("a");s.href=R,s.download=_,s.click(),URL.revokeObjectURL(R)},Se=()=>{se(!0);try{const ee=i.periodType==="monthly"?"monthly":"quarterly",_=new Date().toISOString().split("T")[0];let ae="";if(i.accountIds.length>0){const t=y.filter(a=>i.accountIds.includes(a.id));t.length===1?ae=`_${t[0].name.replace(/[^a-zA-Z0-9]/g,"_")}`:t.length>1&&(ae=`_${t.length}_accounts`)}const Q=`accounting_${i.year}_${ee}${ae}_${_}`,R=i.showVat?[n.formatMessage({id:"csv.period"}),n.formatMessage({id:"csv.currency"}),n.formatMessage({id:"csv.orders"}),n.formatMessage({id:"csv.items"}),n.formatMessage({id:"csv.grossRevenue"}),n.formatMessage({id:"csv.netRevenue"}),n.formatMessage({id:"csv.itemVat"}),n.formatMessage({id:"csv.shippingTotal"}),n.formatMessage({id:"csv.shippingVat"}),n.formatMessage({id:"csv.payout"}),n.formatMessage({id:"csv.serviceFees"})]:[n.formatMessage({id:"csv.period"}),n.formatMessage({id:"csv.currency"}),n.formatMessage({id:"csv.orders"}),n.formatMessage({id:"csv.items"}),n.formatMessage({id:"csv.grossRevenue"}),n.formatMessage({id:"csv.shippingTotal"}),n.formatMessage({id:"csv.payout"}),n.formatMessage({id:"csv.serviceFees"})];i.showSpending&&R.push(n.formatMessage({id:"csv.spending"}));const s=[R];for(const t of w)for(const a of t.revenueByCurrency){const o=i.showVat?[t.periodKey,a.currency,t.orderCount,t.itemCount,a.grossRevenue,a.netRevenue,a.subtotalVat,a.shippingTotal,a.shippingVat,a.payout,a.serviceFees]:[t.periodKey,a.currency,t.orderCount,t.itemCount,a.grossRevenue,a.shippingTotal,a.payout,a.serviceFees];i.showSpending&&o.push(a.spending),s.push(o)}for(const t of l.revenueByCurrency){const a=i.showVat?[n.formatMessage({id:"table.total"}),t.currency,l.orderCount,l.itemCount,t.grossRevenue,t.netRevenue,t.subtotalVat,t.shippingTotal,t.shippingVat,t.payout,t.serviceFees]:[n.formatMessage({id:"table.total"}),t.currency,l.orderCount,l.itemCount,t.grossRevenue,t.shippingTotal,t.payout,t.serviceFees];i.showSpending&&a.push(t.spending),s.push(a)}if(he(s,`${Q}.csv`),i.showVat&&v.length>0){const a=[[n.formatMessage({id:"csv.period"}),n.formatMessage({id:"csv.country"}),n.formatMessage({id:"csv.currency"}),n.formatMessage({id:"csv.orders"}),n.formatMessage({id:"csv.grossRevenue"}),n.formatMessage({id:"csv.netRevenue"}),n.formatMessage({id:"csv.itemVat"}),n.formatMessage({id:"csv.shippingTotal"}),n.formatMessage({id:"csv.shippingVat"}),n.formatMessage({id:"csv.totalVat"})]];for(const o of v)a.push([o.periodKey,o.countryCode,o.currency,o.orderCount,o.grossRevenue,o.netRevenue,o.subtotalVat,o.shippingTotal,o.shippingVat,o.totalVat]);for(const o of m)a.push([n.formatMessage({id:"table.total"}),o.countryCode,o.currency,o.orderCount,o.grossRevenue,o.netRevenue,o.subtotalVat,o.shippingTotal,o.shippingVat,o.totalVat]);setTimeout(()=>{he(a,`vat_by_country_${i.year}_${ee}${ae}_${_}.csv`)},100)}}finally{se(!1)}};return oe?e.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:e.jsx(jt,{})}):e.jsx(xt,{children:e.jsxs("div",{className:"space-y-4 overflow-x-clip",children:[e.jsx(Nt,{settings:i,accounts:y,onChange:ue,onExport:Se,exporting:q}),e.jsx(Pt,{totals:l,showVat:i.showVat,showProfit:i.showProfit,showSpending:i.showSpending,locale:d}),e.jsx(Ct,{data:w,settings:i,locale:d}),i.showVat&&e.jsx(Dt,{data:v,totals:m,locale:d})]})})},Kt=({locale:d="en",...y})=>{const w=Ht(d);return e.jsx(ct,{locale:d,messages:w,children:e.jsx(Gt,{locale:d,...y})})},Jt=Object.freeze(Object.defineProperty({__proto__:null,default:Kt},Symbol.toStringTag,{value:"Module"}));
10export{jt as L,Tt as P,Jt as i};

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.