@everymatrix/lottery-subscription 0.12.0 → 0.12.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.
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'lottery-subscription';
24
- 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 };
24
+ 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 };
25
25
 
26
26
  /*
27
27
  Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
@@ -823,14 +823,14 @@ var postUpdateComponent = (hostRef) => {
823
823
  const endPostUpdate = createTime("postUpdate", tagName);
824
824
  const instance = hostRef.$lazyInstance$ ;
825
825
  const ancestorComponent = hostRef.$ancestorComponent$;
826
- {
827
- safeCall(instance, "componentDidRender");
828
- }
829
826
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
830
827
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
831
828
  {
832
829
  addHydratedFlag(elm);
833
830
  }
831
+ {
832
+ safeCall(instance, "componentDidLoad");
833
+ }
834
834
  endPostUpdate();
835
835
  {
836
836
  hostRef.$onReadyResolve$(elm);
@@ -882,6 +882,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
882
882
  `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).`
883
883
  );
884
884
  }
885
+ const elm = hostRef.$hostElement$ ;
885
886
  const oldVal = hostRef.$instanceValues$.get(propName);
886
887
  const flags = hostRef.$flags$;
887
888
  const instance = hostRef.$lazyInstance$ ;
@@ -891,6 +892,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
891
892
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
892
893
  hostRef.$instanceValues$.set(propName, newVal);
893
894
  if (instance) {
895
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
896
+ const watchMethods = cmpMeta.$watchers$[propName];
897
+ if (watchMethods) {
898
+ watchMethods.map((watchMethodName) => {
899
+ try {
900
+ instance[watchMethodName](newVal, oldVal, propName);
901
+ } catch (e) {
902
+ consoleError(e, elm);
903
+ }
904
+ });
905
+ }
906
+ }
894
907
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
895
908
  scheduleUpdate(hostRef, false);
896
909
  }
@@ -902,7 +915,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
902
915
  var proxyComponent = (Cstr, cmpMeta, flags) => {
903
916
  var _a, _b;
904
917
  const prototype = Cstr.prototype;
905
- if (cmpMeta.$members$ || BUILD.watchCallback ) {
918
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
919
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
920
+ cmpMeta.$watchers$ = Cstr.watchers;
921
+ }
906
922
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
907
923
  members.map(([memberName, [memberFlags]]) => {
908
924
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -984,6 +1000,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
984
1000
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
985
1001
  }
986
1002
  if (!Cstr.isProxied) {
1003
+ {
1004
+ cmpMeta.$watchers$ = Cstr.watchers;
1005
+ }
987
1006
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
988
1007
  Cstr.isProxied = true;
989
1008
  }
@@ -999,6 +1018,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
999
1018
  {
1000
1019
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1001
1020
  }
1021
+ {
1022
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1023
+ }
1002
1024
  endNewInstance();
1003
1025
  } else {
1004
1026
  Cstr = elm.constructor;
@@ -1095,6 +1117,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1095
1117
  let hasSlotRelocation = false;
1096
1118
  lazyBundles.map((lazyBundle) => {
1097
1119
  lazyBundle[1].map((compactMeta) => {
1120
+ var _a2;
1098
1121
  const cmpMeta = {
1099
1122
  $flags$: compactMeta[0],
1100
1123
  $tagName$: compactMeta[1],
@@ -1110,6 +1133,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1110
1133
  {
1111
1134
  cmpMeta.$attrsToReflect$ = [];
1112
1135
  }
1136
+ {
1137
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1138
+ }
1113
1139
  const tagName = cmpMeta.$tagName$;
1114
1140
  const HostElement = class extends HTMLElement {
1115
1141
  // StencilLazyHost
@@ -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-602f10ec.js');
6
+ require('./index-ff6dc9b8.js');
7
7
 
8
8
 
9
9
 
@@ -2,13 +2,13 @@
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
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- 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);
11
+ 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);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-a7f3c31f.js');
3
+ const index = require('./index-ff6dc9b8.js');
4
4
 
5
5
  const DEFAULT_LANGUAGE = 'en';
6
6
  const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
@@ -67,6 +67,63 @@ function fetchRequest(url, method = 'GET', body = null, headers = {}) {
67
67
  });
68
68
  }
69
69
 
70
+ /**
71
+ * @name setClientStyling
72
+ * @description Method used to create and append to the passed element of the widget a style element with the content received
73
+ * @param {HTMLElement} stylingContainer The reference element of the widget
74
+ * @param {string} clientStyling The style content
75
+ */
76
+ function setClientStyling(stylingContainer, clientStyling) {
77
+ if (stylingContainer) {
78
+ const sheet = document.createElement('style');
79
+ sheet.innerHTML = clientStyling;
80
+ stylingContainer.appendChild(sheet);
81
+ }
82
+ }
83
+
84
+ /**
85
+ * @name setClientStylingURL
86
+ * @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
87
+ * @param {HTMLElement} stylingContainer The reference element of the widget
88
+ * @param {string} clientStylingUrl The URL of the style content
89
+ */
90
+ function setClientStylingURL(stylingContainer, clientStylingUrl) {
91
+ const url = new URL(clientStylingUrl);
92
+
93
+ fetch(url.href)
94
+ .then((res) => res.text())
95
+ .then((data) => {
96
+ const cssFile = document.createElement('style');
97
+ cssFile.innerHTML = data;
98
+ if (stylingContainer) {
99
+ stylingContainer.appendChild(cssFile);
100
+ }
101
+ })
102
+ .catch((err) => {
103
+ console.error('There was an error while trying to load client styling from URL', err);
104
+ });
105
+ }
106
+
107
+ /**
108
+ * @name setStreamLibrary
109
+ * @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
110
+ * @param {HTMLElement} stylingContainer The highest element of the widget
111
+ * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
112
+ * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
113
+ */
114
+ function setStreamStyling(stylingContainer, domain, subscription) {
115
+ if (window.emMessageBus) {
116
+ const sheet = document.createElement('style');
117
+
118
+ window.emMessageBus.subscribe(domain, (data) => {
119
+ sheet.innerHTML = data;
120
+ if (stylingContainer) {
121
+ stylingContainer.appendChild(sheet);
122
+ }
123
+ });
124
+ }
125
+ }
126
+
70
127
  var jr=Object.defineProperty,qr=Object.defineProperties;var Yr=Object.getOwnPropertyDescriptors;var lo=Object.getOwnPropertySymbols;var Kr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable;var Mt=(s,t,e)=>t in s?jr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,we=(s,t)=>{for(var e in t||(t={}))Kr.call(t,e)&&Mt(s,e,t[e]);if(lo)for(var e of lo(t))Gr.call(t,e)&&Mt(s,e,t[e]);return s},Nt=(s,t)=>qr(s,Yr(t));var k=(s,t,e)=>(Mt(s,typeof t!="symbol"?t+"":t,e),e);var Ce=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
