@everymatrix/lottery-draw-results 1.76.12 → 1.76.14

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.
Files changed (27) hide show
  1. package/dist/cjs/{index-d192649c.js → index-d95e894d.js} +31 -5
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/lottery-bullet_3.cjs.entry.js +153 -75
  4. package/dist/cjs/lottery-draw-results.cjs.js +2 -2
  5. package/dist/collection/components/lottery-draw-results/lottery-draw-results.js +59 -28
  6. package/dist/esm/{index-db0ed104.js → index-09d3e1f2.js} +31 -5
  7. package/dist/esm/loader.js +3 -3
  8. package/dist/esm/lottery-bullet_3.entry.js +153 -75
  9. package/dist/esm/lottery-draw-results.js +3 -3
  10. package/dist/lottery-draw-results/{index-db0ed104.js → index-09d3e1f2.js} +2 -2
  11. package/dist/lottery-draw-results/lottery-bullet_3.entry.js +1 -1
  12. package/dist/lottery-draw-results/lottery-draw-results.esm.js +1 -1
  13. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.d.ts +2 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.dev.d.ts +2 -0
  15. package/dist/types/{builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/tools/plugins/index.d.ts → Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/tools/plugins/index.d.ts } +1 -0
  16. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  17. package/dist/types/components/lottery-draw-results/lottery-draw-results.d.ts +10 -5
  18. package/dist/types/components.d.ts +10 -2
  19. package/package.json +1 -1
  20. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.d.ts +0 -2
  21. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  23. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/storybook/main.d.ts +0 -0
  24. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/storybook/preview.d.ts +0 -0
  25. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  26. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  27. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,23 +1,12 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { translate, getTranslations } from "../../utils/locale.utils";
3
+ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
3
4
  import { format } from "date-fns";
4
5
  import "../../../../../lottery-grid/dist/types/index";
