@everymatrix/casino-search 1.60.0 → 1.60.1
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/components/{CasinoGameThumbnail-HjTPktj_.js → CasinoGameThumbnail-CcK9uZoi.js} +1 -1
- package/components/{CasinoGameThumbnail-DyZ-T8TY.cjs → CasinoGameThumbnail-Clolxh6r.cjs} +1 -1
- package/components/{CasinoGameThumbnail-DMxybz7n.js → CasinoGameThumbnail-mPVvfhEl.js} +1 -1
- package/components/{CasinoSearch-D32v1ue2.cjs → CasinoSearch-Bl-_REM9.cjs} +1 -1
- package/components/{CasinoSearch-Hl6jRPAD.js → CasinoSearch-DgZ6w71h.js} +2 -2
- package/components/{CasinoSearch-B98wL-kk.js → CasinoSearch-Dqo4NtMn.js} +2 -2
- package/es2015/casino-search.cjs +1 -1
- package/es2015/casino-search.js +1 -1
- package/esnext/casino-search.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-BLGDaRxR.js +519 -0
- package/stencil/index-b2193545-CgYO4hhs.cjs +1 -0
- package/stencil/index-b2193545-dQymAF3M.js +503 -0
- package/stencil/{ui-skeleton-C5gPr5Xv.js → ui-skeleton-BCx6m_uC.js} +4 -4
- package/stencil/ui-skeleton-BtNRiNfn.cjs +1 -0
- package/stencil/{ui-skeleton-M7HNQCk1.js → ui-skeleton-DypM319u.js} +8 -8
- package/stencil/ui-skeleton-ea659b95-Bo7WD0ao.js +152 -0
- package/stencil/ui-skeleton-ea659b95-Dc45mVmr.cjs +73 -0
- package/stencil/ui-skeleton-ea659b95-DyTVU8Ak.js +152 -0
- package/stencil/index-ae04a8b1-DPYODDdm.cjs +0 -1
- package/stencil/index-ae04a8b1-DRAR7dln.js +0 -532
- package/stencil/index-ae04a8b1-eSktas_K.js +0 -516
- package/stencil/ui-skeleton-C1buDKbo.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-BFJMszWG.js +0 -122
- package/stencil/ui-skeleton-a642cced-DO34s50a.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-p8tGooXk.js +0 -122
|
@@ -27,7 +27,7 @@ var hn = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(a, s);
|
|
28
28
|
o((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-skeleton-
|
|
30
|
+
import "../stencil/ui-skeleton-DypM319u.js";
|
|
31
31
|
function he() {
|
|
32
32
|
}
|
|
33
33
|
function Ma(e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ao=Object.defineProperty,Ho=Object.defineProperties;var Bo=Object.getOwnPropertyDescriptors;var Ni=Object.getOwnPropertySymbols;var Yo=Object.prototype.hasOwnProperty,Uo=Object.prototype.propertyIsEnumerable;var fn=(e,t,r)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ri=(e,t)=>{for(var r in t||(t={}))Yo.call(t,r)&&fn(e,r,t[r]);if(Ni)for(var r of Ni(t))Uo.call(t,r)&&fn(e,r,t[r]);return e},Ai=(e,t)=>Ho(e,Bo(t));var ie=(e,t,r)=>(fn(e,typeof t!="symbol"?t+"":t,r),r);var cn=(e,t,r)=>new Promise((n,i)=>{var a=l=>{try{o(r.next(l))}catch(u){i(u)}},s=l=>{try{o(r.throw(l))}catch(u){i(u)}},o=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(e,t)).next())});require("../stencil/ui-skeleton-C1buDKbo.cjs");function se(){}function Ga(e){return e()}function Hi(){return Object.create(null)}function Gt(e){e.forEach(Ga)}function Dr(e){return typeof e=="function"}function Xn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let hr;function Bi(e,t){return e===t?!0:(hr||(hr=document.createElement("a")),hr.href=t,e===hr.href)}function Wo(e){return Object.keys(e).length===0}function Da(e,...t){if(e==null){for(const n of t)n(void 0);return se}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Ia(e,t,r){e.$$.on_destroy.push(Da(t,r))}function jo(e){return e&&Dr(e.destroy)?e.destroy:se}function x(e,t){e.appendChild(t)}function Ca(e,t,r){const n=Vo(e);if(!n.getElementById(t)){const i=F("style");i.id=t,i.textContent=r,$o(n,i)}}function Vo(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function $o(e,t){return x(e.head||e,t),t.sheet}function j(e,t,r){e.insertBefore(t,r||null)}function H(e){e.parentNode&&e.parentNode.removeChild(e)}function Jn(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function F(e){return document.createElement(e)}function Wt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ye(e){return document.createTextNode(e)}function Z(){return ye(" ")}function Dt(){return ye("")}function Ir(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function S(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function pr(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:S(e,t,r)}function zo(e){return Array.from(e.childNodes)}function Pe(e,t){t=""+t,e.data!==t&&(e.data=t)}function Zo(e,t){e.value=t==null?"":t}function Yi(e,t,r){e.classList.toggle(t,!!r)}class $e{constructor(t=!1){ie(this,"is_svg",!1);ie(this,"e");ie(this,"n");ie(this,"t");ie(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,r,n=null){this.e||(this.is_svg?this.e=Wt(r.nodeName):this.e=F(r.nodeType===11?"TEMPLATE":r.nodeName),this.t=r.tagName!=="TEMPLATE"?r:r.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let r=0;r<this.n.length;r+=1)j(this.t,this.n[r],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(H)}}function Xo(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let zt;function jt(e){zt=e}function Jo(){if(!zt)throw new Error("Function called outside component initialization");return zt}function Pa(e){Jo().$$.on_mount.push(e)}const bt=[],vt=[];let wt=[];const Ui=[],Fa=Promise.resolve();let On=!1;function Na(){On||(On=!0,Fa.then(D))}function Ht(){return Na(),Fa}function Tn(e){wt.push(e)}const dn=new Set;let mt=0;function D(){if(mt!==0)return;const e=zt;do{try{for(;mt<bt.length;){const t=bt[mt];mt++,jt(t),qo(t.$$)}}catch(t){throw bt.length=0,mt=0,t}for(jt(null),bt.length=0,mt=0;vt.length;)vt.pop()();for(let t=0;t<wt.length;t+=1){const r=wt[t];dn.has(r)||(dn.add(r),r())}wt.length=0}while(bt.length);for(;Ui.length;)Ui.pop()();On=!1,dn.clear(),jt(e)}function qo(e){if(e.fragment!==null){e.update(),Gt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Tn)}}function Qo(e){const t=[],r=[];wt.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),wt=t}const Ko=new Set;function el(e,t){e&&e.i&&(Ko.delete(e),e.i(t))}function Zt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function tl(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Tn(()=>{const a=e.$$.on_mount.map(Ga).filter(Dr);e.$$.on_destroy?e.$$.on_destroy.push(...a):Gt(a),e.$$.on_mount=[]}),i.forEach(Tn)}function rl(e,t){const r=e.$$;r.fragment!==null&&(Qo(r.after_update),Gt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function nl(e,t){e.$$.dirty[0]===-1&&(bt.push(e),Na(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ra(e,t,r,n,i,a,s=null,o=[-1]){const l=zt;jt(e);const u=e.$$={fragment:null,ctx:[],props:a,update:se,not_equal:i,bound:Hi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Hi(),dirty:o,skip_bound:!1,root:t.target||l.$$.root};s&&s(u.root);let h=!1;if(u.ctx=r?r(e,t.props||{},(c,d,...g)=>{const E=g.length?g[0]:d;return u.ctx&&i(u.ctx[c],u.ctx[c]=E)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](E),h&&nl(e,c)),d}):[],u.update(),h=!0,Gt(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const c=zo(t.target);u.fragment&&u.fragment.l(c),c.forEach(H)}else u.fragment&&u.fragment.c();t.intro&&el(e.$$.fragment),tl(e,t.target,t.anchor),D()}jt(l)}let Aa;typeof HTMLElement=="function"&&(Aa=class extends HTMLElement{constructor(t,r,n){super();ie(this,"$$ctor");ie(this,"$$s");ie(this,"$$c");ie(this,"$$cn",!1);ie(this,"$$d",{});ie(this,"$$r",!1);ie(this,"$$p_d",{});ie(this,"$$l",{});ie(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return cn(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(a){return()=>{let s;return{c:function(){s=F("slot"),a!=="default"&&S(s,"name",a)},m:function(u,h){j(u,s,h)},d:function(u){u&&H(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Xo(this);for(const a of this.$$s)a in n&&(r[a]=[t(a)]);for(const a of this.attributes){const s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=gr(s,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ai(Ri({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const a in this.$$p_d)if(this.$$d[a]=this.$$c.$$.ctx[this.$$c.$$.props[a]],this.$$p_d[a].reflect){const s=gr(a,this.$$d[a],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const a in this.$$l)for(const s of this.$$l[a]){const o=this.$$c.$on(a,s);this.$$l_u.set(s,o)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=gr(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function gr(e,t,r,n){var a;const i=(a=r[e])==null?void 0:a.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ha(e,t,r,n,i,a){let s=class extends Aa{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(s.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){var u;l=gr(o,l,t),this.$$d[o]=l,(u=this.$$c)==null||u.$set({[o]:l})}})}),n.forEach(o=>{Object.defineProperty(s.prototype,o,{get(){var l;return(l=this.$$c)==null?void 0:l[o]}})}),e.element=s,s}class Ba{constructor(){ie(this,"$$");ie(this,"$$set")}$destroy(){rl(this,1),this.$destroy=se}$on(t,r){if(!Dr(r))return se;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Wo(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const il="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(il);const pt=[];function al(e,t){return{subscribe:Cr(e,t).subscribe}}function Cr(e,t=se){let r;const n=new Set;function i(o){if(Xn(e,o)&&(e=o,r)){const l=!pt.length;for(const u of n)u[1](),pt.push(u,e);if(l){for(let u=0;u<pt.length;u+=2)pt[u][0](pt[u+1]);pt.length=0}}}function a(o){i(o(e))}function s(o,l=se){const u=[o,l];return n.add(u),n.size===1&&(r=t(i,a)||se),o(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:a,subscribe:s}}function It(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=t.length<2;return al(r,(s,o)=>{let l=!1;const u=[];let h=0,c=se;const d=()=>{if(h)return;c();const E=t(n?u[0]:u,s,o);a?s(E):c=Dr(E)?E:se},g=i.map((E,_)=>Da(E,V=>{u[_]=V,h&=~(1<<_),l&&d()},()=>{h|=1<<_}));return l=!0,d(),function(){Gt(g),c(),l=!1}})}function sl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ol=function(t){return ll(t)&&!ul(t)};function ll(e){return!!e&&typeof e=="object"}function ul(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||cl(e)}var hl=typeof Symbol=="function"&&Symbol.for,fl=hl?Symbol.for("react.element"):60103;function cl(e){return e.$$typeof===fl}function dl(e){return Array.isArray(e)?[]:{}}function Xt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Tt(dl(e),e,t):e}function ml(e,t,r){return e.concat(t).map(function(n){return Xt(n,r)})}function pl(e,t){if(!t.customMerge)return Tt;var r=t.customMerge(e);return typeof r=="function"?r:Tt}function gl(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Wi(e){return Object.keys(e).concat(gl(e))}function Ya(e,t){try{return t in e}catch(r){return!1}}function bl(e,t){return Ya(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function yl(e,t,r){var n={};return r.isMergeableObject(e)&&Wi(e).forEach(function(i){n[i]=Xt(e[i],r)}),Wi(t).forEach(function(i){bl(e,i)||(Ya(e,i)&&r.isMergeableObject(t[i])?n[i]=pl(i,r)(e[i],t[i],r):n[i]=Xt(t[i],r))}),n}function Tt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ml,r.isMergeableObject=r.isMergeableObject||ol,r.cloneUnlessOtherwiseSpecified=Xt;var n=Array.isArray(t),i=Array.isArray(e),a=n===i;return a?n?r.arrayMerge(e,t,r):yl(e,t,r):Xt(t,r)}Tt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Tt(n,i,r)},{})};var _l=Tt,vl=_l;const wl=sl(vl);/*! *****************************************************************************
|
|
1
|
+
"use strict";var Ao=Object.defineProperty,Ho=Object.defineProperties;var Bo=Object.getOwnPropertyDescriptors;var Ni=Object.getOwnPropertySymbols;var Yo=Object.prototype.hasOwnProperty,Uo=Object.prototype.propertyIsEnumerable;var fn=(e,t,r)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ri=(e,t)=>{for(var r in t||(t={}))Yo.call(t,r)&&fn(e,r,t[r]);if(Ni)for(var r of Ni(t))Uo.call(t,r)&&fn(e,r,t[r]);return e},Ai=(e,t)=>Ho(e,Bo(t));var ie=(e,t,r)=>(fn(e,typeof t!="symbol"?t+"":t,r),r);var cn=(e,t,r)=>new Promise((n,i)=>{var a=l=>{try{o(r.next(l))}catch(u){i(u)}},s=l=>{try{o(r.throw(l))}catch(u){i(u)}},o=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(e,t)).next())});require("../stencil/ui-skeleton-BtNRiNfn.cjs");function se(){}function Ga(e){return e()}function Hi(){return Object.create(null)}function Gt(e){e.forEach(Ga)}function Dr(e){return typeof e=="function"}function Xn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let hr;function Bi(e,t){return e===t?!0:(hr||(hr=document.createElement("a")),hr.href=t,e===hr.href)}function Wo(e){return Object.keys(e).length===0}function Da(e,...t){if(e==null){for(const n of t)n(void 0);return se}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Ia(e,t,r){e.$$.on_destroy.push(Da(t,r))}function jo(e){return e&&Dr(e.destroy)?e.destroy:se}function x(e,t){e.appendChild(t)}function Ca(e,t,r){const n=Vo(e);if(!n.getElementById(t)){const i=F("style");i.id=t,i.textContent=r,$o(n,i)}}function Vo(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function $o(e,t){return x(e.head||e,t),t.sheet}function j(e,t,r){e.insertBefore(t,r||null)}function H(e){e.parentNode&&e.parentNode.removeChild(e)}function Jn(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function F(e){return document.createElement(e)}function Wt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ye(e){return document.createTextNode(e)}function Z(){return ye(" ")}function Dt(){return ye("")}function Ir(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function S(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function pr(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:S(e,t,r)}function zo(e){return Array.from(e.childNodes)}function Pe(e,t){t=""+t,e.data!==t&&(e.data=t)}function Zo(e,t){e.value=t==null?"":t}function Yi(e,t,r){e.classList.toggle(t,!!r)}class $e{constructor(t=!1){ie(this,"is_svg",!1);ie(this,"e");ie(this,"n");ie(this,"t");ie(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,r,n=null){this.e||(this.is_svg?this.e=Wt(r.nodeName):this.e=F(r.nodeType===11?"TEMPLATE":r.nodeName),this.t=r.tagName!=="TEMPLATE"?r:r.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let r=0;r<this.n.length;r+=1)j(this.t,this.n[r],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(H)}}function Xo(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let zt;function jt(e){zt=e}function Jo(){if(!zt)throw new Error("Function called outside component initialization");return zt}function Pa(e){Jo().$$.on_mount.push(e)}const bt=[],vt=[];let wt=[];const Ui=[],Fa=Promise.resolve();let On=!1;function Na(){On||(On=!0,Fa.then(D))}function Ht(){return Na(),Fa}function Tn(e){wt.push(e)}const dn=new Set;let mt=0;function D(){if(mt!==0)return;const e=zt;do{try{for(;mt<bt.length;){const t=bt[mt];mt++,jt(t),qo(t.$$)}}catch(t){throw bt.length=0,mt=0,t}for(jt(null),bt.length=0,mt=0;vt.length;)vt.pop()();for(let t=0;t<wt.length;t+=1){const r=wt[t];dn.has(r)||(dn.add(r),r())}wt.length=0}while(bt.length);for(;Ui.length;)Ui.pop()();On=!1,dn.clear(),jt(e)}function qo(e){if(e.fragment!==null){e.update(),Gt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Tn)}}function Qo(e){const t=[],r=[];wt.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),wt=t}const Ko=new Set;function el(e,t){e&&e.i&&(Ko.delete(e),e.i(t))}function Zt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function tl(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Tn(()=>{const a=e.$$.on_mount.map(Ga).filter(Dr);e.$$.on_destroy?e.$$.on_destroy.push(...a):Gt(a),e.$$.on_mount=[]}),i.forEach(Tn)}function rl(e,t){const r=e.$$;r.fragment!==null&&(Qo(r.after_update),Gt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function nl(e,t){e.$$.dirty[0]===-1&&(bt.push(e),Na(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ra(e,t,r,n,i,a,s=null,o=[-1]){const l=zt;jt(e);const u=e.$$={fragment:null,ctx:[],props:a,update:se,not_equal:i,bound:Hi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Hi(),dirty:o,skip_bound:!1,root:t.target||l.$$.root};s&&s(u.root);let h=!1;if(u.ctx=r?r(e,t.props||{},(c,d,...g)=>{const E=g.length?g[0]:d;return u.ctx&&i(u.ctx[c],u.ctx[c]=E)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](E),h&&nl(e,c)),d}):[],u.update(),h=!0,Gt(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const c=zo(t.target);u.fragment&&u.fragment.l(c),c.forEach(H)}else u.fragment&&u.fragment.c();t.intro&&el(e.$$.fragment),tl(e,t.target,t.anchor),D()}jt(l)}let Aa;typeof HTMLElement=="function"&&(Aa=class extends HTMLElement{constructor(t,r,n){super();ie(this,"$$ctor");ie(this,"$$s");ie(this,"$$c");ie(this,"$$cn",!1);ie(this,"$$d",{});ie(this,"$$r",!1);ie(this,"$$p_d",{});ie(this,"$$l",{});ie(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return cn(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(a){return()=>{let s;return{c:function(){s=F("slot"),a!=="default"&&S(s,"name",a)},m:function(u,h){j(u,s,h)},d:function(u){u&&H(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Xo(this);for(const a of this.$$s)a in n&&(r[a]=[t(a)]);for(const a of this.attributes){const s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=gr(s,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ai(Ri({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const a in this.$$p_d)if(this.$$d[a]=this.$$c.$$.ctx[this.$$c.$$.props[a]],this.$$p_d[a].reflect){const s=gr(a,this.$$d[a],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const a in this.$$l)for(const s of this.$$l[a]){const o=this.$$c.$on(a,s);this.$$l_u.set(s,o)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=gr(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function gr(e,t,r,n){var a;const i=(a=r[e])==null?void 0:a.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ha(e,t,r,n,i,a){let s=class extends Aa{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(s.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){var u;l=gr(o,l,t),this.$$d[o]=l,(u=this.$$c)==null||u.$set({[o]:l})}})}),n.forEach(o=>{Object.defineProperty(s.prototype,o,{get(){var l;return(l=this.$$c)==null?void 0:l[o]}})}),e.element=s,s}class Ba{constructor(){ie(this,"$$");ie(this,"$$set")}$destroy(){rl(this,1),this.$destroy=se}$on(t,r){if(!Dr(r))return se;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Wo(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const il="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(il);const pt=[];function al(e,t){return{subscribe:Cr(e,t).subscribe}}function Cr(e,t=se){let r;const n=new Set;function i(o){if(Xn(e,o)&&(e=o,r)){const l=!pt.length;for(const u of n)u[1](),pt.push(u,e);if(l){for(let u=0;u<pt.length;u+=2)pt[u][0](pt[u+1]);pt.length=0}}}function a(o){i(o(e))}function s(o,l=se){const u=[o,l];return n.add(u),n.size===1&&(r=t(i,a)||se),o(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:a,subscribe:s}}function It(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=t.length<2;return al(r,(s,o)=>{let l=!1;const u=[];let h=0,c=se;const d=()=>{if(h)return;c();const E=t(n?u[0]:u,s,o);a?s(E):c=Dr(E)?E:se},g=i.map((E,_)=>Da(E,V=>{u[_]=V,h&=~(1<<_),l&&d()},()=>{h|=1<<_}));return l=!0,d(),function(){Gt(g),c(),l=!1}})}function sl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ol=function(t){return ll(t)&&!ul(t)};function ll(e){return!!e&&typeof e=="object"}function ul(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||cl(e)}var hl=typeof Symbol=="function"&&Symbol.for,fl=hl?Symbol.for("react.element"):60103;function cl(e){return e.$$typeof===fl}function dl(e){return Array.isArray(e)?[]:{}}function Xt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Tt(dl(e),e,t):e}function ml(e,t,r){return e.concat(t).map(function(n){return Xt(n,r)})}function pl(e,t){if(!t.customMerge)return Tt;var r=t.customMerge(e);return typeof r=="function"?r:Tt}function gl(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Wi(e){return Object.keys(e).concat(gl(e))}function Ya(e,t){try{return t in e}catch(r){return!1}}function bl(e,t){return Ya(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function yl(e,t,r){var n={};return r.isMergeableObject(e)&&Wi(e).forEach(function(i){n[i]=Xt(e[i],r)}),Wi(t).forEach(function(i){bl(e,i)||(Ya(e,i)&&r.isMergeableObject(t[i])?n[i]=pl(i,r)(e[i],t[i],r):n[i]=Xt(t[i],r))}),n}function Tt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ml,r.isMergeableObject=r.isMergeableObject||ol,r.cloneUnlessOtherwiseSpecified=Xt;var n=Array.isArray(t),i=Array.isArray(e),a=n===i;return a?n?r.arrayMerge(e,t,r):yl(e,t,r):Xt(t,r)}Tt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Tt(n,i,r)},{})};var _l=Tt,vl=_l;const wl=sl(vl);/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnail-DyZ-T8TY.cjs");function X(n,t){e.addMessages(n,t)}function ke(n){e.$locale.set(n)}const K={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Son arama",loading:"Yükleniyor, lütfen bekleyin...",searchResult:"Arama sonucu",cancel:"İptal",notFound:"Oyun bulunamadı!",notFoundText:"Oynamaya başlamak için lütfen oyunun doğru adını yazın.",noRecentSearches:"Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}};if(typeof window!="undefined"){let n=function(t){return function(...a){try{return t.apply(this,a)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnail-DyZ-T8TY.cjs")).then(t=>t.CasinoGameThumbnail_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}function Ce(n){e.append_styles(n,"svelte-8vixmz","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:30px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function Q(n,t,a){const r=n.slice();return r[53]=t[a],r}function $(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Re(n){let t,a,r,s;function i(h,f){if(h[17]==!0&&h[12].length<2)return Te;if(h[15].length!=0)return Le}let l=i(n),c=l&&l(n),u=n[13]===!1&&ne(n),d=n[12].length>=2&&n[15].length==0&&se(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),d&&d.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(h,f){c&&c.m(h,f),e.insert(h,t,f),e.insert(h,a,f),u&&u.m(a,null),e.append(a,r),d&&d.m(a,null)},p(h,f){l===(l=i(h))&&c?c.p(h,f):(c&&c.d(1),c=l&&l(h),c&&(c.c(),c.m(t.parentNode,t))),h[13]===!1?u?u.p(h,f):(u=ne(h),u.c(),u.m(a,r)):u&&(u.d(1),u=null),h[12].length>=2&&h[15].length==0?d?d.p(h,f):(d=se(h),d.c(),d.m(a,null)):d&&(d.d(1),d=null),f[0]&131072&&s!==(s="SearchResultsContainer "+(h[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(h){h&&(e.detach(t),e.detach(a)),c&&c.d(h),u&&u.d(),d&&d.d()}}}function Fe(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Le(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a,r=n[15].length!==0&&ee(n),s=n[15].length==0&&te(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=ee(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=te(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function ee(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function te(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[10]==="true"&&ae();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(u,d){e.insert(u,t,d),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,d){u[10]==="true"?c||(c=ae(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),d[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),d[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ae(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function ne(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=re(Q(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35162623){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=Q(s,a,l);r[l]?r[l].p(c,i):(r[l]=re(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function re(n){let t,a,r,s,i,l,c,u,d,h,f,S;return{c(){var m;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[8]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((m=n[53].advancedTags)==null?void 0:m.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",d=n[53].id),e.set_custom_element_data(t,"showgamename",n[6]),e.set_custom_element_data(t,"gamefunmode",h=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[4]),e.set_custom_element_data(t,"mbsource",n[11]),e.set_custom_element_data(t,"integratedgameframemobile",n[5]),e.set_custom_element_data(t,"clientstyling",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[3]),e.set_custom_element_data(t,"gamepagemodalurl",n[7])},m(m,g){e.insert(m,t,g)},p(m,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",m[0]),g[0]&524288&&e.set_custom_element_data(t,"session",m[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",m[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",m[8]),g[0]&2&&e.set_custom_element_data(t,"lang",m[1]),g[0]&32768&&a!==(a=m[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=m[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=m[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=m[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=m[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((T=m[53].advancedTags)==null?void 0:T.length)>0&&m[25](m[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=m[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&d!==(d=m[53].id)&&e.set_custom_element_data(t,"gameid",d),g[0]&64&&e.set_custom_element_data(t,"showgamename",m[6]),g[0]&32768&&h!==(h=m[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",h),g[0]&32768&&f!==(f=m[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&32768&&S!==(S=m[53].details?m[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",m[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",m[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",m[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",m[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",m[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",m[7])},d(m){m&&e.detach(t)}}}function se(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",d,h,f=n[10]==="true"&&oe();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),d=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",h="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(S,m){e.insert(S,t,m),f&&f.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,d)},p(S,m){S[10]==="true"?f||(f=oe(),f.c(),f.m(t,a)):f&&(f.d(1),f=null),m[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),m[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(d,u),m[0]&1024&&h!==(h="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",h)},d(S){S&&e.detach(t),f&&f.d()}}}function oe(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function Ee(n){let t,a,r,s,i,l,c,u,d,h,f,S,m,g,T,E,G,P,I,N,b=n[9]==="true"&&$(n);function F(_,C){return _[18]?Fe:Re}let z=F(n),v=z(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),d=e.element("span"),h=e.svg_element("svg"),f=e.svg_element("path"),m=e.space(),b&&b.c(),T=e.space(),E=e.element("div"),P=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",je),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(h,"width","11"),e.attr(h,"height","11"),e.attr(h,"fill","none"),e.attr(h,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"class",S="SearchClearButton "+(n[9]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(E,"class",G=n[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,C){e.insert(_,t,C),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,d),e.append(d,h),e.append(h,f),e.append(r,m),b&&b.m(r,null),e.append(t,T),e.append(t,E),e.append(t,P),v.m(t,null),n[37](t),I||(N=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(d,"click",n[35]),e.listen(E,"click",n[24])],I=!0)},p(_,C){C[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),C[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),C[0]&4608&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(d,"class",S),_[9]==="true"?b?b.p(_,C):(b=$(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),C[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),C[0]&512&&G!==(G=_[9]!="true"?"OverlayCancel":"")&&e.attr(E,"class",G),z===(z=F(_))&&v?v.p(_,C):(v.d(1),v=z(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),b&&b.d(),v.d(),n[37](null),I=!1,e.run_all(N)}}}let je=50;function Ge(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:E=""}=t,{cancelbutton:G="true"}=t,{notfoundicon:P="false"}=t,{mbsource:I}=t,N=window.navigator.userAgent,b=[],F=[],z={},v="",_,C=!0,D=!1,L=!1,j,B=!1,A,O,W=[];const ie=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{X(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(K).forEach(o=>{X(o,K[o])});const U=o=>{o.data&&o.data.type=="SearchedItemClicked"&&ge(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,A=o.data.session),a(20,O=o.data.userid),a(32,B=!0)),o.data.type=="CategoryChange"&&q()},V=()=>{if(a(13,C=!1),a(17,D=!0),s&&i&&u&&v.length<2){a(15,b=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let R=new URL(`${s}/v1/casino/games/${p[y]}`);R.searchParams.append("language",u),R.searchParams.append("datasource",i),R.searchParams.append("platform",e.getDevice(N)),w.push(he(R,p[y]))}Promise.all(w).then(R=>{R=R.filter(function(x){return!!x}),a(15,b=R.map(x=>(x.isFavorite=J(x.id),x))),b.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(R=>{M("searchError","SearchWidget")})}}Y(D),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},ce=()=>{G!="true"&&q()},ue=o=>new Promise((p,w)=>{a(18,L=!0),fetch(o.href).then(y=>y.json()).then(y=>{a(18,L=!1),p(y)}).catch(y=>{a(18,L=!1),console.error(y),w(y)})}),he=(o,p)=>new Promise((w,y)=>{a(18,L=!0),p&&Object.keys(z).indexOf(p)>=0?(a(18,L=!1),w(z[p])):fetch(o).then(k=>k.json()).then(k=>{a(18,L=!1),k.error||(z[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{a(18,L=!1),console.error(k),y(k)})}),me=()=>{const o=new URL(`${s}/v1/player/${O}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":A}};fetch(o.href,p).then(w=>w.json()).then(w=>{a(18,L=!1),W=w.items.map(y=>y.id)})},de=()=>{a(32,B=!0),a(19,A=l),a(20,O=c)},J=o=>W.findIndex(p=>p==o)!==-1,fe=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return o.forEach((R,x)=>{const ye=new Date(R.schedules[0].startTime),H=new Date(R.schedules[0].endTime);e.hooks(H).diff(k)<w&&(w=e.hooks(H).diff(k),y=x),e.hooks(k).isAfter(ye)&&e.hooks(k).isBefore(H)&&(p=o[y].name)}),p},ge=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},q=()=>{a(12,v=""),a(13,C=!0),a(18,L=!1),a(15,b=[]),a(17,D=!1),Y(D)},Z=()=>{a(12,v=""),_.focus()},Y=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},pe=()=>{ke(u)};e.onMount(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)}));function _e(){v=this.value,a(12,v)}function Se(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const be=()=>Z(),we=()=>q();function ve(o){e.binding_callbacks[o?"unshift":"push"](()=>{j=o,a(14,j)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"clientstyling"in o&&a(2,d=o.clientstyling),"clientstylingurl"in o&&a(3,h=o.clientstylingurl),"integratedgameframedesktop"in o&&a(4,f=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(5,S=o.integratedgameframemobile),"showgamename"in o&&a(6,m=o.showgamename),"gamepagemodalurl"in o&&a(7,g=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(8,E=o.showfavorites),"cancelbutton"in o&&a(9,G=o.cancelbutton),"notfoundicon"in o&&a(10,P=o.notfoundicon),"mbsource"in o&&a(11,I=o.mbsource)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(N)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),ue(o).then(p=>{e.dispatchCustomEvent("game_search",{searchValue:v}),a(15,b=p.items.map(w=>(w.isFavorite=J(w.id),w)))})}else C||V();n.$$.dirty[0]&2&&u&&pe(),n.$$.dirty[1]&1&&T&&ie(),n.$$.dirty[0]&1610612736&&l&&c&&de(),n.$$.dirty[0]&256|n.$$.dirty[1]&2&&E&&B&&me(),n.$$.dirty[0]&16388&&d&&j&&e.setClientStyling(j,d),n.$$.dirty[0]&16392&&h&&j&&e.setClientStylingURL(j,h),n.$$.dirty[0]&18432&&j&&e.setStreamStyling(j,`${I}.Style`)},[s,u,d,h,f,S,m,g,E,G,P,I,v,C,j,b,_,D,L,A,O,r,N,V,ce,fe,q,Z,i,l,c,T,B,_e,Se,be,we,ve]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ge,Ee,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:31,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ce,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(le,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=le;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnail-Clolxh6r.cjs");function X(n,t){e.addMessages(n,t)}function ke(n){e.$locale.set(n)}const K={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Son arama",loading:"Yükleniyor, lütfen bekleyin...",searchResult:"Arama sonucu",cancel:"İptal",notFound:"Oyun bulunamadı!",notFoundText:"Oynamaya başlamak için lütfen oyunun doğru adını yazın.",noRecentSearches:"Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}};if(typeof window!="undefined"){let n=function(t){return function(...a){try{return t.apply(this,a)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnail-Clolxh6r.cjs")).then(t=>t.CasinoGameThumbnail_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}function Ce(n){e.append_styles(n,"svelte-8vixmz","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:30px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function Q(n,t,a){const r=n.slice();return r[53]=t[a],r}function $(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Re(n){let t,a,r,s;function i(h,f){if(h[17]==!0&&h[12].length<2)return Te;if(h[15].length!=0)return Le}let l=i(n),c=l&&l(n),u=n[13]===!1&&ne(n),d=n[12].length>=2&&n[15].length==0&&se(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),d&&d.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(h,f){c&&c.m(h,f),e.insert(h,t,f),e.insert(h,a,f),u&&u.m(a,null),e.append(a,r),d&&d.m(a,null)},p(h,f){l===(l=i(h))&&c?c.p(h,f):(c&&c.d(1),c=l&&l(h),c&&(c.c(),c.m(t.parentNode,t))),h[13]===!1?u?u.p(h,f):(u=ne(h),u.c(),u.m(a,r)):u&&(u.d(1),u=null),h[12].length>=2&&h[15].length==0?d?d.p(h,f):(d=se(h),d.c(),d.m(a,null)):d&&(d.d(1),d=null),f[0]&131072&&s!==(s="SearchResultsContainer "+(h[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(h){h&&(e.detach(t),e.detach(a)),c&&c.d(h),u&&u.d(),d&&d.d()}}}function Fe(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Le(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a,r=n[15].length!==0&&ee(n),s=n[15].length==0&&te(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=ee(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=te(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function ee(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function te(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[10]==="true"&&ae();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(u,d){e.insert(u,t,d),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,d){u[10]==="true"?c||(c=ae(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),d[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),d[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ae(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function ne(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=re(Q(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35162623){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=Q(s,a,l);r[l]?r[l].p(c,i):(r[l]=re(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function re(n){let t,a,r,s,i,l,c,u,d,h,f,S;return{c(){var m;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[8]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((m=n[53].advancedTags)==null?void 0:m.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",d=n[53].id),e.set_custom_element_data(t,"showgamename",n[6]),e.set_custom_element_data(t,"gamefunmode",h=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[4]),e.set_custom_element_data(t,"mbsource",n[11]),e.set_custom_element_data(t,"integratedgameframemobile",n[5]),e.set_custom_element_data(t,"clientstyling",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[3]),e.set_custom_element_data(t,"gamepagemodalurl",n[7])},m(m,g){e.insert(m,t,g)},p(m,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",m[0]),g[0]&524288&&e.set_custom_element_data(t,"session",m[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",m[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",m[8]),g[0]&2&&e.set_custom_element_data(t,"lang",m[1]),g[0]&32768&&a!==(a=m[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=m[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=m[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=m[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=m[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((T=m[53].advancedTags)==null?void 0:T.length)>0&&m[25](m[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=m[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&d!==(d=m[53].id)&&e.set_custom_element_data(t,"gameid",d),g[0]&64&&e.set_custom_element_data(t,"showgamename",m[6]),g[0]&32768&&h!==(h=m[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",h),g[0]&32768&&f!==(f=m[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&32768&&S!==(S=m[53].details?m[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",m[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",m[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",m[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",m[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",m[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",m[7])},d(m){m&&e.detach(t)}}}function se(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",d,h,f=n[10]==="true"&&oe();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),d=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",h="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(S,m){e.insert(S,t,m),f&&f.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,d)},p(S,m){S[10]==="true"?f||(f=oe(),f.c(),f.m(t,a)):f&&(f.d(1),f=null),m[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),m[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(d,u),m[0]&1024&&h!==(h="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",h)},d(S){S&&e.detach(t),f&&f.d()}}}function oe(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function Ee(n){let t,a,r,s,i,l,c,u,d,h,f,S,m,g,T,E,G,P,I,N,b=n[9]==="true"&&$(n);function F(_,C){return _[18]?Fe:Re}let z=F(n),v=z(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),d=e.element("span"),h=e.svg_element("svg"),f=e.svg_element("path"),m=e.space(),b&&b.c(),T=e.space(),E=e.element("div"),P=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",je),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(h,"width","11"),e.attr(h,"height","11"),e.attr(h,"fill","none"),e.attr(h,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"class",S="SearchClearButton "+(n[9]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(E,"class",G=n[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,C){e.insert(_,t,C),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,d),e.append(d,h),e.append(h,f),e.append(r,m),b&&b.m(r,null),e.append(t,T),e.append(t,E),e.append(t,P),v.m(t,null),n[37](t),I||(N=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(d,"click",n[35]),e.listen(E,"click",n[24])],I=!0)},p(_,C){C[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),C[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),C[0]&4608&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(d,"class",S),_[9]==="true"?b?b.p(_,C):(b=$(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),C[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),C[0]&512&&G!==(G=_[9]!="true"?"OverlayCancel":"")&&e.attr(E,"class",G),z===(z=F(_))&&v?v.p(_,C):(v.d(1),v=z(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),b&&b.d(),v.d(),n[37](null),I=!1,e.run_all(N)}}}let je=50;function Ge(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:E=""}=t,{cancelbutton:G="true"}=t,{notfoundicon:P="false"}=t,{mbsource:I}=t,N=window.navigator.userAgent,b=[],F=[],z={},v="",_,C=!0,D=!1,L=!1,j,B=!1,A,O,W=[];const ie=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{X(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(K).forEach(o=>{X(o,K[o])});const U=o=>{o.data&&o.data.type=="SearchedItemClicked"&&ge(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,A=o.data.session),a(20,O=o.data.userid),a(32,B=!0)),o.data.type=="CategoryChange"&&q()},V=()=>{if(a(13,C=!1),a(17,D=!0),s&&i&&u&&v.length<2){a(15,b=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let R=new URL(`${s}/v1/casino/games/${p[y]}`);R.searchParams.append("language",u),R.searchParams.append("datasource",i),R.searchParams.append("platform",e.getDevice(N)),w.push(he(R,p[y]))}Promise.all(w).then(R=>{R=R.filter(function(x){return!!x}),a(15,b=R.map(x=>(x.isFavorite=J(x.id),x))),b.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(R=>{M("searchError","SearchWidget")})}}Y(D),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},ce=()=>{G!="true"&&q()},ue=o=>new Promise((p,w)=>{a(18,L=!0),fetch(o.href).then(y=>y.json()).then(y=>{a(18,L=!1),p(y)}).catch(y=>{a(18,L=!1),console.error(y),w(y)})}),he=(o,p)=>new Promise((w,y)=>{a(18,L=!0),p&&Object.keys(z).indexOf(p)>=0?(a(18,L=!1),w(z[p])):fetch(o).then(k=>k.json()).then(k=>{a(18,L=!1),k.error||(z[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{a(18,L=!1),console.error(k),y(k)})}),me=()=>{const o=new URL(`${s}/v1/player/${O}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":A}};fetch(o.href,p).then(w=>w.json()).then(w=>{a(18,L=!1),W=w.items.map(y=>y.id)})},de=()=>{a(32,B=!0),a(19,A=l),a(20,O=c)},J=o=>W.findIndex(p=>p==o)!==-1,fe=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return o.forEach((R,x)=>{const ye=new Date(R.schedules[0].startTime),H=new Date(R.schedules[0].endTime);e.hooks(H).diff(k)<w&&(w=e.hooks(H).diff(k),y=x),e.hooks(k).isAfter(ye)&&e.hooks(k).isBefore(H)&&(p=o[y].name)}),p},ge=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},q=()=>{a(12,v=""),a(13,C=!0),a(18,L=!1),a(15,b=[]),a(17,D=!1),Y(D)},Z=()=>{a(12,v=""),_.focus()},Y=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},pe=()=>{ke(u)};e.onMount(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)}));function _e(){v=this.value,a(12,v)}function Se(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const be=()=>Z(),we=()=>q();function ve(o){e.binding_callbacks[o?"unshift":"push"](()=>{j=o,a(14,j)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"clientstyling"in o&&a(2,d=o.clientstyling),"clientstylingurl"in o&&a(3,h=o.clientstylingurl),"integratedgameframedesktop"in o&&a(4,f=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(5,S=o.integratedgameframemobile),"showgamename"in o&&a(6,m=o.showgamename),"gamepagemodalurl"in o&&a(7,g=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(8,E=o.showfavorites),"cancelbutton"in o&&a(9,G=o.cancelbutton),"notfoundicon"in o&&a(10,P=o.notfoundicon),"mbsource"in o&&a(11,I=o.mbsource)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(N)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),ue(o).then(p=>{e.dispatchCustomEvent("game_search",{searchValue:v}),a(15,b=p.items.map(w=>(w.isFavorite=J(w.id),w)))})}else C||V();n.$$.dirty[0]&2&&u&&pe(),n.$$.dirty[1]&1&&T&&ie(),n.$$.dirty[0]&1610612736&&l&&c&&de(),n.$$.dirty[0]&256|n.$$.dirty[1]&2&&E&&B&&me(),n.$$.dirty[0]&16388&&d&&j&&e.setClientStyling(j,d),n.$$.dirty[0]&16392&&h&&j&&e.setClientStylingURL(j,h),n.$$.dirty[0]&18432&&j&&e.setStreamStyling(j,`${I}.Style`)},[s,u,d,h,f,S,m,g,E,G,P,I,v,C,j,b,_,D,L,A,O,r,N,V,ce,fe,q,Z,i,l,c,T,B,_e,Se,be,we,ve]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ge,Ee,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:31,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ce,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(le,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=le;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Ae, $ as He, S as Oe, i as qe, f as L, c as We, s as Ue, b as Ve, e as R, d as N, g as ie, h as f, j as te, k as T, l as _, m as ce, n as Z, o as ue, p as j, r as Je, q as Ze, t as Ye, u as Xe, v as Ke, w as O, x as q, y as $, z as he, A as Qe, B as $e, C as de, D as Re, E as et, F as u, G as tt } from "./CasinoGameThumbnail-
|
|
1
|
+
import { a as Ae, $ as He, S as Oe, i as qe, f as L, c as We, s as Ue, b as Ve, e as R, d as N, g as ie, h as f, j as te, k as T, l as _, m as ce, n as Z, o as ue, p as j, r as Je, q as Ze, t as Ye, u as Xe, v as Ke, w as O, x as q, y as $, z as he, A as Qe, B as $e, C as de, D as Re, E as et, F as u, G as tt } from "./CasinoGameThumbnail-CcK9uZoi.js";
|
|
2
2
|
function me(a, e) {
|
|
3
3
|
Ae(a, e);
|
|
4
4
|
}
|
|
@@ -200,7 +200,7 @@ if (typeof window != "undefined") {
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
customElements.define = a(customElements.define), import("./CasinoGameThumbnail-
|
|
203
|
+
customElements.define = a(customElements.define), import("./CasinoGameThumbnail-CcK9uZoi.js").then((e) => e.H).then(({ default: e }) => {
|
|
204
204
|
!customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Ae, $ as He, c as Oe, S as qe, i as We, s as Ue, f as L, b as Ve, e as C, d as N, g as ie, h as f, j as te, k as T, l as _, m as ce, n as Z, o as ue, p as j, r as Je, q as Ze, t as Ye, u as Xe, v as Ke, w as O, x as q, y as $, z as he, A as Qe, B as $e, C as de, D as Ce, E as et, F as u, G as tt } from "./CasinoGameThumbnail-
|
|
1
|
+
import { a as Ae, $ as He, c as Oe, S as qe, i as We, s as Ue, f as L, b as Ve, e as C, d as N, g as ie, h as f, j as te, k as T, l as _, m as ce, n as Z, o as ue, p as j, r as Je, q as Ze, t as Ye, u as Xe, v as Ke, w as O, x as q, y as $, z as he, A as Qe, B as $e, C as de, D as Ce, E as et, F as u, G as tt } from "./CasinoGameThumbnail-mPVvfhEl.js";
|
|
2
2
|
function me(a, e) {
|
|
3
3
|
Ae(a, e);
|
|
4
4
|
}
|
|
@@ -200,7 +200,7 @@ if (typeof window < "u") {
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
customElements.define = a(customElements.define), import("./CasinoGameThumbnail-
|
|
203
|
+
customElements.define = a(customElements.define), import("./CasinoGameThumbnail-mPVvfhEl.js").then((e) => e.H).then(({ default: e }) => {
|
|
204
204
|
!customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
|
|
205
205
|
});
|
|
206
206
|
}
|
package/es2015/casino-search.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearch-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearch-Bl-_REM9.cjs")).then(({default:t})=>{!customElements.get("casino-search")&&customElements.define("casino-search",t.element)})}
|
package/es2015/casino-search.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoSearch-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoSearch-DgZ6w71h.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-search") && customElements.define("casino-search", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/casino-search.js
CHANGED