@everymatrix/casino-jackpot-banner 1.39.2 → 1.40.0
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.
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
## casino-jackpot-banner widget changelogs
|
|
3
|
+
|
|
4
|
+
| Version | Release date | Impacted areas | Changes |
|
|
5
|
+
| ------- | ------------ | ----------------------------- | --------------------------------------- |
|
|
6
|
+
| 1.39.3 | Thu Sep 12 2024 | casino-jackpot-banner | fix(GAI-17179)(casino-jackpot-banner): increase vendor logo size |
|
|
@@ -69,7 +69,7 @@ this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}d
|
|
|
69
69
|
if(!i(r))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(r),()=>{const t=n.indexOf(r);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}})
|
|
70
70
|
/* eslint-disable no-prototype-builtins */;var M="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
|
|
71
71
|
// eslint-disable-next-line no-undef
|
|
72
|
-
"undefined"!=typeof global&&global||{},U="URLSearchParams"in M,$="Symbol"in M&&"iterator"in Symbol,
|
|
72
|
+
"undefined"!=typeof global&&global||{},U="URLSearchParams"in M,$="Symbol"in M&&"iterator"in Symbol,k="FileReader"in M&&"Blob"in M&&function(){try{return new Blob,!0}catch(t){return!1}}(),D="FormData"in M,G="ArrayBuffer"in M;if(G)var j=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],F=ArrayBuffer.isView||function(t){return t&&j.indexOf(Object.prototype.toString.call(t))>-1};function V(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function X(t){return"string"!=typeof t&&(t=String(t)),t}
|
|
73
73
|
// Build a destructive iterator for the value list
|
|
74
74
|
function W(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return $&&(e[Symbol.iterator]=function(){return e}),e}function z(t){this.map={},t instanceof z?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function K(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function Y(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function Z(t){var e=new FileReader,r=Y(e);return e.readAsArrayBuffer(t),r}function q(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function J(){return this.bodyUsed=!1,this._initBody=function(t){var e;
|
|
75
75
|
/*
|
|
@@ -83,9 +83,9 @@ function W(t){var e={next:function(){var e=t.shift();return{done:void 0===e,valu
|
|
|
83
83
|
_initBody is called.
|
|
84
84
|
*/
|
|
85
85
|
// eslint-disable-next-line no-self-assign
|
|
86
|
-
this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:
|
|
86
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:k&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:D&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:U&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():G&&k&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=q(t.buffer),
|
|
87
87
|
// IE 10-11 can't handle a DataView body.
|
|
88
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):G&&(ArrayBuffer.prototype.isPrototypeOf(t)||F(t))?this._bodyArrayBuffer=q(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):U&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},
|
|
88
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):G&&(ArrayBuffer.prototype.isPrototypeOf(t)||F(t))?this._bodyArrayBuffer=q(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):U&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},k&&(this.blob=function(){var t=K(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=K(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(k)return this.blob().then(Z);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,i,o=K(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=Y(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=n?n[1]:"utf-8",e.readAsText(t,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},D&&(this.formData=function(){return this.text().then(et)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
89
89
|
// HTTP methods whose capitalization should be normalized
|
|
90
90
|
z.prototype.append=function(t,e){t=V(t),e=X(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},z.prototype.delete=function(t){delete this.map[V(t)]},z.prototype.get=function(t){return t=V(t),this.has(t)?this.map[t]:null},z.prototype.has=function(t){return this.map.hasOwnProperty(V(t))},z.prototype.set=function(t,e){this.map[V(t)]=X(e)},z.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},z.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),W(t)},z.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),W(t)},z.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),W(t)},$&&(z.prototype[Symbol.iterator]=z.prototype.entries);var Q=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function tt(t,e){if(!(this instanceof tt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(e=e||{}).body;if(t instanceof tt){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new z(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new z(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),Q.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in M)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){
|
|
91
91
|
// Search for a '_' parameter in the query string
|
|
@@ -98,7 +98,7 @@ this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.te
|
|
|
98
98
|
t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{e.append(n,i)}catch(t){console.warn("Response "+t.message)}}})),e)};
|
|
99
99
|
// This check if specifically for when a user fetches a file locally from the file system
|
|
100
100
|
// Only if the status is out of a normal range
|
|
101
|
-
0===i.url.indexOf("file://")&&(o.status<200||o.status>599)?n.status=200:n.status=o.status,n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){r(new rt(s,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){n(new it("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&M.location.href?M.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(
|
|
101
|
+
0===i.url.indexOf("file://")&&(o.status<200||o.status>599)?n.status=200:n.status=o.status,n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){r(new rt(s,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){n(new it("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&M.location.href?M.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(k?o.responseType="blob":G&&(o.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof z||M.Headers&&e.headers instanceof M.Headers)){var a=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){a.push(V(t)),o.setRequestHeader(t,X(e.headers[t]))})),i.headers.forEach((function(t,e){-1===a.indexOf(e)&&o.setRequestHeader(e,t)}))}else i.headers.forEach((function(t,e){o.setRequestHeader(e,t)}));i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
|
|
102
102
|
// DONE (success or failure)
|
|
103
103
|
4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}ot.polyfill=!0,M.fetch||(M.fetch=ot,M.Headers=z,M.Request=tt,M.Response=rt),
|
|
104
104
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
@@ -120,7 +120,7 @@ self.fetch.bind(self);
|
|
|
120
120
|
PERFORMANCE OF THIS SOFTWARE.
|
|
121
121
|
***************************************************************************** */
|
|
122
122
|
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
123
|
-
var st=function(t,e){return st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},st(t,e)};function at(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}st(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ct(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function lt(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function ut(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function ht(t){return"function"==typeof t}function pt(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}"function"==typeof SuppressedError&&SuppressedError;var ft=pt((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function dt(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var mt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var t,e,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=ct(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(ht(c))try{c()}catch(t){i=t instanceof ft?t.errors:[t]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=ct(l),h=u.next();!h.done;h=u.next()){var p=h.value;try{gt(p)}catch(t){i=null!=i?i:[],t instanceof ft?i=ut(ut([],lt(i)),lt(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(i)throw new ft(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)gt(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&dt(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&dt(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),yt=mt.EMPTY;function bt(t){return t instanceof mt||t&&"closed"in t&&ht(t.remove)&&ht(t.add)&&ht(t.unsubscribe)}function gt(t){ht(t)?t():t.unsubscribe()}var vt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Et={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Et.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,ut([t,e],lt(r))):setTimeout.apply(void 0,ut([t,e],lt(r)))},clearTimeout:function(t){var e=Et.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function _t(){}var Tt=null;function wt(t){if(vt.useDeprecatedSynchronousErrorHandling){var e=!Tt;if(e&&(Tt={errorThrown:!1,error:null}),t(),e){var r=Tt,n=r.errorThrown,i=r.error;if(Tt=null,n)throw i}}else t()}var At=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,bt(e)&&e.add(r)):r.destination=Ct,r}return at(e,t),e.create=function(t,e,r){return new Pt(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(mt),Bt=Function.prototype.bind;function Ht(t,e){return Bt.call(t,e)}var St=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Lt(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Lt(t)}else Lt(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Lt(t)}},t}(),Pt=function(t){function e(e,r,n){var i,o,s=t.call(this)||this;ht(e)||!e?i={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&vt.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&Ht(e.next,o),error:e.error&&Ht(e.error,o),complete:e.complete&&Ht(e.complete,o)}):i=e;return s.destination=new St(i),s}return at(e,t),e}(At);function Lt(t){var e;e=t,Et.setTimeout((function(){throw e}))}var Ct={closed:!0,next:_t,error:function(t){throw t},complete:_t},Ot="function"==typeof Symbol&&Symbol.observable||"@@observable";function xt(t){return t}var It=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,i=this,o=(n=t)&&n instanceof At||function(t){return t&&ht(t.next)&&ht(t.error)&&ht(t.complete)}(n)&&bt(n)?t:new Pt(t,e,r);return wt((function(){var t=i,e=t.operator,r=t.source;o.add(e?e.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=Nt(e))((function(e,n){var i=new Pt({next:function(e){try{t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:e});r.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Ot]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?xt:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Nt(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function Nt(t){var e;return null!==(e=null!=t?t:vt.Promise)&&void 0!==e?e:Promise}var Rt=pt((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Mt=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return at(e,t),e.prototype.lift=function(t){var e=new Ut(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Rt},e.prototype.next=function(t){var e=this;wt((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=ct(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;wt((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;wt((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?yt:(this.currentObservers=null,o.push(t),new mt((function(){e.currentObservers=null,dt(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,i=e.isStopped;r?t.error(n):i&&t.complete()},e.prototype.asObservable=function(){var t=new It;return t.source=this,t},e.create=function(t,e){return new Ut(t,e)},e}(It),Ut=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return at(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:yt},e}(Mt),$t={now:function(){return($t.delegate||Date).now()},delegate:void 0},Dt=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=$t);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return at(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(e),!o&&i.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,c=1;c<n.length&&n[c]<=s;c+=2)a=c;a&&n.splice(0,a+1)}},e}(Mt);let kt=[],Gt={};
|
|
123
|
+
var st=function(t,e){return st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},st(t,e)};function at(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}st(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ct(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function lt(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function ut(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function ht(t){return"function"==typeof t}function pt(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}"function"==typeof SuppressedError&&SuppressedError;var ft=pt((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function dt(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var mt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var t,e,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=ct(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(ht(c))try{c()}catch(t){i=t instanceof ft?t.errors:[t]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=ct(l),h=u.next();!h.done;h=u.next()){var p=h.value;try{gt(p)}catch(t){i=null!=i?i:[],t instanceof ft?i=ut(ut([],lt(i)),lt(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(i)throw new ft(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)gt(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&dt(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&dt(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),yt=mt.EMPTY;function bt(t){return t instanceof mt||t&&"closed"in t&&ht(t.remove)&&ht(t.add)&&ht(t.unsubscribe)}function gt(t){ht(t)?t():t.unsubscribe()}var vt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Et={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Et.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,ut([t,e],lt(r))):setTimeout.apply(void 0,ut([t,e],lt(r)))},clearTimeout:function(t){var e=Et.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function _t(){}var Tt=null;function wt(t){if(vt.useDeprecatedSynchronousErrorHandling){var e=!Tt;if(e&&(Tt={errorThrown:!1,error:null}),t(),e){var r=Tt,n=r.errorThrown,i=r.error;if(Tt=null,n)throw i}}else t()}var At=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,bt(e)&&e.add(r)):r.destination=Ct,r}return at(e,t),e.create=function(t,e,r){return new Pt(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(mt),Bt=Function.prototype.bind;function Ht(t,e){return Bt.call(t,e)}var St=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Lt(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Lt(t)}else Lt(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Lt(t)}},t}(),Pt=function(t){function e(e,r,n){var i,o,s=t.call(this)||this;ht(e)||!e?i={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&vt.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&Ht(e.next,o),error:e.error&&Ht(e.error,o),complete:e.complete&&Ht(e.complete,o)}):i=e;return s.destination=new St(i),s}return at(e,t),e}(At);function Lt(t){var e;e=t,Et.setTimeout((function(){throw e}))}var Ct={closed:!0,next:_t,error:function(t){throw t},complete:_t},Ot="function"==typeof Symbol&&Symbol.observable||"@@observable";function xt(t){return t}var It=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,i=this,o=(n=t)&&n instanceof At||function(t){return t&&ht(t.next)&&ht(t.error)&&ht(t.complete)}(n)&&bt(n)?t:new Pt(t,e,r);return wt((function(){var t=i,e=t.operator,r=t.source;o.add(e?e.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=Nt(e))((function(e,n){var i=new Pt({next:function(e){try{t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:e});r.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Ot]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?xt:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Nt(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function Nt(t){var e;return null!==(e=null!=t?t:vt.Promise)&&void 0!==e?e:Promise}var Rt=pt((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Mt=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return at(e,t),e.prototype.lift=function(t){var e=new Ut(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Rt},e.prototype.next=function(t){var e=this;wt((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=ct(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;wt((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;wt((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?yt:(this.currentObservers=null,o.push(t),new mt((function(){e.currentObservers=null,dt(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,i=e.isStopped;r?t.error(n):i&&t.complete()},e.prototype.asObservable=function(){var t=new It;return t.source=this,t},e.create=function(t,e){return new Ut(t,e)},e}(It),Ut=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return at(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:yt},e}(Mt),$t={now:function(){return($t.delegate||Date).now()},delegate:void 0},kt=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=$t);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return at(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(e),!o&&i.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,c=1;c<n.length&&n[c]<=s;c+=2)a=c;a&&n.splice(0,a+1)}},e}(Mt);let Dt=[],Gt={};
|
|
124
124
|
/**
|
|
125
125
|
* @name topic
|
|
126
126
|
* @description A small wrapper over the rxjs to offer the topic method on top of it
|
|
@@ -352,7 +352,7 @@ e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12"
|
|
|
352
352
|
var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(xe[r||""]||xe[n||""]||xe["".concat(n,"-001")]||xe["001"])[0]}var Ne=new RegExp("^".concat(ge.source,"*")),Re=new RegExp("".concat(ge.source,"*$"));function Me(t,e){return{start:t,end:e}}
|
|
353
353
|
// #region Ponyfills
|
|
354
354
|
// Consolidate these variables up top for easier toggling during debugging
|
|
355
|
-
var Ue=!!String.prototype.startsWith,$e=!!String.fromCodePoint,
|
|
355
|
+
var Ue=!!String.prototype.startsWith,$e=!!String.fromCodePoint,ke=!!Object.fromEntries,De=!!String.prototype.codePointAt,Ge=!!String.prototype.trimStart,je=!!String.prototype.trimEnd,Fe=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ve=!0;try{
|
|
356
356
|
/**
|
|
357
357
|
* legacy Edge or Xbox One browser
|
|
358
358
|
* Unicode flag support: supported
|
|
@@ -364,8 +364,8 @@ function(t,e,r){return t.startsWith(e,r)}:// For IE11
|
|
|
364
364
|
function(t,e,r){return t.slice(r,r+e.length)===e},ze=$e?String.fromCodePoint:// IE11
|
|
365
365
|
function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;i>o;){if((r=t[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Ke=
|
|
366
366
|
// native
|
|
367
|
-
|
|
368
|
-
function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],s=i[1];e[o]=s}return e},Ye=
|
|
367
|
+
ke?Object.fromEntries:// Ponyfill
|
|
368
|
+
function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],s=i[1];e[o]=s}return e},Ye=De?// Native
|
|
369
369
|
function(t,e){return t.codePointAt(e)}:// IE 11
|
|
370
370
|
function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Ze=Ge?// Native
|
|
371
371
|
function(t){return t.trimStart()}:// Ponyfill
|
|
@@ -629,32 +629,32 @@ this.formats=wr(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
629
629
|
// Default format options used as the prototype of the `formats` provided to the
|
|
630
630
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
631
631
|
// and Intl.DateTimeFormat instances.
|
|
632
|
-
t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const Hr={},Sr=(t,e,r)=>r?(e in Hr||(Hr[e]={}),t in Hr[e]||(Hr[e][t]=r),r):r,Pr=(t,e)=>{if(null==e)return;if(e in Hr&&t in Hr[e])return Hr[e][t];const r=Qr(e);for(let n=0;n<r.length;n++){const i=xr(r[n],t);if(i)return Sr(t,e,i)}};let Lr;const Cr=Ft({});function Or(t){return t in Lr}function xr(t,e){if(!Or(t))return null;const r=function(t){return Lr[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Ir(t,...e){delete Hr[t],Cr.update((r=>(r[t]=Qt.all([r[t]||{},...e]),r)))}Vt([Cr],(([t])=>Object.keys(t))),Cr.subscribe((t=>Lr=t));const Nr={};function Rr(t){return Nr[t]}function Mr(t){return null!=t&&Qr(t).some((t=>{var e;return null==(e=Rr(t))?void 0:e.size}))}function Ur(t,e){const r=Promise.all(e.map((e=>(function(t,e){Nr[t].delete(e),0===Nr[t].size&&delete Nr[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Ir(t,...e)))}const $r={};function
|
|
632
|
+
t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const Hr={},Sr=(t,e,r)=>r?(e in Hr||(Hr[e]={}),t in Hr[e]||(Hr[e][t]=r),r):r,Pr=(t,e)=>{if(null==e)return;if(e in Hr&&t in Hr[e])return Hr[e][t];const r=Qr(e);for(let n=0;n<r.length;n++){const i=xr(r[n],t);if(i)return Sr(t,e,i)}};let Lr;const Cr=Ft({});function Or(t){return t in Lr}function xr(t,e){if(!Or(t))return null;const r=function(t){return Lr[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Ir(t,...e){delete Hr[t],Cr.update((r=>(r[t]=Qt.all([r[t]||{},...e]),r)))}Vt([Cr],(([t])=>Object.keys(t))),Cr.subscribe((t=>Lr=t));const Nr={};function Rr(t){return Nr[t]}function Mr(t){return null!=t&&Qr(t).some((t=>{var e;return null==(e=Rr(t))?void 0:e.size}))}function Ur(t,e){const r=Promise.all(e.map((e=>(function(t,e){Nr[t].delete(e),0===Nr[t].size&&delete Nr[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Ir(t,...e)))}const $r={};function kr(t){if(!Mr(t))return t in $r?$r[t]:Promise.resolve();const e=function(t){return Qr(t).map((t=>{const e=Rr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return $r[t]=Promise.all(e.map((([t,e])=>Ur(t,e)))).then((()=>{if(Mr(t))return kr(t);delete $r[t]})),$r[t]}const Dr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Gr(){return Dr}const jr=Ft(!1);var Fr=Object.defineProperty,Vr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptors,Wr=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,Yr=(t,e,r)=>e in t?Fr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let Zr;const qr=Ft(null);function Jr(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Qr(t,e=Gr().fallbackLocale){const r=Jr(t);return e?[...new Set([...r,...Jr(e)])]:r}function tn(){return null!=Zr?Zr:void 0}qr.subscribe((t=>{Zr=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const en=(rn=((t,e)=>{for(var r in e||(e={}))zr.call(e,r)&&Yr(t,r,e[r]);if(Wr)for(var r of Wr(e))Kr.call(e,r)&&Yr(t,r,e[r]);return t})({},qr),Vr(rn,Xr({set:t=>{if(t&&function(t){if(null==t)return;const e=Qr(t);for(let t=0;t<e.length;t++){const r=e[t];if(Or(r))return r}}(t)&&Mr(t)){const{loadingDelay:e}=Gr();let r;return"undefined"!=typeof window&&null!=tn()&&e?r=window.setTimeout((()=>jr.set(!0)),e):jr.set(!0),kr(t).then((()=>{qr.set(t)})).finally((()=>{clearTimeout(r),jr.set(!1)}))}return qr.set(t)}})));var rn;const nn=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}};var on=Object.defineProperty,sn=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,ln=(t,e,r)=>e in t?on(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,un=(t,e)=>{for(var r in e||(e={}))an.call(e,r)&&ln(t,r,e[r]);if(sn)for(var r of sn(e))cn.call(e,r)&&ln(t,r,e[r]);return t},hn=(t,e)=>{var r={};for(var n in t)an.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&sn)for(var n of sn(t))e.indexOf(n)<0&&cn.call(t,n)&&(r[n]=t[n]);return r};const pn=(t,e)=>{const{formats:r}=Gr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},fn=nn((t=>{var e=t,{locale:r,format:n}=e,i=hn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=pn("number",n)),new Intl.NumberFormat(r,i)})),dn=nn((t=>{var e=t,{locale:r,format:n}=e,i=hn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=pn("date",n):0===Object.keys(i).length&&(i=pn("date","short")),new Intl.DateTimeFormat(r,i)})),mn=nn((t=>{var e=t,{locale:r,format:n}=e,i=hn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=pn("time",n):0===Object.keys(i).length&&(i=pn("time","short")),new Intl.DateTimeFormat(r,i)})),yn=nn((
|
|
633
633
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
634
|
-
(t,e=tn())=>new Br(t,e,Gr().formats,{ignoreTag:Gr().ignoreTag}))),bn=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:c=tn(),default:l}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Pr(t,c);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(n=(r=Gr()).handleMissingMessage)?void 0:n.call(r,{locale:c,id:t,defaultValue:l}))?i:l)?o:t;if(!a)return u;let h=u;try{h=yn(u,c).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},gn=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=hn(e,["locale"]);return mn(un({locale:r},n))})(e).format(t),vn=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=hn(e,["locale"]);return dn(un({locale:r},n))})(e).format(t),En=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=hn(e,["locale"]);return fn(un({locale:r},n))})(e).format(t),_n=(t,e=tn())=>Pr(t,e);Vt([en,Cr],(()=>bn)),Vt([en],(()=>gn)),Vt([en],(()=>vn)),Vt([en],(()=>En)),Vt([en,Cr],(()=>_n)),window.emWidgets={topic:(t,e=0)=>{if(-1==
|
|
634
|
+
(t,e=tn())=>new Br(t,e,Gr().formats,{ignoreTag:Gr().ignoreTag}))),bn=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:c=tn(),default:l}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Pr(t,c);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(n=(r=Gr()).handleMissingMessage)?void 0:n.call(r,{locale:c,id:t,defaultValue:l}))?i:l)?o:t;if(!a)return u;let h=u;try{h=yn(u,c).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},gn=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=hn(e,["locale"]);return mn(un({locale:r},n))})(e).format(t),vn=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=hn(e,["locale"]);return dn(un({locale:r},n))})(e).format(t),En=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=hn(e,["locale"]);return fn(un({locale:r},n))})(e).format(t),_n=(t,e=tn())=>Pr(t,e);Vt([en,Cr],(()=>bn)),Vt([en],(()=>gn)),Vt([en],(()=>vn)),Vt([en],(()=>En)),Vt([en,Cr],(()=>_n)),window.emWidgets={topic:(t,e=0)=>{if(-1==Dt.indexOf(t)){let r=new kt(e);Gt[t]=r,Dt.push(t)}return Gt[t]}};function Tn(t,e){Ir(t,e)}const wn={en:{loadingText:"Loading, please wait..."},"zh-hk":{loadingText:"加载请稍候 ..."},fr:{loadingText:"Chargement, veuillez patienter..."},ro:{loadingText:"Se incarca, va rugam asteptati..."},es:{loadingText:"Cargando"},pt:{loadingText:"Carregando, por favor espere..."},de:{loadingText:"Laden, bitte warten..."},hr:{loadingText:"Učitavanje"},"pt-br":{CarregandoText:"Carregando"},"es-mx":{CargandoText:"Cargando, por favor espere…"},tr:{loadingText:"Yükleniyor, lütfen bekleyin..."}};
|
|
635
635
|
/* src/CasinoJackpotBanner.svelte generated by Svelte v3.59.2 */function An(t,e,r){const n=t.slice();return n[48]=e[r],n[50]=r,n}
|
|
636
636
|
// (168:2) {:else}
|
|
637
|
-
function Bn(t){let e,r,n,i,o,s,a,f,y,g,v,E,_,T,w
|
|
638
|
-
return t[5]?Pn:Ln}let
|
|
637
|
+
function Bn(t){let e,r,n,i,o,s,a,f,y,g,v,E,_,T,w;function A(t,e){/*tabletView*/
|
|
638
|
+
return t[5]?Pn:Ln}let B=A(t),H=B(t);return{c(){e=p("div"),r=p("div"),n=p("div"),i=p("div"),o=d(),s=p("div"),H.c(),a=d(),f=p("div"),y=p("img"),m(i,"class","vendorLogo"),b(i,"background-image","url("+/*vendorIcon*/t[6]+")"),m(s,"class","displayContainer"),c(y.src,g=/*titleLogoImg*/t[11])||m(y,"src",g),m(y,"alt",""),m(f,"class","title"),m(n,"class",v="mainWrapper "+/*visualstructure*/t[0]+" "+(/*mobileView*/t[4]&&!/*tabletView*/t[5]?"mobile":/*tabletView*/t[5]?"tablet":"")),b(n,"background","url("+/*backgroundImg*/t[10]+")"),m(r,"class","jackpotBanner"),m(e,"class",E=/*displayNone*/t[12]?"DisplayNone":""),m(e,"part",_=/*displayNone*/t[12]?"DisplayNone":"")},m(c,h){u(c,e,h),l(e,r),l(r,n),l(n,i),l(n,o),l(n,s),H.m(s,null),l(n,a),l(n,f),l(f,y),T||(w=function(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}(r,"click",/*click_handler*/t[31]),T=!0)},p(t,r){/*vendorIcon*/64&r[0]&&b(i,"background-image","url("+/*vendorIcon*/t[6]+")"),B===(B=A(t))&&H?H.p(t,r):(H.d(1),H=B(t),H&&(H.c(),H.m(s,null))),/*titleLogoImg*/2048&r[0]&&!c(y.src,g=/*titleLogoImg*/t[11])&&m(y,"src",g),/*visualstructure, mobileView, tabletView*/49&r[0]&&v!==(v="mainWrapper "+/*visualstructure*/t[0]+" "+(/*mobileView*/t[4]&&!/*tabletView*/t[5]?"mobile":/*tabletView*/t[5]?"tablet":""))&&m(n,"class",v),/*backgroundImg*/1024&r[0]&&b(n,"background","url("+/*backgroundImg*/t[10]+")"),/*displayNone*/4096&r[0]&&E!==(E=/*displayNone*/t[12]?"DisplayNone":"")&&m(e,"class",E),/*displayNone*/4096&r[0]&&_!==(_=/*displayNone*/t[12]?"DisplayNone":"")&&m(e,"part",_)},d(t){t&&h(e),H.d(),T=!1,w()}}}
|
|
639
639
|
// (166:22)
|
|
640
640
|
function Hn(e){let r;return{c(){r=p("div"),m(r,"class","LoadingSpinner"),m(r,"part","LoadingSpinner")},m(t,e){u(t,r,e)},p:t,d(t){t&&h(r)}}}
|
|
641
641
|
// (164:2) {#if hasErrors}
|
|
642
642
|
function Sn(e){let r;return{c(){r=p("p"),r.textContent="500 Server error"},m(t,e){u(t,r,e)},p:t,d(t){t&&h(r)}}}
|
|
643
643
|
// (178:12) {:else}
|
|
644
|
-
function Pn(t){let e,r,n,i,o,s,a,b,g,v,E,_,T,w,A,B,H,S,P,L,C,O,x,I,N,R,M,U,$,D,
|
|
644
|
+
function Pn(t){let e,r,n,i,o,s,a,b,g,v,E,_,T,w,A,B,H,S,P,L,C,O,x,I,N,R,M,U,$,k,D,G,j,F,V,X,W,z,K,Y,Z,q,J,Q,tt,et,rt,nt,it,ot,st,at,ct,lt=/*formattedLabels*/t[8][0]+"",ut=/*formattedJackpotValues*/t[7][0]+"",ht=/*formattedLabels*/t[8][1]+"",pt=/*formattedJackpotValues*/t[7][1]+"",ft=/*formattedLabels*/t[8][2]+"",dt=/*formattedJackpotValues*/t[7][2]+"",mt=/*formattedLabels*/t[8][3]+"",yt=/*formattedJackpotValues*/t[7][3]+"";return{c(){e=p("div"),r=p("div"),n=p("div"),i=p("img"),s=p("span"),a=f(lt),b=p("span"),g=p("span"),v=f(ut),E=d(),_=p("span"),T=f(/*currency*/t[1]),w=d(),A=p("div"),B=p("div"),H=p("img"),P=p("span"),L=f(ht),C=p("span"),O=p("span"),x=f(pt),I=d(),N=p("span"),R=f(/*currency*/t[1]),M=d(),U=p("div"),$=p("div"),k=p("div"),D=p("img"),j=p("span"),F=f(ft),V=p("span"),X=p("span"),W=f(dt),z=d(),K=p("span"),Y=f(/*currency*/t[1]),Z=d(),q=p("div"),J=p("div"),Q=p("img"),et=p("span"),rt=f(mt),nt=p("span"),it=p("span"),ot=f(yt),st=d(),at=p("span"),ct=f(/*currency*/t[1]),m(i,"class","displayCardIcon"),c(i.src,o=/*caticons*/t[9][0])||m(i,"src",o),m(i,"alt",""),m(s,"class","cardLabel"),m(n,"class","iconWrapper"),m(g,"class","jackpotValue"),m(_,"class","jackpot-currency"),m(b,"class","cardTextWrapper"),m(r,"class","displayCard"),m(H,"class","displayCardIcon"),c(H.src,S=/*caticons*/t[9][1])||m(H,"src",S),m(H,"alt",""),m(P,"class","cardLabel"),m(B,"class","iconWrapper"),m(O,"class","jackpotValue"),m(N,"class","jackpot-currency"),m(C,"class","cardTextWrapper"),m(A,"class","displayCard"),m(e,"class","pairWrapper"),m(D,"class","displayCardIcon"),c(D.src,G=/*caticons*/t[9][2])||m(D,"src",G),m(D,"alt",""),m(j,"class","cardLabel"),m(k,"class","iconWrapper"),m(X,"class","jackpotValue"),m(K,"class","jackpot-currency"),m(V,"class","cardTextWrapper"),m($,"class","displayCard"),m(Q,"class","displayCardIcon"),c(Q.src,tt=/*caticons*/t[9][3])||m(Q,"src",tt),m(Q,"alt",""),m(et,"class","cardLabel"),m(J,"class","iconWrapper"),m(it,"class","jackpotValue"),m(at,"class","jackpot-currency"),m(nt,"class","cardTextWrapper"),m(q,"class","displayCard"),m(U,"class","pairWrapper")},m(t,o){u(t,e,o),l(e,r),l(r,n),l(n,i),l(n,s),l(s,a),l(r,b),l(b,g),l(g,v),l(b,E),l(b,_),l(_,T),l(e,w),l(e,A),l(A,B),l(B,H),l(B,P),l(P,L),l(A,C),l(C,O),l(O,x),l(C,I),l(C,N),l(N,R),u(t,M,o),u(t,U,o),l(U,$),l($,k),l(k,D),l(k,j),l(j,F),l($,V),l(V,X),l(X,W),l(V,z),l(V,K),l(K,Y),l(U,Z),l(U,q),l(q,J),l(J,Q),l(J,et),l(et,rt),l(q,nt),l(nt,it),l(it,ot),l(nt,st),l(nt,at),l(at,ct)},p(t,e){/*caticons*/512&e[0]&&!c(i.src,o=/*caticons*/t[9][0])&&m(i,"src",o),/*formattedLabels*/256&e[0]&<!==(lt=/*formattedLabels*/t[8][0]+"")&&y(a,lt),/*formattedJackpotValues*/128&e[0]&&ut!==(ut=/*formattedJackpotValues*/t[7][0]+"")&&y(v,ut),/*currency*/2&e[0]&&y(T,/*currency*/t[1]),/*caticons*/512&e[0]&&!c(H.src,S=/*caticons*/t[9][1])&&m(H,"src",S),/*formattedLabels*/256&e[0]&&ht!==(ht=/*formattedLabels*/t[8][1]+"")&&y(L,ht),/*formattedJackpotValues*/128&e[0]&&pt!==(pt=/*formattedJackpotValues*/t[7][1]+"")&&y(x,pt),/*currency*/2&e[0]&&y(R,/*currency*/t[1]),/*caticons*/512&e[0]&&!c(D.src,G=/*caticons*/t[9][2])&&m(D,"src",G),/*formattedLabels*/256&e[0]&&ft!==(ft=/*formattedLabels*/t[8][2]+"")&&y(F,ft),/*formattedJackpotValues*/128&e[0]&&dt!==(dt=/*formattedJackpotValues*/t[7][2]+"")&&y(W,dt),/*currency*/2&e[0]&&y(Y,/*currency*/t[1]),/*caticons*/512&e[0]&&!c(Q.src,tt=/*caticons*/t[9][3])&&m(Q,"src",tt),/*formattedLabels*/256&e[0]&&mt!==(mt=/*formattedLabels*/t[8][3]+"")&&y(rt,mt),/*formattedJackpotValues*/128&e[0]&&yt!==(yt=/*formattedJackpotValues*/t[7][3]+"")&&y(ot,yt),/*currency*/2&e[0]&&y(ct,/*currency*/t[1])},d(t){t&&h(e),t&&h(M),t&&h(U)}}}
|
|
645
645
|
// (174:12) {#if !tabletView}
|
|
646
646
|
function Ln(t){let e,r=Array(4),n=[];for(let e=0;e<r.length;e+=1)n[e]=Cn(An(t,r,e));return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=f("")},m(t,r){for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,r);u(t,e,r)},p(t,i){if(/*currency, formattedJackpotValues, formattedLabels, caticons*/898&i[0]){let o;for(r=Array(4),o=0;o<r.length;o+=1){const s=An(t,r,o);n[o]?n[o].p(s,i):(n[o]=Cn(s),n[o].c(),n[o].m(e.parentNode,e))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length}},d(t){!function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(n,t),t&&h(e)}}}
|
|
647
647
|
// (175:14) {#each Array(4) as _, i}
|
|
648
648
|
function Cn(t){let e,r,n,i,o,s,a,b,g,v,E,_,T=/*formattedLabels*/t[8][/*i*/t[50]]+"",w=/*formattedJackpotValues*/(t[7][/*i*/t[50]]??"")+"";return{c(){e=p("div"),r=p("div"),n=p("img"),o=p("span"),s=f(T),a=p("span"),b=p("span"),g=f(w),v=d(),E=p("span"),_=f(/*currency*/t[1]),m(n,"class","displayCardIcon"),c(n.src,i=/*caticons*/t[9][/*i*/t[50]])||m(n,"src",i),m(n,"alt",""),m(o,"class","cardLabel"),m(r,"class","iconWrapper"),m(b,"class","jackpotValue"),m(E,"class","jackpot-currency"),m(a,"class","cardTextWrapper"),m(e,"class","displayCard")},m(t,i){u(t,e,i),l(e,r),l(r,n),l(r,o),l(o,s),l(e,a),l(a,b),l(b,g),l(a,v),l(a,E),l(E,_)},p(t,e){/*caticons*/512&e[0]&&!c(n.src,i=/*caticons*/t[9][/*i*/t[50]])&&m(n,"src",i),/*formattedLabels*/256&e[0]&&T!==(T=/*formattedLabels*/t[8][/*i*/t[50]]+"")&&y(s,T),/*formattedJackpotValues*/128&e[0]&&w!==(w=/*formattedJackpotValues*/(t[7][/*i*/t[50]]??"")+"")&&y(g,w),/*currency*/2&e[0]&&y(_,/*currency*/t[1])},d(t){t&&h(e)}}}function On(e){let r;function n(t,e){/*hasErrors*/
|
|
649
649
|
return t[13]?Sn:/*isLoading*/t[3]?Hn:Bn}let i=n(e),o=i(e);return{c(){r=p("div"),o.c(),this.c=t},m(t,n){u(t,r,n),o.m(r,null),
|
|
650
650
|
/*div_binding*/e[32](r)},p(t,e){i===(i=n(t))&&o?o.p(t,e):(o.d(1),o=i(t),o&&(o.c(),o.m(r,null)))},i:t,o:t,d(t){t&&h(r),o.d(),
|
|
651
|
-
/*div_binding*/e[32](null)}}}function xn(t,e,r){let n,i,{visualstructure:o=""}=e,{title:s=""}=e,{caticon0:a=""}=e,{caticon1:c=""}=e,{caticon2:l=""}=e,{caticon3:u=""}=e,{iconlabels:h=""}=e,{backgroundsrc:p=""}=e,{currency:f=""}=e,{backgroundsrcmobile:d=""}=e,{titlelogopath:m=""}=e,{lang:y="en"}=e,{clientstyling:b=""}=e,{clientstylingurl:g=""}=e,{translationurl:v=""}=e,{endpoint:E=""}=e,{gameid:T=""}=e,w=window.navigator.userAgent,A=!1,B=!1,H="",S=[],P=[],L=[],C=[],O=[],x="",I="",N=!1,R=!0,M=!1;Object.keys(wn).forEach((t=>{Tn(t,wn[t])}));const U=["typeSpread","typeLeft"],$=()=>{if(E&&y&&f){let t=new URL(`${E}/v1/casino/jackpots`);t.searchParams.append("filter",`id=${T}`),t.searchParams.append("language",y),t.searchParams.append("additionalDataCurrency",f),fetch(t.href).then((t=>t.json().then((t=>{r(3,R=!1),i=t,P.includes(T)&&((t=>{var e;const r=null===(e=null==t?void 0:t.items[0])||void 0===e?void 0:e.additionalData;r&&Object.values(r).forEach((t=>S.push(+t)))})(i),(t=>{var e;r(6,H=(null===(e=null==t?void 0:t.items[0])||void 0===e?void 0:e.vendorLogo)||"")})(i))})).catch((t=>{r(13,M=!0),r(3,R=!1),console.error(t)}))))}},
|
|
651
|
+
/*div_binding*/e[32](null)}}}function xn(t,e,r){let n,i,{visualstructure:o=""}=e,{title:s=""}=e,{caticon0:a=""}=e,{caticon1:c=""}=e,{caticon2:l=""}=e,{caticon3:u=""}=e,{iconlabels:h=""}=e,{backgroundsrc:p=""}=e,{currency:f=""}=e,{backgroundsrcmobile:d=""}=e,{titlelogopath:m=""}=e,{lang:y="en"}=e,{clientstyling:b=""}=e,{clientstylingurl:g=""}=e,{translationurl:v=""}=e,{endpoint:E=""}=e,{gameid:T=""}=e,w=window.navigator.userAgent,A=!1,B=!1,H="",S=[],P=[],L=[],C=[],O=[],x="",I="",N=!1,R=!0,M=!1;Object.keys(wn).forEach((t=>{Tn(t,wn[t])}));const U=["typeSpread","typeLeft"],$=()=>{if(E&&y&&f){let t=new URL(`${E}/v1/casino/jackpots`);t.searchParams.append("filter",`id=${T}`),t.searchParams.append("language",y),t.searchParams.append("additionalDataCurrency",f),fetch(t.href).then((t=>t.json().then((t=>{r(3,R=!1),i=t,P.includes(T)&&((t=>{var e;const r=null===(e=null==t?void 0:t.items[0])||void 0===e?void 0:e.additionalData;r&&Object.values(r).forEach((t=>S.push(+t)))})(i),(t=>{var e;r(6,H=(null===(e=null==t?void 0:t.items[0])||void 0===e?void 0:e.vendorLogo)||"")})(i))})).catch((t=>{r(13,M=!0),r(3,R=!1),console.error(t)}))))}},k=t=>t.map((t=>Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(t))),D=()=>{const t=window.innerHeight/window.innerWidth;return.75<t&&t<1.6},G=()=>{window.postMessage({type:"JackpotBannerClicked",gameid:T},window.location.href),
|
|
652
652
|
//Analytics event
|
|
653
653
|
"function"==typeof gtag&>ag("event","JackpotBannerClicked",{context:"JackpotBanner",gameId:`${T}`})},j=()=>{var t;t=y,en.set(t)};return t.$$set=t=>{"visualstructure"in t&&r(0,o=t.visualstructure),"title"in t&&r(15,s=t.title),"caticon0"in t&&r(16,a=t.caticon0),"caticon1"in t&&r(17,c=t.caticon1),"caticon2"in t&&r(18,l=t.caticon2),"caticon3"in t&&r(19,u=t.caticon3),"iconlabels"in t&&r(20,h=t.iconlabels),"backgroundsrc"in t&&r(21,p=t.backgroundsrc),"currency"in t&&r(1,f=t.currency),"backgroundsrcmobile"in t&&r(22,d=t.backgroundsrcmobile),"titlelogopath"in t&&r(23,m=t.titlelogopath),"lang"in t&&r(24,y=t.lang),"clientstyling"in t&&r(25,b=t.clientstyling),"clientstylingurl"in t&&r(26,g=t.clientstylingurl),"translationurl"in t&&r(27,v=t.translationurl),"endpoint"in t&&r(28,E=t.endpoint),"gameid"in t&&r(29,T=t.gameid)},t.$$.update=()=>{/*endpoint*/268435456&t.$$.dirty[0]&&E&&(()=>{let t=new URL(`${E}/v1/casino/jackpots/config`);fetch(t.href).then((t=>t.json())).then((t=>{r(30,P=t.egtJackpotIds.map((t=>t)))}))})(),/*customStylingContainer, clientstyling*/33554436&t.$$.dirty[0]&&n&&b&&(()=>{let t=document.createElement("style");t.innerHTML=b,n.appendChild(t)})(),/*customStylingContainer, clientstylingurl*/67108868&t.$$.dirty[0]&&n&&g&&(()=>{r(12,N=!0);let t=new URL(g),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{n.appendChild(e)}),1),setTimeout((()=>{r(12,N=!1)}),500)}))})(),/*endpoint, lang, currency, validGameIds*/1358954498&t.$$.dirty[0]&&E&&y&&f&&P.length>0&&$(),/*currency, lang, isLoading*/16777226&t.$$.dirty[0]&&f&&y&&!R&&(
|
|
654
654
|
// Also checking that ratio is above 1 to work with edge cases where the ratio is landscape but the userAgent comes back as mobile
|
|
655
|
-
r(4,A=(t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(w)&&window.innerHeight/window.innerWidth>1),r(5,B=
|
|
655
|
+
r(4,A=(t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(w)&&window.innerHeight/window.innerWidth>1),r(5,B=D()),
|
|
656
656
|
// Format jackpot values & labels
|
|
657
|
-
0!==S.length&&r(7,L=
|
|
657
|
+
0!==S.length&&r(7,L=k(S)),r(8,C=h?h.split(",").map((t=>t.trim().toUpperCase())):new Array(4).fill("")),
|
|
658
658
|
// check if visualtype passed is correct (longer string prone to errors. maybe shorten the strings to be less descriptive, but also less error prone?)
|
|
659
|
-
U.includes(o.trim())?r(0,o=o.trim()):(console.warn(`Invalid Attribute Value: "${o}" is not a valid value for the "visualstructure" attribute. Defaulting to "${U[0]}"`),r(0,o=U[0])),r(10,x=d&&A&&!B?d:p),r(11,I=m),r(9,O=[a,c,l,u])),/*lang*/16777216&t.$$.dirty[0]&&y&&j(),/*translationurl*/134217728&t.$$.dirty[0]&&v&&fetch(v).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Tn(e,t[e])}))})).catch((t=>{console.log(t)}))},[o,f,n,R,A,B,H,L,C,O,x,I,N,M,G,s,a,c,l,u,h,p,d,m,y,b,g,v,E,T,P,()=>G(),function(t){_[t?"unshift":"push"]((()=>{n=t,r(2,n)}))}]}class In extends R{constructor(t){super();const e=document.createElement("style");e.textContent=':host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.mainWrapper{padding:33px 3vw;background-repeat:no-repeat !important;background-size:cover !important;border-radius:7px;display:grid;grid-gap:0.5rem;z-index:0}.vendorLogo{grid-area:vendorLogo;height:
|
|
659
|
+
U.includes(o.trim())?r(0,o=o.trim()):(console.warn(`Invalid Attribute Value: "${o}" is not a valid value for the "visualstructure" attribute. Defaulting to "${U[0]}"`),r(0,o=U[0])),r(10,x=d&&A&&!B?d:p),r(11,I=m),r(9,O=[a,c,l,u])),/*lang*/16777216&t.$$.dirty[0]&&y&&j(),/*translationurl*/134217728&t.$$.dirty[0]&&v&&fetch(v).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Tn(e,t[e])}))})).catch((t=>{console.log(t)}))},[o,f,n,R,A,B,H,L,C,O,x,I,N,M,G,s,a,c,l,u,h,p,d,m,y,b,g,v,E,T,P,()=>G(),function(t){_[t?"unshift":"push"]((()=>{n=t,r(2,n)}))}]}class In extends R{constructor(t){super();const e=document.createElement("style");e.textContent=':host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.mainWrapper{padding:33px 3vw;background-repeat:no-repeat !important;background-size:cover !important;border-radius:7px;display:grid;grid-gap:0.5rem;z-index:0}.vendorLogo{grid-area:vendorLogo;height:44px;width:auto;min-width:130px;background-repeat:no-repeat;background-position:right center}.displayCard{position:relative;background:#1c2136;height:max(0.5vw, 1rem);padding:10px 20px 10px 24px;margin:0 8px;box-sizing:content-box;border-radius:7px;display:flex;justify-content:center;align-items:center;border:1px solid #ffc052}.displayCard .iconWrapper{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard .displayCardIcon{height:100%;width:auto}.displayCard .cardLabel{font-size:0.8rem;font-style:italic}.displayCard .cardTextWrapper{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title{grid-area:title;display:flex;align-items:center}.title img{height:50px}.displayContainer{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer .jackpotValue{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer .jackpot-currency{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread .pairWrapper{justify-content:center}.typeSpread .vendorLogo{justify-content:flex-end}.typeSpread .title{justify-content:flex-start}.typeSpread .displayContainer{justify-content:space-evenly}.typeLeft{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile .displayContainer{margin-top:50px;gap:2.6rem}.typeLeft .displayContainer{padding-left:2rem;width:auto;gap:2rem}.typeLeft .pairWrapper{justify-content:space-evenly}.typeLeft .title{align-items:flex-end}.typeLeft .vendorLogo{height:44px;width:auto}.mobile{grid-template-columns:1fr;grid-gap:1rem}.mobile .title{justify-content:center;align-items:center}.mobile .title img{height:80px}.mobile .displayContainer{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile .vendorLogo{justify-content:center;align-items:center}.mobile .displayCard{width:40vw}.tablet .displayContainer{flex-wrap:wrap}.DisplayNone{display:none}.loadingPrompt{color:#333}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(e),N(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},xn,On,o,{visualstructure:0,title:15,caticon0:16,caticon1:17,caticon2:18,caticon3:19,iconlabels:20,backgroundsrc:21,currency:1,backgroundsrcmobile:22,titlelogopath:23,lang:24,clientstyling:25,clientstylingurl:26,translationurl:27,endpoint:28,gameid:29},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),L()))}static get observedAttributes(){return["visualstructure","title","caticon0","caticon1","caticon2","caticon3","iconlabels","backgroundsrc","currency","backgroundsrcmobile","titlelogopath","lang","clientstyling","clientstylingurl","translationurl","endpoint","gameid"]}get visualstructure(){return this.$$.ctx[0]}set visualstructure(t){this.$$set({visualstructure:t}),L()}get title(){return this.$$.ctx[15]}set title(t){this.$$set({title:t}),L()}get caticon0(){return this.$$.ctx[16]}set caticon0(t){this.$$set({caticon0:t}),L()}get caticon1(){return this.$$.ctx[17]}set caticon1(t){this.$$set({caticon1:t}),L()}get caticon2(){return this.$$.ctx[18]}set caticon2(t){this.$$set({caticon2:t}),L()}get caticon3(){return this.$$.ctx[19]}set caticon3(t){this.$$set({caticon3:t}),L()}get iconlabels(){return this.$$.ctx[20]}set iconlabels(t){this.$$set({iconlabels:t}),L()}get backgroundsrc(){return this.$$.ctx[21]}set backgroundsrc(t){this.$$set({backgroundsrc:t}),L()}get currency(){return this.$$.ctx[1]}set currency(t){this.$$set({currency:t}),L()}get backgroundsrcmobile(){return this.$$.ctx[22]}set backgroundsrcmobile(t){this.$$set({backgroundsrcmobile:t}),L()}get titlelogopath(){return this.$$.ctx[23]}set titlelogopath(t){this.$$set({titlelogopath:t}),L()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),L()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),L()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),L()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),L()}get endpoint(){return this.$$.ctx[28]}set endpoint(t){this.$$set({endpoint:t}),L()}get gameid(){return this.$$.ctx[29]}set gameid(t){this.$$set({gameid:t}),L()}}return!customElements.get("casino-jackpot-banner")&&customElements.define("casino-jackpot-banner",In),In}));
|
|
660
660
|
//# sourceMappingURL=casino-jackpot-banner.js.map
|