5
6
  export class LotteryDrawResults {
6
7
  constructor() {
7
8
  this.ticketDrawDetails = [];
8
9
  this.ticketDrawDetailsFlag = true;
9
- this.setClientStyling = () => {
10
- let sheet = document.createElement('style');
11
- sheet.innerHTML = this.clientStyling;
12
- this.stylingContainer.prepend(sheet);
13
- };
14
- this.setClientStylingURL = () => {
15
- let cssFile = document.createElement('style');
16
- setTimeout(() => {
17
- cssFile.innerHTML = this.clientStylingUrlContent;
18
- this.stylingContainer.prepend(cssFile);
19
- }, 1);
20
- };
21
10
  this.displayPrizeCategory = (details, drawDetail) => {
22
11
  const prizeMap = new Map();
23
12
  details.forEach((detail) => {
@@ -71,7 +60,8 @@ export class LotteryDrawResults {
71
60
  this.ticketNumbers = '';
72
61
  this.sessionId = '';
73
62
  this.clientStyling = '';
74
- this.clientStylingUrlContent = '';
63
+ this.clientStylingUrl = '';
64
+ this.mbSource = undefined;
75
65
  this.ticketDrawData = '';
76
66
  this.historyDrawData = '';
77
67
  this.tabValue = '';
@@ -84,10 +74,24 @@ export class LotteryDrawResults {
84
74
  this.ticketDataLoaded = false;
85
75
  this.ticketDraws = [];
86
76
  this.toggleDrawer = [false];
87
- this.limitStylingAppends = false;
88
77
  this.drawData = undefined;
89
78
  this.resultMap = { Won: "Win", Lost: "Lose" };
90
79
  }
80
+ handleClientStylingChange(newValue, oldValue) {
81
+ if (newValue != oldValue) {
82
+ setClientStyling(this.stylingContainer, this.clientStyling);
83
+ }
84
+ }
85
+ handleClientStylingUrlChange(newValue, oldValue) {
86
+ if (newValue != oldValue) {
87
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
88
+ }
89
+ }
90
+ handleMbSourceChange(newValue, oldValue) {
91
+ if (newValue != oldValue) {
92
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
93
+ }
94
+ }
91
95
  componentWillLoad() {
92
96
  if (this.translationUrl) {
93
97
  getTranslations(JSON.parse(this.translationUrl));
@@ -122,16 +126,15 @@ export class LotteryDrawResults {
122
126
  this.ticketDrawDetailsFlag = false;
123
127
  }
124
128
  }
125
- componentDidRender() {
126
- // start custom styling area
127
- if (!this.limitStylingAppends && this.stylingContainer) {
129
+ componentDidLoad() {
130
+ if (this.stylingContainer) {
131
+ if (this.mbSource)
132
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
128
133
  if (this.clientStyling)
129
- this.setClientStyling();
130
- if (this.clientStylingUrlContent)
131
- this.setClientStylingURL();
132
- this.limitStylingAppends = true;
134
+ setClientStyling(this.stylingContainer, this.clientStyling);
135
+ if (this.clientStylingUrl)
136
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
133
137
  }
134
- // end custom styling area
135
138
  }
136
139
  getDrawData(drawId) {
137
140
  this.isLoading = true;
@@ -190,11 +193,11 @@ export class LotteryDrawResults {
190
193
  else {
191
194
  return (h("section", { class: "DrawResultsSection", ref: el => this.stylingContainer = el }, this.drawMode ?
192
195
  h("div", { class: "DrawResultsArea" }, this.drawData &&
193
- h("div", null, h("div", { class: "DrawResultsHeader" }, h("span", null, translate('drawId', this.language), ": ", this.drawData.id), h("span", null, translate('drawDate', this.language), ": ", format(new Date(this.drawData.date), 'dd/MM/yyyy'))), h("div", { class: "DrawResultsBody" }, h("div", { class: "DrawNumbersGrid" }, h("p", null, translate('drawNumbersGridDraw', this.language)), h("div", { class: "BulletContainer" }, h("lottery-grid", { "selected-numbers": this.drawData.winningNumbers.length && this.drawData.winningNumbers[0]['numbers'].join(','), "secondary-numbers": this.drawData.winningNumbers.length ? this.drawData.winningNumbers[0]['secondaryNumbers'].join(',') : '', "display-selected": true, selectable: false, language: this.language, "grid-type": 'ticket', "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })), h("div", { class: "DrawPrizes" }, h("label", { class: "Label" }, translate('prize', this.language), " "), this.drawData.prizes.length ? h("div", null, " ", this.drawData.prizes.filter(item => item.division !== 'None').map((prize) => h("div", null, h("span", { style: { 'margin-right': '5px' } }, prize.division, ":"), h("span", { style: { 'margin-right': '4px' } }, " ", this.thousandSeperator(prize.amount.value)), h("span", null, prize.amount.currency)))) : h("div", null, "None"))))))
196
+ h("div", null, h("div", { class: "DrawResultsHeader" }, h("span", null, translate('drawId', this.language), ": ", this.drawData.id), h("span", null, translate('drawDate', this.language), ": ", format(new Date(this.drawData.date), 'dd/MM/yyyy'))), h("div", { class: "DrawResultsBody" }, h("div", { class: "DrawNumbersGrid" }, h("p", null, translate('drawNumbersGridDraw', this.language)), h("div", { class: "BulletContainer" }, h("lottery-grid", { "selected-numbers": this.drawData.winningNumbers.length && this.drawData.winningNumbers[0]['numbers'].join(','), "secondary-numbers": this.drawData.winningNumbers.length ? this.drawData.winningNumbers[0]['secondaryNumbers'].join(',') : '', "display-selected": true, selectable: false, language: this.language, "grid-type": 'ticket', "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), h("div", { class: "DrawPrizes" }, h("label", { class: "Label" }, translate('prize', this.language), " "), this.drawData.prizes.length ? h("div", null, " ", this.drawData.prizes.filter(item => item.division !== 'None').map((prize) => h("div", null, h("span", { style: { 'margin-right': '5px' } }, prize.division, ":"), h("span", { style: { 'margin-right': '4px' } }, " ", this.thousandSeperator(prize.amount.value)), h("span", null, prize.amount.currency)))) : h("div", null, "None"))))))
194
197
  :
195
198
  h("div", { class: "DrawResultsArea TicketDraws" }, h("div", { class: "DrawResultsBody" }, h("div", { class: "TicketIdContainer" }, h("label", { class: "Label" }, translate('ticketId', this.language), ": ", h("span", null, this.ticketId))), h("div", { class: "TicketTypeContainer" }, h("label", { class: "Label" }, translate('ticketType', this.language), ": ", h("span", null, this.ticketType))), h("div", { class: "TicketAmountContainer" }, h("label", { class: "Label" }, translate('ticketAmount', this.language), ": ", h("span", null, `${this.thousandSeperator(this.ticketAmount)} ${this.ticketCurrency}`))), h("div", { class: "DrawNumbersGrid" }, this.gridNumbers.map((grid, index) => {
196
199
  var _a;
197
- return h("div", null, h("label", { class: "Label" }, translate('drawNumbersGridTicket', this.language), ":"), h("div", { class: "BulletContainer" }, h("lottery-grid", { "selected-numbers": grid.join(','), "secondary-numbers": (_a = this.gridSecondaryNumbers[index]) === null || _a === void 0 ? void 0 : _a.join(','), selectable: false, "display-selected": true, language: this.language, "translation-url": this.translationUrl, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })));
200
+ return h("div", null, h("label", { class: "Label" }, translate('drawNumbersGridTicket', this.language), ":"), h("div", { class: "BulletContainer" }, h("lottery-grid", { "selected-numbers": grid.join(','), "secondary-numbers": (_a = this.gridSecondaryNumbers[index]) === null || _a === void 0 ? void 0 : _a.join(','), selectable: false, "display-selected": true, language: this.language, "translation-url": this.translationUrl, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })));
198
201
  })), this.ticketMultiplier &&
199
202
  h("div", { class: "DrawMultipler" }, h("label", { class: "Label" }, translate('multiplierNum', this.language), ": ", this.thousandSeperator(this.ticketMultiplierNum))), h("div", { class: "NumberOfDrawsContainer" }, h("label", { class: "Label" }, translate('numberOfDraws', this.language), ": ", this.thousandSeperator(this.ticketDrawCount)), h("div", { class: "DrawTicketsContainer" }, this.ticketDrawDetails && this.ticketDrawDetails.length > 0 &&
200
203
  h("div", { class: "ExpandableBoxes" }, this.ticketDrawDetails.map((drawDetail, index) => {
@@ -204,7 +207,7 @@ export class LotteryDrawResults {
204
207
  h("div", { class: "DrawIdContainer" }, h("p", null, translate('drawId', this.language), ": ", drawDetail.drawId))), h("div", { class: "ExpandableBoxBody" }, h("div", { class: "DrawIdContainer" }, h("p", null, translate('drawId', this.language), ": ", drawDetail.drawId)), h("div", { class: "DrawDateContainer" }, h("p", null, translate('drawDate', this.language), ": ", (_a = drawDetail.drawData) === null || _a === void 0 ? void 0 :
205
208
  _a.date.slice(0, 10), " | ", (_b = drawDetail.drawData) === null || _b === void 0 ? void 0 :
206
209
  _b.date.slice(11, 19))), h("div", { class: "DrawNumbersGrid" }, drawDetail.drawData &&
207
- h("div", { class: 'BulletContainer' }, h("label", { class: "Label" }, translate('drawNumbersGridDraw', this.language), ":"), h("lottery-grid", { "selected-numbers": ((_d = (_c = drawDetail.drawData) === null || _c === void 0 ? void 0 : _c.winningNumbers) === null || _d === void 0 ? void 0 : _d.length) && ((_e = drawDetail.drawData.winningNumbers[0]['numbers']) === null || _e === void 0 ? void 0 : _e.join(',')), "secondary-numbers": ((_g = (_f = drawDetail.drawData) === null || _f === void 0 ? void 0 : _f.winningNumbers) === null || _g === void 0 ? void 0 : _g.length) && ((_h = drawDetail.drawData.winningNumbers[0]['secondaryNumbers']) === null || _h === void 0 ? void 0 : _h.join(',')), selectable: false, "display-selected": true, language: this.language, "translation-url": this.translationUrl, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }))), drawDetail.details.length > 0 &&
210
+ h("div", { class: 'BulletContainer' }, h("label", { class: "Label" }, translate('drawNumbersGridDraw', this.language), ":"), h("lottery-grid", { "selected-numbers": ((_d = (_c = drawDetail.drawData) === null || _c === void 0 ? void 0 : _c.winningNumbers) === null || _d === void 0 ? void 0 : _d.length) && ((_e = drawDetail.drawData.winningNumbers[0]['numbers']) === null || _e === void 0 ? void 0 : _e.join(',')), "secondary-numbers": ((_g = (_f = drawDetail.drawData) === null || _f === void 0 ? void 0 : _f.winningNumbers) === null || _g === void 0 ? void 0 : _g.length) && ((_h = drawDetail.drawData.winningNumbers[0]['secondaryNumbers']) === null || _h === void 0 ? void 0 : _h.join(',')), selectable: false, "display-selected": true, language: this.language, "translation-url": this.translationUrl, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))), drawDetail.details.length > 0 &&
208
211
  h("div", { class: "DrawPrizes" }, h("label", { class: "Label" }, translate('prize', this.language), ":"), h("span", null, drawDetail.details.map((item) => h("span", null, h("div", null, h("span", null, item.prizeName, item.times > 1 ? ' x ' + item.times : '', ": "), h("span", { style: { 'margin-right': '4px' } }, this.thousandSeperator(item.amount)), h("span", null, item.currency))))))));
209
212
  }))))))));
210
213
  }
@@ -561,7 +564,7 @@ export class LotteryDrawResults {
561
564
  "reflect": true,
562
565
  "defaultValue": "''"
563
566
  },
564
- "clientStylingUrlContent": {
567
+ "clientStylingUrl": {
565
568
  "type": "string",
566
569
  "mutable": false,
567
570
  "complexType": {
@@ -575,10 +578,27 @@ export class LotteryDrawResults {
575
578
  "tags": [],
576
579
  "text": "Client custom styling via url content"
577
580
  },
578
- "attribute": "client-styling-url-content",
581
+ "attribute": "client-styling-url",
579
582
  "reflect": true,
580
583
  "defaultValue": "''"
581
584
  },
585
+ "mbSource": {
586
+ "type": "string",
587
+ "mutable": false,
588
+ "complexType": {
589
+ "original": "string",
590
+ "resolved": "string",
591
+ "references": {}
592
+ },
593
+ "required": false,
594
+ "optional": false,
595
+ "docs": {
596
+ "tags": [],
597
+ "text": "Client custom styling via message bus"
598
+ },
599
+ "attribute": "mb-source",
600
+ "reflect": true
601
+ },
582
602
  "ticketDrawData": {
583
603
  "type": "string",
584
604
  "mutable": false,
@@ -662,9 +682,20 @@ export class LotteryDrawResults {
662
682
  "ticketDataLoaded": {},
663
683
  "ticketDraws": {},
664
684
  "toggleDrawer": {},
665
- "limitStylingAppends": {},
666
685
  "drawData": {},
667
686
  "resultMap": {}
668
687
  };
669
688
  }
689
+ static get watchers() {
690
+ return [{
691
+ "propName": "clientStyling",
692
+ "methodName": "handleClientStylingChange"
693
+ }, {
694
+ "propName": "clientStylingUrl",
695
+ "methodName": "handleClientStylingUrlChange"
696
+ }, {
697
+ "propName": "mbSource",
698
+ "methodName": "handleMbSourceChange"
699
+ }];
700
+ }
670
701
  }
@@ -1,5 +1,5 @@
1
1
  const NAMESPACE = 'lottery-draw-results';
2
- const BUILD = /* lottery-draw-results */ { 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: true, 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: false, 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: false, 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: false };
2
+ const BUILD = /* lottery-draw-results */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, 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: false, 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: false, 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 };
3
3
 
4
4
  /*
5
5
  Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
@@ -833,14 +833,14 @@ var postUpdateComponent = (hostRef) => {
833
833
  const endPostUpdate = createTime("postUpdate", tagName);
834
834
  const instance = hostRef.$lazyInstance$ ;
835
835
  const ancestorComponent = hostRef.$ancestorComponent$;
836
- {
837
- safeCall(instance, "componentDidRender");
838
- }
839
836
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
840
837
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
841
838
  {
842
839
  addHydratedFlag(elm);
843
840
  }
841
+ {
842
+ safeCall(instance, "componentDidLoad");
843
+ }
844
844
  endPostUpdate();
845
845
  {
846
846
  hostRef.$onReadyResolve$(elm);
@@ -892,6 +892,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
892
892
  `Couldn't find host element for "${cmpMeta.$tagName$}" 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).`
893
893
  );
894
894
  }
895
+ const elm = hostRef.$hostElement$ ;
895
896
  const oldVal = hostRef.$instanceValues$.get(propName);
896
897
  const flags = hostRef.$flags$;
897
898
  const instance = hostRef.$lazyInstance$ ;
@@ -901,6 +902,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
901
902
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
902
903
  hostRef.$instanceValues$.set(propName, newVal);
903
904
  if (instance) {
905
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
906
+ const watchMethods = cmpMeta.$watchers$[propName];
907
+ if (watchMethods) {
908
+ watchMethods.map((watchMethodName) => {
909
+ try {
910
+ instance[watchMethodName](newVal, oldVal, propName);
911
+ } catch (e) {
912
+ consoleError(e, elm);
913
+ }
914
+ });
915
+ }
916
+ }
904
917
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
905
918
  scheduleUpdate(hostRef, false);
906
919
  }
@@ -912,7 +925,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
912
925
  var proxyComponent = (Cstr, cmpMeta, flags) => {
913
926
  var _a, _b;
914
927
  const prototype = Cstr.prototype;
915
- if (cmpMeta.$members$ || BUILD.watchCallback ) {
928
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
929
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
930
+ cmpMeta.$watchers$ = Cstr.watchers;
931
+ }
916
932
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
917
933
  members.map(([memberName, [memberFlags]]) => {
918
934
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -994,6 +1010,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
994
1010
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
995
1011
  }
996
1012
  if (!Cstr.isProxied) {
1013
+ {
1014
+ cmpMeta.$watchers$ = Cstr.watchers;
1015
+ }
997
1016
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
998
1017
  Cstr.isProxied = true;
999
1018
  }
@@ -1009,6 +1028,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1009
1028
  {
1010
1029
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1011
1030
  }
1031
+ {
1032
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1033
+ }
1012
1034
  endNewInstance();
1013
1035
  fireConnectedCallback(hostRef.$lazyInstance$);
1014
1036
  } else {
@@ -1118,6 +1140,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1118
1140
  let hasSlotRelocation = false;
1119
1141
  lazyBundles.map((lazyBundle) => {
1120
1142
  lazyBundle[1].map((compactMeta) => {
1143
+ var _a2;
1121
1144
  const cmpMeta = {
1122
1145
  $flags$: compactMeta[0],
1123
1146
  $tagName$: compactMeta[1],
@@ -1136,6 +1159,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1136
1159
  {
1137
1160
  cmpMeta.$attrsToReflect$ = [];
1138
1161
  }
1162
+ {
1163
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1164
+ }
1139
1165
  const tagName = cmpMeta.$tagName$;
1140
1166
  const HostElement = class extends HTMLElement {
1141
1167
  // StencilLazyHost
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-db0ed104.js';
2
- export { s as setNonce } from './index-db0ed104.js';
1
+ import { b as bootstrapLazy } from './index-09d3e1f2.js';
2
+ export { s as setNonce } from './index-09d3e1f2.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["lottery-bullet_3",[[1,"lottery-draw-results",{"endpoint":[513],"gameId":[513,"game-id"],"language":[513],"playerId":[513,"player-id"],"drawMode":[516,"draw-mode"],"drawId":[513,"draw-id"],"gameName":[513,"game-name"],"ticketDate":[513,"ticket-date"],"ticketStatus":[513,"ticket-status"],"ticketId":[513,"ticket-id"],"ticketType":[513,"ticket-type"],"ticketAmount":[513,"ticket-amount"],"ticketCurrency":[513,"ticket-currency"],"ticketMultiplier":[516,"ticket-multiplier"],"ticketMultiplierNum":[514,"ticket-multiplier-num"],"ticketDrawCount":[514,"ticket-draw-count"],"ticketNumbers":[513,"ticket-numbers"],"sessionId":[513,"session-id"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"ticketDrawData":[513,"ticket-draw-data"],"historyDrawData":[513,"history-draw-data"],"tabValue":[513,"tab-value"],"translationUrl":[520,"translation-url"],"multiplier":[32],"isLoading":[32],"hasErrors":[32],"errorText":[32],"ticketData":[32],"ticketDataLoaded":[32],"ticketDraws":[32],"toggleDrawer":[32],"limitStylingAppends":[32],"drawData":[32],"resultMap":[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);
8
+ return bootstrapLazy([["lottery-bullet_3",[[1,"lottery-draw-results",{"endpoint":[513],"gameId":[513,"game-id"],"language":[513],"playerId":[513,"player-id"],"drawMode":[516,"draw-mode"],"drawId":[513,"draw-id"],"gameName":[513,"game-name"],"ticketDate":[513,"ticket-date"],"ticketStatus":[513,"ticket-status"],"ticketId":[513,"ticket-id"],"ticketType":[513,"ticket-type"],"ticketAmount":[513,"ticket-amount"],"ticketCurrency":[513,"ticket-currency"],"ticketMultiplier":[516,"ticket-multiplier"],"ticketMultiplierNum":[514,"ticket-multiplier-num"],"ticketDrawCount":[514,"ticket-draw-count"],"ticketNumbers":[513,"ticket-numbers"],"sessionId":[513,"session-id"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"ticketDrawData":[513,"ticket-draw-data"],"historyDrawData":[513,"history-draw-data"],"tabValue":[513,"tab-value"],"translationUrl":[520,"translation-url"],"multiplier":[32],"isLoading":[32],"hasErrors":[32],"errorText":[32],"ticketData":[32],"ticketDataLoaded":[32],"ticketDraws":[32],"toggleDrawer":[32],"drawData":[32],"resultMap":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[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);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };