@everymatrix/lottery-ticket-controller 1.77.0 → 1.77.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1fc68b7c.js');
5
+ const index = require('./index-14a6c159.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE$2 = 'en';
8
8
  const SUPPORTED_LANGUAGES$2 = ['ro', 'en', 'hr'];
@@ -109,6 +109,63 @@ const HelperAccordion = class {
109
109
  };
110
110
  HelperAccordion.style = HelperAccordionStyle0;
111
111
 
112
+ /**
113
+ * @name setClientStyling
114
+ * @description Method used to create and append to the passed element of the widget a style element with the content received
115
+ * @param {HTMLElement} stylingContainer The reference element of the widget
116
+ * @param {string} clientStyling The style content
117
+ */
118
+ function setClientStyling(stylingContainer, clientStyling) {
119
+ if (stylingContainer) {
120
+ const sheet = document.createElement('style');
121
+ sheet.innerHTML = clientStyling;
122
+ stylingContainer.appendChild(sheet);
123
+ }
124
+ }
125
+
126
+ /**
127
+ * @name setClientStylingURL
128
+ * @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
129
+ * @param {HTMLElement} stylingContainer The reference element of the widget
130
+ * @param {string} clientStylingUrl The URL of the style content
131
+ */
132
+ function setClientStylingURL(stylingContainer, clientStylingUrl) {
133
+ const url = new URL(clientStylingUrl);
134
+
135
+ fetch(url.href)
136
+ .then((res) => res.text())
137
+ .then((data) => {
138
+ const cssFile = document.createElement('style');
139
+ cssFile.innerHTML = data;
140
+ if (stylingContainer) {
141
+ stylingContainer.appendChild(cssFile);
142
+ }
143
+ })
144
+ .catch((err) => {
145
+ console.error('There was an error while trying to load client styling from URL', err);
146
+ });
147
+ }
148
+
149
+ /**
150
+ * @name setStreamLibrary
151
+ * @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
152
+ * @param {HTMLElement} stylingContainer The highest element of the widget
153
+ * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
154
+ * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
155
+ */
156
+ function setStreamStyling(stylingContainer, domain, subscription) {
157
+ if (window.emMessageBus) {
158
+ const sheet = document.createElement('style');
159
+
160
+ window.emMessageBus.subscribe(domain, (data) => {
161
+ sheet.innerHTML = data;
162
+ if (stylingContainer) {
163
+ stylingContainer.appendChild(sheet);
164
+ }
165
+ });
166
+ }
167
+ }
168
+
112
169
  const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:var(--emw--button-text-color, #000);display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-50, #F1F1F1) 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--button-border-color, #00958f)}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-gray-100, #D4D4D4);border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.Bonus{background:var(--emw--color-error, #FF3D00)}";
113
170
  const LotteryBulletStyle0 = lotteryBulletCss;
114
171
 
@@ -125,40 +182,47 @@ const LotteryBullet = class {
125
182
  });
126
183
  }
127
184
  };
128
- this.setClientStyling = () => {
129
- let sheet = document.createElement('style');
130
- sheet.innerHTML = this.clientStyling;
131
- this.stylingContainer.prepend(sheet);
132
- };
133
- this.setClientStylingURL = () => {
134
- let cssFile = document.createElement('style');
135
- setTimeout(() => {
136
- cssFile.innerHTML = this.clientStylingUrlContent;
137
- this.stylingContainer.prepend(cssFile);
138
- }, 1);
139
- };
140
185
  this.value = '0';
141
186
  this.selectable = true;
142
187
  this.isSelected = false;
143
188
  this.isBonus = false;
144
189
  this.clientStyling = '';
145
- this.clientStylingUrlContent = '';
146
- this.limitStylingAppends = false;
190
+ this.clientStylingUrl = '';
191
+ this.mbSource = undefined;
147
192
  }
