@everymatrix/lottery-subscription 1.88.6 → 1.88.8

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-8266a193.js');
5
+ const lotterySubscription = require('./lottery-subscription-17b51966.js');
6
6
  require('./index-ff6dc9b8.js');
7
7
 
8
8
 
@@ -165,7 +165,7 @@ function getAdoptStyleSubscription(stylingContainer, domain) {
165
165
 
166
166
  const shadowRoot = stylingContainer.getRootNode();
167
167
  const cacheStyleObject = window[StyleCacheKey];
168
- let cachedStyle = cacheStyleObject[domain]?.sheet;
168
+ let cachedStyle = cacheStyleObject[domain] && cacheStyleObject[domain].sheet;
169
169
 
170
170
  if (!cachedStyle) {
171
171
  cachedStyle = new CSSStyleSheet();
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotterySubscription = require('./lottery-subscription-8266a193.js');
5
+ const lotterySubscription = require('./lottery-subscription-17b51966.js');
6
6
  require('./index-ff6dc9b8.js');
7
7
 
8
8
 
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { L as LotterySubscription } from './lottery-subscription-fa8f2df0.js';
1
+ export { L as LotterySubscription } from './lottery-subscription-7cbfd43f.js';
2
2
  import './index-f4067a90.js';
@@ -163,7 +163,7 @@ function getAdoptStyleSubscription(stylingContainer, domain) {
163
163
 
164
164
  const shadowRoot = stylingContainer.getRootNode();
165
165
  const cacheStyleObject = window[StyleCacheKey];
166
- let cachedStyle = cacheStyleObject[domain]?.sheet;
166
+ let cachedStyle = cacheStyleObject[domain] && cacheStyleObject[domain].sheet;
167
167
 
168
168
  if (!cachedStyle) {
169
169
  cachedStyle = new CSSStyleSheet();
@@ -1,2 +1,2 @@
1
- export { L as lottery_subscription } from './lottery-subscription-fa8f2df0.js';
1
+ export { L as lottery_subscription } from './lottery-subscription-7cbfd43f.js';
2
2
  import './index-f4067a90.js';
@@ -1 +1 @@
1
- export{L as LotterySubscription}from"./lottery-subscription-fa8f2df0.js";import"./index-f4067a90.js";
1
+ export{L as LotterySubscription}from"./lottery-subscription-7cbfd43f.js";import"./index-f4067a90.js";
@@ -1,4 +1,4 @@
1
- import{r as t,c as e,h as i}from"./index-f4067a90.js";const s=["ro","en","hr"],o={en:{filterFromCalendar:"Start Date",filterToCalendar:"End Date"},ro:{filterFromCalendar:"Start Date",filterToCalendar:"End Date"},fr:{filterFromCalendar:"Start Date",filterToCalendar:"End Date"},ar:{filterFromCalendar:"Start Date",filterToCalendar:"End Date"},hr:{filterFromCalendar:"Start Date",filterToCalendar:"End Date"}},r=(t,e)=>{const i=e;return o[void 0!==i&&s.includes(i)?i:"en"][t]};function n(t,e="GET",i=null,s={}){return new Promise(((o,r)=>{const n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})),a={method:e,headers:Object.assign({"Content-Type":"application/json","X-Idempotency-Key":n},s),body:null};i&&(a.body=JSON.stringify(i)),fetch(t,a).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>o(t))).catch((t=>r(t)))}))}const a="__WIDGET_GLOBAL_STYLE_CACHE__";function l(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function h(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function d(t,e,i,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return i=function(t,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(i.innerHTML=e,t.appendChild(i))}))}(t,e),i;window[a]||(window[a]={}),i=function(t,e){return window.emMessageBus.subscribe(e,(i=>{if(!t)return;const s=t.getRootNode(),o=window[a];let r=o[e]?.sheet;r?o[e].refCount=o[e].refCount+1:(r=new CSSStyleSheet,r.replaceSync(i),o[e]={sheet:r,refCount:1});const n=s.adoptedStyleSheets||[];n.includes(r)||(s.adoptedStyleSheets=[...n,r])}))}(t,e);const o=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[a][e]){const t=window[a][e];t.refCount>1?t.refCount=t.refCount-1:delete window[a][e]}o()},i}var c=Object.defineProperty,u=Object.defineProperties,p=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,b=(t,e,i)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,g=(t,e)=>{for(var i in e||(e={}))v.call(e,i)&&b(t,i,e[i]);if(m)for(var i of m(e))f.call(e,i)&&b(t,i,e[i]);return t},y=(t,e)=>u(t,p(e)),w=(t,e,i)=>(b(t,"symbol"!=typeof e?e+"":e,i),i),_=(t,e,i)=>new Promise(((s,o)=>{var r=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,n);a((i=i.apply(t,e)).next())}))
1
+ import{r as t,c as e,h as i}from"./index-f4067a90.js";const s=["ro","en","hr"],o={en:{filterFromCalendar:"Start Date",filterToCalendar:"End Date"},ro:{filterFromCalendar:"Start Date",filterToCalendar:"End Date"},fr:{filterFromCalendar:"Start Date",filterToCalendar:"End Date"},ar:{filterFromCalendar:"Start Date",filterToCalendar:"End Date"},hr:{filterFromCalendar:"Start Date",filterToCalendar:"End Date"}},r=(t,e)=>{const i=e;return o[void 0!==i&&s.includes(i)?i:"en"][t]};function n(t,e="GET",i=null,s={}){return new Promise(((o,r)=>{const n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})),a={method:e,headers:Object.assign({"Content-Type":"application/json","X-Idempotency-Key":n},s),body:null};i&&(a.body=JSON.stringify(i)),fetch(t,a).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>o(t))).catch((t=>r(t)))}))}const a="__WIDGET_GLOBAL_STYLE_CACHE__";function l(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function h(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function d(t,e,i,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return i=function(t,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(i.innerHTML=e,t.appendChild(i))}))}(t,e),i;window[a]||(window[a]={}),i=function(t,e){return window.emMessageBus.subscribe(e,(i=>{if(!t)return;const s=t.getRootNode(),o=window[a];let r=o[e]&&o[e].sheet;r?o[e].refCount=o[e].refCount+1:(r=new CSSStyleSheet,r.replaceSync(i),o[e]={sheet:r,refCount:1});const n=s.adoptedStyleSheets||[];n.includes(r)||(s.adoptedStyleSheets=[...n,r])}))}(t,e);const o=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[a][e]){const t=window[a][e];t.refCount>1?t.refCount=t.refCount-1:delete window[a][e]}o()},i}var c=Object.defineProperty,u=Object.defineProperties,p=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,b=(t,e,i)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,g=(t,e)=>{for(var i in e||(e={}))v.call(e,i)&&b(t,i,e[i]);if(m)for(var i of m(e))f.call(e,i)&&b(t,i,e[i]);return t},y=(t,e)=>u(t,p(e)),w=(t,e,i)=>(b(t,"symbol"!=typeof e?e+"":e,i),i),_=(t,e,i)=>new Promise(((s,o)=>{var r=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,n);a((i=i.apply(t,e)).next())}))
2
2
  /**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -1 +1 @@
1
- export{L as lottery_subscription}from"./lottery-subscription-fa8f2df0.js";import"./index-f4067a90.js";
1
+ export{L as lottery_subscription}from"./lottery-subscription-7cbfd43f.js";import"./index-f4067a90.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/lottery-subscription",
3
- "version": "1.88.6",
3
+ "version": "1.88.8",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",