@everymatrix/casino-engagement-suite-jackpot-details 1.43.4 → 1.45.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/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.esm.js +1 -1
- package/dist/casino-engagement-suite-jackpot-details/p-5a599b1a.entry.js +1 -0
- package/dist/casino-engagement-suite-jackpot-details/p-be66309f.entry.js +1 -0
- package/dist/casino-engagement-suite-jackpot-details/p-c7ee604a.js +2 -0
- package/dist/casino-engagement-suite-jackpot-details/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-jackpot-details.cjs.entry.js +274 -284
- package/dist/cjs/casino-engagement-suite-jackpot-details.cjs.js +17 -11
- package/dist/cjs/casino-engagement-suite-progress-bar.cjs.entry.js +58 -75
- package/dist/cjs/index-d83151b6.js +1331 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.css +95 -104
- package/dist/collection/components/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.js +466 -526
- package/dist/collection/components/casino-engagement-suite-jackpot-details/index.js +1 -0
- package/dist/collection/utils/index.js +3 -3
- package/dist/collection/utils/locale.utils.js +22 -22
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-jackpot-details.entry.js +274 -284
- package/dist/esm/casino-engagement-suite-jackpot-details.js +14 -11
- package/dist/esm/casino-engagement-suite-progress-bar.entry.js +58 -75
- package/dist/esm/index-0237d1e2.js +1303 -0
- package/dist/esm/loader.js +7 -13
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.d.ts +88 -88
- package/dist/types/components/casino-engagement-suite-jackpot-details/index.d.ts +1 -0
- package/dist/types/components.d.ts +19 -2
- package/dist/types/models/index.d.ts +37 -37
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +12 -2
- package/dist/casino-engagement-suite-jackpot-details/p-0135e830.js +0 -1
- package/dist/casino-engagement-suite-jackpot-details/p-8fee813c.entry.js +0 -1
- package/dist/casino-engagement-suite-jackpot-details/p-b361748c.entry.js +0 -1
- package/dist/cjs/index-84a14c86.js +0 -1349
- package/dist/components/casino-engagement-suite-jackpot-details.d.ts +0 -11
- package/dist/components/casino-engagement-suite-jackpot-details.js +0 -439
- package/dist/components/casino-engagement-suite-progress-bar.js +0 -110
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-5707e619.js +0 -1322
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-engagement-suite-jackpot-details/.stencil/packages/casino-engagement-suite-jackpot-details/stencil.config.d.ts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoEngagementSuiteJackpotDetails } from './casino-engagement-suite-jackpot-details';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function formatBalance(amount, currency, maxAmount = 99999999) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
amount = Math.min(amount, maxAmount);
|
|
3
|
+
return `${currency} ${new Intl.NumberFormat('en', { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
4
|
+
.format(amount)}`;
|
|
5
5
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
const DEFAULT_LANGUAGE = 'en';
|
|
2
2
|
const SUPPORTED_LANGUAGES = ['en'];
|
|
3
3
|
const TRANSLATIONS = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
en: {
|
|
5
|
+
jackpots: 'Jackpots',
|
|
6
|
+
join: 'Join',
|
|
7
|
+
unjoin: 'Unjoin',
|
|
8
|
+
info: 'Info',
|
|
9
|
+
games: 'Games',
|
|
10
|
+
operatorContribution: 'Operator Contribution',
|
|
11
|
+
betContribution: 'Bet Contribution',
|
|
12
|
+
type: 'Type',
|
|
13
|
+
winningProbability: 'Winning Probability',
|
|
14
|
+
tc: 'Terms & Conditions',
|
|
15
|
+
jackpotIsWon: 'Jackpot is won!',
|
|
16
|
+
loadMore: 'Load More',
|
|
17
|
+
jackpotDetails: 'Jackpot Details',
|
|
18
|
+
minBet: 'Min Bet',
|
|
19
|
+
maxBet: 'Max Bet',
|
|
20
|
+
Suspended: 'Suspended',
|
|
21
|
+
Closed: 'Closed',
|
|
22
|
+
contributionTooltip: 'A % of the bet that will be contributed by the casino to the jackpot amount.'
|
|
23
|
+
}
|
|
24
24
|
};
|
|
25
25
|
export const translate = (key, customLang) => {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const lang = customLang;
|
|
27
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
28
28
|
};
|