@adyen/adyen-platform-experience-web 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +221 -211
  4. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +103 -94
  5. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +201 -200
  6. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +19 -18
  7. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +18 -17
  8. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +17 -20
  9. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -12
  10. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +39 -43
  11. package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +10 -10
  12. package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +25 -26
  13. package/dist/es/components/internal/Calendar/calendar/utils.js +64 -16
  14. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +40 -38
  15. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
  16. package/dist/es/components/internal/DatePicker/DatePicker.js +17 -16
  17. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +14 -14
  18. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +19 -17
  19. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +81 -76
  20. package/dist/es/core/Http/utils.js +1 -1
  21. package/dist/es/core/Localization/datetime/restamper/utils.js +26 -26
  22. package/dist/es/core/core.js +1 -1
  23. package/dist/es/primitives/time/today/main.js +38 -43
  24. package/dist/style.css +1 -1
  25. package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
  26. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts +1 -1
  27. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts.map +1 -1
  28. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +3 -3
  29. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
  30. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts +1 -1
  31. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts.map +1 -1
  32. package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNDays.d.ts.map +1 -1
  33. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.d.ts.map +1 -1
  34. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.d.ts.map +1 -1
  35. package/dist/types/components/internal/Calendar/calendar/timerange/presets/yearToDate.d.ts.map +1 -1
  36. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +0 -5
  37. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
  38. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts +2 -2
  39. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts.map +1 -1
  40. package/dist/types/components/internal/Calendar/calendar/timeslice/index.d.ts.map +1 -1
  41. package/dist/types/components/internal/Calendar/calendar/types.d.ts +6 -1
  42. package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
  43. package/dist/types/components/internal/Calendar/calendar/utils.d.ts +13 -4
  44. package/dist/types/components/internal/Calendar/calendar/utils.d.ts.map +1 -1
  45. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
  46. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
  47. package/dist/types/components/internal/Calendar/types.d.ts +1 -0
  48. package/dist/types/components/internal/Calendar/types.d.ts.map +1 -1
  49. package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
  50. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
  51. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilterCore.d.ts.map +1 -1
  52. package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
  53. package/dist/types/primitives/time/today/main.d.ts.map +1 -1
  54. package/package.json +2 -1
package/dist/cjs/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Xu=Object.defineProperty;var Ku=(e,t,n)=>t in e?Xu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var w=(e,t,n)=>(Ku(e,typeof t!="symbol"?t+"":t,n),n),Lr=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var h=(e,t,n)=>(Lr(e,t,"read from private field"),n?n.call(e):t.get(e)),S=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},_=(e,t,n,o)=>(Lr(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);var zt=(e,t,n,o)=>({set _(s){_(e,t,s,n)},get _(){return h(e,t,o)}}),R=(e,t,n)=>(Lr(e,t,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("classnames"),kr="test",qu=e=>{var t;return(t=e==null?void 0:e.replace)==null?void 0:t.call(e,/([^\/])$/,"$1/")},ed=e=>e==null?void 0:e.replace(/^([^\/])/,"/$1"),td=(()=>{const e={test:"https://platform-components-external-test.adyen.com/platform-components-external/api/",live:"https://platform-components-external-live.adyen.com/platform-components-external/api/"};return t=>e[t??kr]||e[kr]})(),dn=Function.prototype.bind.bind(Function.prototype.call),ri=e=>()=>e,nd=async()=>{},ya=e=>e,oe=()=>{},od=dn(Object.prototype.toString),sd=e=>od(e).slice(8,-1),jr=e=>e===!!e,K=e=>typeof e=="function",Ms=e=>e===null,ue=e=>e==null,ns=e=>typeof e=="number",or=e=>sd(e)==="Object",qe=e=>typeof e=="string",rd=e=>typeof e=="symbol",G=e=>e===void 0,on=(e,t,n)=>(Math.min(e,n)!==e&&([e,n]=[n,e]),Math.max(e,Math.min(t,n))),_o=e=>!rd(e)&&e===~~e,sn=e=>ns(e)&&1/e===0,mc=(e,t)=>{if(Number.isInteger(e)&&Number.isInteger(t))return e+Math.floor((t-e)/2);throw TypeError(`Expects 2 integer values: [${e}, ${t}]`)},os=(e,t)=>(e%t+t)%t,ai="abort",ad="signal is aborted without reason",pn=(e,t=e)=>jr(e)?e:!!t,xe=e=>e===!0,Pt=e=>e!==!1,id=e=>!1,Fr=e=>!0,x=(e,t=!1)=>({writable:xe(t),enumerable:!0,value:e}),ce=(e,t=!0)=>({enumerable:Pt(t),get:e}),it=dn(Object.prototype.hasOwnProperty),hn=(e,t)=>e===t||!(e===e||t===t);if(!it(AbortSignal.prototype,"reason"))try{Object.defineProperty(AbortSignal.prototype,"reason",{...ce(function(){return this.aborted?To():void 0},!0),configurable:!0})}catch{}it(AbortSignal.prototype,"throwIfAborted")||(AbortSignal.prototype.throwIfAborted=function(){if(this.aborted)throw this.reason??To()});const To=(e=ad)=>new DOMException(e,"AbortError"),pc=(e,t)=>{if(!hn(e.reason,t))try{Object.defineProperty(e,"reason",x(t))}catch{}return e},cd=(e=To())=>{if("abort"in AbortSignal)return AbortSignal.abort(e);const t=new AbortController,n=G(e)?To():e,{signal:o}=t;return t.abort(n),pc(o,n),o},sr=e=>{if("any"in AbortSignal)return AbortSignal.any(e);let t=new Set,n=new AbortController;const{signal:o}=n;let s=function(){t.forEach(a=>a.removeEventListener(ai,s)),t.clear();const r=(this==null?void 0:this.reason)??To();n.abort(r),pc(o,r),n=t=s=void 0};e:{const r=Symbol("<NIL_EXCEPTION>");let a=r;t:{try{for(const i of e){if(!ss(i))throw new TypeError("Failed to convert value to 'AbortSignal'");if(i.aborted)break t;t.add(i)}}catch(i){a=i;break t}t.forEach(i=>i.addEventListener(ai,s));break e}if(s.call(o),a!==r)throw a}return o},ss=e=>e instanceof AbortSignal,Ce=Object.freeze([]),U=Object.freeze(Object.create(null)),rr=Promise.resolve();Promise.race(Ce);const ar=function(e,...t){return new Promise(n=>n(e.call(this,...t)))},ld=(e,t,n)=>{let o=t.get(e);return G(o)&&K(n)&&(G(o=n(e,t))||t.set(e,o)),o},uo=(e,t=Ce)=>{const n=`${e||""}`.trim(),o=n?n.split(/(?:\s*,\s*)+/).filter(ya):Ce;return o.length?o:t},lo=(e,t,n)=>e.includes(t)?t:ue(t)?e[0]:e.includes(n)?n:e[0],ii=dn(Array.prototype.some),fc=function e(t,n,o=new Set){for(const s of n)Array.isArray(s)?e(t,s,o):(t&&o.delete(s),o.add(s));return o};dn(fc,void 0,!1);dn(fc,void 0,!0);const ud=(...e)=>{const[t]=e,o=(e.length>=2?new Date(...e):t instanceof Date?t:new Date(qe(t)||Number.isFinite(t)?t:void 0)).getTime();return Number.isFinite(o)?o:void 0},dd=(()=>{let e=Date.now();return(t="adyen-pe")=>`${t}-${++e}`})(),Ia=(()=>{const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";return()=>e.replace(/[xy]/g,t=>{const n=Math.random()*16|0;return(t=="x"?n:n&3|8).toString(16)})})(),Ao=(e,t=U)=>or(e)?e:Ao(t,U),oo=dn(Object.create,void 0),H=dn(oo,void 0,null),ir=(e=U)=>Object.freeze({...e,defineProperty:Fr,set:Fr}),hd=e=>e&&(e==null?void 0:e.length)>0?`${e[0].toUpperCase()}${e.slice(1)}`:e,gd=e=>ue(e)||qe(e)&&/^\s*$/.test(e),md="/setup",pd=xe(void 0),ci=(()=>{let e=0;if(Number.isFinite(e)&&(e=Math.max(0,~~e)))return e})();class fd extends Error{constructor(n,o,s,r){super(s);w(this,"type");w(this,"errorCode");w(this,"requestId");this.type=n,this.name=n,this.errorCode=r,this.requestId=o}}const yd=fd;var yc=(e=>(e.NETWORK_ERROR="NETWORK_ERROR",e.CANCEL="CANCEL",e.IMPLEMENTATION_ERROR="IMPLEMENTATION_ERROR",e.ERROR="ERROR",e.EXPIRED_TOKEN="EXPIRED_TOKEN",e))(yc||{});const Id=e=>{switch(e){case 401:return"EXPIRED_TOKEN";default:return"NETWORK_ERROR"}},_d=(e,t)=>{const{headers:n=[],method:o="GET"}=e;return{method:o,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json",...n,"SDK-Version":"1.0.2"},redirect:"follow",signal:e.signal,referrerPolicy:"no-referrer-when-downgrade",...o==="POST"&&t&&{body:JSON.stringify(t)}}};function Td({message:e,level:t,errorCode:n,type:o="NETWORK_ERROR",requestId:s}){switch(t){case"silent":break;case"info":case"warn":console[t](e);break;case"error":default:throw new yd(o,s,e,n)}}function Ad(e){return e&&e.errorCode&&e.type&&(e.detail||e.invalidFields)&&e.status}function Sd(e){const t=new URLSearchParams;for(const n of Object.keys(e)){const o=e[n];ue(o)||(Array.isArray(o)?o.forEach(s=>t.append(n,s)):t.set(n,String(o)))}return t}const Ic=e=>{let t,n,o;const s=()=>{if(G(t))return;const c=t.abort.bind(t);t=void 0,c()},r=()=>(o=new Promise((c,d)=>{if(n.addEventListener("abort",function g(){n.removeEventListener("abort",g),d(e)}),n.aborted)throw e}),o.catch(oe),o),a=()=>(G(t)&&(t=new AbortController,n=t.signal,o=r()),i),i=H({abort:x(s),promise:ce(()=>o),reason:x(e),refresh:x(a),signal:ce(()=>n)});return a()},Nd=()=>{let e,t,n;const o=()=>{const r=n??oe,a=new Promise((i,c)=>{n=i,t=c});return r(e=a),s},s=H({promise:ce(()=>e),refresh:x(o),reject:x(r=>t(r)),resolve:x(r=>n(r))});return o()},rs=e=>{const t=Ic(),n=Nd();let o;return Object.defineProperties(function(...r){G(o)?n.refresh():t.abort();const a=ar.call(this,e,t.refresh().signal,...r);return(async()=>{let i=o===(o=a);try{const c=await a.finally(()=>{i=o===a,i&&(o=void 0)});i&&n.resolve(c)}catch(c){i&&n.reject(c)}})(),a},{abort:x(t.abort),promise:ce(()=>n.promise),refresh:x(()=>void n.refresh())})};class Ld{constructor(t){w(this,"_endpoints",U);w(this,"_revokeEndpointsProxy",oe);w(this,"_beforeHttp",async()=>{await this._refreshPromisor.promise.catch(oe)});w(this,"_refreshPromisor",rs((t,n)=>{const o=ss(n)?sr([n,t]):t;return this._fetchSetupEndpoint(o)}));this._session=t;let n;this.refresh=o=>(this._refreshPromisor(o).catch(oe),n??(n=this._refreshPromisor.promise.finally(()=>n=void 0).then(({endpoints:s})=>{this._resetEndpoints(),{proxy:this._endpoints,revoke:this._revokeEndpointsProxy}=this._getEndpointsProxy(s)})))}get endpoints(){return this._endpoints}_fetchSetupEndpoint(t){return this._session.http(null,{method:"POST",path:md,errorLevel:"fatal",loadingContext:this.loadingContext,signal:t})}_getEndpointsProxy(t){const n=new Set(Object.keys(t)),o=H();return Proxy.revocable(U,ir({get:(s,r,a)=>n.has(r)?(o[r]??(o[r]=(()=>{const{method:i="GET",url:c}=t[r];if(!G(c||void 0))return(...d)=>{const g=this._getHttpOptions(i,c,...d);return this._session.http(this._beforeHttp,g)}})()),o[r]):Reflect.get(s,r,a)}))}_getHttpOptions(t,n,...o){const{loadingContext:s}=this,[r,a]=o,{path:i,query:c}=Ao(a),d=c&&Sd(c);if(or(i))for(const g of Object.keys(i))n=n.replace(`{${g}}`,i[g]);return{loadingContext:s,...r,method:t,params:d,path:n}}_resetEndpoints(){this._revokeEndpointsProxy(),this._revokeEndpointsProxy=oe,this._endpoints=U}}const Cd=Ld,_c=Symbol("Error<SESSION_EXPIRED>"),Md=Symbol("Error<SESSION_FACTORY_UNAVAILABLE>"),Ed=Symbol("Error<SESSION_HTTP_UNAVAILABLE>"),vd=Symbol("Error<SESSION_INVALID>"),Tc=Symbol("Error<SESSION_REFRESH_ABORTED>"),cr="_sessionExpired",Ac="_sessionReady",bd="_sessionRefreshed",Dd="_sessionRefreshingEnd",Od="_sessionRefreshingStart",Sc="_session.deadline",Nc="_session.ready",Lc="_session.refreshingEnd",Cc="_session.refreshingStart",$d=async e=>{const{specification:t}=e.context,n=await ar(async()=>{const o=t.autoRefresh;return K(o)?o.call(t,e.session):o}).catch(id);return xe(n)},Rd=e=>{let t=e.context.emitter.on(cr,()=>s(!1)),n,o=rs(async(i,c=!1)=>{n=i;const d=xe(c)||await $d(e);n===i&&d&&e.pending&&!e.refreshing&&e.refresh(n).catch(oe)}),s=(i=!1)=>{e.refreshing||o(i)},r=()=>{t(),o.abort(),o=n=t=void 0,s=r=oe};return Object.defineProperties((i=!1)=>s(i),{destruct:ce(()=>r,!1)})},li=1e3,xd=2147483647,wd=(e,t=li,n=!1)=>{var g;let o=new AbortController,s=on(0,~~t,xd),r=xe(n);Number.isFinite(s)||(s=li);const a=((g=document.timeline)==null?void 0:g.currentTime)??performance.now(),i=()=>{o==null||o.abort(),o=void 0},c=u=>{!o||o.signal.aborted||(d(u),e(u))},d=u=>{let p=0;if(!r){const m=u-a,y=Math.round(m/s)*s;p=a+y+s-performance.now()}setTimeout(()=>requestAnimationFrame(c),p)};return d(a),r=!1,H({cancel:x(i),delay:x(t),signal:x(o.signal)})},Pd=e=>{const t={},n=Object.getOwnPropertyDescriptors(e);for(const o of Object.keys(e)){const{get:s,value:r}=n[o];t[o]=ce(s||(K(r)?r.bind(e):()=>r))}return H(t)},kd=()=>{const e={idle:null,resume:null},t={};for(const n of Object.keys(e))t[n]={get:()=>e[n]??oe,set:o=>{ue(o)?e[n]=null:K(o)&&o!==e[n]&&(e[n]=o)}};return H(t)},Mc=Symbol("<<UNSUBSCRIBE>>"),so=e=>e===Mc,as=e=>{let t;const n=Pd(e),o=kd(),s=new Map,r=new WeakMap,a=()=>Object.freeze({...n}),i=()=>s.size===0,c=g=>{if(i())return;if(so(g)){const p=[];return s.forEach((m,y)=>{p.push(y);const f=r.get(y);for(;m--;)f==null||f()}),p.forEach(m=>m(g)),!0}const u=t;t=a();for(const p of Object.keys(t))if(!hn(t[p],u[p]))return s.forEach((m,y)=>y(t)),!0;return!1},d=g=>{if(!K(g))return oe;const u=ld(g,r,()=>{let m=()=>{const y=s.get(g)||0;y===1?(m=void 0,s.delete(g),r.delete(g),i()&&(t=void 0,o.idle())):y>1&&s.set(g,y-1)};return()=>{m==null||m()}}),p=i();return s.set(g,(s.get(g)||0)+1),p&&(t=a(),o.resume()),g(t),u};return H({idle:ce(i),on:x(o),cancelSubscriptions:x(()=>c(Mc)),requestNotification:x(()=>c()),snapshot:ce(()=>t??a()),subscribe:x(d)})},Ec=(()=>{let e;const{cancelSubscriptions:t,requestNotification:n,subscribe:o,on:s}=as({now:()=>Date.now()});return s.resume=()=>{e=wd(n,1e3,!1)},s.idle=()=>{e==null||e.cancel(),e=void 0},H({cancelSubscriptions:x(t),subscribe:x(o)})})(),vc=Ec,_a=()=>{const e=new class extends EventTarget{},t=(o,...s)=>{const[r]=s;s.length&&G(r)&&console.warn("Unexpected value `undefined` provided for event detail.\n Turn off this warning by doing either of the following:\n (1) omit the optional event detail parameter.\n (2) explicitly pass `null` for the event detail parameter (instead of `undefined`).\n");const a=new CustomEvent(o,H({bubbles:x(!1),cancelable:x(!1),detail:x(r??null)}));return e.dispatchEvent(a)},n=(o,s)=>{if(!K(s))return oe;const r=a=>s.call(null,H({detail:x(a.detail),timeStamp:x(a.timeStamp),type:x(a.type)}));return e.addEventListener(o,r),()=>e.removeEventListener(o,r)};return H({emit:x(t),on:x(n)})},jd=(e,t)=>{let n,o=1/0,s,r;const a=Ic(),i=_a(),c=()=>{n==null||n.removeEventListener("abort",c),o=1/0,r==null||r(),a.refresh(),i.emit(Sc)},d=rs(async(u,p)=>{s=u;const m=await ar(()=>{const f=t.deadline;return K(f)?f.call(t,p,u):f}).catch(oe);if(s!==u)return;const y=(Array.isArray(m)?m:[m]).filter(f=>f||f===0);if(y.length>0){let f=!1,A=new Set;for(const I of y)if(ss(I)){if(f=I.aborted)break;A.add(I)}else if(o=Math.min(o,ud(I)??1/0),f=o<=Date.now())break;f||(f=A.size<1&&!Number.isFinite(o)),f?n??(n=cd()):(n=sr([...A,a.signal]),n.addEventListener("abort",c),g()),y.length=0,A.clear()}else n=void 0}),g=()=>{if(!Number.isFinite(o))return;let u=vc.subscribe(p=>{if(so(p))return c();p.now>=o&&a.abort()});r=()=>{u==null||u(),u=r=void 0}};return H({elapse:x(a.abort),elapsed:ce(()=>n&&n.aborted),on:x(i.on),refresh:x(d.bind(void 0)),signal:ce(()=>a.signal)})},Fd=(e,t)=>{let n=!1,o,s,r=!0,a;const i=Symbol("<next_session>"),c=_a();function d(m){var y;try{(y=t.assert)==null||y.call(t,m)}catch{throw vd}}function g(m){if(!K(m))throw Md}const u=rs((m,y)=>{if(!s)s=m;else return p(ss(y)?sr([y,m]):m)}),p=async m=>{let y=i;try{n=!1,s=m,r&&await(o??(o=(async()=>{await rr,r=!1,c.emit(Cc)})())),g(t.onRefresh),y=await ar(()=>t.onRefresh(a,m)).finally(()=>{if(m.aborted)throw Tc})}finally{if(s===m)try{y!==i&&(d(y),a=y,c.emit(Nc))}finally{o=void 0,r=!0,c.emit(Lc)}}};return e.on(cr,()=>n=!o),u(),H({context:x(H({emitter:x(e),specification:x(t)})),on:x(c.on),pending:ce(()=>n),promise:ce(()=>u.promise),refresh:x(u.bind(void 0)),refreshing:ce(()=>!!o),session:ce(()=>a),signal:ce(()=>s)})};class Wd{constructor(t){w(this,"_session");w(this,"_autofresh");w(this,"_deadline");w(this,"_refresher");w(this,"_eventEmitter",_a());this._specification=t,this._deadline=jd(this._eventEmitter,this._specification),this._refresher=Fd(this._eventEmitter,this._specification),this._autofresh=Rd(this._refresher),this._deadline.on(Sc,()=>this._eventEmitter.emit(cr)),this._refresher.on(Cc,()=>this._eventEmitter.emit(Od)),this._refresher.on(Lc,()=>this._eventEmitter.emit(Dd)),this._refresher.on(Nc,()=>{this._session=this._refresher.session,this._deadline.refresh(this._session).finally(()=>this._eventEmitter.emit(bd)),this._eventEmitter.emit(Ac)}),this.http=this._sessionHttp.bind(this),this.on=this._eventEmitter.on,this.refresh=this._refresher.refresh}get isExpired(){return this._deadline.elapsed}get refreshing(){return this._refresher.refreshing}_assertSessionHttp(t){if(!K(t))throw Ed}async _sessionHttp(t,...n){for(this._autofresh(!0);;)try{await this._refresher.promise.catch(oe);const{signal:o}=this._deadline;return await(t==null?void 0:t(this._session,o,...n)),this._assertSessionHttp(this._specification.http),await this._specification.http(this._session,o,...n)}catch(o){if(o!==_c)throw o;if(this._refresher.pending)continue;this._deadline.elapse()}}}const Bd="v1",Cr=(e,t)=>{try{e==null||e(t)}catch{throw t}};async function zd(e,t){const{errorLevel:n,loadingContext:o="",path:s}=e,r=_d(e,t),a=new URL(`${qu(o)}${Bd}${ed(s)}`);return e.params&&e.params.forEach((i,c)=>{const d=decodeURIComponent(i);d&&a.searchParams.append(c,d)}),(async()=>{var d;let i=!1;const c={level:n};try{const g=await fetch(a,r);if(g.ok)try{switch((d=g.headers.get("Content-Type"))==null?void 0:d.split(";",1)[0]){case"application/json":return await g.json();default:return await g.blob()}}catch(p){throw i=!0,p}c.type=Id(g.status);const u=await g.json();c.message=e.errorMessage||`Service at ${a} not available`,c.errorCode=String(u.status),c.requestId=u==null?void 0:u.requestId,Ad(u)&&(c.message=u.detail,c.errorCode=u.errorCode),Cr(e.errorHandler,c)}catch(g){if(i)throw Cr(e.errorHandler,g),g;Cr(e.errorHandler,g),c.message=e.errorMessage||`Call to ${a} failed. Error: ${g}`}Td(c)})()}class Ud{constructor(t){w(this,"assert",t=>{if(or(t)){const n=qe(t.id)?t.id.trim():void 0,o=qe(t.token)?t.token.trim():void 0;if(n&&o)return}throw void 0});w(this,"deadline",t=>{const n=[];let o,s;try{({iat:o,exp:s}=JSON.parse(atob(t==null?void 0:t.token.split(".")[1]))),n.push(s)}catch{o=Date.now()}if(!G(ci)){const r=new Date(o);n.push(r.setMilliseconds(r.getMilliseconds()+ci))}return n});w(this,"http",async(t,n,o,s)=>{const{headers:r,signal:a,...i}=o;try{const c={...i,headers:{...r,...t&&{Authorization:`Bearer ${t.token}`}},errorHandler:this._errorHandler,signal:ss(a)?sr([n,a]):n};return await zd(c,s)}catch(c){throw(c==null?void 0:c.type)===yc.EXPIRED_TOKEN?_c:c}});this.onSessionCreate=t,this._errorHandler=this._errorHandler.bind(this),Object.defineProperties(this,{autoRefresh:x(pd),onRefresh:x((n,o)=>this.onSessionCreate(o))})}_errorHandler(t){try{this.errorHandler&&this.errorHandler(t)}catch{}throw t}}const Yd=Ud,ho=Symbol("<<NO_ERR>>");function Hd(e){/* istanbul ignore if -- @preserve */if(e===ho)throw new TypeError("Illegal error")}const Gd=()=>{let e=ho;const t=()=>{e=ho},n=o=>{Hd(o),e=o};return H({error:ce(()=>e===ho?void 0:e),hasError:ce(()=>e!==ho),reset:x(t),set:x(n)})};class Vd{constructor(){w(this,"_canSkipSessionRefresh",!1);w(this,"_refreshPromisorSignal");w(this,"_errorContainer",Gd());w(this,"_specification",new Yd);w(this,"_sessionContext",new Wd(this._specification));w(this,"_setupContext",new Cd(this._sessionContext));w(this,"_refreshPromisor",rs(async(t,n=!1)=>{let o=!this._refreshPromisorSignal,s=this._refreshPromisorSignal===(this._refreshPromisorSignal=t);const r=xe(n)&&this._canSkipSessionRefresh;o&&(o=!1,this._errorContainer.reset(),this._onAuthStateChanged());try{await(r?this._setupContext:this._sessionContext).refresh(t).finally(()=>s=this._refreshPromisorSignal===t)}catch(a){if(!s)return;!t.aborted&&(r||a!==Tc)&&this._errorContainer.set(a),o=!r}finally{(o||r&&s)&&(this._refreshPromisorSignal=void 0,this._onAuthStateChanged())}}));w(this,"_watchlist",as({endpoints:()=>this._setupContext.endpoints,hasError:()=>this._errorContainer.hasError,http:ri(this._sessionContext.http.bind(this._sessionContext,null)),isExpired:()=>this._sessionContext.isExpired,refresh:ri(this._refresh.bind(this)),refreshing:()=>!!this._refreshPromisorSignal}));this.destroy=()=>{this._watchlist.on.resume=void 0,this._watchlist.cancelSubscriptions()},this.subscribe=this._watchlist.subscribe,this._watchlist.on.resume=()=>{const t=[this._sessionContext.on(cr,()=>{this._canSkipSessionRefresh=!1,this._onAuthStateChanged()}),this._sessionContext.on(Ac,()=>{this._refresh(this._canSkipSessionRefresh=!0)})];this._watchlist.on.idle=()=>{this._watchlist.on.idle=void 0,t.forEach(n=>n()),t.length=0},this._refresh()}}get context(){return this._watchlist.snapshot}set loadingContext(t){this._setupContext.loadingContext=t}set errorHandler(t){this._specification.errorHandler=t}set onSessionCreate(t){this._specification.onSessionCreate!==t&&(this._specification.onSessionCreate=t,this._refreshPromisorSignal&&K(this._specification.onSessionCreate)&&(this._canSkipSessionRefresh=!1,this._refresh()))}_onAuthStateChanged(){this._watchlist.requestNotification()}_refresh(t=!1){this._refreshPromisor(t)}}const Zd={AED:"د.إ",AFN:"؋",ALL:"L",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"₼",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"Bs.",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BYN:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"Fr.",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KYD:"$",KZT:"₸",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTL:"Lt",LVL:"Ls",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"},bc=Zd,Jd={IDR:1,JPY:1,KRW:1,VND:1,BYR:1,CVE:1,DJF:1,GHC:1,GNF:1,KMF:1,PYG:1,RWF:1,UGX:1,VUV:1,XAF:1,XOF:1,XPF:1,MRO:10,BHD:1e3,IQD:1e3,JOD:1e3,KWD:1e3,OMR:1e3,LYD:1e3,TND:1e3},Qd=Jd,Xd=e=>Qd[e]||100,Kd=e=>!!bc[e],Dc=e=>Kd(e)?bc[e]:null,qd=(e,t)=>{const n=Xd(t);return parseInt(String(e),10)/n},eh=(e,t,n,o=!1,s={})=>{const r=e.toString(),a=qd(r,n),i=t.replace("_","-"),c={style:"currency",currency:n,currencyDisplay:"symbol",...s};try{return o?th(i,c,a):a.toLocaleString(i,c)}catch{return r}},th=(e,t,n)=>Intl.NumberFormat(e,t).formatToParts(n).filter(o=>o.type!=="currency").reduce((o,s)=>o+s.value,"").trim(),nh="Account",oh="Account Balance",sh="Additions",rh="Adjustments",ah="Amount",ih="Apply",ch="Balance account",lh="Balance account ID",uh="Booked",dh="Captured",hh="Category",gh="Chargebacks",mh="Close",ph="Contact support for help and share error code %{requestId}",fh="Corrections",yh="Currency",Ih="Date",_h="Date range",Th="Description",Ah="Dismiss",Sh="Email",Nh="Entity was not found",Lh="Transaction not found for the specified Account Holder",Ch="Fees",Mh="Filter bar",Eh="From",vh="Funds captured",bh="Grant issued",Dh="Grant repayments",Oh="Hide content",$h="ID",Rh="Incomplete field",xh="Mobile",wh="Net payout",Ph="Next Payouts",kh="No data",jh="No negative numbers allowed",Fh="No payouts found",Wh="No transactions found",Bh="Other",zh="Paginated navigation",Uh="Payment ID",Yh="Payment method",Hh="Payout Details",Gh="Payouts",Vh="Pending",Zh="Please, reach out to support for assistance.",Jh="Reach out to support",Qh="Reference ID",Xh="Refresh",Kh="Refunds",qh="Remaining amount",eg="Reset",tg="Reversed",ng="Something went wrong.",og="Status",sg="Structured list",rg="Subtractions",ag="Tabs",ig="The error code is %{requestId}",cg="There are no results",lg="The request is missing required fields or contains invalid data.",ug="There was an unexpected error",dg="The selected balance account is incorrect",hg="Timezone",gg="To",mg="Total incoming",pg="Total outgoing",fg="To value should be equal or greater than the From value",yg="Transaction details",Ig="Transactions",_g="Transactions overview",Tg="Transaction type",Ag="Transfers",Sg="Try a different search or reset your filters, and we’ll try again.",Ng="Try refreshing the page or come back later.",Lg="Amount",Cg="Type",Mg="Value",Eg="We could not load the payouts overview.",vg="We could not load the transactions overview.",bg="We couldn’t load your balance accounts.",Dg="We could not load your payouts.",Og="We could not load your transactions.",Oc={account:nh,accountBalance:oh,additions:sh,adjustments:rh,amount:ah,apply:ih,balanceAccount:ch,balanceAccountId:lh,Booked:uh,"button.clearAll":"Clear all","calendar.controls":"Calendar navigation controls","calendar.nextMonth":"Next month","calendar.previousMonth":"Previous month","calendar.timezone":"Timezone is set on: GMT%{offset} (%{time})",capture:dh,category:hh,chargeback:gh,closeIconLabel:mh,contactSupportForHelpAndShareErrorCode:ph,correction:fh,currency:yh,date:Ih,dateRange:_h,default:"Default",description:Th,dismiss:Ah,email:Sh,entityWasNotFound:Nh,entityWasNotFoundDetail:Lh,"expandableCard.collapse":"Collapse","expandableCard.expand":"Expand",export:"Export",fee:Ch,"filter.date.since":"Since %{date}","filter.date.until":"Until %{date}",filterBar:Mh,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Currency","filterPlaceholder.status":"Status",from:Eh,fundsCaptured:vh,grantIssued:bh,grantRepayment:Dh,hideContent:Oh,id:$h,incompleteField:Rh,mobile:xh,netPayout:wh,nextPayouts:Ph,noData:kh,noNegativeNumbersAllowed:jh,noPayoutsFound:Fh,noTransactionsFound:Wh,other:Bh,paginatedNavigation:zh,"pagination.nextPage":"Next page","pagination.previousPage":"Previous page","pagination.showing":"Showing",paymentId:Uh,paymentMethod:Yh,payoutDetails:Hh,payoutsTitle:Gh,Pending:Vh,pleaseReachOutToSupportForAssistance:Zh,"rangePreset.custom":"Custom","rangePreset.last30Days":"Last 30 days","rangePreset.last7Days":"Last 7 days","rangePreset.lastMonth":"Last month","rangePreset.lastWeek":"Last week","rangePreset.thisMonth":"This month","rangePreset.thisWeek":"This week","rangePreset.yearToDate":"Year to date",reachOutToSupport:Jh,referenceID:Qh,refresh:Xh,refund:Kh,remainingAmount:qh,reset:eg,Reversed:tg,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"No options match this search",somethingWentWrong:ng,status:og,structuredList:sg,subtractions:rg,tabs:ag,theErrorCodeIs:ig,thereAreNoResults:cg,theRequestIsMissingRequiredFieldsOrContainsInvalidData:lg,thereWasAnUnexpectedError:ug,theSelectedBalanceAccountIsIncorrect:dg,timezone:hg,to:gg,"tooltip.ATM":"Money withdrawn at an ATM","tooltip.Capital":"Money from an incoming loan grant or outgoing loan repayment","tooltip.Chargeback":"Money returned to a customer after a disputed transaction","tooltip.Correction":"Adjustments to your funds, including transaction reversals and deposit corrections","tooltip.Fee":"Transaction costs and payment method fees","tooltip.Other":"Transactions not in another category, usually an adjustment","tooltip.Payment":"Money received to your account from a sales transaction","tooltip.Refund":"Money sent back to a customer from a refunded transaction","tooltip.totalIncoming":"All money received into your account based on the selected filters","tooltip.totalOutgoing":"All fees, refunds, payouts, and other charges based on the selected filters","tooltip.Transfer":"Money moved between your account and another account",totalIncoming:mg,totalOutgoing:pg,toValueShouldBeGreaterThanTheFromValue:fg,transactionDetails:yg,transactions:Ig,transactionsOverviewTitle:_g,transactionType:Tg,transfer:Ag,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:Sg,tryRefreshingThePageOrComeBackLater:Ng,txAmount:Lg,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correction","txType.Fee":"Fee","txType.Other":"Other","txType.Payment":"Payment","txType.Refund":"Refund","txType.Transfer":"Transfer",type:Cg,value:Mg,weCouldNotLoadThePayoutsOverview:Eg,weCouldNotLoadTheTransactionsOverview:vg,weCouldNotLoadYourBalanceAccounts:bg,weCouldNotLoadYourPayouts:Dg,weCouldNotLoadYourTransactions:Og},wt="en-US",$g=/^[a-z]{2}-[A-Z]{2}$/,$c=Oc,Rg=["da-DK","de-DE","en-US","es-ES","fr-FR","it-IT","nl-NL","no-NO","pt-BR","sv-SE"],xg={year:"numeric",month:"2-digit",day:"2-digit"},hs=Rg,wg=["constructor","i18n","watch","preferredTranslations"],Pg=new RegExp("(?<=GMT)(?:[-+](?:0?\\d|1[0-4])(?::?[0-5]\\d)?)?$"),{BASE_FORMAT_OPTIONS:kg,BASE_LOCALE:jg,SYSTEM_TIMEZONE:gs,SYSTEM_TIMEZONE_FORMATTER:_n}=(()=>{const e="en-US",t="2-digit",n="numeric",a=Object.freeze({year:n,month:"short",day:n,hour:t,minute:t,second:t,fractionalSecondDigits:3,timeZoneName:"longOffset"});let i,c;try{c=new Intl.DateTimeFormat(e,a),i=c.resolvedOptions().timeZone}catch{i=void 0}return{BASE_FORMAT_OPTIONS:a,BASE_LOCALE:e,SYSTEM_TIMEZONE:i,SYSTEM_TIMEZONE_FORMATTER:c}})(),Fg=/\+(?=-)|([+-]00:00)/g,Wg=new RegExp("(?<=^\\D?)(\\d)$"),Bg=([e,t])=>(Math.abs(e*60)+t)*(e<0?-1:1),zg=e=>Object.freeze([Math.floor(e/60),os(e,60)]),Ug=e=>parseInt(e,10)||0,Yg=e=>`GMT+${zg(e).map(o=>`${o}`.replace(Wg,"0$1")).join(":")}`.replace(Fg,""),Wr=e=>{var n;const t=((n=e==null?void 0:e.match(Pg))==null?void 0:n[0].split(":",2).map(Ug))??Ce;return Bg(t.concat(0,0).slice(0,2))},Hg=(e,t=_n)=>{const n=Wr(_n==null?void 0:_n.format(e));return Wr(t==null?void 0:t.format(e))-n},Rc=(e,t,n=1)=>{const{offset:o,timestamp:s}=e(t),r=new Date(s);return r.setMinutes(r.getMinutes()-o*n)},Br=(e,t)=>Rc(e,t,1),xc=(e,t)=>Rc(e,t,-1),Gg=(()=>{let e,t;G(gs)||(e=function(){return this.TIMEZONE},t=function(o){if(ue(o))this.TIMEZONE=gs,this.formatter=_n;else try{const s=new Intl.DateTimeFormat(jg,{...kg,timeZone:o}),r=s.resolvedOptions().timeZone;if(this.TIMEZONE===r)return;this.TIMEZONE=r,this.formatter=s}catch{}});function n(...o){if(o.length===0)return n.call(this,Date.now());const s=o[0],r=new Date(s).getTime(),a=this.formatter??_n;return Object.freeze({formatted:a==null?void 0:a.format(r),offset:Hg(r,a),timestamp:r})}return()=>{const o={TIMEZONE:gs},s=t==null?void 0:t.bind(o),r=H({current:{get:e==null?void 0:e.bind(o),set:s},system:{value:gs}});return Object.defineProperties(n.bind(o),{tz:{get:()=>r,set:s}})}})(),lr=Gg,Vg="Konto",Zg="Kontosaldo",Jg="Tilføjelser",Qg="Justeringer",Xg="Beløb",Kg="Anvend",qg="Saldokonto",em="Id for saldokonto",tm="Reserveret",nm="Indsamlet",om="Kategori",sm="Chargebacks",rm="Luk",am="Kontakt support for at få hjælp, og del fejlkode %{requestId}",im="Rettelser",cm="Valuta",lm="Dato",um="Datointerval",dm="Beskrivelse",hm="Afvis",gm="E-mail",mm="Enhed blev ikke fundet",pm="Transaktion blev ikke fundet for den angivne kontoindehaver",fm="Gebyrer",ym="Filterbjælke",Im="Fra",_m="Indsamlede midler",Tm="Bevilliget tilskud",Am="Tilbagebetaling af tilskud",Sm="Skjul indhold",Nm="ID",Lm="Ufuldstændigt felt",Cm="Mobil",Mm="Nettoudbetaling",Em="Næste udbetalinger",vm="Ingen data",bm="Ingen negative tal er tilladt",Dm="Ingen udbetalinger er fundet",Om="Ingen transaktioner er fundet",$m="Andet",Rm="Pagineret navigation",xm="Betalings-id",wm="Betalingsmetode",Pm="Oplysninger om udbetaling",km="Udbetalinger",jm="Afventer",Fm="Kontakt support for at få hjælp.",Wm="Ræk ud efter støtte",Bm="Reference-id",zm="Opdater",Um="Refunderinger",Ym="Resterende beløb",Hm="Nulstil",Gm="Tilbageført",Vm="Noget gik galt.",Zm="Status",Jm="Struktureret liste",Qm="Subtraktioner",Xm="Faner",Km="Fejlkoden er %{requestId}",qm="Der er ingen resultater",ep="Anmodningen mangler påkrævede felter eller indeholder ugyldige data.",tp="Der opstod en uventet fejl",np="Den valgte saldokonto er forkert",op="Tidszone",sp="Til",rp="Indgående i alt",ap="Udgående i alt",ip="Værdien til skal være lig med eller større end værdien fra",cp="Transaktionsoplysninger",lp="Transaktioner",up="Oversigt over transaktioner",dp="Transaktionstype",hp="Overførsler",gp="Prøv en anden søgning, eller nulstil dine filtre, så vi kan prøve igen.",mp="Prøv at opdatere siden, eller kom tilbage senere.",pp="Beløb",fp="Type",yp="Værdi",Ip="Vi kunne ikke indlæse oversigten over udbetalinger.",_p="Vi kunne ikke indlæse transaktionsoversigten.",Tp="Vi kunne ikke indlæse dine saldokonti.",Ap="Vi kunne ikke indlæse dine udbetalinger.",Sp="Vi kunne ikke indlæse dine transaktioner.",Np={account:Vg,accountBalance:Zg,additions:Jg,adjustments:Qg,amount:Xg,apply:Kg,balanceAccount:qg,balanceAccountId:em,Booked:tm,"button.clearAll":"Ryd alt","calendar.controls":"Kontrolelementer til kalendernavigation","calendar.nextMonth":"Næste måned","calendar.previousMonth":"Forrige måned","calendar.timezone":"Tidszone er indstillet til: GMT%{offset} (%{time})",capture:nm,category:om,chargeback:sm,closeIconLabel:rm,contactSupportForHelpAndShareErrorCode:am,correction:im,currency:cm,date:lm,dateRange:um,default:"Standard",description:dm,dismiss:hm,email:gm,entityWasNotFound:mm,entityWasNotFoundDetail:pm,"expandableCard.collapse":"Skjul","expandableCard.expand":"Udvid",export:"Eksporter",fee:fm,"filter.date.since":"Siden %{date}","filter.date.until":"Indtil %{dato}",filterBar:ym,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:Im,fundsCaptured:_m,grantIssued:Tm,grantRepayment:Am,hideContent:Sm,id:Nm,incompleteField:Lm,mobile:Cm,netPayout:Mm,nextPayouts:Em,noData:vm,noNegativeNumbersAllowed:bm,noPayoutsFound:Dm,noTransactionsFound:Om,other:$m,paginatedNavigation:Rm,"pagination.nextPage":"Næste side","pagination.previousPage":"Forrige side","pagination.showing":"Viser",paymentId:xm,paymentMethod:wm,payoutDetails:Pm,payoutsTitle:km,Pending:jm,pleaseReachOutToSupportForAssistance:Fm,"rangePreset.custom":"Tilpas","rangePreset.last30Days":"Sidste 30 dage","rangePreset.last7Days":"Sidste 7 dage","rangePreset.lastMonth":"Sidste måned","rangePreset.lastWeek":"Sidste uge","rangePreset.thisMonth":"Denne måned","rangePreset.thisWeek":"Denne uge","rangePreset.yearToDate":"År til dato",reachOutToSupport:Wm,referenceID:Bm,refresh:zm,refund:Um,remainingAmount:Ym,reset:Hm,Reversed:Gm,"select.filter.placeholder":"Pladsholder","select.noOptionsFound":"Ingen muligheder stemmer ikke overens med denne søgning",somethingWentWrong:Vm,status:Zm,structuredList:Jm,subtractions:Qm,tabs:Xm,theErrorCodeIs:Km,thereAreNoResults:qm,theRequestIsMissingRequiredFieldsOrContainsInvalidData:ep,thereWasAnUnexpectedError:tp,theSelectedBalanceAccountIsIncorrect:np,timezone:op,to:sp,"tooltip.ATM":"Penge hævet i en pengeautomat","tooltip.Capital":"Penge fra et indgående lånetilskud eller udgående tilbagebetaling af lån","tooltip.Chargeback":"Penge tilbage til en kunde efter en bestridt transaktion","tooltip.Correction":"Justeringer af dine midler, herunder tilbageførsler af transaktioner og korrektioner af indbetalinger","tooltip.Fee":"Transaktionsomkostninger og gebyrer for betalingsmetoder","tooltip.Other":"Transaktioner, der ikke er i en anden kategori, normalt en justering","tooltip.Payment":"Penge modtaget på din konto fra en salgstransaktion","tooltip.Refund":"Penge sendt tilbage til en kunde fra en refunderet transaktion","tooltip.totalIncoming":"Alle penge modtaget på din konto baseret på de valgte filtre","tooltip.totalOutgoing":"Alle gebyrer, tilbagebetalinger, udbetalinger og andre afgifter baseret på de valgte filtre","tooltip.Transfer":"Penge flyttet mellem din konto og en anden konto",totalIncoming:rp,totalOutgoing:ap,toValueShouldBeGreaterThanTheFromValue:ip,transactionDetails:cp,transactions:lp,transactionsOverviewTitle:up,transactionType:dp,transfer:hp,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:gp,tryRefreshingThePageOrComeBackLater:mp,txAmount:pp,"txType.ATM":"Pengeautomat","txType.Capital":"Kapital","txType.Chargeback":"Chargeback","txType.Correction":"Rettelse","txType.Fee":"Gebyr","txType.Other":"Andet","txType.Payment":"Betaling","txType.Refund":"Refunderinger","txType.Transfer":"Overfør",type:fp,value:yp,weCouldNotLoadThePayoutsOverview:Ip,weCouldNotLoadTheTransactionsOverview:_p,weCouldNotLoadYourBalanceAccounts:Tp,weCouldNotLoadYourPayouts:Ap,weCouldNotLoadYourTransactions:Sp},Lp="Konto",Cp="Kontostand",Mp="Aufschläge",Ep="Anpassungen",vp="Betrag",bp="Bewerben",Dp="Guthabenkonto",Op="Guthabenkonto-ID",$p="Gebucht",Rp="Erfasst",xp="Kategorie",wp="Chargebacks",Pp="Schließen",kp="Kontaktieren Sie den Support, um Hilfe zu erhalten, und geben Sie den Fehlercode %{requestId} an.",jp="Korrekturen",Fp="Währung",Wp="Datum",Bp="Datumsbereich",zp="Beschreibung",Up="OK",Yp="E-Mail-Adresse",Hp="Entität wurde nicht gefunden",Gp="Transaktion für den angegebenen Kontoinhaber nicht gefunden",Vp="Gebühren",Zp="Filterleiste",Jp="Von",Qp="Erfasste Geldmittel",Xp="Zuschuss gewährt",Kp="Rückzahlungen von Zuschüssen",qp="Inhalt ausblenden",ef="ID",tf="Unvollständiges Feld",nf="Mobil",of="Netto-Auszahlung",sf="Nächste Auszahlungen",rf="Keine Daten",af="Keine negativen Zahlen erlaubt",cf="Keine Auszahlungen gefunden",lf="Keine Transaktionen gefunden",uf="Andere",df="Paginierte Navigation",hf="Zahlungs-ID",gf="Zahlungsart",mf="Auszahlungsdetails",pf="Auszahlungen",ff="Ausstehend",yf="Bitte wenden Sie sich an den Support, wenn Sie Hilfe benötigen.",If="Wenden Sie sich an den Support",_f="Referenz-ID",Tf="Aktualisieren",Af="Rückerstattungen",Sf="Restbetrag",Nf="Zurücksetzen",Lf="Rückgängig gemacht",Cf="Etwas ist schiefgelaufen.",Mf="Status",Ef="Strukturierte Liste",vf="Abzüge",bf="Registerkarten",Df="Der Fehlercode lautet %{requestId}",Of="Es sind keine Ergebnisse vorhanden.",$f="In der Anfrage fehlen Pflichtfelder oder sie enthält ungültige Daten.",Rf="Es ist ein unerwarteter Fehler aufgetreten.",xf="Das gewählte Guthabenkonto ist falsch.",wf="Zeitzone",Pf="Zu",kf="Gesamte Eingänge",jf="Gesamte Ausgänge",Ff="Der Bis-Wert sollte gleich oder größer sein als der Von-Wert",Wf="Details zur Transaktion",Bf="Transaktionen",zf="Übersicht über Transaktionen",Uf="Transaktionsart",Yf="Überweisungen",Hf="Versuchen Sie es mit einer anderen Suche oder setzen Sie Ihre Filter zurück und wir versuchen es erneut.",Gf="Versuchen Sie, die Seite zu aktualisieren, oder schauen Sie später noch einmal vorbei.",Vf="Betrag",Zf="Typ",Jf="Wert",Qf="Die Auszahlungsübersicht konnte nicht geladen werden.",Xf="Die Transaktionsübersicht konnte nicht geladen werden.",Kf="Ihre Guthabenkonten konnten nicht geladen werden.",qf="Ihre Auszahlungen konnten nicht geladen werden.",ey="Ihre Transaktionen konnten nicht geladen werden.",ty={account:Lp,accountBalance:Cp,additions:Mp,adjustments:Ep,amount:vp,apply:bp,balanceAccount:Dp,balanceAccountId:Op,Booked:$p,"button.clearAll":"Alles löschen","calendar.controls":"Steuerelemente für die Kalendernavigation","calendar.nextMonth":"Nächsten Monat","calendar.previousMonth":"Vorheriger Monat","calendar.timezone":"Die Zeitzone ist eingestellt auf: GMT%{offset} (%{time})",capture:Rp,category:xp,chargeback:wp,closeIconLabel:Pp,contactSupportForHelpAndShareErrorCode:kp,correction:jp,currency:Fp,date:Wp,dateRange:Bp,default:"Standard",description:zp,dismiss:Up,email:Yp,entityWasNotFound:Hp,entityWasNotFoundDetail:Gp,"expandableCard.collapse":"Ausblenden","expandableCard.expand":"Erweitern",export:"Exportieren",fee:Vp,"filter.date.since":"Seit %{date}","filter.date.until":"Bis %{date}",filterBar:Zp,"filterPlaceholder.category":"Typ","filterPlaceholder.currency":"Währung","filterPlaceholder.status":"Status",from:Jp,fundsCaptured:Qp,grantIssued:Xp,grantRepayment:Kp,hideContent:qp,id:ef,incompleteField:tf,mobile:nf,netPayout:of,nextPayouts:sf,noData:rf,noNegativeNumbersAllowed:af,noPayoutsFound:cf,noTransactionsFound:lf,other:uf,paginatedNavigation:df,"pagination.nextPage":"Nächste Seite","pagination.previousPage":"Vorherige Seite","pagination.showing":"Wird angezeigt",paymentId:hf,paymentMethod:gf,payoutDetails:mf,payoutsTitle:pf,Pending:ff,pleaseReachOutToSupportForAssistance:yf,"rangePreset.custom":"Benutzerdefiniert","rangePreset.last30Days":"Letzte 30 Tage","rangePreset.last7Days":"Letzte 7 Tage","rangePreset.lastMonth":"Letzter Monat","rangePreset.lastWeek":"Letzte Woche","rangePreset.thisMonth":"Diesen Monat","rangePreset.thisWeek":"Diese Woche","rangePreset.yearToDate":"Jahr bis heute",reachOutToSupport:If,referenceID:_f,refresh:Tf,refund:Af,remainingAmount:Sf,reset:Nf,Reversed:Lf,"select.filter.placeholder":"Platzhalter","select.noOptionsFound":"Keine Optionen für diese Suche vorhanden",somethingWentWrong:Cf,status:Mf,structuredList:Ef,subtractions:vf,tabs:bf,theErrorCodeIs:Df,thereAreNoResults:Of,theRequestIsMissingRequiredFieldsOrContainsInvalidData:$f,thereWasAnUnexpectedError:Rf,theSelectedBalanceAccountIsIncorrect:xf,timezone:wf,to:Pf,"tooltip.ATM":"Geld, das an einem Geldautomaten abgehoben wird","tooltip.Capital":"Geld aus einem eingehenden Darlehenszuschuss oder einer ausgehenden Darlehensrückzahlung","tooltip.Chargeback":"Geld wurde einem Kunden nach einer angefochtenen Transaktion zurückerstattet","tooltip.Correction":"Anpassungen Ihrer Gelder, einschließlich Transaktionsstornierungen und Einzahlungskorrekturen","tooltip.Fee":"Transaktionskosten und Gebühren für Zahlungsmethoden","tooltip.Other":"Transaktionen, die nicht in eine andere Kategorie fallen, in der Regel eine Anpassung","tooltip.Payment":"Geld, das Sie durch eine Verkaufstransaktion auf Ihrem Konto erhalten haben","tooltip.Refund":"Geld, das von einer erstatteten Transaktion an einen Kunden zurückgeschickt wurde","tooltip.totalIncoming":"Alle auf Ihrem Konto eingegangenen Gelder basierend auf den ausgewählten Filtern","tooltip.totalOutgoing":"Alle Gebühren, Erstattungen, Auszahlungen und andere Abbuchungen basierend auf den ausgewählten Filtern","tooltip.Transfer":"Geld wurde zwischen Ihrem Konto und einem anderen Konto transferiert wurde",totalIncoming:kf,totalOutgoing:jf,toValueShouldBeGreaterThanTheFromValue:Ff,transactionDetails:Wf,transactions:Bf,transactionsOverviewTitle:zf,transactionType:Uf,transfer:Yf,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:Hf,tryRefreshingThePageOrComeBackLater:Gf,txAmount:Vf,"txType.ATM":"Geldautomat","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Korrektur","txType.Fee":"Gebühr","txType.Other":"Andere","txType.Payment":"Zahlung","txType.Refund":"Rückerstattung","txType.Transfer":"Überweisung",type:Zf,value:Jf,weCouldNotLoadThePayoutsOverview:Qf,weCouldNotLoadTheTransactionsOverview:Xf,weCouldNotLoadYourBalanceAccounts:Kf,weCouldNotLoadYourPayouts:qf,weCouldNotLoadYourTransactions:ey},ny="Cuenta",oy="Saldo de la cuenta",sy="Adiciones",ry="Ajustes",ay="cantidad",iy="Aplicar",cy="Cuenta de saldo",ly="ID de cuenta de saldo",uy="Reservado",dy="Capturado",hy="Categoría",gy="Contracargos",my="Cerrar",py="Contacta al equipo de soporte para obtener ayuda y comparte con ellos el código del error %{requestId}",fy="Correcciones",yy="Divisa",Iy="Fecha",_y="Intervalo de fechas",Ty="Descripción",Ay="Descartar",Sy="Correo electrónico",Ny="No se ha encontrado la entidad",Ly="No se ha encontrado la transacción para el titular especificado",Cy="Tasas",My="Barra de filtro",Ey="Desde",vy="Fondos capturados",by="Subvención concedida",Dy="Reembolsos de la subvención",Oy="Ocultar contenido",$y="Documento de identidad",Ry="Campo incompleto",xy="Móvil",wy="Pago neto",Py="Próximos pagos",ky="Sin datos",jy="No se permiten números negativos",Fy="No se ha encontrado ningún pago",Wy="No se han encontrado transacciones",By="Otro tipo",zy="Navegación por páginas",Uy="ID de pago",Yy="Método de pago",Hy="Detalles de pago",Gy="Pagos",Vy="Pendiente",Zy="Ponte en contacto con soporte para obtener ayuda.",Jy="Ponte en contacto con soporte",Qy="ID de referencia",Xy="Actualizar",Ky="Reembolsos",qy="Cantidad restante",eI="Restablecer",tI="Invertido",nI="Se ha producido un error.",oI="Estado",sI="Lista estructurada",rI="Sustracciones",aI="Pestañas",iI="El código de error es %{requestId}",cI="Sin resultados",lI="Faltan faltan campos obligatorios en la solicitud o esta contiene datos no válidos.",uI="Se ha producido un error inesperado",dI="La cuenta de saldo seleccionada es incorrecta",hI="Zona horaria",gI="Hasta",mI="Fondos entrantes totales",pI="Fondos salientes totales",fI="El valor Hasta debe ser igual o mayor que el valor Desde",yI="Detalles de la transacción",II="Transacciones",_I="Resumen de transacciones",TI="Tipo de transacción",AI="Transferencias",SI="Prueba con una búsqueda diferente o restablece los filtros para que lo intentemos de nuevo.",NI="Prueba a actualizar la página o inténtalo más tarde.",LI="cantidad",CI="Tipo",MI="Valor",EI="No hemos podido cargar el resumen de los pagos.",vI="No hemos podido cargar el resumen de las transacciones.",bI="No hemos podido cargar tus cuentas de saldo.",DI="No hemos podido cargar tus pagos.",OI="No hemos podido cargar tus transacciones.",$I={account:ny,accountBalance:oy,additions:sy,adjustments:ry,amount:ay,apply:iy,balanceAccount:cy,balanceAccountId:ly,Booked:uy,"button.clearAll":"Borrar todo","calendar.controls":"Controles de navegación del calendario","calendar.nextMonth":"Mes siguiente","calendar.previousMonth":"Mes anterior","calendar.timezone":"La zona horaria actual en: GMT%{offset} (%{time})",capture:dy,category:hy,chargeback:gy,closeIconLabel:my,contactSupportForHelpAndShareErrorCode:py,correction:fy,currency:yy,date:Iy,dateRange:_y,default:"Por defecto",description:Ty,dismiss:Ay,email:Sy,entityWasNotFound:Ny,entityWasNotFoundDetail:Ly,"expandableCard.collapse":"Contraer","expandableCard.expand":"Expandir",export:"Exportar",fee:Cy,"filter.date.since":"Desde: %{date}","filter.date.until":"Hasta: %{date}",filterBar:My,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Divisa","filterPlaceholder.status":"Estado",from:Ey,fundsCaptured:vy,grantIssued:by,grantRepayment:Dy,hideContent:Oy,id:$y,incompleteField:Ry,mobile:xy,netPayout:wy,nextPayouts:Py,noData:ky,noNegativeNumbersAllowed:jy,noPayoutsFound:Fy,noTransactionsFound:Wy,other:By,paginatedNavigation:zy,"pagination.nextPage":"Página siguiente","pagination.previousPage":"Página anterior","pagination.showing":"Visible",paymentId:Uy,paymentMethod:Yy,payoutDetails:Hy,payoutsTitle:Gy,Pending:Vy,pleaseReachOutToSupportForAssistance:Zy,"rangePreset.custom":"Personalizadas","rangePreset.last30Days":"Últimos 30 días","rangePreset.last7Days":"Últimos 7 días","rangePreset.lastMonth":"Mes pasado","rangePreset.lastWeek":"Última semana","rangePreset.thisMonth":"Este mes","rangePreset.thisWeek":"Esta semana","rangePreset.yearToDate":"Este año hasta la fecha",reachOutToSupport:Jy,referenceID:Qy,refresh:Xy,refund:Ky,remainingAmount:qy,reset:eI,Reversed:tI,"select.filter.placeholder":"Marcador de posición","select.noOptionsFound":"No hay opciones que coincidan con esta búsqueda",somethingWentWrong:nI,status:oI,structuredList:sI,subtractions:rI,tabs:aI,theErrorCodeIs:iI,thereAreNoResults:cI,theRequestIsMissingRequiredFieldsOrContainsInvalidData:lI,thereWasAnUnexpectedError:uI,theSelectedBalanceAccountIsIncorrect:dI,timezone:hI,to:gI,"tooltip.ATM":"Dinero retirado en un cajero automático","tooltip.Capital":"Dinero de una concesión de préstamo entrante o de un reembolso de préstamo saliente","tooltip.Chargeback":"Dinero devuelto a un cliente después de una transacción en disputa","tooltip.Correction":"Ajustes a tus fondos, incluidas reversiones de transacciones y correcciones de depósitos","tooltip.Fee":"Costes de la transacción y comisiones del método de pago","tooltip.Other":"Transacciones que no pertenecen a otra categoría, normalmente un ajuste","tooltip.Payment":"Dinero recibido en tu cuenta de una transacción de venta","tooltip.Refund":"Dinero devuelto a un cliente por una transacción reembolsada","tooltip.totalIncoming":"Todo el dinero recibido en tu cuenta de acuerdo a los filtros seleccionados","tooltip.totalOutgoing":"Todas las comisiones, los reembolsos, los pagos y otros cargos de acuerdo a los filtros seleccionados","tooltip.Transfer":"Dinero movido entre tu cuenta y otra",totalIncoming:mI,totalOutgoing:pI,toValueShouldBeGreaterThanTheFromValue:fI,transactionDetails:yI,transactions:II,transactionsOverviewTitle:_I,transactionType:TI,transfer:AI,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:SI,tryRefreshingThePageOrComeBackLater:NI,txAmount:LI,"txType.ATM":"Cajero automático","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Corrección","txType.Fee":"Fee (Tasa)","txType.Other":"Otro tipo","txType.Payment":"Pago","txType.Refund":"Devolución","txType.Transfer":"Transferencia",type:CI,value:MI,weCouldNotLoadThePayoutsOverview:EI,weCouldNotLoadTheTransactionsOverview:vI,weCouldNotLoadYourBalanceAccounts:bI,weCouldNotLoadYourPayouts:DI,weCouldNotLoadYourTransactions:OI},RI="Compte",xI="Solde du compte",wI="Additions",PI="Ajustements",kI="Montant",jI="Postuler",FI="Compte de solde",WI="ID de compte de solde",BI="Réservé",zI="Capturé",UI="Catégorie",YI="Impayés",HI="Fermer",GI="Contactez l'assistance pour obtenir de l'aide et partagez le code d'erreur %{requestId}",VI="Corrections",ZI="Devise",JI="Date",QI="Plage de dates",XI="Description",KI="Ignorer",qI="E-mail",e_="L'entité n'a pas été trouvée",t_="Transaction introuvable pour le titulaire du compte spécifié",n_="Frais",o_="Barre de filtre",s_="De",r_="Fonds capturés",a_="Subvention accordée",i_="Remboursements de subventions",c_="Masquer le contenu",l_="ID",u_="Champ incomplet",d_="Mobile",h_="Reversement net",g_="Reversements suivants",m_="Pas de données",p_="Aucun chiffre négatif n'est autorisé",f_="Aucun reversement trouvé",y_="Aucune transaction trouvée",I_="Autre",__="Navigation paginée",T_="ID de paiement",A_="Mode de paiement",S_="Informations pour le reversement",N_="Reversements",L_="En attente",C_="Veuillez contacter l'assistance pour obtenir de l'aide.",M_="Contacter l'assistance",E_="ID de référence",v_="Actualiser",b_="Remboursements",D_="Montant restant",O_="Réinitialiser",$_="Inverse",R_="Une erreur s'est produite.",x_="Statut",w_="Liste structurée",P_="Soustractions",k_="Onglets",j_="Le code d'erreur est %{requestId}",F_="Il n'y a pas de résultats",W_="Dans la demande, des champs obligatoires sont manquants ou des données ne sont pas valides.",B_="Une erreur inattendue s'est produite",z_="Le compte de solde sélectionné est incorrect",U_="Fuseau horaire",Y_="À",H_="Total entrant",G_="Total sortant",V_="La valeur de À doit être égale ou supérieure à la valeur de De",Z_="Détails de la transaction",J_="Transactions",Q_="Aperçu des transactions",X_="Type de transaction",K_="Transferts",q_="Essayez une autre recherche ou réinitialisez vos filtres, et nous réessayerons.",eT="Réessayez en actualisant la page ou retentez plus tard.",tT="Montant",nT="Type",oT="Valeur",sT="Nous n'avons pas pu charger l'aperçu des reversements.",rT="Nous n'avons pas pu charger l'aperçu des transactions.",aT="Nous n'avons pas pu charger vos comptes de solde.",iT="Nous n'avons pas pu charger vos reversements.",cT="Nous n'avons pas pu charger vos transactions.",lT={account:RI,accountBalance:xI,additions:wI,adjustments:PI,amount:kI,apply:jI,balanceAccount:FI,balanceAccountId:WI,Booked:BI,"button.clearAll":"Tout effacer","calendar.controls":"Commandes de navigation dans le calendrier","calendar.nextMonth":"Mois suivant","calendar.previousMonth":"Mois précédent","calendar.timezone":"Le fuseau horaire est défini sur : GMT%{offset} (%{time})",capture:zI,category:UI,chargeback:YI,closeIconLabel:HI,contactSupportForHelpAndShareErrorCode:GI,correction:VI,currency:ZI,date:JI,dateRange:QI,default:"Par défaut",description:XI,dismiss:KI,email:qI,entityWasNotFound:e_,entityWasNotFoundDetail:t_,"expandableCard.collapse":"Réduire","expandableCard.expand":"Développer",export:"Exporter",fee:n_,"filter.date.since":"Depuis le %{date}","filter.date.until":"Jusqu'au %{date}",filterBar:o_,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Devise","filterPlaceholder.status":"Statut",from:s_,fundsCaptured:r_,grantIssued:a_,grantRepayment:i_,hideContent:c_,id:l_,incompleteField:u_,mobile:d_,netPayout:h_,nextPayouts:g_,noData:m_,noNegativeNumbersAllowed:p_,noPayoutsFound:f_,noTransactionsFound:y_,other:I_,paginatedNavigation:__,"pagination.nextPage":"Page suivante","pagination.previousPage":"Page précédente","pagination.showing":"Affichage",paymentId:T_,paymentMethod:A_,payoutDetails:S_,payoutsTitle:N_,Pending:L_,pleaseReachOutToSupportForAssistance:C_,"rangePreset.custom":"Personnalisé","rangePreset.last30Days":"30 derniers jours","rangePreset.last7Days":"7 derniers jours","rangePreset.lastMonth":"Mois dernier","rangePreset.lastWeek":"La semaine dernière","rangePreset.thisMonth":"Ce mois-ci","rangePreset.thisWeek":"Cette semaine","rangePreset.yearToDate":"Depuis le début de l'année",reachOutToSupport:M_,referenceID:E_,refresh:v_,refund:b_,remainingAmount:D_,reset:O_,Reversed:$_,"select.filter.placeholder":"Espace réservé","select.noOptionsFound":"Aucune option ne correspond à cette recherche",somethingWentWrong:R_,status:x_,structuredList:w_,subtractions:P_,tabs:k_,theErrorCodeIs:j_,thereAreNoResults:F_,theRequestIsMissingRequiredFieldsOrContainsInvalidData:W_,thereWasAnUnexpectedError:B_,theSelectedBalanceAccountIsIncorrect:z_,timezone:U_,to:Y_,"tooltip.ATM":"Argent retiré à un distributeur automatique","tooltip.Capital":"Argent provenant d’un prêt ou d’un remboursement de prêt","tooltip.Chargeback":"Argent remboursé à un client suite à une transaction contestée","tooltip.Correction":"Ajustements à vos fonds, y compris les annulations de transactions et les corrections de dépôts","tooltip.Fee":"Frais de transaction et frais liés au moyen de paiement","tooltip.Other":"Transactions n’appartenant pas à une autre catégorie, généralement un ajustement","tooltip.Payment":"Argent versé sur votre compte suite à une transaction de vente","tooltip.Refund":"Argent renvoyé à un client suite à une transaction remboursée","tooltip.totalIncoming":"Tout l'argent versé sur votre compte en fonction des filtres sélectionnés","tooltip.totalOutgoing":"Tous les frais, remboursements, reversements et autres dépenses basés sur les filtres sélectionnés","tooltip.Transfer":"Argent transféré de votre compte vers un autre compte",totalIncoming:H_,totalOutgoing:G_,toValueShouldBeGreaterThanTheFromValue:V_,transactionDetails:Z_,transactions:J_,transactionsOverviewTitle:Q_,transactionType:X_,transfer:K_,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:q_,tryRefreshingThePageOrComeBackLater:eT,txAmount:tT,"txType.ATM":"Distributeur automatique","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correction","txType.Fee":"Fee (Frais)","txType.Other":"Autre","txType.Payment":"Transaction","txType.Refund":"Remboursement","txType.Transfer":"Transfert",type:nT,value:oT,weCouldNotLoadThePayoutsOverview:sT,weCouldNotLoadTheTransactionsOverview:rT,weCouldNotLoadYourBalanceAccounts:aT,weCouldNotLoadYourPayouts:iT,weCouldNotLoadYourTransactions:cT},uT="Account",dT="Saldo del conto",hT="Aggiunte",gT="Aggiustamenti",mT="Importo",pT="Applica",fT="Saldo del conto",yT="ID saldo del conto",IT="Prenotato",_T="Acquisito",TT="Categoria",AT="Chargeback",ST="Chiudi",NT="Contatta l'assistenza per un aiuto e condividi il codice di errore %{requestId}",LT="Correzioni",CT="Valuta",MT="Data",ET="Intervallo di date",vT="Descrizione",bT="Ignora",DT="E-mail",OT="L'entità non è stata trovata",$T="Transazione non trovata per il titolare del conto specificato",RT="Commissioni",xT="Barra dei filtri",wT="Da",PT="Fondi acquisiti",kT="Sovvenzione rilasciata",jT="Rimborsi delle sovvenzioni",FT="Nascondi contenuto",WT="Numero identificativo",BT="Campo incompleto",zT="Mobile",UT="Pagamento netto",YT="Prossimi pagamenti",HT="Nessun dato",GT="Non sono ammessi numeri negativi",VT="Nessun pagamento trovato",ZT="Nessuna transazione trovata",JT="Altro",QT="Navigazione a pagine",XT="ID di pagamento",KT="Metodo di pagamento",qT="Dettagli di pagamento",eA="Pagamenti",tA="In sospeso",nA="Contatta il supporto per ricevere assistenza.",oA="Contatta il supporto",sA="ID di riferimento",rA="Aggiorna",aA="Rimborsi",iA="Importo rimanente",cA="Reimposta",lA="Revocato",uA="Si è verificato un errore.",dA="Stato",hA="Elenco strutturato",gA="Sottrazioni",mA="Schede",pA="Il codice di errore è %{requestId}",fA="Nessun risultato",yA="Nella richiesta mancano i campi obbligatori o contiene dati non validi.",IA="Si è verificato un errore imprevisto",_A="Il saldo del conto selezionato non è corretto",TA="Fuso orario",AA="A",SA="Entrate totali",NA="Totale uscite",LA="Il valore A deve essere uguale o maggiore del valore Da",CA="Dettagli della transazione",MA="Transazioni",EA="Panoramica delle transazioni",vA="Tipo di transazione",bA="Trasferimenti",DA="Prova a effettuare una ricerca diversa o a reimpostare i filtri e ritenteremo.",OA="Prova ad aggiornare la pagina o torna più tardi.",$A="Importo",RA="Tipo",xA="Valore",wA="Non è stato possibile caricare la panoramica dei pagamenti.",PA="Non è stato possibile caricare la panoramica delle transazioni.",kA="Non è stato possibile caricare il saldo dei tuoi conti.",jA="Non è stato possibile caricare i tuoi pagamenti.",FA="Non è stato possibile caricare le tue transazioni.",WA={account:uT,accountBalance:dT,additions:hT,adjustments:gT,amount:mT,apply:pT,balanceAccount:fT,balanceAccountId:yT,Booked:IT,"button.clearAll":"Svuota tutto","calendar.controls":"Controlli di navigazione del calendario","calendar.nextMonth":"Prossimo mese","calendar.previousMonth":"Mese precedente","calendar.timezone":"Il fuso orario è impostato su: GMT%{offset} (%{time})",capture:_T,category:TT,chargeback:AT,closeIconLabel:ST,contactSupportForHelpAndShareErrorCode:NT,correction:LT,currency:CT,date:MT,dateRange:ET,default:"Default",description:vT,dismiss:bT,email:DT,entityWasNotFound:OT,entityWasNotFoundDetail:$T,"expandableCard.collapse":"Comprimi","expandableCard.expand":"Espandi",export:"Esporta",fee:RT,"filter.date.since":"Dal %{date}","filter.date.until":"Al %{date}",filterBar:xT,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Stato",from:wT,fundsCaptured:PT,grantIssued:kT,grantRepayment:jT,hideContent:FT,id:WT,incompleteField:BT,mobile:zT,netPayout:UT,nextPayouts:YT,noData:HT,noNegativeNumbersAllowed:GT,noPayoutsFound:VT,noTransactionsFound:ZT,other:JT,paginatedNavigation:QT,"pagination.nextPage":"Pagina successiva","pagination.previousPage":"Pagina precedente","pagination.showing":"Risultati:",paymentId:XT,paymentMethod:KT,payoutDetails:qT,payoutsTitle:eA,Pending:tA,pleaseReachOutToSupportForAssistance:nA,"rangePreset.custom":"Personalizzato","rangePreset.last30Days":"Ultimi 30 giorni","rangePreset.last7Days":"Ultimi 7 giorni","rangePreset.lastMonth":"Il mese scorso","rangePreset.lastWeek":"La scorsa settimana","rangePreset.thisMonth":"Questo mese","rangePreset.thisWeek":"Questa settimana","rangePreset.yearToDate":"Da inizio anno",reachOutToSupport:oA,referenceID:sA,refresh:rA,refund:aA,remainingAmount:iA,reset:cA,Reversed:lA,"select.filter.placeholder":"Segnaposto","select.noOptionsFound":"Nessuna opzione corrisponde a questa ricerca",somethingWentWrong:uA,status:dA,structuredList:hA,subtractions:gA,tabs:mA,theErrorCodeIs:pA,thereAreNoResults:fA,theRequestIsMissingRequiredFieldsOrContainsInvalidData:yA,thereWasAnUnexpectedError:IA,theSelectedBalanceAccountIsIncorrect:_A,timezone:TA,to:AA,"tooltip.ATM":"Denaro prelevato da uno sportello bancomat","tooltip.Capital":"Denaro derivante da una concessione di prestito in entrata o dal rimborso del prestito in uscita","tooltip.Chargeback":"Denaro restituito a un cliente dopo una transazione contestata","tooltip.Correction":"Aggiustamenti ai tuoi fondi, inclusi storni di transazioni e correzioni di depositi","tooltip.Fee":"Costi di transazione e commissioni sui metodi di pagamento","tooltip.Other":"Transazioni non appartenenti a un'altra categoria, di solito un aggiustamento","tooltip.Payment":"Denaro ricevuto sul tuo conto da una transazione di vendita","tooltip.Refund":"Denaro restituito a un cliente da una transazione rimborsata","tooltip.totalIncoming":"Tutto il denaro ricevuto sul conto in base ai filtri selezionati","tooltip.totalOutgoing":"Tutte le commissioni, i rimborsi, i pagamenti e le altre spese in base ai filtri selezionati","tooltip.Transfer":"Denaro trasferito tra il tuo conto e un altro conto",totalIncoming:SA,totalOutgoing:NA,toValueShouldBeGreaterThanTheFromValue:LA,transactionDetails:CA,transactions:MA,transactionsOverviewTitle:EA,transactionType:vA,transfer:bA,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:DA,tryRefreshingThePageOrComeBackLater:OA,txAmount:$A,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Riaccredito","txType.Correction":"Correzione","txType.Fee":"Commissione","txType.Other":"Altro","txType.Payment":"Pagamento","txType.Refund":"Rimborso","txType.Transfer":"Trasferimento",type:RA,value:xA,weCouldNotLoadThePayoutsOverview:wA,weCouldNotLoadTheTransactionsOverview:PA,weCouldNotLoadYourBalanceAccounts:kA,weCouldNotLoadYourPayouts:jA,weCouldNotLoadYourTransactions:FA},BA="Account",zA="Rekeningsaldo",UA="Aanvullingen",YA="Aanpassingen",HA="Bedrag",GA="Toepassen",VA="Saldorekening",ZA="ID saldorekening",JA="Geboekt",QA="Vastgehouden",XA="Categorie",KA="Chargebacks",qA="Sluiten",eS="Neem contact op met support voor hulp en vermeld de foutcode% {requestId}",tS="Correcties",nS="Valuta",oS="Datum",sS="Periode",rS="Beschrijving",aS="Negeren",iS="E-mailadres",cS="Entiteit is niet gevonden.",lS="Transactie niet gevonden voor de opgegeven rekeninghouder",uS="Kosten",dS="Filterbalk",hS="Van",gS="Vastgehouden bedrag",mS="Subsidie verleend",pS="Terugbetalingen van subsidies",fS="Inhoud verbergen",yS="ID",IS="Onvolledig veld",_S="Mobiel",TS="Netto uitbetaling",AS="Volgende uitbetalingen",SS="Geen gegevens",NS="Negatieve getallen zijn niet toegestaan",LS="Geen uitbetalingen gevonden",CS="Geen transacties gevonden",MS="Overige",ES="Gepagineerde navigatie",vS="Betalings-ID",bS="Betaalmethode",DS="Uitbetalingsgegevens",OS="Uitbetalingen",$S="In behandeling",RS="Neem contact op support voor ondersteuning.",xS="Neem contact met support",wS="Referentie-ID",PS="Vernieuwen",kS="Refunds",jS="Resterend bedrag",FS="Resetten",WS="Teruggestort",BS="Er is iets fout gegaan.",zS="Status",US="Gestructureerde lijst",YS="Aftrekkingen",HS="Tabs",GS="De foutcode is %{requestId}",VS="Er zijn geen resultaten",ZS="Er ontbreken verplichte velden in het verzoek of het bevat ongeldige gegevens.",JS="Er is een onverwachte fout opgetreden",QS="De geselecteerde saldorekening is onjuist",XS="Tijdzone",KS="Naar",qS="Totaal inkomend",eN="Totaal uitgaand",tN="De waarde moet gelijk zijn aan of groter zijn dan de Van-waarde",nN="Gegevens van de transactie",oN="Transacties",sN="Transactieoverzicht",rN="Soort transactie",aN="Overschrijvingen",iN="Probeer een andere zoekopdracht of stel uw filters opnieuw in, en we proberen het opnieuw.",cN="Probeer de pagina te vernieuwen of kom later terug.",lN="Bedrag",uN="Soort",dN="Waarde",hN="We konden het uitbetalingsoverzicht niet laden.",gN="We konden het transactieoverzicht niet laden.",mN="We kunnen uw saldorekeningen niet laden.",pN="We konden uw uitbetalingen niet laden.",fN="We konden uw transacties niet laden.",yN={account:BA,accountBalance:zA,additions:UA,adjustments:YA,amount:HA,apply:GA,balanceAccount:VA,balanceAccountId:ZA,Booked:JA,"button.clearAll":"Alles wissen","calendar.controls":"Bedieningselementen voor agendanavigatie","calendar.nextMonth":"Volgende maand","calendar.previousMonth":"Vorige maand","calendar.timezone":"Tijdzone is ingesteld op: GMT%{offset} (%{time})",capture:QA,category:XA,chargeback:KA,closeIconLabel:qA,contactSupportForHelpAndShareErrorCode:eS,correction:tS,currency:nS,date:oS,dateRange:sS,default:"Standaard",description:rS,dismiss:aS,email:iS,entityWasNotFound:cS,entityWasNotFoundDetail:lS,"expandableCard.collapse":"Samenvoegen","expandableCard.expand":"Uitvouwen",export:"Exporteren",fee:uS,"filter.date.since":"Sinds %{date}","filter.date.until":"Tot %{date}",filterBar:dS,"filterPlaceholder.category":"Soort","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:hS,fundsCaptured:gS,grantIssued:mS,grantRepayment:pS,hideContent:fS,id:yS,incompleteField:IS,mobile:_S,netPayout:TS,nextPayouts:AS,noData:SS,noNegativeNumbersAllowed:NS,noPayoutsFound:LS,noTransactionsFound:CS,other:MS,paginatedNavigation:ES,"pagination.nextPage":"Volgende pagina","pagination.previousPage":"Vorige pagina","pagination.showing":"Tonen",paymentId:vS,paymentMethod:bS,payoutDetails:DS,payoutsTitle:OS,Pending:$S,pleaseReachOutToSupportForAssistance:RS,"rangePreset.custom":"Aangepast","rangePreset.last30Days":"Laatste 30 dagen","rangePreset.last7Days":"Laatste 7 dagen","rangePreset.lastMonth":"Vorige maand","rangePreset.lastWeek":"Vorige week","rangePreset.thisMonth":"Deze maand","rangePreset.thisWeek":"Deze week","rangePreset.yearToDate":"Jaar tot heden",reachOutToSupport:xS,referenceID:wS,refresh:PS,refund:kS,remainingAmount:jS,reset:FS,Reversed:WS,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"Er zijn geen opties die overeenkomen met deze zoekopdracht",somethingWentWrong:BS,status:zS,structuredList:US,subtractions:YS,tabs:HS,theErrorCodeIs:GS,thereAreNoResults:VS,theRequestIsMissingRequiredFieldsOrContainsInvalidData:ZS,thereWasAnUnexpectedError:JS,theSelectedBalanceAccountIsIncorrect:QS,timezone:XS,to:KS,"tooltip.ATM":"Geld opgenomen bij een geldautomaat","tooltip.Capital":"Geld uit een binnenkomende lening of terugbetaling van een uitgaande lening","tooltip.Chargeback":"Geld teruggestort aan een klant na een betwiste transactie","tooltip.Correction":"Aanpassingen aan je geld, inclusief terugboekingen van transacties en correcties op stortingen","tooltip.Fee":"Transactiekosten en kosten voor betaalmethoden","tooltip.Other":"Transacties die niet in een andere categorie vallen, meestal een aanpassing","tooltip.Payment":"Geld dat op je rekening is ontvangen via een verkooptransactie","tooltip.Refund":"Geld dat is teruggestuurd naar een klant in het kader van een teruggestorte transactie","tooltip.totalIncoming":"Al het geld dat op uw rekening is ontvangen op basis van de geselecteerde filters","tooltip.totalOutgoing":"Alle vergoedingen, terugbetalingen, uitbetalingen en andere kosten op basis van de geselecteerde filters","tooltip.Transfer":"Geld dat tussen je rekening en een andere rekening is overgemaakt",totalIncoming:qS,totalOutgoing:eN,toValueShouldBeGreaterThanTheFromValue:tN,transactionDetails:nN,transactions:oN,transactionsOverviewTitle:sN,transactionType:rN,transfer:aN,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:iN,tryRefreshingThePageOrComeBackLater:cN,txAmount:lN,"txType.ATM":"Geldautomaat","txType.Capital":"Capital","txType.Chargeback":"Terugboeking","txType.Correction":"Correctie","txType.Fee":"Kost","txType.Other":"Overige","txType.Payment":"Betaling","txType.Refund":"Refund","txType.Transfer":"Overschrijving",type:uN,value:dN,weCouldNotLoadThePayoutsOverview:hN,weCouldNotLoadTheTransactionsOverview:gN,weCouldNotLoadYourBalanceAccounts:mN,weCouldNotLoadYourPayouts:pN,weCouldNotLoadYourTransactions:fN},IN="Konto",_N="Saldo på konto",TN="Tillegg",AN="Justeringer",SN="Beløp",NN="Bruk",LN="Saldokonto",CN="Saldokonto-ID",MN="Bestilt",EN="Registrert",vN="Kategori",bN="Chargebacks",DN="Lukk",ON="Kontakt brukerstøtten for hjelp og del feilkoden %{requestId}",$N="Rettelser",RN="Valuta",xN="Dato",wN="Datointervall",PN="Beskrivelse",kN="Avvis",jN="E-post",FN="Entiteten ble ikke funnet",WN="Transaksjon ble ikke funnet for den angitte kontoinnehaveren",BN="Gebyrer",zN="Filterlinje",UN="Fra",YN="Midler registrert",HN="Tilskudd utstedt",GN="Tilbakebetaling av tilskudd",VN="Skjul innhold",ZN="ID",JN="Ufullstendig felt",QN="Mobile",XN="Netto utbetaling",KN="Neste utbetalinger",qN="Ingen data",eL="Ingen negative tall tillatt",tL="Ingen utbetalinger funnet",nL="Ingen transaksjoner funnet",oL="Annet",sL="Sideformatert navigasjon",rL="Betalings-ID",aL="Betalingsmetode",iL="Detaljer om utbetaling",cL="Utbetalinger",lL="Avventer",uL="Ta kontakt med brukerstøtten for å få hjelp.",dL="Ta kontakt med brukerstøtten",hL="Referanse-ID",gL="Oppdater",mL="Refunderinger",pL="Gjenstående beløp",fL="Tilbakestill",yL="Omvendt",IL="Noe gikk galt.",_L="Status",TL="Strukturert liste",AL="Subtraksjoner",SL="Faner",NL="Feilkoden er %{requestID}",LL="Det finnes ingen resultater",CL="Forespørselen mangler obligatoriske felt eller inneholder ugyldige data.",ML="Det oppstod en uventet feil",EL="Den valgte saldokontoen er feil",vL="Tidssone",bL="Til",DL="Totalt innkommende",OL="Totalt utgående",$L="Til-verdien skal være lik eller større enn Fra-verdien",RL="Transaksjonsdetaljer",xL="Transaksjoner",wL="Transaksjonsoversikt",PL="Transaksjonstype",kL="Overføringer",jL="Prøv et annet søk eller tilbakestill filtrene dine, så prøver vi på nytt.",FL="Prøv å oppdatere siden, eller kom tilbake senere.",WL="Beløp",BL="Type",zL="Verdi",UL="Vi kunne ikke laste inn oversikten over utbetalinger.",YL="Vi kunne ikke laste inn transaksjonsoversikten.",HL="Vi kunne ikke laste inn saldokontoene dine.",GL="Vi kunne ikke laste inn utbetalingene dine.",VL="Vi kunne ikke laste inn transaksjonene dine.",ZL={account:IN,accountBalance:_N,additions:TN,adjustments:AN,amount:SN,apply:NN,balanceAccount:LN,balanceAccountId:CN,Booked:MN,"button.clearAll":"Fjern alle","calendar.controls":"Kontroller for kalendernavigasjon","calendar.nextMonth":"Neste måned","calendar.previousMonth":"Forrige måned","calendar.timezone":"Tidssonen er satt til: GMT%{offset} (%{time})",capture:EN,category:vN,chargeback:bN,closeIconLabel:DN,contactSupportForHelpAndShareErrorCode:ON,correction:$N,currency:RN,date:xN,dateRange:wN,default:"Standard",description:PN,dismiss:kN,email:jN,entityWasNotFound:FN,entityWasNotFoundDetail:WN,"expandableCard.collapse":"Skjul","expandableCard.expand":"Utvid",export:"Eksportér",fee:BN,"filter.date.since":"Siden %{date}","filter.date.until":"Frem til %{date}",filterBar:zN,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:UN,fundsCaptured:YN,grantIssued:HN,grantRepayment:GN,hideContent:VN,id:ZN,incompleteField:JN,mobile:QN,netPayout:XN,nextPayouts:KN,noData:qN,noNegativeNumbersAllowed:eL,noPayoutsFound:tL,noTransactionsFound:nL,other:oL,paginatedNavigation:sL,"pagination.nextPage":"Neste side","pagination.previousPage":"Forrige side","pagination.showing":"Viser",paymentId:rL,paymentMethod:aL,payoutDetails:iL,payoutsTitle:cL,Pending:lL,pleaseReachOutToSupportForAssistance:uL,"rangePreset.custom":"Tilpasset","rangePreset.last30Days":"Siste 30 dager","rangePreset.last7Days":"Siste 7 dager","rangePreset.lastMonth":"Forrige måned","rangePreset.lastWeek":"Forrige uke","rangePreset.thisMonth":"Denne måneden","rangePreset.thisWeek":"Denne uken","rangePreset.yearToDate":"Hittil i år",reachOutToSupport:dL,referenceID:hL,refresh:gL,refund:mL,remainingAmount:pL,reset:fL,Reversed:yL,"select.filter.placeholder":"Plassholder","select.noOptionsFound":"Ingen alternativer samsvarer med dette søket",somethingWentWrong:IL,status:_L,structuredList:TL,subtractions:AL,tabs:SL,theErrorCodeIs:NL,thereAreNoResults:LL,theRequestIsMissingRequiredFieldsOrContainsInvalidData:CL,thereWasAnUnexpectedError:ML,theSelectedBalanceAccountIsIncorrect:EL,timezone:vL,to:bL,"tooltip.ATM":"Penger tatt ut i minibank","tooltip.Capital":"Penger fra et innkommende lånetilskudd eller utgående tilbakebetaling av lån","tooltip.Chargeback":"Penger returnert til en kunde etter en bestridt transaksjon","tooltip.Correction":"Justeringer av midlene dine, inkludert reversering av transaksjoner og korrigering av innskudd","tooltip.Fee":"Transaksjonskostnader og gebyrer for betalingsmetode","tooltip.Other":"Transaksjoner som ikke hører til i en annen kategori, vanligvis en justering","tooltip.Payment":"Penger mottatt i kontoen din fra en salgstransaksjon","tooltip.Refund":"Penger sendt tilbake til en kunde fra en refundert transaksjon","tooltip.totalIncoming":"Alle penger mottatt på kontoen din basert på de valgte filtrene","tooltip.totalOutgoing":"Alle gebyrer, refusjoner, utbetalinger og andre kostnader basert på de valgte filtrene","tooltip.Transfer":"Penger som er flyttet mellom din konto og en annen konto",totalIncoming:DL,totalOutgoing:OL,toValueShouldBeGreaterThanTheFromValue:$L,transactionDetails:RL,transactions:xL,transactionsOverviewTitle:wL,transactionType:PL,transfer:kL,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:jL,tryRefreshingThePageOrComeBackLater:FL,txAmount:WL,"txType.ATM":"Minibank","txType.Capital":"Kapital","txType.Chargeback":"Chargeback","txType.Correction":"Rettelse","txType.Fee":"Gebyr","txType.Other":"Annet","txType.Payment":"Betaling","txType.Refund":"Refundering","txType.Transfer":"Overføring",type:BL,value:zL,weCouldNotLoadThePayoutsOverview:UL,weCouldNotLoadTheTransactionsOverview:YL,weCouldNotLoadYourBalanceAccounts:HL,weCouldNotLoadYourPayouts:GL,weCouldNotLoadYourTransactions:VL},JL="Conta",QL="Conta",XL="Adições",KL="Ajustes",qL="Valor",eC="Aplicar",tC="Conta de saldo",nC="ID da conta do saldo",oC="Reservado",sC="Capturado",rC="Categoria",aC="Chargebacks",iC="Fechar",cC="Entre em contato com o suporte para obter ajuda e compartilhe o código de erro %{requestId}",lC="Correções",uC="Moeda",dC="Data",hC="Intervalo de datas",gC="Descrição",mC="Descartar",pC="E-mail",fC="Entidade não encontrada",yC="Transação não encontrada para o titular da conta especificado",IC="Taxas",_C="Barra de filtro",TC="De",AC="Fundos capturados",SC="Subsídio emitido",NC="Reembolsos de subsídios",LC="Ocultar conteúdo",CC="ID",MC="Campo incompleto",EC="Celular",vC="Repasse do pagamento líquido",bC="Próximos repasses do pagamentos",DC="Sem dados",OC="Números negativos não são permitidos",$C="Nenhum repasse do pagamento encontrado",RC="Nenhuma transação encontrada",xC="Outros",wC="Navegação por página",PC="ID do pagamento",kC="Método de pagamento",jC="Detalhes do repasse do pagamento",FC="Liquidação",WC="Pendente",BC="Entre em contato com o suporte para obter assistência.",zC="Entre em contato com o suporte",UC="ID de referência",YC="Atualizar",HC="Reembolsos",GC="Valor restante",VC="Reiniciar",ZC="Revertido",JC="Ocorreu algum erro.",QC="Status",XC="Lista estruturada",KC="Subtrações",qC="Abas",eM="O código de erro é %{requestId}",tM="Não há resultados",nM="A solicitação não apresenta alguns campos obrigatórios, ou contém dados inválidos.",oM="Ocorreu um erro inesperado",sM="A conta selecionada está incorreta",rM="Fuso horário",aM="Até",iM="Total de entrada",cM="Total de saída",lM="O valor deve ser igual ou maior que o valor em Origem",uM="Detalhes da transação",dM="Transações",hM="Visão geral das transações",gM="Tipo de transação",mM="Transferências",pM="Tente uma pesquisa diferente ou redefina seus filtros para tentarmos novamente.",fM="Tente atualizar a página, ou volte mais tarde.",yM="Valor",IM="Tipo",_M="Valor",TM="Não foi possível carregar a visão geral dos repasses de pagamentos.",AM="Não foi possível carregar a visão geral das transações.",SM="Não foi possível carregar suas contas.",NM="Não foi possível carregar seus repasses de pagamentos.",LM="Não foi possível carregar suas transações.",CM={account:JL,accountBalance:QL,additions:XL,adjustments:KL,amount:qL,apply:eC,balanceAccount:tC,balanceAccountId:nC,Booked:oC,"button.clearAll":"Limpar tudo","calendar.controls":"Controles de navegação do calendário","calendar.nextMonth":"Próximo mês","calendar.previousMonth":"Mês anterior","calendar.timezone":"O fuso horário está definido em: GMT%{offset} (%{time})",capture:sC,category:rC,chargeback:aC,closeIconLabel:iC,contactSupportForHelpAndShareErrorCode:cC,correction:lC,currency:uC,date:dC,dateRange:hC,default:"Padrão",description:gC,dismiss:mC,email:pC,entityWasNotFound:fC,entityWasNotFoundDetail:yC,"expandableCard.collapse":"Recolher","expandableCard.expand":"Expandir",export:"Exportar",fee:IC,"filter.date.since":"Desde %{date}","filter.date.until":"Até %{date}",filterBar:_C,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Moeda","filterPlaceholder.status":"Status",from:TC,fundsCaptured:AC,grantIssued:SC,grantRepayment:NC,hideContent:LC,id:CC,incompleteField:MC,mobile:EC,netPayout:vC,nextPayouts:bC,noData:DC,noNegativeNumbersAllowed:OC,noPayoutsFound:$C,noTransactionsFound:RC,other:xC,paginatedNavigation:wC,"pagination.nextPage":"Próxima página","pagination.previousPage":"Página anterior","pagination.showing":"Exibindo",paymentId:PC,paymentMethod:kC,payoutDetails:jC,payoutsTitle:FC,Pending:WC,pleaseReachOutToSupportForAssistance:BC,"rangePreset.custom":"Personalizado","rangePreset.last30Days":"Últimos 30 dias","rangePreset.last7Days":"Últimos 7 dias","rangePreset.lastMonth":"Último mês","rangePreset.lastWeek":"Semana passada","rangePreset.thisMonth":"Este mês","rangePreset.thisWeek":"Esta semana","rangePreset.yearToDate":"Ano até o momento",reachOutToSupport:zC,referenceID:UC,refresh:YC,refund:HC,remainingAmount:GC,reset:VC,Reversed:ZC,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"A busca não retornou nenhuma opção",somethingWentWrong:JC,status:QC,structuredList:XC,subtractions:KC,tabs:qC,theErrorCodeIs:eM,thereAreNoResults:tM,theRequestIsMissingRequiredFieldsOrContainsInvalidData:nM,thereWasAnUnexpectedError:oM,theSelectedBalanceAccountIsIncorrect:sM,timezone:rM,to:aM,"tooltip.ATM":"Dinheiro sacado em um caixa eletrônico","tooltip.Capital":"Dinheiro recebido de um empréstimo ou enviado para pagamento de um empréstimo","tooltip.Chargeback":"Dinheiro devolvido a um cliente após uma transação contestada","tooltip.Correction":"Ajustes em seus fundos, incluindo reversões de transações e correções de depósitos","tooltip.Fee":"Custos de transação e taxas de métodos de pagamentos","tooltip.Other":"Transações que não estão em outra categoria, geralmente um ajuste","tooltip.Payment":"Dinheiro recebido em sua conta de uma transação de vendas","tooltip.Refund":"Dinheiro devolvido a um cliente após o reembolso de uma transação","tooltip.totalIncoming":"Todo o dinheiro recebido em sua conta com base nos filtros selecionados","tooltip.totalOutgoing":"Todas as taxas, os reembolsos, os repasses de pagamentos e outras cobranças com base nos filtros selecionados","tooltip.Transfer":"Dinheiro transferido de sua conta para outra",totalIncoming:iM,totalOutgoing:cM,toValueShouldBeGreaterThanTheFromValue:lM,transactionDetails:uM,transactions:dM,transactionsOverviewTitle:hM,transactionType:gM,transfer:mM,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:pM,tryRefreshingThePageOrComeBackLater:fM,txAmount:yM,"txType.ATM":"Caixa eletrônico","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correção","txType.Fee":"Taxa","txType.Other":"Outros","txType.Payment":"Pagamento","txType.Refund":"Reembolso","txType.Transfer":"Transferir",type:IM,value:_M,weCouldNotLoadThePayoutsOverview:TM,weCouldNotLoadTheTransactionsOverview:AM,weCouldNotLoadYourBalanceAccounts:SM,weCouldNotLoadYourPayouts:NM,weCouldNotLoadYourTransactions:LM},MM="Konto",EM="Kontosaldo",vM="Tillägg",bM="Justeringar",DM="Belopp",OM="Tillämpa",$M="Saldokonto",RM="ID för saldokonto",xM="Bokad",wM="Insamlad",PM="Kategori",kM="Chargebacks",jM="Stäng",FM="Kontakta supporten för hjälp och ange felkoden %{requestId}",WM="Rättelser",BM="Valuta",zM="Datum",UM="Datumintervall",YM="Beskrivning",HM="Avvisa",GM="E-post",VM="Enheten hittades inte",ZM="Transaktionen hittades inte för den angivna kontoinnehavaren",JM="Avgifter",QM="Filterfält",XM="Från",KM="Insamlade medel",qM="Beviljat bidrag",eE="Återbetalning av bidrag",tE="Dölj innehåll",nE="ID",oE="Ofullständigt fält",sE="Mobil",rE="Nettoutbetalning",aE="Nästa utbetalning",iE="Inga uppgifter",cE="Inga negativa tal tillåtna",lE="Inga utbetalningar hittades",uE="Inga transaktioner hittades",dE="Annat",hE="Paginerad navigering",gE="Betalnings-id",mE="Betalningsmetod",pE="Information om utbetalning",fE="Utbetalningar",yE="Väntande",IE="Kontakta supporten för att få hjälp.",_E="Kontakta supporten",TE="Referens-id",AE="Uppdatera",SE="Återbetalningar",NE="Återstående belopp",LE="Återställ",CE="Upphävt",ME="Något gick fel.",EE="Status",vE="Strukturerad lista",bE="Subtraktioner",DE="Flikar",OE="Felkoden är %{requestId}",$E="Det finns inga resultat",RE="Begäran saknar obligatoriska fält eller innehåller ogiltiga data.",xE="Det uppstod ett oväntat fel",wE="Det valda saldokontot är felaktigt",PE="Tidszon",kE="Till",jE="Totalt inkommande",FE="Totalt utgående",WE="Till-värdet ska vara lika med eller större än Från-värdet",BE="Transaktionsdetaljer",zE="Transaktioner",UE="Transaktionsöversikt",YE="Transaktionstyp",HE="Överföringar",GE="Försök med en annan sökning eller återställ dina filter, så försöker vi igen.",VE="Försök att uppdatera sidan eller kom tillbaka senare.",ZE="Belopp",JE="Typ",QE="Värde",XE="Vi kunde inte ladda utbetalningsöversikten.",KE="Vi kunde inte ladda transaktionsöversikten.",qE="Vi kunde inte ladda dina saldokonton.",ev="Vi kunde inte ladda dina utbetalningar.",tv="Vi kunde inte ladda dina transaktioner.",nv={account:MM,accountBalance:EM,additions:vM,adjustments:bM,amount:DM,apply:OM,balanceAccount:$M,balanceAccountId:RM,Booked:xM,"button.clearAll":"Rensa alla","calendar.controls":"Kontroller för kalendernavigering","calendar.nextMonth":"Nästa månad","calendar.previousMonth":"Föregående månad","calendar.timezone":"Tidszonen är inställd på: GMT%{offset} (%{time})",capture:wM,category:PM,chargeback:kM,closeIconLabel:jM,contactSupportForHelpAndShareErrorCode:FM,correction:WM,currency:BM,date:zM,dateRange:UM,default:"Standard",description:YM,dismiss:HM,email:GM,entityWasNotFound:VM,entityWasNotFoundDetail:ZM,"expandableCard.collapse":"Minimera","expandableCard.expand":"Expandera",export:"Exportera",fee:JM,"filter.date.since":"Sedan %{date}","filter.date.until":"Till %{date}",filterBar:QM,"filterPlaceholder.category":"Typ","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:XM,fundsCaptured:KM,grantIssued:qM,grantRepayment:eE,hideContent:tE,id:nE,incompleteField:oE,mobile:sE,netPayout:rE,nextPayouts:aE,noData:iE,noNegativeNumbersAllowed:cE,noPayoutsFound:lE,noTransactionsFound:uE,other:dE,paginatedNavigation:hE,"pagination.nextPage":"Nästa sida","pagination.previousPage":"Föregående sida","pagination.showing":"Visar",paymentId:gE,paymentMethod:mE,payoutDetails:pE,payoutsTitle:fE,Pending:yE,pleaseReachOutToSupportForAssistance:IE,"rangePreset.custom":"Anpassat","rangePreset.last30Days":"Senaste 30 dagarna","rangePreset.last7Days":"Senaste 7 dagarna","rangePreset.lastMonth":"Förra månaden","rangePreset.lastWeek":"Förra veckan","rangePreset.thisMonth":"Den här månaden","rangePreset.thisWeek":"Denna vecka","rangePreset.yearToDate":"Hittills i år",reachOutToSupport:_E,referenceID:TE,refresh:AE,refund:SE,remainingAmount:NE,reset:LE,Reversed:CE,"select.filter.placeholder":"Platshållare","select.noOptionsFound":"Inga alternativ matchar denna sökning",somethingWentWrong:ME,status:EE,structuredList:vE,subtractions:bE,tabs:DE,theErrorCodeIs:OE,thereAreNoResults:$E,theRequestIsMissingRequiredFieldsOrContainsInvalidData:RE,thereWasAnUnexpectedError:xE,theSelectedBalanceAccountIsIncorrect:wE,timezone:PE,to:kE,"tooltip.ATM":"Pengar tas ut i en bankomat","tooltip.Capital":"Pengar från ett inkommande lånebidrag eller en utgående låneåterbetalning","tooltip.Chargeback":"Pengar returnerades till en kund efter en omtvistad transaktion","tooltip.Correction":"Justeringar av dina medel, inklusive återföringar av transaktioner och korrigeringar av insättningar","tooltip.Fee":"Transaktionskostnader och avgifter för betalningssätt","tooltip.Other":"Transaktioner som inte tillhör en annan kategori, vanligtvis en justering","tooltip.Payment":"Pengar som kommit in på ditt konto från en försäljningstransaktion","tooltip.Refund":"Pengar som skickats tillbaka till en kund från en återbetald transaktion","tooltip.totalIncoming":"Alla pengar som tagits emot på ditt konto baserat på de valda filtren","tooltip.totalOutgoing":"Alla avgifter, återbetalningar, utbetalningar och andra avgifter baserade på de valda filtren","tooltip.Transfer":"Pengar som flyttats mellan ditt konto och ett annat konto",totalIncoming:jE,totalOutgoing:FE,toValueShouldBeGreaterThanTheFromValue:WE,transactionDetails:BE,transactions:zE,transactionsOverviewTitle:UE,transactionType:YE,transfer:HE,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:GE,tryRefreshingThePageOrComeBackLater:VE,txAmount:ZE,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Korrektion","txType.Fee":"Avgift","txType.Other":"Annat","txType.Payment":"Betalning","txType.Refund":"Återbetalning","txType.Transfer":"Överföring",type:JE,value:QE,weCouldNotLoadThePayoutsOverview:XE,weCouldNotLoadTheTransactionsOverview:KE,weCouldNotLoadYourBalanceAccounts:qE,weCouldNotLoadYourPayouts:ev,weCouldNotLoadYourTransactions:tv},wc={da_DK:Np},Pc={de_DE:ty},Ta={en_US:Oc},kc={es_ES:$I},jc={fr_FR:lT},Fc={it_IT:WA},Wc={nl_NL:yN},Bc={no_NO:ZL},zc={pt_BR:CM},Uc={sv_SE:nv},ov={...wc,...Pc,...kc,...jc,...Fc,...Wc,...Bc,...zc,...Uc},sv={values:U,count:0},rv={"en-US":Ta.en_US},Es=e=>e.substring(0,2).toLowerCase();function av(e,t){if(!e)return null;const n=Es(e);return t.find(o=>Es(o)===n)||null}function Aa(e){const t=e.replace("_","-");if($g.test(t))return t;const[n,o]=t.split("-");if(!n||!o)return null;const s=`${n.toLowerCase()}-${o.toUpperCase()}`;return s.length===5?s:null}function Sa(e,t){const n=e.trim();if(!n||n.length<1||n.length>5)return wt;const o=Aa(n);return o&&t.indexOf(o)>-1?o:av(o??n,[...t])}function iv(e=U,t){return e===U?e:Object.keys(e).reduce((n,o)=>{const s=Aa(o)||Sa(o,t);return s&&e[o]&&(n[s]=e[o]),n},{})}const Mr=(e,t)=>e.replace(/%{(\w+)}/g,(n,o)=>(t==null?void 0:t[o])||""),ui=(e,t,n=sv)=>{const o=n.count??0,s=`${t}__${o}`;if(it(e,s)&&e[s])return Mr(e[s],n.values);const r=`${t}__plural`;return it(e,r)&&o>1&&e[r]?Mr(e[r],n.values):it(e,t)&&e[t]?Mr(e[t],n.values):null},cv=async(e,t,n=U)=>{const o=t??rv,s=Sa(e,Object.keys(o))||wt,r=o[s]||o[wt];return{...$c,...r,...Ao(n==null?void 0:n[e])}};function lv(){let e=this.locale,t=e,n=[...this.supportedLocales];return H({load:{value:o=>cv(e,this.preferredTranslations,o)},locale:{get:()=>e,set:o=>{t=o,e=Aa(o)||Sa(o,n)||wt}},supportedLocales:{get:()=>n,set(o){n=o,this.locale=t}}})}function uv(){var t;const e={};for(const[n,o]of Object.entries(Object.getOwnPropertyDescriptors(ur.prototype)))wg.includes(n)||(K(o.get)?e[n]={get:o.get.bind(this),...n==="timezone"&&{set:(t=o.set)==null?void 0:t.bind(this)}}:K(o.value)?e[n]={value:o.value.bind(this)}:e[n]={get:()=>this[n]});return e}var dt,Eo,vo,bn,Dn,yt,bo,Gt,Vt,On,$n,Do,zr;class ur{constructor(t=wt,n){S(this,Do);S(this,dt,wt);S(this,Eo,Es(h(this,dt)));S(this,vo,hs);S(this,bn,void 0);S(this,Dn,$c);S(this,yt,lv.call(this));S(this,bo,rr);S(this,Gt,void 0);S(this,Vt,void 0);S(this,On,as({timestamp:()=>performance.now()}));S(this,$n,lr());w(this,"watch",h(this,On).subscribe.bind(void 0));w(this,"i18n",H(uv.call(this)));w(this,"preferredTranslations");this.watch(oe),this.preferredTranslations=n&&n.reduce((o,s)=>({...o,...s}),{[wt]:Ta.en_US}),this.locale=t}get customTranslations(){return h(this,bn)??{}}set customTranslations(t){let n,o=[...hs];if(!ue(t)){n=iv(t,hs);const s=Object.keys(n);o=[...hs,...s].filter((r,a,i)=>i.indexOf(r)===a)}h(this,yt).supportedLocales=o,R(this,Do,zr).call(this,n)}get languageCode(){return h(this,Eo)}get lastRefreshTimestamp(){return h(this,On).snapshot.timestamp}get locale(){return h(this,dt)}set locale(t){if(ue(t))this.locale=wt;else{if(h(this,yt).locale=t,h(this,dt)===h(this,yt).locale)return;R(this,Do,zr).call(this,h(this,bn))}}get ready(){return h(this,bo)}get supportedLocales(){return h(this,vo)}get timezone(){return h(this,$n).tz.current}set timezone(t){h(this,$n).tz=t}get(t,n){const o=ui(h(this,Dn),t,n);return Ms(o)?t:o}has(t,n){return!!ui(h(this,Dn),t,n)}amount(t,n,o){const{hideCurrency:s,...r}=o||{},a=eh(t,h(this,dt),n,s,{...r,currencyDisplay:"symbol",signDisplay:"never"});return t<0?`- ${a}`:a}date(t,n={}){const o={...xg,timeZone:h(this,$n).tz.current,...n};return new Date(t).toLocaleDateString(h(this,dt),o)}fullDate(t){return this.date(t,{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}}dt=new WeakMap,Eo=new WeakMap,vo=new WeakMap,bn=new WeakMap,Dn=new WeakMap,yt=new WeakMap,bo=new WeakMap,Gt=new WeakMap,Vt=new WeakMap,On=new WeakMap,$n=new WeakMap,Do=new WeakSet,zr=function(t){G(h(this,Vt))&&_(this,bo,new Promise(s=>{_(this,Vt,()=>{s(h(this,Gt)),_(this,Gt,_(this,Vt,void 0))})}));const n=()=>{var s;h(this,Gt)===o&&((s=h(this,Vt))==null||s.call(this))},o=_(this,Gt,(async()=>{_(this,Dn,await h(this,yt).load(t)),_(this,dt,h(this,yt).locale),_(this,vo,h(this,yt).supportedLocales),_(this,bn,t),_(this,Eo,Es(h(this,dt))),h(this,On).requestNotification()})());o.then(n).catch(s=>{n(),console.error(s)})};class Yc{constructor(t){w(this,"components",[]);w(this,"options");w(this,"localization");w(this,"loadingContext");w(this,"session",new Vd);w(this,"onError");w(this,"update",async(t=U)=>(this.setOptions(t),await this.initialize(),this.components.forEach(n=>{n.props.core===this&&n.update(this.getPropsForComponent(this.options))}),this));w(this,"remove",t=>(this.components=this.components.filter(n=>n._id!==t._id),t.unmount(),this));w(this,"registerComponent",t=>{t.props.core===this&&this.components.push(t)});w(this,"setOptions",t=>{var n,o;return this.options={...this.options,...t},this.localization.locale=(n=this.options)==null?void 0:n.locale,this.localization.customTranslations=(o=this.options)==null?void 0:o.translations,this.session.loadingContext=this.loadingContext,this.session.onSessionCreate=this.options.onSessionCreate,this});this.options={environment:kr,...t},this.localization=new ur(t.locale,t.availableTranslations),this.loadingContext=td(this.options.environment),this.setOptions(t)}async initialize(){return Promise.all([this.localization.ready]).then(()=>this)}getPropsForComponent(t){return{...t}}}w(Yc,"version","1.0.2");const Hc=Yc;var is,J,Gc,Vc,Yt,di,Zc,Ur,Na,Yr,Hr,Jc,So={},Qc=[],dv=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,dr=Array.isArray;function Nt(e,t){for(var n in t)e[n]=t[n];return e}function Xc(e){var t=e.parentNode;t&&t.removeChild(e)}function Kn(e,t,n){var o,s,r,a={};for(r in t)r=="key"?o=t[r]:r=="ref"?s=t[r]:a[r]=t[r];if(arguments.length>2&&(a.children=arguments.length>3?is.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)a[r]===void 0&&(a[r]=e.defaultProps[r]);return yo(e,a,o,s,null)}function yo(e,t,n,o,s){var r={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++Gc,__i:-1,__u:0};return s==null&&J.vnode!=null&&J.vnode(r),r}function Z(e){return e.children}function Ct(e,t){this.props=e,this.context=t}function an(e,t){if(t==null)return e.__?an(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?an(e):null}function Kc(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Kc(e)}}function Gr(e){(!e.__d&&(e.__d=!0)&&Yt.push(e)&&!vs.__r++||di!==J.debounceRendering)&&((di=J.debounceRendering)||Zc)(vs)}function vs(){var e,t,n,o,s,r,a,i;for(Yt.sort(Ur);e=Yt.shift();)e.__d&&(t=Yt.length,o=void 0,r=(s=(n=e).__v).__e,a=[],i=[],n.__P&&((o=Nt({},s)).__v=s.__v+1,J.vnode&&J.vnode(o),La(n.__P,o,s,n.__n,n.__P.ownerSVGElement!==void 0,32&s.__u?[r]:null,a,r??an(s),!!(32&s.__u),i),o.__v=s.__v,o.__.__k[o.__i]=o,tl(a,o,i),o.__e!=r&&Kc(o)),Yt.length>t&&Yt.sort(Ur));vs.__r=0}function qc(e,t,n,o,s,r,a,i,c,d,g){var u,p,m,y,f,A=o&&o.__k||Qc,I=t.length;for(n.__d=c,hv(n,t,A),c=n.__d,u=0;u<I;u++)(m=n.__k[u])!=null&&typeof m!="boolean"&&typeof m!="function"&&(p=m.__i===-1?So:A[m.__i]||So,m.__i=u,La(e,m,p,s,r,a,i,c,d,g),y=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&Ca(p.ref,null,m),g.push(m.ref,m.__c||y,m)),f==null&&y!=null&&(f=y),65536&m.__u||p.__k===m.__k?(c&&!c.isConnected&&(c=an(p)),c=el(m,c,e)):typeof m.type=="function"&&m.__d!==void 0?c=m.__d:y&&(c=y.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=c,n.__e=f}function hv(e,t,n){var o,s,r,a,i,c=t.length,d=n.length,g=d,u=0;for(e.__k=[],o=0;o<c;o++)a=o+u,(s=e.__k[o]=(s=t[o])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?yo(null,s,null,null,null):dr(s)?yo(Z,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?yo(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,i=gv(s,n,a,g),s.__i=i,r=null,i!==-1&&(g--,(r=n[i])&&(r.__u|=131072)),r==null||r.__v===null?(i==-1&&u--,typeof s.type!="function"&&(s.__u|=65536)):i!==a&&(i===a+1?u++:i>a?g>c-a?u+=i-a:u--:i<a?i==a-1&&(u=i-a):u=0,i!==o+u&&(s.__u|=65536))):(r=n[a])&&r.key==null&&r.__e&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=an(r)),Vr(r,r,!1),n[a]=null,g--);if(g)for(o=0;o<d;o++)(r=n[o])!=null&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=an(r)),Vr(r,r))}function el(e,t,n){var o,s;if(typeof e.type=="function"){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=el(o[s],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function kt(e,t){return t=t||[],e==null||typeof e=="boolean"||(dr(e)?e.some(function(n){kt(n,t)}):t.push(e)),t}function gv(e,t,n,o){var s=e.key,r=e.type,a=n-1,i=n+1,c=t[n];if(c===null||c&&s==c.key&&r===c.type&&!(131072&c.__u))return n;if(o>(c!=null&&!(131072&c.__u)?1:0))for(;a>=0||i<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&s==c.key&&r===c.type)return a;a--}if(i<t.length){if((c=t[i])&&!(131072&c.__u)&&s==c.key&&r===c.type)return i;i++}}return-1}function hi(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||dv.test(t)?n:n+"px"}function ms(e,t,n,o,s){var r;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||hi(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||hi(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o?n.u=o.u:(n.u=Na,e.addEventListener(t,r?Hr:Yr,r)):e.removeEventListener(t,r?Hr:Yr,r);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function gi(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Na++;else if(t.t<n.u)return;return n(J.event?J.event(t):t)}}}function La(e,t,n,o,s,r,a,i,c,d){var g,u,p,m,y,f,A,I,M,L,E,v,$,b,D,O=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),r=[i=t.__e=n.__e]),(g=J.__b)&&g(t);e:if(typeof O=="function")try{if(I=t.props,M=(g=O.contextType)&&o[g.__c],L=g?M?M.props.value:g.__:o,n.__c?A=(u=t.__c=n.__c).__=u.__E:("prototype"in O&&O.prototype.render?t.__c=u=new O(I,L):(t.__c=u=new Ct(I,L),u.constructor=O,u.render=pv),M&&M.sub(u),u.props=I,u.state||(u.state={}),u.context=L,u.__n=o,p=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),O.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Nt({},u.__s)),Nt(u.__s,O.getDerivedStateFromProps(I,u.__s))),m=u.props,y=u.state,u.__v=t,p)O.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(O.getDerivedStateFromProps==null&&I!==m&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(I,L),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(I,u.__s,L)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=I,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(j){j&&(j.__=t)}),E=0;E<u._sb.length;E++)u.__h.push(u._sb[E]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(I,u.__s,L),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(m,y,f)})}if(u.context=L,u.props=I,u.__P=e,u.__e=!1,v=J.__r,$=0,"prototype"in O&&O.prototype.render){for(u.state=u.__s,u.__d=!1,v&&v(t),g=u.render(u.props,u.state,u.context),b=0;b<u._sb.length;b++)u.__h.push(u._sb[b]);u._sb=[]}else do u.__d=!1,v&&v(t),g=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++$<25);u.state=u.__s,u.getChildContext!=null&&(o=Nt(Nt({},o),u.getChildContext())),p||u.getSnapshotBeforeUpdate==null||(f=u.getSnapshotBeforeUpdate(m,y)),qc(e,dr(D=g!=null&&g.type===Z&&g.key==null?g.props.children:g)?D:[D],t,n,o,s,r,a,i,c,d),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),A&&(u.__E=u.__=null)}catch(j){t.__v=null,c||r!=null?(t.__e=i,t.__u|=c?160:32,r[r.indexOf(i)]=null):(t.__e=n.__e,t.__k=n.__k),J.__e(j,t,n)}else r==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=mv(n.__e,t,n,o,s,r,a,c,d);(g=J.diffed)&&g(t)}function tl(e,t,n){t.__d=void 0;for(var o=0;o<n.length;o++)Ca(n[o],n[++o],n[++o]);J.__c&&J.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(r){r.call(s)})}catch(r){J.__e(r,s.__v)}})}function mv(e,t,n,o,s,r,a,i,c){var d,g,u,p,m,y,f,A=n.props,I=t.props,M=t.type;if(M==="svg"&&(s=!0),r!=null){for(d=0;d<r.length;d++)if((m=r[d])&&"setAttribute"in m==!!M&&(M?m.localName===M:m.nodeType===3)){e=m,r[d]=null;break}}if(e==null){if(M===null)return document.createTextNode(I);e=s?document.createElementNS("http://www.w3.org/2000/svg",M):document.createElement(M,I.is&&I),r=null,i=!1}if(M===null)A===I||i&&e.data===I||(e.data=I);else{if(r=r&&is.call(e.childNodes),A=n.props||So,!i&&r!=null)for(A={},d=0;d<e.attributes.length;d++)A[(m=e.attributes[d]).name]=m.value;for(d in A)m=A[d],d=="children"||(d=="dangerouslySetInnerHTML"?u=m:d==="key"||d in I||ms(e,d,null,m,s));for(d in I)m=I[d],d=="children"?p=m:d=="dangerouslySetInnerHTML"?g=m:d=="value"?y=m:d=="checked"?f=m:d==="key"||i&&typeof m!="function"||A[d]===m||ms(e,d,m,A[d],s);if(g)i||u&&(g.__html===u.__html||g.__html===e.innerHTML)||(e.innerHTML=g.__html),t.__k=[];else if(u&&(e.innerHTML=""),qc(e,dr(p)?p:[p],t,n,o,s&&M!=="foreignObject",r,a,r?r[0]:n.__k&&an(n,0),i,c),r!=null)for(d=r.length;d--;)r[d]!=null&&Xc(r[d]);i||(d="value",y!==void 0&&(y!==e[d]||M==="progress"&&!y||M==="option"&&y!==A[d])&&ms(e,d,y,A[d],!1),d="checked",f!==void 0&&f!==e[d]&&ms(e,d,f,A[d],!1))}return e}function Ca(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(o){J.__e(o,n)}}function Vr(e,t,n){var o,s;if(J.unmount&&J.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||Ca(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){J.__e(r,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&Vr(o[s],t,n||typeof e.type!="function");n||e.__e==null||Xc(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function pv(e,t,n){return this.constructor(e,n)}function Tn(e,t,n){var o,s,r,a;J.__&&J.__(e,t),s=(o=typeof n=="function")?null:n&&n.__k||t.__k,r=[],a=[],La(t,e=(!o&&n||t).__k=Kn(Z,null,[e]),s||So,So,t.ownerSVGElement!==void 0,!o&&n?[n]:s?null:t.firstChild?is.call(t.childNodes):null,r,!o&&n?n:s?s.__e:t.firstChild,o,a),tl(r,e,a)}function nl(e,t,n){var o,s,r,a,i=Nt({},e.props);for(r in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)r=="key"?o=t[r]:r=="ref"?s=t[r]:i[r]=t[r]===void 0&&a!==void 0?a[r]:t[r];return arguments.length>2&&(i.children=arguments.length>3?is.call(arguments,2):n),yo(e.type,i,o||e.key,s||e.ref,null)}function Ma(e,t){var n={__c:t="__cC"+Jc++,__:e,Consumer:function(o,s){return o.children(s)},Provider:function(o){var s,r;return this.getChildContext||(s=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&s.some(function(i){i.__e=!0,Gr(i)})},this.sub=function(a){s.push(a);var i=a.componentWillUnmount;a.componentWillUnmount=function(){s.splice(s.indexOf(a),1),i&&i.call(a)}}),o.children}};return n.Provider.__=n.Consumer.contextType=n}is=Qc.slice,J={__e:function(e,t,n,o){for(var s,r,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((r=s.constructor)&&r.getDerivedStateFromError!=null&&(s.setState(r.getDerivedStateFromError(e)),a=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,o||{}),a=s.__d),a)return s.__E=s}catch(i){e=i}throw e}},Gc=0,Vc=function(e){return e!=null&&e.constructor==null},Ct.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Nt({},this.state),typeof e=="function"&&(e=e(Nt({},n),this.props)),e&&Nt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Gr(this))},Ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Gr(this))},Ct.prototype.render=Z,Yt=[],Zc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ur=function(e,t){return e.__v.__b-t.__v.__b},vs.__r=0,Na=0,Yr=gi(!1),Hr=gi(!0),Jc=0;var cn,ie,Er,mi,qn=0,ol=[],fs=[],fe=J,pi=fe.__b,fi=fe.__r,yi=fe.diffed,Ii=fe.__c,_i=fe.unmount,Ti=fe.__;function cs(e,t){fe.__h&&fe.__h(ie,e,qn||t),qn=0;var n=ie.__H||(ie.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:fs}),n.__[e]}function B(e){return qn=1,hr(rl,e)}function hr(e,t,n){var o=cs(cn++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):rl(void 0,t),function(i){var c=o.__N?o.__N[0]:o.__[0],d=o.t(c,i);c!==d&&(o.__N=[d,o.__[1]],o.__c.setState({}))}],o.__c=ie,!ie.u)){var s=function(i,c,d){if(!o.__c.__H)return!0;var g=o.__c.__H.__.filter(function(p){return!!p.__c});if(g.every(function(p){return!p.__N}))return!r||r.call(this,i,c,d);var u=!1;return g.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(u=!0)}}),!(!u&&o.__c.props===i)&&(!r||r.call(this,i,c,d))};ie.u=!0;var r=ie.shouldComponentUpdate,a=ie.componentWillUpdate;ie.componentWillUpdate=function(i,c,d){if(this.__e){var g=r;r=void 0,s(i,c,d),r=g}a&&a.call(this,i,c,d)},ie.shouldComponentUpdate=s}return o.__N||o.__}function W(e,t){var n=cs(cn++,3);!fe.__s&&va(n.__H,t)&&(n.__=e,n.i=t,ie.__H.__h.push(n))}function sl(e,t){var n=cs(cn++,4);!fe.__s&&va(n.__H,t)&&(n.__=e,n.i=t,ie.__h.push(n))}function k(e){return qn=5,T(function(){return{current:e}},[])}function fv(e,t,n){qn=6,sl(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function T(e,t){var n=cs(cn++,7);return va(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function N(e,t){return qn=8,T(function(){return e},t)}function Ea(e){var t=ie.context[e.__c],n=cs(cn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ie)),t.props.value):e.__}function yv(){for(var e;e=ol.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ys),e.__H.__h.forEach(Zr),e.__H.__h=[]}catch(t){e.__H.__h=[],fe.__e(t,e.__v)}}fe.__b=function(e){ie=null,pi&&pi(e)},fe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ti&&Ti(e,t)},fe.__r=function(e){fi&&fi(e),cn=0;var t=(ie=e.__c).__H;t&&(Er===ie?(t.__h=[],ie.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=fs,n.__N=n.i=void 0})):(t.__h.forEach(ys),t.__h.forEach(Zr),t.__h=[],cn=0)),Er=ie},fe.diffed=function(e){yi&&yi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ol.push(t)!==1&&mi===fe.requestAnimationFrame||((mi=fe.requestAnimationFrame)||Iv)(yv)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==fs&&(n.__=n.__V),n.i=void 0,n.__V=fs})),Er=ie=null},fe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ys),n.__h=n.__h.filter(function(o){return!o.__||Zr(o)})}catch(o){t.some(function(s){s.__h&&(s.__h=[])}),t=[],fe.__e(o,n.__v)}}),Ii&&Ii(e,t)},fe.unmount=function(e){_i&&_i(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{ys(o)}catch(s){t=s}}),n.__H=void 0,t&&fe.__e(t,n.__v))};var Ai=typeof requestAnimationFrame=="function";function Iv(e){var t,n=function(){clearTimeout(o),Ai&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);Ai&&(t=requestAnimationFrame(n))}function ys(e){var t=ie,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ie=t}function Zr(e){var t=ie;e.__c=e.__(),ie=t}function va(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function rl(e,t){return typeof t=="function"?t(e):t}var _v=0;function l(e,t,n,o,s,r){var a,i,c={};for(i in t)i=="ref"?a=t[i]:c[i]=t[i];var d={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--_v,__i:-1,__u:0,__source:s,__self:r};if(typeof e=="function"&&(a=e.defaultProps))for(i in a)c[i]===void 0&&(c[i]=a[i]);return J.vnode&&J.vnode(d),d}const al=Ma({endpoints:U,hasError:!1,http:nd,isExpired:void 0,refresh:oe,refreshing:!1}),Tv=({children:e,session:t})=>{const[,n]=B(0),[o,s]=B(0);return W(()=>t.subscribe(r=>{(so(r)?s:n)(i=>i+1)}),[o,t]),l(al.Provider,{value:t.context,children:kt(e)})},jt=()=>Ea(al);function gr({fetchOptions:e={keepPrevData:!0},queryFn:t,params:n}){k(new Map);const o=k(!1),s={error:void 0,data:void 0,isFetching:Pt(e.enabled)},r=(d,g)=>{switch(g.type){case"loading":return{...s,isFetching:!0,data:e.keepPrevData?d.data:void 0};case"fetched":return{...s,data:g.payload,isFetching:!1};case"error":return{...s,error:g.payload,isFetching:!1};default:return d}},[a,i]=hr(r,s),c=N(async()=>{i({type:"loading"});try{if(o.current)return;const d=await t();i({type:"fetched",payload:d})}catch(d){if(o.current)return;i({type:"error",payload:d})}},[i,t]);return W(()=>(o.current=!1,Pt(e.enabled)&&c(),()=>{o.current=!0}),[e.enabled,c]),a}const Av=(e,t)=>{const{getBalanceAccounts:n}=jt().endpoints,{data:o,isFetching:s,error:r}=gr(T(()=>({fetchOptions:{enabled:!!n&&(t??!0),keepPrevData:!0},queryFn:async()=>n==null?void 0:n(U)}),[n])),a=T(()=>o==null?void 0:o.data.filter(c=>e?c.id===e:!0),[o==null?void 0:o.data,e]),i=T(()=>!!e&&!!(o!=null&&o.data.length)&&(a==null?void 0:a.length)===0,[a==null?void 0:a.length,o==null?void 0:o.data.length,e]);return{balanceAccounts:a,isBalanceAccountIdWrong:i,isFetching:s,error:r}},ba=Av,Sv="adyen-pe-data-overview-container--with-error",je="adyen-pe-typography";var P=(e=>(e.CAPTION="caption",e.BODY="body",e.SUBTITLE="subtitle",e.TITLE="title",e))(P||{}),ft=(e=>(e.WIDE="wide",e.STRONGER="stronger",e.STRONGER_WIDE="stronger-wide",e.STRONGEST="strongest",e.STRONGEST_WIDE="strongest-wide",e.MEDIUM="m",e.LARGE="l",e.MOBILE="mobile",e))(ft||{}),eo=(e=>(e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.DIV="div",e.PARAGRAPH="p",e.SPAN="span",e))(eo||{});function il(e,t){for(var n in t)e[n]=t[n];return e}function Jr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function Si(e,t){this.props=e,this.context=t}function Se(e,t){function n(s){var r=this.props.ref,a=r==s.ref;return!a&&r&&(r.call?r(null):r.current=null),t?!t(this.props,s)||!a:Jr(this.props,s)}function o(s){return this.shouldComponentUpdate=n,Kn(e,s)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(Si.prototype=new Ct).isPureReactComponent=!0,Si.prototype.shouldComponentUpdate=function(e,t){return Jr(this.props,e)||Jr(this.state,t)};var Ni=J.__b;J.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ni&&Ni(e)};var Nv=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ro(e){function t(n){var o=il({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=Nv,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Lv=J.__e;J.__e=function(e,t,n,o){if(e.then){for(var s,r=t;r=r.__;)if((s=r.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Lv(e,t,n,o)};var Li=J.unmount;function cl(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=il({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return cl(o,t,n)})),e}function ll(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return ll(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function vr(){this.__u=0,this.t=null,this.__b=null}function ul(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ps(){this.u=null,this.o=null}J.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Li&&Li(e)},(vr.prototype=new Ct).__c=function(e,t){var n=t.__c,o=this;o.t==null&&(o.t=[]),o.t.push(n);var s=ul(o.__v),r=!1,a=function(){r||(r=!0,n.__R=null,s?s(i):i())};n.__R=a;var i=function(){if(!--o.__u){if(o.state.__a){var c=o.state.__a;o.__v.__k[0]=ll(c,c.__c.__P,c.__c.__O)}var d;for(o.setState({__a:o.__b=null});d=o.t.pop();)d.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(a,a)},vr.prototype.componentWillUnmount=function(){this.t=[]},vr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=cl(this.__b,n,o.__O=o.__P)}this.__b=null}var s=t.__a&&Kn(Z,null,e.fallback);return s&&(s.__u&=-33),[Kn(Z,null,t.__a?null:e.children),s]};var Ci=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Cv(e){return this.getChildContext=function(){return e.context},e.children}function Mv(e){var t=this,n=e.i;t.componentWillUnmount=function(){Tn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(o){this.childNodes.push(o),t.i.appendChild(o)},insertBefore:function(o,s){this.childNodes.push(o),t.i.appendChild(o)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.i.removeChild(o)}}),Tn(Kn(Cv,{context:t.context},e.__v),t.l)}function dl(e,t){var n=Kn(Mv,{__v:e,i:t});return n.containerInfo=t,n}(ps.prototype=new Ct).__a=function(e){var t=this,n=ul(t.__v),o=t.o.get(e);return o[0]++,function(s){var r=function(){t.props.revealOrder?(o.push(s),Ci(t,e,o)):s()};n?n(r):r()}},ps.prototype.render=function(e){this.u=null,this.o=new Map;var t=kt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ps.prototype.componentDidUpdate=ps.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ci(e,n,t)})};var Ev=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,vv=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,bv=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Dv=/[A-Z0-9]/g,Ov=typeof document<"u",$v=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Mi=J.event;function Rv(){}function xv(){return this.cancelBubble}function wv(){return this.defaultPrevented}J.event=function(e){return Mi&&(e=Mi(e)),e.persist=Rv,e.isPropagationStopped=xv,e.isDefaultPrevented=wv,e.nativeEvent=e};var Pv={enumerable:!1,configurable:!0,get:function(){return this.class}},Ei=J.vnode;J.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,o=t.type,s={};for(var r in n){var a=n[r];if(!(r==="value"&&"defaultValue"in n&&a==null||Ov&&r==="children"&&o==="noscript"||r==="class"||r==="className")){var i=r.toLowerCase();r==="defaultValue"&&"value"in n&&n.value==null?r="value":r==="download"&&a===!0?a="":i==="translate"&&a==="no"?a=!1:i==="ondoubleclick"?r="ondblclick":i!=="onchange"||o!=="input"&&o!=="textarea"||$v(n.type)?i==="onfocus"?r="onfocusin":i==="onblur"?r="onfocusout":bv.test(r)?r=i:o.indexOf("-")===-1&&vv.test(r)?r=r.replace(Dv,"-$&").toLowerCase():a===null&&(a=void 0):i=r="oninput",i==="oninput"&&s[r=i]&&(r="oninputCapture"),s[r]=a}}o=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=kt(n.children).forEach(function(c){c.props.selected=s.value.indexOf(c.props.value)!=-1})),o=="select"&&s.defaultValue!=null&&(s.value=kt(n.children).forEach(function(c){c.props.selected=s.multiple?s.defaultValue.indexOf(c.props.value)!=-1:s.defaultValue==c.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",Pv)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=Ev,Ei&&Ei(e)};var vi=J.__r;J.__r=function(e){vi&&vi(e),e.__c};var bi=J.diffed;J.diffed=function(e){bi&&bi(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};function kv({el:e,className:t,stronger:n,strongest:o,variant:s,medium:r,large:a,wide:i,children:c}){const d=e||"p",g=T(()=>({[`${je}--${P.CAPTION}`]:s===P.CAPTION,[`${je}--${P.CAPTION}-${ft.WIDE}`]:s===P.CAPTION&&i,[`${je}--${P.CAPTION}-${ft.STRONGER}`]:s===P.CAPTION&&n,[`${je}--${P.BODY}`]:s===P.BODY,[`${je}--${P.BODY}-${ft.WIDE}`]:s===P.BODY&&i,[`${je}--${P.BODY}-${ft.STRONGER}`]:s===P.BODY&&n,[`${je}--${P.BODY}-${ft.STRONGEST}`]:s===P.BODY&&o,[`${je}--${P.SUBTITLE}`]:s===P.SUBTITLE,[`${je}--${P.SUBTITLE}-${ft.STRONGER}`]:s===P.SUBTITLE&&n,[`${je}--${P.TITLE}`]:s===P.TITLE&&!r&&!a,[`${je}--${P.TITLE}-${ft.MEDIUM}`]:s===P.TITLE&&r,[`${je}--${P.TITLE}-${ft.LARGE}`]:s===P.TITLE&&a}),[s,i,n,r,a,o]);return l(d,{className:F([`${je}`,g,t]),children:c})}const X=Se(kv),hl=Ma({i18n:new ur().i18n,loadingContext:"",commonProps:{},updateCore:oe}),jv=()=>Ea(hl),Q=jv;const Fv="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMjMiIGhlaWdodD0iMTY5IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjIzIDE2OSI+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBzdHJva2U9IiMwMDExMkMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2Utd2lkdGg9Ii42IiBkPSJNMzYuNiAxMTIuMmMuNi0uMSAxLS43IDEtMS4zbC0uOS04LjcgMi4xIDYuNmMuMi42LjguOCAxLjQuNy42LS4xIDEtLjcuOC0xLjJsLTEuMy02LjggMi45LTQuOC01LjktNS41LTcuNiA5IDUgNC43IDEgNi4yYzAgLjcuNyAxLjIgMS41IDFaIi8+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBkPSJNMzEuNyAxMDMuNmMuMy40IDEuMiA2LjYgMS41IDkgMCAuNS42IDE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xpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2Utd2lkdGg9Ii42IiBkPSJNNTcuNCAxLjRIMXYyOS40aDMzLjJMNDguOSA0NWwtLjItMTQuMmg4LjdWMS40WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjMDAxMTJDIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0iTTIuMyAxNjhoMjE5LjQiLz4KICAgIDxwYXRoIGZpbGw9IiMwMDExMkMiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iLjYiIGQ9Ik0yOS4yIDI2LjNjNi4yIDAgMTEuMy00LjcgMTEuMy0xMC41UzM1LjQgNS4yIDI5LjIgNS4yQzIzIDUuMiAxNy45IDEwIDE3LjkgMTUuOHM1IDEwLjUgMTEuMyAxMC41WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0ibTI1LjIgMTIgOCA3LjVNMzMuMiAxMmwtOCA3LjUiLz4KPC9zdmc+",He=e=>ro(e),bs=(()=>{const e=new Set,t=(o,s,r,a)=>{let i=a==null?void 0:a[r];return i=K(i)?i:ya,!hn(i(o[r]),i(s[r]))};return Object.defineProperty(o=>(s,r)=>{try{for(const a in s)if(e.add(a),t(s,r,a,o))return!1;for(const a in r)if(!e.has(a)&&(e.add(a),t(s,r,a,o)))return!1;return!0}finally{e.clear()}},"exclude",{value:oe})})(),Di=/^\s+|\s+(?=\s|$)/g,Mn=(e,t)=>(t?typeof t=="string"?t:(t==null?void 0:t.value)??"":"").replace(Di,"")||e.replace(Di,"")||void 0,Ds=(e,t,n)=>F(Mn("",n),Mn(Mn("",t)||"",e)),Da=(e,t=[],n=[])=>F([...n,...t==null?void 0:t.map(o=>e?`${e}--${o}`:o)]),Oa=e=>pn(e,(e==null?void 0:e.value)??e),Wv=(e,t,n,o,s)=>{const r=N(i=>{i.preventDefault(),o||s==null||s(i)},[o,s]);return{classes:T(()=>Da(n,t,[n,e]),[t,e]),click:r}},$a=Wv,Mt="adyen-pe-button",Qr=`${Mt}-actions`,Bv=`${Mt}--icon`,zv=`${Mt}--icon-content`,Uv=`${Qr}__container-wrapper`,Yv=`${Mt}__label`,Hv=`${Mt}__icon-right`,Gv=`${Mt}__icon-left`;var Oe=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link",e))(Oe||{});function Vv({variant:e=Oe.PRIMARY,disabled:t=!1,onClick:n,classNameModifiers:o=[],iconLeft:s,iconRight:r,type:a="button",children:i,className:c,iconButton:d=!1,...g},u){const p=T(()=>Mn("",c)||"",[c]),m=T(()=>Oa(t),[t]),{classes:y,click:f}=$a(p,[...o,e],Mt,m,n);return l("button",{className:d?`${Bv} ${y}`:y,type:a,disabled:t,onClick:f,ref:u,...g,children:d?l("div",{className:`${zv}`,children:i}):l(Z,{children:[s&&l("span",{className:Gv,children:s}),l(X,{className:Yv,el:eo.SPAN,variant:P.BODY,stronger:!0,children:i}),r&&l("span",{className:Hv,children:r})]})})}const et=He(Vv),Oi={md:680,lg:1024},En=({title:e,message:t,imageDesktop:n,imageMobile:o,withImage:s,centered:r,refreshComponent:a,onContactSupport:i,translationValues:c})=>{const{i18n:d,updateCore:g}=Q(),u=N(p=>Array.isArray(p)?p.map((m,y)=>y===0?l(Z,{children:[d.get(m),c&&c[m]&&l(Z,{children:c[m]})]}):l(Z,{children:[l("br",{}),d.get(m),c&&c[m]&&l(Z,{children:c[m]})]})):d.get(p),[d,c]);return l("div",{className:`adyen-pe-error-message-display ${r?"adyen-pe-error-message-display--centered":""}`,children:[(n||o||s)&&l("div",{className:"adyen-pe-error-message-display__illustration",children:l("picture",{children:[l("source",{type:"image/svg+xml",media:`(min-width: ${Oi.md}px)`,srcSet:n}),l("source",{type:"image/svg+xml",media:`(max-width: ${Oi.md}px)`,srcSet:o}),l("img",{srcSet:n??Fv,alt:d.get("thereWasAnUnexpectedError")})]})}),l(X,{variant:P.TITLE,children:d.get(e)}),t&&l(X,{variant:P.BODY,children:u(t)}),(i||a)&&l("div",{className:"adyen-pe-error-message-display__button",children:[i&&l(et,{onClick:i,children:d.get("reachOutToSupport")}),!i&&a&&l(et,{onClick:g,children:d.get("refresh")})]})]})},Xr={title:"thereWasAnUnexpectedError",message:["pleaseReachOutToSupportForAssistance"]},Zv=(e,t)=>{if(!e)return null;switch(e.errorCode){case"29_001":return{title:"theRequestIsMissingRequiredFieldsOrContainsInvalidData",message:["pleaseReachOutToSupportForAssistance"],onContactSupport:t};case"30_112":return{title:"entityWasNotFound",message:["entityWasNotFoundDetail"],onContactSupport:t};case"00_403":return Xr;default:return null}},Ge={sm:480,md:768,lg:1024},Jv=e=>{const t=T(()=>window.matchMedia(e),[e]),[n,o]=B(t.matches);return W(()=>{const s=r=>o(r.matches);return t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[t]),W(()=>{o(t.matches)},[t]),n},Te={up:{sm:`(min-width: ${Ge.sm}px)`,md:`(min-width: ${Ge.md}px)`,lg:`(min-width: ${Ge.lg}px)`},down:{xs:`(max-width: ${Ge.sm-1}px)`,sm:`(max-width: ${Ge.md-1}px)`,md:`(max-width: ${Ge.lg-1}px)`},only:{xs:`(max-width: ${Ge.sm-1}px)`,sm:`(min-width: ${Ge.sm}px) and (max-width: ${Ge.md-1}px)`,md:`(min-width: ${Ge.md}px) and (max-width: ${Ge.lg-1}px)`,lg:`(min-width: ${Ge.lg}px)`}},Ae=Jv;var Ra=(e=>(e.BUTTONS_END="buttons-end",e.FILL_CONTAINER="fill-container",e.SPACE_BETWEEN="space-between",e.VERTICAL_STACK="vertical-stack",e))(Ra||{}),gl=(e=>(e.BUTTONS_START="buttons-start",e))(gl||{});const Qv={...Ra,...gl};function Xv({actions:e,layout:t=Qv.BUTTONS_END}){const n=()=>`${Qr}--${t}`,o=r=>{const a=e.length-1;return r===a?Oe.PRIMARY:Oe.SECONDARY},s=T(()=>[...e].reverse(),[e]);return l("div",{className:Qr,children:l("div",{className:`${Uv} ${n()}`,role:"group",children:s.map((r,a)=>l(et,{"aria-label":r.title,disabled:r.disabled,variant:r.variant||o(a),onClick:r.event,children:r.title},a))})})}const Kv=Se(Xv),Qe="adyen-pe-popover",ml="adyen-pe-tooltip",qv=`${Qe}-container`,$i=`${Qe}__header`,eb=`${Qe}__header-title`,br=`${Qe}__content`,pl=`${ml}__content`,tb=`${Qe}__footer`;function nb({image:e=!0,onClick:t}){const{i18n:n}=Q();return l(Z,{children:l(et,{className:(()=>e?"adyen-pe-popover-dismiss-button--on-image":"")(),iconButton:!0,variant:Oe.TERTIARY,onClick:t,"aria-label":n.get("closeIconLabel"),children:l("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",children:[l("title",{children:"dismiss"}),l("path",{fill:"#00112C",fillRule:"evenodd",d:"M11.4697 12.5303C11.7626 12.8232 12.2374 12.8232 12.5303 12.5303C12.8232 12.2374 12.8232 11.7626 12.5303 11.4697L9.06066 8L12.5303 4.53033C12.8232 4.23744 12.8232 3.76256 12.5303 3.46967C12.2374 3.17678 11.7626 3.17678 11.4697 3.46967L8 6.93934L4.53033 3.46967C4.23744 3.17678 3.76256 3.17678 3.46967 3.46967C3.17678 3.76256 3.17678 4.23744 3.46967 4.53033L6.93934 8L3.46967 11.4697C3.17678 11.7626 3.17678 12.2374 3.46967 12.5303C3.76256 12.8232 4.23744 12.8232 4.53033 12.5303L8 9.06066L11.4697 12.5303Z",clipRule:"evenodd"})]})})})}const ob=Se(nb);function sb({title:e,isImageTitle:t=!1}){return l(X,{strongest:!t,variant:(()=>t?P.SUBTITLE:P.BODY)(),children:e})}const rb=Se(sb);var De=(e=>(e.TOOLTIP="tooltip",e.POPOVER="popover",e))(De||{}),ae=(e=>(e.TOP="top",e.TOP_LEFT="top-left",e.RIGHT="right",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.LEFT="left",e))(ae||{}),No=(e=>(e.MEDIUM="medium",e.WIDE="wide",e))(No||{}),z=(e=>(e.ARROW_DOWN="ArrowDown",e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_UP="ArrowUp",e.BACKSPACE="Backspace",e.END="End",e.ENTER="Enter",e.ESCAPE="Escape",e.HOME="Home",e.PAGE_DOWN="PageDown",e.PAGE_UP="PageUp",e.SPACE="Space",e.TAB="Tab",e))(z||{}),V=(e=>(e.BALANCE_ACCOUNT="balanceAccount",e.CATEGORIES="categories",e.CURRENCIES="currencies",e.CREATED_SINCE="createdSince",e.CREATED_UNTIL="createdUntil",e.STATUSES="statuses",e.MIN_AMOUNT="minAmount",e.MAX_AMOUNT="maxAmount",e))(V||{});const go=(()=>{let e=[];const t=a=>{const i=a.reduce((c,d)=>{const g=d instanceof Node?e.findIndex(u=>{const p=u.element.getAttribute("id"),m=d&&(d!=null&&d.getAttribute)?d==null?void 0:d.getAttribute("id"):null;return p===m}):-1;return c===-1&&g!==-1?g:c},-1);i===-1?s(0):i+1<=e.length-1&&s(i+1)},n=a=>{const i=e.findIndex(c=>c.element.getAttribute("id")===a.getAttribute("id"));i>=0&&e.splice(i,1)},o=(a,i)=>{e.findIndex(d=>d.element.getAttribute("id")===a.getAttribute("id"))>=0||e.push({element:a,callback:i})},s=a=>{var c,d;const i=e.length;for(let g=a;g<i;g++)(d=(c=e==null?void 0:e[g])==null?void 0:c.callback)==null||d.call(c);e.splice(a)};return{add:o,remove:n,closeAll:()=>{e.forEach(a=>{var i;return(i=a==null?void 0:a.callback)==null?void 0:i.call(a)}),e=[]},closePopoversOutsideOfClick:t}})(),Lo=Symbol("_ref");class fl extends Error{}class ab extends fl{}class ib extends fl{}function xa(e){if(!K(e))throw new ib}const cb=e=>{try{if(K(e)&&it(e,"current")&&it(e,Lo)&&!hn(e,e[Lo])){const t=e.actions.get(U),n=e.actions.size;return G(t)&&Number.isInteger(n)&&n>=0}}catch{}return!1},Co=e=>cb(e)?Co(e[Lo]):e,lb=(()=>{const e=(o,s)=>{const r=o.get(s);if(!r)throw new ab;return r},t=(o,s,r)=>{let a,i;const c=Co(s);try{a=e(o,c)}catch{xa(r)}if(a)[,i]=a;else{const d=K(c),g=d?m=>{c(p=m)}:m=>{c.current=m,p=c.current},u=m=>{if(i.size===0)return;const y=p;if(g(m),!hn(p,y))for(const[f]of i)f(p,y)};let p=d?null:c.current;o.set(c,a=[u,i=new Map]),Object.defineProperties(u,{[Lo]:{value:c},actions:{value:H({get:{value:i.get.bind(i)},size:{get:()=>i.size}})},current:{get:()=>p,set:d?void 0:u}})}return r&&i.set(r,1+(i.get(r)||0)),a[0]},n=(o,s,r)=>{const a=Co(s),[,i]=e(o,a),c=i.get(r)||0;c===1?i.delete(r):c>1&&i.set(r,c-1),i.size===0&&o.delete(a)};return()=>{const o=new WeakMap;return H({bind:x(t.bind(void 0,o)),unbind:x(n.bind(void 0,o))})}})(),ub=lb(),db=e=>{xa(e);const t=new WeakMap([[e,1]]),n=s=>{if(hn(o,s))return;const r=o;e(o=s,r)};let o=null;return Object.defineProperties(n,{[Lo]:{value:n},actions:{value:H({get:{value:t.get.bind(t)},size:{value:1}})},current:{get:()=>o,set:n}})},hb=(e=ub)=>{let t,n=null,o,s=!1;const r=d=>{t=void 0,n=null,o=d,s=!1},a=()=>{s||(i(),s=!0)},i=()=>{try{if(!n)return;e.unbind(n,o)}catch{}};return H({action:{get:()=>o},reflex:{get:()=>t},release:{value:a},update:{value:(d,g)=>{xa(d),s&&r(d);const u=ue(g)?null:g;if(o===d&&n===u){if(t)return}else if(n){if(hn(Co(n),Co(u))){t=e.bind(n,d),i(),o=d;return}i()}o=d,t=(n=u)?e.bind(n,o):db(o)}}})},gb=(e,t)=>{const n=k(hb());return sl(()=>n.current.release,[]),T(()=>(n.current.update(e,t),n.current.reflex),[e,t])},Et=gb,An=Symbol("__control.Elem.");var yl=(e=>(e.POPOVER="POPOVER",e.DEFAULT="DEFAULT",e))(yl||{});const Ri=e=>{e.stopImmediatePropagation()},wa=(e,t,n,o)=>{const s=k(null),r=N(i=>{const c=i.composedPath();if(s&&s.current)if(o==="POPOVER")go.closePopoversOutsideOfClick(c);else{let d=0,g=!1,u=c[d];for(;u instanceof Element&&!(g||(g=u==null?void 0:u.isSameNode(s.current)));)u=c[++d]??u.parentElement,(u==null?void 0:u[An])instanceof Element&&(u=u[An],c.length=0);t&&!g&&t(!0)}},[s,t,o]),a=k(r);return W(()=>()=>{s.current&&go.remove(s.current),document.removeEventListener("click",a.current,!0)},[]),W(()=>(document.removeEventListener("click",a.current,!0),a.current=r,document.addEventListener("click",a.current,!0),o==="POPOVER"&&s.current instanceof Element&&go.add(s.current,t),()=>{s.current&&go.remove(s.current),document.removeEventListener("click",a.current,!0)}),[r,t,o]),W(()=>{n?document.removeEventListener("click",a.current,!0):document.addEventListener("click",a.current,!0)},[n]),Et(N((i,c)=>{c instanceof Element&&c.removeEventListener("focusout",Ri,!0),i instanceof Element&&(n||(i.addEventListener("focusout",Ri,!0),s.current=i))},[n,o]),e)},Pa=`
1
+ "use strict";var hd=Object.defineProperty;var gd=(e,t,n)=>t in e?hd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var x=(e,t,n)=>(gd(e,typeof t!="symbol"?t+"":t,n),n),wr=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var h=(e,t,n)=>(wr(e,t,"read from private field"),n?n.call(e):t.get(e)),S=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},_=(e,t,n,o)=>(wr(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);var Zt=(e,t,n,o)=>({set _(s){_(e,t,s,n)},get _(){return h(e,t,o)}}),O=(e,t,n)=>(wr(e,t,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("classnames"),Jr="test",md=e=>{var t;return(t=e==null?void 0:e.replace)==null?void 0:t.call(e,/([^\/])$/,"$1/")},pd=e=>e==null?void 0:e.replace(/^([^\/])/,"/$1"),fd=(()=>{const e={test:"https://platform-components-external-test.adyen.com/platform-components-external/api/",live:"https://platform-components-external-live.adyen.com/platform-components-external/api/"};return t=>e[t??Jr]||e[Jr]})(),pn=Function.prototype.bind.bind(Function.prototype.call),yi=e=>()=>e,yd=async()=>{},gr=e=>e,ne=()=>{},Id=pn(Object.prototype.toString),_d=e=>Id(e).slice(8,-1),Qr=e=>e===!!e,ee=e=>typeof e=="function",ws=e=>e===null,ue=e=>e==null,us=e=>typeof e=="number",mr=e=>_d(e)==="Object",qe=e=>typeof e=="string",Td=e=>typeof e=="symbol",H=e=>e===void 0,cn=(e,t,n)=>(Math.min(e,n)!==e&&([e,n]=[n,e]),Math.max(e,Math.min(t,n))),Mo=e=>!Td(e)&&e===~~e,ln=e=>us(e)&&1/e===0,Ec=(e,t)=>{if(Number.isInteger(e)&&Number.isInteger(t))return e+Math.floor((t-e)/2);throw TypeError(`Expects 2 integer values: [${e}, ${t}]`)},ds=(e,t)=>(e%t+t)%t,Ii="abort",Ad="signal is aborted without reason",_n=(e,t=e)=>Qr(e)?e:!!t,we=e=>e===!0,Bt=e=>e!==!1,Sd=e=>!1,Xr=e=>!0,$=(e,t=!1)=>({writable:we(t),enumerable:!0,value:e}),oe=(e,t=!0)=>({enumerable:Bt(t),get:e}),ct=pn(Object.prototype.hasOwnProperty),fn=(e,t)=>e===t||!(e===e||t===t);if(!ct(AbortSignal.prototype,"reason"))try{Object.defineProperty(AbortSignal.prototype,"reason",{...oe(function(){return this.aborted?vo():void 0},!0),configurable:!0})}catch{}ct(AbortSignal.prototype,"throwIfAborted")||(AbortSignal.prototype.throwIfAborted=function(){if(this.aborted)throw this.reason??vo()});const vo=(e=Ad)=>new DOMException(e,"AbortError"),Mc=(e,t)=>{if(!fn(e.reason,t))try{Object.defineProperty(e,"reason",$(t))}catch{}return e},Nd=(e=vo())=>{if("abort"in AbortSignal)return AbortSignal.abort(e);const t=new AbortController,n=H(e)?vo():e,{signal:o}=t;return t.abort(n),Mc(o,n),o},pr=e=>{if("any"in AbortSignal)return AbortSignal.any(e);let t=new Set,n=new AbortController;const{signal:o}=n;let s=function(){t.forEach(a=>a.removeEventListener(Ii,s)),t.clear();const r=(this==null?void 0:this.reason)??vo();n.abort(r),Mc(o,r),n=t=s=void 0};e:{const r=Symbol("<NIL_EXCEPTION>");let a=r;t:{try{for(const i of e){if(!hs(i))throw new TypeError("Failed to convert value to 'AbortSignal'");if(i.aborted)break t;t.add(i)}}catch(i){a=i;break t}t.forEach(i=>i.addEventListener(Ii,s));break e}if(s.call(o),a!==r)throw a}return o},hs=e=>e instanceof AbortSignal,Te=Object.freeze([]),z=Object.freeze(Object.create(null)),fr=Promise.resolve();Promise.race(Te);const yr=function(e,...t){return new Promise(n=>n(e.call(this,...t)))},Ld=(e,t,n)=>{let o=t.get(e);return H(o)&&ee(n)&&(H(o=n(e,t))||t.set(e,o)),o},Io=(e,t=Te)=>{const n=`${e||""}`.trim(),o=n?n.split(/(?:\s*,\s*)+/).filter(gr):Te;return o.length?o:t},yo=(e,t,n)=>e.includes(t)?t:ue(t)?e[0]:e.includes(n)?n:e[0],_i=pn(Array.prototype.some),vc=function e(t,n,o=new Set){for(const s of n)Array.isArray(s)?e(t,s,o):(t&&o.delete(s),o.add(s));return o};pn(vc,void 0,!1);pn(vc,void 0,!0);const Cd=(...e)=>{const[t]=e,o=(e.length>=2?new Date(...e):t instanceof Date?t:new Date(qe(t)||Number.isFinite(t)?t:void 0)).getTime();return Number.isFinite(o)?o:void 0},Ed=(()=>{let e=Date.now();return(t="adyen-pe")=>`${t}-${++e}`})(),ba=(()=>{const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";return()=>e.replace(/[xy]/g,t=>{const n=Math.random()*16|0;return(t=="x"?n:n&3|8).toString(16)})})(),bo=(e,t=z)=>mr(e)?e:bo(t,z),uo=pn(Object.create,void 0),G=pn(uo,void 0,null),Ir=(e=z)=>Object.freeze({...e,defineProperty:Xr,set:Xr}),Md=e=>e&&(e==null?void 0:e.length)>0?`${e[0].toUpperCase()}${e.slice(1)}`:e,vd=e=>ue(e)||qe(e)&&/^\s*$/.test(e),bd="/setup",Dd=we(void 0),Ti=(()=>{let e=0;if(Number.isFinite(e)&&(e=Math.max(0,~~e)))return e})();class Od extends Error{constructor(n,o,s,r){super(s);x(this,"type");x(this,"errorCode");x(this,"requestId");this.type=n,this.name=n,this.errorCode=r,this.requestId=o}}const $d=Od;var bc=(e=>(e.NETWORK_ERROR="NETWORK_ERROR",e.CANCEL="CANCEL",e.IMPLEMENTATION_ERROR="IMPLEMENTATION_ERROR",e.ERROR="ERROR",e.EXPIRED_TOKEN="EXPIRED_TOKEN",e))(bc||{});const Rd=e=>{switch(e){case 401:return"EXPIRED_TOKEN";default:return"NETWORK_ERROR"}},xd=(e,t)=>{const{headers:n=[],method:o="GET"}=e;return{method:o,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json",...n,"SDK-Version":"1.0.3"},redirect:"follow",signal:e.signal,referrerPolicy:"no-referrer-when-downgrade",...o==="POST"&&t&&{body:JSON.stringify(t)}}};function wd({message:e,level:t,errorCode:n,type:o="NETWORK_ERROR",requestId:s}){switch(t){case"silent":break;case"info":case"warn":console[t](e);break;case"error":default:throw new $d(o,s,e,n)}}function Pd(e){return e&&e.errorCode&&e.type&&(e.detail||e.invalidFields)&&e.status}function kd(e){const t=new URLSearchParams;for(const n of Object.keys(e)){const o=e[n];ue(o)||(Array.isArray(o)?o.forEach(s=>t.append(n,s)):t.set(n,String(o)))}return t}const Dc=e=>{let t,n,o;const s=()=>{if(H(t))return;const c=t.abort.bind(t);t=void 0,c()},r=()=>(o=new Promise((c,d)=>{if(n.addEventListener("abort",function g(){n.removeEventListener("abort",g),d(e)}),n.aborted)throw e}),o.catch(ne),o),a=()=>(H(t)&&(t=new AbortController,n=t.signal,o=r()),i),i=G({abort:$(s),promise:oe(()=>o),reason:$(e),refresh:$(a),signal:oe(()=>n)});return a()},jd=()=>{let e,t,n;const o=()=>{const r=n??ne,a=new Promise((i,c)=>{n=i,t=c});return r(e=a),s},s=G({promise:oe(()=>e),refresh:$(o),reject:$(r=>t(r)),resolve:$(r=>n(r))});return o()},gs=e=>{const t=Dc(),n=jd();let o;return Object.defineProperties(function(...r){H(o)?n.refresh():t.abort();const a=yr.call(this,e,t.refresh().signal,...r);return(async()=>{let i=o===(o=a);try{const c=await a.finally(()=>{i=o===a,i&&(o=void 0)});i&&n.resolve(c)}catch(c){i&&n.reject(c)}})(),a},{abort:$(t.abort),promise:oe(()=>n.promise),refresh:$(()=>void n.refresh())})};class Fd{constructor(t){x(this,"_endpoints",z);x(this,"_revokeEndpointsProxy",ne);x(this,"_beforeHttp",async()=>{await this._refreshPromisor.promise.catch(ne)});x(this,"_refreshPromisor",gs((t,n)=>{const o=hs(n)?pr([n,t]):t;return this._fetchSetupEndpoint(o)}));this._session=t;let n;this.refresh=o=>(this._refreshPromisor(o).catch(ne),n??(n=this._refreshPromisor.promise.finally(()=>n=void 0).then(({endpoints:s})=>{this._resetEndpoints(),{proxy:this._endpoints,revoke:this._revokeEndpointsProxy}=this._getEndpointsProxy(s)})))}get endpoints(){return this._endpoints}_fetchSetupEndpoint(t){return this._session.http(null,{method:"POST",path:bd,errorLevel:"fatal",loadingContext:this.loadingContext,signal:t})}_getEndpointsProxy(t){const n=new Set(Object.keys(t)),o=G();return Proxy.revocable(z,Ir({get:(s,r,a)=>n.has(r)?(o[r]??(o[r]=(()=>{const{method:i="GET",url:c}=t[r];if(!H(c||void 0))return(...d)=>{const g=this._getHttpOptions(i,c,...d);return this._session.http(this._beforeHttp,g)}})()),o[r]):Reflect.get(s,r,a)}))}_getHttpOptions(t,n,...o){const{loadingContext:s}=this,[r,a]=o,{path:i,query:c}=bo(a),d=c&&kd(c);if(mr(i))for(const g of Object.keys(i))n=n.replace(`{${g}}`,i[g]);return{loadingContext:s,...r,method:t,params:d,path:n}}_resetEndpoints(){this._revokeEndpointsProxy(),this._revokeEndpointsProxy=ne,this._endpoints=z}}const Wd=Fd,Oc=Symbol("Error<SESSION_EXPIRED>"),Bd=Symbol("Error<SESSION_FACTORY_UNAVAILABLE>"),zd=Symbol("Error<SESSION_HTTP_UNAVAILABLE>"),Ud=Symbol("Error<SESSION_INVALID>"),$c=Symbol("Error<SESSION_REFRESH_ABORTED>"),_r="_sessionExpired",Rc="_sessionReady",Yd="_sessionRefreshed",Gd="_sessionRefreshingEnd",Hd="_sessionRefreshingStart",xc="_session.deadline",wc="_session.ready",Pc="_session.refreshingEnd",kc="_session.refreshingStart",Zd=async e=>{const{specification:t}=e.context,n=await yr(async()=>{const o=t.autoRefresh;return ee(o)?o.call(t,e.session):o}).catch(Sd);return we(n)},Vd=e=>{let t=e.context.emitter.on(_r,()=>s(!1)),n,o=gs(async(i,c=!1)=>{n=i;const d=we(c)||await Zd(e);n===i&&d&&e.pending&&!e.refreshing&&e.refresh(n).catch(ne)}),s=(i=!1)=>{e.refreshing||o(i)},r=()=>{t(),o.abort(),o=n=t=void 0,s=r=ne};return Object.defineProperties((i=!1)=>s(i),{destruct:oe(()=>r,!1)})},Ai=1e3,Jd=2147483647,Qd=(e,t=Ai,n=!1)=>{var g;let o=new AbortController,s=cn(0,~~t,Jd),r=we(n);Number.isFinite(s)||(s=Ai);const a=((g=document.timeline)==null?void 0:g.currentTime)??performance.now(),i=()=>{o==null||o.abort(),o=void 0},c=u=>{!o||o.signal.aborted||(d(u),e(u))},d=u=>{let p=0;if(!r){const m=u-a,y=Math.round(m/s)*s;p=a+y+s-performance.now()}setTimeout(()=>requestAnimationFrame(c),p)};return d(a),r=!1,G({cancel:$(i),delay:$(t),signal:$(o.signal)})},Xd=e=>{const t={},n=Object.getOwnPropertyDescriptors(e);for(const o of Object.keys(e)){const{get:s,value:r}=n[o];t[o]=oe(s||(ee(r)?r.bind(e):()=>r))}return G(t)},Kd=()=>{const e={idle:null,resume:null},t={};for(const n of Object.keys(e))t[n]={get:()=>e[n]??ne,set:o=>{ue(o)?e[n]=null:ee(o)&&o!==e[n]&&(e[n]=o)}};return G(t)},jc=Symbol("<<UNSUBSCRIBE>>"),ho=e=>e===jc,ms=e=>{let t;const n=Xd(e),o=Kd(),s=new Map,r=new WeakMap,a=()=>Object.freeze({...n}),i=()=>s.size===0,c=g=>{if(i())return;if(ho(g)){const p=[];return s.forEach((m,y)=>{p.push(y);const f=r.get(y);for(;m--;)f==null||f()}),p.forEach(m=>m(g)),!0}const u=t;t=a();for(const p of Object.keys(t))if(!fn(t[p],u[p]))return s.forEach((m,y)=>y(t)),!0;return!1},d=g=>{if(!ee(g))return ne;const u=Ld(g,r,()=>{let m=()=>{const y=s.get(g)||0;y===1?(m=void 0,s.delete(g),r.delete(g),i()&&(t=void 0,o.idle())):y>1&&s.set(g,y-1)};return()=>{m==null||m()}}),p=i();return s.set(g,(s.get(g)||0)+1),p&&(t=a(),o.resume()),g(t),u};return G({idle:oe(i),on:$(o),cancelSubscriptions:$(()=>c(jc)),requestNotification:$(()=>c()),snapshot:oe(()=>t??a()),subscribe:$(d)})},Fc=(()=>{let e;const{cancelSubscriptions:t,requestNotification:n,subscribe:o,on:s}=ms({now:()=>Date.now()});return s.resume=()=>{e=Qd(n,1e3,!1)},s.idle=()=>{e==null||e.cancel(),e=void 0},G({cancelSubscriptions:$(t),subscribe:$(o)})})(),Wc=Fc,Da=()=>{const e=new class extends EventTarget{},t=(o,...s)=>{const[r]=s;s.length&&H(r)&&console.warn("Unexpected value `undefined` provided for event detail.\n Turn off this warning by doing either of the following:\n (1) omit the optional event detail parameter.\n (2) explicitly pass `null` for the event detail parameter (instead of `undefined`).\n");const a=new CustomEvent(o,G({bubbles:$(!1),cancelable:$(!1),detail:$(r??null)}));return e.dispatchEvent(a)},n=(o,s)=>{if(!ee(s))return ne;const r=a=>s.call(null,G({detail:$(a.detail),timeStamp:$(a.timeStamp),type:$(a.type)}));return e.addEventListener(o,r),()=>e.removeEventListener(o,r)};return G({emit:$(t),on:$(n)})},qd=(e,t)=>{let n,o=1/0,s,r;const a=Dc(),i=Da(),c=()=>{n==null||n.removeEventListener("abort",c),o=1/0,r==null||r(),a.refresh(),i.emit(xc)},d=gs(async(u,p)=>{s=u;const m=await yr(()=>{const f=t.deadline;return ee(f)?f.call(t,p,u):f}).catch(ne);if(s!==u)return;const y=(Array.isArray(m)?m:[m]).filter(f=>f||f===0);if(y.length>0){let f=!1,A=new Set;for(const I of y)if(hs(I)){if(f=I.aborted)break;A.add(I)}else if(o=Math.min(o,Cd(I)??1/0),f=o<=Date.now())break;f||(f=A.size<1&&!Number.isFinite(o)),f?n??(n=Nd()):(n=pr([...A,a.signal]),n.addEventListener("abort",c),g()),y.length=0,A.clear()}else n=void 0}),g=()=>{if(!Number.isFinite(o))return;let u=Wc.subscribe(p=>{if(ho(p))return c();p.now>=o&&a.abort()});r=()=>{u==null||u(),u=r=void 0}};return G({elapse:$(a.abort),elapsed:oe(()=>n&&n.aborted),on:$(i.on),refresh:$(d.bind(void 0)),signal:oe(()=>a.signal)})},eh=(e,t)=>{let n=!1,o,s,r=!0,a;const i=Symbol("<next_session>"),c=Da();function d(m){var y;try{(y=t.assert)==null||y.call(t,m)}catch{throw Ud}}function g(m){if(!ee(m))throw Bd}const u=gs((m,y)=>{if(!s)s=m;else return p(hs(y)?pr([y,m]):m)}),p=async m=>{let y=i;try{n=!1,s=m,r&&await(o??(o=(async()=>{await fr,r=!1,c.emit(kc)})())),g(t.onRefresh),y=await yr(()=>t.onRefresh(a,m)).finally(()=>{if(m.aborted)throw $c})}finally{if(s===m)try{y!==i&&(d(y),a=y,c.emit(wc))}finally{o=void 0,r=!0,c.emit(Pc)}}};return e.on(_r,()=>n=!o),u(),G({context:$(G({emitter:$(e),specification:$(t)})),on:$(c.on),pending:oe(()=>n),promise:oe(()=>u.promise),refresh:$(u.bind(void 0)),refreshing:oe(()=>!!o),session:oe(()=>a),signal:oe(()=>s)})};class th{constructor(t){x(this,"_session");x(this,"_autofresh");x(this,"_deadline");x(this,"_refresher");x(this,"_eventEmitter",Da());this._specification=t,this._deadline=qd(this._eventEmitter,this._specification),this._refresher=eh(this._eventEmitter,this._specification),this._autofresh=Vd(this._refresher),this._deadline.on(xc,()=>this._eventEmitter.emit(_r)),this._refresher.on(kc,()=>this._eventEmitter.emit(Hd)),this._refresher.on(Pc,()=>this._eventEmitter.emit(Gd)),this._refresher.on(wc,()=>{this._session=this._refresher.session,this._deadline.refresh(this._session).finally(()=>this._eventEmitter.emit(Yd)),this._eventEmitter.emit(Rc)}),this.http=this._sessionHttp.bind(this),this.on=this._eventEmitter.on,this.refresh=this._refresher.refresh}get isExpired(){return this._deadline.elapsed}get refreshing(){return this._refresher.refreshing}_assertSessionHttp(t){if(!ee(t))throw zd}async _sessionHttp(t,...n){for(this._autofresh(!0);;)try{await this._refresher.promise.catch(ne);const{signal:o}=this._deadline;return await(t==null?void 0:t(this._session,o,...n)),this._assertSessionHttp(this._specification.http),await this._specification.http(this._session,o,...n)}catch(o){if(o!==Oc)throw o;if(this._refresher.pending)continue;this._deadline.elapse()}}}const nh="v1",Pr=(e,t)=>{try{e==null||e(t)}catch{throw t}};async function oh(e,t){const{errorLevel:n,loadingContext:o="",path:s}=e,r=xd(e,t),a=new URL(`${md(o)}${nh}${pd(s)}`);return e.params&&e.params.forEach((i,c)=>{const d=decodeURIComponent(i);d&&a.searchParams.append(c,d)}),(async()=>{var d;let i=!1;const c={level:n};try{const g=await fetch(a,r);if(g.ok)try{switch((d=g.headers.get("Content-Type"))==null?void 0:d.split(";",1)[0]){case"application/json":return await g.json();default:return await g.blob()}}catch(p){throw i=!0,p}c.type=Rd(g.status);const u=await g.json();c.message=e.errorMessage||`Service at ${a} not available`,c.errorCode=String(u.status),c.requestId=u==null?void 0:u.requestId,Pd(u)&&(c.message=u.detail,c.errorCode=u.errorCode),Pr(e.errorHandler,c)}catch(g){if(i)throw Pr(e.errorHandler,g),g;Pr(e.errorHandler,g),c.message=e.errorMessage||`Call to ${a} failed. Error: ${g}`}wd(c)})()}class sh{constructor(t){x(this,"assert",t=>{if(mr(t)){const n=qe(t.id)?t.id.trim():void 0,o=qe(t.token)?t.token.trim():void 0;if(n&&o)return}throw void 0});x(this,"deadline",t=>{const n=[];let o,s;try{({iat:o,exp:s}=JSON.parse(atob(t==null?void 0:t.token.split(".")[1]))),n.push(s)}catch{o=Date.now()}if(!H(Ti)){const r=new Date(o);n.push(r.setMilliseconds(r.getMilliseconds()+Ti))}return n});x(this,"http",async(t,n,o,s)=>{const{headers:r,signal:a,...i}=o;try{const c={...i,headers:{...r,...t&&{Authorization:`Bearer ${t.token}`}},errorHandler:this._errorHandler,signal:hs(a)?pr([n,a]):n};return await oh(c,s)}catch(c){throw(c==null?void 0:c.type)===bc.EXPIRED_TOKEN?Oc:c}});this.onSessionCreate=t,this._errorHandler=this._errorHandler.bind(this),Object.defineProperties(this,{autoRefresh:$(Dd),onRefresh:$((n,o)=>this.onSessionCreate(o))})}_errorHandler(t){try{this.errorHandler&&this.errorHandler(t)}catch{}throw t}}const rh=sh,_o=Symbol("<<NO_ERR>>");function ah(e){/* istanbul ignore if -- @preserve */if(e===_o)throw new TypeError("Illegal error")}const ih=()=>{let e=_o;const t=()=>{e=_o},n=o=>{ah(o),e=o};return G({error:oe(()=>e===_o?void 0:e),hasError:oe(()=>e!==_o),reset:$(t),set:$(n)})};class ch{constructor(){x(this,"_canSkipSessionRefresh",!1);x(this,"_refreshPromisorSignal");x(this,"_errorContainer",ih());x(this,"_specification",new rh);x(this,"_sessionContext",new th(this._specification));x(this,"_setupContext",new Wd(this._sessionContext));x(this,"_refreshPromisor",gs(async(t,n=!1)=>{let o=!this._refreshPromisorSignal,s=this._refreshPromisorSignal===(this._refreshPromisorSignal=t);const r=we(n)&&this._canSkipSessionRefresh;o&&(o=!1,this._errorContainer.reset(),this._onAuthStateChanged());try{await(r?this._setupContext:this._sessionContext).refresh(t).finally(()=>s=this._refreshPromisorSignal===t)}catch(a){if(!s)return;!t.aborted&&(r||a!==$c)&&this._errorContainer.set(a),o=!r}finally{(o||r&&s)&&(this._refreshPromisorSignal=void 0,this._onAuthStateChanged())}}));x(this,"_watchlist",ms({endpoints:()=>this._setupContext.endpoints,hasError:()=>this._errorContainer.hasError,http:yi(this._sessionContext.http.bind(this._sessionContext,null)),isExpired:()=>this._sessionContext.isExpired,refresh:yi(this._refresh.bind(this)),refreshing:()=>!!this._refreshPromisorSignal}));this.destroy=()=>{this._watchlist.on.resume=void 0,this._watchlist.cancelSubscriptions()},this.subscribe=this._watchlist.subscribe,this._watchlist.on.resume=()=>{const t=[this._sessionContext.on(_r,()=>{this._canSkipSessionRefresh=!1,this._onAuthStateChanged()}),this._sessionContext.on(Rc,()=>{this._refresh(this._canSkipSessionRefresh=!0)})];this._watchlist.on.idle=()=>{this._watchlist.on.idle=void 0,t.forEach(n=>n()),t.length=0},this._refresh()}}get context(){return this._watchlist.snapshot}set loadingContext(t){this._setupContext.loadingContext=t}set errorHandler(t){this._specification.errorHandler=t}set onSessionCreate(t){this._specification.onSessionCreate!==t&&(this._specification.onSessionCreate=t,this._refreshPromisorSignal&&ee(this._specification.onSessionCreate)&&(this._canSkipSessionRefresh=!1,this._refresh()))}_onAuthStateChanged(){this._watchlist.requestNotification()}_refresh(t=!1){this._refreshPromisor(t)}}const lh={AED:"د.إ",AFN:"؋",ALL:"L",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"₼",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"Bs.",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BYN:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"Fr.",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KYD:"$",KZT:"₸",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTL:"Lt",LVL:"Ls",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"},Bc=lh,uh={IDR:1,JPY:1,KRW:1,VND:1,BYR:1,CVE:1,DJF:1,GHC:1,GNF:1,KMF:1,PYG:1,RWF:1,UGX:1,VUV:1,XAF:1,XOF:1,XPF:1,MRO:10,BHD:1e3,IQD:1e3,JOD:1e3,KWD:1e3,OMR:1e3,LYD:1e3,TND:1e3},dh=uh,hh=e=>dh[e]||100,gh=e=>!!Bc[e],zc=e=>gh(e)?Bc[e]:null,mh=(e,t)=>{const n=hh(t);return parseInt(String(e),10)/n},ph=(e,t,n,o=!1,s={})=>{const r=e.toString(),a=mh(r,n),i=t.replace("_","-"),c={style:"currency",currency:n,currencyDisplay:"symbol",...s};try{return o?fh(i,c,a):a.toLocaleString(i,c)}catch{return r}},fh=(e,t,n)=>Intl.NumberFormat(e,t).formatToParts(n).filter(o=>o.type!=="currency").reduce((o,s)=>o+s.value,"").trim(),yh="Account",Ih="Account Balance",_h="Additions",Th="Adjustments",Ah="Amount",Sh="Apply",Nh="Balance account",Lh="Balance account ID",Ch="Booked",Eh="Captured",Mh="Category",vh="Chargebacks",bh="Close",Dh="Contact support for help and share error code %{requestId}",Oh="Corrections",$h="Currency",Rh="Date",xh="Date range",wh="Description",Ph="Dismiss",kh="Email",jh="Entity was not found",Fh="Transaction not found for the specified Account Holder",Wh="Fees",Bh="Filter bar",zh="From",Uh="Funds captured",Yh="Grant issued",Gh="Grant repayments",Hh="Hide content",Zh="ID",Vh="Incomplete field",Jh="Mobile",Qh="Net payout",Xh="Next Payouts",Kh="No data",qh="No negative numbers allowed",eg="No payouts found",tg="No transactions found",ng="Other",og="Paginated navigation",sg="Payment ID",rg="Payment method",ag="Payout Details",ig="Payouts",cg="Pending",lg="Please, reach out to support for assistance.",ug="Reach out to support",dg="Reference ID",hg="Refresh",gg="Refunds",mg="Remaining amount",pg="Reset",fg="Reversed",yg="Something went wrong.",Ig="Status",_g="Structured list",Tg="Subtractions",Ag="Tabs",Sg="The error code is %{requestId}",Ng="There are no results",Lg="The request is missing required fields or contains invalid data.",Cg="There was an unexpected error",Eg="The selected balance account is incorrect",Mg="Timezone",vg="To",bg="Total incoming",Dg="Total outgoing",Og="To value should be equal or greater than the From value",$g="Transaction details",Rg="Transactions",xg="Transactions overview",wg="Transaction type",Pg="Transfers",kg="Try a different search or reset your filters, and we’ll try again.",jg="Try refreshing the page or come back later.",Fg="Amount",Wg="Type",Bg="Value",zg="We could not load the payouts overview.",Ug="We could not load the transactions overview.",Yg="We couldn’t load your balance accounts.",Gg="We could not load your payouts.",Hg="We could not load your transactions.",Uc={account:yh,accountBalance:Ih,additions:_h,adjustments:Th,amount:Ah,apply:Sh,balanceAccount:Nh,balanceAccountId:Lh,Booked:Ch,"button.clearAll":"Clear all","calendar.controls":"Calendar navigation controls","calendar.nextMonth":"Next month","calendar.previousMonth":"Previous month","calendar.timezone":"Timezone is set on: GMT%{offset} (%{time})",capture:Eh,category:Mh,chargeback:vh,closeIconLabel:bh,contactSupportForHelpAndShareErrorCode:Dh,correction:Oh,currency:$h,date:Rh,dateRange:xh,default:"Default",description:wh,dismiss:Ph,email:kh,entityWasNotFound:jh,entityWasNotFoundDetail:Fh,"expandableCard.collapse":"Collapse","expandableCard.expand":"Expand",export:"Export",fee:Wh,"filter.date.since":"Since %{date}","filter.date.until":"Until %{date}",filterBar:Bh,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Currency","filterPlaceholder.status":"Status",from:zh,fundsCaptured:Uh,grantIssued:Yh,grantRepayment:Gh,hideContent:Hh,id:Zh,incompleteField:Vh,mobile:Jh,netPayout:Qh,nextPayouts:Xh,noData:Kh,noNegativeNumbersAllowed:qh,noPayoutsFound:eg,noTransactionsFound:tg,other:ng,paginatedNavigation:og,"pagination.nextPage":"Next page","pagination.previousPage":"Previous page","pagination.showing":"Showing",paymentId:sg,paymentMethod:rg,payoutDetails:ag,payoutsTitle:ig,Pending:cg,pleaseReachOutToSupportForAssistance:lg,"rangePreset.custom":"Custom","rangePreset.last30Days":"Last 30 days","rangePreset.last7Days":"Last 7 days","rangePreset.lastMonth":"Last month","rangePreset.lastWeek":"Last week","rangePreset.thisMonth":"This month","rangePreset.thisWeek":"This week","rangePreset.yearToDate":"Year to date",reachOutToSupport:ug,referenceID:dg,refresh:hg,refund:gg,remainingAmount:mg,reset:pg,Reversed:fg,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"No options match this search",somethingWentWrong:yg,status:Ig,structuredList:_g,subtractions:Tg,tabs:Ag,theErrorCodeIs:Sg,thereAreNoResults:Ng,theRequestIsMissingRequiredFieldsOrContainsInvalidData:Lg,thereWasAnUnexpectedError:Cg,theSelectedBalanceAccountIsIncorrect:Eg,timezone:Mg,to:vg,"tooltip.ATM":"Money withdrawn at an ATM","tooltip.Capital":"Money from an incoming loan grant or outgoing loan repayment","tooltip.Chargeback":"Money returned to a customer after a disputed transaction","tooltip.Correction":"Adjustments to your funds, including transaction reversals and deposit corrections","tooltip.Fee":"Transaction costs and payment method fees","tooltip.Other":"Transactions not in another category, usually an adjustment","tooltip.Payment":"Money received to your account from a sales transaction","tooltip.Refund":"Money sent back to a customer from a refunded transaction","tooltip.totalIncoming":"All money received into your account based on the selected filters","tooltip.totalOutgoing":"All fees, refunds, payouts, and other charges based on the selected filters","tooltip.Transfer":"Money moved between your account and another account",totalIncoming:bg,totalOutgoing:Dg,toValueShouldBeGreaterThanTheFromValue:Og,transactionDetails:$g,transactions:Rg,transactionsOverviewTitle:xg,transactionType:wg,transfer:Pg,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:kg,tryRefreshingThePageOrComeBackLater:jg,txAmount:Fg,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correction","txType.Fee":"Fee","txType.Other":"Other","txType.Payment":"Payment","txType.Refund":"Refund","txType.Transfer":"Transfer",type:Wg,value:Bg,weCouldNotLoadThePayoutsOverview:zg,weCouldNotLoadTheTransactionsOverview:Ug,weCouldNotLoadYourBalanceAccounts:Yg,weCouldNotLoadYourPayouts:Gg,weCouldNotLoadYourTransactions:Hg},Wt="en-US",Zg=/^[a-z]{2}-[A-Z]{2}$/,Yc=Uc,Vg=["da-DK","de-DE","en-US","es-ES","fr-FR","it-IT","nl-NL","no-NO","pt-BR","sv-SE"],Oa={year:"numeric",month:"2-digit",day:"2-digit"},As=Vg,Jg=["constructor","i18n","watch","preferredTranslations"],Qg=new RegExp("(?<=GMT)(?:[-+](?:0?\\d|1[0-4])(?::?[0-5]\\d)?)?$"),{BASE_FORMAT_OPTIONS:Gc,BASE_LOCALE:Tr,SYSTEM_TIMEZONE:Ss,SYSTEM_TIMEZONE_FORMATTER:Ln}=(()=>{const e="en-US",t="2-digit",n="numeric",a=Object.freeze({year:n,month:"short",day:n,hour:t,minute:t,second:t,fractionalSecondDigits:3,timeZoneName:"longOffset"});let i,c;try{c=new Intl.DateTimeFormat(e,a),i=c.resolvedOptions().timeZone}catch{i=void 0}return{BASE_FORMAT_OPTIONS:a,BASE_LOCALE:e,SYSTEM_TIMEZONE:i,SYSTEM_TIMEZONE_FORMATTER:c}})(),Xg=/\+(?=-)|([+-]00:00)/g,Kg=new RegExp("(?<=^\\D?)(\\d)$"),qg=([e,t])=>(Math.abs(e*60)+t)*(e<0?-1:1),em=e=>Object.freeze([Math.floor(e/60),ds(e,60)]),tm=e=>parseInt(e,10)||0,nm=e=>`GMT+${em(e).map(o=>`${o}`.replace(Kg,"0$1")).join(":")}`.replace(Xg,""),Kr=e=>{var n;const t=((n=e==null?void 0:e.match(Qg))==null?void 0:n[0].split(":",2).map(tm))??Te;return qg(t.concat(0,0).slice(0,2))},om=(e,t=Ln)=>{const n=Kr(Ln==null?void 0:Ln.format(e));return Kr(t==null?void 0:t.format(e))-n},Hc=(e,t,n=1)=>{const{offset:o,timestamp:s}=e(t);return s-o*n*6e4},ft=(e,t)=>Hc(e,t,1),Et=(e,t)=>Hc(e,t,-1),sm=(()=>{let e,t;H(Ss)||(e=function(){return this.TIMEZONE},t=function(o){if(ue(o))this.TIMEZONE=Ss,this.formatter=Ln;else try{const s=new Intl.DateTimeFormat(Tr,{...Gc,timeZone:o}),r=s.resolvedOptions().timeZone;if(this.TIMEZONE===r)return;this.TIMEZONE=r,this.formatter=s}catch{}});function n(...o){if(o.length===0)return n.call(this,Date.now());const s=o[0],r=new Date(s).getTime(),a=this.formatter??Ln;return Object.freeze({formatted:a==null?void 0:a.format(r),offset:om(r,a),timestamp:r})}return()=>{const o={TIMEZONE:Ss},s=t==null?void 0:t.bind(o),r=G({current:{get:e==null?void 0:e.bind(o),set:s},system:{value:Ss}});return Object.defineProperties(n.bind(o),{tz:{get:()=>r,set:s}})}})(),ps=sm,rm="Konto",am="Kontosaldo",im="Tilføjelser",cm="Justeringer",lm="Beløb",um="Anvend",dm="Saldokonto",hm="Id for saldokonto",gm="Reserveret",mm="Indsamlet",pm="Kategori",fm="Chargebacks",ym="Luk",Im="Kontakt support for at få hjælp, og del fejlkode %{requestId}",_m="Rettelser",Tm="Valuta",Am="Dato",Sm="Datointerval",Nm="Beskrivelse",Lm="Afvis",Cm="E-mail",Em="Enhed blev ikke fundet",Mm="Transaktion blev ikke fundet for den angivne kontoindehaver",vm="Gebyrer",bm="Filterbjælke",Dm="Fra",Om="Indsamlede midler",$m="Bevilliget tilskud",Rm="Tilbagebetaling af tilskud",xm="Skjul indhold",wm="ID",Pm="Ufuldstændigt felt",km="Mobil",jm="Nettoudbetaling",Fm="Næste udbetalinger",Wm="Ingen data",Bm="Ingen negative tal er tilladt",zm="Ingen udbetalinger er fundet",Um="Ingen transaktioner er fundet",Ym="Andet",Gm="Pagineret navigation",Hm="Betalings-id",Zm="Betalingsmetode",Vm="Oplysninger om udbetaling",Jm="Udbetalinger",Qm="Afventer",Xm="Kontakt support for at få hjælp.",Km="Ræk ud efter støtte",qm="Reference-id",ep="Opdater",tp="Refunderinger",np="Resterende beløb",op="Nulstil",sp="Tilbageført",rp="Noget gik galt.",ap="Status",ip="Struktureret liste",cp="Subtraktioner",lp="Faner",up="Fejlkoden er %{requestId}",dp="Der er ingen resultater",hp="Anmodningen mangler påkrævede felter eller indeholder ugyldige data.",gp="Der opstod en uventet fejl",mp="Den valgte saldokonto er forkert",pp="Tidszone",fp="Til",yp="Indgående i alt",Ip="Udgående i alt",_p="Værdien til skal være lig med eller større end værdien fra",Tp="Transaktionsoplysninger",Ap="Transaktioner",Sp="Oversigt over transaktioner",Np="Transaktionstype",Lp="Overførsler",Cp="Prøv en anden søgning, eller nulstil dine filtre, så vi kan prøve igen.",Ep="Prøv at opdatere siden, eller kom tilbage senere.",Mp="Beløb",vp="Type",bp="Værdi",Dp="Vi kunne ikke indlæse oversigten over udbetalinger.",Op="Vi kunne ikke indlæse transaktionsoversigten.",$p="Vi kunne ikke indlæse dine saldokonti.",Rp="Vi kunne ikke indlæse dine udbetalinger.",xp="Vi kunne ikke indlæse dine transaktioner.",wp={account:rm,accountBalance:am,additions:im,adjustments:cm,amount:lm,apply:um,balanceAccount:dm,balanceAccountId:hm,Booked:gm,"button.clearAll":"Ryd alt","calendar.controls":"Kontrolelementer til kalendernavigation","calendar.nextMonth":"Næste måned","calendar.previousMonth":"Forrige måned","calendar.timezone":"Tidszone er indstillet til: GMT%{offset} (%{time})",capture:mm,category:pm,chargeback:fm,closeIconLabel:ym,contactSupportForHelpAndShareErrorCode:Im,correction:_m,currency:Tm,date:Am,dateRange:Sm,default:"Standard",description:Nm,dismiss:Lm,email:Cm,entityWasNotFound:Em,entityWasNotFoundDetail:Mm,"expandableCard.collapse":"Skjul","expandableCard.expand":"Udvid",export:"Eksporter",fee:vm,"filter.date.since":"Siden %{date}","filter.date.until":"Indtil %{dato}",filterBar:bm,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:Dm,fundsCaptured:Om,grantIssued:$m,grantRepayment:Rm,hideContent:xm,id:wm,incompleteField:Pm,mobile:km,netPayout:jm,nextPayouts:Fm,noData:Wm,noNegativeNumbersAllowed:Bm,noPayoutsFound:zm,noTransactionsFound:Um,other:Ym,paginatedNavigation:Gm,"pagination.nextPage":"Næste side","pagination.previousPage":"Forrige side","pagination.showing":"Viser",paymentId:Hm,paymentMethod:Zm,payoutDetails:Vm,payoutsTitle:Jm,Pending:Qm,pleaseReachOutToSupportForAssistance:Xm,"rangePreset.custom":"Tilpas","rangePreset.last30Days":"Sidste 30 dage","rangePreset.last7Days":"Sidste 7 dage","rangePreset.lastMonth":"Sidste måned","rangePreset.lastWeek":"Sidste uge","rangePreset.thisMonth":"Denne måned","rangePreset.thisWeek":"Denne uge","rangePreset.yearToDate":"År til dato",reachOutToSupport:Km,referenceID:qm,refresh:ep,refund:tp,remainingAmount:np,reset:op,Reversed:sp,"select.filter.placeholder":"Pladsholder","select.noOptionsFound":"Ingen muligheder stemmer ikke overens med denne søgning",somethingWentWrong:rp,status:ap,structuredList:ip,subtractions:cp,tabs:lp,theErrorCodeIs:up,thereAreNoResults:dp,theRequestIsMissingRequiredFieldsOrContainsInvalidData:hp,thereWasAnUnexpectedError:gp,theSelectedBalanceAccountIsIncorrect:mp,timezone:pp,to:fp,"tooltip.ATM":"Penge hævet i en pengeautomat","tooltip.Capital":"Penge fra et indgående lånetilskud eller udgående tilbagebetaling af lån","tooltip.Chargeback":"Penge tilbage til en kunde efter en bestridt transaktion","tooltip.Correction":"Justeringer af dine midler, herunder tilbageførsler af transaktioner og korrektioner af indbetalinger","tooltip.Fee":"Transaktionsomkostninger og gebyrer for betalingsmetoder","tooltip.Other":"Transaktioner, der ikke er i en anden kategori, normalt en justering","tooltip.Payment":"Penge modtaget på din konto fra en salgstransaktion","tooltip.Refund":"Penge sendt tilbage til en kunde fra en refunderet transaktion","tooltip.totalIncoming":"Alle penge modtaget på din konto baseret på de valgte filtre","tooltip.totalOutgoing":"Alle gebyrer, tilbagebetalinger, udbetalinger og andre afgifter baseret på de valgte filtre","tooltip.Transfer":"Penge flyttet mellem din konto og en anden konto",totalIncoming:yp,totalOutgoing:Ip,toValueShouldBeGreaterThanTheFromValue:_p,transactionDetails:Tp,transactions:Ap,transactionsOverviewTitle:Sp,transactionType:Np,transfer:Lp,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:Cp,tryRefreshingThePageOrComeBackLater:Ep,txAmount:Mp,"txType.ATM":"Pengeautomat","txType.Capital":"Kapital","txType.Chargeback":"Chargeback","txType.Correction":"Rettelse","txType.Fee":"Gebyr","txType.Other":"Andet","txType.Payment":"Betaling","txType.Refund":"Refunderinger","txType.Transfer":"Overfør",type:vp,value:bp,weCouldNotLoadThePayoutsOverview:Dp,weCouldNotLoadTheTransactionsOverview:Op,weCouldNotLoadYourBalanceAccounts:$p,weCouldNotLoadYourPayouts:Rp,weCouldNotLoadYourTransactions:xp},Pp="Konto",kp="Kontostand",jp="Aufschläge",Fp="Anpassungen",Wp="Betrag",Bp="Bewerben",zp="Guthabenkonto",Up="Guthabenkonto-ID",Yp="Gebucht",Gp="Erfasst",Hp="Kategorie",Zp="Chargebacks",Vp="Schließen",Jp="Kontaktieren Sie den Support, um Hilfe zu erhalten, und geben Sie den Fehlercode %{requestId} an.",Qp="Korrekturen",Xp="Währung",Kp="Datum",qp="Datumsbereich",ef="Beschreibung",tf="OK",nf="E-Mail-Adresse",of="Entität wurde nicht gefunden",sf="Transaktion für den angegebenen Kontoinhaber nicht gefunden",rf="Gebühren",af="Filterleiste",cf="Von",lf="Erfasste Geldmittel",uf="Zuschuss gewährt",df="Rückzahlungen von Zuschüssen",hf="Inhalt ausblenden",gf="ID",mf="Unvollständiges Feld",pf="Mobil",ff="Netto-Auszahlung",yf="Nächste Auszahlungen",If="Keine Daten",_f="Keine negativen Zahlen erlaubt",Tf="Keine Auszahlungen gefunden",Af="Keine Transaktionen gefunden",Sf="Andere",Nf="Paginierte Navigation",Lf="Zahlungs-ID",Cf="Zahlungsart",Ef="Auszahlungsdetails",Mf="Auszahlungen",vf="Ausstehend",bf="Bitte wenden Sie sich an den Support, wenn Sie Hilfe benötigen.",Df="Wenden Sie sich an den Support",Of="Referenz-ID",$f="Aktualisieren",Rf="Rückerstattungen",xf="Restbetrag",wf="Zurücksetzen",Pf="Rückgängig gemacht",kf="Etwas ist schiefgelaufen.",jf="Status",Ff="Strukturierte Liste",Wf="Abzüge",Bf="Registerkarten",zf="Der Fehlercode lautet %{requestId}",Uf="Es sind keine Ergebnisse vorhanden.",Yf="In der Anfrage fehlen Pflichtfelder oder sie enthält ungültige Daten.",Gf="Es ist ein unerwarteter Fehler aufgetreten.",Hf="Das gewählte Guthabenkonto ist falsch.",Zf="Zeitzone",Vf="Zu",Jf="Gesamte Eingänge",Qf="Gesamte Ausgänge",Xf="Der Bis-Wert sollte gleich oder größer sein als der Von-Wert",Kf="Details zur Transaktion",qf="Transaktionen",ey="Übersicht über Transaktionen",ty="Transaktionsart",ny="Überweisungen",oy="Versuchen Sie es mit einer anderen Suche oder setzen Sie Ihre Filter zurück und wir versuchen es erneut.",sy="Versuchen Sie, die Seite zu aktualisieren, oder schauen Sie später noch einmal vorbei.",ry="Betrag",ay="Typ",iy="Wert",cy="Die Auszahlungsübersicht konnte nicht geladen werden.",ly="Die Transaktionsübersicht konnte nicht geladen werden.",uy="Ihre Guthabenkonten konnten nicht geladen werden.",dy="Ihre Auszahlungen konnten nicht geladen werden.",hy="Ihre Transaktionen konnten nicht geladen werden.",gy={account:Pp,accountBalance:kp,additions:jp,adjustments:Fp,amount:Wp,apply:Bp,balanceAccount:zp,balanceAccountId:Up,Booked:Yp,"button.clearAll":"Alles löschen","calendar.controls":"Steuerelemente für die Kalendernavigation","calendar.nextMonth":"Nächsten Monat","calendar.previousMonth":"Vorheriger Monat","calendar.timezone":"Die Zeitzone ist eingestellt auf: GMT%{offset} (%{time})",capture:Gp,category:Hp,chargeback:Zp,closeIconLabel:Vp,contactSupportForHelpAndShareErrorCode:Jp,correction:Qp,currency:Xp,date:Kp,dateRange:qp,default:"Standard",description:ef,dismiss:tf,email:nf,entityWasNotFound:of,entityWasNotFoundDetail:sf,"expandableCard.collapse":"Ausblenden","expandableCard.expand":"Erweitern",export:"Exportieren",fee:rf,"filter.date.since":"Seit %{date}","filter.date.until":"Bis %{date}",filterBar:af,"filterPlaceholder.category":"Typ","filterPlaceholder.currency":"Währung","filterPlaceholder.status":"Status",from:cf,fundsCaptured:lf,grantIssued:uf,grantRepayment:df,hideContent:hf,id:gf,incompleteField:mf,mobile:pf,netPayout:ff,nextPayouts:yf,noData:If,noNegativeNumbersAllowed:_f,noPayoutsFound:Tf,noTransactionsFound:Af,other:Sf,paginatedNavigation:Nf,"pagination.nextPage":"Nächste Seite","pagination.previousPage":"Vorherige Seite","pagination.showing":"Wird angezeigt",paymentId:Lf,paymentMethod:Cf,payoutDetails:Ef,payoutsTitle:Mf,Pending:vf,pleaseReachOutToSupportForAssistance:bf,"rangePreset.custom":"Benutzerdefiniert","rangePreset.last30Days":"Letzte 30 Tage","rangePreset.last7Days":"Letzte 7 Tage","rangePreset.lastMonth":"Letzter Monat","rangePreset.lastWeek":"Letzte Woche","rangePreset.thisMonth":"Diesen Monat","rangePreset.thisWeek":"Diese Woche","rangePreset.yearToDate":"Jahr bis heute",reachOutToSupport:Df,referenceID:Of,refresh:$f,refund:Rf,remainingAmount:xf,reset:wf,Reversed:Pf,"select.filter.placeholder":"Platzhalter","select.noOptionsFound":"Keine Optionen für diese Suche vorhanden",somethingWentWrong:kf,status:jf,structuredList:Ff,subtractions:Wf,tabs:Bf,theErrorCodeIs:zf,thereAreNoResults:Uf,theRequestIsMissingRequiredFieldsOrContainsInvalidData:Yf,thereWasAnUnexpectedError:Gf,theSelectedBalanceAccountIsIncorrect:Hf,timezone:Zf,to:Vf,"tooltip.ATM":"Geld, das an einem Geldautomaten abgehoben wird","tooltip.Capital":"Geld aus einem eingehenden Darlehenszuschuss oder einer ausgehenden Darlehensrückzahlung","tooltip.Chargeback":"Geld wurde einem Kunden nach einer angefochtenen Transaktion zurückerstattet","tooltip.Correction":"Anpassungen Ihrer Gelder, einschließlich Transaktionsstornierungen und Einzahlungskorrekturen","tooltip.Fee":"Transaktionskosten und Gebühren für Zahlungsmethoden","tooltip.Other":"Transaktionen, die nicht in eine andere Kategorie fallen, in der Regel eine Anpassung","tooltip.Payment":"Geld, das Sie durch eine Verkaufstransaktion auf Ihrem Konto erhalten haben","tooltip.Refund":"Geld, das von einer erstatteten Transaktion an einen Kunden zurückgeschickt wurde","tooltip.totalIncoming":"Alle auf Ihrem Konto eingegangenen Gelder basierend auf den ausgewählten Filtern","tooltip.totalOutgoing":"Alle Gebühren, Erstattungen, Auszahlungen und andere Abbuchungen basierend auf den ausgewählten Filtern","tooltip.Transfer":"Geld wurde zwischen Ihrem Konto und einem anderen Konto transferiert wurde",totalIncoming:Jf,totalOutgoing:Qf,toValueShouldBeGreaterThanTheFromValue:Xf,transactionDetails:Kf,transactions:qf,transactionsOverviewTitle:ey,transactionType:ty,transfer:ny,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:oy,tryRefreshingThePageOrComeBackLater:sy,txAmount:ry,"txType.ATM":"Geldautomat","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Korrektur","txType.Fee":"Gebühr","txType.Other":"Andere","txType.Payment":"Zahlung","txType.Refund":"Rückerstattung","txType.Transfer":"Überweisung",type:ay,value:iy,weCouldNotLoadThePayoutsOverview:cy,weCouldNotLoadTheTransactionsOverview:ly,weCouldNotLoadYourBalanceAccounts:uy,weCouldNotLoadYourPayouts:dy,weCouldNotLoadYourTransactions:hy},my="Cuenta",py="Saldo de la cuenta",fy="Adiciones",yy="Ajustes",Iy="cantidad",_y="Aplicar",Ty="Cuenta de saldo",Ay="ID de cuenta de saldo",Sy="Reservado",Ny="Capturado",Ly="Categoría",Cy="Contracargos",Ey="Cerrar",My="Contacta al equipo de soporte para obtener ayuda y comparte con ellos el código del error %{requestId}",vy="Correcciones",by="Divisa",Dy="Fecha",Oy="Intervalo de fechas",$y="Descripción",Ry="Descartar",xy="Correo electrónico",wy="No se ha encontrado la entidad",Py="No se ha encontrado la transacción para el titular especificado",ky="Tasas",jy="Barra de filtro",Fy="Desde",Wy="Fondos capturados",By="Subvención concedida",zy="Reembolsos de la subvención",Uy="Ocultar contenido",Yy="Documento de identidad",Gy="Campo incompleto",Hy="Móvil",Zy="Pago neto",Vy="Próximos pagos",Jy="Sin datos",Qy="No se permiten números negativos",Xy="No se ha encontrado ningún pago",Ky="No se han encontrado transacciones",qy="Otro tipo",eI="Navegación por páginas",tI="ID de pago",nI="Método de pago",oI="Detalles de pago",sI="Pagos",rI="Pendiente",aI="Ponte en contacto con soporte para obtener ayuda.",iI="Ponte en contacto con soporte",cI="ID de referencia",lI="Actualizar",uI="Reembolsos",dI="Cantidad restante",hI="Restablecer",gI="Invertido",mI="Se ha producido un error.",pI="Estado",fI="Lista estructurada",yI="Sustracciones",II="Pestañas",_I="El código de error es %{requestId}",TI="Sin resultados",AI="Faltan faltan campos obligatorios en la solicitud o esta contiene datos no válidos.",SI="Se ha producido un error inesperado",NI="La cuenta de saldo seleccionada es incorrecta",LI="Zona horaria",CI="Hasta",EI="Fondos entrantes totales",MI="Fondos salientes totales",vI="El valor Hasta debe ser igual o mayor que el valor Desde",bI="Detalles de la transacción",DI="Transacciones",OI="Resumen de transacciones",$I="Tipo de transacción",RI="Transferencias",xI="Prueba con una búsqueda diferente o restablece los filtros para que lo intentemos de nuevo.",wI="Prueba a actualizar la página o inténtalo más tarde.",PI="cantidad",kI="Tipo",jI="Valor",FI="No hemos podido cargar el resumen de los pagos.",WI="No hemos podido cargar el resumen de las transacciones.",BI="No hemos podido cargar tus cuentas de saldo.",zI="No hemos podido cargar tus pagos.",UI="No hemos podido cargar tus transacciones.",YI={account:my,accountBalance:py,additions:fy,adjustments:yy,amount:Iy,apply:_y,balanceAccount:Ty,balanceAccountId:Ay,Booked:Sy,"button.clearAll":"Borrar todo","calendar.controls":"Controles de navegación del calendario","calendar.nextMonth":"Mes siguiente","calendar.previousMonth":"Mes anterior","calendar.timezone":"La zona horaria actual en: GMT%{offset} (%{time})",capture:Ny,category:Ly,chargeback:Cy,closeIconLabel:Ey,contactSupportForHelpAndShareErrorCode:My,correction:vy,currency:by,date:Dy,dateRange:Oy,default:"Por defecto",description:$y,dismiss:Ry,email:xy,entityWasNotFound:wy,entityWasNotFoundDetail:Py,"expandableCard.collapse":"Contraer","expandableCard.expand":"Expandir",export:"Exportar",fee:ky,"filter.date.since":"Desde: %{date}","filter.date.until":"Hasta: %{date}",filterBar:jy,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Divisa","filterPlaceholder.status":"Estado",from:Fy,fundsCaptured:Wy,grantIssued:By,grantRepayment:zy,hideContent:Uy,id:Yy,incompleteField:Gy,mobile:Hy,netPayout:Zy,nextPayouts:Vy,noData:Jy,noNegativeNumbersAllowed:Qy,noPayoutsFound:Xy,noTransactionsFound:Ky,other:qy,paginatedNavigation:eI,"pagination.nextPage":"Página siguiente","pagination.previousPage":"Página anterior","pagination.showing":"Visible",paymentId:tI,paymentMethod:nI,payoutDetails:oI,payoutsTitle:sI,Pending:rI,pleaseReachOutToSupportForAssistance:aI,"rangePreset.custom":"Personalizadas","rangePreset.last30Days":"Últimos 30 días","rangePreset.last7Days":"Últimos 7 días","rangePreset.lastMonth":"Mes pasado","rangePreset.lastWeek":"Última semana","rangePreset.thisMonth":"Este mes","rangePreset.thisWeek":"Esta semana","rangePreset.yearToDate":"Este año hasta la fecha",reachOutToSupport:iI,referenceID:cI,refresh:lI,refund:uI,remainingAmount:dI,reset:hI,Reversed:gI,"select.filter.placeholder":"Marcador de posición","select.noOptionsFound":"No hay opciones que coincidan con esta búsqueda",somethingWentWrong:mI,status:pI,structuredList:fI,subtractions:yI,tabs:II,theErrorCodeIs:_I,thereAreNoResults:TI,theRequestIsMissingRequiredFieldsOrContainsInvalidData:AI,thereWasAnUnexpectedError:SI,theSelectedBalanceAccountIsIncorrect:NI,timezone:LI,to:CI,"tooltip.ATM":"Dinero retirado en un cajero automático","tooltip.Capital":"Dinero de una concesión de préstamo entrante o de un reembolso de préstamo saliente","tooltip.Chargeback":"Dinero devuelto a un cliente después de una transacción en disputa","tooltip.Correction":"Ajustes a tus fondos, incluidas reversiones de transacciones y correcciones de depósitos","tooltip.Fee":"Costes de la transacción y comisiones del método de pago","tooltip.Other":"Transacciones que no pertenecen a otra categoría, normalmente un ajuste","tooltip.Payment":"Dinero recibido en tu cuenta de una transacción de venta","tooltip.Refund":"Dinero devuelto a un cliente por una transacción reembolsada","tooltip.totalIncoming":"Todo el dinero recibido en tu cuenta de acuerdo a los filtros seleccionados","tooltip.totalOutgoing":"Todas las comisiones, los reembolsos, los pagos y otros cargos de acuerdo a los filtros seleccionados","tooltip.Transfer":"Dinero movido entre tu cuenta y otra",totalIncoming:EI,totalOutgoing:MI,toValueShouldBeGreaterThanTheFromValue:vI,transactionDetails:bI,transactions:DI,transactionsOverviewTitle:OI,transactionType:$I,transfer:RI,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:xI,tryRefreshingThePageOrComeBackLater:wI,txAmount:PI,"txType.ATM":"Cajero automático","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Corrección","txType.Fee":"Fee (Tasa)","txType.Other":"Otro tipo","txType.Payment":"Pago","txType.Refund":"Devolución","txType.Transfer":"Transferencia",type:kI,value:jI,weCouldNotLoadThePayoutsOverview:FI,weCouldNotLoadTheTransactionsOverview:WI,weCouldNotLoadYourBalanceAccounts:BI,weCouldNotLoadYourPayouts:zI,weCouldNotLoadYourTransactions:UI},GI="Compte",HI="Solde du compte",ZI="Additions",VI="Ajustements",JI="Montant",QI="Postuler",XI="Compte de solde",KI="ID de compte de solde",qI="Réservé",e_="Capturé",t_="Catégorie",n_="Impayés",o_="Fermer",s_="Contactez l'assistance pour obtenir de l'aide et partagez le code d'erreur %{requestId}",r_="Corrections",a_="Devise",i_="Date",c_="Plage de dates",l_="Description",u_="Ignorer",d_="E-mail",h_="L'entité n'a pas été trouvée",g_="Transaction introuvable pour le titulaire du compte spécifié",m_="Frais",p_="Barre de filtre",f_="De",y_="Fonds capturés",I_="Subvention accordée",__="Remboursements de subventions",T_="Masquer le contenu",A_="ID",S_="Champ incomplet",N_="Mobile",L_="Reversement net",C_="Reversements suivants",E_="Pas de données",M_="Aucun chiffre négatif n'est autorisé",v_="Aucun reversement trouvé",b_="Aucune transaction trouvée",D_="Autre",O_="Navigation paginée",$_="ID de paiement",R_="Mode de paiement",x_="Informations pour le reversement",w_="Reversements",P_="En attente",k_="Veuillez contacter l'assistance pour obtenir de l'aide.",j_="Contacter l'assistance",F_="ID de référence",W_="Actualiser",B_="Remboursements",z_="Montant restant",U_="Réinitialiser",Y_="Inverse",G_="Une erreur s'est produite.",H_="Statut",Z_="Liste structurée",V_="Soustractions",J_="Onglets",Q_="Le code d'erreur est %{requestId}",X_="Il n'y a pas de résultats",K_="Dans la demande, des champs obligatoires sont manquants ou des données ne sont pas valides.",q_="Une erreur inattendue s'est produite",eT="Le compte de solde sélectionné est incorrect",tT="Fuseau horaire",nT="À",oT="Total entrant",sT="Total sortant",rT="La valeur de À doit être égale ou supérieure à la valeur de De",aT="Détails de la transaction",iT="Transactions",cT="Aperçu des transactions",lT="Type de transaction",uT="Transferts",dT="Essayez une autre recherche ou réinitialisez vos filtres, et nous réessayerons.",hT="Réessayez en actualisant la page ou retentez plus tard.",gT="Montant",mT="Type",pT="Valeur",fT="Nous n'avons pas pu charger l'aperçu des reversements.",yT="Nous n'avons pas pu charger l'aperçu des transactions.",IT="Nous n'avons pas pu charger vos comptes de solde.",_T="Nous n'avons pas pu charger vos reversements.",TT="Nous n'avons pas pu charger vos transactions.",AT={account:GI,accountBalance:HI,additions:ZI,adjustments:VI,amount:JI,apply:QI,balanceAccount:XI,balanceAccountId:KI,Booked:qI,"button.clearAll":"Tout effacer","calendar.controls":"Commandes de navigation dans le calendrier","calendar.nextMonth":"Mois suivant","calendar.previousMonth":"Mois précédent","calendar.timezone":"Le fuseau horaire est défini sur : GMT%{offset} (%{time})",capture:e_,category:t_,chargeback:n_,closeIconLabel:o_,contactSupportForHelpAndShareErrorCode:s_,correction:r_,currency:a_,date:i_,dateRange:c_,default:"Par défaut",description:l_,dismiss:u_,email:d_,entityWasNotFound:h_,entityWasNotFoundDetail:g_,"expandableCard.collapse":"Réduire","expandableCard.expand":"Développer",export:"Exporter",fee:m_,"filter.date.since":"Depuis le %{date}","filter.date.until":"Jusqu'au %{date}",filterBar:p_,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Devise","filterPlaceholder.status":"Statut",from:f_,fundsCaptured:y_,grantIssued:I_,grantRepayment:__,hideContent:T_,id:A_,incompleteField:S_,mobile:N_,netPayout:L_,nextPayouts:C_,noData:E_,noNegativeNumbersAllowed:M_,noPayoutsFound:v_,noTransactionsFound:b_,other:D_,paginatedNavigation:O_,"pagination.nextPage":"Page suivante","pagination.previousPage":"Page précédente","pagination.showing":"Affichage",paymentId:$_,paymentMethod:R_,payoutDetails:x_,payoutsTitle:w_,Pending:P_,pleaseReachOutToSupportForAssistance:k_,"rangePreset.custom":"Personnalisé","rangePreset.last30Days":"30 derniers jours","rangePreset.last7Days":"7 derniers jours","rangePreset.lastMonth":"Mois dernier","rangePreset.lastWeek":"La semaine dernière","rangePreset.thisMonth":"Ce mois-ci","rangePreset.thisWeek":"Cette semaine","rangePreset.yearToDate":"Depuis le début de l'année",reachOutToSupport:j_,referenceID:F_,refresh:W_,refund:B_,remainingAmount:z_,reset:U_,Reversed:Y_,"select.filter.placeholder":"Espace réservé","select.noOptionsFound":"Aucune option ne correspond à cette recherche",somethingWentWrong:G_,status:H_,structuredList:Z_,subtractions:V_,tabs:J_,theErrorCodeIs:Q_,thereAreNoResults:X_,theRequestIsMissingRequiredFieldsOrContainsInvalidData:K_,thereWasAnUnexpectedError:q_,theSelectedBalanceAccountIsIncorrect:eT,timezone:tT,to:nT,"tooltip.ATM":"Argent retiré à un distributeur automatique","tooltip.Capital":"Argent provenant d’un prêt ou d’un remboursement de prêt","tooltip.Chargeback":"Argent remboursé à un client suite à une transaction contestée","tooltip.Correction":"Ajustements à vos fonds, y compris les annulations de transactions et les corrections de dépôts","tooltip.Fee":"Frais de transaction et frais liés au moyen de paiement","tooltip.Other":"Transactions n’appartenant pas à une autre catégorie, généralement un ajustement","tooltip.Payment":"Argent versé sur votre compte suite à une transaction de vente","tooltip.Refund":"Argent renvoyé à un client suite à une transaction remboursée","tooltip.totalIncoming":"Tout l'argent versé sur votre compte en fonction des filtres sélectionnés","tooltip.totalOutgoing":"Tous les frais, remboursements, reversements et autres dépenses basés sur les filtres sélectionnés","tooltip.Transfer":"Argent transféré de votre compte vers un autre compte",totalIncoming:oT,totalOutgoing:sT,toValueShouldBeGreaterThanTheFromValue:rT,transactionDetails:aT,transactions:iT,transactionsOverviewTitle:cT,transactionType:lT,transfer:uT,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:dT,tryRefreshingThePageOrComeBackLater:hT,txAmount:gT,"txType.ATM":"Distributeur automatique","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correction","txType.Fee":"Fee (Frais)","txType.Other":"Autre","txType.Payment":"Transaction","txType.Refund":"Remboursement","txType.Transfer":"Transfert",type:mT,value:pT,weCouldNotLoadThePayoutsOverview:fT,weCouldNotLoadTheTransactionsOverview:yT,weCouldNotLoadYourBalanceAccounts:IT,weCouldNotLoadYourPayouts:_T,weCouldNotLoadYourTransactions:TT},ST="Account",NT="Saldo del conto",LT="Aggiunte",CT="Aggiustamenti",ET="Importo",MT="Applica",vT="Saldo del conto",bT="ID saldo del conto",DT="Prenotato",OT="Acquisito",$T="Categoria",RT="Chargeback",xT="Chiudi",wT="Contatta l'assistenza per un aiuto e condividi il codice di errore %{requestId}",PT="Correzioni",kT="Valuta",jT="Data",FT="Intervallo di date",WT="Descrizione",BT="Ignora",zT="E-mail",UT="L'entità non è stata trovata",YT="Transazione non trovata per il titolare del conto specificato",GT="Commissioni",HT="Barra dei filtri",ZT="Da",VT="Fondi acquisiti",JT="Sovvenzione rilasciata",QT="Rimborsi delle sovvenzioni",XT="Nascondi contenuto",KT="Numero identificativo",qT="Campo incompleto",eA="Mobile",tA="Pagamento netto",nA="Prossimi pagamenti",oA="Nessun dato",sA="Non sono ammessi numeri negativi",rA="Nessun pagamento trovato",aA="Nessuna transazione trovata",iA="Altro",cA="Navigazione a pagine",lA="ID di pagamento",uA="Metodo di pagamento",dA="Dettagli di pagamento",hA="Pagamenti",gA="In sospeso",mA="Contatta il supporto per ricevere assistenza.",pA="Contatta il supporto",fA="ID di riferimento",yA="Aggiorna",IA="Rimborsi",_A="Importo rimanente",TA="Reimposta",AA="Revocato",SA="Si è verificato un errore.",NA="Stato",LA="Elenco strutturato",CA="Sottrazioni",EA="Schede",MA="Il codice di errore è %{requestId}",vA="Nessun risultato",bA="Nella richiesta mancano i campi obbligatori o contiene dati non validi.",DA="Si è verificato un errore imprevisto",OA="Il saldo del conto selezionato non è corretto",$A="Fuso orario",RA="A",xA="Entrate totali",wA="Totale uscite",PA="Il valore A deve essere uguale o maggiore del valore Da",kA="Dettagli della transazione",jA="Transazioni",FA="Panoramica delle transazioni",WA="Tipo di transazione",BA="Trasferimenti",zA="Prova a effettuare una ricerca diversa o a reimpostare i filtri e ritenteremo.",UA="Prova ad aggiornare la pagina o torna più tardi.",YA="Importo",GA="Tipo",HA="Valore",ZA="Non è stato possibile caricare la panoramica dei pagamenti.",VA="Non è stato possibile caricare la panoramica delle transazioni.",JA="Non è stato possibile caricare il saldo dei tuoi conti.",QA="Non è stato possibile caricare i tuoi pagamenti.",XA="Non è stato possibile caricare le tue transazioni.",KA={account:ST,accountBalance:NT,additions:LT,adjustments:CT,amount:ET,apply:MT,balanceAccount:vT,balanceAccountId:bT,Booked:DT,"button.clearAll":"Svuota tutto","calendar.controls":"Controlli di navigazione del calendario","calendar.nextMonth":"Prossimo mese","calendar.previousMonth":"Mese precedente","calendar.timezone":"Il fuso orario è impostato su: GMT%{offset} (%{time})",capture:OT,category:$T,chargeback:RT,closeIconLabel:xT,contactSupportForHelpAndShareErrorCode:wT,correction:PT,currency:kT,date:jT,dateRange:FT,default:"Default",description:WT,dismiss:BT,email:zT,entityWasNotFound:UT,entityWasNotFoundDetail:YT,"expandableCard.collapse":"Comprimi","expandableCard.expand":"Espandi",export:"Esporta",fee:GT,"filter.date.since":"Dal %{date}","filter.date.until":"Al %{date}",filterBar:HT,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Stato",from:ZT,fundsCaptured:VT,grantIssued:JT,grantRepayment:QT,hideContent:XT,id:KT,incompleteField:qT,mobile:eA,netPayout:tA,nextPayouts:nA,noData:oA,noNegativeNumbersAllowed:sA,noPayoutsFound:rA,noTransactionsFound:aA,other:iA,paginatedNavigation:cA,"pagination.nextPage":"Pagina successiva","pagination.previousPage":"Pagina precedente","pagination.showing":"Risultati:",paymentId:lA,paymentMethod:uA,payoutDetails:dA,payoutsTitle:hA,Pending:gA,pleaseReachOutToSupportForAssistance:mA,"rangePreset.custom":"Personalizzato","rangePreset.last30Days":"Ultimi 30 giorni","rangePreset.last7Days":"Ultimi 7 giorni","rangePreset.lastMonth":"Il mese scorso","rangePreset.lastWeek":"La scorsa settimana","rangePreset.thisMonth":"Questo mese","rangePreset.thisWeek":"Questa settimana","rangePreset.yearToDate":"Da inizio anno",reachOutToSupport:pA,referenceID:fA,refresh:yA,refund:IA,remainingAmount:_A,reset:TA,Reversed:AA,"select.filter.placeholder":"Segnaposto","select.noOptionsFound":"Nessuna opzione corrisponde a questa ricerca",somethingWentWrong:SA,status:NA,structuredList:LA,subtractions:CA,tabs:EA,theErrorCodeIs:MA,thereAreNoResults:vA,theRequestIsMissingRequiredFieldsOrContainsInvalidData:bA,thereWasAnUnexpectedError:DA,theSelectedBalanceAccountIsIncorrect:OA,timezone:$A,to:RA,"tooltip.ATM":"Denaro prelevato da uno sportello bancomat","tooltip.Capital":"Denaro derivante da una concessione di prestito in entrata o dal rimborso del prestito in uscita","tooltip.Chargeback":"Denaro restituito a un cliente dopo una transazione contestata","tooltip.Correction":"Aggiustamenti ai tuoi fondi, inclusi storni di transazioni e correzioni di depositi","tooltip.Fee":"Costi di transazione e commissioni sui metodi di pagamento","tooltip.Other":"Transazioni non appartenenti a un'altra categoria, di solito un aggiustamento","tooltip.Payment":"Denaro ricevuto sul tuo conto da una transazione di vendita","tooltip.Refund":"Denaro restituito a un cliente da una transazione rimborsata","tooltip.totalIncoming":"Tutto il denaro ricevuto sul conto in base ai filtri selezionati","tooltip.totalOutgoing":"Tutte le commissioni, i rimborsi, i pagamenti e le altre spese in base ai filtri selezionati","tooltip.Transfer":"Denaro trasferito tra il tuo conto e un altro conto",totalIncoming:xA,totalOutgoing:wA,toValueShouldBeGreaterThanTheFromValue:PA,transactionDetails:kA,transactions:jA,transactionsOverviewTitle:FA,transactionType:WA,transfer:BA,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:zA,tryRefreshingThePageOrComeBackLater:UA,txAmount:YA,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Riaccredito","txType.Correction":"Correzione","txType.Fee":"Commissione","txType.Other":"Altro","txType.Payment":"Pagamento","txType.Refund":"Rimborso","txType.Transfer":"Trasferimento",type:GA,value:HA,weCouldNotLoadThePayoutsOverview:ZA,weCouldNotLoadTheTransactionsOverview:VA,weCouldNotLoadYourBalanceAccounts:JA,weCouldNotLoadYourPayouts:QA,weCouldNotLoadYourTransactions:XA},qA="Account",eS="Rekeningsaldo",tS="Aanvullingen",nS="Aanpassingen",oS="Bedrag",sS="Toepassen",rS="Saldorekening",aS="ID saldorekening",iS="Geboekt",cS="Vastgehouden",lS="Categorie",uS="Chargebacks",dS="Sluiten",hS="Neem contact op met support voor hulp en vermeld de foutcode% {requestId}",gS="Correcties",mS="Valuta",pS="Datum",fS="Periode",yS="Beschrijving",IS="Negeren",_S="E-mailadres",TS="Entiteit is niet gevonden.",AS="Transactie niet gevonden voor de opgegeven rekeninghouder",SS="Kosten",NS="Filterbalk",LS="Van",CS="Vastgehouden bedrag",ES="Subsidie verleend",MS="Terugbetalingen van subsidies",vS="Inhoud verbergen",bS="ID",DS="Onvolledig veld",OS="Mobiel",$S="Netto uitbetaling",RS="Volgende uitbetalingen",xS="Geen gegevens",wS="Negatieve getallen zijn niet toegestaan",PS="Geen uitbetalingen gevonden",kS="Geen transacties gevonden",jS="Overige",FS="Gepagineerde navigatie",WS="Betalings-ID",BS="Betaalmethode",zS="Uitbetalingsgegevens",US="Uitbetalingen",YS="In behandeling",GS="Neem contact op support voor ondersteuning.",HS="Neem contact met support",ZS="Referentie-ID",VS="Vernieuwen",JS="Refunds",QS="Resterend bedrag",XS="Resetten",KS="Teruggestort",qS="Er is iets fout gegaan.",eN="Status",tN="Gestructureerde lijst",nN="Aftrekkingen",oN="Tabs",sN="De foutcode is %{requestId}",rN="Er zijn geen resultaten",aN="Er ontbreken verplichte velden in het verzoek of het bevat ongeldige gegevens.",iN="Er is een onverwachte fout opgetreden",cN="De geselecteerde saldorekening is onjuist",lN="Tijdzone",uN="Naar",dN="Totaal inkomend",hN="Totaal uitgaand",gN="De waarde moet gelijk zijn aan of groter zijn dan de Van-waarde",mN="Gegevens van de transactie",pN="Transacties",fN="Transactieoverzicht",yN="Soort transactie",IN="Overschrijvingen",_N="Probeer een andere zoekopdracht of stel uw filters opnieuw in, en we proberen het opnieuw.",TN="Probeer de pagina te vernieuwen of kom later terug.",AN="Bedrag",SN="Soort",NN="Waarde",LN="We konden het uitbetalingsoverzicht niet laden.",CN="We konden het transactieoverzicht niet laden.",EN="We kunnen uw saldorekeningen niet laden.",MN="We konden uw uitbetalingen niet laden.",vN="We konden uw transacties niet laden.",bN={account:qA,accountBalance:eS,additions:tS,adjustments:nS,amount:oS,apply:sS,balanceAccount:rS,balanceAccountId:aS,Booked:iS,"button.clearAll":"Alles wissen","calendar.controls":"Bedieningselementen voor agendanavigatie","calendar.nextMonth":"Volgende maand","calendar.previousMonth":"Vorige maand","calendar.timezone":"Tijdzone is ingesteld op: GMT%{offset} (%{time})",capture:cS,category:lS,chargeback:uS,closeIconLabel:dS,contactSupportForHelpAndShareErrorCode:hS,correction:gS,currency:mS,date:pS,dateRange:fS,default:"Standaard",description:yS,dismiss:IS,email:_S,entityWasNotFound:TS,entityWasNotFoundDetail:AS,"expandableCard.collapse":"Samenvoegen","expandableCard.expand":"Uitvouwen",export:"Exporteren",fee:SS,"filter.date.since":"Sinds %{date}","filter.date.until":"Tot %{date}",filterBar:NS,"filterPlaceholder.category":"Soort","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:LS,fundsCaptured:CS,grantIssued:ES,grantRepayment:MS,hideContent:vS,id:bS,incompleteField:DS,mobile:OS,netPayout:$S,nextPayouts:RS,noData:xS,noNegativeNumbersAllowed:wS,noPayoutsFound:PS,noTransactionsFound:kS,other:jS,paginatedNavigation:FS,"pagination.nextPage":"Volgende pagina","pagination.previousPage":"Vorige pagina","pagination.showing":"Tonen",paymentId:WS,paymentMethod:BS,payoutDetails:zS,payoutsTitle:US,Pending:YS,pleaseReachOutToSupportForAssistance:GS,"rangePreset.custom":"Aangepast","rangePreset.last30Days":"Laatste 30 dagen","rangePreset.last7Days":"Laatste 7 dagen","rangePreset.lastMonth":"Vorige maand","rangePreset.lastWeek":"Vorige week","rangePreset.thisMonth":"Deze maand","rangePreset.thisWeek":"Deze week","rangePreset.yearToDate":"Jaar tot heden",reachOutToSupport:HS,referenceID:ZS,refresh:VS,refund:JS,remainingAmount:QS,reset:XS,Reversed:KS,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"Er zijn geen opties die overeenkomen met deze zoekopdracht",somethingWentWrong:qS,status:eN,structuredList:tN,subtractions:nN,tabs:oN,theErrorCodeIs:sN,thereAreNoResults:rN,theRequestIsMissingRequiredFieldsOrContainsInvalidData:aN,thereWasAnUnexpectedError:iN,theSelectedBalanceAccountIsIncorrect:cN,timezone:lN,to:uN,"tooltip.ATM":"Geld opgenomen bij een geldautomaat","tooltip.Capital":"Geld uit een binnenkomende lening of terugbetaling van een uitgaande lening","tooltip.Chargeback":"Geld teruggestort aan een klant na een betwiste transactie","tooltip.Correction":"Aanpassingen aan je geld, inclusief terugboekingen van transacties en correcties op stortingen","tooltip.Fee":"Transactiekosten en kosten voor betaalmethoden","tooltip.Other":"Transacties die niet in een andere categorie vallen, meestal een aanpassing","tooltip.Payment":"Geld dat op je rekening is ontvangen via een verkooptransactie","tooltip.Refund":"Geld dat is teruggestuurd naar een klant in het kader van een teruggestorte transactie","tooltip.totalIncoming":"Al het geld dat op uw rekening is ontvangen op basis van de geselecteerde filters","tooltip.totalOutgoing":"Alle vergoedingen, terugbetalingen, uitbetalingen en andere kosten op basis van de geselecteerde filters","tooltip.Transfer":"Geld dat tussen je rekening en een andere rekening is overgemaakt",totalIncoming:dN,totalOutgoing:hN,toValueShouldBeGreaterThanTheFromValue:gN,transactionDetails:mN,transactions:pN,transactionsOverviewTitle:fN,transactionType:yN,transfer:IN,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:_N,tryRefreshingThePageOrComeBackLater:TN,txAmount:AN,"txType.ATM":"Geldautomaat","txType.Capital":"Capital","txType.Chargeback":"Terugboeking","txType.Correction":"Correctie","txType.Fee":"Kost","txType.Other":"Overige","txType.Payment":"Betaling","txType.Refund":"Refund","txType.Transfer":"Overschrijving",type:SN,value:NN,weCouldNotLoadThePayoutsOverview:LN,weCouldNotLoadTheTransactionsOverview:CN,weCouldNotLoadYourBalanceAccounts:EN,weCouldNotLoadYourPayouts:MN,weCouldNotLoadYourTransactions:vN},DN="Konto",ON="Saldo på konto",$N="Tillegg",RN="Justeringer",xN="Beløp",wN="Bruk",PN="Saldokonto",kN="Saldokonto-ID",jN="Bestilt",FN="Registrert",WN="Kategori",BN="Chargebacks",zN="Lukk",UN="Kontakt brukerstøtten for hjelp og del feilkoden %{requestId}",YN="Rettelser",GN="Valuta",HN="Dato",ZN="Datointervall",VN="Beskrivelse",JN="Avvis",QN="E-post",XN="Entiteten ble ikke funnet",KN="Transaksjon ble ikke funnet for den angitte kontoinnehaveren",qN="Gebyrer",eL="Filterlinje",tL="Fra",nL="Midler registrert",oL="Tilskudd utstedt",sL="Tilbakebetaling av tilskudd",rL="Skjul innhold",aL="ID",iL="Ufullstendig felt",cL="Mobile",lL="Netto utbetaling",uL="Neste utbetalinger",dL="Ingen data",hL="Ingen negative tall tillatt",gL="Ingen utbetalinger funnet",mL="Ingen transaksjoner funnet",pL="Annet",fL="Sideformatert navigasjon",yL="Betalings-ID",IL="Betalingsmetode",_L="Detaljer om utbetaling",TL="Utbetalinger",AL="Avventer",SL="Ta kontakt med brukerstøtten for å få hjelp.",NL="Ta kontakt med brukerstøtten",LL="Referanse-ID",CL="Oppdater",EL="Refunderinger",ML="Gjenstående beløp",vL="Tilbakestill",bL="Omvendt",DL="Noe gikk galt.",OL="Status",$L="Strukturert liste",RL="Subtraksjoner",xL="Faner",wL="Feilkoden er %{requestID}",PL="Det finnes ingen resultater",kL="Forespørselen mangler obligatoriske felt eller inneholder ugyldige data.",jL="Det oppstod en uventet feil",FL="Den valgte saldokontoen er feil",WL="Tidssone",BL="Til",zL="Totalt innkommende",UL="Totalt utgående",YL="Til-verdien skal være lik eller større enn Fra-verdien",GL="Transaksjonsdetaljer",HL="Transaksjoner",ZL="Transaksjonsoversikt",VL="Transaksjonstype",JL="Overføringer",QL="Prøv et annet søk eller tilbakestill filtrene dine, så prøver vi på nytt.",XL="Prøv å oppdatere siden, eller kom tilbake senere.",KL="Beløp",qL="Type",eC="Verdi",tC="Vi kunne ikke laste inn oversikten over utbetalinger.",nC="Vi kunne ikke laste inn transaksjonsoversikten.",oC="Vi kunne ikke laste inn saldokontoene dine.",sC="Vi kunne ikke laste inn utbetalingene dine.",rC="Vi kunne ikke laste inn transaksjonene dine.",aC={account:DN,accountBalance:ON,additions:$N,adjustments:RN,amount:xN,apply:wN,balanceAccount:PN,balanceAccountId:kN,Booked:jN,"button.clearAll":"Fjern alle","calendar.controls":"Kontroller for kalendernavigasjon","calendar.nextMonth":"Neste måned","calendar.previousMonth":"Forrige måned","calendar.timezone":"Tidssonen er satt til: GMT%{offset} (%{time})",capture:FN,category:WN,chargeback:BN,closeIconLabel:zN,contactSupportForHelpAndShareErrorCode:UN,correction:YN,currency:GN,date:HN,dateRange:ZN,default:"Standard",description:VN,dismiss:JN,email:QN,entityWasNotFound:XN,entityWasNotFoundDetail:KN,"expandableCard.collapse":"Skjul","expandableCard.expand":"Utvid",export:"Eksportér",fee:qN,"filter.date.since":"Siden %{date}","filter.date.until":"Frem til %{date}",filterBar:eL,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:tL,fundsCaptured:nL,grantIssued:oL,grantRepayment:sL,hideContent:rL,id:aL,incompleteField:iL,mobile:cL,netPayout:lL,nextPayouts:uL,noData:dL,noNegativeNumbersAllowed:hL,noPayoutsFound:gL,noTransactionsFound:mL,other:pL,paginatedNavigation:fL,"pagination.nextPage":"Neste side","pagination.previousPage":"Forrige side","pagination.showing":"Viser",paymentId:yL,paymentMethod:IL,payoutDetails:_L,payoutsTitle:TL,Pending:AL,pleaseReachOutToSupportForAssistance:SL,"rangePreset.custom":"Tilpasset","rangePreset.last30Days":"Siste 30 dager","rangePreset.last7Days":"Siste 7 dager","rangePreset.lastMonth":"Forrige måned","rangePreset.lastWeek":"Forrige uke","rangePreset.thisMonth":"Denne måneden","rangePreset.thisWeek":"Denne uken","rangePreset.yearToDate":"Hittil i år",reachOutToSupport:NL,referenceID:LL,refresh:CL,refund:EL,remainingAmount:ML,reset:vL,Reversed:bL,"select.filter.placeholder":"Plassholder","select.noOptionsFound":"Ingen alternativer samsvarer med dette søket",somethingWentWrong:DL,status:OL,structuredList:$L,subtractions:RL,tabs:xL,theErrorCodeIs:wL,thereAreNoResults:PL,theRequestIsMissingRequiredFieldsOrContainsInvalidData:kL,thereWasAnUnexpectedError:jL,theSelectedBalanceAccountIsIncorrect:FL,timezone:WL,to:BL,"tooltip.ATM":"Penger tatt ut i minibank","tooltip.Capital":"Penger fra et innkommende lånetilskudd eller utgående tilbakebetaling av lån","tooltip.Chargeback":"Penger returnert til en kunde etter en bestridt transaksjon","tooltip.Correction":"Justeringer av midlene dine, inkludert reversering av transaksjoner og korrigering av innskudd","tooltip.Fee":"Transaksjonskostnader og gebyrer for betalingsmetode","tooltip.Other":"Transaksjoner som ikke hører til i en annen kategori, vanligvis en justering","tooltip.Payment":"Penger mottatt i kontoen din fra en salgstransaksjon","tooltip.Refund":"Penger sendt tilbake til en kunde fra en refundert transaksjon","tooltip.totalIncoming":"Alle penger mottatt på kontoen din basert på de valgte filtrene","tooltip.totalOutgoing":"Alle gebyrer, refusjoner, utbetalinger og andre kostnader basert på de valgte filtrene","tooltip.Transfer":"Penger som er flyttet mellom din konto og en annen konto",totalIncoming:zL,totalOutgoing:UL,toValueShouldBeGreaterThanTheFromValue:YL,transactionDetails:GL,transactions:HL,transactionsOverviewTitle:ZL,transactionType:VL,transfer:JL,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:QL,tryRefreshingThePageOrComeBackLater:XL,txAmount:KL,"txType.ATM":"Minibank","txType.Capital":"Kapital","txType.Chargeback":"Chargeback","txType.Correction":"Rettelse","txType.Fee":"Gebyr","txType.Other":"Annet","txType.Payment":"Betaling","txType.Refund":"Refundering","txType.Transfer":"Overføring",type:qL,value:eC,weCouldNotLoadThePayoutsOverview:tC,weCouldNotLoadTheTransactionsOverview:nC,weCouldNotLoadYourBalanceAccounts:oC,weCouldNotLoadYourPayouts:sC,weCouldNotLoadYourTransactions:rC},iC="Conta",cC="Conta",lC="Adições",uC="Ajustes",dC="Valor",hC="Aplicar",gC="Conta de saldo",mC="ID da conta do saldo",pC="Reservado",fC="Capturado",yC="Categoria",IC="Chargebacks",_C="Fechar",TC="Entre em contato com o suporte para obter ajuda e compartilhe o código de erro %{requestId}",AC="Correções",SC="Moeda",NC="Data",LC="Intervalo de datas",CC="Descrição",EC="Descartar",MC="E-mail",vC="Entidade não encontrada",bC="Transação não encontrada para o titular da conta especificado",DC="Taxas",OC="Barra de filtro",$C="De",RC="Fundos capturados",xC="Subsídio emitido",wC="Reembolsos de subsídios",PC="Ocultar conteúdo",kC="ID",jC="Campo incompleto",FC="Celular",WC="Repasse do pagamento líquido",BC="Próximos repasses do pagamentos",zC="Sem dados",UC="Números negativos não são permitidos",YC="Nenhum repasse do pagamento encontrado",GC="Nenhuma transação encontrada",HC="Outros",ZC="Navegação por página",VC="ID do pagamento",JC="Método de pagamento",QC="Detalhes do repasse do pagamento",XC="Liquidação",KC="Pendente",qC="Entre em contato com o suporte para obter assistência.",eE="Entre em contato com o suporte",tE="ID de referência",nE="Atualizar",oE="Reembolsos",sE="Valor restante",rE="Reiniciar",aE="Revertido",iE="Ocorreu algum erro.",cE="Status",lE="Lista estruturada",uE="Subtrações",dE="Abas",hE="O código de erro é %{requestId}",gE="Não há resultados",mE="A solicitação não apresenta alguns campos obrigatórios, ou contém dados inválidos.",pE="Ocorreu um erro inesperado",fE="A conta selecionada está incorreta",yE="Fuso horário",IE="Até",_E="Total de entrada",TE="Total de saída",AE="O valor deve ser igual ou maior que o valor em Origem",SE="Detalhes da transação",NE="Transações",LE="Visão geral das transações",CE="Tipo de transação",EE="Transferências",ME="Tente uma pesquisa diferente ou redefina seus filtros para tentarmos novamente.",vE="Tente atualizar a página, ou volte mais tarde.",bE="Valor",DE="Tipo",OE="Valor",$E="Não foi possível carregar a visão geral dos repasses de pagamentos.",RE="Não foi possível carregar a visão geral das transações.",xE="Não foi possível carregar suas contas.",wE="Não foi possível carregar seus repasses de pagamentos.",PE="Não foi possível carregar suas transações.",kE={account:iC,accountBalance:cC,additions:lC,adjustments:uC,amount:dC,apply:hC,balanceAccount:gC,balanceAccountId:mC,Booked:pC,"button.clearAll":"Limpar tudo","calendar.controls":"Controles de navegação do calendário","calendar.nextMonth":"Próximo mês","calendar.previousMonth":"Mês anterior","calendar.timezone":"O fuso horário está definido em: GMT%{offset} (%{time})",capture:fC,category:yC,chargeback:IC,closeIconLabel:_C,contactSupportForHelpAndShareErrorCode:TC,correction:AC,currency:SC,date:NC,dateRange:LC,default:"Padrão",description:CC,dismiss:EC,email:MC,entityWasNotFound:vC,entityWasNotFoundDetail:bC,"expandableCard.collapse":"Recolher","expandableCard.expand":"Expandir",export:"Exportar",fee:DC,"filter.date.since":"Desde %{date}","filter.date.until":"Até %{date}",filterBar:OC,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Moeda","filterPlaceholder.status":"Status",from:$C,fundsCaptured:RC,grantIssued:xC,grantRepayment:wC,hideContent:PC,id:kC,incompleteField:jC,mobile:FC,netPayout:WC,nextPayouts:BC,noData:zC,noNegativeNumbersAllowed:UC,noPayoutsFound:YC,noTransactionsFound:GC,other:HC,paginatedNavigation:ZC,"pagination.nextPage":"Próxima página","pagination.previousPage":"Página anterior","pagination.showing":"Exibindo",paymentId:VC,paymentMethod:JC,payoutDetails:QC,payoutsTitle:XC,Pending:KC,pleaseReachOutToSupportForAssistance:qC,"rangePreset.custom":"Personalizado","rangePreset.last30Days":"Últimos 30 dias","rangePreset.last7Days":"Últimos 7 dias","rangePreset.lastMonth":"Último mês","rangePreset.lastWeek":"Semana passada","rangePreset.thisMonth":"Este mês","rangePreset.thisWeek":"Esta semana","rangePreset.yearToDate":"Ano até o momento",reachOutToSupport:eE,referenceID:tE,refresh:nE,refund:oE,remainingAmount:sE,reset:rE,Reversed:aE,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"A busca não retornou nenhuma opção",somethingWentWrong:iE,status:cE,structuredList:lE,subtractions:uE,tabs:dE,theErrorCodeIs:hE,thereAreNoResults:gE,theRequestIsMissingRequiredFieldsOrContainsInvalidData:mE,thereWasAnUnexpectedError:pE,theSelectedBalanceAccountIsIncorrect:fE,timezone:yE,to:IE,"tooltip.ATM":"Dinheiro sacado em um caixa eletrônico","tooltip.Capital":"Dinheiro recebido de um empréstimo ou enviado para pagamento de um empréstimo","tooltip.Chargeback":"Dinheiro devolvido a um cliente após uma transação contestada","tooltip.Correction":"Ajustes em seus fundos, incluindo reversões de transações e correções de depósitos","tooltip.Fee":"Custos de transação e taxas de métodos de pagamentos","tooltip.Other":"Transações que não estão em outra categoria, geralmente um ajuste","tooltip.Payment":"Dinheiro recebido em sua conta de uma transação de vendas","tooltip.Refund":"Dinheiro devolvido a um cliente após o reembolso de uma transação","tooltip.totalIncoming":"Todo o dinheiro recebido em sua conta com base nos filtros selecionados","tooltip.totalOutgoing":"Todas as taxas, os reembolsos, os repasses de pagamentos e outras cobranças com base nos filtros selecionados","tooltip.Transfer":"Dinheiro transferido de sua conta para outra",totalIncoming:_E,totalOutgoing:TE,toValueShouldBeGreaterThanTheFromValue:AE,transactionDetails:SE,transactions:NE,transactionsOverviewTitle:LE,transactionType:CE,transfer:EE,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:ME,tryRefreshingThePageOrComeBackLater:vE,txAmount:bE,"txType.ATM":"Caixa eletrônico","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correção","txType.Fee":"Taxa","txType.Other":"Outros","txType.Payment":"Pagamento","txType.Refund":"Reembolso","txType.Transfer":"Transferir",type:DE,value:OE,weCouldNotLoadThePayoutsOverview:$E,weCouldNotLoadTheTransactionsOverview:RE,weCouldNotLoadYourBalanceAccounts:xE,weCouldNotLoadYourPayouts:wE,weCouldNotLoadYourTransactions:PE},jE="Konto",FE="Kontosaldo",WE="Tillägg",BE="Justeringar",zE="Belopp",UE="Tillämpa",YE="Saldokonto",GE="ID för saldokonto",HE="Bokad",ZE="Insamlad",VE="Kategori",JE="Chargebacks",QE="Stäng",XE="Kontakta supporten för hjälp och ange felkoden %{requestId}",KE="Rättelser",qE="Valuta",eM="Datum",tM="Datumintervall",nM="Beskrivning",oM="Avvisa",sM="E-post",rM="Enheten hittades inte",aM="Transaktionen hittades inte för den angivna kontoinnehavaren",iM="Avgifter",cM="Filterfält",lM="Från",uM="Insamlade medel",dM="Beviljat bidrag",hM="Återbetalning av bidrag",gM="Dölj innehåll",mM="ID",pM="Ofullständigt fält",fM="Mobil",yM="Nettoutbetalning",IM="Nästa utbetalning",_M="Inga uppgifter",TM="Inga negativa tal tillåtna",AM="Inga utbetalningar hittades",SM="Inga transaktioner hittades",NM="Annat",LM="Paginerad navigering",CM="Betalnings-id",EM="Betalningsmetod",MM="Information om utbetalning",vM="Utbetalningar",bM="Väntande",DM="Kontakta supporten för att få hjälp.",OM="Kontakta supporten",$M="Referens-id",RM="Uppdatera",xM="Återbetalningar",wM="Återstående belopp",PM="Återställ",kM="Upphävt",jM="Något gick fel.",FM="Status",WM="Strukturerad lista",BM="Subtraktioner",zM="Flikar",UM="Felkoden är %{requestId}",YM="Det finns inga resultat",GM="Begäran saknar obligatoriska fält eller innehåller ogiltiga data.",HM="Det uppstod ett oväntat fel",ZM="Det valda saldokontot är felaktigt",VM="Tidszon",JM="Till",QM="Totalt inkommande",XM="Totalt utgående",KM="Till-värdet ska vara lika med eller större än Från-värdet",qM="Transaktionsdetaljer",ev="Transaktioner",tv="Transaktionsöversikt",nv="Transaktionstyp",ov="Överföringar",sv="Försök med en annan sökning eller återställ dina filter, så försöker vi igen.",rv="Försök att uppdatera sidan eller kom tillbaka senare.",av="Belopp",iv="Typ",cv="Värde",lv="Vi kunde inte ladda utbetalningsöversikten.",uv="Vi kunde inte ladda transaktionsöversikten.",dv="Vi kunde inte ladda dina saldokonton.",hv="Vi kunde inte ladda dina utbetalningar.",gv="Vi kunde inte ladda dina transaktioner.",mv={account:jE,accountBalance:FE,additions:WE,adjustments:BE,amount:zE,apply:UE,balanceAccount:YE,balanceAccountId:GE,Booked:HE,"button.clearAll":"Rensa alla","calendar.controls":"Kontroller för kalendernavigering","calendar.nextMonth":"Nästa månad","calendar.previousMonth":"Föregående månad","calendar.timezone":"Tidszonen är inställd på: GMT%{offset} (%{time})",capture:ZE,category:VE,chargeback:JE,closeIconLabel:QE,contactSupportForHelpAndShareErrorCode:XE,correction:KE,currency:qE,date:eM,dateRange:tM,default:"Standard",description:nM,dismiss:oM,email:sM,entityWasNotFound:rM,entityWasNotFoundDetail:aM,"expandableCard.collapse":"Minimera","expandableCard.expand":"Expandera",export:"Exportera",fee:iM,"filter.date.since":"Sedan %{date}","filter.date.until":"Till %{date}",filterBar:cM,"filterPlaceholder.category":"Typ","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:lM,fundsCaptured:uM,grantIssued:dM,grantRepayment:hM,hideContent:gM,id:mM,incompleteField:pM,mobile:fM,netPayout:yM,nextPayouts:IM,noData:_M,noNegativeNumbersAllowed:TM,noPayoutsFound:AM,noTransactionsFound:SM,other:NM,paginatedNavigation:LM,"pagination.nextPage":"Nästa sida","pagination.previousPage":"Föregående sida","pagination.showing":"Visar",paymentId:CM,paymentMethod:EM,payoutDetails:MM,payoutsTitle:vM,Pending:bM,pleaseReachOutToSupportForAssistance:DM,"rangePreset.custom":"Anpassat","rangePreset.last30Days":"Senaste 30 dagarna","rangePreset.last7Days":"Senaste 7 dagarna","rangePreset.lastMonth":"Förra månaden","rangePreset.lastWeek":"Förra veckan","rangePreset.thisMonth":"Den här månaden","rangePreset.thisWeek":"Denna vecka","rangePreset.yearToDate":"Hittills i år",reachOutToSupport:OM,referenceID:$M,refresh:RM,refund:xM,remainingAmount:wM,reset:PM,Reversed:kM,"select.filter.placeholder":"Platshållare","select.noOptionsFound":"Inga alternativ matchar denna sökning",somethingWentWrong:jM,status:FM,structuredList:WM,subtractions:BM,tabs:zM,theErrorCodeIs:UM,thereAreNoResults:YM,theRequestIsMissingRequiredFieldsOrContainsInvalidData:GM,thereWasAnUnexpectedError:HM,theSelectedBalanceAccountIsIncorrect:ZM,timezone:VM,to:JM,"tooltip.ATM":"Pengar tas ut i en bankomat","tooltip.Capital":"Pengar från ett inkommande lånebidrag eller en utgående låneåterbetalning","tooltip.Chargeback":"Pengar returnerades till en kund efter en omtvistad transaktion","tooltip.Correction":"Justeringar av dina medel, inklusive återföringar av transaktioner och korrigeringar av insättningar","tooltip.Fee":"Transaktionskostnader och avgifter för betalningssätt","tooltip.Other":"Transaktioner som inte tillhör en annan kategori, vanligtvis en justering","tooltip.Payment":"Pengar som kommit in på ditt konto från en försäljningstransaktion","tooltip.Refund":"Pengar som skickats tillbaka till en kund från en återbetald transaktion","tooltip.totalIncoming":"Alla pengar som tagits emot på ditt konto baserat på de valda filtren","tooltip.totalOutgoing":"Alla avgifter, återbetalningar, utbetalningar och andra avgifter baserade på de valda filtren","tooltip.Transfer":"Pengar som flyttats mellan ditt konto och ett annat konto",totalIncoming:QM,totalOutgoing:XM,toValueShouldBeGreaterThanTheFromValue:KM,transactionDetails:qM,transactions:ev,transactionsOverviewTitle:tv,transactionType:nv,transfer:ov,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:sv,tryRefreshingThePageOrComeBackLater:rv,txAmount:av,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Korrektion","txType.Fee":"Avgift","txType.Other":"Annat","txType.Payment":"Betalning","txType.Refund":"Återbetalning","txType.Transfer":"Överföring",type:iv,value:cv,weCouldNotLoadThePayoutsOverview:lv,weCouldNotLoadTheTransactionsOverview:uv,weCouldNotLoadYourBalanceAccounts:dv,weCouldNotLoadYourPayouts:hv,weCouldNotLoadYourTransactions:gv},Zc={da_DK:wp},Vc={de_DE:gy},$a={en_US:Uc},Jc={es_ES:YI},Qc={fr_FR:AT},Xc={it_IT:KA},Kc={nl_NL:bN},qc={no_NO:aC},el={pt_BR:kE},tl={sv_SE:mv},pv={...Zc,...Vc,...Jc,...Qc,...Xc,...Kc,...qc,...el,...tl},fv={values:z,count:0},yv={"en-US":$a.en_US},Ps=e=>e.substring(0,2).toLowerCase();function Iv(e,t){if(!e)return null;const n=Ps(e);return t.find(o=>Ps(o)===n)||null}function Ra(e){const t=e.replace("_","-");if(Zg.test(t))return t;const[n,o]=t.split("-");if(!n||!o)return null;const s=`${n.toLowerCase()}-${o.toUpperCase()}`;return s.length===5?s:null}function xa(e,t){const n=e.trim();if(!n||n.length<1||n.length>5)return Wt;const o=Ra(n);return o&&t.indexOf(o)>-1?o:Iv(o??n,[...t])}function _v(e=z,t){return e===z?e:Object.keys(e).reduce((n,o)=>{const s=Ra(o)||xa(o,t);return s&&e[o]&&(n[s]=e[o]),n},{})}const kr=(e,t)=>e.replace(/%{(\w+)}/g,(n,o)=>(t==null?void 0:t[o])||""),Si=(e,t,n=fv)=>{const o=n.count??0,s=`${t}__${o}`;if(ct(e,s)&&e[s])return kr(e[s],n.values);const r=`${t}__plural`;return ct(e,r)&&o>1&&e[r]?kr(e[r],n.values):ct(e,t)&&e[t]?kr(e[t],n.values):null},Tv=async(e,t,n=z)=>{const o=t??yv,s=xa(e,Object.keys(o))||Wt,r=o[s]||o[Wt];return{...Yc,...r,...bo(n==null?void 0:n[e])}};function Av(){let e=this.locale,t=e,n=[...this.supportedLocales];return G({load:{value:o=>Tv(e,this.preferredTranslations,o)},locale:{get:()=>e,set:o=>{t=o,e=Ra(o)||xa(o,n)||Wt}},supportedLocales:{get:()=>n,set(o){n=o,this.locale=t}}})}function Sv(){var t;const e={};for(const[n,o]of Object.entries(Object.getOwnPropertyDescriptors(Ar.prototype)))Jg.includes(n)||(ee(o.get)?e[n]={get:o.get.bind(this),...n==="timezone"&&{set:(t=o.set)==null?void 0:t.bind(this)}}:ee(o.value)?e[n]={value:o.value.bind(this)}:e[n]={get:()=>this[n]});return e}var ht,wo,Po,xn,wn,_t,ko,Qt,Xt,Pn,kn,jo,qr;class Ar{constructor(t=Wt,n){S(this,jo);S(this,ht,Wt);S(this,wo,Ps(h(this,ht)));S(this,Po,As);S(this,xn,void 0);S(this,wn,Yc);S(this,_t,Av.call(this));S(this,ko,fr);S(this,Qt,void 0);S(this,Xt,void 0);S(this,Pn,ms({timestamp:()=>performance.now()}));S(this,kn,ps());x(this,"watch",h(this,Pn).subscribe.bind(void 0));x(this,"i18n",G(Sv.call(this)));x(this,"preferredTranslations");this.watch(ne),this.preferredTranslations=n&&n.reduce((o,s)=>({...o,...s}),{[Wt]:$a.en_US}),this.locale=t}get customTranslations(){return h(this,xn)??{}}set customTranslations(t){let n,o=[...As];if(!ue(t)){n=_v(t,As);const s=Object.keys(n);o=[...As,...s].filter((r,a,i)=>i.indexOf(r)===a)}h(this,_t).supportedLocales=o,O(this,jo,qr).call(this,n)}get languageCode(){return h(this,wo)}get lastRefreshTimestamp(){return h(this,Pn).snapshot.timestamp}get locale(){return h(this,ht)}set locale(t){if(ue(t))this.locale=Wt;else{if(h(this,_t).locale=t,h(this,ht)===h(this,_t).locale)return;O(this,jo,qr).call(this,h(this,xn))}}get ready(){return h(this,ko)}get supportedLocales(){return h(this,Po)}get timezone(){return h(this,kn).tz.current}set timezone(t){h(this,kn).tz=t}get(t,n){const o=Si(h(this,wn),t,n);return ws(o)?t:o}has(t,n){return!!Si(h(this,wn),t,n)}amount(t,n,o){const{hideCurrency:s,...r}=o||{},a=ph(t,h(this,ht),n,s,{...r,currencyDisplay:"symbol",signDisplay:"never"});return t<0?`- ${a}`:a}date(t,n={}){const o={...Oa,timeZone:h(this,kn).tz.current,...n};return new Date(t).toLocaleDateString(h(this,ht),o)}fullDate(t){return this.date(t,{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}}ht=new WeakMap,wo=new WeakMap,Po=new WeakMap,xn=new WeakMap,wn=new WeakMap,_t=new WeakMap,ko=new WeakMap,Qt=new WeakMap,Xt=new WeakMap,Pn=new WeakMap,kn=new WeakMap,jo=new WeakSet,qr=function(t){H(h(this,Xt))&&_(this,ko,new Promise(s=>{_(this,Xt,()=>{s(h(this,Qt)),_(this,Qt,_(this,Xt,void 0))})}));const n=()=>{var s;h(this,Qt)===o&&((s=h(this,Xt))==null||s.call(this))},o=_(this,Qt,(async()=>{_(this,wn,await h(this,_t).load(t)),_(this,ht,h(this,_t).locale),_(this,Po,h(this,_t).supportedLocales),_(this,xn,t),_(this,wo,Ps(h(this,ht))),h(this,Pn).requestNotification()})());o.then(n).catch(s=>{n(),console.error(s)})};class nl{constructor(t){x(this,"components",[]);x(this,"options");x(this,"localization");x(this,"loadingContext");x(this,"session",new ch);x(this,"onError");x(this,"update",async(t=z)=>(this.setOptions(t),await this.initialize(),this.components.forEach(n=>{n.props.core===this&&n.update(this.getPropsForComponent(this.options))}),this));x(this,"remove",t=>(this.components=this.components.filter(n=>n._id!==t._id),t.unmount(),this));x(this,"registerComponent",t=>{t.props.core===this&&this.components.push(t)});x(this,"setOptions",t=>{var n,o;return this.options={...this.options,...t},this.localization.locale=(n=this.options)==null?void 0:n.locale,this.localization.customTranslations=(o=this.options)==null?void 0:o.translations,this.session.loadingContext=this.loadingContext,this.session.onSessionCreate=this.options.onSessionCreate,this});this.options={environment:Jr,...t},this.localization=new Ar(t.locale,t.availableTranslations),this.loadingContext=fd(this.options.environment),this.setOptions(t)}async initialize(){return Promise.all([this.localization.ready]).then(()=>this)}getPropsForComponent(t){return{...t}}}x(nl,"version","1.0.3");const ol=nl;var fs,J,sl,rl,Vt,Ni,al,ea,wa,ta,na,il,Do={},cl=[],Nv=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Sr=Array.isArray;function Mt(e,t){for(var n in t)e[n]=t[n];return e}function ll(e){var t=e.parentNode;t&&t.removeChild(e)}function ro(e,t,n){var o,s,r,a={};for(r in t)r=="key"?o=t[r]:r=="ref"?s=t[r]:a[r]=t[r];if(arguments.length>2&&(a.children=arguments.length>3?fs.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)a[r]===void 0&&(a[r]=e.defaultProps[r]);return Lo(e,a,o,s,null)}function Lo(e,t,n,o,s){var r={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++sl,__i:-1,__u:0};return s==null&&J.vnode!=null&&J.vnode(r),r}function V(e){return e.children}function bt(e,t){this.props=e,this.context=t}function dn(e,t){if(t==null)return e.__?dn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?dn(e):null}function ul(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ul(e)}}function oa(e){(!e.__d&&(e.__d=!0)&&Vt.push(e)&&!ks.__r++||Ni!==J.debounceRendering)&&((Ni=J.debounceRendering)||al)(ks)}function ks(){var e,t,n,o,s,r,a,i;for(Vt.sort(ea);e=Vt.shift();)e.__d&&(t=Vt.length,o=void 0,r=(s=(n=e).__v).__e,a=[],i=[],n.__P&&((o=Mt({},s)).__v=s.__v+1,J.vnode&&J.vnode(o),Pa(n.__P,o,s,n.__n,n.__P.ownerSVGElement!==void 0,32&s.__u?[r]:null,a,r??dn(s),!!(32&s.__u),i),o.__v=s.__v,o.__.__k[o.__i]=o,gl(a,o,i),o.__e!=r&&ul(o)),Vt.length>t&&Vt.sort(ea));ks.__r=0}function dl(e,t,n,o,s,r,a,i,c,d,g){var u,p,m,y,f,A=o&&o.__k||cl,I=t.length;for(n.__d=c,Lv(n,t,A),c=n.__d,u=0;u<I;u++)(m=n.__k[u])!=null&&typeof m!="boolean"&&typeof m!="function"&&(p=m.__i===-1?Do:A[m.__i]||Do,m.__i=u,Pa(e,m,p,s,r,a,i,c,d,g),y=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&ka(p.ref,null,m),g.push(m.ref,m.__c||y,m)),f==null&&y!=null&&(f=y),65536&m.__u||p.__k===m.__k?(c&&!c.isConnected&&(c=dn(p)),c=hl(m,c,e)):typeof m.type=="function"&&m.__d!==void 0?c=m.__d:y&&(c=y.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=c,n.__e=f}function Lv(e,t,n){var o,s,r,a,i,c=t.length,d=n.length,g=d,u=0;for(e.__k=[],o=0;o<c;o++)a=o+u,(s=e.__k[o]=(s=t[o])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Lo(null,s,null,null,null):Sr(s)?Lo(V,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Lo(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,i=Cv(s,n,a,g),s.__i=i,r=null,i!==-1&&(g--,(r=n[i])&&(r.__u|=131072)),r==null||r.__v===null?(i==-1&&u--,typeof s.type!="function"&&(s.__u|=65536)):i!==a&&(i===a+1?u++:i>a?g>c-a?u+=i-a:u--:i<a?i==a-1&&(u=i-a):u=0,i!==o+u&&(s.__u|=65536))):(r=n[a])&&r.key==null&&r.__e&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=dn(r)),sa(r,r,!1),n[a]=null,g--);if(g)for(o=0;o<d;o++)(r=n[o])!=null&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=dn(r)),sa(r,r))}function hl(e,t,n){var o,s;if(typeof e.type=="function"){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=hl(o[s],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function zt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Sr(e)?e.some(function(n){zt(n,t)}):t.push(e)),t}function Cv(e,t,n,o){var s=e.key,r=e.type,a=n-1,i=n+1,c=t[n];if(c===null||c&&s==c.key&&r===c.type&&!(131072&c.__u))return n;if(o>(c!=null&&!(131072&c.__u)?1:0))for(;a>=0||i<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&s==c.key&&r===c.type)return a;a--}if(i<t.length){if((c=t[i])&&!(131072&c.__u)&&s==c.key&&r===c.type)return i;i++}}return-1}function Li(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Nv.test(t)?n:n+"px"}function Ns(e,t,n,o,s){var r;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||Li(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||Li(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o?n.u=o.u:(n.u=wa,e.addEventListener(t,r?na:ta,r)):e.removeEventListener(t,r?na:ta,r);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Ci(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=wa++;else if(t.t<n.u)return;return n(J.event?J.event(t):t)}}}function Pa(e,t,n,o,s,r,a,i,c,d){var g,u,p,m,y,f,A,I,M,C,v,P,E,b,D,j=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),r=[i=t.__e=n.__e]),(g=J.__b)&&g(t);e:if(typeof j=="function")try{if(I=t.props,M=(g=j.contextType)&&o[g.__c],C=g?M?M.props.value:g.__:o,n.__c?A=(u=t.__c=n.__c).__=u.__E:("prototype"in j&&j.prototype.render?t.__c=u=new j(I,C):(t.__c=u=new bt(I,C),u.constructor=j,u.render=Mv),M&&M.sub(u),u.props=I,u.state||(u.state={}),u.context=C,u.__n=o,p=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),j.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Mt({},u.__s)),Mt(u.__s,j.getDerivedStateFromProps(I,u.__s))),m=u.props,y=u.state,u.__v=t,p)j.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(j.getDerivedStateFromProps==null&&I!==m&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(I,C),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(I,u.__s,C)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=I,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(R){R&&(R.__=t)}),v=0;v<u._sb.length;v++)u.__h.push(u._sb[v]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(I,u.__s,C),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(m,y,f)})}if(u.context=C,u.props=I,u.__P=e,u.__e=!1,P=J.__r,E=0,"prototype"in j&&j.prototype.render){for(u.state=u.__s,u.__d=!1,P&&P(t),g=u.render(u.props,u.state,u.context),b=0;b<u._sb.length;b++)u.__h.push(u._sb[b]);u._sb=[]}else do u.__d=!1,P&&P(t),g=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(o=Mt(Mt({},o),u.getChildContext())),p||u.getSnapshotBeforeUpdate==null||(f=u.getSnapshotBeforeUpdate(m,y)),dl(e,Sr(D=g!=null&&g.type===V&&g.key==null?g.props.children:g)?D:[D],t,n,o,s,r,a,i,c,d),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),A&&(u.__E=u.__=null)}catch(R){t.__v=null,c||r!=null?(t.__e=i,t.__u|=c?160:32,r[r.indexOf(i)]=null):(t.__e=n.__e,t.__k=n.__k),J.__e(R,t,n)}else r==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ev(n.__e,t,n,o,s,r,a,c,d);(g=J.diffed)&&g(t)}function gl(e,t,n){t.__d=void 0;for(var o=0;o<n.length;o++)ka(n[o],n[++o],n[++o]);J.__c&&J.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(r){r.call(s)})}catch(r){J.__e(r,s.__v)}})}function Ev(e,t,n,o,s,r,a,i,c){var d,g,u,p,m,y,f,A=n.props,I=t.props,M=t.type;if(M==="svg"&&(s=!0),r!=null){for(d=0;d<r.length;d++)if((m=r[d])&&"setAttribute"in m==!!M&&(M?m.localName===M:m.nodeType===3)){e=m,r[d]=null;break}}if(e==null){if(M===null)return document.createTextNode(I);e=s?document.createElementNS("http://www.w3.org/2000/svg",M):document.createElement(M,I.is&&I),r=null,i=!1}if(M===null)A===I||i&&e.data===I||(e.data=I);else{if(r=r&&fs.call(e.childNodes),A=n.props||Do,!i&&r!=null)for(A={},d=0;d<e.attributes.length;d++)A[(m=e.attributes[d]).name]=m.value;for(d in A)m=A[d],d=="children"||(d=="dangerouslySetInnerHTML"?u=m:d==="key"||d in I||Ns(e,d,null,m,s));for(d in I)m=I[d],d=="children"?p=m:d=="dangerouslySetInnerHTML"?g=m:d=="value"?y=m:d=="checked"?f=m:d==="key"||i&&typeof m!="function"||A[d]===m||Ns(e,d,m,A[d],s);if(g)i||u&&(g.__html===u.__html||g.__html===e.innerHTML)||(e.innerHTML=g.__html),t.__k=[];else if(u&&(e.innerHTML=""),dl(e,Sr(p)?p:[p],t,n,o,s&&M!=="foreignObject",r,a,r?r[0]:n.__k&&dn(n,0),i,c),r!=null)for(d=r.length;d--;)r[d]!=null&&ll(r[d]);i||(d="value",y!==void 0&&(y!==e[d]||M==="progress"&&!y||M==="option"&&y!==A[d])&&Ns(e,d,y,A[d],!1),d="checked",f!==void 0&&f!==e[d]&&Ns(e,d,f,A[d],!1))}return e}function ka(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(o){J.__e(o,n)}}function sa(e,t,n){var o,s;if(J.unmount&&J.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||ka(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){J.__e(r,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&sa(o[s],t,n||typeof e.type!="function");n||e.__e==null||ll(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Mv(e,t,n){return this.constructor(e,n)}function Cn(e,t,n){var o,s,r,a;J.__&&J.__(e,t),s=(o=typeof n=="function")?null:n&&n.__k||t.__k,r=[],a=[],Pa(t,e=(!o&&n||t).__k=ro(V,null,[e]),s||Do,Do,t.ownerSVGElement!==void 0,!o&&n?[n]:s?null:t.firstChild?fs.call(t.childNodes):null,r,!o&&n?n:s?s.__e:t.firstChild,o,a),gl(r,e,a)}function ml(e,t,n){var o,s,r,a,i=Mt({},e.props);for(r in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)r=="key"?o=t[r]:r=="ref"?s=t[r]:i[r]=t[r]===void 0&&a!==void 0?a[r]:t[r];return arguments.length>2&&(i.children=arguments.length>3?fs.call(arguments,2):n),Lo(e.type,i,o||e.key,s||e.ref,null)}function ja(e,t){var n={__c:t="__cC"+il++,__:e,Consumer:function(o,s){return o.children(s)},Provider:function(o){var s,r;return this.getChildContext||(s=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&s.some(function(i){i.__e=!0,oa(i)})},this.sub=function(a){s.push(a);var i=a.componentWillUnmount;a.componentWillUnmount=function(){s.splice(s.indexOf(a),1),i&&i.call(a)}}),o.children}};return n.Provider.__=n.Consumer.contextType=n}fs=cl.slice,J={__e:function(e,t,n,o){for(var s,r,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((r=s.constructor)&&r.getDerivedStateFromError!=null&&(s.setState(r.getDerivedStateFromError(e)),a=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,o||{}),a=s.__d),a)return s.__E=s}catch(i){e=i}throw e}},sl=0,rl=function(e){return e!=null&&e.constructor==null},bt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Mt({},this.state),typeof e=="function"&&(e=e(Mt({},n),this.props)),e&&Mt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),oa(this))},bt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),oa(this))},bt.prototype.render=V,Vt=[],al=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ea=function(e,t){return e.__v.__b-t.__v.__b},ks.__r=0,wa=0,ta=Ci(!1),na=Ci(!0),il=0;var hn,le,jr,Ei,ao=0,pl=[],Cs=[],pe=J,Mi=pe.__b,vi=pe.__r,bi=pe.diffed,Di=pe.__c,Oi=pe.unmount,$i=pe.__;function ys(e,t){pe.__h&&pe.__h(le,e,ao||t),ao=0;var n=le.__H||(le.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Cs}),n.__[e]}function U(e){return ao=1,Nr(yl,e)}function Nr(e,t,n){var o=ys(hn++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):yl(void 0,t),function(i){var c=o.__N?o.__N[0]:o.__[0],d=o.t(c,i);c!==d&&(o.__N=[d,o.__[1]],o.__c.setState({}))}],o.__c=le,!le.u)){var s=function(i,c,d){if(!o.__c.__H)return!0;var g=o.__c.__H.__.filter(function(p){return!!p.__c});if(g.every(function(p){return!p.__N}))return!r||r.call(this,i,c,d);var u=!1;return g.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(u=!0)}}),!(!u&&o.__c.props===i)&&(!r||r.call(this,i,c,d))};le.u=!0;var r=le.shouldComponentUpdate,a=le.componentWillUpdate;le.componentWillUpdate=function(i,c,d){if(this.__e){var g=r;r=void 0,s(i,c,d),r=g}a&&a.call(this,i,c,d)},le.shouldComponentUpdate=s}return o.__N||o.__}function W(e,t){var n=ys(hn++,3);!pe.__s&&Wa(n.__H,t)&&(n.__=e,n.i=t,le.__H.__h.push(n))}function fl(e,t){var n=ys(hn++,4);!pe.__s&&Wa(n.__H,t)&&(n.__=e,n.i=t,le.__h.push(n))}function k(e){return ao=5,T(function(){return{current:e}},[])}function vv(e,t,n){ao=6,fl(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function T(e,t){var n=ys(hn++,7);return Wa(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function L(e,t){return ao=8,T(function(){return e},t)}function Fa(e){var t=le.context[e.__c],n=ys(hn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(le)),t.props.value):e.__}function bv(){for(var e;e=pl.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Es),e.__H.__h.forEach(ra),e.__H.__h=[]}catch(t){e.__H.__h=[],pe.__e(t,e.__v)}}pe.__b=function(e){le=null,Mi&&Mi(e)},pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),$i&&$i(e,t)},pe.__r=function(e){vi&&vi(e),hn=0;var t=(le=e.__c).__H;t&&(jr===le?(t.__h=[],le.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Cs,n.__N=n.i=void 0})):(t.__h.forEach(Es),t.__h.forEach(ra),t.__h=[],hn=0)),jr=le},pe.diffed=function(e){bi&&bi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(pl.push(t)!==1&&Ei===pe.requestAnimationFrame||((Ei=pe.requestAnimationFrame)||Dv)(bv)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Cs&&(n.__=n.__V),n.i=void 0,n.__V=Cs})),jr=le=null},pe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Es),n.__h=n.__h.filter(function(o){return!o.__||ra(o)})}catch(o){t.some(function(s){s.__h&&(s.__h=[])}),t=[],pe.__e(o,n.__v)}}),Di&&Di(e,t)},pe.unmount=function(e){Oi&&Oi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{Es(o)}catch(s){t=s}}),n.__H=void 0,t&&pe.__e(t,n.__v))};var Ri=typeof requestAnimationFrame=="function";function Dv(e){var t,n=function(){clearTimeout(o),Ri&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);Ri&&(t=requestAnimationFrame(n))}function Es(e){var t=le,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),le=t}function ra(e){var t=le;e.__c=e.__(),le=t}function Wa(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function yl(e,t){return typeof t=="function"?t(e):t}var Ov=0;function l(e,t,n,o,s,r){var a,i,c={};for(i in t)i=="ref"?a=t[i]:c[i]=t[i];var d={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Ov,__i:-1,__u:0,__source:s,__self:r};if(typeof e=="function"&&(a=e.defaultProps))for(i in a)c[i]===void 0&&(c[i]=a[i]);return J.vnode&&J.vnode(d),d}const Il=ja({endpoints:z,hasError:!1,http:yd,isExpired:void 0,refresh:ne,refreshing:!1}),$v=({children:e,session:t})=>{const[,n]=U(0),[o,s]=U(0);return W(()=>t.subscribe(r=>{(ho(r)?s:n)(i=>i+1)}),[o,t]),l(Il.Provider,{value:t.context,children:zt(e)})},Ut=()=>Fa(Il);function Lr({fetchOptions:e={keepPrevData:!0},queryFn:t,params:n}){k(new Map);const o=k(!1),s={error:void 0,data:void 0,isFetching:Bt(e.enabled)},r=(d,g)=>{switch(g.type){case"loading":return{...s,isFetching:!0,data:e.keepPrevData?d.data:void 0};case"fetched":return{...s,data:g.payload,isFetching:!1};case"error":return{...s,error:g.payload,isFetching:!1};default:return d}},[a,i]=Nr(r,s),c=L(async()=>{i({type:"loading"});try{if(o.current)return;const d=await t();i({type:"fetched",payload:d})}catch(d){if(o.current)return;i({type:"error",payload:d})}},[i,t]);return W(()=>(o.current=!1,Bt(e.enabled)&&c(),()=>{o.current=!0}),[e.enabled,c]),a}const Rv=(e,t)=>{const{getBalanceAccounts:n}=Ut().endpoints,{data:o,isFetching:s,error:r}=Lr(T(()=>({fetchOptions:{enabled:!!n&&(t??!0),keepPrevData:!0},queryFn:async()=>n==null?void 0:n(z)}),[n])),a=T(()=>o==null?void 0:o.data.filter(c=>e?c.id===e:!0),[o==null?void 0:o.data,e]),i=T(()=>!!e&&!!(o!=null&&o.data.length)&&(a==null?void 0:a.length)===0,[a==null?void 0:a.length,o==null?void 0:o.data.length,e]);return{balanceAccounts:a,isBalanceAccountIdWrong:i,isFetching:s,error:r}},Ba=Rv,xv="adyen-pe-data-overview-container--with-error",je="adyen-pe-typography";var w=(e=>(e.CAPTION="caption",e.BODY="body",e.SUBTITLE="subtitle",e.TITLE="title",e))(w||{}),It=(e=>(e.WIDE="wide",e.STRONGER="stronger",e.STRONGER_WIDE="stronger-wide",e.STRONGEST="strongest",e.STRONGEST_WIDE="strongest-wide",e.MEDIUM="m",e.LARGE="l",e.MOBILE="mobile",e))(It||{}),io=(e=>(e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.DIV="div",e.PARAGRAPH="p",e.SPAN="span",e))(io||{});function _l(e,t){for(var n in t)e[n]=t[n];return e}function aa(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function xi(e,t){this.props=e,this.context=t}function Ne(e,t){function n(s){var r=this.props.ref,a=r==s.ref;return!a&&r&&(r.call?r(null):r.current=null),t?!t(this.props,s)||!a:aa(this.props,s)}function o(s){return this.shouldComponentUpdate=n,ro(e,s)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(xi.prototype=new bt).isPureReactComponent=!0,xi.prototype.shouldComponentUpdate=function(e,t){return aa(this.props,e)||aa(this.state,t)};var wi=J.__b;J.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),wi&&wi(e)};var wv=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function go(e){function t(n){var o=_l({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=wv,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Pv=J.__e;J.__e=function(e,t,n,o){if(e.then){for(var s,r=t;r=r.__;)if((s=r.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Pv(e,t,n,o)};var Pi=J.unmount;function Tl(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=_l({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return Tl(o,t,n)})),e}function Al(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return Al(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Fr(){this.__u=0,this.t=null,this.__b=null}function Sl(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ls(){this.u=null,this.o=null}J.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Pi&&Pi(e)},(Fr.prototype=new bt).__c=function(e,t){var n=t.__c,o=this;o.t==null&&(o.t=[]),o.t.push(n);var s=Sl(o.__v),r=!1,a=function(){r||(r=!0,n.__R=null,s?s(i):i())};n.__R=a;var i=function(){if(!--o.__u){if(o.state.__a){var c=o.state.__a;o.__v.__k[0]=Al(c,c.__c.__P,c.__c.__O)}var d;for(o.setState({__a:o.__b=null});d=o.t.pop();)d.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(a,a)},Fr.prototype.componentWillUnmount=function(){this.t=[]},Fr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Tl(this.__b,n,o.__O=o.__P)}this.__b=null}var s=t.__a&&ro(V,null,e.fallback);return s&&(s.__u&=-33),[ro(V,null,t.__a?null:e.children),s]};var ki=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function kv(e){return this.getChildContext=function(){return e.context},e.children}function jv(e){var t=this,n=e.i;t.componentWillUnmount=function(){Cn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(o){this.childNodes.push(o),t.i.appendChild(o)},insertBefore:function(o,s){this.childNodes.push(o),t.i.appendChild(o)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.i.removeChild(o)}}),Cn(ro(kv,{context:t.context},e.__v),t.l)}function Nl(e,t){var n=ro(jv,{__v:e,i:t});return n.containerInfo=t,n}(Ls.prototype=new bt).__a=function(e){var t=this,n=Sl(t.__v),o=t.o.get(e);return o[0]++,function(s){var r=function(){t.props.revealOrder?(o.push(s),ki(t,e,o)):s()};n?n(r):r()}},Ls.prototype.render=function(e){this.u=null,this.o=new Map;var t=zt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ls.prototype.componentDidUpdate=Ls.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ki(e,n,t)})};var Fv=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Wv=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Bv=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,zv=/[A-Z0-9]/g,Uv=typeof document<"u",Yv=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};bt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(bt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ji=J.event;function Gv(){}function Hv(){return this.cancelBubble}function Zv(){return this.defaultPrevented}J.event=function(e){return ji&&(e=ji(e)),e.persist=Gv,e.isPropagationStopped=Hv,e.isDefaultPrevented=Zv,e.nativeEvent=e};var Vv={enumerable:!1,configurable:!0,get:function(){return this.class}},Fi=J.vnode;J.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,o=t.type,s={};for(var r in n){var a=n[r];if(!(r==="value"&&"defaultValue"in n&&a==null||Uv&&r==="children"&&o==="noscript"||r==="class"||r==="className")){var i=r.toLowerCase();r==="defaultValue"&&"value"in n&&n.value==null?r="value":r==="download"&&a===!0?a="":i==="translate"&&a==="no"?a=!1:i==="ondoubleclick"?r="ondblclick":i!=="onchange"||o!=="input"&&o!=="textarea"||Yv(n.type)?i==="onfocus"?r="onfocusin":i==="onblur"?r="onfocusout":Bv.test(r)?r=i:o.indexOf("-")===-1&&Wv.test(r)?r=r.replace(zv,"-$&").toLowerCase():a===null&&(a=void 0):i=r="oninput",i==="oninput"&&s[r=i]&&(r="oninputCapture"),s[r]=a}}o=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=zt(n.children).forEach(function(c){c.props.selected=s.value.indexOf(c.props.value)!=-1})),o=="select"&&s.defaultValue!=null&&(s.value=zt(n.children).forEach(function(c){c.props.selected=s.multiple?s.defaultValue.indexOf(c.props.value)!=-1:s.defaultValue==c.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",Vv)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=Fv,Fi&&Fi(e)};var Wi=J.__r;J.__r=function(e){Wi&&Wi(e),e.__c};var Bi=J.diffed;J.diffed=function(e){Bi&&Bi(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};function Jv({el:e,className:t,stronger:n,strongest:o,variant:s,medium:r,large:a,wide:i,children:c}){const d=e||"p",g=T(()=>({[`${je}--${w.CAPTION}`]:s===w.CAPTION,[`${je}--${w.CAPTION}-${It.WIDE}`]:s===w.CAPTION&&i,[`${je}--${w.CAPTION}-${It.STRONGER}`]:s===w.CAPTION&&n,[`${je}--${w.BODY}`]:s===w.BODY,[`${je}--${w.BODY}-${It.WIDE}`]:s===w.BODY&&i,[`${je}--${w.BODY}-${It.STRONGER}`]:s===w.BODY&&n,[`${je}--${w.BODY}-${It.STRONGEST}`]:s===w.BODY&&o,[`${je}--${w.SUBTITLE}`]:s===w.SUBTITLE,[`${je}--${w.SUBTITLE}-${It.STRONGER}`]:s===w.SUBTITLE&&n,[`${je}--${w.TITLE}`]:s===w.TITLE&&!r&&!a,[`${je}--${w.TITLE}-${It.MEDIUM}`]:s===w.TITLE&&r,[`${je}--${w.TITLE}-${It.LARGE}`]:s===w.TITLE&&a}),[s,i,n,r,a,o]);return l(d,{className:F([`${je}`,g,t]),children:c})}const q=Ne(Jv),Ll=ja({i18n:new Ar().i18n,loadingContext:"",commonProps:{},updateCore:ne}),Qv=()=>Fa(Ll),Q=Qv;const Xv="data:image/svg+xml;base64,PHN2ZyB4b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jYiIGQ9Ik0yOS4yIDI2LjNjNi4yIDAgMTEuMy00LjcgMTEuMy0xMC41UzM1LjQgNS4yIDI5LjIgNS4yQzIzIDUuMiAxNy45IDEwIDE3LjkgMTUuOHM1IDEwLjUgMTEuMyAxMC41WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0ibTI1LjIgMTIgOCA3LjVNMzMuMiAxMmwtOCA3LjUiLz4KPC9zdmc+",Ye=e=>go(e),js=(()=>{const e=new Set,t=(o,s,r,a)=>{let i=a==null?void 0:a[r];return i=ee(i)?i:gr,!fn(i(o[r]),i(s[r]))};return Object.defineProperty(o=>(s,r)=>{try{for(const a in s)if(e.add(a),t(s,r,a,o))return!1;for(const a in r)if(!e.has(a)&&(e.add(a),t(s,r,a,o)))return!1;return!0}finally{e.clear()}},"exclude",{value:ne})})(),zi=/^\s+|\s+(?=\s|$)/g,On=(e,t)=>(t?typeof t=="string"?t:(t==null?void 0:t.value)??"":"").replace(zi,"")||e.replace(zi,"")||void 0,Fs=(e,t,n)=>F(On("",n),On(On("",t)||"",e)),za=(e,t=[],n=[])=>F([...n,...t==null?void 0:t.map(o=>e?`${e}--${o}`:o)]),Ua=e=>_n(e,(e==null?void 0:e.value)??e),Kv=(e,t,n,o,s)=>{const r=L(i=>{i.preventDefault(),o||s==null||s(i)},[o,s]);return{classes:T(()=>za(n,t,[n,e]),[t,e]),click:r}},Ya=Kv,Ot="adyen-pe-button",ia=`${Ot}-actions`,qv=`${Ot}--icon`,eb=`${Ot}--icon-content`,tb=`${ia}__container-wrapper`,nb=`${Ot}__label`,ob=`${Ot}__icon-right`,sb=`${Ot}__icon-left`;var Oe=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link",e))(Oe||{});function rb({variant:e=Oe.PRIMARY,disabled:t=!1,onClick:n,classNameModifiers:o=[],iconLeft:s,iconRight:r,type:a="button",children:i,className:c,iconButton:d=!1,...g},u){const p=T(()=>On("",c)||"",[c]),m=T(()=>Ua(t),[t]),{classes:y,click:f}=Ya(p,[...o,e],Ot,m,n);return l("button",{className:d?`${qv} ${y}`:y,type:a,disabled:t,onClick:f,ref:u,...g,children:d?l("div",{className:`${eb}`,children:i}):l(V,{children:[s&&l("span",{className:sb,children:s}),l(q,{className:nb,el:io.SPAN,variant:w.BODY,stronger:!0,children:i}),r&&l("span",{className:ob,children:r})]})})}const et=Ye(rb),Ui={md:680,lg:1024},$n=({title:e,message:t,imageDesktop:n,imageMobile:o,withImage:s,centered:r,refreshComponent:a,onContactSupport:i,translationValues:c})=>{const{i18n:d,updateCore:g}=Q(),u=L(p=>Array.isArray(p)?p.map((m,y)=>y===0?l(V,{children:[d.get(m),c&&c[m]&&l(V,{children:c[m]})]}):l(V,{children:[l("br",{}),d.get(m),c&&c[m]&&l(V,{children:c[m]})]})):d.get(p),[d,c]);return l("div",{className:`adyen-pe-error-message-display ${r?"adyen-pe-error-message-display--centered":""}`,children:[(n||o||s)&&l("div",{className:"adyen-pe-error-message-display__illustration",children:l("picture",{children:[l("source",{type:"image/svg+xml",media:`(min-width: ${Ui.md}px)`,srcSet:n}),l("source",{type:"image/svg+xml",media:`(max-width: ${Ui.md}px)`,srcSet:o}),l("img",{srcSet:n??Xv,alt:d.get("thereWasAnUnexpectedError")})]})}),l(q,{variant:w.TITLE,children:d.get(e)}),t&&l(q,{variant:w.BODY,children:u(t)}),(i||a)&&l("div",{className:"adyen-pe-error-message-display__button",children:[i&&l(et,{onClick:i,children:d.get("reachOutToSupport")}),!i&&a&&l(et,{onClick:g,children:d.get("refresh")})]})]})},ca={title:"thereWasAnUnexpectedError",message:["pleaseReachOutToSupportForAssistance"]},ab=(e,t)=>{if(!e)return null;switch(e.errorCode){case"29_001":return{title:"theRequestIsMissingRequiredFieldsOrContainsInvalidData",message:["pleaseReachOutToSupportForAssistance"],onContactSupport:t};case"30_112":return{title:"entityWasNotFound",message:["entityWasNotFoundDetail"],onContactSupport:t};case"00_403":return ca;default:return null}},Ge={sm:480,md:768,lg:1024},ib=e=>{const t=T(()=>window.matchMedia(e),[e]),[n,o]=U(t.matches);return W(()=>{const s=r=>o(r.matches);return t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[t]),W(()=>{o(t.matches)},[t]),n},Ae={up:{sm:`(min-width: ${Ge.sm}px)`,md:`(min-width: ${Ge.md}px)`,lg:`(min-width: ${Ge.lg}px)`},down:{xs:`(max-width: ${Ge.sm-1}px)`,sm:`(max-width: ${Ge.md-1}px)`,md:`(max-width: ${Ge.lg-1}px)`},only:{xs:`(max-width: ${Ge.sm-1}px)`,sm:`(min-width: ${Ge.sm}px) and (max-width: ${Ge.md-1}px)`,md:`(min-width: ${Ge.md}px) and (max-width: ${Ge.lg-1}px)`,lg:`(min-width: ${Ge.lg}px)`}},Se=ib;var Ga=(e=>(e.BUTTONS_END="buttons-end",e.FILL_CONTAINER="fill-container",e.SPACE_BETWEEN="space-between",e.VERTICAL_STACK="vertical-stack",e))(Ga||{}),Cl=(e=>(e.BUTTONS_START="buttons-start",e))(Cl||{});const cb={...Ga,...Cl};function lb({actions:e,layout:t=cb.BUTTONS_END}){const n=()=>`${ia}--${t}`,o=r=>{const a=e.length-1;return r===a?Oe.PRIMARY:Oe.SECONDARY},s=T(()=>[...e].reverse(),[e]);return l("div",{className:ia,children:l("div",{className:`${tb} ${n()}`,role:"group",children:s.map((r,a)=>l(et,{"aria-label":r.title,disabled:r.disabled,variant:r.variant||o(a),onClick:r.event,children:r.title},a))})})}const ub=Ne(lb),Qe="adyen-pe-popover",El="adyen-pe-tooltip",db=`${Qe}-container`,Yi=`${Qe}__header`,hb=`${Qe}__header-title`,Wr=`${Qe}__content`,Ml=`${El}__content`,gb=`${Qe}__footer`;function mb({image:e=!0,onClick:t}){const{i18n:n}=Q();return l(V,{children:l(et,{className:(()=>e?"adyen-pe-popover-dismiss-button--on-image":"")(),iconButton:!0,variant:Oe.TERTIARY,onClick:t,"aria-label":n.get("closeIconLabel"),children:l("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",children:[l("title",{children:"dismiss"}),l("path",{fill:"#00112C",fillRule:"evenodd",d:"M11.4697 12.5303C11.7626 12.8232 12.2374 12.8232 12.5303 12.5303C12.8232 12.2374 12.8232 11.7626 12.5303 11.4697L9.06066 8L12.5303 4.53033C12.8232 4.23744 12.8232 3.76256 12.5303 3.46967C12.2374 3.17678 11.7626 3.17678 11.4697 3.46967L8 6.93934L4.53033 3.46967C4.23744 3.17678 3.76256 3.17678 3.46967 3.46967C3.17678 3.76256 3.17678 4.23744 3.46967 4.53033L6.93934 8L3.46967 11.4697C3.17678 11.7626 3.17678 12.2374 3.46967 12.5303C3.76256 12.8232 4.23744 12.8232 4.53033 12.5303L8 9.06066L11.4697 12.5303Z",clipRule:"evenodd"})]})})})}const pb=Ne(mb);function fb({title:e,isImageTitle:t=!1}){return l(q,{strongest:!t,variant:(()=>t?w.SUBTITLE:w.BODY)(),children:e})}const yb=Ne(fb);var De=(e=>(e.TOOLTIP="tooltip",e.POPOVER="popover",e))(De||{}),ie=(e=>(e.TOP="top",e.TOP_LEFT="top-left",e.RIGHT="right",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.LEFT="left",e))(ie||{}),Oo=(e=>(e.MEDIUM="medium",e.WIDE="wide",e))(Oo||{}),Y=(e=>(e.ARROW_DOWN="ArrowDown",e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_UP="ArrowUp",e.BACKSPACE="Backspace",e.END="End",e.ENTER="Enter",e.ESCAPE="Escape",e.HOME="Home",e.PAGE_DOWN="PageDown",e.PAGE_UP="PageUp",e.SPACE="Space",e.TAB="Tab",e))(Y||{}),Z=(e=>(e.BALANCE_ACCOUNT="balanceAccount",e.CATEGORIES="categories",e.CURRENCIES="currencies",e.CREATED_SINCE="createdSince",e.CREATED_UNTIL="createdUntil",e.STATUSES="statuses",e.MIN_AMOUNT="minAmount",e.MAX_AMOUNT="maxAmount",e))(Z||{});const To=(()=>{let e=[];const t=a=>{const i=a.reduce((c,d)=>{const g=d instanceof Node?e.findIndex(u=>{const p=u.element.getAttribute("id"),m=d&&(d!=null&&d.getAttribute)?d==null?void 0:d.getAttribute("id"):null;return p===m}):-1;return c===-1&&g!==-1?g:c},-1);i===-1?s(0):i+1<=e.length-1&&s(i+1)},n=a=>{const i=e.findIndex(c=>c.element.getAttribute("id")===a.getAttribute("id"));i>=0&&e.splice(i,1)},o=(a,i)=>{e.findIndex(d=>d.element.getAttribute("id")===a.getAttribute("id"))>=0||e.push({element:a,callback:i})},s=a=>{var c,d;const i=e.length;for(let g=a;g<i;g++)(d=(c=e==null?void 0:e[g])==null?void 0:c.callback)==null||d.call(c);e.splice(a)};return{add:o,remove:n,closeAll:()=>{e.forEach(a=>{var i;return(i=a==null?void 0:a.callback)==null?void 0:i.call(a)}),e=[]},closePopoversOutsideOfClick:t}})(),$o=Symbol("_ref");class vl extends Error{}class Ib extends vl{}class _b extends vl{}function Ha(e){if(!ee(e))throw new _b}const Tb=e=>{try{if(ee(e)&&ct(e,"current")&&ct(e,$o)&&!fn(e,e[$o])){const t=e.actions.get(z),n=e.actions.size;return H(t)&&Number.isInteger(n)&&n>=0}}catch{}return!1},Ro=e=>Tb(e)?Ro(e[$o]):e,Ab=(()=>{const e=(o,s)=>{const r=o.get(s);if(!r)throw new Ib;return r},t=(o,s,r)=>{let a,i;const c=Ro(s);try{a=e(o,c)}catch{Ha(r)}if(a)[,i]=a;else{const d=ee(c),g=d?m=>{c(p=m)}:m=>{c.current=m,p=c.current},u=m=>{if(i.size===0)return;const y=p;if(g(m),!fn(p,y))for(const[f]of i)f(p,y)};let p=d?null:c.current;o.set(c,a=[u,i=new Map]),Object.defineProperties(u,{[$o]:{value:c},actions:{value:G({get:{value:i.get.bind(i)},size:{get:()=>i.size}})},current:{get:()=>p,set:d?void 0:u}})}return r&&i.set(r,1+(i.get(r)||0)),a[0]},n=(o,s,r)=>{const a=Ro(s),[,i]=e(o,a),c=i.get(r)||0;c===1?i.delete(r):c>1&&i.set(r,c-1),i.size===0&&o.delete(a)};return()=>{const o=new WeakMap;return G({bind:$(t.bind(void 0,o)),unbind:$(n.bind(void 0,o))})}})(),Sb=Ab(),Nb=e=>{Ha(e);const t=new WeakMap([[e,1]]),n=s=>{if(fn(o,s))return;const r=o;e(o=s,r)};let o=null;return Object.defineProperties(n,{[$o]:{value:n},actions:{value:G({get:{value:t.get.bind(t)},size:{value:1}})},current:{get:()=>o,set:n}})},Lb=(e=Sb)=>{let t,n=null,o,s=!1;const r=d=>{t=void 0,n=null,o=d,s=!1},a=()=>{s||(i(),s=!0)},i=()=>{try{if(!n)return;e.unbind(n,o)}catch{}};return G({action:{get:()=>o},reflex:{get:()=>t},release:{value:a},update:{value:(d,g)=>{Ha(d),s&&r(d);const u=ue(g)?null:g;if(o===d&&n===u){if(t)return}else if(n){if(fn(Ro(n),Ro(u))){t=e.bind(n,d),i(),o=d;return}i()}o=d,t=(n=u)?e.bind(n,o):Nb(o)}}})},Cb=(e,t)=>{const n=k(Lb());return fl(()=>n.current.release,[]),T(()=>(n.current.update(e,t),n.current.reflex),[e,t])},$t=Cb,En=Symbol("__control.Elem.");var bl=(e=>(e.POPOVER="POPOVER",e.DEFAULT="DEFAULT",e))(bl||{});const Gi=e=>{e.stopImmediatePropagation()},Za=(e,t,n,o)=>{const s=k(null),r=L(i=>{const c=i.composedPath();if(s&&s.current)if(o==="POPOVER")To.closePopoversOutsideOfClick(c);else{let d=0,g=!1,u=c[d];for(;u instanceof Element&&!(g||(g=u==null?void 0:u.isSameNode(s.current)));)u=c[++d]??u.parentElement,(u==null?void 0:u[En])instanceof Element&&(u=u[En],c.length=0);t&&!g&&t(!0)}},[s,t,o]),a=k(r);return W(()=>()=>{s.current&&To.remove(s.current),document.removeEventListener("click",a.current,!0)},[]),W(()=>(document.removeEventListener("click",a.current,!0),a.current=r,document.addEventListener("click",a.current,!0),o==="POPOVER"&&s.current instanceof Element&&To.add(s.current,t),()=>{s.current&&To.remove(s.current),document.removeEventListener("click",a.current,!0)}),[r,t,o]),W(()=>{n?document.removeEventListener("click",a.current,!0):document.addEventListener("click",a.current,!0)},[n]),$t(L((i,c)=>{c instanceof Element&&c.removeEventListener("focusout",Gi,!0),i instanceof Element&&(n||(i.addEventListener("focusout",Gi,!0),s.current=i))},[n,o]),e)},Va=`
2
2
  a[href],
3
3
  audio[controls],
4
4
  video[controls],
@@ -8,5 +8,5 @@
8
8
  textarea,
9
9
  [contenteditable],
10
10
  [tabindex]
11
- `.replace(/\s+/,""),mb=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],xi=new Map,Il=e=>e.tagName==="INPUT",pb=e=>Il(e)&&e.type==="radio",fb=e=>{const t=e.name,n=e.form,o=xi.get(n);let s=o==null?void 0:o.get(t);return G(s)&&n&&(s=n.querySelector(`input[type=radio][name='${t}']:checked`)||null,xi.set(n,(o||new Map).set(t,s))),s===e},yb=(e,t)=>{for(const n of t)if(n.type!=="attributes"){if(ii(n.addedNodes,o=>o instanceof Element&&Kr(o))||ii(n.removedNodes,o=>e.includes(o)))return!0}else{if(Kr(n.target))return!0;if(e.includes(n.target))return!0}return!1},ka=(e=document.body,t)=>{if(G(e))return!1;if(ue(t))return!!document.activeElement&&ka(e,document.activeElement);let n=t==null?void 0:t.parentNode;for(;n;){if(n===e)return!0;n=n==null?void 0:n.parentNode}return!1},ja=e=>!(!e.matches(Pa)||e!=null&&e.disabled||/^(true)?$/.test(e.getAttribute("inert"))||Il(e)&&e.hidden),Kr=e=>!(pb(e)&&!fb(e)||(e==null?void 0:e.tabIndex)<0||!ja(e)),Ib=()=>{const e=new MutationObserver(i=>yb(t,i)&&r()),t=[];let n=-1,o=null;const s=i=>{var d;if(i<0)return;const c=Math.min(i,t.length-1);n!==c&&(n=c),(d=t[n])==null||d.focus()},r=()=>{t.length=0,o instanceof Element&&(o.querySelectorAll(Pa).forEach(i=>Kr(i)&&t.push(i)),ka(o)&&(a.current=document.activeElement))},a=Object.create(null,{current:{get:()=>t[n]??null,set:i=>{if(i){if(!ns(i))return s(t.indexOf(i));if(i===~~i)return s(os(n+i,t.length))}}},root:{get:()=>o,set:i=>{i!==o&&(o&&e.disconnect(),o=i instanceof Element?i:null,t.length=0,o&&(e.observe(o,{attributeFilter:mb,attributes:!0,childList:!0,subtree:!0}),r()))}},tabbables:{value:t}});return a},_b=Ib,Tb=(e,t)=>{const n=k(!1),o=k(null),s=k(!1),r=T(_b,[]),a=T(()=>{let g=null,u;return p=>{G(u)||cancelAnimationFrame(u);let m=p.target;for(;m&&m!==p.currentTarget;){if(ja(m)){g=m,u=requestAnimationFrame(()=>{u=requestAnimationFrame(()=>{var y;o.current!==g&&g instanceof HTMLElement&&((y=o.current=g)==null||y.focus()),g=null,u=void 0})});return}m=m.parentNode}}},[]),i=N(g=>{r.current=o.current=g.target},[]),c=N(g=>{r.tabbables.includes(g.relatedTarget)||ka(g.currentTarget,g.relatedTarget)||s.current||(n.current=!0,requestAnimationFrame(()=>{n.current&&t(n.current=!1)}))},[]),d=T(()=>{let g;return u=>{switch(u.code){case z.ARROW_DOWN:case z.ARROW_LEFT:case z.ARROW_RIGHT:case z.ARROW_UP:case z.END:case z.ESCAPE:case z.HOME:case z.PAGE_DOWN:case z.PAGE_UP:case z.TAB:cancelAnimationFrame(g),g=requestAnimationFrame(()=>{g=requestAnimationFrame(()=>{s.current=!1,g=void 0})}),s.current=!0;break}u.code===z.TAB?(u.preventDefault(),r.current=u.shiftKey?-1:1):u.code===z.ESCAPE&&t(!0)}},[]);return Et(N((g,u)=>{u instanceof Element&&(u.removeEventListener("keydown",d,!0),u.removeEventListener("focusin",i,!0),u.removeEventListener("focusout",c,!0),g.removeEventListener("click",a,!0)),g instanceof Element?(g.addEventListener("keydown",d,!0),g.addEventListener("focusin",i,!0),g.addEventListener("focusout",c,!0),g.addEventListener("click",a,!0),n.current=!1,r.root=g):r.root=null},[]),e)},Ab=Tb,Sb=(()=>{const e=new WeakMap,t=H({remove:x(function(){o(this.observerCallback)})}),n=s=>{let r=e.get(s);if(G(r)){const a=new IntersectionObserver(i=>{i.forEach(c=>{s&&s(c)})},{root:null,rootMargin:"",threshold:[1]});r=oo(t,{observerCallback:x(s),observer:x(a)}),e.set(s,r)}return r},o=s=>{const r=e.get(s);r==null||r.observer.disconnect(),e.delete(s)};return n})(),Dr=Sb,Nb=({popover:e,offset:t,targetElement:n,position:o,variant:s,fullWidth:r})=>{const a=n==null?void 0:n.current;let i=0,c=0;const d=a.getBoundingClientRect(),g=document.body.getBoundingClientRect(),u=e==null?void 0:e.firstChild,p=g.left+g.width/2-u.offsetWidth/2,m=d.left+d.width/2-u.offsetWidth/2,y=d.top+d.height/2-u.offsetHeight/2;switch(o){case ae.BOTTOM:i=r?p:s===De.TOOLTIP?m+window.scrollX:(d==null?void 0:d.left)+window.scrollX,c=(d==null?void 0:d.top)+(d==null?void 0:d.height)+window.scrollY+t[1];break;case ae.BOTTOM_LEFT:i=(d==null?void 0:d.right)+window.scrollX-e.clientWidth,c=(d==null?void 0:d.top)+(d==null?void 0:d.height)+window.scrollY+t[1];break;case ae.TOP:i=s===De.TOOLTIP?m+window.scrollX:d.left+window.scrollX,c=(d==null?void 0:d.top)-(u==null?void 0:u.clientHeight)+window.scrollY-t[0];break;case ae.RIGHT:i=d.left+d.width+window.scrollX+t[2],c=s===De.TOOLTIP?y+window.scrollY:(d==null?void 0:d.top)-(d==null?void 0:d.height)/2+window.scrollY;break;case ae.LEFT:i=(d==null?void 0:d.left)-(e==null?void 0:e.clientWidth)+window.scrollX-t[3],c=s===De.TOOLTIP?y+window.scrollY:(d==null?void 0:d.top)+window.scrollY-(d==null?void 0:d.height)/2;break}const f=[i,c,0];return`position:absolute;inset:0 auto auto 0;margin: 0;transform: ${f.reduce((I,M,L)=>L===0?I+`${M}px,`:L===f.length-1?I+` ${M}px)`:I+` ${M}px,`,"translate3d(")};visibility:hidden`},Lb=(e,t,n,o,s,r,a,i,c)=>{const[d,g]=B(!0),[u,p]=B(i?!i:!!o),[m,y]=B(o||ae.TOP),[f,A]=B([]),I=N(L=>{if(L.intersectionRatio===1)return p(!0);if(!d&&L.intersectionRatio!==1){if(f&&f.length===(i?5:4)){const E=f.reduce((v,$)=>$[1]>v[1]?$:v,f[0]);y(E[0]),p(!0);return}switch(p(!1),m){case ae.TOP:A(E=>[...E,[ae.TOP,L.intersectionRatio]]),y(ae.BOTTOM);break;case ae.BOTTOM:A(E=>[...E,[ae.BOTTOM,L.intersectionRatio]]),y(i?ae.BOTTOM_LEFT:ae.RIGHT);break;case ae.BOTTOM_LEFT:A(E=>[...E,[ae.BOTTOM,L.intersectionRatio]]),y(ae.RIGHT);break;case ae.RIGHT:A(E=>[...E,[ae.RIGHT,L.intersectionRatio]]),y(ae.LEFT);break;case ae.LEFT:A(E=>[...E,[ae.LEFT,L.intersectionRatio]]),y(ae.TOP);break}}},[d,f,m,i]),M=k(I);return W(()=>{Dr(M.current).remove(),M.current=I},[I]),Et(N((L,E)=>{var v,$;if(E&&(!o||i)&&Dr(I).observer.unobserve(E),L&&t.current){if((!o||i)&&Dr(I).observer.observe(L),!(L instanceof Element))return;const b=Nb({popover:L,offset:e,targetElement:t,position:m,variant:n,fullWidth:a??!1}),D=u?b+";visibility:visible":b,O=r?D+";min-width:fit-content;width:"+((v=t.current)==null?void 0:v.clientWidth)+"px":D;L.setAttribute("style",`${O}`),d&&g(!1),n&&n===De.TOOLTIP&&s&&(($=s.current)==null||$.setAttribute("data-popover-placement",m))}},[e,t,m,o,n,I,u,d,r,s,a,i]),c)},Cb=Lb,Mb=e=>{const t=k();return Et(N((n,o)=>{o instanceof Element&&o.id===t.current&&(o.id=""),n instanceof Element&&(n.id=t.current||(t.current=dd()))},[e]),e)},Os=Mb;const Eb=e=>{var o;let t;const n=(o=e.querySelector(`.${pl}`))==null?void 0:o.querySelectorAll(Pa);return n?(Array.prototype.some.call(n,s=>{if(ja(s))return t=s}),t):null},vb=e=>e===De.TOOLTIP?[10,3,5,5]:[15,15,15,15];function Fa({actions:e,disableFocusTrap:t=!1,actionsLayout:n=Ra.SPACE_BETWEEN,variant:o=De.TOOLTIP,title:s,open:r,dismissible:a,modifiers:i,divider:c,fitContent:d,withoutSpace:g,containerSize:u,position:p,targetElement:m,setToTargetWidth:y,dismiss:f,children:A,withContentPadding:I,classNameModifiers:M,showOverlay:L=!1,fitPosition:E,...v}){const $=T(()=>K(f)&&Pt(a),[f,a]),b=Os(),D=k(),O=N(ye=>{var de;f&&f(),ye&&((de=m==null?void 0:m.current)==null||de.focus())},[f,m]),j=N(ye=>{ye.code===z.ESCAPE&&(f&&f(),(m==null?void 0:m.current).focus())},[f,m]),te=k(j),Y=k(),q=wa(Cb(vb(o),m,o,p,b,y,L,E),f,o===De.TOOLTIP&&!r,yl.POPOVER),ne=Ab(t?null:q,O),re=Et(N((ye,de)=>{de instanceof Element&&(de[An]=void 0,delete de[An]),ye instanceof Element&&(ye[An]=m.current,cancelAnimationFrame(Y.current),Y.current=requestAnimationFrame(()=>{if(D.current===r||!(D.current=r))return;const be=Eb(ye);be==null||be.focus()}))},[r,m]),t?q:ne),Pe=Os(re),Ee=T(()=>({[`${Qe}--medium`]:u===No.MEDIUM,[`${Qe}--with-divider`]:!!c,[`${Qe}--wide`]:u===No.WIDE,[`${Qe}--fit-content`]:d,[`${Qe}--without-space`]:g,[`${Qe}--auto-width`]:L}),[u,c,g,d,L]);W(()=>{re.current&&(re.current[An]=m.current)},[m]),W(()=>(document.removeEventListener("keydown",te.current),document.addEventListener("keydown",te.current=j),()=>document.removeEventListener("keydown",te.current)),[j]);const ve=o===De.TOOLTIP?ml:`${Qe} ${qv}`,ke=o===De.TOOLTIP?pl:`${br}`;return dl(l(Z,{children:r?l(Z,{children:[L&&l("div",{className:"adyen-pe-popover__overlay"}),l("div",{id:"popover",ref:Pe,...v,className:F(ve,Ee,M),style:{visibility:"hidden"},role:v.role??(o===De.POPOVER?"dialog":"tooltip"),children:[(s||$)&&l("div",{className:Da($i,i,[$i]),children:[s&&l("div",{className:eb,children:l(rb,{title:s})}),$&&l(ob,{onClick:f})]}),A&&l(Z,{children:[l("div",{className:F(ke,{[`${br}--with-padding`]:I,[`${br}--overlay`]:L}),children:A}),o===De.TOOLTIP&&l("span",{"data-popover-placement":"hidden",ref:b,className:"adyen-pe-tooltip__arrow"})]}),e&&l("div",{className:tb,children:l(Kv,{actions:e,layout:n})})]})]}):null}),document.getElementsByTagName("body")[0])}const bb=(e=!1)=>{const[t,n]=B(e),o=N(r=>n(r),[]),s=N(()=>n(r=>!r),[]);return[t,o,s]},gt=bb,Db=()=>{const[e,t]=gt(),n=N(()=>t(!0),[t]),o=N(()=>t(!1),[t]),s=N(r=>{switch(r.code){case z.ESCAPE:o();break}},[o]);return{listeners:{onfocusoutCapture:o,onMouseLeave:o,onKeyDown:s,onFocus:n,onMouseEnter:n},isVisible:e}};const Ob=e=>typeof e=="string",Wa=({content:e,children:t,triggerRef:n,showTooltip:o,position:s,isContainerHovered:r=!1})=>{var g,u,p;const a=Os(),i=Ae(Te.down.sm),{isVisible:c,listeners:d}=Db();return i?l(Z,{children:t}):l(Z,{children:[t?nl(t,{...t==null?void 0:t.props,role:"button",tabIndex:-1,ref:a,className:(g=t==null?void 0:t.props)!=null&&g.className?F(`${(u=t==null?void 0:t.props)==null?void 0:u.className} adyen-pe__tooltip-target`,{" adyen-pe__tooltip-target--hovered":r}):F("adyen-pe__tooltip-target",{"adyen-pe__tooltip-target--hovered":r}),...d,"aria-describedby":`tooltip-${(p=a.current)==null?void 0:p.id}`}):null,(c||o)&&l(Fa,{variant:De.TOOLTIP,targetElement:n??a,position:s,open:c||o,children:l(Z,{children:e&&Ob(e)?l(X,{variant:P.CAPTION,children:e}):{content:e}})})]})},$b=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{d:"M3.5 1.25C2.25736 1.25 1.25 2.25736 1.25 3.5V8.5C1.25 9.74264 2.25736 10.75 3.5 10.75H5.25V12.5C5.25 13.7426 6.25736 14.75 7.5 14.75H12.5C13.7426 14.75 14.75 13.7426 14.75 12.5V7.5C14.75 6.25736 13.7426 5.25 12.5 5.25H10.75V3.5C10.75 2.25736 9.74264 1.25 8.5 1.25H3.5ZM9.25 5.25H7.5C6.25736 5.25 5.25 6.25736 5.25 7.5V9.25H3.5C3.08579 9.25 2.75 8.91421 2.75 8.5V3.5C2.75 3.08579 3.08579 2.75 3.5 2.75H8.5C8.91421 2.75 9.25 3.08579 9.25 3.5V5.25ZM6.75 12.5V7.5C6.75 7.08579 7.08579 6.75 7.5 6.75H12.5C12.9142 6.75 13.25 7.08579 13.25 7.5V12.5C13.25 12.9142 12.9142 13.25 12.5 13.25H7.5C7.08579 13.25 6.75 12.9142 6.75 12.5Z"})}),Rb=$b;const xb=({text:e})=>{const[t,n]=B(e),o=N(async()=>{if(e)try{await navigator.clipboard.writeText(e),n("Copied")}catch(r){console.log(r)}},[e]),s=N(()=>{n(e)},[n,e]);return l(Wa,{content:t,children:l(et,{variant:Oe.TERTIARY,className:"adyen-pe-copy-text",onClick:o,onBlur:s,onMouseLeaveCapture:s,children:[l("span",{className:"adyen-pe-copy-text__information",children:e}),l(Rb,{fill:"#0070f5"})]})})},wb=xb,Ba=(e,t,n)=>{if(!e)return Xr;const o=Zv(e,n);if(o)return o;switch(e.errorCode){case void 0:return{title:"somethingWentWrong",message:[t,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0};case"00_500":{const s=n?"theErrorCodeIs":"contactSupportForHelpAndShareErrorCode";return{title:"somethingWentWrong",message:[t,s],translationValues:{[s]:e.requestId?l(wb,{text:e.requestId}):null},onContactSupport:n}}default:return Xr}};function _l({balanceAccountsError:e,children:t,className:n,errorMessage:o,isBalanceAccountIdWrong:s,onContactSupport:r}){const{hasError:a}=jt();return l("div",{className:F(n,{[Sv]:a}),children:a?l(En,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[o,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0}):e?l(En,{withImage:!0,centered:!0,...Ba(e,"weCouldNotLoadYourBalanceAccounts",r)}):s?l(En,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[o,"theSelectedBalanceAccountIsIncorrect"]}):l(Z,{children:t})})}const Pb=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M13.6569 4.07112C14.0474 3.6806 14.0474 3.04743 13.6569 2.65691C13.2664 2.26638 12.6332 2.26638 12.2427 2.65691L8.00005 6.89954L3.75745 2.65694C3.36692 2.26641 2.73376 2.26641 2.34324 2.65694C1.95271 3.04746 1.95271 3.68063 2.34324 4.07115L6.58584 8.31375L2.34319 12.5564C1.95266 12.9469 1.95266 13.5801 2.34319 13.9706C2.73371 14.3611 3.36688 14.3611 3.7574 13.9706L8.00005 9.72796L12.2427 13.9706C12.6333 14.3612 13.2664 14.3612 13.6569 13.9706C14.0475 13.5801 14.0475 12.947 13.6569 12.5564L9.41426 8.31375L13.6569 4.07112Z"})}),Tl=Pb;function kb({title:e,children:t,classNameModifiers:n=[],isOpen:o,onClose:s,isDismissible:r=!0,headerWithBorder:a=!0,size:i="fluid",...c}){const d=Ae(Te.down.xs),{i18n:g}=Q(),u=wa(null,s),p=N(m=>{m.key==="Escape"&&o&&r&&s()},[o,r,s]);return W(()=>(o?window.addEventListener("keydown",p):window.removeEventListener("keydown",p),()=>window.removeEventListener("keydown",p)),[o,p]),l(Z,{children:o&&l("div",{className:F("adyen-pe-modal-wrapper",n.map(m=>`adyen-pe-modal-wrapper--${m}`),{"adyen-pe-modal-wrapper--open":o,"adyen-pe-modal-wrapper--dismissible":r}),role:"dialog","aria-modal":"true","aria-hidden":!open,...c,children:l("div",{className:F("adyen-pe-modal",{"adyen-pe-modal--fluid":i==="fluid","adyen-pe-modal--small":i==="small","adyen-pe-modal--large":i==="large","adyen-pe-modal--extra-large":i==="extra-large","adyen-pe-modal--full-screen":i==="full-screen"||d}),ref:u,children:[l("div",{className:F("adyen-pe-modal__header",{"adyen-pe-modal__header--with-title":e,"adyen-pe-modal__header--with-border-bottom":a}),children:[e&&l("div",{className:"adyen-pe-modal__header__title",children:e}),r&&l(et,{onClick:s,variant:Oe.TERTIARY,iconButton:!0,classNameModifiers:["circle"],className:"adyen-pe-modal__header-icon","aria-label":g.get("dismiss"),children:l(Tl,{})})]}),l("div",{className:"adyen-pe-modal__content",children:t})]})})})}const jb=He(({title:e,...t},n)=>l("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:[e&&l("title",{children:e}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.47 4.97c.3-.3.77-.3 1.06 0L8 9.44l4.47-4.47a.75.75 0 1 1 1.06 1.06l-5 5c-.3.3-.77.3-1.06 0l-5-5a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})]})),mr=jb,Fb=He(({title:e,...t},n)=>l("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:[e&&l("title",{children:e}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.53 11.03c-.3.3-.77.3-1.06 0L8 6.56l-4.47 4.47a.75.75 0 1 1-1.06-1.06l5-5c.3-.3.77-.3 1.06 0l5 5c.3.3.3.77 0 1.06Z",clipRule:"evenodd"})]})),za=Fb,Ua="adyen-pe-accordion",Ya=Ua+"__header",Wb=Ya+"-container",Bb=Ya+"-controller",zb=Ua+"__content";function wi({children:e,classNames:t,header:n,headerInformation:o}){var c;const[s,r]=B(!1),a=k(null),i=N(()=>{r(!s)},[s]);return l("div",{className:F(Ua,t),children:[l("h3",{className:Ya,children:[l("button",{id:"accordion-controller","aria-controls":"accordion-content",className:Wb,onClick:i,"aria-expanded":s,children:l("div",{className:Bb,children:[n,s?l(za,{height:8,width:15}):l(mr,{height:8,width:15})]})}),o&&l("div",{children:o})]}),l("div",{role:"region",id:"accordion-content","aria-labelledby":"accordion-controller",style:{maxHeight:s?(c=a==null?void 0:a.current)==null?void 0:c.offsetHeight:0},className:zb,children:l("div",{ref:a,children:e})})]})}const Ft="adyen-pe-card",Al=`${Ft}__body`,Sl=`${Ft}__header`,Ub=`${Ft}__title`,Yb=`${Ft}__subtitle`,Hb=`${Sl}-content`,Gb=`${Al}--with-title`,Vb=`${Ft}--no-outline`,Zb=`${Ft}--filled`,Jb=`${Ft}__footer`;const Qb=({title:e,subTitle:t,children:n,footer:o,el:s,renderHeader:r,renderFooter:a,filled:i,noOutline:c,classNameModifiers:d})=>{const g=s||"header";return l("section",{className:F(Ft,{[Zb]:i,[Vb]:c},d),children:[(e||r)&&l(g,{className:Sl,children:(e||r)&&l("div",{className:Hb,children:[r||l("span",{className:Ub,children:e}),t&&l("div",{className:Yb,children:t})]})}),l("div",{className:F(Al,{[Gb]:e||r}),children:n}),(o||a)&&l("footer",{className:Jb,children:a||o})]})},Or=Qb,Xb={month:"short",day:"numeric",year:void 0,hour:"2-digit",minute:"2-digit",hour12:!1},Kb={weekday:"long",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"shortOffset"},qb={month:"long",day:"numeric",year:"numeric"},eD={weekday:"long",month:"long",day:"numeric",year:"numeric"},ls="adyen-pe-structured-list",Nl=`${ls}__item`,Pi=`${ls}__grid`,tD=`${ls}__content`,nD=`${ls}__label`,oD=`${Nl}--has-highlight`;const sD=e=>{const{i18n:t}=Q();return T(()=>e.map(n=>({key:n.key,value:n.value,id:Ia(),label:t.get(n.key)})),[t,e])},rD="6-6";function $r({items:e,highlightable:t,renderValue:n,renderLabel:o,layout:s=rD,grid:r=!0}){const[a,i]=T(()=>s.split("-").map(g=>`${Pi}--width-${g}-of-12`),[s]),c=sD(e),{i18n:d}=Q();return l("div",{"aria-label":d.get("structuredList"),className:ls,children:c.map(g=>l("dl",{className:F(Nl,{[oD]:t,[Pi]:r}),children:[l("dt",{className:F(nD,a),children:o?o(g.label):l(X,{variant:P.BODY,children:g.label})}),l("dd",{"aria-label":`${d.get(g.key)} ${d.get("value")}`,className:F(tD,i),children:n?n(g.value):l(X,{variant:P.BODY,children:g.value})})]},g.id))})}const aD=({isLoading:e,skeletonRowNumber:t=0})=>{const n=T(()=>Array.from({length:t},(o,s)=>s),[t]);return l(Z,{children:n.map(o=>l("span",{className:F({"adyen-pe-transaction-data__skeleton":!0,"adyen-pe-transaction-data__skeleton-loading-content":e})},`transaction-data-skeleton-${o}`))})},Ll=aD,qr=e=>{const{i18n:t}=Q();return N((...n)=>{const o=t.timezone;try{return e(...n)}finally{t.timezone=o}},[t,e])},iD=e=>{const{i18n:t}=Q(),n=qr(N(()=>(t.timezone=void 0,t.timezone=e,t.timezone),[t,e]));return T(n,[n])},cD=e=>{const{i18n:t}=Q(),n=iD(e),o=qr(N((...r)=>(t.timezone=n,t.date(...r)),[t,n])),s=qr(N((...r)=>(t.timezone=n,t.fullDate(...r)),[t,n]));return{dateFormat:o,fullDateFormat:s}},ao=cD;const us="adyen-pe-payout-data",lD=`${us}__title`,uD=`${us}__title--ba-id`,Ha=`${us}__content`,fn=`${Ha}--section`,Is=`${Ha}--card`,ki=`${Is}-title`,Io=`${fn}-amount`,ji=`${Io}-gross`,dD=`${Io}-net`,hD=`${us}--unpaid-amount`,gD=({balanceAccountId:e,balanceAccountDescription:t,payout:n,isFetching:o})=>{var g;const{payout:s}=n??U,{i18n:r}=Q(),{dateFormat:a}=ao("UTC"),i=T(()=>{var p,m;const u=(m=(p=n==null?void 0:n.amountBreakdowns)==null?void 0:p.adjustmentBreakdown)==null?void 0:m.reduce((y,f)=>{var E,v,$,b,D,O,j;const A=(E=f==null?void 0:f.amount)!=null&&E.value&&((v=f==null?void 0:f.amount)!=null&&v.currency)?r.amount(($=f==null?void 0:f.amount)==null?void 0:$.value,(b=f==null?void 0:f.amount)==null?void 0:b.currency,{hideCurrency:!0}):(((D=f==null?void 0:f.amount)==null?void 0:D.value)??"").toString(),I=`${f==null?void 0:f.category}`,M=r.get(I),L=f!=null&&f.category&&M!==I?M:f==null?void 0:f.category;return f!=null&&f.category&&A&&L&&y[(O=f==null?void 0:f.amount)!=null&&O.value&&((j=f==null?void 0:f.amount)==null?void 0:j.value)<0?"subtractions":"additions"].push({key:L,value:A}),y},{subtractions:[],additions:[]});return u==null||u.subtractions.sort((y,f)=>y.key.localeCompare(f.key)),u==null||u.additions.sort((y,f)=>y.key.localeCompare(f.key)),u},[r,n]),c=T(()=>{var p,m;const u=(m=(p=n==null?void 0:n.amountBreakdowns)==null?void 0:p.fundsCapturedBreakdown)==null?void 0:m.reduce((y,f)=>{var A,I,M,L;return((A=f==null?void 0:f.amount)==null?void 0:A.value)===0||(I=f==null?void 0:f.amount)!=null&&I.value&&f.category&&y.push({key:f.category,value:r.amount((M=f==null?void 0:f.amount)==null?void 0:M.value,(L=f==null?void 0:f.amount)==null?void 0:L.currency,{hideCurrency:!0})}),y},[]);return u==null||u.sort((y,f)=>y.key==="capture"?-1:f.key==="capture"?1:y.key.localeCompare(f.key)),u},[n,r]),d=T(()=>s!=null&&s.createdAt?a(new Date(s==null?void 0:s.createdAt),eD):"",[s,a]);return l(Z,{children:s?l("div",{className:us,children:[l("div",{className:lD,children:[l(X,{variant:P.SUBTITLE,stronger:!0,children:r.get("netPayout")}),l(X,{variant:P.TITLE,large:!0,children:`${r.amount(s.payoutAmount.value,s.payoutAmount.currency,{hideCurrency:!0})} ${s.payoutAmount.currency}`}),l(X,{variant:P.BODY,children:d}),l("div",{className:fn,children:[t&&l(X,{variant:P.CAPTION,stronger:!0,wide:!0,children:`${t}`}),l(X,{variant:P.CAPTION,className:uD,children:`${e}`})]})]}),l("div",{className:Ha,children:[l("div",{className:fn,children:(s==null?void 0:s.fundsCapturedAmount)&&(c&&Object.keys(c).length>0?l(wi,{header:l(X,{variant:P.BODY,children:r.get("fundsCaptured")}),headerInformation:l(X,{variant:P.BODY,children:r.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)}),children:l("div",{className:fn,children:l("div",{className:Is,children:l(Or,{children:l($r,{items:c})})})})}):l("div",{className:F(Io,ji),children:[l(X,{variant:P.BODY,children:r.get("fundsCaptured")}),l(X,{variant:P.BODY,children:r.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)})]}))}),l("div",{className:fn,children:i!=null&&i.subtractions&&Object.keys(i==null?void 0:i.subtractions).length>0||i!=null&&i.additions&&Object.keys(i==null?void 0:i.additions).length>0?l(wi,{header:l(X,{variant:P.BODY,children:r.get("adjustments")}),headerInformation:l(X,{variant:P.BODY,children:r.amount(s.adjustmentAmount.value,s.adjustmentAmount.currency)}),children:[(i==null?void 0:i.additions)&&Object.keys(i==null?void 0:i.additions).length>0&&l("div",{className:Is,children:l(Or,{renderHeader:l(X,{className:ki,variant:P.CAPTION,stronger:!0,children:r.get("additions")}),children:l($r,{items:i==null?void 0:i.additions})})}),(i==null?void 0:i.subtractions)&&Object.keys(i==null?void 0:i.subtractions).length>0&&l("div",{className:Is,children:l(Or,{renderHeader:l(X,{className:ki,variant:P.CAPTION,stronger:!0,children:r.get("subtractions")}),children:l($r,{items:i==null?void 0:i.subtractions})})})]}):l("div",{className:F(Io,ji),children:[l(X,{variant:P.BODY,children:r.get("adjustments")}),l(X,{variant:P.BODY,children:r.amount(s.adjustmentAmount.value,s.adjustmentAmount.currency)})]})}),l("div",{className:F(fn),children:l("div",{className:F(Io,dD),children:[l(X,{variant:P.BODY,stronger:!0,children:r.get("netPayout")}),l(X,{variant:P.BODY,stronger:!0,children:r.amount(s.payoutAmount.value,s.payoutAmount.currency)})]})})]}),((g=n==null?void 0:n.payout)==null?void 0:g.unpaidAmount)&&l("div",{className:hD,children:[l(X,{variant:P.BODY,children:r.get("remainingAmount")}),l(X,{variant:P.BODY,children:r.amount(n.payout.unpaidAmount.value,n.payout.unpaidAmount.currency)})]})]}):l(Ll,{isLoading:o,skeletonRowNumber:6})})},mD="https://cdf6519016.cdn.adyen.com/checkoutshopper/",pD=({name:e,resourceContext:t,imageFolder:n="logos/",parentFolder:o="",extension:s="svg",size:r="",subFolder:a=""})=>{const i=`/images/${n}/${a}/${o}/${e}${r}.${s}`.replace(/\/+/g,"/");return`${t}${i}`},fD=({options:e=U,name:t})=>{const{loadingContext:n}=Q();return T(()=>pD({resourceContext:mD,name:t,...e}),[n,t,e])},Cl=({folder:e="components/",className:t,alt:n,name:o,extension:s})=>{const r=fD({options:T(()=>({imageFolder:e,extension:s}),[s,e]),name:o});return l("img",{className:F("adyen-pe__image",t),alt:n,src:r})},yD=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function Ml(e,t){return e.lastFourDigits?t==="detail"?"•••• •••• •••• "+e.lastFourDigits:e.lastFourDigits:yD[e.type]||e.type}var Xe=(e=>(e.DEFAULT="default",e.WARNING="warning",e.ERROR="error",e.SUCCESS="success",e.WHITE="white",e))(Xe||{});const ea=Se(({variant:e=Xe.DEFAULT,label:t})=>l("div",{className:F("adyen-pe-tag",{"adyen-pe-tag--success":e===Xe.SUCCESS,"adyen-pe-tag--default":e===Xe.DEFAULT,"adyen-pe-tag--warning":e===Xe.WARNING,"adyen-pe-tag--error":e===Xe.ERROR,"adyen-pe-tag--primary":e===Xe.WHITE}),children:t}));const ID=({transaction:e,isFetching:t})=>{var a,i,c;const{i18n:n}=Q(),{dateFormat:o}=ao((a=e.balanceAccount)==null?void 0:a.timeZone),s=T(()=>e?o(new Date(e.createdAt),Kb):"",[e,o]),r=(e==null?void 0:e.status)==="Booked"?"default":(e==null?void 0:e.status)==="Reversed"?"error":"pending";return l(Z,{children:e?l("div",{className:"adyen-pe-transaction-data",children:[l("div",{className:"adyen-pe-transaction-data__container",children:[((e==null?void 0:e.status)||(e==null?void 0:e.category))&&l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__tag-container",children:[(e==null?void 0:e.status)&&l(ea,{label:n.get(e.status),variant:e.status==="Booked"?Xe.SUCCESS:e.status==="Reversed"?Xe.ERROR:Xe.DEFAULT}),e.category&&l(ea,{label:n.get(`txType.${e.category}`),variant:Xe.DEFAULT})]}),l("div",{className:`adyen-pe-transaction-data__section adyen-pe-transaction-data__amount adyen-pe-transaction-data__amount--${r}`,children:e.amount?`${n.amount(e.amount.value,e.amount.currency,{hideCurrency:!0})} ${e.amount.currency}`:null}),((e==null?void 0:e.paymentMethod)||(e==null?void 0:e.bankAccount))&&l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__payment-method",children:[l("div",{className:"adyen-pe-transaction-data__payment-method-logo-container",children:l(Cl,{name:e.paymentMethod?e.paymentMethod.type:"bankTransfer",alt:e.paymentMethod?e.paymentMethod.type:"bankTransfer",folder:"logos/",className:"adyen-pe-transaction-data__payment-method-logo"})}),l("div",{className:"adyen-pe-transaction-data__payment-method-detail",children:e!=null&&e.paymentMethod?Ml(e==null?void 0:e.paymentMethod,"detail"):(i=e==null?void 0:e.bankAccount)==null?void 0:i.accountNumberLastFourDigits})]}),l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__label",children:s})]}),((c=e.balanceAccount)==null?void 0:c.description)&&l("div",{className:"adyen-pe-transaction-data__container",children:[l("div",{className:"adyen-pe-transaction-data__label",children:n.get("account")}),l("div",{children:e.balanceAccount.description})]}),l("div",{className:"adyen-pe-transaction-data__container",children:[l("div",{className:"adyen-pe-transaction-data__label",children:n.get("referenceID")}),l("div",{"aria-label":n.get("referenceID"),children:e.id})]})]}):l(Ll,{isLoading:t,skeletonRowNumber:6})})};const _D=({inline:e=!1,size:t="large"})=>l("div",{className:`adyen-pe-spinner__wrapper ${e?"adyen-pe-spinner__wrapper--inline":""}`,children:l("div",{className:`adyen-pe-spinner adyen-pe-spinner--${t}`})}),TD=_D,AD={transaction:"getTransaction",payout:"getPayout"},SD={transaction:"transactionDetails",payout:"payoutDetails"},Fi=e=>!("data"in e);function Ga(e){var y,f;const t=T(()=>Fi(e)?null:e.data,[e]),n=T(()=>Fi(e)?e.id:null,[e]),{i18n:o}=Q(),s=jt().endpoints[AD[e.type]],r=T(()=>SD[e.type],[e.type]),{data:a,error:i,isFetching:c}=gr(T(()=>({fetchOptions:{enabled:!!n&&!!s},queryFn:async()=>{const A=e.type==="transaction"?{path:{transactionId:n}}:{query:{balanceAccountId:n,createdAt:e.date}};return s(U,{...A})}}),[n,s,e])),d=e.type==="payout"?e.balanceAccountDescription:a==null?void 0:a.balanceAccountId,g=e.type==="payout"?e==null?void 0:e.balanceAccountDescription:(y=t==null?void 0:t.balanceAccount)==null?void 0:y.description,{balanceAccounts:u}=ba(d,!g),p=T(()=>{if(i)return Ba(i,"weCouldNotLoadYourTransactions",e.onContactSupport)},[i,e.onContactSupport]),m=t??a;return c?l(TD,{}):l("div",{className:"adyen-pe-overview-details",children:[!e.hideTitle&&l("div",{className:"adyen-pe-overview-details--title",children:l(X,{variant:P.TITLE,medium:!0,children:o.get(r)})}),i&&p&&l("div",{className:"adyen-pe-overview-details--error-container",children:l(En,{centered:!0,withImage:!0,...p})}),e.type==="transaction"&&m&&l(ID,{transaction:{...m,balanceAccount:(t==null?void 0:t.balanceAccount)||(u==null?void 0:u[0])},isFetching:c}),e.type==="payout"&&m&&l(gD,{balanceAccountId:n,payout:m,balanceAccountDescription:(e==null?void 0:e.balanceAccountDescription)||((f=u==null?void 0:u[0])==null?void 0:f.description),isFetching:c})]})}const ND={base:"adyen-pe-modal-content"},LD=e=>it(e,"id");function CD({type:e,data:t}){const n=T(()=>e==="payout"?{...t,type:"payout"}:LD(t)?{data:t,type:e}:{id:t,type:e},[t,e]);return l(Z,{children:n&&l("div",{className:ND.base,children:l(Ga,{...n})})})}const El=({children:e,className:t,selectedDetail:n,resetDetails:o})=>{const{i18n:s}=Q(),r=!!n;return W(()=>{r&&go.closeAll()},[r]),l("div",{className:t,children:[e,n&&l(kb,{title:n!=null&&n.title?s.get(n.title):void 0,isOpen:!!n,"aria-label":s.get("payoutDetails"),onClose:o,isDismissible:!0,headerWithBorder:!1,size:(n==null?void 0:n.modalSize)??"large",children:n&&l(CD,{...n==null?void 0:n.selection})})]})};function MD({value:e,isContainerHovered:t}){const{i18n:n}=Q(),o=`tooltip.${e}`;return l(Z,{children:n.has(o)&&l(Wa,{content:n.get(o),isContainerHovered:t,children:l("span",{children:e})})})}const ED=({error:e,errorMessage:t,onContactSupport:n})=>{const{title:o,message:s,refreshComponent:r,translationValues:a,onContactSupport:i}=Ba(e,t,n);return l(En,{title:o,message:s,translationValues:a,withImage:!0,centered:!0,refreshComponent:r,onContactSupport:i})},vl=ED,vD={id:"paymentId",transactionType:"transactionType",createdAt:"date",balanceAccountId:"balanceAccount",accountHolderId:"account",amount:"txAmount",description:"description",status:"status",category:"category",paymentMethod:"paymentMethod",currency:"currency",fundsCapturedAmount:"fundsCaptured",payoutAmount:"netPayout",adjustmentAmount:"adjustments",dateAndPaymentMethod:"date"},bl=e=>vD[e]||e;const Dl=Ma(U),Va=()=>Ea(Dl);var ln=(e=>(e.CENTER="center",e.RIGHT="right",e))(ln||{});function Wi({children:e,column:t,position:n,...o}){const{registerCells:s}=Va(),r=k(null);return W(()=>{var a;r.current&&s({column:t,width:(a=r.current)==null?void 0:a.getBoundingClientRect().width})},[t,s]),l("div",{role:"cell",className:F("adyen-pe-data-grid__cell",{"adyen-pe-data-grid__cell--right":n===ln.RIGHT,"adyen-pe-data-grid__cell--center":n===ln.CENTER}),...o,children:e&&Vc(e)?nl(e,{...e==null?void 0:e.props,ref:r,style:{width:"min-content"}}):null})}const Ol=({columns:e,customCells:t,item:n,rowIndex:o})=>l(Z,{children:e.map(({key:s,position:r})=>t!=null&&t[s]?l(Wi,{"aria-labelledby":String(s),column:s,position:r,children:l("div",{style:{width:"min-content"},children:t[s]({key:s,value:n[s],item:n,rowIndex:o})})},s):l(Wi,{"aria-labelledby":String(s),column:s,position:r,children:l("div",{children:n[s]})},s))}),bD=({data:e,columns:t,customCells:n,onRowHover:o})=>{const{i18n:s}=Q();return l(Z,{children:e==null?void 0:e.map((r,a)=>l("div",{role:"row",tabIndex:0,className:"adyen-pe-data-grid__row",onMouseEnter:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o(a):oe,onFocus:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o(a):oe,onMouseLeave:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o():oe,onBlur:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o():oe,children:l(Ol,{columns:t,customCells:n,item:r,rowIndex:a})},r))})},DD=({totalRows:e})=>{const[t,n]=hr((a,i)=>{const c=e;if(c>1){const d=i.index;if(d<c&&d>=0)return i.type==="ACTIVE"?Object.freeze({...a,index:i.index??0,activeIndex:i.index}):Object.freeze({...a,index:i.index??0,activeIndex:-1})}return a},kD),o=Et(N(a=>{var c;if(!(a instanceof Element))return;const i=Number((c=a.dataset)==null?void 0:c.index);t.activeIndex===-1&&i===0||i===t.index?a.setAttribute("tabindex","0"):a.setAttribute("tabindex","-1"),i===t.activeIndex&&(a==null||a.focus())},[t.activeIndex,t.index])),s=N(a=>{var c,d;if(!(((c=a.target)==null?void 0:c.getAttribute("role"))==="row")){a.code===z.ARROW_LEFT&&n({type:"ACTIVE",index:t.index});return}switch(a.code){case z.ARROW_DOWN:case z.ARROW_UP:n({type:"ACTIVE",index:a.code===z.ARROW_DOWN?t.index+1:t.index-1});break;case z.HOME:n({type:"ACTIVE",index:0});break;case z.END:n({type:"ACTIVE",index:e-1});break;case z.ENTER:(d=a.currentTarget)==null||d.click();break;default:return}a.stopPropagation()},[e,t.index]),r=N(a=>i=>{var d;(!(((d=i.target)==null?void 0:d.localName)==="tr")||t.index===-1)&&n({type:"CURRENT",index:a})},[t.index]);return{listeners:{onKeyDownCapture:s,onFocusCapture:r},ref:o,activeIndex:t.activeIndex,currentIndex:t.index}},OD=({data:e,columns:t,onRowClick:n,customCells:o,onRowHover:s})=>{const r=N(g=>()=>n==null?void 0:n.callback(n!=null&&n.retrievedField?g[n.retrievedField]:g),[n]),{i18n:a}=Q(),{currentIndex:i,listeners:c,ref:d}=DD({totalRows:(e==null?void 0:e.length)??0});return l(Z,{children:e==null?void 0:e.map((g,u)=>l("div",{role:"row",tabIndex:0,onMouseEnter:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s(u):oe,onFocus:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s(u):oe,onMouseLeave:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s():oe,onBlur:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s():oe,ref:d,"aria-selected":u===i,"data-index":u,className:"adyen-pe-data-grid__row adyen-pe-data-grid__row--clickable",onClick:r(g),onFocusCapture:c.onFocusCapture(u),onKeyDownCapture:c.onKeyDownCapture,children:l(Ol,{columns:t,customCells:o,item:g,rowIndex:u})},g))})},$D=({columnsNumber:e,loading:t,emptyMessageDisplay:n})=>{const o=Array.from({length:10},(r,a)=>a),s=Array.from({length:e},(r,a)=>a);return l(Z,{children:[o.map((r,a)=>l("div",{className:"adyen-pe-data-grid__row",children:s.map((i,c)=>l("div",{className:"adyen-pe-data-grid__cell adyen-pe-data-grid__skeleton-cell",children:l("span",{className:F({"adyen-pe-data-grid__skeleton-cell-content adyen-pe-data-grid__skeleton-cell-content--loading":t,"adyen-pe-data-grid__empty-cell":!t})})},`adyen-pe-data-grid-skeleton-cell-${c}`))},`adyen-pe-data-grid-skeleton-row-${a}`)),!t&&n&&n]})},RD=$D,xD="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMzAwIDIwMCIgZmlsbD0ibm9uZSI+CiAgICA8ZyBjbGlwLXBhdGg9InVybCgjYSkiPgog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i4zLTEyLjUgOS44LTExLjdhOTAuNyA5MC43IDAgMCAxIDQ2LjIgMjkuN2M0LjQgNS40IDIgOC43IDIgOC43bC03LjEgMTguOHMtMy42IDItMTUuNCAxLjdjLTE3LjQtLjUtMzguOC0yNi44LTM5LjUtMzAuNmE0OC4zIDQ4LjMgMCAwIDEgNC0xNi42Wk0xMTkuOSAxOGMwLTIuNSAxLjEtNC45IDIuNy02LjggMS45LTIuMiA0LjUtMy44IDcuNC00LjIgMi45LS40IDUuOS42IDcuOSAyLjdhNC44IDQuOCAwIDAgMC0zLTQuMXM1LS4yIDcuMS40YTE0LjcgMTQuNyAwIDAgMSAxMSAxNy44Yy0yLjMgOC44LTE0LjIgNy0yMSA1LjYtNS42LTEuMi0xMi00LjktMTIuMS0xMS40WiIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgzMDB2MjAwSDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+",wD=({children:e})=>{const t=T(()=>new Map,[]),n=N(({column:s,width:r})=>{if(t.has(s)){const a=t.get(s);r>a&&t.set(s,r)}else t.set(s,r)},[t]),o=N(s=>t.get(s),[t]);return l(Dl.Provider,{value:{registerCells:n,getMinWidthByColumn:o},children:kt(e)})},PD=({cellKey:e,position:t,label:n})=>{const{registerCells:o}=Va(),s=k(null);return W(()=>{var r;s.current&&o({column:e,width:(r=s.current)==null?void 0:r.getBoundingClientRect().width})},[e,o]),l("div",{role:"columnheader",id:String(e),className:F("adyen-pe-data-grid__cell adyen-pe-data-grid__cell--heading",{"adyen-pe-data-grid__cell--right":t===ln.RIGHT,"adyen-pe-data-grid__cell--center":t===ln.CENTER}),children:l("div",{ref:s,className:"adyen-pe-data-grid__cell--heading-content",children:n})})},kD=Object.freeze({activeIndex:-1,index:-1});function to({errorDisplay:e,...t}){return l("div",{style:{width:"100%"},children:l(wD,{children:l(jD,{...t,errorDisplay:e})})})}function jD({errorDisplay:e,...t}){var d,g;const n=T(()=>kt(t.children),[t.children]),o=T(()=>n.find(u=>(u==null?void 0:u.type)===$l),[n]),s=T(()=>{var u;return((u=t.data)==null?void 0:u.length)===0},[t.data]),r=T(()=>!t.loading&&(s||t.error),[s,t.error,t.loading]),{getMinWidthByColumn:a}=Va(),i=t.columns.filter(u=>u.visible!==!1).map(u=>({...u,minWidth:a(u.key)})),c=i.map(u=>`minmax(${(u.minWidth||100)+40}px, ${u.flex||1}fr)`).join(" ");return l("div",{className:F("adyen-pe-data-grid",{"adyen-pe-data-grid--condensed":t.condensed,"adyen-pe-data-grid--outline":t.outline,"adyen-pe-data-grid--scrollable":t.scrollable,"adyen-pe-data-grid--loading":t.loading,"adyen-pe-data-grid--empty":s||t.error}),style:`--adyen-pe-data-grid-cols: ${i.length}; --adyen-pe-data-grid-cells: ${c};`,children:l(Z,{children:[l("div",{className:"adyen-pe-data-grid__table-wrapper",children:[l("div",{role:"table",className:"adyen-pe-data-grid__table",children:[l("div",{className:"adyen-pe-data-grid__head",role:"rowgroup",children:l("div",{role:"rowheader",className:"adyen-pe-data-grid__header",style:t.loading?{width:"100%"}:{},children:i.map(u=>l(PD,{label:u.label,position:u.position,cellKey:u.key},u.key))})}),l(FD,{...t,columns:i,emptyBody:s})]}),r&&(s&&!t.error?l(En,{title:((d=t.emptyTableMessage)==null?void 0:d.title)??"thereAreNoResults",message:(g=t.emptyTableMessage)==null?void 0:g.message,imageDesktop:xD,centered:!0}):t.error&&e?e():null)]}),o]})})}function FD(e){const t=T(()=>e.loading||e.emptyBody||e.error,[e.emptyBody,e.error,e.loading]);return l("div",{role:"rowgroup",className:F("adyen-pe-data-grid__body"),style:t&&{display:"grid",gridTemplateColumns:"1fr"},children:t?l(RD,{columnsNumber:e.columns.length,loading:e.loading}):e.onRowClick?l(OD,{onRowHover:e.onRowHover,data:e.data,columns:e.columns,onRowClick:e.onRowClick,customCells:e.customCells}):l(bD,{onRowHover:e.onRowHover,data:e.data,customCells:e.customCells,columns:e.columns})})}to.Footer=$l;function $l({children:e}){return l("div",{className:"adyen-pe-data-grid__footer",children:e})}to.defaultProps={condensed:!1,outline:!0,scrollable:!0};const ta="-ariaError";var Me=(e=>(e[e.NONE=0]="NONE",e[e.APPLY=1]="APPLY",e[e.CLEAR=2]="CLEAR",e))(Me||{});const WD=({applyDisabled:e,applyTitle:t,resetDisabled:n,resetTitle:o}=U)=>{const{i18n:s}=Q(),[r,a]=B(Me.NONE),[i,c]=B(r!==Me.NONE),d=N(()=>a(Me.APPLY),[a]),g=N(()=>a(Me.CLEAR),[a]),u=N(()=>a(Me.NONE),[a]),p=T(()=>({disabled:xe(e),event:d,title:(t==null?void 0:t.trim())||s.get("apply"),variant:Oe.PRIMARY}),[s,d,e,t]),m=T(()=>({disabled:xe(n),event:g,title:(o==null?void 0:o.trim())||s.get("reset"),variant:Oe.SECONDARY}),[s,g,n,o]),y=T(()=>[p,m],[p,m]);return W(()=>{switch(c(r!==Me.NONE),r){case Me.APPLY:case Me.CLEAR:u();break}},[r,c,u]),{commitAction:r,commitActionButtons:y,committing:i,resetCommitAction:u}},Rl=WD;function xl(e){const{backgroundUrl:t="",className:n="",classNameModifiers:o=[],src:s="",alt:r="",showOnError:a=!1}=e,[i,c]=B(!1),d=k(null),g=()=>{c(!0)},u=()=>{c(a)},p=F([n],"adyen-pe-image",{"adyen-pe-image--loaded":i},...o.map(m=>`adyen-pe-image--${m}`));return W(()=>{const m=t?new Image:d.current;m&&(m.src=t||s,m.onload=g),c(!!(m!=null&&m.complete))},[]),t?l("div",{style:{backgroundUrl:t},...e,className:p}):l("img",{...e,alt:r,ref:d,className:p,onError:u})}const no="adyen-pe-dropdown",BD=Da(Mt,[Oe.SECONDARY],[Mt]),pt=`${no}__button`,zD=`${pt}--active`,UD=`${pt}-collapse-indicator`,YD=`${pt}--has-selection`,HD=`${pt}-icon`,GD=`${pt}-multiselect-counter`,VD=`${pt}--readonly`,ZD=`${pt}-text`,JD=`${pt}--valid`,QD=`${pt}--invalid`,vt=`${no}__element`,XD=`${vt}--active`,KD=`${vt}-checkbox`,qD=`${vt}-checkmark`,e0=`${vt}-content`,t0=`${vt}--disabled`,n0=`${vt}-icon`,o0=`${vt}--no-option`,wl=`${no}__list`,s0=`${wl}--active`,r0=`${no}--multiselect`,a0=({active:e,disabled:t,className:n,filterable:o,toggleButtonRef:s,...r})=>{const a=T(()=>o?F(BD,n):n,[n,o]);return o?l("div",{...r,className:a,ref:s}):l(et,{...r,className:a,disabled:t,variant:Oe.SECONDARY,ref:s})},i0=e=>{var p;const{i18n:t}=Q(),{active:n,filterable:o,multiSelect:s,placeholder:r,readonly:a,showList:i,withoutCollapseIndicator:c}=e,d=T(()=>(r==null?void 0:r.trim())||t.get("select.filter.placeholder"),[t,r]),g=T(()=>xe(s)?void 0:n[0],[n,s]),u=T(()=>{var m;return((m=g==null?void 0:g.name)==null?void 0:m.trim())||d},[g,d]);return l(a0,{active:n,disabled:a,"aria-disabled":a,"aria-expanded":i,"aria-haspopup":"listbox",className:F(pt,{[zD]:i,[YD]:!!n.length,[VD]:a,[QD]:e.isInvalid,[JD]:e.isValid}),filterable:o,onClick:a?void 0:e.toggleList,onKeyDown:a?void 0:e.onButtonKeyDown,role:o?"button":void 0,tabIndex:0,title:u,toggleButtonRef:e.toggleButtonRef,type:o?"":"button","aria-describedby":e.ariaDescribedBy,id:e.id??"",children:[i&&o?l("input",{"aria-autocomplete":"list","aria-controls":e.selectListId,"aria-expanded":i,"aria-owns":e.selectListId,autoComplete:"off",className:"adyen-pe-filter-input",onInput:e.onInput,placeholder:d,ref:e.filterInputRef,role:"combobox",type:"text"}):l(Z,{children:[(g==null?void 0:g.icon)&&l(xl,{className:HD,src:g.icon,alt:g.name.trim()}),l("span",{className:ZD,children:((p=g==null?void 0:g.selectedOptionName)==null?void 0:p.trim())||(g==null?void 0:g.name.trim())||d}),s&&e.appliedFilterNumber>0&&l("div",{className:GD,children:l(X,{el:eo.SPAN,variant:P.BODY,stronger:!0,children:e.appliedFilterNumber})})]}),!c&&l("span",{className:UD,children:l(mr,{role:"presentation"})})]})},c0=i0,l0=He(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e&&l("title",{children:e}),l("path",{fill:"currentColor",d:"M1.25 3.5c0-1.24 1-2.25 2.25-2.25h9c1.24 0 2.25 1 2.25 2.25v9c0 1.24-1 2.25-2.25 2.25h-9c-1.24 0-2.25-1-2.25-2.25v-9ZM12.06 6 11 4.94l-4 4-2-2L3.94 8 7 11.06 12.06 6Z"})]})),u0=l0,d0=He(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e&&l("title",{children:e}),l("path",{stroke:"currentColor",d:"M.5 4C.5 2 2.1.5 4 .5h8c2 0 3.5 1.6 3.5 3.5v8c0 2-1.6 3.5-3.5 3.5H4C2 15.5.5 13.9.5 12V4Z"})]})),h0=d0,g0=He(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"16",viewBox:"0 0 16 16",height:"16",children:[e&&l("title",{children:e}),l("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14.5 4.5a.7.7 0 0 0-1-1L6 10.9 2.5 7.5a.8.8 0 0 0-1 1l4 4a.8.8 0 0 0 1 0l8-8Z","clip-rule":"evenodd"})]})),m0=g0,p0=e=>e.multiSelect?l("span",{className:KD,children:e.selected?l(u0,{role:"presentation"}):l(h0,{role:"presentation"})}):null,Pl=e=>e.multiSelect?null:l("span",{className:qD,children:e.selected&&l(m0,{role:"presentation"})}),f0=e=>l(Z,{children:[p0(e),l("div",{className:e.contentClassName,children:[e.item.icon&&l(xl,{className:e.iconClassName,alt:e.item.name,src:e.item.icon}),l("span",{children:e.item.name})]}),Pl(e)]}),y0=({item:e,multiSelect:t,onKeyDown:n,onSelect:o,renderListItem:s,selected:r})=>{const a=!!e.disabled,i=xe(e.disabled)||null,c=F(vt,{[XD]:r,[t0]:a});return l("li",{"aria-disabled":a,"aria-selected":r,className:c,"data-disabled":i,"data-value":e.id,onClick:o,onKeyDown:n,title:e.name,role:"option",tabIndex:-1,children:s({item:e,multiSelect:t,selected:r,contentClassName:e0,iconClassName:n0})})},I0=Se(y0),_0=He(({active:e,commitActions:t,items:n,multiSelect:o,onKeyDown:s,onSelect:r,renderListItem:a,selectListId:i,showList:c,textFilter:d,toggleButtonRef:g,dismissPopover:u,setToTargetWidth:p,popoverClassNameModifiers:m,showOverlay:y,fitPosition:f},A)=>{const{i18n:I}=Q(),M=Ae(Te.down.xs),L=n.filter(D=>!d||D.name.toLowerCase().includes(d)),E=F(wl,{[s0]:c}),v=F(vt,o0),$=T(()=>K(a)?a:f0,[a]),b=T(()=>xe(o),[o]);return c?l(Fa,{classNameModifiers:m,actions:b?t:void 0,disableFocusTrap:!0,divider:!0,dismiss:u,dismissible:!1,open:c,setToTargetWidth:p,containerSize:No.MEDIUM,variant:De.POPOVER,targetElement:g,withContentPadding:!1,position:ae.BOTTOM,showOverlay:y&&M,fitPosition:f,children:l("ul",{className:E,id:i,ref:A,role:"listbox","aria-multiselectable":b,children:L.length?L.map(D=>l(I0,{item:D,multiSelect:b,onKeyDown:s,onSelect:r,renderListItem:$,selected:e.includes(D)},D.id)):l("div",{className:v,children:I.get("select.noOptionsFound")})})}):null}),T0=Se(_0),A0=({items:e,multiSelect:t,selected:n})=>{const o=N((c=Ce)=>{const d=Ce.concat(c??Ce).filter(Boolean),g=e.filter(p=>d.includes(p.id)),u=t?g:g.slice(0,1);return u.length?Object.freeze(u):Ce},[e,t]),[s,r]=B(o(n)),a=N((c=Ce)=>{const d=c.filter(g=>e.includes(g));r(d.length?Object.freeze(d):Ce)},[e,r]),i=N(c=>{r(d=>{const g=d.indexOf(c);if(g<0)return Object.freeze((t?d:Ce).concat(c));if(!t)return d;const u=[...d];return u.splice(g,1),u.length?Object.freeze(u):Ce})},[t,r]);return W(()=>r(o(n)),[o,n,r]),{resetSelection:a,select:i,selection:s}},S0=A0;const N0=({className:e,classNameModifiers:t=Ce,popoverClassNameModifiers:n,items:o=Ce,filterable:s=!1,multiSelect:r=!1,readonly:a=!1,onChange:i=oe,selected:c,name:d,isInvalid:g,isValid:u,placeholder:p,uniqueId:m,renderListItem:y,isCollatingErrors:f,setToTargetWidth:A,withoutCollapseIndicator:I=!1,showOverlay:M=!1,fitPosition:L})=>{const{resetSelection:E,select:v,selection:$}=S0({items:o,multiSelect:r,selected:c}),[b,D]=B(!1),[O,j]=B(""),te=k(null),Y=k(null),q=k(null),ne=k(`select-${Ia()}`),[re,Pe]=B(0),Ee=k(),ve=k(!0),ke=k(!1),ye=k($),de=k($),be=N(()=>{j(""),D(!1),b&&(E(ye.current),ve.current=!0)},[E,D,j,b]),ct=T(()=>F([no,{[r0]:xe(r)},...t.map(ee=>`${no}--${ee}`),e]),[e,t,r]),{commitAction:lt,commitActionButtons:Wt,committing:ds,resetCommitAction:co}=Rl({resetDisabled:!$.length}),tt=N(()=>{var ee;j(""),D(!1),co(),ve.current?ve.current=!1:(ee=q.current)==null||ee.focus()},[co,D,j]),gn=N(()=>{ye.current=$;const ee=`${$.map(({id:he})=>he)}`;i({target:{value:ee,name:d}})},[d,i,$]);W(()=>{switch(lt){case Me.APPLY:gn();break;case Me.CLEAR:E(),ke.current=!0;break}},[lt,gn,E]);const Bt=N(ee=>{var ge;ee.preventDefault();const he=ee.currentTarget&&((ge=Y==null?void 0:Y.current)!=null&&ge.contains(ee.currentTarget))?ee.currentTarget:null;if(he&&!he.getAttribute("data-disabled")){const Zu=he.getAttribute("data-value"),Ju=o.find(Qu=>Qu.id===Zu);v(Ju)}},[o,v]);W(()=>{de.current!==$&&(de.current=$,(!r||ke.current)&&(gn(),tt())),ke.current=!1},[tt,gn,r,$]),W(()=>{ds&&(Pe($.length),tt())},[ds,tt,Pe,$.length]);const Sr=N(ee=>{switch(ee.code){case z.ESCAPE:case z.TAB:b&&tt(),ve.current=ee.key===z.TAB;return;case z.ENTER:case z.SPACE:if(s&&b){if(ee.key===z.ENTER)if(O)Bt(ee);else break;return}break;case z.ARROW_DOWN:case z.ARROW_UP:break;default:return}ee.preventDefault(),D(!0)},[tt,s,Bt,b,D,O]);W(()=>{b&&(cancelAnimationFrame(Ee.current),Ee.current=requestAnimationFrame(()=>{var ee;e:{let he=(ee=Y.current)==null?void 0:ee.firstElementChild,ge;for(;he;){if(!(he.dataset.disabled&&he.dataset.disabled==="true")){if(he.getAttribute("aria-selected")==="true"){he.focus();break e}ge=ge||he}he=he.nextElementSibling}ge&&ge.focus()}}))},[b]);const nt=N(ee=>{const he=ee.target;switch(ee.code){case z.ESCAPE:ee.preventDefault(),tt();break;case z.ENTER:case z.SPACE:Bt(ee);break;case z.ARROW_DOWN:{ee.preventDefault();let ge=he.nextElementSibling;for(;ge;){if(!(ge.dataset.disabled&&ge.dataset.disabled==="true")){ge.focus();break}ge=ge.nextElementSibling}break}case z.ARROW_UP:{ee.preventDefault();e:{let ge=he.previousElementSibling;for(;ge;){if(!(ge.dataset.disabled&&ge.dataset.disabled==="true")){ge.focus();break e}ge=ge.previousElementSibling}s&&te.current&&te.current.focus()}break}case z.TAB:tt();break}},[tt,s,Bt]),we=N(ee=>{const he=ee.target.value;j(he.toLowerCase())},[j]),Nr=N(ee=>{ee.preventDefault(),D(he=>!he),b&&E(ye.current)},[D,b,E]);return W(()=>{var ee;b&&s&&((ee=te.current)==null||ee.focus())},[s,b]),l("div",{className:ct,children:[l(c0,{id:m??void 0,appliedFilterNumber:re,active:$,filterInputRef:te,filterable:s,isInvalid:g,isValid:u,onButtonKeyDown:Sr,onInput:we,multiSelect:r,placeholder:p,readonly:a,selectListId:ne.current,showList:b,toggleButtonRef:q,toggleList:Nr,withoutCollapseIndicator:I,ariaDescribedBy:!f&&m?`${m}${ta}`:""}),l(T0,{popoverClassNameModifiers:n,setToTargetWidth:A,dismissPopover:be,active:$,commitActions:Wt,items:o,multiSelect:r,onKeyDown:nt,onSelect:Bt,selectListId:ne.current,ref:Y,toggleButtonRef:q,renderListItem:y,showList:b,showOverlay:M,textFilter:O,fitPosition:L})]})},pr=N0,L0=He(({title:e,...t},n)=>l("svg",{...t,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e&&l("title",{children:e}),l("path",{d:"M5.56077 2.00011L2.56077 5.00011L5.56077 8.00011L4.50011 9.06077L0.439453 5.00011L4.50011 0.939453L5.56077 2.00011Z",fill:t.disabled?"#8D95A3":"#00112C"})]})),C0=L0,M0=He(({title:e,...t},n)=>l("svg",{...t,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e&&l("title",{children:e}),l("path",{d:"M0.439453 7.9999L3.43945 4.9999L0.439454 1.9999L1.50011 0.93924L5.56077 4.9999L1.50011 9.06056L0.439453 7.9999Z",fill:t.disabled?"#8D95A3":"#00112C"})]})),E0=M0;function kl({next:e,hasNext:t,hasPrev:n,page:o,prev:s,limit:r,limitOptions:a,onLimitSelection:i}){const{i18n:c}=Q(),d=T(()=>a&&Object.freeze(a.map(u=>({id:`${u}`,name:`${u}`}))),[a]),g=N(({target:u})=>{ue(u==null?void 0:u.value)||i==null||i(+u.value)},[i]);return l("div",{"aria-label":c.get("paginatedNavigation"),className:`adyen-pe-pagination ${F({})}`,children:[l("div",{className:"adyen-pe-pagination__context",children:[l("span",{children:[c.get("pagination.showing")," ",o]}),d&&i&&l("div",{className:"adyen-pe-pagination__limit-selector",children:l(pr,{setToTargetWidth:!0,filterable:!1,multiSelect:!1,items:d,onChange:g,selected:`${r??""}`})})]}),l("div",{className:"adyen-pe-pagination__controls",children:[l(et,{"aria-label":c.get("pagination.previousPage"),variant:Oe.TERTIARY,disabled:!n,iconButton:!0,classNameModifiers:["circle"].concat(n?Ce:"disabled"),onClick:s,children:l(C0,{disabled:!n})}),l(et,{"aria-label":c.get("pagination.nextPage"),variant:Oe.TERTIARY,disabled:!t,iconButton:!0,classNameModifiers:["circle"].concat(t?Ce:"disabled"),onClick:e,children:l(E0,{disabled:!t})})]})]})}const io="adyen-pe-transactions-table",v0=io+"__amount",b0=io+"__payment-method",D0=io+"__payment-method-logo-container",O0=io+"__payment-method-logo",Bi=io+"__date-and-payment-method";const $0=({paymentMethod:e,bankAccount:t})=>{const{i18n:n}=Q();return l("div",{className:b0,children:e||t?l(Z,{children:[l("div",{className:D0,children:l(Cl,{name:e?e.type:"bankTransfer",alt:e?e.type:"bankTransfer",folder:"logos/",className:O0})}),e?Ml(e):t==null?void 0:t.accountNumberLastFourDigits]}):l(ea,{label:n.get("noData"),variant:Xe.WHITE})})},zi=$0,R0=["dateAndPaymentMethod","createdAt","paymentMethod","transactionType","amount"],x0=({activeBalanceAccount:e,availableCurrencies:t,error:n,hasMultipleCurrencies:o,loading:s,onContactSupport:r,onRowClick:a,showDetails:i,showPagination:c,transactions:d,...g})=>{const{i18n:u}=Q(),{dateFormat:p,fullDateFormat:m}=ao(e==null?void 0:e.timeZone),[y,f]=B(),A=Ae(Te.up.sm),I=Ae(Te.up.md),M=Ae(Te.down.xs),L=T(()=>({dateAndPaymentMethod:M,createdAt:A,transactionType:I,paymentMethod:A}),[M,A,I]),E=T(()=>R0.map(D=>{const O=u.get(bl(D));return D==="amount"?{key:D,label:o?O:`${O} ${t&&t[0]?`(${Dc(t[0])})`:""}`,position:D==="amount"?ln.RIGHT:void 0,flex:A?1.5:void 0}:{key:D,label:O,visible:L[D]}}),[t,L,o,u,A]),v={title:"noTransactionsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},$=N(D=>{f(D??void 0)},[f]),b=T(()=>()=>l(vl,{error:n,onContactSupport:r,errorMessage:"weCouldNotLoadYourTransactions"}),[n,r]);return l("div",{className:io,children:l(to,{errorDisplay:b,error:n,columns:E,data:d,loading:s,outline:!1,onRowClick:{callback:a},onRowHover:$,emptyTableMessage:v,customCells:{dateAndPaymentMethod:({item:D})=>l("div",{className:Bi,children:[l(zi,{paymentMethod:D.paymentMethod,bankAccount:D.bankAccount}),l("span",{className:Bi,children:p(D.createdAt,Xb)})]}),transactionType:({item:D,rowIndex:O})=>{const j=`tooltip.${D.category}`;return D.category?u.has(j)?l(MD,{value:D.category,isContainerHovered:O===y}):D.category:null},createdAt:({value:D})=>l("span",{children:m(D)}),amount:({value:D})=>{const O=u.amount(D.value,D.currency,{hideCurrency:!o});return l("span",{className:v0,children:O})},paymentMethod:({item:D})=>l(zi,{paymentMethod:D.paymentMethod,bankAccount:D.bankAccount})},children:c&&l(to.Footer,{children:l(kl,{...g})})})})},w0=e=>{const[t,n]=B(0),o=N(()=>n(0),[n]),s=T(()=>e==null?void 0:e[t],[e,t]),r=T(()=>e&&e.length>1?Object.freeze(e.map(({description:i,id:c})=>({id:c,name:hd(i)}))):void 0,[e]),a=N(({target:i})=>{const c=i==null?void 0:i.value,d=e==null?void 0:e.findIndex(({id:g})=>g===c);d>=0&&n(d)},[e,n]);return{activeBalanceAccount:s,balanceAccountSelectionOptions:r,onBalanceAccountSelection:a,resetBalanceAccountSelection:o}},jl=w0;const Za="adyen-pe-balance-account-selector",P0=`${Za}__account-id`,k0=`${Za}__account-label`,j0=Se(({activeBalanceAccount:e,balanceAccountSelectionOptions:t,onBalanceAccountSelection:n})=>{const o=Ae(Te.down.xs),s=N(r=>l(Z,{children:[l("div",{className:r.contentClassName,children:[r.item.name&&l("span",{className:k0,children:r.item.name}),l("span",{className:P0,children:r.item.id})]}),Pl(r)]}),[]);return t&&t.length>1?l(pr,{popoverClassNameModifiers:[Za],onChange:n,filterable:!1,multiSelect:!1,selected:e==null?void 0:e.id,withoutCollapseIndicator:!0,items:t,renderListItem:s,showOverlay:o}):null}),Fl=j0,{getTimezoneTime:F0,getUsedTimezone:W0}=(()=>{const e=/(\d{2}):(\d{2})(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i,t=/^GMT|0(?=\d:00)|:00/g,n=lr();return{getTimezoneTime:(r,a=Date.now())=>{n.tz=r;const{formatted:i}=n(a),[c="",,,d=""]=(i==null?void 0:i.match(e))??Ce,g=Wr(i),u=`${c}${d&&` ${d}`}`,p=Yg(g).replace(t,"");return[u,p]},getUsedTimezone:r=>(n.tz=r,n.tz.current)}})(),B0=({timezone:e,withClock:t=!1}=U)=>{const n=T(()=>xe(t),[t]),o=T(()=>W0(e),[e]),s=k(oe),[r,a]=B(Date.now()),[i,c]=T(()=>F0(o,r),[r,o]);return T(()=>{s.current(),s.current=n?vc.subscribe(d=>{so(d)||a(d.now)}):oe},[a,n]),{clockTime:i,GMTOffset:c,timestamp:r,timezone:o}},z0=B0,U0=e=>Object.freeze({systemToTimezone:x(t=>Br(e,t)),timezoneToSystem:x(t=>xc(e,t)),timezoneOffset:x(t=>e(t).offset)}),Wl=(e,t,n=e)=>{const o=(s,r)=>{let a=s;ue(s)?a=n:_o(s)||(a=r??n);const i=on(e,a,t);return i===a?i:r??n};return s=>{const r=ce(()=>a);let a=o(s);return H({value:r,descriptor:x({...r,set(i){const c=a;a=o(i,a),c!==a&&(this.now=this.now)}})})}},Y0=(e,t)=>n=>K(n)?n.call(e,t):n,H0=e=>!it(e,"offsets"),G0=e=>it(e,"from"),fr=({now:e})=>e,V0=(()=>{const e=new Map;return t=>{let n=e.get(t);return G(n)&&(n=Object.freeze([0,0,t,0,0,0,-1]),e.set(t,n)),n}})(),mn=e=>{try{const t=e instanceof Date||+e===e?e:void 0,n=new Date(t).getTime();return isNaN(n)?void 0:n}catch{}},yr=e=>e.setHours(0,0,0,0),Z0=e=>(yr(e),e.setDate(1)),J0=e=>(yr(e),e.setMonth(0,1)),Q0=(e,t=e)=>0+(-t%7+(e-7))%7,X0=(e=U,t=U)=>{const n=Ao(e),o=Ao(t);return()=>{const s=lr(),r=ce(()=>u),a=ce(()=>s.tz.current),i=H({now:r,timezone:a,...U0(s)}),c=Y0(n,i);let{from:d,to:g,now:u}=U;const p=y=>{u=mn(y??Date.now())??u;e:{if(H0(n)){d=mn(c(n.from))??u,g=mn(c(n.to))??u;break e}let f,A,I;(I=G0(n))?(f=new Date(d=mn(c(n.from))??u),A=1):(f=new Date(g=mn(c(n.to))??u),A=-1),f=new Date(i.timezoneToSystem(f));const[M=0,L=0,E=0,v=0,$=0,b=0,D=0]=c(n.offsets);f.setFullYear(f.getFullYear()+M*A,f.getMonth()+L*A,f.getDate()+E*A),f.setHours(f.getHours()+v*A,f.getMinutes()+$*A,f.getSeconds()+b*A,f.getMilliseconds()+D*A);const O=mn(i.systemToTimezone(f))??u;I?g=O:d=O}d>g&&([d,g]=[g,d])},m=y=>{const f=s.tz,A=f.current;s.tz=y,f.current!==A&&p(u)};return p(),H({...o,from:ce(()=>d),now:{...r,set:p},timezone:{...a,set:m},to:ce(()=>g)})}},Ir=X0,Ja=1,K0=V0(7),q0=Wl(0,6,Ja),eO=(e=0)=>{const t=~~on(0,e,1/0)||0;return(n=Ja)=>{const o=t?{offsets:K0}:{to:fr},s=q0(n);return Ir({from:({now:r,systemToTimezone:a,timezoneToSystem:i})=>{const c=new Date(r),d=new Date(i(r)),g=c.getDay()-d.getDay();if(yr(c),g){const p=g>1?-1:g<-1?1:g;c.setDate(c.getDate()-p)}const u=Q0(s.value,c.getDay())-t*7;return c.setDate(c.getDate()+u),a(c)},...o},{firstWeekDay:s.descriptor})()}},Bl=eO,tO=Object.freeze([0,1,0,0,0,0,-1]),nO=(e=0)=>{const t=~~on(0,e,1/0)||0;return Ir({from:({now:o,systemToTimezone:s,timezoneToSystem:r})=>{const a=new Date(o),i=new Date(r(o)),c=a.getMonth()-i.getMonth();let d=t;return c&&(d+=c>1?-1:c<-1?1:c),Z0(a),a.setMonth(a.getMonth()-d),s(a)},...t?{offsets:tO}:{to:fr}})},zl=nO,oO=zl(1),sO=oO,rO=365,aO=1,iO=1,cO=Wl(aO,rO,iO),lO=e=>{const t=cO(e);return Ir({from:({now:n,systemToTimezone:o,timezoneToSystem:s})=>{const r=new Date(n),a=new Date(s(n)),i=r.getDate()-a.getDate();let c=t.value-1;return i&&(c+=i>1?-1:i<-1?1:i),yr(r),r.setDate(r.getDate()-c),o(r)},to:fr},{numberOfDays:t.descriptor})()},Ui=lO,uO=Bl(1),dO=uO,hO=zl(0),gO=hO,mO=Bl(0),pO=mO,fO=Ir({from:({now:e,systemToTimezone:t,timezoneToSystem:n})=>{const o=new Date(e),s=new Date(n(e)),r=o.getFullYear()-s.getFullYear();return J0(o),o.setFullYear(o.getFullYear()-r),t(o)},to:fr}),yO=fO,IO=()=>Object.freeze({"rangePreset.last7Days":Ui(7),"rangePreset.last30Days":Ui(30),"rangePreset.thisWeek":pO(),"rangePreset.lastWeek":dO(),"rangePreset.thisMonth":gO(),"rangePreset.lastMonth":sO(),"rangePreset.yearToDate":yO()}),_O=({now:e=Date.now(),options:t,selectedOption:n,timezone:o})=>{const{i18n:s}=Q(),[r,a]=B(),[i,c]=B(),[d,g]=B(),u=k(),p=k(),[m,y,f]=T(()=>{const $=s.get("rangePreset.custom"),b=Object.keys(t),D=Object.freeze(b.map(j=>s.get(j)));return[$,(j,te=D)=>{const Y=te.findIndex(q=>q===j);return t[b[Y]]},D]},[s,t]),[A,I]=B(n===m),M=T(()=>Object.freeze([...f,m]),[m,f]),L=T(()=>A?M:f,[A,f,M]),E=N($=>{const b=y($,f);b&&(a(b.from),c(b.to),I(!1),g($))},[m,y,d,f]),v=N(()=>{a(void 0),c(void 0),I(!0),g(m)},[m]);return T(()=>{n===m?g(m):E(n)},[]),T(()=>{var $;if(u.current!==e||p.current!==o){const b=Object.values(t);b.forEach(D=>{D.now=e,D.timezone=o}),u.current=e,p.current=($=b[0])==null?void 0:$.timezone,E(d)}},[e,o,t]),{customSelection:v,from:r,onSelection:E,options:L,selectedOption:d,to:i}},TO=({calendarRef:e,onTimeRangeSelected:t,timestamp:n,...o})=>{const{customSelection:s,from:r,onSelection:a,options:i,selectedOption:c,to:d}=_O(o),g=T(()=>Object.freeze(i.map(y=>({id:y,name:y}))),[i]),u=N(({target:y})=>a(y==null?void 0:y.value),[a]),p=k(!0),m=k(n);return W(()=>{e!=null&&e.current&&r&&d&&(p.current=!0,e.current.from=new Date(r),e.current.to=new Date(d))},[e,r,d]),W(()=>{m.current!==n&&(m.current=n,p.current?p.current=!1:s())},[s,n]),W(()=>{c&&(t==null||t(c))},[c,t]),l(pr,{setToTargetWidth:!0,items:g,filterable:!1,multiSelect:!1,onChange:u,selected:c})},AO=TO,Ke=(()=>{const e=o=>Object.freeze(oo(U,Object.fromEntries(Object.entries(o).map(([s,r])=>[s,{value:r}])))),t=o=>{try{return Object.getPrototypeOf(o)===U}catch{return!1}},n=(o,s)=>{if(!o)return e(x(s,Pt(o)));let r=s;return e({enumerable:!0,get:()=>r,set:a=>{r=o(a)}})};return Object.defineProperties(n,{is:{value:t},isObject:{value:or},immutable:{value:o=>n(!1,o)},mutable:{value:o=>n(void 0,o)},restricted:{value:()=>n(!1)}})})(),Ul=(()=>{const e=(n={},o=!1)=>{const s=H();for(const[r,a]of Object.entries(n)){try{const i=Ke.is(a),c=Ke.isObject(a);if(i||c){Object.defineProperty(s,r,i?a:e(a,o));continue}else if(o){Object.defineProperty(s,r,Ke.immutable(a));continue}}catch{}s[r]=a}return Ke((r={})=>Object.assign(s,r),s)};return Object.defineProperties(e,{unwrapped:{value:(n={},o=!1)=>{const s=e(n,o);return H({P:s}).P}}})})();var Qa=(e=>(e[e.DATE=0]="DATE",e[e.DAY_OF_WEEK=1]="DAY_OF_WEEK",e[e.MONTH_HEADER=2]="MONTH_HEADER",e))(Qa||{});const Yl="adyen-pe-calendar__cell adyen-pe-calendar__cell--date",Hl="adyen-pe-calendar__date",SO=(e=U,t)=>{const n=Ul.unwrapped({childClassName:Ke.mutable(Hl),childProps:{children:Ke.restricted(),className:""},className:Ke.mutable(Yl),props:{...e,children:Ke.restricted(),className:""}},!0);return t==null||t(Qa.DATE,n),n},NO=He(({grid:e,prepare:t,datetime:n,flags:o,index:s,label:r,onlyCellsWithin:a},i)=>{const c=o.WITHIN_BLOCK,d={"data-cursor-position":s,"data-within-month":c,tabIndex:-1};if(c){const f=o.WITHIN_RANGE;d["data-today"]=o.CURRENT,d["data-first-week-day"]=o.LINE_START,d["data-last-week-day"]=o.LINE_END,d["data-weekend"]=o.WEEKEND,d["data-first-month-day"]=o.BLOCK_START,d["data-last-month-day"]=o.BLOCK_END,d["data-within-range"]=f,f&&(d["data-range-end"]=o.RANGE_END,d["data-range-start"]=o.RANGE_START,d["data-selection-end"]=o.SELECTION_END,d["data-selection-start"]=o.SELECTION_START,d["data-within-selection"]=o.WITHIN_SELECTION,d["aria-selected"]=`${!!(o.SELECTION_END||o.SELECTION_START||o.WITHIN_SELECTION)}`),s===+e.cursor&&(d.ref=i)}const g=SO(d,t),{children:u,className:p,...m}=g.props||U,y=Ds(g.className,Yl,p);return l("td",{...m,...d,className:y,children:(!a||c)&&(()=>{const{children:f,className:A,...I}=g.childProps||U,M=Ds(g.childClassName,Hl,A);return l("time",{...I,className:M,dateTime:n,children:r})})()})}),LO=Se(NO,bs({block:bs.exclude,flags:e=>+e})),Gl="adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week",Vl="adyen-pe-calendar__day-of-week",CO=(e=U,t)=>{const n=Ul.unwrapped({childClassName:Ke.mutable(Vl),childProps:{children:Ke.restricted(),className:""},className:Ke.mutable(Gl),props:{...e,children:Ke.restricted(),className:""}},!0);return t==null||t(Qa.DAY_OF_WEEK,n),n},MO=({prepare:e,flags:t,labels:{long:n,short:o}})=>{const s={"aria-label":n,"data-first-week-day":t.LINE_START,"data-last-week-day":t.LINE_END,"data-weekend":t.WEEKEND,scope:"col"},r=CO(s,e),{children:a,className:i,...c}=r.props||U,d=Ds(r.className,Gl,i),{children:g,className:u,...p}=r.childProps||U,m=Ds(r.childClassName,Vl,u);return l("th",{...c,...s,className:d,children:l("abbr",{...p,className:m,children:o})})},EO=Se(MO,bs({block:bs.exclude,flags:e=>+e}));const vO=ro(({cursorRootProps:e,onlyCellsWithin:t,prepare:n,grid:o},s)=>l("ol",{className:"adyen-pe-calendar",role:"none",...e,children:o.map(r=>l("li",{className:"adyen-pe-calendar__month",role:"none",children:[l("div",{className:"adyen-pe-calendar__month-name",role:"none",children:l("time",{dateTime:r.datetime,"aria-hidden":"true",children:r.label})}),l("table",{role:"grid","aria-multiselectable":!0,"aria-label":`${r.label} calendar`,className:"adyen-pe-calendar__grid",style:{"--adyen-pe-calendar-rowspan":o.rowspan},children:[l("thead",{children:l("tr",{className:"adyen-pe-calendar__row",children:o.weekdays.map((a,i)=>l(EO,{grid:o,block:r,prepare:n,cell:i,...a},a.labels.long))})}),l("tbody",{children:r.map((a,i)=>l("tr",{className:"adyen-pe-calendar__row",children:a.map((c,d)=>l(LO,{ref:s,grid:o,block:r,prepare:n,cell:d,onlyCellsWithin:t,row:i,...c},`${r.month}:${c.timestamp}`))},`${r.month}:${i}`))})]})]},r.datetime))})),bO=Se(vO),DO=864e5,OO=["narrow","short","long"],Zl=[0,1,6],vn=[1,2,3,4,6,12],Yi=42,$O=[0,1],Xa=Symbol(),Ka=Symbol(),qa=Symbol(),Hi=[qa,Ka,Xa],Ht=Symbol(),Sn=Symbol(),Nn=Symbol(),RO=[Sn,Nn,Ht],Jl=Symbol(),Ql=Symbol(),Xl=Symbol(),Kl=Symbol(),ql=Symbol(),eu=Symbol(),tu=Symbol(),nu=Symbol(),ou=Symbol(),su=Symbol(),ei=Symbol(),ti=Symbol(),ru=Symbol(),Gi=Symbol(),Le=Symbol(),Vi=Symbol(),We=Symbol(),au=Symbol(),_s=Symbol(),Ts=Symbol(),xO=e=>(t,n,o)=>{if(qe(n)){const s=+n;if(s>=0&&s<t.length)return e(s)}return Reflect.get(t,n,o)},Zi=function*(e=ya,t){for(let n=0;n<this.length;n++)yield e.call(t,this[n],n,this)},wO=Object.freeze(H({[Symbol.iterator]:{value(){return Zi.call(this)}},map:{value(e,t){return[...Zi.call(this,e,t)]}}})),Lt=(e,t)=>K(e)?Lt({length:{get:e}},t):ns(e)?Lt({length:{value:e}},t):new Proxy(oo(wO,e),{get:xO(t),set:Fr}),Ji=Symbol("<<NO_EXCEPTION>>"),Qi=e=>{const t=[];return H({bind:x(o=>function(...s){let r=Ji;try{return t.push(o),o.call(this,...s)}catch(a){throw r=a}finally{t.pop(),t.length===0&&r===Ji&&e()}}),effect:x(e)})},PO=(()=>{const e=new Map,t=lr(),n=(o=Date.now())=>{const s=new Date(o),r=new Date(xc(t,o)),a=s.getDate()-r.getDate();if(a){const d=a>1?-1:a<-1?1:a;s.setDate(s.getDate()-d)}const i=Br(t,s.setHours(0,0,0,0)),c=Br(t,s.setDate(s.getDate()+1));return[i,c-i]};return o=>{t.tz=o;const s=t.tz.current;return e.get(s)??(()=>{let r=null,a=null,i=null;const c=()=>(t.tz=s,r??n()[0]),d=(f=Date.now())=>{t.tz=s,[r,a]=n(f)},{cancelSubscriptions:g,requestNotification:u,subscribe:p,on:m}=as({timestamp:c});m.resume=()=>{i=Ec.subscribe(f=>{if(so(f))return;const{now:A}=f;if(Ms(r)||Ms(a))return d(A);A-r<a||(d(A),u())})},m.idle=()=>{i==null||i(),r=a=i=null};const y=H({cancelSubscriptions:x(g),timestamp:ce(c),timezone:x(s),subscribe:x(p)});return e.set(s,y),y})()}})(),iu=PO,Xi=(e,t)=>{if(t>=e)return e;let n=Math.max(1,vn.indexOf(e));for(;--n&&t<vn[n];);return vn[n]},kO=e=>vn[Math.max(vn.indexOf(e),0)],Ki=(e=0)=>Object.freeze($O.map(t=>os(6-e+t,7))),Ln=e=>sn(e)?0:e-new Date(e).setHours(0,0,0,0),qi=e=>G(e)?e:new Date(e),na=(e,t)=>{if(sn(e)||sn(t))return 1/0;const n=new Date(e),o=new Date(t);return Math.abs(o.getMonth()-n.getMonth()+(o.getFullYear()-n.getFullYear())*12)},ec=(()=>{const e=[31,[29,28],31,30,31,30,31,31,30,31,30,31];return(t,n,o=0)=>{const s=t+o,r=os(s,12),a=n+Math.floor(s/12);return[r===1?e[1][(a%100?a%4:a%400)&&1]:e[r],r,a]}})();var Oo,Be,ze,Rn,xn;class jO{constructor(...t){S(this,Oo,1/0);S(this,Be,1/0);S(this,ze,-1/0);S(this,Rn,0);S(this,xn,0);if(t.length>=2){let n=new Date(t[0]).getTime();if(typeof t[1]!="symbol")_(this,ze,n||h(this,ze)),_(this,Be,new Date(t[1]).getTime()||h(this,Be)),h(this,Be)<h(this,ze)&&([zt(this,Be)._,zt(this,ze)._]=[h(this,ze),h(this,Be)]),_(this,xn,Ln(h(this,ze))),_(this,Rn,Ln(h(this,Be))),_(this,Oo,na(h(this,ze),h(this,Be))+1);else if(!isNaN(n))switch(t[1]){case ti:_(this,Be,n),_(this,Rn,Ln(h(this,Be)));break;case ei:default:_(this,ze,n),_(this,xn,Ln(h(this,ze)));break}}}get numberOfMonths(){return h(this,Oo)}get endTimestamp(){return h(this,Be)}get endTimestampOffset(){return h(this,Rn)}get startTimestamp(){return h(this,ze)}get startTimestampOffset(){return h(this,xn)}}Oo=new WeakMap,Be=new WeakMap,ze=new WeakMap,Rn=new WeakMap,xn=new WeakMap;const _r=(...e)=>{const t=new jO(...e);return H({from:{value:t.startTimestamp},to:{value:t.endTimestamp},offsets:{value:H({from:{value:t.startTimestampOffset},to:{value:t.endTimestampOffset}})},span:{value:t.numberOfMonths}})},$s=_r(),FO=()=>_r(Date.now(),ei),WO=()=>_r(Date.now(),ti),BO=(...e)=>e.length===0?$s:_r(...e);var pe=(e=>(e[e.CURRENT=1]="CURRENT",e[e.CURSOR=2]="CURSOR",e[e.WEEKEND=4]="WEEKEND",e[e.LINE_START=8]="LINE_START",e[e.LINE_END=16]="LINE_END",e[e.WITHIN_BLOCK=32]="WITHIN_BLOCK",e[e.BLOCK_START=64]="BLOCK_START",e[e.BLOCK_END=128]="BLOCK_END",e[e.WITHIN_RANGE=256]="WITHIN_RANGE",e[e.RANGE_START=512]="RANGE_START",e[e.RANGE_END=1024]="RANGE_END",e[e.WITHIN_SELECTION=2048]="WITHIN_SELECTION",e[e.SELECTION_START=4096]="SELECTION_START",e[e.SELECTION_END=8192]="SELECTION_END",e[e.ALL=16383]="ALL",e))(pe||{}),yn=(e=>(e[e.PREV=1]="PREV",e[e.BLOCK=0]="BLOCK",e[e.FRAME=2]="FRAME",e[e.PERIOD=4]="PERIOD",e))(yn||{}),oa=(e=>(e[e.PREV_PERIOD=5]="PREV_PERIOD",e[e.PREV_FRAME=3]="PREV_FRAME",e[e.PREV=1]="PREV",e[e.NEXT=0]="NEXT",e[e.NEXT_FRAME=2]="NEXT_FRAME",e[e.NEXT_PERIOD=4]="NEXT_PERIOD",e))(oa||{});const zO=(()=>{const e={},t=Object.keys(pe).filter(o=>isNaN(+o)),n=o=>o!=="ALL"&&qe(o)&&t.includes(o);return o=>{const s=o&pe.ALL;return e[s]||(e[s]=new Proxy(H({valueOf:{value:()=>s}}),ir({get:(r,a)=>{switch(a){case"valueOf":return r.valueOf;case Symbol.toStringTag:return"_";default:if(!n(a))return}return s&pe[a]?1:void 0}}))),e[s]}})(),cu=zO;var wn,$e,$o,Ro,xo,wo,ot,Ue,Zt,Pn,kn,jn,Jt,It,Po,Ie,me,_e,bt,Fn,Dt,ko,jo,Ot,_t,Fo,Wo,ws,Ps,ks,lu,Tt,Ut,js,uu,Re,Fe,Qt,mo,Bo,ra;const Cn=class Cn{constructor(){S(this,ks);S(this,Tt);S(this,js);S(this,Re);S(this,Qt);S(this,Bo);S(this,$e,0);S(this,$o,void 0);S(this,Ro,void 0);S(this,xo,-1);S(this,wo,-1);S(this,ot,void 0);S(this,Ue,void 0);S(this,Zt,void 0);S(this,Pn,!1);S(this,kn,void 0);S(this,jn,0);S(this,Jt,[]);S(this,It,h(Cn,wn));S(this,Po,12);S(this,Ie,void 0);S(this,me,void 0);S(this,_e,1);S(this,bt,void 0);S(this,Fn,iu());S(this,Dt,void 0);S(this,ko,-1/0);S(this,jo,1/0);S(this,Ot,-1/0);S(this,_t,1/0);S(this,Fo,1/0);S(this,Wo,0);w(this,"daysInWeek",0);w(this,"origin");w(this,"originTimestamp");S(this,ws,Lt(()=>this.daysInWeek,this.getDayOfWeekAtIndex.bind(this)));S(this,Ps,Lt(()=>h(this,_e),R(this,js,uu).bind(this)))}get fromTimestamp(){return h(this,ko)}get toTimestamp(){return h(this,jo)}get numberOfBlocks(){return h(this,Fo)}get blankSelection(){return h(this,Ie)===h(this,me)&&G(h(this,me))}get cursor(){return h(this,ot)??-1}get daysOfWeek(){return h(this,ws)}get dynamicBlockHeight(){return h(this,Pn)}set dynamicBlockHeight(t){ue(t)?_(this,Pn,!!t):jr(t)&&_(this,Pn,t)}set effect(t){ue(t)?_(this,kn,void 0):K(t)&&_(this,kn,t)}get firstWeekDay(){return h(this,jn)}set firstWeekDay(t){if(ue(t))this.firstWeekDay=0;else if(!Zl.includes(t)||h(this,jn)===_(this,jn,t))return}get frameBlocks(){return h(this,Ps)}get isAtEnd(){return!sn(h(this,_t))&&h(this,_t)===h(this,_e)-1}get isAtStart(){return!sn(h(this,Ot))&&h(this,Ot)===0}get locale(){return h(this,It)}set locale(t){const n=h(this,It);if(ue(t))_(this,It,h(Cn,wn));else if(typeof Intl<"u")try{_(this,It,new Intl.Locale(t).toString())}catch{_(this,It,h(Cn,wn))}h(this,It)!==n&&this.refreshFrame(!0)}get selectionStart(){return h(this,Ie)}get selectionEnd(){return h(this,me)}get size(){return h(this,_e)}set size(t){const n=Math.min(!ue(t)&&kO(t)||1,h(this,Po));h(this,_e)!==_(this,_e,n)&&(R(this,Bo,ra).call(this),this.refreshFrame())}get timeslice(){return h(this,bt)}set timeslice(t){if(t===h(this,bt)||ue(t)&&h(this,bt)===$s)return;const{from:n,to:o,span:s,offsets:r}=t;_(this,bt,t),_(this,ko,n-r.from),_(this,jo,o-r.to),_(this,Fo,s);const a=G(h(this,Ie))?h(this,Ie):Math.max(h(this,Ie),n),i=G(h(this,me))?h(this,me):Math.min(h(this,me),o);a===h(this,Ie)||i===h(this,me)?(_(this,Ie,a),_(this,me,i)):_(this,Ie,_(this,me,void 0)),this.reslice(),_(this,Po,Xi(12,this.numberOfBlocks)),_(this,_e,Xi(h(this,_e),this.numberOfBlocks)),this.shiftFrameToTimestamp(h(this,Zt))}set trackCurrentDay(t){jr(t)?t&&!h(this,Dt)?_(this,Dt,h(this,Fn).subscribe(this.refreshFrame.bind(this,!0))):!t&&h(this,Dt)&&(h(this,Dt).call(this),_(this,Dt,void 0)):ue(t)&&(this.trackCurrentDay=!1)}get units(){return h(this,Wo)}initialize(){this.withCurrentDayTimestamp(h(this,Fn).timestamp),this.timeslice=$s}refreshFrame(t=!1){var n;if(h(this,Jt).length=0,!(G(h(this,Ue))||t)){const o=this.getFrameBlockAtIndex(h(this,$e)),{from:s,to:r}=o.inner,[a]=R(this,Tt,Ut).call(this,this.getTimestampAtIndex(s+h(this,Ue)),!1);_(this,Ue,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(s),a));const i=s+h(this,Ue),c=on(s,i,r);if(c>i)return _(this,Ue,this.getUnitsForFrameBlockAtIndex(--zt(this,$e)._)+i-c),h(this,$e)>=0?this.refreshFrame():(_(this,$e,h(this,_e)-1),this.shiftFrameByOffset(-1,_s));if(c<i)return _(this,Ue,i-c-1),++zt(this,$e)._<h(this,_e)?this.refreshFrame():(_(this,$e,0),this.shiftFrameByOffset(1,_s));_(this,$o,s),_(this,Ro,r),_(this,Zt,R(this,Tt,Ut).call(this,this.getTimestampAtIndex(i),!1)[0]),_(this,Ue,this.getCursorBlockOriginTimestampOffset(h(this,Zt))),_(this,ot,s+h(this,Ue));const d=h(this,$e)>0?this.getFrameBlockAtIndex(0):o,g=h(this,$e)<h(this,_e)-1?this.getFrameBlockAtIndex(h(this,_e)-1):o;_(this,xo,d.inner.from),_(this,wo,g.inner.to),_(this,Wo,g.outer.to)}this.withCurrentDayTimestamp(h(this,Fn).timestamp),(n=h(this,kn))==null||n.call(this)}shiftFrameByOffset(t,n){if(t&&_o(t))switch(n){case au:return R(this,Qt,mo).call(this,t);case Ts:return R(this,Qt,mo).call(this,t*12);case _s:default:return R(this,Qt,mo).call(this,t*h(this,_e))}}shiftFrameCursor(t){switch(t){case Jl:return R(this,Re,Fe).call(this,-1);case ql:return R(this,Re,Fe).call(this,1);case su:return R(this,Re,Fe).call(this,-this.rowspan);case Kl:return R(this,Re,Fe).call(this,this.rowspan);case Xl:return R(this,Re,Fe).call(this,h(this,$o)-h(this,ot));case Ql:return R(this,Re,Fe).call(this,h(this,Ro)-h(this,ot));case tu:return R(this,Re,Fe).call(this,-(h(this,ot)%this.rowspan));case eu:return R(this,Re,Fe).call(this,this.rowspan-(h(this,ot)%this.rowspan+1));case ou:return R(this,Re,Fe).call(this,-this.getUnitsForFrameBlockAtIndex((h(this,$e)??0)-1));case nu:return R(this,Re,Fe).call(this,this.getUnitsForFrameBlockAtIndex(h(this,$e)??0))}if(!(t<0)&&t>=h(this,xo)&&t<=h(this,wo))return R(this,Re,Fe).call(this,t-h(this,ot))}shiftFrameToTimestamp(t){const n=R(this,Tt,Ut).call(this,t,!1)[0];_(this,Ue,this.getCursorBlockOriginTimestampOffset(_(this,Zt,this.originTimestamp=n))),this.reoriginate(),[zt(this,Ot)._,zt(this,_t)._]=this.getEdgeBlockOffsetsFromOrigin(),R(this,Bo,ra).call(this),this.refreshFrame(),R(this,Re,Fe).call(this,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(h(this,ot)),n))}clearSelection(){this.blankSelection||(_(this,Ie,_(this,me,void 0)),this.refreshFrame(!0))}getCursorOrderForTimeRelativeToSelectionEdge(t,n=Le){let o,s=!1;switch(n){case Le:o=h(this,Ie);break;case We:o=h(this,me),s=!0;break}if(G(o))return 0;const r=R(this,Tt,Ut).call(this,t,!1).reduce((i,c)=>i+c,0),a=this.getUnitsOffsetForTimestamp(o,r)*(s?-1:1);return a&&(a>0?1:-1)}updateSelection(t,n){const o=h(this,Ie),s=h(this,me),r=R(this,Tt,Ut).call(this,t,!1).reduce((a,i)=>a+i,0);switch(n===Gi&&(r<=o?n=We:r>=s&&(n=Le)),n){case Le:_(this,Ie,r),_(this,me,Math.max(h(this,Ie),s??r));break;case We:_(this,me,r),_(this,Ie,Math.min(o??r,h(this,me)));break;case Gi:case Vi:{let a=Math.abs(r-(o??r)),i=Math.abs(r-(s??r));n===Vi&&([a,i]=[i,a]),a>i?_(this,Ie,r):_(this,me,r);break}case ru:default:_(this,Ie,_(this,me,r));break}(h(this,Ie)!==o||h(this,me)!==s)&&this.refreshFrame(!0)}};wn=new WeakMap,$e=new WeakMap,$o=new WeakMap,Ro=new WeakMap,xo=new WeakMap,wo=new WeakMap,ot=new WeakMap,Ue=new WeakMap,Zt=new WeakMap,Pn=new WeakMap,kn=new WeakMap,jn=new WeakMap,Jt=new WeakMap,It=new WeakMap,Po=new WeakMap,Ie=new WeakMap,me=new WeakMap,_e=new WeakMap,bt=new WeakMap,Fn=new WeakMap,Dt=new WeakMap,ko=new WeakMap,jo=new WeakMap,Ot=new WeakMap,_t=new WeakMap,Fo=new WeakMap,Wo=new WeakMap,ws=new WeakMap,Ps=new WeakMap,ks=new WeakSet,lu=function(t){return on(h(this,Ot),t||0,h(this,_t)-h(this,_e)+1)},Tt=new WeakSet,Ut=function(t,n=!0){let o=new Date(t).getTime();if(isNaN(o))return R(this,Tt,Ut).call(this,Date.now());const{from:s,to:r}=h(this,bt),a=on(s,o,r);a!==o&&n?(o=mc(s,r),(isNaN(o)||sn(o))&&(o=a)):o=a;const i=Ln(o);return[o-i,i]},js=new WeakSet,uu=function(t){if(_o(t)&&t>=0&&t<h(this,_e)){if(!h(this,Jt)[t]){const n=this.getFrameBlockAtIndex(t);if(!n)return;const o=`${n.year}-${`0${1+n.month}`.slice(-2)}-01`,[s,r]=this.getFormattedDataForFrameBlock(new Date(o).setHours(12)),a=n.outer.from;h(this,Jt)[t]=Lt({datetime:x(r),label:x(s),length:x(Math.ceil(n.outer.units/this.rowspan)),month:x(n.month),year:x(n.year)},i=>{const c=i*this.rowspan;return Lt(this.rowspan,d=>{const[g,u]=n[d+c],[p,m]=this.getFormattedDataForBlockCell(new Date(g).setHours(12));return H({datetime:x(m),flags:x(cu(u)),index:x(a+d+c),label:x(p),timestamp:x(g)})})})}return h(this,Jt)[t]}},Re=new WeakSet,Fe=function(t){t!==0&&(_(this,Ue,h(this,Ue)+t),this.refreshFrame())},Qt=new WeakSet,mo=function(t){const n=R(this,ks,lu).call(this,t);n&&(this.shiftOrigin(n),_(this,Ot,h(this,Ot)-n),_(this,_t,h(this,_t)-n),_(this,$e,os(h(this,$e)-n,h(this,_e))),this.refreshFrame())},Bo=new WeakSet,ra=function(){const t=h(this,_e)-1,n=Math.min(t-this.origin%h(this,_e),h(this,_t))-t;n&&R(this,Qt,mo).call(this,n)},S(Cn,wn,"en-US");let sa=Cn;var Xt,Kt,Wn,zo,Bn,zn,Uo,Yo,Ho,Go,Un,Yn,Hn,Vo,aa,$t,In,Gn,As;class UO extends sa{constructor(){super();S(this,Vo);S(this,$t);S(this,Gn);S(this,Xt,7);S(this,Kt,[]);S(this,Wn,Ki(this.firstWeekDay));S(this,zo,void 0);S(this,Bn,-1/0);S(this,zn,1/0);S(this,Uo,1/0);S(this,Yo,void 0);S(this,Ho,void 0);S(this,Go,void 0);S(this,Un,void 0);S(this,Yn,void 0);S(this,Hn,void 0);w(this,"daysInWeek",h(this,Xt));this.initialize()}get fromTimestamp(){return h(this,Bn)}get toTimestamp(){return h(this,zn)}get numberOfBlocks(){return h(this,Uo)}get currentDayTimestamp(){return h(this,zo)}get dynamicBlockHeight(){return super.dynamicBlockHeight}set dynamicBlockHeight(n){const o=this.dynamicBlockHeight;super.dynamicBlockHeight=n,this.dynamicBlockHeight!==o&&this.refreshFrame(!0)}get rowspan(){return h(this,Xt)}get firstWeekDay(){return super.firstWeekDay}set firstWeekDay(n){const o=this.firstWeekDay;super.firstWeekDay=n,this.firstWeekDay!==o&&(h(this,Kt).length=0,_(this,Wn,Ki(this.firstWeekDay)),this.reoriginate(),this.refreshFrame())}getCursorBlockOriginTimestampOffset(n){return new Date(n).getDate()-1}getDayOfWeekAtIndex(n){if(!h(this,Kt)[n]){const o=new Date(this.getTimestampAtIndex(n));let s=0;h(this,Wn).includes(n)&&(s|=pe.WEEKEND),n===0?s|=pe.LINE_START:n===6&&(s|=pe.LINE_END);const r={};for(const a of OO)r[a]=x(o.toLocaleDateString(this.locale,{weekday:a}));h(this,Kt)[n]=H({flags:x(cu(s)),labels:x(H(r))})}return h(this,Kt)[n]}getEdgeBlockOffsetsFromOrigin(){return[R(this,Vo,aa).call(this,h(this,Bn)),R(this,Vo,aa).call(this,h(this,zn))]}getFormattedDataForBlockCell(n){const o=new Date(n).toISOString();return[Number(o.slice(8,10)).toLocaleString(this.locale),o.slice(0,10)]}getFormattedDataForFrameBlock(n){const o=new Date(n);return[o.toLocaleDateString(this.locale,{month:"long",year:"numeric"}),o.toISOString().slice(0,7)]}getFrameBlockAtIndex(n){const[o,s,r]=ec(this.origin,h(this,Un),n),a=n>0?this.getFrameBlockAtIndex(n-1).inner.to+1:h(this,Ho),i=a+o-1,c=Math.floor(a/7)*7,d=this.dynamicBlockHeight?Math.ceil((i+1)/7)*7:c+Yi,g=this.dynamicBlockHeight?d-c:Yi,u=new Proxy(H(),ir({get:(p,m,y)=>{if(qe(m)){const f=+m;if(_o(f)&&f>=0&&f<g){const A=c+f,I=this.getTimestampAtIndex(A),M=A%h(this,Xt);let L=I===this.currentDayTimestamp?pe.CURRENT:0;return A===this.cursor&&(L|=pe.CURSOR),h(this,Wn).includes(M)&&(L|=pe.WEEKEND),M===0?L|=pe.LINE_START:M===h(this,Xt)-1&&(L|=pe.LINE_END),A>=a&&A<=i&&(A===a?L|=pe.BLOCK_START:A===i&&(L|=pe.BLOCK_END),L|=pe.WITHIN_BLOCK),I>=this.fromTimestamp&&I<=this.toTimestamp&&(I===this.fromTimestamp&&(L|=pe.RANGE_START),I===this.toTimestamp&&(L|=pe.RANGE_END),L|=pe.WITHIN_RANGE),I>=h(this,Yn)&&I<=h(this,Hn)&&(I===h(this,Yn)&&(L|=pe.SELECTION_START),I===h(this,Hn)&&(L|=pe.SELECTION_END),L|=pe.WITHIN_SELECTION),[I,L]}}return Reflect.get(p,m,y)}}));return oo(u,{inner:{value:H({from:{value:a},to:{value:i},units:{value:o}})},month:{value:s},outer:{value:H({from:{value:c},to:{value:d-1},units:{value:g}})},year:{value:r}})}getUnitsForFrameBlockAtIndex(n){return ec(this.origin,h(this,Un),n)[0]}getUnitsOffsetForTimestamp(n,o){return Math.round((o-n)/DO)}reoriginate(){const n=new Date(this.originTimestamp),o=(8-(n.getDate()-n.getDay()+this.firstWeekDay)%7)%7;this.origin=n.getMonth(),_(this,Un,n.getFullYear()),this.originTimestamp=n.setDate(1),_(this,Ho,o),_(this,Go,n.setDate(1-o)),_(this,Yo,n.getDate())}reslice(){R(this,Gn,As).call(this),_(this,Bn,R(this,$t,In).call(this,super.fromTimestamp)),_(this,zn,R(this,$t,In).call(this,super.toTimestamp)),_(this,Uo,na(super.fromTimestamp,super.toTimestamp)+1)}shiftOrigin(n){this.originTimestamp=new Date(this.originTimestamp).setMonth(this.origin+n),this.reoriginate()}clearSelection(){super.clearSelection(),R(this,Gn,As).call(this),this.refreshFrame(!0)}getTimestampAtIndex(n){return new Date(h(this,Go)).setDate(h(this,Yo)+n)}updateSelection(n,o){super.updateSelection(n,o),R(this,Gn,As).call(this),this.refreshFrame(!0)}withCurrentDayTimestamp(n){_(this,zo,R(this,$t,In).call(this,n))}}Xt=new WeakMap,Kt=new WeakMap,Wn=new WeakMap,zo=new WeakMap,Bn=new WeakMap,zn=new WeakMap,Uo=new WeakMap,Yo=new WeakMap,Ho=new WeakMap,Go=new WeakMap,Un=new WeakMap,Yn=new WeakMap,Hn=new WeakMap,Vo=new WeakSet,aa=function(n){const o=na(n,this.originTimestamp);return n<this.originTimestamp?0-o:o},$t=new WeakSet,In=function(n){return G(n)||sn(n)?n:n-Ln(n)},Gn=new WeakSet,As=function(){_(this,Yn,R(this,$t,In).call(this,this.selectionStart)),_(this,Hn,R(this,$t,In).call(this,this.selectionEnd))};var dc,hc,le,st,C,rt,Ve,at,Ne,qt,Ye,Vn,At,St,Ze,ht,Zn,Fs,Rt,Je,Ws,xt,Jn,en,Zo,Bs,se,zs,Us,Ys,Hs,Gs,Vs,Zs,du,Js,hu,Qs,gu,Xs,Qn,Ss,tn,po,Jo,ia,Ks,mu,qs,pu,er,fu,tr,yu,Qo,ca,nr,Iu,nn,fo,Xo,la,Xn,Ns,Ko,ua,qo,da,es,ha,ts,ga;let YO=(se=class{constructor(){S(this,tn);S(this,Jo);S(this,Ks);S(this,qs);S(this,er);S(this,tr);S(this,Qo);S(this,nr);S(this,nn);S(this,Xo);S(this,Xn);S(this,Ko);S(this,qo);S(this,es);S(this,ts);w(this,"grid");w(this,"kill");S(this,le,U);S(this,st,!1);S(this,C,void 0);S(this,rt,void 0);S(this,Ve,void 0);S(this,at,!1);S(this,Ne,Sn);S(this,qt,!1);S(this,Ye,void 0);S(this,Vn,(dc=h(this,Ye))==null?void 0:dc.join(" "));S(this,At,void 0);S(this,St,void 0);S(this,Ze,void 0);S(this,ht,void 0);S(this,Zn,void 0);S(this,Fs,iu());S(this,Rt,[]);S(this,Je,void 0);S(this,Ws,new Proxy(Lt(()=>{var t;return((t=h(this,Je))==null?void 0:t.length)??0},R(this,Qo,ca).bind(this)),ir({get:(t,n,o)=>{var r,a;const s=((r=h(this,Je))==null?void 0:r.indexOf(n))??-1;return s>=0?(a=R(this,Qo,ca).call(this,s))==null?void 0:a[1]:Reflect.get(t,n,o)}})));S(this,xt,as({blocks:()=>{var t;return(t=h(this,C))==null?void 0:t.size},cells:()=>{var t;return(t=h(this,C))==null?void 0:t.units},controls:()=>lo(Hi,h(this,le).controls),cursor:()=>{var t;return(t=h(this,C))==null?void 0:t.cursor},from:()=>{var t;return(t=h(this,C))==null?void 0:t.selectionStart},highlight:()=>h(this,Ne),locale:()=>{var t;return(t=h(this,C))==null?void 0:t.locale},minified:()=>pn(h(this,le).minified),origin:()=>{var t;return(t=h(this,C))==null?void 0:t.getTimestampAtIndex(0)},to:()=>{var t;return(t=h(this,C))==null?void 0:t.selectionEnd},today:()=>h(this,Fs).timestamp}));S(this,Jn,(hc=h(this,xt))==null?void 0:hc.snapshot);S(this,en,Qi(()=>{var t;return h(this,Ze)&&((t=h(this,xt))==null?void 0:t.requestNotification())}));S(this,Zo,Qi(()=>{var t;return(t=h(this,Ze))==null?void 0:t.call(h(this,tn,po))}));S(this,Bs,oo(Lt(()=>{var t;return((t=h(this,C))==null?void 0:t.size)??0},t=>{var n;return(n=h(this,C))==null?void 0:n.frameBlocks[t]}),{config:{value:Object.defineProperties(t=>(t&&R(this,qs,pu).call(this,t),h(this,tn,po)),{cursorIndex:{get:()=>h(this,At),set:t=>{h(this,st)||(ue(t)?_(this,At,void 0):K(t)&&_(this,At,t))}},shiftFactor:{get:()=>h(this,St),set:t=>{h(this,st)||(ue(t)?_(this,St,void 0):K(t)&&_(this,St,t))}},watch:{get:()=>h(this,Ze),set:t=>{var n,o,s,r,a;if(!h(this,st))if(K(t)){if(_(this,Ze,t),!h(this,ht)){const i=(n=h(this,en))==null?void 0:n.bind(h(se,Xs).bind(this));i&&(_(this,ht,(o=h(this,en))==null?void 0:o.bind(oe)),_(this,Zn,(r=h(this,xt))==null?void 0:r.subscribe((s=h(this,Zo))==null?void 0:s.bind(i))),h(this,C)&&(h(this,C).effect=h(this,ht)))}if(!h(this,qt))return;_(this,qt,!1),(a=h(this,ht))==null||a.call(this)}else ue(t)&&_(this,Ze,void 0)}}})},controls:{value:h(this,Ws)},cursor:{value:Object.defineProperties(t=>R(se,Qn,Ss).call(this,n=>!!(n&&R(this,er,fu).call(this,n)))(t),{valueOf:{value:()=>{var t;return((t=h(this,C))==null?void 0:t.cursor)??-1}}})},highlight:{value:(()=>{const t=()=>h(this,rt)===h(this,Ve)&&G(h(this,Ve)),n=o=>s=>R(se,Qn,Ss).call(this,r=>{var a,i,c,d,g;if(!(h(this,st)||!h(this,Ne)||h(this,Ne)===Sn)){if(ue(r))return R(this,Xo,la).call(this);t()?(i=h(this,C))==null||i.updateSelection(r,ru):((a=h(this,C))==null||a.updateSelection(r,o),h(this,Ne)===Ht&&h(this,Ye)&&R(this,Xn,Ns).call(this,r,o===Le?We:Le,h(this,Ye))),_(this,rt,(c=h(this,C))==null?void 0:c.selectionStart),_(this,Ve,(d=h(this,C))==null?void 0:d.selectionEnd),(g=h(this,C))==null||g.shiftFrameToTimestamp(o===Le?h(this,rt):h(this,Ve))}})(s);return H({blank:{get:t},from:{get:()=>{var o;return((o=h(this,C))==null?void 0:o.selectionStart)??h(this,rt)},set:n(Le)},to:{get:()=>{var o;return((o=h(this,C))==null?void 0:o.selectionEnd)??h(this,Ve)},set:n(We)}})})()},rowspan:{get:()=>{var t;return((t=h(this,C))==null?void 0:t.rowspan)??0}},weekdays:{get:()=>{var t;return((t=h(this,C))==null?void 0:t.daysOfWeek)??h(se,Ys)}}}));this.grid=h(this,Bs),this.kill=R(this,tr,yu).bind(this)}},le=new WeakMap,st=new WeakMap,C=new WeakMap,rt=new WeakMap,Ve=new WeakMap,at=new WeakMap,Ne=new WeakMap,qt=new WeakMap,Ye=new WeakMap,Vn=new WeakMap,At=new WeakMap,St=new WeakMap,Ze=new WeakMap,ht=new WeakMap,Zn=new WeakMap,Fs=new WeakMap,Rt=new WeakMap,Je=new WeakMap,Ws=new WeakMap,xt=new WeakMap,Jn=new WeakMap,en=new WeakMap,Zo=new WeakMap,Bs=new WeakMap,zs=new WeakMap,Us=new WeakMap,Ys=new WeakMap,Hs=new WeakMap,Gs=new WeakMap,Vs=new WeakMap,Zs=new WeakSet,du=function(t){if(!qe(t)||!h(se,zs).test(t))return;const n=t.split(/\s+/);return Array.from({length:6},(o,s)=>parseInt(n[s]??"0"))},Js=new WeakSet,hu=function(t){switch(t&~yn.PREV){case yn.FRAME:return _s;case yn.PERIOD:return Ts;case yn.BLOCK:default:return au}},Qs=new WeakSet,gu=function(t){return t&yn.PREV?-1:1},Xs=new WeakMap,Qn=new WeakSet,Ss=function(t){var n;return((n=h(this,en))==null?void 0:n.bind(t))??t},tn=new WeakSet,po=function(){return{...h(this,le)}},Jo=new WeakSet,ia=function(){return new UO},Ks=new WeakSet,mu=function(t){return!!h(this,C)&&!(t>0?h(this,C).isAtEnd:h(this,C).isAtStart)},qs=new WeakSet,pu=function(t){var s,r;if(h(this,st))return;_(this,Ye,void 0);const n=t==null?void 0:t.highlight,o=pn(h(this,le).minified);if(qe(n)?_(this,Ye,R(s=se,Zs,du).call(s,n))&&_(this,Ne,Ht):_(this,Ne,lo(RO,n,h(this,Ne))),_(this,le,{...h(this,le),...t,blocks:lo(vn,t==null?void 0:t.blocks,h(this,le).blocks),controls:lo(Hi,t==null?void 0:t.controls,h(this,le).controls),firstWeekDay:lo(Zl,t==null?void 0:t.firstWeekDay,h(this,le).firstWeekDay),fixedBlockHeight:pn(t==null?void 0:t.fixedBlockHeight,h(this,le).fixedBlockHeight),highlight:h(this,Ne),minified:pn(t==null?void 0:t.minified,h(this,le).minified),trackCurrentDay:pn(t==null?void 0:t.trackCurrentDay,h(this,le).trackCurrentDay)}),!K(h(this,Ze))){h(this,C)?_(this,qt,!0):(_(this,C,h(this,Jo,ia)),R(this,qo,da).call(this),R(this,ts,ga).call(this),R(this,es,ha).call(this));return}(!h(this,C)||o!==h(this,le).minified)&&(_(this,C,h(this,Jo,ia)),h(this,C).effect=h(this,ht)),R(this,qo,da).call(this),(r=h(this,ht))==null||r.call(this)},er=new WeakSet,fu=function(t){if(t&&h(this,C)&&K(h(this,Ze))){if(t instanceof KeyboardEvent){switch(t.code){case z.ARROW_LEFT:h(this,C).shiftFrameCursor(Jl);break;case z.ARROW_RIGHT:h(this,C).shiftFrameCursor(ql);break;case z.ARROW_UP:h(this,C).shiftFrameCursor(su);break;case z.ARROW_DOWN:h(this,C).shiftFrameCursor(Kl);break;case z.HOME:h(this,C).shiftFrameCursor(t.ctrlKey?Xl:tu);break;case z.END:h(this,C).shiftFrameCursor(t.ctrlKey?Ql:eu);break;case z.PAGE_UP:t.shiftKey?h(this,C).shiftFrameByOffset(-1,Ts):h(this,C).shiftFrameCursor(ou);break;case z.PAGE_DOWN:t.shiftKey?h(this,C).shiftFrameByOffset(1,Ts):h(this,C).shiftFrameCursor(nu);break;case z.SPACE:case z.ENTER:return R(this,nn,fo).call(this),!0;default:return}return h(this,at)&&R(this,nn,fo).call(this,U),!0}if(t instanceof MouseEvent&&h(se,Us).includes(t.type)&&K(h(this,At))){const n=h(this,At).call(h(this,tn,po),t);if(!_o(n))return;const o=t.type==="click";if(!(o||h(this,at)))return;if(h(this,C).shiftFrameCursor(n),h(this,C).cursor===n)return o?R(this,nn,fo).call(this):R(this,nn,fo).call(this,U),!0}}},tr=new WeakSet,yu=function(){var t;h(this,st)||((t=h(this,Zn))==null||t.call(this),_(this,en,_(this,Zo,_(this,At,_(this,C,_(this,Ne,_(this,Vn,_(this,Jn,_(this,Ye,_(this,St,_(this,Zn,_(this,xt,_(this,ht,_(this,Ze,void 0))))))))))))),_(this,le,U),_(this,at,_(this,qt,!1)),_(this,st,!0))},Qo=new WeakSet,ca=function(t){var o,s;if(!h(this,Je)||t<0||t>=h(this,Je).length)return;const n=h(this,Je)[t];if(!h(this,Rt)[t]){const r=oa[n],a=R(o=se,Js,hu).call(o,r),i=R(s=se,Qs,gu).call(s,r);h(this,Rt)[t]=(...c)=>R(se,Qn,Ss).call(this,(...d)=>{var p;const g=R(this,Ks,mu).call(this,i);if(!(g&&d.length))return g;const u=R(this,nr,Iu).call(this,n,d[0]);return G(u)?!1:((p=h(this,C))==null||p.shiftFrameByOffset(i*u,a),!0)})(...c)}return[n,h(this,Rt)[t]]},nr=new WeakSet,Iu=function(t,n){if(!(h(this,C)&&K(h(this,Ze))))return;if(n instanceof MouseEvent){if(n.type!=="click")return}else if(n instanceof KeyboardEvent){if(!h(se,Hs).includes(n.code))return}else return;let o=1;if(K(h(this,St))){const s=Number(h(this,St).call(h(this,tn,po),n,t));o=Number.isInteger(s)&&s>=1?s:o}return o},nn=new WeakSet,fo=function(t){if(h(this,st)||!h(this,C))return;switch(h(this,Ne)){case Ht:case Nn:break;case Sn:default:return}const n=h(this,C).cursor,o=Math.max(h(this,C).getTimestampAtIndex(n),h(this,C).timeslice.from),s=Math.min(h(this,C).getTimestampAtIndex(n+1)-1,h(this,C).timeslice.to),r=h(this,Ye);if(h(this,Ne)===Nn||h(this,C).blankSelection||r)if(_(this,at,!(h(this,Ne)===Nn||r)),h(this,Ne)===Ht&&r){const a=s>=h(this,C).selectionEnd?Le:We;a===Le?h(this,C).updateSelection(s,We):h(this,C).updateSelection(o,Le),R(this,Xn,Ns).call(this,a===Le?h(this,C).selectionEnd:h(this,C).selectionStart,a,r)}else h(this,C).updateSelection(o,Le),h(this,C).updateSelection(s,We);else{const a=t===U;if(a||_(this,at,!1),o<=h(this,C).selectionStart){const i=new Date(h(this,C).selectionStart),c=Math.min(i.setDate(i.getDate()+1)-1,h(this,C).timeslice.to);o===h(this,C).selectionStart&&s<=c&&h(this,C).updateSelection(s,We),h(this,C).updateSelection(o,Le)}else{const i=new Date(h(this,C).selectionEnd),c=Math.max(i.setHours(0,0,0,0),h(this,C).timeslice.from);o<=h(this,C).selectionEnd&&o>=c&&h(this,C).updateSelection(o,Le),h(this,C).updateSelection(s,We)}if(a)return}_(this,rt,h(this,C).selectionStart),_(this,Ve,h(this,C).selectionEnd)},Xo=new WeakSet,la=function(){var t;(t=h(this,C))==null||t.clearSelection(),_(this,at,!1),_(this,rt,_(this,Ve,void 0))},Xn=new WeakSet,Ns=function(t,n,o){if(!h(this,C))return;const s=new Date(t),r=n===Le?-1:1,[a=0,i=0,c=0,d=0,g=0,u=0]=o??[];s.setFullYear(s.getFullYear()+a*r,s.getMonth()+i*r,s.getDate()+c*r),s.setHours(s.getHours()+d*r,s.getMinutes()+g*r,s.getSeconds()+u*r),h(this,C).updateSelection(s.getTime()-r,n)},Ko=new WeakSet,ua=function(){var t,n;h(this,rt)&&((t=h(this,C))==null||t.updateSelection(h(this,rt),Le)),h(this,Ve)&&((n=h(this,C))==null||n.updateSelection(h(this,Ve),We)),_(this,at,!1)},qo=new WeakSet,da=function(){h(this,C)&&(h(this,C).timeslice=h(this,le).timeslice,h(this,C).dynamicBlockHeight=!h(this,le).fixedBlockHeight,h(this,C).firstWeekDay=h(this,le).firstWeekDay,h(this,C).locale=h(this,le).locale,h(this,C).size=h(this,le).blocks,h(this,C).trackCurrentDay=h(this,le).trackCurrentDay,R(this,Ko,ua).call(this))},es=new WeakSet,ha=function(){var t,n,o,s,r;switch(h(this,Ne)){case Ht:!Pt((t=h(this,C))==null?void 0:t.blankSelection)&&h(this,Ye)&&R(this,Xn,Ns).call(this,(n=h(this,C))==null?void 0:n.selectionStart,We,h(this,Ye));break;case Nn:Pt((o=h(this,C))==null?void 0:o.blankSelection)||(r=h(this,C))==null||r.updateSelection(new Date((s=h(this,C))==null?void 0:s.selectionStart).setHours(23,59,59,999),We);break;case Sn:default:R(this,Xo,la).call(this);return}},ts=new WeakSet,ga=function(){var t,n;switch((t=h(this,xt))==null?void 0:t.snapshot.controls){case Xa:_(this,Je,h(se,Gs));break;case Ka:_(this,Je,h(se,Vs));break;case qa:default:_(this,Je,void 0)}h(this,Rt).length=0,h(this,Rt).length=((n=h(this,Je))==null?void 0:n.length)??0},S(se,Zs),S(se,Js),S(se,Qs),S(se,Qn),S(se,zs,/^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/),S(se,Us,["click","mouseover","pointerover"]),S(se,Ys,Lt(0,oe)),S(se,Hs,[z.ENTER,z.SPACE]),S(se,Gs,Object.keys(oa).filter(t=>isNaN(+t))),S(se,Vs,["PREV","NEXT"]),S(se,Xs,function(t){var a,i;if(so(t))return;let n=!1,o=!1,s=!1;const r=(a=h(this,Ye))==null?void 0:a.join(" ");for(const c of Object.keys(t))t[c]!==((i=h(this,Jn))==null?void 0:i[c])&&(c==="controls"?n=!0:c==="highlight"?o=!0:(c==="from"||c==="to")&&(s=!0));h(this,Vn)!==r&&(_(this,Vn,r),o=!0),_(this,Jn,t),h(this,at)&&!s&&R(this,Ko,ua).call(this),n&&R(this,ts,ga).call(this),o&&R(this,es,ha).call(this)}),se);const HO=(()=>Object.defineProperties(t=>{const{grid:n,kill:o}=new YO;return ns(t)?n.config({blocks:t}):K(t)?rr.then(()=>{n.config.watch=t}):n.config(t),H({grid:x(n),kill:x(o)})},{controls:{value:H({ALL:{value:Xa},MINIMAL:{value:Ka},NONE:{value:qa}})},highlight:{value:H({ONE:{value:Nn},MANY:{value:Ht},NONE:{value:Sn}})},slice:{value:Object.defineProperties(BO.bind(null),{FROM:{value:ei},TO:{value:ti},UNBOUNDED:{value:$s},SINCE_NOW:{get:FO},UNTIL_NOW:{get:WO}})}}))(),ut=HO,GO=({config:e,grid:{controls:t},renderer:n})=>e.controls===ut.controls.NONE||!K(n)?null:l(Z,{children:t.map(([o,s])=>n(o,s))}),VO=Se(GO),ZO=e=>{const t=N((n,o)=>{o instanceof Element&&o.setAttribute("tabindex","-1"),n instanceof Element&&(n.setAttribute("tabindex","0"),rr.then(()=>n==null?void 0:n.focus()))},[]);return Et(N((n,o)=>{try{e==null||e(n,o)}finally{t(n,o)}},[e]))},JO=ZO,QO=({blocks:e,controls:t,dynamicBlockRows:n,firstWeekDay:o,highlight:s,locale:r,onHighlight:a,originDate:i,renderControl:c,sinceDate:d,trackCurrentDay:g,untilDate:u,useYearView:p},m)=>{const{i18n:y}=Q(),[f,A]=B(performance.now()),I=T(()=>ut.slice(d,u),[d,u]),M=k(U),L=T(()=>t??(K(c)?ut.controls.MINIMAL:ut.controls.NONE),[t,c]),E=T(()=>s??(K(a)?ut.highlight.ONE:ut.highlight.NONE),[s,a]),{grid:v,kill:$}=T(()=>{const{grid:O,kill:j}=ut(function(){A(performance.now()),M.current=this,!(te===O.highlight.from&&Y===O.highlight.to)&&(te=O.highlight.from,Y=O.highlight.to,a==null||a(te,Y))});let{from:te,to:Y}=O.highlight;return O.config.cursorIndex=q=>{let ne=q.target;for(;ne&&ne!==q.currentTarget;){const re=Number(ne.dataset.cursorPosition);if(Number.isFinite(re))return re;ne=ne.parentNode}},O.config.shiftFactor=function(q){if(this.controls===ut.controls.MINIMAL)return q!=null&&q.shiftKey?12:q!=null&&q.altKey?this.blocks:1},{grid:O,kill:j}},[]),b=T(()=>{const O=j=>{v.cursor(j)};return{onClickCapture:O,onMouseOverCapture:O,onPointerOverCapture:O,onKeyDownCapture:j=>{v.cursor(j)&&j.preventDefault()}}},[v]),D=JO(N((O,j)=>{j instanceof Element&&j.removeAttribute("aria-selected"),O instanceof Element&&O.setAttribute("aria-selected","true")},[]));return fv(m,()=>{const{from:O,to:j}=(v==null?void 0:v.highlight)||U;return{clear:()=>{v!=null&&v.highlight&&(v.highlight.from=void 0)},get config(){return{...M.current??U}},get from(){return qi(O)},set from(te){v!=null&&v.highlight&&te&&(v.highlight.from=te.getTime())},get to(){return qi(j)},set to(te){v!=null&&v.highlight&&te&&(v.highlight.to=te.getTime())}}},[v,f]),W(()=>{v.config({blocks:e,controls:L,firstWeekDay:o,fixedBlockHeight:!n,highlight:E,locale:r??y.locale,minified:p,timeslice:I,trackCurrentDay:g})},[L,E,e,n,o,v,y,r,I,g,p]),W(()=>{const O=[].concat(i).slice(0,2).map(Number).filter(Boolean);return O[0]&&(v.highlight.from=+O[0]),O[1]&&(v.highlight.to=+O[1]),$},[]),{cursorElementRef:D,cursorRootProps:b,grid:v}},XO=QO,KO=ro((e,t)=>{const n=XO(e,t),o=n.grid.config();return l("div",{role:"none",children:[l(VO,{config:o,grid:n.grid,renderer:e.renderControl}),l(bO,{ref:n.cursorElementRef,config:o,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:e.onlyCellsWithin,prepare:e.prepare})]})}),qO=Se(KO),e$=(e,t)=>{const[n,o]=B(),s=Et(T(()=>{const r=a=>(...i)=>{const c=e(a,...i);return c&&dl(c,a)};return o(void 0),a=>o(a instanceof Element?()=>r(a):void 0)},[e,t]),t);return[n,s]},t$=e$,n$=e=>{const{i18n:t}=Q();return t$(N((n,o,s)=>{if(!(n instanceof HTMLElement))return null;if(K(e))return e(o,s);let r,a,i;switch(o){case"PREV":r="prev",a="previous",i=za;break;case"NEXT":r=a="next",i=mr;break;default:return null}const c=s();return c?l(et,{"aria-label":t.get(`calendar.${a}Month`),variant:Oe.TERTIARY,disabled:!c,classNameModifiers:["circle",r],iconButton:!0,onClick:s,children:l(i,{role:"presentation"})},o):null},[t,e]))},o$=n$;const s$=ro((e,t)=>{const{i18n:n}=Q(),[o,s]=o$(e.renderControl),[r,a]=B(performance.now()),i=T(()=>Pt(e.showTimezoneInfo),[e.showTimezoneInfo]),{clockTime:c,GMTOffset:d}=z0({timezone:e.timezone,withClock:i}),g=T(()=>F([{"adyen-pe-datepicker--with-timezone":i},"adyen-pe-datepicker"]),[i]),u=T(()=>i?{values:{offset:d,time:c}}:U,[d,c,i]),p=Et(oe,t),m=N(()=>{var y,f,A,I,M;a(performance.now()),(y=p.current)!=null&&y.from&&((f=p.current)!=null&&f.to)&&((M=e.onHighlight)==null||M.call(e,+((A=p.current)==null?void 0:A.from),+((I=p.current)==null?void 0:I.to)))},[a,e.onHighlight]);return l("div",{className:g,children:[l("div",{className:"adyen-pe-datepicker__selector-container",children:l(AO,{now:e.now,calendarRef:p,onTimeRangeSelected:e.onPresetOptionSelected,options:e.timeRangePresetOptions,selectedOption:e.selectedPresetOption,timestamp:r,timezone:e.timezone})}),l("div",{ref:s,role:"group",className:"adyen-pe-datepicker__controls","aria-label":n.get("calendar.controls")}),l(qO,{...e,ref:p,firstWeekDay:Ja,dynamicBlockRows:!0,onlyCellsWithin:!0,controls:e.controls??ut.controls.MINIMAL,highlight:e.highlight??ut.highlight.MANY,onHighlight:m,renderControl:o}),i&&l("div",{className:"adyen-pe-datepicker__timezone",children:n.get("calendar.timezone",u)})]})}),r$=s$;const a$="adyen-pe-filter-button";function i$({className:e,classNameModifiers:t=[],children:n,disabled:o,onClick:s,...r},a){const i=T(()=>Mn("",e)||"",[e]),c=T(()=>Oa(o),[o]),{classes:d,click:g}=$a(i,t,a$,c,s);return l("button",{className:d,ref:a,onClick:g,...r,children:l(X,{el:eo.SPAN,variant:P.BODY,stronger:!0,children:n})})}const c$=He(i$);function _u({onInput:e,onKeyUp:t,trimOnBlur:n,onBlurHandler:o,onBlur:s,onFocusHandler:r,errorMessage:a,...i},c){const{autoCorrect:d,classNameModifiers:g,isInvalid:u,isValid:p,readonly:m=!1,spellCheck:y,type:f,uniqueId:A,isCollatingErrors:I,disabled:M}=i;it(i,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const L=N(ne=>{e==null||e(ne)},[e]),E=N(ne=>{t&&t(ne)},[t]),v=N(ne=>{o==null||o(ne),n&&(ne.target.value=ne.target.value.trim()),s==null||s(ne)},[s,o,n]),$=N(ne=>{r==null||r(ne)},[r]),b=F("adyen-pe-input",[`adyen-pe-input--${f}`],i.className,{"adyen-pe-input--invalid":u,"adyen-pe-input--valid":p},g==null?void 0:g.map(ne=>`adyen-pe-input--${ne}`)),{classNameModifiers:D,uniqueId:O,isInvalid:j,isValid:te,isCollatingErrors:Y,...q}=i;return l(Z,{children:[l("input",{id:A,...q,type:f,className:b,readOnly:m,"aria-describedby":I?void 0:`${A}${ta}`,"aria-invalid":u,onInput:L,onBlur:v,onFocus:$,onKeyUp:E,disabled:M,ref:c}),u&&a&&l("span",{className:"adyen-pe-input__invalid-value",id:`${A}${ta}`,children:a})]})}_u.defaultProps={type:"text",classNameModifiers:[],onInput:()=>{}};const ma=ro(_u),l$=ro(function(t,n){return l(ma,{classNameModifiers:t.classNameModifiers,...t,ref:n,"aria-required":t.required,type:"text"})}),u$=e=>!e||gd(e),d$=(()=>{const e=t=>{const{editAction:n,name:o,onChange:s,onValueUpdated:r}=t,[a,i]=B(t.value),c=N(d=>{const g=d.target.value.trim();i(g),r(g)},[r]);return W(()=>{if(n===Me.CLEAR){const d="";i(d),r(d),s(d)}n===Me.APPLY&&s(a??"")},[a,n,s,r]),l(l$,{name:o,value:a,onInput:c})};return t=>l(e,{...t})})(),h$=({render:e,...t})=>{var te;const n=Ae(Te.down.xs),[o,s]=gt(!1),[r,a]=gt(!1),i=T(()=>t.isValueEmpty??u$,[t.isValueEmpty]),[c,d]=gt(i(t.value)),[g,u]=gt(!1),[p,m]=gt(!1),[y,f]=gt(i(t.value)),A=Os(),I=T(()=>e??d$,[e]),M=N(Y=>{const q=i(Y??void 0);d(q),f(Ms(Y)),m(g?Y!==t.value:!q)},[i,d,f,m,g,t.value]),{commitAction:L,commitActionButtons:E,committing:v,resetCommitAction:$}=Rl({applyDisabled:y||!p,resetDisabled:c}),[b,D]=T(()=>{const Y=q=>()=>{q!==o&&(q&&($(),m(!1),u(!1)),s(q),a(q))};return[Y(!1),Y(!0)]},[s,o,$,a,u,m]);W(()=>{if(r){const Y=i(t.value);a(!1),d(Y),u(!Y)}},[t.value,r,i,a,d,u]),W(()=>{v&&b(),d(c)},[v,b,d,c]);const O=Ae(Te.only.sm),j=Ae(Te.only.md);return l(Z,{children:[l("div",{className:`adyen-pe-filter adyen-pe-filter--${t.type}`,children:T(()=>l(c$,{classNameModifiers:[...t.appliedFilterAmount?["with-counter"]:[],...t.classNameModifiers??[],...o?["active"]:[],...c?[]:["has-selection"]],onClick:o?b:D,tabIndex:0,ref:A,children:l("div",{className:"adyen-pe-filter-button__default-container",children:[l(X,{el:eo.SPAN,variant:P.BODY,stronger:!0,className:"adyen-pe-filter-button__label",children:t.label}),!!t.appliedFilterAmount&&l("div",{className:"adyen-pe-filter-button__counter-wrapper",children:l(X,{el:eo.SPAN,variant:P.BODY,stronger:!0,className:"adyen-pe-filter-button__counter",children:t.appliedFilterAmount})})]})}),[t.appliedFilterAmount,t.classNameModifiers,t.label,o,c,b,D,A])}),o&&l(Fa,{actions:E,title:(te=t.title)==null?void 0:te.trim(),variant:De.POPOVER,modifiers:["filter"],open:o,"aria-label":`${t.label}`,dismiss:b,dismissible:!1,withContentPadding:t.withContentPadding??!0,divider:!0,targetElement:A,disableFocusTrap:!1,position:ae.BOTTOM,containerSize:t.containerSize,showOverlay:n,fitPosition:O||j,children:I({...t,editAction:L,onValueUpdated:M})})]})},Tu=Se(h$);var Mo=(e=>(e.FROM="from",e.TO="to",e))(Mo||{});const Au={month:"short",day:"numeric",year:"numeric"},g$=new Intl.DateTimeFormat("en-US",Au),Su=(e,t,n,o)=>{const s=n&&t(n),r=o&&t(o);if(s&&r)return`${s} - ${r}`;if(s)return e.get("filter.date.since",{values:{date:s}});if(r)return e.get("filter.date.until",{values:{date:r}})},mt=e=>{try{return new Date(e||"").toISOString()}catch{return""}},m$=(()=>{const e=({editAction:t,from:n,to:o,now:s,onChange:r,onValueUpdated:a,showTimezoneInfo:i,selectedPresetOption:c,timeRangePresetOptions:d,timezone:g,sinceDate:u,untilDate:p})=>{const{i18n:m}=Q(),{fullDateFormat:y}=ao(g),[f,A]=B(c),I=T(()=>[new Date(n),new Date(o)],[n,o]),M=k(),L=N((E,v)=>{a(Su(m,y,mt(E),mt(v)))},[m,y,a]);return W(()=>{var E,v,$;switch(t){case Me.APPLY:r({selectedPresetOption:f,[Mo.FROM]:mt((E=M.current)==null?void 0:E.from),[Mo.TO]:mt((v=M.current)==null?void 0:v.to)});break;case Me.CLEAR:($=M.current)==null||$.clear(),r()}},[t,r,f]),l(r$,{ref:M,now:s,originDate:I,onHighlight:L,onPresetOptionSelected:A,selectedPresetOption:c,timeRangePresetOptions:d,timezone:g,showTimezoneInfo:i,sinceDate:mt(u),untilDate:mt(p)})};return t=>l(e,{...t})})(),p$=(e,t,n)=>e.formatRange(t,n);function f$({title:e,from:t,to:n,selectedPresetOption:o,...s}){const{i18n:r}=Q(),{fullDateFormat:a}=ao(s.timezone),[i,c]=B(),[d,g]=B(),[u,p]=B(),m=N(I=>{const{from:M,to:L,selectedPresetOption:E}=I??U;try{c(i??E),g(mt(d??M)),p(mt(u??L))}finally{s.onChange({from:M,to:L,selectedPresetOption:E})}},[i,d,u,s]),[y,f]=T(()=>{let I=g$;try{I=new Intl.DateTimeFormat(r.locale,Au)}catch{}return[r.get("rangePreset.custom"),I]},[r]);W(()=>c(o),[o]),W(()=>g(mt(t||Date.now())),[t]),W(()=>p(mt(n||Date.now())),[n]);const A=T(()=>o===y&&d&&u?p$(f,new Date(d),new Date(u)):o??s.label,[y,f,d,u,o,s.label]);return l(Tu,{...s,from:t,to:n,type:"date",label:A,onChange:m,render:m$,selectedPresetOption:o,value:Su(r,a,t,n),withContentPadding:!1})}const y$=({timezone:e,canResetFilters:t,defaultParams:n,filters:o,nowTimestamp:s,refreshNowTimestamp:r,sinceDate:a,untilDate:i,updateFilters:c})=>{const{i18n:d}=Q(),g=T(()=>d.get(n.current.defaultTimeRange),[d]),[u,p]=B(g),m=N((y=U)=>{for(const[f,A]of Object.entries(y)){switch(f){case"selectedPresetOption":p(A||g);break;case Mo.FROM:c({[V.CREATED_SINCE]:A||n.current.defaultFilterParams[V.CREATED_SINCE]});break;case Mo.TO:c({[V.CREATED_UNTIL]:A||n.current.defaultFilterParams[V.CREATED_UNTIL]});break;default:return}r()}},[g,r,c]);return T(()=>!t&&p(g),[t,g]),l(f$,{label:d.get("dateRange"),name:V.CREATED_SINCE,sinceDate:a,untilDate:i??new Date(s).toString(),from:o[V.CREATED_SINCE],to:o[V.CREATED_UNTIL],selectedPresetOption:u,timeRangePresetOptions:n.current.timeRangeOptions,timezone:e,onChange:m,showTimezoneInfo:!0,now:s})},Nu=y$,I$=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{d:"M1.25 1.25H14.75V4.05C14.75 4.65117 14.5094 5.22128 14.0903 5.64033L10.08 9.65066V11.6212L7.34093 14.76H5.92V9.65066L1.90967 5.64033C1.49062 5.22128 1.25 4.65117 1.25 4.05V1.25ZM2.75 2.75V4.05C2.75 4.24883 2.82938 4.43872 2.97033 4.57967L7.42 9.02934V12.388L8.58 11.0588V9.02934L13.0297 4.57967C13.1706 4.43872 13.25 4.24883 13.25 4.05V2.75H2.75Z",fill:"#00112C"})}),_$=I$;function Lu(e){const{i18n:t}=Q(),n=Ae(Te.down.xs),[o,s]=B(!n);return W(()=>{s(!n)},[n]),l(Z,{children:[n&&l("div",{className:"adyen-pe-filter-bar__header",children:[l(X,{variant:P.SUBTITLE,children:t.get("transactions")}),l(et,{className:"adyen-pe-filter-bar__header-icon",variant:Oe.SECONDARY,iconButton:!0,onClick:()=>s(r=>!r),children:o?l(Tl,{}):l(_$,{})})]}),o&&l("div",{"aria-label":t.get("filterBar"),className:F("adyen-pe-filter-bar",{"adyen-pe-filter-bar__content--mobile":n}),children:[e.children,e.canResetFilters&&!!e.resetFilters&&l(et,{variant:Oe.TERTIARY,onClick:e.resetFilters,children:t.get("button.clearAll")})]})]})}function T$(e){return"callback"in e}function Cu(e){const[t,n]=B(null),o=N(a=>{var i;return a&&T$(e[a.selection.type])?{callback:(i=e==null?void 0:e[a.selection.type])!=null&&i.callback?c=>{var d,g;return(g=(d=e[a.selection.type])==null?void 0:d.callback)==null?void 0:g.call(d,{showModal:()=>n(a),...c})}:()=>{var c;return((c=e[a.selection.type])==null?void 0:c.showDetails)&&n(a)}}:(n(a),{})},[e]),s=N(()=>n(null),[]),r=T(()=>{const a={};for(const i in e){const c=e[i];a[i]=!(c!=null&&c.showDetails)||!!c.callback}return a},[e]);return{selectedDetail:t,updateDetails:o,detailsToShow:r,resetDetails:s}}const Mu=Object.freeze([10,20]),A$=100,Rs=10,pa=e=>{const t=~~e;return t===e&&t>0?Math.min(t,A$):Math.max(t,0)},S$=(e,t)=>{const n=e.length-1;if(n<0)return t;if(t<=e[0])return e[0];if(t>=e[n])return e[n];let o=0,s=0,r=n;for(;;){const a=e[o=mc(s,r)];if(s>r||t===a)return a;t>a?s=o+1:r=o-1}},N$=({preferredLimit:e=Rs,preferredLimitOptions:t})=>{const n=k(),o=k(),s=T(()=>{try{const a=new Set;for(const i of t){const c=pa(i);c>0&&a.add(c)}return Object.freeze([...a].sort((i,c)=>i-c))}catch{}},[t]);return{limit:T(()=>{let a=pa(e)||Rs;e:try{if(n.current===s)break e;const i=new Set(n.current=s);if(i.size===0){n.current=void 0;break e}if(o.current!==a)t:{if(i.size===i.add(a).size)break t;if(i.delete(a),i.size===i.add(o.current).size){if(ns(o.current)){a=o.current;break t}}else i.delete(o.current);a=S$(n.current,a)}}catch{}return o.current=a},[s,e]),limitOptions:s}},L$=N$,C$=e=>{const t=k(!1),n=T(()=>e,[e]);return W(()=>(t.current=!0,()=>{t.current=!1,n&&n()}),[n]),t},ni=C$,M$=(e,t,n)=>{const o=k(),s=k(),r=k(),a=k(),i=ni(N(()=>{var j;(j=o.current)==null||j.abort(),o.current=void 0},[])),[c,d]=B(a.current),[g,u]=gt(!1),p=T(()=>pa(n),[n]),{getPageCount:m,getPageParams:y,resetPageCount:f,updatePagination:A}=e,I=T(()=>t?j=>{var ne;if(!(p&&Number.isInteger(j)))return;const te=m(),Y=j<0?j+te+1:j;Y>0&&(te?Y<=te:Y===1)&&((ne=o.current)==null||ne.abort(),o.current=new AbortController,i.current&&(((a.current=Y)>1||te)&&d(a.current),(async()=>{const{signal:re}=o.current,Pe={...y(Y,p),limit:p,page:Y};try{const Ee=await t(Pe,re);if(!Ee||!i.current)return;const{size:ve,...ke}=Ee;A(Y,p,ke),s.current=a.current&&Math.max(a.current,s.current||-1/0),a.current&&a.current===s.current&&(r.current=ve),a.current===1&&ve>0&&d(a.current),a.current=void 0,u(!0)}catch(Ee){if(re.aborted)return;console.error(Ee)}})()))}:oe,[p,t]),M=N(()=>{c&&I(Math.min(c+1,m()))},[I,c]),L=N(()=>{c&&I(Math.max(c-1,1))},[I,c]),E=T(()=>m()||c||void 0,[I,g]),v=T(()=>!!(c&&E)&&c<E,[c,E]),$=T(()=>!!c&&c>1,[c]),b=T(()=>s.current?(s.current-1)*p+(r.current||0):0,[I,g]),D=T(()=>p&&Math.min(p,b||1/0)%p,[p,b]),O=N(()=>{f(),s.current=r.current=a.current=void 0,i.current&&d(a.current)},[f]);return W(()=>{i.current&&g&&u(!1)},[g]),{goto:I,hasNext:v,hasPrev:$,limit:p,next:M,page:c,pages:E,pageSize:D,prev:L,resetPagination:O,size:b}},Eu=M$,E$=e=>qe(e.next),v$=e=>qe(e.prev),b$=(e,t)=>{const n=T(()=>{const o=[],s=()=>o.length,r=()=>{o.length=0},a=d=>({cursor:o[d-1]}),i=(d,g)=>{const u=o[g-1];(g===1||g===(o.length||1)+1)&&G(u)&&(o[g-1]=d?decodeURIComponent(d):void 0)};return{getPageCount:s,getPageParams:a,resetPageCount:r,updatePagination:(d,g,u)=>{E$(u)&&i(u.next,d+1),v$(u)&&i(u.prev,d-1)}}},[]);return Eu(n,e,t)},D$=b$,O$=e=>e.next,$$=(e,t)=>{const n=T(()=>{let o=0;return{getPageCount:()=>o,getPageParams:(c,d)=>({offset:(c-1)*d}),resetPageCount:()=>{o=0},updatePagination:(c,d,g)=>{O$(g)&&g.next&&(o=Math.max(o,c+1))}}},[]);return Eu(n,e,t)},R$=$$,x$=(e=U,t=!0)=>{const n=k(t),o=k(Object.freeze({...e})),s=k(new Set(Object.keys(o.current))),r=k(new Set),a=ni(),[i,c]=T(()=>{const p=m=>{a.current&&g(m)};return[()=>p("reset"),m=>p(m)]},[a]),[d,g]=hr((p,m)=>{if(m==="reset")return r.current.clear(),o.current;const y={...m},f=[0];Object.keys(y).forEach((I,M)=>{if(!s.current.has(I))return;const L=p[I]??void 0,E=o.current[I]??void 0,v=y[I]??E;if(v===L)return;const $=Math.floor(M/32),b=1<<M%32;y[I]=v,f[$]|=b,r.current[v===E?"delete":"add"](I)});const A=f.some(I=>I)?n.current&&r.current.size===0?o.current:Object.freeze({...p,...y}):p;return n.current||(o.current=A,n.current=!0),A},o.current),u=T(()=>!!r.current.size,[]);return W(()=>{o.current=Object.freeze({...e}),s.current=new Set(Object.keys(o.current)),n.current=t,i()},[t,e,i]),{canResetState:u,defaultState:o.current,resetState:i,state:d,updateState:c}},w$=x$,P$=(e=U,t)=>{const{canResetState:n,defaultState:o,resetState:s,state:r,updateState:a}=w$(e,t);return{canResetFilters:n,defaultFilters:o,filters:r,resetFilters:s,updateFilters:a}},k$=P$;var fa=(e=>(e.NEXT="next",e.PREV="prev",e))(fa||{}),oi=(e=>(e.CURSOR="cursor",e.OFFSET="offset",e))(oi||{});const j$=["hasNext","hasPrevious"],vu=e=>{const t=Object.getOwnPropertyNames(e);return!j$.some(n=>t.includes(n))},F$=(e,t="data")=>{const n=e[t];if(vu(e)){const o=Object.fromEntries(Object.entries(e._links).map(([s,r])=>[s,r.cursor]));return{records:n,paginationData:o}}throw new TypeError("MALFORMED_PAGINATED_DATA")},W$=(e,t="data")=>{const n=e[t];if(!vu(e)){const{hasNext:o,hasPrevious:s}=e,r={[fa.NEXT]:xe(o),[fa.PREV]:xe(s)};return{records:n,paginationData:r}}throw new TypeError("MALFORMED_PAGINATED_DATA")},B$=({dataField:e="data",fetchRecords:t,filterParams:n=U,initialFiltersSameAsDefault:o=!0,initialize:s,onFiltersChanged:r,pagination:a,preferredLimit:i,preferredLimitOptions:c,enabled:d})=>{const[g,u]=B([]),[p,m]=gt(!0),[y,f]=B(),[A,I]=B(i),M=ni(),L=k(!0),E=k(1),v=k$(n,o),{limit:$,limitOptions:b}=L$({preferredLimit:A,preferredLimitOptions:c}),{defaultFilters:D,filters:O,updateFilters:j,...te}=v,[Y,q]=T(()=>a===oi.CURSOR?[F$,D$]:[W$,R$],[]),ne=N(ye=>I(ye),[]),{goto:re,page:Pe,pages:Ee,resetPagination:ve,...ke}=q(N(async({page:ye,...de},be)=>{try{if(f(void 0),E.current=ye,!M.current||m(!0))return;const ct=await t({...de,...O},be),{records:lt,paginationData:Wt}=Y(ct,e);return L.current&&(s==null||s([lt,Wt],v),L.current=!1),M.current&&(u(lt),m(!1)),{...Wt,size:lt==null?void 0:lt.length}}catch(ct){if(be!=null&&be.aborted)return;m(!1),f(ct),console.error(ct)}},[t,O,$]),$);return T(()=>{L.current=!0},[n]),T(()=>{ve(),E.current=1},[O,$,ve]),W(()=>{d&&re(E.current)},[re,d]),W(()=>{r==null||r(O)},[O]),{error:y,fetching:p,filters:O,goto:re,limitOptions:b,page:Pe,pages:Ee,records:g,updateFilters:j,updateLimit:ne,...te,...ke}},z$=B$,U$=e=>z$({...e,pagination:oi.CURSOR}),bu=U$,Y$="adyen-pe-transaction-totals",tc="adyen-pe-transaction-totals__item";const Tr="adyen-pe-expandable-card",rn=Tr+"__container",nc=rn+"--button",Rr=rn+"--filled",H$=rn+"--hidden",Du=rn+"--overlay",xr=Du,Ls=Tr+"__content",oc=Ls+"--expandable",sc=Tr+"__chevron",G$="adyen-pe-base-button";function V$({disabled:e=!1,onClick:t,classNameModifiers:n=[],type:o="button",children:s,className:r,fullWidth:a,...i},c){const d=T(()=>Mn("",r)||"",[r]),g=T(()=>Oa(e),[e]),{classes:u,click:p}=$a(d,[...n,...a?["full-width"]:[]],G$,g,t);return l("button",{className:u,type:o,disabled:e,onClick:p,ref:c,...i,children:s})}const rc=He(V$),Z$=({renderHeader:e,children:t,filled:n,fullWidth:o,...s})=>{const{i18n:r}=Q(),[a,i]=B(!1),c=N(()=>i(m=>!m),[i]),d=k(null),g=k(!1),u=k(a),p=wa(void 0,N(()=>{a&&(c(),g.current=!0)},[a,c]));return W(()=>{var m,y;a?(m=p.current)==null||m.focus():(u.current!==a&&!g.current&&((y=d.current)==null||y.focus()),g.current=!1),u.current=a},[a,p]),l("div",{className:Tr,children:t?l(Z,{children:[l(rc,{className:F(rn,nc,{[Rr]:n}),disabled:a,fullWidth:o,"aria-controls":xr,"aria-expanded":a,"aria-hidden":a,onClick:c,ref:d,"data-testid":"expand-button",...s,children:[l("span",{className:"adyen-pe-sr-only",children:r.get("expandableCard.expand")}),l("div",{className:F(Ls,oc),children:e}),l("div",{className:sc,children:l(mr,{role:"presentation"})})]}),l(rc,{id:xr,className:F(rn,nc,Du,{[Rr]:n,[H$]:!a}),disabled:!a,fullWidth:o,"aria-controls":xr,"aria-expanded":a,"aria-hidden":!a,onClick:c,ref:p,"data-testid":"collapse-button",...s,children:[l("span",{className:"adyen-pe-sr-only",children:r.get("expandableCard.collapse")}),l("div",{className:F(Ls,oc),children:[e,l("div",{children:t})]}),l("div",{className:sc,children:l(za,{role:"presentation"})})]})]}):l("div",{className:F(rn,{[Rr]:n}),...s,children:l("div",{className:Ls,children:e})})})},Ou=Z$,si="adyen-pe-amount-skeleton",J$=si+"--has-margin",Q$=si+"--loading";const X$=({hasMargin:e=!1,isLoading:t=!1,width:n})=>l("span",{className:F(si,{[Q$]:t,[J$]:e}),style:{width:n}}),K$=X$,un="adyen-pe-summary-item",$u=un+"__label-container",q$=$u+"--loading",eR=un+"--body",Ru=un+"__label",tR=un+"__placeholder",nR=un+"__amount",ac=He(({config:e,i18n:t,isSkeletonVisible:n,className:o,...s},r)=>l("span",{className:F($u,o,{[q$]:n}),style:{cursor:"default"},ref:r,...s,children:e.labelKey&&l(X,{variant:P.CAPTION,className:Ru,children:t.get(e.labelKey)})}));const xu=({columnConfigs:e,isHeader:t=!1,isHovered:n=!1,isSkeletonVisible:o=!1,isLoading:s=!1,widths:r,onWidthsSet:a,isEmpty:i})=>{const{i18n:c}=Q();W(()=>{const p=e.map(m=>{var y,f;return((f=(y=m.ref)==null?void 0:y.current)==null?void 0:f.getBoundingClientRect().width)??0});a(p)},[a]);const d=p=>({width:r&&r[p]?r[p]:"auto"}),g=Ae(Te.only.xs),u=N((p,m)=>p.valueHasLabelStyle?P.CAPTION:m&&!g?P.BODY:P.TITLE,[g]);return l("div",{className:F(un,{[eR]:!t}),children:e.map((p,m)=>{const y=p.getValue(),f=!!y&&y.length>12;return l("div",{children:[t&&(p.tooltipLabel?l(Wa,{content:c.get(`${p.tooltipLabel}`),isContainerHovered:n,children:l(ac,{config:p,i18n:c,isSkeletonVisible:o})}):l(ac,{config:p,i18n:c,isSkeletonVisible:o})),o?l(K$,{isLoading:s,hasMargin:p.hasSkeletonMargin,width:p.skeletonWidth+"px"}):i?l("span",{className:F([un,tR])}):l("div",{ref:p.ref,style:d(m),children:l(X,{variant:u(p,f),className:F({[Ru]:p.valueHasLabelStyle,[nR]:!p.valueHasLabelStyle}),children:y})})]},m)})})},ic=({total:e,hiddenField:t,isHeader:n=!1,isHovered:o=!1,isSkeleton:s=!1,isLoading:r=!1,widths:a,onWidthsSet:i})=>{const{i18n:c}=Q(),d=k(null),g=k(null),u=k(null),p=T(()=>{const m={labelKey:"totalIncoming",ref:d,skeletonWidth:80,getValue:()=>e&&c.amount(e.incomings,e.currency),tooltipLabel:"tooltip.totalIncoming"},y={labelKey:"totalOutgoing",ref:g,skeletonWidth:80,getValue:()=>e&&c.amount(e.expenses,e.currency),tooltipLabel:"tooltip.totalOutgoing"};return[...t!=="incomings"?[m]:[],...t!=="expenses"?[y]:[],{ref:u,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>e==null?void 0:e.currency}]},[e,t,c]);return l(xu,{isHovered:o,isEmpty:!e,columnConfigs:p,isHeader:n,isSkeletonVisible:s,isLoading:r,widths:a,onWidthsSet:i})};const oR="adyen-pe-base-list",wu=({children:e})=>l("ul",{className:oR,children:e}),Pu=()=>{const[e,t]=B([]),n=N(o=>{t(s=>o.every(r=>!r)?o:o.map((r,a)=>{const i=s[a];return!i||r>i?r:i}))},[]);return[e,n]},wr=Se(({totals:e,isLoading:t,hiddenField:n,fullWidth:o})=>{const[s,r]=Pu(),[a,i]=B(!1),[c,...d]=T(()=>e.map(g=>(g.key=`${g.currency}-${Math.random()}`,g)),[e]);return l(Ou,{renderHeader:l(ic,{isHovered:a,total:c,hiddenField:n,widths:s,isHeader:!0,isSkeleton:t,isLoading:t,onWidthsSet:r}),fullWidth:o,onMouseEnter:()=>i(!0),onFocus:()=>i(!0),onMouseLeave:()=>i(!1),onBlur:()=>i(!1),children:!t&&d.length&&l(wu,{children:d.map(g=>l("li",{children:l(ic,{isHovered:a,total:g,hiddenField:n,widths:s,onWidthsSet:r})},g.key))})})}),sR=Se(({availableCurrencies:e,isAvailableCurrenciesFetching:t,balanceAccountId:n,createdSince:o,createdUntil:s,categories:r,statuses:a,maxAmount:i,minAmount:c,currencies:d,fullWidth:g})=>{const{getTransactionTotals:u}=jt().endpoints,p=N(async()=>u==null?void 0:u(U,{query:{createdSince:o,createdUntil:s,categories:r,statuses:a,maxAmount:i,minAmount:c,currencies:d,balanceAccountId:n}}),[n,r,o,s,d,u,i,c,a]),{data:m,isFetching:y}=gr({fetchOptions:T(()=>({enabled:!!n&&!!u}),[n,u]),queryFn:p}),f=!n||y||t,I=N(()=>{if(!e||!m)return m==null?void 0:m.data;const L=e.map(E=>m.data.find($=>$.currency===E)||{currency:E,incomings:0,expenses:0});return L.concat(m.data.filter(E=>!L.includes(E)))},[e,m])()??[],M=Ae(Te.only.xs);return l("div",{className:Y$,children:M?l(Z,{children:[l("div",{className:tc,children:l(wr,{totals:I,isLoading:f,hiddenField:"expenses",fullWidth:g})}),l("div",{className:tc,children:l(wr,{totals:I,isLoading:f,hiddenField:"incomings",fullWidth:g})})]}):l(wr,{totals:I,isLoading:f,fullWidth:g})})}),rR=sR,aR="adyen-pe-balances",cc=({balance:e,isHeader:t=!1,isSkeleton:n=!1,isLoading:o=!1,widths:s,onWidthsSet:r,isEmpty:a})=>{const{i18n:i}=Q(),c=k(null),d=k(null),g=T(()=>[{labelKey:"accountBalance",ref:c,skeletonWidth:80,getValue:()=>e&&i.amount(e.value,e.currency)},{ref:d,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>e==null?void 0:e.currency}],[e,c,i]);return l(xu,{isEmpty:a,columnConfigs:g,isHeader:t,isSkeletonVisible:n,isLoading:o,widths:s,onWidthsSet:r})},iR=Se(({balanceAccountId:e,defaultCurrencyCode:t,onCurrenciesChange:n,fullWidth:o})=>{const{getBalances:s}=jt().endpoints,r=N(async()=>s==null?void 0:s(U,{path:{balanceAccountId:e}}),[e,s]),{data:a,error:i,isFetching:c}=gr({fetchOptions:T(()=>({enabled:!!e&&!!s}),[e,s]),queryFn:r}),d=!e||c,g=!!i||!(a!=null&&a.data.length),u=T(()=>(a==null?void 0:a.data)&&[...a.data].sort(({currency:A},{currency:I})=>{if(t){if(A===t)return-1;if(I===t)return 1}return A.localeCompare(I)}),[a==null?void 0:a.data,t]),[p,...m]=T(()=>(u==null?void 0:u.map(A=>(A.key=`${A.currency}-${Math.random()}`,A)))??[],[u]),[y,f]=Pu();return W(()=>{const A=new Set((u==null?void 0:u.map(({currency:I})=>I))||[]);n(Array.from(A),c)},[u,c,n]),l("div",{className:aR,children:l(Ou,{renderHeader:l(cc,{isEmpty:g,balance:p,widths:y,isHeader:!0,isSkeleton:d,isLoading:d,onWidthsSet:f}),filled:!0,fullWidth:o,children:m.length&&l(wu,{children:m.map(A=>l("li",{children:l(cc,{balance:A,widths:y,onWidthsSet:f})},A.key))})})})}),cR=Se(({placeholder:e,selection:t,selectionOptions:n,updateSelection:o})=>{const s=Ae(Te.down.xs),r=Ae(Te.only.sm),a=Ae(Te.only.md);return n&&n.length>1?l(pr,{onChange:o,filterable:!1,multiSelect:!0,placeholder:e,selected:t,withoutCollapseIndicator:!0,items:n,showOverlay:s,fitPosition:a||r}):null}),lc=cR,lR=e=>Object.freeze(e.map(t=>({id:t,name:t}))),uR=({filterParam:e,filterValues:t,filters:n,defaultFilters:o,updateFilters:s})=>{const r=T(()=>uo((n==null?void 0:n[e])??(o==null?void 0:o[e])??""),[o,n,e]),a=T(()=>t&&lR(t),[t]),i=N(({target:c})=>{s==null||s({[e]:(c==null?void 0:c.value)||""})},[s,e]);return{selection:r,selectionOptions:a,updateSelection:i}},Pr=uR,dR=[V.CURRENCIES,V.CATEGORIES,V.STATUSES],Cs=Object.freeze(Object.fromEntries(dR.map(e=>[e,""]))),hR=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],gR=["Booked","Pending","Reversed"],mR=e=>{const t=IO(),n="rangePreset.last30Days",{from:o,to:s}=t[n];return{defaultFilterParams:{...e==="transactions"&&{...Cs,[V.MIN_AMOUNT]:void 0,[V.MAX_AMOUNT]:void 0},[V.BALANCE_ACCOUNT]:void 0,[V.CREATED_SINCE]:new Date(o).toISOString(),[V.CREATED_UNTIL]:new Date(s).toISOString()},defaultTimeRange:n,timeRangeOptions:t}},pR=(e,t)=>{const[n,o]=B(Date.now()),s=mR(e),r=k(s),a=N(()=>o(Date.now()),[o]);return W(()=>{a()},[t,a]),{defaultParams:r,nowTimestamp:n,refreshNowTimestamp:a}},ku=pR,fR=(e,t)=>{const n=Pr({filterParam:V.CATEGORIES,filterValues:hR,defaultFilters:Cs,...e}),o=Pr({filterParam:V.STATUSES,filterValues:gR,defaultFilters:Cs,...e}),s=Pr({filterParam:V.CURRENCIES,filterValues:t,defaultFilters:Cs,...e});return{categoriesFilter:n,currenciesFilter:s,statusesFilter:o}},yR=fR;const xs=1e5,IR=({onChange:e,editAction:t,onValueUpdated:n,selectedCurrencies:o,availableCurrencies:s,value:r,...a})=>{const{i18n:i}=Q(),[c,d]=B(G(a.minAmount)?void 0:parseFloat(a.minAmount)/xs),[g,u]=B(G(a.maxAmount)?void 0:parseFloat(a.maxAmount)/xs),p=N(()=>{e({minAmount:c,maxAmount:g})},[g,c,e]),m=N(()=>{e({minAmount:void 0,maxAmount:void 0}),u(void 0),d(void 0)},[e]);W(()=>{t===Me.APPLY&&p(),t===Me.CLEAR&&m()},[p,m,t]);const y=T(()=>({minAmount:c,maxAmount:g}),[g,c]);return W(()=>{y.minAmount||y.maxAmount?n(`${y.minAmount}-${y.maxAmount}`):n(null)},[y,n]),l("div",{className:"adyen-pe-range-selection-filter",children:[l("div",{className:"adyen-pe-range-selection-filter__input",children:[l("label",{htmlFor:"minValue",children:`${i.get("from")}:`}),l(ma,{lang:i.locale,name:"minValue",type:"number",value:c,onInput:f=>{f.currentTarget&&d(f.currentTarget.value!==""?parseFloat(f.currentTarget.value):void 0)},min:0,isInvalid:c?c<0:!1,errorMessage:i.get("noNegativeNumbersAllowed")})]}),l("div",{className:"adyen-pe-range-selection-filter__input",children:[l("label",{htmlFor:"maxValue",children:`${i.get("to")}:`}),l(ma,{lang:i.locale,name:"maxValue",type:"number",value:g,onInput:f=>{f.currentTarget&&u(f.currentTarget.value!==""?parseFloat(f.currentTarget.value):void 0)},min:c,isInvalid:!G(g)&&!G(c)&&g<c,errorMessage:i.get("toValueShouldBeGreaterThanTheFromValue")})]})]})},_R=({updateFilters:e,selectedCurrencies:t,availableCurrencies:n,...o})=>{const{i18n:s}=Q(),[r,a]=B(),[i,c]=B(),d=T(()=>(t==null?void 0:t.length)===1||(n==null?void 0:n.length)===1,[n==null?void 0:n.length,t==null?void 0:t.length]),g=N((p,m)=>{const y=(t==null?void 0:t[0])||(n==null?void 0:n[0]),f=m&&y?{style:"currency",currency:y,currencyDisplay:"symbol"}:void 0;return p.toLocaleString(s.locale,f)},[n,s,t]),u=N(p=>{const{minAmount:m,maxAmount:y}=p??U;a({minAmount:m,maxAmount:y}),G(m)&&G(y)&&c(void 0),e({minAmount:G(m)?void 0:String(m*xs),maxAmount:G(y)?void 0:String(y*xs)})},[e]);if(r&&(r.minAmount||r.maxAmount)){const{minAmount:p,maxAmount:m}=r??{};!G(p)&&!G(m)&&p<=m?c(`${g(p,d)} ${s.get("to").toLowerCase()} ${g(m,d)}`):!G(p)&&G(m)&&p>=0?c(`${s.get("from")} ${g(p,d)}`):G(p)&&!G(m)?c(`${s.get("to")} ${g(m,d)}`):c(void 0)}return l(Tu,{...o,updateFilters:e,minAmount:o.minAmount,maxAmount:o.maxAmount,onChange:u,value:i,label:i||o.label,type:"text",containerSize:No.MEDIUM,selectedCurrencies:t,availableCurrencies:n,render:IR})},ju="adyen-pe-transactions",Fu=`${ju}-overview`,TR=`${ju}-details`,Wu=`${Fu}__summary`,uc=`${Wu}-item`,AR=24;const SR=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:o=Rs,onRecordSelection:s,showDetails:r,isLoadingBalanceAccount:a,onContactSupport:i,hideTitle:c})=>{const{i18n:d}=Q(),{getTransactions:g}=jt().endpoints,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}=jl(t),{defaultParams:y,nowTimestamp:f,refreshNowTimestamp:A}=ku("transactions",u),I=N(async({balanceAccount:nt,...we},Nr)=>g({signal:Nr,errorLevel:"error"},{query:{...we,statuses:uo(we[V.STATUSES]),categories:uo(we[V.CATEGORIES]),currencies:uo(we[V.CURRENCIES]),createdSince:we[V.CREATED_SINCE]??y.current.defaultFilterParams[V.CREATED_SINCE],createdUntil:we[V.CREATED_UNTIL]??y.current.defaultFilterParams[V.CREATED_UNTIL],sortDirection:"desc",balanceAccountId:(u==null?void 0:u.id)??"",minAmount:G(we.minAmount)?void 0:parseFloat(we.minAmount),maxAmount:G(we.maxAmount)?void 0:parseFloat(we.maxAmount)}}),[u==null?void 0:u.id,y,g]),M=T(()=>K(e)?e:void 0,[e]),L=T(()=>n?Mu:void 0,[n]),{canResetFilters:E,error:v,fetching:$,filters:b,limit:D,limitOptions:O,records:j,resetFilters:te,updateFilters:Y,updateLimit:q,...ne}=bu({fetchRecords:I,dataField:"data",filterParams:y.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:M,preferredLimit:o,preferredLimitOptions:L,enabled:!!(u!=null&&u.id)&&!!g}),[re,Pe]=B([]),[Ee,ve]=B(!1),ke=N((nt,we)=>{Pe(nt),ve(we)},[]),{categoriesFilter:ye,currenciesFilter:de,statusesFilter:be}=yR({filters:b,updateFilters:Y},re);W(()=>{Pe(void 0),Y({[V.BALANCE_ACCOUNT]:u==null?void 0:u.id,[V.CURRENCIES]:void 0})},[Y,u==null?void 0:u.id]),W(()=>{A()},[b,A]),W(()=>{be.updateSelection({target:{value:"Booked",name:"status"}})},[be]);const ct=Ae(Te.down.sm),lt=!!re&&re.length>1,Wt=T(()=>({showDetails:r??!0,callback:s}),[r,s]),ds=T(()=>({transaction:Wt}),[Wt]),{updateDetails:co,resetDetails:tt,selectedDetail:gn}=Cu(ds),Bt=N(nt=>{co({selection:{type:"transaction",data:{...nt,balanceAccount:u}},modalSize:"small"}).callback({id:nt.id})},[co,u]),Sr=T(()=>{const nt=new Date(f);return nt.setMonth(nt.getMonth()-AR),nt.toString()},[f]);return l("div",{className:Fu,children:[!c&&l(X,{variant:P.TITLE,medium:!0,children:d.get("transactionsOverviewTitle")}),l(Lu,{children:[l(Fl,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}),l(Nu,{canResetFilters:E,defaultParams:y,filters:b,nowTimestamp:f,refreshNowTimestamp:A,sinceDate:Sr,timezone:u==null?void 0:u.timeZone,updateFilters:Y}),l(lc,{...ye,placeholder:d.get("filterPlaceholder.category")}),l(_R,{availableCurrencies:re,selectedCurrencies:uo(b[V.CURRENCIES]),name:"range",label:d.get("amount"),minAmount:b[V.MIN_AMOUNT],maxAmount:b[V.MAX_AMOUNT],updateFilters:Y,onChange:Y}),l(lc,{...de,placeholder:d.get("filterPlaceholder.currency")})]}),l("div",{className:Wu,children:[l("div",{className:uc,children:l(rR,{availableCurrencies:re,isAvailableCurrenciesFetching:Ee,balanceAccountId:u==null?void 0:u.id,statuses:be.selection,categories:ye.selection,createdUntil:b[V.CREATED_UNTIL],createdSince:b[V.CREATED_SINCE],currencies:de.selection,minAmount:b[V.MIN_AMOUNT]?parseFloat(b[V.MIN_AMOUNT]):void 0,maxAmount:b[V.MAX_AMOUNT]?parseFloat(b[V.MAX_AMOUNT]):void 0,fullWidth:ct})}),l("div",{className:uc,children:l(iR,{balanceAccountId:u==null?void 0:u.id,onCurrenciesChange:ke,defaultCurrencyCode:u==null?void 0:u.defaultCurrencyCode,fullWidth:ct})})]}),l(El,{selectedDetail:gn,resetDetails:tt,className:TR,children:l(x0,{activeBalanceAccount:u,availableCurrencies:re,error:v,hasMultipleCurrencies:lt,limit:D,limitOptions:O,loading:$||a||!t,onContactSupport:i,onLimitSelection:q,onRowClick:Bt,showPagination:!0,transactions:j,...ne})})]})},NR="adyen-pe-transactions-overview-container";function LR({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:o,error:s}=ba(e.balanceAccountId);return l(_l,{balanceAccountsError:s,className:NR,errorMessage:"weCouldNotLoadTheTransactionsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:l(SR,{...e,balanceAccounts:t,isLoadingBalanceAccount:o})})}const CR=({i18n:e=new ur().i18n,children:t,commonProps:n,loadingContext:o,updateCore:s,externalErrorHandler:r})=>{const[a,i]=gt(!1),c=T(()=>n||{},[n]),d=T(()=>o??"",[o]);return W(()=>{(async()=>{await(e==null?void 0:e.ready),i(!0)})().catch()},[]),a?l(hl.Provider,{value:{i18n:e,commonProps:c,loadingContext:d,updateCore:s,externalErrorHandler:r},children:kt(t)}):null},MR=CR;var gc;class Bu{constructor(t){w(this,"_component");w(this,"_node",null);w(this,"_id",`${(gc=this.constructor)==null?void 0:gc.type}-${Ia()}`);w(this,"defaultProps",{});w(this,"props");w(this,"state",{});this.props=this.formatProps({...this==null?void 0:this.defaultProps,...t}),this.props.core.registerComponent(this)}formatProps(t){return t}formatData(){return{}}setState(t){this.state={...this.state,...t}}get data(){return{...this.formatData(),clientStateDataIndicator:!0}}render(){throw new Error("Component cannot be rendered.")}mount(t){const n=qe(t)?document.querySelector(t):t;if(!n)throw new Error("Component could not mount. Root node was not found.");return this._node&&this.unmount(),this._node=n,this._component=this.render(),Tn(this._component,n),this}update(t){return this.props=this.formatProps({...this.props,...t}),this._component=this.render(),this._node&&Tn(this._component,this._node),this}remount(t){if(!this._node)throw new Error("Component is not mounted.");const n=t||this.render();return Tn(n,this._node),this}unmount(){return this._node&&Tn(null,this._node),this}remove(){this.unmount(),this.props.core.remove(this)}}w(Bu,"type");const ER=Bu;class vR extends ER{constructor(n){super(n);w(this,"componentRef",null);w(this,"componentToRender",null);w(this,"elementRef");w(this,"onContactSupport");w(this,"setUIElementStatus");this.setState=this.setState.bind(this),this.onContactSupport=n.onContactSupport,this.elementRef=this}get isValid(){return!!this.state.isValid}get displayName(){return this.type}get accessibleName(){return this.displayName}get type(){var n;return(n=this.constructor)==null?void 0:n.type}formatProps(n){return n}formatData(){return{...this.state}}setState(n){this.state={...this.state,...n}}setStatus(n,o){var s,r;return(s=this.componentRef)!=null&&s.setStatus?this.componentRef.setStatus(n,o):(r=this.setUIElementStatus)==null||r.call(this,n),this}render(){const n=this.props.core,o=n.update.bind(n),s=this.props.onError||n.onError||null;return n.session.errorHandler=s,l(Tv,{session:n.session,children:l(MR,{i18n:n.localization.i18n,loadingContext:n.loadingContext,updateCore:o,externalErrorHandler:s,children:this.componentToRender&&l("div",{className:"adyen-pe-component",children:this.componentToRender()})})},performance.now())}}const Ar=vR;class zu extends Ar{constructor(n){super(n);w(this,"componentToRender",()=>l(LR,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}w(zu,"type","transactions");const bR=zu;class Uu extends Ar{constructor(n){super(n);w(this,"componentToRender",()=>l(Ga,{...this.props,type:"transaction",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}w(Uu,"type","transactionDetails");const DR=Uu,OR="adyen-pe-payouts-overview",$R="adyen-pe-payouts-details",RR=new Date("2024-04-16T00:00:00.000Z").toString(),Yu="adyen-pe-payouts-table",xR=`${Yu}__net-payout`;const Hu=["fundsCapturedAmount","adjustmentAmount","payoutAmount"],wR=["createdAt",...Hu],PR=e=>Hu.includes(e),kR=({error:e,loading:t,onContactSupport:n,onRowClick:o,showDetails:s,showPagination:r,data:a,...i})=>{const{i18n:c}=Q(),{dateFormat:d}=ao("UTC"),{refreshing:g}=jt(),u=T(()=>t||g,[t,g]),p=Ae(Te.up.sm),m=T(()=>({fundsCapturedAmount:p,adjustmentAmount:p}),[p]),y=T(()=>wR.map(I=>{var L,E,v,$;const M=c.get(bl(I));return PR(I)?{key:I,label:(E=(L=a==null?void 0:a[0])==null?void 0:L[I])!=null&&E.currency?`${M} (${Dc(($=(v=a==null?void 0:a[0])==null?void 0:v[I])==null?void 0:$.currency)})`:M,visible:m[I],position:ln.RIGHT}:{key:I,label:M,visible:m[I]}}),[c,m,a]),f={title:"noPayoutsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},A=T(()=>()=>l(vl,{error:e,errorMessage:"weCouldNotLoadYourPayouts",onContactSupport:n}),[e,n]);return l("div",{className:Yu,children:l(to,{errorDisplay:A,error:e,columns:y,data:a,loading:u,outline:!1,onRowClick:{callback:o},emptyTableMessage:f,customCells:{createdAt:({value:I})=>I?p?I&&d(I,qb):d(I,{month:"short",day:"numeric",year:void 0,hour:"2-digit",minute:"2-digit",hour12:!1}):null,fundsCapturedAmount:({value:I})=>I&&l("span",{children:c.amount(I.value,I.currency,{hideCurrency:!0})}),adjustmentAmount:({value:I})=>I&&l("span",{children:c.amount(I.value,I.currency,{hideCurrency:!0})}),payoutAmount:({value:I})=>I&&l("span",{className:F({[`${xR}--strong`]:!p}),children:c.amount(I.value,I.currency,{hideCurrency:p})})},children:r&&l(to.Footer,{children:l(kl,{...i})})})})};const jR=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:o=Rs,onRecordSelection:s,showDetails:r,isLoadingBalanceAccount:a,onContactSupport:i,hideTitle:c})=>{const{i18n:d}=Q(),{getPayouts:g}=jt().endpoints,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}=jl(t),{defaultParams:y,nowTimestamp:f,refreshNowTimestamp:A}=ku("payouts",u),I=N(async(de,be)=>g({signal:be,errorLevel:"error"},{query:{...de,createdSince:de[V.CREATED_SINCE]??y.current.defaultFilterParams[V.CREATED_SINCE],createdUntil:de[V.CREATED_UNTIL]??y.current.defaultFilterParams[V.CREATED_UNTIL],balanceAccountId:(u==null?void 0:u.id)??""}}),[u==null?void 0:u.id,y,g]),M=T(()=>K(e)?e:void 0,[e]),L=T(()=>n?Mu:void 0,[n]),{canResetFilters:E,error:v,fetching:$,filters:b,limit:D,limitOptions:O,records:j,resetFilters:te,updateFilters:Y,updateLimit:q,...ne}=bu({fetchRecords:I,dataField:"data",filterParams:y.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:M,preferredLimit:o,preferredLimitOptions:L,enabled:!!(u!=null&&u.id)&&!!g});W(()=>{A()},[b,A]);const re=T(()=>({showDetails:r??!0,callback:s}),[r,s]),Pe=T(()=>({payout:re}),[re]),{updateDetails:Ee,resetDetails:ve,selectedDetail:ke}=Cu(Pe),ye=N(de=>{Ee({selection:{type:"payout",data:{id:u==null?void 0:u.id,balanceAccountDescription:(u==null?void 0:u.description)||"",date:de.createdAt}},modalSize:"small"}).callback({balanceAccountId:(u==null?void 0:u.id)||"",date:de.createdAt})},[Ee,u]);return l("div",{className:OR,children:[!c&&l(X,{variant:P.TITLE,medium:!0,children:d.get("payoutsTitle")}),l(Lu,{children:[l(Fl,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}),l(Nu,{canResetFilters:E,defaultParams:y,filters:b,nowTimestamp:f,refreshNowTimestamp:A,sinceDate:RR,timezone:"UTC",updateFilters:Y})]}),l(El,{className:$R,onContactSupport:i,selectedDetail:ke,resetDetails:ve,children:l(kR,{loading:$||a||!t,data:j,showPagination:!0,onRowClick:ye,showDetails:r,limit:D,limitOptions:O,onContactSupport:i,onLimitSelection:q,error:v,...ne})})]})},FR="adyen-pe-payouts-overview-container";function WR({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:o,error:s}=ba(e.balanceAccountId);return l(_l,{balanceAccountsError:s,className:FR,errorMessage:"weCouldNotLoadThePayoutsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:l(jR,{...e,balanceAccounts:t,isLoadingBalanceAccount:o})})}class Gu extends Ar{constructor(n){super(n);w(this,"componentToRender",()=>l(WR,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}w(Gu,"type","payouts");const BR=Gu;class Vu extends Ar{constructor(n){super(n);w(this,"componentToRender",()=>l(Ga,{...this.props,type:"payout",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}w(Vu,"type","payoutDetails");const zR=Vu;async function UR(e){return await new Hc(e).initialize()}exports.AdyenPlatformExperience=UR;exports.Core=Hc;exports.PayoutDetails=zR;exports.PayoutsOverview=BR;exports.TransactionDetails=DR;exports.TransactionsOverview=bR;exports.all_locales=ov;exports.da_DK=wc;exports.de_DE=Pc;exports.en_US=Ta;exports.es_ES=kc;exports.fr_FR=jc;exports.it_IT=Fc;exports.nl_NL=Wc;exports.no_NO=Bc;exports.pt_BR=zc;exports.sv_SE=Uc;
11
+ `.replace(/\s+/,""),Eb=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],Hi=new Map,Dl=e=>e.tagName==="INPUT",Mb=e=>Dl(e)&&e.type==="radio",vb=e=>{const t=e.name,n=e.form,o=Hi.get(n);let s=o==null?void 0:o.get(t);return H(s)&&n&&(s=n.querySelector(`input[type=radio][name='${t}']:checked`)||null,Hi.set(n,(o||new Map).set(t,s))),s===e},bb=(e,t)=>{for(const n of t)if(n.type!=="attributes"){if(_i(n.addedNodes,o=>o instanceof Element&&la(o))||_i(n.removedNodes,o=>e.includes(o)))return!0}else{if(la(n.target))return!0;if(e.includes(n.target))return!0}return!1},Ja=(e=document.body,t)=>{if(H(e))return!1;if(ue(t))return!!document.activeElement&&Ja(e,document.activeElement);let n=t==null?void 0:t.parentNode;for(;n;){if(n===e)return!0;n=n==null?void 0:n.parentNode}return!1},Qa=e=>!(!e.matches(Va)||e!=null&&e.disabled||/^(true)?$/.test(e.getAttribute("inert"))||Dl(e)&&e.hidden),la=e=>!(Mb(e)&&!vb(e)||(e==null?void 0:e.tabIndex)<0||!Qa(e)),Db=()=>{const e=new MutationObserver(i=>bb(t,i)&&r()),t=[];let n=-1,o=null;const s=i=>{var d;if(i<0)return;const c=Math.min(i,t.length-1);n!==c&&(n=c),(d=t[n])==null||d.focus()},r=()=>{t.length=0,o instanceof Element&&(o.querySelectorAll(Va).forEach(i=>la(i)&&t.push(i)),Ja(o)&&(a.current=document.activeElement))},a=Object.create(null,{current:{get:()=>t[n]??null,set:i=>{if(i){if(!us(i))return s(t.indexOf(i));if(i===~~i)return s(ds(n+i,t.length))}}},root:{get:()=>o,set:i=>{i!==o&&(o&&e.disconnect(),o=i instanceof Element?i:null,t.length=0,o&&(e.observe(o,{attributeFilter:Eb,attributes:!0,childList:!0,subtree:!0}),r()))}},tabbables:{value:t}});return a},Ob=Db,$b=(e,t)=>{const n=k(!1),o=k(null),s=k(!1),r=T(Ob,[]),a=T(()=>{let g=null,u;return p=>{H(u)||cancelAnimationFrame(u);let m=p.target;for(;m&&m!==p.currentTarget;){if(Qa(m)){g=m,u=requestAnimationFrame(()=>{u=requestAnimationFrame(()=>{var y;o.current!==g&&g instanceof HTMLElement&&((y=o.current=g)==null||y.focus()),g=null,u=void 0})});return}m=m.parentNode}}},[]),i=L(g=>{r.current=o.current=g.target},[]),c=L(g=>{r.tabbables.includes(g.relatedTarget)||Ja(g.currentTarget,g.relatedTarget)||s.current||(n.current=!0,requestAnimationFrame(()=>{n.current&&t(n.current=!1)}))},[]),d=T(()=>{let g;return u=>{switch(u.code){case Y.ARROW_DOWN:case Y.ARROW_LEFT:case Y.ARROW_RIGHT:case Y.ARROW_UP:case Y.END:case Y.ESCAPE:case Y.HOME:case Y.PAGE_DOWN:case Y.PAGE_UP:case Y.TAB:cancelAnimationFrame(g),g=requestAnimationFrame(()=>{g=requestAnimationFrame(()=>{s.current=!1,g=void 0})}),s.current=!0;break}u.code===Y.TAB?(u.preventDefault(),r.current=u.shiftKey?-1:1):u.code===Y.ESCAPE&&t(!0)}},[]);return $t(L((g,u)=>{u instanceof Element&&(u.removeEventListener("keydown",d,!0),u.removeEventListener("focusin",i,!0),u.removeEventListener("focusout",c,!0),g.removeEventListener("click",a,!0)),g instanceof Element?(g.addEventListener("keydown",d,!0),g.addEventListener("focusin",i,!0),g.addEventListener("focusout",c,!0),g.addEventListener("click",a,!0),n.current=!1,r.root=g):r.root=null},[]),e)},Rb=$b,xb=(()=>{const e=new WeakMap,t=G({remove:$(function(){o(this.observerCallback)})}),n=s=>{let r=e.get(s);if(H(r)){const a=new IntersectionObserver(i=>{i.forEach(c=>{s&&s(c)})},{root:null,rootMargin:"",threshold:[1]});r=uo(t,{observerCallback:$(s),observer:$(a)}),e.set(s,r)}return r},o=s=>{const r=e.get(s);r==null||r.observer.disconnect(),e.delete(s)};return n})(),Br=xb,wb=({popover:e,offset:t,targetElement:n,position:o,variant:s,fullWidth:r})=>{const a=n==null?void 0:n.current;let i=0,c=0;const d=a.getBoundingClientRect(),g=document.body.getBoundingClientRect(),u=e==null?void 0:e.firstChild,p=g.left+g.width/2-u.offsetWidth/2,m=d.left+d.width/2-u.offsetWidth/2,y=d.top+d.height/2-u.offsetHeight/2;switch(o){case ie.BOTTOM:i=r?p:s===De.TOOLTIP?m+window.scrollX:(d==null?void 0:d.left)+window.scrollX,c=(d==null?void 0:d.top)+(d==null?void 0:d.height)+window.scrollY+t[1];break;case ie.BOTTOM_LEFT:i=(d==null?void 0:d.right)+window.scrollX-e.clientWidth,c=(d==null?void 0:d.top)+(d==null?void 0:d.height)+window.scrollY+t[1];break;case ie.TOP:i=s===De.TOOLTIP?m+window.scrollX:d.left+window.scrollX,c=(d==null?void 0:d.top)-(u==null?void 0:u.clientHeight)+window.scrollY-t[0];break;case ie.RIGHT:i=d.left+d.width+window.scrollX+t[2],c=s===De.TOOLTIP?y+window.scrollY:(d==null?void 0:d.top)-(d==null?void 0:d.height)/2+window.scrollY;break;case ie.LEFT:i=(d==null?void 0:d.left)-(e==null?void 0:e.clientWidth)+window.scrollX-t[3],c=s===De.TOOLTIP?y+window.scrollY:(d==null?void 0:d.top)+window.scrollY-(d==null?void 0:d.height)/2;break}const f=[i,c,0];return`position:absolute;inset:0 auto auto 0;margin: 0;transform: ${f.reduce((I,M,C)=>C===0?I+`${M}px,`:C===f.length-1?I+` ${M}px)`:I+` ${M}px,`,"translate3d(")};visibility:hidden`},Pb=(e,t,n,o,s,r,a,i,c)=>{const[d,g]=U(!0),[u,p]=U(i?!i:!!o),[m,y]=U(o||ie.TOP),[f,A]=U([]),I=L(C=>{if(C.intersectionRatio===1)return p(!0);if(!d&&C.intersectionRatio!==1){if(f&&f.length===(i?5:4)){const v=f.reduce((P,E)=>E[1]>P[1]?E:P,f[0]);y(v[0]),p(!0);return}switch(p(!1),m){case ie.TOP:A(v=>[...v,[ie.TOP,C.intersectionRatio]]),y(ie.BOTTOM);break;case ie.BOTTOM:A(v=>[...v,[ie.BOTTOM,C.intersectionRatio]]),y(i?ie.BOTTOM_LEFT:ie.RIGHT);break;case ie.BOTTOM_LEFT:A(v=>[...v,[ie.BOTTOM,C.intersectionRatio]]),y(ie.RIGHT);break;case ie.RIGHT:A(v=>[...v,[ie.RIGHT,C.intersectionRatio]]),y(ie.LEFT);break;case ie.LEFT:A(v=>[...v,[ie.LEFT,C.intersectionRatio]]),y(ie.TOP);break}}},[d,f,m,i]),M=k(I);return W(()=>{Br(M.current).remove(),M.current=I},[I]),$t(L((C,v)=>{var P,E;if(v&&(!o||i)&&Br(I).observer.unobserve(v),C&&t.current){if((!o||i)&&Br(I).observer.observe(C),!(C instanceof Element))return;const b=wb({popover:C,offset:e,targetElement:t,position:m,variant:n,fullWidth:a??!1}),D=u?b+";visibility:visible":b,j=r?D+";min-width:fit-content;width:"+((P=t.current)==null?void 0:P.clientWidth)+"px":D;C.setAttribute("style",`${j}`),d&&g(!1),n&&n===De.TOOLTIP&&s&&((E=s.current)==null||E.setAttribute("data-popover-placement",m))}},[e,t,m,o,n,I,u,d,r,s,a,i]),c)},kb=Pb,jb=e=>{const t=k();return $t(L((n,o)=>{o instanceof Element&&o.id===t.current&&(o.id=""),n instanceof Element&&(n.id=t.current||(t.current=Ed()))},[e]),e)},Ws=jb;const Fb=e=>{var o;let t;const n=(o=e.querySelector(`.${Ml}`))==null?void 0:o.querySelectorAll(Va);return n?(Array.prototype.some.call(n,s=>{if(Qa(s))return t=s}),t):null},Wb=e=>e===De.TOOLTIP?[10,3,5,5]:[15,15,15,15];function Xa({actions:e,disableFocusTrap:t=!1,actionsLayout:n=Ga.SPACE_BETWEEN,variant:o=De.TOOLTIP,title:s,open:r,dismissible:a,modifiers:i,divider:c,fitContent:d,withoutSpace:g,containerSize:u,position:p,targetElement:m,setToTargetWidth:y,dismiss:f,children:A,withContentPadding:I,classNameModifiers:M,showOverlay:C=!1,fitPosition:v,...P}){const E=T(()=>ee(f)&&Bt(a),[f,a]),b=Ws(),D=k(),j=L(fe=>{var de;f&&f(),fe&&((de=m==null?void 0:m.current)==null||de.focus())},[f,m]),R=L(fe=>{fe.code===Y.ESCAPE&&(f&&f(),(m==null?void 0:m.current).focus())},[f,m]),X=k(R),B=k(),se=Za(kb(Wb(o),m,o,p,b,y,C,v),f,o===De.TOOLTIP&&!r,bl.POPOVER),K=Rb(t?null:se,j),re=$t(L((fe,de)=>{de instanceof Element&&(de[En]=void 0,delete de[En]),fe instanceof Element&&(fe[En]=m.current,cancelAnimationFrame(B.current),B.current=requestAnimationFrame(()=>{if(D.current===r||!(D.current=r))return;const be=Fb(fe);be==null||be.focus()}))},[r,m]),t?se:K),Ee=Ws(re),Me=T(()=>({[`${Qe}--medium`]:u===Oo.MEDIUM,[`${Qe}--with-divider`]:!!c,[`${Qe}--wide`]:u===Oo.WIDE,[`${Qe}--fit-content`]:d,[`${Qe}--without-space`]:g,[`${Qe}--auto-width`]:C}),[u,c,g,d,C]);W(()=>{re.current&&(re.current[En]=m.current)},[m]),W(()=>(document.removeEventListener("keydown",X.current),document.addEventListener("keydown",X.current=R),()=>document.removeEventListener("keydown",X.current)),[R]);const ve=o===De.TOOLTIP?El:`${Qe} ${db}`,ke=o===De.TOOLTIP?Ml:`${Wr}`;return Nl(l(V,{children:r?l(V,{children:[C&&l("div",{className:"adyen-pe-popover__overlay"}),l("div",{id:"popover",ref:Ee,...P,className:F(ve,Me,M),style:{visibility:"hidden"},role:P.role??(o===De.POPOVER?"dialog":"tooltip"),children:[(s||E)&&l("div",{className:za(Yi,i,[Yi]),children:[s&&l("div",{className:hb,children:l(yb,{title:s})}),E&&l(pb,{onClick:f})]}),A&&l(V,{children:[l("div",{className:F(ke,{[`${Wr}--with-padding`]:I,[`${Wr}--overlay`]:C}),children:A}),o===De.TOOLTIP&&l("span",{"data-popover-placement":"hidden",ref:b,className:"adyen-pe-tooltip__arrow"})]}),e&&l("div",{className:gb,children:l(ub,{actions:e,layout:n})})]})]}):null}),document.getElementsByTagName("body")[0])}const Bb=(e=!1)=>{const[t,n]=U(e),o=L(r=>n(r),[]),s=L(()=>n(r=>!r),[]);return[t,o,s]},mt=Bb,zb=()=>{const[e,t]=mt(),n=L(()=>t(!0),[t]),o=L(()=>t(!1),[t]),s=L(r=>{switch(r.code){case Y.ESCAPE:o();break}},[o]);return{listeners:{onfocusoutCapture:o,onMouseLeave:o,onKeyDown:s,onFocus:n,onMouseEnter:n},isVisible:e}};const Ub=e=>typeof e=="string",Ka=({content:e,children:t,triggerRef:n,showTooltip:o,position:s,isContainerHovered:r=!1})=>{var g,u,p;const a=Ws(),i=Se(Ae.down.sm),{isVisible:c,listeners:d}=zb();return i?l(V,{children:t}):l(V,{children:[t?ml(t,{...t==null?void 0:t.props,role:"button",tabIndex:-1,ref:a,className:(g=t==null?void 0:t.props)!=null&&g.className?F(`${(u=t==null?void 0:t.props)==null?void 0:u.className} adyen-pe__tooltip-target`,{" adyen-pe__tooltip-target--hovered":r}):F("adyen-pe__tooltip-target",{"adyen-pe__tooltip-target--hovered":r}),...d,"aria-describedby":`tooltip-${(p=a.current)==null?void 0:p.id}`}):null,(c||o)&&l(Xa,{variant:De.TOOLTIP,targetElement:n??a,position:s,open:c||o,children:l(V,{children:e&&Ub(e)?l(q,{variant:w.CAPTION,children:e}):{content:e}})})]})},Yb=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{d:"M3.5 1.25C2.25736 1.25 1.25 2.25736 1.25 3.5V8.5C1.25 9.74264 2.25736 10.75 3.5 10.75H5.25V12.5C5.25 13.7426 6.25736 14.75 7.5 14.75H12.5C13.7426 14.75 14.75 13.7426 14.75 12.5V7.5C14.75 6.25736 13.7426 5.25 12.5 5.25H10.75V3.5C10.75 2.25736 9.74264 1.25 8.5 1.25H3.5ZM9.25 5.25H7.5C6.25736 5.25 5.25 6.25736 5.25 7.5V9.25H3.5C3.08579 9.25 2.75 8.91421 2.75 8.5V3.5C2.75 3.08579 3.08579 2.75 3.5 2.75H8.5C8.91421 2.75 9.25 3.08579 9.25 3.5V5.25ZM6.75 12.5V7.5C6.75 7.08579 7.08579 6.75 7.5 6.75H12.5C12.9142 6.75 13.25 7.08579 13.25 7.5V12.5C13.25 12.9142 12.9142 13.25 12.5 13.25H7.5C7.08579 13.25 6.75 12.9142 6.75 12.5Z"})}),Gb=Yb;const Hb=({text:e})=>{const[t,n]=U(e),o=L(async()=>{if(e)try{await navigator.clipboard.writeText(e),n("Copied")}catch(r){console.log(r)}},[e]),s=L(()=>{n(e)},[n,e]);return l(Ka,{content:t,children:l(et,{variant:Oe.TERTIARY,className:"adyen-pe-copy-text",onClick:o,onBlur:s,onMouseLeaveCapture:s,children:[l("span",{className:"adyen-pe-copy-text__information",children:e}),l(Gb,{fill:"#0070f5"})]})})},Zb=Hb,qa=(e,t,n)=>{if(!e)return ca;const o=ab(e,n);if(o)return o;switch(e.errorCode){case void 0:return{title:"somethingWentWrong",message:[t,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0};case"00_500":{const s=n?"theErrorCodeIs":"contactSupportForHelpAndShareErrorCode";return{title:"somethingWentWrong",message:[t,s],translationValues:{[s]:e.requestId?l(Zb,{text:e.requestId}):null},onContactSupport:n}}default:return ca}};function Ol({balanceAccountsError:e,children:t,className:n,errorMessage:o,isBalanceAccountIdWrong:s,onContactSupport:r}){const{hasError:a}=Ut();return l("div",{className:F(n,{[xv]:a}),children:a?l($n,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[o,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0}):e?l($n,{withImage:!0,centered:!0,...qa(e,"weCouldNotLoadYourBalanceAccounts",r)}):s?l($n,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[o,"theSelectedBalanceAccountIsIncorrect"]}):l(V,{children:t})})}const Vb=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M13.6569 4.07112C14.0474 3.6806 14.0474 3.04743 13.6569 2.65691C13.2664 2.26638 12.6332 2.26638 12.2427 2.65691L8.00005 6.89954L3.75745 2.65694C3.36692 2.26641 2.73376 2.26641 2.34324 2.65694C1.95271 3.04746 1.95271 3.68063 2.34324 4.07115L6.58584 8.31375L2.34319 12.5564C1.95266 12.9469 1.95266 13.5801 2.34319 13.9706C2.73371 14.3611 3.36688 14.3611 3.7574 13.9706L8.00005 9.72796L12.2427 13.9706C12.6333 14.3612 13.2664 14.3612 13.6569 13.9706C14.0475 13.5801 14.0475 12.947 13.6569 12.5564L9.41426 8.31375L13.6569 4.07112Z"})}),$l=Vb;function Jb({title:e,children:t,classNameModifiers:n=[],isOpen:o,onClose:s,isDismissible:r=!0,headerWithBorder:a=!0,size:i="fluid",...c}){const d=Se(Ae.down.xs),{i18n:g}=Q(),u=Za(null,s),p=L(m=>{m.key==="Escape"&&o&&r&&s()},[o,r,s]);return W(()=>(o?window.addEventListener("keydown",p):window.removeEventListener("keydown",p),()=>window.removeEventListener("keydown",p)),[o,p]),l(V,{children:o&&l("div",{className:F("adyen-pe-modal-wrapper",n.map(m=>`adyen-pe-modal-wrapper--${m}`),{"adyen-pe-modal-wrapper--open":o,"adyen-pe-modal-wrapper--dismissible":r}),role:"dialog","aria-modal":"true","aria-hidden":!open,...c,children:l("div",{className:F("adyen-pe-modal",{"adyen-pe-modal--fluid":i==="fluid","adyen-pe-modal--small":i==="small","adyen-pe-modal--large":i==="large","adyen-pe-modal--extra-large":i==="extra-large","adyen-pe-modal--full-screen":i==="full-screen"||d}),ref:u,children:[l("div",{className:F("adyen-pe-modal__header",{"adyen-pe-modal__header--with-title":e,"adyen-pe-modal__header--with-border-bottom":a}),children:[e&&l("div",{className:"adyen-pe-modal__header__title",children:e}),r&&l(et,{onClick:s,variant:Oe.TERTIARY,iconButton:!0,classNameModifiers:["circle"],className:"adyen-pe-modal__header-icon","aria-label":g.get("dismiss"),children:l($l,{})})]}),l("div",{className:"adyen-pe-modal__content",children:t})]})})})}const Qb=Ye(({title:e,...t},n)=>l("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:[e&&l("title",{children:e}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.47 4.97c.3-.3.77-.3 1.06 0L8 9.44l4.47-4.47a.75.75 0 1 1 1.06 1.06l-5 5c-.3.3-.77.3-1.06 0l-5-5a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})]})),Cr=Qb,Xb=Ye(({title:e,...t},n)=>l("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:[e&&l("title",{children:e}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.53 11.03c-.3.3-.77.3-1.06 0L8 6.56l-4.47 4.47a.75.75 0 1 1-1.06-1.06l5-5c.3-.3.77-.3 1.06 0l5 5c.3.3.3.77 0 1.06Z",clipRule:"evenodd"})]})),ei=Xb,ti="adyen-pe-accordion",ni=ti+"__header",Kb=ni+"-container",qb=ni+"-controller",eD=ti+"__content";function Zi({children:e,classNames:t,header:n,headerInformation:o}){var c;const[s,r]=U(!1),a=k(null),i=L(()=>{r(!s)},[s]);return l("div",{className:F(ti,t),children:[l("h3",{className:ni,children:[l("button",{id:"accordion-controller","aria-controls":"accordion-content",className:Kb,onClick:i,"aria-expanded":s,children:l("div",{className:qb,children:[n,s?l(ei,{height:8,width:15}):l(Cr,{height:8,width:15})]})}),o&&l("div",{children:o})]}),l("div",{role:"region",id:"accordion-content","aria-labelledby":"accordion-controller",style:{maxHeight:s?(c=a==null?void 0:a.current)==null?void 0:c.offsetHeight:0},className:eD,children:l("div",{ref:a,children:e})})]})}const Yt="adyen-pe-card",Rl=`${Yt}__body`,xl=`${Yt}__header`,tD=`${Yt}__title`,nD=`${Yt}__subtitle`,oD=`${xl}-content`,sD=`${Rl}--with-title`,rD=`${Yt}--no-outline`,aD=`${Yt}--filled`,iD=`${Yt}__footer`;const cD=({title:e,subTitle:t,children:n,footer:o,el:s,renderHeader:r,renderFooter:a,filled:i,noOutline:c,classNameModifiers:d})=>{const g=s||"header";return l("section",{className:F(Yt,{[aD]:i,[rD]:c},d),children:[(e||r)&&l(g,{className:xl,children:(e||r)&&l("div",{className:oD,children:[r||l("span",{className:tD,children:e}),t&&l("div",{className:nD,children:t})]})}),l("div",{className:F(Rl,{[sD]:e||r}),children:n}),(o||a)&&l("footer",{className:iD,children:a||o})]})},zr=cD,lD={month:"short",day:"numeric",year:void 0,hour:"2-digit",minute:"2-digit",hour12:!1},uD={weekday:"long",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"shortOffset"},dD={month:"long",day:"numeric",year:"numeric"},hD={weekday:"long",month:"long",day:"numeric",year:"numeric"},Is="adyen-pe-structured-list",wl=`${Is}__item`,Vi=`${Is}__grid`,gD=`${Is}__content`,mD=`${Is}__label`,pD=`${wl}--has-highlight`;const fD=e=>{const{i18n:t}=Q();return T(()=>e.map(n=>({key:n.key,value:n.value,id:ba(),label:t.get(n.key)})),[t,e])},yD="6-6";function Ur({items:e,highlightable:t,renderValue:n,renderLabel:o,layout:s=yD,grid:r=!0}){const[a,i]=T(()=>s.split("-").map(g=>`${Vi}--width-${g}-of-12`),[s]),c=fD(e),{i18n:d}=Q();return l("div",{"aria-label":d.get("structuredList"),className:Is,children:c.map(g=>l("dl",{className:F(wl,{[pD]:t,[Vi]:r}),children:[l("dt",{className:F(mD,a),children:o?o(g.label):l(q,{variant:w.BODY,children:g.label})}),l("dd",{"aria-label":`${d.get(g.key)} ${d.get("value")}`,className:F(gD,i),children:n?n(g.value):l(q,{variant:w.BODY,children:g.value})})]},g.id))})}const ID=({isLoading:e,skeletonRowNumber:t=0})=>{const n=T(()=>Array.from({length:t},(o,s)=>s),[t]);return l(V,{children:n.map(o=>l("span",{className:F({"adyen-pe-transaction-data__skeleton":!0,"adyen-pe-transaction-data__skeleton-loading-content":e})},`transaction-data-skeleton-${o}`))})},Pl=ID,ua=e=>{const{i18n:t}=Q();return L((...n)=>{const o=t.timezone;try{return e(...n)}finally{t.timezone=o}},[t,e])},_D=e=>{const{i18n:t}=Q(),n=ua(L(()=>(t.timezone=void 0,t.timezone=e,t.timezone),[t,e]));return T(n,[n])},TD=e=>{const{i18n:t}=Q(),n=_D(e),o=ua(L((...r)=>(t.timezone=n,t.date(...r)),[t,n])),s=ua(L((...r)=>(t.timezone=n,t.fullDate(...r)),[t,n]));return{dateFormat:o,fullDateFormat:s}},mo=TD;const _s="adyen-pe-payout-data",AD=`${_s}__title`,SD=`${_s}__title--ba-id`,oi=`${_s}__content`,Tn=`${oi}--section`,Ms=`${oi}--card`,Ji=`${Ms}-title`,Co=`${Tn}-amount`,Qi=`${Co}-gross`,ND=`${Co}-net`,LD=`${_s}--unpaid-amount`,CD=({balanceAccountId:e,balanceAccountDescription:t,payout:n,isFetching:o})=>{var g;const{payout:s}=n??z,{i18n:r}=Q(),{dateFormat:a}=mo("UTC"),i=T(()=>{var p,m;const u=(m=(p=n==null?void 0:n.amountBreakdowns)==null?void 0:p.adjustmentBreakdown)==null?void 0:m.reduce((y,f)=>{var v,P,E,b,D,j,R;const A=(v=f==null?void 0:f.amount)!=null&&v.value&&((P=f==null?void 0:f.amount)!=null&&P.currency)?r.amount((E=f==null?void 0:f.amount)==null?void 0:E.value,(b=f==null?void 0:f.amount)==null?void 0:b.currency,{hideCurrency:!0}):(((D=f==null?void 0:f.amount)==null?void 0:D.value)??"").toString(),I=`${f==null?void 0:f.category}`,M=r.get(I),C=f!=null&&f.category&&M!==I?M:f==null?void 0:f.category;return f!=null&&f.category&&A&&C&&y[(j=f==null?void 0:f.amount)!=null&&j.value&&((R=f==null?void 0:f.amount)==null?void 0:R.value)<0?"subtractions":"additions"].push({key:C,value:A}),y},{subtractions:[],additions:[]});return u==null||u.subtractions.sort((y,f)=>y.key.localeCompare(f.key)),u==null||u.additions.sort((y,f)=>y.key.localeCompare(f.key)),u},[r,n]),c=T(()=>{var p,m;const u=(m=(p=n==null?void 0:n.amountBreakdowns)==null?void 0:p.fundsCapturedBreakdown)==null?void 0:m.reduce((y,f)=>{var A,I,M,C;return((A=f==null?void 0:f.amount)==null?void 0:A.value)===0||(I=f==null?void 0:f.amount)!=null&&I.value&&f.category&&y.push({key:f.category,value:r.amount((M=f==null?void 0:f.amount)==null?void 0:M.value,(C=f==null?void 0:f.amount)==null?void 0:C.currency,{hideCurrency:!0})}),y},[]);return u==null||u.sort((y,f)=>y.key==="capture"?-1:f.key==="capture"?1:y.key.localeCompare(f.key)),u},[n,r]),d=T(()=>s!=null&&s.createdAt?a(new Date(s==null?void 0:s.createdAt),hD):"",[s,a]);return l(V,{children:s?l("div",{className:_s,children:[l("div",{className:AD,children:[l(q,{variant:w.SUBTITLE,stronger:!0,children:r.get("netPayout")}),l(q,{variant:w.TITLE,large:!0,children:`${r.amount(s.payoutAmount.value,s.payoutAmount.currency,{hideCurrency:!0})} ${s.payoutAmount.currency}`}),l(q,{variant:w.BODY,children:d}),l("div",{className:Tn,children:[t&&l(q,{variant:w.CAPTION,stronger:!0,wide:!0,children:`${t}`}),l(q,{variant:w.CAPTION,className:SD,children:`${e}`})]})]}),l("div",{className:oi,children:[l("div",{className:Tn,children:(s==null?void 0:s.fundsCapturedAmount)&&(c&&Object.keys(c).length>0?l(Zi,{header:l(q,{variant:w.BODY,children:r.get("fundsCaptured")}),headerInformation:l(q,{variant:w.BODY,children:r.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)}),children:l("div",{className:Tn,children:l("div",{className:Ms,children:l(zr,{children:l(Ur,{items:c})})})})}):l("div",{className:F(Co,Qi),children:[l(q,{variant:w.BODY,children:r.get("fundsCaptured")}),l(q,{variant:w.BODY,children:r.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)})]}))}),l("div",{className:Tn,children:i!=null&&i.subtractions&&Object.keys(i==null?void 0:i.subtractions).length>0||i!=null&&i.additions&&Object.keys(i==null?void 0:i.additions).length>0?l(Zi,{header:l(q,{variant:w.BODY,children:r.get("adjustments")}),headerInformation:l(q,{variant:w.BODY,children:r.amount(s.adjustmentAmount.value,s.adjustmentAmount.currency)}),children:[(i==null?void 0:i.additions)&&Object.keys(i==null?void 0:i.additions).length>0&&l("div",{className:Ms,children:l(zr,{renderHeader:l(q,{className:Ji,variant:w.CAPTION,stronger:!0,children:r.get("additions")}),children:l(Ur,{items:i==null?void 0:i.additions})})}),(i==null?void 0:i.subtractions)&&Object.keys(i==null?void 0:i.subtractions).length>0&&l("div",{className:Ms,children:l(zr,{renderHeader:l(q,{className:Ji,variant:w.CAPTION,stronger:!0,children:r.get("subtractions")}),children:l(Ur,{items:i==null?void 0:i.subtractions})})})]}):l("div",{className:F(Co,Qi),children:[l(q,{variant:w.BODY,children:r.get("adjustments")}),l(q,{variant:w.BODY,children:r.amount(s.adjustmentAmount.value,s.adjustmentAmount.currency)})]})}),l("div",{className:F(Tn),children:l("div",{className:F(Co,ND),children:[l(q,{variant:w.BODY,stronger:!0,children:r.get("netPayout")}),l(q,{variant:w.BODY,stronger:!0,children:r.amount(s.payoutAmount.value,s.payoutAmount.currency)})]})})]}),((g=n==null?void 0:n.payout)==null?void 0:g.unpaidAmount)&&l("div",{className:LD,children:[l(q,{variant:w.BODY,children:r.get("remainingAmount")}),l(q,{variant:w.BODY,children:r.amount(n.payout.unpaidAmount.value,n.payout.unpaidAmount.currency)})]})]}):l(Pl,{isLoading:o,skeletonRowNumber:6})})},ED="https://cdf6519016.cdn.adyen.com/checkoutshopper/",MD=({name:e,resourceContext:t,imageFolder:n="logos/",parentFolder:o="",extension:s="svg",size:r="",subFolder:a=""})=>{const i=`/images/${n}/${a}/${o}/${e}${r}.${s}`.replace(/\/+/g,"/");return`${t}${i}`},vD=({options:e=z,name:t})=>{const{loadingContext:n}=Q();return T(()=>MD({resourceContext:ED,name:t,...e}),[n,t,e])},kl=({folder:e="components/",className:t,alt:n,name:o,extension:s})=>{const r=vD({options:T(()=>({imageFolder:e,extension:s}),[s,e]),name:o});return l("img",{className:F("adyen-pe__image",t),alt:n,src:r})},bD=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function jl(e,t){return e.lastFourDigits?t==="detail"?"•••• •••• •••• "+e.lastFourDigits:e.lastFourDigits:bD[e.type]||e.type}var Xe=(e=>(e.DEFAULT="default",e.WARNING="warning",e.ERROR="error",e.SUCCESS="success",e.WHITE="white",e))(Xe||{});const da=Ne(({variant:e=Xe.DEFAULT,label:t})=>l("div",{className:F("adyen-pe-tag",{"adyen-pe-tag--success":e===Xe.SUCCESS,"adyen-pe-tag--default":e===Xe.DEFAULT,"adyen-pe-tag--warning":e===Xe.WARNING,"adyen-pe-tag--error":e===Xe.ERROR,"adyen-pe-tag--primary":e===Xe.WHITE}),children:t}));const DD=({transaction:e,isFetching:t})=>{var a,i,c;const{i18n:n}=Q(),{dateFormat:o}=mo((a=e.balanceAccount)==null?void 0:a.timeZone),s=T(()=>e?o(new Date(e.createdAt),uD):"",[e,o]),r=(e==null?void 0:e.status)==="Booked"?"default":(e==null?void 0:e.status)==="Reversed"?"error":"pending";return l(V,{children:e?l("div",{className:"adyen-pe-transaction-data",children:[l("div",{className:"adyen-pe-transaction-data__container",children:[((e==null?void 0:e.status)||(e==null?void 0:e.category))&&l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__tag-container",children:[(e==null?void 0:e.status)&&l(da,{label:n.get(e.status),variant:e.status==="Booked"?Xe.SUCCESS:e.status==="Reversed"?Xe.ERROR:Xe.DEFAULT}),e.category&&l(da,{label:n.get(`txType.${e.category}`),variant:Xe.DEFAULT})]}),l("div",{className:`adyen-pe-transaction-data__section adyen-pe-transaction-data__amount adyen-pe-transaction-data__amount--${r}`,children:e.amount?`${n.amount(e.amount.value,e.amount.currency,{hideCurrency:!0})} ${e.amount.currency}`:null}),((e==null?void 0:e.paymentMethod)||(e==null?void 0:e.bankAccount))&&l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__payment-method",children:[l("div",{className:"adyen-pe-transaction-data__payment-method-logo-container",children:l(kl,{name:e.paymentMethod?e.paymentMethod.type:"bankTransfer",alt:e.paymentMethod?e.paymentMethod.type:"bankTransfer",folder:"logos/",className:"adyen-pe-transaction-data__payment-method-logo"})}),l("div",{className:"adyen-pe-transaction-data__payment-method-detail",children:e!=null&&e.paymentMethod?jl(e==null?void 0:e.paymentMethod,"detail"):(i=e==null?void 0:e.bankAccount)==null?void 0:i.accountNumberLastFourDigits})]}),l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__label",children:s})]}),((c=e.balanceAccount)==null?void 0:c.description)&&l("div",{className:"adyen-pe-transaction-data__container",children:[l("div",{className:"adyen-pe-transaction-data__label",children:n.get("account")}),l("div",{children:e.balanceAccount.description})]}),l("div",{className:"adyen-pe-transaction-data__container",children:[l("div",{className:"adyen-pe-transaction-data__label",children:n.get("referenceID")}),l("div",{"aria-label":n.get("referenceID"),children:e.id})]})]}):l(Pl,{isLoading:t,skeletonRowNumber:6})})};const OD=({inline:e=!1,size:t="large"})=>l("div",{className:`adyen-pe-spinner__wrapper ${e?"adyen-pe-spinner__wrapper--inline":""}`,children:l("div",{className:`adyen-pe-spinner adyen-pe-spinner--${t}`})}),$D=OD,RD={transaction:"getTransaction",payout:"getPayout"},xD={transaction:"transactionDetails",payout:"payoutDetails"},Xi=e=>!("data"in e);function si(e){var y,f;const t=T(()=>Xi(e)?null:e.data,[e]),n=T(()=>Xi(e)?e.id:null,[e]),{i18n:o}=Q(),s=Ut().endpoints[RD[e.type]],r=T(()=>xD[e.type],[e.type]),{data:a,error:i,isFetching:c}=Lr(T(()=>({fetchOptions:{enabled:!!n&&!!s},queryFn:async()=>{const A=e.type==="transaction"?{path:{transactionId:n}}:{query:{balanceAccountId:n,createdAt:e.date}};return s(z,{...A})}}),[n,s,e])),d=e.type==="payout"?e.balanceAccountDescription:a==null?void 0:a.balanceAccountId,g=e.type==="payout"?e==null?void 0:e.balanceAccountDescription:(y=t==null?void 0:t.balanceAccount)==null?void 0:y.description,{balanceAccounts:u}=Ba(d,!g),p=T(()=>{if(i)return qa(i,"weCouldNotLoadYourTransactions",e.onContactSupport)},[i,e.onContactSupport]),m=t??a;return c?l($D,{}):l("div",{className:"adyen-pe-overview-details",children:[!e.hideTitle&&l("div",{className:"adyen-pe-overview-details--title",children:l(q,{variant:w.TITLE,medium:!0,children:o.get(r)})}),i&&p&&l("div",{className:"adyen-pe-overview-details--error-container",children:l($n,{centered:!0,withImage:!0,...p})}),e.type==="transaction"&&m&&l(DD,{transaction:{...m,balanceAccount:(t==null?void 0:t.balanceAccount)||(u==null?void 0:u[0])},isFetching:c}),e.type==="payout"&&m&&l(CD,{balanceAccountId:n,payout:m,balanceAccountDescription:(e==null?void 0:e.balanceAccountDescription)||((f=u==null?void 0:u[0])==null?void 0:f.description),isFetching:c})]})}const wD={base:"adyen-pe-modal-content"},PD=e=>ct(e,"id");function kD({type:e,data:t}){const n=T(()=>e==="payout"?{...t,type:"payout"}:PD(t)?{data:t,type:e}:{id:t,type:e},[t,e]);return l(V,{children:n&&l("div",{className:wD.base,children:l(si,{...n})})})}const Fl=({children:e,className:t,selectedDetail:n,resetDetails:o})=>{const{i18n:s}=Q(),r=!!n;return W(()=>{r&&To.closeAll()},[r]),l("div",{className:t,children:[e,n&&l(Jb,{title:n!=null&&n.title?s.get(n.title):void 0,isOpen:!!n,"aria-label":s.get("payoutDetails"),onClose:o,isDismissible:!0,headerWithBorder:!1,size:(n==null?void 0:n.modalSize)??"large",children:n&&l(kD,{...n==null?void 0:n.selection})})]})};function jD({value:e,isContainerHovered:t}){const{i18n:n}=Q(),o=`tooltip.${e}`;return l(V,{children:n.has(o)&&l(Ka,{content:n.get(o),isContainerHovered:t,children:l("span",{children:e})})})}const FD=({error:e,errorMessage:t,onContactSupport:n})=>{const{title:o,message:s,refreshComponent:r,translationValues:a,onContactSupport:i}=qa(e,t,n);return l($n,{title:o,message:s,translationValues:a,withImage:!0,centered:!0,refreshComponent:r,onContactSupport:i})},Wl=FD,WD={id:"paymentId",transactionType:"transactionType",createdAt:"date",balanceAccountId:"balanceAccount",accountHolderId:"account",amount:"txAmount",description:"description",status:"status",category:"category",paymentMethod:"paymentMethod",currency:"currency",fundsCapturedAmount:"fundsCaptured",payoutAmount:"netPayout",adjustmentAmount:"adjustments",dateAndPaymentMethod:"date"},Bl=e=>WD[e]||e;const zl=ja(z),ri=()=>Fa(zl);var gn=(e=>(e.CENTER="center",e.RIGHT="right",e))(gn||{});function Ki({children:e,column:t,position:n,...o}){const{registerCells:s}=ri(),r=k(null);return W(()=>{var a;r.current&&s({column:t,width:(a=r.current)==null?void 0:a.getBoundingClientRect().width})},[t,s]),l("div",{role:"cell",className:F("adyen-pe-data-grid__cell",{"adyen-pe-data-grid__cell--right":n===gn.RIGHT,"adyen-pe-data-grid__cell--center":n===gn.CENTER}),...o,children:e&&rl(e)?ml(e,{...e==null?void 0:e.props,ref:r,style:{width:"min-content"}}):null})}const Ul=({columns:e,customCells:t,item:n,rowIndex:o})=>l(V,{children:e.map(({key:s,position:r})=>t!=null&&t[s]?l(Ki,{"aria-labelledby":String(s),column:s,position:r,children:l("div",{style:{width:"min-content"},children:t[s]({key:s,value:n[s],item:n,rowIndex:o})})},s):l(Ki,{"aria-labelledby":String(s),column:s,position:r,children:l("div",{children:n[s]})},s))}),BD=({data:e,columns:t,customCells:n,onRowHover:o})=>{const{i18n:s}=Q();return l(V,{children:e==null?void 0:e.map((r,a)=>l("div",{role:"row",tabIndex:0,className:"adyen-pe-data-grid__row",onMouseEnter:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o(a):ne,onFocus:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o(a):ne,onMouseLeave:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o():ne,onBlur:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o():ne,children:l(Ul,{columns:t,customCells:n,item:r,rowIndex:a})},r))})},zD=({totalRows:e})=>{const[t,n]=Nr((a,i)=>{const c=e;if(c>1){const d=i.index;if(d<c&&d>=0)return i.type==="ACTIVE"?Object.freeze({...a,index:i.index??0,activeIndex:i.index}):Object.freeze({...a,index:i.index??0,activeIndex:-1})}return a},JD),o=$t(L(a=>{var c;if(!(a instanceof Element))return;const i=Number((c=a.dataset)==null?void 0:c.index);t.activeIndex===-1&&i===0||i===t.index?a.setAttribute("tabindex","0"):a.setAttribute("tabindex","-1"),i===t.activeIndex&&(a==null||a.focus())},[t.activeIndex,t.index])),s=L(a=>{var c,d;if(!(((c=a.target)==null?void 0:c.getAttribute("role"))==="row")){a.code===Y.ARROW_LEFT&&n({type:"ACTIVE",index:t.index});return}switch(a.code){case Y.ARROW_DOWN:case Y.ARROW_UP:n({type:"ACTIVE",index:a.code===Y.ARROW_DOWN?t.index+1:t.index-1});break;case Y.HOME:n({type:"ACTIVE",index:0});break;case Y.END:n({type:"ACTIVE",index:e-1});break;case Y.ENTER:(d=a.currentTarget)==null||d.click();break;default:return}a.stopPropagation()},[e,t.index]),r=L(a=>i=>{var d;(!(((d=i.target)==null?void 0:d.localName)==="tr")||t.index===-1)&&n({type:"CURRENT",index:a})},[t.index]);return{listeners:{onKeyDownCapture:s,onFocusCapture:r},ref:o,activeIndex:t.activeIndex,currentIndex:t.index}},UD=({data:e,columns:t,onRowClick:n,customCells:o,onRowHover:s})=>{const r=L(g=>()=>n==null?void 0:n.callback(n!=null&&n.retrievedField?g[n.retrievedField]:g),[n]),{i18n:a}=Q(),{currentIndex:i,listeners:c,ref:d}=zD({totalRows:(e==null?void 0:e.length)??0});return l(V,{children:e==null?void 0:e.map((g,u)=>l("div",{role:"row",tabIndex:0,onMouseEnter:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s(u):ne,onFocus:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s(u):ne,onMouseLeave:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s():ne,onBlur:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s():ne,ref:d,"aria-selected":u===i,"data-index":u,className:"adyen-pe-data-grid__row adyen-pe-data-grid__row--clickable",onClick:r(g),onFocusCapture:c.onFocusCapture(u),onKeyDownCapture:c.onKeyDownCapture,children:l(Ul,{columns:t,customCells:o,item:g,rowIndex:u})},g))})},YD=({columnsNumber:e,loading:t,emptyMessageDisplay:n})=>{const o=Array.from({length:10},(r,a)=>a),s=Array.from({length:e},(r,a)=>a);return l(V,{children:[o.map((r,a)=>l("div",{className:"adyen-pe-data-grid__row",children:s.map((i,c)=>l("div",{className:"adyen-pe-data-grid__cell adyen-pe-data-grid__skeleton-cell",children:l("span",{className:F({"adyen-pe-data-grid__skeleton-cell-content adyen-pe-data-grid__skeleton-cell-content--loading":t,"adyen-pe-data-grid__empty-cell":!t})})},`adyen-pe-data-grid-skeleton-cell-${c}`))},`adyen-pe-data-grid-skeleton-row-${a}`)),!t&&n&&n]})},GD=YD,HD="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhla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xMCIgZD0ibTE0MS40IDkyIDEuNi01LjZoMTguN2wxLjEgNC45Yy0uMS4xLTguOSAxMS0yMS40LjdabTIzLjEtNC40YzEuNC0zLjQgNi4zLTEyLjUgOS44LTExLjdhOTAuNyA5MC43IDAgMCAxIDQ2LjIgMjkuN2M0LjQgNS40IDIgOC43IDIgOC43bC03LjEgMTguOHMtMy42IDItMTUuNCAxLjdjLTE3LjQtLjUtMzguOC0yNi44LTM5LjUtMzAuNmE0OC4zIDQ4LjMgMCAwIDEgNC0xNi42Wk0xMTkuOSAxOGMwLTIuNSAxLjEtNC45IDIuNy02LjggMS45LTIuMiA0LjUtMy44IDcuNC00LjIgMi45LS40IDUuOS42IDcuOSAyLjdhNC44IDQuOCAwIDAgMC0zLTQuMXM1LS4yIDcuMS40YTE0LjcgMTQuNyAwIDAgMSAxMSAxNy44Yy0yLjMgOC44LTE0LjIgNy0yMSA1LjYtNS42LTEuMi0xMi00LjktMTIuMS0xMS40WiIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgzMDB2MjAwSDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+",ZD=({children:e})=>{const t=T(()=>new Map,[]),n=L(({column:s,width:r})=>{if(t.has(s)){const a=t.get(s);r>a&&t.set(s,r)}else t.set(s,r)},[t]),o=L(s=>t.get(s),[t]);return l(zl.Provider,{value:{registerCells:n,getMinWidthByColumn:o},children:zt(e)})},VD=({cellKey:e,position:t,label:n})=>{const{registerCells:o}=ri(),s=k(null);return W(()=>{var r;s.current&&o({column:e,width:(r=s.current)==null?void 0:r.getBoundingClientRect().width})},[e,o]),l("div",{role:"columnheader",id:String(e),className:F("adyen-pe-data-grid__cell adyen-pe-data-grid__cell--heading",{"adyen-pe-data-grid__cell--right":t===gn.RIGHT,"adyen-pe-data-grid__cell--center":t===gn.CENTER}),children:l("div",{ref:s,className:"adyen-pe-data-grid__cell--heading-content",children:n})})},JD=Object.freeze({activeIndex:-1,index:-1});function co({errorDisplay:e,...t}){return l("div",{style:{width:"100%"},children:l(ZD,{children:l(QD,{...t,errorDisplay:e})})})}function QD({errorDisplay:e,...t}){var d,g;const n=T(()=>zt(t.children),[t.children]),o=T(()=>n.find(u=>(u==null?void 0:u.type)===Yl),[n]),s=T(()=>{var u;return((u=t.data)==null?void 0:u.length)===0},[t.data]),r=T(()=>!t.loading&&(s||t.error),[s,t.error,t.loading]),{getMinWidthByColumn:a}=ri(),i=t.columns.filter(u=>u.visible!==!1).map(u=>({...u,minWidth:a(u.key)})),c=i.map(u=>`minmax(${(u.minWidth||100)+40}px, ${u.flex||1}fr)`).join(" ");return l("div",{className:F("adyen-pe-data-grid",{"adyen-pe-data-grid--condensed":t.condensed,"adyen-pe-data-grid--outline":t.outline,"adyen-pe-data-grid--scrollable":t.scrollable,"adyen-pe-data-grid--loading":t.loading,"adyen-pe-data-grid--empty":s||t.error}),style:`--adyen-pe-data-grid-cols: ${i.length}; --adyen-pe-data-grid-cells: ${c};`,children:l(V,{children:[l("div",{className:"adyen-pe-data-grid__table-wrapper",children:[l("div",{role:"table",className:"adyen-pe-data-grid__table",children:[l("div",{className:"adyen-pe-data-grid__head",role:"rowgroup",children:l("div",{role:"rowheader",className:"adyen-pe-data-grid__header",style:t.loading?{width:"100%"}:{},children:i.map(u=>l(VD,{label:u.label,position:u.position,cellKey:u.key},u.key))})}),l(XD,{...t,columns:i,emptyBody:s})]}),r&&(s&&!t.error?l($n,{title:((d=t.emptyTableMessage)==null?void 0:d.title)??"thereAreNoResults",message:(g=t.emptyTableMessage)==null?void 0:g.message,imageDesktop:HD,centered:!0}):t.error&&e?e():null)]}),o]})})}function XD(e){const t=T(()=>e.loading||e.emptyBody||e.error,[e.emptyBody,e.error,e.loading]);return l("div",{role:"rowgroup",className:F("adyen-pe-data-grid__body"),style:t&&{display:"grid",gridTemplateColumns:"1fr"},children:t?l(GD,{columnsNumber:e.columns.length,loading:e.loading}):e.onRowClick?l(UD,{onRowHover:e.onRowHover,data:e.data,columns:e.columns,onRowClick:e.onRowClick,customCells:e.customCells}):l(BD,{onRowHover:e.onRowHover,data:e.data,customCells:e.customCells,columns:e.columns})})}co.Footer=Yl;function Yl({children:e}){return l("div",{className:"adyen-pe-data-grid__footer",children:e})}co.defaultProps={condensed:!1,outline:!0,scrollable:!0};const ha="-ariaError";var Ce=(e=>(e[e.NONE=0]="NONE",e[e.APPLY=1]="APPLY",e[e.CLEAR=2]="CLEAR",e))(Ce||{});const KD=({applyDisabled:e,applyTitle:t,resetDisabled:n,resetTitle:o}=z)=>{const{i18n:s}=Q(),[r,a]=U(Ce.NONE),[i,c]=U(r!==Ce.NONE),d=L(()=>a(Ce.APPLY),[a]),g=L(()=>a(Ce.CLEAR),[a]),u=L(()=>a(Ce.NONE),[a]),p=T(()=>({disabled:we(e),event:d,title:(t==null?void 0:t.trim())||s.get("apply"),variant:Oe.PRIMARY}),[s,d,e,t]),m=T(()=>({disabled:we(n),event:g,title:(o==null?void 0:o.trim())||s.get("reset"),variant:Oe.SECONDARY}),[s,g,n,o]),y=T(()=>[p,m],[p,m]);return W(()=>{switch(c(r!==Ce.NONE),r){case Ce.APPLY:case Ce.CLEAR:u();break}},[r,c,u]),{commitAction:r,commitActionButtons:y,committing:i,resetCommitAction:u}},Gl=KD;function Hl(e){const{backgroundUrl:t="",className:n="",classNameModifiers:o=[],src:s="",alt:r="",showOnError:a=!1}=e,[i,c]=U(!1),d=k(null),g=()=>{c(!0)},u=()=>{c(a)},p=F([n],"adyen-pe-image",{"adyen-pe-image--loaded":i},...o.map(m=>`adyen-pe-image--${m}`));return W(()=>{const m=t?new Image:d.current;m&&(m.src=t||s,m.onload=g),c(!!(m!=null&&m.complete))},[]),t?l("div",{style:{backgroundUrl:t},...e,className:p}):l("img",{...e,alt:r,ref:d,className:p,onError:u})}const lo="adyen-pe-dropdown",qD=za(Ot,[Oe.SECONDARY],[Ot]),yt=`${lo}__button`,e0=`${yt}--active`,t0=`${yt}-collapse-indicator`,n0=`${yt}--has-selection`,o0=`${yt}-icon`,s0=`${yt}-multiselect-counter`,r0=`${yt}--readonly`,a0=`${yt}-text`,i0=`${yt}--valid`,c0=`${yt}--invalid`,Rt=`${lo}__element`,l0=`${Rt}--active`,u0=`${Rt}-checkbox`,d0=`${Rt}-checkmark`,h0=`${Rt}-content`,g0=`${Rt}--disabled`,m0=`${Rt}-icon`,p0=`${Rt}--no-option`,Zl=`${lo}__list`,f0=`${Zl}--active`,y0=`${lo}--multiselect`,I0=({active:e,disabled:t,className:n,filterable:o,toggleButtonRef:s,...r})=>{const a=T(()=>o?F(qD,n):n,[n,o]);return o?l("div",{...r,className:a,ref:s}):l(et,{...r,className:a,disabled:t,variant:Oe.SECONDARY,ref:s})},_0=e=>{var p;const{i18n:t}=Q(),{active:n,filterable:o,multiSelect:s,placeholder:r,readonly:a,showList:i,withoutCollapseIndicator:c}=e,d=T(()=>(r==null?void 0:r.trim())||t.get("select.filter.placeholder"),[t,r]),g=T(()=>we(s)?void 0:n[0],[n,s]),u=T(()=>{var m;return((m=g==null?void 0:g.name)==null?void 0:m.trim())||d},[g,d]);return l(I0,{active:n,disabled:a,"aria-disabled":a,"aria-expanded":i,"aria-haspopup":"listbox",className:F(yt,{[e0]:i,[n0]:!!n.length,[r0]:a,[c0]:e.isInvalid,[i0]:e.isValid}),filterable:o,onClick:a?void 0:e.toggleList,onKeyDown:a?void 0:e.onButtonKeyDown,role:o?"button":void 0,tabIndex:0,title:u,toggleButtonRef:e.toggleButtonRef,type:o?"":"button","aria-describedby":e.ariaDescribedBy,id:e.id??"",children:[i&&o?l("input",{"aria-autocomplete":"list","aria-controls":e.selectListId,"aria-expanded":i,"aria-owns":e.selectListId,autoComplete:"off",className:"adyen-pe-filter-input",onInput:e.onInput,placeholder:d,ref:e.filterInputRef,role:"combobox",type:"text"}):l(V,{children:[(g==null?void 0:g.icon)&&l(Hl,{className:o0,src:g.icon,alt:g.name.trim()}),l("span",{className:a0,children:((p=g==null?void 0:g.selectedOptionName)==null?void 0:p.trim())||(g==null?void 0:g.name.trim())||d}),s&&e.appliedFilterNumber>0&&l("div",{className:s0,children:l(q,{el:io.SPAN,variant:w.BODY,stronger:!0,children:e.appliedFilterNumber})})]}),!c&&l("span",{className:t0,children:l(Cr,{role:"presentation"})})]})},T0=_0,A0=Ye(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e&&l("title",{children:e}),l("path",{fill:"currentColor",d:"M1.25 3.5c0-1.24 1-2.25 2.25-2.25h9c1.24 0 2.25 1 2.25 2.25v9c0 1.24-1 2.25-2.25 2.25h-9c-1.24 0-2.25-1-2.25-2.25v-9ZM12.06 6 11 4.94l-4 4-2-2L3.94 8 7 11.06 12.06 6Z"})]})),S0=A0,N0=Ye(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e&&l("title",{children:e}),l("path",{stroke:"currentColor",d:"M.5 4C.5 2 2.1.5 4 .5h8c2 0 3.5 1.6 3.5 3.5v8c0 2-1.6 3.5-3.5 3.5H4C2 15.5.5 13.9.5 12V4Z"})]})),L0=N0,C0=Ye(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"16",viewBox:"0 0 16 16",height:"16",children:[e&&l("title",{children:e}),l("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14.5 4.5a.7.7 0 0 0-1-1L6 10.9 2.5 7.5a.8.8 0 0 0-1 1l4 4a.8.8 0 0 0 1 0l8-8Z","clip-rule":"evenodd"})]})),E0=C0,M0=e=>e.multiSelect?l("span",{className:u0,children:e.selected?l(S0,{role:"presentation"}):l(L0,{role:"presentation"})}):null,Vl=e=>e.multiSelect?null:l("span",{className:d0,children:e.selected&&l(E0,{role:"presentation"})}),v0=e=>l(V,{children:[M0(e),l("div",{className:e.contentClassName,children:[e.item.icon&&l(Hl,{className:e.iconClassName,alt:e.item.name,src:e.item.icon}),l("span",{children:e.item.name})]}),Vl(e)]}),b0=({item:e,multiSelect:t,onKeyDown:n,onSelect:o,renderListItem:s,selected:r})=>{const a=!!e.disabled,i=we(e.disabled)||null,c=F(Rt,{[l0]:r,[g0]:a});return l("li",{"aria-disabled":a,"aria-selected":r,className:c,"data-disabled":i,"data-value":e.id,onClick:o,onKeyDown:n,title:e.name,role:"option",tabIndex:-1,children:s({item:e,multiSelect:t,selected:r,contentClassName:h0,iconClassName:m0})})},D0=Ne(b0),O0=Ye(({active:e,commitActions:t,items:n,multiSelect:o,onKeyDown:s,onSelect:r,renderListItem:a,selectListId:i,showList:c,textFilter:d,toggleButtonRef:g,dismissPopover:u,setToTargetWidth:p,popoverClassNameModifiers:m,showOverlay:y,fitPosition:f},A)=>{const{i18n:I}=Q(),M=Se(Ae.down.xs),C=n.filter(D=>!d||D.name.toLowerCase().includes(d)),v=F(Zl,{[f0]:c}),P=F(Rt,p0),E=T(()=>ee(a)?a:v0,[a]),b=T(()=>we(o),[o]);return c?l(Xa,{classNameModifiers:m,actions:b?t:void 0,disableFocusTrap:!0,divider:!0,dismiss:u,dismissible:!1,open:c,setToTargetWidth:p,containerSize:Oo.MEDIUM,variant:De.POPOVER,targetElement:g,withContentPadding:!1,position:ie.BOTTOM,showOverlay:y&&M,fitPosition:f,children:l("ul",{className:v,id:i,ref:A,role:"listbox","aria-multiselectable":b,children:C.length?C.map(D=>l(D0,{item:D,multiSelect:b,onKeyDown:s,onSelect:r,renderListItem:E,selected:e.includes(D)},D.id)):l("div",{className:P,children:I.get("select.noOptionsFound")})})}):null}),$0=Ne(O0),R0=({items:e,multiSelect:t,selected:n})=>{const o=L((c=Te)=>{const d=Te.concat(c??Te).filter(Boolean),g=e.filter(p=>d.includes(p.id)),u=t?g:g.slice(0,1);return u.length?Object.freeze(u):Te},[e,t]),[s,r]=U(o(n)),a=L((c=Te)=>{const d=c.filter(g=>e.includes(g));r(d.length?Object.freeze(d):Te)},[e,r]),i=L(c=>{r(d=>{const g=d.indexOf(c);if(g<0)return Object.freeze((t?d:Te).concat(c));if(!t)return d;const u=[...d];return u.splice(g,1),u.length?Object.freeze(u):Te})},[t,r]);return W(()=>r(o(n)),[o,n,r]),{resetSelection:a,select:i,selection:s}},x0=R0;const w0=({className:e,classNameModifiers:t=Te,popoverClassNameModifiers:n,items:o=Te,filterable:s=!1,multiSelect:r=!1,readonly:a=!1,onChange:i=ne,selected:c,name:d,isInvalid:g,isValid:u,placeholder:p,uniqueId:m,renderListItem:y,isCollatingErrors:f,setToTargetWidth:A,withoutCollapseIndicator:I=!1,showOverlay:M=!1,fitPosition:C})=>{const{resetSelection:v,select:P,selection:E}=x0({items:o,multiSelect:r,selected:c}),[b,D]=U(!1),[j,R]=U(""),X=k(null),B=k(null),se=k(null),K=k(`select-${ba()}`),[re,Ee]=U(0),Me=k(),ve=k(!0),ke=k(!1),fe=k(E),de=k(E),be=L(()=>{R(""),D(!1),b&&(v(fe.current),ve.current=!0)},[v,D,R,b]),lt=T(()=>F([lo,{[y0]:we(r)},...t.map(te=>`${lo}--${te}`),e]),[e,t,r]),{commitAction:ut,commitActionButtons:Gt,committing:Ts,resetCommitAction:fo}=Gl({resetDisabled:!E.length}),tt=L(()=>{var te;R(""),D(!1),fo(),ve.current?ve.current=!1:(te=se.current)==null||te.focus()},[fo,D,R]),yn=L(()=>{fe.current=E;const te=`${E.map(({id:he})=>he)}`;i({target:{value:te,name:d}})},[d,i,E]);W(()=>{switch(ut){case Ce.APPLY:yn();break;case Ce.CLEAR:v(),ke.current=!0;break}},[ut,yn,v]);const Ht=L(te=>{var ge;te.preventDefault();const he=te.currentTarget&&((ge=B==null?void 0:B.current)!=null&&ge.contains(te.currentTarget))?te.currentTarget:null;if(he&&!he.getAttribute("data-disabled")){const ld=he.getAttribute("data-value"),ud=o.find(dd=>dd.id===ld);P(ud)}},[o,P]);W(()=>{de.current!==E&&(de.current=E,(!r||ke.current)&&(yn(),tt())),ke.current=!1},[tt,yn,r,E]),W(()=>{Ts&&(Ee(E.length),tt())},[Ts,tt,Ee,E.length]);const Rr=L(te=>{switch(te.code){case Y.ESCAPE:case Y.TAB:b&&tt(),ve.current=te.key===Y.TAB;return;case Y.ENTER:case Y.SPACE:if(s&&b){if(te.key===Y.ENTER)if(j)Ht(te);else break;return}break;case Y.ARROW_DOWN:case Y.ARROW_UP:break;default:return}te.preventDefault(),D(!0)},[tt,s,Ht,b,D,j]);W(()=>{b&&(cancelAnimationFrame(Me.current),Me.current=requestAnimationFrame(()=>{var te;e:{let he=(te=B.current)==null?void 0:te.firstElementChild,ge;for(;he;){if(!(he.dataset.disabled&&he.dataset.disabled==="true")){if(he.getAttribute("aria-selected")==="true"){he.focus();break e}ge=ge||he}he=he.nextElementSibling}ge&&ge.focus()}}))},[b]);const nt=L(te=>{const he=te.target;switch(te.code){case Y.ESCAPE:te.preventDefault(),tt();break;case Y.ENTER:case Y.SPACE:Ht(te);break;case Y.ARROW_DOWN:{te.preventDefault();let ge=he.nextElementSibling;for(;ge;){if(!(ge.dataset.disabled&&ge.dataset.disabled==="true")){ge.focus();break}ge=ge.nextElementSibling}break}case Y.ARROW_UP:{te.preventDefault();e:{let ge=he.previousElementSibling;for(;ge;){if(!(ge.dataset.disabled&&ge.dataset.disabled==="true")){ge.focus();break e}ge=ge.previousElementSibling}s&&X.current&&X.current.focus()}break}case Y.TAB:tt();break}},[tt,s,Ht]),Pe=L(te=>{const he=te.target.value;R(he.toLowerCase())},[R]),xr=L(te=>{te.preventDefault(),D(he=>!he),b&&v(fe.current)},[D,b,v]);return W(()=>{var te;b&&s&&((te=X.current)==null||te.focus())},[s,b]),l("div",{className:lt,children:[l(T0,{id:m??void 0,appliedFilterNumber:re,active:E,filterInputRef:X,filterable:s,isInvalid:g,isValid:u,onButtonKeyDown:Rr,onInput:Pe,multiSelect:r,placeholder:p,readonly:a,selectListId:K.current,showList:b,toggleButtonRef:se,toggleList:xr,withoutCollapseIndicator:I,ariaDescribedBy:!f&&m?`${m}${ha}`:""}),l($0,{popoverClassNameModifiers:n,setToTargetWidth:A,dismissPopover:be,active:E,commitActions:Gt,items:o,multiSelect:r,onKeyDown:nt,onSelect:Ht,selectListId:K.current,ref:B,toggleButtonRef:se,renderListItem:y,showList:b,showOverlay:M,textFilter:j,fitPosition:C})]})},Er=w0,P0=Ye(({title:e,...t},n)=>l("svg",{...t,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e&&l("title",{children:e}),l("path",{d:"M5.56077 2.00011L2.56077 5.00011L5.56077 8.00011L4.50011 9.06077L0.439453 5.00011L4.50011 0.939453L5.56077 2.00011Z",fill:t.disabled?"#8D95A3":"#00112C"})]})),k0=P0,j0=Ye(({title:e,...t},n)=>l("svg",{...t,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e&&l("title",{children:e}),l("path",{d:"M0.439453 7.9999L3.43945 4.9999L0.439454 1.9999L1.50011 0.93924L5.56077 4.9999L1.50011 9.06056L0.439453 7.9999Z",fill:t.disabled?"#8D95A3":"#00112C"})]})),F0=j0;function Jl({next:e,hasNext:t,hasPrev:n,page:o,prev:s,limit:r,limitOptions:a,onLimitSelection:i}){const{i18n:c}=Q(),d=T(()=>a&&Object.freeze(a.map(u=>({id:`${u}`,name:`${u}`}))),[a]),g=L(({target:u})=>{ue(u==null?void 0:u.value)||i==null||i(+u.value)},[i]);return l("div",{"aria-label":c.get("paginatedNavigation"),className:`adyen-pe-pagination ${F({})}`,children:[l("div",{className:"adyen-pe-pagination__context",children:[l("span",{children:[c.get("pagination.showing")," ",o]}),d&&i&&l("div",{className:"adyen-pe-pagination__limit-selector",children:l(Er,{setToTargetWidth:!0,filterable:!1,multiSelect:!1,items:d,onChange:g,selected:`${r??""}`})})]}),l("div",{className:"adyen-pe-pagination__controls",children:[l(et,{"aria-label":c.get("pagination.previousPage"),variant:Oe.TERTIARY,disabled:!n,iconButton:!0,classNameModifiers:["circle"].concat(n?Te:"disabled"),onClick:s,children:l(k0,{disabled:!n})}),l(et,{"aria-label":c.get("pagination.nextPage"),variant:Oe.TERTIARY,disabled:!t,iconButton:!0,classNameModifiers:["circle"].concat(t?Te:"disabled"),onClick:e,children:l(F0,{disabled:!t})})]})]})}const po="adyen-pe-transactions-table",W0=po+"__amount",B0=po+"__payment-method",z0=po+"__payment-method-logo-container",U0=po+"__payment-method-logo",qi=po+"__date-and-payment-method";const Y0=({paymentMethod:e,bankAccount:t})=>{const{i18n:n}=Q();return l("div",{className:B0,children:e||t?l(V,{children:[l("div",{className:z0,children:l(kl,{name:e?e.type:"bankTransfer",alt:e?e.type:"bankTransfer",folder:"logos/",className:U0})}),e?jl(e):t==null?void 0:t.accountNumberLastFourDigits]}):l(da,{label:n.get("noData"),variant:Xe.WHITE})})},ec=Y0,G0=["dateAndPaymentMethod","createdAt","paymentMethod","transactionType","amount"],H0=({activeBalanceAccount:e,availableCurrencies:t,error:n,hasMultipleCurrencies:o,loading:s,onContactSupport:r,onRowClick:a,showDetails:i,showPagination:c,transactions:d,...g})=>{const{i18n:u}=Q(),{dateFormat:p,fullDateFormat:m}=mo(e==null?void 0:e.timeZone),[y,f]=U(),A=Se(Ae.up.sm),I=Se(Ae.up.md),M=Se(Ae.down.xs),C=T(()=>({dateAndPaymentMethod:M,createdAt:A,transactionType:I,paymentMethod:A}),[M,A,I]),v=T(()=>G0.map(D=>{const j=u.get(Bl(D));return D==="amount"?{key:D,label:o?j:`${j} ${t&&t[0]?`(${zc(t[0])})`:""}`,position:D==="amount"?gn.RIGHT:void 0,flex:A?1.5:void 0}:{key:D,label:j,visible:C[D]}}),[t,C,o,u,A]),P={title:"noTransactionsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},E=L(D=>{f(D??void 0)},[f]),b=T(()=>()=>l(Wl,{error:n,onContactSupport:r,errorMessage:"weCouldNotLoadYourTransactions"}),[n,r]);return l("div",{className:po,children:l(co,{errorDisplay:b,error:n,columns:v,data:d,loading:s,outline:!1,onRowClick:{callback:a},onRowHover:E,emptyTableMessage:P,customCells:{dateAndPaymentMethod:({item:D})=>l("div",{className:qi,children:[l(ec,{paymentMethod:D.paymentMethod,bankAccount:D.bankAccount}),l("span",{className:qi,children:p(D.createdAt,lD)})]}),transactionType:({item:D,rowIndex:j})=>{const R=`tooltip.${D.category}`;return D.category?u.has(R)?l(jD,{value:D.category,isContainerHovered:j===y}):D.category:null},createdAt:({value:D})=>l("span",{children:m(D)}),amount:({value:D})=>{const j=u.amount(D.value,D.currency,{hideCurrency:!o});return l("span",{className:W0,children:j})},paymentMethod:({item:D})=>l(ec,{paymentMethod:D.paymentMethod,bankAccount:D.bankAccount})},children:c&&l(co.Footer,{children:l(Jl,{...g})})})})},Z0=e=>{const[t,n]=U(0),o=L(()=>n(0),[n]),s=T(()=>e==null?void 0:e[t],[e,t]),r=T(()=>e&&e.length>1?Object.freeze(e.map(({description:i,id:c})=>({id:c,name:Md(i)}))):void 0,[e]),a=L(({target:i})=>{const c=i==null?void 0:i.value,d=e==null?void 0:e.findIndex(({id:g})=>g===c);d>=0&&n(d)},[e,n]);return{activeBalanceAccount:s,balanceAccountSelectionOptions:r,onBalanceAccountSelection:a,resetBalanceAccountSelection:o}},Ql=Z0;const ai="adyen-pe-balance-account-selector",V0=`${ai}__account-id`,J0=`${ai}__account-label`,Q0=Ne(({activeBalanceAccount:e,balanceAccountSelectionOptions:t,onBalanceAccountSelection:n})=>{const o=Se(Ae.down.xs),s=L(r=>l(V,{children:[l("div",{className:r.contentClassName,children:[r.item.name&&l("span",{className:J0,children:r.item.name}),l("span",{className:V0,children:r.item.id})]}),Vl(r)]}),[]);return t&&t.length>1?l(Er,{popoverClassNameModifiers:[ai],onChange:n,filterable:!1,multiSelect:!1,selected:e==null?void 0:e.id,withoutCollapseIndicator:!0,items:t,renderListItem:s,showOverlay:o}):null}),Xl=Q0,{getTimezoneTime:X0,getUsedTimezone:K0}=(()=>{const e=/\d{2}:\d{2}(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i,t=/^GMT|0(?=\d:00)|:00/g,n=ps();return{getTimezoneTime:(r,a=Date.now())=>{n.tz=r;const{formatted:i}=n(a),[c="",d=""]=(i==null?void 0:i.match(e))??Te,g=Kr(i),u=`${c}${d&&` ${d}`}`,p=nm(g).replace(t,"");return[u,p]},getUsedTimezone:r=>(n.tz=r,n.tz.current)}})(),q0=({timezone:e,withClock:t=!1}=z)=>{const n=T(()=>we(t),[t]),o=T(()=>K0(e),[e]),s=k(ne),[r,a]=U(Date.now()),[i,c]=T(()=>X0(o,r),[r,o]);return T(()=>{s.current(),s.current=n?Wc.subscribe(d=>{ho(d)||a(d.now)}):ne},[a,n]),{clockTime:i,GMTOffset:c,timestamp:r,timezone:o}},eO=q0,tO=e=>Object.freeze({systemToTimezone:$(t=>ft(e,t)),timezoneToSystem:$(t=>Et(e,t)),timezoneOffset:$(t=>e(t).offset)}),Kl=(e,t,n=e)=>{const o=(s,r)=>{let a=s;ue(s)?a=n:Mo(s)||(a=r??n);const i=cn(e,a,t);return i===a?i:r??n};return s=>{const r=oe(()=>a);let a=o(s);return G({value:r,descriptor:$({...r,set(i){const c=a;a=o(i,a),c!==a&&(this.now=this.now)}})})}},nO=(e,t)=>n=>ee(n)?n.call(e,t):n,oO=e=>!ct(e,"offsets"),sO=e=>ct(e,"from"),Mr=({now:e})=>e,rO=(()=>{const e=new Map;return t=>{let n=e.get(t);return H(n)&&(n=Object.freeze([0,0,t,0,0,0,-1]),e.set(t,n)),n}})(),In=e=>{try{const t=e instanceof Date||+e===e?e:void 0,n=new Date(t).getTime();return isNaN(n)?void 0:n}catch{}},aO=(e=z,t=z)=>{const n=bo(e),o=bo(t);return()=>{const s=ps(),r=oe(()=>u),a=oe(()=>s.tz.current),i=G({now:r,timezone:a,...tO(s)}),c=nO(n,i);let{from:d,to:g,now:u}=z;const p=y=>{u=In(y??Date.now())??u;e:{if(oO(n)){d=In(c(n.from))??u,g=In(c(n.to))??u;break e}let f,A,I;(I=sO(n))?(f=new Date(d=In(c(n.from))??u),A=1):(f=new Date(g=In(c(n.to))??u),A=-1),f=new Date(i.timezoneToSystem(f));const[M=0,C=0,v=0,P=0,E=0,b=0,D=0]=c(n.offsets);f.setFullYear(f.getFullYear()+M*A,f.getMonth()+C*A,f.getDate()+v*A),f.setHours(f.getHours()+P*A,f.getMinutes()+E*A,f.getSeconds()+b*A,f.getMilliseconds()+D*A);const j=In(i.systemToTimezone(f))??u;I?g=j:d=j}d>g&&([d,g]=[g,d])},m=y=>{const f=s.tz,A=f.current;s.tz=y,f.current!==A&&p(u)};return p(),G({...o,from:oe(()=>d),now:{...r,set:p},timezone:{...a,set:m},to:oe(()=>g)})}},vr=aO,iO=/^(\d{2})\/(\d{2})\/(-?\d+),\s+(\d{2}):(\d{2}):(\d{2}).(\d{3})/,br=(e=gr)=>(t,n,...o)=>{const s=Dt(n),r=new Date(Et(s,t));return r.setHours(0,0,0,0),ft(s,e(r,...o))},ql=br(),eu=br(e=>e.setDate(1)),cO=br(e=>e.setMonth(0,1)),tu=br((e,t)=>{const n=uO(e.getDay(),t??0);return e.setDate(e.getDate()-n)}),lO=e=>(e%100?e%4:e%400)===0,Yr=(e,t,n=0)=>{const o=e+n,s=ds(o,12),r=t+Math.floor(o/12);let a=31;switch(s){case 1:a=lO(r)?29:28;break;case 3:case 5:case 8:case 10:a=30;break}return[a,s,r]},uO=(e,t=0)=>(7-t+e)%7,Mn=(e,t)=>ln(e)?0:e-ql(e,t),tc=e=>H(e)?e:new Date(e),dO=(e,t=z)=>{const n=Dt(t.timeZone),o={...Oa,...t,timeZone:n.tz.current};return new Date(e).toLocaleDateString(Tr,o)},xt=(e,t)=>{const n=dO(e,{...Gc,...Oa,timeZone:t,hour12:!1}),[,o="",s="",r="",a="",i="",c="",d=""]=n.match(iO)??Te;return[+r,+o-1,+s,+a%24,+i,+c,+d]},ga=(e,t,n)=>{if(ln(e)||ln(t))return 1/0;const[o,s]=xt(e,n),[r,a]=xt(t,n);return Math.abs(a-s+(r-o)*12)},Dt=(()=>{const e=ps();return t=>(e.tz=void 0,e.tz=t,e)})(),ii=1,hO=rO(7),gO=Kl(0,6,ii),mO=(e=0)=>{const t=~~cn(0,e,1/0)||0;return(n=ii)=>{const o=t?{offsets:hO}:{to:Mr},s=gO(n);return vr({from:({now:r,timezone:a,systemToTimezone:i,timezoneToSystem:c})=>{const d=new Date(c(tu(r,a,s.value)));return d.setDate(d.getDate()-t*7),i(d)},...o},{firstWeekDay:s.descriptor})()}},nu=mO,pO=Object.freeze([0,1,0,0,0,0,-1]),fO=(e=0)=>{const t=~~cn(0,e,1/0)||0;return vr({from:({now:o,timezone:s,systemToTimezone:r,timezoneToSystem:a})=>{const i=new Date(a(eu(o,s)));return i.setMonth(i.getMonth()-t),r(i)},...t?{offsets:pO}:{to:Mr}})},ou=fO,yO=ou(1),IO=yO,_O=365,TO=1,AO=1,SO=Kl(TO,_O,AO),NO=e=>{const t=SO(e);return vr({from:({now:n,timezone:o,systemToTimezone:s,timezoneToSystem:r})=>{const a=new Date(r(ql(n,o)));return a.setDate(a.getDate()-t.value+1),s(a)},to:Mr},{numberOfDays:t.descriptor})()},nc=NO,LO=nu(1),CO=LO,EO=ou(0),MO=EO,vO=nu(0),bO=vO,DO=vr({from:({now:e,timezone:t})=>cO(e,t),to:Mr}),OO=DO,$O=()=>Object.freeze({"rangePreset.last7Days":nc(7),"rangePreset.last30Days":nc(30),"rangePreset.thisWeek":bO(),"rangePreset.lastWeek":CO(),"rangePreset.thisMonth":MO(),"rangePreset.lastMonth":IO(),"rangePreset.yearToDate":OO()}),RO=({now:e=Date.now(),options:t,selectedOption:n,timezone:o})=>{const{i18n:s}=Q(),[r,a]=U(),[i,c]=U(),[d,g]=U(),u=k(),p=k(),[m,y,f]=T(()=>{const E=s.get("rangePreset.custom"),b=Object.keys(t),D=Object.freeze(b.map(R=>s.get(R)));return[E,(R,X=D)=>{const B=X.findIndex(se=>se===R);return t[b[B]]},D]},[s,t]),[A,I]=U(n===m),M=T(()=>Object.freeze([...f,m]),[m,f]),C=T(()=>A?M:f,[A,f,M]),v=L(E=>{const b=y(E,f);b&&(a(b.from),c(b.to),I(!1),g(E))},[m,y,d,f]),P=L(()=>{a(void 0),c(void 0),I(!0),g(m)},[m]);return T(()=>{n===m?g(m):v(n)},[]),T(()=>{var E;if(u.current!==e||p.current!==o){const b=Object.values(t);b.forEach(D=>{D.now=e,D.timezone=o}),u.current=e,p.current=(E=b[0])==null?void 0:E.timezone,v(d)}},[e,o,t]),{customSelection:P,from:r,onSelection:v,options:C,selectedOption:d,to:i}},xO=({calendarRef:e,onTimeRangeSelected:t,timestamp:n,...o})=>{const{customSelection:s,from:r,onSelection:a,options:i,selectedOption:c,to:d}=RO(o),g=T(()=>Object.freeze(i.map(y=>({id:y,name:y}))),[i]),u=L(({target:y})=>a(y==null?void 0:y.value),[a]),p=k(!0),m=k(n);return W(()=>{e!=null&&e.current&&r&&d&&(p.current=!0,e.current.from=new Date(r),e.current.to=new Date(d))},[e,r,d]),W(()=>{m.current!==n&&(m.current=n,p.current?p.current=!1:s())},[s,n]),W(()=>{c&&(t==null||t(c))},[c,t]),l(Er,{setToTargetWidth:!0,items:g,filterable:!1,multiSelect:!1,onChange:u,selected:c})},wO=xO,Ke=(()=>{const e=o=>Object.freeze(uo(z,Object.fromEntries(Object.entries(o).map(([s,r])=>[s,{value:r}])))),t=o=>{try{return Object.getPrototypeOf(o)===z}catch{return!1}},n=(o,s)=>{if(!o)return e($(s,Bt(o)));let r=s;return e({enumerable:!0,get:()=>r,set:a=>{r=o(a)}})};return Object.defineProperties(n,{is:{value:t},isObject:{value:mr},immutable:{value:o=>n(!1,o)},mutable:{value:o=>n(void 0,o)},restricted:{value:()=>n(!1)}})})(),su=(()=>{const e=(n={},o=!1)=>{const s=G();for(const[r,a]of Object.entries(n)){try{const i=Ke.is(a),c=Ke.isObject(a);if(i||c){Object.defineProperty(s,r,i?a:e(a,o));continue}else if(o){Object.defineProperty(s,r,Ke.immutable(a));continue}}catch{}s[r]=a}return Ke((r={})=>Object.assign(s,r),s)};return Object.defineProperties(e,{unwrapped:{value:(n={},o=!1)=>{const s=e(n,o);return G({P:s}).P}}})})();var ci=(e=>(e[e.DATE=0]="DATE",e[e.DAY_OF_WEEK=1]="DAY_OF_WEEK",e[e.MONTH_HEADER=2]="MONTH_HEADER",e))(ci||{});const ru="adyen-pe-calendar__cell adyen-pe-calendar__cell--date",au="adyen-pe-calendar__date",PO=(e=z,t)=>{const n=su.unwrapped({childClassName:Ke.mutable(au),childProps:{children:Ke.restricted(),className:""},className:Ke.mutable(ru),props:{...e,children:Ke.restricted(),className:""}},!0);return t==null||t(ci.DATE,n),n},kO=Ye(({grid:e,prepare:t,datetime:n,flags:o,index:s,label:r,onlyCellsWithin:a},i)=>{const c=o.WITHIN_BLOCK,d={"data-cursor-position":s,"data-within-month":c,tabIndex:-1};if(c){const f=o.WITHIN_RANGE;d["data-today"]=o.CURRENT,d["data-first-week-day"]=o.LINE_START,d["data-last-week-day"]=o.LINE_END,d["data-weekend"]=o.WEEKEND,d["data-first-month-day"]=o.BLOCK_START,d["data-last-month-day"]=o.BLOCK_END,d["data-within-range"]=f,f&&(d["data-range-end"]=o.RANGE_END,d["data-range-start"]=o.RANGE_START,d["data-selection-end"]=o.SELECTION_END,d["data-selection-start"]=o.SELECTION_START,d["data-within-selection"]=o.WITHIN_SELECTION,d["aria-selected"]=`${!!(o.SELECTION_END||o.SELECTION_START||o.WITHIN_SELECTION)}`),s===+e.cursor&&(d.ref=i)}const g=PO(d,t),{children:u,className:p,...m}=g.props||z,y=Fs(g.className,ru,p);return l("td",{...m,...d,className:y,children:(!a||c)&&(()=>{const{children:f,className:A,...I}=g.childProps||z,M=Fs(g.childClassName,au,A);return l("time",{...I,className:M,dateTime:n,children:r})})()})}),jO=Ne(kO,js({block:js.exclude,flags:e=>+e})),iu="adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week",cu="adyen-pe-calendar__day-of-week",FO=(e=z,t)=>{const n=su.unwrapped({childClassName:Ke.mutable(cu),childProps:{children:Ke.restricted(),className:""},className:Ke.mutable(iu),props:{...e,children:Ke.restricted(),className:""}},!0);return t==null||t(ci.DAY_OF_WEEK,n),n},WO=({prepare:e,flags:t,labels:{long:n,short:o}})=>{const s={"aria-label":n,"data-first-week-day":t.LINE_START,"data-last-week-day":t.LINE_END,"data-weekend":t.WEEKEND,scope:"col"},r=FO(s,e),{children:a,className:i,...c}=r.props||z,d=Fs(r.className,iu,i),{children:g,className:u,...p}=r.childProps||z,m=Fs(r.childClassName,cu,u);return l("th",{...c,...s,className:d,children:l("abbr",{...p,className:m,children:o})})},BO=Ne(WO,js({block:js.exclude,flags:e=>+e}));const zO=go(({cursorRootProps:e,onlyCellsWithin:t,prepare:n,grid:o},s)=>l("ol",{className:"adyen-pe-calendar",role:"none",...e,children:o.map(r=>l("li",{className:"adyen-pe-calendar__month",role:"none",children:[l("div",{className:"adyen-pe-calendar__month-name",role:"none",children:l("time",{dateTime:r.datetime,"aria-hidden":"true",children:r.label})}),l("table",{role:"grid","aria-multiselectable":!0,"aria-label":`${r.label} calendar`,className:"adyen-pe-calendar__grid",style:{"--adyen-pe-calendar-rowspan":o.rowspan},children:[l("thead",{children:l("tr",{className:"adyen-pe-calendar__row",children:o.weekdays.map((a,i)=>l(BO,{grid:o,block:r,prepare:n,cell:i,...a},a.labels.long))})}),l("tbody",{children:r.map((a,i)=>l("tr",{className:"adyen-pe-calendar__row",children:a.map((c,d)=>l(jO,{ref:s,grid:o,block:r,prepare:n,cell:d,onlyCellsWithin:t,row:i,...c},`${r.month}:${c.timestamp}`))},`${r.month}:${i}`))})]})]},r.datetime))})),UO=Ne(zO),Bs=864e5,YO=["narrow","short","long"],lu=[0,1,6],Rn=[1,2,3,4,6,12],oc=42,GO=[0,1],li=Symbol(),ui=Symbol(),di=Symbol(),sc=[di,ui,li],Jt=Symbol(),vn=Symbol(),bn=Symbol(),HO=[vn,bn,Jt],uu=Symbol(),du=Symbol(),hu=Symbol(),gu=Symbol(),mu=Symbol(),pu=Symbol(),fu=Symbol(),yu=Symbol(),Iu=Symbol(),_u=Symbol(),hi=Symbol(),gi=Symbol(),Tu=Symbol(),rc=Symbol(),$e=Symbol(),ac=Symbol(),He=Symbol(),Au=Symbol(),vs=Symbol(),bs=Symbol(),ic=(e,t)=>{if(t>=e)return e;let n=Math.max(1,Rn.indexOf(e));for(;--n&&t<Rn[n];);return Rn[n]},ZO=e=>Rn[Math.max(Rn.indexOf(e),0)],cc=(e=0)=>Object.freeze(GO.map(t=>ds(6-e+t,7)));var Fo,We,Be,jn,Fn;class lc{constructor(...t){S(this,Fo,1/0);S(this,We,1/0);S(this,Be,-1/0);S(this,jn,0);S(this,Fn,0);if(t.length>=3){let n=new Date(t[1]).getTime();if(typeof t[2]!="symbol")_(this,Be,n||h(this,Be)),_(this,We,new Date(t[2]).getTime()||h(this,We)),h(this,We)<h(this,Be)&&([Zt(this,We)._,Zt(this,Be)._]=[h(this,Be),h(this,We)]),_(this,Fn,Mn(h(this,Be),t[0])),_(this,jn,Mn(h(this,We),t[0])),_(this,Fo,ga(h(this,Be),h(this,We),t[0])+1);else if(!isNaN(n))switch(t[2]){case gi:_(this,We,n),_(this,jn,Mn(h(this,We),t[0]));break;case hi:default:_(this,Be,n),_(this,Fn,Mn(h(this,Be),t[0]));break}}}get numberOfMonths(){return h(this,Fo)}get endTimestamp(){return h(this,We)}get endTimestampOffset(){return h(this,jn)}get startTimestamp(){return h(this,Be)}get startTimestampOffset(){return h(this,Fn)}}Fo=new WeakMap,We=new WeakMap,Be=new WeakMap,jn=new WeakMap,Fn=new WeakMap;const Dr=(...e)=>{let t=Dt().tz.current,n=new lc(t,...e);return G({from:oe(()=>n.startTimestamp,!1),to:oe(()=>n.endTimestamp,!1),offsets:{value:G({from:oe(()=>n.startTimestampOffset,!1),to:oe(()=>n.endTimestampOffset,!1)})},span:oe(()=>n.numberOfMonths,!1),timezone:{...oe(()=>t,!1),set:o=>{const s=t;t=Dt(o??void 0).tz.current,t!==s&&(n=new lc(t,...e))}}})},Eo=Dr(),VO=()=>Dr(Date.now(),hi),JO=()=>Dr(Date.now(),gi),Su=(...e)=>e.length===0?Eo:Dr(...e);var me=(e=>(e[e.CURRENT=1]="CURRENT",e[e.CURSOR=2]="CURSOR",e[e.WEEKEND=4]="WEEKEND",e[e.LINE_START=8]="LINE_START",e[e.LINE_END=16]="LINE_END",e[e.WITHIN_BLOCK=32]="WITHIN_BLOCK",e[e.BLOCK_START=64]="BLOCK_START",e[e.BLOCK_END=128]="BLOCK_END",e[e.WITHIN_RANGE=256]="WITHIN_RANGE",e[e.RANGE_START=512]="RANGE_START",e[e.RANGE_END=1024]="RANGE_END",e[e.WITHIN_SELECTION=2048]="WITHIN_SELECTION",e[e.SELECTION_START=4096]="SELECTION_START",e[e.SELECTION_END=8192]="SELECTION_END",e[e.ALL=16383]="ALL",e))(me||{}),An=(e=>(e[e.PREV=1]="PREV",e[e.BLOCK=0]="BLOCK",e[e.FRAME=2]="FRAME",e[e.PERIOD=4]="PERIOD",e))(An||{}),ma=(e=>(e[e.PREV_PERIOD=5]="PREV_PERIOD",e[e.PREV_FRAME=3]="PREV_FRAME",e[e.PREV=1]="PREV",e[e.NEXT=0]="NEXT",e[e.NEXT_FRAME=2]="NEXT_FRAME",e[e.NEXT_PERIOD=4]="NEXT_PERIOD",e))(ma||{});const QO=(()=>{const e={},t=Object.keys(me).filter(o=>isNaN(+o)),n=o=>o!=="ALL"&&qe(o)&&t.includes(o);return o=>{const s=o&me.ALL;return e[s]||(e[s]=new Proxy(G({valueOf:{value:()=>s}}),Ir({get:(r,a)=>{switch(a){case"valueOf":return r.valueOf;case Symbol.toStringTag:return"_";default:if(!n(a))return}return s&me[a]?1:void 0}}))),e[s]}})(),Nu=QO,XO=e=>(t,n,o)=>{if(qe(n)){const s=+n;if(s>=0&&s<t.length)return e(s)}return Reflect.get(t,n,o)},uc=function*(e=gr,t){for(let n=0;n<this.length;n++)yield e.call(t,this[n],n,this)},KO=Object.freeze(G({[Symbol.iterator]:{value(){return uc.call(this)}},map:{value(e,t){return[...uc.call(this,e,t)]}}})),vt=(e,t)=>ee(e)?vt({length:{get:e}},t):us(e)?vt({length:{value:e}},t):new Proxy(uo(KO,e),{get:XO(t),set:Xr}),qO=(()=>{const e=new Map,t=ps(),n=(o=Date.now())=>{const s=new Date(Et(t,o)),r=ft(t,s.setHours(0,0,0,0)),a=ft(t,s.setDate(s.getDate()+1));return[r,a-r]};return o=>{t.tz=o;const s=t.tz.current;return e.get(s)??(()=>{let r=null,a=null,i=null;const c=()=>(t.tz=s,r??n()[0]),d=(f=Date.now())=>{t.tz=s,[r,a]=n(f)},{cancelSubscriptions:g,requestNotification:u,subscribe:p,on:m}=ms({timestamp:c});m.resume=()=>{i=Fc.subscribe(f=>{if(ho(f))return;const{now:A}=f;if(ws(r)||ws(a))return d(A);A-r<a||(d(A),u())})},m.idle=()=>{i==null||i(),r=a=i=null};const y=G({cancelSubscriptions:$(g),timestamp:oe(c),timezone:$(s),subscribe:$(p)});return e.set(s,y),y})()}})(),zs=qO;var Wn,Re,Wo,Bo,zo,Uo,ot,ze,Tt,Bn,zn,Un,Kt,At,Yo,_e,ye,Ie,Yn,St,qt,Gn,st,Go,Ho,wt,Nt,Zo,Vo,Gs,Hs,Zs,Lu,Vs,Cu,Pt,Sn,Js,Eu,xe,Fe,en,Ao,Jo,fa;const Dn=class Dn{constructor(){S(this,Zs);S(this,Vs);S(this,Pt);S(this,Js);S(this,xe);S(this,en);S(this,Jo);S(this,Re,0);S(this,Wo,void 0);S(this,Bo,void 0);S(this,zo,-1);S(this,Uo,-1);S(this,ot,void 0);S(this,ze,void 0);S(this,Tt,void 0);S(this,Bn,!1);S(this,zn,void 0);S(this,Un,0);S(this,Kt,[]);S(this,At,h(Dn,Wn));S(this,Yo,12);S(this,_e,void 0);S(this,ye,void 0);S(this,Ie,1);S(this,Yn,void 0);S(this,St,void 0);S(this,qt,void 0);S(this,Gn,zs());S(this,st,void 0);S(this,Go,-1/0);S(this,Ho,1/0);S(this,wt,-1/0);S(this,Nt,1/0);S(this,Zo,1/0);S(this,Vo,0);x(this,"daysInWeek",0);x(this,"origin");x(this,"originTimestamp");S(this,Gs,vt(()=>this.daysInWeek,this.getDayOfWeekAtIndex.bind(this)));S(this,Hs,vt(()=>h(this,Ie),O(this,Js,Eu).bind(this)))}get fromTimestamp(){return h(this,Go)}get toTimestamp(){return h(this,Ho)}get numberOfBlocks(){return h(this,Zo)}get blankSelection(){return h(this,_e)===h(this,ye)&&H(h(this,ye))}get cursor(){return h(this,ot)??-1}get daysOfWeek(){return h(this,Gs)}get dynamicBlockHeight(){return h(this,Bn)}set dynamicBlockHeight(t){ue(t)?_(this,Bn,!!t):Qr(t)&&_(this,Bn,t)}set effect(t){ue(t)?_(this,zn,void 0):ee(t)&&_(this,zn,t)}get firstWeekDay(){return h(this,Un)}set firstWeekDay(t){if(ue(t))this.firstWeekDay=0;else if(!lu.includes(t)||h(this,Un)===_(this,Un,t))return}get frameBlocks(){return h(this,Hs)}get isAtEnd(){return!ln(h(this,Nt))&&h(this,Nt)===h(this,Ie)-1}get isAtStart(){return!ln(h(this,wt))&&h(this,wt)===0}get locale(){return h(this,At)}set locale(t){const n=h(this,At);if(ue(t))_(this,At,h(Dn,Wn));else if(typeof Intl<"u")try{_(this,At,new Intl.Locale(t).toString())}catch{_(this,At,h(Dn,Wn))}h(this,At)!==n&&this.refreshFrame(!0)}get selectionStart(){return h(this,_e)}get selectionEnd(){return h(this,ye)}get size(){return h(this,Ie)}set size(t){const n=Math.min(!ue(t)&&ZO(t)||1,h(this,Yo));h(this,Ie)!==_(this,Ie,n)&&(O(this,Jo,fa).call(this),this.refreshFrame())}get timeslice(){return h(this,St)}set timeslice(t){if(t===h(this,Yn)||ue(t)&&h(this,Yn)===Eo)return;const{from:n,to:o,timezone:s}=_(this,Yn,t??Eo);_(this,St,Su(n,o)),this.timezone=s}get timezone(){return h(this,qt)}set timezone(t){h(this,St).timezone=t,_(this,qt,h(this,St).timezone),_(this,Gn,zs(h(this,qt))),h(this,st)&&(h(this,st).call(this),_(this,st,h(this,Gn).subscribe(this.refreshFrame.bind(this,!0)))),O(this,Zs,Lu).call(this)}set trackCurrentDay(t){Qr(t)?t&&!h(this,st)?_(this,st,h(this,Gn).subscribe(this.refreshFrame.bind(this,!0))):!t&&h(this,st)&&(h(this,st).call(this),_(this,st,void 0)):ue(t)&&(this.trackCurrentDay=!1)}get units(){return h(this,Vo)}initialize(){this.timeslice=Eo}refreshFrame(t=!1){var n;if(h(this,Kt).length=0,!(H(h(this,ze))||t)){const o=this.getFrameBlockAtIndex(h(this,Re)),{from:s,to:r}=o.inner,[a]=O(this,Pt,Sn).call(this,this.getTimestampAtIndex(s+h(this,ze)),!1);_(this,ze,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(s),a));const i=s+h(this,ze),c=cn(s,i,r);if(c>i)return _(this,ze,this.getUnitsForFrameBlockAtIndex(--Zt(this,Re)._)+i-c),h(this,Re)>=0?this.refreshFrame():(_(this,Re,h(this,Ie)-1),this.shiftFrameByOffset(-1,vs));if(c<i)return _(this,ze,i-c-1),++Zt(this,Re)._<h(this,Ie)?this.refreshFrame():(_(this,Re,0),this.shiftFrameByOffset(1,vs));_(this,Wo,s),_(this,Bo,r),_(this,Tt,O(this,Pt,Sn).call(this,this.getTimestampAtIndex(i),!1)[0]),_(this,ze,this.getCursorBlockOriginTimestampOffset(h(this,Tt))),_(this,ot,s+h(this,ze));const d=h(this,Re)>0?this.getFrameBlockAtIndex(0):o,g=h(this,Re)<h(this,Ie)-1?this.getFrameBlockAtIndex(h(this,Ie)-1):o;_(this,zo,d.inner.from),_(this,Uo,g.inner.to),_(this,Vo,g.outer.to+1)}this.withCurrentDayTimestamp(),(n=h(this,zn))==null||n.call(this)}shiftFrameByOffset(t,n){if(t&&Mo(t))switch(n){case Au:return O(this,en,Ao).call(this,t);case bs:return O(this,en,Ao).call(this,t*12);case vs:default:return O(this,en,Ao).call(this,t*h(this,Ie))}}shiftFrameCursor(t){switch(t){case uu:return O(this,xe,Fe).call(this,-1);case mu:return O(this,xe,Fe).call(this,1);case _u:return O(this,xe,Fe).call(this,-this.rowspan);case gu:return O(this,xe,Fe).call(this,this.rowspan);case hu:return O(this,xe,Fe).call(this,h(this,Wo)-h(this,ot));case du:return O(this,xe,Fe).call(this,h(this,Bo)-h(this,ot));case fu:return O(this,xe,Fe).call(this,-(h(this,ot)%this.rowspan));case pu:return O(this,xe,Fe).call(this,this.rowspan-(h(this,ot)%this.rowspan+1));case Iu:return O(this,xe,Fe).call(this,-this.getUnitsForFrameBlockAtIndex((h(this,Re)??0)-1));case yu:return O(this,xe,Fe).call(this,this.getUnitsForFrameBlockAtIndex(h(this,Re)??0))}if(!(t<0)&&t>=h(this,zo)&&t<=h(this,Uo))return O(this,xe,Fe).call(this,t-h(this,ot))}shiftFrameToTimestamp(t){_(this,Tt,this.originTimestamp=O(this,Pt,Sn).call(this,t,!1).reduce((n,o)=>n+o)),_(this,ze,this.getCursorBlockOriginTimestampOffset(h(this,Tt))),this.reoriginate(),[Zt(this,wt)._,Zt(this,Nt)._]=this.getEdgeBlockOffsetsFromOrigin(),O(this,Jo,fa).call(this),this.refreshFrame(),O(this,xe,Fe).call(this,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(h(this,ot)),h(this,Tt)))}clearSelection(){this.blankSelection||(_(this,_e,_(this,ye,void 0)),this.refreshFrame(!0))}updateSelection(t,n){const o=h(this,_e),s=h(this,ye),r=O(this,Pt,Sn).call(this,t,!1).reduce((a,i)=>a+i);switch(n===rc&&(r<=o?n=He:r>=s&&(n=$e)),n){case $e:_(this,_e,r),_(this,ye,Math.max(h(this,_e),s??r));break;case He:_(this,ye,r),_(this,_e,Math.min(o??r,h(this,ye)));break;case rc:case ac:{let a=Math.abs(r-(o??r)),i=Math.abs(r-(s??r));n===ac&&([a,i]=[i,a]),a>i?_(this,_e,r):_(this,ye,r);break}case Tu:default:_(this,_e,_(this,ye,r));break}(h(this,_e)!==o||h(this,ye)!==s)&&this.refreshFrame(!0)}};Wn=new WeakMap,Re=new WeakMap,Wo=new WeakMap,Bo=new WeakMap,zo=new WeakMap,Uo=new WeakMap,ot=new WeakMap,ze=new WeakMap,Tt=new WeakMap,Bn=new WeakMap,zn=new WeakMap,Un=new WeakMap,Kt=new WeakMap,At=new WeakMap,Yo=new WeakMap,_e=new WeakMap,ye=new WeakMap,Ie=new WeakMap,Yn=new WeakMap,St=new WeakMap,qt=new WeakMap,Gn=new WeakMap,st=new WeakMap,Go=new WeakMap,Ho=new WeakMap,wt=new WeakMap,Nt=new WeakMap,Zo=new WeakMap,Vo=new WeakMap,Gs=new WeakMap,Hs=new WeakMap,Zs=new WeakSet,Lu=function(){const{from:t,to:n,span:o,offsets:s}=h(this,St);_(this,Go,t-s.from),_(this,Ho,n-s.to),_(this,Zo,o);const r=H(h(this,_e))?h(this,_e):Math.max(h(this,_e),t),a=H(h(this,ye))?h(this,ye):Math.min(h(this,ye),n);r===h(this,_e)||a===h(this,ye)?(_(this,_e,r),_(this,ye,a)):_(this,_e,_(this,ye,void 0)),this.reslice(),_(this,Yo,ic(12,this.numberOfBlocks)),_(this,Ie,ic(h(this,Ie),this.numberOfBlocks)),this.shiftFrameToTimestamp(h(this,Tt))},Vs=new WeakSet,Cu=function(t){return cn(h(this,wt),t||0,h(this,Nt)-h(this,Ie)+1)},Pt=new WeakSet,Sn=function(t,n=!0){let o=new Date(t).getTime();if(isNaN(o))return O(this,Pt,Sn).call(this,Date.now());const{from:s,to:r}=h(this,St),a=cn(s,o,r);a!==o&&n?(o=Ec(s,r),(isNaN(o)||ln(o))&&(o=a)):o=a;const i=Mn(o,h(this,qt));return[o-i,i]},Js=new WeakSet,Eu=function(t){if(Mo(t)&&t>=0&&t<h(this,Ie)){if(!h(this,Kt)[t]){const n=this.getFrameBlockAtIndex(t);if(!n)return;const[o,s]=this.getFormattedDataForFrameBlock(n[n.inner.from][0]+Bs/2),r=n.outer.from;h(this,Kt)[t]=vt({datetime:$(s),label:$(o),length:$(Math.ceil(n.outer.units/this.rowspan)),month:$(n.month),year:$(n.year)},a=>{const i=a*this.rowspan;return vt(this.rowspan,c=>{const[d,g]=n[c+i],[u,p]=this.getFormattedDataForBlockCell(d+Bs/2);return G({datetime:$(p),flags:$(Nu(g)),index:$(r+c+i),label:$(u),timestamp:$(d)})})})}return h(this,Kt)[t]}},xe=new WeakSet,Fe=function(t){t!==0&&(_(this,ze,h(this,ze)+t),this.refreshFrame())},en=new WeakSet,Ao=function(t){const n=O(this,Vs,Cu).call(this,t);n&&(this.shiftOrigin(n),_(this,wt,h(this,wt)-n),_(this,Nt,h(this,Nt)-n),_(this,Re,ds(h(this,Re)-n,h(this,Ie))),this.refreshFrame())},Jo=new WeakSet,fa=function(){const t=h(this,Ie)-1,n=Math.min(t-this.origin%h(this,Ie),h(this,Nt))-t;n&&O(this,en,Ao).call(this,n)},S(Dn,Wn,Tr);let pa=Dn;var tn,nn,Hn,Qo,Zn,Vn,Xo,Jn,Ko,Qn,Xn,Kn,qo,ya,es,Ia,kt,Nn,qn,Ds;class e$ extends pa{constructor(){super();S(this,qo);S(this,es);S(this,kt);S(this,qn);S(this,tn,7);S(this,nn,[]);S(this,Hn,cc(this.firstWeekDay));S(this,Qo,void 0);S(this,Zn,-1/0);S(this,Vn,1/0);S(this,Xo,1/0);S(this,Jn,void 0);S(this,Ko,void 0);S(this,Qn,void 0);S(this,Xn,void 0);S(this,Kn,void 0);x(this,"daysInWeek",h(this,tn));this.initialize()}get fromTimestamp(){return h(this,Zn)}get toTimestamp(){return h(this,Vn)}get numberOfBlocks(){return h(this,Xo)}get currentDayTimestamp(){return h(this,Qo)}get dynamicBlockHeight(){return super.dynamicBlockHeight}set dynamicBlockHeight(n){const o=this.dynamicBlockHeight;super.dynamicBlockHeight=n,this.dynamicBlockHeight!==o&&this.refreshFrame(!0)}get rowspan(){return h(this,tn)}get firstWeekDay(){return super.firstWeekDay}set firstWeekDay(n){const o=this.firstWeekDay;super.firstWeekDay=n,this.firstWeekDay!==o&&(h(this,nn).length=0,_(this,Hn,cc(this.firstWeekDay)),this.reoriginate(),this.refreshFrame())}getCursorBlockOriginTimestampOffset(n){return xt(n,this.timezone)[2]-1}getDayOfWeekAtIndex(n){if(!h(this,nn)[n]){const o=new Date(this.getTimestampAtIndex(n));let s=0;h(this,Hn).includes(n)&&(s|=me.WEEKEND),n===0?s|=me.LINE_START:n===6&&(s|=me.LINE_END);const r={};for(const a of YO)r[a]=$(o.toLocaleDateString(this.locale,{weekday:a,timeZone:this.timezone}));h(this,nn)[n]=G({flags:$(Nu(s)),labels:$(G(r))})}return h(this,nn)[n]}getEdgeBlockOffsetsFromOrigin(){return[O(this,qo,ya).call(this,h(this,Zn)),O(this,qo,ya).call(this,h(this,Vn))]}getFormattedDataForBlockCell(n){const[o,s,r]=xt(n,this.timezone);return[Number(r).toLocaleString(this.locale),`${o}-${`${s+1}`.padStart(2,"0")}-${`${r}`.padStart(2,"0")}`]}getFormattedDataForFrameBlock(n){const[o,s]=xt(n,this.timezone);return[new Date(n).toLocaleDateString(this.locale,{month:"long",year:"numeric",timeZone:this.timezone}),`${o}-${`${s+1}`.padStart(2,"0")}`]}getFrameBlockAtIndex(n){const[o,s,r]=Yr(this.origin,h(this,Qn),n),a=n>0?this.getFrameBlockAtIndex(n-1).inner.to+1:h(this,Jn),i=a+o-1,c=Math.floor(a/7)*7,d=this.dynamicBlockHeight?Math.ceil((i+1)/7)*7:c+oc,g=this.dynamicBlockHeight?d-c:oc,u=new Proxy(G(),Ir({get:(p,m,y)=>{if(qe(m)){const f=+m;if(Mo(f)&&f>=0&&f<g){const A=c+f,I=this.getTimestampAtIndex(A),M=A%h(this,tn);let C=I===this.currentDayTimestamp?me.CURRENT:0;return A===this.cursor&&(C|=me.CURSOR),h(this,Hn).includes(M)&&(C|=me.WEEKEND),M===0?C|=me.LINE_START:M===h(this,tn)-1&&(C|=me.LINE_END),A>=a&&A<=i&&(A===a?C|=me.BLOCK_START:A===i&&(C|=me.BLOCK_END),C|=me.WITHIN_BLOCK),I>=this.fromTimestamp&&I<=this.toTimestamp&&(I===this.fromTimestamp&&(C|=me.RANGE_START),I===this.toTimestamp&&(C|=me.RANGE_END),C|=me.WITHIN_RANGE),I>=h(this,Xn)&&I<=h(this,Kn)&&(I===h(this,Xn)&&(C|=me.SELECTION_START),I===h(this,Kn)&&(C|=me.SELECTION_END),C|=me.WITHIN_SELECTION),[I,C]}}return Reflect.get(p,m,y)}}));return uo(u,{inner:{value:G({from:{value:a},to:{value:i},units:{value:o}})},month:{value:s},outer:{value:G({from:{value:c},to:{value:d-1},units:{value:g}})},year:{value:r}})}getUnitsForFrameBlockAtIndex(n){return Yr(this.origin,h(this,Qn),n)[0]}getUnitsOffsetForTimestamp(n,o){return Math.round((o-n)/Bs)}reoriginate(){this.originTimestamp=eu(this.originTimestamp,this.timezone);const[n,o]=xt(this.originTimestamp,this.timezone),s=tu(this.originTimestamp,this.timezone,this.firstWeekDay);this.origin=o,_(this,Qn,n),_(this,Jn,this.getUnitsOffsetForTimestamp(s,this.originTimestamp)),_(this,Ko,O(this,es,Ia).call(this,this.originTimestamp,-h(this,Jn)))}reslice(){O(this,qn,Ds).call(this),_(this,Zn,O(this,kt,Nn).call(this,super.fromTimestamp)),_(this,Vn,O(this,kt,Nn).call(this,super.toTimestamp)),_(this,Xo,ga(super.fromTimestamp,super.toTimestamp,this.timezone)+1)}shiftOrigin(n){const[o,s]=xt(this.originTimestamp,this.timezone),[,r,a]=Yr(s,o,n),i=Dt(this.timezone),c=new Date(Et(i,this.originTimestamp)).setFullYear(a,r);this.originTimestamp=ft(i,c),this.reoriginate()}clearSelection(){super.clearSelection(),O(this,qn,Ds).call(this),this.refreshFrame(!0)}getTimestampAtIndex(n){return O(this,es,Ia).call(this,h(this,Ko),n)}updateSelection(n,o){super.updateSelection(n,o),O(this,qn,Ds).call(this),this.refreshFrame(!0)}withCurrentDayTimestamp(){_(this,Qo,O(this,kt,Nn).call(this,Date.now()))}}tn=new WeakMap,nn=new WeakMap,Hn=new WeakMap,Qo=new WeakMap,Zn=new WeakMap,Vn=new WeakMap,Xo=new WeakMap,Jn=new WeakMap,Ko=new WeakMap,Qn=new WeakMap,Xn=new WeakMap,Kn=new WeakMap,qo=new WeakSet,ya=function(n){const o=ga(n,this.originTimestamp,this.timezone);return n<this.originTimestamp?0-o:o},es=new WeakSet,Ia=function(n,o=0){const s=Dt(this.timezone),r=Et(s,n),a=ft(s,r+o*Bs);let[,,,i,c]=xt(a,this.timezone),d=0;return(i>0||c>0)&&(i=(i>12?24:0)-i,c=(i>1?1:-1)*c,d=i*36e5+c*6e4),a+d},kt=new WeakSet,Nn=function(n){return H(n)||ln(n)?n:n-Mn(n,this.timezone)},qn=new WeakSet,Ds=function(){_(this,Xn,O(this,kt,Nn).call(this,this.selectionStart)),_(this,Kn,O(this,kt,Nn).call(this,this.selectionEnd))};const dc=Symbol("<<NO_EXCEPTION>>"),hc=e=>{const t=[];return G({bind:$(o=>function(...s){let r=dc;try{return t.push(o),o.call(this,...s)}catch(a){throw r=a}finally{t.pop(),t.length===0&&r===dc&&e()}}),effect:$(e)})};var Nc,Lc,ce,rt,N,at,Ze,it,Le,on,Ue,eo,Lt,Ct,Ve,gt,to,ts,jt,Je,Qs,Ft,no,sn,ns,Xs,ae,Ks,qs,er,tr,nr,or,sr,Mu,rr,vu,ar,bu,ir,oo,Os,rn,So,os,_a,cr,Du,lr,Ou,ur,$u,dr,Ru,ss,Ta,hr,xu,an,No,rs,Aa,so,$s,as,Sa,is,Na,cs,La,ls,Ca;let t$=(ae=class{constructor(){S(this,rn);S(this,os);S(this,cr);S(this,lr);S(this,ur);S(this,dr);S(this,ss);S(this,hr);S(this,an);S(this,rs);S(this,so);S(this,as);S(this,is);S(this,cs);S(this,ls);x(this,"grid");x(this,"kill");S(this,ce,z);S(this,rt,!1);S(this,N,void 0);S(this,at,void 0);S(this,Ze,void 0);S(this,it,!1);S(this,Le,vn);S(this,on,!1);S(this,Ue,void 0);S(this,eo,(Nc=h(this,Ue))==null?void 0:Nc.join(" "));S(this,Lt,void 0);S(this,Ct,void 0);S(this,Ve,void 0);S(this,gt,void 0);S(this,to,void 0);S(this,ts,zs());S(this,jt,[]);S(this,Je,void 0);S(this,Qs,new Proxy(vt(()=>{var t;return((t=h(this,Je))==null?void 0:t.length)??0},O(this,ss,Ta).bind(this)),Ir({get:(t,n,o)=>{var r,a;const s=((r=h(this,Je))==null?void 0:r.indexOf(n))??-1;return s>=0?(a=O(this,ss,Ta).call(this,s))==null?void 0:a[1]:Reflect.get(t,n,o)}})));S(this,Ft,ms({blocks:()=>{var t;return(t=h(this,N))==null?void 0:t.size},cells:()=>{var t;return(t=h(this,N))==null?void 0:t.units},controls:()=>yo(sc,h(this,ce).controls),cursor:()=>{var t;return(t=h(this,N))==null?void 0:t.cursor},from:()=>{var t;return(t=h(this,N))==null?void 0:t.selectionStart},highlight:()=>h(this,Le),locale:()=>{var t;return(t=h(this,N))==null?void 0:t.locale},minified:()=>_n(h(this,ce).minified),origin:()=>{var t;return(t=h(this,N))==null?void 0:t.getTimestampAtIndex(0)},timezone:()=>{var t;return(t=h(this,N))==null?void 0:t.timezone},to:()=>{var t;return(t=h(this,N))==null?void 0:t.selectionEnd},today:()=>h(this,ts).timestamp}));S(this,no,(Lc=h(this,Ft))==null?void 0:Lc.snapshot);S(this,sn,hc(()=>{var t;return h(this,Ve)&&((t=h(this,Ft))==null?void 0:t.requestNotification())}));S(this,ns,hc(()=>{var t;return(t=h(this,Ve))==null?void 0:t.call(h(this,rn,So))}));S(this,Xs,uo(vt(()=>{var t;return((t=h(this,N))==null?void 0:t.size)??0},t=>{var n;return(n=h(this,N))==null?void 0:n.frameBlocks[t]}),{config:{value:Object.defineProperties(t=>(t&&O(this,lr,Ou).call(this,t),h(this,rn,So)),{cursorIndex:{get:()=>h(this,Lt),set:t=>{h(this,rt)||(ue(t)?_(this,Lt,void 0):ee(t)&&_(this,Lt,t))}},shiftFactor:{get:()=>h(this,Ct),set:t=>{h(this,rt)||(ue(t)?_(this,Ct,void 0):ee(t)&&_(this,Ct,t))}},watch:{get:()=>h(this,Ve),set:t=>{var n,o,s,r,a;if(!h(this,rt))if(ee(t)){if(_(this,Ve,t),!h(this,gt)){const i=(n=h(this,sn))==null?void 0:n.bind(h(ae,ir).bind(this));i&&(_(this,gt,(o=h(this,sn))==null?void 0:o.bind(ne)),_(this,to,(r=h(this,Ft))==null?void 0:r.subscribe((s=h(this,ns))==null?void 0:s.bind(i))),h(this,N)&&(h(this,N).effect=h(this,gt)))}if(!h(this,on))return;_(this,on,!1),(a=h(this,gt))==null||a.call(this)}else ue(t)&&_(this,Ve,void 0)}}})},controls:{value:h(this,Qs)},cursor:{value:Object.defineProperties(t=>O(ae,oo,Os).call(this,n=>!!(n&&O(this,ur,$u).call(this,n)))(t),{valueOf:{value:()=>{var t;return((t=h(this,N))==null?void 0:t.cursor)??-1}}})},highlight:{value:(()=>{const t=()=>h(this,at)===h(this,Ze)&&H(h(this,Ze)),n=o=>s=>O(ae,oo,Os).call(this,r=>{var a,i,c,d,g;if(!(h(this,rt)||!h(this,Le)||h(this,Le)===vn)){if(ue(r))return O(this,rs,Aa).call(this);t()?(i=h(this,N))==null||i.updateSelection(r,Tu):((a=h(this,N))==null||a.updateSelection(r,o),h(this,Le)===Jt&&h(this,Ue)&&O(this,so,$s).call(this,r,o===$e?He:$e,h(this,Ue))),_(this,at,(c=h(this,N))==null?void 0:c.selectionStart),_(this,Ze,(d=h(this,N))==null?void 0:d.selectionEnd),(g=h(this,N))==null||g.shiftFrameToTimestamp(o===$e?h(this,at):h(this,Ze))}})(s);return G({blank:{get:t},from:{get:()=>{var o;return((o=h(this,N))==null?void 0:o.selectionStart)??h(this,at)},set:n($e)},to:{get:()=>{var o;return((o=h(this,N))==null?void 0:o.selectionEnd)??h(this,Ze)},set:n(He)}})})()},rowspan:{get:()=>{var t;return((t=h(this,N))==null?void 0:t.rowspan)??0}},weekdays:{get:()=>{var t;return((t=h(this,N))==null?void 0:t.daysOfWeek)??h(ae,er)}}}));this.grid=h(this,Xs),this.kill=O(this,dr,Ru).bind(this)}},ce=new WeakMap,rt=new WeakMap,N=new WeakMap,at=new WeakMap,Ze=new WeakMap,it=new WeakMap,Le=new WeakMap,on=new WeakMap,Ue=new WeakMap,eo=new WeakMap,Lt=new WeakMap,Ct=new WeakMap,Ve=new WeakMap,gt=new WeakMap,to=new WeakMap,ts=new WeakMap,jt=new WeakMap,Je=new WeakMap,Qs=new WeakMap,Ft=new WeakMap,no=new WeakMap,sn=new WeakMap,ns=new WeakMap,Xs=new WeakMap,Ks=new WeakMap,qs=new WeakMap,er=new WeakMap,tr=new WeakMap,nr=new WeakMap,or=new WeakMap,sr=new WeakSet,Mu=function(t){if(!qe(t)||!h(ae,Ks).test(t))return;const n=t.split(/\s+/);return Array.from({length:6},(o,s)=>parseInt(n[s]??"0"))},rr=new WeakSet,vu=function(t){switch(t&~An.PREV){case An.FRAME:return vs;case An.PERIOD:return bs;case An.BLOCK:default:return Au}},ar=new WeakSet,bu=function(t){return t&An.PREV?-1:1},ir=new WeakMap,oo=new WeakSet,Os=function(t){var n;return((n=h(this,sn))==null?void 0:n.bind(t))??t},rn=new WeakSet,So=function(){return{...h(this,ce)}},os=new WeakSet,_a=function(){return new e$},cr=new WeakSet,Du=function(t){return!!h(this,N)&&!(t>0?h(this,N).isAtEnd:h(this,N).isAtStart)},lr=new WeakSet,Ou=function(t){var s,r;if(h(this,rt))return;_(this,Ue,void 0);const n=t==null?void 0:t.highlight,o=_n(h(this,ce).minified);if(qe(n)?_(this,Ue,O(s=ae,sr,Mu).call(s,n))&&_(this,Le,Jt):_(this,Le,yo(HO,n,h(this,Le))),_(this,ce,{...h(this,ce),...t,blocks:yo(Rn,t==null?void 0:t.blocks,h(this,ce).blocks),controls:yo(sc,t==null?void 0:t.controls,h(this,ce).controls),firstWeekDay:yo(lu,t==null?void 0:t.firstWeekDay,h(this,ce).firstWeekDay),fixedBlockHeight:_n(t==null?void 0:t.fixedBlockHeight,h(this,ce).fixedBlockHeight),highlight:h(this,Le),minified:_n(t==null?void 0:t.minified,h(this,ce).minified),trackCurrentDay:_n(t==null?void 0:t.trackCurrentDay,h(this,ce).trackCurrentDay)}),!ee(h(this,Ve))){h(this,N)?_(this,on,!0):(_(this,N,h(this,os,_a)),O(this,is,Na).call(this),O(this,ls,Ca).call(this),O(this,cs,La).call(this));return}(!h(this,N)||o!==h(this,ce).minified)&&(_(this,N,h(this,os,_a)),h(this,N).effect=h(this,gt)),O(this,is,Na).call(this),(r=h(this,gt))==null||r.call(this)},ur=new WeakSet,$u=function(t){if(t&&h(this,N)&&ee(h(this,Ve))){if(t instanceof KeyboardEvent){switch(t.code){case Y.ARROW_LEFT:h(this,N).shiftFrameCursor(uu);break;case Y.ARROW_RIGHT:h(this,N).shiftFrameCursor(mu);break;case Y.ARROW_UP:h(this,N).shiftFrameCursor(_u);break;case Y.ARROW_DOWN:h(this,N).shiftFrameCursor(gu);break;case Y.HOME:h(this,N).shiftFrameCursor(t.ctrlKey?hu:fu);break;case Y.END:h(this,N).shiftFrameCursor(t.ctrlKey?du:pu);break;case Y.PAGE_UP:t.shiftKey?h(this,N).shiftFrameByOffset(-1,bs):h(this,N).shiftFrameCursor(Iu);break;case Y.PAGE_DOWN:t.shiftKey?h(this,N).shiftFrameByOffset(1,bs):h(this,N).shiftFrameCursor(yu);break;case Y.SPACE:case Y.ENTER:return O(this,an,No).call(this),!0;default:return}return h(this,it)&&O(this,an,No).call(this,z),!0}if(t instanceof MouseEvent&&h(ae,qs).includes(t.type)&&ee(h(this,Lt))){const n=h(this,Lt).call(h(this,rn,So),t);if(!Mo(n))return;const o=t.type==="click";if(!(o||h(this,it)))return;if(h(this,N).shiftFrameCursor(n),h(this,N).cursor===n)return o?O(this,an,No).call(this):O(this,an,No).call(this,z),!0}}},dr=new WeakSet,Ru=function(){var t;h(this,rt)||((t=h(this,to))==null||t.call(this),_(this,sn,_(this,ns,_(this,Lt,_(this,N,_(this,Le,_(this,eo,_(this,no,_(this,Ue,_(this,Ct,_(this,to,_(this,Ft,_(this,gt,_(this,Ve,void 0))))))))))))),_(this,ce,z),_(this,it,_(this,on,!1)),_(this,rt,!0))},ss=new WeakSet,Ta=function(t){var o,s;if(!h(this,Je)||t<0||t>=h(this,Je).length)return;const n=h(this,Je)[t];if(!h(this,jt)[t]){const r=ma[n],a=O(o=ae,rr,vu).call(o,r),i=O(s=ae,ar,bu).call(s,r);h(this,jt)[t]=(...c)=>O(ae,oo,Os).call(this,(...d)=>{var p;const g=O(this,cr,Du).call(this,i);if(!(g&&d.length))return g;const u=O(this,hr,xu).call(this,n,d[0]);return H(u)?!1:((p=h(this,N))==null||p.shiftFrameByOffset(i*u,a),!0)})(...c)}return[n,h(this,jt)[t]]},hr=new WeakSet,xu=function(t,n){if(!(h(this,N)&&ee(h(this,Ve))))return;if(n instanceof MouseEvent){if(n.type!=="click")return}else if(n instanceof KeyboardEvent){if(!h(ae,tr).includes(n.code))return}else return;let o=1;if(ee(h(this,Ct))){const s=Number(h(this,Ct).call(h(this,rn,So),n,t));o=Number.isInteger(s)&&s>=1?s:o}return o},an=new WeakSet,No=function(t){if(h(this,rt)||!h(this,N))return;switch(h(this,Le)){case Jt:case bn:break;case vn:default:return}const n=h(this,N).cursor,o=Math.max(h(this,N).getTimestampAtIndex(n),h(this,N).timeslice.from),s=Math.min(h(this,N).getTimestampAtIndex(n+1)-1,h(this,N).timeslice.to),r=h(this,Ue);if(h(this,Le)===bn||h(this,N).blankSelection||r)if(_(this,it,!(h(this,Le)===bn||r)),h(this,Le)===Jt&&r){const a=s>=h(this,N).selectionEnd?$e:He;a===$e?h(this,N).updateSelection(s,He):h(this,N).updateSelection(o,$e),O(this,so,$s).call(this,a===$e?h(this,N).selectionEnd:h(this,N).selectionStart,a,r)}else h(this,N).updateSelection(o,$e),h(this,N).updateSelection(s,He);else{const a=t===z,i=Dt(h(this,N).timezone);if(a||_(this,it,!1),o<=h(this,N).selectionStart){const c=new Date(Et(i,h(this,N).selectionStart)),d=Math.min(ft(i,c.setDate(c.getDate()+1)-1),h(this,N).timeslice.to);o===h(this,N).selectionStart&&s<=d&&h(this,N).updateSelection(s,He),h(this,N).updateSelection(o,$e)}else{const c=new Date(Et(i,h(this,N).selectionEnd)),d=Math.max(ft(i,c.setHours(0,0,0,0)),h(this,N).timeslice.from);o<=h(this,N).selectionEnd&&o>=d&&h(this,N).updateSelection(o,$e),h(this,N).updateSelection(s,He)}if(a)return}_(this,at,h(this,N).selectionStart),_(this,Ze,h(this,N).selectionEnd)},rs=new WeakSet,Aa=function(){var t;(t=h(this,N))==null||t.clearSelection(),_(this,it,!1),_(this,at,_(this,Ze,void 0))},so=new WeakSet,$s=function(t,n,o){var m;if(!h(this,N))return;const s=Dt((m=h(this,N))==null?void 0:m.timezone),r=new Date(Et(s,t)),a=n===$e?-1:1,[i=0,c=0,d=0,g=0,u=0,p=0]=o??[];r.setFullYear(r.getFullYear()+i*a,r.getMonth()+c*a,r.getDate()+d*a),r.setHours(r.getHours()+g*a,r.getMinutes()+u*a,r.getSeconds()+p*a),h(this,N).updateSelection(ft(s,r.getTime()-a),n)},as=new WeakSet,Sa=function(){var t,n;h(this,at)&&((t=h(this,N))==null||t.updateSelection(h(this,at),$e)),h(this,Ze)&&((n=h(this,N))==null||n.updateSelection(h(this,Ze),He)),_(this,it,!1)},is=new WeakSet,Na=function(){h(this,N)&&(h(this,N).timeslice=h(this,ce).timeslice,h(this,N).dynamicBlockHeight=!h(this,ce).fixedBlockHeight,h(this,N).firstWeekDay=h(this,ce).firstWeekDay,h(this,N).locale=h(this,ce).locale,h(this,N).size=h(this,ce).blocks,h(this,N).timezone=h(this,ce).timezone,h(this,N).trackCurrentDay=h(this,ce).trackCurrentDay,_(this,ts,zs(h(this,N).timezone)),O(this,as,Sa).call(this))},cs=new WeakSet,La=function(){var t,n,o,s,r,a;switch(h(this,Le)){case Jt:!Bt((t=h(this,N))==null?void 0:t.blankSelection)&&h(this,Ue)&&O(this,so,$s).call(this,(n=h(this,N))==null?void 0:n.selectionStart,He,h(this,Ue));break;case bn:if(!Bt((o=h(this,N))==null?void 0:o.blankSelection)){const i=Dt((s=h(this,N))==null?void 0:s.timezone),c=new Date(Et(i,(r=h(this,N))==null?void 0:r.selectionStart));(a=h(this,N))==null||a.updateSelection(ft(i,c.setHours(23,59,59,999)),He)}break;case vn:default:O(this,rs,Aa).call(this);return}},ls=new WeakSet,Ca=function(){var t,n;switch((t=h(this,Ft))==null?void 0:t.snapshot.controls){case li:_(this,Je,h(ae,nr));break;case ui:_(this,Je,h(ae,or));break;case di:default:_(this,Je,void 0)}h(this,jt).length=0,h(this,jt).length=((n=h(this,Je))==null?void 0:n.length)??0},S(ae,sr),S(ae,rr),S(ae,ar),S(ae,oo),S(ae,Ks,/^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/),S(ae,qs,["click","mouseover","pointerover"]),S(ae,er,vt(0,ne)),S(ae,tr,[Y.ENTER,Y.SPACE]),S(ae,nr,Object.keys(ma).filter(t=>isNaN(+t))),S(ae,or,["PREV","NEXT"]),S(ae,ir,function(t){var a,i;if(ho(t))return;let n=!1,o=!1,s=!1;const r=(a=h(this,Ue))==null?void 0:a.join(" ");for(const c of Object.keys(t))t[c]!==((i=h(this,no))==null?void 0:i[c])&&(c==="controls"?n=!0:c==="highlight"?o=!0:(c==="from"||c==="to")&&(s=!0));h(this,eo)!==r&&(_(this,eo,r),o=!0),_(this,no,t),h(this,it)&&!s&&O(this,as,Sa).call(this),n&&O(this,ls,Ca).call(this),o&&O(this,cs,La).call(this)}),ae);const n$=(()=>Object.defineProperties(t=>{const{grid:n,kill:o}=new t$;return us(t)?n.config({blocks:t}):ee(t)?fr.then(()=>{n.config.watch=t}):n.config(t),G({grid:$(n),kill:$(o)})},{controls:{value:G({ALL:{value:li},MINIMAL:{value:ui},NONE:{value:di}})},highlight:{value:G({ONE:{value:bn},MANY:{value:Jt},NONE:{value:vn}})},slice:{value:Object.defineProperties(Su.bind(null),{FROM:{value:hi},TO:{value:gi},UNBOUNDED:{value:Eo},SINCE_NOW:{get:VO},UNTIL_NOW:{get:JO}})}}))(),dt=n$,o$=({config:e,grid:{controls:t},renderer:n})=>e.controls===dt.controls.NONE||!ee(n)?null:l(V,{children:t.map(([o,s])=>n(o,s))}),s$=Ne(o$),r$=e=>{const t=L((n,o)=>{o instanceof Element&&o.setAttribute("tabindex","-1"),n instanceof Element&&(n.setAttribute("tabindex","0"),fr.then(()=>n==null?void 0:n.focus()))},[]);return $t(L((n,o)=>{try{e==null||e(n,o)}finally{t(n,o)}},[e]))},a$=r$,i$=({blocks:e,controls:t,dynamicBlockRows:n,firstWeekDay:o,highlight:s,locale:r,onHighlight:a,originDate:i,renderControl:c,sinceDate:d,timezone:g,trackCurrentDay:u,untilDate:p,useYearView:m},y)=>{const{i18n:f}=Q(),[A,I]=U(performance.now()),M=T(()=>dt.slice(d,p),[d,p]),C=k(z),v=T(()=>t??(ee(c)?dt.controls.MINIMAL:dt.controls.NONE),[t,c]),P=T(()=>s??(ee(a)?dt.highlight.ONE:dt.highlight.NONE),[s,a]),{grid:E,kill:b}=T(()=>{const{grid:R,kill:X}=dt(function(){I(performance.now()),C.current=this,!(B===R.highlight.from&&se===R.highlight.to)&&(B=R.highlight.from,se=R.highlight.to,a==null||a(B,se))});let{from:B,to:se}=R.highlight;return R.config.cursorIndex=K=>{let re=K.target;for(;re&&re!==K.currentTarget;){const Ee=Number(re.dataset.cursorPosition);if(Number.isFinite(Ee))return Ee;re=re.parentNode}},R.config.shiftFactor=function(K){if(this.controls===dt.controls.MINIMAL)return K!=null&&K.shiftKey?12:K!=null&&K.altKey?this.blocks:1},{grid:R,kill:X}},[]),D=T(()=>{const R=X=>{E.cursor(X)};return{onClickCapture:R,onMouseOverCapture:R,onPointerOverCapture:R,onKeyDownCapture:X=>{E.cursor(X)&&X.preventDefault()}}},[E]),j=a$(L((R,X)=>{X instanceof Element&&X.removeAttribute("aria-selected"),R instanceof Element&&R.setAttribute("aria-selected","true")},[]));return vv(y,()=>{const{from:R,to:X}=(E==null?void 0:E.highlight)||z;return{clear:()=>{E!=null&&E.highlight&&(E.highlight.from=void 0)},get config(){return{...C.current??z}},get from(){return tc(R)},set from(B){E!=null&&E.highlight&&B&&(E.highlight.from=B.getTime())},get to(){return tc(X)},set to(B){E!=null&&E.highlight&&B&&(E.highlight.to=B.getTime())}}},[E,A]),W(()=>{E.config({blocks:e,controls:v,firstWeekDay:o,fixedBlockHeight:!n,highlight:P,locale:r??f.locale,minified:m,timeslice:M,timezone:g,trackCurrentDay:u})},[v,P,e,n,o,E,f,r,M,g,u,m]),W(()=>{const R=[].concat(i).slice(0,2).map(Number).filter(Boolean);return R[0]&&(E.highlight.from=+R[0]),R[1]&&(E.highlight.to=+R[1]),b},[]),{cursorElementRef:j,cursorRootProps:D,grid:E}},c$=i$,l$=go((e,t)=>{const n=c$(e,t),o=n.grid.config();return l("div",{role:"none",children:[l(s$,{config:o,grid:n.grid,renderer:e.renderControl}),l(UO,{ref:n.cursorElementRef,config:o,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:e.onlyCellsWithin,prepare:e.prepare})]})}),u$=Ne(l$),d$=(e,t)=>{const[n,o]=U(),s=$t(T(()=>{const r=a=>(...i)=>{const c=e(a,...i);return c&&Nl(c,a)};return o(void 0),a=>o(a instanceof Element?()=>r(a):void 0)},[e,t]),t);return[n,s]},h$=d$,g$=e=>{const{i18n:t}=Q();return h$(L((n,o,s)=>{if(!(n instanceof HTMLElement))return null;if(ee(e))return e(o,s);let r,a,i;switch(o){case"PREV":r="prev",a="previous",i=ei;break;case"NEXT":r=a="next",i=Cr;break;default:return null}const c=s();return c?l(et,{"aria-label":t.get(`calendar.${a}Month`),variant:Oe.TERTIARY,disabled:!c,classNameModifiers:["circle",r],iconButton:!0,onClick:s,children:l(i,{role:"presentation"})},o):null},[t,e]))},m$=g$;const p$=go((e,t)=>{const{i18n:n}=Q(),[o,s]=m$(e.renderControl),[r,a]=U(performance.now()),i=T(()=>Bt(e.showTimezoneInfo),[e.showTimezoneInfo]),{clockTime:c,GMTOffset:d}=eO({timezone:e.timezone,withClock:i}),g=T(()=>F([{"adyen-pe-datepicker--with-timezone":i},"adyen-pe-datepicker"]),[i]),u=T(()=>i?{values:{offset:d,time:c}}:z,[d,c,i]),p=$t(ne,t),m=L(()=>{var y,f,A,I,M;a(performance.now()),(y=p.current)!=null&&y.from&&((f=p.current)!=null&&f.to)&&((M=e.onHighlight)==null||M.call(e,+((A=p.current)==null?void 0:A.from),+((I=p.current)==null?void 0:I.to)))},[a,e.onHighlight]);return l("div",{className:g,children:[l("div",{className:"adyen-pe-datepicker__selector-container",children:l(wO,{now:e.now,calendarRef:p,onTimeRangeSelected:e.onPresetOptionSelected,options:e.timeRangePresetOptions,selectedOption:e.selectedPresetOption,timestamp:r,timezone:e.timezone})}),l("div",{ref:s,role:"group",className:"adyen-pe-datepicker__controls","aria-label":n.get("calendar.controls")}),l(u$,{...e,ref:p,firstWeekDay:ii,dynamicBlockRows:!0,onlyCellsWithin:!0,controls:e.controls??dt.controls.MINIMAL,highlight:e.highlight??dt.highlight.MANY,onHighlight:m,renderControl:o,trackCurrentDay:!0}),i&&l("div",{className:"adyen-pe-datepicker__timezone",children:n.get("calendar.timezone",u)})]})}),f$=p$;const y$="adyen-pe-filter-button";function I$({className:e,classNameModifiers:t=[],children:n,disabled:o,onClick:s,...r},a){const i=T(()=>On("",e)||"",[e]),c=T(()=>Ua(o),[o]),{classes:d,click:g}=Ya(i,t,y$,c,s);return l("button",{className:d,ref:a,onClick:g,...r,children:l(q,{el:io.SPAN,variant:w.BODY,stronger:!0,children:n})})}const _$=Ye(I$);function wu({onInput:e,onKeyUp:t,trimOnBlur:n,onBlurHandler:o,onBlur:s,onFocusHandler:r,errorMessage:a,...i},c){const{autoCorrect:d,classNameModifiers:g,isInvalid:u,isValid:p,readonly:m=!1,spellCheck:y,type:f,uniqueId:A,isCollatingErrors:I,disabled:M}=i;ct(i,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const C=L(K=>{e==null||e(K)},[e]),v=L(K=>{t&&t(K)},[t]),P=L(K=>{o==null||o(K),n&&(K.target.value=K.target.value.trim()),s==null||s(K)},[s,o,n]),E=L(K=>{r==null||r(K)},[r]),b=F("adyen-pe-input",[`adyen-pe-input--${f}`],i.className,{"adyen-pe-input--invalid":u,"adyen-pe-input--valid":p},g==null?void 0:g.map(K=>`adyen-pe-input--${K}`)),{classNameModifiers:D,uniqueId:j,isInvalid:R,isValid:X,isCollatingErrors:B,...se}=i;return l(V,{children:[l("input",{id:A,...se,type:f,className:b,readOnly:m,"aria-describedby":I?void 0:`${A}${ha}`,"aria-invalid":u,onInput:C,onBlur:P,onFocus:E,onKeyUp:v,disabled:M,ref:c}),u&&a&&l("span",{className:"adyen-pe-input__invalid-value",id:`${A}${ha}`,children:a})]})}wu.defaultProps={type:"text",classNameModifiers:[],onInput:()=>{}};const Ea=go(wu),T$=go(function(t,n){return l(Ea,{classNameModifiers:t.classNameModifiers,...t,ref:n,"aria-required":t.required,type:"text"})}),A$=e=>!e||vd(e),S$=(()=>{const e=t=>{const{editAction:n,name:o,onChange:s,onValueUpdated:r}=t,[a,i]=U(t.value),c=L(d=>{const g=d.target.value.trim();i(g),r(g)},[r]);return W(()=>{if(n===Ce.CLEAR){const d="";i(d),r(d),s(d)}n===Ce.APPLY&&s(a??"")},[a,n,s,r]),l(T$,{name:o,value:a,onInput:c})};return t=>l(e,{...t})})(),N$=({render:e,...t})=>{var X;const n=Se(Ae.down.xs),[o,s]=mt(!1),[r,a]=mt(!1),i=T(()=>t.isValueEmpty??A$,[t.isValueEmpty]),[c,d]=mt(i(t.value)),[g,u]=mt(!1),[p,m]=mt(!1),[y,f]=mt(i(t.value)),A=Ws(),I=T(()=>e??S$,[e]),M=L(B=>{const se=i(B??void 0);d(se),f(ws(B)),m(g?B!==t.value:!se)},[i,d,f,m,g,t.value]),{commitAction:C,commitActionButtons:v,committing:P,resetCommitAction:E}=Gl({applyDisabled:y||!p,resetDisabled:c}),[b,D]=T(()=>{const B=se=>()=>{se!==o&&(se&&(E(),m(!1),u(!1)),s(se),a(se))};return[B(!1),B(!0)]},[s,o,E,a,u,m]);W(()=>{if(r){const B=i(t.value);a(!1),d(B),u(!B)}},[t.value,r,i,a,d,u]),W(()=>{P&&b(),d(c)},[P,b,d,c]);const j=Se(Ae.only.sm),R=Se(Ae.only.md);return l(V,{children:[l("div",{className:`adyen-pe-filter adyen-pe-filter--${t.type}`,children:T(()=>l(_$,{classNameModifiers:[...t.appliedFilterAmount?["with-counter"]:[],...t.classNameModifiers??[],...o?["active"]:[],...c?[]:["has-selection"]],onClick:o?b:D,tabIndex:0,ref:A,children:l("div",{className:"adyen-pe-filter-button__default-container",children:[l(q,{el:io.SPAN,variant:w.BODY,stronger:!0,className:"adyen-pe-filter-button__label",children:t.label}),!!t.appliedFilterAmount&&l("div",{className:"adyen-pe-filter-button__counter-wrapper",children:l(q,{el:io.SPAN,variant:w.BODY,stronger:!0,className:"adyen-pe-filter-button__counter",children:t.appliedFilterAmount})})]})}),[t.appliedFilterAmount,t.classNameModifiers,t.label,o,c,b,D,A])}),o&&l(Xa,{actions:v,title:(X=t.title)==null?void 0:X.trim(),variant:De.POPOVER,modifiers:["filter"],open:o,"aria-label":`${t.label}`,dismiss:b,dismissible:!1,withContentPadding:t.withContentPadding??!0,divider:!0,targetElement:A,disableFocusTrap:!1,position:ie.BOTTOM,containerSize:t.containerSize,showOverlay:n,fitPosition:j||R,children:I({...t,editAction:C,onValueUpdated:M})})]})},Pu=Ne(N$);var xo=(e=>(e.FROM="from",e.TO="to",e))(xo||{});const L$={month:"short",day:"numeric",year:"numeric"},ku=(e,t,n,o)=>{const s=n&&t(n),r=o&&t(o);if(s&&r)return`${s} - ${r}`;if(s)return e.get("filter.date.since",{values:{date:s}});if(r)return e.get("filter.date.until",{values:{date:r}})},pt=e=>{try{return new Date(e||"").toISOString()}catch{return""}},C$=(()=>{const e=({editAction:t,from:n,to:o,now:s,onChange:r,onValueUpdated:a,showTimezoneInfo:i,selectedPresetOption:c,timeRangePresetOptions:d,timezone:g,sinceDate:u,untilDate:p})=>{const{i18n:m}=Q(),{fullDateFormat:y}=mo(g),[f,A]=U(c),I=T(()=>[new Date(n),new Date(o)],[n,o]),M=k(),C=L((v,P)=>{a(ku(m,y,pt(v),pt(P)))},[m,y,a]);return W(()=>{var v,P,E;switch(t){case Ce.APPLY:r({selectedPresetOption:f,[xo.FROM]:pt((v=M.current)==null?void 0:v.from),[xo.TO]:pt((P=M.current)==null?void 0:P.to)});break;case Ce.CLEAR:(E=M.current)==null||E.clear(),r()}},[t,r,f]),l(f$,{ref:M,now:s,originDate:I,onHighlight:C,onPresetOptionSelected:A,selectedPresetOption:c,timeRangePresetOptions:d,timezone:g,showTimezoneInfo:i,sinceDate:pt(u),untilDate:pt(p)})};return t=>l(e,{...t})})(),E$=(e,t,n)=>e.formatRange(t,n);function M$({title:e,from:t,to:n,selectedPresetOption:o,...s}){const{i18n:r}=Q(),{fullDateFormat:a}=mo(s.timezone),[i,c]=U(),[d,g]=U(),[u,p]=U(),m=L(I=>{const{from:M,to:C,selectedPresetOption:v}=I??z;try{c(i??v),g(pt(d??M)),p(pt(u??C))}finally{s.onChange({from:M,to:C,selectedPresetOption:v})}},[i,d,u,s]),y=T(()=>r.get("rangePreset.custom"),[r]),f=T(()=>{const I={...L$,timeZone:s.timezone};let M=new Intl.DateTimeFormat(Tr,I);try{M=new Intl.DateTimeFormat(r.locale,I)}catch{}return M},[r,s.timezone]);W(()=>c(o),[o]),W(()=>g(pt(t||Date.now())),[t]),W(()=>p(pt(n||Date.now())),[n]);const A=T(()=>o===y&&d&&u?E$(f,new Date(d),new Date(u)):o??s.label,[y,f,d,u,o,s.label]);return l(Pu,{...s,from:t,to:n,type:"date",label:A,onChange:m,render:C$,selectedPresetOption:o,value:ku(r,a,t,n),withContentPadding:!1})}const v$=({timezone:e,canResetFilters:t,defaultParams:n,filters:o,nowTimestamp:s,refreshNowTimestamp:r,sinceDate:a,untilDate:i,updateFilters:c})=>{const{i18n:d}=Q(),g=T(()=>d.get(n.current.defaultTimeRange),[d]),[u,p]=U(g),m=L((y=z)=>{for(const[f,A]of Object.entries(y)){switch(f){case"selectedPresetOption":p(A||g);break;case xo.FROM:c({[Z.CREATED_SINCE]:A||n.current.defaultFilterParams[Z.CREATED_SINCE]});break;case xo.TO:c({[Z.CREATED_UNTIL]:A||n.current.defaultFilterParams[Z.CREATED_UNTIL]});break;default:return}r()}},[g,r,c]);return T(()=>!t&&p(g),[t,g]),l(M$,{label:d.get("dateRange"),name:Z.CREATED_SINCE,sinceDate:a,untilDate:i??new Date(s).toString(),from:o[Z.CREATED_SINCE],to:o[Z.CREATED_UNTIL],selectedPresetOption:u,timeRangePresetOptions:n.current.timeRangeOptions,timezone:e,onChange:m,showTimezoneInfo:!0,now:s})},ju=v$,b$=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{d:"M1.25 1.25H14.75V4.05C14.75 4.65117 14.5094 5.22128 14.0903 5.64033L10.08 9.65066V11.6212L7.34093 14.76H5.92V9.65066L1.90967 5.64033C1.49062 5.22128 1.25 4.65117 1.25 4.05V1.25ZM2.75 2.75V4.05C2.75 4.24883 2.82938 4.43872 2.97033 4.57967L7.42 9.02934V12.388L8.58 11.0588V9.02934L13.0297 4.57967C13.1706 4.43872 13.25 4.24883 13.25 4.05V2.75H2.75Z",fill:"#00112C"})}),D$=b$;function Fu(e){const{i18n:t}=Q(),n=Se(Ae.down.xs),[o,s]=U(!n);return W(()=>{s(!n)},[n]),l(V,{children:[n&&l("div",{className:"adyen-pe-filter-bar__header",children:[l(q,{variant:w.SUBTITLE,children:t.get("transactions")}),l(et,{className:"adyen-pe-filter-bar__header-icon",variant:Oe.SECONDARY,iconButton:!0,onClick:()=>s(r=>!r),children:o?l($l,{}):l(D$,{})})]}),o&&l("div",{"aria-label":t.get("filterBar"),className:F("adyen-pe-filter-bar",{"adyen-pe-filter-bar__content--mobile":n}),children:[e.children,e.canResetFilters&&!!e.resetFilters&&l(et,{variant:Oe.TERTIARY,onClick:e.resetFilters,children:t.get("button.clearAll")})]})]})}function O$(e){return"callback"in e}function Wu(e){const[t,n]=U(null),o=L(a=>{var i;return a&&O$(e[a.selection.type])?{callback:(i=e==null?void 0:e[a.selection.type])!=null&&i.callback?c=>{var d,g;return(g=(d=e[a.selection.type])==null?void 0:d.callback)==null?void 0:g.call(d,{showModal:()=>n(a),...c})}:()=>{var c;return((c=e[a.selection.type])==null?void 0:c.showDetails)&&n(a)}}:(n(a),{})},[e]),s=L(()=>n(null),[]),r=T(()=>{const a={};for(const i in e){const c=e[i];a[i]=!(c!=null&&c.showDetails)||!!c.callback}return a},[e]);return{selectedDetail:t,updateDetails:o,detailsToShow:r,resetDetails:s}}const Bu=Object.freeze([10,20]),$$=100,Us=10,Ma=e=>{const t=~~e;return t===e&&t>0?Math.min(t,$$):Math.max(t,0)},R$=(e,t)=>{const n=e.length-1;if(n<0)return t;if(t<=e[0])return e[0];if(t>=e[n])return e[n];let o=0,s=0,r=n;for(;;){const a=e[o=Ec(s,r)];if(s>r||t===a)return a;t>a?s=o+1:r=o-1}},x$=({preferredLimit:e=Us,preferredLimitOptions:t})=>{const n=k(),o=k(),s=T(()=>{try{const a=new Set;for(const i of t){const c=Ma(i);c>0&&a.add(c)}return Object.freeze([...a].sort((i,c)=>i-c))}catch{}},[t]);return{limit:T(()=>{let a=Ma(e)||Us;e:try{if(n.current===s)break e;const i=new Set(n.current=s);if(i.size===0){n.current=void 0;break e}if(o.current!==a)t:{if(i.size===i.add(a).size)break t;if(i.delete(a),i.size===i.add(o.current).size){if(us(o.current)){a=o.current;break t}}else i.delete(o.current);a=R$(n.current,a)}}catch{}return o.current=a},[s,e]),limitOptions:s}},w$=x$,P$=e=>{const t=k(!1),n=T(()=>e,[e]);return W(()=>(t.current=!0,()=>{t.current=!1,n&&n()}),[n]),t},mi=P$,k$=(e,t,n)=>{const o=k(),s=k(),r=k(),a=k(),i=mi(L(()=>{var R;(R=o.current)==null||R.abort(),o.current=void 0},[])),[c,d]=U(a.current),[g,u]=mt(!1),p=T(()=>Ma(n),[n]),{getPageCount:m,getPageParams:y,resetPageCount:f,updatePagination:A}=e,I=T(()=>t?R=>{var K;if(!(p&&Number.isInteger(R)))return;const X=m(),B=R<0?R+X+1:R;B>0&&(X?B<=X:B===1)&&((K=o.current)==null||K.abort(),o.current=new AbortController,i.current&&(((a.current=B)>1||X)&&d(a.current),(async()=>{const{signal:re}=o.current,Ee={...y(B,p),limit:p,page:B};try{const Me=await t(Ee,re);if(!Me||!i.current)return;const{size:ve,...ke}=Me;A(B,p,ke),s.current=a.current&&Math.max(a.current,s.current||-1/0),a.current&&a.current===s.current&&(r.current=ve),a.current===1&&ve>0&&d(a.current),a.current=void 0,u(!0)}catch(Me){if(re.aborted)return;console.error(Me)}})()))}:ne,[p,t]),M=L(()=>{c&&I(Math.min(c+1,m()))},[I,c]),C=L(()=>{c&&I(Math.max(c-1,1))},[I,c]),v=T(()=>m()||c||void 0,[I,g]),P=T(()=>!!(c&&v)&&c<v,[c,v]),E=T(()=>!!c&&c>1,[c]),b=T(()=>s.current?(s.current-1)*p+(r.current||0):0,[I,g]),D=T(()=>p&&Math.min(p,b||1/0)%p,[p,b]),j=L(()=>{f(),s.current=r.current=a.current=void 0,i.current&&d(a.current)},[f]);return W(()=>{i.current&&g&&u(!1)},[g]),{goto:I,hasNext:P,hasPrev:E,limit:p,next:M,page:c,pages:v,pageSize:D,prev:C,resetPagination:j,size:b}},zu=k$,j$=e=>qe(e.next),F$=e=>qe(e.prev),W$=(e,t)=>{const n=T(()=>{const o=[],s=()=>o.length,r=()=>{o.length=0},a=d=>({cursor:o[d-1]}),i=(d,g)=>{const u=o[g-1];(g===1||g===(o.length||1)+1)&&H(u)&&(o[g-1]=d?decodeURIComponent(d):void 0)};return{getPageCount:s,getPageParams:a,resetPageCount:r,updatePagination:(d,g,u)=>{j$(u)&&i(u.next,d+1),F$(u)&&i(u.prev,d-1)}}},[]);return zu(n,e,t)},B$=W$,z$=e=>e.next,U$=(e,t)=>{const n=T(()=>{let o=0;return{getPageCount:()=>o,getPageParams:(c,d)=>({offset:(c-1)*d}),resetPageCount:()=>{o=0},updatePagination:(c,d,g)=>{z$(g)&&g.next&&(o=Math.max(o,c+1))}}},[]);return zu(n,e,t)},Y$=U$,G$=(e=z,t=!0)=>{const n=k(t),o=k(Object.freeze({...e})),s=k(new Set(Object.keys(o.current))),r=k(new Set),a=mi(),[i,c]=T(()=>{const p=m=>{a.current&&g(m)};return[()=>p("reset"),m=>p(m)]},[a]),[d,g]=Nr((p,m)=>{if(m==="reset")return r.current.clear(),o.current;const y={...m},f=[0];Object.keys(y).forEach((I,M)=>{if(!s.current.has(I))return;const C=p[I]??void 0,v=o.current[I]??void 0,P=y[I]??v;if(P===C)return;const E=Math.floor(M/32),b=1<<M%32;y[I]=P,f[E]|=b,r.current[P===v?"delete":"add"](I)});const A=f.some(I=>I)?n.current&&r.current.size===0?o.current:Object.freeze({...p,...y}):p;return n.current||(o.current=A,n.current=!0),A},o.current),u=T(()=>!!r.current.size,[]);return W(()=>{o.current=Object.freeze({...e}),s.current=new Set(Object.keys(o.current)),n.current=t,i()},[t,e,i]),{canResetState:u,defaultState:o.current,resetState:i,state:d,updateState:c}},H$=G$,Z$=(e=z,t)=>{const{canResetState:n,defaultState:o,resetState:s,state:r,updateState:a}=H$(e,t);return{canResetFilters:n,defaultFilters:o,filters:r,resetFilters:s,updateFilters:a}},V$=Z$;var va=(e=>(e.NEXT="next",e.PREV="prev",e))(va||{}),pi=(e=>(e.CURSOR="cursor",e.OFFSET="offset",e))(pi||{});const J$=["hasNext","hasPrevious"],Uu=e=>{const t=Object.getOwnPropertyNames(e);return!J$.some(n=>t.includes(n))},Q$=(e,t="data")=>{const n=e[t];if(Uu(e)){const o=Object.fromEntries(Object.entries(e._links).map(([s,r])=>[s,r.cursor]));return{records:n,paginationData:o}}throw new TypeError("MALFORMED_PAGINATED_DATA")},X$=(e,t="data")=>{const n=e[t];if(!Uu(e)){const{hasNext:o,hasPrevious:s}=e,r={[va.NEXT]:we(o),[va.PREV]:we(s)};return{records:n,paginationData:r}}throw new TypeError("MALFORMED_PAGINATED_DATA")},K$=({dataField:e="data",fetchRecords:t,filterParams:n=z,initialFiltersSameAsDefault:o=!0,initialize:s,onFiltersChanged:r,pagination:a,preferredLimit:i,preferredLimitOptions:c,enabled:d})=>{const[g,u]=U([]),[p,m]=mt(!0),[y,f]=U(),[A,I]=U(i),M=mi(),C=k(!0),v=k(1),P=V$(n,o),{limit:E,limitOptions:b}=w$({preferredLimit:A,preferredLimitOptions:c}),{defaultFilters:D,filters:j,updateFilters:R,...X}=P,[B,se]=T(()=>a===pi.CURSOR?[Q$,B$]:[X$,Y$],[]),K=L(fe=>I(fe),[]),{goto:re,page:Ee,pages:Me,resetPagination:ve,...ke}=se(L(async({page:fe,...de},be)=>{try{if(f(void 0),v.current=fe,!M.current||m(!0))return;const lt=await t({...de,...j},be),{records:ut,paginationData:Gt}=B(lt,e);return C.current&&(s==null||s([ut,Gt],P),C.current=!1),M.current&&(u(ut),m(!1)),{...Gt,size:ut==null?void 0:ut.length}}catch(lt){if(be!=null&&be.aborted)return;m(!1),f(lt),console.error(lt)}},[t,j,E]),E);return T(()=>{C.current=!0},[n]),T(()=>{ve(),v.current=1},[j,E,ve]),W(()=>{d&&re(v.current)},[re,d]),W(()=>{r==null||r(j)},[j]),{error:y,fetching:p,filters:j,goto:re,limitOptions:b,page:Ee,pages:Me,records:g,updateFilters:R,updateLimit:K,...X,...ke}},q$=K$,eR=e=>q$({...e,pagination:pi.CURSOR}),Yu=eR,tR="adyen-pe-transaction-totals",gc="adyen-pe-transaction-totals__item";const Or="adyen-pe-expandable-card",un=Or+"__container",mc=un+"--button",Gr=un+"--filled",nR=un+"--hidden",Gu=un+"--overlay",Hr=Gu,Rs=Or+"__content",pc=Rs+"--expandable",fc=Or+"__chevron",oR="adyen-pe-base-button";function sR({disabled:e=!1,onClick:t,classNameModifiers:n=[],type:o="button",children:s,className:r,fullWidth:a,...i},c){const d=T(()=>On("",r)||"",[r]),g=T(()=>Ua(e),[e]),{classes:u,click:p}=Ya(d,[...n,...a?["full-width"]:[]],oR,g,t);return l("button",{className:u,type:o,disabled:e,onClick:p,ref:c,...i,children:s})}const yc=Ye(sR),rR=({renderHeader:e,children:t,filled:n,fullWidth:o,...s})=>{const{i18n:r}=Q(),[a,i]=U(!1),c=L(()=>i(m=>!m),[i]),d=k(null),g=k(!1),u=k(a),p=Za(void 0,L(()=>{a&&(c(),g.current=!0)},[a,c]));return W(()=>{var m,y;a?(m=p.current)==null||m.focus():(u.current!==a&&!g.current&&((y=d.current)==null||y.focus()),g.current=!1),u.current=a},[a,p]),l("div",{className:Or,children:t?l(V,{children:[l(yc,{className:F(un,mc,{[Gr]:n}),disabled:a,fullWidth:o,"aria-controls":Hr,"aria-expanded":a,"aria-hidden":a,onClick:c,ref:d,"data-testid":"expand-button",...s,children:[l("span",{className:"adyen-pe-sr-only",children:r.get("expandableCard.expand")}),l("div",{className:F(Rs,pc),children:e}),l("div",{className:fc,children:l(Cr,{role:"presentation"})})]}),l(yc,{id:Hr,className:F(un,mc,Gu,{[Gr]:n,[nR]:!a}),disabled:!a,fullWidth:o,"aria-controls":Hr,"aria-expanded":a,"aria-hidden":!a,onClick:c,ref:p,"data-testid":"collapse-button",...s,children:[l("span",{className:"adyen-pe-sr-only",children:r.get("expandableCard.collapse")}),l("div",{className:F(Rs,pc),children:[e,l("div",{children:t})]}),l("div",{className:fc,children:l(ei,{role:"presentation"})})]})]}):l("div",{className:F(un,{[Gr]:n}),...s,children:l("div",{className:Rs,children:e})})})},Hu=rR,fi="adyen-pe-amount-skeleton",aR=fi+"--has-margin",iR=fi+"--loading";const cR=({hasMargin:e=!1,isLoading:t=!1,width:n})=>l("span",{className:F(fi,{[iR]:t,[aR]:e}),style:{width:n}}),lR=cR,mn="adyen-pe-summary-item",Zu=mn+"__label-container",uR=Zu+"--loading",dR=mn+"--body",Vu=mn+"__label",hR=mn+"__placeholder",gR=mn+"__amount",Ic=Ye(({config:e,i18n:t,isSkeletonVisible:n,className:o,...s},r)=>l("span",{className:F(Zu,o,{[uR]:n}),style:{cursor:"default"},ref:r,...s,children:e.labelKey&&l(q,{variant:w.CAPTION,className:Vu,children:t.get(e.labelKey)})}));const Ju=({columnConfigs:e,isHeader:t=!1,isHovered:n=!1,isSkeletonVisible:o=!1,isLoading:s=!1,widths:r,onWidthsSet:a,isEmpty:i})=>{const{i18n:c}=Q();W(()=>{const p=e.map(m=>{var y,f;return((f=(y=m.ref)==null?void 0:y.current)==null?void 0:f.getBoundingClientRect().width)??0});a(p)},[a]);const d=p=>({width:r&&r[p]?r[p]:"auto"}),g=Se(Ae.only.xs),u=L((p,m)=>p.valueHasLabelStyle?w.CAPTION:m&&!g?w.BODY:w.TITLE,[g]);return l("div",{className:F(mn,{[dR]:!t}),children:e.map((p,m)=>{const y=p.getValue(),f=!!y&&y.length>12;return l("div",{children:[t&&(p.tooltipLabel?l(Ka,{content:c.get(`${p.tooltipLabel}`),isContainerHovered:n,children:l(Ic,{config:p,i18n:c,isSkeletonVisible:o})}):l(Ic,{config:p,i18n:c,isSkeletonVisible:o})),o?l(lR,{isLoading:s,hasMargin:p.hasSkeletonMargin,width:p.skeletonWidth+"px"}):i?l("span",{className:F([mn,hR])}):l("div",{ref:p.ref,style:d(m),children:l(q,{variant:u(p,f),className:F({[Vu]:p.valueHasLabelStyle,[gR]:!p.valueHasLabelStyle}),children:y})})]},m)})})},_c=({total:e,hiddenField:t,isHeader:n=!1,isHovered:o=!1,isSkeleton:s=!1,isLoading:r=!1,widths:a,onWidthsSet:i})=>{const{i18n:c}=Q(),d=k(null),g=k(null),u=k(null),p=T(()=>{const m={labelKey:"totalIncoming",ref:d,skeletonWidth:80,getValue:()=>e&&c.amount(e.incomings,e.currency),tooltipLabel:"tooltip.totalIncoming"},y={labelKey:"totalOutgoing",ref:g,skeletonWidth:80,getValue:()=>e&&c.amount(e.expenses,e.currency),tooltipLabel:"tooltip.totalOutgoing"};return[...t!=="incomings"?[m]:[],...t!=="expenses"?[y]:[],{ref:u,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>e==null?void 0:e.currency}]},[e,t,c]);return l(Ju,{isHovered:o,isEmpty:!e,columnConfigs:p,isHeader:n,isSkeletonVisible:s,isLoading:r,widths:a,onWidthsSet:i})};const mR="adyen-pe-base-list",Qu=({children:e})=>l("ul",{className:mR,children:e}),Xu=()=>{const[e,t]=U([]),n=L(o=>{t(s=>o.every(r=>!r)?o:o.map((r,a)=>{const i=s[a];return!i||r>i?r:i}))},[]);return[e,n]},Zr=Ne(({totals:e,isLoading:t,hiddenField:n,fullWidth:o})=>{const[s,r]=Xu(),[a,i]=U(!1),[c,...d]=T(()=>e.map(g=>(g.key=`${g.currency}-${Math.random()}`,g)),[e]);return l(Hu,{renderHeader:l(_c,{isHovered:a,total:c,hiddenField:n,widths:s,isHeader:!0,isSkeleton:t,isLoading:t,onWidthsSet:r}),fullWidth:o,onMouseEnter:()=>i(!0),onFocus:()=>i(!0),onMouseLeave:()=>i(!1),onBlur:()=>i(!1),children:!t&&d.length&&l(Qu,{children:d.map(g=>l("li",{children:l(_c,{isHovered:a,total:g,hiddenField:n,widths:s,onWidthsSet:r})},g.key))})})}),pR=Ne(({availableCurrencies:e,isAvailableCurrenciesFetching:t,balanceAccountId:n,createdSince:o,createdUntil:s,categories:r,statuses:a,maxAmount:i,minAmount:c,currencies:d,fullWidth:g})=>{const{getTransactionTotals:u}=Ut().endpoints,p=L(async()=>u==null?void 0:u(z,{query:{createdSince:o,createdUntil:s,categories:r,statuses:a,maxAmount:i,minAmount:c,currencies:d,balanceAccountId:n}}),[n,r,o,s,d,u,i,c,a]),{data:m,isFetching:y}=Lr({fetchOptions:T(()=>({enabled:!!n&&!!u}),[n,u]),queryFn:p}),f=!n||y||t,I=L(()=>{if(!e||!m)return m==null?void 0:m.data;const C=e.map(v=>m.data.find(E=>E.currency===v)||{currency:v,incomings:0,expenses:0});return C.concat(m.data.filter(v=>!C.includes(v)))},[e,m])()??[],M=Se(Ae.only.xs);return l("div",{className:tR,children:M?l(V,{children:[l("div",{className:gc,children:l(Zr,{totals:I,isLoading:f,hiddenField:"expenses",fullWidth:g})}),l("div",{className:gc,children:l(Zr,{totals:I,isLoading:f,hiddenField:"incomings",fullWidth:g})})]}):l(Zr,{totals:I,isLoading:f,fullWidth:g})})}),fR=pR,yR="adyen-pe-balances",Tc=({balance:e,isHeader:t=!1,isSkeleton:n=!1,isLoading:o=!1,widths:s,onWidthsSet:r,isEmpty:a})=>{const{i18n:i}=Q(),c=k(null),d=k(null),g=T(()=>[{labelKey:"accountBalance",ref:c,skeletonWidth:80,getValue:()=>e&&i.amount(e.value,e.currency)},{ref:d,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>e==null?void 0:e.currency}],[e,c,i]);return l(Ju,{isEmpty:a,columnConfigs:g,isHeader:t,isSkeletonVisible:n,isLoading:o,widths:s,onWidthsSet:r})},IR=Ne(({balanceAccountId:e,defaultCurrencyCode:t,onCurrenciesChange:n,fullWidth:o})=>{const{getBalances:s}=Ut().endpoints,r=L(async()=>s==null?void 0:s(z,{path:{balanceAccountId:e}}),[e,s]),{data:a,error:i,isFetching:c}=Lr({fetchOptions:T(()=>({enabled:!!e&&!!s}),[e,s]),queryFn:r}),d=!e||c,g=!!i||!(a!=null&&a.data.length),u=T(()=>(a==null?void 0:a.data)&&[...a.data].sort(({currency:A},{currency:I})=>{if(t){if(A===t)return-1;if(I===t)return 1}return A.localeCompare(I)}),[a==null?void 0:a.data,t]),[p,...m]=T(()=>(u==null?void 0:u.map(A=>(A.key=`${A.currency}-${Math.random()}`,A)))??[],[u]),[y,f]=Xu();return W(()=>{const A=new Set((u==null?void 0:u.map(({currency:I})=>I))||[]);n(Array.from(A),c)},[u,c,n]),l("div",{className:yR,children:l(Hu,{renderHeader:l(Tc,{isEmpty:g,balance:p,widths:y,isHeader:!0,isSkeleton:d,isLoading:d,onWidthsSet:f}),filled:!0,fullWidth:o,children:m.length&&l(Qu,{children:m.map(A=>l("li",{children:l(Tc,{balance:A,widths:y,onWidthsSet:f})},A.key))})})})}),_R=Ne(({placeholder:e,selection:t,selectionOptions:n,updateSelection:o})=>{const s=Se(Ae.down.xs),r=Se(Ae.only.sm),a=Se(Ae.only.md);return n&&n.length>1?l(Er,{onChange:o,filterable:!1,multiSelect:!0,placeholder:e,selected:t,withoutCollapseIndicator:!0,items:n,showOverlay:s,fitPosition:a||r}):null}),Ac=_R,TR=e=>Object.freeze(e.map(t=>({id:t,name:t}))),AR=({filterParam:e,filterValues:t,filters:n,defaultFilters:o,updateFilters:s})=>{const r=T(()=>Io((n==null?void 0:n[e])??(o==null?void 0:o[e])??""),[o,n,e]),a=T(()=>t&&TR(t),[t]),i=L(({target:c})=>{s==null||s({[e]:(c==null?void 0:c.value)||""})},[s,e]);return{selection:r,selectionOptions:a,updateSelection:i}},Vr=AR,SR=[Z.CURRENCIES,Z.CATEGORIES,Z.STATUSES],xs=Object.freeze(Object.fromEntries(SR.map(e=>[e,""]))),NR=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],LR=["Booked","Pending","Reversed"],CR=e=>{const t=$O(),n="rangePreset.last30Days",{from:o,to:s}=t[n];return{defaultFilterParams:{...e==="transactions"&&{...xs,[Z.MIN_AMOUNT]:void 0,[Z.MAX_AMOUNT]:void 0},[Z.BALANCE_ACCOUNT]:void 0,[Z.CREATED_SINCE]:new Date(o).toISOString(),[Z.CREATED_UNTIL]:new Date(s).toISOString()},defaultTimeRange:n,timeRangeOptions:t}},ER=(e,t)=>{const[n,o]=U(Date.now()),s=CR(e),r=k(s),a=L(()=>o(Date.now()),[o]);return W(()=>{a()},[t,a]),{defaultParams:r,nowTimestamp:n,refreshNowTimestamp:a}},Ku=ER,MR=(e,t)=>{const n=Vr({filterParam:Z.CATEGORIES,filterValues:NR,defaultFilters:xs,...e}),o=Vr({filterParam:Z.STATUSES,filterValues:LR,defaultFilters:xs,...e}),s=Vr({filterParam:Z.CURRENCIES,filterValues:t,defaultFilters:xs,...e});return{categoriesFilter:n,currenciesFilter:s,statusesFilter:o}},vR=MR;const Ys=1e5,bR=({onChange:e,editAction:t,onValueUpdated:n,selectedCurrencies:o,availableCurrencies:s,value:r,...a})=>{const{i18n:i}=Q(),[c,d]=U(H(a.minAmount)?void 0:parseFloat(a.minAmount)/Ys),[g,u]=U(H(a.maxAmount)?void 0:parseFloat(a.maxAmount)/Ys),p=L(()=>{e({minAmount:c,maxAmount:g})},[g,c,e]),m=L(()=>{e({minAmount:void 0,maxAmount:void 0}),u(void 0),d(void 0)},[e]);W(()=>{t===Ce.APPLY&&p(),t===Ce.CLEAR&&m()},[p,m,t]);const y=T(()=>({minAmount:c,maxAmount:g}),[g,c]);return W(()=>{y.minAmount||y.maxAmount?n(`${y.minAmount}-${y.maxAmount}`):n(null)},[y,n]),l("div",{className:"adyen-pe-range-selection-filter",children:[l("div",{className:"adyen-pe-range-selection-filter__input",children:[l("label",{htmlFor:"minValue",children:`${i.get("from")}:`}),l(Ea,{"data-testid":"minValueFilter",lang:i.locale,name:"minValue",type:"number",value:c,onInput:f=>{f.currentTarget&&d(f.currentTarget.value!==""?f.currentTarget.value:void 0)},min:0,isInvalid:c?c<0:!1,errorMessage:i.get("noNegativeNumbersAllowed")})]}),l("div",{className:"adyen-pe-range-selection-filter__input",children:[l("label",{htmlFor:"maxValue",children:`${i.get("to")}:`}),l(Ea,{"data-testid":"maxValueFilter",lang:i.locale,name:"maxValue",type:"number",value:g,onInput:f=>{f.currentTarget&&u(f.currentTarget.value!==""?f.currentTarget.value:void 0)},min:c,isInvalid:!H(g)&&!H(c)&&g<c,errorMessage:i.get("toValueShouldBeGreaterThanTheFromValue")})]})]})},DR=({updateFilters:e,selectedCurrencies:t,availableCurrencies:n,...o})=>{const{i18n:s}=Q(),[r,a]=U(),[i,c]=U(),d=T(()=>(t==null?void 0:t.length)===1||(n==null?void 0:n.length)===1,[n==null?void 0:n.length,t==null?void 0:t.length]),g=L((p,m)=>{const y=(t==null?void 0:t[0])||(n==null?void 0:n[0]),f=m&&y?{style:"currency",currency:y,currencyDisplay:"symbol"}:void 0;return p.toLocaleString(s.locale,f)},[n,s,t]),u=L(p=>{const{minAmount:m,maxAmount:y}=p??z;a({minAmount:m,maxAmount:y}),H(m)&&H(y)&&c(void 0),e({minAmount:H(m)?void 0:String(Math.round(m*Ys)),maxAmount:H(y)?void 0:String(Math.round(y*Ys))})},[e]);if(r&&(r.minAmount||r.maxAmount)){const{minAmount:p,maxAmount:m}=r??{};!H(p)&&!H(m)&&p<=m?c(`${g(p,d)} ${s.get("to").toLowerCase()} ${g(m,d)}`):!H(p)&&H(m)&&p>=0?c(`${s.get("from")} ${g(p,d)}`):H(p)&&!H(m)?c(`${s.get("to")} ${g(m,d)}`):c(void 0)}return l(Pu,{...o,updateFilters:e,minAmount:o.minAmount,maxAmount:o.maxAmount,onChange:u,value:i,label:i||o.label,type:"text",containerSize:Oo.MEDIUM,selectedCurrencies:t,availableCurrencies:n,render:bR})},qu="adyen-pe-transactions",ed=`${qu}-overview`,OR=`${qu}-details`,td=`${ed}__summary`,Sc=`${td}-item`,$R=24;const RR=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:o=Us,onRecordSelection:s,showDetails:r,isLoadingBalanceAccount:a,onContactSupport:i,hideTitle:c})=>{const{i18n:d}=Q(),{getTransactions:g}=Ut().endpoints,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}=Ql(t),{defaultParams:y,nowTimestamp:f,refreshNowTimestamp:A}=Ku("transactions",u),I=L(async({balanceAccount:nt,...Pe},xr)=>g({signal:xr,errorLevel:"error"},{query:{...Pe,statuses:Io(Pe[Z.STATUSES]),categories:Io(Pe[Z.CATEGORIES]),currencies:Io(Pe[Z.CURRENCIES]),createdSince:Pe[Z.CREATED_SINCE]??y.current.defaultFilterParams[Z.CREATED_SINCE],createdUntil:Pe[Z.CREATED_UNTIL]??y.current.defaultFilterParams[Z.CREATED_UNTIL],sortDirection:"desc",balanceAccountId:(u==null?void 0:u.id)??"",minAmount:H(Pe.minAmount)?void 0:parseFloat(Pe.minAmount),maxAmount:H(Pe.maxAmount)?void 0:parseFloat(Pe.maxAmount)}}),[u==null?void 0:u.id,y,g]),M=T(()=>ee(e)?e:void 0,[e]),C=T(()=>n?Bu:void 0,[n]),{canResetFilters:v,error:P,fetching:E,filters:b,limit:D,limitOptions:j,records:R,resetFilters:X,updateFilters:B,updateLimit:se,...K}=Yu({fetchRecords:I,dataField:"data",filterParams:y.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:M,preferredLimit:o,preferredLimitOptions:C,enabled:!!(u!=null&&u.id)&&!!g}),[re,Ee]=U([]),[Me,ve]=U(!1),ke=L((nt,Pe)=>{Ee(nt),ve(Pe)},[]),{categoriesFilter:fe,currenciesFilter:de,statusesFilter:be}=vR({filters:b,updateFilters:B},re);W(()=>{Ee(void 0),B({[Z.BALANCE_ACCOUNT]:u==null?void 0:u.id,[Z.CURRENCIES]:void 0})},[B,u==null?void 0:u.id]),W(()=>{A()},[b,A]),W(()=>{be.updateSelection({target:{value:"Booked",name:"status"}})},[be]);const lt=Se(Ae.down.sm),ut=!!re&&re.length>1,Gt=T(()=>({showDetails:r??!0,callback:s}),[r,s]),Ts=T(()=>({transaction:Gt}),[Gt]),{updateDetails:fo,resetDetails:tt,selectedDetail:yn}=Wu(Ts),Ht=L(nt=>{fo({selection:{type:"transaction",data:{...nt,balanceAccount:u}},modalSize:"small"}).callback({id:nt.id})},[fo,u]),Rr=T(()=>{const nt=new Date(f);return nt.setMonth(nt.getMonth()-$R),nt.toString()},[f]);return l("div",{className:ed,children:[!c&&l(q,{variant:w.TITLE,medium:!0,children:d.get("transactionsOverviewTitle")}),l(Fu,{children:[l(Xl,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}),l(ju,{canResetFilters:v,defaultParams:y,filters:b,nowTimestamp:f,refreshNowTimestamp:A,sinceDate:Rr,timezone:u==null?void 0:u.timeZone,updateFilters:B}),l(Ac,{...fe,placeholder:d.get("filterPlaceholder.category")}),l(DR,{availableCurrencies:re,selectedCurrencies:Io(b[Z.CURRENCIES]),name:"range",label:d.get("amount"),minAmount:b[Z.MIN_AMOUNT],maxAmount:b[Z.MAX_AMOUNT],updateFilters:B,onChange:B}),l(Ac,{...de,placeholder:d.get("filterPlaceholder.currency")})]}),l("div",{className:td,children:[l("div",{className:Sc,children:l(fR,{availableCurrencies:re,isAvailableCurrenciesFetching:Me,balanceAccountId:u==null?void 0:u.id,statuses:be.selection,categories:fe.selection,createdUntil:b[Z.CREATED_UNTIL],createdSince:b[Z.CREATED_SINCE],currencies:de.selection,minAmount:b[Z.MIN_AMOUNT]?parseFloat(b[Z.MIN_AMOUNT]):void 0,maxAmount:b[Z.MAX_AMOUNT]?parseFloat(b[Z.MAX_AMOUNT]):void 0,fullWidth:lt})}),l("div",{className:Sc,children:l(IR,{balanceAccountId:u==null?void 0:u.id,onCurrenciesChange:ke,defaultCurrencyCode:u==null?void 0:u.defaultCurrencyCode,fullWidth:lt})})]}),l(Fl,{selectedDetail:yn,resetDetails:tt,className:OR,children:l(H0,{activeBalanceAccount:u,availableCurrencies:re,error:P,hasMultipleCurrencies:ut,limit:D,limitOptions:j,loading:E||a||!t,onContactSupport:i,onLimitSelection:se,onRowClick:Ht,showPagination:!0,transactions:R,...K})})]})},xR="adyen-pe-transactions-overview-container";function wR({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:o,error:s}=Ba(e.balanceAccountId);return l(Ol,{balanceAccountsError:s,className:xR,errorMessage:"weCouldNotLoadTheTransactionsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:l(RR,{...e,balanceAccounts:t,isLoadingBalanceAccount:o})})}const PR=({i18n:e=new Ar().i18n,children:t,commonProps:n,loadingContext:o,updateCore:s,externalErrorHandler:r})=>{const[a,i]=mt(!1),c=T(()=>n||{},[n]),d=T(()=>o??"",[o]);return W(()=>{(async()=>{await(e==null?void 0:e.ready),i(!0)})().catch()},[]),a?l(Ll.Provider,{value:{i18n:e,commonProps:c,loadingContext:d,updateCore:s,externalErrorHandler:r},children:zt(t)}):null},kR=PR;var Cc;class nd{constructor(t){x(this,"_component");x(this,"_node",null);x(this,"_id",`${(Cc=this.constructor)==null?void 0:Cc.type}-${ba()}`);x(this,"defaultProps",{});x(this,"props");x(this,"state",{});this.props=this.formatProps({...this==null?void 0:this.defaultProps,...t}),this.props.core.registerComponent(this)}formatProps(t){return t}formatData(){return{}}setState(t){this.state={...this.state,...t}}get data(){return{...this.formatData(),clientStateDataIndicator:!0}}render(){throw new Error("Component cannot be rendered.")}mount(t){const n=qe(t)?document.querySelector(t):t;if(!n)throw new Error("Component could not mount. Root node was not found.");return this._node&&this.unmount(),this._node=n,this._component=this.render(),Cn(this._component,n),this}update(t){return this.props=this.formatProps({...this.props,...t}),this._component=this.render(),this._node&&Cn(this._component,this._node),this}remount(t){if(!this._node)throw new Error("Component is not mounted.");const n=t||this.render();return Cn(n,this._node),this}unmount(){return this._node&&Cn(null,this._node),this}remove(){this.unmount(),this.props.core.remove(this)}}x(nd,"type");const jR=nd;class FR extends jR{constructor(n){super(n);x(this,"componentRef",null);x(this,"componentToRender",null);x(this,"elementRef");x(this,"onContactSupport");x(this,"setUIElementStatus");this.setState=this.setState.bind(this),this.onContactSupport=n.onContactSupport,this.elementRef=this}get isValid(){return!!this.state.isValid}get displayName(){return this.type}get accessibleName(){return this.displayName}get type(){var n;return(n=this.constructor)==null?void 0:n.type}formatProps(n){return n}formatData(){return{...this.state}}setState(n){this.state={...this.state,...n}}setStatus(n,o){var s,r;return(s=this.componentRef)!=null&&s.setStatus?this.componentRef.setStatus(n,o):(r=this.setUIElementStatus)==null||r.call(this,n),this}render(){const n=this.props.core,o=n.update.bind(n),s=this.props.onError||n.onError||null;return n.session.errorHandler=s,l($v,{session:n.session,children:l(kR,{i18n:n.localization.i18n,loadingContext:n.loadingContext,updateCore:o,externalErrorHandler:s,children:this.componentToRender&&l("div",{className:"adyen-pe-component",children:this.componentToRender()})})},performance.now())}}const $r=FR;class od extends $r{constructor(n){super(n);x(this,"componentToRender",()=>l(wR,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}x(od,"type","transactions");const WR=od;class sd extends $r{constructor(n){super(n);x(this,"componentToRender",()=>l(si,{...this.props,type:"transaction",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}x(sd,"type","transactionDetails");const BR=sd,zR="adyen-pe-payouts-overview",UR="adyen-pe-payouts-details",YR=new Date("2024-04-16T00:00:00.000Z").toString(),rd="adyen-pe-payouts-table",GR=`${rd}__net-payout`;const ad=["fundsCapturedAmount","adjustmentAmount","payoutAmount"],HR=["createdAt",...ad],ZR=e=>ad.includes(e),VR=({error:e,loading:t,onContactSupport:n,onRowClick:o,showDetails:s,showPagination:r,data:a,...i})=>{const{i18n:c}=Q(),{dateFormat:d}=mo("UTC"),{refreshing:g}=Ut(),u=T(()=>t||g,[t,g]),p=Se(Ae.up.sm),m=T(()=>({fundsCapturedAmount:p,adjustmentAmount:p}),[p]),y=T(()=>HR.map(I=>{var C,v,P,E;const M=c.get(Bl(I));return ZR(I)?{key:I,label:(v=(C=a==null?void 0:a[0])==null?void 0:C[I])!=null&&v.currency?`${M} (${zc((E=(P=a==null?void 0:a[0])==null?void 0:P[I])==null?void 0:E.currency)})`:M,visible:m[I],position:gn.RIGHT}:{key:I,label:M,visible:m[I]}}),[c,m,a]),f={title:"noPayoutsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},A=T(()=>()=>l(Wl,{error:e,errorMessage:"weCouldNotLoadYourPayouts",onContactSupport:n}),[e,n]);return l("div",{className:rd,children:l(co,{errorDisplay:A,error:e,columns:y,data:a,loading:u,outline:!1,onRowClick:{callback:o},emptyTableMessage:f,customCells:{createdAt:({value:I})=>I?p?I&&d(I,dD):d(I,{month:"short",day:"numeric",year:void 0,hour:"2-digit",minute:"2-digit",hour12:!1}):null,fundsCapturedAmount:({value:I})=>I&&l("span",{children:c.amount(I.value,I.currency,{hideCurrency:!0})}),adjustmentAmount:({value:I})=>I&&l("span",{children:c.amount(I.value,I.currency,{hideCurrency:!0})}),payoutAmount:({value:I})=>I&&l("span",{className:F({[`${GR}--strong`]:!p}),children:c.amount(I.value,I.currency,{hideCurrency:p})})},children:r&&l(co.Footer,{children:l(Jl,{...i})})})})};const JR=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:o=Us,onRecordSelection:s,showDetails:r,isLoadingBalanceAccount:a,onContactSupport:i,hideTitle:c})=>{const{i18n:d}=Q(),{getPayouts:g}=Ut().endpoints,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}=Ql(t),{defaultParams:y,nowTimestamp:f,refreshNowTimestamp:A}=Ku("payouts",u),I=L(async(de,be)=>g({signal:be,errorLevel:"error"},{query:{...de,createdSince:de[Z.CREATED_SINCE]??y.current.defaultFilterParams[Z.CREATED_SINCE],createdUntil:de[Z.CREATED_UNTIL]??y.current.defaultFilterParams[Z.CREATED_UNTIL],balanceAccountId:(u==null?void 0:u.id)??""}}),[u==null?void 0:u.id,y,g]),M=T(()=>ee(e)?e:void 0,[e]),C=T(()=>n?Bu:void 0,[n]),{canResetFilters:v,error:P,fetching:E,filters:b,limit:D,limitOptions:j,records:R,resetFilters:X,updateFilters:B,updateLimit:se,...K}=Yu({fetchRecords:I,dataField:"data",filterParams:y.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:M,preferredLimit:o,preferredLimitOptions:C,enabled:!!(u!=null&&u.id)&&!!g});W(()=>{A()},[b,A]);const re=T(()=>({showDetails:r??!0,callback:s}),[r,s]),Ee=T(()=>({payout:re}),[re]),{updateDetails:Me,resetDetails:ve,selectedDetail:ke}=Wu(Ee),fe=L(de=>{Me({selection:{type:"payout",data:{id:u==null?void 0:u.id,balanceAccountDescription:(u==null?void 0:u.description)||"",date:de.createdAt}},modalSize:"small"}).callback({balanceAccountId:(u==null?void 0:u.id)||"",date:de.createdAt})},[Me,u]);return l("div",{className:zR,children:[!c&&l(q,{variant:w.TITLE,medium:!0,children:d.get("payoutsTitle")}),l(Fu,{children:[l(Xl,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}),l(ju,{canResetFilters:v,defaultParams:y,filters:b,nowTimestamp:f,refreshNowTimestamp:A,sinceDate:YR,timezone:"UTC",updateFilters:B})]}),l(Fl,{className:UR,onContactSupport:i,selectedDetail:ke,resetDetails:ve,children:l(VR,{loading:E||a||!t,data:R,showPagination:!0,onRowClick:fe,showDetails:r,limit:D,limitOptions:j,onContactSupport:i,onLimitSelection:se,error:P,...K})})]})},QR="adyen-pe-payouts-overview-container";function XR({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:o,error:s}=Ba(e.balanceAccountId);return l(Ol,{balanceAccountsError:s,className:QR,errorMessage:"weCouldNotLoadThePayoutsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:l(JR,{...e,balanceAccounts:t,isLoadingBalanceAccount:o})})}class id extends $r{constructor(n){super(n);x(this,"componentToRender",()=>l(XR,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}x(id,"type","payouts");const KR=id;class cd extends $r{constructor(n){super(n);x(this,"componentToRender",()=>l(si,{...this.props,type:"payout",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}x(cd,"type","payoutDetails");const qR=cd;async function ex(e){return await new ol(e).initialize()}exports.AdyenPlatformExperience=ex;exports.Core=ol;exports.PayoutDetails=qR;exports.PayoutsOverview=KR;exports.TransactionDetails=BR;exports.TransactionsOverview=WR;exports.all_locales=pv;exports.da_DK=Zc;exports.de_DE=Vc;exports.en_US=$a;exports.es_ES=Jc;exports.fr_FR=Qc;exports.it_IT=Xc;exports.nl_NL=Kc;exports.no_NO=qc;exports.pt_BR=el;exports.sv_SE=tl;
12
12
  //# sourceMappingURL=index.js.map