@everymatrix/user-transaction-history 1.53.0 → 1.53.10
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-4252bc97.js → index-f8cad885.js} +167 -70
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/user-transaction-history.cjs.entry.js +13 -8
- package/dist/cjs/user-transaction-history.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/user-transaction-history/user-transaction-history.js +28 -7
- package/dist/esm/{index-e8249896.js → index-fc58390d.js} +167 -70
- package/dist/esm/loader.js +2 -2
- package/dist/esm/user-transaction-history.entry.js +13 -8
- package/dist/esm/user-transaction-history.js +3 -3
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.dev.d.ts +2 -0
- package/dist/user-transaction-history/p-76051e8b.js +2 -0
- package/dist/user-transaction-history/p-ef0d053d.entry.js +1 -0
- package/dist/user-transaction-history/user-transaction-history.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.dev.d.ts +0 -2
- package/dist/user-transaction-history/p-380caf32.js +0 -2
- package/dist/user-transaction-history/p-7972bcc3.entry.js +0 -1
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
const NAMESPACE = 'user-transaction-history';
|
|
2
|
-
const BUILD = /* user-transaction-history */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
2
|
+
const BUILD = /* user-transaction-history */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
// src/utils/constants.ts
|
|
14
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
+
|
|
17
|
+
// src/client/client-host-ref.ts
|
|
12
18
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
19
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
20
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
21
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
|
+
};
|
|
15
23
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
24
|
const hostRef = {
|
|
17
25
|
$flags$: 0,
|
|
@@ -24,7 +32,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
32
|
hostElement["s-p"] = [];
|
|
25
33
|
hostElement["s-rc"] = [];
|
|
26
34
|
}
|
|
27
|
-
|
|
35
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
36
|
+
return ref;
|
|
28
37
|
};
|
|
29
38
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
39
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -61,16 +70,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
61
70
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
62
71
|
/* webpackMode: "lazy" */
|
|
63
72
|
`./${bundleId}.entry.js${""}`
|
|
64
|
-
).then(
|
|
65
|
-
{
|
|
66
|
-
|
|
73
|
+
).then(
|
|
74
|
+
(importedModule) => {
|
|
75
|
+
{
|
|
76
|
+
cmpModules.set(bundleId, importedModule);
|
|
77
|
+
}
|
|
78
|
+
return importedModule[exportName];
|
|
79
|
+
},
|
|
80
|
+
(e) => {
|
|
81
|
+
consoleError(e, hostRef.$hostElement$);
|
|
67
82
|
}
|
|
68
|
-
|
|
69
|
-
}, consoleError);
|
|
83
|
+
);
|
|
70
84
|
};
|
|
71
85
|
|
|
72
86
|
// src/client/client-style.ts
|
|
73
87
|
var styles = /* @__PURE__ */ new Map();
|
|
88
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
74
89
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
75
90
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
76
91
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
@@ -151,14 +166,6 @@ var getAssetPath = (path) => {
|
|
|
151
166
|
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
152
167
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
153
168
|
};
|
|
154
|
-
|
|
155
|
-
// src/utils/constants.ts
|
|
156
|
-
var EMPTY_OBJ = {};
|
|
157
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
158
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
159
|
-
|
|
160
|
-
// src/utils/helpers.ts
|
|
161
|
-
var isDef = (v) => v != null;
|
|
162
169
|
var isComplexType = (o) => {
|
|
163
170
|
o = typeof o;
|
|
164
171
|
return o === "object" || o === "function";
|
|
@@ -381,7 +388,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
381
388
|
}
|
|
382
389
|
if (!appliedStyles.has(scopeId2)) {
|
|
383
390
|
{
|
|
384
|
-
styleElm = doc.createElement("style");
|
|
391
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
385
392
|
styleElm.innerHTML = style;
|
|
386
393
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
387
394
|
if (nonce != null) {
|
|
@@ -391,7 +398,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
391
398
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
392
399
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
393
400
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
394
|
-
styleContainerNode.insertBefore(
|
|
401
|
+
styleContainerNode.insertBefore(
|
|
402
|
+
styleElm,
|
|
403
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
404
|
+
);
|
|
395
405
|
} else if ("host" in styleContainerNode) {
|
|
396
406
|
if (supportsConstructableStylesheets) {
|
|
397
407
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -441,16 +451,18 @@ var attachStyles = (hostRef) => {
|
|
|
441
451
|
endAttachStyles();
|
|
442
452
|
};
|
|
443
453
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
444
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
454
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
445
455
|
if (oldValue !== newValue) {
|
|
446
456
|
let isProp = isMemberInElement(elm, memberName);
|
|
447
457
|
let ln = memberName.toLowerCase();
|
|
448
458
|
if (memberName === "class") {
|
|
449
459
|
const classList = elm.classList;
|
|
450
460
|
const oldClasses = parseClassList(oldValue);
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
461
|
+
let newClasses = parseClassList(newValue);
|
|
462
|
+
{
|
|
463
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
464
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
465
|
+
}
|
|
454
466
|
} else if (memberName === "style") {
|
|
455
467
|
{
|
|
456
468
|
for (const prop in oldValue) {
|
|
@@ -509,7 +521,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
509
521
|
elm.setAttribute(memberName, n);
|
|
510
522
|
}
|
|
511
523
|
}
|
|
512
|
-
} else {
|
|
524
|
+
} else if (elm[memberName] !== newValue) {
|
|
513
525
|
elm[memberName] = newValue;
|
|
514
526
|
}
|
|
515
527
|
} catch (e) {
|
|
@@ -542,24 +554,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
542
554
|
}
|
|
543
555
|
};
|
|
544
556
|
var parseClassListRegex = /\s/;
|
|
545
|
-
var parseClassList = (value) =>
|
|
557
|
+
var parseClassList = (value) => {
|
|
558
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
559
|
+
value = value.baseVal;
|
|
560
|
+
}
|
|
561
|
+
if (!value || typeof value !== "string") {
|
|
562
|
+
return [];
|
|
563
|
+
}
|
|
564
|
+
return value.split(parseClassListRegex);
|
|
565
|
+
};
|
|
546
566
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
547
567
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
548
568
|
|
|
549
569
|
// src/runtime/vdom/update-element.ts
|
|
550
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
570
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
551
571
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
552
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
553
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
572
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
573
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
554
574
|
{
|
|
555
575
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
556
576
|
if (!(memberName in newVnodeAttrs)) {
|
|
557
|
-
setAccessor(
|
|
577
|
+
setAccessor(
|
|
578
|
+
elm,
|
|
579
|
+
memberName,
|
|
580
|
+
oldVnodeAttrs[memberName],
|
|
581
|
+
void 0,
|
|
582
|
+
isSvgMode2,
|
|
583
|
+
newVnode.$flags$);
|
|
558
584
|
}
|
|
559
585
|
}
|
|
560
586
|
}
|
|
561
587
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
562
|
-
setAccessor(
|
|
588
|
+
setAccessor(
|
|
589
|
+
elm,
|
|
590
|
+
memberName,
|
|
591
|
+
oldVnodeAttrs[memberName],
|
|
592
|
+
newVnodeAttrs[memberName],
|
|
593
|
+
isSvgMode2,
|
|
594
|
+
newVnode.$flags$);
|
|
563
595
|
}
|
|
564
596
|
};
|
|
565
597
|
function sortedAttrNames(attrNames) {
|
|
@@ -571,13 +603,10 @@ function sortedAttrNames(attrNames) {
|
|
|
571
603
|
attrNames
|
|
572
604
|
);
|
|
573
605
|
}
|
|
574
|
-
|
|
575
|
-
// src/runtime/vdom/vdom-render.ts
|
|
576
|
-
var scopeId;
|
|
577
606
|
var hostTagName;
|
|
578
607
|
var useNativeShadowDom = false;
|
|
579
608
|
var isSvgMode = false;
|
|
580
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
609
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
581
610
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
582
611
|
let i2 = 0;
|
|
583
612
|
let elm;
|
|
@@ -598,11 +627,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
598
627
|
{
|
|
599
628
|
updateElement(null, newVNode2, isSvgMode);
|
|
600
629
|
}
|
|
601
|
-
const rootNode = elm.getRootNode();
|
|
602
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
603
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
604
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
605
|
-
}
|
|
606
630
|
if (newVNode2.$children$) {
|
|
607
631
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
608
632
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -739,6 +763,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
739
763
|
if (!isInitialRender) {
|
|
740
764
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
741
765
|
}
|
|
766
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
767
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
768
|
+
}
|
|
742
769
|
return true;
|
|
743
770
|
}
|
|
744
771
|
return false;
|
|
@@ -785,8 +812,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
785
812
|
}
|
|
786
813
|
};
|
|
787
814
|
var insertBefore = (parent, newNode, reference) => {
|
|
788
|
-
|
|
789
|
-
|
|
815
|
+
{
|
|
816
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
817
|
+
}
|
|
790
818
|
};
|
|
791
819
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
792
820
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -811,9 +839,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
811
839
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
812
840
|
hostRef.$vnode$ = rootVnode;
|
|
813
841
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
814
|
-
{
|
|
815
|
-
scopeId = hostElm["s-sc"];
|
|
816
|
-
}
|
|
817
842
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
818
843
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
819
844
|
};
|
|
@@ -821,7 +846,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
821
846
|
// src/runtime/update-component.ts
|
|
822
847
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
823
848
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
824
|
-
ancestorComponent["s-p"].push(
|
|
849
|
+
const index = ancestorComponent["s-p"].push(
|
|
850
|
+
new Promise(
|
|
851
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
852
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
853
|
+
r();
|
|
854
|
+
}
|
|
855
|
+
)
|
|
856
|
+
);
|
|
825
857
|
}
|
|
826
858
|
};
|
|
827
859
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -850,12 +882,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
850
882
|
{
|
|
851
883
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
852
884
|
if (hostRef.$queuedListeners$) {
|
|
853
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
885
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
854
886
|
hostRef.$queuedListeners$ = void 0;
|
|
855
887
|
}
|
|
856
888
|
}
|
|
857
889
|
{
|
|
858
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
890
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
859
891
|
}
|
|
860
892
|
}
|
|
861
893
|
endSchedule();
|
|
@@ -924,7 +956,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
924
956
|
const instance = hostRef.$lazyInstance$ ;
|
|
925
957
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
926
958
|
{
|
|
927
|
-
safeCall(instance, "componentDidRender");
|
|
959
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
928
960
|
}
|
|
929
961
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
930
962
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -958,12 +990,12 @@ var appDidLoad = (who) => {
|
|
|
958
990
|
}
|
|
959
991
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
960
992
|
};
|
|
961
|
-
var safeCall = (instance, method, arg) => {
|
|
993
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
962
994
|
if (instance && instance[method]) {
|
|
963
995
|
try {
|
|
964
996
|
return instance[method](arg);
|
|
965
997
|
} catch (e) {
|
|
966
|
-
consoleError(e);
|
|
998
|
+
consoleError(e, elm);
|
|
967
999
|
}
|
|
968
1000
|
}
|
|
969
1001
|
return void 0;
|
|
@@ -1022,15 +1054,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1022
1054
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1023
1055
|
members.map(([memberName, [memberFlags]]) => {
|
|
1024
1056
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1057
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1058
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1059
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1060
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1061
|
+
Object.defineProperty(prototype, memberName, {
|
|
1062
|
+
get() {
|
|
1063
|
+
{
|
|
1064
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1065
|
+
return getValue(this, memberName);
|
|
1066
|
+
}
|
|
1067
|
+
const ref = getHostRef(this);
|
|
1068
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1069
|
+
if (!instance) return;
|
|
1070
|
+
return instance[memberName];
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
configurable: true,
|
|
1074
|
+
enumerable: true
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1025
1077
|
Object.defineProperty(prototype, memberName, {
|
|
1026
|
-
get() {
|
|
1027
|
-
return getValue(this, memberName);
|
|
1028
|
-
},
|
|
1029
1078
|
set(newValue) {
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1079
|
+
const ref = getHostRef(this);
|
|
1080
|
+
if (origSetter) {
|
|
1081
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1082
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1083
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1084
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1085
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1086
|
+
}
|
|
1087
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1088
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1089
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1090
|
+
return;
|
|
1091
|
+
}
|
|
1092
|
+
{
|
|
1093
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1094
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1095
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1096
|
+
ref.$onReadyPromise$.then(() => {
|
|
1097
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1098
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1099
|
+
}
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
return;
|
|
1103
|
+
}
|
|
1104
|
+
const setterSetVal = () => {
|
|
1105
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1106
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1107
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1108
|
+
}
|
|
1109
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1110
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1111
|
+
};
|
|
1112
|
+
if (ref.$lazyInstance$) {
|
|
1113
|
+
setterSetVal();
|
|
1114
|
+
} else {
|
|
1115
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1034
1119
|
});
|
|
1035
1120
|
}
|
|
1036
1121
|
});
|
|
@@ -1040,7 +1125,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1040
1125
|
plt.jmp(() => {
|
|
1041
1126
|
var _a2;
|
|
1042
1127
|
const propName = attrNameToPropName.get(attrName);
|
|
1043
|
-
if (this.hasOwnProperty(propName)) {
|
|
1128
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1044
1129
|
newValue = this[propName];
|
|
1045
1130
|
delete this[propName];
|
|
1046
1131
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1060,7 +1145,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1060
1145
|
}
|
|
1061
1146
|
return;
|
|
1062
1147
|
}
|
|
1063
|
-
|
|
1148
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1149
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1150
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1151
|
+
this[propName] = newValue;
|
|
1152
|
+
}
|
|
1064
1153
|
});
|
|
1065
1154
|
};
|
|
1066
1155
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1087,9 +1176,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1087
1176
|
let Cstr;
|
|
1088
1177
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1089
1178
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1179
|
+
{
|
|
1180
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1093
1181
|
if (CstrImport && "then" in CstrImport) {
|
|
1094
1182
|
const endLoad = uniqueTime();
|
|
1095
1183
|
Cstr = await CstrImport;
|
|
@@ -1114,7 +1202,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1114
1202
|
try {
|
|
1115
1203
|
new Cstr(hostRef);
|
|
1116
1204
|
} catch (e) {
|
|
1117
|
-
consoleError(e);
|
|
1205
|
+
consoleError(e, elm);
|
|
1118
1206
|
}
|
|
1119
1207
|
{
|
|
1120
1208
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1123,10 +1211,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1123
1211
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1124
1212
|
}
|
|
1125
1213
|
endNewInstance();
|
|
1126
|
-
} else {
|
|
1127
|
-
Cstr = elm.constructor;
|
|
1128
|
-
const cmpTag = elm.localName;
|
|
1129
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1130
1214
|
}
|
|
1131
1215
|
if (Cstr && Cstr.style) {
|
|
1132
1216
|
let style;
|
|
@@ -1149,7 +1233,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1149
1233
|
schedule();
|
|
1150
1234
|
}
|
|
1151
1235
|
};
|
|
1152
|
-
var fireConnectedCallback = (instance) => {
|
|
1236
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1153
1237
|
};
|
|
1154
1238
|
|
|
1155
1239
|
// src/runtime/connected-callback.ts
|
|
@@ -1190,7 +1274,7 @@ var connectedCallback = (elm) => {
|
|
|
1190
1274
|
endConnected();
|
|
1191
1275
|
}
|
|
1192
1276
|
};
|
|
1193
|
-
var disconnectInstance = (instance) => {
|
|
1277
|
+
var disconnectInstance = (instance, elm) => {
|
|
1194
1278
|
};
|
|
1195
1279
|
var disconnectedCallback = async (elm) => {
|
|
1196
1280
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1205,6 +1289,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1205
1289
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1206
1290
|
}
|
|
1207
1291
|
}
|
|
1292
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1293
|
+
rootAppliedStyles.delete(elm);
|
|
1294
|
+
}
|
|
1295
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1296
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1297
|
+
}
|
|
1208
1298
|
};
|
|
1209
1299
|
|
|
1210
1300
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1289,6 +1379,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1289
1379
|
}
|
|
1290
1380
|
disconnectedCallback() {
|
|
1291
1381
|
plt.jmp(() => disconnectedCallback(this));
|
|
1382
|
+
plt.raf(() => {
|
|
1383
|
+
var _a3;
|
|
1384
|
+
const hostRef = getHostRef(this);
|
|
1385
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1386
|
+
delete hostRef.$vnode$.$elm$;
|
|
1387
|
+
}
|
|
1388
|
+
});
|
|
1292
1389
|
}
|
|
1293
1390
|
componentOnReady() {
|
|
1294
1391
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1352,7 +1449,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1352
1449
|
}
|
|
1353
1450
|
}
|
|
1354
1451
|
} catch (e) {
|
|
1355
|
-
consoleError(e);
|
|
1452
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1356
1453
|
}
|
|
1357
1454
|
};
|
|
1358
1455
|
var getHostListenerTarget = (elm, flags) => {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-fc58390d.js';
|
|
2
|
+
export { s as setNonce } from './index-fc58390d.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, g as getAssetPath, H as Host, a as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, g as getAssetPath, H as Host, a as getElement } from './index-fc58390d.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_TRANSLATIONS = {
|
|
4
4
|
"en": {
|
|
@@ -188,21 +188,26 @@ const UserTransactionHistory = class {
|
|
|
188
188
|
this.pageSizes = [10, 25, 50];
|
|
189
189
|
this.pagination = null;
|
|
190
190
|
this.stylingAppended = false;
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
/*
|
|
192
|
+
* Language of the application.
|
|
193
|
+
*/
|
|
193
194
|
this.language = Localization.defaultLanguage;
|
|
194
|
-
|
|
195
|
-
|
|
195
|
+
/*
|
|
196
|
+
* Is mobile mode on. Default value `false`.
|
|
197
|
+
*/
|
|
196
198
|
this.mobile = false;
|
|
199
|
+
/*
|
|
200
|
+
* Client styling via inline styles.
|
|
201
|
+
*/
|
|
197
202
|
this.clientStyling = null;
|
|
203
|
+
/*
|
|
204
|
+
* The path to file with styles in `css` format.
|
|
205
|
+
*/
|
|
198
206
|
this.clientStylingUrl = null;
|
|
199
207
|
this.page = 0;
|
|
200
208
|
this.pageSize = this.pageSizes[0];
|
|
201
209
|
this.showMobileFilter = false;
|
|
202
|
-
this.to = undefined;
|
|
203
|
-
this.from = undefined;
|
|
204
210
|
this.type = '0';
|
|
205
|
-
this.transactions = undefined;
|
|
206
211
|
this.showLoader = true;
|
|
207
212
|
}
|
|
208
213
|
watchMultiple() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-fc58390d.js';
|
|
2
|
+
export { s as setNonce } from './index-fc58390d.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=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={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},d=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=!1,v=[],y=[],w=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&h.o?g(b):h.raf(b))},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},b=()=>{$(v),$(y),(m=v.length>0)&&h.raf(b)},g=t=>d().then(t),S=w(y,!0),j=t=>{const e=new URL(t,h.l);return e.origin!==a.location.origin?e.href:e.pathname},O=t=>"object"==(t=typeof t)||"function"===t;function k(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>x,map:()=>C,ok:()=>E,unwrap:()=>P,unwrapErr:()=>R});var E=t=>({isOk:!0,isErr:!1,value:t}),x=t=>({isOk:!1,isErr:!0,value:t});function C(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>E(t))):E(n)}if(t.isErr)return x(t.value);throw"should never get here"}var M,P=t=>{if(t.isOk)return t.value;throw t.value},R=t=>{if(t.isErr)return t.value;throw t.value},A=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!O(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?H(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,r,L);const u=H(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},H=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),D={},L={forEach:(t,e)=>t.map(N).forEach(e),map:(t,e)=>t.map(N).map(e).map(T)},N=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.$,vtag:t.m,vtext:t.i}),T=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),A(t.vtag,e,...t.vchildren||[])}const e=H(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.$=t.vname,e},U=(t,e)=>null==t||O(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t,W=t=>n(t).$hostElement$,F=new WeakMap,V=t=>"sc-"+t.S,q=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=_(n);let s=_(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(r||"o"!==e[0]||"n"!==e[1]){const l=O(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,a=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(a?t.removeAttributeNS(u,e):t.removeAttribute(e)):(!r||4&i||s)&&!l&&(o=!0===o?"":o,a?t.setAttributeNS(u,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):l(a,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(z);e=e.replace(B,""),n&&h.rel(t,e,n,l),o&&h.ael(t,e,o,l)}}},G=/\s/,_=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(G):[]),z="Capture",B=RegExp(z+"$"),I=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of J(Object.keys(l)))t in s||q(o,t,l[t],void 0,n,e.o);for(const t of J(Object.keys(s)))q(o,t,l[t],s[t],n,e.o)};function J(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var K=!1,Q=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(K||(K="svg"===o.m),l=o.v=f.createElementNS(K?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),K&&"foreignObject"===o.m&&(K=!1),I(null,o,K),o.h)for(i=0;i<o.h.length;++i)s=Q(t,o,i),s&&l.appendChild(s);"svg"===o.m?K=!1:"foreignObject"===l.tagName&&(K=!0)}return l["s-hn"]=M,l},X=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=Q(null,n,l),i&&(o[l].v=i,nt(r,i,e)))},Y=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;et(e),t&&t.remove()}}},Z=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),tt=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m,r=e.i;null===r?(I(t,e,K="svg"===i||"foreignObject"!==i&&K),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,h=e[0],d=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(Z(h,m,l))tt(h,m,l),h=e[++r],m=o[++c];else if(Z(d,v,l))tt(d,v,l),d=e[--f],v=o[--p];else if(Z(h,v,l))tt(h,v,l),nt(t,h.v,d.v.nextSibling),h=e[++r],v=o[--p];else if(Z(d,m,l))tt(d,m,l),nt(t,d.v,h.v),d=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=Q(e&&e[c],n,u):(tt(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=Q(e&&e[c],n,c),m=o[++c]),s&&nt(h.v.parentNode,s,h.v)}r>f?X(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&Y(e,r,f)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),X(o,null,e,s,0,s.length-1)):!n&&null!==l&&Y(l,0,l.length-1),K&&"svg"===i&&(K=!1)):t.i!==r&&(o.data=r)},et=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(et)},nt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),ot=(t,e)=>{if(e&&!t.j&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.j=()=>{e["s-p"].splice(n-1,1),o()})))}},lt=(t,e)=>{if(t.o|=16,!(4&t.o))return ot(t,t.O),S((()=>st(t,e)));t.o|=512},st=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.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 e&&(t.o|=256,t.k&&(t.k.map((([t,e])=>ht(o,t,e,n))),t.k=void 0),l=ht(o,"componentWillLoad",void 0,n)),it(l,(()=>ct(t,o,e)))},it=(t,e)=>rt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),rt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,ct=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.C,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=V(e),l=r.get(o);if(t=11===t.nodeType?t:f,l)if("string"==typeof l){let s,i=F.get(t=t.head||t);if(i||F.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=h.M)?n:k(f);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(p){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);ut(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>at(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},ut=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.C,s=t.P||H(null,null),i=(t=>t&&t.m===D)(e)?e:A(null,null,e);if(M=o.tagName,l.R&&(i.u=i.u||{},l.R.map((([t,e])=>i.u[e]=o[t]))),n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.P=i,i.v=s.v=o.shadowRoot||o,tt(s,i,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},at=t=>{const e=t.$hostElement$,n=t.O;ht(t.t,"componentDidRender",void 0,e),64&t.o||(t.o|=64,dt(e),t.A(e),n||ft()),t.j&&(t.j(),t.j=void 0),512&t.o&&g((()=>lt(t,!1))),t.o&=-517},ft=()=>{dt(f.documentElement),g((()=>(t=>{const e=h.ce("appload",{detail:{namespace:"user-transaction-history"}});return t.dispatchEvent(e),e})(a)))},ht=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},dt=t=>t.classList.add("hydrated"),pt=(t,e,o,l)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${l.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 r=i.$hostElement$,c=i.H.get(e),u=i.o,a=i.t;if(o=U(o,l.D[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.H.set(e,o),a)){if(l.L&&128&u){const t=l.L[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){s(t,r)}}))}2==(18&u)&<(i,!1)}},mt=(t,e,o)=>{var l,s;const i=t.prototype;if(e.D||e.L||t.watchers){t.watchers&&!e.L&&(e.L=t.watchers);const r=Object.entries(null!=(l=e.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.D[t][0]|=2048),r&&(e.D[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.D[t][0]))return((t,e)=>n(this).H.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.H.get(t)?s=i.H.get(t):!i.H.get(t)&&n&&i.H.set(t,n),r.call(this,U(s,l)),void pt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.D[t][0]))return pt(this,t,s,e),void(1&o&&!i.t&&i.N.then((()=>{4096&e.D[t][0]&&i.t[t]!==i.H.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.H.get(t)&&n&&i.H.set(t,n),i.t[t]=U(s,l),pt(this,t,i.t[t],e)};i.t?n():i.N.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){h.jmp((()=>{var r;const c=o.get(t);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 o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.L)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.L)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.R)||l.push([t,s])),s}))]))}}return t},vt=(t,o={})=>{var l;const u=[],d=o.exclude||[],m=a.customElements,v=f.head,y=v.querySelector("meta[charset]"),w=f.createElement("style"),$=[];let b,g=!0;Object.assign(h,o),h.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],S:o[1],D:o[2],T:o[3]};4&c.o&&(S=!0),c.D=o[2],c.T=o[3],c.R=[],c.L=null!=(l=o[4])?l:{};const a=c.S,f=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,C:n,H:new Map};o.N=new Promise((t=>o.A=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,yt(this,t,c.T)),b&&(clearTimeout(b),b=null),g?$.push(this):h.jmp((()=>(t=>{if(!(1&h.o)){const e=n(t),o=e.C,l=()=>{};if(1&e.o)yt(t,e,o.T),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){ot(e,e.O=n);break}}o.D&&Object.entries(o.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){e.o|=32;{const l=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.U;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.S}#${e.W}" was not found`);o.isProxied||(n.L=o.watchers,mt(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,e.o|=128,r()}if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=V(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.O,c=()=>lt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){h.jmp((()=>(async t=>{if(!(1&h.o)){const e=n(t);e.F&&(e.F.map((t=>t())),e.F=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}F.has(t)&&F.delete(t),t.shadowRoot&&F.has(t.shadowRoot)&&F.delete(t.shadowRoot)})(this))),h.raf((()=>{var t;const e=n(this);(null==(t=null==e?void 0:e.P)?void 0:t.v)instanceof Node&&!e.P.v.isConnected&&delete e.P.v}))}componentOnReady(){return n(this).N}};c.U=t[0],d.includes(a)||m.get(a)||(u.push(a),m.define(a,mt(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 t=null!=(l=h.M)?l:k(f);null!=t&&w.setAttribute("nonce",t),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):h.jmp((()=>b=setTimeout(ft,30)))},yt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=$t(t,n),i=wt(e,l),r=bt(n);h.ael(s,o,i,r),(e.F=e.F||[]).push((()=>h.rel(s,o,i,r)))}))},wt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.k=t.k||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},$t=(t,e)=>8&e?a:t,bt=t=>({passive:!!(1&t),capture:!!(2&t)}),gt=t=>h.M=t;export{D as H,W as a,vt as b,j as g,A as h,d as p,o as r,gt as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as e,g as a,H as o,a as i}from"./p-76051e8b.js";class n{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 a=await e.json();n.updateTranslations(a)}catch(e){console.error(`Failed to load translations ${t}. ${e.message}`)}}static translate(t,e){var a,o;const i=n.getAvaliableLanguages(e);return(null===(o=null===(a=n.customTranslation)||void 0===a?void 0:a[i.customLanguage])||void 0===o?void 0:o[t])||n.defaultTranslation[i.predefinedLanguage][t]}static getAvaliableLanguages(t){var e;const a=(null===(e=n.customLanguages)||void 0===e?void 0:e.includes(t))?t:n.defaultLanguage;return{predefinedLanguage:n.supportedLanguages.includes(t)?t:n.defaultLanguage,customLanguage:a}}static updateTranslations(t){n.customLanguages=Array.from(new Set([...n.supportedLanguages,...Object.keys(t).map((t=>t.toLowerCase()))])),n.customTranslation=t}}n.defaultLanguage="en",n.supportedLanguages=["en"],n.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"},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"}};const r=()=>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));class s{constructor(){}static dateToFormatedString(t){return`${t.toLocaleDateString("en-gb")}, ${t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}`}}class l{constructor(){}static format(t,e){let a=`${e} ${t}`;try{a=new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e)}catch(t){}return a}}const d=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," | ",s.dateToFormatedString(new Date(e.created))),t("p",{class:"text-style"},l.format(e.currency,e.realAmount)," ")),c=e=>t("div",{class:"page-size"},t("span",null,n.translate("show",e.language)),e.pageSizes.map((a=>t("button",{class:e.currentPageSize===a?"active":"",onClick:()=>e.changePageSize(a)},a)))),h=({from:e,to:a,applyFilters:o,language:i})=>{let r,s;return t("div",{class:"period"},t("div",{class:"period-content"},t("div",{class:"date-input"},t("vaadin-date-picker",{value:e,ref:t=>r=t,label:n.translate("from",i),onChange:()=>{e=r.value}})),t("span",null,t("svg",{width:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t("path",{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",{class:"date-input"},t("vaadin-date-picker",{value:a,ref:t=>s=t,label:n.translate("to",i),onChange:()=>{a=s.value}})),t("button",{class:"filter-btn",onClick:()=>o(e,a)},n.translate("filter",i))))},p=({source:e,language:a})=>{const o=[{name:n.translate("transactionId",a)},{name:n.translate("date",a)},{name:n.translate("amount",a)},{name:n.translate("productType",a)},{name:n.translate("status",a)}];return t("table",null,t("thead",null,t("tr",null,o.map((e=>t("th",null,e.name))))),t("tbody",null,e.map((e=>t("tr",null,t("td",null,e.transId),t("td",null,s.dateToFormatedString(new Date(e.created))),t("td",null,l.format(e.currency,e.realAmount)," "),t("td",null,e.productType),t("td",null,t("span",{class:e.status.toLowerCase()},e.status)))))))},u=class{constructor(t){e(this,t),this.pageSizes=[10,25,50],this.pagination=null,this.stylingAppended=!1,this.language=n.defaultLanguage,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.type="0",this.showLoader=!0}watchMultiple(){this.loadTransactions()}async componentWillLoad(){this.translationUrl&&await n.loadCustomTranslations(this.translationUrl),this.loadTransactions()}componentDidRender(){this.getComponentHeight(),!this.stylingAppended&&this.stylingContainer&&(this.clientStyling&&this.setStyles(this.clientStyling),this.clientStylingUrl&&this.setClientStylingByURL(),this.stylingAppended=!0)}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?new Date(t).toISOString():null,this.to=e?new Date(e).toISOString():null,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}render(){var e;const i=a("../assets/filter.svg"),s=a("../assets/warning.svg");return t(o,{key:"c850ba36433277706247f4b7c0c08b0ae0fb8c76"},this.showLoader?t(r,null):"",t("div",{key:"20b817b5c9cf14e8af0db2ba417d09e21b6921d7",class:"wrapper",ref:t=>this.stylingContainer=t},t("div",{key:"3943f4ab79cb0e72083821b424000f96779e78a5",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},t("button",{key:"d1f3dfc1f4fc7013bd81c92663f578129f63c0e7",class:"transaction-type "+("0"===this.type?"clicked":""),onClick:()=>this.changeTransactionsType("0")},n.translate("deposit",this.language)),t("button",{key:"46989070ef6703fdf7c8c7ac6628e9dce731fec6",class:"transaction-type "+("1"===this.type?"clicked":""),onClick:()=>this.changeTransactionsType("1")},n.translate("withdrawals",this.language))),this.mobile?"":t(c,{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:i,alt:"Filter"}),n.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?t(h,{language:this.language,applyFilters:(t,e)=>this.applyFilters(t,e)}):"",(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(d,Object.assign({},e))))):t(p,{source:this.transactions,language:this.language})):t("div",{class:"noData"},t("img",{src:s,alt:"Warning"}),t("span",null,n.translate("noData",this.language))),t("div",{key:"50710657788295389a20d59e0092dd033e428268",class:"pagination"},t("button",{key:"cd29c880eab413a06666dc12c8df38d3ffdcfe2f",onClick:()=>this.prev()},"<"),t("button",{key:"df351ecd4237433a8ab38766669ac48d2548ed6a",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 a=await e.json();this.pagination=a.pagination,this.transactions=a.transactions}catch(t){console.error(t)}finally{this.showLoader=!1}}getParams(){var t,e;const a=new Date,o=(this.page*this.pageSize).toString(),i=null!==(t=this.from)&&void 0!==t?t:new Date(a.getFullYear(),a.getMonth(),1).toISOString();return`offset=${o}&endDate=${null!==(e=this.to)&&void 0!==e?e:new Date(a.getFullYear(),a.getMonth()+1,0).toISOString()}&startDate=${i}&type=${this.type}&limit=${this.pageSize}`}setStyles(t){const e=document.createElement("style");e.innerHTML=t,this.stylingContainer.prepend(e)}async setClientStylingByURL(){try{const t=await fetch(this.clientStylingUrl);if(!t.ok){const e=await t.text();throw new Error(e)}const e=await t.text();this.setStyles(e)}catch(t){console.error(`Failed to load client styles ${this.clientStylingUrl}`,t)}}static get assetsDirs(){return["../assets"]}get el(){return i(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],showMobileFilter:["getComponentHeight"]}}};u.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%}}';export{u as user_transaction_history}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,b as t}from"./p-76051e8b.js";export{s as setNonce}from"./p-76051e8b.js";import{g as i}from"./p-e1255160.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((async e=>(await i(),t([["p-ef0d053d",[[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"],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"],showMobileFilter:["getComponentHeight"]}]]]],e))));
|
package/package.json
CHANGED