@everymatrix/casino-calendar 1.18.0 → 1.19.2
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/dist/casino-calendar.js +43 -37
- package/dist/casino-calendar.js.map +1 -1
- package/index.html +1 -0
- package/package.json +2 -2
- package/src/CasinoCalendar.svelte +20 -3
package/dist/casino-calendar.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Creates a new task that runs on each raf frame
|
|
4
4
|
* until it returns a falsy value or is aborted
|
|
5
|
-
*/function f(t,e){t.appendChild(e)}function y(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function m(t){const e=w("style");return function(t,e){f(t.head||t,e),e.sheet}(y(t),e),e.sheet}function g(t,e,n){t.insertBefore(e,n||null)}function b(t){t.parentNode&&t.parentNode.removeChild(t)}function v(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function w(t){return document.createElement(t)}function E(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _(t){return document.createTextNode(t)}function T(){return _(" ")}function x(){return _("")}function
|
|
5
|
+
*/function f(t,e){t.appendChild(e)}function y(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function m(t){const e=w("style");return function(t,e){f(t.head||t,e),e.sheet}(y(t),e),e.sheet}function g(t,e,n){t.insertBefore(e,n||null)}function b(t){t.parentNode&&t.parentNode.removeChild(t)}function v(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function w(t){return document.createElement(t)}function E(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _(t){return document.createTextNode(t)}function T(){return _(" ")}function x(){return _("")}function C(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function B(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function A(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:B(t,e,n)}function H(t,e){e=""+e,t.data!==e&&(t.data=e)}function S(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}
|
|
6
6
|
// unfortunately this can't be a constant as that wouldn't be tree-shakeable
|
|
7
7
|
// so we cache the result instead
|
|
8
8
|
let P;function L(){if(void 0===P){P=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){P=!0}}return P}function I(t){const e={};for(const n of t)e[n.name]=n.value;return e}
|
|
@@ -108,7 +108,7 @@ if(!o(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return
|
|
|
108
108
|
// eslint-disable-next-line no-undef
|
|
109
109
|
"undefined"!=typeof global&&global||{},ut="URLSearchParams"in ct,ht="Symbol"in ct&&"iterator"in Symbol,dt="FileReader"in ct&&"Blob"in ct&&function(){try{return new Blob,!0}catch(t){return!1}}(),pt="FormData"in ct,ft="ArrayBuffer"in ct;if(ft)var yt=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],mt=ArrayBuffer.isView||function(t){return t&&yt.indexOf(Object.prototype.toString.call(t))>-1};function gt(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 bt(t){return"string"!=typeof t&&(t=String(t)),t}
|
|
110
110
|
// Build a destructive iterator for the value list
|
|
111
|
-
function vt(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ht&&(e[Symbol.iterator]=function(){return e}),e}function wt(t){this.map={},t instanceof wt?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 Et(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function _t(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function Tt(t){var e=new FileReader,n=_t(e);return e.readAsArrayBuffer(t),n}function xt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function
|
|
111
|
+
function vt(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ht&&(e[Symbol.iterator]=function(){return e}),e}function wt(t){this.map={},t instanceof wt?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 Et(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function _t(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function Tt(t){var e=new FileReader,n=_t(e);return e.readAsArrayBuffer(t),n}function xt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Ct(){return this.bodyUsed=!1,this._initBody=function(t){var e;
|
|
112
112
|
/*
|
|
113
113
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
114
114
|
provide useful test harness features such as flush. However, on
|
|
@@ -124,11 +124,11 @@ this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText
|
|
|
124
124
|
// IE 10-11 can't handle a DataView body.
|
|
125
125
|
this._bodyInit=new Blob([this._bodyArrayBuffer])):ft&&(ArrayBuffer.prototype.isPrototypeOf(t)||mt(t))?this._bodyArrayBuffer=xt(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):ut&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},dt&&(this.blob=function(){var t=Et(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=Et(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(dt)return this.blob().then(Tt);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t=Et(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,n=_t(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=r?r[1]:"utf-8";return e.readAsText(t,i),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},pt&&(this.formData=function(){return this.text().then(Ht)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
126
126
|
// HTTP methods whose capitalization should be normalized
|
|
127
|
-
wt.prototype.append=function(t,e){t=gt(t),e=bt(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},wt.prototype.delete=function(t){delete this.map[gt(t)]},wt.prototype.get=function(t){return t=gt(t),this.has(t)?this.map[t]:null},wt.prototype.has=function(t){return this.map.hasOwnProperty(gt(t))},wt.prototype.set=function(t,e){this.map[gt(t)]=bt(e)},wt.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},wt.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),vt(t)},wt.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),vt(t)},wt.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),vt(t)},ht&&(wt.prototype[Symbol.iterator]=wt.prototype.entries);var
|
|
127
|
+
wt.prototype.append=function(t,e){t=gt(t),e=bt(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},wt.prototype.delete=function(t){delete this.map[gt(t)]},wt.prototype.get=function(t){return t=gt(t),this.has(t)?this.map[t]:null},wt.prototype.has=function(t){return this.map.hasOwnProperty(gt(t))},wt.prototype.set=function(t,e){this.map[gt(t)]=bt(e)},wt.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},wt.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),vt(t)},wt.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),vt(t)},wt.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),vt(t)},ht&&(wt.prototype[Symbol.iterator]=wt.prototype.entries);var Bt=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function At(t,e){if(!(this instanceof At))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(e=e||{}).body;if(t instanceof At){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new wt(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 wt(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),Bt.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in ct)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)){
|
|
128
128
|
// Search for a '_' parameter in the query string
|
|
129
129
|
var o=/([?&])_=[^&]*/;if(o.test(this.url))
|
|
130
130
|
// If it already exists then set the value with the current time
|
|
131
|
-
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Ht(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function St(t,e){if(!(this instanceof St))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new wt(e.headers),this.url=e.url||"",this._initBody(t)}At.prototype.clone=function(){return new At(this,{body:this._bodyInit})},
|
|
131
|
+
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Ht(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function St(t,e){if(!(this instanceof St))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new wt(e.headers),this.url=e.url||"",this._initBody(t)}At.prototype.clone=function(){return new At(this,{body:this._bodyInit})},Ct.call(At.prototype),Ct.call(St.prototype),St.prototype.clone=function(){return new St(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new wt(this.headers),url:this.url})},St.error=function(){var t=new St(null,{status:200,statusText:""});return t.status=0,t.type="error",t};var Pt=[301,302,303,307,308];St.redirect=function(t,e){if(-1===Pt.indexOf(e))throw new RangeError("Invalid status code");return new St(null,{status:e,headers:{location:t}})};var Lt=ct.DOMException;try{new Lt}catch(t){(Lt=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),Lt.prototype.constructor=Lt}function It(t,e){return new Promise((function(n,r){var i=new At(t,e);if(i.signal&&i.signal.aborted)return r(new Lt("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var t,e,r={statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new wt,
|
|
132
132
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
133
133
|
// https://github.com/github/fetch/issues/748
|
|
134
134
|
// https://github.com/zloirock/core-js/issues/751
|
|
@@ -183,13 +183,13 @@ r=!1}},{subscribe:ge(r,c).subscribe};
|
|
|
183
183
|
*/
|
|
184
184
|
var c}var ve=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===we}(t)}
|
|
185
185
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
186
|
-
(t)};var we="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ee(t,e){return!1!==e.clone&&e.isMergeableObject(t)?
|
|
186
|
+
(t)};var we="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ee(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Be((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function _e(t,e,n){return t.concat(e).map((function(t){return Ee(t,n)}))}function Te(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function xe(t,e){try{return e in t}catch(t){return!1}}
|
|
187
187
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
188
|
-
function
|
|
189
|
-
})(t,i)||(xe(t,i)&&n.isMergeableObject(e[i])?r[i]=function(t,e){if(!e.customMerge)return
|
|
188
|
+
function Ce(t,e,n){var r={};return n.isMergeableObject(t)&&Te(t).forEach((function(e){r[e]=Ee(t[e],n)})),Te(e).forEach((function(i){(function(t,e){return xe(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e));// and also unsafe if they're nonenumerable.
|
|
189
|
+
})(t,i)||(xe(t,i)&&n.isMergeableObject(e[i])?r[i]=function(t,e){if(!e.customMerge)return Be;var n=e.customMerge(t);return"function"==typeof n?n:Be}(i,n)(t[i],e[i],n):r[i]=Ee(e[i],n))})),r}function Be(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||_e,n.isMergeableObject=n.isMergeableObject||ve,
|
|
190
190
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
191
191
|
// implementations can use it. The caller may not replace it.
|
|
192
|
-
n.cloneUnlessOtherwiseSpecified=Ee;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):
|
|
192
|
+
n.cloneUnlessOtherwiseSpecified=Ee;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):Ce(t,e,n):Ee(e,n)}Be.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return Be(t,n,e)}),{})};var Ae=Be,He=function(t,e){return He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},He(t,e)};function Se(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}He(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Pe,Le,Ie,$e=function(){return $e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},$e.apply(this,arguments)};function Me(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}
|
|
193
193
|
/**
|
|
194
194
|
* Type Guards
|
|
195
195
|
*/
|
|
@@ -403,9 +403,9 @@ function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,r
|
|
|
403
403
|
fn?Object.fromEntries:// Ponyfill
|
|
404
404
|
function(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n],o=i[0],s=i[1];e[o]=s}return e},xn=yn?// Native
|
|
405
405
|
function(t,e){return t.codePointAt(e)}:// IE 11
|
|
406
|
-
function(t,e){var n=t.length;if(!(e<0||e>=n)){var r,i=t.charCodeAt(e);return i<55296||i>56319||e+1===n||(r=t.charCodeAt(e+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},
|
|
406
|
+
function(t,e){var n=t.length;if(!(e<0||e>=n)){var r,i=t.charCodeAt(e);return i<55296||i>56319||e+1===n||(r=t.charCodeAt(e+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Cn=mn?// Native
|
|
407
407
|
function(t){return t.trimStart()}:// Ponyfill
|
|
408
|
-
function(t){return t.replace(cn,"")},
|
|
408
|
+
function(t){return t.replace(cn,"")},Bn=gn?// Native
|
|
409
409
|
function(t){return t.trimEnd()}:// Ponyfill
|
|
410
410
|
function(t){return t.replace(un,"")};
|
|
411
411
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
@@ -492,11 +492,11 @@ return this.error(Pe.EXPECT_ARGUMENT_TYPE,hn(o,a));case"number":case"date":case"
|
|
|
492
492
|
// Parse this range:
|
|
493
493
|
// {name, number, style}
|
|
494
494
|
// ^-------^
|
|
495
|
-
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=
|
|
495
|
+
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=Bn(g.val)).length)return this.error(Pe.EXPECT_ARGUMENT_STYLE,hn(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:hn(c,this.clonePosition())}}if((b=this.tryParseArgumentClose(r)).err)return b;var u=hn(r,this.clonePosition());
|
|
496
496
|
// Extract style or skeleton
|
|
497
497
|
if(l&&En(null==l?void 0:l.style,"::",0)){
|
|
498
498
|
// Skeleton starts with `::`.
|
|
499
|
-
var h=
|
|
499
|
+
var h=Cn(l.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?g:{val:{type:Le.number,value:n,location:u,style:g.val},err:null};if(0===h.length)return this.error(Pe.EXPECT_DATE_TIME_SKELETON,u);var d=h;
|
|
500
500
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
501
501
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
502
502
|
// for unsupported patterns.
|
|
@@ -665,7 +665,7 @@ this.formats=Jn(t.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
665
665
|
// Default format options used as the prototype of the `formats` provided to the
|
|
666
666
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
667
667
|
// and Intl.DateTimeFormat instances.
|
|
668
|
-
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 er={},nr=(t,e,n)=>n?(e in er||(er[e]={}),t in er[e]||(er[e][t]=n),n):n,rr=(t,e)=>{if(null==e)return;if(e in er&&t in er[e])return er[e][t];const n=Ar(e);for(let r=0;r<n.length;r++){const i=ar(n[r],t);if(i)return nr(t,e,i)}};let ir;const or=ge({});function sr(t){return t in ir}function ar(t,e){if(!sr(t))return null;const n=function(t){return ir[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(t>0){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(n,e)}be([or],(([t])=>Object.keys(t))),or.subscribe((t=>ir=t));const lr={};function cr(t){return lr[t]}function ur(t){return null!=t&&Ar(t).some((t=>{var e;return null==(e=cr(t))?void 0:e.size}))}function hr(t,e){const n=Promise.all(e.map((e=>(function(t,e){lr[t].delete(e),0===lr[t].size&&delete lr[t]}(t,e),e().then((t=>t.default||t))))));return n.then((e=>function(t,...e){delete er[t],or.update((n=>(n[t]=Ae.all([n[t]||{},...e]),n)))}(t,...e)))}const dr={};function pr(t){if(!ur(t))return t in dr?dr[t]:Promise.resolve();const e=function(t){return Ar(t).map((t=>{const e=cr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return dr[t]=Promise.all(e.map((([t,e])=>hr(t,e)))).then((()=>{if(ur(t))return pr(t);delete dr[t]})),dr[t]}const fr={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 yr(){return fr}const mr=ge(!1);var gr=Object.defineProperty,br=Object.defineProperties,vr=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Tr=(t,e,n)=>e in t?gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;let xr;const
|
|
668
|
+
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 er={},nr=(t,e,n)=>n?(e in er||(er[e]={}),t in er[e]||(er[e][t]=n),n):n,rr=(t,e)=>{if(null==e)return;if(e in er&&t in er[e])return er[e][t];const n=Ar(e);for(let r=0;r<n.length;r++){const i=ar(n[r],t);if(i)return nr(t,e,i)}};let ir;const or=ge({});function sr(t){return t in ir}function ar(t,e){if(!sr(t))return null;const n=function(t){return ir[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(t>0){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(n,e)}be([or],(([t])=>Object.keys(t))),or.subscribe((t=>ir=t));const lr={};function cr(t){return lr[t]}function ur(t){return null!=t&&Ar(t).some((t=>{var e;return null==(e=cr(t))?void 0:e.size}))}function hr(t,e){const n=Promise.all(e.map((e=>(function(t,e){lr[t].delete(e),0===lr[t].size&&delete lr[t]}(t,e),e().then((t=>t.default||t))))));return n.then((e=>function(t,...e){delete er[t],or.update((n=>(n[t]=Ae.all([n[t]||{},...e]),n)))}(t,...e)))}const dr={};function pr(t){if(!ur(t))return t in dr?dr[t]:Promise.resolve();const e=function(t){return Ar(t).map((t=>{const e=cr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return dr[t]=Promise.all(e.map((([t,e])=>hr(t,e)))).then((()=>{if(ur(t))return pr(t);delete dr[t]})),dr[t]}const fr={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 yr(){return fr}const mr=ge(!1);var gr=Object.defineProperty,br=Object.defineProperties,vr=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Tr=(t,e,n)=>e in t?gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;let xr;const Cr=ge(null);function Br(t){return t.split("-").map(((t,e,n)=>n.slice(0,e+1).join("-"))).reverse()}function Ar(t,e=yr().fallbackLocale){const n=Br(t);return e?[...new Set([...n,...Br(e)])]:n}function Hr(){return null!=xr?xr:void 0}Cr.subscribe((t=>{xr=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Sr=(Pr=((t,e)=>{for(var n in e||(e={}))Er.call(e,n)&&Tr(t,n,e[n]);if(wr)for(var n of wr(e))_r.call(e,n)&&Tr(t,n,e[n]);return t})({},Cr),br(Pr,vr({set:t=>{if(t&&function(t){if(null==t)return;const e=Ar(t);for(let t=0;t<e.length;t++){const n=e[t];if(sr(n))return n}}(t)&&ur(t)){const{loadingDelay:e}=yr();let n;return"undefined"!=typeof window&&null!=Hr()&&e?n=window.setTimeout((()=>mr.set(!0)),e):mr.set(!0),pr(t).then((()=>{Cr.set(t)})).finally((()=>{clearTimeout(n),mr.set(!1)}))}return Cr.set(t)}})));var Pr;const Lr=t=>{const e=Object.create(null);return n=>{const r=JSON.stringify(n);return r in e?e[r]:e[r]=t(n)}};var Ir=Object.defineProperty,$r=Object.getOwnPropertySymbols,Mr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,Nr=(t,e,n)=>e in t?Ir(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Rr=(t,e)=>{for(var n in e||(e={}))Mr.call(e,n)&&Nr(t,n,e[n]);if($r)for(var n of $r(e))Or.call(e,n)&&Nr(t,n,e[n]);return t},Dr=(t,e)=>{var n={};for(var r in t)Mr.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&$r)for(var r of $r(t))e.indexOf(r)<0&&Or.call(t,r)&&(n[r]=t[r]);return n};const kr=(t,e)=>{const{formats:n}=yr();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Fr=Lr((t=>{var e=t,{locale:n,format:r}=e,i=Dr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=kr("number",r)),new Intl.NumberFormat(n,i)})),Ur=Lr((t=>{var e=t,{locale:n,format:r}=e,i=Dr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=kr("date",r):0===Object.keys(i).length&&(i=kr("date","short")),new Intl.DateTimeFormat(n,i)})),Gr=Lr((t=>{var e=t,{locale:n,format:r}=e,i=Dr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=kr("time",r):0===Object.keys(i).length&&(i=kr("time","short")),new Intl.DateTimeFormat(n,i)})),jr=Lr((
|
|
669
669
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
670
670
|
(t,e=Hr())=>new tr(t,e,yr().formats,{ignoreTag:yr().ignoreTag}))),zr=(t,e={})=>{var n,r,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=Hr(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=rr(t,l);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==(r=(n=yr()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:t,defaultValue:c}))?i:c)?o:t;if(!a)return u;let h=u;try{h=jr(u,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},Vr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Dr(e,["locale"]);return Gr(Rr({locale:n},r))})(e).format(t),Xr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Dr(e,["locale"]);return Ur(Rr({locale:n},r))})(e).format(t),Wr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Dr(e,["locale"]);return Fr(Rr({locale:n},r))})(e).format(t),Kr=(t,e=Hr())=>rr(t,e);be([Sr,or],(()=>zr)),be([Sr],(()=>Vr)),be([Sr],(()=>Xr)),be([Sr],(()=>Wr)),be([Sr,or],(()=>Kr)),window.emWidgets={topic:(t,e=0)=>{if(-1==fe.indexOf(t)){let n=new pe(e);ye[t]=n,fe.push(t)}return ye[t]}};
|
|
671
671
|
/**
|
|
@@ -674,36 +674,42 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
674
674
|
* @param {String} userAgent window.navigator.userAgent
|
|
675
675
|
* @returns {Boolean} true or false
|
|
676
676
|
*/
|
|
677
|
-
const Yr=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));
|
|
678
|
-
|
|
679
|
-
|
|
677
|
+
const Yr=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));
|
|
678
|
+
/**
|
|
679
|
+
* @name getDevice
|
|
680
|
+
* @description A method that returns the type of the device
|
|
681
|
+
* @param {String} userAgent window.navigator.userAgent
|
|
682
|
+
* @returns {String} Android/iPhone/iPad/PC
|
|
683
|
+
*/function Zr(t,{delay:n=0,duration:r=400,easing:i=e}={}){const o=+getComputedStyle(t).opacity;return{delay:n,duration:r,easing:i,css:t=>"opacity: "+t*o}}
|
|
684
|
+
/* ../casino-modal/src/CasinoModal.svelte generated by Svelte v3.59.2 */function qr(t){let e,n,r,i,o,s,a,l,c,u,h,d;return{c(){e=w("div"),n=w("div"),r=w("div"),r.innerHTML="<slot></slot>",i=T(),o=w("span"),s=w("slot"),s.innerHTML='<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',B(r,"class","ModalContainer"),B(r,"part","ModalContainer"),B(s,"name","close"),B(o,"class",a="ModalCloseBtn "+(/*haspanicbutton*/"true"==t[1]&&/*mobileView*/t[3]?"ModalPanicCloseButton":"")),B(o,"role","button"),B(n,"class","ModalWindow"),B(n,"part","ModalWindow"),B(n,"id","Modal"),X((()=>/*div1_elementresize_handler*/t[19].call(n))),B(e,"part","CustomStylingContainer")},m(a,c){g(a,e,c),f(e,n),f(n,r),f(n,i),f(n,o),f(o,s),
|
|
685
|
+
/*div1_binding*/t[18](n),l=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const n=w("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const r=L();let i;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=C(window,"message",(t=>{t.source===n.contentWindow&&e()}))):(n.src="about:blank",n.onload=()=>{i=C(n.contentWindow,"resize",e),
|
|
680
686
|
// make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)
|
|
681
687
|
// see https://github.com/sveltejs/svelte/issues/4233
|
|
682
688
|
e()}),f(t,n),()=>{(r||i&&n.contentWindow)&&i(),b(n)}}(n,/*div1_elementresize_handler*/t[19].bind(n)),
|
|
683
|
-
/*div2_binding*/t[20](e),u=!0,h||(d=
|
|
689
|
+
/*div2_binding*/t[20](e),u=!0,h||(d=C(o,"click",/*close*/t[8]),h=!0)},p(e,n){t=e,(!u||/*haspanicbutton, mobileView*/10&n&&a!==(a="ModalCloseBtn "+(/*haspanicbutton*/"true"==t[1]&&/*mobileView*/t[3]?"ModalPanicCloseButton":"")))&&B(o,"class",a)},i(e){u||(X((()=>{u&&(c||(c=it(n,Zr,{transitionDuration:/*duration*/t[0]},!0)),c.run(1))})),u=!0)},o(e){c||(c=it(n,Zr,{transitionDuration:/*duration*/t[0]},!1)),c.run(0),u=!1},d(n){n&&b(e)
|
|
684
690
|
/*div1_binding*/,t[18](null),l(),n&&c&&c.end()
|
|
685
691
|
/*div2_binding*/,t[20](null),h=!1,d()}}}function Jr(e){let n,r,o=/*show*/e[7]&&qr(e);return{c(){o&&o.c(),n=x(),this.c=t},m(t,e){o&&o.m(t,e),g(t,n,e),r=!0},p(t,[e]){/*show*/t[7]?o?(o.p(t,e),/*show*/128&e&&et(o,1)):(o=qr(t),o.c(),et(o,1),o.m(n.parentNode,n)):o&&(tt={r:0,c:[],p:tt},nt(o,1,1,(()=>{o=null})),tt.r||i(tt.c),tt=tt.p)},i(t){r||(et(o),r=!0)},o(t){nt(o),r=!1},d(t){o&&o.d(t),t&&b(n)}}}function Qr(t,e,n){let r,i,o,s,{duration:a=350}=e,{session:l=""}=e,{userid:c=""}=e,{clientstyling:u=""}=e,{identifier:h=""}=e,{clientstylingurl:d=""}=e,{endpoint:p=""}=e,{haspanicbutton:f="false"}=e,{gamepagemodalurl:y="false"}=e,{sessioncheck:m="true"}=e,{integratedgameframedesktop:g="false"}=e,b=window.navigator.userAgent,v=!1,w=!1,E=!1;const _=t=>{if("ShowModal"==t.data.type&&h==t.data.identifier&&(n(7,E=!0),window.postMessage({type:"DisableScroll"},window.location.href)),"ModalClosed"==t.data.type&&("false"!=g||Yr(b))&&n(7,E=!1),"ShowGameModal"===t.data.type&&(n(7,E=!0),window.postMessage({type:"GameLaunchID",gameId:t.data.gameId},window.location.href),window.postMessage({type:"DisableScroll"},window.location.href)),"OpenGameFrameModal"===t.data.type&&(n(7,E=!0),window.postMessage({type:"LaunchGameFrame",gameId:t.data.gameId,gameFunMode:t.data.gamefunmode},window.location.href),window.postMessage({type:"DisableScroll"},window.location.href)),"RequestModalSize"===t.data.type){let t={modalWidth:r?getComputedStyle(r).width:null,modalHeight:r?getComputedStyle(r).height:null};window.postMessage({type:"ModalSize",modalContainerSize:t},window.location.href)}"GameStateOnResize"===t.data.type&&(w=t.data.detailsObtained)},T=t=>{if(w){let t={modalWidth:getComputedStyle(r).width,modalHeight:getComputedStyle(r).height};window.postMessage({type:"ModalSize",modalContainerSize:t},window.location.href)}},x=()=>{"true"==m&&function(t,e){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",e),$t(`${t}/player/session/player`,{method:"GET",headers:i}).then((t=>t.json())).then((t=>n(t))).catch((t=>r(t)))}))}(p,l).then((t=>{t.Guid,t.UserID}),(t=>{console.error("err on session",t)}))};return k((()=>(n(3,v=Yr(b)),window.addEventListener("message",_,!1),window.addEventListener("resize",T,!1),()=>{window.removeEventListener("message",_),window.removeEventListener("resize",_)}))),t.$$set=t=>{"duration"in t&&n(0,a=t.duration),"session"in t&&n(9,l=t.session),"userid"in t&&n(10,c=t.userid),"clientstyling"in t&&n(11,u=t.clientstyling),"identifier"in t&&n(12,h=t.identifier),"clientstylingurl"in t&&n(13,d=t.clientstylingurl),"endpoint"in t&&n(14,p=t.endpoint),"haspanicbutton"in t&&n(1,f=t.haspanicbutton),"gamepagemodalurl"in t&&n(15,y=t.gamepagemodalurl),"sessioncheck"in t&&n(16,m=t.sessioncheck),"integratedgameframedesktop"in t&&n(17,g=t.integratedgameframedesktop)},t.$$.update=()=>{/*session, userid, endpoint*/17920&t.$$.dirty&&l&&c&&p&&x(),/*clientstyling, customStylingContainer*/2052&t.$$.dirty&&u&&i&&(()=>{let t=document.createElement("style");t.innerHTML=u,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8196&t.$$.dirty&&d&&i&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})()},[a,f,i,v,r,o,s,E,()=>{n(7,E=!1),n(3,v=Yr(b)),window.postMessage({type:"ModalClosed",gamepagemodalurl:y,mobileView:v},window.location.href)},l,c,u,h,d,p,y,m,g,function(t){U[t?"unshift":"push"]((()=>{r=t,n(4,r)}))},function(){o=this.clientWidth,s=this.clientHeight,n(5,o),n(6,s)},function(t){U[t?"unshift":"push"]((()=>{i=t,n(2,i)}))}]}
|
|
686
692
|
/* ../casino-calendar-daily-details/src/CasinoCalendarDailyDetails.svelte generated by Svelte v3.59.2 */
|
|
687
693
|
function ti(t,e,n){const r=t.slice();return r[26]=e[n],r[27]=e,r[28]=n,r}function ei(t,e,n){const r=t.slice();return r[29]=e[n],r[28]=n,r}
|
|
688
694
|
// (105:4) {:else}
|
|
689
|
-
function ni(t){let e,n,r,i,o,s=/*dailyeventsDetails*/t[3],a=[];for(let e=0;e<s.length;e+=1)a[e]=ci(ti(t,s,e));return{c(){e=w("div"),n=w("div"),r=_(/*dailyday*/t[1]),i=T();for(let t=0;t<a.length;t+=1)a[t].c();
|
|
695
|
+
function ni(t){let e,n,r,i,o,s=/*dailyeventsDetails*/t[3],a=[];for(let e=0;e<s.length;e+=1)a[e]=ci(ti(t,s,e));return{c(){e=w("div"),n=w("div"),r=_(/*dailyday*/t[1]),i=T();for(let t=0;t<a.length;t+=1)a[t].c();B(n,"class","CasinoCalendarDailyDay"),B(e,"class",o="CasinoCalendarDailyDetailsBackground "+(/*mobileView*/t[6]?"Mobile":""))},m(t,o){g(t,e,o),f(e,n),f(n,r),f(e,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null)},p(t,n){if(/*dailyday*/2&n&&H(r,/*dailyday*/t[1]),/*dailyeventsDetails, selectedTab, setActiveTab, handleDetailsArea, dailybuttontitle*/409&n){let r;for(s=/*dailyeventsDetails*/t[3],r=0;r<s.length;r+=1){const i=ti(t,s,r);a[r]?a[r].p(i,n):(a[r]=ci(i),a[r].c(),a[r].m(e,null))}for(;r<a.length;r+=1)a[r].d(1);a.length=s.length}/*mobileView*/64&n&&o!==(o="CasinoCalendarDailyDetailsBackground "+(/*mobileView*/t[6]?"Mobile":""))&&B(e,"class",o)},d(t){t&&b(e),v(a,t)}}}
|
|
690
696
|
// (103:4) {#if isLoading}
|
|
691
|
-
function ri(e){let n;return{c(){n=w("p"),n.textContent="Loading ...",
|
|
697
|
+
function ri(e){let n;return{c(){n=w("p"),n.textContent="Loading ...",B(n,"class","SearchLoading"),B(n,"part","SearchLoading")},m(t,e){g(t,n,e)},p:t,d(t){t&&b(n)}}}
|
|
692
698
|
// (130:16) {:else}
|
|
693
|
-
function ii(t){let e,n;return{c(){e=E("svg"),n=E("path"),
|
|
699
|
+
function ii(t){let e,n;return{c(){e=E("svg"),n=E("path"),B(n,"stroke-linecap","round"),B(n,"stroke-linejoin","round"),B(n,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),B(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"fill","none"),B(e,"viewBox","0 0 24 24"),B(e,"stroke-width","1.5"),B(e,"stroke","var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"),B(e,"class","IconDown")},m(t,r){g(t,e,r),f(e,n)},d(t){t&&b(e)}}}
|
|
694
700
|
// (116:16) {#if event.expandedInfo == true}
|
|
695
|
-
function oi(t){let e,n;return{c(){e=E("svg"),n=E("path"),
|
|
701
|
+
function oi(t){let e,n;return{c(){e=E("svg"),n=E("path"),B(n,"stroke-linecap","round"),B(n,"stroke-linejoin","round"),B(n,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),B(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"fill","none"),B(e,"viewBox","0 0 24 24"),B(e,"stroke-width","1.5"),B(e,"stroke","var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"),B(e,"class","IconUp")},m(t,r){g(t,e,r),f(e,n)},d(t){t&&b(e)}}}
|
|
696
702
|
// (148:14) {#if event.expandedInfo == true}
|
|
697
703
|
function si(t){let e,n,r=/*event*/t[26].details,i=[];for(let e=0;e<r.length;e+=1)i[e]=ai(ei(t,r,e));let o=/*event*/t[26].detailsExpanded&&li(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=T(),o&&o.c(),n=x()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);g(t,e,r),o&&o.m(t,r),g(t,n,r)},p(t,s){if(/*selectedTab, dailyeventsDetails, setActiveTab*/280&s){let n;for(r=/*event*/t[26].details,n=0;n<r.length;n+=1){const o=ei(t,r,n);i[n]?i[n].p(o,s):(i[n]=ai(o),i[n].c(),i[n].m(e.parentNode,e))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}/*event*/t[26].detailsExpanded?o?o.p(t,s):(o=li(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){v(i,t),t&&b(e),o&&o.d(t),t&&b(n)}}}
|
|
698
704
|
// (149:16) {#each event.details as detail, index}
|
|
699
705
|
function ai(t){let e,n,r,i,o,s,a,l,c=/*detail*/t[29].title+"";function u(){/*click_handler_1*/
|
|
700
|
-
return t[18](/*event*/t[26],/*index*/t[28])}return{c(){e=w("div"),n=w("div"),r=w("button"),i=_(c),
|
|
706
|
+
return t[18](/*event*/t[26],/*index*/t[28])}return{c(){e=w("div"),n=w("div"),r=w("button"),i=_(c),B(r,"class",o="HeaderButton "+(/*detail*/t[29].expandedTab?"Active":"")),B(n,"class","Header"),B(e,"class",s=/*index*/t[28]==/*selectedTab*/t[4]?"SelectedTab":""),B(e,"id","CollapseMoreInfoButton"),S(e,"height",/*event*/t[26].expandedInfo?"100%":"")},m(t,o){g(t,e,o),f(e,n),f(n,r),f(r,i),a||(l=C(r,"click",u),a=!0)},p(n,a){t=n,/*dailyeventsDetails*/8&a&&c!==(c=/*detail*/t[29].title+"")&&H(i,c),/*dailyeventsDetails*/8&a&&o!==(o="HeaderButton "+(/*detail*/t[29].expandedTab?"Active":""))&&B(r,"class",o),/*selectedTab*/16&a&&s!==(s=/*index*/t[28]==/*selectedTab*/t[4]?"SelectedTab":"")&&B(e,"class",s),/*dailyeventsDetails*/8&a&&S(e,"height",/*event*/t[26].expandedInfo?"100%":"")},d(t){t&&b(e),a=!1,l()}}}
|
|
701
707
|
// (159:16) {#if event.detailsExpanded}
|
|
702
|
-
function li(t){let e,n,r,i=/*event*/t[26].details[/*selectedTab*/t[4]].description+"";return{c(){e=w("div"),n=_(i),
|
|
708
|
+
function li(t){let e,n,r,i=/*event*/t[26].details[/*selectedTab*/t[4]].description+"";return{c(){e=w("div"),n=_(i),B(e,"class",r="DetailTabsDescription "+(/*event*/t[26].details[/*selectedTab*/t[4]].expandedTab?"":"NotVisible"))},m(t,r){g(t,e,r),f(e,n)},p(t,o){/*dailyeventsDetails, selectedTab*/24&o&&i!==(i=/*event*/t[26].details[/*selectedTab*/t[4]].description+"")&&H(n,i),/*dailyeventsDetails, selectedTab*/24&o&&r!==(r="DetailTabsDescription "+(/*event*/t[26].details[/*selectedTab*/t[4]].expandedTab?"":"NotVisible"))&&B(e,"class",r)},d(t){t&&b(e)}}}
|
|
703
709
|
// (108:8) {#each dailyeventsDetails as event, index}
|
|
704
710
|
function ci(t){let e,n,r,i,o,s,a,c,u,h,d,p,y,m,v,E,x,A,S,P,L=/*event*/t[26].title+"",I=/*event*/t[26].description+"";function $(t,e){/*event*/
|
|
705
711
|
return 1==t[26].expandedInfo?oi:ii}let M=$(t),O=M(t);function N(){/*click_handler*/
|
|
706
|
-
return t[17](/*event*/t[26],/*each_value*/t[27],/*index*/t[28])}let R=/*event*/1==t[26].expandedInfo&&si(t);return{c(){e=w("div"),n=w("div"),r=_(L),i=T(),o=w("div"),s=w("img"),u=T(),h=w("div"),d=_(I),p=T(),y=w("div"),m=w("button"),v=_(/*dailybuttontitle*/t[0]),E=T(),O.c(),x=T(),R&&R.c(),A=T(),
|
|
712
|
+
return t[17](/*event*/t[26],/*each_value*/t[27],/*index*/t[28])}let R=/*event*/1==t[26].expandedInfo&&si(t);return{c(){e=w("div"),n=w("div"),r=_(L),i=T(),o=w("div"),s=w("img"),u=T(),h=w("div"),d=_(I),p=T(),y=w("div"),m=w("button"),v=_(/*dailybuttontitle*/t[0]),E=T(),O.c(),x=T(),R&&R.c(),A=T(),B(n,"class","CasinoCalendarDailyTitle"),B(s,"class","CasinoCalendarFitImage"),l(s.src,a=/*event*/t[26].image)||B(s,"src",a),B(s,"alt",c=/*event*/t[26].image),B(o,"class","CasinoCalendarImage"),B(h,"class","CasinoCalendarDailyDescription"),B(m,"class","MoreInfoButton"),B(y,"class","CasinoCalendarTabs"),B(e,"class","CasinoCalendarDailyDetailsParent")},m(t,a){g(t,e,a),f(e,n),f(n,r),f(e,i),f(e,o),f(o,s),f(e,u),f(e,h),f(h,d),f(e,p),f(e,y),f(y,m),f(m,v),f(m,E),O.m(m,null),f(y,x),R&&R.m(y,null),f(e,A),S||(P=C(m,"click",N),S=!0)},p(e,n){t=e,/*dailyeventsDetails*/8&n&&L!==(L=/*event*/t[26].title+"")&&H(r,L),/*dailyeventsDetails*/8&n&&!l(s.src,a=/*event*/t[26].image)&&B(s,"src",a),/*dailyeventsDetails*/8&n&&c!==(c=/*event*/t[26].image)&&B(s,"alt",c),/*dailyeventsDetails*/8&n&&I!==(I=/*event*/t[26].description+"")&&H(d,I),/*dailybuttontitle*/1&n&&H(v,/*dailybuttontitle*/t[0]),M!==(M=$(t))&&(O.d(1),O=M(t),O&&(O.c(),O.m(m,null))),/*event*/1==t[26].expandedInfo?R?R.p(t,n):(R=si(t),R.c(),R.m(y,null)):R&&(R.d(1),R=null)},d(t){t&&b(e),O.d(),R&&R.d(),S=!1,P()}}}function ui(e){let n;function r(t,e){/*isLoading*/
|
|
707
713
|
return t[5]?ri:ni}let i=r(e),o=i(e);return{c(){n=w("div"),o.c(),this.c=t},m(t,r){g(t,n,r),o.m(n,null),
|
|
708
714
|
/*div_binding*/e[19](n)},p(t,[e]){i===(i=r(t))&&o?o.p(t,e):(o.d(1),o=i(t),o&&(o.c(),o.m(n,null)))},i:t,o:t,d(t){t&&b(n),o.d(),
|
|
709
715
|
/*div_binding*/e[19](null)}}}function hi(t,e,n){let r,{dailybackground:i=""}=e,{dailybuttontitle:o=""}=e,{dailyday:s=""}=e,{dailydescription:a="<p></p>"}=e,{dailyicon:l=""}=e,{dailytitle:c=""}=e,{lang:u="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:d=""}=e,{translationUrl:p=""}=e,f=[],y=0,m=!0,g=!1,b=window.navigator.userAgent;!function({withLocale:t,translations:e}){Sr.subscribe((n=>{null==n&&(or.set(e),Sr.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
@@ -712,9 +718,9 @@ return t[5]?ri:ni}let i=r(e),o=i(e);return{c(){n=w("div"),o.c(),this.c=t},m(t,r)
|
|
|
712
718
|
//Analytics event
|
|
713
719
|
"function"==typeof gtag&>ag("event","MoreInfo",{context:"CalendarWidgetDetails"})},_=(t,e)=>{n(4,y=e),t.details.forEach(((t,e)=>{t.expandedTab=y==e}))};k((()=>(window.addEventListener("message",v,!1),Yr(b)&&n(6,g=!0),()=>{window.removeEventListener("message",v)})));return t.$$set=t=>{"dailybackground"in t&&n(9,i=t.dailybackground),"dailybuttontitle"in t&&n(0,o=t.dailybuttontitle),"dailyday"in t&&n(1,s=t.dailyday),"dailydescription"in t&&n(10,a=t.dailydescription),"dailyicon"in t&&n(11,l=t.dailyicon),"dailytitle"in t&&n(12,c=t.dailytitle),"lang"in t&&n(13,u=t.lang),"clientstyling"in t&&n(14,h=t.clientstyling),"clientstylingurl"in t&&n(15,d=t.clientstylingurl),"translationUrl"in t&&n(16,p=t.translationUrl)},t.$$.update=()=>{/*lang*/8192&t.$$.dirty&&u&&w(),/*clientstyling, customStylingContainer*/16388&t.$$.dirty&&h&&r&&(()=>{let t=document.createElement("style");t.innerHTML=h,r.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/32772&t.$$.dirty&&d&&r&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[o,s,r,f,y,m,g,E,_,i,a,l,c,u,h,d,p,(t,e,r)=>{n(3,e[r].expandedInfo=!t.expandedInfo,f),E(r)},(t,e)=>{_(t,e)},function(t){U[t?"unshift":"push"]((()=>{r=t,n(2,r)}))}]}!customElements.get("casino-modal")&&customElements.define("casino-modal",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalPanicCloseButton{margin-top:45px}.ModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalWindow .ModalCloseBtn svg{width:32px;height:32px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}",this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:I(this.attributes),customElement:!0},Qr,Jr,s,{duration:0,session:9,userid:10,clientstyling:11,identifier:12,clientstylingurl:13,endpoint:14,haspanicbutton:1,gamepagemodalurl:15,sessioncheck:16,integratedgameframedesktop:17},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["duration","session","userid","clientstyling","identifier","clientstylingurl","endpoint","haspanicbutton","gamepagemodalurl","sessioncheck","integratedgameframedesktop"]}get duration(){return this.$$.ctx[0]}set duration(t){this.$$set({duration:t}),Z()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),Z()}get userid(){return this.$$.ctx[10]}set userid(t){this.$$set({userid:t}),Z()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get identifier(){return this.$$.ctx[12]}set identifier(t){this.$$set({identifier:t}),Z()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),Z()}get haspanicbutton(){return this.$$.ctx[1]}set haspanicbutton(t){this.$$set({haspanicbutton:t}),Z()}get gamepagemodalurl(){return this.$$.ctx[15]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),Z()}get sessioncheck(){return this.$$.ctx[16]}set sessioncheck(t){this.$$set({sessioncheck:t}),Z()}get integratedgameframedesktop(){return this.$$.ctx[17]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),Z()}});
|
|
714
720
|
/* ../casino-calendar-daily-item/src/CasinoCalendarDailyItem.svelte generated by Svelte v3.59.2 */
|
|
715
|
-
function di(e){let n,r,i,o,s,a,c,u,h,d,p,y,m,v,E,x,A,P,L,I,$,M,O;return{c(){n=w("div"),r=w("div"),i=w("div"),o=w("div"),s=w("div"),s.innerHTML='<div class="RingLeft"></div> \n <div class="RingRight"></div>',a=T(),c=w("div"),u=w("div"),h=w("img"),p=T(),y=w("div"),m=_(/*dailyday*/e[2]),v=T(),E=w("div"),x=T(),A=w("div"),P=w("button"),L=_(/*dailybuttontitle*/e[3]),this.c=t,
|
|
721
|
+
function di(e){let n,r,i,o,s,a,c,u,h,d,p,y,m,v,E,x,A,P,L,I,$,M,O;return{c(){n=w("div"),r=w("div"),i=w("div"),o=w("div"),s=w("div"),s.innerHTML='<div class="RingLeft"></div> \n <div class="RingRight"></div>',a=T(),c=w("div"),u=w("div"),h=w("img"),p=T(),y=w("div"),m=_(/*dailyday*/e[2]),v=T(),E=w("div"),x=T(),A=w("div"),P=w("button"),L=_(/*dailybuttontitle*/e[3]),this.c=t,B(s,"class","CalendarBar"),l(h.src,d=/*dailyicon*/e[1])||B(h,"src",d),B(h,"alt",/*dailyicon*/e[1]),B(u,"class","CasinoCalendarDailyIcon"),B(y,"class","CasinoCalendarDailyTitle"),B(E,"class","CasinoCalendarDailyItemDescription"),B(P,"class","MoreInfoButton"),B(A,"class","CasinoCalendarDailyItemButton"),B(c,"class",I="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/e[4]?"Tear":"")),S(c,"background-image","url('"+/*dailybackground*/e[0]+"')"),S(c,"background-size","cover"),S(c,"background-position","center"),S(c,"-webkit-background-size","cover"),S(c,"-moz-background-size","cover"),S(c,"-o-background-size","cover"),B(o,"class","CalendarCard"),B(i,"class","CasinoCalendarItems"),B(r,"class",$="Container "+(/*mobileView*/e[7]?"Mobile":""))},m(t,l){g(t,n,l),f(n,r),f(r,i),f(i,o),f(o,s),f(o,a),f(o,c),f(c,u),f(u,h),f(c,p),f(c,y),f(y,m),f(c,v),f(c,E),
|
|
716
722
|
/*div5_binding*/e[14](E),f(c,x),f(c,A),f(A,P),f(P,L),
|
|
717
|
-
/*div11_binding*/e[16](n),M||(O=
|
|
723
|
+
/*div11_binding*/e[16](n),M||(O=C(P,"click",/*click_handler*/e[15]),M=!0)},p(t,[e]){/*dailyicon*/2&e&&!l(h.src,d=/*dailyicon*/t[1])&&B(h,"src",d),/*dailyicon*/2&e&&B(h,"alt",/*dailyicon*/t[1]),/*dailyday*/4&e&&H(m,/*dailyday*/t[2]),/*dailybuttontitle*/8&e&&H(L,/*dailybuttontitle*/t[3]),/*index*/16&e&&I!==(I="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/t[4]?"Tear":""))&&B(c,"class",I),/*dailybackground*/1&e&&S(c,"background-image","url('"+/*dailybackground*/t[0]+"')"),/*mobileView*/128&e&&$!==($="Container "+(/*mobileView*/t[7]?"Mobile":""))&&B(r,"class",$)},i:t,o:t,d(t){t&&b(n)
|
|
718
724
|
/*div5_binding*/,e[14](null),
|
|
719
725
|
/*div11_binding*/e[16](null),M=!1,O()}}}function pi(t,e,n){let r,i,{cmsendpoint:o=""}=e,{lang:s=""}=e,{dailybackground:a=""}=e,{dailyicon:l=""}=e,{dailyday:c=""}=e,{dailydescription:u="<p></p>"}=e,{dailybuttontitle:h=""}=e,{index:d="0"}=e,{clientstyling:p=""}=e,{clientstylingurl:f=""}=e;!function({withLocale:t,translations:e}){Sr.subscribe((n=>{null==n&&(or.set(e),Sr.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
720
726
|
/*dictionary.set(translations);
|
|
@@ -724,16 +730,16 @@ function di(e){let n,r,i,o,s,a,c,u,h,d,p,y,m,v,E,x,A,P,L,I,$,M,O;return{c(){n=w(
|
|
|
724
730
|
// remove HTML tags
|
|
725
731
|
let t=document.createElement("div");t.innerHTML=u,r&&r.append(t)})(),/*clientstyling, customStylingContainer*/4128&t.$$.dirty&&p&&i&&(()=>{let t=document.createElement("style");t.innerHTML=p,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8224&t.$$.dirty&&f&&i&&(()=>{let t=new URL(f),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[a,l,c,h,d,i,r,y,g,o,s,u,p,f,function(t){U[t?"unshift":"push"]((()=>{r=t,n(6,r)}))},()=>g(),function(t){U[t?"unshift":"push"]((()=>{i=t,n(5,i)}))}]}!customElements.get("casino-calendar-daily-details")&&customElements.define("casino-calendar-daily-details",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}#CollapseMoreInfoButton{-moz-transition:height 0.5s;-ms-transition:height 0.5s;-o-transition:height 0.5s;-webkit-transition:height 0.5s;transition:height 0.5s;height:0;overflow:hidden}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:15px 0;border-radius:0 0 5px 5px;border:none;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:pointer}.IconDown{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emfe-w-color-white, #FFFFFF);width:500px;max-height:50vw;padding:20px;text-align:center;margin-bottom:50px;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px}.CasinoCalendarDailyDay{padding:10px 0 40px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarImage{background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage img{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emfe-w-gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emfe-w-color-white, #FFFFFF) 55%, var(--emfe-w-color-gray-100, #E6E6E6))}.DetailTabsDescription{margin-top:15px}.CasinoCalendarTabs{width:100%;font-size:14px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:stretch;padding-bottom:40px}.CasinoCalendarFitImage{border-radius:5px}.NotVisible{display:none}.Header{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-150, #828282)}.SelectedTab{box-shadow:none;border-bottom:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.Mobile{max-height:60vh;margin-bottom:0}",this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:I(this.attributes),customElement:!0},hi,ui,s,{dailybackground:9,dailybuttontitle:0,dailyday:1,dailydescription:10,dailyicon:11,dailytitle:12,lang:13,clientstyling:14,clientstylingurl:15,translationUrl:16},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["dailybackground","dailybuttontitle","dailyday","dailydescription","dailyicon","dailytitle","lang","clientstyling","clientstylingurl","translationUrl"]}get dailybackground(){return this.$$.ctx[9]}set dailybackground(t){this.$$set({dailybackground:t}),Z()}get dailybuttontitle(){return this.$$.ctx[0]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),Z()}get dailyday(){return this.$$.ctx[1]}set dailyday(t){this.$$set({dailyday:t}),Z()}get dailydescription(){return this.$$.ctx[10]}set dailydescription(t){this.$$set({dailydescription:t}),Z()}get dailyicon(){return this.$$.ctx[11]}set dailyicon(t){this.$$set({dailyicon:t}),Z()}get dailytitle(){return this.$$.ctx[12]}set dailytitle(t){this.$$set({dailytitle:t}),Z()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),Z()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get translationUrl(){return this.$$.ctx[16]}set translationUrl(t){this.$$set({translationUrl:t}),Z()}});
|
|
726
732
|
/* src/CasinoCalendar.svelte generated by Svelte v3.59.2 */
|
|
727
|
-
function fi(t,e,n){const r=t.slice();return r[
|
|
728
|
-
// (
|
|
729
|
-
function yi(t){let e,n,r,i=/*calendarCollections*/t[1],o=[];for(let e=0;e<i.length;e+=1)o[e]=bi(fi(t,i,e));let s=/*calendarModalOpened*/1==t[6]&&vi(t);return{c(){e=w("div");for(let t=0;t<o.length;t+=1)o[t].c();n=T(),s&&s.c(),
|
|
730
|
-
// (
|
|
731
|
-
function mi(e){let n;return{c(){n=w("div"),
|
|
732
|
-
// (
|
|
733
|
-
function gi(e){let n;return{c(){n=w("p"),n.textContent="500 Error - Internal Server Error",
|
|
734
|
-
// (
|
|
735
|
-
function bi(t){let e,n,r,i,o,s;return{c(){e=w("casino-calendar-daily-item"),A(e,"dailybackground",n=/*dailyCalendarData*/t[
|
|
736
|
-
// (
|
|
733
|
+
function fi(t,e,n){const r=t.slice();return r[13]=e[n],r[15]=n,r}
|
|
734
|
+
// (82:4) {#if calendarCollections?.length}
|
|
735
|
+
function yi(t){let e,n,r,i=/*calendarCollections*/t[1],o=[];for(let e=0;e<i.length;e+=1)o[e]=bi(fi(t,i,e));let s=/*calendarModalOpened*/1==t[6]&&vi(t);return{c(){e=w("div");for(let t=0;t<o.length;t+=1)o[t].c();n=T(),s&&s.c(),B(e,"class",r="CasinoCalendarItem "+(/*mobileView*/t[5]?"Mobile":""))},m(t,r){g(t,e,r);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);f(e,n),s&&s.m(e,null)},p(t,a){if(/*calendarCollections, lang*/3&a){let r;for(i=/*calendarCollections*/t[1],r=0;r<i.length;r+=1){const s=fi(t,i,r);o[r]?o[r].p(s,a):(o[r]=bi(s),o[r].c(),o[r].m(e,n))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}/*calendarModalOpened*/1==t[6]?s?s.p(t,a):(s=vi(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null),/*mobileView*/32&a&&r!==(r="CasinoCalendarItem "+(/*mobileView*/t[5]?"Mobile":""))&&B(e,"class",r)},d(t){t&&b(e),v(o,t),s&&s.d()}}}
|
|
736
|
+
// (79:2) {#if isLoading}
|
|
737
|
+
function mi(e){let n;return{c(){n=w("div"),B(n,"class","LoadingSpinner"),B(n,"part","LoadingSpinner")},m(t,e){g(t,n,e)},p:t,d(t){t&&b(n)}}}
|
|
738
|
+
// (76:0) {#if hasErrors}
|
|
739
|
+
function gi(e){let n;return{c(){n=w("p"),n.textContent="500 Error - Internal Server Error",B(n,"class","SearchLoading"),B(n,"part","SearchLoading")},m(t,e){g(t,n,e)},p:t,d(t){t&&b(n)}}}
|
|
740
|
+
// (84:8) {#each calendarCollections as dailyCalendarData, index }
|
|
741
|
+
function bi(t){let e,n,r,i,o,s;return{c(){e=w("casino-calendar-daily-item"),A(e,"dailybackground",n=/*dailyCalendarData*/t[13].dailyBackground),A(e,"dailyicon",r=/*dailyCalendarData*/t[13].dailyIcon),A(e,"dailyday",i=/*dailyCalendarData*/t[13].dailyDay),A(e,"dailydescription",o=/*dailyCalendarData*/t[13].dailyDescription),A(e,"dailybuttontitle",s=/*dailyCalendarData*/t[13].dailyButtonTitle),A(e,"index",/*index*/t[15]),A(e,"lang",/*lang*/t[0])},m(t,n){g(t,e,n)},p(t,a){/*calendarCollections*/2&a&&n!==(n=/*dailyCalendarData*/t[13].dailyBackground)&&A(e,"dailybackground",n),/*calendarCollections*/2&a&&r!==(r=/*dailyCalendarData*/t[13].dailyIcon)&&A(e,"dailyicon",r),/*calendarCollections*/2&a&&i!==(i=/*dailyCalendarData*/t[13].dailyDay)&&A(e,"dailyday",i),/*calendarCollections*/2&a&&o!==(o=/*dailyCalendarData*/t[13].dailyDescription)&&A(e,"dailydescription",o),/*calendarCollections*/2&a&&s!==(s=/*dailyCalendarData*/t[13].dailyButtonTitle)&&A(e,"dailybuttontitle",s),/*lang*/1&a&&A(e,"lang",/*lang*/t[0])},d(t){t&&b(e)}}}
|
|
742
|
+
// (96:8) {#if calendarModalOpened == true}
|
|
737
743
|
function vi(t){let e,n,r,i,o,s,a,l;return{c(){e=w("casino-modal"),n=w("casino-calendar-daily-details"),A(n,"dailybackground",r=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyBackground),A(n,"dailybuttontitle",i=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyButtonTitle),A(n,"dailyday",o=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDay),A(n,"dailydescription",s=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDescription),A(n,"dailyicon",a=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyIcon),A(n,"dailytitle",l=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyTitle),A(n,"lang",/*lang*/t[0]),A(e,"identifier","Calendar")},m(t,r){g(t,e,r),f(e,n)},p(t,e){/*calendarCollections, selectedIndex*/6&e&&r!==(r=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyBackground)&&A(n,"dailybackground",r),/*calendarCollections, selectedIndex*/6&e&&i!==(i=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyButtonTitle)&&A(n,"dailybuttontitle",i),/*calendarCollections, selectedIndex*/6&e&&o!==(o=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDay)&&A(n,"dailyday",o),/*calendarCollections, selectedIndex*/6&e&&s!==(s=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDescription)&&A(n,"dailydescription",s),/*calendarCollections, selectedIndex*/6&e&&a!==(a=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyIcon)&&A(n,"dailyicon",a),/*calendarCollections, selectedIndex*/6&e&&l!==(l=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyTitle)&&A(n,"dailytitle",l),/*lang*/1&e&&A(n,"lang",/*lang*/t[0])},d(t){t&&b(e)}}}function wi(e){let n;function r(t,e){/*hasErrors*/
|
|
738
|
-
return t[4]?gi:/*isLoading*/t[3]?mi:/*calendarCollections*/t[1]?.length?yi:void 0}let i=r(e),o=i&&i(e);return{c(){o&&o.c(),n=x(),this.c=t},m(t,e){o&&o.m(t,e),g(t,n,e)},p(t,[e]){i===(i=r(t))&&o?o.p(t,e):(o&&o.d(1),o=i&&i(t),o&&(o.c(),o.m(n.parentNode,n)))},i:t,o:t,d(t){o&&o.d(t),t&&b(n)}}}function Ei(t,e,n){let r,{cmsendpoint:i=""}=e,{
|
|
744
|
+
return t[4]?gi:/*isLoading*/t[3]?mi:/*calendarCollections*/t[1]?.length?yi:void 0}let i=r(e),o=i&&i(e);return{c(){o&&o.c(),n=x(),this.c=t},m(t,e){o&&o.m(t,e),g(t,n,e)},p(t,[e]){i===(i=r(t))&&o?o.p(t,e):(o&&o.d(1),o=i&&i(t),o&&(o.c(),o.m(n.parentNode,n)))},i:t,o:t,d(t){o&&o.d(t),t&&b(n)}}}function Ei(t,e,n){let r,{cmsendpoint:i=""}=e,{userroles:o=""}=e,{lang:s="en"}=e,a=0,l=!0,c=!1,u=!1,h=window.navigator.userAgent,d=!1;const p=()=>{(()=>{n(3,l=!0);let t=new URL(`${i}/${s}/daily-calendar/`);t.searchParams.append("userRoles",o);let e=(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(h);e&&("PC"===e?t.searchParams.append("device","dk"):t.searchParams.append("device","mtWeb")),fetch(t.href).then((t=>t.json())).then((t=>{n(1,r=t)})).catch((t=>{console.log(t),n(4,c=!0)})).finally((()=>{n(3,l=!1)}))})()},f=t=>{var e;t.data&&"OpenCalendar"==t.data.type&&(n(2,a=t.data.index),n(6,d=!0),window.postMessage({type:"ShowModal",selectedIndex:a,identifier:"Calendar"},window.location.href),window.postMessage({type:"DailyEventsData",data:null===(e=r[a])||void 0===e?void 0:e.dailyEvents})),t.data&&"ModalClosed"==t.data.type&&n(6,d=!1)};return k((()=>(window.addEventListener("message",f,!1),Yr(h)&&n(5,u=!0),()=>{window.removeEventListener("message",f)}))),t.$$set=t=>{"cmsendpoint"in t&&n(7,i=t.cmsendpoint),"userroles"in t&&n(8,o=t.userroles),"lang"in t&&n(0,s=t.lang)},t.$$.update=()=>{/*cmsendpoint, lang, userroles*/385&t.$$.dirty&&i&&s&&o&&p()},[s,r,a,l,c,u,d,i,o]}!customElements.get("casino-calendar-daily-item")&&customElements.define("casino-calendar-daily-item",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emfe-w-color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 16px;text-align:center;border-radius:0 0 2px 2px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;font-size:12px;padding:8px 6px;border-radius:5px;border:none;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:pointer}',this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:I(this.attributes),customElement:!0},pi,di,s,{cmsendpoint:9,lang:10,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:11,dailybuttontitle:3,index:4,clientstyling:12,clientstylingurl:13},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["cmsendpoint","lang","dailybackground","dailyicon","dailyday","dailydescription","dailybuttontitle","index","clientstyling","clientstylingurl"]}get cmsendpoint(){return this.$$.ctx[9]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),Z()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),Z()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(t){this.$$set({dailybackground:t}),Z()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(t){this.$$set({dailyicon:t}),Z()}get dailyday(){return this.$$.ctx[2]}set dailyday(t){this.$$set({dailyday:t}),Z()}get dailydescription(){return this.$$.ctx[11]}set dailydescription(t){this.$$set({dailydescription:t}),Z()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),Z()}get index(){return this.$$.ctx[4]}set index(t){this.$$set({index:t}),Z()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}});class _i extends lt{constructor(t){super();const e=document.createElement("style");e.textContent='.CasinoCalendarItem{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;text-align:left;gap:10px}.Mobile{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto\n }.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, 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),at(this,{target:this.shadowRoot,props:I(this.attributes),customElement:!0},Ei,wi,s,{cmsendpoint:7,userroles:8,lang:0},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["cmsendpoint","userroles","lang"]}get cmsendpoint(){return this.$$.ctx[7]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),Z()}get userroles(){return this.$$.ctx[8]}set userroles(t){this.$$set({userroles:t}),Z()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),Z()}}return!customElements.get("casino-calendar")&&customElements.define("casino-calendar",_i),_i}));
|
|
739
745
|
//# sourceMappingURL=casino-calendar.js.map
|