@everymatrix/casino-integrated-game-page 1.17.3 → 1.17.4

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.
@@ -1305,7 +1305,7 @@ return e[8]?Yr:/*hasErrors*/e[7]?Ir:Rr}let i=n(e),o=i(e);return{c(){t=y("div"),o
1305
1305
  /*dictionary.set(translations);
1306
1306
  locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Nr).forEach((e=>{Ar(e,Nr[e])}));
1307
1307
  // @TODO game typescript model type
1308
- const te=(e,t)=>{let r=new URL(`${T}/v1/casino/games/${e}`);r.searchParams.append("language",M),r.searchParams.append("expand","vendor"),n(12,J=t||!1),fetch(r.href).then((e=>e.json())).then((e=>{n(10,c=(e=>{let t=new URL(e.launchUrl);return t.searchParams.append("language",M),
1308
+ const te=(e,t)=>{let r=new URL(`${T}/casino/games/${e}`);r.searchParams.append("language",M),r.searchParams.append("expand","vendor"),n(12,J=t||!1),fetch(r.href).then((e=>e.json())).then((e=>{n(10,c=(e=>{let t=new URL(e.launchUrl);return t.searchParams.append("language",M),
1309
1309
  // @TODO wtf? session check or go home
1310
1310
  // Maybe we should check if the session is valid, somehow?
1311
1311
  u&&u.length>0&&(n(6,W=!0),t.searchParams.append("_sid",u),t.searchParams.append("funMode","false")),e.launchUrl=t,w.scrollIntoView(),e})(e[0])),c.launchUrl&&(q=!0,n(11,K="true"==U&&c.hasFunMode),"true"==U&&c.hasAnonymousFunMode)}),(e=>{console.error("There was an error",e),n(7,V=!0)})).then((()=>{d&&(re(),J||ne())}))},ne=()=>{n(18,b=c.width),n(19,_=c.height),g=c.width,v=c.height},re=()=>{let e=getComputedStyle(d),t=getComputedStyle(y);n(14,p=parseInt(e.width.slice(0,-2))),n(15,m=parseInt(e.height.slice(0,-2)));const r=c.width/(c.height+100);g=parseInt(t.width),v=parseInt(t.height),