@everymatrix/user-transaction-history 1.75.0 → 1.75.1
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.
- package/dist/cjs/{index-8b5843ec.js → index-bda86a75.js} +19 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/user-transaction-history.cjs.js +2 -2
- package/dist/cjs/user-transaction-history_2.cjs.entry.js +5540 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/internal/filters.js +138 -11
- package/dist/collection/components/user-transaction-history/user-transaction-history.js +18 -9
- package/dist/esm/{index-7c5e707a.js → index-6e523641.js} +19 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/user-transaction-history.js +3 -3
- package/dist/esm/user-transaction-history_2.entry.js +5535 -0
- package/dist/types/components/internal/filters.d.ts +21 -6
- package/dist/types/components/user-transaction-history/user-transaction-history.d.ts +2 -1
- package/dist/types/components.d.ts +37 -0
- package/dist/user-transaction-history/index-6e523641.js +2 -0
- package/dist/user-transaction-history/user-transaction-history.esm.js +1 -1
- package/dist/user-transaction-history/user-transaction-history_2.entry.js +1 -0
- package/package.json +1 -1
- package/dist/cjs/user-transaction-history.cjs.entry.js +0 -2605
- package/dist/esm/user-transaction-history.entry.js +0 -2601
- package/dist/user-transaction-history/index-7c5e707a.js +0 -2
- package/dist/user-transaction-history/user-transaction-history.entry.js +0 -1
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.dev.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class Filters {
|
|
3
|
+
private startDatePicker;
|
|
4
|
+
private endDatePicker;
|
|
5
|
+
from: string | null;
|
|
6
|
+
to: string | null;
|
|
3
7
|
language: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
dateformat: string;
|
|
9
|
+
applyFilters: EventEmitter<{
|
|
10
|
+
from: string;
|
|
11
|
+
to: string;
|
|
12
|
+
}>;
|
|
13
|
+
startDate: any;
|
|
14
|
+
endDate: any;
|
|
15
|
+
componentWillLoad(): void;
|
|
16
|
+
componentDidLoad(): void;
|
|
17
|
+
private startDateChange;
|
|
18
|
+
private endDateChange;
|
|
19
|
+
private formatVaadinDate;
|
|
20
|
+
private parseDate;
|
|
21
|
+
private handleApplyFilters;
|
|
22
|
+
render(): any;
|
|
7
23
|
}
|
|
8
|
-
export declare const Filters: FunctionalComponent<FiltersProps>;
|
|
@@ -35,11 +35,12 @@ export declare class UserTransactionHistory {
|
|
|
35
35
|
changePageSize(pageSize: number): void;
|
|
36
36
|
prev(): void;
|
|
37
37
|
next(): void;
|
|
38
|
-
applyFilters(from: string
|
|
38
|
+
applyFilters(from: string, to: string): void;
|
|
39
39
|
showFilter(): void;
|
|
40
40
|
toggleScreen: () => void;
|
|
41
41
|
disconnectedCallback(): void;
|
|
42
42
|
render(): any;
|
|
43
43
|
private loadTransactions;
|
|
44
|
+
private formatDateForApi;
|
|
44
45
|
private getParams;
|
|
45
46
|
}
|
|
@@ -18,6 +18,16 @@ export namespace Components {
|
|
|
18
18
|
"translationUrl": string;
|
|
19
19
|
"userId": string;
|
|
20
20
|
}
|
|
21
|
+
interface UserTransactionHistoryFilter {
|
|
22
|
+
"dateformat": string;
|
|
23
|
+
"from": string | null;
|
|
24
|
+
"language": string;
|
|
25
|
+
"to": string | null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export interface UserTransactionHistoryFilterCustomEvent<T> extends CustomEvent<T> {
|
|
29
|
+
detail: T;
|
|
30
|
+
target: HTMLUserTransactionHistoryFilterElement;
|
|
21
31
|
}
|
|
22
32
|
declare global {
|
|
23
33
|
interface HTMLUserTransactionHistoryElement extends Components.UserTransactionHistory, HTMLStencilElement {
|
|
@@ -26,8 +36,26 @@ declare global {
|
|
|
26
36
|
prototype: HTMLUserTransactionHistoryElement;
|
|
27
37
|
new (): HTMLUserTransactionHistoryElement;
|
|
28
38
|
};
|
|
39
|
+
interface HTMLUserTransactionHistoryFilterElementEventMap {
|
|
40
|
+
"applyFilters": { from: string; to: string };
|
|
41
|
+
}
|
|
42
|
+
interface HTMLUserTransactionHistoryFilterElement extends Components.UserTransactionHistoryFilter, HTMLStencilElement {
|
|
43
|
+
addEventListener<K extends keyof HTMLUserTransactionHistoryFilterElementEventMap>(type: K, listener: (this: HTMLUserTransactionHistoryFilterElement, ev: UserTransactionHistoryFilterCustomEvent<HTMLUserTransactionHistoryFilterElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
44
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
45
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
46
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
47
|
+
removeEventListener<K extends keyof HTMLUserTransactionHistoryFilterElementEventMap>(type: K, listener: (this: HTMLUserTransactionHistoryFilterElement, ev: UserTransactionHistoryFilterCustomEvent<HTMLUserTransactionHistoryFilterElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
48
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
49
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
50
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
51
|
+
}
|
|
52
|
+
var HTMLUserTransactionHistoryFilterElement: {
|
|
53
|
+
prototype: HTMLUserTransactionHistoryFilterElement;
|
|
54
|
+
new (): HTMLUserTransactionHistoryFilterElement;
|
|
55
|
+
};
|
|
29
56
|
interface HTMLElementTagNameMap {
|
|
30
57
|
"user-transaction-history": HTMLUserTransactionHistoryElement;
|
|
58
|
+
"user-transaction-history-filter": HTMLUserTransactionHistoryFilterElement;
|
|
31
59
|
}
|
|
32
60
|
}
|
|
33
61
|
declare namespace LocalJSX {
|
|
@@ -43,8 +71,16 @@ declare namespace LocalJSX {
|
|
|
43
71
|
"translationUrl"?: string;
|
|
44
72
|
"userId"?: string;
|
|
45
73
|
}
|
|
74
|
+
interface UserTransactionHistoryFilter {
|
|
75
|
+
"dateformat"?: string;
|
|
76
|
+
"from"?: string | null;
|
|
77
|
+
"language"?: string;
|
|
78
|
+
"onApplyFilters"?: (event: UserTransactionHistoryFilterCustomEvent<{ from: string; to: string }>) => void;
|
|
79
|
+
"to"?: string | null;
|
|
80
|
+
}
|
|
46
81
|
interface IntrinsicElements {
|
|
47
82
|
"user-transaction-history": UserTransactionHistory;
|
|
83
|
+
"user-transaction-history-filter": UserTransactionHistoryFilter;
|
|
48
84
|
}
|
|
49
85
|
}
|
|
50
86
|
export { LocalJSX as JSX };
|
|
@@ -52,6 +88,7 @@ declare module "@stencil/core" {
|
|
|
52
88
|
export namespace JSX {
|
|
53
89
|
interface IntrinsicElements {
|
|
54
90
|
"user-transaction-history": LocalJSX.UserTransactionHistory & JSXBase.HTMLAttributes<HTMLUserTransactionHistoryElement>;
|
|
91
|
+
"user-transaction-history-filter": LocalJSX.UserTransactionHistoryFilter & JSXBase.HTMLAttributes<HTMLUserTransactionHistoryFilterElement>;
|
|
55
92
|
}
|
|
56
93
|
}
|
|
57
94
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",a="undefined"!=typeof window?window:{},f=a.document||{head:{}},h={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},p=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,y=[],v=[],w=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&h.l?g($):h.raf($))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{b(y),b(v),(m=y.length>0)&&h.raf($)},g=e=>p().then(e),S=w(v,!0),j=e=>{const t=new URL(e,h.o);return t.origin!==a.location.origin?t.href:t.pathname},k={},O=e=>"object"==(e=typeof e)||"function"===e;function E(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>C,map:()=>M,ok:()=>x,unwrap:()=>L,unwrapErr:()=>T});var x=e=>({isOk:!0,isErr:!1,value:e}),C=e=>({isOk:!1,isErr:!0,value:e});function M(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>x(e))):x(n)}if(e.isErr)return C(e.value);throw"should never get here"}var P,R,L=e=>{if(e.isOk)return e.value;throw e.value},T=e=>{if(e.isErr)return e.value;throw e.value},U=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!O(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,H);const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H={forEach:(e,t)=>e.map(N).forEach(t),map:(e,t)=>e.map(N).map(t).map(W)},N=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),W=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),U(e.vtag,t,...e.vchildren||[])}const t=A(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},F=e=>n(e).$hostElement$,q=(e,t,n)=>{const l=F(e);return{emit:e=>G(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},G=(e,t,n)=>{const l=h.ce(t,n);return e.dispatchEvent(l),l},V=new WeakMap,_=e=>"sc-"+e.S,z=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=I(n),s=I(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=O(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!i||4&r||s)&&!o&&(l=!0===l?"":l,a?e.setAttributeNS(u,t,l):e.setAttribute(t,l))}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(J);t=t.replace(K,""),n&&h.rel(e,t,n,o),l&&h.ael(e,t,l,o)}}},B=/\s/,I=e=>e?e.split(B):[],J="Capture",K=RegExp(J+"$"),Q=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||k,s=t.u||k;for(const e of X(Object.keys(o)))e in s||z(l,e,o[e],void 0,n,t.l);for(const e of X(Object.keys(s)))z(l,e,o[e],s[e],n,t.l)};function X(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Y=!1,Z=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=f.createTextNode(l.i);else{if(Y||(Y="svg"===l.m),o=l.v=f.createElementNS(Y?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),Y&&"foreignObject"===l.m&&(Y=!1),Q(null,l,Y),null!=P&&o["s-si"]!==P&&o.classList.add(o["s-si"]=P),l.h)for(r=0;r<l.h.length;++r)s=Z(e,l,r),s&&o.appendChild(s);"svg"===l.m?Y=!1:"foreignObject"===o.tagName&&(Y=!0)}return o["s-hn"]=R,o},ee=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===R&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=Z(null,n,o),r&&(l[o].v=r,se(i,r,t)))},te=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;oe(t),e&&e.remove()}}},ne=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),le=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(Q(e,t,Y="svg"===r||"foreignObject"!==r&&Y),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(ne(h,m,o))le(h,m,o),h=t[++i],m=l[++c];else if(ne(p,y,o))le(p,y,o),p=t[--f],y=l[--d];else if(ne(h,y,o))le(h,y,o),se(e,h.v,p.v.nextSibling),h=t[++i],y=l[--d];else if(ne(p,m,o))le(p,m,o),se(e,p.v,h.v),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=Z(t&&t[c],n,u):(le(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=Z(t&&t[c],n,c),m=l[++c]),s&&se(h.v.parentNode,s,h.v)}i>f?ee(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&te(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),ee(l,null,t,s,0,s.length-1)):null!==o&&te(o,0,o.length-1),Y&&"svg"===r&&(Y=!1)):e.i!==i&&(l.data=i)},oe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(oe)},se=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),re=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},ie=(e,t)=>{if(e.l|=16,!(4&e.l))return re(e,e.k),S((()=>ce(e,t)));e.l|=512},ce=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.O&&(e.O.map((([e,t])=>me(n,e,t))),e.O=void 0),l=me(n,"componentWillLoad")),ue(l,(()=>fe(e,n,t)))},ue=(e,t)=>ae(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ae=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,fe=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.C,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=_(t),o=i.get(l);if(e=11===e.nodeType?e:f,o)if("string"==typeof o){let s,r=V.get(e=e.head||e);if(r||V.set(e,r=new Set),!r.has(l)){{s=f.createElement("style"),s.innerHTML=o;const t=null!=(n=h.M)?n:E(f);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);he(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>pe(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},he=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.C,s=e.P||A(null,null),r=(e=>e&&e.m===D)(t)?t:U(null,null,t);if(R=l.tagName,o.R&&(r.u=r.u||{},o.R.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.P=r,r.v=s.v=l.shadowRoot||l,P=l["s-sc"],le(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},pe=e=>{const t=e.$hostElement$,n=e.t,l=e.k;me(n,"componentDidRender"),64&e.l||(e.l|=64,ye(t),me(n,"componentDidLoad"),e.L(t),l||de()),e.j&&(e.j(),e.j=void 0),512&e.l&&g((()=>ie(e,!1))),e.l&=-517},de=()=>{ye(f.documentElement),g((()=>G(a,"appload",{detail:{namespace:"user-transaction-history"}})))},me=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ye=e=>e.classList.add("hydrated"),ve=(e,t,l)=>{var o,r;const i=e.prototype;if(t.T||t.U||e.watchers){e.watchers&&!t.U&&(t.U=e.watchers);const c=Object.entries(null!=(o=t.T)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.A.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||O(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.T[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.A.set(t,l),a)){if(o.U&&128&u){const e=o.U[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ie(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){h.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.U)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.U)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.R)||o.push([e,s])),s}))]))}}return e},we=e=>{me(e,"disconnectedCallback")},be=(e,l={})=>{var o;const u=[],p=l.exclude||[],m=a.customElements,y=f.head,v=y.querySelector("meta[charset]"),w=f.createElement("style"),b=[];let $,g=!0;Object.assign(h,l),h.o=new URL(l.resourcesUrl||"./",f.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],S:l[1],T:l[2],D:l[3]};4&c.l&&(S=!0),c.T=l[2],c.D=l[3],c.R=[],c.U=null!=(o=l[4])?o:{};const a=c.S,f=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,C:n,A:new Map};l.H=new Promise((e=>l.L=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,$e(this,e,c.D)),$&&(clearTimeout($),$=null),g?b.push(this):h.jmp((()=>(e=>{if(!(1&h.l)){const t=n(e),l=t.C,o=()=>{};if(1&t.l)$e(e,t,l.D),(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){re(t,t.k=n);break}}l.T&&Object.entries(l.T).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.N;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.S}#${t.W}" was not found`);l.isProxied||(n.U=l.watchers,ve(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=_(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.k,c=()=>ie(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){h.jmp((()=>(async()=>{if(!(1&h.l)){const e=n(this);e.F&&(e.F.map((e=>e())),e.F=void 0),(null==e?void 0:e.t)?we(e.t):(null==e?void 0:e.H)&&e.H.then((()=>we(e.t)))}})()))}componentOnReady(){return n(this).H}};c.N=e[0],p.includes(a)||m.get(a)||(u.push(a),m.define(a,ve(f,c,1)))}))})),u.length>0&&(S&&(w.textContent+=c),w.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(o=h.M)?o:E(f);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):h.jmp((()=>$=setTimeout(de,30)))},$e=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=Se(e,n),r=ge(t,o),i=je(n);h.ael(s,l,r,i),(t.F=t.F||[]).push((()=>h.rel(s,l,r,i)))}))},ge=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){s(e)}},Se=(e,t)=>8&t?a:e,je=e=>({passive:!!(1&e),capture:!!(2&e)}),ke=e=>h.M=e;export{D as H,F as a,be as b,q as c,j as g,U as h,p,l as r,ke as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as t,b as e}from"./index-6e523641.js";export{s as setNonce}from"./index-6e523641.js";import{g as i}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),t(i)})().then((async t=>(await i(),e([["user-transaction-history_2",[[1,"user-transaction-history",{endpoint:[513],session:[513],language:[513],userId:[513,"user-id"],translationUrl:[513,"translation-url"],mobile:[516],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],mbSource:[513,"mb-source"],dateFormat:[513,"date-format"],page:[32],pageSize:[32],showMobileFilter:[32],to:[32],from:[32],type:[32],transactions:[32],showLoader:[32]},[[9,"resize","getComponentHeight"]],{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}],[0,"user-transaction-history-filter",{from:[513],to:[513],language:[513],dateformat:[513],startDate:[32],endDate:[32]}]]]],t))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as e,g as n,H as r,a,c as i}from"./index-6e523641.js";class o{constructor(){}static async loadCustomTranslations(t){try{const e=await fetch(t,{headers:{"Content-Type":"application/json"}});if(!e.ok){const t=await e.text();throw new Error(t)}const n=await e.json();o.updateTranslations(n)}catch(e){console.error(`Failed to load translations ${t}. ${e.message}`)}}static translate(t,e){var n,r;const a=o.getAvaliableLanguages(e);return(null===(r=null===(n=o.customTranslation)||void 0===n?void 0:n[a.customLanguage])||void 0===r?void 0:r[t])||o.defaultTranslation[a.predefinedLanguage][t]}static getAvaliableLanguages(t){var e;const n=(null===(e=o.customLanguages)||void 0===e?void 0:e.includes(t))?t:o.defaultLanguage;return{predefinedLanguage:o.supportedLanguages.includes(t)?t:o.defaultLanguage,customLanguage:n}}static updateTranslations(t){o.customLanguages=Array.from(new Set([...o.supportedLanguages,...Object.keys(t).map((t=>t.toLowerCase()))])),o.customTranslation=t}}o.defaultLanguage="en",o.supportedLanguages=["en"],o.defaultTranslation={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities",transactionTitle:"Transaction History"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu",transactionTitle:"Povijest transakcija"}};const u=()=>t("div",{class:"loader"},t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null),t("div",null));function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function c(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function d(t){c(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===s(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function l(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function h(t,e){return c(2,arguments),function(t,e){c(2,arguments);var n=d(t).getTime(),r=l(e);return new Date(n+r)}(t,-l(e))}function f(t){c(1,arguments);var e=d(t),n=e.getUTCDay(),r=(n<1?7:0)+n-1;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function v(t){c(1,arguments);var e=d(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=f(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var o=f(i);return e.getTime()>=a.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function w(t){c(1,arguments);var e=d(t),n=f(e).getTime()-function(t){c(1,arguments);var e=v(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),f(n)}(e).getTime();return Math.round(n/6048e5)+1}var m={};function p(){return m}function y(t,e){var n,r,a,i,o,u,s,h;c(1,arguments);var f=p(),v=l(null!==(n=null!==(r=null!==(a=null!==(i=null==e?void 0:e.weekStartsOn)&&void 0!==i?i:null==e||null===(o=e.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==a?a:f.weekStartsOn)&&void 0!==r?r:null===(s=f.locale)||void 0===s||null===(h=s.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=d(t),m=w.getUTCDay(),y=(m<v?7:0)+m-v;return w.setUTCDate(w.getUTCDate()-y),w.setUTCHours(0,0,0,0),w}function b(t,e){var n,r,a,i,o,u,s,h;c(1,arguments);var f=d(t),v=f.getUTCFullYear(),w=p(),m=l(null!==(n=null!==(r=null!==(a=null!==(i=null==e?void 0:e.firstWeekContainsDate)&&void 0!==i?i:null==e||null===(o=e.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:w.firstWeekContainsDate)&&void 0!==r?r:null===(s=w.locale)||void 0===s||null===(h=s.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(v+1,0,m),b.setUTCHours(0,0,0,0);var g=y(b,e),x=new Date(0);x.setUTCFullYear(v,0,m),x.setUTCHours(0,0,0,0);var k=y(x,e);return f.getTime()>=g.getTime()?v+1:f.getTime()>=k.getTime()?v:v-1}function g(t,e){c(1,arguments);var n=d(t),r=y(n,e).getTime()-function(t,e){var n,r,a,i,o,u,s,d;c(1,arguments);var h=p(),f=l(null!==(n=null!==(r=null!==(a=null!==(i=null==e?void 0:e.firstWeekContainsDate)&&void 0!==i?i:null==e||null===(o=e.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:h.firstWeekContainsDate)&&void 0!==r?r:null===(s=h.locale)||void 0===s||null===(d=s.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1),v=b(t,e),w=new Date(0);return w.setUTCFullYear(v,0,f),w.setUTCHours(0,0,0,0),y(w,e)}(n,e).getTime();return Math.round(r/6048e5)+1}function x(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}const k=function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return x("yy"===e?r%100:r,e.length)},M=function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):x(n+1,2)},T=function(t,e){return x(t.getUTCDate(),e.length)},D=function(t,e){return x(t.getUTCHours()%12||12,e.length)},S=function(t,e){return x(t.getUTCHours(),e.length)},E=function(t,e){return x(t.getUTCMinutes(),e.length)},B=function(t,e){return x(t.getUTCSeconds(),e.length)},A=function(t,e){var n=e.length,r=t.getUTCMilliseconds();return x(Math.floor(r*Math.pow(10,n-3)),e.length)};function C(t,e){var n=t>0?"-":"+",r=Math.abs(t),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);var o=e||"";return n+String(a)+o+x(i,2)}function j(t,e){return t%60==0?(t>0?"-":"+")+x(Math.abs(t)/60,2):P(t,e)}function P(t,e){var n=e||"",r=t>0?"-":"+",a=Math.abs(t);return r+x(Math.floor(a/60),2)+n+x(a%60,2)}const q={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return k(t,e)},Y:function(t,e,n,r){var a=b(t,r),i=a>0?a:1-a;return"YY"===e?x(i%100,2):"Yo"===e?n.ordinalNumber(i,{unit:"year"}):x(i,e.length)},R:function(t,e){return x(v(t),e.length)},u:function(t,e){return x(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return x(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return x(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return x(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var a=g(t,r);return"wo"===e?n.ordinalNumber(a,{unit:"week"}):x(a,e.length)},I:function(t,e,n){var r=w(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):x(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):T(t,e)},D:function(t,e,n){var r=function(t){c(1,arguments);var e=d(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime();return Math.floor((n-r)/864e5)+1}(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):x(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return x(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return x(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),a=0===r?7:r;switch(e){case"i":return String(a);case"ii":return x(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,a=t.getUTCHours();switch(r=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,a=t.getUTCHours();switch(r=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return D(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):S(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):x(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):x(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):E(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):B(t,e)},S:function(t,e){return A(t,e)},X:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return j(a);case"XXXX":case"XX":return P(a);default:return P(a,":")}},x:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return j(a);case"xxxx":case"xx":return P(a);default:return P(a,":")}},O:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+C(a,":");default:return"GMT"+P(a,":")}},z:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+C(a,":");default:return"GMT"+P(a,":")}},t:function(t,e,n,r){return x(Math.floor((r._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,n,r){return x((r._originalDate||t).getTime(),e.length)}};var L=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},R=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Y={p:R,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return L(t,e);switch(a){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",L(a,e)).replace("{{time}}",R(i,e))}};const Q=Y;function I(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var O=["D","DD"],W=["YY","YYYY"];function N(t){return-1!==O.indexOf(t)}function z(t){return-1!==W.indexOf(t)}function G(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var X={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function $(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var F,H={date:$({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:$({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:$({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},U={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function K(t){return function(e,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,i=null!=n&&n.width?String(n.width):a;r=t.formattingValues[i]||t.formattingValues[a]}else{var o=t.defaultWidth,u=null!=n&&n.width?String(n.width):t.defaultWidth;r=t.values[u]||t.values[o]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function Z(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=e.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!a)return null;var i,o=a[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(u)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(o))return e}(u):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(o))return e}(u);return i=t.valueCallback?t.valueCallback(s):s,{value:i=n.valueCallback?n.valueCallback(i):i,rest:e.slice(o.length)}}}const J={code:"en-US",formatDistance:function(t,e,n){var r,a=X[t];return r="string"==typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:H,formatRelative:function(t){return U[t]},localize:{ordinalNumber:function(t){var e=Number(t),n=e%100;if(n>20||n<10)switch(n%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:K({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(F={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(F.matchPattern);if(!n)return null;var r=n[0],a=t.match(F.parsePattern);if(!a)return null;var i=F.valueCallback?F.valueCallback(a[0]):a[0];return{value:i=e.valueCallback?e.valueCallback(i):i,rest:t.slice(r.length)}}),era:Z({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Z({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Z({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Z({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Z({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var _=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,V=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tt=/^'([^]*?)'?$/,et=/''/g,nt=/[a-zA-Z]/;function rt(t,e,n){var r,a,i,o,u,f,v,w,m,y,b,g,x,k,M,T,D,S;c(2,arguments);var E=String(e),B=p(),A=null!==(r=null!==(a=null==n?void 0:n.locale)&&void 0!==a?a:B.locale)&&void 0!==r?r:J,C=l(null!==(i=null!==(o=null!==(u=null!==(f=null==n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null==n||null===(v=n.locale)||void 0===v||null===(w=v.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==u?u:B.firstWeekContainsDate)&&void 0!==o?o:null===(m=B.locale)||void 0===m||null===(y=m.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=l(null!==(b=null!==(g=null!==(x=null!==(k=null==n?void 0:n.weekStartsOn)&&void 0!==k?k:null==n||null===(M=n.locale)||void 0===M||null===(T=M.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==x?x:B.weekStartsOn)&&void 0!==g?g:null===(D=B.locale)||void 0===D||null===(S=D.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==b?b:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var P=d(t);if(!function(t){if(c(1,arguments),!function(t){return c(1,arguments),t instanceof Date||"object"===s(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=d(t);return!isNaN(Number(e))}(P))throw new RangeError("Invalid time value");var L=h(P,I(P)),R={firstWeekContainsDate:C,weekStartsOn:j,locale:A,_originalDate:P};return E.match(V).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Q[e])(t,A.formatLong):t})).join("").match(_).map((function(r){if("''"===r)return"'";var a,i,o=r[0];if("'"===o)return(i=(a=r).match(tt))?i[1].replace(et,"'"):a;var u=q[o];if(u)return null!=n&&n.useAdditionalWeekYearTokens||!z(r)||G(r,e,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!N(r)||G(r,e,String(t)),u(L,r,A.localize,R);if(o.match(nt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}class at{constructor(){}static dateToFormatedString(t,e){return`${e?rt(t,e):t.toLocaleDateString("en-gb")}, ${t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}`}}class it{constructor(){}static format(t,e){let n=`${e} ${t}`;try{n=new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e)}catch(t){}return n}}const ot=e=>t("div",{class:"data-transaction"},t("p",null,e.productType),t("p",{class:"text-style text-style-status"},t("span",{class:e.status.toLowerCase()},e.status)),t("p",{class:"date"},e.transId," | ",at.dateToFormatedString(new Date(e.created),e.dateformat)),t("p",{class:"text-style"},it.format(e.currency,e.realAmount)," ")),ut=e=>t("div",{class:"page-size"},t("span",null,o.translate("show",e.language)),e.pageSizes.map((n=>t("button",{class:e.currentPageSize===n?"active":"",onClick:()=>e.changePageSize(n)},n)))),st=({source:e,language:n,dateformat:r})=>{const a=[{name:o.translate("transactionId",n)},{name:o.translate("date",n)},{name:o.translate("amount",n)},{name:o.translate("productType",n)},{name:o.translate("status",n)}];return t("table",null,t("thead",null,t("tr",null,a.map((e=>t("th",null,e.name))))),t("tbody",null,e.map((e=>t("tr",null,t("td",null,e.transId),t("td",null,at.dateToFormatedString(new Date(e.created),r)),t("td",null,it.format(e.currency,e.realAmount)," "),t("td",null,e.productType),t("td",null,t("span",{class:e.status.toLowerCase()},e.status)))))))};function ct(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function dt(t,e){const n=new URL(e);fetch(n.href).then((t=>t.text())).then((e=>{const n=document.createElement("style");n.innerHTML=e,t&&t.appendChild(n)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ht(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return lt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw i}}}}function ft(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function vt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wt(t,e){return wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wt(t,e)}function mt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wt(t,e)}function pt(t){return pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pt(t)}function yt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yt=function(){return!!t})()}function bt(t){var e=yt();return function(){var n,r=pt(t);if(e){var a=pt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return vt(t)}(this,n)}}function gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xt(t){var e=function(t){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}function kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xt(r.key),r)}}function Mt(t,e,n){return e&&kt(t.prototype,e),n&&kt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tt(t,e,n){return(e=xt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dt=function(){function t(){gt(this,t),Tt(this,"priority",void 0),Tt(this,"subPriority",0)}return Mt(t,[{key:"validate",value:function(){return!0}}]),t}(),St=function(){mt(e,Dt);var t=bt(e);function e(n,r,a,i,o){var u;return gt(this,e),(u=t.call(this)).value=n,u.validateValue=r,u.setValue=a,u.priority=i,o&&(u.subPriority=o),u}return Mt(e,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,n){return this.setValue(t,e,this.value,n)}}]),e}(),Et=function(){mt(e,Dt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",10),Tt(vt(n),"subPriority",-1),n}return Mt(e,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}}]),e}(),Bt=function(){function t(){gt(this,t),Tt(this,"incompatibleTokens",void 0),Tt(this,"priority",void 0),Tt(this,"subPriority",void 0)}return Mt(t,[{key:"run",value:function(t,e,n,r){var a=this.parse(t,e,n,r);return a?{setter:new St(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),At=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",140),Tt(vt(n),"incompatibleTokens",["R","u","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,n){return e.era=n,t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Ct=/^(1[0-2]|0?\d)/,jt=/^(3[0-1]|[0-2]?\d)/,Pt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,qt=/^(5[0-3]|[0-4]?\d)/,Lt=/^(2[0-3]|[0-1]?\d)/,Rt=/^(2[0-4]|[0-1]?\d)/,Yt=/^(1[0-1]|0?\d)/,Qt=/^(1[0-2]|0?\d)/,It=/^[0-5]?\d/,Ot=/^[0-5]?\d/,Wt=/^\d/,Nt=/^\d{1,2}/,zt=/^\d{1,3}/,Gt=/^\d{1,4}/,Xt=/^-?\d+/,$t=/^-?\d/,Ft=/^-?\d{1,2}/,Ht=/^-?\d{1,3}/,Ut=/^-?\d{1,4}/,Kt=/^([+-])(\d{2})(\d{2})?|Z/,Zt=/^([+-])(\d{2})(\d{2})|Z/,Jt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,_t=/^([+-])(\d{2}):(\d{2})|Z/,Vt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function te(t,e){return t?{value:e(t.value),rest:t.rest}:t}function ee(t,e){var n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function ne(t,e){var n=e.match(t);return n?"Z"===n[0]?{value:0,rest:e.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:e.slice(n[0].length)}:null}function re(t){return ee(Xt,t)}function ae(t,e){switch(t){case 1:return ee(Wt,e);case 2:return ee(Nt,e);case 3:return ee(zt,e);case 4:return ee(Gt,e);default:return ee(new RegExp("^\\d{1,"+t+"}"),e)}}function ie(t,e){switch(t){case 1:return ee($t,e);case 2:return ee(Ft,e);case 3:return ee(Ht,e);case 4:return ee(Ut,e);default:return ee(new RegExp("^-?\\d{1,"+t+"}"),e)}}function oe(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ue(t,e){var n,r=e>0,a=r?e:1-e;if(a<=50)n=t||100;else{var i=a+50;n=t+100*Math.floor(i/100)-(t>=i%100?100:0)}return r?n:1-n}function se(t){return t%400==0||t%4==0&&t%100!=0}var ce=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",130),Tt(vt(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return te(ae(4,t),r);case"yo":return te(n.ordinalNumber(t,{unit:"year"}),r);default:return te(ae(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n){var r=t.getUTCFullYear();if(n.isTwoDigitYear){var a=ue(n.year,r);return t.setUTCFullYear(a,0,1),t.setUTCHours(0,0,0,0),t}return t.setUTCFullYear("era"in e&&1!==e.era?1-n.year:n.year,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),de=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",130),Tt(vt(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return te(ae(4,t),r);case"Yo":return te(n.ordinalNumber(t,{unit:"year"}),r);default:return te(ae(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n,r){var a=b(t,r);if(n.isTwoDigitYear){var i=ue(n.year,a);return t.setUTCFullYear(i,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),y(t,r)}return t.setUTCFullYear("era"in e&&1!==e.era?1-n.year:n.year,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),y(t,r)}}]),e}(),le=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",130),Tt(vt(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e){return ie("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),f(r)}}]),e}(),he=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",130),Tt(vt(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e){return ie("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),fe=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",120),Tt(vt(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"Q":case"QQ":return ae(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),ve=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",120),Tt(vt(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"q":case"qq":return ae(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),we=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Tt(vt(n),"priority",110),n}return Mt(e,[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"M":return te(ee(Ct,t),r);case"MM":return te(ae(2,t),r);case"Mo":return te(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),e}(),me=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",110),Tt(vt(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"L":return te(ee(Ct,t),r);case"LL":return te(ae(2,t),r);case"Lo":return te(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),e}(),pe=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",100),Tt(vt(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"w":return ee(qt,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return ae(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n,r){return y(function(t,e,n){c(2,arguments);var r=d(t),a=l(e),i=g(r,n)-a;return r.setUTCDate(r.getUTCDate()-7*i),r}(t,n,r),r)}}]),e}(),ye=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",100),Tt(vt(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"I":return ee(qt,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return ae(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n){return f(function(t,e){c(2,arguments);var n=d(t),r=l(e),a=w(n)-r;return n.setUTCDate(n.getUTCDate()-7*a),n}(t,n))}}]),e}(),be=[31,28,31,30,31,30,31,31,30,31,30,31],ge=[31,29,31,30,31,30,31,31,30,31,30,31],xe=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",90),Tt(vt(n),"subPriority",1),Tt(vt(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"d":return ee(jt,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return ae(e.length,t)}}},{key:"validate",value:function(t,e){var n=se(t.getUTCFullYear()),r=t.getUTCMonth();return n?e>=1&&e<=ge[r]:e>=1&&e<=be[r]}},{key:"set",value:function(t,e,n){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t}}]),e}(),ke=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",90),Tt(vt(n),"subpriority",1),Tt(vt(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"D":case"DD":return ee(Pt,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return ae(e.length,t)}}},{key:"validate",value:function(t,e){return se(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,n){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t}}]),e}();function Me(t,e,n){var r,a,i,o,u,s,h,f;c(2,arguments);var v=p(),w=l(null!==(r=null!==(a=null!==(i=null!==(o=null==n?void 0:n.weekStartsOn)&&void 0!==o?o:null==n||null===(u=n.locale)||void 0===u||null===(s=u.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:v.weekStartsOn)&&void 0!==a?a:null===(h=v.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=d(t),y=l(e),b=((y%7+7)%7<w?7:0)+y-m.getUTCDay();return m.setUTCDate(m.getUTCDate()+b),m}var Te=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",90),Tt(vt(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Me(t,n,r)).setUTCHours(0,0,0,0),t}}]),e}(),De=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",90),Tt(vt(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n,r){var a=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return te(ae(e.length,t),a);case"eo":return te(n.ordinalNumber(t,{unit:"day"}),a);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Me(t,n,r)).setUTCHours(0,0,0,0),t}}]),e}(),Se=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",90),Tt(vt(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n,r){var a=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return te(ae(e.length,t),a);case"co":return te(n.ordinalNumber(t,{unit:"day"}),a);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Me(t,n,r)).setUTCHours(0,0,0,0),t}}]),e}(),Ee=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",90),Tt(vt(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return ae(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return te(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return te(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return te(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);default:return te(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,n){return t=function(t,e){c(2,arguments);var n=l(e);n%7==0&&(n-=7);var r=d(t),a=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+a),r}(t,n),t.setUTCHours(0,0,0,0),t}}]),e}(),Be=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",80),Tt(vt(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(oe(n),0,0,0),t}}]),e}(),Ae=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",80),Tt(vt(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(oe(n),0,0,0),t}}]),e}(),Ce=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",80),Tt(vt(n),"incompatibleTokens",["a","b","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(oe(n),0,0,0),t}}]),e}(),je=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",70),Tt(vt(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"h":return ee(Qt,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return ae(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,n){var r=t.getUTCHours()>=12;return t.setUTCHours(r&&n<12?n+12:r||12!==n?n:0,0,0,0),t}}]),e}(),Pe=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",70),Tt(vt(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"H":return ee(Lt,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return ae(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,n){return t.setUTCHours(n,0,0,0),t}}]),e}(),qe=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",70),Tt(vt(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"K":return ee(Yt,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return ae(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){var r=t.getUTCHours()>=12;return t.setUTCHours(r&&n<12?n+12:n,0,0,0),t}}]),e}(),Le=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",70),Tt(vt(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"k":return ee(Rt,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return ae(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,n){return t.setUTCHours(n<=24?n%24:n,0,0,0),t}}]),e}(),Re=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",60),Tt(vt(n),"incompatibleTokens",["t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"m":return ee(It,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return ae(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCMinutes(n,0,0),t}}]),e}(),Ye=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",50),Tt(vt(n),"incompatibleTokens",["t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e,n){switch(e){case"s":return ee(Ot,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return ae(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCSeconds(n,0),t}}]),e}(),Qe=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",30),Tt(vt(n),"incompatibleTokens",["t","T"]),n}return Mt(e,[{key:"parse",value:function(t,e){return te(ae(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,n){return t.setUTCMilliseconds(n),t}}]),e}(),Ie=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",10),Tt(vt(n),"incompatibleTokens",["t","T","x"]),n}return Mt(e,[{key:"parse",value:function(t,e){switch(e){case"X":return ne(Kt,t);case"XX":return ne(Zt,t);case"XXXX":return ne(Jt,t);case"XXXXX":return ne(Vt,t);default:return ne(_t,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),e}(),Oe=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",10),Tt(vt(n),"incompatibleTokens",["t","T","X"]),n}return Mt(e,[{key:"parse",value:function(t,e){switch(e){case"x":return ne(Kt,t);case"xx":return ne(Zt,t);case"xxxx":return ne(Jt,t);case"xxxxx":return ne(Vt,t);default:return ne(_t,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),e}(),We=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",40),Tt(vt(n),"incompatibleTokens","*"),n}return Mt(e,[{key:"parse",value:function(t){return re(t)}},{key:"set",value:function(t,e,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),e}(),Ne=function(){mt(e,Bt);var t=bt(e);function e(){var n;gt(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Tt(vt(n=t.call.apply(t,[this].concat(a))),"priority",20),Tt(vt(n),"incompatibleTokens","*"),n}return Mt(e,[{key:"parse",value:function(t){return re(t)}},{key:"set",value:function(t,e,n){return[new Date(n),{timestampIsSet:!0}]}}]),e}(),ze={G:new At,y:new ce,Y:new de,R:new le,u:new he,Q:new fe,q:new ve,M:new we,L:new me,w:new pe,I:new ye,d:new xe,D:new ke,E:new Te,e:new De,c:new Se,i:new Ee,a:new Be,b:new Ae,B:new Ce,h:new je,H:new Pe,K:new qe,k:new Le,m:new Re,s:new Ye,S:new Qe,X:new Ie,x:new Oe,t:new We,T:new Ne},Ge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$e=/^'([^]*?)'?$/,Fe=/''/g,He=/\S/,Ue=/[a-zA-Z]/;function Ke(t,e,n,r){var a,i,o,u,f,v,w,m,y,b,g,x,k,M,T,D,S,E;c(3,arguments);var B=String(t),A=String(e),C=p(),j=null!==(a=null!==(i=null==r?void 0:r.locale)&&void 0!==i?i:C.locale)&&void 0!==a?a:J;if(!j.match)throw new RangeError("locale must contain match property");var P=l(null!==(o=null!==(u=null!==(f=null!==(v=null==r?void 0:r.firstWeekContainsDate)&&void 0!==v?v:null==r||null===(w=r.locale)||void 0===w||null===(m=w.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==f?f:C.firstWeekContainsDate)&&void 0!==u?u:null===(y=C.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==o?o:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=l(null!==(g=null!==(x=null!==(k=null!==(M=null==r?void 0:r.weekStartsOn)&&void 0!==M?M:null==r||null===(T=r.locale)||void 0===T||null===(D=T.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==k?k:C.weekStartsOn)&&void 0!==x?x:null===(S=C.locale)||void 0===S||null===(E=S.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==g?g:0);if(!(q>=0&&q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===A)return""===B?d(n):new Date(NaN);var L,R={firstWeekContainsDate:P,weekStartsOn:q,locale:j},Y=[new Et],O=A.match(Xe).map((function(t){var e=t[0];return e in Q?(0,Q[e])(t,j.formatLong):t})).join("").match(Ge),W=[],X=ht(O);try{var $=function(){var e=L.value;null!=r&&r.useAdditionalWeekYearTokens||!z(e)||G(e,A,t),null!=r&&r.useAdditionalDayOfYearTokens||!N(e)||G(e,A,t);var n=e[0],a=ze[n];if(a){var i=a.incompatibleTokens;if(Array.isArray(i)){var o=W.find((function(t){return i.includes(t.token)||t.token===n}));if(o)throw new RangeError("The format string mustn't contain `".concat(o.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===a.incompatibleTokens&&W.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));W.push({token:n,fullToken:e});var u=a.run(B,e,j.match,R);if(!u)return{v:new Date(NaN)};Y.push(u.setter),B=u.rest}else{if(n.match(Ue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===e?e="'":"'"===n&&(e=e.match($e)[1].replace(Fe,"'")),0!==B.indexOf(e))return{v:new Date(NaN)};B=B.slice(e.length)}};for(X.s();!(L=X.n()).done;){var F=$();if("object"===s(F))return F.v}}catch(t){X.e(t)}finally{X.f()}if(B.length>0&&He.test(B))return new Date(NaN);var H=Y.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,n){return n.indexOf(t)===e})).map((function(t){return Y.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),U=d(n);if(isNaN(U.getTime()))return new Date(NaN);var K,Z=h(U,I(U)),_={},V=ht(H);try{for(V.s();!(K=V.n()).done;){var tt=K.value;if(!tt.validate(Z,R))return new Date(NaN);var et=tt.set(Z,_,R);Array.isArray(et)?(Z=et[0],ft(_,et[1])):Z=et}}catch(t){V.e(t)}finally{V.f()}return Z}const Ze=class{constructor(t){e(this,t),this.pageSizes=[10,25,50],this.pagination=null,this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.mobile},window.location.href)},this.endpoint=void 0,this.session=void 0,this.language=o.defaultLanguage,this.userId=void 0,this.translationUrl=void 0,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.mbSource=void 0,this.dateFormat="",this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.to=void 0,this.from=void 0,this.type="0",this.transactions=void 0,this.showLoader=!0}watchMultiple(){this.loadTransactions()}handleClientStylingChange(t,e){t!=e&&ct(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&this.clientStylingUrl&&dt(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){this.translationUrl&&await o.loadCustomTranslations(this.translationUrl),this.to=rt(new Date,`${this.dateFormat||"yyyy-MM-dd"}`),this.from=rt(function(t,e){return c(2,arguments),function(t,e){c(2,arguments);var n=d(t),r=l(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),a>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),a),n)}(t,-l(e))}(new Date,1),`${this.dateFormat||"yyyy-MM-dd"}`),this.loadTransactions()}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(t,e){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{n.innerHTML=e,t&&t.appendChild(n)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&ct(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&dt(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var t;if(this.mobile){let e=this.el.getBoundingClientRect().height-(null===(t=this.el.shadowRoot.querySelector(".table"))||void 0===t?void 0:t.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",e+"px")}}setHeightTableProperty(){let t=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",t+"px")}changeTransactionsType(t){this.type=t}changePageSize(t){this.pageSize=t}prev(){var t;(null===(t=this.pagination)||void 0===t?void 0:t.previous)&&this.page--}next(){var t;(null===(t=this.pagination)||void 0===t?void 0:t.next)&&this.page++}applyFilters(t,e){this.from=t,this.to=e,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var e;const a=n("../assets/filter.svg"),i=n("../assets/warning.svg");return t(r,{key:"395328866f9fbae0a79d1dcf9dc5e9fd6e321406"},this.showLoader?t(u,null):"",t("div",{key:"fcb0efc2b0c9f2daa3df8c6c1d541dabe76c8126",class:"wrapper",ref:t=>this.stylingContainer=t},this.mobile?t("div",{class:"MenuReturnButton",onClick:this.toggleScreen},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t("defs",null),t("g",{transform:"translate(-20 -158)"},t("g",{transform:"translate(20 158)"},t("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),t("h2",{class:"TransactionTitleMobile"},o.translate("transactionTitle",this.language))):t("h2",{class:"TransactionTitle"},o.translate("transactionTitle",this.language)),t("div",{key:"3fcb0ac0f3bc81ce2c3e298e53649a7050a53cb2",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},t("button",{key:"1fcfd5dbf9857488bd0594f5b908e845a66f0d05",class:"transaction-type "+("0"===this.type?"clicked":""),onClick:()=>this.changeTransactionsType("0")},o.translate("deposit",this.language)),t("button",{key:"58c6707975e3854e8a4afcf270a11dacd3c15947",class:"transaction-type "+("1"===this.type?"clicked":""),onClick:()=>this.changeTransactionsType("1")},o.translate("withdrawals",this.language))),this.mobile?"":t(ut,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:t=>this.changePageSize(t)}),this.mobile?t("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},t("img",{src:a,alt:"Filter"}),o.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?t("user-transaction-history-filter",{language:this.language,onApplyFilters:({detail:{from:t,to:e}})=>this.applyFilters(t,e),from:this.from,to:this.to,dateformat:this.dateFormat}):"",(null===(e=this.transactions)||void 0===e?void 0:e.length)>0?t("div",{class:"table"},this.mobile?t("div",{class:"mobile-table"},this.transactions.map((e=>t(ot,Object.assign({},e,{dateformat:this.dateFormat}))))):t(st,{source:this.transactions,language:this.language,dateformat:this.dateFormat})):t("div",{class:"noData"},t("img",{src:i,alt:"Warning"}),t("span",null,o.translate("noData",this.language))),t("div",{key:"a58ec540ecc0d4162bb32eae5bd453e37cf7fed1",class:"pagination"},t("button",{key:"f21b01b72d7a4470e1cbbefdec50169e6e5bc222",onClick:()=>this.prev()},"<"),t("button",{key:"d14d057b3620a30ae3c11a5f22640913c0a1d32e",onClick:()=>this.next()},">"))))}async loadTransactions(){this.showLoader=!0;try{const t=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,e=await fetch(t,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!e.ok){const t=await e.text();throw new Error(t)}const n=await e.json();this.pagination=n.pagination,this.transactions=n.transactions}catch(t){console.error(t)}finally{this.showLoader=!1}}formatDateForApi(t){return rt(Ke(t,`${this.dateFormat||"yyyy-MM-dd"}`,new Date),"yyyy-MM-dd")}getParams(){const t=(this.page*this.pageSize).toString(),e=this.formatDateForApi(this.from);return`offset=${t}&endDate=${this.formatDateForApi(this.to)}&startDate=${e}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return a(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};Ze.style=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}.MenuReturnButton{font:inherit;color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MenuReturnButton h2.TransactionTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}';const Je=class{constructor(t){e(this,t),this.applyFilters=i(this,"applyFilters",7),this.startDateChange=()=>{this.startDate=rt(new Date(this.startDatePicker.value),`${this.dateformat||"yyyy-MM-dd"}`)},this.endDateChange=()=>{this.endDate=rt(new Date(this.endDatePicker.value),`${this.dateformat||"yyyy-MM-dd"}`)},this.from=void 0,this.to=void 0,this.language=void 0,this.dateformat=void 0,this.startDate=void 0,this.endDate=void 0}componentWillLoad(){this.startDate=this.from,this.endDate=this.to}componentDidLoad(){this.startDatePicker.i18n=Object.assign(Object.assign({},this.startDatePicker.i18n),{formatDate:this.formatVaadinDate.bind(this),parseDate:this.parseDate.bind(this)}),this.endDatePicker.i18n=Object.assign(Object.assign({},this.endDatePicker.i18n),{formatDate:this.formatVaadinDate.bind(this),parseDate:this.parseDate.bind(this)})}formatVaadinDate(t){const{year:e,month:n,day:r}=t;return rt(new Date(e,n,r),this.dateformat||"yyyy-MM-dd")}parseDate(t){const e=Ke(t,this.dateformat||"yyyy-MM-dd",new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}}handleApplyFilters(){this.applyFilters.emit({from:this.startDate,to:this.endDate})}render(){return t("div",{key:"e25ee310b522ecfcc8dda8b6294e30f5e66c4edd",class:"period"},t("div",{key:"a6ec37aafe30774077bae55366d6357c1b0a8c60",class:"period-content"},t("div",{key:"d9796d6972931e14190fcd8ab558162af64d8d62",class:"date-input"},t("vaadin-date-picker",{key:"3df25b815c7b2a7f3bf72ece4c430f595446122e",value:this.startDate,placeholder:this.startDate,ref:t=>this.startDatePicker=t,label:o.translate("from",this.language),onChange:this.startDateChange})),t("span",{key:"f251410540f18bb86946c2e08915edbf73765fbc"},t("svg",{key:"7c5d28705c152fbc73c3709b5e3b6bee5b14c0c7",width:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"3ebc124be61de20e9f946ae5f9116a5f9bf043ff",d:"m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z","fill-rule":"nonzero",fill:"5d687b"}))),t("div",{key:"84aa35e5d8598c713904bfd4baf109a422b83e2c",class:"date-input"},t("vaadin-date-picker",{key:"3ef7bd62bc9ed6034fb55fff38013425b627d1c9",value:this.endDate,placeholder:this.endDate,ref:t=>this.endDatePicker=t,label:o.translate("to",this.language),onChange:this.endDateChange})),t("button",{key:"6f3be9bf3a0c2de87d7661691e3b72b16018e460",class:"filter-btn",onClick:this.handleApplyFilters.bind(this)},o.translate("filter",this.language))))}};export{Ze as user_transaction_history,Je as user_transaction_history_filter}
|