@everymatrix/casino-engagement-suite-modal-container 1.0.69
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-modal-container/casino-engagement-suite-modal-container.esm.js +1 -0
- package/dist/casino-engagement-suite-modal-container/index.esm.js +0 -0
- package/dist/casino-engagement-suite-modal-container/p-aaab8749.entry.js +1 -0
- package/dist/casino-engagement-suite-modal-container/p-ac43a734.js +2 -0
- package/dist/casino-engagement-suite-modal-container/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-modal-container.cjs.js +25 -0
- package/dist/cjs/casino-engagement-suite-modal_2.cjs.entry.js +201 -0
- package/dist/cjs/index-00ddb955.js +1279 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +19 -0
- package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.css +115 -0
- package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.js +242 -0
- package/dist/collection/components/casino-engagement-suite-modal-container/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/models/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +31 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-modal-container.js +20 -0
- package/dist/esm/casino-engagement-suite-modal_2.entry.js +196 -0
- package/dist/esm/index-896654aa.js +1251 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +17 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.d.ts +44 -0
- package/dist/types/components/casino-engagement-suite-modal-container/index.d.ts +1 -0
- package/dist/types/components.d.ts +87 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/index.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -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 +29 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-896654aa.js';
|
|
2
|
+
|
|
3
|
+
const casinoEngagementSuiteModalCss = ":host{display:block;font-family:inherit}*{box-sizing:border-box;margin:0;padding:0}button{border:none;background:none;cursor:pointer}button:focus{outline:none}.ModalOverlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);justify-content:center;align-items:center}.ModalOverlay.Open{display:flex}.IconCloseContainer{width:100%;display:flex;justify-content:end}.IconCloseButton img{width:24px;height:24px}.ModalContent{display:flex;flex-direction:column;align-items:center;font-family:\"Montserrat\", sans-serif;position:relative;color:var(--emw--color-typography, #FFFFFF);background-color:var(--emw--color-background, #1E1638);padding:24px;border-radius:8px;width:450px;max-width:100%;text-align:center}.GradientBorder::before{content:\"\";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:9px;background:linear-gradient(143.2deg, #FF9401 -0.41%, #FFD32D 45.61%, #FF9401 82.77%);z-index:-1}.ModalHeader h1{font-weight:var(--emw--font-weight-semibold, 600);font-size:var(--emw--font-size-large, 24px);margin-top:12px;padding:0 16px}.ModalIcon{width:44px;height:44px;border-radius:50%;background-size:cover;margin-top:12px}.ModalBody{margin-top:20px;font-size:16px;font-family:\"Inter\", sans-serif;font-weight:var(--emw--font-weight-normal, 400);color:var(--emw--color-gray-100, #BBB9C3);padding:0 16px}.ModalFooter{margin-top:40px;margin-bottom:28px;padding:0 16px;width:100%}@keyframes rotate{100%{transform:rotate(1turn)}}.ModalOverlay .ModalWinAnimation{display:none}.ModalOverlay.ShowAnimation .ModalWinAnimation{display:block;position:absolute;width:100%;height:100%;inset:0;background:center/550px url(https://static.everymatrix.com/gic/img/engagement-suite/light.svg) no-repeat, center/550px url(https://static.everymatrix.com/gic/img/engagement-suite/win.svg) no-repeat;animation:6s rotate linear infinite}.ModalOverlay.Mobile .IconCloseButton img{width:16px;height:16px}.ModalOverlay.Mobile .ModalBody{font-size:14px}.ModalOverlay.Mobile .ModalContent{width:318px;padding:12px}.ModalOverlay.Mobile .ModalHeader h1{font-size:20px}.ModalOverlay.Mobile.ShowAnimation .ModalWinAnimation{background-size:400px}";
|
|
4
|
+
const CasinoEngagementSuiteModalStyle0 = casinoEngagementSuiteModalCss;
|
|
5
|
+
|
|
6
|
+
const CasinoEngagementSuiteModal = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.closeModal = createEvent(this, "closeModal", 7);
|
|
10
|
+
this.handleCloseClick = () => {
|
|
11
|
+
if (this.isLoading)
|
|
12
|
+
return;
|
|
13
|
+
this.closeModal.emit(this.modalType);
|
|
14
|
+
};
|
|
15
|
+
this.setClientStyling = () => {
|
|
16
|
+
let sheet = document.createElement('style');
|
|
17
|
+
sheet.innerHTML = this.clientStyling;
|
|
18
|
+
this.host.prepend(sheet);
|
|
19
|
+
};
|
|
20
|
+
this.setClientStylingURL = () => {
|
|
21
|
+
let url = new URL(this.clientStylingUrl);
|
|
22
|
+
let cssFile = document.createElement('style');
|
|
23
|
+
fetch(url.href)
|
|
24
|
+
.then((res) => res.text())
|
|
25
|
+
.then((data) => {
|
|
26
|
+
cssFile.innerHTML = data;
|
|
27
|
+
setTimeout(() => { this.host.prepend(cssFile); }, 1);
|
|
28
|
+
})
|
|
29
|
+
.catch((err) => {
|
|
30
|
+
console.log('Error ', err);
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
this.clientStyling = '';
|
|
34
|
+
this.clientStylingUrl = '';
|
|
35
|
+
this.isOpen = undefined;
|
|
36
|
+
this.isLoading = undefined;
|
|
37
|
+
this.header = undefined;
|
|
38
|
+
this.contentIcon = undefined;
|
|
39
|
+
this.modalType = undefined;
|
|
40
|
+
this.device = 'Mobile';
|
|
41
|
+
this.showAnimation = false;
|
|
42
|
+
this.limitStylingAppends = false;
|
|
43
|
+
}
|
|
44
|
+
componentDidRender() {
|
|
45
|
+
if (!this.limitStylingAppends && this.host) {
|
|
46
|
+
if (this.clientStyling)
|
|
47
|
+
this.setClientStyling();
|
|
48
|
+
if (this.clientStylingUrl)
|
|
49
|
+
this.setClientStylingURL();
|
|
50
|
+
this.limitStylingAppends = true;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return (h("div", { key: '8285e9a45ca4c3ce4fb17e67d5804bc9b6c503a5', class: `ModalOverlay ${this.isOpen && 'Open'} ${this.device} ${this.showAnimation && 'ShowAnimation'}` }, h("div", { key: '9c0fca26014ebe7fa8ed9c5304ff2508b872f358', class: "ModalWinAnimation" }), h("div", { key: '7281f0aef2ae65ba58a7afee7d070c1caf34f1c3', class: "ModalContent GradientBorder" }, h("div", { key: '7db7f93904c057b80e78d982ee73baed6b91fc7b', class: 'IconCloseContainer' }, h("button", { key: '9ea9de79010807ff507c88897acddb4ca3d1ddcf', class: "IconCloseButton", onClick: this.handleCloseClick }, h("img", { key: '75f3155c2ccc0c98c0ae195057dd1ccf80939549', src: "https://static.everymatrix.com/gic/img/engagement-suite/close.svg", alt: "\u0421lose modal" }))), this.contentIcon ? (h("div", { class: "ModalIcon", style: {
|
|
55
|
+
background: `url(${this.contentIcon}) no-repeat center, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%)`
|
|
56
|
+
} })) : null, h("div", { key: '11dc59541107ba88928c8d56d87bf4c1e879b28a', class: "ModalHeader" }, h("h1", { key: '0587e3a15ef19b4e087e5c0262f974709d269baf' }, this.header)), h("div", { key: '826992ac3be61bbdff34f51e9e089efb18d07ce5', class: "ModalBodyWrapper" }, h("div", { key: 'a80b16956ef7a1941638e99fb0c0ad7166137037', class: "ModalBody" }, h("slot", { key: '41882aa05cea337febb2b2c4dad7c0089239b181', name: "body" })), h("div", { key: '6f4e855d70851eaa7ba3f58389110aa35431f03f', class: "ModalFooter" }, h("slot", { key: '737fe84975e121d5162d7824c577b4028dc327eb', name: "footer" }))))));
|
|
57
|
+
}
|
|
58
|
+
get host() { return getElement(this); }
|
|
59
|
+
};
|
|
60
|
+
CasinoEngagementSuiteModal.style = CasinoEngagementSuiteModalStyle0;
|
|
61
|
+
|
|
62
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
63
|
+
const SUPPORTED_LANGUAGES = ['en'];
|
|
64
|
+
const TRANSLATIONS = {
|
|
65
|
+
en: {
|
|
66
|
+
joinHeader: 'Choose another challenge?',
|
|
67
|
+
desc: 'Any progress on the current challenge will be kept and you can rejoin the challenge at any time.',
|
|
68
|
+
joinQuestion: 'Would you still like to join another challenge?',
|
|
69
|
+
joinConfirm: 'Yes, join another challenge',
|
|
70
|
+
joinReject: 'No, stay at current challenge',
|
|
71
|
+
unJoinHeader: 'Quit Challenge?',
|
|
72
|
+
unJoinQuestion: 'Would you still like to quit the challenge?',
|
|
73
|
+
unJoinConfirm: 'Yes, I want to quit challenge',
|
|
74
|
+
unJoinReject: 'No, stay at challenge',
|
|
75
|
+
join: 'Unjoin',
|
|
76
|
+
unJoin: 'Unjoin',
|
|
77
|
+
continue: 'Continue',
|
|
78
|
+
okContinue: 'Ok, continue',
|
|
79
|
+
won: 'You won',
|
|
80
|
+
supportInfo: 'However, some rewards cannot be issued. Please, contact support.',
|
|
81
|
+
noReward: 'Reward cannot be issued',
|
|
82
|
+
contactSupport: 'Please contact support',
|
|
83
|
+
noChallenges: 'No Challenges yet',
|
|
84
|
+
tryOtherGames: 'Try winning Challenges as rewards or launching other booster games',
|
|
85
|
+
tooltip: 'Competition where your real money bets contribute towards the level progress to achieve the level reward',
|
|
86
|
+
jackpotWin: 'Total Jackpot Win!'
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const translate = (key, customLang) => {
|
|
90
|
+
const lang = customLang;
|
|
91
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
function formatBalance(amount, currency) {
|
|
95
|
+
return `${currency} ${new Intl.NumberFormat('en', { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
96
|
+
.format(amount)}`;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const casinoEngagementSuiteModalContainerCss = ":host{display:block;font-family:inherit}.ModalFooterButton,.ModalFooterButtonOutlined{transition:all 0.5s ease-out;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);color:var(--emw--color-typography, #1E1638);border-radius:99px;min-width:160px;height:36px;font-size:var(--emw--font-size-small-plus, 16px);font-weight:var(--emw--font-weight-bold, 700);position:relative;font-family:\"Montserrat\", sans-serif;padding:0 16px;box-sizing:border-box;margin:auto;border:none;cursor:pointer}.ModalFooterButtonOutlined{background:linear-gradient(var(--emw--color-background, #1E1638) 0 0) padding-box, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%) border-box;border:2px solid transparent}.GradientText{background-image:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);color:transparent;background-clip:text}.ManyActions{display:flex;width:100%;flex-direction:column;align-items:stretch}.ManyActions .ModalFooterButton,.ManyActions .ModalFooterButtonOutlined{width:280px}.ManyActions button:first-child{margin-bottom:16px}.Disabled{opacity:0.5;pointer-events:none;cursor:auto}.ModalReward{font-weight:var(--emw--font-weight-semibold, 600);color:var(--emw--color-typography, #FFFFFF);word-break:break-word}.JackpotWinText{margin:0;font-weight:var(--emw--font-weight-bold, 600);font-size:16px;line-height:20px;color:var(--emw--color-typography, #FFF)}.JackpotWinAmount{margin-top:8px;box-shadow:-0.41px 0.41px 0px 0px rgba(0, 0, 0, 0.1490196078), -0.41px 0.41px 2px 0px rgba(0, 0, 0, 0.5019607843);background:linear-gradient(180deg, #FFB801 15.86%, #FEF746 31.36%, #FBFFE0 36.86%, #FFFA60 47.86%, #FF9400 87.36%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;font-weight:900;font-size:16px;line-height:16px}.SupportInfo{margin-top:20px}.ModalContainer.Mobile .ModalFooterButton,.ModalContainer.Mobile .ModalFooterButtonOutlined{font-size:var(--emw--font-size-small, 14px);min-width:140px;height:32px}.ModalContainer.Mobile .ManyActions .ModalFooterButton,.ModalContainer.Mobile .ManyActions .ModalFooterButtonOutlined{width:100%;height:32px}.ModalContainer.Mobile .ManyActions button:first-child{margin-bottom:8px}.ModalContainer.Mobile .JackpotWinText{font-size:14px;line-height:16px}.ModalContainer.Mobile .JackpotWinAmount{font-size:14px;line-height:14px}.LeftAlign{text-align:left;line-height:1.2}";
|
|
100
|
+
const CasinoEngagementSuiteModalContainerStyle0 = casinoEngagementSuiteModalContainerCss;
|
|
101
|
+
|
|
102
|
+
const CasinoEngagementSuiteModalContainer = class {
|
|
103
|
+
constructor(hostRef) {
|
|
104
|
+
registerInstance(this, hostRef);
|
|
105
|
+
this.closeModal = createEvent(this, "closeModal", 7);
|
|
106
|
+
this.handleCloseClick = (e) => {
|
|
107
|
+
const type = e.currentTarget.getAttribute('data-type');
|
|
108
|
+
this.closeModal.emit(type);
|
|
109
|
+
};
|
|
110
|
+
this.handleChallengeAttendance = () => {
|
|
111
|
+
window.postMessage({
|
|
112
|
+
type: 'ChallengeJoinRequest',
|
|
113
|
+
data: this.confirmationData,
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
this.setClientStyling = () => {
|
|
117
|
+
let sheet = document.createElement('style');
|
|
118
|
+
sheet.innerHTML = this.clientStyling;
|
|
119
|
+
this.host.prepend(sheet);
|
|
120
|
+
};
|
|
121
|
+
this.setClientStylingURL = () => {
|
|
122
|
+
let url = new URL(this.clientStylingUrl);
|
|
123
|
+
let cssFile = document.createElement('style');
|
|
124
|
+
fetch(url.href)
|
|
125
|
+
.then((res) => res.text())
|
|
126
|
+
.then((data) => {
|
|
127
|
+
cssFile.innerHTML = data;
|
|
128
|
+
setTimeout(() => { this.host.prepend(cssFile); }, 1);
|
|
129
|
+
})
|
|
130
|
+
.catch((err) => {
|
|
131
|
+
console.log('Error ', err);
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
this.isModalOpen = (type) => {
|
|
135
|
+
return Boolean(this.openModals.find(el => el === type));
|
|
136
|
+
};
|
|
137
|
+
this.clientStyling = '';
|
|
138
|
+
this.clientStylingUrl = '';
|
|
139
|
+
this.language = 'en';
|
|
140
|
+
this.isJoiningToChallenge = undefined;
|
|
141
|
+
this.device = 'Mobile';
|
|
142
|
+
this.limitStylingAppends = false;
|
|
143
|
+
this.openModals = [];
|
|
144
|
+
this.rewardMessage = '';
|
|
145
|
+
this.hasError = false;
|
|
146
|
+
this.confirmationData = null;
|
|
147
|
+
this.winAmount = { amount: 0, currency: '' };
|
|
148
|
+
}
|
|
149
|
+
openModalHandler(event) {
|
|
150
|
+
const { modalType, rewardMessage, hasError, confirmationData, winAmount } = event.detail;
|
|
151
|
+
if (winAmount) {
|
|
152
|
+
// If jackpot win modal is already opened
|
|
153
|
+
// add won amount to the previous amount
|
|
154
|
+
if (this.isModalOpen('JACKPOT_REWARD_MODAL')) {
|
|
155
|
+
this.winAmount = { amount: this.winAmount.amount + winAmount.amount, currency: winAmount.currency };
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
this.winAmount = winAmount;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
this.openModals = [...this.openModals, modalType];
|
|
162
|
+
this.rewardMessage = rewardMessage;
|
|
163
|
+
this.hasError = hasError;
|
|
164
|
+
if (confirmationData) {
|
|
165
|
+
this.confirmationData = confirmationData;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
closeModalHandler(event) {
|
|
169
|
+
this.openModals = this.openModals.filter(el => el !== event.detail);
|
|
170
|
+
}
|
|
171
|
+
componentDidRender() {
|
|
172
|
+
if (!this.limitStylingAppends && this.host) {
|
|
173
|
+
if (this.clientStyling)
|
|
174
|
+
this.setClientStyling();
|
|
175
|
+
if (this.clientStylingUrl)
|
|
176
|
+
this.setClientStylingURL();
|
|
177
|
+
this.limitStylingAppends = true;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
render() {
|
|
181
|
+
const { ProgressToActivate } = this.confirmationData || {};
|
|
182
|
+
return (h("div", { key: '136c2521b6ce142d9c0dddf9300526e156b937d6', class: `ModalContainer ${this.device}` }, h("casino-engagement-suite-modal", { key: '151a21ef6d3b0e5f3d82ebe45f0a22aa519821bb', isOpen: this.isModalOpen("REWARD_MODAL"), header: "Congratulations!", contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/cup-reward.svg", modalType: "REWARD_MODAL", "show-animation": true, device: this.device }, h("div", { key: '00d4a4ea4d1a790d68a06156b4829b1b181c072f', slot: "body" }, h("div", { key: 'dff1a278e656acaec2aa5045a54dd12226f5ac61' }, translate('won', this.language), " ", h("span", { key: 'bf8eccf6e0221fab5fb319ca05a61917956dc2b0', class: 'ModalReward' }, this.rewardMessage)), this.hasError && (h("div", { key: 'b9ab84114f91fc3e2d80bc5871afd804abb3daab', class: "SupportInfo" }, translate('supportInfo', this.language)))), h("div", { key: 'e45e9a072f5cf1bb5d36d232896dffbeff110621', slot: "footer" }, h("button", { key: 'c76d8b69e2ceef4f93fd01319b79e09e638e4212', class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'REWARD_MODAL' }, translate('continue', this.language)))), h("casino-engagement-suite-modal", { key: 'cd1500c95db9670004deaee3f374aff36dbdb156', isOpen: this.isModalOpen("JACKPOT_REWARD_MODAL"), header: "Congratulations!", contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/cup-reward.svg", "show-animation": true, modalType: "JACKPOT_REWARD_MODAL", device: this.device }, h("div", { key: 'a6832af4eb48940d5c573ed906a7511082c1b59e', slot: "body" }, h("div", { key: 'ad484526c5fbfcd2aa8280f6050c573022b6c04e', class: "JackpotWinText" }, translate('jackpotWin', this.language)), h("div", { key: '3475b1d2824afd37f07cfbbe7db97b15f56f9772', class: "JackpotWinAmount" }, formatBalance(this.winAmount.amount, this.winAmount.currency))), h("div", { key: 'd5da13989c807d509a307fe21e5eb37d2f417926', slot: "footer" }, h("button", { key: '43b080260542d91712e8ae956e6e97e4d51ba4ac', class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'JACKPOT_REWARD_MODAL' }, translate('continue', this.language)), h("div", { key: '145b2a136d92cdf575267d9350ea8c673cac6a21', class: "JackpotWinInfoText" }, translate('jackpotWinInfo', this.language)))), h("casino-engagement-suite-modal", { key: 'ef905b8a730bdae1f03711fecef7b32b15b8d98d', isOpen: this.isModalOpen("TARGET_MODAL"), header: ProgressToActivate ?
|
|
183
|
+
translate('joinHeader', this.language) :
|
|
184
|
+
translate('unJoinHeader', this.language), modalType: "TARGET_MODAL", device: this.device, isLoading: this.isJoiningToChallenge }, h("div", { key: 'cf234ba1fef13cade20db68b8a5c8973fe7a2285', slot: "body" }, h("div", { key: '1ed85c4005cf467491b96e4a1ecc76f635bae15d', class: 'LeftAlign' }, translate('desc', this.language)), h("div", { key: '1cbad96502b6fc3d730ae7301e062728e1030cd6', class: 'LeftAlignQuestion' }, ProgressToActivate ?
|
|
185
|
+
translate('joinQuestion', this.language) :
|
|
186
|
+
translate('unJoinQuestion', this.language))), h("div", { key: 'c288c8eddba30f36c4aa9d59c12c47c84033cecd', slot: "footer", class: 'ManyActions' }, h("button", { key: '184eddbe4d080628f87ab863b2f045d85a2122d5', class: `ModalFooterButton ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleChallengeAttendance }, ProgressToActivate ?
|
|
187
|
+
translate('joinConfirm', this.language) :
|
|
188
|
+
translate('unJoinConfirm', this.language)), h("button", { key: 'aa165d256092a64d907645cc62102156d4caf02b', class: `ModalFooterButtonOutlined ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleCloseClick, "data-type": 'TARGET_MODAL' }, h("div", { key: '5bb286abafdd1676ddb3080fc1e96adfd68af39f', class: 'GradientText' }, ProgressToActivate ?
|
|
189
|
+
translate('joinReject', this.language) :
|
|
190
|
+
translate('unJoinReject', this.language))))), h("casino-engagement-suite-modal", { key: '44ab65b8618af413b70e647ba6d497a581dbff91', isOpen: this.isModalOpen("SUPPORT_MODAL"), header: translate('noReward', this.language), contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/alert.svg", modalType: "SUPPORT_MODAL", device: this.device }, h("div", { key: 'fe6cff805502a17e61d4c9bae8a434635f708e58', slot: "body" }, h("span", { key: 'aae084da0430fc62a484f16c1fe7dc1278955b5e' }, translate('contactSupport', this.language))), h("div", { key: 'ff10b11d061bfafe306491afe8461da76dfd991c', slot: "footer" }, h("button", { key: 'ae2a9345e70d5dd24c7c52aa15a3734464074f81', class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'SUPPORT_MODAL' }, translate('okContinue', this.language))))));
|
|
191
|
+
}
|
|
192
|
+
get host() { return getElement(this); }
|
|
193
|
+
};
|
|
194
|
+
CasinoEngagementSuiteModalContainer.style = CasinoEngagementSuiteModalContainerStyle0;
|
|
195
|
+
|
|
196
|
+
export { CasinoEngagementSuiteModal as casino_engagement_suite_modal, CasinoEngagementSuiteModalContainer as casino_engagement_suite_modal_container };
|