148
- componentDidRender() {
149
- // start custom styling area
150
- if (!this.limitStylingAppends && this.stylingContainer) {
193
+ handleClientStylingChange(newValue, oldValue) {
194
+ if (newValue != oldValue) {
195
+ setClientStyling(this.stylingContainer, this.clientStyling);
196
+ }
197
+ }
198
+ handleClientStylingUrlChange(newValue, oldValue) {
199
+ if (newValue != oldValue) {
200
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
201
+ }
202
+ }
203
+ handleMbSourceChange(newValue, oldValue) {
204
+ if (newValue != oldValue) {
205
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
206
+ }
207
+ }
208
+ componentDidLoad() {
209
+ if (this.stylingContainer) {
210
+ if (this.mbSource)
211
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
151
212
  if (this.clientStyling)
152
- this.setClientStyling();
153
- if (this.clientStylingUrlContent)
154
- this.setClientStylingURL();
155
- this.limitStylingAppends = true;
213
+ setClientStyling(this.stylingContainer, this.clientStyling);
214
+ if (this.clientStylingUrl)
215
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
156
216
  }
157
- // end custom styling area
158
217
  }
159
218
  render() {
160
- return (index.h("div", { key: 'a21cbee8f556bfbbe9f97be5f44bfc08b6f24dd6', class: 'Circle ' + (this.selectable ? '' : 'Disabled') + (this.isSelected ? 'Selected' : '') + (this.isBonus ? ' Bonus' : ''), onClick: () => this.select(), ref: el => this.stylingContainer = el }, this.value));
219
+ return (index.h("div", { key: '2cfab600728d3aa72f9f87e4e07a968ea030e415', class: 'Circle ' + (this.selectable ? '' : 'Disabled') + (this.isSelected ? 'Selected' : '') + (this.isBonus ? ' Bonus' : ''), onClick: () => this.select(), ref: el => this.stylingContainer = el }, this.value));
161
220
  }
221
+ static get watchers() { return {
222
+ "clientStyling": ["handleClientStylingChange"],
223
+ "clientStylingUrl": ["handleClientStylingUrlChange"],
224
+ "mbSource": ["handleMbSourceChange"]
225
+ }; }
162
226
  };
163
227
  LotteryBullet.style = LotteryBulletStyle0;
164
228
 
@@ -172,18 +236,6 @@ const LotteryGrid = class {
172
236
  this.gridDirtyEvent = index.createEvent(this, "gridDirty", 7);
173
237
  this.gridClearAllEvent = index.createEvent(this, "gridClearAllEvent", 7);
174
238
  this.selectedCounter = 0;
175
- this.setClientStyling = () => {
176
- let sheet = document.createElement('style');
177
- sheet.innerHTML = this.clientStyling;
178
- this.stylingContainer.prepend(sheet);
179
- };
180
- this.setClientStylingURL = () => {
181
- let cssFile = document.createElement('style');
182
- setTimeout(() => {
183
- cssFile.innerHTML = this.clientStylingUrlContent;
184
- this.stylingContainer.prepend(cssFile);
185
- }, 1);
186
- };
187
239
  this.ticketId = undefined;
188
240
  this.totalNumbers = 0;
189
241
  this.gameId = undefined;
@@ -198,14 +250,39 @@ const LotteryGrid = class {
198
250
  this.gridIndex = undefined;
199
251
  this.gridType = '';
200
252
  this.clientStyling = '';
201
- this.clientStylingUrlContent = '';
253
+ this.clientStylingUrl = '';
254
+ this.mbSource = undefined;
202
255
  this.highNumber = 47;
203
256
  this.lowNumber = 1;
204
257
  this.selectionType = 'mainSelection';
205
258
  this.partialQuickpickAvailable = false;
206
259
  this.numbers = [];
207
260
  this.bonusNumbers = [];
208
- this.limitStylingAppends = false;
261
+ }
262
+ handleClientStylingChange(newValue, oldValue) {
263
+ if (newValue != oldValue) {
264
+ setClientStyling(this.stylingContainer, this.clientStyling);
265
+ }
266
+ }
267
+ handleClientStylingUrlChange(newValue, oldValue) {
268
+ if (newValue != oldValue) {
269
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
270
+ }
271
+ }
272
+ handleMbSourceChange(newValue, oldValue) {
273
+ if (newValue != oldValue) {
274
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
275
+ }
276
+ }
277
+ componentDidLoad() {
278
+ if (this.stylingContainer) {
279
+ if (this.mbSource)
280
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
281
+ if (this.clientStyling)
282
+ setClientStyling(this.stylingContainer, this.clientStyling);
283
+ if (this.clientStylingUrl)
284
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
285
+ }
209
286
  }
210
287
  connectedCallback() {
211
288
  let selected = [];
@@ -242,17 +319,6 @@ const LotteryGrid = class {
242
319
  });
243
320
  }
244
321
  }
