@everymatrix/lottery-subscription 0.11.8 → 0.11.10

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 (29) hide show
  1. package/dist/cjs/{index-a7f3c31f.js → index-ff6dc9b8.js} +31 -5
  2. package/dist/cjs/index.cjs.js +2 -2
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{lottery-subscription-caef58b0.js → lottery-subscription-4100c9a1.js} +231 -165
  5. package/dist/cjs/lottery-subscription.cjs.entry.js +2 -2
  6. package/dist/cjs/lottery-subscription.cjs.js +2 -2
  7. package/dist/collection/components/lottery-subscription/lottery-subscription.js +60 -27
  8. package/dist/esm/{index-0cefb8d0.js → index-f4067a90.js} +31 -5
  9. package/dist/esm/index.js +2 -2
  10. package/dist/esm/loader.js +3 -3
  11. package/dist/esm/{lottery-subscription-a9ef0899.js → lottery-subscription-92931f7d.js} +231 -165
  12. package/dist/esm/lottery-subscription.entry.js +2 -2
  13. package/dist/esm/lottery-subscription.js +3 -3
  14. package/dist/lottery-subscription/{index-0cefb8d0.js → index-f4067a90.js} +2 -2
  15. package/dist/lottery-subscription/index.esm.js +1 -1
  16. package/dist/lottery-subscription/{lottery-subscription-a9ef0899.js → lottery-subscription-92931f7d.js} +241 -241
  17. package/dist/lottery-subscription/lottery-subscription.entry.js +1 -1
  18. package/dist/lottery-subscription/lottery-subscription.esm.js +1 -1
  19. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/stencil.config.d.ts +2 -0
  20. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/stencil.config.dev.d.ts +2 -0
  21. package/dist/types/components/lottery-subscription/lottery-subscription.d.ts +10 -5
  22. package/dist/types/components.d.ts +10 -2
  23. package/package.json +1 -1
  24. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/stencil.config.d.ts +0 -2
  25. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/stencil.config.dev.d.ts +0 -2
  26. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  27. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/storybook/main.d.ts +0 -0
  28. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/storybook/preview.d.ts +0 -0
  29. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/utils/utils.d.ts +0 -0
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotterySubscription = require('./lottery-subscription-caef58b0.js');
6
- require('./index-a7f3c31f.js');
5
+ const lotterySubscription = require('./lottery-subscription-4100c9a1.js');
6
+ require('./index-ff6dc9b8.js');
7
7
 
