@everymatrix/casino-calendar 1.8.3 → 1.9.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/dist/casino-calendar.js +41 -39
- package/dist/casino-calendar.js.map +1 -1
- package/package.json +2 -2
- package/src/CasinoCalendar.svelte +11 -2
package/dist/casino-calendar.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
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=E("style");return function(t,e){f(t.head||t,e)}(y(t),e),e.sheet}function g(t,e,n){t.insertBefore(e,n||null)}function b(t){t.parentNode.removeChild(t)}function v(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function E(t){return document.createElement(t)}function w(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function T(t){return document.createTextNode(t)}function _(){return T(" ")}function x(){return T("")}function B(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function C(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:C(t,e,n)}function H(t,e){e=""+e,t.wholeText!==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
|
-
let P;function
|
|
8
|
+
let P;function I(){if(void 0===P){P=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){P=!0}}return P}function L(t){const e={};for(const n of t)e[n.name]=n.value;return e}
|
|
9
9
|
// we need to store the information for multiple documents because a Svelte application could also contain iframes
|
|
10
10
|
// https://github.com/sveltejs/svelte/issues/3624
|
|
11
11
|
const M=new Map;let $,O=0;
|
|
@@ -99,17 +99,17 @@ vt.prototype.append=function(t,e){t=mt(t),e=gt(e);var n=this.map[t];this.map[t]=
|
|
|
99
99
|
// Search for a '_' parameter in the query string
|
|
100
100
|
var o=/([?&])_=[^&]*/;if(o.test(this.url))
|
|
101
101
|
// If it already exists then set the value with the current time
|
|
102
|
-
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function At(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 Ht(t,e){if(!(this instanceof Ht))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new vt(e.headers),this.url=e.url||"",this._initBody(t)}Ct.prototype.clone=function(){return new Ct(this,{body:this._bodyInit})},xt.call(Ct.prototype),xt.call(Ht.prototype),Ht.prototype.clone=function(){return new Ht(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new vt(this.headers),url:this.url})},Ht.error=function(){var t=new Ht(null,{status:0,statusText:""});return t.type="error",t};var St=[301,302,303,307,308];Ht.redirect=function(t,e){if(-1===St.indexOf(e))throw new RangeError("Invalid status code");return new Ht(null,{status:e,headers:{location:t}})};var Pt=lt.DOMException;try{new Pt}catch(t){(Pt=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),Pt.prototype.constructor=Pt}function
|
|
102
|
+
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function At(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 Ht(t,e){if(!(this instanceof Ht))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new vt(e.headers),this.url=e.url||"",this._initBody(t)}Ct.prototype.clone=function(){return new Ct(this,{body:this._bodyInit})},xt.call(Ct.prototype),xt.call(Ht.prototype),Ht.prototype.clone=function(){return new Ht(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new vt(this.headers),url:this.url})},Ht.error=function(){var t=new Ht(null,{status:0,statusText:""});return t.type="error",t};var St=[301,302,303,307,308];Ht.redirect=function(t,e){if(-1===St.indexOf(e))throw new RangeError("Invalid status code");return new Ht(null,{status:e,headers:{location:t}})};var Pt=lt.DOMException;try{new Pt}catch(t){(Pt=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),Pt.prototype.constructor=Pt}function It(t,e){return new Promise((function(n,r){var i=new Ct(t,e);if(i.signal&&i.signal.aborted)return r(new Pt("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var t,e,r={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new vt,
|
|
103
103
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
104
104
|
// https://github.com/github/fetch/issues/748
|
|
105
105
|
// https://github.com/zloirock/core-js/issues/751
|
|
106
106
|
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 n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new Ht(i,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Pt("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&<.location.href?lt.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&&(ht?o.responseType="blob":pt&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof vt?i.headers.forEach((function(t,e){o.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){o.setRequestHeader(t,gt(e.headers[t]))})),i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
|
|
107
107
|
// DONE (success or failure)
|
|
108
|
-
4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}
|
|
108
|
+
4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}It.polyfill=!0,lt.fetch||(lt.fetch=It,lt.Headers=vt,lt.Request=Ct,lt.Response=Ht);
|
|
109
109
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
110
110
|
// on the global object (window or self)
|
|
111
111
|
// Return that as the export for use in Webpack, Browserify etc.
|
|
112
|
-
var
|
|
112
|
+
var Lt=self.fetch.bind(self),Mt=function(t,e){return Mt=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])},Mt(t,e)};
|
|
113
113
|
/******************************************************************************
|
|
114
114
|
Copyright (c) Microsoft Corporation.
|
|
115
115
|
|
|
@@ -153,11 +153,11 @@ function Be(t,e,n){var r={};return n.isMergeableObject(t)&&_e(t).forEach((functi
|
|
|
153
153
|
})(t,i)||(xe(t,i)&&n.isMergeableObject(e[i])?r[i]=function(t,e){if(!e.customMerge)return Ce;var n=e.customMerge(t);return"function"==typeof n?n:Ce}(i,n)(t[i],e[i],n):r[i]=we(e[i],n))})),r}function Ce(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||Te,n.isMergeableObject=n.isMergeableObject||ve,
|
|
154
154
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
155
155
|
// implementations can use it. The caller may not replace it.
|
|
156
|
-
n.cloneUnlessOtherwiseSpecified=we;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):Be(t,e,n):we(e,n)}Ce.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return Ce(t,n,e)}),{})};var Ae=Ce,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,
|
|
156
|
+
n.cloneUnlessOtherwiseSpecified=we;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):Be(t,e,n):we(e,n)}Ce.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return Ce(t,n,e)}),{})};var Ae=Ce,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,Ie,Le,Me=function(){return Me=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},Me.apply(this,arguments)};function $e(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))}
|
|
157
157
|
/**
|
|
158
158
|
* Type Guards
|
|
159
159
|
*/
|
|
160
|
-
function Oe(t){return t.type===
|
|
160
|
+
function Oe(t){return t.type===Ie.literal}function Re(t){return t.type===Ie.argument}function Ne(t){return t.type===Ie.number}function De(t){return t.type===Ie.date}function ke(t){return t.type===Ie.time}function Ue(t){return t.type===Ie.select}function Fe(t){return t.type===Ie.plural}function Ge(t){return t.type===Ie.pound}function je(t){return t.type===Ie.tag}function ze(t){return!(!t||"object"!=typeof t||t.type!==Le.number)}function Ve(t){return!(!t||"object"!=typeof t||t.type!==Le.dateTime)}
|
|
161
161
|
// @generated from regex-gen.ts
|
|
162
162
|
!function(t){
|
|
163
163
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -256,7 +256,7 @@ t[t.pound=7]="pound",
|
|
|
256
256
|
/**
|
|
257
257
|
* XML-like tag
|
|
258
258
|
*/
|
|
259
|
-
t[t.tag=8]="tag"}(
|
|
259
|
+
t[t.tag=8]="tag"}(Ie||(Ie={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(Le||(Le={}));var Xe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,We=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
260
260
|
/**
|
|
261
261
|
* https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
262
262
|
* Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
|
|
@@ -379,7 +379,7 @@ if(vn){
|
|
|
379
379
|
// Native
|
|
380
380
|
var Hn=An("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");En=function(t,e){var n;return Hn.lastIndex=e,null!==(n=Hn.exec(t)[1])&&void 0!==n?n:""}}else
|
|
381
381
|
// IE11
|
|
382
|
-
En=function(t,e){for(var n=[];;){var r=xn(t,e);if(void 0===r||
|
|
382
|
+
En=function(t,e){for(var n=[];;){var r=xn(t,e);if(void 0===r||Ln(r)||Mn(r))break;n.push(r),e+=r>=65536?2:1}return Tn.apply(void 0,n)};var Sn=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(t,n)).err)return o;r.push(o.val)}else{if(125/* `}` */===i&&t>0)break;if(35/* `#` */!==i||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Pe.UNMATCHED_CLOSING_TAG,hn(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Pn(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:Ie.pound,location:hn(s,this.clonePosition())})}}}return{val:r,err:null}},
|
|
383
383
|
/**
|
|
384
384
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
385
385
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -401,14 +401,14 @@ En=function(t,e){for(var n=[];;){var r=xn(t,e);if(void 0===r||In(r)||Mn(r))break
|
|
|
401
401
|
t.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();// `<`
|
|
402
402
|
var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
|
403
403
|
// Self closing tag
|
|
404
|
-
return{val:{type:
|
|
404
|
+
return{val:{type:Ie.literal,value:"<".concat(r,"/>"),location:hn(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,e,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
|
|
405
405
|
// Expecting a close tag
|
|
406
|
-
if(this.bumpIf("</")){if(this.isEOF()||!Pn(this.char()))return this.error(Pe.INVALID_TAG,hn(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(Pe.UNMATCHED_CLOSING_TAG,hn(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:
|
|
406
|
+
if(this.bumpIf("</")){if(this.isEOF()||!Pn(this.char()))return this.error(Pe.INVALID_TAG,hn(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(Pe.UNMATCHED_CLOSING_TAG,hn(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ie.tag,value:r,children:o,location:hn(n,this.clonePosition())},err:null}:this.error(Pe.INVALID_TAG,hn(s,this.clonePosition())))}return this.error(Pe.UNCLOSED_TAG,hn(n,this.clonePosition()))}return this.error(Pe.INVALID_TAG,hn(n,this.clonePosition()))},
|
|
407
407
|
/**
|
|
408
408
|
* This method assumes that the caller has peeked ahead for the first tag character.
|
|
409
409
|
*/
|
|
410
410
|
t.prototype.parseTagName=function(){var t=this.offset();// the first tag name character
|
|
411
|
-
for(this.bump();!this.isEOF()&&
|
|
411
|
+
for(this.bump();!this.isEOF()&&In(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(e);if(i)r+=i;else{var o=this.tryParseUnquoted(t,e);if(o)r+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=hn(n,this.clonePosition());return{val:{type:Ie.literal,value:r,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(Pn(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t;
|
|
412
412
|
/** See `parseTag` function docs. */},
|
|
413
413
|
/**
|
|
414
414
|
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
|
@@ -436,7 +436,7 @@ this.bumpSpace(),this.isEOF())return this.error(Pe.EXPECT_ARGUMENT_CLOSING_BRACE
|
|
|
436
436
|
var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Pe.MALFORMED_ARGUMENT,hn(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Pe.EXPECT_ARGUMENT_CLOSING_BRACE,hn(n,this.clonePosition()));switch(this.char()){
|
|
437
437
|
// Simple argument: `{name}`
|
|
438
438
|
case 125/* `}` */:// `}`
|
|
439
|
-
return this.bump(),{val:{type:
|
|
439
|
+
return this.bump(),{val:{type:Ie.argument,
|
|
440
440
|
// value does not include the opening and closing braces.
|
|
441
441
|
value:r,location:hn(n,this.clonePosition())},err:null};
|
|
442
442
|
// Argument with options: `{name, format, ...}`
|
|
@@ -460,13 +460,13 @@ this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clo
|
|
|
460
460
|
// Extract style or skeleton
|
|
461
461
|
if(l&&wn(null==l?void 0:l.style,"::",0)){
|
|
462
462
|
// Skeleton starts with `::`.
|
|
463
|
-
var h=Bn(l.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?g:{val:{type:
|
|
463
|
+
var h=Bn(l.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?g:{val:{type:Ie.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;
|
|
464
464
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
465
465
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
466
466
|
// for unsupported patterns.
|
|
467
|
-
this.locale&&(d=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if("j"===i){for(var o=0;r+1<t.length&&t.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=ln(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale));var p={type:
|
|
467
|
+
this.locale&&(d=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if("j"===i){for(var o=0;r+1<t.length&&t.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=ln(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale));var p={type:Le.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ke(d):{}};return{val:{type:"date"===s?Ie.date:Ie.time,value:n,location:u,style:p},err:null}}
|
|
468
468
|
// Regular style or no style.
|
|
469
|
-
return{val:{type:"number"===s?
|
|
469
|
+
return{val:{type:"number"===s?Ie.number:"date"===s?Ie.date:Ie.time,value:n,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
|
|
470
470
|
// Parse this range:
|
|
471
471
|
// {name, plural, options}
|
|
472
472
|
// ^---------^
|
|
@@ -479,7 +479,7 @@ var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.err
|
|
|
479
479
|
// ^--^
|
|
480
480
|
var y=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(Pe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,hn(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(Pe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Pe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;
|
|
481
481
|
// Parse another identifier for option parsing
|
|
482
|
-
this.bumpSpace(),y=this.parseIdentifierIfPossible(),m=g.val}var b,v=this.tryParsePluralOrSelectOptions(t,s,e,y);if(v.err)return v;if((b=this.tryParseArgumentClose(r)).err)return b;var E=hn(r,this.clonePosition());return"select"===s?{val:{type:
|
|
482
|
+
this.bumpSpace(),y=this.parseIdentifierIfPossible(),m=g.val}var b,v=this.tryParsePluralOrSelectOptions(t,s,e,y);if(v.err)return v;if((b=this.tryParseArgumentClose(r)).err)return b;var E=hn(r,this.clonePosition());return"select"===s?{val:{type:Ie.select,value:n,options:_n(v.val),location:E},err:null}:{val:{type:Ie.plural,value:n,options:_n(v.val),offset:m,pluralType:"plural"===s?"cardinal":"ordinal",location:E},err:null};default:return this.error(Pe.INVALID_ARGUMENT_TYPE,hn(o,a))}},t.prototype.tryParseArgumentClose=function(t){
|
|
483
483
|
// Parse: {value, number, ::currency/GBP }
|
|
484
484
|
return this.isEOF()||125/* `}` */!==this.char()?this.error(Pe.EXPECT_ARGUMENT_CLOSING_BRACE,hn(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
485
485
|
/**
|
|
@@ -490,7 +490,7 @@ t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePos
|
|
|
490
490
|
// Find the end of the quoted literal text.
|
|
491
491
|
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Pe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,hn(n,this.clonePosition()));this.bump();break;case 123/* `{` */:t+=1,this.bump();break;case 125/* `}` */:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");
|
|
492
492
|
// Parse the skeleton
|
|
493
|
-
for(var e=t.split(Ye).filter((function(t){return t.length>0})),n=[],r=0,i=e;r<i.length;r++){var o=i[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),l=0,c=a;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");n.push({stem:s,options:a})}return n}(t)}catch(t){return this.error(Pe.INVALID_NUMBER_SKELETON,e)}return{val:{type:
|
|
493
|
+
for(var e=t.split(Ye).filter((function(t){return t.length>0})),n=[],r=0,i=e;r<i.length;r++){var o=i[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),l=0,c=a;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");n.push({stem:s,options:a})}return n}(t)}catch(t){return this.error(Pe.INVALID_NUMBER_SKELETON,e)}return{val:{type:Le.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?on(n):{}},err:null}},
|
|
494
494
|
/**
|
|
495
495
|
* @param nesting_level The current nesting level of messages.
|
|
496
496
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -547,7 +547,7 @@ t.prototype.bumpUntil=function(t){var e=this.offset(),n=this.message.indexOf(t,e
|
|
|
547
547
|
*/
|
|
548
548
|
t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
|
|
549
549
|
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
|
550
|
-
t.prototype.bumpSpace=function(){for(;!this.isEOF()&&
|
|
550
|
+
t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ln(this.char());)this.bump()},
|
|
551
551
|
/**
|
|
552
552
|
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
|
553
553
|
* If the input has been exhausted, then this returns null.
|
|
@@ -557,11 +557,11 @@ t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this
|
|
|
557
557
|
* This check if codepoint is alphabet (lower & uppercase)
|
|
558
558
|
* @param codepoint
|
|
559
559
|
* @returns
|
|
560
|
-
*/function Pn(t){return t>=97&&t<=122||t>=65&&t<=90}function
|
|
560
|
+
*/function Pn(t){return t>=97&&t<=122||t>=65&&t<=90}function In(t){return 45/* '-' */===t||46/* '.' */===t||t>=48&&t<=57/* 0..9 */||95/* '_' */===t||t>=97&&t<=122/** a..z */||t>=65&&t<=90/* A..Z */||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}
|
|
561
561
|
/**
|
|
562
562
|
* Code point equivalent of regex `\p{White_Space}`.
|
|
563
563
|
* From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
564
|
-
*/function
|
|
564
|
+
*/function Ln(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}
|
|
565
565
|
/**
|
|
566
566
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
567
567
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
@@ -647,7 +647,7 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
647
647
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
648
648
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
649
649
|
PERFORMANCE OF THIS SOFTWARE.
|
|
650
|
-
***************************************************************************** */function mr(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}const gr={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 br(){return gr}const vr=ge(!1);let Er;const wr=ge(null);function Tr(t){return t.split("-").map(((t,e,n)=>n.slice(0,e+1).join("-"))).reverse()}function _r(t,e=br().fallbackLocale){const n=Tr(t);return e?[...new Set([...n,...Tr(e)])]:n}function xr(){return null!=Er?Er:void 0}wr.subscribe((t=>{Er=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Br=Object.assign(Object.assign({},wr),{set:t=>{if(t&&function(t){if(null==t)return;const e=_r(t);for(let t=0;t<e.length;t++){const n=e[t];if(lr(n))return n}}(t)&&dr(t)){const{loadingDelay:e}=br();let n;return"undefined"!=typeof window&&null!=xr()&&e?n=window.setTimeout((()=>vr.set(!0)),e):vr.set(!0),yr(t).then((()=>{wr.set(t)})).finally((()=>{clearTimeout(n),vr.set(!1)}))}return wr.set(t)}}),Cr=t=>{const e=Object.create(null);return n=>{const r=JSON.stringify(n);return r in e?e[r]:e[r]=t(n)}},Ar=(t,e)=>{const{formats:n}=br();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Hr=Cr((t=>{var{locale:e,format:n}=t,r=mr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=Ar("number",n)),new Intl.NumberFormat(e,r)})),Sr=Cr((t=>{var{locale:e,format:n}=t,r=mr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=Ar("date",n):0===Object.keys(r).length&&(r=Ar("date","short")),new Intl.DateTimeFormat(e,r)})),Pr=Cr((t=>{var{locale:e,format:n}=t,r=mr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=Ar("time",n):0===Object.keys(r).length&&(r=Ar("time","short")),new Intl.DateTimeFormat(e,r)})),
|
|
650
|
+
***************************************************************************** */function mr(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}const gr={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 br(){return gr}const vr=ge(!1);let Er;const wr=ge(null);function Tr(t){return t.split("-").map(((t,e,n)=>n.slice(0,e+1).join("-"))).reverse()}function _r(t,e=br().fallbackLocale){const n=Tr(t);return e?[...new Set([...n,...Tr(e)])]:n}function xr(){return null!=Er?Er:void 0}wr.subscribe((t=>{Er=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Br=Object.assign(Object.assign({},wr),{set:t=>{if(t&&function(t){if(null==t)return;const e=_r(t);for(let t=0;t<e.length;t++){const n=e[t];if(lr(n))return n}}(t)&&dr(t)){const{loadingDelay:e}=br();let n;return"undefined"!=typeof window&&null!=xr()&&e?n=window.setTimeout((()=>vr.set(!0)),e):vr.set(!0),yr(t).then((()=>{wr.set(t)})).finally((()=>{clearTimeout(n),vr.set(!1)}))}return wr.set(t)}}),Cr=t=>{const e=Object.create(null);return n=>{const r=JSON.stringify(n);return r in e?e[r]:e[r]=t(n)}},Ar=(t,e)=>{const{formats:n}=br();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Hr=Cr((t=>{var{locale:e,format:n}=t,r=mr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=Ar("number",n)),new Intl.NumberFormat(e,r)})),Sr=Cr((t=>{var{locale:e,format:n}=t,r=mr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=Ar("date",n):0===Object.keys(r).length&&(r=Ar("date","short")),new Intl.DateTimeFormat(e,r)})),Pr=Cr((t=>{var{locale:e,format:n}=t,r=mr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=Ar("time",n):0===Object.keys(r).length&&(r=Ar("time","short")),new Intl.DateTimeFormat(e,r)})),Ir=Cr(((t,e=xr())=>new nr(t,e,br().formats,{ignoreTag:br().ignoreTag}))),Lr=(t,e={})=>{var n,r,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=xr(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=or(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=br()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:l,id:t,defaultValue:c}))&&void 0!==i?i:c)&&void 0!==o?o:t;if(!a)return u;let h=u;try{h=Ir(u,l).format(a)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},Mr=(t,e)=>((t={})=>{var{locale:e=xr()}=t,n=mr(t,["locale"]);return Pr(Object.assign({locale:e},n))})(e).format(t),$r=(t,e)=>((t={})=>{var{locale:e=xr()}=t,n=mr(t,["locale"]);return Sr(Object.assign({locale:e},n))})(e).format(t),Or=(t,e)=>((t={})=>{var{locale:e=xr()}=t,n=mr(t,["locale"]);return Hr(Object.assign({locale:e},n))})(e).format(t),Rr=(t,e=xr())=>or(t,e);be([Br,ar],(()=>Lr)),be([Br],(()=>Mr)),be([Br],(()=>$r)),be([Br],(()=>Or)),be([Br,ar],(()=>Rr)),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]}};
|
|
651
651
|
/**
|
|
652
652
|
* @name isMobile
|
|
653
653
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
@@ -656,10 +656,10 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
656
656
|
*/
|
|
657
657
|
const Nr=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));function Dr(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}}
|
|
658
658
|
/* ../casino-modal/src/CasinoModal.svelte generated by Svelte v3.48.0 */function kr(t){let e,n,r,i,o,s,a,l,c,u,h,d;return{c(){e=E("div"),n=E("div"),r=E("div"),r.innerHTML="<slot></slot>",i=_(),o=E("span"),s=E("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>',C(r,"class","ModalContainer"),C(r,"part","ModalContainer"),C(s,"name","close"),C(o,"class",a="ModalCloseBtn "+(/*haspanicbutton*/"true"==t[1]&&/*mobileView*/t[3]?"ModalPanicCloseButton":"")),C(o,"part","ModalCloseBtn"),C(o,"role","button"),C(n,"class","ModalWindow"),C(n,"part","ModalWindow"),C(n,"id","Modal"),X((()=>/*div1_elementresize_handler*/t[18].call(n))),C(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),
|
|
659
|
-
/*div1_binding*/t[17](n),l=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const n=E("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=
|
|
659
|
+
/*div1_binding*/t[17](n),l=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const n=E("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=I();let i;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=B(window,"message",(t=>{t.source===n.contentWindow&&e()}))):(n.src="about:blank",n.onload=()=>{i=B(n.contentWindow,"resize",e)}),f(t,n),()=>{(r||i&&n.contentWindow)&&i(),b(n)}}(n,/*div1_elementresize_handler*/t[18].bind(n)),
|
|
660
660
|
/*div2_binding*/t[19](e),u=!0,h||(d=B(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":"")))&&C(o,"class",a)},i(e){u||(X((()=>{c||(c=it(n,Dr,{transitionDuration:/*duration*/t[0]},!0)),c.run(1)})),u=!0)},o(e){c||(c=it(n,Dr,{transitionDuration:/*duration*/t[0]},!1)),c.run(0),u=!1},d(n){n&&b(e)
|
|
661
661
|
/*div1_binding*/,t[17](null),l(),n&&c&&c.end()
|
|
662
|
-
/*div2_binding*/,t[19](null),h=!1,d()}}}function Ur(e){let n,r,o=/*show*/e[7]&&kr(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=kr(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 Fr(t,e,n){let r,i,o,s,{duration:a=350}=e,{session:l=""}=e,{userid:c=""}=e,{clientstyling:u=""}=e,{clientstylingurl:h=""}=e,{endpoint:d=""}=e,{haspanicbutton:p="false"}=e,{gamepagemodalurl:f="false"}=e,{sessioncheck:y="true"}=e,{integratedgameframedesktop:m="false"}=e,g=window.navigator.userAgent,b=!1,v=!1,E=!1;const w=t=>{if("ModalClosed"==t.data.type&&("false"!=m||Nr(g))&&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)),"
|
|
662
|
+
/*div2_binding*/,t[19](null),h=!1,d()}}}function Ur(e){let n,r,o=/*show*/e[7]&&kr(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=kr(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 Fr(t,e,n){let r,i,o,s,{duration:a=350}=e,{session:l=""}=e,{userid:c=""}=e,{clientstyling:u=""}=e,{clientstylingurl:h=""}=e,{endpoint:d=""}=e,{haspanicbutton:p="false"}=e,{gamepagemodalurl:f="false"}=e,{sessioncheck:y="true"}=e,{integratedgameframedesktop:m="false"}=e,g=window.navigator.userAgent,b=!1,v=!1,E=!1;const w=t=>{if("ModalClosed"==t.data.type&&("false"!=m||Nr(g))&&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&&(v=t.data.detailsObtained),"OpenCalendarModal"===t.data.type&&(n(7,E=!0),window.postMessage({type:"DisableScroll"},window.location.href))},T=t=>{if(v){let t={modalWidth:getComputedStyle(r).width,modalHeight:getComputedStyle(r).height};window.postMessage({type:"ModalSize",modalContainerSize:t},window.location.href)}},_=()=>{"true"==y&&function(t,e){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",e),Lt(`${t}/player/session/player`,{method:"GET",headers:i}).then((t=>t.json())).then((t=>n(t))).catch((t=>r(t)))}))}(d,l).then((t=>{t.Guid,t.UserID}),(t=>{console.error("err on session",t)}))};return k((()=>(n(3,b=Nr(g)),window.addEventListener("message",w,!1),window.addEventListener("resize",T,!1),()=>{window.removeEventListener("message",w),window.removeEventListener("resize",w)}))),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),"clientstylingurl"in t&&n(12,h=t.clientstylingurl),"endpoint"in t&&n(13,d=t.endpoint),"haspanicbutton"in t&&n(1,p=t.haspanicbutton),"gamepagemodalurl"in t&&n(14,f=t.gamepagemodalurl),"sessioncheck"in t&&n(15,y=t.sessioncheck),"integratedgameframedesktop"in t&&n(16,m=t.integratedgameframedesktop)},t.$$.update=()=>{/*session, userid, endpoint*/9728&t.$$.dirty&&l&&c&&d&&_(),/*clientstyling, customStylingContainer*/2052&t.$$.dirty&&u&&i&&(()=>{let t=document.createElement("style");t.innerHTML=u,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/4100&t.$$.dirty&&h&&i&&(()=>{let t=new URL(h),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})()},[a,p,i,b,r,o,s,E,()=>{n(7,E=!1),n(3,b=Nr(g)),window.postMessage({type:"ModalClosed",gamepagemodalurl:f,mobileView:b},window.location.href)},l,c,u,h,d,f,y,m,function(t){F[t?"unshift":"push"]((()=>{r=t,n(4,r)}))},function(){o=this.clientWidth,s=this.clientHeight,n(5,o),n(6,s)},function(t){F[t?"unshift":"push"]((()=>{i=t,n(2,i)}))}]}
|
|
663
663
|
/* ../casino-calendar-daily-details/src/CasinoCalendarDailyDetails.svelte generated by Svelte v3.48.0 */
|
|
664
664
|
function Gr(t,e,n){const r=t.slice();return r[26]=e[n],r[27]=e,r[28]=n,r}function jr(t,e,n){const r=t.slice();return r[29]=e[n],r[28]=n,r}
|
|
665
665
|
// (105:4) {:else}
|
|
@@ -678,37 +678,39 @@ return t[18](/*event*/t[26],/*index*/t[28])}return{c(){e=E("div"),n=E("div"),r=E
|
|
|
678
678
|
// (158:16) {#if event.detailsExpanded}
|
|
679
679
|
function Zr(t){let e,n,r,i=/*event*/t[26].details[/*selectedTab*/t[4]].description+"";return{c(){e=E("div"),n=T(i),C(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"))&&C(e,"class",r)},d(t){t&&b(e)}}}
|
|
680
680
|
// (108:8) {#each dailyeventsDetails as event, index}
|
|
681
|
-
function qr(t){let e,n,r,i,o,s,a,c,u,h,d,p,y,m,v,w,x,A,S,P,
|
|
681
|
+
function qr(t){let e,n,r,i,o,s,a,c,u,h,d,p,y,m,v,w,x,A,S,P,I=/*event*/t[26].title+"",L=/*event*/t[26].description+"";function M(t,e){/*event*/
|
|
682
682
|
return 1==t[26].expandedInfo?Wr:Xr}let $=M(t),O=$(t);function R(){/*click_handler*/
|
|
683
|
-
return t[17](/*event*/t[26],/*each_value*/t[27],/*index*/t[28])}let N=/*event*/1==t[26].expandedInfo&&Kr(t);return{c(){e=E("div"),n=E("div"),r=T(
|
|
683
|
+
return t[17](/*event*/t[26],/*each_value*/t[27],/*index*/t[28])}let N=/*event*/1==t[26].expandedInfo&&Kr(t);return{c(){e=E("div"),n=E("div"),r=T(I),i=_(),o=E("div"),s=E("img"),u=_(),h=E("div"),d=T(L),p=_(),y=E("div"),m=E("button"),v=T(/*dailybuttontitle*/t[0]),w=_(),O.c(),x=_(),N&&N.c(),A=_(),C(n,"class","CasinoCalendarDailyTitle"),C(s,"class","CasinoCalendarFitImage"),l(s.src,a=/*event*/t[26].image)||C(s,"src",a),C(s,"alt",c=/*event*/t[26].image),C(o,"class","CasinoCalendarImage"),C(h,"class","CasinoCalendarDailyDescription"),C(m,"class","MoreInfoButton"),C(y,"class","CasinoCalendarTabs"),C(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,w),O.m(m,null),f(y,x),N&&N.m(y,null),f(e,A),S||(P=B(m,"click",R),S=!0)},p(e,n){t=e,/*dailyeventsDetails*/8&n&&I!==(I=/*event*/t[26].title+"")&&H(r,I),/*dailyeventsDetails*/8&n&&!l(s.src,a=/*event*/t[26].image)&&C(s,"src",a),/*dailyeventsDetails*/8&n&&c!==(c=/*event*/t[26].image)&&C(s,"alt",c),/*dailyeventsDetails*/8&n&&L!==(L=/*event*/t[26].description+"")&&H(d,L),/*dailybuttontitle*/1&n&&H(v,/*dailybuttontitle*/t[0]),$!==($=M(t))&&(O.d(1),O=$(t),O&&(O.c(),O.m(m,null))),/*event*/1==t[26].expandedInfo?N?N.p(t,n):(N=Kr(t),N.c(),N.m(y,null)):N&&(N.d(1),N=null)},d(t){t&&b(e),O.d(),N&&N.d(),S=!1,P()}}}function Jr(e){let n;function r(t,e){/*isLoading*/
|
|
684
684
|
return t[5]?Vr:zr}let i=r(e),o=i(e);return{c(){n=E("div"),o.c(),this.c=t},m(t,r){g(t,n,r),o.m(n,null),
|
|
685
685
|
/*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(),
|
|
686
686
|
/*div_binding*/e[19](null)}}}function Qr(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}){Br.subscribe((n=>{null==n&&(ar.set(e),Br.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
687
687
|
/*dictionary.set(translations);
|
|
688
688
|
locale.set(_locale);*/}({withLocale:"en",translations:{}});const v=t=>{"DailyEventsData"==t.data.type&&(n(5,m=!1),n(3,f=t.data.data),f.forEach((t=>{t.expandedInfo=!1,t.detailsExpanded=!1,t.details.forEach(((t,e)=>{t.expandedTab=0==e}))}))),"ModalClosed"==t.data.type&&(n(4,y=0),f.forEach(((t,e)=>{t.detailsExpanded=0==e,t.expandedInfo=0==e})))},E=()=>{var t;t=u,Br.set(t)},w=t=>{n(4,y=0),n(3,f[t].detailsExpanded=!f[t].detailsExpanded,f),
|
|
689
689
|
//Analytics event
|
|
690
|
-
"function"==typeof gtag&>ag("event","MoreInfo",{context:"CalendarWidgetDetails"})},T=(t,e)=>{n(4,y=e),t.details.forEach(((t,e)=>{t.expandedTab=y==e}))};k((()=>(window.addEventListener("message",v,!1),Nr(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&&E(),/*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,w,T,i,a,l,c,u,h,d,p,(t,e,r)=>{n(3,e[r].expandedInfo=!t.expandedInfo,f),w(r)},(t,e)=>{T(t,e)},function(t){F[t?"unshift":"push"]((()=>{r=t,n(2,r)}))}]}!customElements.get("casino-modal")&&customElements.define("casino-modal",class extends at{constructor(t){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::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)}</style>',st(this,{target:this.shadowRoot,props:
|
|
690
|
+
"function"==typeof gtag&>ag("event","MoreInfo",{context:"CalendarWidgetDetails"})},T=(t,e)=>{n(4,y=e),t.details.forEach(((t,e)=>{t.expandedTab=y==e}))};k((()=>(window.addEventListener("message",v,!1),Nr(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&&E(),/*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,w,T,i,a,l,c,u,h,d,p,(t,e,r)=>{n(3,e[r].expandedInfo=!t.expandedInfo,f),w(r)},(t,e)=>{T(t,e)},function(t){F[t?"unshift":"push"]((()=>{r=t,n(2,r)}))}]}!customElements.get("casino-modal")&&customElements.define("casino-modal",class extends at{constructor(t){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::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)}</style>',st(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Fr,Ur,s,{duration:0,session:9,userid:10,clientstyling:11,clientstylingurl:12,endpoint:13,haspanicbutton:1,gamepagemodalurl:14,sessioncheck:15,integratedgameframedesktop:16},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","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 clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get endpoint(){return this.$$.ctx[13]}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[14]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),Z()}get sessioncheck(){return this.$$.ctx[15]}set sessioncheck(t){this.$$set({sessioncheck:t}),Z()}get integratedgameframedesktop(){return this.$$.ctx[16]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),Z()}});
|
|
691
691
|
/* ../casino-calendar-daily-item/src/CasinoCalendarDailyItem.svelte generated by Svelte v3.48.0 */
|
|
692
|
-
function ti(e){let n,r,i,o,s,a,c,u,h,d,p,y,m,v,w,x,A,P,L,
|
|
693
|
-
/*div5_binding*/e[14](w),f(c,x),f(c,A),f(A,P),f(P,
|
|
694
|
-
/*div11_binding*/e[16](n),$||(O=B(P,"click",/*click_handler*/e[15]),$=!0)},p(t,[e]){/*dailyicon*/2&e&&!l(h.src,d=/*dailyicon*/t[1])&&C(h,"src",d),/*dailyicon*/2&e&&C(h,"alt",/*dailyicon*/t[1]),/*dailyday*/4&e&&H(m,/*dailyday*/t[2]),/*dailybuttontitle*/8&e&&H(
|
|
692
|
+
function ti(e){let n,r,i,o,s,a,c,u,h,d,p,y,m,v,w,x,A,P,I,L,M,$,O;return{c(){n=E("div"),r=E("div"),i=E("div"),o=E("div"),s=E("div"),s.innerHTML='<div class="RingLeft"></div> \n <div class="RingRight"></div>',a=_(),c=E("div"),u=E("div"),h=E("img"),p=_(),y=E("div"),m=T(/*dailyday*/e[2]),v=_(),w=E("div"),x=_(),A=E("div"),P=E("button"),I=T(/*dailybuttontitle*/e[3]),this.c=t,C(s,"class","CalendarBar"),l(h.src,d=/*dailyicon*/e[1])||C(h,"src",d),C(h,"alt",/*dailyicon*/e[1]),C(u,"class","CasinoCalendarDailyIcon"),C(y,"class","CasinoCalendarDailyTitle"),C(w,"class","CasinoCalendarDailyItemDescription"),C(P,"class","MoreInfoButton"),C(A,"class","CasinoCalendarDailyItemButton"),C(c,"class",L="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"),C(o,"class","CalendarCard"),C(i,"class","CasinoCalendarItems"),C(r,"class",M="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,w),
|
|
693
|
+
/*div5_binding*/e[14](w),f(c,x),f(c,A),f(A,P),f(P,I),
|
|
694
|
+
/*div11_binding*/e[16](n),$||(O=B(P,"click",/*click_handler*/e[15]),$=!0)},p(t,[e]){/*dailyicon*/2&e&&!l(h.src,d=/*dailyicon*/t[1])&&C(h,"src",d),/*dailyicon*/2&e&&C(h,"alt",/*dailyicon*/t[1]),/*dailyday*/4&e&&H(m,/*dailyday*/t[2]),/*dailybuttontitle*/8&e&&H(I,/*dailybuttontitle*/t[3]),/*index*/16&e&&L!==(L="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/t[4]?"Tear":""))&&C(c,"class",L),/*dailybackground*/1&e&&S(c,"background-image","url('"+/*dailybackground*/t[0]+"')"),/*mobileView*/128&e&&M!==(M="Container "+(/*mobileView*/t[7]?"Mobile":""))&&C(r,"class",M)},i:t,o:t,d(t){t&&b(n)
|
|
695
695
|
/*div5_binding*/,e[14](null),
|
|
696
696
|
/*div11_binding*/e[16](null),$=!1,O()}}}function ei(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}){Br.subscribe((n=>{null==n&&(ar.set(e),Br.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
697
697
|
/*dictionary.set(translations);
|
|
698
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}});let y=!1,m=window.navigator.userAgent;const g=()=>{window.postMessage({type:"
|
|
698
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});let y=!1,m=window.navigator.userAgent;const g=()=>{window.postMessage({type:"OpenCalendar",index:d},window.location.href),
|
|
699
699
|
//Analytics event
|
|
700
700
|
"function"==typeof gtag&>ag("event","MoreInfo",{context:"CalendarWidgetItem"})};k((()=>{Nr(m)&&n(7,y=!0)}));return t.$$set=t=>{"cmsendpoint"in t&&n(9,o=t.cmsendpoint),"lang"in t&&n(10,s=t.lang),"dailybackground"in t&&n(0,a=t.dailybackground),"dailyicon"in t&&n(1,l=t.dailyicon),"dailyday"in t&&n(2,c=t.dailyday),"dailydescription"in t&&n(11,u=t.dailydescription),"dailybuttontitle"in t&&n(3,h=t.dailybuttontitle),"index"in t&&n(4,d=t.index),"clientstyling"in t&&n(12,p=t.clientstyling),"clientstylingurl"in t&&n(13,f=t.clientstylingurl)},t.$$.update=()=>{/*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/2063&t.$$.dirty&&l&&c&&u&&h&&a&&(()=>{
|
|
701
701
|
// remove HTML tags
|
|
702
|
-
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){F[t?"unshift":"push"]((()=>{r=t,n(6,r)}))},()=>g(),function(t){F[t?"unshift":"push"]((()=>{i=t,n(5,i)}))}]}!customElements.get("casino-calendar-daily-details")&&customElements.define("casino-calendar-daily-details",class extends at{constructor(t){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::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-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C)}.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:scroll}.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-color-primary, #D0046C)}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color: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;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-color-primary, #D0046C)}.Mobile{max-height:70vh;margin-bottom:0}</style>',st(this,{target:this.shadowRoot,props:
|
|
702
|
+
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){F[t?"unshift":"push"]((()=>{r=t,n(6,r)}))},()=>g(),function(t){F[t?"unshift":"push"]((()=>{i=t,n(5,i)}))}]}!customElements.get("casino-calendar-daily-details")&&customElements.define("casino-calendar-daily-details",class extends at{constructor(t){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::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-color-white, #FFFFFF);background: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:scroll}.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-color-primary, #D0046C)}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color: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;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-color-primary, #D0046C)}.Mobile{max-height:70vh;margin-bottom:0}</style>',st(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Qr,Jr,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()}});
|
|
703
703
|
/* src/CasinoCalendar.svelte generated by Svelte v3.48.0 */
|
|
704
|
-
function ni(t,e,n){const r=t.slice();return r[
|
|
705
|
-
// (
|
|
706
|
-
function ri(t){let e,n,r,i
|
|
707
|
-
// (
|
|
704
|
+
function ni(t,e,n){const r=t.slice();return r[12]=e[n],r[14]=n,r}
|
|
705
|
+
// (66:4) {#if calendarCollections?.length}
|
|
706
|
+
function ri(t){let e,n,r,i=/*calendarCollections*/t[1],o=[];for(let e=0;e<i.length;e+=1)o[e]=si(ni(t,i,e));let s=/*calendarModalOpened*/1==t[6]&&ai(t);return{c(){e=E("div");for(let t=0;t<o.length;t+=1)o[t].c();n=_(),s&&s.c(),C(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].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=ni(t,i,r);o[r]?o[r].p(s,a):(o[r]=si(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=ai(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null),/*mobileView*/32&a&&r!==(r="CasinoCalendarItem "+(/*mobileView*/t[5]?"Mobile":""))&&C(e,"class",r)},d(t){t&&b(e),v(o,t),s&&s.d()}}}
|
|
707
|
+
// (63:2) {#if isLoading}
|
|
708
708
|
function ii(e){let n;return{c(){n=E("p"),n.textContent="Loading ...",C(n,"class","SearchLoading"),C(n,"part","SearchLoading")},m(t,e){g(t,n,e)},p:t,d(t){t&&b(n)}}}
|
|
709
|
-
// (
|
|
709
|
+
// (60:0) {#if hasErrors}
|
|
710
710
|
function oi(e){let n;return{c(){n=E("p"),n.textContent="500 Error - Internal Server Error",C(n,"class","SearchLoading"),C(n,"part","SearchLoading")},m(t,e){g(t,n,e)},p:t,d(t){t&&b(n)}}}
|
|
711
|
-
// (
|
|
712
|
-
function si(t){let e,n,r,i,o,s,a;return{c(){e=E("casino-calendar-daily-item"),A(e,"dailybackground",n=/*dailyCalendarData*/t[
|
|
713
|
-
|
|
711
|
+
// (68:8) {#each calendarCollections as dailyCalendarData, index }
|
|
712
|
+
function si(t){let e,n,r,i,o,s,a;return{c(){e=E("casino-calendar-daily-item"),A(e,"dailybackground",n=/*dailyCalendarData*/t[12].dailyBackground),A(e,"dailyicon",r=/*dailyCalendarData*/t[12].dailyIcon),A(e,"dailyday",i=/*dailyCalendarData*/t[12].dailyDay),A(e,"dailydescription",o=/*dailyCalendarData*/t[12].dailyDescription),A(e,"dailybuttontitle",s=/*dailyCalendarData*/t[12].dailyButtonTitle),A(e,"index",a=/*index*/t[14]),A(e,"lang",/*lang*/t[0])},m(t,n){g(t,e,n)},p(t,a){/*calendarCollections*/2&a&&n!==(n=/*dailyCalendarData*/t[12].dailyBackground)&&A(e,"dailybackground",n),/*calendarCollections*/2&a&&r!==(r=/*dailyCalendarData*/t[12].dailyIcon)&&A(e,"dailyicon",r),/*calendarCollections*/2&a&&i!==(i=/*dailyCalendarData*/t[12].dailyDay)&&A(e,"dailyday",i),/*calendarCollections*/2&a&&o!==(o=/*dailyCalendarData*/t[12].dailyDescription)&&A(e,"dailydescription",o),/*calendarCollections*/2&a&&s!==(s=/*dailyCalendarData*/t[12].dailyButtonTitle)&&A(e,"dailybuttontitle",s),/*lang*/1&a&&A(e,"lang",/*lang*/t[0])},d(t){t&&b(e)}}}
|
|
713
|
+
// (80:8) {#if calendarModalOpened == true}
|
|
714
|
+
function ai(t){let e,n,r,i,o,s,a,l;return{c(){e=E("casino-modal"),n=E("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])},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 li(e){let n;function r(t,e){/*hasErrors*/
|
|
715
|
+
return t[4]?oi:/*isLoading*/t[3]?ii:/*calendarCollections*/t[1]?.length?ri: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 ci(t,e,n){let r,{cmsendpoint:i=""}=e,{lang:o="en"}=e,s=0,a=!0,l=!1,c=!1,u=window.navigator.userAgent,h=!1;const d=()=>{fetch(`${i}/${o}/daily-calendar/`).then((t=>t.json())).then((t=>{n(1,r=t)})).catch((t=>{console.log(t),n(4,l=!0)})).finally((()=>{n(3,a=!1)}))},p=t=>{var e;t.data&&"OpenCalendar"==t.data.type&&(n(2,s=t.data.index),n(6,h=!0),window.postMessage({type:"OpenCalendarModal",selectedIndex:s},window.location.href),window.postMessage({type:"DailyEventsData",data:null===(e=r[s])||void 0===e?void 0:e.dailyEvents})),t.data&&"ModalClosed"==t.data.type&&n(6,h=!1)};return k((()=>(window.addEventListener("message",p,!1),Nr(u)&&n(5,c=!0),()=>{window.removeEventListener("message",p)}))),t.$$set=t=>{"cmsendpoint"in t&&n(7,i=t.cmsendpoint),"lang"in t&&n(0,o=t.lang)},t.$$.update=()=>{/*cmsendpoint, lang*/129&t.$$.dirty&&i&&o&&d()},[o,r,s,a,l,c,h,i]}!customElements.get("casino-calendar-daily-item")&&customElements.define("casino-calendar-daily-item",class extends at{constructor(t){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:scroll;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:linear-gradient(#e2e2e2, #b5b5b5);border-radius:4px 4px 0 0;border-bottom:3px solid #888;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 #fff;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:#fff;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:#fff;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:72px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:80%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;font-size:12px;padding:10px 6px;border-radius:5px;border:none;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);cursor:pointer}</style>',st(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},ei,ti,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 ui extends at{constructor(t){super(),this.shadowRoot.innerHTML="<style>.CasinoCalendarItem{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:flex-start;text-align:left;gap:10px}.Mobile{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}</style>",st(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},ci,li,s,{cmsendpoint:7,lang:0},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["cmsendpoint","lang"]}get cmsendpoint(){return this.$$.ctx[7]}set cmsendpoint(t){this.$$set({cmsendpoint: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",ui),ui}));
|
|
714
716
|
//# sourceMappingURL=casino-calendar.js.map
|