245
- componentDidRender() {
246
- // start custom styling area
247
- if (!this.limitStylingAppends && this.stylingContainer) {
248
- if (this.clientStyling)
249
- this.setClientStyling();
250
- if (this.clientStylingUrlContent)
251
- this.setClientStylingURL();
252
- this.limitStylingAppends = true;
253
- }
254
- // end custom styling area
255
- }
256
322
  // wrote this because the classic .sort(() => 0.5 - Math.random()) method yielded low entropy shuffles for some reason on certain devices
257
323
  shuffleArray(array) {
258
324
  const result = [];
@@ -378,8 +444,13 @@ const LotteryGrid = class {
378
444
  }
379
445
  }
380
446
  render() {
381
- return (index.h("div", { key: '8ad436904a126e6bee036c7372cf45c075022e5f', class: "GridContainer", ref: el => this.stylingContainer = el }, index.h("div", { key: '5a8818209485f0808a99978910f6f26473dd6f59', class: this.gridType === 'ticket' ? 'Grid TicketGrid' : 'Grid' }, this.numbers.map((item) => index.h("div", null, index.h("lottery-bullet", { value: item.number, selectable: item.selectable, "is-selected": item.selected, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }))), this.bonusNumbers.length ? this.bonusNumbers.map((item) => index.h("div", null, index.h("lottery-bullet", { value: item.number, selectable: item.selectable, "is-selected": item.selected, "is-bonus": true, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }))) : '')));
447
+ return (index.h("div", { key: 'f62b5b1e5a6cf7bcaa13ce2c8a281bc93fa439f7', class: "GridContainer", ref: el => this.stylingContainer = el }, index.h("div", { key: 'e381adbfff57e2cc343188c46037eb45ab798cac', class: this.gridType === 'ticket' ? 'Grid TicketGrid' : 'Grid' }, this.numbers.map((item) => index.h("div", null, index.h("lottery-bullet", { value: item.number, selectable: item.selectable, "is-selected": item.selected, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))), this.bonusNumbers.length ? this.bonusNumbers.map((item) => index.h("div", null, index.h("lottery-bullet", { value: item.number, selectable: item.selectable, "is-selected": item.selected, "is-bonus": true, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))) : '')));
382
448
  }
449
+ static get watchers() { return {
450
+ "clientStyling": ["handleClientStylingChange"],
451
+ "clientStylingUrl": ["handleClientStylingUrlChange"],
452
+ "mbSource": ["handleMbSourceChange"]
453
+ }; }
383
454
  };
384
455
  LotteryGrid.style = LotteryGridStyle0;
385
456
 
@@ -7132,18 +7203,6 @@ const LotteryTicket = class {
7132
7203
  this.drawMultiplierChange = index.createEvent(this, "drawMultiplierChange", 7);
7133
7204
  this.lineMultiplierChange = index.createEvent(this, "lineMultiplierChange", 7);
7134
7205
  this.betTypeChange = index.createEvent(this, "betTypeChange", 7);
7135
- this.setClientStyling = () => {
7136
- let sheet = document.createElement('style');
7137
- sheet.innerHTML = this.clientStyling;
7138
- this.stylingContainer.prepend(sheet);
7139
- };
7140
- this.setClientStylingURL = () => {
7141
- let cssFile = document.createElement('style');
7142
- setTimeout(() => {
7143
- cssFile.innerHTML = this.clientStylingUrlContent;
7144
- this.stylingContainer.prepend(cssFile);
7145
- }, 1);
7146
- };
7147
7206
  this.endpoint = undefined;
7148
7207
  this.gameId = undefined;
7149
7208
  this.numberOfGrids = 1;
@@ -7153,14 +7212,14 @@ const LotteryTicket = class {
7153
7212
  this.autoPick = false;
7154
7213
  this.language = 'en';
7155
7214
  this.clientStyling = '';
7156
- this.clientStylingUrlContent = '';
7215
+ this.clientStylingUrl = '';
7216
+ this.mbSource = undefined;
7157
7217
  this.translationUrl = undefined;
7158
7218
  this.isLoading = true;
7159
7219
  this.hasErrors = false;
7160
7220
  this.ticketDone = [];
7161
7221
  this.isCustomSelect = false;
7162
7222
  this.amountInfo = {};
7163
- this.limitStylingAppends = false;
7164
7223
  this.stakeMultiplier = '1';
7165
7224
  this.lineMultiplier = 0;
7166
7225
  this.isCustomSelectStake = false;
@@ -7219,6 +7278,21 @@ const LotteryTicket = class {
7219
7278
  betType: this.playType[0]
7220
7279
  });
7221
7280
  }
7281
+ handleClientStylingChange(newValue, oldValue) {
7282
+ if (newValue != oldValue) {
7283
+ setClientStyling(this.stylingContainer, this.clientStyling);
7284
+ }
7285
+ }
7286
+ handleClientStylingUrlChange(newValue, oldValue) {
7287
+ if (newValue != oldValue) {
7288
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
7289
+ }
7290
+ }
7291
+ handleMbSourceChange(newValue, oldValue) {
7292
+ if (newValue != oldValue) {
7293
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
7294
+ }
7295
+ }
7222
7296
  checkForClickOutside(ev) {
7223
7297
  if (this.selectRef && !this.selectRef.contains(ev.composedPath()[0])) {
7224
7298
  this.isCustomSelect = false;
@@ -7300,16 +7374,15 @@ const LotteryTicket = class {
7300
7374
  getTranslations$1(JSON.parse(this.translationUrl));
7301
7375
  }
7302
7376
  }
7303
- componentDidRender() {
7304
- // start custom styling area
7305
- if (!this.limitStylingAppends && this.stylingContainer) {
7377
+ componentDidLoad() {
7378
+ if (this.stylingContainer) {
7379
+ if (this.mbSource)
7380
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
7306
7381
  if (this.clientStyling)
7307
- this.setClientStyling();
7308
- if (this.clientStylingUrlContent)
7309
- this.setClientStylingURL();
7310
- this.limitStylingAppends = true;
7382
+ setClientStyling(this.stylingContainer, this.clientStyling);
7383
+ if (this.clientStylingUrl)
7384
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
7311
7385
  }
7312
- // end custom styling area
7313
7386
  }
7314
7387
  gridFilledHandler(event) {
7315
7388
  this.ticket = Object.assign(Object.assign({}, event.detail), { drawCount: this.drawMultiplier, multiplierNum: Number(this.stakeMultiplier), multiplier: this.gameData.rules.stakeMultiplierAvailable, quickPicks: this.quickPicks, betName: this.playType.length > 1 ? this.playType.find((item) => item.value === this.selectedPlayTypeId).label : this.groupType[this.tabIndex].groupName });
@@ -7438,8 +7511,8 @@ const LotteryTicket = class {
7438
7511
  index.h("div", null, index.h("label", { class: "Label" }, translate$1('playType', this.language), ": "), index.h("vaadin-select", { style: { 'width': '160px' }, items: this.playType, value: this.selectedPlayTypeId, "on-value-changed": (e) => this.handlePlayTypeChange(e.detail.value) })), this.boardsAllowed.length > 1 &&
7439
7512
  index.h("div", null, index.h("label", { class: "Label" }, translate$1('lines', this.language), ": "), index.h("div", { class: "WagerInput" }, index.h("div", { ref: el => this.selectLineRef = el, class: this.isCustomSelectLine ? "SelectWrapper SelectActive" : "SelectWrapper" }, index.h("div", { class: "SelectButton", onClick: () => this.toggleLineSelection() }, index.h("span", null, this.lineMultiplier), index.h("span", { class: "SelectExpand" }, "\u25BC")), index.h("div", { class: "SelectContent" }, index.h("ul", { class: "SelectOptions" }, this.boardsAllowed.map((item) => index.h("li", { class: this.lineMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setLineMultiplier(item) }, item))))))), this.grids.map((_, index$1) => index.h("div", null, index.h("div", { class: "TicketGridHeader" }, index.h("div", null, translate$1('lineName', this.language), index$1 + 1), this.resetButton && this.ticketDone[index$1] &&
7440
7513
  index.h("div", { class: "ButtonContainer" }, index.h("a", { class: "ResetButton", onClick: () => this.toggleResetSelection(index$1) }, translate$1('resetButton', this.language))), this.autoPick && !this.ticketDone[index$1] &&
7441
- index.h("div", { class: "ButtonContainer" }, index.h("a", { class: "AutoButton", onClick: () => this.toggleAutoSelection(index$1) }, translate$1('autoButton', this.language)))), index.h("div", { class: "TicketGridBullets" }, index.h("p", { class: "TicketGridTitle" }, rules.boards[0].selectionName), index.h("lottery-grid", { "grid-index": index$1, "maximum-allowed": this.maximumAllowed, "minimum-allowed": this.minimumAllowed, "number-range": JSON.stringify(this.numberRange), "high-number": rules.boards[0].highNumber, "low-number": rules.boards[0].lowNumber, "total-numbers": rules.boards[0].highNumber - rules.boards[0].lowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'mainSelection', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })), this.secondarySelectionAllowed &&
7442
- index.h("div", { class: "SecondarySelectionWrapper" }, index.h("div", { class: "TicketGridBullets" }, index.h("p", { class: "TicketGridTitle" }, rules.boards[0].secondarySelectionName), index.h("lottery-grid", { "grid-index": index$1, "maximum-allowed": this.secondaryMaximumAllowed, "minimum-allowed": this.secondaryMinimumAllowed, "number-range": JSON.stringify(this.secondaryNumberRange), "high-number": rules.boards[0].secondaryHighNumber, "low-number": rules.boards[0].secondaryLowNumber, "total-numbers": rules.boards[0].secondaryHighNumber - rules.boards[0].secondaryLowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'secondarySelection', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }))))), rules.stakeMultiplierAvailable &&
7514
+ index.h("div", { class: "ButtonContainer" }, index.h("a", { class: "AutoButton", onClick: () => this.toggleAutoSelection(index$1) }, translate$1('autoButton', this.language)))), index.h("div", { class: "TicketGridBullets" }, index.h("p", { class: "TicketGridTitle" }, rules.boards[0].selectionName), index.h("lottery-grid", { "grid-index": index$1, "maximum-allowed": this.maximumAllowed, "minimum-allowed": this.minimumAllowed, "number-range": JSON.stringify(this.numberRange), "high-number": rules.boards[0].highNumber, "low-number": rules.boards[0].lowNumber, "total-numbers": rules.boards[0].highNumber - rules.boards[0].lowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'mainSelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), this.secondarySelectionAllowed &&
7515
+ index.h("div", { class: "SecondarySelectionWrapper" }, index.h("div", { class: "TicketGridBullets" }, index.h("p", { class: "TicketGridTitle" }, rules.boards[0].secondarySelectionName), index.h("lottery-grid", { "grid-index": index$1, "maximum-allowed": this.secondaryMaximumAllowed, "minimum-allowed": this.secondaryMinimumAllowed, "number-range": JSON.stringify(this.secondaryNumberRange), "high-number": rules.boards[0].secondaryHighNumber, "low-number": rules.boards[0].secondaryLowNumber, "total-numbers": rules.boards[0].secondaryHighNumber - rules.boards[0].secondaryLowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'secondarySelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))))), rules.stakeMultiplierAvailable &&
7443
7516
  index.h("div", null, index.h("label", { class: "Label" }, translate$1('multiplier', this.language), ": "), index.h("div", { class: "WagerInput" }, rules.stakeMultipliers.length > 1 ?
7444
7517
  (index.h("div", { ref: el => this.selectStakeRef = el, class: this.isCustomSelectStake ? "SelectWrapper SelectActive" : "SelectWrapper" }, index.h("div", { class: "SelectButton", onClick: () => this.toggleSelection() }, index.h("span", null, this.stakeMultiplier), index.h("span", { class: "SelectExpand" }, "\u25BC")), index.h("div", { class: "SelectContent" }, index.h("ul", { class: "SelectOptions" }, rules.stakeMultipliers.map((item) => index.h("li", { class: this.stakeMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setStakeMultiplier(item) }, item)))))) : (index.h("div", null, index.h("input", { min: "1", value: rules.stakeMultipliers[0] || 1, type: "number", disabled: true }))))), rules.drawMultiplierAvailable &&
7445
7518
  index.h("div", null, index.h("label", { class: "Label" }, translate$1('numberOfDraws', this.language), ": "), index.h("div", { class: "WagerInput" }, rules.durations.length > 1 ?
@@ -7450,7 +7523,10 @@ const LotteryTicket = class {
7450
7523
  }
7451
7524
  static get watchers() { return {
7452
7525
  "lineMultiplier": ["handleLineMultiplierChange"],
7453
- "tabIndex": ["handleTabIndexChange"]
7526
+ "tabIndex": ["handleTabIndexChange"],
7527
+ "clientStyling": ["handleClientStylingChange"],
7528
+ "clientStylingUrl": ["handleClientStylingUrlChange"],
7529
+ "mbSource": ["handleMbSourceChange"]
7454
7530
  }; }
7455
7531
  };
7456
7532
  LotteryTicket.style = LotteryTicketStyle0;
@@ -7493,18 +7569,6 @@ const LotteryTicketController = class {
7493
7569
  constructor(hostRef) {
7494
7570
  index.registerInstance(this, hostRef);
7495
7571
  this.deleteTicketEvent = index.createEvent(this, "deleteTicket", 7);
7496
- this.setClientStyling = () => {
7497
- let sheet = document.createElement('style');
7498
- sheet.innerHTML = this.clientStyling;
7499
- this.stylingContainer.prepend(sheet);
7500
- };
7501
- this.setClientStylingURL = () => {
7502
- let cssFile = document.createElement('style');
7503
- setTimeout(() => {
7504
- cssFile.innerHTML = this.clientStylingUrlContent;
7505
- this.stylingContainer.prepend(cssFile);
7506
- }, 1);
7507
- };
7508
7572
  this.endpoint = '';
7509
7573
  this.ticketId = 1;
7510
7574
  this.ticketDescription = undefined;
@@ -7519,9 +7583,9 @@ const LotteryTicketController = class {
7519
7583
  this.resetButton = false;
7520
7584
  this.totalControllers = 1;
7521
7585
  this.clientStyling = '';
7522
- this.clientStylingUrlContent = '';
7586
+ this.clientStylingUrl = '';
7587
+ this.mbSource = undefined;
7523
7588
  this.translationUrl = undefined;
7524
- this.limitStylingAppends = false;
7525
7589
  }
7526
7590
  // @TODO fix the `any` type
7527
7591
  helperAccordionActionHandler() {
@@ -7537,20 +7601,39 @@ const LotteryTicketController = class {
7537
7601
  getTranslations(JSON.parse(this.translationUrl));
7538
7602
  }
7539
7603
  }
7540
- componentDidRender() {
7541
- // start custom styling area
7542
- if (!this.limitStylingAppends && this.stylingContainer) {
7604
+ handleClientStylingChange(newValue, oldValue) {
7605
+ if (newValue != oldValue) {
7606
+ setClientStyling(this.stylingContainer, this.clientStyling);
7607
+ }
7608
+ }
7609
+ handleClientStylingUrlChange(newValue, oldValue) {
7610
+ if (newValue != oldValue) {
7611
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
7612
+ }
7613
+ }
7614
+ handleMbSourceChange(newValue, oldValue) {
7615
+ if (newValue != oldValue) {
7616
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
7617
+ }
7618
+ }
7619
+ componentDidLoad() {
7620
+ if (this.stylingContainer) {
7621
+ if (this.mbSource)
7622
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
7543
7623
  if (this.clientStyling)
7544
- this.setClientStyling();
7545
- if (this.clientStylingUrlContent)
7546
- this.setClientStylingURL();
7547
- this.limitStylingAppends = true;
7624
+ setClientStyling(this.stylingContainer, this.clientStyling);
7625
+ if (this.clientStylingUrl)
7626
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
7548
7627
  }
7549
- // end custom styling area
7550
7628
  }
7551
7629
  render() {
7552
- return (index.h("div", { key: '581989035aa42a397cd39a4cdd929ea91190494c', class: "LotteryTicketControllerContainer", ref: el => this.stylingContainer = el }, index.h("helper-accordion", { key: '724d50d1532510344ed7acd57c3c5faef17aef8c', "header-title": `${translate('ticket', this.language)} ${this.ticketId}`, "header-subtitle": this.ticketDescription, footer: true, "delete-tab": this.totalControllers !== 1, collapsed: !this.last || this.collapsed, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, index.h("div", { key: 'ba851ea2792641971a5552a94558fe8d28068187', slot: "accordionContent" }, index.h("lottery-ticket", { key: '199abc15160d60499d7d1d1d14084f64a6314c53', endpoint: this.endpoint, "game-id": this.gameId, "ticket-id": this.ticketId, "number-of-grids": this.numberOfGrids, language: this.language, "translation-url": this.translationUrl, "reset-button": this.resetButton, "auto-pick": this.autoPick, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })))));
7630
+ return (index.h("div", { key: '28756fcff01b738bfe8339114445032a5da757c2', class: "LotteryTicketControllerContainer", ref: el => this.stylingContainer = el }, index.h("helper-accordion", { key: '18a566d1c97ccbf74cd759215df3a18faf5c43dc', "header-title": `${translate('ticket', this.language)} ${this.ticketId}`, "header-subtitle": this.ticketDescription, footer: true, "delete-tab": this.totalControllers !== 1, collapsed: !this.last || this.collapsed, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }, index.h("div", { key: '3a056f64dc8572b66f50cb151adde2caea2cd427', slot: "accordionContent" }, index.h("lottery-ticket", { key: '06a0696b79840c05381429b1b87af94b478b09f0', endpoint: this.endpoint, "game-id": this.gameId, "ticket-id": this.ticketId, "number-of-grids": this.numberOfGrids, language: this.language, "translation-url": this.translationUrl, "reset-button": this.resetButton, "auto-pick": this.autoPick, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })))));
7553
7631
  }
7632
+ static get watchers() { return {
7633
+ "clientStyling": ["handleClientStylingChange"],
7634
+ "clientStylingUrl": ["handleClientStylingUrlChange"],
7635
+ "mbSource": ["handleMbSourceChange"]
7636
+ }; }
7554
7637
  };
7555
7638
  LotteryTicketController.style = LotteryTicketControllerStyle0;
7556
7639
 
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'lottery-ticket-controller';
24
- const BUILD = /* lottery-ticket-controller */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* lottery-ticket-controller */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
27
  Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
@@ -861,6 +861,9 @@ var postUpdateComponent = (hostRef) => {
861
861
  {
862
862
  addHydratedFlag(elm);
863
863
  }
864
+ {
865
+ safeCall(instance, "componentDidLoad");
866
+ }
864
867
  endPostUpdate();
865
868
  {
866
869
  hostRef.$onReadyResolve$(elm);
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1fc68b7c.js');
5
+ const index = require('./index-14a6c159.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["helper-accordion_5.cjs",[[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"limitStylingAppends":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showContent":[32],"limitStylingAppends":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
11
+ return index.bootstrapLazy([["helper-accordion_5.cjs",[[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"]},[[0,"helperAccordionAction","helperAccordionActionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showContent":[32],"limitStylingAppends":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1fc68b7c.js');
5
+ const index = require('./index-14a6c159.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["helper-accordion_5.cjs",[[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"limitStylingAppends":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showContent":[32],"limitStylingAppends":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
22
+ return index.bootstrapLazy([["helper-accordion_5.cjs",[[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"]},[[0,"helperAccordionAction","helperAccordionActionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showContent":[32],"limitStylingAppends":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;