8
8
 
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a7f3c31f.js');
5
+ const index = require('./index-ff6dc9b8.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([["lottery-subscription.cjs",[[1,"lottery-subscription",{"translationUrl":[520,"translation-url"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"endpointSubscription":[513,"endpoint-subscription"],"language":[513],"gameName":[513,"game-name"],"isSubscribed":[32],"frequenceList":[32],"frequenceState":[32],"filterData":[32],"subscriptionCode":[32],"conditionId":[32],"paramId":[32],"conditionRule":[32],"paramRule":[32],"peroidRule":[32],"startDateRule":[32],"endDateRule":[32],"gameNameRule":[32],"ruleType":[32],"limitStylingAppends":[32]}]]]], options);
22
+ return index.bootstrapLazy([["lottery-subscription.cjs",[[1,"lottery-subscription",{"translationUrl":[520,"translation-url"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"endpointSubscription":[513,"endpoint-subscription"],"language":[513],"gameName":[513,"game-name"],"isSubscribed":[32],"frequenceList":[32],"frequenceState":[32],"filterData":[32],"subscriptionCode":[32],"conditionId":[32],"paramId":[32],"conditionRule":[32],"paramRule":[32],"peroidRule":[32],"startDateRule":[32],"endDateRule":[32],"gameNameRule":[32],"ruleType":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -1,22 +1,11 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { translate, getTranslations } from "../../utils/locale.utils";
3
3
  import { fetchRequest } from "../../utils/utils";
4
+ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
4
5
  import "../../../../../../../libs/vaadin-facade/index";
5
6
  import { format } from "date-fns";
6
7
  export class LotterySubscription {
7
8
  constructor() {
8
- this.setClientStyling = () => {
9
- let sheet = document.createElement('style');
10
- sheet.innerHTML = this.clientStyling;
11
- this.stylingContainer.prepend(sheet);
12
- };
13
- this.setClientStylingURL = () => {
14
- let cssFile = document.createElement('style');
15
- setTimeout(() => {
16
- cssFile.innerHTML = this.clientStylingUrlContent;
17
- this.stylingContainer.prepend(cssFile);
18
- }, 1);
19
- };
20
9
  this.changeDateParam = () => {
21
10
  if (this.filterData.from && !this.filterData.to) {
22
11
  let from = this.filterData.from;
@@ -109,7 +98,8 @@ export class LotterySubscription {
109
98
  };
110
99
  this.translationUrl = undefined;
111
100
  this.clientStyling = '';
112
- this.clientStylingUrlContent = '';
101
+ this.clientStylingUrl = '';
102
+ this.mbSource = undefined;
113
103
  this.endpoint = undefined;
114
104
  this.endpointTicket = undefined;
115
105
  this.endpointSubscription = undefined;
@@ -129,7 +119,6 @@ export class LotterySubscription {
129
119
  this.endDateRule = undefined;
130
120
  this.gameNameRule = undefined;
131
121
  this.ruleType = '';
132
- this.limitStylingAppends = false;
133
122
  }
134
123
  componentWillLoad() {
135
124
  if (this.translationUrl) {
@@ -137,13 +126,29 @@ export class LotterySubscription {
137
126
  }
138
127
  this.getSubscriptionData();
139
128
  }
140
- componentDidRender() {
141
- if (!this.limitStylingAppends && this.stylingContainer) {
129
+ handleClientStylingChange(newValue, oldValue) {
130
+ if (newValue != oldValue) {
131
+ setClientStyling(this.stylingContainer, this.clientStyling);
132
+ }
133
+ }
134
+ handleClientStylingUrlChange(newValue, oldValue) {
135
+ if (newValue != oldValue) {
136
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
137
+ }
138
+ }
139
+ handleMbSourceChange(newValue, oldValue) {
140
+ if (newValue != oldValue) {
141
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
142
+ }
143
+ }
144
+ componentDidLoad() {
145
+ if (this.stylingContainer) {
146
+ if (this.mbSource)
147
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
142
148
  if (this.clientStyling)
143
- this.setClientStyling();
144
- if (this.clientStylingUrlContent)
145
- this.setClientStylingURL();
146
- this.limitStylingAppends = true;
149
+ setClientStyling(this.stylingContainer, this.clientStyling);
150
+ if (this.clientStylingUrl)
151
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
147
152
  }
148
153
  }
149
154
  transDate(from, to) {
@@ -243,9 +248,9 @@ export class LotterySubscription {
243
248
  }
244
249
  }
245
250
  render() {
246
- return (h("div", { key: '1bf289722935c5d2b574ba18f322830c81335585', class: "subscripitonContainer", ref: el => this.stylingContainer = el }, h("vaadin-checkbox", { key: '5f62fb61bccecd3632525ab0b28a41e45487c7ec', label: "Subscription", checked: this.isSubscribed, onChange: this.handleCheckboxchange.bind(this) }), this.isSubscribed &&
247
- h("div", { key: 'd8e56e346ca8f275866738ab9c6d8eb14437d84a', class: "secondConditon" }, h("span", { key: '13c61d7582b1e0716395bd06c410a621b8af97d8', style: { 'margin-right': '8px' } }, "Occurrence: "), h("vaadin-select", { key: 'cf8d9c4176f66d2095798cae79b82b748e7ffb0b', items: this.frequenceList, value: this.frequenceState, "on-value-changed": this.handleSelectionChange.bind(this) }), this.frequenceState === 'Custom' &&
248
- h("div", { key: 'c1496adac7e295830074da0b096bf4bbc0af8247', class: "thirdCondition" }, h("div", { key: '2aa4f92c84ab37edee56640ae0657f59e92c3719', class: "filterCalenderWrap" }, h("div", { key: '6665e3f2bd28650794eb174db6081ab4a9f514f0', class: "filterText" }, "Subscription Start Date*"), h("div", { key: '50a05e684bf068ab00d6d4298e65a6b94c44b79a', class: "filter" }, h("vaadin-date-picker", { value: this.filterData.from, key: "filterFromCalendar", max: this.filterData.to === undefined ? undefined : this.changeFormate(this.filterData.to), onChange: this.handleFilterFrom, placeholder: translate('filterFromCalendar', this.language), ref: el => this.setDateFormate(el), class: "VaadinDatePicker" }))), h("div", { key: '85c4bf037ad7bc9797f809aa7e71fcbfbc80c298', class: "filterCalenderWrap" }, h("div", { key: '87b446788202ae55ad698c8455c9a6d09a9d22d6', class: "filterText" }, "Subscription End Date"), h("div", { key: '5700c92b2f0c57959f84b5f7ac7a3488d1d0d096', class: "filter" }, h("vaadin-date-picker", { value: this.filterData.to, key: "filterToCalendar", min: this.filterData.from === undefined ? undefined : this.changeFormate(this.filterData.from), onChange: this.handleFilterTo, placeholder: translate('filterToCalendar', this.language), ref: el => this.setDateFormate(el), class: "VaadinDatePicker" })))))));
251
+ return (h("div", { key: 'f301b99245d1950605dbdfac1f4bc06c60ea0c50', class: "subscripitonContainer", ref: el => this.stylingContainer = el }, h("vaadin-checkbox", { key: 'e9005320778ae1d66975e7825b5259fa2bca36d2', label: "Subscription", checked: this.isSubscribed, onChange: this.handleCheckboxchange.bind(this) }), this.isSubscribed &&
252
+ h("div", { key: '9dc052565ef92bb4c00559766b933e4bf567c1a7', class: "secondConditon" }, h("span", { key: '4251cf447cb9c00b12109c1d930720f6465983be', style: { 'margin-right': '8px' } }, "Occurrence: "), h("vaadin-select", { key: '0eabde390ba1fcab6ec654bf567c38b1afd376c7', items: this.frequenceList, value: this.frequenceState, "on-value-changed": this.handleSelectionChange.bind(this) }), this.frequenceState === 'Custom' &&
253
+ h("div", { key: '61ab68b026444a2c2f63f200b7eeeb84d615c00e', class: "thirdCondition" }, h("div", { key: '6b03192f386a3b864012c8c5374a454f367a95e3', class: "filterCalenderWrap" }, h("div", { key: 'ec7e479eaba4b50dcd41cb953b90dd97fe879dae', class: "filterText" }, "Subscription Start Date*"), h("div", { key: '796c81340a082f033a9461d7ef2e0116b962d1e6', class: "filter" }, h("vaadin-date-picker", { value: this.filterData.from, key: "filterFromCalendar", max: this.filterData.to === undefined ? undefined : this.changeFormate(this.filterData.to), onChange: this.handleFilterFrom, placeholder: translate('filterFromCalendar', this.language), ref: el => this.setDateFormate(el), class: "VaadinDatePicker" }))), h("div", { key: '7a8a64b82154802b65a848f73226e65904e6fe57', class: "filterCalenderWrap" }, h("div", { key: '396e291a86a3121f7a3fd7d1316271b8c36f6915', class: "filterText" }, "Subscription End Date"), h("div", { key: 'ecf9e2f2564c8bf336fcaef61d9ed46635f1bda0', class: "filter" }, h("vaadin-date-picker", { value: this.filterData.to, key: "filterToCalendar", min: this.filterData.from === undefined ? undefined : this.changeFormate(this.filterData.from), onChange: this.handleFilterTo, placeholder: translate('filterToCalendar', this.language), ref: el => this.setDateFormate(el), class: "VaadinDatePicker" })))))));
249
254
  }
250
255
  static get is() { return "lottery-subscription"; }
251
256
  static get encapsulation() { return "shadow"; }
@@ -296,7 +301,7 @@ export class LotterySubscription {
296
301
  "reflect": true,
297
302
  "defaultValue": "''"
298
303
  },
299
- "clientStylingUrlContent": {
304
+ "clientStylingUrl": {
300
305
  "type": "string",
301
306
  "mutable": false,
302
307
  "complexType": {
@@ -310,10 +315,27 @@ export class LotterySubscription {
310
315
  "tags": [],
311
316
  "text": "Client custom styling via url"
312
317
  },
313
- "attribute": "client-styling-url-content",
318
+ "attribute": "client-styling-url",
314
319
  "reflect": true,
315
320
  "defaultValue": "''"
316
321
  },
322
+ "mbSource": {
323
+ "type": "string",
324
+ "mutable": false,
325
+ "complexType": {
326
+ "original": "string",
327
+ "resolved": "string",
328
+ "references": {}
329
+ },
330
+ "required": false,
331
+ "optional": false,
332
+ "docs": {
333
+ "tags": [],
334
+ "text": "Client custom styling via message bus"
335
+ },
336
+ "attribute": "mb-source",
337
+ "reflect": true
338
+ },
317
339
  "endpoint": {
318
340
  "type": "string",
319
341
  "mutable": false,
@@ -417,8 +439,7 @@ export class LotterySubscription {
417
439
  "startDateRule": {},
418
440
  "endDateRule": {},
419
441
  "gameNameRule": {},
420
- "ruleType": {},
421
- "limitStylingAppends": {}
442
+ "ruleType": {}
422
443
  };
423
444
  }
424
445
  static get events() {
@@ -454,4 +475,16 @@ export class LotterySubscription {
454
475
  }
455
476
  }];
456
477
  }
478
+ static get watchers() {
479
+ return [{
480
+ "propName": "clientStyling",
481
+ "methodName": "handleClientStylingChange"
482
+ }, {
483
+ "propName": "clientStylingUrl",
484
+ "methodName": "handleClientStylingUrlChange"
485
+ }, {
486
+ "propName": "mbSource",
487
+ "methodName": "handleMbSourceChange"
488
+ }];
489
+ }
457
490
  }
@@ -1,5 +1,5 @@
1
1
  const NAMESPACE = 'lottery-subscription';
2
- const BUILD = /* lottery-subscription */ { 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: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, 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: false, propMutable: false, propNumber: false, 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-subscription */ { 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: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, 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: false, propMutable: false, propNumber: false, 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
@@ -801,14 +801,14 @@ var postUpdateComponent = (hostRef) => {
801
801
  const endPostUpdate = createTime("postUpdate", tagName);
802
802
  const instance = hostRef.$lazyInstance$ ;
803
803
  const ancestorComponent = hostRef.$ancestorComponent$;
804
- {
805
- safeCall(instance, "componentDidRender");
806
- }
807
804
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
808
805
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
809
806
  {
810
807
  addHydratedFlag(elm);
811
808
  }
809
+ {
810
+ safeCall(instance, "componentDidLoad");
811
+ }
812
812
  endPostUpdate();
813
813
  {
814
814
  hostRef.$onReadyResolve$(elm);
@@ -860,6 +860,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
860
860
  `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).`
861
861
  );
862
862
  }
863
+ const elm = hostRef.$hostElement$ ;
863
864
  const oldVal = hostRef.$instanceValues$.get(propName);
864
865
  const flags = hostRef.$flags$;
865
866
  const instance = hostRef.$lazyInstance$ ;
@@ -869,6 +870,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
869
870
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
870
871
  hostRef.$instanceValues$.set(propName, newVal);
871
872
  if (instance) {
873
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
874
+ const watchMethods = cmpMeta.$watchers$[propName];
875
+ if (watchMethods) {
876
+ watchMethods.map((watchMethodName) => {
877
+ try {
878
+ instance[watchMethodName](newVal, oldVal, propName);
879
+ } catch (e) {
880
+ consoleError(e, elm);
881
+ }
882
+ });
883
+ }
884
+ }
872
885
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
873
886
  scheduleUpdate(hostRef, false);
874
887
  }
@@ -880,7 +893,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
880
893
  var proxyComponent = (Cstr, cmpMeta, flags) => {
881
894
  var _a, _b;
882
895
  const prototype = Cstr.prototype;
883
- if (cmpMeta.$members$ || BUILD.watchCallback ) {
896
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
897
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
898
+ cmpMeta.$watchers$ = Cstr.watchers;
899
+ }
884
900
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
885
901
  members.map(([memberName, [memberFlags]]) => {
886
902
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -962,6 +978,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
962
978
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
963
979
  }
964
980
  if (!Cstr.isProxied) {
981
+ {
982
+ cmpMeta.$watchers$ = Cstr.watchers;
983
+ }
965
984
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
966
985
  Cstr.isProxied = true;
967
986
  }
@@ -977,6 +996,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
977
996
  {
978
997
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
979
998
  }
999
+ {
1000
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1001
+ }
980
1002
  endNewInstance();
981
1003
  } else {
982
1004
  Cstr = elm.constructor;
@@ -1073,6 +1095,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1073
1095
  let hasSlotRelocation = false;
1074
1096
  lazyBundles.map((lazyBundle) => {
1075
1097
  lazyBundle[1].map((compactMeta) => {
1098
+ var _a2;
1076
1099
  const cmpMeta = {
1077
1100
  $flags$: compactMeta[0],
1078
1101
  $tagName$: compactMeta[1],
@@ -1088,6 +1111,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1088
1111
  {
1089
1112
  cmpMeta.$attrsToReflect$ = [];
1090
1113
  }
1114
+ {
1115
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1116
+ }
1091
1117
  const tagName = cmpMeta.$tagName$;
1092
1118
  const HostElement = class extends HTMLElement {
1093
1119
  // StencilLazyHost
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { L as LotterySubscription } from './lottery-subscription-a9ef0899.js';
2
- import './index-0cefb8d0.js';
1
+ export { L as LotterySubscription } from './lottery-subscription-92931f7d.js';
2
+ import './index-f4067a90.js';
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-0cefb8d0.js';
2
- export { s as setNonce } from './index-0cefb8d0.js';
1
+ import { b as bootstrapLazy } from './index-f4067a90.js';
2
+ export { s as setNonce } from './index-f4067a90.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-subscription",[[1,"lottery-subscription",{"translationUrl":[520,"translation-url"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"endpointSubscription":[513,"endpoint-subscription"],"language":[513],"gameName":[513,"game-name"],"isSubscribed":[32],"frequenceList":[32],"frequenceState":[32],"filterData":[32],"subscriptionCode":[32],"conditionId":[32],"paramId":[32],"conditionRule":[32],"paramRule":[32],"peroidRule":[32],"startDateRule":[32],"endDateRule":[32],"gameNameRule":[32],"ruleType":[32],"limitStylingAppends":[32]}]]]], options);
8
+ return bootstrapLazy([["lottery-subscription",[[1,"lottery-subscription",{"translationUrl":[520,"translation-url"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"endpointSubscription":[513,"endpoint-subscription"],"language":[513],"gameName":[513,"game-name"],"isSubscribed":[32],"frequenceList":[32],"frequenceState":[32],"filterData":[32],"subscriptionCode":[32],"conditionId":[32],"paramId":[32],"conditionRule":[32],"paramRule":[32],"peroidRule":[32],"startDateRule":[32],"endDateRule":[32],"gameNameRule":[32],"ruleType":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };