@everymatrix/lottery-subscription 1.86.27 → 1.86.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotterySubscription = require('./lottery-subscription-87f0fb08.js');
5
+ const lotterySubscription = require('./lottery-subscription-7bc87e6a.js');
6
6
  require('./index-ff6dc9b8.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"],"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);
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],"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;
@@ -101,8 +101,6 @@ export class LotterySubscription {
101
101
  this.clientStylingUrl = '';
102
102
  this.mbSource = undefined;
103
103
  this.endpoint = undefined;
104
- this.endpointTicket = undefined;
105
- this.endpointSubscription = undefined;
106
104
  this.language = 'en';
107
105
  this.gameName = undefined;
108
106
  this.isSubscribed = false;
@@ -156,20 +154,23 @@ export class LotterySubscription {
156
154
  let dateArrayTo = to.split('/');
157
155
  const transferData = {
158
156
  from: new Date(Date.UTC(Number(dateArray[2]), Number(dateArray[1]) - 1, Number(dateArray[0]), 0, 0, 0)).toISOString(),
159
- to: new Date(Date.UTC(Number(dateArrayTo[2]), Number(dateArrayTo[1]) - 1, Number(dateArrayTo[0]), 23, 59, 59)).toISOString(),
157
+ to: new Date(Date.UTC(Number(dateArrayTo[2]), Number(dateArrayTo[1]) - 1, Number(dateArrayTo[0]), 23, 59, 59)).toISOString()
160
158
  };
161
159
  return transferData;
162
160
  }
163
161
  async getSubscriptionData() {
164
162
  try {
165
- const url = `${this.endpointSubscription}/feWidgetConfig/${this.subscriptionCode}`;
163
+ const url = `${this.endpoint}/feWidgetConfig/${this.subscriptionCode}`;
166
164
  const { conditionMetadataId, paramMetadataId, ruleType } = await fetchRequest(url);
167
165
  this.conditionId = conditionMetadataId;
168
166
  this.paramId = paramMetadataId;
169
167
  this.ruleType = ruleType;
170
- const metaConditionUrl = `${this.endpointSubscription}/metadata/${this.conditionId}`;
171
- const metaParamUrl = `${this.endpointSubscription}/metadata/${this.paramId}`;
172
- const [conditionConfig, paramConfig] = await Promise.allSettled([fetchRequest(metaConditionUrl), fetchRequest(metaParamUrl)]);
168
+ const metaConditionUrl = `${this.endpoint}/metadata/${this.conditionId}`;
169
+ const metaParamUrl = `${this.endpoint}/metadata/${this.paramId}`;
170
+ const [conditionConfig, paramConfig] = await Promise.allSettled([
171
+ fetchRequest(metaConditionUrl),
172
+ fetchRequest(metaParamUrl)
173
+ ]);
173
174
  if (conditionConfig.status === 'fulfilled' && paramConfig.status === 'fulfilled') {
174
175
  this.conditionRule = conditionConfig.value;
175
176
  this.paramRule = paramConfig.value;
@@ -248,9 +249,7 @@ export class LotterySubscription {
248
249
  }
249
250
  }
250
251
  render() {
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" })))))));
252
+ return (h("div", { key: '185b4f76308ff8df614f520f5eb93a19c619cbcd', class: "subscripitonContainer", ref: (el) => (this.stylingContainer = el) }, h("vaadin-checkbox", { key: 'c3af7821b5bacbfc8527ad242ddc6cb9d8b5234d', label: "Subscription", checked: this.isSubscribed, onChange: this.handleCheckboxchange.bind(this) }), this.isSubscribed && (h("div", { key: 'e567968dca8f1150f751662e2834ffeb60e791cd', class: "secondConditon" }, h("span", { key: '5999241e246949594cf39d1dade31deb04e17f1a', style: { 'margin-right': '8px' } }, "Occurrence: "), h("vaadin-select", { key: '50a04ac0202ab7912cd56043cda5d8f915a9151e', items: this.frequenceList, value: this.frequenceState, "on-value-changed": this.handleSelectionChange.bind(this) }), this.frequenceState === 'Custom' && (h("div", { key: '329650009ba11791abf137bfd75b18ce982c6ee9', class: "thirdCondition" }, h("div", { key: 'f29c8951aa53637f6f66ab523b847e0937f2f323', class: "filterCalenderWrap" }, h("div", { key: 'a19a4c4ba091397bf79c0969b9fc7bafd3fef519', class: "filterText" }, "Subscription Start Date*"), h("div", { key: 'fd91ca7fc3df5250e2e88f6c34cd92e8b91b9907', 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: '450a8c165db8ddb42d3c731f49257d17e9426c40', class: "filterCalenderWrap" }, h("div", { key: 'e66f7308e413493e84ae659b02f8eb11a025f559', class: "filterText" }, "Subscription End Date"), h("div", { key: '4644c0873295e22573f9e2d1927b649e10ecd3f5', 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" })))))))));
254
253
  }
255
254
  static get is() { return "lottery-subscription"; }
256
255
  static get encapsulation() { return "shadow"; }
@@ -353,40 +352,6 @@ export class LotterySubscription {
353
352
  "attribute": "endpoint",
354
353
  "reflect": true
355
354
  },
356
- "endpointTicket": {
357
- "type": "string",
358
- "mutable": false,
359
- "complexType": {
360
- "original": "string",
361
- "resolved": "string",
362
- "references": {}
363
- },
364
- "required": false,
365
- "optional": false,
366
- "docs": {
367
- "tags": [],
368
- "text": "EndpointTicket URL for the source of ticket data"
369
- },
370
- "attribute": "endpoint-ticket",
371
- "reflect": true
372
- },
373
- "endpointSubscription": {
374
- "type": "string",
375
- "mutable": false,
376
- "complexType": {
377
- "original": "string",
378
- "resolved": "string",
379
- "references": {}
380
- },
381
- "required": false,
382
- "optional": false,
383
- "docs": {
384
- "tags": [],
385
- "text": "Endpoint URL for the source of subscription data"
386
- },
387
- "attribute": "endpoint-subscription",
388
- "reflect": true
389
- },
390
355
  "language": {
391
356
  "type": "string",
392
357
  "mutable": false,
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { L as LotterySubscription } from './lottery-subscription-6d27c41b.js';
1
+ export { L as LotterySubscription } from './lottery-subscription-7f17b7c8.js';
2
2
  import './index-f4067a90.js';
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
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"],"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);
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],"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 };