71
128
  * @license
72
129
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -8930,18 +8987,6 @@ const LotterySubscription = class {
8930
8987
  index.registerInstance(this, hostRef);
8931
8988
  this.subscriptionCompleted = index.createEvent(this, "subscriptionCompleted", 7);
8932
8989
  this.subscriptionCheckChange = index.createEvent(this, "subscriptionCheckChange", 7);
8933
- this.setClientStyling = () => {
8934
- let sheet = document.createElement('style');
8935
- sheet.innerHTML = this.clientStyling;
8936
- this.stylingContainer.prepend(sheet);
8937
- };
8938
- this.setClientStylingURL = () => {
8939
- let cssFile = document.createElement('style');
8940
- setTimeout(() => {
8941
- cssFile.innerHTML = this.clientStylingUrlContent;
8942
- this.stylingContainer.prepend(cssFile);
8943
- }, 1);
8944
- };
8945
8990
  this.changeDateParam = () => {
8946
8991
  if (this.filterData.from && !this.filterData.to) {
8947
8992
  let from = this.filterData.from;
@@ -9034,7 +9079,8 @@ const LotterySubscription = class {
9034
9079
  };
9035
9080
  this.translationUrl = undefined;
9036
9081
  this.clientStyling = '';
9037
- this.clientStylingUrlContent = '';
9082
+ this.clientStylingUrl = '';
9083
+ this.mbSource = undefined;
9038
9084
  this.endpoint = undefined;
9039
9085
  this.endpointTicket = undefined;
9040
9086
  this.endpointSubscription = undefined;
@@ -9054,7 +9100,6 @@ const LotterySubscription = class {
9054
9100
  this.endDateRule = undefined;
9055
9101
  this.gameNameRule = undefined;
9056
9102
  this.ruleType = '';
9057
- this.limitStylingAppends = false;
9058
9103
  }
9059
9104
  componentWillLoad() {
9060
9105
  if (this.translationUrl) {
@@ -9062,13 +9107,29 @@ const LotterySubscription = class {
9062
9107
  }
9063
9108
  this.getSubscriptionData();
9064
9109
  }
9065
- componentDidRender() {
9066
- if (!this.limitStylingAppends && this.stylingContainer) {
9110
+ handleClientStylingChange(newValue, oldValue) {
9111
+ if (newValue != oldValue) {
9112
+ setClientStyling(this.stylingContainer, this.clientStyling);
9113
+ }
9114
+ }
9115
+ handleClientStylingUrlChange(newValue, oldValue) {
9116
+ if (newValue != oldValue) {
9117
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
9118
+ }
9119
+ }
9120
+ handleMbSourceChange(newValue, oldValue) {
9121
+ if (newValue != oldValue) {
9122
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
9123
+ }
9124
+ }
9125
+ componentDidLoad() {
9126
+ if (this.stylingContainer) {
9127
+ if (this.mbSource)
9128
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
9067
9129
  if (this.clientStyling)
9068
- this.setClientStyling();
9069
- if (this.clientStylingUrlContent)
9070
- this.setClientStylingURL();
9071
- this.limitStylingAppends = true;
9130
+ setClientStyling(this.stylingContainer, this.clientStyling);
9131
+ if (this.clientStylingUrl)
9132
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
9072
9133
  }
9073
9134
  }
9074
9135
  transDate(from, to) {
@@ -9168,10 +9229,15 @@ const LotterySubscription = class {
9168
9229
  }
9169
9230
  }
9170
9231
  render() {
9171
- return (index.h("div", { key: '1bf289722935c5d2b574ba18f322830c81335585', class: "subscripitonContainer", ref: el => this.stylingContainer = el }, index.h("vaadin-checkbox", { key: '5f62fb61bccecd3632525ab0b28a41e45487c7ec', label: "Subscription", checked: this.isSubscribed, onChange: this.handleCheckboxchange.bind(this) }), this.isSubscribed &&
9172
- index.h("div", { key: 'd8e56e346ca8f275866738ab9c6d8eb14437d84a', class: "secondConditon" }, index.h("span", { key: '13c61d7582b1e0716395bd06c410a621b8af97d8', style: { 'margin-right': '8px' } }, "Occurrence: "), index.h("vaadin-select", { key: 'cf8d9c4176f66d2095798cae79b82b748e7ffb0b', items: this.frequenceList, value: this.frequenceState, "on-value-changed": this.handleSelectionChange.bind(this) }), this.frequenceState === 'Custom' &&
9173
- index.h("div", { key: 'c1496adac7e295830074da0b096bf4bbc0af8247', class: "thirdCondition" }, index.h("div", { key: '2aa4f92c84ab37edee56640ae0657f59e92c3719', class: "filterCalenderWrap" }, index.h("div", { key: '6665e3f2bd28650794eb174db6081ab4a9f514f0', class: "filterText" }, "Subscription Start Date*"), index.h("div", { key: '50a05e684bf068ab00d6d4298e65a6b94c44b79a', class: "filter" }, index.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" }))), index.h("div", { key: '85c4bf037ad7bc9797f809aa7e71fcbfbc80c298', class: "filterCalenderWrap" }, index.h("div", { key: '87b446788202ae55ad698c8455c9a6d09a9d22d6', class: "filterText" }, "Subscription End Date"), index.h("div", { key: '5700c92b2f0c57959f84b5f7ac7a3488d1d0d096', class: "filter" }, index.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" })))))));
9174
- }
9232
+ return (index.h("div", { key: 'f301b99245d1950605dbdfac1f4bc06c60ea0c50', class: "subscripitonContainer", ref: el => this.stylingContainer = el }, index.h("vaadin-checkbox", { key: 'e9005320778ae1d66975e7825b5259fa2bca36d2', label: "Subscription", checked: this.isSubscribed, onChange: this.handleCheckboxchange.bind(this) }), this.isSubscribed &&
9233
+ index.h("div", { key: '9dc052565ef92bb4c00559766b933e4bf567c1a7', class: "secondConditon" }, index.h("span", { key: '4251cf447cb9c00b12109c1d930720f6465983be', style: { 'margin-right': '8px' } }, "Occurrence: "), index.h("vaadin-select", { key: '0eabde390ba1fcab6ec654bf567c38b1afd376c7', items: this.frequenceList, value: this.frequenceState, "on-value-changed": this.handleSelectionChange.bind(this) }), this.frequenceState === 'Custom' &&
9234
+ index.h("div", { key: '61ab68b026444a2c2f63f200b7eeeb84d615c00e', class: "thirdCondition" }, index.h("div", { key: '6b03192f386a3b864012c8c5374a454f367a95e3', class: "filterCalenderWrap" }, index.h("div", { key: 'ec7e479eaba4b50dcd41cb953b90dd97fe879dae', class: "filterText" }, "Subscription Start Date*"), index.h("div", { key: '796c81340a082f033a9461d7ef2e0116b962d1e6', class: "filter" }, index.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" }))), index.h("div", { key: '7a8a64b82154802b65a848f73226e65904e6fe57', class: "filterCalenderWrap" }, index.h("div", { key: '396e291a86a3121f7a3fd7d1316271b8c36f6915', class: "filterText" }, "Subscription End Date"), index.h("div", { key: 'ecf9e2f2564c8bf336fcaef61d9ed46635f1bda0', class: "filter" }, index.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" })))))));
9235
+ }
9236
+ static get watchers() { return {
9237
+ "clientStyling": ["handleClientStylingChange"],
9238
+ "clientStylingUrl": ["handleClientStylingUrlChange"],
9239
+ "mbSource": ["handleMbSourceChange"]
9240
+ }; }
9175
9241
  };
9176
9242
  LotterySubscription.style = LotterySubscriptionStyle0;
9177
9243
 
@@ -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-602f10ec.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-0df24c8b.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 };