@everymatrix/pam-account-balance-modal 0.1.0
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-f01eba32.js +1227 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/pam-account-balance-modal-81ade12d.js +1704 -0
- package/dist/cjs/pam-account-balance-modal.cjs.js +25 -0
- package/dist/cjs/pam-account-balance-modal_2.cjs.entry.js +175 -0
- package/dist/collection/collection-manifest.json +19 -0
- package/dist/collection/components/pam-account-balance-modal/index.js +1 -0
- package/dist/collection/components/pam-account-balance-modal/pam-account-balance-modal.css +217 -0
- package/dist/collection/components/pam-account-balance-modal/pam-account-balance-modal.interface.js +1 -0
- package/dist/collection/components/pam-account-balance-modal/pam-account-balance-modal.js +635 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +227 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-ee727666.js +1200 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/pam-account-balance-modal-8ebcc863.js +1702 -0
- package/dist/esm/pam-account-balance-modal.js +20 -0
- package/dist/esm/pam-account-balance-modal_2.entry.js +170 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/pam-account-balance-modal/index.esm.js +1 -0
- package/dist/pam-account-balance-modal/p-86b371f2.js +2 -0
- package/dist/pam-account-balance-modal/p-b60c42bd.js +7 -0
- package/dist/pam-account-balance-modal/p-d74c687e.entry.js +1 -0
- package/dist/pam-account-balance-modal/p-e1255160.js +1 -0
- package/dist/pam-account-balance-modal/pam-account-balance-modal.esm.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +18 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/packages/stencil/pam-account-balance-modal/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/packages/stencil/pam-account-balance-modal/stencil.config.dev.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/packages/stencil/pam-account-balance-modal/storybook/main.d.ts +3 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/packages/stencil/pam-account-balance-modal/storybook/preview.d.ts +70 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/tools/plugins/index.d.ts +3 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/pam-account-balance-modal/index.d.ts +1 -0
- package/dist/types/components/pam-account-balance-modal/pam-account-balance-modal.d.ts +52 -0
- package/dist/types/components/pam-account-balance-modal/pam-account-balance-modal.interface.d.ts +10 -0
- package/dist/types/components.d.ts +65 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +31 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +27 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-ee727666.js';
|
2
|
+
export { s as setNonce } from './index-ee727666.js';
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
|
+
|
5
|
+
/*
|
6
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
7
|
+
*/
|
8
|
+
var patchBrowser = () => {
|
9
|
+
const importMeta = import.meta.url;
|
10
|
+
const opts = {};
|
11
|
+
if (importMeta !== "") {
|
12
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
13
|
+
}
|
14
|
+
return promiseResolve(opts);
|
15
|
+
};
|
16
|
+
|
17
|
+
patchBrowser().then(async (options) => {
|
18
|
+
await globalScripts();
|
19
|
+
return bootstrapLazy([["pam-account-balance-modal_2",[[1,"pam-account-balance-modal",{"userId":[513,"user-id"],"session":[513],"endpoint":[513],"customLocaleIdentifier":[513,"custom-locale-identifier"],"displayBalanceOption":[513,"display-balance-option"],"totalCalculationMode":[513,"total-calculation-mode"],"currencySeparator":[513,"currency-separator"],"currencyDecimal":[513,"currency-decimal"],"currencyPrecision":[513,"currency-precision"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isModalDisplayed":[32],"isSplitWallet":[32],"currentStream":[32],"currency":[32],"updateRealAmountState":[32],"balances":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[2,"border-radius"],"marginBottom":[2,"margin-bottom"],"marginTop":[2,"margin-top"],"marginLeft":[2,"margin-left"],"marginRight":[2,"margin-right"],"animation":[4],"rows":[2],"size":[1],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"]}]]]], options);
|
20
|
+
});
|
@@ -0,0 +1,170 @@
|
|
1
|
+
export { P as pam_account_balance_modal } from './pam-account-balance-modal-8ebcc863.js';
|
2
|
+
import { r as registerInstance, h, H as Host } from './index-ee727666.js';
|
3
|
+
|
4
|
+
const uiSkeletonCss = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";
|
5
|
+
const UiSkeletonStyle0 = uiSkeletonCss;
|
6
|
+
|
7
|
+
const UiSkeleton = class {
|
8
|
+
constructor(hostRef) {
|
9
|
+
registerInstance(this, hostRef);
|
10
|
+
this.structure = undefined;
|
11
|
+
this.width = undefined;
|
12
|
+
this.height = undefined;
|
13
|
+
this.borderRadius = undefined;
|
14
|
+
this.marginBottom = undefined;
|
15
|
+
this.marginTop = undefined;
|
16
|
+
this.marginLeft = undefined;
|
17
|
+
this.marginRight = undefined;
|
18
|
+
this.animation = true;
|
19
|
+
this.rows = undefined;
|
20
|
+
this.size = undefined;
|
21
|
+
this.color = undefined;
|
22
|
+
this.primaryColor = undefined;
|
23
|
+
this.secondaryColor = undefined;
|
24
|
+
}
|
25
|
+
handleStructureChange(newValue, oldValue) {
|
26
|
+
if (oldValue !== newValue) {
|
27
|
+
this.handleStructure(newValue);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
handleStructure(structure) {
|
31
|
+
switch (structure) {
|
32
|
+
case 'logo':
|
33
|
+
return this.renderLogo();
|
34
|
+
case 'image':
|
35
|
+
return this.renderImage();
|
36
|
+
case 'title':
|
37
|
+
return this.renderTitle();
|
38
|
+
case 'text':
|
39
|
+
return this.renderText();
|
40
|
+
case 'rectangle':
|
41
|
+
return this.renderRectangle();
|
42
|
+
case 'circle':
|
43
|
+
return this.renderCircle();
|
44
|
+
default:
|
45
|
+
return null;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
renderLogo() {
|
49
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: "Logo " + (this.animation ? 'Skeleton' : '') })));
|
50
|
+
}
|
51
|
+
renderImage() {
|
52
|
+
return (h("div", { class: "Image " + (this.animation ? 'Skeleton' : '') }));
|
53
|
+
}
|
54
|
+
renderTitle() {
|
55
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: "Title " + (this.animation ? 'Skeleton' : '') })));
|
56
|
+
}
|
57
|
+
renderText() {
|
58
|
+
return (h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { key: index, class: "Text " + (this.animation ? 'Skeleton' : '') })))));
|
59
|
+
}
|
60
|
+
renderRectangle() {
|
61
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: "Rectangle " + (this.animation ? 'Skeleton' : '') })));
|
62
|
+
}
|
63
|
+
renderCircle() {
|
64
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: "Circle " + (this.animation ? 'Skeleton' : '') })));
|
65
|
+
}
|
66
|
+
render() {
|
67
|
+
let styleBlock = '';
|
68
|
+
switch (this.structure) {
|
69
|
+
case 'logo':
|
70
|
+
styleBlock = `
|
71
|
+
:host {
|
72
|
+
--emw-skeleton-logo-width: ${this.width};
|
73
|
+
--emw-skeleton-logo-height: ${this.height};
|
74
|
+
--emw-skeleton-logo-border-radius: ${this.borderRadius}px;
|
75
|
+
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
|
76
|
+
--emw-skeleton-logo-margin-top: ${this.marginTop}px;
|
77
|
+
--emw-skeleton-logo-margin-left: ${this.marginLeft}px;
|
78
|
+
--emw-skeleton-logo-margin-right: ${this.marginRight}px;
|
79
|
+
--emw-skeleton-logo-background: ${this.color};
|
80
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
81
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
82
|
+
}
|
83
|
+
`;
|
84
|
+
break;
|
85
|
+
case 'image':
|
86
|
+
styleBlock = `
|
87
|
+
:host {
|
88
|
+
--emw-skeleton-image-width: ${this.width};
|
89
|
+
--emw-skeleton-image-height: ${this.height};
|
90
|
+
--emw-skeleton-image-border-radius: ${this.borderRadius}px;
|
91
|
+
--emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
|
92
|
+
--emw-skeleton-image-margin-top: ${this.marginTop}px;
|
93
|
+
--emw-skeleton-image-margin-left: ${this.marginLeft}px;
|
94
|
+
--emw-skeleton-image-margin-right: ${this.marginRight}px;
|
95
|
+
--emw-skeleton-image-background: ${this.color};
|
96
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
97
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
98
|
+
}
|
99
|
+
`;
|
100
|
+
break;
|
101
|
+
case 'title':
|
102
|
+
styleBlock = `
|
103
|
+
:host {
|
104
|
+
--emw-skeleton-title-width: ${this.width};
|
105
|
+
--emw-skeleton-title-height: ${this.height};
|
106
|
+
--emw-skeleton-title-border-radius: ${this.borderRadius}px;
|
107
|
+
--emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
|
108
|
+
--emw-skeleton-title-margin-top: ${this.marginTop}px;
|
109
|
+
--emw-skeleton-title-margin-left: ${this.marginLeft}px;
|
110
|
+
--emw-skeleton-title-margin-right: ${this.marginRight}px;
|
111
|
+
--emw-skeleton-title-background: ${this.color};
|
112
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
113
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
114
|
+
}
|
115
|
+
`;
|
116
|
+
break;
|
117
|
+
case 'text':
|
118
|
+
styleBlock = `
|
119
|
+
:host {
|
120
|
+
--emw-skeleton-text-width: ${this.width};
|
121
|
+
--emw-skeleton-text-height: ${this.height};
|
122
|
+
--emw-skeleton-text-border-radius: ${this.borderRadius}px;
|
123
|
+
--emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
|
124
|
+
--emw-skeleton-text-margin-top: ${this.marginTop}px;
|
125
|
+
--emw-skeleton-text-margin-left: ${this.marginLeft}px;
|
126
|
+
--emw-skeleton-text-margin-right: ${this.marginRight}px;
|
127
|
+
--emw-skeleton-text-background: ${this.color};
|
128
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
129
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
130
|
+
}
|
131
|
+
`;
|
132
|
+
break;
|
133
|
+
case 'rectangle':
|
134
|
+
styleBlock = `
|
135
|
+
:host {
|
136
|
+
--emw-skeleton-rectangle-width: ${this.width};
|
137
|
+
--emw-skeleton-rectangle-height: ${this.height};
|
138
|
+
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
|
139
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
|
140
|
+
--emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
|
141
|
+
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
|
142
|
+
--emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
|
143
|
+
--emw-skeleton-rectangle-background: ${this.color};
|
144
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
145
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
146
|
+
}
|
147
|
+
`;
|
148
|
+
break;
|
149
|
+
case 'circle':
|
150
|
+
styleBlock = `
|
151
|
+
:host {
|
152
|
+
--emw-skeleton-circle-size: ${this.size};
|
153
|
+
--emw-skeleton-circle-background: ${this.color};
|
154
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
155
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
156
|
+
}
|
157
|
+
`;
|
158
|
+
break;
|
159
|
+
default:
|
160
|
+
styleBlock = '';
|
161
|
+
}
|
162
|
+
return (h(Host, { key: '3bb792a149db7fe732d5cbfa092cdb4d6ca0689e' }, h("style", { key: 'a4607599b60659f385ae2660513e38b383739674' }, styleBlock), this.handleStructure(this.structure)));
|
163
|
+
}
|
164
|
+
static get watchers() { return {
|
165
|
+
"structure": ["handleStructureChange"]
|
166
|
+
}; }
|
167
|
+
};
|
168
|
+
UiSkeleton.style = UiSkeletonStyle0;
|
169
|
+
|
170
|
+
export { UiSkeleton as ui_skeleton };
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './esm/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export{P as PamAccountBalanceModal}from"./p-b60c42bd.js";import"./p-86b371f2.js";
|
@@ -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="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={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)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],w=[],y=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?b(v):f.raf(v))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},v=()=>{$(d),$(w),(m=d.length>0)&&f.raf(v)},b=e=>h().then(e),g=y(w,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(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:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>L});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(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&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(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(" "))}}const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),A={},F=new WeakMap,H=e=>"sc-"+e.v,N=(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=W(n),s=W(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(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){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(D);t=t.replace(q,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},U=/\s/,W=e=>e?e.split(U):[],D="Capture",q=RegExp(D+"$"),G=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of V(Object.keys(o)))e in s||N(l,e,o[e],void 0,n,t.l);for(const e of V(Object.keys(s)))N(l,e,o[e],s[e],n,t.l)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else{if(_||(_="svg"===l.m),o=l.$=a.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),_&&"foreignObject"===l.m&&(_=!1),G(null,l,_),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=z(e,l,r),s&&o.appendChild(s);"svg"===l.m?_=!1:"foreignObject"===o.tagName&&(_=!0)}return o["s-hn"]=x,o},B=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=z(null,n,o),r&&(l[o].$=r,X(i,r,t)))},I=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),K=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(G(e,t,_="svg"===r||"foreignObject"!==r&&_),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],m=l.length-1,d=l[0],w=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==d)d=l[++c];else if(null==w)w=l[--m];else if(J(h,d,o))K(h,d,o),h=t[++i],d=l[++c];else if(J(p,w,o))K(p,w,o),p=t[--f],w=l[--m];else if(J(h,w,o))K(h,w,o),X(e,h.$,p.$.nextSibling),h=t[++i],w=l[--m];else if(J(p,d,o))K(p,d,o),X(e,p.$,h.$),p=t[--f],d=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===d.p){u=a;break}u>=0?(r=t[u],r.m!==d.m?s=z(t&&t[c],n,u):(K(r,d,o),t[u]=void 0,s=r.$),d=l[++c]):(s=z(t&&t[c],n,c),d=l[++c]),s&&X(h.$.parentNode,s,h.$)}i>f?B(e,null==l[m+1]?null:l[m+1].$,n,l,c,m):c>m&&I(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),B(l,null,t,s,0,s.length-1)):null!==o&&I(o,0,o.length-1),_&&"svg"===r&&(_=!1)):e.i!==i&&(l.data=i)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Z=(e,t)=>{if(e.l|=16,!(4&e.l))return Y(e,e.j),g((()=>ee(e,t)));e.l|=512},ee=(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&&(l=ie(n,"componentWillLoad")),te(l,(()=>le(e,n,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=H(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=F.get(e=e.head||e);if(r||F.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.O)?n:k(a);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);oe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},oe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,o.M&&(r.u=r.u||{},o.M.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.C=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],K(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,ce(t),ie(n,"componentDidLoad"),e.P(t),l||re()),e.S&&(e.S(),e.S=void 0),512&e.l&&b((()=>Z(e,!1))),e.l&=-517},re=()=>{ce(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"pam-account-balance-modal"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,l)=>{var o,r;const i=e.prototype;if(t.L||t.R||e.watchers){e.watchers&&!t.R&&(t.R=e.watchers);const c=Object.entries(null!=(o=t.L)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).T.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.v}" 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.T.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.L[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.T.set(t,l),a)){if(o.R&&128&u){const e=o.R[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&Z(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.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.R)?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.R)?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.M)||o.push([e,s])),s}))]))}}return e},ae=e=>{ie(e,"disconnectedCallback")},fe=(e,l={})=>{var o;const h=[],m=l.exclude||[],d=u.customElements,w=a.head,y=w.querySelector("meta[charset]"),$=a.createElement("style"),v=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],L:l[2],A:l[3]};4&c.l&&(S=!0),c.L=l[2],c.M=[],c.R=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,T:new Map};l.F=new Promise((e=>l.P=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.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?v.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.F)&&t.F.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}l.L&&Object.entries(l.L).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.H){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.H;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.v}#${t.N}" was not found`);l.isProxied||(n.R=l.watchers,ue(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=H(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&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.j,c=()=>Z(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)?ae(e.t):(null==e?void 0:e.F)&&e.F.then((()=>ae(e.t)))}})()))}componentOnReady(){return n(this).F}};c.H=e[0],m.includes(u)||d.get(u)||(h.push(u),d.define(u,ue(a,c,1)))}))})),h.length>0&&(S&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&$.setAttribute("nonce",e),w.insertBefore($,y?y.nextSibling:w.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(re,30)))},he=e=>f.O=e;export{A as H,fe as b,R as h,h as p,l as r,he as s}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import{r as t,h as a}from"./p-86b371f2.js";function n(t,a){if(t){const n=document.createElement("style");n.innerHTML=a,t.appendChild(n)}}function o(t,a){const n=new URL(a);fetch(n.href).then((t=>t.text())).then((a=>{const n=document.createElement("style");n.innerHTML=a,t&&t.appendChild(n)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function e(t,a){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(a,(a=>{n.innerHTML=a,t&&t.appendChild(n)}))}}var i,l,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={exports:{}};
|
2
|
+
/** @license
|
3
|
+
* eventsource.js
|
4
|
+
* Available under MIT License (MIT)
|
5
|
+
* https://github.com/Yaffle/EventSource/
|
6
|
+
*/
|
7
|
+
i=r,l=r.exports,function(t){var a=t.setTimeout,n=t.clearTimeout,o=t.XMLHttpRequest,e=t.XDomainRequest,s=t.ActiveXObject,r=t.EventSource,c=t.document,d=t.Promise,u=t.fetch,h=t.Response,p=t.TextDecoder,f=t.TextEncoder,B=t.AbortController;if("undefined"==typeof window||void 0===c||"readyState"in c||null!=c.body||(c.readyState="loading",window.addEventListener("load",(function(){c.readyState="complete"}),!1)),null==o&&null!=s&&(o=function(){return new s("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function a(){}return a.prototype=t,new a}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==B){var v=u;u=function(t,a){var n=a.signal;return v(t,{headers:a.headers,credentials:a.credentials,cache:a.cache}).then((function(t){var a=t.body.getReader();return n._reader=a,n._aborted&&n._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return a}}}}))},B=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function g(){this.bitsNeeded=0,this.codePoint=0}g.prototype.decode=function(t){function a(t,a,n){if(1===n)return t>=128>>a&&t<<a<=2047;if(2===n)return t>=2048>>a&&t<<a<=55295||t>=57344>>a&&t<<a<=65535;if(3===n)return t>=65536>>a&&t<<a<=1114111;throw new Error}function n(t,a){if(6===t)return a>>6>15?3:a>31?2:1;if(12===t)return a>15?3:2;if(18===t)return 3;throw new Error}for(var o=65533,e="",i=this.bitsNeeded,l=this.codePoint,s=0;s<t.length;s+=1){var r=t[s];0!==i&&(r<128||r>191||!a(l<<6|63&r,i-6,n(i,l)))&&(i=0,l=o,e+=String.fromCharCode(l)),0===i?(r>=0&&r<=127?(i=0,l=r):r>=192&&r<=223?(i=6,l=31&r):r>=224&&r<=239?(i=12,l=15&r):r>=240&&r<=247?(i=18,l=7&r):(i=0,l=o),0===i||a(l,i,n(i,l))||(i=0,l=o)):(i-=6,l=l<<6|63&r),0===i&&(l<=65535?e+=String.fromCharCode(l):(e+=String.fromCharCode(55296+(l-65535-1>>10)),e+=String.fromCharCode(56320+(l-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=l,e},null!=p&&null!=f&&function(){try{return"test"===(new p).decode((new f).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}()||(p=g);var w=function(){};function m(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=w,this.onload=w,this.onerror=w,this.onreadystatechange=w,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=w}function M(t){return t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(t.charCodeAt(0)+32)}))}function y(t){for(var a=Object.create(null),n=t.split("\r\n"),o=0;o<n.length;o+=1){var e=n[o].split(": "),i=e.shift(),l=e.join(": ");a[M(i)]=l}this._map=a}function b(){}function S(t){this._headers=t}function C(){}function x(){this._listeners=Object.create(null)}function T(t){a((function(){throw t}),0)}function A(t){this.type=t,this.target=void 0}function D(t,a){A.call(this,t),this.data=a.data,this.lastEventId=a.lastEventId}function R(t,a){A.call(this,t),this.status=a.status,this.statusText=a.statusText,this.headers=a.headers}function k(t,a){A.call(this,t),this.error=a.error}m.prototype.open=function(t,e){this._abort(!0);var i=this,l=this._xhr,s=1,r=0;this._abort=function(t){0!==i._sendTimeout&&(n(i._sendTimeout),i._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,l.onload=w,l.onerror=w,l.onabort=w,l.onprogress=w,l.onreadystatechange=w,l.abort(),0!==r&&(n(r),r=0),t||(i.readyState=4,i.onabort(null),i.onreadystatechange())),s=0};var c=function(){if(1===s){var t=0,a="",n=void 0;if("contentType"in l)t=200,a="OK",n=l.contentType;else try{t=l.status,a=l.statusText,n=l.getResponseHeader("Content-Type")}catch(o){t=0,a="",n=void 0}0!==t&&(s=2,i.readyState=2,i.status=t,i.statusText=a,i._contentType=n,i.onreadystatechange())}},d=function(){if(c(),2===s||3===s){s=3;var t="";try{t=l.responseText}catch(t){}i.readyState=3,i.responseText=t,i.onprogress()}},u=function(t,a){if(null!=a&&null!=a.preventDefault||(a={preventDefault:w}),d(),1===s||2===s||3===s){if(s=4,0!==r&&(n(r),r=0),i.readyState=4,"load"===t)i.onload(a);else if("error"===t)i.onerror(a);else{if("abort"!==t)throw new TypeError;i.onabort(a)}i.onreadystatechange()}},h=function(){r=a((function(){h()}),500),3===l.readyState&&d()};"onload"in l&&(l.onload=function(t){u("load",t)}),"onerror"in l&&(l.onerror=function(t){u("error",t)}),"onabort"in l&&(l.onabort=function(t){u("abort",t)}),"onprogress"in l&&(l.onprogress=d),"onreadystatechange"in l&&(l.onreadystatechange=function(t){!function(t){null!=l&&(4===l.readyState?"onload"in l&&"onerror"in l&&"onabort"in l||u(""===l.responseText?"error":"load",t):3===l.readyState?"onprogress"in l||d():2===l.readyState&&c())}(t)}),!("contentType"in l)&&"ontimeout"in o.prototype||(e+=(-1===e.indexOf("?")?"?":"&")+"padding=true"),l.open(t,e,!0),"readyState"in l&&(r=a((function(){h()}),0))},m.prototype.abort=function(){this._abort(!1)},m.prototype.getResponseHeader=function(){return this._contentType},m.prototype.setRequestHeader=function(t,a){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(t,a)},m.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},m.prototype.send=function(){if("ontimeout"in o.prototype&&("sendAsBinary"in o.prototype||"mozAnon"in o.prototype)||null==c||null==c.readyState||"complete"===c.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(t){throw t}}else{var n=this;n._sendTimeout=a((function(){n._sendTimeout=0,n.send()}),4)}},y.prototype.get=function(t){return this._map[M(t)]},null!=o&&null==o.HEADERS_RECEIVED&&(o.HEADERS_RECEIVED=2),b.prototype.open=function(t,a,n,e,i,l,s){t.open("GET",i);var r=0;for(var c in t.onprogress=function(){var a=t.responseText.slice(r);r+=a.length,n(a)},t.onerror=function(t){t.preventDefault(),e(new Error("NetworkError"))},t.onload=function(){e(null)},t.onabort=function(){e(null)},t.onreadystatechange=function(){if(t.readyState===o.HEADERS_RECEIVED){var n=t.status,e=t.statusText,i=t.getResponseHeader("Content-Type"),l=t.getAllResponseHeaders();a(n,e,i,new y(l))}},t.withCredentials=l,s)Object.prototype.hasOwnProperty.call(s,c)&&t.setRequestHeader(c,s[c]);return t.send(),t},S.prototype.get=function(t){return this._headers.get(t)},C.prototype.open=function(t,a,n,o,e,i,l){var s=null,r=new B,c=r.signal,h=new p;return u(e,{headers:l,credentials:i?"include":"same-origin",signal:c,cache:"no-store"}).then((function(t){return s=t.body.getReader(),a(t.status,t.statusText,t.headers.get("Content-Type"),new S(t.headers)),new d((function(t,a){var o=function(){s.read().then((function(a){if(a.done)t(void 0);else{var e=h.decode(a.value,{stream:!0});n(e),o()}})).catch((function(t){a(t)}))};o()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){o(t)})),{abort:function(){null!=s&&s.cancel(),r.abort()}}},x.prototype.dispatchEvent=function(t){t.target=this;var a=this._listeners[t.type];if(null!=a)for(var n=a.length,o=0;o<n;o+=1){var e=a[o];try{"function"==typeof e.handleEvent?e.handleEvent(t):e.call(this,t)}catch(t){T(t)}}},x.prototype.addEventListener=function(t,a){t=String(t);var n=this._listeners,o=n[t];null==o&&(n[t]=o=[]);for(var e=!1,i=0;i<o.length;i+=1)o[i]===a&&(e=!0);e||o.push(a)},x.prototype.removeEventListener=function(t,a){t=String(t);var n=this._listeners,o=n[t];if(null!=o){for(var e=[],i=0;i<o.length;i+=1)o[i]!==a&&e.push(o[i]);0===e.length?delete n[t]:n[t]=e}},D.prototype=Object.create(A.prototype),R.prototype=Object.create(A.prototype),k.prototype=Object.create(A.prototype);var P=/^text\/event\-stream(;.*)?$/i,F=function(t,a){var n=null==t?a:parseInt(t,10);return n!=n&&(n=a),L(n)},L=function(t){return Math.min(Math.max(t,1e3),18e6)},O=function(t,a,n){try{"function"==typeof a&&a.call(t,n)}catch(t){T(t)}};function E(t,i){x.call(this),i=i||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(t,i,l){i=String(i);var s=Boolean(l.withCredentials),r=l.lastEventIdQueryParameterName||"lastEventId",c=L(1e3),d=F(l.heartbeatTimeout,45e3),u="",h=c,p=!1,f=0,B=l.headers||{},v=l.Transport,g=W&&null==v?void 0:new m(null!=v?new v:null!=o&&"withCredentials"in o.prototype||null==e?new o:new e),w=null!=v&&"string"!=typeof v?new v:null==g?new C:new b,M=void 0,y=0,S=-1,x="",T="",A="",E="",z=0,j=0,V=0,I=function(a,n,o,e){if(0===S)if(200===a&&null!=o&&P.test(o)){S=1,p=Date.now(),h=c,t.readyState=1;var i=new R("open",{status:a,statusText:n,headers:e});t.dispatchEvent(i),O(t,t.onopen,i)}else{var l="";200!==a?(n&&(n=n.replace(/\s+/g," ")),l="EventSource's response has a status "+a+" "+n+" that is not 200. Aborting the connection."):l="EventSource's response has a Content-Type specifying an unsupported type: "+(null==o?"-":o.replace(/\s+/g," "))+". Aborting the connection.",$(),i=new R("error",{status:a,statusText:n,headers:e}),t.dispatchEvent(i),O(t,t.onerror,i),console.error(l)}},U=function(o){if(1===S){for(var e=-1,i=0;i<o.length;i+=1)(r=o.charCodeAt(i))!=="\n".charCodeAt(0)&&r!=="\r".charCodeAt(0)||(e=i);var l=(-1!==e?E:"")+o.slice(0,e+1);E=(-1===e?E:"")+o.slice(e+1),""!==o&&(p=Date.now(),f+=o.length);for(var s=0;s<l.length;s+=1){var r=l.charCodeAt(s);if(-1===z&&r==="\n".charCodeAt(0))z=0;else if(-1===z&&(z=0),r==="\r".charCodeAt(0)||r==="\n".charCodeAt(0)){if(0!==z){1===z&&(V=s+1);var B=l.slice(j,V-1),v=l.slice(V+(V<s&&l.charCodeAt(V)===" ".charCodeAt(0)?1:0),s);"data"===B?(x+="\n",x+=v):"id"===B?T=v:"event"===B?A=v:"retry"===B?(c=F(v,c),h=c):"heartbeatTimeout"===B&&(d=F(v,d),0!==y&&(n(y),y=a((function(){G()}),d)))}if(0===z){if(""!==x){u=T,""===A&&(A="message");var g=new D(A,{data:x.slice(1),lastEventId:T});if(t.dispatchEvent(g),"open"===A?O(t,t.onopen,g):"message"===A?O(t,t.onmessage,g):"error"===A&&O(t,t.onerror,g),2===S)return}x="",A=""}z=r==="\r".charCodeAt(0)?-1:0}else 0===z&&(j=s,z=1),1===z?r===":".charCodeAt(0)&&(V=s+1,z=2):2===z&&(z=3)}}},K=function(o){if(1===S||0===S){S=-1,0!==y&&(n(y),y=0),y=a((function(){G()}),h),h=L(Math.min(16*c,2*h)),t.readyState=0;var e=new k("error",{error:o});t.dispatchEvent(e),O(t,t.onerror,e),null!=o&&console.error(o)}},$=function(){S=2,null!=M&&(M.abort(),M=void 0),0!==y&&(n(y),y=0),t.readyState=2},G=function(){if(y=0,-1===S){p=!1,f=0,y=a((function(){G()}),d),S=0,x="",A="",T=u,E="",j=0,V=0,z=0;var n=i;if("data:"!==i.slice(0,5)&&"blob:"!==i.slice(0,5)&&""!==u){var o=i.indexOf("?");n=-1===o?i:i.slice(0,o+1)+i.slice(o+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(t,a){return a===r?"":t})),n+=(-1===i.indexOf("?")?"?":"&")+r+"="+encodeURIComponent(u)}var e=t.withCredentials,l={Accept:"text/event-stream"},s=t.headers;if(null!=s)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(l[c]=s[c]);try{M=w.open(g,I,U,K,n,e,l)}catch(t){throw $(),t}}else if(p||null==M){var h=Math.max((p||Date.now())+d-Date.now(),1);p=!1,y=a((function(){G()}),h)}else K(new Error("No activity within "+d+" milliseconds. "+(0===S?"No response received.":f+" chars received.")+" Reconnecting.")),null!=M&&(M.abort(),M=void 0)};t.url=i,t.readyState=0,t.withCredentials=s,t.headers=B,t._close=$,G()}(this,t,i)}var W=null!=u&&null!=h&&"body"in h.prototype;(E.prototype=Object.create(x.prototype)).CONNECTING=0,E.prototype.OPEN=1,E.prototype.CLOSED=2,E.prototype.close=function(){this._close()},E.CONNECTING=0,E.OPEN=1,E.CLOSED=2,E.prototype.withCredentials=void 0;var z,j=r;null==o||null!=r&&"withCredentials"in r.prototype||(j=E),z=function(t){t.EventSourcePolyfill=E,t.NativeEventSource=r,t.EventSource=j}(l),void 0!==z&&(i.exports=z)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:s:globalThis);var c={exports:{}};c.exports=function(){function t(i,l){if(!(this instanceof t))return new t(i,l);l=Object.assign({},n,l);var s=Math.pow(10,l.precision);this.intValue=i=a(i,l),this.value=i/s,l.increment=l.increment||1/s,l.groups=l.useVedic?e:o,this.s=l,this.p=s}function a(a,n){var o=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],e=n.decimal,i=n.errorOnInvalid,l=n.fromCents,s=Math.pow(10,n.precision),r=a instanceof t;if(r&&l)return a.intValue;if("number"==typeof a||r)e=r?a.value:a;else if("string"==typeof a)i=new RegExp("[^-\\d"+e+"]","g"),e=new RegExp("\\"+e,"g"),e=(e=a.replace(/\((.*)\)/,"-$1").replace(i,"").replace(e,"."))||0;else{if(i)throw Error("Invalid Input");e=0}return l||(e=(e*s).toFixed(4)),o?Math.round(e):e}var n={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(t,a){var n=a.pattern,o=a.negativePattern,e=a.symbol,i=a.separator,l=a.decimal;a=a.groups;var s=(""+t).replace(/^-/,"").split("."),r=s[0];return s=s[1],(0<=t.value?n:o).replace("!",e).replace("#",r.replace(a,"$1"+i)+(s?l+s:""))},fromCents:!1},o=/(\d)(?=(\d{3})+\b)/g,e=/(\d)(?=(\d\d)+\d\b)/g;return t.prototype={add:function(n){var o=this.s,e=this.p;return t((this.intValue+a(n,o))/(o.fromCents?1:e),o)},subtract:function(n){var o=this.s,e=this.p;return t((this.intValue-a(n,o))/(o.fromCents?1:e),o)},multiply:function(a){var n=this.s;return t(this.intValue*a/(n.fromCents?1:Math.pow(10,n.precision)),n)},divide:function(n){var o=this.s;return t(this.intValue/a(n,o,!1),o)},distribute:function(a){var n=this.intValue,o=this.p,e=this.s,i=[],l=Math[0<=n?"floor":"ceil"](n/a),s=Math.abs(n-l*a);for(o=e.fromCents?1:o;0!==a;a--){var r=t(l/o,e);0<s--&&(r=r[0<=n?"add":"subtract"](1/o)),i.push(r)}return i},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(t){var a=this.s;return"function"==typeof t?t(this,a):a.format(this,Object.assign({},a,t))},toString:function(){var t=this.s,a=t.increment;return(Math.round(this.intValue/this.p/a)*a).toFixed(t.precision)},toJSON:function(){return this.value}},t}();const d=c.exports,u={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen",Loading:"Wird geladen ..."},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita",Loading:"Caricamento ..."},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt",Loading:"Chargement ..."},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит",Loading:"Загружается ..."},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit",Loading:"Se încarcă ..."},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit",Loading:"Učitavanje ..."},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés",Loading:"Betöltés ..."},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać",Loading:"Ładowanie ..."},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit",Loading:"Nalaganje ..."},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit",Loading:"Učitavanje ..."},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},"en-us":{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."}},h=(t,a,n)=>{let o=u[u[a]?a:"en"][t];if(void 0!==n)for(const[t,a]of Object.entries(n.values)){const n=new RegExp(`{${t}}`,"g");o=o.replace(n,a)}return o},p=class{constructor(a){t(this,a),this.totalCalculationModes=["totalCashAmount","totalRealAmount"],this.setLocaleIdentifier=()=>{if(this.customLocaleIdentifier.includes(this.language))return this.customLocaleIdentifier},this.formatBalance=t=>this.customLocaleIdentifier?new Intl.NumberFormat(this.setLocaleIdentifier(),{useGrouping:!0}).format(t):this.currencySeparator&&this.currencyDecimal?d(t,{separator:this.currencySeparator,decimal:this.currencyDecimal,symbol:"",precision:parseInt(this.currencyPrecision||"2",10)}).format():d(t,{separator:".",decimal:",",symbol:"",precision:parseInt(this.currencyPrecision||"2",10)}).format(),this.getBalances=()=>{this.isLoading=!0;const t=new URL(`/v2/player/${this.userId}/balance/`,this.endpoint),a=new Headers;a.append("X-SessionID",this.session);const n={method:"GET",headers:a};return new Promise((a=>fetch(t,n).then((t=>t.json())).then((t=>a(t))).catch((t=>{throw console.log("Balance fetch error",t),new Error("Failed to fetch balance data!")})).finally((()=>this.isLoading=!1))))},this.subscribeToBalanceUpdates=()=>{if(this.currentStream&&this.currentStream.close(),this.session.length<1)return;const t=new URL(`/v2/player/${this.userId}/information/updates/`,this.endpoint),a=new r.exports.EventSourcePolyfill(t,{headers:{accept:"text/event-stream","X-SessionId":this.session}});this.currentStream=a,a.addEventListener("message",this.updateBalances)},this.parseData=t=>{let a;try{a=JSON.parse(t)}catch(t){return void console.log("Balance stream failed: ",t)}return a},this.updateRealAmount=(t,a,n)=>{let o=null;switch(n.walletAccountType){case"Ordinary":n.afterAmount===n.affectedAmount&&0!==a.lastOrdinaryAfterAmount||(a.lastOrdinaryAfterAmount=n.afterAmount,a.showCreditLineAfterAmount||(o=n.afterAmount));break;case"CreditLine":0!==n.afterAmount?(o=n.afterAmount,a.showCreditLineAfterAmount=!0):(o=a.lastOrdinaryAfterAmount,a.showCreditLineAfterAmount=!1);break;default:o=n.afterAmount}return null===o?t:o},this.updateTotalAmount=()=>{switch(this.totalCalculationMode){case"totalCashAmount":let t=0;for(const a of["Real","Bonus"])for(const n of this.balances[a])t+=Math.max(n.amount,0);this.balances.Total[0].amount=t;break;case"totalRealAmount":if(!this.isSplitWallet)return;let a=0;for(const t of this.balances.Real)a+=t.amount;this.balances.Total[0].amount=a}},this.updateBalances=t=>{const a=this.parseData(t.data);if(!a)return void this.subscribeToBalanceUpdates();if("BALANCE_UPDATE_V2"!==a.type)return;const n=a.body.balanceChange;for(const[t,a]of Object.entries(n))if("totalRealAmount"!==this.totalCalculationMode||"Real"!==t||this.isSplitWallet||(this.balances.Total[0].amount=this.updateRealAmount(this.balances.Total[0].amount,this.updateRealAmountState,a)),this.balances[t])for(const n of this.balances[t])this.isSplitWallet?a.productType===n.productType&&(n.amount="Real"===t?this.updateRealAmount(n.amount,this.updateRealAmountState[n.productType],a):a.afterAmount):n.amount="Real"===t?this.updateRealAmount(n.amount,this.updateRealAmountState,a):a.afterAmount;this.updateTotalAmount(),this.balances=Object.assign({},this.balances)},this.balanceModalOpenDeposit=()=>{this.toggleModal("close"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},this.validateTotalCalculationMode=()=>{this.totalCalculationModes.includes(this.totalCalculationMode)||(console.error(`Unsupported value ('${this.totalCalculationMode}') for totalcalculationmode parameter. Only the following values are supported ${this.totalCalculationModes}. Using default value ('${this.totalCalculationModes[0]}').`),this.totalCalculationMode=this.totalCalculationModes[0])},this.messageHandler=t=>t.data&&"LogoutSuccessfull"===t.data.type&&this.currentStream.close(),this.updateBalanceStyling=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)},this.toggleModal=t=>{switch(t){case"open":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),this.isModalDisplayed=!0;break;case"close":window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),this.isModalDisplayed=!1}},this.userId=void 0,this.session=void 0,this.endpoint=void 0,this.customLocaleIdentifier=void 0,this.displayBalanceOption=void 0,this.totalCalculationMode=void 0,this.currencySeparator=void 0,this.currencyDecimal=void 0,this.currencyPrecision=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl=void 0,this.language="en",this.isLoading=!0,this.isModalDisplayed=!1,this.isSplitWallet=!1,this.currentStream=void 0,this.currency=void 0,this.updateRealAmountState=void 0,this.balances={Total:[],Real:[],Bonus:[],Credit:[]}}handleClientStylingChange(t,a){t!=a&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,a){t!=a&&o(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,a){t!=a&&e(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this.validateTotalCalculationMode(),this.getBalances().then((t=>this.setBalances(t))),this.subscribeToBalanceUpdates()}componentDidLoad(){this.stylingContainer&&(this.mbSource&&e(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&o(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}setBalances(t){t[this.totalCalculationMode]||(this.totalCalculationMode=this.totalCalculationModes[0]),this.balances.Total.push({amount:0,productType:""});const a=t.items.find((t=>"Real"===t.type&&"Ordinary"===t.walletAccountType));this.currency=a.currency,this.isSplitWallet=Boolean(a.productType),this.isSplitWallet?this.setBalancesWhenSplitWallet(t):this.setBalancesWhenSingleWallet(t)}setBalancesWhenSingleWallet(t){this.updateRealAmountState={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},this.balances.Total[0].amount=t[this.totalCalculationMode][this.currency];for(const a of t.items)switch(a.type){case"Bonus":0===this.balances.Bonus.length?this.balances.Bonus.push({amount:a.amount,productType:""}):this.balances.Bonus[0].amount+=a.amount;break;case"Real":if(a.creditLine&&0===this.balances.Credit.length&&this.balances.Credit.push({amount:a.creditLine,productType:""}),"totalRealAmount"===this.totalCalculationMode)continue;0===this.balances.Real.length?this.balances.Real.push({amount:a.amount,productType:""}):this.balances.Real[0].amount+=a.amount}for(const[t,a]of Object.entries(this.balances))a.length<1&&delete this.balances[t]}setBalancesWhenSplitWallet(t){this.updateRealAmountState={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let a=t.items;this.displayBalanceOption&&"All"!==this.displayBalanceOption&&(a=t.items.filter((t=>t.productType===this.displayBalanceOption)));for(const t of a){let a;switch(t.type){case"Bonus":a=this.balances.Bonus.findIndex((a=>a.productType===t.productType)),a>0?this.balances.Bonus[a].amount+=t.amount:this.balances.Bonus.push({amount:t.amount,productType:t.productType});break;case"Real":t.creditLine&&this.balances.Credit.push({amount:t.creditLine,productType:t.productType}),a=this.balances.Real.findIndex((a=>a.productType===t.productType)),a>0?this.balances.Real[a].amount+=t.amount:this.balances.Real.push({amount:t.amount,productType:t.productType})}}this.updateTotalAmount();for(const[t,a]of Object.entries(this.balances))a.length<1&&delete this.balances[t]}render(){const t=a("button",{class:"BalanceValue",onClick:()=>this.toggleModal("open")},a("p",null,this.balances.Total.length>0?this.formatBalance(this.balances.Total[0].amount):"0"," ",this.currency),a("span",{class:" {isModalDisplayed ? 'TriangleActive' : 'TriangleInactive'}"},a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},a("path",{id:"arrow",d:"M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z",transform:"translate(-274.511 -441.088)",fill:"#d1d1d1"})))),n=a("div",{class:this.isModalDisplayed?"BalanceModalWrapper Open":"BalanceModalWrapper"},a("button",{class:"BalanceModalClose",onClick:()=>this.toggleModal("close")}),a("div",{class:"BalanceModal"},a("div",{class:"ModalContent"},a("div",{class:"BalanceModalHeader"},a("p",{class:"BalanceModalTitle"},h("Title",this.language))),a("div",{class:"BalanceModalBody"},Object.keys(this.balances).map((t=>a("div",{class:"BalanceModalRowBoth"},this.balances[t].map((n=>a("div",{class:"BalanceModalRowLine"},a("p",{class:"BalanceModalText"},h(t,this.language)," ",n.productType?h(n.productType,this.language):""),a("p",{class:"BalanceModalValue"},a("span",{class:"BalanceModalAmount"},n.amount?this.formatBalance(n.amount):"0"),a("span",{class:"BalanceModalCurrency"}," "+this.currency))))))))),a("div",{class:"BalanceModalFooter"},a("button",{class:"BalanceModalAction",onClick:()=>this.balanceModalOpenDeposit()},h("DepositButton",this.language)))))),o=a("div",{class:"LoadingSkeleton"},a("ui-skeleton",{structure:"title",height:"20px",width:"auto"}));return a("div",{ref:t=>this.stylingContainer=t},a("div",{class:"PamAccountBalanceModal"},this.isLoading?o:a("div",null,t,n)),this.isModalDisplayed&&a("button",{class:"PamAccountBalanceModalOverlay",onClick:()=>this.toggleModal("close")}))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};p.style='*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.PamAccountBalanceModal{position:relative}.PamAccountBalanceModal .LoadingSkeleton{border-radius:10px;overflow:hidden;width:60px}.PamAccountBalanceModal .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.PamAccountBalanceModal .BalanceValue svg{width:16px;fill:var(--emw--color-black, #000000)}.PamAccountBalanceModal .BalanceValue span{padding-left:5px}.PamAccountBalanceModal .BalanceValue .TriangleActive,.PamAccountBalanceModal .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.PamAccountBalanceModal .BalanceValue .TriangleActive:hover,.PamAccountBalanceModal .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.PamAccountBalanceModal .BalanceValue .TriangleActive svg,.PamAccountBalanceModal .BalanceValue .TriangleInactive svg{margin:2px 0px}.PamAccountBalanceModal .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.PamAccountBalanceModal .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.PamAccountBalanceModal .BalanceValue{font-size:12px}.PamAccountBalanceModal .BalanceValue svg{width:12px}}.PamAccountBalanceModal .BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.PamAccountBalanceModal .BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModalClose:before{content:"";background:var(--emw--color-secondary, #FFFFFF);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModalClose:after{content:"";background:var(--emw--color-secondary, #FFFFFF);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModalClose:hover{transform:scale(1.1)}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal{transition:all 0.2s ease-in;width:270px}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal .BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal .BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #FFFFFF))}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal .BalanceModalBody .BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal .BalanceModalBody .BalanceModalRowBoth:last-child{border-bottom:none}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal .BalanceModalBody .BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal .BalanceModalBody .BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #FFFFFF));font-size:14px;text-transform:capitalize}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal .BalanceModalBody .BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #FFFFFF))}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal .BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal .BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary, #22B04E);font-size:12px;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal .BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary, #22B04E);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary, #22B04E);font-size:14px}.PamAccountBalanceModal .BalanceModalWrapper .BalanceModal .BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.PamAccountBalanceModal .BalanceModalWrapper.Open{opacity:1}.PamAccountBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.PamAccountBalanceModalOverlay.Open{opacity:1}';export{p as P}
|
@@ -0,0 +1 @@
|
|
1
|
+
export{P as pam_account_balance_modal}from"./p-b60c42bd.js";import{r as e,h as t,H as n}from"./p-86b371f2.js";const o=class{constructor(t){e(this,t),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,n)=>t("div",{key:n,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.width};\n --emw-skeleton-logo-height: ${this.height};\n --emw-skeleton-logo-border-radius: ${this.borderRadius}px;\n --emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-logo-margin-top: ${this.marginTop}px;\n --emw-skeleton-logo-margin-left: ${this.marginLeft}px;\n --emw-skeleton-logo-margin-right: ${this.marginRight}px;\n --emw-skeleton-logo-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.width};\n --emw-skeleton-image-height: ${this.height};\n --emw-skeleton-image-border-radius: ${this.borderRadius}px;\n --emw-skeleton-image-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-image-margin-top: ${this.marginTop}px;\n --emw-skeleton-image-margin-left: ${this.marginLeft}px;\n --emw-skeleton-image-margin-right: ${this.marginRight}px;\n --emw-skeleton-image-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.width};\n --emw-skeleton-title-height: ${this.height};\n --emw-skeleton-title-border-radius: ${this.borderRadius}px;\n --emw-skeleton-title-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-title-margin-top: ${this.marginTop}px;\n --emw-skeleton-title-margin-left: ${this.marginLeft}px;\n --emw-skeleton-title-margin-right: ${this.marginRight}px;\n --emw-skeleton-title-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.width};\n --emw-skeleton-text-height: ${this.height};\n --emw-skeleton-text-border-radius: ${this.borderRadius}px;\n --emw-skeleton-text-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-text-margin-top: ${this.marginTop}px;\n --emw-skeleton-text-margin-left: ${this.marginLeft}px;\n --emw-skeleton-text-margin-right: ${this.marginRight}px;\n --emw-skeleton-text-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.width};\n --emw-skeleton-rectangle-height: ${this.height};\n --emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;\n --emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-rectangle-margin-top: ${this.marginTop}px;\n --emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;\n --emw-skeleton-rectangle-margin-right: ${this.marginRight}px;\n --emw-skeleton-rectangle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.size};\n --emw-skeleton-circle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;default:e=""}return t(n,{key:"3bb792a149db7fe732d5cbfa092cdb4d6ca0689e"},t("style",{key:"a4607599b60659f385ae2660513e38b383739674"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};o.style=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";export{o as ui_skeleton}
|
@@ -0,0 +1 @@
|
|
1
|
+
const o=()=>{};export{o as g}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{p as r,b as e}from"./p-86b371f2.js";export{s as setNonce}from"./p-86b371f2.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),r(n)})().then((async r=>(await n(),e([["p-d74c687e",[[1,"pam-account-balance-modal",{userId:[513,"user-id"],session:[513],endpoint:[513],customLocaleIdentifier:[513,"custom-locale-identifier"],displayBalanceOption:[513,"display-balance-option"],totalCalculationMode:[513,"total-calculation-mode"],currencySeparator:[513,"currency-separator"],currencyDecimal:[513,"currency-decimal"],currencyPrecision:[513,"currency-precision"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isLoading:[32],isModalDisplayed:[32],isSplitWallet:[32],currentStream:[32],currency:[32],updateRealAmountState:[32],balances:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r))));
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { sass } from "@stencil/sass";
|
2
|
+
export const config = {
|
3
|
+
namespace: 'pam-account-balance-modal',
|
4
|
+
taskQueue: 'async',
|
5
|
+
sourceMap: false,
|
6
|
+
minifyJs: true,
|
7
|
+
extras: {
|
8
|
+
experimentalImportInjection: true
|
9
|
+
},
|
10
|
+
plugins: [sass()],
|
11
|
+
outputTargets: [
|
12
|
+
{
|
13
|
+
type: 'www'
|
14
|
+
},
|
15
|
+
{
|
16
|
+
type: 'docs-readme'
|
17
|
+
}
|
18
|
+
]
|
19
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { cleanPackageJsonStencil } from "../../../tools/plugins";
|
2
|
+
import { sass } from "@stencil/sass";
|
3
|
+
export const config = {
|
4
|
+
namespace: 'pam-account-balance-modal',
|
5
|
+
taskQueue: 'async',
|
6
|
+
sourceMap: false,
|
7
|
+
minifyJs: true,
|
8
|
+
extras: {
|
9
|
+
experimentalImportInjection: true
|
10
|
+
},
|
11
|
+
plugins: [cleanPackageJsonStencil(), sass()],
|
12
|
+
outputTargets: [
|
13
|
+
{
|
14
|
+
type: 'dist',
|
15
|
+
esmLoaderPath: '../loader'
|
16
|
+
}
|
17
|
+
]
|
18
|
+
};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import path from "path";
|
2
|
+
import { getStoryFiles, detectUsedPackages, parseTsConfig, exec, filterParsedPathsByUsedPackages } from "../../../../libs/common/src/storybook/storybook-utils";
|
3
|
+
const config = {
|
4
|
+
stories: ['../**/*.@(mdx|stories.@(js|ts|tsx))'],
|
5
|
+
addons: ['@storybook/addon-essentials', '@storybook/addon-interactions', 'storybook-dark-mode'],
|
6
|
+
docs: {
|
7
|
+
defaultName: 'Documentation',
|
8
|
+
autodocs: 'tag'
|
9
|
+
},
|
10
|
+
framework: {
|
11
|
+
name: '@storybook/web-components-vite',
|
12
|
+
options: {}
|
13
|
+
},
|
14
|
+
// Async viteFinal to build dependent packages before finalizing configuration.
|
15
|
+
viteFinal: async (config) => {
|
16
|
+
const storyFiles = getStoryFiles(path.resolve(__dirname, '../'));
|
17
|
+
const usedPackages = detectUsedPackages(storyFiles);
|
18
|
+
const buildPromises = usedPackages.map(async (pkg) => {
|
19
|
+
try {
|
20
|
+
console.log(`Building package ${pkg}...`);
|
21
|
+
const { stdout, stderr } = await exec(`nx run ${pkg}:build`);
|
22
|
+
console.log(`Built package ${pkg}: ${stdout}`);
|
23
|
+
if (stderr) {
|
24
|
+
console.error(`Build warning/error for package ${pkg}: ${stderr}`);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
catch (error) {
|
28
|
+
console.error(`Error building package ${pkg}:`, error);
|
29
|
+
}
|
30
|
+
});
|
31
|
+
await Promise.all(buildPromises);
|
32
|
+
const parsedPaths = parseTsConfig() || {};
|
33
|
+
const filteredParsedPaths = filterParsedPathsByUsedPackages(parsedPaths, usedPackages);
|
34
|
+
return Object.assign(Object.assign({}, config), { resolve: {
|
35
|
+
alias: Object.assign({}, filteredParsedPaths)
|
36
|
+
}, define: {
|
37
|
+
process: {
|
38
|
+
env: {}
|
39
|
+
}
|
40
|
+
} });
|
41
|
+
}
|
42
|
+
};
|
43
|
+
export default config;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { themes } from "@storybook/theming";
|
2
|
+
export const parameters = {
|
3
|
+
darkMode: {
|
4
|
+
dark: Object.assign(Object.assign({}, themes.dark), { appBg: 'black' }),
|
5
|
+
light: Object.assign(Object.assign({}, themes.normal), { appBg: 'green' }),
|
6
|
+
current: 'light',
|
7
|
+
stylePreview: true
|
8
|
+
}
|
9
|
+
};
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { exec as execCallback } from 'child_process';
|
3
|
+
export declare const exec: typeof execCallback.__promisify__;
|
4
|
+
/**
|
5
|
+
* Recursively retrieves all story files (.stories.ts/.stories.tsx) in a directory.
|
6
|
+
* @param dir The directory to search.
|
7
|
+
* @returns Array of story file paths.
|
8
|
+
*/
|
9
|
+
export declare const getStoryFiles: (dir: string) => string[];
|
10
|
+
/**
|
11
|
+
* Detects which internal packages are used in the provided story files.
|
12
|
+
* It looks at every import that starts with the given package alias prefix,
|
13
|
+
* then extracts the package name (the segment immediately following the prefix).
|
14
|
+
*
|
15
|
+
* @param stories Array of story file paths.
|
16
|
+
* @returns Array of unique package names (e.g. ['foo', 'bar']).
|
17
|
+
*/
|
18
|
+
export declare const detectUsedPackages: (stories: string[]) => string[];
|
19
|
+
/**
|
20
|
+
* Extracts all import paths from a file using the TypeScript compiler API.
|
21
|
+
* @param filePath The file path to parse.
|
22
|
+
* @returns Array of import strings.
|
23
|
+
*/
|
24
|
+
export declare const extractImports: (filePath: string) => string[];
|
25
|
+
/**
|
26
|
+
* Parses the tsconfig paths and resolves them to absolute paths.
|
27
|
+
* @param tsconfigPath The path to the tsconfig file.
|
28
|
+
* @returns An object mapping alias keys to absolute paths.
|
29
|
+
*/
|
30
|
+
export declare const parseTsConfig: () => Record<string, string> | null;
|
31
|
+
/**
|
32
|
+
* Filters the parsed tsconfig alias mapping to only include keys that correspond
|
33
|
+
* to the used packages.
|
34
|
+
*
|
35
|
+
* @param parsedPaths The full alias mapping from tsconfig.
|
36
|
+
* @param usedPackages Array of package names that are used (e.g. ['foo', 'bar']).
|
37
|
+
* @returns Filtered alias mapping.
|
38
|
+
*/
|
39
|
+
export declare const filterParsedPathsByUsedPackages: (parsedPaths: Record<string, string>, usedPackages: string[]) => Record<string, string>;
|
@@ -0,0 +1,70 @@
|
|
1
|
+
export declare const parameters: {
|
2
|
+
darkMode: {
|
3
|
+
dark: {
|
4
|
+
appBg: string;
|
5
|
+
base: "light" | "dark";
|
6
|
+
colorPrimary: string;
|
7
|
+
colorSecondary: string;
|
8
|
+
appContentBg: string;
|
9
|
+
appPreviewBg: string;
|
10
|
+
appBorderColor: string;
|
11
|
+
appBorderRadius: number;
|
12
|
+
fontBase: string;
|
13
|
+
fontCode: string;
|
14
|
+
textColor: string;
|
15
|
+
textInverseColor: string;
|
16
|
+
textMutedColor: string;
|
17
|
+
barTextColor: string;
|
18
|
+
barHoverColor: string;
|
19
|
+
barSelectedColor: string;
|
20
|
+
barBg: string;
|
21
|
+
buttonBg: string;
|
22
|
+
buttonBorder: string;
|
23
|
+
booleanBg: string;
|
24
|
+
booleanSelectedBg: string;
|
25
|
+
inputBg: string;
|
26
|
+
inputBorder: string;
|
27
|
+
inputTextColor: string;
|
28
|
+
inputBorderRadius: number;
|
29
|
+
brandTitle?: string;
|
30
|
+
brandUrl?: string;
|
31
|
+
brandImage?: string;
|
32
|
+
brandTarget?: string;
|
33
|
+
gridCellSize?: number;
|
34
|
+
};
|
35
|
+
light: {
|
36
|
+
appBg: string;
|
37
|
+
base: "light" | "dark";
|
38
|
+
colorPrimary: string;
|
39
|
+
colorSecondary: string;
|
40
|
+
appContentBg: string;
|
41
|
+
appPreviewBg: string;
|
42
|
+
appBorderColor: string;
|
43
|
+
appBorderRadius: number;
|
44
|
+
fontBase: string;
|
45
|
+
fontCode: string;
|
46
|
+
textColor: string;
|
47
|
+
textInverseColor: string;
|
48
|
+
textMutedColor: string;
|
49
|
+
barTextColor: string;
|
50
|
+
barHoverColor: string;
|
51
|
+
barSelectedColor: string;
|
52
|
+
barBg: string;
|
53
|
+
buttonBg: string;
|
54
|
+
buttonBorder: string;
|
55
|
+
booleanBg: string;
|
56
|
+
booleanSelectedBg: string;
|
57
|
+
inputBg: string;
|
58
|
+
inputBorder: string;
|
59
|
+
inputTextColor: string;
|
60
|
+
inputBorderRadius: number;
|
61
|
+
brandTitle?: string;
|
62
|
+
brandUrl?: string;
|
63
|
+
brandImage?: string;
|
64
|
+
brandTarget?: string;
|
65
|
+
gridCellSize?: number;
|
66
|
+
};
|
67
|
+
current: string;
|
68
|
+
stylePreview: boolean;
|
69
|
+
};
|
70
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { PamAccountBalanceModal } from './pam-account-balance-modal';
|