@everymatrix/casino-random-game 0.0.272 → 0.0.275
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.
|
@@ -563,15 +563,15 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
563
563
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
564
564
|
PERFORMANCE OF THIS SOFTWARE.
|
|
565
565
|
***************************************************************************** */function Gr(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}const Dr={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};function Fr(){return Dr}const kr=$t(!1);let jr;const $r=$t(null);function Br(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Vr(t,e=Fr().fallbackLocale){const r=Br(t);return e?[...new Set([...r,...Br(e)])]:r}function zr(){return jr}$r.subscribe((t=>{jr=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)}));const Xr=$r.set;$r.set=t=>{if(function(t){if(null==t)return;const e=Vr(t);for(let t=0;t<e.length;t++){const r=e[t];if(Rr(r))return r}}(t)&&Mr(t)){const{loadingDelay:e}=Fr();let r;return"undefined"!=typeof window&&null!=zr()&&e?r=window.setTimeout((()=>kr.set(!0)),e):kr.set(!0),Ur(t).then((()=>{Xr(t)})).finally((()=>{clearTimeout(r),kr.set(!1)}))}return Xr(t)},$r.update=t=>Xr(t(jr));const Wr=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},Hr=(t,e)=>{const{formats:r}=Fr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Yr=Wr((t=>{var{locale:e,format:r}=t,n=Gr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Hr("number",r)),new Intl.NumberFormat(e,n)})),qr=Wr((t=>{var{locale:e,format:r}=t,n=Gr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Hr("date",r):0===Object.keys(n).length&&(n=Hr("date","short")),new Intl.DateTimeFormat(e,n)})),Kr=Wr((t=>{var{locale:e,format:r}=t,n=Gr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Hr("time",r):0===Object.keys(n).length&&(n=Hr("time","short")),new Intl.DateTimeFormat(e,n)})),Zr=Wr(((t,e=zr())=>new wr(t,e,Fr().formats,{ignoreTag:Fr().ignoreTag}))),Qr=(t,e={})=>{"object"==typeof t&&(t=(e=t).id);const{values:r,locale:n=zr(),default:o}=e;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Pr(t,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else Fr().warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Vr(n).join('", "')}".${Mr(zr())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!r)return i;let s=i;try{s=Zr(i,n).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s},Jr=(t,e)=>((t={})=>{var{locale:e=zr()}=t,r=Gr(t,["locale"]);return Kr(Object.assign({locale:e},r))})(e).format(t),tn=(t,e)=>((t={})=>{var{locale:e=zr()}=t,r=Gr(t,["locale"]);return qr(Object.assign({locale:e},r))})(e).format(t),en=(t,e)=>((t={})=>{var{locale:e=zr()}=t,r=Gr(t,["locale"]);return Yr(Object.assign({locale:e},r))})(e).format(t),rn=(t,e=zr())=>Pr(t,e),nn=Bt([$r,Lr],(()=>Qr));Bt([$r],(()=>Jr)),Bt([$r],(()=>tn)),Bt([$r],(()=>en)),Bt([$r,Lr],(()=>rn)),window.emWidgets={topic:(t,e=0)=>{if(-1==Ft.indexOf(t)){let r=new Dt(e);kt[t]=r,Ft.push(t)}return kt[t]}};const on={en:{randomGame:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now"}},ro:{randomGame:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum"}}};
|
|
566
|
-
/* src/CasinoRandomGame.svelte generated by Svelte v3.37.0 */function sn(t,e,r){const n=t.slice();return n[
|
|
567
|
-
// (
|
|
566
|
+
/* src/CasinoRandomGame.svelte generated by Svelte v3.37.0 */function sn(t,e,r){const n=t.slice();return n[22]=e[r],n[24]=r,n}
|
|
567
|
+
// (77:4) {#if show}
|
|
568
568
|
function an(t){let e,r,n,o,i,s,f,m=!/*slotDone*/t[4]&&cn(t),y=/*slotDone*/t[4]&&ln(t);return{c(){e=l("div"),r=l("div"),n=l("span"),n.innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',o=p(),m&&m.c(),i=p(),y&&y.c(),d(n,"class","ModalCloseBtn"),d(n,"part","ModalCloseBtn"),d(n,"role","button"),d(r,"class","ModalContainer"),d(r,"part","ModalContainer"),d(e,"class","ModalWindow"),d(e,"part","ModalWindow")},m(u,l){c(u,e,l),a(e,r),a(r,n),a(r,o),m&&m.m(r,null),a(r,i),y&&y.m(r,null),s||(f=h(n,"click",/*closeModal*/t[8]),s=!0)},p(t,e){/*slotDone*/t[4]?m&&(m.d(1),m=null):m?m.p(t,e):(m=cn(t),m.c(),m.m(r,i)),/*slotDone*/t[4]?y?y.p(t,e):(y=ln(t),y.c(),y.m(r,null)):y&&(y.d(1),y=null)},d(t){t&&u(e),m&&m.d(),y&&y.d(),s=!1,f()}}}
|
|
569
|
-
// (
|
|
569
|
+
// (86:8) {#if !slotDone}
|
|
570
570
|
function cn(t){let e,r,n,o,i,s,h=/*$_*/t[5]("randomGame.randomGameLoading")+"",g=/*gamesToShow*/t[1],b=[];for(let e=0;e<g.length;e+=1)b[e]=un(sn(t,g,e));return{c(){e=l("div"),r=l("main"),n=l("div");for(let t=0;t<b.length;t+=1)b[t].c();o=p(),i=l("p"),s=f(h),d(n,"class","items"),d(n,"part","items"),y(n,"transform","translateY("+/*offset*/t[3]+"px)"),d(r,"class","RandomGamesSliderWrapper"),d(r,"part","RandomGamesSliderWrapper"),d(i,"class","RandomGameLoading"),d(i,"part","RandomGameLoading"),d(e,"class","RandomGameWrapper"),d(e,"part","RandomGameWrapper")},m(t,u){c(t,e,u),a(e,r),a(r,n);for(let t=0;t<b.length;t+=1)b[t].m(n,null);a(e,o),a(e,i),a(i,s)},p(t,e){if(/*gamesToShow*/2&e){let r;for(g=/*gamesToShow*/t[1],r=0;r<g.length;r+=1){const o=sn(t,g,r);b[r]?b[r].p(o,e):(b[r]=un(o),b[r].c(),b[r].m(n,null))}for(;r<b.length;r+=1)b[r].d(1);b.length=g.length}/*offset*/8&e&&y(n,"transform","translateY("+/*offset*/t[3]+"px)"),/*$_*/32&e&&h!==(h=/*$_*/t[5]("randomGame.randomGameLoading")+"")&&m(s,h)},d(t){t&&u(e),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(b,t)}}}
|
|
571
|
-
// (
|
|
572
|
-
function un(t){let e,r,n,o,i,s;return{c(){e=l("div"),r=l("img"),s=p(),d(r,"class","RandomGameImage"),d(r,"part","RandomGameImage"),r.src!==(n=/*game*/t[
|
|
573
|
-
// (
|
|
574
|
-
function ln(t){let e,r,o,i,s,y,g,b,v,E,_,w,T,A,P,S,L,R,O,x,C=/*randomGame*/t[0].name+"",I=/*randomGame*/t[0].vendor.name+"",M=/*$_*/t[5]("randomGame.playNowRandomGame")+"";return{c(){e=l("div"),r=l("div"),o=l("img"),g=p(),b=l("button"),b.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emfe-w-color-white, #FFFFFF);;}\n </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>',v=p(),E=l("div"),_=l("p"),w=f(C),T=p(),A=l("p"),P=f(I),S=p(),L=l("button"),R=f(M),d(o,"class","RandomGameImage"),d(o,"part","RandomGameImage"),o.src!==(i=/*randomGame*/t[0].thumbnail)&&d(o,"src",i),d(o,"alt",s=/*randomGame*/t[0].name),d(o,"title",y=/*randomGame*/t[0].name),d(b,"class","RandomTryAgain"),d(b,"part","RandomTryAgain"),d(r,"class","item"),d(r,"part","item"),d(_,"class","RandomGameTitle"),d(_,"part","RandomGameTitle"),d(A,"class","RandomGameVendor"),d(A,"part","RandomGameVendor"),d(L,"class","RandomGamePlay"),d(L,"part","RandomGamePlay"),d(E,"class","RandomGameDetails"),d(E,"part","RandomGameDetails"),d(e,"class","RandomGameWrapper"),d(e,"part","RandomGameWrapper")},m(n,i){c(n,e,i),a(e,r),a(r,o),a(r,g),a(r,b),a(e,v),a(e,E),a(E,_),a(_,w),a(E,T),a(E,A),a(A,P),a(E,S),a(E,L),a(L,R),O||(x=[h(b,"click",/*click_handler*/t[13]),h(L,"click",/*click_handler_1*/t[14])],O=!0)},p(t,e){/*randomGame*/1&e&&o.src!==(i=/*randomGame*/t[0].thumbnail)&&d(o,"src",i),/*randomGame*/1&e&&s!==(s=/*randomGame*/t[0].name)&&d(o,"alt",s),/*randomGame*/1&e&&y!==(y=/*randomGame*/t[0].name)&&d(o,"title",y),/*randomGame*/1&e&&C!==(C=/*randomGame*/t[0].name+"")&&m(w,C),/*randomGame*/1&e&&I!==(I=/*randomGame*/t[0].vendor.name+"")&&m(P,I),/*$_*/32&e&&M!==(M=/*$_*/t[5]("randomGame.playNowRandomGame")+"")&&m(R,M)},d(t){t&&u(e),O=!1,n(x)}}}function fn(e){let r,n,o,i,s,y,g,b,v,E,_,w=/*$_*/e[5]("randomGame.playRandomGame")+"",T=/*show*/e[2]&&an(e);return{c(){r=l("div"),n=l("div"),T&&T.c(),o=p(),i=l("div"),s=l("button"),y=l("span"),g=f(w),b=p(),v=l("span"),v.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill-rule:evenodd;clip-rule:evenodd;fill:var(--emfe-w-color-white, #FFFFFF);;}\n </style><path class="st0" d="M161,16.7c-2.7,0-5.5,0.5-8.1,1.6l-44.2,18.3C98.1,41,93,53.2,97.4,63.8l18.3,44.2 c4.4,10.6,16.6,15.7,27.2,11.3l44.2-18.3c10.6-4.4,15.7-16.6,11.3-27.2l-18.3-44.2C176.8,21.6,169.1,16.7,161,16.7L161,16.7z M161,25c4.9,0,9.4,2.9,11.4,7.8l18.3,44.2c2.7,6.5-0.3,13.7-6.8,16.3l-44.2,18.3c-6.5,2.7-13.7-0.3-16.3-6.8l-18.3-44.2 c-2.7-6.5,0.3-13.7,6.8-16.3L156.1,26C157.7,25.3,159.4,25,161,25L161,25z M127.1,54.2c-1.7,0-3.2,0.7-4.4,1.8 c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4 C130.3,54.8,128.7,54.2,127.1,54.2z M147.9,62.5c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4 c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4C151.2,63.2,149.6,62.5,147.9,62.5z M168.8,70.8 c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8 c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4C172,71.5,170.4,70.8,168.8,70.8L168.8,70.8z M39,79.2c-8.1,0.1-15.8,4.9-19.1,12.9 L1.6,136.2c-4.4,10.6,0.7,22.8,11.3,27.2l44.2,18.3c10.6,4.4,22.8-0.7,27.2-11.3l18.3-44.2c4.4-10.6-0.7-22.8-11.3-27.2L47.1,80.8 C44.5,79.7,41.7,79.1,39,79.2L39,79.2z M39,87.5c1.6,0,3.3,0.3,4.9,1l44.2,18.3c6.5,2.7,9.4,9.9,6.8,16.3l-18.3,44.2 c-2.7,6.5-9.9,9.4-16.3,6.8l-44.2-18.3c-6.5-2.7-9.4-9.9-6.8-16.3l18.3-44.2C29.6,90.4,34.1,87.5,39,87.5L39,87.5z M44.7,99.4 c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8 c1.2-1.2,1.8-2.8,1.8-4.4c0-1.7-0.7-3.2-1.8-4.4C47.9,100,46.3,99.4,44.7,99.4z M75.5,112.1c-1.7,0-3.2,0.7-4.4,1.8 c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4 c0-1.7-0.7-3.2-1.8-4.4C78.7,112.8,77.1,112.1,75.5,112.1z M36.7,118.6c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4 s0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4 C39.9,119.3,38.3,118.6,36.7,118.6z M67.5,131.4c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4 c1.2,1.2,2.8,1.8,4.4,1.8c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4C70.7,132,69.1,131.4,67.5,131.4z M28.7,137.9c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8 c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4c0-1.7-0.7-3.2-1.8-4.4C32,138.5,30.4,137.9,28.7,137.9z M59.5,150.6 c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8 c1.2-1.2,1.8-2.8,1.8-4.4c0-1.7-0.7-3.2-1.8-4.4C62.8,151.3,61.2,150.6,59.5,150.6z"></path></svg>',this.c=t,d(s,"class","RandomButton"),d(s,"part","RandomButton"),d(i,"class","RandomButtonWrapper"),d(i,"part","RandomButtonWrapper"),d(r,"part","CustomStylingContainer")},m(t,u){c(t,r,u),a(r,n),T&&T.m(n,null),a(n,o),a(n,i),a(i,s),a(s,y),a(y,g),a(s,b),a(s,v),E||(_=h(s,"click",/*click_handler_2*/e[15]),E=!0)},p(t,[e]){/*show*/t[2]?T?T.p(t,e):(T=an(t),T.c(),T.m(n,o)):T&&(T.d(1),T=null),/*$_*/32&e&&w!==(w=/*$_*/t[5]("randomGame.playRandomGame")+"")&&m(g,w)},i:t,o:t,d(t){t&&u(r),T&&T.d(),E=!1,_()}}}function pn(t,e,r){let n;var o,i;o=nn,i=t=>r(5,n=t),t.$$.on_destroy.push(s(o,i));let a,{endpoint:c=""}=e,{datasource:u=""}=e,{gameevent:l=""}=e,{lang:f=""}=e,p=[],h="",d=!1,m=0,y=0,g=!1,b=window.navigator.userAgent
|
|
575
|
-
|
|
576
|
-
Object.keys(on).forEach((t=>{!function(t,e){xr(t,e)}(t,on[t])}));const v=()=>{r(3,m=0),y=0,r(4,g=!1),r(0,h=p[Math.floor(Math.random()*p.length)]),r(2,d=!0);let t=setInterval((()=>{r(3,m-=100),y++,20==y&&(r(4,g=!0),clearInterval(t))}),100)},E=()=>{window.postMessage({type:l,gameId:h.gId},window.location.href),r(2,d=!1)},
|
|
571
|
+
// (90:16) {#each gamesToShow as game, i}
|
|
572
|
+
function un(t){let e,r,n,o,i,s;return{c(){e=l("div"),r=l("img"),s=p(),d(r,"class","RandomGameImage"),d(r,"part","RandomGameImage"),r.src!==(n=/*game*/t[22].thumbnail)&&d(r,"src",n),d(r,"alt",o=/*game*/t[22].name),d(r,"title",i=/*game*/t[22].name),d(e,"class","item"),d(e,"part","item")},m(t,n){c(t,e,n),a(e,r),a(e,s)},p(t,e){/*gamesToShow*/2&e&&r.src!==(n=/*game*/t[22].thumbnail)&&d(r,"src",n),/*gamesToShow*/2&e&&o!==(o=/*game*/t[22].name)&&d(r,"alt",o),/*gamesToShow*/2&e&&i!==(i=/*game*/t[22].name)&&d(r,"title",i)},d(t){t&&u(e)}}}
|
|
573
|
+
// (101:8) {#if slotDone}
|
|
574
|
+
function ln(t){let e,r,o,i,s,y,g,b,v,E,_,w,T,A,P,S,L,R,O,x,C=/*randomGame*/t[0].name+"",I=/*randomGame*/t[0].vendor.name+"",M=/*$_*/t[5]("randomGame.playNowRandomGame")+"";return{c(){e=l("div"),r=l("div"),o=l("img"),g=p(),b=l("button"),b.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emfe-w-color-white, #FFFFFF);;}\n </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>',v=p(),E=l("div"),_=l("p"),w=f(C),T=p(),A=l("p"),P=f(I),S=p(),L=l("button"),R=f(M),d(o,"class","RandomGameImage"),d(o,"part","RandomGameImage"),o.src!==(i=/*randomGame*/t[0].thumbnail)&&d(o,"src",i),d(o,"alt",s=/*randomGame*/t[0].name),d(o,"title",y=/*randomGame*/t[0].name),d(b,"class","RandomTryAgain"),d(b,"part","RandomTryAgain"),d(r,"class","item"),d(r,"part","item"),d(_,"class","RandomGameTitle"),d(_,"part","RandomGameTitle"),d(A,"class","RandomGameVendor"),d(A,"part","RandomGameVendor"),d(L,"class","RandomGamePlay"),d(L,"part","RandomGamePlay"),d(E,"class","RandomGameDetails"),d(E,"part","RandomGameDetails"),d(e,"class","RandomGameWrapper"),d(e,"part","RandomGameWrapper")},m(n,i){c(n,e,i),a(e,r),a(r,o),a(r,g),a(r,b),a(e,v),a(e,E),a(E,_),a(_,w),a(E,T),a(E,A),a(A,P),a(E,S),a(E,L),a(L,R),O||(x=[h(b,"click",/*click_handler*/t[13]),h(L,"click",/*click_handler_1*/t[14])],O=!0)},p(t,e){/*randomGame*/1&e&&o.src!==(i=/*randomGame*/t[0].thumbnail)&&d(o,"src",i),/*randomGame*/1&e&&s!==(s=/*randomGame*/t[0].name)&&d(o,"alt",s),/*randomGame*/1&e&&y!==(y=/*randomGame*/t[0].name)&&d(o,"title",y),/*randomGame*/1&e&&C!==(C=/*randomGame*/t[0].name+"")&&m(w,C),/*randomGame*/1&e&&I!==(I=/*randomGame*/t[0].vendor.name+"")&&m(P,I),/*$_*/32&e&&M!==(M=/*$_*/t[5]("randomGame.playNowRandomGame")+"")&&m(R,M)},d(t){t&&u(e),O=!1,n(x)}}}function fn(e){let r,n,o,i,s,y,g,b,v,E,_,w=/*$_*/e[5]("randomGame.playRandomGame")+"",T=/*show*/e[2]&&an(e);return{c(){r=l("div"),n=l("div"),T&&T.c(),o=p(),i=l("div"),s=l("button"),y=l("span"),g=f(w),b=p(),v=l("span"),v.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill-rule:evenodd;clip-rule:evenodd;fill:var(--emfe-w-color-white, #FFFFFF);;}\n </style><path class="st0" d="M161,16.7c-2.7,0-5.5,0.5-8.1,1.6l-44.2,18.3C98.1,41,93,53.2,97.4,63.8l18.3,44.2 c4.4,10.6,16.6,15.7,27.2,11.3l44.2-18.3c10.6-4.4,15.7-16.6,11.3-27.2l-18.3-44.2C176.8,21.6,169.1,16.7,161,16.7L161,16.7z M161,25c4.9,0,9.4,2.9,11.4,7.8l18.3,44.2c2.7,6.5-0.3,13.7-6.8,16.3l-44.2,18.3c-6.5,2.7-13.7-0.3-16.3-6.8l-18.3-44.2 c-2.7-6.5,0.3-13.7,6.8-16.3L156.1,26C157.7,25.3,159.4,25,161,25L161,25z M127.1,54.2c-1.7,0-3.2,0.7-4.4,1.8 c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4 C130.3,54.8,128.7,54.2,127.1,54.2z M147.9,62.5c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4 c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4C151.2,63.2,149.6,62.5,147.9,62.5z M168.8,70.8 c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8 c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4C172,71.5,170.4,70.8,168.8,70.8L168.8,70.8z M39,79.2c-8.1,0.1-15.8,4.9-19.1,12.9 L1.6,136.2c-4.4,10.6,0.7,22.8,11.3,27.2l44.2,18.3c10.6,4.4,22.8-0.7,27.2-11.3l18.3-44.2c4.4-10.6-0.7-22.8-11.3-27.2L47.1,80.8 C44.5,79.7,41.7,79.1,39,79.2L39,79.2z M39,87.5c1.6,0,3.3,0.3,4.9,1l44.2,18.3c6.5,2.7,9.4,9.9,6.8,16.3l-18.3,44.2 c-2.7,6.5-9.9,9.4-16.3,6.8l-44.2-18.3c-6.5-2.7-9.4-9.9-6.8-16.3l18.3-44.2C29.6,90.4,34.1,87.5,39,87.5L39,87.5z M44.7,99.4 c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8 c1.2-1.2,1.8-2.8,1.8-4.4c0-1.7-0.7-3.2-1.8-4.4C47.9,100,46.3,99.4,44.7,99.4z M75.5,112.1c-1.7,0-3.2,0.7-4.4,1.8 c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4 c0-1.7-0.7-3.2-1.8-4.4C78.7,112.8,77.1,112.1,75.5,112.1z M36.7,118.6c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4 s0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4 C39.9,119.3,38.3,118.6,36.7,118.6z M67.5,131.4c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4 c1.2,1.2,2.8,1.8,4.4,1.8c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4C70.7,132,69.1,131.4,67.5,131.4z M28.7,137.9c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8 c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4c0-1.7-0.7-3.2-1.8-4.4C32,138.5,30.4,137.9,28.7,137.9z M59.5,150.6 c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8 c1.2-1.2,1.8-2.8,1.8-4.4c0-1.7-0.7-3.2-1.8-4.4C62.8,151.3,61.2,150.6,59.5,150.6z"></path></svg>',this.c=t,d(s,"class","RandomButton"),d(s,"part","RandomButton"),d(i,"class","RandomButtonWrapper"),d(i,"part","RandomButtonWrapper"),d(r,"part","CustomStylingContainer")},m(t,u){c(t,r,u),a(r,n),T&&T.m(n,null),a(n,o),a(n,i),a(i,s),a(s,y),a(y,g),a(s,b),a(s,v),E||(_=h(s,"click",/*click_handler_2*/e[15]),E=!0)},p(t,[e]){/*show*/t[2]?T?T.p(t,e):(T=an(t),T.c(),T.m(n,o)):T&&(T.d(1),T=null),/*$_*/32&e&&w!==(w=/*$_*/t[5]("randomGame.playRandomGame")+"")&&m(g,w)},i:t,o:t,d(t){t&&u(r),T&&T.d(),E=!1,_()}}}function pn(t,e,r){let n;var o,i;o=nn,i=t=>r(5,n=t),t.$$.on_destroy.push(s(o,i));let a,{endpoint:c=""}=e,{datasource:u=""}=e,{gameevent:l=""}=e,{lang:f=""}=e,p=[],h="",d=!1,m=0,y=0,g=!1,b=window.navigator.userAgent;!function({withLocale:t,translations:e}){$r.subscribe((r=>{null==r&&(Lr.set(e),$r.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
575
|
+
/*dictionary.set(translations);
|
|
576
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}}),Object.keys(on).forEach((t=>{!function(t,e){xr(t,e)}(t,on[t])}));const v=()=>{r(1,a=E(a)),r(3,m=0),y=0,r(4,g=!1),r(0,h=p[Math.floor(Math.random()*p.length)]),r(2,d=!0);let t=setInterval((()=>{r(3,m-=100),y++,20==y&&(r(4,g=!0),clearInterval(t))}),100)},E=t=>{let e,r=t.length;for(;0!=r;)e=Math.floor(Math.random()*r),r--,[t[r],t[e]]=[t[e],t[r]];return t},_=()=>{window.postMessage({type:l,gameId:h.gId||h.id},window.location.href),r(2,d=!1)},w=()=>{var t;t=f,$r.set(t)};return t.$$set=t=>{"endpoint"in t&&r(9,c=t.endpoint),"datasource"in t&&r(10,u=t.datasource),"gameevent"in t&&r(11,l=t.gameevent),"lang"in t&&r(12,f=t.lang)},t.$$.update=()=>{/*lang*/4096&t.$$.dirty&&f&&w(),/*endpoint, datasource*/1536&t.$$.dirty&&c&&u&&(()=>{let t=new URL(`${c}/casino/games`);t.searchParams.append("platform",(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(b)),t.searchParams.append("datasource",u),t.searchParams.append("fields","gId,id,href,thumbnail,name,vendor"),t.searchParams.append("expand","vendor"),t.searchParams.append("pagination","offset=0,limit=1000"),fetch(t.href).then((t=>t.json())).then((t=>{p=t.items,r(1,a=p.slice(0,19))}))})()},[h,a,d,m,g,n,v,_,()=>{r(2,d=!1)},c,u,l,f,()=>v(),()=>_(),()=>v()]}class hn extends N{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:40px 40px 16px 40px;border-top:3px solid var(--emfe-w-color-secondary, #FD2839);border-radius:5px;position:relative;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, #FD2839);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper{height:170px;overflow:hidden}.items{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading{padding:30px 0}.RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:-10px;right:-10px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}.RandomButtonWrapper .RandomButton svg{width:35px;height:35px}</style>",M(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},pn,fn,i,{endpoint:9,datasource:10,gameevent:11,lang:12}),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["endpoint","datasource","gameevent","lang"]}get endpoint(){return this.$$.ctx[9]}set endpoint(t){this.$set({endpoint:t}),O()}get datasource(){return this.$$.ctx[10]}set datasource(t){this.$set({datasource:t}),O()}get gameevent(){return this.$$.ctx[11]}set gameevent(t){this.$set({gameevent:t}),O()}get lang(){return this.$$.ctx[12]}set lang(t){this.$set({lang:t}),O()}}return!customElements.get("casino-random-game")&&customElements.define("casino-random-game",hn),hn}));
|
|
577
577
|
//# sourceMappingURL=casino-random-game.js.map
|