@everymatrix/casino-search 1.86.1 → 1.86.3

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.
Files changed (26) hide show
  1. package/components/CasinoGameThumbnail-Dvb34N_e.cjs +64 -0
  2. package/components/{CasinoGameThumbnail-G_e-1fOs.js → CasinoGameThumbnail-PL69fscs.js} +1738 -1759
  3. package/components/{CasinoGameThumbnail-B8gSdop-.js → CasinoGameThumbnail-tWEx5vgX.js} +1755 -1776
  4. package/components/{CasinoSearch-Bu9XPiUi.cjs → CasinoSearch-BYtXuFjj.cjs} +1 -1
  5. package/components/{CasinoSearch-C6ZQ-wb3.js → CasinoSearch-CU6K30We.js} +50 -50
  6. package/components/{CasinoSearch-D8esX7vX.js → CasinoSearch-CUp2ft2g.js} +48 -48
  7. package/es2015/casino-search.cjs +1 -1
  8. package/es2015/casino-search.js +1 -1
  9. package/esnext/casino-search.js +1 -1
  10. package/package.json +1 -1
  11. package/stencil/index-97d17652-DvplcHtm.js +558 -0
  12. package/stencil/index-97d17652-ILzgTtTR.cjs +1 -0
  13. package/stencil/index-97d17652-p-iQtjus.js +542 -0
  14. package/stencil/{ui-image-BX-FBhad.cjs → ui-image-BDXyFHck.cjs} +1 -1
  15. package/stencil/{ui-image-CP8Lp7fB.js → ui-image-Cc8wLmDe.js} +1 -1
  16. package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CBB2FKRZ.js} +1 -1
  17. package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-DjCO-ZF4.cjs} +1 -1
  18. package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-rCWcyktd.js} +1 -1
  19. package/stencil/{ui-image-Ch-GHki1.js → ui-image-wH6lu7wS.js} +1 -1
  20. package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-BESQEo1l.js} +2 -2
  21. package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-BfZmduAK.js} +2 -2
  22. package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-ZFidgTXM.cjs} +1 -1
  23. package/components/CasinoGameThumbnail-DXJvwA9Y.cjs +0 -64
  24. package/stencil/index-97d17652-B6BYeRne.js +0 -542
  25. package/stencil/index-97d17652-BOr4KAqq.js +0 -558
  26. package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var $=(a,t,n)=>new Promise((r,s)=>{var i=u=>{try{c(n.next(u))}catch(h){s(h)}},l=u=>{try{c(n.throw(u))}catch(h){s(h)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,l);c((n=n.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnail-DXJvwA9Y.cjs");function ee(a,t){e.addMessages(a,t)}function je(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."}},De=(a,t)=>function(...n){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{a.apply(this,n)},t)};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-DXJvwA9Y.cjs")).then(t=>t.CasinoGameThumbnail_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}function V(a){"@babel/helpers - typeof";return V=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},V(a)}function W(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function P(a){W(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||V(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 W(2,arguments),P(a).getTime()-P(t).getTime()}function Ee(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()>r.getTime()}function Ge(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()<r.getTime()}function Ie(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[55]=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[16]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",a[37]),i=!0)},p(c,u){u[0]&2097152&&n!==(n=c[21]("cancel")+"")&&e.set_data(r,n),u[0]&65536&&s!==(s="SearchCancelButton "+(c[16]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function ze(a){let t,n,r,s;function i(m,f){if(m[17]==!0&&m[14].length<2)return xe;if(m[13].length!=0)return Pe}let l=i(a),c=l&&l(a),u=a[16]===!1&&ie(a),h=a[14].length>=2&&a[13].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[16]===!1?u?u.p(m,f):(u=ie(m),u.c(),u.m(n,r)):u&&(u.d(1),u=null),m[14].length>=2&&m[13].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 Ne(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 Pe(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 xe(a){let t,n,r=a[13].length!==0&&se(a),s=a[13].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[13].length!==0?r?r.p(i,l):(r=se(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[13].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[13]),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]&35138047){n=e.ensure_array_like(s[13]);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[55].thumbnail),e.set_custom_element_data(t,"gamename",r=a[55].name),e.set_custom_element_data(t,"gamevendor",s=a[55].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=a[55].launchUrl),e.set_custom_element_data(t,"gameisnew",l=a[55].isNew),e.set_custom_element_data(t,"gametag",c=((d=a[55].advancedTags)==null?void 0:d.length)>0&&a[25](a[55].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=a[55].cellSize),e.set_custom_element_data(t,"gameid",h=a[55].id),e.set_custom_element_data(t,"showgamename",a[6]),e.set_custom_element_data(t,"gamefunmode",m=a[55].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=a[55].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=a[55].details?a[55].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 L;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]&8192&&n!==(n=d[55].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&8192&&r!==(r=d[55].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&8192&&s!==(s=d[55].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&8192&&i!==(i=d[55].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&8192&&l!==(l=d[55].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&8192&&c!==(c=((L=d[55].advancedTags)==null?void 0:L.length)>0&&d[25](d[55].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&8192&&u!==(u=d[55].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&8192&&h!==(h=d[55].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",d[6]),g[0]&8192&&m!==(m=d[55].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",m),g[0]&8192&&f!==(f=d[55].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&8192&&S!==(S=d[55].details?d[55].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 Me(a){let t,n,r,s,i,l,c,u,h,m,f,S,d,g,L,j,E,x,I,N,b=a[9]==="true"&&re(a);function F(_,C){return _[18]?Ne:ze}let G=F(a),y=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(),L=e.space(),j=e.element("div"),x=e.space(),y.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",Be),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[14].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(a[16]?"":"SearchAnimation")),e.attr(n,"class","SearchWrap"),e.attr(j,"class",E=a[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.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[14]),a[35](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,L),e.append(t,j),e.append(t,x),y.m(t,null),a[38](t),I||(N=[e.listen(l,"input",a[34]),e.listen(l,"focus",a[23]),e.listen(l,"input",a[28]),e.listen(h,"click",a[36]),e.listen(j,"click",a[24])],I=!0)},p(_,C){C[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),C[0]&16384&&l.value!==_[14]&&e.set_input_value(l,_[14]),C[0]&16896&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[14].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]&65536&&g!==(g="Search "+(_[16]?"":"SearchAnimation"))&&e.attr(r,"class",g),C[0]&512&&E!==(E=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",E),G===(G=F(_))&&y?y.p(_,C):(y.d(1),y=G(_),y&&(y.c(),y.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),a[35](null),b&&b.d(),y.d(),a[38](null),I=!1,e.run_all(N)}}}let Be=50;function Oe(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:L=""}=t,{showfavorites:j=""}=t,{cancelbutton:E="true"}=t,{notfoundicon:x="false"}=t,{mbsource:I}=t,N=window.navigator.userAgent,b=[],F=[],G={},y="",_,C=!0,M=!1,T=!1,D,O=!1,A,q,J=[];const he=()=>{fetch(L).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 Z=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(33,O=!0)),o.data.type=="CategoryChange"&&H()},Y=()=>{if(n(16,C=!1),n(17,M=!0),s&&i&&u&&y.length<2){n(13,b=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let w=[],v=0,k=p.length;if(k>0){for(v=0;v<k;v++){let R=new URL(`${s}/v1/casino/games/${p[v]}`);R.searchParams.append("language",u),R.searchParams.append("datasource",i),R.searchParams.append("platform",e.getDevice(N)),w.push(pe(R,p[v]))}Promise.all(w).then(R=>{R=R.filter(function(z){return!!z}),n(13,b=R.map(z=>(z.isFavorite=X(z.id),z))),b.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(R=>{B("searchError","SearchWidget")})}}Q(M),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")},B=(o,p)=>{typeof gtag=="function"&&gtag("event",o,{context:p})},fe=()=>{E!="true"&&H()},ge=o=>new Promise((p,w)=>{n(18,T=!0),fetch(o.href).then(v=>v.json()).then(v=>{n(18,T=!1),p(v)}).catch(v=>{n(18,T=!1),console.error(v),w(v)})}),pe=(o,p)=>new Promise((w,v)=>{n(18,T=!0),p&&Object.keys(G).indexOf(p)>=0?(n(18,T=!1),w(G[p])):fetch(o).then(k=>k.json()).then(k=>{n(18,T=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,T=!1),console.error(k),v(k)})}),_e=()=>{const o=new URL(`${s}/v1/player/${q}/favorites/`);n(18,T=!0);let p={method:"GET",headers:{"X-SessionID":A}};fetch(o.href,p).then(w=>w.json()).then(w=>{n(18,T=!1),J=w.items.map(v=>v.id)})},Se=()=>{n(33,O=!0),n(19,A=l),n(20,q=c)},X=o=>J.findIndex(p=>p==o)!==-1,be=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,v;const k=new Date(Date.now());return o.forEach((R,z)=>{const Le=new Date(R.schedules[0].startTime),U=new Date(R.schedules[0].endTime);ae(new Date(U),new Date(k))<w&&(w=ae(new Date(U),new Date(k)),v=z),Ee(new Date(k),new Date(Le))&&Ge(new Date(k),new Date(U))&&(p=o[v].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(14,y=""),n(16,C=!0),n(18,T=!1),n(13,b=[]),n(17,M=!1),Q(M)},K=()=>{n(14,y=""),_.focus()},Q=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},ye=()=>{je(u)},ve=De(()=>$(this,null,function*(){if(y.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(N)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${y}`),ge(o).then(p=>{n(13,b=p.items.map(w=>(w.isFavorite=X(w.id),w)))})}else C||Y()}),500);e.onMount(()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}));function ke(){y=this.value,n(14,y)}function Ce(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,n(15,_)})}const Re=()=>K(),Fe=()=>H();function Te(o){e.binding_callbacks[o?"unshift":"push"](()=>{D=o,n(12,D)})}return a.$$set=o=>{"endpoint"in o&&n(0,s=o.endpoint),"datasource"in o&&n(29,i=o.datasource),"session"in o&&n(30,l=o.session),"userid"in o&&n(31,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(32,L=o.translationurl),"showfavorites"in o&&n(8,j=o.showfavorites),"cancelbutton"in o&&n(9,E=o.cancelbutton),"notfoundicon"in o&&n(10,x=o.notfoundicon),"mbsource"in o&&n(11,I=o.mbsource)},a.$$.update=()=>{a.$$.dirty[0]&2&&u&&ye(),a.$$.dirty[1]&2&&L&&he(),a.$$.dirty[0]&1073741824|a.$$.dirty[1]&1&&l&&c&&Se(),a.$$.dirty[0]&256|a.$$.dirty[1]&4&&j&&O&&_e(),a.$$.dirty[0]&4100&&h&&D&&e.setClientStyling(D,h),a.$$.dirty[0]&4104&&m&&D&&e.setClientStylingURL(D,m),a.$$.dirty[0]&6144&&D&&e.setStreamStyling(D,`${I}.Style`)},[s,u,h,m,f,S,d,g,j,E,x,I,D,b,y,_,C,M,T,A,q,r,N,Y,fe,be,H,K,ve,i,l,c,L,O,ke,Ce,Re,Fe,Te]}class de extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Oe,Me,e.safe_not_equal,{endpoint:0,datasource:29,session:30,userid:31,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:32,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ie,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[29]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[30]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[31]}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[32]}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
+ "use strict";var $=(a,t,n)=>new Promise((r,s)=>{var i=u=>{try{c(n.next(u))}catch(h){s(h)}},l=u=>{try{c(n.throw(u))}catch(h){s(h)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,l);c((n=n.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnail-Dvb34N_e.cjs");function ee(a,t){e.addMessages(a,t)}function je(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."}},De=(a,t)=>function(...n){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{a.apply(this,n)},t)};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-Dvb34N_e.cjs")).then(t=>t.CasinoGameThumbnail_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}function V(a){"@babel/helpers - typeof";return V=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},V(a)}function W(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function P(a){W(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||V(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 W(2,arguments),P(a).getTime()-P(t).getTime()}function Ee(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()>r.getTime()}function Ge(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()<r.getTime()}function Ie(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[55]=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[16]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",a[37]),i=!0)},p(c,u){u[0]&2097152&&n!==(n=c[21]("cancel")+"")&&e.set_data(r,n),u[0]&65536&&s!==(s="SearchCancelButton "+(c[16]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function ze(a){let t,n,r,s;function i(m,f){if(m[17]==!0&&m[14].length<2)return xe;if(m[13].length!=0)return Pe}let l=i(a),c=l&&l(a),u=a[16]===!1&&ie(a),h=a[14].length>=2&&a[13].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[16]===!1?u?u.p(m,f):(u=ie(m),u.c(),u.m(n,r)):u&&(u.d(1),u=null),m[14].length>=2&&m[13].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 Ne(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 Pe(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 xe(a){let t,n,r=a[13].length!==0&&se(a),s=a[13].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[13].length!==0?r?r.p(i,l):(r=se(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[13].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[13]),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]&35138047){n=e.ensure_array_like(s[13]);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[55].thumbnail),e.set_custom_element_data(t,"gamename",r=a[55].name),e.set_custom_element_data(t,"gamevendor",s=a[55].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=a[55].launchUrl),e.set_custom_element_data(t,"gameisnew",l=a[55].isNew),e.set_custom_element_data(t,"gametag",c=((d=a[55].advancedTags)==null?void 0:d.length)>0&&a[25](a[55].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=a[55].cellSize),e.set_custom_element_data(t,"gameid",h=a[55].id),e.set_custom_element_data(t,"showgamename",a[6]),e.set_custom_element_data(t,"gamefunmode",m=a[55].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=a[55].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=a[55].details?a[55].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 L;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]&8192&&n!==(n=d[55].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&8192&&r!==(r=d[55].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&8192&&s!==(s=d[55].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&8192&&i!==(i=d[55].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&8192&&l!==(l=d[55].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&8192&&c!==(c=((L=d[55].advancedTags)==null?void 0:L.length)>0&&d[25](d[55].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&8192&&u!==(u=d[55].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&8192&&h!==(h=d[55].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",d[6]),g[0]&8192&&m!==(m=d[55].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",m),g[0]&8192&&f!==(f=d[55].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&8192&&S!==(S=d[55].details?d[55].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 Me(a){let t,n,r,s,i,l,c,u,h,m,f,S,d,g,L,j,E,x,I,N,b=a[9]==="true"&&re(a);function F(_,C){return _[18]?Ne:ze}let G=F(a),y=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(),L=e.space(),j=e.element("div"),x=e.space(),y.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",Be),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[14].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(a[16]?"":"SearchAnimation")),e.attr(n,"class","SearchWrap"),e.attr(j,"class",E=a[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.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[14]),a[35](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,L),e.append(t,j),e.append(t,x),y.m(t,null),a[38](t),I||(N=[e.listen(l,"input",a[34]),e.listen(l,"focus",a[23]),e.listen(l,"input",a[28]),e.listen(h,"click",a[36]),e.listen(j,"click",a[24])],I=!0)},p(_,C){C[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),C[0]&16384&&l.value!==_[14]&&e.set_input_value(l,_[14]),C[0]&16896&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[14].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]&65536&&g!==(g="Search "+(_[16]?"":"SearchAnimation"))&&e.attr(r,"class",g),C[0]&512&&E!==(E=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",E),G===(G=F(_))&&y?y.p(_,C):(y.d(1),y=G(_),y&&(y.c(),y.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),a[35](null),b&&b.d(),y.d(),a[38](null),I=!1,e.run_all(N)}}}let Be=50;function Oe(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:L=""}=t,{showfavorites:j=""}=t,{cancelbutton:E="true"}=t,{notfoundicon:x="false"}=t,{mbsource:I}=t,N=window.navigator.userAgent,b=[],F=[],G={},y="",_,C=!0,M=!1,T=!1,D,O=!1,A,q,J=[];const he=()=>{fetch(L).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 Z=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(33,O=!0)),o.data.type=="CategoryChange"&&H()},Y=()=>{if(n(16,C=!1),n(17,M=!0),s&&i&&u&&y.length<2){n(13,b=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let w=[],v=0,k=p.length;if(k>0){for(v=0;v<k;v++){let R=new URL(`${s}/v1/casino/games/${p[v]}`);R.searchParams.append("language",u),R.searchParams.append("datasource",i),R.searchParams.append("platform",e.getDevice(N)),w.push(pe(R,p[v]))}Promise.all(w).then(R=>{R=R.filter(function(z){return!!z}),n(13,b=R.map(z=>(z.isFavorite=X(z.id),z))),b.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(R=>{B("searchError","SearchWidget")})}}Q(M),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")},B=(o,p)=>{typeof gtag=="function"&&gtag("event",o,{context:p})},fe=()=>{E!="true"&&H()},ge=o=>new Promise((p,w)=>{n(18,T=!0),fetch(o.href).then(v=>v.json()).then(v=>{n(18,T=!1),p(v)}).catch(v=>{n(18,T=!1),console.error(v),w(v)})}),pe=(o,p)=>new Promise((w,v)=>{n(18,T=!0),p&&Object.keys(G).indexOf(p)>=0?(n(18,T=!1),w(G[p])):fetch(o).then(k=>k.json()).then(k=>{n(18,T=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,T=!1),console.error(k),v(k)})}),_e=()=>{const o=new URL(`${s}/v1/player/${q}/favorites/`);n(18,T=!0);let p={method:"GET",headers:{"X-SessionID":A}};fetch(o.href,p).then(w=>w.json()).then(w=>{n(18,T=!1),J=w.items.map(v=>v.id)})},Se=()=>{n(33,O=!0),n(19,A=l),n(20,q=c)},X=o=>J.findIndex(p=>p==o)!==-1,be=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,v;const k=new Date(Date.now());return o.forEach((R,z)=>{const Le=new Date(R.schedules[0].startTime),U=new Date(R.schedules[0].endTime);ae(new Date(U),new Date(k))<w&&(w=ae(new Date(U),new Date(k)),v=z),Ee(new Date(k),new Date(Le))&&Ge(new Date(k),new Date(U))&&(p=o[v].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(14,y=""),n(16,C=!0),n(18,T=!1),n(13,b=[]),n(17,M=!1),Q(M)},K=()=>{n(14,y=""),_.focus()},Q=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},ye=()=>{je(u)},ve=De(()=>$(this,null,function*(){if(y.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(N)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${y}`),ge(o).then(p=>{n(13,b=p.items.map(w=>(w.isFavorite=X(w.id),w)))})}else C||Y()}),500);e.onMount(()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}));function ke(){y=this.value,n(14,y)}function Ce(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,n(15,_)})}const Re=()=>K(),Fe=()=>H();function Te(o){e.binding_callbacks[o?"unshift":"push"](()=>{D=o,n(12,D)})}return a.$$set=o=>{"endpoint"in o&&n(0,s=o.endpoint),"datasource"in o&&n(29,i=o.datasource),"session"in o&&n(30,l=o.session),"userid"in o&&n(31,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(32,L=o.translationurl),"showfavorites"in o&&n(8,j=o.showfavorites),"cancelbutton"in o&&n(9,E=o.cancelbutton),"notfoundicon"in o&&n(10,x=o.notfoundicon),"mbsource"in o&&n(11,I=o.mbsource)},a.$$.update=()=>{a.$$.dirty[0]&2&&u&&ye(),a.$$.dirty[1]&2&&L&&he(),a.$$.dirty[0]&1073741824|a.$$.dirty[1]&1&&l&&c&&Se(),a.$$.dirty[0]&256|a.$$.dirty[1]&4&&j&&O&&_e(),a.$$.dirty[0]&4100&&h&&D&&e.setClientStyling(D,h),a.$$.dirty[0]&4104&&m&&D&&e.setClientStylingURL(D,m),a.$$.dirty[0]&6144&&D&&e.setStreamStyling(D,`${I}.Style`)},[s,u,h,m,f,S,d,g,j,E,x,I,D,b,y,_,C,M,T,A,q,r,N,Y,fe,be,H,K,ve,i,l,c,L,O,ke,Ce,Re,Fe,Te]}class de extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Oe,Me,e.safe_not_equal,{endpoint:0,datasource:29,session:30,userid:31,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:32,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ie,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[29]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[30]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[31]}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[32]}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;
@@ -14,7 +14,7 @@ var ue = (t, e, a) => new Promise((n, r) => {
14
14
  }, i = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(l, s);
15
15
  i((a = a.apply(t, e)).next());
16
16
  });
17
- import { a as Ue, $ as Ve, S as Je, i as Ze, f as L, s as Ye, c as Xe, b as Ke, n as he, d as j, r as Qe, e as g, g as de, h as E, j as b, l as U, k, m as z, o as me, p as ae, q as $e, t as et, u as q, v as H, w as fe, x as ge, y as tt, z as Te, A as u, B as at, C as nt, D as rt, E as ot } from "./CasinoGameThumbnail-B8gSdop-.js";
17
+ import { a as Ue, $ as Ve, S as Je, i as Ze, f as L, c as Ye, s as Xe, b as Ke, e as k, d as z, g as he, h as g, j as ae, k as j, l as b, m as de, n as U, o as me, p as E, r as Qe, q as $e, t as et, u as q, v as H, w as fe, x as tt, y as at, z as nt, A as ge, B as Te, C as rt, D as u, E as ot } from "./CasinoGameThumbnail-tWEx5vgX.js";
18
18
  function pe(t, e) {
19
19
  Ue(t, e);
20
20
  }
@@ -220,7 +220,7 @@ if (typeof window != "undefined") {
220
220
  }
221
221
  };
222
222
  };
223
- customElements.define = t(customElements.define), import("./CasinoGameThumbnail-B8gSdop-.js").then((e) => e.F).then(({ default: e }) => {
223
+ customElements.define = t(customElements.define), import("./CasinoGameThumbnail-tWEx5vgX.js").then((e) => e.F).then(({ default: e }) => {
224
224
  !customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
225
225
  });
226
226
  }
@@ -268,11 +268,11 @@ function we(t) {
268
268
  ), n, r, l, s;
269
269
  return {
270
270
  c() {
271
- e = k("small"), n = H(a), g(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
271
+ e = k("small"), n = q(a), g(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
272
272
  (t[16] ? "NotVisible" : ""));
273
273
  },
274
274
  m(i, c) {
275
- E(i, e, c), b(e, n), l || (s = U(
275
+ j(i, e, c), b(e, n), l || (s = U(
276
276
  e,
277
277
  "click",
278
278
  /*click_handler_1*/
@@ -282,12 +282,12 @@ function we(t) {
282
282
  p(i, c) {
283
283
  c[0] & /*$_*/
284
284
  2097152 && a !== (a = /*$_*/
285
- i[21]("cancel") + "") && q(n, a), c[0] & /*searchCancelled*/
285
+ i[21]("cancel") + "") && H(n, a), c[0] & /*searchCancelled*/
286
286
  65536 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
287
287
  (i[16] ? "NotVisible" : "")) && g(e, "class", r);
288
288
  },
289
289
  d(i) {
290
- i && j(e), l = !1, s();
290
+ i && E(e), l = !1, s();
291
291
  }
292
292
  };
293
293
  }
@@ -320,7 +320,7 @@ function ht(t) {
320
320
  (t[17] == !0 ? "" : "NotVisible"));
321
321
  },
322
322
  m(h, f) {
323
- i && i.m(h, f), E(h, e, f), E(h, a, f), c && c.m(a, null), b(a, n), m && m.m(a, null);
323
+ i && i.m(h, f), j(h, e, f), j(h, a, f), c && c.m(a, null), b(a, n), m && m.m(a, null);
324
324
  },
325
325
  p(h, f) {
326
326
  s === (s = l(h)) && i ? i.p(h, f) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
@@ -331,7 +331,7 @@ function ht(t) {
331
331
  (h[17] == !0 ? "" : "NotVisible")) && g(a, "class", r);
332
332
  },
333
333
  d(h) {
334
- h && (j(e), j(a)), i && i.d(h), c && c.d(), m && m.d();
334
+ h && (E(e), E(a)), i && i.d(h), c && c.d(), m && m.d();
335
335
  }
336
336
  };
337
337
  }
@@ -342,18 +342,18 @@ function dt(t) {
342
342
  ), n;
343
343
  return {
344
344
  c() {
345
- e = k("p"), n = H(a), g(e, "class", "LoadingContent");
345
+ e = k("p"), n = q(a), g(e, "class", "LoadingContent");
346
346
  },
347
347
  m(r, l) {
348
- E(r, e, l), b(e, n);
348
+ j(r, e, l), b(e, n);
349
349
  },
350
350
  p(r, l) {
351
351
  l[0] & /*$_*/
352
352
  2097152 && a !== (a = /*$_*/
353
- r[21]("loading") + "") && q(n, a);
353
+ r[21]("loading") + "") && H(n, a);
354
354
  },
355
355
  d(r) {
356
- r && j(e);
356
+ r && E(e);
357
357
  }
358
358
  };
359
359
  }
@@ -364,18 +364,18 @@ function mt(t) {
364
364
  ), n;
365
365
  return {
366
366
  c() {
367
- e = k("p"), n = H(a), g(e, "class", "SearchMessage");
367
+ e = k("p"), n = q(a), g(e, "class", "SearchMessage");
368
368
  },
369
369
  m(r, l) {
370
- E(r, e, l), b(e, n);
370
+ j(r, e, l), b(e, n);
371
371
  },
372
372
  p(r, l) {
373
373
  l[0] & /*$_*/
374
374
  2097152 && a !== (a = /*$_*/
375
- r[21]("searchResult") + "") && q(n, a);
375
+ r[21]("searchResult") + "") && H(n, a);
376
376
  },
377
377
  d(r) {
378
- r && j(e);
378
+ r && E(e);
379
379
  }
380
380
  };
381
381
  }
@@ -392,7 +392,7 @@ function ft(t) {
392
392
  n && n.c(), e = z(), r && r.c(), a = Te();
393
393
  },
394
394
  m(l, s) {
395
- n && n.m(l, s), E(l, e, s), r && r.m(l, s), E(l, a, s);
395
+ n && n.m(l, s), j(l, e, s), r && r.m(l, s), j(l, a, s);
396
396
  },
397
397
  p(l, s) {
398
398
  /*searchArray*/
@@ -400,7 +400,7 @@ function ft(t) {
400
400
  l[13].length == 0 ? r ? r.p(l, s) : (r = ve(l), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
401
401
  },
402
402
  d(l) {
403
- l && (j(e), j(a)), n && n.d(l), r && r.d(l);
403
+ l && (E(e), E(a)), n && n.d(l), r && r.d(l);
404
404
  }
405
405
  };
406
406
  }
@@ -411,18 +411,18 @@ function ye(t) {
411
411
  ), n;
412
412
  return {
413
413
  c() {
414
- e = k("p"), n = H(a), g(e, "class", "SearchMessage");
414
+ e = k("p"), n = q(a), g(e, "class", "SearchMessage");
415
415
  },
416
416
  m(r, l) {
417
- E(r, e, l), b(e, n);
417
+ j(r, e, l), b(e, n);
418
418
  },
419
419
  p(r, l) {
420
420
  l[0] & /*$_*/
421
421
  2097152 && a !== (a = /*$_*/
422
- r[21]("recentSearch") + "") && q(n, a);
422
+ r[21]("recentSearch") + "") && H(n, a);
423
423
  },
424
424
  d(r) {
425
- r && j(e);
425
+ r && E(e);
426
426
  }
427
427
  };
428
428
  }
@@ -436,22 +436,22 @@ function ve(t) {
436
436
  );
437
437
  return {
438
438
  c() {
439
- e = k("div"), i && i.c(), a = z(), n = k("p"), l = H(r), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
439
+ e = k("div"), i && i.c(), a = z(), n = k("p"), l = q(r), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
440
440
  (t[10] == "true" ? "WithIcon" : ""));
441
441
  },
442
442
  m(c, m) {
443
- E(c, e, m), i && i.m(e, null), b(e, a), b(e, n), b(n, l);
443
+ j(c, e, m), i && i.m(e, null), b(e, a), b(e, n), b(n, l);
444
444
  },
445
445
  p(c, m) {
446
446
  /*notfoundicon*/
447
447
  c[10] === "true" ? i || (i = ke(), i.c(), i.m(e, a)) : i && (i.d(1), i = null), m[0] & /*$_*/
448
448
  2097152 && r !== (r = /*$_*/
449
- c[21]("noRecentSearches") + "") && q(l, r), m[0] & /*notfoundicon*/
449
+ c[21]("noRecentSearches") + "") && H(l, r), m[0] & /*notfoundicon*/
450
450
  1024 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
451
451
  (c[10] == "true" ? "WithIcon" : "")) && g(e, "class", s);
452
452
  },
453
453
  d(c) {
454
- c && j(e), i && i.d();
454
+ c && E(e), i && i.d();
455
455
  }
456
456
  };
457
457
  }
@@ -462,10 +462,10 @@ function ke(t) {
462
462
  e = k("div"), e.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>', g(e, "class", "SearchErrorIcon");
463
463
  },
464
464
  m(a, n) {
465
- E(a, e, n);
465
+ j(a, e, n);
466
466
  },
467
467
  d(a) {
468
- a && j(e);
468
+ a && E(e);
469
469
  }
470
470
  };
471
471
  }
@@ -485,7 +485,7 @@ function Ce(t) {
485
485
  m(r, l) {
486
486
  for (let s = 0; s < n.length; s += 1)
487
487
  n[s] && n[s].m(r, l);
488
- E(r, e, l);
488
+ j(r, e, l);
489
489
  },
490
490
  p(r, l) {
491
491
  if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, mbsource, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl*/
@@ -505,7 +505,7 @@ function Ce(t) {
505
505
  }
506
506
  },
507
507
  d(r) {
508
- r && j(e), tt(n, r);
508
+ r && E(e), rt(n, r);
509
509
  }
510
510
  };
511
511
  }
@@ -595,7 +595,7 @@ function Re(t) {
595
595
  );
596
596
  },
597
597
  m(d, p) {
598
- E(d, e, p);
598
+ j(d, e, p);
599
599
  },
600
600
  p(d, p) {
601
601
  var N;
@@ -703,7 +703,7 @@ function Re(t) {
703
703
  );
704
704
  },
705
705
  d(d) {
706
- d && j(e);
706
+ d && E(e);
707
707
  }
708
708
  };
709
709
  }
@@ -720,24 +720,24 @@ function Fe(t) {
720
720
  );
721
721
  return {
722
722
  c() {
723
- e = k("div"), f && f.c(), a = z(), n = k("p"), l = H(r), s = z(), i = k("p"), m = H(c), g(n, "class", "SearchMessage"), g(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
723
+ e = k("div"), f && f.c(), a = z(), n = k("p"), l = q(r), s = z(), i = k("p"), m = q(c), g(n, "class", "SearchMessage"), g(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
724
724
  (t[10] == "true" ? "WithIcon" : ""));
725
725
  },
726
726
  m(w, d) {
727
- E(w, e, d), f && f.m(e, null), b(e, a), b(e, n), b(n, l), b(e, s), b(e, i), b(i, m);
727
+ j(w, e, d), f && f.m(e, null), b(e, a), b(e, n), b(n, l), b(e, s), b(e, i), b(i, m);
728
728
  },
729
729
  p(w, d) {
730
730
  /*notfoundicon*/
731
731
  w[10] === "true" ? f || (f = Le(), f.c(), f.m(e, a)) : f && (f.d(1), f = null), d[0] & /*$_*/
732
732
  2097152 && r !== (r = /*$_*/
733
- w[21]("notFound") + "") && q(l, r), d[0] & /*$_*/
733
+ w[21]("notFound") + "") && H(l, r), d[0] & /*$_*/
734
734
  2097152 && c !== (c = /*$_*/
735
- w[21]("notFoundText") + "") && q(m, c), d[0] & /*notfoundicon*/
735
+ w[21]("notFoundText") + "") && H(m, c), d[0] & /*notfoundicon*/
736
736
  1024 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
737
737
  (w[10] == "true" ? "WithIcon" : "")) && g(e, "class", h);
738
738
  },
739
739
  d(w) {
740
- w && j(e), f && f.d();
740
+ w && E(e), f && f.d();
741
741
  }
742
742
  };
743
743
  }
@@ -748,10 +748,10 @@ function Le(t) {
748
748
  e = k("div"), e.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>', g(e, "class", "SearchErrorIcon");
749
749
  },
750
750
  m(a, n) {
751
- E(a, e, n);
751
+ j(a, e, n);
752
752
  },
753
753
  d(a) {
754
- a && j(e);
754
+ a && E(e);
755
755
  }
756
756
  };
757
757
  }
@@ -769,7 +769,7 @@ function gt(t) {
769
769
  let B = I(t), C = B(t);
770
770
  return {
771
771
  c() {
772
- e = k("div"), a = k("div"), n = k("div"), r = k("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 = k("input"), c = z(), m = k("span"), h = me("svg"), f = me("path"), d = z(), y && y.c(), N = z(), P = k("div"), J = z(), C.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
772
+ e = k("div"), a = k("div"), n = k("div"), r = k("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 = k("input"), c = z(), m = k("span"), h = he("svg"), f = he("path"), d = z(), y && y.c(), N = z(), P = k("div"), J = z(), C.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
773
773
  t[21]("placeHolderSearchGames")), g(s, "maxlength", pt), 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*/
774
774
  (t[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
775
775
  (t[14].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
@@ -780,7 +780,7 @@ function gt(t) {
780
780
  ) !== "PC" ? "" : "Desktop") + " CasinoSearch");
781
781
  },
782
782
  m(_, T) {
783
- E(_, e, T), b(e, a), b(a, n), b(n, r), b(n, l), b(n, s), de(
783
+ j(_, e, T), b(e, a), b(a, n), b(n, r), b(n, l), b(n, s), de(
784
784
  s,
785
785
  /*searchValue*/
786
786
  t[14]
@@ -836,17 +836,17 @@ function gt(t) {
836
836
  512 && M !== (M = /*cancelbutton*/
837
837
  _[9] != "true" ? "OverlayCancel" : "") && g(P, "class", M), B === (B = I(_)) && C ? C.p(_, T) : (C.d(1), C = B(_), C && (C.c(), C.m(e, null)));
838
838
  },
839
- i: he,
840
- o: he,
839
+ i: me,
840
+ o: me,
841
841
  d(_) {
842
- _ && j(e), t[35](null), y && y.d(), C.d(), t[38](null), A = !1, Qe(W);
842
+ _ && E(e), t[35](null), y && y.d(), C.d(), t[38](null), A = !1, Qe(W);
843
843
  }
844
844
  };
845
845
  }
846
846
  let pt = 50;
847
847
  function St(t, e, a) {
848
848
  let n;
849
- $e(t, at, (o) => a(21, n = o));
849
+ $e(t, ot, (o) => a(21, n = o));
850
850
  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: J = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, y = [], I = [], B = {}, C = "", _, T = !0, Z = !1, G = !1, x, X = !1, K, Q, re = [];
851
851
  const je = () => {
852
852
  fetch(N).then((S) => S.json()).then((S) => {
@@ -975,9 +975,9 @@ function St(t, e, a) {
975
975
  1 && s && i && ze(), t.$$.dirty[0] & /*showfavorites*/
976
976
  256 | t.$$.dirty[1] & /*isLoggedIn*/
977
977
  4 && P && X && Ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
978
- 4100 && m && x && nt(x, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
979
- 4104 && h && x && rt(x, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
980
- 6144 && x && ot(x, `${A}.Style`);
978
+ 4100 && m && x && tt(x, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
979
+ 4104 && h && x && at(x, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
980
+ 6144 && x && nt(x, `${A}.Style`);
981
981
  }, [
982
982
  r,
983
983
  c,
@@ -1027,7 +1027,7 @@ class bt extends Je {
1027
1027
  e,
1028
1028
  St,
1029
1029
  gt,
1030
- Ye,
1030
+ Xe,
1031
1031
  {
1032
1032
  endpoint: 0,
1033
1033
  datasource: 29,
@@ -1147,7 +1147,7 @@ class bt extends Je {
1147
1147
  this.$$set({ mbsource: e }), L();
1148
1148
  }
1149
1149
  }
1150
- Xe(bt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1150
+ Ye(bt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1151
1151
  export {
1152
1152
  bt as default
1153
1153
  };