@everymatrix/lottery-subscription 1.85.16 → 1.85.18

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-8021c9d6.js');
5
+ const lotterySubscription = require('./lottery-subscription-87f0fb08.js');
6
6
  require('./index-ff6dc9b8.js');
7
7
 
8
8
 
@@ -88,6 +88,8 @@ function setClientStyling(stylingContainer, clientStyling) {
88
88
  * @param {string} clientStylingUrl The URL of the style content
89
89
  */
90
90
  function setClientStylingURL(stylingContainer, clientStylingUrl) {
91
+ if (!stylingContainer || !clientStylingUrl) return;
92
+
91
93
  const url = new URL(clientStylingUrl);
92
94
 
93
95
  fetch(url.href)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotterySubscription = require('./lottery-subscription-8021c9d6.js');
5
+ const lotterySubscription = require('./lottery-subscription-87f0fb08.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-5d357f75.js';
1
+ export { L as LotterySubscription } from './lottery-subscription-6d27c41b.js';
2
2
  import './index-f4067a90.js';
@@ -86,6 +86,8 @@ function setClientStyling(stylingContainer, clientStyling) {
86
86
  * @param {string} clientStylingUrl The URL of the style content
87
87
  */
88
88
  function setClientStylingURL(stylingContainer, clientStylingUrl) {
89
+ if (!stylingContainer || !clientStylingUrl) return;
90
+
89
91
  const url = new URL(clientStylingUrl);
90
92
 
91
93
  fetch(url.href)
@@ -1,2 +1,2 @@
1
- export { L as lottery_subscription } from './lottery-subscription-5d357f75.js';
1
+ export { L as lottery_subscription } from './lottery-subscription-6d27c41b.js';
2
2
  import './index-f4067a90.js';
@@ -1 +1 @@
1
- export{L as LotterySubscription}from"./lottery-subscription-5d357f75.js";import"./index-f4067a90.js";
1
+ export{L as LotterySubscription}from"./lottery-subscription-6d27c41b.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)))}))}function a(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function l(t,e){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 h(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}var d=Object.defineProperty,c=Object.defineProperties,u=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,f=(t,e,i)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,b=(t,e)=>{for(var i in e||(e={}))m.call(e,i)&&f(t,i,e[i]);if(p)for(var i of p(e))v.call(e,i)&&f(t,i,e[i]);return t},g=(t,e)=>c(t,u(e)),y=(t,e,i)=>(f(t,"symbol"!=typeof e?e+"":e,i),i),w=(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)))}))}function a(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function l(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 h(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}var d=Object.defineProperty,c=Object.defineProperties,u=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,f=(t,e,i)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,b=(t,e)=>{for(var i in e||(e={}))m.call(e,i)&&f(t,i,e[i]);if(p)for(var i of p(e))v.call(e,i)&&f(t,i,e[i]);return t},g=(t,e)=>c(t,u(e)),y=(t,e,i)=>(f(t,"symbol"!=typeof e?e+"":e,i),i),w=(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-5d357f75.js";import"./index-f4067a90.js";
1
+ export{L as lottery_subscription}from"./lottery-subscription-6d27c41b.js";import"./index-f4067a90.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/lottery-subscription",
3
- "version": "1.85.16",
3
+ "version": "1.85.18",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",