@everymatrix/casino-search-nd 1.45.0 → 1.45.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnailNd-7H32R7MY.cjs");function Y(n,t){e.addMessages(n,t)}function Ce(n){e.$locale.set(n)}const K={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"Sırala:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",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."}};if(typeof window!="undefined"){let n=function(t){return function(...a){try{return t.apply(this,a)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-7H32R7MY.cjs")).then(t=>t.CasinoGameThumbnailNd_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function Re(n){e.append_styles(n,"svelte-lu371p",".svelte-lu371p.svelte-lu371p,.svelte-lu371p.svelte-lu371p::before,.svelte-lu371p.svelte-lu371p::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input.svelte-lu371p.svelte-lu371p{font-family:inherit}.CasinoSearch.svelte-lu371p.svelte-lu371p{margin:30px 40px;position:relative}.SearchWrap.svelte-lu371p.svelte-lu371p{width:100%;margin:auto}.OverlayCancel.svelte-lu371p.svelte-lu371p{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent.svelte-lu371p.svelte-lu371p{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.Search.svelte-lu371p.svelte-lu371p{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon.svelte-lu371p.svelte-lu371p{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon.svelte-lu371p svg.svelte-lu371p{height:14px;width:13px}.SearchInput.svelte-lu371p.svelte-lu371p{border-radius:4px;color:var(--emfe-w-color-gray-100, #E6E6E6);border:none;background:-webkit-linear-gradient(to left, 90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);background:linear-gradient(90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);border-radius:var(--emw--border-radius-medium, 20px);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;transition:3s}.SearchInput.svelte-lu371p.svelte-lu371p::placeholder{color:var(--emfe-w-color-white, #FFF);font-size:16px;font-weight:300}.SearchInput.svelte-lu371p.svelte-lu371p:focus{outline:1px solid var(--emfe-w-color-white, #FFF);background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E))}.SearchInput.svelte-lu371p.svelte-lu371p::-webkit-search-decoration,.SearchInput.svelte-lu371p.svelte-lu371p::-webkit-search-cancel-button,.SearchInput.svelte-lu371p.svelte-lu371p::-webkit-search-results-button,.SearchInput.svelte-lu371p.svelte-lu371p::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton.svelte-lu371p.svelte-lu371p{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel.svelte-lu371p.svelte-lu371p{right:18px}.SearchCancelButton.svelte-lu371p.svelte-lu371p{color:var(--emfe-w-color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage.svelte-lu371p.svelte-lu371p{font-size:18px;font-weight:600;margin:24px 0;color:var(--emfe-w-color-contrast, #000000)}.SearchErrorIcon.svelte-lu371p.svelte-lu371p{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer.svelte-lu371p.svelte-lu371p{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.svelte-lu371p.svelte-lu371p{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.svelte-lu371p.svelte-lu371p{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.svelte-lu371p.svelte-lu371p{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer.svelte-lu371p.svelte-lu371p{padding:0 2.4%}}.ResultsContainerError.svelte-lu371p.svelte-lu371p{text-align:center;width:300px;color:var(--emfe-w-color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.NotVisible.svelte-lu371p.svelte-lu371p{display:none}.Desktop.svelte-lu371p .NotVisible.svelte-lu371p{opacity:0;visibility:hidden;display:inline}.Desktop.svelte-lu371p .SearchWrap.svelte-lu371p{width:50%;margin:auto}.Desktop.CasinoSearch.svelte-lu371p.svelte-lu371p{margin:30px auto;position:relative}.Desktop.svelte-lu371p .ResultsContainerError.svelte-lu371p{text-align:center;width:300px;color:var(--emfe-w-color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop.svelte-lu371p .ResultsContainerError.WithIcon.svelte-lu371p{top:60%}.Desktop.svelte-lu371p .Search.svelte-lu371p{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop.svelte-lu371p .SearchIcon.svelte-lu371p{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop.svelte-lu371p .SearchClearButton.svelte-lu371p{position:relative;top:0;right:0;margin-left:-23px}.Desktop.svelte-lu371p .SearchCancelButton.svelte-lu371p{margin-left:20px}.Desktop.svelte-lu371p .SearchAnimation.svelte-lu371p{transform:scaleX(110%)}.Desktop.svelte-lu371p .SearchAnimation Input.svelte-lu371p{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E))}.Desktop.svelte-lu371p .SearchMessage.svelte-lu371p{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop.svelte-lu371p .SearchErrorIcon.svelte-lu371p{height:190px;margin-bottom:-70px}.Desktop.svelte-lu371p .OverlayCancel.svelte-lu371p{height:90vh;z-index:2}")}function X(n,t,a){const l=n.slice();return l[53]=t[a],l}function Q(n){let t,a=n[20]("cancel")+"",l,r,i,o;return{c(){t=e.element("small"),l=e.text(a),e.attr(t,"class",r="SearchCancelButton "+(n[12]?"NotVisible":"")+" svelte-lu371p")},m(c,u){e.insert(c,t,u),e.append(t,l),i||(o=e.listen(t,"click",n[35]),i=!0)},p(c,u){u[0]&1048576&&a!==(a=c[20]("cancel")+"")&&e.set_data(l,a),u[0]&4096&&r!==(r="SearchCancelButton "+(c[12]?"NotVisible":"")+" svelte-lu371p")&&e.attr(t,"class",r)},d(c){c&&e.detach(t),i=!1,o()}}}function Fe(n){let t,a,l,r;function i(d,p){if(d[16]==!0&&d[11].length<2)return Ee;if(d[14].length!=0)return Te}let o=i(n),c=o&&o(n),u=n[12]===!1&&ae(n),m=n[11].length>=2&&n[14].length==0&&le(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),l=e.space(),m&&m.c(),e.attr(a,"class",r="SearchResultsContainer "+(n[16]==!0?"":"NotVisible")+" svelte-lu371p")},m(d,p){c&&c.m(d,p),e.insert(d,t,p),e.insert(d,a,p),u&&u.m(a,null),e.append(a,l),m&&m.m(a,null)},p(d,p){o===(o=i(d))&&c?c.p(d,p):(c&&c.d(1),c=o&&o(d),c&&(c.c(),c.m(t.parentNode,t))),d[12]===!1?u?u.p(d,p):(u=ae(d),u.c(),u.m(a,l)):u&&(u.d(1),u=null),d[11].length>=2&&d[14].length==0?m?m.p(d,p):(m=le(d),m.c(),m.m(a,null)):m&&(m.d(1),m=null),p[0]&65536&&r!==(r="SearchResultsContainer "+(d[16]==!0?"":"NotVisible")+" svelte-lu371p")&&e.attr(a,"class",r)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),m&&m.d()}}}function Le(n){let t,a=n[20]("loading")+"",l;return{c(){t=e.element("p"),l=e.text(a),e.attr(t,"class","LoadingContent svelte-lu371p")},m(r,i){e.insert(r,t,i),e.append(t,l)},p(r,i){i[0]&1048576&&a!==(a=r[20]("loading")+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function Te(n){let t,a=n[20]("searchResult")+"",l;return{c(){t=e.element("p"),l=e.text(a),e.attr(t,"class","SearchMessage svelte-lu371p")},m(r,i){e.insert(r,t,i),e.append(t,l)},p(r,i){i[0]&1048576&&a!==(a=r[20]("searchResult")+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function Ee(n){let t,a,l=n[14].length!==0&&$(n),r=n[14].length==0&&ee(n);return{c(){l&&l.c(),t=e.space(),r&&r.c(),a=e.empty()},m(i,o){l&&l.m(i,o),e.insert(i,t,o),r&&r.m(i,o),e.insert(i,a,o)},p(i,o){i[14].length!==0?l?l.p(i,o):(l=$(i),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null),i[14].length==0?r?r.p(i,o):(r=ee(i),r.c(),r.m(a.parentNode,a)):r&&(r.d(1),r=null)},d(i){i&&(e.detach(t),e.detach(a)),l&&l.d(i),r&&r.d(i)}}}function $(n){let t,a=n[20]("recentSearch")+"",l;return{c(){t=e.element("p"),l=e.text(a),e.attr(t,"class","SearchMessage svelte-lu371p")},m(r,i){e.insert(r,t,i),e.append(t,l)},p(r,i){i[0]&1048576&&a!==(a=r[20]("recentSearch")+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function ee(n){let t,a,l,r=n[20]("noRecentSearches")+"",i,o,c=n[10]==="true"&&te();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),l=e.element("p"),i=e.text(r),e.attr(l,"class","SearchMessage svelte-lu371p"),e.attr(t,"class",o="ResultsContainerError "+(n[10]=="true"?"WithIcon":"")+" svelte-lu371p")},m(u,m){e.insert(u,t,m),c&&c.m(t,null),e.append(t,a),e.append(t,l),e.append(l,i)},p(u,m){u[10]==="true"?c||(c=te(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),m[0]&1048576&&r!==(r=u[20]("noRecentSearches")+"")&&e.set_data(i,r),m[0]&1024&&o!==(o="ResultsContainerError "+(u[10]=="true"?"WithIcon":"")+" svelte-lu371p")&&e.attr(t,"class",o)},d(u){u&&e.detach(t),c&&c.d()}}}function te(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-lu371p"><rect x="40" width="160" height="160" rx="80" fill="var(--emfe-w-color-contrast, #E6E6E6)" fill-opacity="0.6" class="svelte-lu371p"></rect><path d="M152 112L136 96" stroke="var(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round" class="svelte-lu371p"></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(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="svelte-lu371p"></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(--emfe-w-color-contrast, #131313)" class="svelte-lu371p"></path></svg>',e.attr(t,"class","SearchErrorIcon svelte-lu371p")},m(a,l){e.insert(a,t,l)},d(a){a&&e.detach(t)}}}function ae(n){let t,a=e.ensure_array_like(n[14]),l=[];for(let r=0;r<a.length;r+=1)l[r]=ne(X(n,a,r));return{c(){for(let r=0;r<l.length;r+=1)l[r].c();t=e.empty()},m(r,i){for(let o=0;o<l.length;o+=1)l[o]&&l[o].m(r,i);e.insert(r,t,i)},p(r,i){if(i[0]&17580543){a=e.ensure_array_like(r[14]);let o;for(o=0;o<a.length;o+=1){const c=X(r,a,o);l[o]?l[o].p(c,i):(l[o]=ne(c),l[o].c(),l[o].m(t.parentNode,t))}for(;o<l.length;o+=1)l[o].d(1);l.length=a.length}},d(r){r&&e.detach(t),e.destroy_each(l,r)}}}function ne(n){let t,a,l,r,i,o,c,u,m,d,p,w;return{c(){var h;t=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[18]),e.set_custom_element_data(t,"userid",n[19]),e.set_custom_element_data(t,"favorites",n[8]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",l=n[53].name),e.set_custom_element_data(t,"gamevendor",r=n[53].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",o=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[24](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",m=n[53].id),e.set_custom_element_data(t,"showgamename",n[6]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",p=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",w=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[4]),e.set_custom_element_data(t,"integratedgameframemobile",n[5]),e.set_custom_element_data(t,"clientstyling",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[3]),e.set_custom_element_data(t,"gamepagemodalurl",n[7]),e.set_custom_element_data(t,"class","svelte-lu371p")},m(h,g){e.insert(h,t,g)},p(h,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),g[0]&262144&&e.set_custom_element_data(t,"session",h[18]),g[0]&524288&&e.set_custom_element_data(t,"userid",h[19]),g[0]&256&&e.set_custom_element_data(t,"favorites",h[8]),g[0]&2&&e.set_custom_element_data(t,"lang",h[1]),g[0]&16384&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&16384&&l!==(l=h[53].name)&&e.set_custom_element_data(t,"gamename",l),g[0]&16384&&r!==(r=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",r),g[0]&16384&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&16384&&o!==(o=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",o),g[0]&16384&&c!==(c=((T=h[53].advancedTags)==null?void 0:T.length)>0&&h[24](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&16384&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&16384&&m!==(m=h[53].id)&&e.set_custom_element_data(t,"gameid",m),g[0]&64&&e.set_custom_element_data(t,"showgamename",h[6]),g[0]&16384&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&16384&&p!==(p=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",p),g[0]&16384&&w!==(w=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",w),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",h[4]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",h[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",h[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",h[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",h[7])},d(h){h&&e.detach(t)}}}function le(n){let t,a,l,r=n[20]("notFound")+"",i,o,c,u=n[20]("notFoundText")+"",m,d,p=n[10]==="true"&&se();return{c(){t=e.element("div"),p&&p.c(),a=e.space(),l=e.element("p"),i=e.text(r),o=e.space(),c=e.element("p"),m=e.text(u),e.attr(l,"class","SearchMessage svelte-lu371p"),e.attr(c,"class","svelte-lu371p"),e.attr(t,"class",d="ResultsContainerError "+(n[10]=="true"?"WithIcon":"")+" svelte-lu371p")},m(w,h){e.insert(w,t,h),p&&p.m(t,null),e.append(t,a),e.append(t,l),e.append(l,i),e.append(t,o),e.append(t,c),e.append(c,m)},p(w,h){w[10]==="true"?p||(p=se(),p.c(),p.m(t,a)):p&&(p.d(1),p=null),h[0]&1048576&&r!==(r=w[20]("notFound")+"")&&e.set_data(i,r),h[0]&1048576&&u!==(u=w[20]("notFoundText")+"")&&e.set_data(m,u),h[0]&1024&&d!==(d="ResultsContainerError "+(w[10]=="true"?"WithIcon":"")+" svelte-lu371p")&&e.attr(t,"class",d)},d(w){w&&e.detach(t),p&&p.d()}}}function se(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-lu371p"><rect x="40" width="160" height="160" rx="80" fill="var(--emfe-w-color-contrast, #E6E6E6)" fill-opacity="0.6" class="svelte-lu371p"></rect><path d="M152 112L136 96" stroke="var(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round" class="svelte-lu371p"></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(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="svelte-lu371p"></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(--emfe-w-color-contrast, #131313)" class="svelte-lu371p"></path></svg>',e.attr(t,"class","SearchErrorIcon svelte-lu371p")},m(a,l){e.insert(a,t,l)},d(a){a&&e.detach(t)}}}function je(n){let t,a,l,r,i,o,c,u,m,d,p,w,h,g,T,E,I,P,G,j,S=n[9]==="true"&&Q(n);function x(v,y){return v[17]?Le:Fe}let R=x(n),C=R(n);return{c(){t=e.element("div"),a=e.element("div"),l=e.element("div"),r=e.element("div"),r.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-lu371p"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373" class="svelte-lu371p"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5" class="svelte-lu371p"></circle></svg>',i=e.space(),o=e.element("input"),u=e.space(),m=e.element("span"),d=e.svg_element("svg"),p=e.svg_element("path"),h=e.space(),S&&S.c(),T=e.space(),E=e.element("div"),P=e.space(),C.c(),e.attr(r,"class","SearchIcon svelte-lu371p"),e.attr(o,"class","SearchInput svelte-lu371p"),e.attr(o,"type","search"),e.attr(o,"placeholder",c=n[20]("placeHolderSearchGames")),e.attr(o,"maxlength",Ie),e.attr(p,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(p,"stroke","#717171"),e.attr(p,"stroke-width","2"),e.attr(p,"stroke-linecap","round"),e.attr(p,"stroke-linejoin","round"),e.attr(p,"class","svelte-lu371p"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"class","svelte-lu371p"),e.attr(m,"class",w="SearchClearButton "+(n[9]!="true"?"WithoutCancel":"")+" "+(n[11].length!=0?"":"NotVisible")+" svelte-lu371p"),e.attr(l,"class",g="Search "+(n[12]?"":"SearchAnimation")+" svelte-lu371p"),e.attr(a,"class","SearchWrap svelte-lu371p"),e.attr(E,"class",I=e.null_to_empty(n[9]!="true"?"OverlayCancel":"")+" svelte-lu371p"),e.attr(t,"class",(e.getDevice(n[21])!=="PC"?"":"Desktop")+" CasinoSearch svelte-lu371p")},m(v,y){e.insert(v,t,y),e.append(t,a),e.append(a,l),e.append(l,r),e.append(l,i),e.append(l,o),e.set_input_value(o,n[11]),n[33](o),e.append(l,u),e.append(l,m),e.append(m,d),e.append(d,p),e.append(l,h),S&&S.m(l,null),e.append(t,T),e.append(t,E),e.append(t,P),C.m(t,null),n[36](t),G||(j=[e.listen(o,"input",n[32]),e.listen(o,"focus",n[22]),e.listen(m,"click",n[34]),e.listen(E,"click",n[23])],G=!0)},p(v,y){y[0]&1048576&&c!==(c=v[20]("placeHolderSearchGames"))&&e.attr(o,"placeholder",c),y[0]&2048&&o.value!==v[11]&&e.set_input_value(o,v[11]),y[0]&2560&&w!==(w="SearchClearButton "+(v[9]!="true"?"WithoutCancel":"")+" "+(v[11].length!=0?"":"NotVisible")+" svelte-lu371p")&&e.attr(m,"class",w),v[9]==="true"?S?S.p(v,y):(S=Q(v),S.c(),S.m(l,null)):S&&(S.d(1),S=null),y[0]&4096&&g!==(g="Search "+(v[12]?"":"SearchAnimation")+" svelte-lu371p")&&e.attr(l,"class",g),y[0]&512&&I!==(I=e.null_to_empty(v[9]!="true"?"OverlayCancel":"")+" svelte-lu371p")&&e.attr(E,"class",I),R===(R=x(v))&&C?C.p(v,y):(C.d(1),C=R(v),C&&(C.c(),C.m(t,null)))},i:e.noop,o:e.noop,d(v){v&&e.detach(t),n[33](null),S&&S.d(),C.d(),n[36](null),G=!1,e.run_all(j)}}}let Ie=50;function Ge(n,t,a){let l;e.component_subscribe(n,e.$format,s=>a(20,l=s));let{endpoint:r=""}=t,{datasource:i=""}=t,{session:o=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:m=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:p="false"}=t,{integratedgameframemobile:w="false"}=t,{showgamename:h=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:E=""}=t,{cancelbutton:I="true"}=t,{notfoundicon:P="false"}=t,G=window.navigator.userAgent,j=[],S=[],x={},R="",C,v=!0,y=!1,L=!1,z,D=!1,A,B,W=[];const oe=()=>{fetch(T).then(f=>f.json()).then(f=>{Object.keys(f).forEach(_=>{Y(_,f[_])})}).catch(f=>{console.log(f)})};Object.keys(K).forEach(s=>{Y(s,K[s])});const O=s=>{s.data&&s.data.type=="SearchedItemClicked"&&pe(s.data.gameId),s.data.type=="UserSessionID"&&(a(18,A=s.data.session),a(19,B=s.data.userid),a(31,D=!0)),s.data.type=="CategoryChange"&&H()},U=()=>{if(a(12,v=!1),a(16,y=!0),r&&i&&u&&R.length<2){a(14,j=[]);let s=localStorage.getItem("searchedGamesWds_casino"),f=[];s&&(f=s.split(","));let _=[],b=0,k=f.length;if(k>0){for(b=0;b<k;b++){let F=new URL(`${r}/v1/casino/games/${f[b]}`);F.searchParams.append("language",u),F.searchParams.append("datasource",i),F.searchParams.append("platform",e.getDevice(G)),_.push(ue(F,f[b]))}Promise.all(_).then(F=>{F=F.filter(function(N){return!!N}),a(14,j=F.map(N=>(N.isFavorite=V(N.id),N))),j.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(F=>{M("searchError","SearchWidget")})}}Z(y),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(s,f)=>{typeof gtag=="function"&&gtag("event",s,{context:f})},ie=()=>{I!="true"&&H()},ce=s=>new Promise((f,_)=>{a(17,L=!0),fetch(s.href).then(b=>b.json()).then(b=>{a(17,L=!1),f(b)}).catch(b=>{a(17,L=!1),console.error(b),_(b)})}),ue=(s,f)=>new Promise((_,b)=>{a(17,L=!0),f&&Object.keys(x).indexOf(f)>=0?(a(17,L=!1),_(x[f])):fetch(s).then(k=>k.json()).then(k=>{a(17,L=!1),k.error||(x[k[0].gameId]=k[0]),_(k[0])}).catch(k=>{a(17,L=!1),console.error(k),b(k)})}),de=()=>{const s=new URL(`${r}/v1/player/${B}/favorites/`);a(17,L=!0);let f={method:"GET",headers:{"X-SessionID":A}};fetch(s.href,f).then(_=>_.json()).then(_=>{a(17,L=!1),W=_.items.map(b=>b.id)})},he=()=>{a(31,D=!0),a(18,A=o),a(19,B=c)},V=s=>W.findIndex(f=>f==s)!==-1,me=s=>{if((s==null?void 0:s.length)===0)return"";let f,_=99999999999,b;const k=new Date(Date.now());return s.forEach((F,N)=>{const ye=new Date(F.schedules[0].startTime),q=new Date(F.schedules[0].endTime);e.hooks(q).diff(k)<_&&(_=e.hooks(q).diff(k),b=N),e.hooks(k).isAfter(ye)&&e.hooks(k).isBefore(q)&&(f=s[b].name)}),f},pe=s=>{if(S=localStorage.getItem("searchedGamesWds_casino"),S?S=S.split(","):S=[],S.indexOf(s)===-1){let f;S.unshift(s),f=S.join(","),localStorage.setItem("searchedGamesWds_casino",f)}},H=()=>{a(11,R=""),a(12,v=!0),a(17,L=!1),a(14,j=[]),a(16,y=!1),Z(y)},J=()=>{a(11,R=""),C.focus()},Z=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},fe=()=>{Ce(u)},ge=()=>{let s=document.createElement("style");s.innerHTML=m,z.appendChild(s)},_e=()=>{let s=new URL(d),f=document.createElement("style");fetch(s.href).then(_=>_.text()).then(_=>{f.innerHTML=_,setTimeout(()=>{z.appendChild(f)},1)})};e.onMount(()=>(window.addEventListener("message",O,!1),()=>{window.removeEventListener("message",O)}));function ve(){R=this.value,a(11,R)}function Se(s){e.binding_callbacks[s?"unshift":"push"](()=>{C=s,a(15,C)})}const we=()=>J(),be=()=>H();function ke(s){e.binding_callbacks[s?"unshift":"push"](()=>{z=s,a(13,z)})}return n.$$set=s=>{"endpoint"in s&&a(0,r=s.endpoint),"datasource"in s&&a(27,i=s.datasource),"session"in s&&a(28,o=s.session),"userid"in s&&a(29,c=s.userid),"lang"in s&&a(1,u=s.lang),"clientstyling"in s&&a(2,m=s.clientstyling),"clientstylingurl"in s&&a(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&a(4,p=s.integratedgameframedesktop),"integratedgameframemobile"in s&&a(5,w=s.integratedgameframemobile),"showgamename"in s&&a(6,h=s.showgamename),"gamepagemodalurl"in s&&a(7,g=s.gamepagemodalurl),"translationurl"in s&&a(30,T=s.translationurl),"showfavorites"in s&&a(8,E=s.showfavorites),"cancelbutton"in s&&a(9,I=s.cancelbutton),"notfoundicon"in s&&a(10,P=s.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&134223875)if(R.length>=2){const s=new URL(`${r}/v1/casino/games`);s.searchParams.append("datasource",i),s.searchParams.append("expand","vendor"),s.searchParams.append("platform",e.getDevice(G)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${R}`),ce(s).then(f=>{a(14,j=f.items.map(_=>(_.isFavorite=V(_.id),_)))})}else v||U();n.$$.dirty[0]&2&&u&&fe(),n.$$.dirty[0]&1073741824&&T&&oe(),n.$$.dirty[0]&805306368&&o&&c&&he(),n.$$.dirty[0]&256|n.$$.dirty[1]&1&&E&&D&&de(),n.$$.dirty[0]&8196&&m&&z&&ge(),n.$$.dirty[0]&8200&&d&&z&&_e()},[r,u,m,d,p,w,h,g,E,I,P,R,v,z,j,C,y,L,A,B,l,G,U,ie,me,H,J,i,o,c,T,D,ve,Se,we,be,ke]}class re extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ge,je,e.safe_not_equal,{endpoint:0,datasource:27,session:28,userid:29,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:30,showfavorites:8,cancelbutton:9,notfoundicon:10},Re,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[27]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[28]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[29]}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[30]}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()}}e.create_custom_element(re,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=re;