@everymatrix/casino-navigation-search 1.63.0 → 1.63.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ if (typeof window < "u") {
11
11
  }
12
12
  };
13
13
  };
14
- customElements.define = n(customElements.define), import("./CasinoSearch-DjUJZmvu.js").then(({ default: e }) => {
14
+ customElements.define = n(customElements.define), import("./CasinoSearch-UCzOhKMe.js").then(({ default: e }) => {
15
15
  !customElements.get("casino-search") && customElements.define("casino-search", e.element);
16
16
  });
17
17
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCategories-CBn-5ixP.cjs");if(typeof window!="undefined"){let a=function(t){return function(...o){try{return t.apply(this,o)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoSearch-Bczqp52j.cjs")).then(({default:t})=>{!customElements.get("casino-search")&&customElements.define("casino-search",t.element)})}if(typeof window!="undefined"){let a=function(t){return function(...o){try{return t.apply(this,o)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoCategoriesProviders-7dxMXXOr.cjs")).then(({default:t})=>{!customElements.get("casino-categories-providers")&&customElements.define("casino-categories-providers",t.element)})}function q(a){e.append_styles(a,"svelte-raimvs","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.NotVisible{display:none}")}function D(a){let t,o,n,c,u,m,d;return{c(){t=e.element("div"),o=e.element("div"),n=e.element("casino-search"),c=e.space(),u=e.element("div"),m=e.element("casino-categories-providers"),e.set_custom_element_data(n,"endpoint",a[0]),e.set_custom_element_data(n,"datasource",a[5]),e.set_custom_element_data(n,"lang",a[9]),e.set_custom_element_data(n,"session",a[1]),e.set_custom_element_data(n,"userid",a[2]),e.set_custom_element_data(n,"showfavorites",a[8]),e.set_custom_element_data(n,"clientstyling",a[10]),e.set_custom_element_data(n,"clientstylingurl",a[11]),e.set_custom_element_data(n,"integratedgameframedesktop",a[12]),e.set_custom_element_data(n,"integratedgameframemobile",a[13]),e.set_custom_element_data(n,"gamepagemodalurl",a[14]),e.set_custom_element_data(n,"mbsource",a[15]),e.set_custom_element_data(m,"endpointcategories",a[3]),e.set_custom_element_data(m,"datasourcecategories",a[5]),e.set_custom_element_data(m,"activecategory",a[6]),e.set_custom_element_data(m,"endpointproviders",a[4]),e.set_custom_element_data(m,"datasourceproviders",a[5]),e.set_custom_element_data(m,"excludedflags",a[7]),e.set_custom_element_data(m,"lang",a[9]),e.set_custom_element_data(m,"clientstyling",a[10]),e.set_custom_element_data(m,"clientstylingurl",a[11]),e.set_custom_element_data(m,"mbsource",a[15]),e.attr(u,"class",d=a[17]===!0?"NotVisible":"")},m(i,l){e.insert(i,t,l),e.append(t,o),e.append(o,n),e.append(t,c),e.append(t,u),e.append(u,m),a[18](t)},p(i,[l]){l&1&&e.set_custom_element_data(n,"endpoint",i[0]),l&32&&e.set_custom_element_data(n,"datasource",i[5]),l&512&&e.set_custom_element_data(n,"lang",i[9]),l&2&&e.set_custom_element_data(n,"session",i[1]),l&4&&e.set_custom_element_data(n,"userid",i[2]),l&256&&e.set_custom_element_data(n,"showfavorites",i[8]),l&1024&&e.set_custom_element_data(n,"clientstyling",i[10]),l&2048&&e.set_custom_element_data(n,"clientstylingurl",i[11]),l&4096&&e.set_custom_element_data(n,"integratedgameframedesktop",i[12]),l&8192&&e.set_custom_element_data(n,"integratedgameframemobile",i[13]),l&16384&&e.set_custom_element_data(n,"gamepagemodalurl",i[14]),l&32768&&e.set_custom_element_data(n,"mbsource",i[15]),l&8&&e.set_custom_element_data(m,"endpointcategories",i[3]),l&32&&e.set_custom_element_data(m,"datasourcecategories",i[5]),l&64&&e.set_custom_element_data(m,"activecategory",i[6]),l&16&&e.set_custom_element_data(m,"endpointproviders",i[4]),l&32&&e.set_custom_element_data(m,"datasourceproviders",i[5]),l&128&&e.set_custom_element_data(m,"excludedflags",i[7]),l&512&&e.set_custom_element_data(m,"lang",i[9]),l&1024&&e.set_custom_element_data(m,"clientstyling",i[10]),l&2048&&e.set_custom_element_data(m,"clientstylingurl",i[11]),l&32768&&e.set_custom_element_data(m,"mbsource",i[15]),l&131072&&d!==(d=i[17]===!0?"NotVisible":"")&&e.attr(u,"class",d)},i:e.noop,o:e.noop,d(i){i&&e.detach(t),a[18](null)}}}function M(a,t,o){let{endpoint:n=""}=t,{session:c=""}=t,{userid:u=""}=t,{endpointcategories:m=""}=t,{endpointproviders:d=""}=t,{datasource:i=""}=t,{activecategory:l=""}=t,{excludedflags:v=""}=t,{showfavorites:b=""}=t,{lang:y="en"}=t,{clientstyling:g=""}=t,{clientstylingurl:_=""}=t,{integratedgameframedesktop:w="false"}=t,{integratedgameframemobile:E="false"}=t,{gamepagemodalurl:S="true"}=t,{mbsource:f}=t,h,r;const k=s=>{s.data&&s.data.type=="searchActive"&&o(17,h=s.data.searchStatus),s.data&&s.data.type=="searchCancelled"&&o(17,h=s.data.searchStatus)};e.onMount(()=>(window.addEventListener("message",k,!1),()=>{window.removeEventListener("message",k)}));function p(s){e.binding_callbacks[s?"unshift":"push"](()=>{r=s,o(16,r)})}return a.$$set=s=>{"endpoint"in s&&o(0,n=s.endpoint),"session"in s&&o(1,c=s.session),"userid"in s&&o(2,u=s.userid),"endpointcategories"in s&&o(3,m=s.endpointcategories),"endpointproviders"in s&&o(4,d=s.endpointproviders),"datasource"in s&&o(5,i=s.datasource),"activecategory"in s&&o(6,l=s.activecategory),"excludedflags"in s&&o(7,v=s.excludedflags),"showfavorites"in s&&o(8,b=s.showfavorites),"lang"in s&&o(9,y=s.lang),"clientstyling"in s&&o(10,g=s.clientstyling),"clientstylingurl"in s&&o(11,_=s.clientstylingurl),"integratedgameframedesktop"in s&&o(12,w=s.integratedgameframedesktop),"integratedgameframemobile"in s&&o(13,E=s.integratedgameframemobile),"gamepagemodalurl"in s&&o(14,S=s.gamepagemodalurl),"mbsource"in s&&o(15,f=s.mbsource)},a.$$.update=()=>{a.$$.dirty&66560&&g&&r&&e.setClientStyling(r,g),a.$$.dirty&67584&&_&&r&&e.setClientStylingURL(r,_),a.$$.dirty&98304&&f&&r&&e.setStreamStyling(r,`${f}.Style`)},[n,c,u,m,d,i,l,v,b,y,g,_,w,E,S,f,r,h,p]}class C extends e.SvelteComponent{constructor(t){super(),e.init(this,t,M,D,e.safe_not_equal,{endpoint:0,session:1,userid:2,endpointcategories:3,endpointproviders:4,datasource:5,activecategory:6,excludedflags:7,showfavorites:8,lang:9,clientstyling:10,clientstylingurl:11,integratedgameframedesktop:12,integratedgameframemobile:13,gamepagemodalurl:14,mbsource:15},q)}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[1]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[2]}set userid(t){this.$$set({userid:t}),e.flush()}get endpointcategories(){return this.$$.ctx[3]}set endpointcategories(t){this.$$set({endpointcategories:t}),e.flush()}get endpointproviders(){return this.$$.ctx[4]}set endpointproviders(t){this.$$set({endpointproviders:t}),e.flush()}get datasource(){return this.$$.ctx[5]}set datasource(t){this.$$set({datasource:t}),e.flush()}get activecategory(){return this.$$.ctx[6]}set activecategory(t){this.$$set({activecategory:t}),e.flush()}get excludedflags(){return this.$$.ctx[7]}set excludedflags(t){this.$$set({excludedflags:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[12]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[13]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[14]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(C,{endpoint:{},session:{},userid:{},endpointcategories:{},endpointproviders:{},datasource:{},activecategory:{},excludedflags:{},showfavorites:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},gamepagemodalurl:{},mbsource:{}},[],[],!0);exports.default=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCategories-CBn-5ixP.cjs");if(typeof window!="undefined"){let a=function(t){return function(...o){try{return t.apply(this,o)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoSearch-ZNeRBxs1.cjs")).then(({default:t})=>{!customElements.get("casino-search")&&customElements.define("casino-search",t.element)})}if(typeof window!="undefined"){let a=function(t){return function(...o){try{return t.apply(this,o)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoCategoriesProviders-7dxMXXOr.cjs")).then(({default:t})=>{!customElements.get("casino-categories-providers")&&customElements.define("casino-categories-providers",t.element)})}function q(a){e.append_styles(a,"svelte-raimvs","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.NotVisible{display:none}")}function D(a){let t,o,n,c,u,m,d;return{c(){t=e.element("div"),o=e.element("div"),n=e.element("casino-search"),c=e.space(),u=e.element("div"),m=e.element("casino-categories-providers"),e.set_custom_element_data(n,"endpoint",a[0]),e.set_custom_element_data(n,"datasource",a[5]),e.set_custom_element_data(n,"lang",a[9]),e.set_custom_element_data(n,"session",a[1]),e.set_custom_element_data(n,"userid",a[2]),e.set_custom_element_data(n,"showfavorites",a[8]),e.set_custom_element_data(n,"clientstyling",a[10]),e.set_custom_element_data(n,"clientstylingurl",a[11]),e.set_custom_element_data(n,"integratedgameframedesktop",a[12]),e.set_custom_element_data(n,"integratedgameframemobile",a[13]),e.set_custom_element_data(n,"gamepagemodalurl",a[14]),e.set_custom_element_data(n,"mbsource",a[15]),e.set_custom_element_data(m,"endpointcategories",a[3]),e.set_custom_element_data(m,"datasourcecategories",a[5]),e.set_custom_element_data(m,"activecategory",a[6]),e.set_custom_element_data(m,"endpointproviders",a[4]),e.set_custom_element_data(m,"datasourceproviders",a[5]),e.set_custom_element_data(m,"excludedflags",a[7]),e.set_custom_element_data(m,"lang",a[9]),e.set_custom_element_data(m,"clientstyling",a[10]),e.set_custom_element_data(m,"clientstylingurl",a[11]),e.set_custom_element_data(m,"mbsource",a[15]),e.attr(u,"class",d=a[17]===!0?"NotVisible":"")},m(i,l){e.insert(i,t,l),e.append(t,o),e.append(o,n),e.append(t,c),e.append(t,u),e.append(u,m),a[18](t)},p(i,[l]){l&1&&e.set_custom_element_data(n,"endpoint",i[0]),l&32&&e.set_custom_element_data(n,"datasource",i[5]),l&512&&e.set_custom_element_data(n,"lang",i[9]),l&2&&e.set_custom_element_data(n,"session",i[1]),l&4&&e.set_custom_element_data(n,"userid",i[2]),l&256&&e.set_custom_element_data(n,"showfavorites",i[8]),l&1024&&e.set_custom_element_data(n,"clientstyling",i[10]),l&2048&&e.set_custom_element_data(n,"clientstylingurl",i[11]),l&4096&&e.set_custom_element_data(n,"integratedgameframedesktop",i[12]),l&8192&&e.set_custom_element_data(n,"integratedgameframemobile",i[13]),l&16384&&e.set_custom_element_data(n,"gamepagemodalurl",i[14]),l&32768&&e.set_custom_element_data(n,"mbsource",i[15]),l&8&&e.set_custom_element_data(m,"endpointcategories",i[3]),l&32&&e.set_custom_element_data(m,"datasourcecategories",i[5]),l&64&&e.set_custom_element_data(m,"activecategory",i[6]),l&16&&e.set_custom_element_data(m,"endpointproviders",i[4]),l&32&&e.set_custom_element_data(m,"datasourceproviders",i[5]),l&128&&e.set_custom_element_data(m,"excludedflags",i[7]),l&512&&e.set_custom_element_data(m,"lang",i[9]),l&1024&&e.set_custom_element_data(m,"clientstyling",i[10]),l&2048&&e.set_custom_element_data(m,"clientstylingurl",i[11]),l&32768&&e.set_custom_element_data(m,"mbsource",i[15]),l&131072&&d!==(d=i[17]===!0?"NotVisible":"")&&e.attr(u,"class",d)},i:e.noop,o:e.noop,d(i){i&&e.detach(t),a[18](null)}}}function M(a,t,o){let{endpoint:n=""}=t,{session:c=""}=t,{userid:u=""}=t,{endpointcategories:m=""}=t,{endpointproviders:d=""}=t,{datasource:i=""}=t,{activecategory:l=""}=t,{excludedflags:v=""}=t,{showfavorites:b=""}=t,{lang:y="en"}=t,{clientstyling:g=""}=t,{clientstylingurl:_=""}=t,{integratedgameframedesktop:w="false"}=t,{integratedgameframemobile:E="false"}=t,{gamepagemodalurl:S="true"}=t,{mbsource:f}=t,h,r;const k=s=>{s.data&&s.data.type=="searchActive"&&o(17,h=s.data.searchStatus),s.data&&s.data.type=="searchCancelled"&&o(17,h=s.data.searchStatus)};e.onMount(()=>(window.addEventListener("message",k,!1),()=>{window.removeEventListener("message",k)}));function p(s){e.binding_callbacks[s?"unshift":"push"](()=>{r=s,o(16,r)})}return a.$$set=s=>{"endpoint"in s&&o(0,n=s.endpoint),"session"in s&&o(1,c=s.session),"userid"in s&&o(2,u=s.userid),"endpointcategories"in s&&o(3,m=s.endpointcategories),"endpointproviders"in s&&o(4,d=s.endpointproviders),"datasource"in s&&o(5,i=s.datasource),"activecategory"in s&&o(6,l=s.activecategory),"excludedflags"in s&&o(7,v=s.excludedflags),"showfavorites"in s&&o(8,b=s.showfavorites),"lang"in s&&o(9,y=s.lang),"clientstyling"in s&&o(10,g=s.clientstyling),"clientstylingurl"in s&&o(11,_=s.clientstylingurl),"integratedgameframedesktop"in s&&o(12,w=s.integratedgameframedesktop),"integratedgameframemobile"in s&&o(13,E=s.integratedgameframemobile),"gamepagemodalurl"in s&&o(14,S=s.gamepagemodalurl),"mbsource"in s&&o(15,f=s.mbsource)},a.$$.update=()=>{a.$$.dirty&66560&&g&&r&&e.setClientStyling(r,g),a.$$.dirty&67584&&_&&r&&e.setClientStylingURL(r,_),a.$$.dirty&98304&&f&&r&&e.setStreamStyling(r,`${f}.Style`)},[n,c,u,m,d,i,l,v,b,y,g,_,w,E,S,f,r,h,p]}class C extends e.SvelteComponent{constructor(t){super(),e.init(this,t,M,D,e.safe_not_equal,{endpoint:0,session:1,userid:2,endpointcategories:3,endpointproviders:4,datasource:5,activecategory:6,excludedflags:7,showfavorites:8,lang:9,clientstyling:10,clientstylingurl:11,integratedgameframedesktop:12,integratedgameframemobile:13,gamepagemodalurl:14,mbsource:15},q)}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[1]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[2]}set userid(t){this.$$set({userid:t}),e.flush()}get endpointcategories(){return this.$$.ctx[3]}set endpointcategories(t){this.$$set({endpointcategories:t}),e.flush()}get endpointproviders(){return this.$$.ctx[4]}set endpointproviders(t){this.$$set({endpointproviders:t}),e.flush()}get datasource(){return this.$$.ctx[5]}set datasource(t){this.$$set({datasource:t}),e.flush()}get activecategory(){return this.$$.ctx[6]}set activecategory(t){this.$$set({activecategory:t}),e.flush()}get excludedflags(){return this.$$.ctx[7]}set excludedflags(t){this.$$set({excludedflags:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[12]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[13]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[14]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(C,{endpoint:{},session:{},userid:{},endpointcategories:{},endpointproviders:{},datasource:{},activecategory:{},excludedflags:{},showfavorites:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},gamepagemodalurl:{},mbsource:{}},[],[],!0);exports.default=C;
@@ -11,7 +11,7 @@ if (typeof window != "undefined") {
11
11
  }
12
12
  };
13
13
  };
14
- customElements.define = n(customElements.define), import("./CasinoSearch-CIHpBqB5.js").then(({ default: e }) => {
14
+ customElements.define = n(customElements.define), import("./CasinoSearch-5WpiT7GK.js").then(({ default: e }) => {
15
15
  !customElements.get("casino-search") && customElements.define("casino-search", e.element);
16
16
  });
17
17
  }
@@ -236,7 +236,7 @@ function lt(t, e) {
236
236
  return a.getTime() < n.getTime();
237
237
  }
238
238
  function it(t) {
239
- Ze(t, "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}");
239
+ Ze(t, "svelte-nijkoq", "*,*::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:10px 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;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:10px 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}");
240
240
  }
241
241
  function be(t, e, a) {
242
242
  const n = t.slice();
@@ -737,7 +737,7 @@ function Fe(t) {
737
737
  };
738
738
  }
739
739
  function mt(t) {
740
- let e, a, n, r, l, s, i, c, m, h, f, w, d, p, N, x, M, V, A, W, v = (
740
+ let e, a, n, r, l, s, i, c, m, h, f, w, d, p, N, P, M, V, A, W, v = (
741
741
  /*cancelbutton*/
742
742
  t[9] === "true" && _e(t)
743
743
  );
@@ -750,11 +750,11 @@ function mt(t) {
750
750
  let B = G(t), k = B(t);
751
751
  return {
752
752
  c() {
753
- e = C("div"), a = C("div"), n = C("div"), r = C("div"), r.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>', l = z(), s = C("input"), c = z(), m = C("span"), h = de("svg"), f = de("path"), d = z(), v && v.c(), N = z(), x = C("div"), V = z(), k.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
753
+ e = C("div"), a = C("div"), n = C("div"), r = C("div"), r.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>', l = z(), s = C("input"), c = z(), m = C("span"), h = de("svg"), f = de("path"), d = z(), v && v.c(), N = z(), P = C("div"), V = z(), k.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
754
754
  t[21]("placeHolderSearchGames")), g(s, "maxlength", ft), g(f, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), g(f, "stroke", "#717171"), g(f, "stroke-width", "2"), g(f, "stroke-linecap", "round"), g(f, "stroke-linejoin", "round"), g(h, "width", "11"), g(h, "height", "11"), g(h, "fill", "none"), g(h, "xmlns", "http://www.w3.org/2000/svg"), g(m, "class", w = "SearchClearButton " + /*cancelbutton*/
755
755
  (t[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
756
756
  (t[12].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
757
- (t[13] ? "" : "SearchAnimation")), g(a, "class", "SearchWrap"), g(x, "class", M = /*cancelbutton*/
757
+ (t[13] ? "" : "SearchAnimation")), g(a, "class", "SearchWrap"), g(P, "class", M = /*cancelbutton*/
758
758
  t[9] != "true" ? "OverlayCancel" : ""), g(e, "class", (ae(
759
759
  /*userAgent*/
760
760
  t[22]
@@ -765,7 +765,7 @@ function mt(t) {
765
765
  s,
766
766
  /*searchValue*/
767
767
  t[12]
768
- ), t[34](s), b(n, c), b(n, m), b(m, h), b(h, f), b(n, d), v && v.m(n, null), b(e, N), b(e, x), b(e, V), k.m(e, null), t[37](e), A || (W = [
768
+ ), t[34](s), b(n, c), b(n, m), b(m, h), b(h, f), b(n, d), v && v.m(n, null), b(e, N), b(e, P), b(e, V), k.m(e, null), t[37](e), A || (W = [
769
769
  Y(
770
770
  s,
771
771
  "input",
@@ -785,7 +785,7 @@ function mt(t) {
785
785
  t[35]
786
786
  ),
787
787
  Y(
788
- x,
788
+ P,
789
789
  "click",
790
790
  /*handleOverlay*/
791
791
  t[24]
@@ -809,7 +809,7 @@ function mt(t) {
809
809
  8192 && p !== (p = "Search " + /*searchCancelled*/
810
810
  (_[13] ? "" : "SearchAnimation")) && g(n, "class", p), T[0] & /*cancelbutton*/
811
811
  512 && M !== (M = /*cancelbutton*/
812
- _[9] != "true" ? "OverlayCancel" : "") && g(x, "class", M), B === (B = G(_)) && k ? k.p(_, T) : (k.d(1), k = B(_), k && (k.c(), k.m(e, null)));
812
+ _[9] != "true" ? "OverlayCancel" : "") && g(P, "class", M), B === (B = G(_)) && k ? k.p(_, T) : (k.d(1), k = B(_), k && (k.c(), k.m(e, null)));
813
813
  },
814
814
  i: ue,
815
815
  o: ue,
@@ -822,7 +822,7 @@ let ft = 50;
822
822
  function gt(t, e, a) {
823
823
  let n;
824
824
  Xe(t, nt, (o) => a(21, n = o));
825
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: f = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: N = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: M = "true" } = e, { notfoundicon: V = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], B = {}, k = "", _, T = !0, J = !1, I = !1, P, X = !1, K, Q, re = [];
825
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: f = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: N = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: M = "true" } = e, { notfoundicon: V = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], B = {}, k = "", _, T = !0, J = !1, I = !1, x, X = !1, K, Q, re = [];
826
826
  const Te = () => {
827
827
  fetch(N).then((S) => S.json()).then((S) => {
828
828
  Object.keys(S).forEach((y) => {
@@ -912,13 +912,13 @@ function gt(t, e, a) {
912
912
  },
913
913
  window.location.href
914
914
  );
915
- }, xe = () => {
915
+ }, Pe = () => {
916
916
  ot(c);
917
917
  };
918
918
  Ke(() => (window.addEventListener("message", oe, !1), () => {
919
919
  window.removeEventListener("message", oe);
920
920
  }));
921
- function Pe() {
921
+ function xe() {
922
922
  k = this.value, a(12, k);
923
923
  }
924
924
  function Me(o) {
@@ -929,11 +929,11 @@ function gt(t, e, a) {
929
929
  const Be = () => ie(), Ae = () => $();
930
930
  function Oe(o) {
931
931
  me[o ? "unshift" : "push"](() => {
932
- P = o, a(14, P);
932
+ x = o, a(14, x);
933
933
  });
934
934
  }
935
935
  return t.$$set = (o) => {
936
- "endpoint" in o && a(0, r = o.endpoint), "datasource" in o && a(28, l = o.datasource), "session" in o && a(29, s = o.session), "userid" in o && a(30, i = o.userid), "lang" in o && a(1, c = o.lang), "clientstyling" in o && a(2, m = o.clientstyling), "clientstylingurl" in o && a(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && a(4, f = o.integratedgameframedesktop), "integratedgameframemobile" in o && a(5, w = o.integratedgameframemobile), "showgamename" in o && a(6, d = o.showgamename), "gamepagemodalurl" in o && a(7, p = o.gamepagemodalurl), "translationurl" in o && a(31, N = o.translationurl), "showfavorites" in o && a(8, x = o.showfavorites), "cancelbutton" in o && a(9, M = o.cancelbutton), "notfoundicon" in o && a(10, V = o.notfoundicon), "mbsource" in o && a(11, A = o.mbsource);
936
+ "endpoint" in o && a(0, r = o.endpoint), "datasource" in o && a(28, l = o.datasource), "session" in o && a(29, s = o.session), "userid" in o && a(30, i = o.userid), "lang" in o && a(1, c = o.lang), "clientstyling" in o && a(2, m = o.clientstyling), "clientstylingurl" in o && a(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && a(4, f = o.integratedgameframedesktop), "integratedgameframemobile" in o && a(5, w = o.integratedgameframemobile), "showgamename" in o && a(6, d = o.showgamename), "gamepagemodalurl" in o && a(7, p = o.gamepagemodalurl), "translationurl" in o && a(31, N = o.translationurl), "showfavorites" in o && a(8, P = o.showfavorites), "cancelbutton" in o && a(9, M = o.cancelbutton), "notfoundicon" in o && a(10, V = o.notfoundicon), "mbsource" in o && a(11, A = o.mbsource);
937
937
  }, t.$$.update = () => {
938
938
  if (t.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
939
939
  268447747)
@@ -945,14 +945,14 @@ function gt(t, e, a) {
945
945
  } else
946
946
  T || se();
947
947
  t.$$.dirty[0] & /*lang*/
948
- 2 && c && xe(), t.$$.dirty[1] & /*translationurl*/
948
+ 2 && c && Pe(), t.$$.dirty[1] & /*translationurl*/
949
949
  1 && N && Te(), t.$$.dirty[0] & /*session, userid*/
950
950
  1610612736 && s && i && Ie(), t.$$.dirty[0] & /*showfavorites*/
951
951
  256 | t.$$.dirty[1] & /*isLoggedIn*/
952
- 2 && x && X && Ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
953
- 16388 && m && P && $e(P, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
954
- 16392 && h && P && et(P, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
955
- 18432 && P && tt(P, `${A}.Style`);
952
+ 2 && P && X && Ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
953
+ 16388 && m && x && $e(x, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
954
+ 16392 && h && x && et(x, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
955
+ 18432 && x && tt(x, `${A}.Style`);
956
956
  }, [
957
957
  r,
958
958
  c,
@@ -962,13 +962,13 @@ function gt(t, e, a) {
962
962
  w,
963
963
  d,
964
964
  p,
965
- x,
965
+ P,
966
966
  M,
967
967
  V,
968
968
  A,
969
969
  k,
970
970
  T,
971
- P,
971
+ x,
972
972
  v,
973
973
  _,
974
974
  J,
@@ -987,7 +987,7 @@ function gt(t, e, a) {
987
987
  i,
988
988
  N,
989
989
  X,
990
- Pe,
990
+ xe,
991
991
  Me,
992
992
  Be,
993
993
  Ae,
@@ -236,7 +236,7 @@ function lt(t, e) {
236
236
  return a.getTime() < n.getTime();
237
237
  }
238
238
  function it(t) {
239
- Ye(t, "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}");
239
+ Ye(t, "svelte-nijkoq", "*,*::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:10px 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;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:10px 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}");
240
240
  }
241
241
  function be(t, e, a) {
242
242
  const n = t.slice();
@@ -735,7 +735,7 @@ function Fe(t) {
735
735
  };
736
736
  }
737
737
  function mt(t) {
738
- let e, a, n, r, l, s, i, c, m, h, f, w, d, p, B, N, P, V, A, W, v = (
738
+ let e, a, n, r, l, s, i, c, m, h, f, w, d, p, B, N, x, V, A, W, v = (
739
739
  /*cancelbutton*/
740
740
  t[9] === "true" && _e(t)
741
741
  );
@@ -752,7 +752,7 @@ function mt(t) {
752
752
  t[21]("placeHolderSearchGames")), g(s, "maxlength", ft), g(f, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), g(f, "stroke", "#717171"), g(f, "stroke-width", "2"), g(f, "stroke-linecap", "round"), g(f, "stroke-linejoin", "round"), g(h, "width", "11"), g(h, "height", "11"), g(h, "fill", "none"), g(h, "xmlns", "http://www.w3.org/2000/svg"), g(m, "class", w = "SearchClearButton " + /*cancelbutton*/
753
753
  (t[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
754
754
  (t[12].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
755
- (t[13] ? "" : "SearchAnimation")), g(a, "class", "SearchWrap"), g(N, "class", P = /*cancelbutton*/
755
+ (t[13] ? "" : "SearchAnimation")), g(a, "class", "SearchWrap"), g(N, "class", x = /*cancelbutton*/
756
756
  t[9] != "true" ? "OverlayCancel" : ""), g(e, "class", (ae(
757
757
  /*userAgent*/
758
758
  t[22]
@@ -806,8 +806,8 @@ function mt(t) {
806
806
  _[9] === "true" ? v ? v.p(_, T) : (v = _e(_), v.c(), v.m(n, null)) : v && (v.d(1), v = null), T[0] & /*searchCancelled*/
807
807
  8192 && p !== (p = "Search " + /*searchCancelled*/
808
808
  (_[13] ? "" : "SearchAnimation")) && g(n, "class", p), T[0] & /*cancelbutton*/
809
- 512 && P !== (P = /*cancelbutton*/
810
- _[9] != "true" ? "OverlayCancel" : "") && g(N, "class", P), M === (M = G(_)) && k ? k.p(_, T) : (k.d(1), k = M(_), k && (k.c(), k.m(e, null)));
809
+ 512 && x !== (x = /*cancelbutton*/
810
+ _[9] != "true" ? "OverlayCancel" : "") && g(N, "class", x), M === (M = G(_)) && k ? k.p(_, T) : (k.d(1), k = M(_), k && (k.c(), k.m(e, null)));
811
811
  },
812
812
  i: ue,
813
813
  o: ue,
@@ -820,7 +820,7 @@ let ft = 50;
820
820
  function gt(t, e, a) {
821
821
  let n;
822
822
  Ke(t, et, (o) => a(21, n = o));
823
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: f = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: B = "" } = e, { showfavorites: N = "" } = e, { cancelbutton: P = "true" } = e, { notfoundicon: V = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], M = {}, k = "", _, T = !0, J = !1, I = !1, x, X = !1, K, Q, re = [];
823
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: f = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: B = "" } = e, { showfavorites: N = "" } = e, { cancelbutton: x = "true" } = e, { notfoundicon: V = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], M = {}, k = "", _, T = !0, J = !1, I = !1, P, X = !1, K, Q, re = [];
824
824
  const Te = () => {
825
825
  fetch(B).then((S) => S.json()).then((S) => {
826
826
  Object.keys(S).forEach((y) => {
@@ -859,7 +859,7 @@ function gt(t, e, a) {
859
859
  }, Z = (o, S) => {
860
860
  typeof gtag == "function" && gtag("event", o, { context: S });
861
861
  }, je = () => {
862
- P != "true" && $();
862
+ x != "true" && $();
863
863
  }, Ee = (o) => new Promise((S, y) => {
864
864
  a(18, I = !0), fetch(o.href).then((R) => R.json()).then((R) => {
865
865
  a(18, I = !1), S(R);
@@ -910,13 +910,13 @@ function gt(t, e, a) {
910
910
  },
911
911
  window.location.href
912
912
  );
913
- }, xe = () => {
913
+ }, Pe = () => {
914
914
  ot(c);
915
915
  };
916
916
  Qe(() => (window.addEventListener("message", oe, !1), () => {
917
917
  window.removeEventListener("message", oe);
918
918
  }));
919
- function Pe() {
919
+ function xe() {
920
920
  k = this.value, a(12, k);
921
921
  }
922
922
  function Me(o) {
@@ -927,11 +927,11 @@ function gt(t, e, a) {
927
927
  const Be = () => ie(), Ae = () => $();
928
928
  function Oe(o) {
929
929
  me[o ? "unshift" : "push"](() => {
930
- x = o, a(14, x);
930
+ P = o, a(14, P);
931
931
  });
932
932
  }
933
933
  return t.$$set = (o) => {
934
- "endpoint" in o && a(0, r = o.endpoint), "datasource" in o && a(28, l = o.datasource), "session" in o && a(29, s = o.session), "userid" in o && a(30, i = o.userid), "lang" in o && a(1, c = o.lang), "clientstyling" in o && a(2, m = o.clientstyling), "clientstylingurl" in o && a(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && a(4, f = o.integratedgameframedesktop), "integratedgameframemobile" in o && a(5, w = o.integratedgameframemobile), "showgamename" in o && a(6, d = o.showgamename), "gamepagemodalurl" in o && a(7, p = o.gamepagemodalurl), "translationurl" in o && a(31, B = o.translationurl), "showfavorites" in o && a(8, N = o.showfavorites), "cancelbutton" in o && a(9, P = o.cancelbutton), "notfoundicon" in o && a(10, V = o.notfoundicon), "mbsource" in o && a(11, A = o.mbsource);
934
+ "endpoint" in o && a(0, r = o.endpoint), "datasource" in o && a(28, l = o.datasource), "session" in o && a(29, s = o.session), "userid" in o && a(30, i = o.userid), "lang" in o && a(1, c = o.lang), "clientstyling" in o && a(2, m = o.clientstyling), "clientstylingurl" in o && a(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && a(4, f = o.integratedgameframedesktop), "integratedgameframemobile" in o && a(5, w = o.integratedgameframemobile), "showgamename" in o && a(6, d = o.showgamename), "gamepagemodalurl" in o && a(7, p = o.gamepagemodalurl), "translationurl" in o && a(31, B = o.translationurl), "showfavorites" in o && a(8, N = o.showfavorites), "cancelbutton" in o && a(9, x = o.cancelbutton), "notfoundicon" in o && a(10, V = o.notfoundicon), "mbsource" in o && a(11, A = o.mbsource);
935
935
  }, t.$$.update = () => {
936
936
  if (t.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
937
937
  268447747)
@@ -943,14 +943,14 @@ function gt(t, e, a) {
943
943
  } else
944
944
  T || se();
945
945
  t.$$.dirty[0] & /*lang*/
946
- 2 && c && xe(), t.$$.dirty[1] & /*translationurl*/
946
+ 2 && c && Pe(), t.$$.dirty[1] & /*translationurl*/
947
947
  1 && B && Te(), t.$$.dirty[0] & /*session, userid*/
948
948
  1610612736 && s && i && Ie(), t.$$.dirty[0] & /*showfavorites*/
949
949
  256 | t.$$.dirty[1] & /*isLoggedIn*/
950
950
  2 && N && X && Ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
951
- 16388 && m && x && tt(x, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
952
- 16392 && h && x && at(x, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
953
- 18432 && x && nt(x, `${A}.Style`);
951
+ 16388 && m && P && tt(P, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
952
+ 16392 && h && P && at(P, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
953
+ 18432 && P && nt(P, `${A}.Style`);
954
954
  }, [
955
955
  r,
956
956
  c,
@@ -961,12 +961,12 @@ function gt(t, e, a) {
961
961
  d,
962
962
  p,
963
963
  N,
964
- P,
964
+ x,
965
965
  V,
966
966
  A,
967
967
  k,
968
968
  T,
969
- x,
969
+ P,
970
970
  v,
971
971
  _,
972
972
  J,
@@ -985,7 +985,7 @@ function gt(t, e, a) {
985
985
  i,
986
986
  B,
987
987
  X,
988
- Pe,
988
+ xe,
989
989
  Me,
990
990
  Be,
991
991
  Ae,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCategories-CBn-5ixP.cjs"),W=require("./CasinoGameThumbnail-BtD39_6S.cjs");function ee(a,t){e.addMessages(a,t)}function Te(a){e.$locale.set(a)}const te={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 a=function(t){return function(...n){try{return t.apply(this,n)}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=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnail-BtD39_6S.cjs")).then(t=>t.CasinoGameThumbnail_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}function J(a){"@babel/helpers - typeof";return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(a)}function U(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function x(a){U(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||J(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ae(a,t){return U(2,arguments),x(a).getTime()-x(t).getTime()}function je(a,t){U(2,arguments);var n=x(a),r=x(t);return n.getTime()>r.getTime()}function Ee(a,t){U(2,arguments);var n=x(a),r=x(t);return n.getTime()<r.getTime()}function De(a){e.append_styles(a,"svelte-nijkoq","*,*::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:10px 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;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:10px 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 ne(a,t,n){const r=a.slice();return r[53]=t[n],r}function re(a){let t,n=a[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(n),e.attr(t,"class",s="SearchCancelButton "+(a[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",a[36]),i=!0)},p(c,u){u[0]&2097152&&n!==(n=c[21]("cancel")+"")&&e.set_data(r,n),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Ge(a){let t,n,r,s;function i(m,f){if(m[17]==!0&&m[12].length<2)return Ne;if(m[15].length!=0)return ze}let l=i(a),c=l&&l(a),u=a[13]===!1&&ie(a),h=a[12].length>=2&&a[15].length==0&&ue(a);return{c(){c&&c.c(),t=e.space(),n=e.element("div"),u&&u.c(),r=e.space(),h&&h.c(),e.attr(n,"class",s="SearchResultsContainer "+(a[17]==!0?"":"NotVisible"))},m(m,f){c&&c.m(m,f),e.insert(m,t,f),e.insert(m,n,f),u&&u.m(n,null),e.append(n,r),h&&h.m(n,null)},p(m,f){l===(l=i(m))&&c?c.p(m,f):(c&&c.d(1),c=l&&l(m),c&&(c.c(),c.m(t.parentNode,t))),m[13]===!1?u?u.p(m,f):(u=ie(m),u.c(),u.m(n,r)):u&&(u.d(1),u=null),m[12].length>=2&&m[15].length==0?h?h.p(m,f):(h=ue(m),h.c(),h.m(n,null)):h&&(h.d(1),h=null),f[0]&131072&&s!==(s="SearchResultsContainer "+(m[17]==!0?"":"NotVisible"))&&e.attr(n,"class",s)},d(m){m&&(e.detach(t),e.detach(n)),c&&c.d(m),u&&u.d(),h&&h.d()}}}function Ie(a){let t,n=a[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("loading")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function ze(a){let t,n=a[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("searchResult")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function Ne(a){let t,n,r=a[15].length!==0&&se(a),s=a[15].length==0&&oe(a);return{c(){r&&r.c(),t=e.space(),s&&s.c(),n=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,n,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=se(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=oe(i),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i),s&&s.d(i)}}}function se(a){let t,n=a[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("recentSearch")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function oe(a){let t,n,r,s=a[21]("noRecentSearches")+"",i,l,c=a[10]==="true"&&le();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(u,h){e.insert(u,t,h),c&&c.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i)},p(u,h){u[10]==="true"?c||(c=le(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),h[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),h[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function le(a){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(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function ie(a){let t,n=e.ensure_array_like(a[15]),r=[];for(let s=0;s<n.length;s+=1)r[s]=ce(ne(a,n,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){n=e.ensure_array_like(s[15]);let l;for(l=0;l<n.length;l+=1){const c=ne(s,n,l);r[l]?r[l].p(c,i):(r[l]=ce(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function ce(a){let t,n,r,s,i,l,c,u,h,m,f,S;return{c(){var d;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",a[0]),e.set_custom_element_data(t,"session",a[19]),e.set_custom_element_data(t,"userid",a[20]),e.set_custom_element_data(t,"favorites",a[8]),e.set_custom_element_data(t,"lang",a[1]),e.set_custom_element_data(t,"gamethumbnail",n=a[53].thumbnail),e.set_custom_element_data(t,"gamename",r=a[53].name),e.set_custom_element_data(t,"gamevendor",s=a[53].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=a[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=a[53].isNew),e.set_custom_element_data(t,"gametag",c=((d=a[53].advancedTags)==null?void 0:d.length)>0&&a[25](a[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=a[53].cellSize),e.set_custom_element_data(t,"gameid",h=a[53].id),e.set_custom_element_data(t,"showgamename",a[6]),e.set_custom_element_data(t,"gamefunmode",m=a[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=a[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=a[53].details?a[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",a[4]),e.set_custom_element_data(t,"mbsource",a[11]),e.set_custom_element_data(t,"integratedgameframemobile",a[5]),e.set_custom_element_data(t,"clientstyling",a[2]),e.set_custom_element_data(t,"clientstylingurl",a[3]),e.set_custom_element_data(t,"gamepagemodalurl",a[7])},m(d,g){e.insert(d,t,g)},p(d,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",d[0]),g[0]&524288&&e.set_custom_element_data(t,"session",d[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",d[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",d[8]),g[0]&2&&e.set_custom_element_data(t,"lang",d[1]),g[0]&32768&&n!==(n=d[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&32768&&r!==(r=d[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=d[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=d[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=d[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((T=d[53].advancedTags)==null?void 0:T.length)>0&&d[25](d[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=d[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&h!==(h=d[53].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",d[6]),g[0]&32768&&m!==(m=d[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",m),g[0]&32768&&f!==(f=d[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&32768&&S!==(S=d[53].details?d[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",d[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",d[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",d[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",d[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",d[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",d[7])},d(d){d&&e.detach(t)}}}function ue(a){let t,n,r,s=a[21]("notFound")+"",i,l,c,u=a[21]("notFoundText")+"",h,m,f=a[10]==="true"&&me();return{c(){t=e.element("div"),f&&f.c(),n=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),h=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",m="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(S,d){e.insert(S,t,d),f&&f.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,h)},p(S,d){S[10]==="true"?f||(f=me(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),d[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),d[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(h,u),d[0]&1024&&m!==(m="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",m)},d(S){S&&e.detach(t),f&&f.d()}}}function me(a){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(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function xe(a){let t,n,r,s,i,l,c,u,h,m,f,S,d,g,T,j,D,P,I,N,b=a[9]==="true"&&re(a);function F(_,C){return _[18]?Ie:Ge}let G=F(a),v=G(a);return{c(){t=e.element("div"),n=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(),h=e.element("span"),m=e.svg_element("svg"),f=e.svg_element("path"),d=e.space(),b&&b.c(),T=e.space(),j=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=a[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Pe),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(m,"width","11"),e.attr(m,"height","11"),e.attr(m,"fill","none"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"class",S="SearchClearButton "+(a[9]!="true"?"WithoutCancel":"")+" "+(a[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(a[13]?"":"SearchAnimation")),e.attr(n,"class","SearchWrap"),e.attr(j,"class",D=a[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(W.getDevice(a[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,C){e.insert(_,t,C),e.append(t,n),e.append(n,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,a[12]),a[34](l),e.append(r,u),e.append(r,h),e.append(h,m),e.append(m,f),e.append(r,d),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,P),v.m(t,null),a[37](t),I||(N=[e.listen(l,"input",a[33]),e.listen(l,"focus",a[23]),e.listen(h,"click",a[35]),e.listen(j,"click",a[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(h,"class",S),_[9]==="true"?b?b.p(_,C):(b=re(_),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&&D!==(D=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",D),G===(G=F(_))&&v?v.p(_,C):(v.d(1),v=G(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),a[34](null),b&&b.d(),v.d(),a[37](null),I=!1,e.run_all(N)}}}let Pe=50;function Me(a,t,n){let r;e.component_subscribe(a,e.$format,o=>n(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:d=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:D="true"}=t,{notfoundicon:P="false"}=t,{mbsource:I}=t,N=window.navigator.userAgent,b=[],F=[],G={},v="",_,C=!0,M=!1,L=!1,E,O=!1,q,A,Z=[];const he=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{ee(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(te).forEach(o=>{ee(o,te[o])});const Y=o=>{o.data&&o.data.type=="SearchedItemClicked"&&we(o.data.gameId),o.data.type=="UserSessionID"&&(n(19,q=o.data.session),n(20,A=o.data.userid),n(32,O=!0)),o.data.type=="CategoryChange"&&H()},X=()=>{if(n(13,C=!1),n(17,M=!0),s&&i&&u&&v.length<2){n(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",W.getDevice(N)),w.push(pe(R,p[y]))}Promise.all(w).then(R=>{R=R.filter(function(z){return!!z}),n(15,b=R.map(z=>(z.isFavorite=K(z.id),z))),b.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(R=>{B("searchError","SearchWidget")})}}$(M),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")},B=(o,p)=>{typeof gtag=="function"&&gtag("event",o,{context:p})},fe=()=>{D!="true"&&H()},ge=o=>new Promise((p,w)=>{n(18,L=!0),fetch(o.href).then(y=>y.json()).then(y=>{n(18,L=!1),p(y)}).catch(y=>{n(18,L=!1),console.error(y),w(y)})}),pe=(o,p)=>new Promise((w,y)=>{n(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(n(18,L=!1),w(G[p])):fetch(o).then(k=>k.json()).then(k=>{n(18,L=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,L=!1),console.error(k),y(k)})}),_e=()=>{const o=new URL(`${s}/v1/player/${A}/favorites/`);n(18,L=!0);let p={method:"GET",headers:{"X-SessionID":q}};fetch(o.href,p).then(w=>w.json()).then(w=>{n(18,L=!1),Z=w.items.map(y=>y.id)})},Se=()=>{n(32,O=!0),n(19,q=l),n(20,A=c)},K=o=>Z.findIndex(p=>p==o)!==-1,be=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,z)=>{const Le=new Date(R.schedules[0].startTime),V=new Date(R.schedules[0].endTime);ae(new Date(V),new Date(k))<w&&(w=ae(new Date(V),new Date(k)),y=z),je(new Date(k),new Date(Le))&&Ee(new Date(k),new Date(V))&&(p=o[y].name)}),p},we=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)}},H=()=>{n(12,v=""),n(13,C=!0),n(18,L=!1),n(15,b=[]),n(17,M=!1),$(M)},Q=()=>{n(12,v=""),_.focus()},$=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},ve=()=>{Te(u)};e.onMount(()=>(window.addEventListener("message",Y,!1),()=>{window.removeEventListener("message",Y)}));function ye(){v=this.value,n(12,v)}function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,n(16,_)})}const Ce=()=>Q(),Re=()=>H();function Fe(o){e.binding_callbacks[o?"unshift":"push"](()=>{E=o,n(14,E)})}return a.$$set=o=>{"endpoint"in o&&n(0,s=o.endpoint),"datasource"in o&&n(28,i=o.datasource),"session"in o&&n(29,l=o.session),"userid"in o&&n(30,c=o.userid),"lang"in o&&n(1,u=o.lang),"clientstyling"in o&&n(2,h=o.clientstyling),"clientstylingurl"in o&&n(3,m=o.clientstylingurl),"integratedgameframedesktop"in o&&n(4,f=o.integratedgameframedesktop),"integratedgameframemobile"in o&&n(5,S=o.integratedgameframemobile),"showgamename"in o&&n(6,d=o.showgamename),"gamepagemodalurl"in o&&n(7,g=o.gamepagemodalurl),"translationurl"in o&&n(31,T=o.translationurl),"showfavorites"in o&&n(8,j=o.showfavorites),"cancelbutton"in o&&n(9,D=o.cancelbutton),"notfoundicon"in o&&n(10,P=o.notfoundicon),"mbsource"in o&&n(11,I=o.mbsource)},a.$$.update=()=>{if(a.$$.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",W.getDevice(N)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),ge(o).then(p=>{W.dispatchCustomEvent("game_search",{searchValue:v}),n(15,b=p.items.map(w=>(w.isFavorite=K(w.id),w)))})}else C||X();a.$$.dirty[0]&2&&u&&ve(),a.$$.dirty[1]&1&&T&&he(),a.$$.dirty[0]&1610612736&&l&&c&&Se(),a.$$.dirty[0]&256|a.$$.dirty[1]&2&&j&&O&&_e(),a.$$.dirty[0]&16388&&h&&E&&e.setClientStyling(E,h),a.$$.dirty[0]&16392&&m&&E&&e.setClientStylingURL(E,m),a.$$.dirty[0]&18432&&E&&e.setStreamStyling(E,`${I}.Style`)},[s,u,h,m,f,S,d,g,j,D,P,I,v,C,E,b,_,M,L,q,A,r,N,X,fe,be,H,Q,i,l,c,T,O,ye,ke,Ce,Re,Fe]}class de extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Me,xe,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},De,[-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(de,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=de;
@@ -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/CasinoNavigationSearch-BhNCVUkk.cjs")).then(({default:t})=>{!customElements.get("casino-navigation-search")&&customElements.define("casino-navigation-search",t.element)})}
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/CasinoNavigationSearch-Du-Ngq3R.cjs")).then(({default:t})=>{!customElements.get("casino-navigation-search")&&customElements.define("casino-navigation-search",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoNavigationSearch-B6xZPTKk.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoNavigationSearch-DwrSl2Kr.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-navigation-search") && customElements.define("casino-navigation-search", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoNavigationSearch-PHBokTrL.js";
1
+ import { C as s } from "../components/CasinoNavigationSearch-DDT3Tb53.js";
2
2
  function a(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-navigation-search",
3
- "version": "1.63.0",
3
+ "version": "1.63.2",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-navigation-search.cjs",
6
6
  "module": "esnext/casino-navigation-search.js",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCategories-CBn-5ixP.cjs"),W=require("./CasinoGameThumbnail-BtD39_6S.cjs");function ee(a,t){e.addMessages(a,t)}function Te(a){e.$locale.set(a)}const te={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 a=function(t){return function(...n){try{return t.apply(this,n)}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=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnail-BtD39_6S.cjs")).then(t=>t.CasinoGameThumbnail_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}function J(a){"@babel/helpers - typeof";return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(a)}function U(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function x(a){U(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||J(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ae(a,t){return U(2,arguments),x(a).getTime()-x(t).getTime()}function je(a,t){U(2,arguments);var n=x(a),r=x(t);return n.getTime()>r.getTime()}function Ee(a,t){U(2,arguments);var n=x(a),r=x(t);return n.getTime()<r.getTime()}function De(a){e.append_styles(a,"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 ne(a,t,n){const r=a.slice();return r[53]=t[n],r}function re(a){let t,n=a[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(n),e.attr(t,"class",s="SearchCancelButton "+(a[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",a[36]),i=!0)},p(c,u){u[0]&2097152&&n!==(n=c[21]("cancel")+"")&&e.set_data(r,n),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Ge(a){let t,n,r,s;function i(m,f){if(m[17]==!0&&m[12].length<2)return Ne;if(m[15].length!=0)return ze}let l=i(a),c=l&&l(a),u=a[13]===!1&&ie(a),h=a[12].length>=2&&a[15].length==0&&ue(a);return{c(){c&&c.c(),t=e.space(),n=e.element("div"),u&&u.c(),r=e.space(),h&&h.c(),e.attr(n,"class",s="SearchResultsContainer "+(a[17]==!0?"":"NotVisible"))},m(m,f){c&&c.m(m,f),e.insert(m,t,f),e.insert(m,n,f),u&&u.m(n,null),e.append(n,r),h&&h.m(n,null)},p(m,f){l===(l=i(m))&&c?c.p(m,f):(c&&c.d(1),c=l&&l(m),c&&(c.c(),c.m(t.parentNode,t))),m[13]===!1?u?u.p(m,f):(u=ie(m),u.c(),u.m(n,r)):u&&(u.d(1),u=null),m[12].length>=2&&m[15].length==0?h?h.p(m,f):(h=ue(m),h.c(),h.m(n,null)):h&&(h.d(1),h=null),f[0]&131072&&s!==(s="SearchResultsContainer "+(m[17]==!0?"":"NotVisible"))&&e.attr(n,"class",s)},d(m){m&&(e.detach(t),e.detach(n)),c&&c.d(m),u&&u.d(),h&&h.d()}}}function Ie(a){let t,n=a[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("loading")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function ze(a){let t,n=a[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("searchResult")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function Ne(a){let t,n,r=a[15].length!==0&&se(a),s=a[15].length==0&&oe(a);return{c(){r&&r.c(),t=e.space(),s&&s.c(),n=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,n,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=se(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=oe(i),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i),s&&s.d(i)}}}function se(a){let t,n=a[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("recentSearch")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function oe(a){let t,n,r,s=a[21]("noRecentSearches")+"",i,l,c=a[10]==="true"&&le();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(u,h){e.insert(u,t,h),c&&c.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i)},p(u,h){u[10]==="true"?c||(c=le(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),h[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),h[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function le(a){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(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function ie(a){let t,n=e.ensure_array_like(a[15]),r=[];for(let s=0;s<n.length;s+=1)r[s]=ce(ne(a,n,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){n=e.ensure_array_like(s[15]);let l;for(l=0;l<n.length;l+=1){const c=ne(s,n,l);r[l]?r[l].p(c,i):(r[l]=ce(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function ce(a){let t,n,r,s,i,l,c,u,h,m,f,S;return{c(){var d;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",a[0]),e.set_custom_element_data(t,"session",a[19]),e.set_custom_element_data(t,"userid",a[20]),e.set_custom_element_data(t,"favorites",a[8]),e.set_custom_element_data(t,"lang",a[1]),e.set_custom_element_data(t,"gamethumbnail",n=a[53].thumbnail),e.set_custom_element_data(t,"gamename",r=a[53].name),e.set_custom_element_data(t,"gamevendor",s=a[53].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=a[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=a[53].isNew),e.set_custom_element_data(t,"gametag",c=((d=a[53].advancedTags)==null?void 0:d.length)>0&&a[25](a[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=a[53].cellSize),e.set_custom_element_data(t,"gameid",h=a[53].id),e.set_custom_element_data(t,"showgamename",a[6]),e.set_custom_element_data(t,"gamefunmode",m=a[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=a[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=a[53].details?a[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",a[4]),e.set_custom_element_data(t,"mbsource",a[11]),e.set_custom_element_data(t,"integratedgameframemobile",a[5]),e.set_custom_element_data(t,"clientstyling",a[2]),e.set_custom_element_data(t,"clientstylingurl",a[3]),e.set_custom_element_data(t,"gamepagemodalurl",a[7])},m(d,g){e.insert(d,t,g)},p(d,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",d[0]),g[0]&524288&&e.set_custom_element_data(t,"session",d[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",d[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",d[8]),g[0]&2&&e.set_custom_element_data(t,"lang",d[1]),g[0]&32768&&n!==(n=d[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&32768&&r!==(r=d[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=d[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=d[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=d[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((T=d[53].advancedTags)==null?void 0:T.length)>0&&d[25](d[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=d[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&h!==(h=d[53].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",d[6]),g[0]&32768&&m!==(m=d[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",m),g[0]&32768&&f!==(f=d[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&32768&&S!==(S=d[53].details?d[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",d[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",d[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",d[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",d[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",d[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",d[7])},d(d){d&&e.detach(t)}}}function ue(a){let t,n,r,s=a[21]("notFound")+"",i,l,c,u=a[21]("notFoundText")+"",h,m,f=a[10]==="true"&&me();return{c(){t=e.element("div"),f&&f.c(),n=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),h=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",m="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(S,d){e.insert(S,t,d),f&&f.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,h)},p(S,d){S[10]==="true"?f||(f=me(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),d[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),d[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(h,u),d[0]&1024&&m!==(m="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",m)},d(S){S&&e.detach(t),f&&f.d()}}}function me(a){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(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function xe(a){let t,n,r,s,i,l,c,u,h,m,f,S,d,g,T,j,D,P,I,N,b=a[9]==="true"&&re(a);function F(_,C){return _[18]?Ie:Ge}let G=F(a),v=G(a);return{c(){t=e.element("div"),n=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(),h=e.element("span"),m=e.svg_element("svg"),f=e.svg_element("path"),d=e.space(),b&&b.c(),T=e.space(),j=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=a[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Pe),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(m,"width","11"),e.attr(m,"height","11"),e.attr(m,"fill","none"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"class",S="SearchClearButton "+(a[9]!="true"?"WithoutCancel":"")+" "+(a[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(a[13]?"":"SearchAnimation")),e.attr(n,"class","SearchWrap"),e.attr(j,"class",D=a[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(W.getDevice(a[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,C){e.insert(_,t,C),e.append(t,n),e.append(n,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,a[12]),a[34](l),e.append(r,u),e.append(r,h),e.append(h,m),e.append(m,f),e.append(r,d),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,P),v.m(t,null),a[37](t),I||(N=[e.listen(l,"input",a[33]),e.listen(l,"focus",a[23]),e.listen(h,"click",a[35]),e.listen(j,"click",a[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(h,"class",S),_[9]==="true"?b?b.p(_,C):(b=re(_),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&&D!==(D=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",D),G===(G=F(_))&&v?v.p(_,C):(v.d(1),v=G(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),a[34](null),b&&b.d(),v.d(),a[37](null),I=!1,e.run_all(N)}}}let Pe=50;function Me(a,t,n){let r;e.component_subscribe(a,e.$format,o=>n(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:d=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:D="true"}=t,{notfoundicon:P="false"}=t,{mbsource:I}=t,N=window.navigator.userAgent,b=[],F=[],G={},v="",_,C=!0,M=!1,L=!1,E,O=!1,A,q,Z=[];const he=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{ee(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(te).forEach(o=>{ee(o,te[o])});const Y=o=>{o.data&&o.data.type=="SearchedItemClicked"&&we(o.data.gameId),o.data.type=="UserSessionID"&&(n(19,A=o.data.session),n(20,q=o.data.userid),n(32,O=!0)),o.data.type=="CategoryChange"&&H()},X=()=>{if(n(13,C=!1),n(17,M=!0),s&&i&&u&&v.length<2){n(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",W.getDevice(N)),w.push(pe(R,p[y]))}Promise.all(w).then(R=>{R=R.filter(function(z){return!!z}),n(15,b=R.map(z=>(z.isFavorite=K(z.id),z))),b.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(R=>{B("searchError","SearchWidget")})}}$(M),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")},B=(o,p)=>{typeof gtag=="function"&&gtag("event",o,{context:p})},fe=()=>{D!="true"&&H()},ge=o=>new Promise((p,w)=>{n(18,L=!0),fetch(o.href).then(y=>y.json()).then(y=>{n(18,L=!1),p(y)}).catch(y=>{n(18,L=!1),console.error(y),w(y)})}),pe=(o,p)=>new Promise((w,y)=>{n(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(n(18,L=!1),w(G[p])):fetch(o).then(k=>k.json()).then(k=>{n(18,L=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,L=!1),console.error(k),y(k)})}),_e=()=>{const o=new URL(`${s}/v1/player/${q}/favorites/`);n(18,L=!0);let p={method:"GET",headers:{"X-SessionID":A}};fetch(o.href,p).then(w=>w.json()).then(w=>{n(18,L=!1),Z=w.items.map(y=>y.id)})},Se=()=>{n(32,O=!0),n(19,A=l),n(20,q=c)},K=o=>Z.findIndex(p=>p==o)!==-1,be=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,z)=>{const Le=new Date(R.schedules[0].startTime),V=new Date(R.schedules[0].endTime);ae(new Date(V),new Date(k))<w&&(w=ae(new Date(V),new Date(k)),y=z),je(new Date(k),new Date(Le))&&Ee(new Date(k),new Date(V))&&(p=o[y].name)}),p},we=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)}},H=()=>{n(12,v=""),n(13,C=!0),n(18,L=!1),n(15,b=[]),n(17,M=!1),$(M)},Q=()=>{n(12,v=""),_.focus()},$=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},ve=()=>{Te(u)};e.onMount(()=>(window.addEventListener("message",Y,!1),()=>{window.removeEventListener("message",Y)}));function ye(){v=this.value,n(12,v)}function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,n(16,_)})}const Ce=()=>Q(),Re=()=>H();function Fe(o){e.binding_callbacks[o?"unshift":"push"](()=>{E=o,n(14,E)})}return a.$$set=o=>{"endpoint"in o&&n(0,s=o.endpoint),"datasource"in o&&n(28,i=o.datasource),"session"in o&&n(29,l=o.session),"userid"in o&&n(30,c=o.userid),"lang"in o&&n(1,u=o.lang),"clientstyling"in o&&n(2,h=o.clientstyling),"clientstylingurl"in o&&n(3,m=o.clientstylingurl),"integratedgameframedesktop"in o&&n(4,f=o.integratedgameframedesktop),"integratedgameframemobile"in o&&n(5,S=o.integratedgameframemobile),"showgamename"in o&&n(6,d=o.showgamename),"gamepagemodalurl"in o&&n(7,g=o.gamepagemodalurl),"translationurl"in o&&n(31,T=o.translationurl),"showfavorites"in o&&n(8,j=o.showfavorites),"cancelbutton"in o&&n(9,D=o.cancelbutton),"notfoundicon"in o&&n(10,P=o.notfoundicon),"mbsource"in o&&n(11,I=o.mbsource)},a.$$.update=()=>{if(a.$$.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",W.getDevice(N)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),ge(o).then(p=>{W.dispatchCustomEvent("game_search",{searchValue:v}),n(15,b=p.items.map(w=>(w.isFavorite=K(w.id),w)))})}else C||X();a.$$.dirty[0]&2&&u&&ve(),a.$$.dirty[1]&1&&T&&he(),a.$$.dirty[0]&1610612736&&l&&c&&Se(),a.$$.dirty[0]&256|a.$$.dirty[1]&2&&j&&O&&_e(),a.$$.dirty[0]&16388&&h&&E&&e.setClientStyling(E,h),a.$$.dirty[0]&16392&&m&&E&&e.setClientStylingURL(E,m),a.$$.dirty[0]&18432&&E&&e.setStreamStyling(E,`${I}.Style`)},[s,u,h,m,f,S,d,g,j,D,P,I,v,C,E,b,_,M,L,A,q,r,N,X,fe,be,H,Q,i,l,c,T,O,ye,ke,Ce,Re,Fe]}class de extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Me,xe,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},De,[-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(de,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=de;