@everymatrix/casino-game-overlay 1.94.77 → 1.94.78
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.
- package/components/CasinoCoinroyaleContainer-BsnQxvcA.js +629 -0
- package/components/CasinoCoinroyaleContainer-Dr442y26.cjs +1 -0
- package/components/{CasinoCoinroyaleContainer-BRk7BZmL.js → CasinoCoinroyaleContainer-IoqrfaHo.js} +215 -173
- package/components/{CasinoCoinroyaleDetails-C6nd_x1M.cjs → CasinoCoinroyaleDetails-BBRwYhoe.cjs} +2 -2
- package/components/{CasinoCoinroyaleDetails-CiJhhiNp.js → CasinoCoinroyaleDetails-Dbi0kgk5.js} +54 -54
- package/components/{CasinoCoinroyaleDetails-CYGV3lnY.js → CasinoCoinroyaleDetails-cwBgvMZk.js} +53 -53
- package/components/{CasinoCoinroyaleList-CNBVPXz-.js → CasinoCoinroyaleList-BJL3zxQ0.js} +191 -187
- package/components/{CasinoCoinroyaleList-CWrAMCRA.js → CasinoCoinroyaleList-BKQjj8aT.js} +268 -264
- package/components/CasinoCoinroyaleList-D9WsFVwX.cjs +1 -0
- package/components/{CasinoGameOverlay-BESeWDbx.cjs → CasinoGameOverlay-BTBB2PXb.cjs} +1 -1
- package/components/{CasinoGameOverlay-BIY60074.js → CasinoGameOverlay-D3cVNfoa.js} +14 -14
- package/components/{CasinoGameOverlay-8T89JqAi.js → CasinoGameOverlay-ZF7wW-MO.js} +13 -13
- package/components/CasinoMysteryChestContainer-1zTKkJGg.cjs +20 -0
- package/components/{CasinoMysteryChestContainer-Aihk9jSq.js → CasinoMysteryChestContainer-B1dHnUTM.js} +884 -785
- package/components/{CasinoMysteryChestContainer-DbmkGTID.js → CasinoMysteryChestContainer-D1Kv_B6l.js} +921 -800
- package/components/{CasinoMysteryChestDetails-BJuP4Two.cjs → CasinoMysteryChestDetails-CejriRHL.cjs} +2 -2
- package/components/{CasinoMysteryChestDetails-Dg66tT7J.js → CasinoMysteryChestDetails-D7vb5xwy.js} +75 -74
- package/components/{CasinoMysteryChestDetails-5hNSchOz.js → CasinoMysteryChestDetails-DIlWqNh6.js} +9 -8
- package/components/CasinoMysteryChestModal-Cnhoamj2.cjs +1 -0
- package/components/{CasinoMysteryChestModal-DLmLtHkd.js → CasinoMysteryChestModal-CyIOGb8U.js} +136 -75
- package/components/{CasinoMysteryChestModal-8taIOnnw.js → CasinoMysteryChestModal-urfF3IU4.js} +133 -78
- package/components/{CasinoMysteryChestsList-CGrd3GNP.js → CasinoMysteryChestsList-BCt5kTEu.js} +15 -11
- package/components/{CasinoMysteryChestsList-BWhLEtIv.js → CasinoMysteryChestsList-Dgk8yph8.js} +15 -11
- package/components/CasinoMysteryChestsList-vIA1aihG.cjs +1 -0
- package/components/LotteryProgramWof-2uKUtUtX.cjs +36 -0
- package/components/{LotteryProgramWof-DS_7y7AG.js → LotteryProgramWof-Bl9g4LFs.js} +24 -19
- package/components/{LotteryProgramWof-DuRCFCZU.js → LotteryProgramWof-C7sU4ul6.js} +26 -21
- package/components/{PrizeEngineChest-xatQEE7N.js → PrizeEngineChest-BscvL2G2.js} +4 -4
- package/components/{PrizeEngineChest-3HydErvs.js → PrizeEngineChest-BxNo34h0.js} +9 -9
- package/components/{PrizeEngineChest-D5GP9RMA.cjs → PrizeEngineChest-DReP1Jx3.cjs} +1 -1
- package/components/{PrizeEngineCoin-Dg3f7bGF.js → PrizeEngineCoin-07Bd-H2W.js} +2 -2
- package/components/{PrizeEngineCoin-Dckvo_XF.js → PrizeEngineCoin-DECqfpUq.js} +2 -2
- package/components/{PrizeEngineCoin-C82FyeY0.cjs → PrizeEngineCoin-FH982iNd.cjs} +1 -1
- package/components/{PrizeEngineDetails-BB0SGxFi.js → PrizeEngineDetails-BigOQ2OZ.js} +6 -6
- package/components/{PrizeEngineDetails-BQA1SO2l.js → PrizeEngineDetails-CSUeKdXj.js} +6 -6
- package/components/{PrizeEngineDetails-Bao9-Oye.cjs → PrizeEngineDetails-qoNBtP1p.cjs} +1 -1
- package/components/{PrizeEngineHistory-DIQYyhHk.js → PrizeEngineHistory-B54lcRHT.js} +9 -9
- package/components/{PrizeEngineHistory-B04ivRsS.js → PrizeEngineHistory-BHIg8ZHN.js} +3 -3
- package/components/{PrizeEngineHistory-Dl6d4zuj.cjs → PrizeEngineHistory-DLsDw9dt.cjs} +1 -1
- package/components/{PrizeEngineList-RpWgCFmD.js → PrizeEngineList-BXb6Vsqg.js} +3 -3
- package/components/{PrizeEngineList-BK81yY2P.js → PrizeEngineList-DMrHtxzG.js} +24 -24
- package/components/{PrizeEngineList-BIPwh5TF.cjs → PrizeEngineList-h09yq3UZ.cjs} +1 -1
- package/components/{PrizeEngineLuckywheel-bj2XxP_s.js → PrizeEngineLuckywheel-BaGd6POo.js} +8 -8
- package/components/{PrizeEngineLuckywheel-CVZwhQqN.js → PrizeEngineLuckywheel-CINYE1tj.js} +3 -3
- package/components/{PrizeEngineLuckywheel-dhLjv163.cjs → PrizeEngineLuckywheel-Jk7qbg1J.cjs} +1 -1
- package/components/{PrizeEngineSuite-DGSCkXpp.cjs → PrizeEngineSuite-B4RHK0vY.cjs} +1 -1
- package/components/{PrizeEngineSuite-BklBOmZl.js → PrizeEngineSuite-C0qsnryj.js} +6 -6
- package/components/{PrizeEngineSuite-CDs4BHHC.js → PrizeEngineSuite-atxLGPvm.js} +21 -21
- package/components/{WheelSVG-CAVcHzKZ.js → WheelSVG-B0DquA4R.js} +2 -2
- package/components/{WheelSVG-Bg_uuWxQ.js → WheelSVG-BqxZ8-M0.js} +2 -2
- package/components/{WheelSVG-DUXll4su.cjs → WheelSVG-Dgettf4b.cjs} +1 -1
- package/es2015/casino-game-overlay.cjs +1 -1
- package/es2015/casino-game-overlay.js +1 -1
- package/esnext/casino-game-overlay.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCoinroyaleContainer-CagaJdp_.cjs +0 -1
- package/components/CasinoCoinroyaleContainer-GxJmL0w6.js +0 -556
- package/components/CasinoCoinroyaleList-GC6L337P.cjs +0 -1
- package/components/CasinoMysteryChestContainer-DOZW_cjX.cjs +0 -18
- package/components/CasinoMysteryChestModal-ycWJSi2q.cjs +0 -1
- package/components/CasinoMysteryChestsList-CiH8VpkS.cjs +0 -1
- package/components/LotteryProgramWof-DSkIPUzM.cjs +0 -36
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as Z, b as K, s as V, f as I, d as Q, n as C, e as k, C as X, D as Y, g as L,
|
|
2
|
-
import { a as oe, f as ae } from "./LotteryProgramWof-
|
|
3
|
-
import { $ as T,
|
|
1
|
+
import { S as Z, b as K, s as V, f as I, d as Q, n as C, e as k, C as X, D as Y, g as L, q as f, m as p, p as y, N as J, k as $, o as ee, A as te, L as z, M, j as se, E as N, F as P, h as H, l as E, u as S, I as re, J as le, K as ie, c as ne } from "./CasinoGameOverlay-ZF7wW-MO.js";
|
|
2
|
+
import { a as oe, f as ae } from "./LotteryProgramWof-Bl9g4LFs.js";
|
|
3
|
+
import { $ as T, d as ce, a as he, b as ue, c as me } from "./CasinoMysteryChestContainer-B1dHnUTM.js";
|
|
4
4
|
import "../stencil/ui-skeleton-W50o8tfg.js";
|
|
5
5
|
const D = {
|
|
6
6
|
en: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var V=Object.defineProperty;var j=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var E=(s,t,r)=>t in s?V(s,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[t]=r,H=(s,t)=>{for(var r in t||(t={}))K.call(t,r)&&E(s,r,t[r]);if(j)for(var r of j(t))Q.call(t,r)&&E(s,r,t[r]);return s};var k=(s,t,r)=>new Promise((l,n)=>{var o=u=>{try{a(r.next(u))}catch(f){n(f)}},i=u=>{try{a(r.throw(u))}catch(f){n(f)}},a=u=>u.done?l(u.value):Promise.resolve(u.value).then(o,i);a((r=r.apply(s,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameOverlay-BESeWDbx.cjs"),W=require("./LotteryProgramWof-DSkIPUzM.cjs"),L=require("./CasinoMysteryChestContainer-DOZW_cjX.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");const q={en:{History:"History",NoHistories:"No histories"}};function X({withLocale:s,translations:t}){L.$locale.subscribe(r=>{r==null&&(L.$dictionary.set(t),L.$locale.set(s))})}function Z(s,t){L.addMessages(s,t)}function Y(s){L.$locale.set(s)}const $=()=>{X({withLocale:"en",translations:{}}),Object.keys(q).forEach(s=>{Z(s,q[s])})},D=(n,o,i,...a)=>k(exports,[n,o,i,...a],function*(s,t,r,l={}){const u=new URL(s+"/v1"+t);l.params&&Object.keys(l.params).forEach(y=>u.searchParams.append(y,l.params[y]));const f={method:l.method||"GET",headers:H(H({"Content-Type":"application/json",Accept:"text/plain"},r?{"x-SessionId":r}:{}),l.headers),body:l.body},d=yield(yield fetch(u.toString(),f)).text();return JSON.parse(d)}),ee={fetchLotteries:(s,t,r)=>k(exports,null,function*(){return yield D(s,"/wof/lotteries",t,{params:r!=null&&r.length?{filter:r.map(l=>`Types[]=${l}`).join(",")}:{filter:"Types[]=wheelOfFortune"}})}),fetchFullHistory:(s,t,r,l)=>k(exports,null,function*(){const n=c=>{const v=new URL(s+"/v1"+c);return l!=null&&l.length&&l.forEach(_=>v.searchParams.append("filter",`Types[]=${_}`)),v.toString()},o=c=>k(exports,null,function*(){return(yield fetch(n(c),{headers:H({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{})})).json()}),[i,a]=yield Promise.all([o("/wof/lotteryHistory"),o("/wof/lotteries")]),u=(a==null?void 0:a.items)||[],f=(i==null?void 0:i.items)||[],m=new Set(u.map(c=>c.program.id)),d=f.map(c=>c.programID).filter(c=>m.has(c));return d.length===0?[]:(yield Promise.all(d.map(c=>k(exports,null,function*(){var p,b,h;const v=yield D(s,`/wof/outcome/${c}`,t),_=u.find(x=>x.program.id===c);if(!((p=v==null?void 0:v.items)!=null&&p.length))return null;const w=v.items.map(x=>{var z,O,C,S,M,P,N,T;const I=x.draw.result.wheelOfFortunePartitionIndex,g=(O=(z=_==null?void 0:_.program)==null?void 0:z.wheelOfFortune)==null?void 0:O.partitions[I];return{prizeName:((C=g==null?void 0:g.name)==null?void 0:C[r])||((S=g==null?void 0:g.name)==null?void 0:S["*"]),prizeImage:((M=g==null?void 0:g.prizeImage)==null?void 0:M[r])||((P=g==null?void 0:g.prizeImage)==null?void 0:P["*"])||((N=g==null?void 0:g.image1)==null?void 0:N[r])||((T=g==null?void 0:g.image1)==null?void 0:T["*"]),state:x.draw.state==="fulfilled",date:W.format(new Date(x.draw.time),"dd/MM/yyyy hh:mm:ss a")}});return{id:c,name:((b=_==null?void 0:_.program)==null?void 0:b.name[r])||((h=_==null?void 0:_.program)==null?void 0:h.name["*"])||"Unknown Game",outcomes:w}})))).filter(c=>c!==null)})},F="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e",G="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e";function te(s){e.append_styles(s,"svelte-1r6yeh4",':host{display:block;height:100%;flex-grow:1}.PrizeHistoryContent.svelte-1r6yeh4.svelte-1r6yeh4{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif);margin:30px auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{overflow-y:auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar{width:4px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track{background:transparent}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover{background:var(--emw--color-gray-290, #284044)}.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{flex-grow:1;display:flex;flex-direction:column;gap:24px;padding-right:10px;padding-bottom:50px}.HistoryItem.svelte-1r6yeh4.svelte-1r6yeh4{margin-bottom:40px;flex-shrink:0}.GroupName.svelte-1r6yeh4.svelte-1r6yeh4{color:var(--emw--color-white, #ffffff);font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:18px;margin-bottom:16px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4{max-height:215px;display:flex;flex-direction:column}.OutcomeItem.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--emw--color-gray-transparency-20, rgba(114, 151, 135, 0.2));color:var(--emw--color-primary-variant, #a9ccbe);min-height:40px}.OutcomeItem.svelte-1r6yeh4 .OutcomeLeft.svelte-1r6yeh4{display:flex;align-items:center;gap:16px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo.svelte-1r6yeh4{display:flex;align-items:center;gap:8px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .PrizeImg.svelte-1r6yeh4{height:20px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .StatusIcon.svelte-1r6yeh4{height:16px}.OutcomeItem.svelte-1r6yeh4 .Date.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.HistoryLoader.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999);--emw-skeleton-text-width:255px}.HistoryLoader.svelte-1r6yeh4 .GroupLoader.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .LoaderBody.svelte-1r6yeh4{display:flex;justify-content:space-between}.HistoryLoader.svelte-1r6yeh4 .LoaderLeft.svelte-1r6yeh4{display:flex}.HistoryLoader.svelte-1r6yeh4 .Dot.svelte-1r6yeh4 .Skeleton{border-radius:50%;margin-right:10px}.HistoryLoader.svelte-1r6yeh4 .Text.svelte-1r6yeh4 .Skeleton{margin-right:20px}.HistoryLoader.Mobile.svelte-1r6yeh4 .Skeleton{--emw-skeleton-text-width:235px}.EmptyState.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:center;align-items:center;height:200px;color:var(--emw--color-secondary-variant, #a9ccbe)}.Mobile.svelte-1r6yeh4 .GroupName.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.Mobile.svelte-1r6yeh4 .OutcomeItem.svelte-1r6yeh4{font-size:var(--emw--font-size-x-small, 12px);padding:0}.Mobile.svelte-1r6yeh4 .OutcomeItem .Date.svelte-1r6yeh4{font-size:11px}')}function U(s,t,r){const l=s.slice();return l[21]=t[r],l}function A(s,t,r){const l=s.slice();return l[24]=t[r],l[26]=r,l}function re(s,t,r){const l=s.slice();return l[16]=t[r],l}function le(s,t,r){const l=s.slice();return l[16]=t[r],l}function se(s){let t,r,l=s[3]("NoHistories")+"",n;return{c(){t=e.element("div"),r=e.element("p"),n=e.text(l),e.attr(t,"class","EmptyState svelte-1r6yeh4")},m(o,i){e.insert(o,t,i),e.append(t,r),e.append(r,n)},p(o,i){i&8&&l!==(l=o[3]("NoHistories")+"")&&e.set_data(n,l)},d(o){o&&e.detach(t)}}}function ne(s){let t,r=e.ensure_array_like(s[2]),l=[];for(let n=0;n<r.length;n+=1)l[n]=R(U(s,r,n));return{c(){for(let n=0;n<l.length;n+=1)l[n].c();t=e.empty()},m(n,o){for(let i=0;i<l.length;i+=1)l[i]&&l[i].m(n,o);e.insert(n,t,o)},p(n,o){if(o&4){r=e.ensure_array_like(n[2]);let i;for(i=0;i<r.length;i+=1){const a=U(n,r,i);l[i]?l[i].p(a,o):(l[i]=R(a),l[i].c(),l[i].m(t.parentNode,t))}for(;i<l.length;i+=1)l[i].d(1);l.length=r.length}},d(n){n&&e.detach(t),e.destroy_each(l,n)}}}function ie(s){let t,r=e.ensure_array_like([1,2,3]),l=[];for(let n=0;n<3;n+=1)l[n]=he(re(s,r,n));return{c(){t=e.element("div");for(let n=0;n<3;n+=1)l[n].c();e.attr(t,"class","HistoryLoader svelte-1r6yeh4"),e.toggle_class(t,"Mobile",s[4])},m(n,o){e.insert(n,t,o);for(let i=0;i<3;i+=1)l[i]&&l[i].m(t,null)},p:e.noop,d(n){n&&e.detach(t),e.destroy_each(l,n)}}}function ae(s){let t,r;return{c(){t=e.element("img"),e.src_url_equal(t.src,r=s[24].prizeImage)||e.attr(t,"src",r),e.attr(t,"alt","prize"),e.attr(t,"class","PrizeImg svelte-1r6yeh4")},m(l,n){e.insert(l,t,n)},p(l,n){n&4&&!e.src_url_equal(t.src,r=l[24].prizeImage)&&e.attr(t,"src",r)},d(l){l&&e.detach(t)}}}function oe(s){let t,r=s[24].prizeName+"",l;return{c(){t=e.element("span"),l=e.text(r)},m(n,o){e.insert(n,t,o),e.append(t,l)},p(n,o){o&4&&r!==(r=n[24].prizeName+"")&&e.set_data(l,r)},d(n){n&&e.detach(t)}}}function B(s){let t,r,l,n,o,i,a,u,f,m,d,y=s[24].date+"",c,v;function _(b,h){if(b[24].prizeName)return oe;if(b[24].prizeImage)return ae}let w=_(s),p=w&&w(s);return{c(){t=e.element("div"),r=e.element("div"),l=e.element("span"),l.textContent=`${s[26]+1}`,n=e.space(),o=e.element("div"),p&&p.c(),i=e.space(),a=e.element("img"),f=e.space(),m=e.element("div"),d=e.element("span"),c=e.text(y),v=e.space(),e.attr(l,"class","Index"),e.src_url_equal(a.src,u=s[24].state?F:G)||e.attr(a,"src",u),e.attr(a,"alt","status"),e.attr(a,"class","StatusIcon svelte-1r6yeh4"),e.attr(o,"class","PrizeInfo svelte-1r6yeh4"),e.attr(r,"class","OutcomeLeft svelte-1r6yeh4"),e.attr(d,"class","Date svelte-1r6yeh4"),e.attr(m,"class","OutcomeRight"),e.attr(t,"class","OutcomeItem svelte-1r6yeh4")},m(b,h){e.insert(b,t,h),e.append(t,r),e.append(r,l),e.append(r,n),e.append(r,o),p&&p.m(o,null),e.append(o,i),e.append(o,a),e.append(t,f),e.append(t,m),e.append(m,d),e.append(d,c),e.append(t,v)},p(b,h){w===(w=_(b))&&p?p.p(b,h):(p&&p.d(1),p=w&&w(b),p&&(p.c(),p.m(o,i))),h&4&&!e.src_url_equal(a.src,u=b[24].state?F:G)&&e.attr(a,"src",u),h&4&&y!==(y=b[24].date+"")&&e.set_data(c,y)},d(b){b&&e.detach(t),p&&p.d()}}}function R(s){let t,r,l=s[21].name+"",n,o,i,a,u,f=e.ensure_array_like(s[21].outcomes),m=[];for(let d=0;d<f.length;d+=1)m[d]=B(A(s,f,d));return{c(){t=e.element("div"),r=e.element("div"),n=e.text(l),o=e.space(),i=e.element("div");for(let d=0;d<m.length;d+=1)m[d].c();u=e.space(),e.attr(r,"class","GroupName svelte-1r6yeh4"),e.attr(i,"class","OutcomesList svelte-1r6yeh4"),e.attr(i,"style",a=s[21].outcomes.length<=5?"overflow: hidden;":""),e.attr(t,"class","HistoryItem svelte-1r6yeh4")},m(d,y){e.insert(d,t,y),e.append(t,r),e.append(r,n),e.append(t,o),e.append(t,i);for(let c=0;c<m.length;c+=1)m[c]&&m[c].m(i,null);e.append(t,u)},p(d,y){if(y&4&&l!==(l=d[21].name+"")&&e.set_data(n,l),y&4){f=e.ensure_array_like(d[21].outcomes);let c;for(c=0;c<f.length;c+=1){const v=A(d,f,c);m[c]?m[c].p(v,y):(m[c]=B(v),m[c].c(),m[c].m(i,null))}for(;c<m.length;c+=1)m[c].d(1);m.length=f.length}y&4&&a!==(a=d[21].outcomes.length<=5?"overflow: hidden;":"")&&e.attr(i,"style",a)},d(d){d&&e.detach(t),e.destroy_each(m,d)}}}function ce(s){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="LoaderLeft svelte-1r6yeh4"><ui-skeleton class="Dot svelte-1r6yeh4" structure="rectangle" width="16px" height="16px"></ui-skeleton> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" height="16px"></ui-skeleton></div> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" width="50px" height="16px"></ui-skeleton>',e.attr(t,"class","LoaderBody svelte-1r6yeh4")},m(r,l){e.insert(r,t,l)},p:e.noop,d(r){r&&e.detach(t)}}}function he(s){let t,r,l,n,o=e.ensure_array_like([1,2,3]),i=[];for(let a=0;a<3;a+=1)i[a]=ce(le(s,o,a));return{c(){t=e.element("div"),r=e.element("ui-skeleton"),l=e.space();for(let a=0;a<3;a+=1)i[a].c();n=e.space(),e.set_custom_element_data(r,"structure","text"),e.set_custom_element_data(r,"height","16px"),e.attr(t,"class","GroupLoader svelte-1r6yeh4")},m(a,u){e.insert(a,t,u),e.append(t,r),e.append(t,l);for(let f=0;f<3;f+=1)i[f]&&i[f].m(t,null);e.append(t,n)},p:e.noop,d(a){a&&e.detach(t),e.destroy_each(i,a)}}}function ue(s){let t,r,l;function n(a,u){return a[1]?ie:a[2].length>0?ne:se}let o=n(s),i=o(s);return{c(){t=e.element("div"),r=e.element("div"),i.c(),e.attr(r,"class","HistoryList svelte-1r6yeh4"),e.attr(t,"class","PrizeHistoryContent svelte-1r6yeh4"),e.toggle_class(t,"Mobile",s[4])},m(a,u){e.insert(a,t,u),e.append(t,r),i.m(r,null),s[13](t)},p(a,[u]){o===(o=n(a))&&i?i.p(a,u):(i.d(1),i=o(a),i&&(i.c(),i.m(r,null)))},i(a){a&&(l||e.add_render_callback(()=>{l=e.create_in_transition(t,W.fade,{duration:300}),l.start()}))},o:e.noop,d(a){a&&e.detach(t),i.d(),s[13](null)}}}let de=null;function me(s,t,r){let l;e.component_subscribe(s,L.$format,h=>r(3,l=h));let{endpoint:n=""}=t,{session:o=""}=t,{lang:i="en"}=t,{clientstyling:a=""}=t,{clientstylingurl:u=""}=t,{translationurl:f=""}=t,{mbsource:m=""}=t,{type:d="wheelOfFortune"}=t,y;const c=L.isMobile(window.navigator.userAgent);let v=!0,_=[];$();const w=()=>{fetch(f).then(x=>x.json()).then(x=>{Object.keys(x).forEach(I=>{Z(I,x[I])})})},p=()=>k(this,null,function*(){if(!(!n||!o)){r(1,v=!0);try{r(2,_=yield ee.fetchFullHistory(n,o,i,[d]))}catch(h){console.error("[PrizeEngineHistory] Fetch failed",h)}finally{r(1,v=!1)}}});e.onMount(()=>()=>{});function b(h){e.binding_callbacks[h?"unshift":"push"](()=>{y=h,r(0,y)})}return s.$$set=h=>{"endpoint"in h&&r(5,n=h.endpoint),"session"in h&&r(6,o=h.session),"lang"in h&&r(7,i=h.lang),"clientstyling"in h&&r(8,a=h.clientstyling),"clientstylingurl"in h&&r(9,u=h.clientstylingurl),"translationurl"in h&&r(10,f=h.translationurl),"mbsource"in h&&r(11,m=h.mbsource),"type"in h&&r(12,d=h.type)},s.$$.update=()=>{s.$$.dirty&128&&i&&Y(i),s.$$.dirty&1024&&f&&w(),s.$$.dirty&4192&&n&&o&&d&&p(),s.$$.dirty&257&&a&&y&&e.setClientStyling(y,a),s.$$.dirty&513&&u&&y&&e.setClientStylingURL(y,u),s.$$.dirty&2049&&m&&y&&e.setStreamStyling(y,`${m}.Style`,de)},[y,v,_,l,c,n,o,i,a,u,f,m,d,b]}class J extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,ue,e.safe_not_equal,{endpoint:5,session:6,lang:7,clientstyling:8,clientstylingurl:9,translationurl:10,mbsource:11,type:12},te)}get endpoint(){return this.$$.ctx[5]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[6]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[7]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[10]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get type(){return this.$$.ctx[12]}set type(t){this.$$set({type:t}),e.flush()}}customElements.define("prize-engine-history",e.create_custom_element(J,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=J;
|
|
1
|
+
"use strict";var V=Object.defineProperty;var j=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var E=(s,t,r)=>t in s?V(s,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[t]=r,H=(s,t)=>{for(var r in t||(t={}))K.call(t,r)&&E(s,r,t[r]);if(j)for(var r of j(t))Q.call(t,r)&&E(s,r,t[r]);return s};var k=(s,t,r)=>new Promise((l,n)=>{var o=u=>{try{a(r.next(u))}catch(f){n(f)}},i=u=>{try{a(r.throw(u))}catch(f){n(f)}},a=u=>u.done?l(u.value):Promise.resolve(u.value).then(o,i);a((r=r.apply(s,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameOverlay-BTBB2PXb.cjs"),W=require("./LotteryProgramWof-2uKUtUtX.cjs"),L=require("./CasinoMysteryChestContainer-1zTKkJGg.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");const q={en:{History:"History",NoHistories:"No histories"}};function X({withLocale:s,translations:t}){L.$locale.subscribe(r=>{r==null&&(L.$dictionary.set(t),L.$locale.set(s))})}function Z(s,t){L.addMessages(s,t)}function Y(s){L.$locale.set(s)}const $=()=>{X({withLocale:"en",translations:{}}),Object.keys(q).forEach(s=>{Z(s,q[s])})},D=(n,o,i,...a)=>k(exports,[n,o,i,...a],function*(s,t,r,l={}){const u=new URL(s+"/v1"+t);l.params&&Object.keys(l.params).forEach(y=>u.searchParams.append(y,l.params[y]));const f={method:l.method||"GET",headers:H(H({"Content-Type":"application/json",Accept:"text/plain"},r?{"x-SessionId":r}:{}),l.headers),body:l.body},d=yield(yield fetch(u.toString(),f)).text();return JSON.parse(d)}),ee={fetchLotteries:(s,t,r)=>k(exports,null,function*(){return yield D(s,"/wof/lotteries",t,{params:r!=null&&r.length?{filter:r.map(l=>`Types[]=${l}`).join(",")}:{filter:"Types[]=wheelOfFortune"}})}),fetchFullHistory:(s,t,r,l)=>k(exports,null,function*(){const n=c=>{const v=new URL(s+"/v1"+c);return l!=null&&l.length&&l.forEach(_=>v.searchParams.append("filter",`Types[]=${_}`)),v.toString()},o=c=>k(exports,null,function*(){return(yield fetch(n(c),{headers:H({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{})})).json()}),[i,a]=yield Promise.all([o("/wof/lotteryHistory"),o("/wof/lotteries")]),u=(a==null?void 0:a.items)||[],f=(i==null?void 0:i.items)||[],m=new Set(u.map(c=>c.program.id)),d=f.map(c=>c.programID).filter(c=>m.has(c));return d.length===0?[]:(yield Promise.all(d.map(c=>k(exports,null,function*(){var p,b,h;const v=yield D(s,`/wof/outcome/${c}`,t),_=u.find(x=>x.program.id===c);if(!((p=v==null?void 0:v.items)!=null&&p.length))return null;const w=v.items.map(x=>{var z,O,C,S,M,P,N,T;const I=x.draw.result.wheelOfFortunePartitionIndex,g=(O=(z=_==null?void 0:_.program)==null?void 0:z.wheelOfFortune)==null?void 0:O.partitions[I];return{prizeName:((C=g==null?void 0:g.name)==null?void 0:C[r])||((S=g==null?void 0:g.name)==null?void 0:S["*"]),prizeImage:((M=g==null?void 0:g.prizeImage)==null?void 0:M[r])||((P=g==null?void 0:g.prizeImage)==null?void 0:P["*"])||((N=g==null?void 0:g.image1)==null?void 0:N[r])||((T=g==null?void 0:g.image1)==null?void 0:T["*"]),state:x.draw.state==="fulfilled",date:W.format(new Date(x.draw.time),"dd/MM/yyyy hh:mm:ss a")}});return{id:c,name:((b=_==null?void 0:_.program)==null?void 0:b.name[r])||((h=_==null?void 0:_.program)==null?void 0:h.name["*"])||"Unknown Game",outcomes:w}})))).filter(c=>c!==null)})},F="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e",G="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e";function te(s){e.append_styles(s,"svelte-1r6yeh4",':host{display:block;height:100%;flex-grow:1}.PrizeHistoryContent.svelte-1r6yeh4.svelte-1r6yeh4{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif);margin:30px auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{overflow-y:auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar{width:4px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track{background:transparent}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover{background:var(--emw--color-gray-290, #284044)}.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{flex-grow:1;display:flex;flex-direction:column;gap:24px;padding-right:10px;padding-bottom:50px}.HistoryItem.svelte-1r6yeh4.svelte-1r6yeh4{margin-bottom:40px;flex-shrink:0}.GroupName.svelte-1r6yeh4.svelte-1r6yeh4{color:var(--emw--color-white, #ffffff);font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:18px;margin-bottom:16px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4{max-height:215px;display:flex;flex-direction:column}.OutcomeItem.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--emw--color-gray-transparency-20, rgba(114, 151, 135, 0.2));color:var(--emw--color-primary-variant, #a9ccbe);min-height:40px}.OutcomeItem.svelte-1r6yeh4 .OutcomeLeft.svelte-1r6yeh4{display:flex;align-items:center;gap:16px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo.svelte-1r6yeh4{display:flex;align-items:center;gap:8px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .PrizeImg.svelte-1r6yeh4{height:20px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .StatusIcon.svelte-1r6yeh4{height:16px}.OutcomeItem.svelte-1r6yeh4 .Date.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.HistoryLoader.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999);--emw-skeleton-text-width:255px}.HistoryLoader.svelte-1r6yeh4 .GroupLoader.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .LoaderBody.svelte-1r6yeh4{display:flex;justify-content:space-between}.HistoryLoader.svelte-1r6yeh4 .LoaderLeft.svelte-1r6yeh4{display:flex}.HistoryLoader.svelte-1r6yeh4 .Dot.svelte-1r6yeh4 .Skeleton{border-radius:50%;margin-right:10px}.HistoryLoader.svelte-1r6yeh4 .Text.svelte-1r6yeh4 .Skeleton{margin-right:20px}.HistoryLoader.Mobile.svelte-1r6yeh4 .Skeleton{--emw-skeleton-text-width:235px}.EmptyState.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:center;align-items:center;height:200px;color:var(--emw--color-secondary-variant, #a9ccbe)}.Mobile.svelte-1r6yeh4 .GroupName.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.Mobile.svelte-1r6yeh4 .OutcomeItem.svelte-1r6yeh4{font-size:var(--emw--font-size-x-small, 12px);padding:0}.Mobile.svelte-1r6yeh4 .OutcomeItem .Date.svelte-1r6yeh4{font-size:11px}')}function U(s,t,r){const l=s.slice();return l[21]=t[r],l}function A(s,t,r){const l=s.slice();return l[24]=t[r],l[26]=r,l}function re(s,t,r){const l=s.slice();return l[16]=t[r],l}function le(s,t,r){const l=s.slice();return l[16]=t[r],l}function se(s){let t,r,l=s[3]("NoHistories")+"",n;return{c(){t=e.element("div"),r=e.element("p"),n=e.text(l),e.attr(t,"class","EmptyState svelte-1r6yeh4")},m(o,i){e.insert(o,t,i),e.append(t,r),e.append(r,n)},p(o,i){i&8&&l!==(l=o[3]("NoHistories")+"")&&e.set_data(n,l)},d(o){o&&e.detach(t)}}}function ne(s){let t,r=e.ensure_array_like(s[2]),l=[];for(let n=0;n<r.length;n+=1)l[n]=R(U(s,r,n));return{c(){for(let n=0;n<l.length;n+=1)l[n].c();t=e.empty()},m(n,o){for(let i=0;i<l.length;i+=1)l[i]&&l[i].m(n,o);e.insert(n,t,o)},p(n,o){if(o&4){r=e.ensure_array_like(n[2]);let i;for(i=0;i<r.length;i+=1){const a=U(n,r,i);l[i]?l[i].p(a,o):(l[i]=R(a),l[i].c(),l[i].m(t.parentNode,t))}for(;i<l.length;i+=1)l[i].d(1);l.length=r.length}},d(n){n&&e.detach(t),e.destroy_each(l,n)}}}function ie(s){let t,r=e.ensure_array_like([1,2,3]),l=[];for(let n=0;n<3;n+=1)l[n]=he(re(s,r,n));return{c(){t=e.element("div");for(let n=0;n<3;n+=1)l[n].c();e.attr(t,"class","HistoryLoader svelte-1r6yeh4"),e.toggle_class(t,"Mobile",s[4])},m(n,o){e.insert(n,t,o);for(let i=0;i<3;i+=1)l[i]&&l[i].m(t,null)},p:e.noop,d(n){n&&e.detach(t),e.destroy_each(l,n)}}}function ae(s){let t,r;return{c(){t=e.element("img"),e.src_url_equal(t.src,r=s[24].prizeImage)||e.attr(t,"src",r),e.attr(t,"alt","prize"),e.attr(t,"class","PrizeImg svelte-1r6yeh4")},m(l,n){e.insert(l,t,n)},p(l,n){n&4&&!e.src_url_equal(t.src,r=l[24].prizeImage)&&e.attr(t,"src",r)},d(l){l&&e.detach(t)}}}function oe(s){let t,r=s[24].prizeName+"",l;return{c(){t=e.element("span"),l=e.text(r)},m(n,o){e.insert(n,t,o),e.append(t,l)},p(n,o){o&4&&r!==(r=n[24].prizeName+"")&&e.set_data(l,r)},d(n){n&&e.detach(t)}}}function B(s){let t,r,l,n,o,i,a,u,f,m,d,y=s[24].date+"",c,v;function _(b,h){if(b[24].prizeName)return oe;if(b[24].prizeImage)return ae}let w=_(s),p=w&&w(s);return{c(){t=e.element("div"),r=e.element("div"),l=e.element("span"),l.textContent=`${s[26]+1}`,n=e.space(),o=e.element("div"),p&&p.c(),i=e.space(),a=e.element("img"),f=e.space(),m=e.element("div"),d=e.element("span"),c=e.text(y),v=e.space(),e.attr(l,"class","Index"),e.src_url_equal(a.src,u=s[24].state?F:G)||e.attr(a,"src",u),e.attr(a,"alt","status"),e.attr(a,"class","StatusIcon svelte-1r6yeh4"),e.attr(o,"class","PrizeInfo svelte-1r6yeh4"),e.attr(r,"class","OutcomeLeft svelte-1r6yeh4"),e.attr(d,"class","Date svelte-1r6yeh4"),e.attr(m,"class","OutcomeRight"),e.attr(t,"class","OutcomeItem svelte-1r6yeh4")},m(b,h){e.insert(b,t,h),e.append(t,r),e.append(r,l),e.append(r,n),e.append(r,o),p&&p.m(o,null),e.append(o,i),e.append(o,a),e.append(t,f),e.append(t,m),e.append(m,d),e.append(d,c),e.append(t,v)},p(b,h){w===(w=_(b))&&p?p.p(b,h):(p&&p.d(1),p=w&&w(b),p&&(p.c(),p.m(o,i))),h&4&&!e.src_url_equal(a.src,u=b[24].state?F:G)&&e.attr(a,"src",u),h&4&&y!==(y=b[24].date+"")&&e.set_data(c,y)},d(b){b&&e.detach(t),p&&p.d()}}}function R(s){let t,r,l=s[21].name+"",n,o,i,a,u,f=e.ensure_array_like(s[21].outcomes),m=[];for(let d=0;d<f.length;d+=1)m[d]=B(A(s,f,d));return{c(){t=e.element("div"),r=e.element("div"),n=e.text(l),o=e.space(),i=e.element("div");for(let d=0;d<m.length;d+=1)m[d].c();u=e.space(),e.attr(r,"class","GroupName svelte-1r6yeh4"),e.attr(i,"class","OutcomesList svelte-1r6yeh4"),e.attr(i,"style",a=s[21].outcomes.length<=5?"overflow: hidden;":""),e.attr(t,"class","HistoryItem svelte-1r6yeh4")},m(d,y){e.insert(d,t,y),e.append(t,r),e.append(r,n),e.append(t,o),e.append(t,i);for(let c=0;c<m.length;c+=1)m[c]&&m[c].m(i,null);e.append(t,u)},p(d,y){if(y&4&&l!==(l=d[21].name+"")&&e.set_data(n,l),y&4){f=e.ensure_array_like(d[21].outcomes);let c;for(c=0;c<f.length;c+=1){const v=A(d,f,c);m[c]?m[c].p(v,y):(m[c]=B(v),m[c].c(),m[c].m(i,null))}for(;c<m.length;c+=1)m[c].d(1);m.length=f.length}y&4&&a!==(a=d[21].outcomes.length<=5?"overflow: hidden;":"")&&e.attr(i,"style",a)},d(d){d&&e.detach(t),e.destroy_each(m,d)}}}function ce(s){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="LoaderLeft svelte-1r6yeh4"><ui-skeleton class="Dot svelte-1r6yeh4" structure="rectangle" width="16px" height="16px"></ui-skeleton> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" height="16px"></ui-skeleton></div> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" width="50px" height="16px"></ui-skeleton>',e.attr(t,"class","LoaderBody svelte-1r6yeh4")},m(r,l){e.insert(r,t,l)},p:e.noop,d(r){r&&e.detach(t)}}}function he(s){let t,r,l,n,o=e.ensure_array_like([1,2,3]),i=[];for(let a=0;a<3;a+=1)i[a]=ce(le(s,o,a));return{c(){t=e.element("div"),r=e.element("ui-skeleton"),l=e.space();for(let a=0;a<3;a+=1)i[a].c();n=e.space(),e.set_custom_element_data(r,"structure","text"),e.set_custom_element_data(r,"height","16px"),e.attr(t,"class","GroupLoader svelte-1r6yeh4")},m(a,u){e.insert(a,t,u),e.append(t,r),e.append(t,l);for(let f=0;f<3;f+=1)i[f]&&i[f].m(t,null);e.append(t,n)},p:e.noop,d(a){a&&e.detach(t),e.destroy_each(i,a)}}}function ue(s){let t,r,l;function n(a,u){return a[1]?ie:a[2].length>0?ne:se}let o=n(s),i=o(s);return{c(){t=e.element("div"),r=e.element("div"),i.c(),e.attr(r,"class","HistoryList svelte-1r6yeh4"),e.attr(t,"class","PrizeHistoryContent svelte-1r6yeh4"),e.toggle_class(t,"Mobile",s[4])},m(a,u){e.insert(a,t,u),e.append(t,r),i.m(r,null),s[13](t)},p(a,[u]){o===(o=n(a))&&i?i.p(a,u):(i.d(1),i=o(a),i&&(i.c(),i.m(r,null)))},i(a){a&&(l||e.add_render_callback(()=>{l=e.create_in_transition(t,W.fade,{duration:300}),l.start()}))},o:e.noop,d(a){a&&e.detach(t),i.d(),s[13](null)}}}let de=null;function me(s,t,r){let l;e.component_subscribe(s,L.$format,h=>r(3,l=h));let{endpoint:n=""}=t,{session:o=""}=t,{lang:i="en"}=t,{clientstyling:a=""}=t,{clientstylingurl:u=""}=t,{translationurl:f=""}=t,{mbsource:m=""}=t,{type:d="wheelOfFortune"}=t,y;const c=L.isMobile(window.navigator.userAgent);let v=!0,_=[];$();const w=()=>{fetch(f).then(x=>x.json()).then(x=>{Object.keys(x).forEach(I=>{Z(I,x[I])})})},p=()=>k(this,null,function*(){if(!(!n||!o)){r(1,v=!0);try{r(2,_=yield ee.fetchFullHistory(n,o,i,[d]))}catch(h){console.error("[PrizeEngineHistory] Fetch failed",h)}finally{r(1,v=!1)}}});e.onMount(()=>()=>{});function b(h){e.binding_callbacks[h?"unshift":"push"](()=>{y=h,r(0,y)})}return s.$$set=h=>{"endpoint"in h&&r(5,n=h.endpoint),"session"in h&&r(6,o=h.session),"lang"in h&&r(7,i=h.lang),"clientstyling"in h&&r(8,a=h.clientstyling),"clientstylingurl"in h&&r(9,u=h.clientstylingurl),"translationurl"in h&&r(10,f=h.translationurl),"mbsource"in h&&r(11,m=h.mbsource),"type"in h&&r(12,d=h.type)},s.$$.update=()=>{s.$$.dirty&128&&i&&Y(i),s.$$.dirty&1024&&f&&w(),s.$$.dirty&4192&&n&&o&&d&&p(),s.$$.dirty&257&&a&&y&&e.setClientStyling(y,a),s.$$.dirty&513&&u&&y&&e.setClientStylingURL(y,u),s.$$.dirty&2049&&m&&y&&e.setStreamStyling(y,`${m}.Style`,de)},[y,v,_,l,c,n,o,i,a,u,f,m,d,b]}class J extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,ue,e.safe_not_equal,{endpoint:5,session:6,lang:7,clientstyling:8,clientstylingurl:9,translationurl:10,mbsource:11,type:12},te)}get endpoint(){return this.$$.ctx[5]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[6]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[7]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[10]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get type(){return this.$$.ctx[12]}set type(t){this.$$set({type:t}),e.flush()}}customElements.define("prize-engine-history",e.create_custom_element(J,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=J;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as X, b as q, s as J, f as y, d as $, n as N, e as j, C as ee, D as te, g as L,
|
|
2
|
-
import { f as de } from "./LotteryProgramWof-
|
|
3
|
-
import { $ as W,
|
|
1
|
+
import { S as X, b as q, s as J, f as y, d as $, n as N, e as j, C as ee, D as te, g as L, q as c, m as u, p as d, N as Y, k as le, o as re, A as ne, L as F, M as P, E as D, F as E, u as U, t as ie, h as A, I as se, J as oe, K as ae, c as ce } from "./CasinoGameOverlay-ZF7wW-MO.js";
|
|
2
|
+
import { f as de } from "./LotteryProgramWof-Bl9g4LFs.js";
|
|
3
|
+
import { $ as W, d as ue, a as ge, b as me, c as fe } from "./CasinoMysteryChestContainer-B1dHnUTM.js";
|
|
4
4
|
import "../stencil/ui-skeleton-W50o8tfg.js";
|
|
5
5
|
const H = {
|
|
6
6
|
en: {
|
|
@@ -25,9 +25,9 @@ var W = (l, e, t) => new Promise((r, n) => {
|
|
|
25
25
|
}, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(s, i);
|
|
26
26
|
a((t = t.apply(l, e)).next());
|
|
27
27
|
});
|
|
28
|
-
import { S as re, b as ne, s as ie, f as
|
|
29
|
-
import { f as ve } from "./LotteryProgramWof-
|
|
30
|
-
import { $ as O,
|
|
28
|
+
import { S as re, b as ne, s as ie, f as x, c as se, n as V, d as _, C as oe, D as ae, e as A, p as d, l as g, m as u, N as q, j as ce, o as de, A as ue, L as H, M as J, E as N, F as U, t as R, q as ge, g as M, I as me, J as fe, K as pe, u as he } from "./CasinoGameOverlay-D3cVNfoa.js";
|
|
29
|
+
import { f as ve } from "./LotteryProgramWof-C7sU4ul6.js";
|
|
30
|
+
import { $ as O, d as we, a as Ce, b as be, c as ye } from "./CasinoMysteryChestContainer-D1Kv_B6l.js";
|
|
31
31
|
import "../stencil/ui-skeleton-xXZA3rYO.js";
|
|
32
32
|
const Z = {
|
|
33
33
|
en: {
|
|
@@ -50,10 +50,10 @@ function ke({ withLocale: l, translations: e }) {
|
|
|
50
50
|
function $(l, e) {
|
|
51
51
|
Ce(l, e);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function je(l) {
|
|
54
54
|
O.set(l);
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const xe = () => {
|
|
57
57
|
ke({ withLocale: "en", translations: {} }), Object.keys(Z).forEach((l) => {
|
|
58
58
|
$(l, Z[l]);
|
|
59
59
|
});
|
|
@@ -235,23 +235,23 @@ function X(l) {
|
|
|
235
235
|
e = g("li"), t = g("button"), r = g("div"), n = g("span"), i = U(s), a = M(), c = g("span"), v = M(), h = g("div"), w = g("div"), f = g("img"), S = M(), k = g("span"), B = U(L), T = M(), m && m.c(), z = M(), u(n, "class", "ItemTitle svelte-ljc7r7"), u(c, "class", "IconButton Chevron svelte-ljc7r7"), u(r, "class", "ItemTitleRow svelte-ljc7r7"), R(f.src, p = /*dynamicIcon*/
|
|
236
236
|
l[4]) || u(f, "src", p), u(f, "alt", ""), u(k, "class", "svelte-ljc7r7"), u(w, "class", "ItemKeys svelte-ljc7r7"), u(h, "class", "ItemDetails svelte-ljc7r7"), u(t, "type", "button"), u(t, "class", "ItemButton svelte-ljc7r7"), u(e, "class", "LuckyWheelListItem svelte-ljc7r7");
|
|
237
237
|
},
|
|
238
|
-
m(y,
|
|
239
|
-
A(y, e,
|
|
238
|
+
m(y, j) {
|
|
239
|
+
A(y, e, j), d(e, t), d(t, r), d(r, n), d(n, i), d(r, a), d(r, c), d(t, v), d(t, h), d(h, w), d(w, f), d(w, S), d(w, k), d(k, B), d(h, T), m && m.m(h, null), d(e, z), I || (D = ge(t, "click", o), I = !0);
|
|
240
240
|
},
|
|
241
|
-
p(y,
|
|
241
|
+
p(y, j) {
|
|
242
242
|
var E, F;
|
|
243
|
-
l = y,
|
|
243
|
+
l = y, j & /*programs, lang*/
|
|
244
244
|
9 && s !== (s = /*program*/
|
|
245
245
|
(l[23].program.name[
|
|
246
246
|
/*lang*/
|
|
247
247
|
l[0]
|
|
248
248
|
] || /*program*/
|
|
249
|
-
l[23].program.name["*"] || "Unknown Game") + "") && N(i, s),
|
|
249
|
+
l[23].program.name["*"] || "Unknown Game") + "") && N(i, s), j & /*dynamicIcon*/
|
|
250
250
|
16 && !R(f.src, p = /*dynamicIcon*/
|
|
251
|
-
l[4]) && u(f, "src", p),
|
|
251
|
+
l[4]) && u(f, "src", p), j & /*programs*/
|
|
252
252
|
8 && L !== (L = /*program*/
|
|
253
253
|
(((E = l[23].current) == null ? void 0 : E.remainingTimes) || 0) + "") && N(B, L), /*program*/
|
|
254
|
-
(F = l[23].current) != null && F.expiryTime ? m ? m.p(l,
|
|
254
|
+
(F = l[23].current) != null && F.expiryTime ? m ? m.p(l, j) : (m = Q(l), m.c(), m.m(h, null)) : m && (m.d(1), m = null);
|
|
255
255
|
},
|
|
256
256
|
d(y) {
|
|
257
257
|
y && _(e), m && m.d(), I = !1, D();
|
|
@@ -318,7 +318,7 @@ function Ne(l, e, t) {
|
|
|
318
318
|
let { endpoint: s = "" } = e, { session: i = "" } = e, { lang: a = "en" } = e, { clientstyling: c = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: h = "" } = e, { mbsource: w = "" } = e, { type: f = "wheelOfFortune" } = e, p;
|
|
319
319
|
const S = be(window.navigator.userAgent);
|
|
320
320
|
let k = !0, L = [];
|
|
321
|
-
|
|
321
|
+
xe();
|
|
322
322
|
const B = () => {
|
|
323
323
|
fetch(h).then((C) => C.json()).then((C) => {
|
|
324
324
|
Object.keys(C).forEach((b) => {
|
|
@@ -331,8 +331,8 @@ function Ne(l, e, t) {
|
|
|
331
331
|
const C = new Date(o).getTime(), b = Date.now(), y = C - b;
|
|
332
332
|
if (y <= 0)
|
|
333
333
|
return "";
|
|
334
|
-
const
|
|
335
|
-
return `${
|
|
334
|
+
const j = Math.floor(y / (1e3 * 60 * 60 * 24)), E = Math.floor(y % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)), F = Math.floor(y % (1e3 * 60 * 60) / (1e3 * 60));
|
|
335
|
+
return `${j.toString().padStart(2, "0")}d:${E.toString().padStart(2, "0")}h:${F.toString().padStart(2, "0")}m`;
|
|
336
336
|
}, z = () => W(this, null, function* () {
|
|
337
337
|
if (!(!s || !i)) {
|
|
338
338
|
t(2, k = !0);
|
|
@@ -369,7 +369,7 @@ function Ne(l, e, t) {
|
|
|
369
369
|
"endpoint" in o && t(9, s = o.endpoint), "session" in o && t(10, i = o.session), "lang" in o && t(0, a = o.lang), "clientstyling" in o && t(11, c = o.clientstyling), "clientstylingurl" in o && t(12, v = o.clientstylingurl), "translationurl" in o && t(13, h = o.translationurl), "mbsource" in o && t(14, w = o.mbsource), "type" in o && t(15, f = o.type);
|
|
370
370
|
}, l.$$.update = () => {
|
|
371
371
|
l.$$.dirty & /*lang*/
|
|
372
|
-
1 && a &&
|
|
372
|
+
1 && a && je(a), l.$$.dirty & /*translationurl*/
|
|
373
373
|
8192 && h && B(), l.$$.dirty & /*type*/
|
|
374
374
|
32768 && t(4, r = f === "flipCoin" ? Ie : f === "mysteryChest" ? Me : Ae), l.$$.dirty & /*endpoint, session, type*/
|
|
375
375
|
34304 && s && i && f && z(), l.$$.dirty & /*clientstyling, rootContainer*/
|
|
@@ -422,49 +422,49 @@ class Ue extends re {
|
|
|
422
422
|
return this.$$.ctx[9];
|
|
423
423
|
}
|
|
424
424
|
set endpoint(e) {
|
|
425
|
-
this.$$set({ endpoint: e }),
|
|
425
|
+
this.$$set({ endpoint: e }), x();
|
|
426
426
|
}
|
|
427
427
|
get session() {
|
|
428
428
|
return this.$$.ctx[10];
|
|
429
429
|
}
|
|
430
430
|
set session(e) {
|
|
431
|
-
this.$$set({ session: e }),
|
|
431
|
+
this.$$set({ session: e }), x();
|
|
432
432
|
}
|
|
433
433
|
get lang() {
|
|
434
434
|
return this.$$.ctx[0];
|
|
435
435
|
}
|
|
436
436
|
set lang(e) {
|
|
437
|
-
this.$$set({ lang: e }),
|
|
437
|
+
this.$$set({ lang: e }), x();
|
|
438
438
|
}
|
|
439
439
|
get clientstyling() {
|
|
440
440
|
return this.$$.ctx[11];
|
|
441
441
|
}
|
|
442
442
|
set clientstyling(e) {
|
|
443
|
-
this.$$set({ clientstyling: e }),
|
|
443
|
+
this.$$set({ clientstyling: e }), x();
|
|
444
444
|
}
|
|
445
445
|
get clientstylingurl() {
|
|
446
446
|
return this.$$.ctx[12];
|
|
447
447
|
}
|
|
448
448
|
set clientstylingurl(e) {
|
|
449
|
-
this.$$set({ clientstylingurl: e }),
|
|
449
|
+
this.$$set({ clientstylingurl: e }), x();
|
|
450
450
|
}
|
|
451
451
|
get translationurl() {
|
|
452
452
|
return this.$$.ctx[13];
|
|
453
453
|
}
|
|
454
454
|
set translationurl(e) {
|
|
455
|
-
this.$$set({ translationurl: e }),
|
|
455
|
+
this.$$set({ translationurl: e }), x();
|
|
456
456
|
}
|
|
457
457
|
get mbsource() {
|
|
458
458
|
return this.$$.ctx[14];
|
|
459
459
|
}
|
|
460
460
|
set mbsource(e) {
|
|
461
|
-
this.$$set({ mbsource: e }),
|
|
461
|
+
this.$$set({ mbsource: e }), x();
|
|
462
462
|
}
|
|
463
463
|
get type() {
|
|
464
464
|
return this.$$.ctx[15];
|
|
465
465
|
}
|
|
466
466
|
set type(e) {
|
|
467
|
-
this.$$set({ type: e }),
|
|
467
|
+
this.$$set({ type: e }), x();
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
customElements.define("prize-engine-list", he(Ue, { endpoint: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, type: {} }, [], [], !0));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var G=Object.defineProperty;var z=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var W=(r,t,l)=>t in r?G(r,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[t]=l,D=(r,t)=>{for(var l in t||(t={}))P.call(t,l)&&W(r,l,t[l]);if(z)for(var l of z(t))V.call(t,l)&&W(r,l,t[l]);return r};var T=(r,t,l)=>new Promise((n,i)=>{var o=d=>{try{c(l.next(d))}catch(h){i(h)}},s=d=>{try{c(l.throw(d))}catch(h){i(h)}},c=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);c((l=l.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameOverlay-BESeWDbx.cjs"),Y=require("./LotteryProgramWof-DSkIPUzM.cjs"),j=require("./CasinoMysteryChestContainer-DOZW_cjX.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");const E={en:{Title:"Prize Games",RemainingTimes:"Remaining Times",NoContent:"No games available at the moment",Loading:"Loading games...",Error:"Failed to load games",WheelOfFortune:"Lucky Wheel",MysteryChest:"Mystery Chest",FlipCoin:"Flip Coin",Dice:"Dices"}};function R({withLocale:r,translations:t}){j.$locale.subscribe(l=>{l==null&&(j.$dictionary.set(t),j.$locale.set(r))})}function O(r,t){j.addMessages(r,t)}function Z(r){j.$locale.set(r)}const Q=()=>{R({withLocale:"en",translations:{}}),Object.keys(E).forEach(r=>{O(r,E[r])})},q=n=>T(exports,[n],function*({endpoint:r,session:t,types:l}){const i=new URL(`${r}/v1/wof/lotteries`);l&&l.length>0&&l.forEach(s=>i.searchParams.append("filter",`Types[]=${s}`));const o=yield fetch(i.toString(),{method:"GET",headers:D({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{})});if(!o.ok)throw new Error(`Failed to fetch lotteries: ${o.statusText}`);return o.json()}),K={lotteries:(r,t,l)=>T(exports,null,function*(){const n=yield q({endpoint:r,session:t,types:l});return(n==null?void 0:n.items)||[]})},X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMVSURBVHgBbVTNThNRGD3fnSmYYNLizhVl4ZriC9AhcUFcWDYmbsQuiCsT0aioJJRogrJhacJC0MSwMsALMIUHsDQxYSeDCVspiWA7befz3Jm2AnGSm7k/3+85517Bf75F9fMOoikXjTzHkIO6OAgrnFcdNLaK8mjzso+cX5S0kk2h9ZHGeUNnOtY4MlzDRVjjP801DBpBG83xorwMur6mO3ml33MCqSg0r4h2Beo9kduDCtDYHDyUKc5lPAI+03z4CvTbFy3lLgSa1f2sC9dngWk6HjbQLjyTW+VOyb2qp2W6LGg95rRGu0EX2F7X2WwvkEG/z0oyHCesJNuHlF9SP2PPNA6hcbBVXeWeTQh7FgiiwRS344Sv9ehOhMami+aag7MZ/n3iMGLQrKZw4hloxUFTB3B2k7j4BD5HvPZa+O0NoL1BEsYitMdNC1qQOLP5VJLRWgunHtdVZssp+ivEbYhVDocwv2hGTEzQguMVpVSL+WExKeh9kxxK7a3ciDEpicdgraLGTant3zoEBHm30+NQF7O78mbHQI6ZKC/P9UjdmN7mgYM/pDxU0svew7QgXHgqEwvW6YOuUhoh2w6HDMJD6+PEo06iQvp3ACXl5p+4RJN9rXaDGBjLKiuUAIh6NCQfhcGKWEkzvSjZa93t97pbYFYC2ThwUd/heYGZM8wcOEiNFqVY69p+1RfHBDww7K9saZzT/XxH3ZkIMt+xGya4U8yYkViYFrNTf1WXY2ms6xx9lNqTPWPgrHFCEJ15G4RZfbY2wsL3BIaB9CfPgz7oKH33OEZctBmsxKsjUzxjDnfLLMp1Iq87QDtPx4plMSI2Z6R4RiaCJAlg23HQ5zFwlUlyV5D6Qck8YNJgUpY2Y4BTkCI3KHvN8n8c4qpnZYCeqhPwE2xangWccA/y7JgBvN4VKclwYBKD+A7143R5SbfHOhxq94qs6Ar33A3ECVFjB+OT8i5ImD73LfIZiXgNqKMsWeo+HZlEJ3XOwzTX9nkpU3fFe+eekQuBLtFfsHeOziNO/DaRYkqB/zU+bOXLPn8BG6xnv5+RMCQAAAAASUVORK5CYII=",J="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",$="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1978%2013.2348C12.1978%209.60751%2015.1383%206.66699%2018.7656%206.66699C22.3929%206.66699%2025.3334%209.60751%2025.3334%2013.2348C25.3334%2016.8621%2022.3929%2019.8026%2018.7656%2019.8026C18.467%2019.8026%2018.1725%2019.7826%2017.8835%2019.7438C17.6825%2019.7168%2017.557%2019.7001%2017.4658%2019.6909C17.4218%2019.7326%2017.3626%2019.7916%2017.2673%2019.8869L12.5565%2024.5977C12.5457%2024.6085%2012.5344%2024.6198%2012.5229%2024.6315C12.4009%2024.7542%2012.2356%2024.9205%2012.0329%2025.0448C11.8576%2025.1522%2011.6665%2025.2313%2011.4666%2025.2793C11.2354%2025.3348%2011.001%2025.3341%2010.8279%2025.3335C10.8115%2025.3335%2010.7956%2025.3334%2010.7803%2025.3334L9.14719%2025.3334C8.91663%2025.3335%208.68571%2025.3335%208.48899%2025.3174C8.27114%2025.2996%208.00565%2025.2571%207.7365%2025.1199C7.36793%2024.9321%207.06826%2024.6325%206.88046%2024.2639C6.74332%2023.9948%206.70076%2023.7293%206.68297%2023.5114C6.66689%2023.3147%206.66693%2023.0838%206.66696%2022.8532L6.66696%2021.2201C6.66696%2021.2049%206.66691%2021.189%206.66686%2021.1725C6.66631%2020.9994%206.66557%2020.765%206.72109%2020.5338C6.76907%2020.3339%206.84822%2020.1428%206.95562%2019.9676C7.07986%2019.7648%207.24617%2019.5995%207.36894%2019.4776C7.3806%2019.466%207.39188%2019.4548%207.40268%2019.4439L12.1135%2014.7331C12.2088%2014.6378%2012.2678%2014.5786%2012.3095%2014.5346C12.3003%2014.4434%2012.2836%2014.3179%2012.2566%2014.1169C12.2178%2013.8279%2012.1978%2013.5334%2012.1978%2013.2348ZM18.7656%208.74104C16.2837%208.74104%2014.2718%2010.753%2014.2718%2013.2348C14.2718%2013.4408%2014.2856%2013.6429%2014.3122%2013.8406L14.3146%2013.8585C14.3394%2014.0432%2014.3618%2014.2097%2014.3749%2014.3451C14.3874%2014.4747%2014.4011%2014.6598%2014.3736%2014.8525C14.3367%2015.1105%2014.2715%2015.3033%2014.1443%2015.5308C14.0078%2015.7751%2013.7931%2015.9881%2013.629%2016.151C13.6121%2016.1678%2013.5958%2016.184%2013.5801%2016.1997L8.86926%2020.9105C8.82845%2020.9513%208.79718%2020.9826%208.77036%2021.0099C8.75929%2021.0212%208.74992%2021.0308%208.74194%2021.0392C8.7417%2021.0507%208.74151%2021.0641%208.74137%2021.0799C8.74102%2021.1182%208.74101%2021.1624%208.74101%2021.2201V22.8215C8.74101%2023.0268%208.74146%2023.1591%208.74514%2023.2553C8.84132%2023.2589%208.97362%2023.2594%209.17887%2023.2594H10.7803C10.838%2023.2594%2010.8822%2023.2594%2010.9205%2023.259C10.9363%2023.2589%2010.9497%2023.2587%2010.9613%2023.2585C10.9696%2023.2505%2010.9792%2023.2411%2010.9905%2023.2301C11.0178%2023.2032%2011.0491%2023.172%2011.0899%2023.1312L15.8007%2018.4203C15.8164%2018.4046%2015.8327%2018.3883%2015.8494%2018.3714C16.0123%2018.2073%2016.2253%2017.9926%2016.4696%2017.8561C16.6971%2017.7289%2016.8899%2017.6638%2017.1479%2017.6268C17.3406%2017.5993%2017.5257%2017.613%2017.6553%2017.6255C17.7907%2017.6386%2017.9572%2017.661%2018.1419%2017.6858L18.1598%2017.6882C18.3575%2017.7148%2018.5597%2017.7286%2018.7656%2017.7286C21.2474%2017.7286%2023.2594%2015.7167%2023.2594%2013.2348C23.2594%2010.753%2021.2474%208.74104%2018.7656%208.74104ZM17.7286%2013.2348C17.7286%2012.6621%2018.1929%2012.1978%2018.7656%2012.1978H18.7748C19.3475%2012.1978%2019.8118%2012.6621%2019.8118%2013.2348C19.8118%2013.8076%2019.3475%2014.2718%2018.7748%2014.2718H18.7656C18.1929%2014.2718%2017.7286%2013.8076%2017.7286%2013.2348Z'%20fill='url(%23paint0_linear_714_605)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_714_605'%20x1='6.66675'%20y1='16.0003'%20x2='25.3334'%20y2='16.0003'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function ee(r){e.append_styles(r,"svelte-ljc7r7",`:host{display:block;height:100%;flex-grow:1}.PrizeListContent.svelte-ljc7r7.svelte-ljc7r7{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7{flex-grow:1;overflow-y:auto}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar{width:4px}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.LuckyWheelList.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;gap:24px;padding:0;margin:0;list-style:none}.LuckyWheelListItem.svelte-ljc7r7.svelte-ljc7r7{width:100%}.ItemButton.svelte-ljc7r7.svelte-ljc7r7{padding:16px;border-radius:16px;border:1px solid var(--emw--color-teal-10, rgba(117, 255, 233, 0.1019607843));color:var(--emw--color-primary, #d3ffed);width:100%;height:110px;display:flex;flex-direction:column;justify-content:center;gap:8px;box-sizing:border-box;cursor:pointer;text-align:left;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);background:var(--emw--color-teal-05, rgba(117, 255, 233, 0.0509803922));position:relative}.ItemButton.svelte-ljc7r7.svelte-ljc7r7:hover,.ItemButton.svelte-ljc7r7.svelte-ljc7r7:active{background:var(--emw--color-teal-08, rgba(117, 255, 233, 0.0784313725));border:1px solid transparent;background-image:linear-gradient(var(--emw--color-background, #213841), var(--emw--color-background, #213841)), linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);background-origin:border-box;background-clip:padding-box, border-box}.ItemButton.svelte-ljc7r7:hover .IconButton.Chevron.svelte-ljc7r7,.ItemButton.svelte-ljc7r7:active .IconButton.Chevron.svelte-ljc7r7{background-color:var(--emw--color-green, #b2ff6d);background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9 18L15 12L9 6" stroke="%230C1A1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');border-radius:50%}.ItemTitleRow.svelte-ljc7r7.svelte-ljc7r7{display:flex;justify-content:space-between;align-items:center;width:100%}.ItemTitle.svelte-ljc7r7.svelte-ljc7r7{font-weight:700;font-size:var(--emw--font-size-medium-plus, 18px);background:linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ItemDetails.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:12px;align-items:center}.ItemKeys.svelte-ljc7r7.svelte-ljc7r7,.ItemValidity.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:4px;align-items:center;font-size:14px;font-weight:400;color:var(--emw--color-secondary-variant, #729787)}.ItemKeys.svelte-ljc7r7 span.svelte-ljc7r7:last-child,.ItemValidity.svelte-ljc7r7 span.svelte-ljc7r7:last-child{color:var(--emw--color-primary, #d3ffed)}.SmallIcon.svelte-ljc7r7.svelte-ljc7r7{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--emw--color-secondary-variant, #729787);flex-shrink:0}.IconButton.Chevron.svelte-ljc7r7.svelte-ljc7r7{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background:center/18px 18px url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9 18L15 12L9 6" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.LoaderWrap.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;width:100%}.LoaderWrap.svelte-ljc7r7 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999)}.LoaderWrap.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:var(--emw--border-radius-large, 28px);display:flex;padding:45px 48px;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);justify-content:space-between;line-height:35px;overflow:hidden;margin-bottom:24px}.LoaderWrap.Mobile.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:16px;padding:25px 20px;line-height:15px}.LoaderWrap.Mobile.svelte-ljc7r7 .Skeleton.SkeletonText{width:135px}.EmptyState.svelte-ljc7r7.svelte-ljc7r7{width:100%;display:flex;flex-direction:column;color:var(--emw--color-secondary-variant, #a9ccbe);font-size:var(--emw--font-size-medium, 16px);align-items:center;justify-content:center;height:200px}.Mobile.svelte-ljc7r7 .ItemButton.svelte-ljc7r7{height:72px;padding:16px 20px;border-radius:16px}.Mobile.svelte-ljc7r7 .ItemButton .ItemTitle.svelte-ljc7r7{font-size:var(--emw--font-size-medium, 16px)}.Mobile.svelte-ljc7r7 .ItemButton .ItemDetails.svelte-ljc7r7{font-size:var(--emw--font-size-x-small, 12px)}.Mobile.svelte-ljc7r7 .IconButton.Chevron.svelte-ljc7r7{width:24px;height:24px;background-size:14px 14px}`)}function F(r,t,l){const n=r.slice();return n[23]=t[l],n}function te(r,t,l){const n=r.slice();return n[20]=t[l],n}function le(r){let t,l,n=r[5]("NoContent")+"",i;return{c(){t=e.element("div"),l=e.element("p"),i=e.text(n),e.attr(t,"class","EmptyState svelte-ljc7r7")},m(o,s){e.insert(o,t,s),e.append(t,l),e.append(l,i)},p(o,s){s&32&&n!==(n=o[5]("NoContent")+"")&&e.set_data(i,n)},d(o){o&&e.detach(t)}}}function re(r){let t,l=e.ensure_array_like(r[3]),n=[];for(let i=0;i<l.length;i+=1)n[i]=N(F(r,l,i));return{c(){t=e.element("ul");for(let i=0;i<n.length;i+=1)n[i].c();e.attr(t,"class","LuckyWheelList svelte-ljc7r7")},m(i,o){e.insert(i,t,o);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(t,null)},p(i,o){if(o&409){l=e.ensure_array_like(i[3]);let s;for(s=0;s<l.length;s+=1){const c=F(i,l,s);n[s]?n[s].p(c,o):(n[s]=N(c),n[s].c(),n[s].m(t,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=l.length}},d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function ne(r){let t,l=e.ensure_array_like([1,2,3,4,5]),n=[];for(let i=0;i<5;i+=1)n[i]=ie(te(r,l,i));return{c(){t=e.element("div");for(let i=0;i<5;i+=1)n[i].c();e.attr(t,"class","LoaderWrap svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(i,o){e.insert(i,t,o);for(let s=0;s<5;s+=1)n[s]&&n[s].m(t,null)},p:e.noop,d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function U(r){let t,l,n,i,o=r[7](r[23].current.expiryTime)+"",s;return{c(){t=e.element("div"),l=e.element("span"),l.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="14" r="7" stroke="currentColor" stroke-width="1.5"></circle><path d="M12 11V14L14 16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 4V7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 4H15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 7L18 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 7L6 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',n=e.space(),i=e.element("span"),s=e.text(o),e.attr(l,"class","SmallIcon Timer svelte-ljc7r7"),e.attr(i,"class","svelte-ljc7r7"),e.attr(t,"class","ItemValidity svelte-ljc7r7")},m(c,d){e.insert(c,t,d),e.append(t,l),e.append(t,n),e.append(t,i),e.append(i,s)},p(c,d){d&8&&o!==(o=c[7](c[23].current.expiryTime)+"")&&e.set_data(s,o)},d(c){c&&e.detach(t)}}}function N(r){var v,w;let t,l,n,i,o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"",s,c,d,h,g,f,p,m,L,y,k=(((v=r[23].current)==null?void 0:v.remainingTimes)||0)+"",_,A,M,x,I,u=((w=r[23].current)==null?void 0:w.expiryTime)&&U(r);function a(){return r[16](r[23])}return{c(){t=e.element("li"),l=e.element("button"),n=e.element("div"),i=e.element("span"),s=e.text(o),c=e.space(),d=e.element("span"),h=e.space(),g=e.element("div"),f=e.element("div"),p=e.element("img"),L=e.space(),y=e.element("span"),_=e.text(k),A=e.space(),u&&u.c(),M=e.space(),e.attr(i,"class","ItemTitle svelte-ljc7r7"),e.attr(d,"class","IconButton Chevron svelte-ljc7r7"),e.attr(n,"class","ItemTitleRow svelte-ljc7r7"),e.src_url_equal(p.src,m=r[4])||e.attr(p,"src",m),e.attr(p,"alt",""),e.attr(y,"class","svelte-ljc7r7"),e.attr(f,"class","ItemKeys svelte-ljc7r7"),e.attr(g,"class","ItemDetails svelte-ljc7r7"),e.attr(l,"type","button"),e.attr(l,"class","ItemButton svelte-ljc7r7"),e.attr(t,"class","LuckyWheelListItem svelte-ljc7r7")},m(C,b){e.insert(C,t,b),e.append(t,l),e.append(l,n),e.append(n,i),e.append(i,s),e.append(n,c),e.append(n,d),e.append(l,h),e.append(l,g),e.append(g,f),e.append(f,p),e.append(f,L),e.append(f,y),e.append(y,_),e.append(g,A),u&&u.m(g,null),e.append(t,M),x||(I=e.listen(l,"click",a),x=!0)},p(C,b){var B,S;r=C,b&9&&o!==(o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"")&&e.set_data(s,o),b&16&&!e.src_url_equal(p.src,m=r[4])&&e.attr(p,"src",m),b&8&&k!==(k=(((B=r[23].current)==null?void 0:B.remainingTimes)||0)+"")&&e.set_data(_,k),(S=r[23].current)!=null&&S.expiryTime?u?u.p(r,b):(u=U(r),u.c(),u.m(g,null)):u&&(u.d(1),u=null)},d(C){C&&e.detach(t),u&&u.d(),x=!1,I()}}}function ie(r){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ',e.attr(t,"class","WheelLoader svelte-ljc7r7")},m(l,n){e.insert(l,t,n)},p:e.noop,d(l){l&&e.detach(t)}}}function se(r){let t,l,n;function i(c,d){return c[2]?ne:c[3].length>0?re:le}let o=i(r),s=o(r);return{c(){t=e.element("div"),l=e.element("div"),s.c(),e.attr(l,"class","ListScrollArea svelte-ljc7r7"),e.attr(t,"class","PrizeListContent svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(c,d){e.insert(c,t,d),e.append(t,l),s.m(l,null),r[17](t)},p(c,[d]){o===(o=i(c))&&s?s.p(c,d):(s.d(1),s=o(c),s&&(s.c(),s.m(l,null)))},i(c){c&&(n||e.add_render_callback(()=>{n=e.create_in_transition(t,Y.fade,{duration:300}),n.start()}))},o:e.noop,d(c){c&&e.detach(t),s.d(),r[17](null)}}}let oe=null;function ae(r,t,l){let n,i;e.component_subscribe(r,j.$format,a=>l(5,i=a));let{endpoint:o=""}=t,{session:s=""}=t,{lang:c="en"}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{translationurl:g=""}=t,{mbsource:f=""}=t,{type:p="wheelOfFortune"}=t,m;const L=j.isMobile(window.navigator.userAgent);let y=!0,k=[];Q();const _=()=>{fetch(g).then(v=>v.json()).then(v=>{Object.keys(v).forEach(w=>{O(w,v[w])})})},A=a=>{if(!a)return"";const v=new Date(a).getTime(),w=Date.now(),C=v-w;if(C<=0)return"";const b=Math.floor(C/(1e3*60*60*24)),B=Math.floor(C%(1e3*60*60*24)/(1e3*60*60)),S=Math.floor(C%(1e3*60*60)/(1e3*60));return`${b.toString().padStart(2,"0")}d:${B.toString().padStart(2,"0")}h:${S.toString().padStart(2,"0")}m`},M=()=>T(this,null,function*(){if(!(!o||!s)){l(2,y=!0);try{const a=yield K.lotteries(o,s,[p]);window.postMessage({type:"PrizeProgramsLoaded",data:a},"*"),l(3,k=a.filter(v=>{var w;return(Number((w=v.current)==null?void 0:w.remainingTimes)||0)>0}))}catch(a){console.error("[PrizeEngineList] Fetch failed",a)}finally{l(2,y=!1)}}}),x=a=>{window.postMessage({type:"OpenPrizeGame",data:a},"*")};e.onMount(()=>()=>{});const I=a=>x(a);function u(a){e.binding_callbacks[a?"unshift":"push"](()=>{m=a,l(1,m)})}return r.$$set=a=>{"endpoint"in a&&l(9,o=a.endpoint),"session"in a&&l(10,s=a.session),"lang"in a&&l(0,c=a.lang),"clientstyling"in a&&l(11,d=a.clientstyling),"clientstylingurl"in a&&l(12,h=a.clientstylingurl),"translationurl"in a&&l(13,g=a.translationurl),"mbsource"in a&&l(14,f=a.mbsource),"type"in a&&l(15,p=a.type)},r.$$.update=()=>{r.$$.dirty&1&&c&&Z(c),r.$$.dirty&8192&&g&&_(),r.$$.dirty&32768&&l(4,n=p==="flipCoin"?J:p==="mysteryChest"?$:X),r.$$.dirty&34304&&o&&s&&p&&M(),r.$$.dirty&2050&&d&&m&&e.setClientStyling(m,d),r.$$.dirty&4098&&h&&m&&e.setClientStylingURL(m,h),r.$$.dirty&16386&&f&&m&&e.setStreamStyling(m,`${f}.Style`,oe)},[c,m,y,k,n,i,L,A,x,o,s,d,h,g,f,p,I,u]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ae,se,e.safe_not_equal,{endpoint:9,session:10,lang:0,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14,type:15},ee)}get endpoint(){return this.$$.ctx[9]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[10]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get type(){return this.$$.ctx[15]}set type(t){this.$$set({type:t}),e.flush()}}customElements.define("prize-engine-list",e.create_custom_element(H,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=H;
|
|
1
|
+
"use strict";var G=Object.defineProperty;var z=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var W=(r,t,l)=>t in r?G(r,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[t]=l,D=(r,t)=>{for(var l in t||(t={}))P.call(t,l)&&W(r,l,t[l]);if(z)for(var l of z(t))V.call(t,l)&&W(r,l,t[l]);return r};var T=(r,t,l)=>new Promise((n,i)=>{var o=d=>{try{c(l.next(d))}catch(h){i(h)}},s=d=>{try{c(l.throw(d))}catch(h){i(h)}},c=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);c((l=l.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameOverlay-BTBB2PXb.cjs"),Y=require("./LotteryProgramWof-2uKUtUtX.cjs"),j=require("./CasinoMysteryChestContainer-1zTKkJGg.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");const E={en:{Title:"Prize Games",RemainingTimes:"Remaining Times",NoContent:"No games available at the moment",Loading:"Loading games...",Error:"Failed to load games",WheelOfFortune:"Lucky Wheel",MysteryChest:"Mystery Chest",FlipCoin:"Flip Coin",Dice:"Dices"}};function R({withLocale:r,translations:t}){j.$locale.subscribe(l=>{l==null&&(j.$dictionary.set(t),j.$locale.set(r))})}function O(r,t){j.addMessages(r,t)}function Z(r){j.$locale.set(r)}const Q=()=>{R({withLocale:"en",translations:{}}),Object.keys(E).forEach(r=>{O(r,E[r])})},q=n=>T(exports,[n],function*({endpoint:r,session:t,types:l}){const i=new URL(`${r}/v1/wof/lotteries`);l&&l.length>0&&l.forEach(s=>i.searchParams.append("filter",`Types[]=${s}`));const o=yield fetch(i.toString(),{method:"GET",headers:D({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{})});if(!o.ok)throw new Error(`Failed to fetch lotteries: ${o.statusText}`);return o.json()}),K={lotteries:(r,t,l)=>T(exports,null,function*(){const n=yield q({endpoint:r,session:t,types:l});return(n==null?void 0:n.items)||[]})},X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMVSURBVHgBbVTNThNRGD3fnSmYYNLizhVl4ZriC9AhcUFcWDYmbsQuiCsT0aioJJRogrJhacJC0MSwMsALMIUHsDQxYSeDCVspiWA7befz3Jm2AnGSm7k/3+85517Bf75F9fMOoikXjTzHkIO6OAgrnFcdNLaK8mjzso+cX5S0kk2h9ZHGeUNnOtY4MlzDRVjjP801DBpBG83xorwMur6mO3ml33MCqSg0r4h2Beo9kduDCtDYHDyUKc5lPAI+03z4CvTbFy3lLgSa1f2sC9dngWk6HjbQLjyTW+VOyb2qp2W6LGg95rRGu0EX2F7X2WwvkEG/z0oyHCesJNuHlF9SP2PPNA6hcbBVXeWeTQh7FgiiwRS344Sv9ehOhMami+aag7MZ/n3iMGLQrKZw4hloxUFTB3B2k7j4BD5HvPZa+O0NoL1BEsYitMdNC1qQOLP5VJLRWgunHtdVZssp+ivEbYhVDocwv2hGTEzQguMVpVSL+WExKeh9kxxK7a3ciDEpicdgraLGTant3zoEBHm30+NQF7O78mbHQI6ZKC/P9UjdmN7mgYM/pDxU0svew7QgXHgqEwvW6YOuUhoh2w6HDMJD6+PEo06iQvp3ACXl5p+4RJN9rXaDGBjLKiuUAIh6NCQfhcGKWEkzvSjZa93t97pbYFYC2ThwUd/heYGZM8wcOEiNFqVY69p+1RfHBDww7K9saZzT/XxH3ZkIMt+xGya4U8yYkViYFrNTf1WXY2ms6xx9lNqTPWPgrHFCEJ15G4RZfbY2wsL3BIaB9CfPgz7oKH33OEZctBmsxKsjUzxjDnfLLMp1Iq87QDtPx4plMSI2Z6R4RiaCJAlg23HQ5zFwlUlyV5D6Qck8YNJgUpY2Y4BTkCI3KHvN8n8c4qpnZYCeqhPwE2xangWccA/y7JgBvN4VKclwYBKD+A7143R5SbfHOhxq94qs6Ar33A3ECVFjB+OT8i5ImD73LfIZiXgNqKMsWeo+HZlEJ3XOwzTX9nkpU3fFe+eekQuBLtFfsHeOziNO/DaRYkqB/zU+bOXLPn8BG6xnv5+RMCQAAAAASUVORK5CYII=",J="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",$="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1978%2013.2348C12.1978%209.60751%2015.1383%206.66699%2018.7656%206.66699C22.3929%206.66699%2025.3334%209.60751%2025.3334%2013.2348C25.3334%2016.8621%2022.3929%2019.8026%2018.7656%2019.8026C18.467%2019.8026%2018.1725%2019.7826%2017.8835%2019.7438C17.6825%2019.7168%2017.557%2019.7001%2017.4658%2019.6909C17.4218%2019.7326%2017.3626%2019.7916%2017.2673%2019.8869L12.5565%2024.5977C12.5457%2024.6085%2012.5344%2024.6198%2012.5229%2024.6315C12.4009%2024.7542%2012.2356%2024.9205%2012.0329%2025.0448C11.8576%2025.1522%2011.6665%2025.2313%2011.4666%2025.2793C11.2354%2025.3348%2011.001%2025.3341%2010.8279%2025.3335C10.8115%2025.3335%2010.7956%2025.3334%2010.7803%2025.3334L9.14719%2025.3334C8.91663%2025.3335%208.68571%2025.3335%208.48899%2025.3174C8.27114%2025.2996%208.00565%2025.2571%207.7365%2025.1199C7.36793%2024.9321%207.06826%2024.6325%206.88046%2024.2639C6.74332%2023.9948%206.70076%2023.7293%206.68297%2023.5114C6.66689%2023.3147%206.66693%2023.0838%206.66696%2022.8532L6.66696%2021.2201C6.66696%2021.2049%206.66691%2021.189%206.66686%2021.1725C6.66631%2020.9994%206.66557%2020.765%206.72109%2020.5338C6.76907%2020.3339%206.84822%2020.1428%206.95562%2019.9676C7.07986%2019.7648%207.24617%2019.5995%207.36894%2019.4776C7.3806%2019.466%207.39188%2019.4548%207.40268%2019.4439L12.1135%2014.7331C12.2088%2014.6378%2012.2678%2014.5786%2012.3095%2014.5346C12.3003%2014.4434%2012.2836%2014.3179%2012.2566%2014.1169C12.2178%2013.8279%2012.1978%2013.5334%2012.1978%2013.2348ZM18.7656%208.74104C16.2837%208.74104%2014.2718%2010.753%2014.2718%2013.2348C14.2718%2013.4408%2014.2856%2013.6429%2014.3122%2013.8406L14.3146%2013.8585C14.3394%2014.0432%2014.3618%2014.2097%2014.3749%2014.3451C14.3874%2014.4747%2014.4011%2014.6598%2014.3736%2014.8525C14.3367%2015.1105%2014.2715%2015.3033%2014.1443%2015.5308C14.0078%2015.7751%2013.7931%2015.9881%2013.629%2016.151C13.6121%2016.1678%2013.5958%2016.184%2013.5801%2016.1997L8.86926%2020.9105C8.82845%2020.9513%208.79718%2020.9826%208.77036%2021.0099C8.75929%2021.0212%208.74992%2021.0308%208.74194%2021.0392C8.7417%2021.0507%208.74151%2021.0641%208.74137%2021.0799C8.74102%2021.1182%208.74101%2021.1624%208.74101%2021.2201V22.8215C8.74101%2023.0268%208.74146%2023.1591%208.74514%2023.2553C8.84132%2023.2589%208.97362%2023.2594%209.17887%2023.2594H10.7803C10.838%2023.2594%2010.8822%2023.2594%2010.9205%2023.259C10.9363%2023.2589%2010.9497%2023.2587%2010.9613%2023.2585C10.9696%2023.2505%2010.9792%2023.2411%2010.9905%2023.2301C11.0178%2023.2032%2011.0491%2023.172%2011.0899%2023.1312L15.8007%2018.4203C15.8164%2018.4046%2015.8327%2018.3883%2015.8494%2018.3714C16.0123%2018.2073%2016.2253%2017.9926%2016.4696%2017.8561C16.6971%2017.7289%2016.8899%2017.6638%2017.1479%2017.6268C17.3406%2017.5993%2017.5257%2017.613%2017.6553%2017.6255C17.7907%2017.6386%2017.9572%2017.661%2018.1419%2017.6858L18.1598%2017.6882C18.3575%2017.7148%2018.5597%2017.7286%2018.7656%2017.7286C21.2474%2017.7286%2023.2594%2015.7167%2023.2594%2013.2348C23.2594%2010.753%2021.2474%208.74104%2018.7656%208.74104ZM17.7286%2013.2348C17.7286%2012.6621%2018.1929%2012.1978%2018.7656%2012.1978H18.7748C19.3475%2012.1978%2019.8118%2012.6621%2019.8118%2013.2348C19.8118%2013.8076%2019.3475%2014.2718%2018.7748%2014.2718H18.7656C18.1929%2014.2718%2017.7286%2013.8076%2017.7286%2013.2348Z'%20fill='url(%23paint0_linear_714_605)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_714_605'%20x1='6.66675'%20y1='16.0003'%20x2='25.3334'%20y2='16.0003'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function ee(r){e.append_styles(r,"svelte-ljc7r7",`:host{display:block;height:100%;flex-grow:1}.PrizeListContent.svelte-ljc7r7.svelte-ljc7r7{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7{flex-grow:1;overflow-y:auto}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar{width:4px}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.LuckyWheelList.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;gap:24px;padding:0;margin:0;list-style:none}.LuckyWheelListItem.svelte-ljc7r7.svelte-ljc7r7{width:100%}.ItemButton.svelte-ljc7r7.svelte-ljc7r7{padding:16px;border-radius:16px;border:1px solid var(--emw--color-teal-10, rgba(117, 255, 233, 0.1019607843));color:var(--emw--color-primary, #d3ffed);width:100%;height:110px;display:flex;flex-direction:column;justify-content:center;gap:8px;box-sizing:border-box;cursor:pointer;text-align:left;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);background:var(--emw--color-teal-05, rgba(117, 255, 233, 0.0509803922));position:relative}.ItemButton.svelte-ljc7r7.svelte-ljc7r7:hover,.ItemButton.svelte-ljc7r7.svelte-ljc7r7:active{background:var(--emw--color-teal-08, rgba(117, 255, 233, 0.0784313725));border:1px solid transparent;background-image:linear-gradient(var(--emw--color-background, #213841), var(--emw--color-background, #213841)), linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);background-origin:border-box;background-clip:padding-box, border-box}.ItemButton.svelte-ljc7r7:hover .IconButton.Chevron.svelte-ljc7r7,.ItemButton.svelte-ljc7r7:active .IconButton.Chevron.svelte-ljc7r7{background-color:var(--emw--color-green, #b2ff6d);background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9 18L15 12L9 6" stroke="%230C1A1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');border-radius:50%}.ItemTitleRow.svelte-ljc7r7.svelte-ljc7r7{display:flex;justify-content:space-between;align-items:center;width:100%}.ItemTitle.svelte-ljc7r7.svelte-ljc7r7{font-weight:700;font-size:var(--emw--font-size-medium-plus, 18px);background:linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ItemDetails.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:12px;align-items:center}.ItemKeys.svelte-ljc7r7.svelte-ljc7r7,.ItemValidity.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:4px;align-items:center;font-size:14px;font-weight:400;color:var(--emw--color-secondary-variant, #729787)}.ItemKeys.svelte-ljc7r7 span.svelte-ljc7r7:last-child,.ItemValidity.svelte-ljc7r7 span.svelte-ljc7r7:last-child{color:var(--emw--color-primary, #d3ffed)}.SmallIcon.svelte-ljc7r7.svelte-ljc7r7{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--emw--color-secondary-variant, #729787);flex-shrink:0}.IconButton.Chevron.svelte-ljc7r7.svelte-ljc7r7{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background:center/18px 18px url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9 18L15 12L9 6" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.LoaderWrap.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;width:100%}.LoaderWrap.svelte-ljc7r7 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999)}.LoaderWrap.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:var(--emw--border-radius-large, 28px);display:flex;padding:45px 48px;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);justify-content:space-between;line-height:35px;overflow:hidden;margin-bottom:24px}.LoaderWrap.Mobile.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:16px;padding:25px 20px;line-height:15px}.LoaderWrap.Mobile.svelte-ljc7r7 .Skeleton.SkeletonText{width:135px}.EmptyState.svelte-ljc7r7.svelte-ljc7r7{width:100%;display:flex;flex-direction:column;color:var(--emw--color-secondary-variant, #a9ccbe);font-size:var(--emw--font-size-medium, 16px);align-items:center;justify-content:center;height:200px}.Mobile.svelte-ljc7r7 .ItemButton.svelte-ljc7r7{height:72px;padding:16px 20px;border-radius:16px}.Mobile.svelte-ljc7r7 .ItemButton .ItemTitle.svelte-ljc7r7{font-size:var(--emw--font-size-medium, 16px)}.Mobile.svelte-ljc7r7 .ItemButton .ItemDetails.svelte-ljc7r7{font-size:var(--emw--font-size-x-small, 12px)}.Mobile.svelte-ljc7r7 .IconButton.Chevron.svelte-ljc7r7{width:24px;height:24px;background-size:14px 14px}`)}function F(r,t,l){const n=r.slice();return n[23]=t[l],n}function te(r,t,l){const n=r.slice();return n[20]=t[l],n}function le(r){let t,l,n=r[5]("NoContent")+"",i;return{c(){t=e.element("div"),l=e.element("p"),i=e.text(n),e.attr(t,"class","EmptyState svelte-ljc7r7")},m(o,s){e.insert(o,t,s),e.append(t,l),e.append(l,i)},p(o,s){s&32&&n!==(n=o[5]("NoContent")+"")&&e.set_data(i,n)},d(o){o&&e.detach(t)}}}function re(r){let t,l=e.ensure_array_like(r[3]),n=[];for(let i=0;i<l.length;i+=1)n[i]=N(F(r,l,i));return{c(){t=e.element("ul");for(let i=0;i<n.length;i+=1)n[i].c();e.attr(t,"class","LuckyWheelList svelte-ljc7r7")},m(i,o){e.insert(i,t,o);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(t,null)},p(i,o){if(o&409){l=e.ensure_array_like(i[3]);let s;for(s=0;s<l.length;s+=1){const c=F(i,l,s);n[s]?n[s].p(c,o):(n[s]=N(c),n[s].c(),n[s].m(t,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=l.length}},d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function ne(r){let t,l=e.ensure_array_like([1,2,3,4,5]),n=[];for(let i=0;i<5;i+=1)n[i]=ie(te(r,l,i));return{c(){t=e.element("div");for(let i=0;i<5;i+=1)n[i].c();e.attr(t,"class","LoaderWrap svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(i,o){e.insert(i,t,o);for(let s=0;s<5;s+=1)n[s]&&n[s].m(t,null)},p:e.noop,d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function U(r){let t,l,n,i,o=r[7](r[23].current.expiryTime)+"",s;return{c(){t=e.element("div"),l=e.element("span"),l.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="14" r="7" stroke="currentColor" stroke-width="1.5"></circle><path d="M12 11V14L14 16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 4V7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 4H15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 7L18 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 7L6 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',n=e.space(),i=e.element("span"),s=e.text(o),e.attr(l,"class","SmallIcon Timer svelte-ljc7r7"),e.attr(i,"class","svelte-ljc7r7"),e.attr(t,"class","ItemValidity svelte-ljc7r7")},m(c,d){e.insert(c,t,d),e.append(t,l),e.append(t,n),e.append(t,i),e.append(i,s)},p(c,d){d&8&&o!==(o=c[7](c[23].current.expiryTime)+"")&&e.set_data(s,o)},d(c){c&&e.detach(t)}}}function N(r){var v,w;let t,l,n,i,o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"",s,c,d,h,g,f,p,m,L,y,k=(((v=r[23].current)==null?void 0:v.remainingTimes)||0)+"",_,A,M,x,I,u=((w=r[23].current)==null?void 0:w.expiryTime)&&U(r);function a(){return r[16](r[23])}return{c(){t=e.element("li"),l=e.element("button"),n=e.element("div"),i=e.element("span"),s=e.text(o),c=e.space(),d=e.element("span"),h=e.space(),g=e.element("div"),f=e.element("div"),p=e.element("img"),L=e.space(),y=e.element("span"),_=e.text(k),A=e.space(),u&&u.c(),M=e.space(),e.attr(i,"class","ItemTitle svelte-ljc7r7"),e.attr(d,"class","IconButton Chevron svelte-ljc7r7"),e.attr(n,"class","ItemTitleRow svelte-ljc7r7"),e.src_url_equal(p.src,m=r[4])||e.attr(p,"src",m),e.attr(p,"alt",""),e.attr(y,"class","svelte-ljc7r7"),e.attr(f,"class","ItemKeys svelte-ljc7r7"),e.attr(g,"class","ItemDetails svelte-ljc7r7"),e.attr(l,"type","button"),e.attr(l,"class","ItemButton svelte-ljc7r7"),e.attr(t,"class","LuckyWheelListItem svelte-ljc7r7")},m(C,b){e.insert(C,t,b),e.append(t,l),e.append(l,n),e.append(n,i),e.append(i,s),e.append(n,c),e.append(n,d),e.append(l,h),e.append(l,g),e.append(g,f),e.append(f,p),e.append(f,L),e.append(f,y),e.append(y,_),e.append(g,A),u&&u.m(g,null),e.append(t,M),x||(I=e.listen(l,"click",a),x=!0)},p(C,b){var B,S;r=C,b&9&&o!==(o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"")&&e.set_data(s,o),b&16&&!e.src_url_equal(p.src,m=r[4])&&e.attr(p,"src",m),b&8&&k!==(k=(((B=r[23].current)==null?void 0:B.remainingTimes)||0)+"")&&e.set_data(_,k),(S=r[23].current)!=null&&S.expiryTime?u?u.p(r,b):(u=U(r),u.c(),u.m(g,null)):u&&(u.d(1),u=null)},d(C){C&&e.detach(t),u&&u.d(),x=!1,I()}}}function ie(r){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ',e.attr(t,"class","WheelLoader svelte-ljc7r7")},m(l,n){e.insert(l,t,n)},p:e.noop,d(l){l&&e.detach(t)}}}function se(r){let t,l,n;function i(c,d){return c[2]?ne:c[3].length>0?re:le}let o=i(r),s=o(r);return{c(){t=e.element("div"),l=e.element("div"),s.c(),e.attr(l,"class","ListScrollArea svelte-ljc7r7"),e.attr(t,"class","PrizeListContent svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(c,d){e.insert(c,t,d),e.append(t,l),s.m(l,null),r[17](t)},p(c,[d]){o===(o=i(c))&&s?s.p(c,d):(s.d(1),s=o(c),s&&(s.c(),s.m(l,null)))},i(c){c&&(n||e.add_render_callback(()=>{n=e.create_in_transition(t,Y.fade,{duration:300}),n.start()}))},o:e.noop,d(c){c&&e.detach(t),s.d(),r[17](null)}}}let oe=null;function ae(r,t,l){let n,i;e.component_subscribe(r,j.$format,a=>l(5,i=a));let{endpoint:o=""}=t,{session:s=""}=t,{lang:c="en"}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{translationurl:g=""}=t,{mbsource:f=""}=t,{type:p="wheelOfFortune"}=t,m;const L=j.isMobile(window.navigator.userAgent);let y=!0,k=[];Q();const _=()=>{fetch(g).then(v=>v.json()).then(v=>{Object.keys(v).forEach(w=>{O(w,v[w])})})},A=a=>{if(!a)return"";const v=new Date(a).getTime(),w=Date.now(),C=v-w;if(C<=0)return"";const b=Math.floor(C/(1e3*60*60*24)),B=Math.floor(C%(1e3*60*60*24)/(1e3*60*60)),S=Math.floor(C%(1e3*60*60)/(1e3*60));return`${b.toString().padStart(2,"0")}d:${B.toString().padStart(2,"0")}h:${S.toString().padStart(2,"0")}m`},M=()=>T(this,null,function*(){if(!(!o||!s)){l(2,y=!0);try{const a=yield K.lotteries(o,s,[p]);window.postMessage({type:"PrizeProgramsLoaded",data:a},"*"),l(3,k=a.filter(v=>{var w;return(Number((w=v.current)==null?void 0:w.remainingTimes)||0)>0}))}catch(a){console.error("[PrizeEngineList] Fetch failed",a)}finally{l(2,y=!1)}}}),x=a=>{window.postMessage({type:"OpenPrizeGame",data:a},"*")};e.onMount(()=>()=>{});const I=a=>x(a);function u(a){e.binding_callbacks[a?"unshift":"push"](()=>{m=a,l(1,m)})}return r.$$set=a=>{"endpoint"in a&&l(9,o=a.endpoint),"session"in a&&l(10,s=a.session),"lang"in a&&l(0,c=a.lang),"clientstyling"in a&&l(11,d=a.clientstyling),"clientstylingurl"in a&&l(12,h=a.clientstylingurl),"translationurl"in a&&l(13,g=a.translationurl),"mbsource"in a&&l(14,f=a.mbsource),"type"in a&&l(15,p=a.type)},r.$$.update=()=>{r.$$.dirty&1&&c&&Z(c),r.$$.dirty&8192&&g&&_(),r.$$.dirty&32768&&l(4,n=p==="flipCoin"?J:p==="mysteryChest"?$:X),r.$$.dirty&34304&&o&&s&&p&&M(),r.$$.dirty&2050&&d&&m&&e.setClientStyling(m,d),r.$$.dirty&4098&&h&&m&&e.setClientStylingURL(m,h),r.$$.dirty&16386&&f&&m&&e.setStreamStyling(m,`${f}.Style`,oe)},[c,m,y,k,n,i,L,A,x,o,s,d,h,g,f,p,I,u]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ae,se,e.safe_not_equal,{endpoint:9,session:10,lang:0,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14,type:15},ee)}get endpoint(){return this.$$.ctx[9]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[10]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get type(){return this.$$.ctx[15]}set type(t){this.$$set({type:t}),e.flush()}}customElements.define("prize-engine-list",e.create_custom_element(H,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=H;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as J, b as O, s as V, f as g,
|
|
2
|
-
import {
|
|
3
|
-
import { s as se, a as le, W as re, b as ae } from "./WheelSVG-
|
|
1
|
+
import { S as J, b as O, s as V, f as g, d as K, e as W, y as M, x as _, G as T, z as B, g as R, m as L, p as P, N as F, o as H, a3 as Q, q as X, a4 as Y, a5 as Z, A as E, I as $, J as ee, K as te, c as ne } from "./CasinoGameOverlay-ZF7wW-MO.js";
|
|
2
|
+
import { b as ie } from "./CasinoMysteryChestContainer-B1dHnUTM.js";
|
|
3
|
+
import { s as se, a as le, W as re, b as ae } from "./WheelSVG-BqxZ8-M0.js";
|
|
4
4
|
function oe(i) {
|
|
5
5
|
K(i, "svelte-12d9sfg", '.PrizeLuckywheelContainer.svelte-12d9sfg{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding:20px;box-sizing:border-box;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeLuckywheelContainer.Mobile.svelte-12d9sfg{padding:10px}.MainSection.svelte-12d9sfg{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;position:relative}.WheelWrapper.svelte-12d9sfg{flex-grow:1;display:flex;align-items:center;justify-content:center;min-height:0;width:100%}');
|
|
6
6
|
}
|
|
@@ -112,21 +112,21 @@ function fe(i, e, s) {
|
|
|
112
112
|
const C = ie(window.navigator.userAgent);
|
|
113
113
|
let f, m = !1;
|
|
114
114
|
se();
|
|
115
|
-
const
|
|
115
|
+
const p = () => {
|
|
116
116
|
fetch(b).then((d) => d.json()).then((d) => {
|
|
117
117
|
Object.keys(d).forEach((h) => {
|
|
118
118
|
ae(h, d[h]);
|
|
119
119
|
});
|
|
120
120
|
});
|
|
121
|
-
},
|
|
121
|
+
}, q = (n) => {
|
|
122
122
|
f && f.setDrawResult(n);
|
|
123
|
-
},
|
|
123
|
+
}, j = () => {
|
|
124
124
|
m || (s(6, m = !0), f && f.eventSpin());
|
|
125
125
|
};
|
|
126
126
|
H(() => {
|
|
127
127
|
const n = (d) => {
|
|
128
128
|
const { type: h, data: I } = d.data;
|
|
129
|
-
h === "PrizeGameResult" ?
|
|
129
|
+
h === "PrizeGameResult" ? q(I) : h === "PrizeResultClose" ? (s(6, m = !1), f && f.closeMessage()) : h === "PrizeGameStartAnimation" && j();
|
|
130
130
|
};
|
|
131
131
|
return window.addEventListener("message", n), () => {
|
|
132
132
|
window.removeEventListener("message", n);
|
|
@@ -158,7 +158,7 @@ function fe(i, e, s) {
|
|
|
158
158
|
s(4, k = l);
|
|
159
159
|
i.$$.dirty & /*lang*/
|
|
160
160
|
1 && a && le(a), i.$$.dirty & /*translationurl*/
|
|
161
|
-
4096 && b &&
|
|
161
|
+
4096 && b && p(), i.$$.dirty & /*clientstyling, rootContainer*/
|
|
162
162
|
1028 && o && u && $(u, o), i.$$.dirty & /*clientstylingurl, rootContainer*/
|
|
163
163
|
2052 && y && u && ee(u, y), i.$$.dirty & /*mbsource, rootContainer*/
|
|
164
164
|
8196 && w && u && te(u, `${w}.Style`, ue), i.$$.dirty & /*mobilesize, size*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as J, b as O, s as V, f as g,
|
|
2
|
-
import {
|
|
3
|
-
import { s as se, a as le, W as re, b as ae } from "./WheelSVG-
|
|
1
|
+
import { S as J, b as O, s as V, f as g, c as K, d as W, y as M, x as _, G as T, z as B, e as R, l as L, m as P, N as F, o as H, a3 as Q, p as X, a4 as Y, a5 as Z, A as E, I as $, J as ee, K as te, u as ne } from "./CasinoGameOverlay-D3cVNfoa.js";
|
|
2
|
+
import { b as ie } from "./CasinoMysteryChestContainer-D1Kv_B6l.js";
|
|
3
|
+
import { s as se, a as le, W as re, b as ae } from "./WheelSVG-B0DquA4R.js";
|
|
4
4
|
function oe(i) {
|
|
5
5
|
K(i, "svelte-12d9sfg", '.PrizeLuckywheelContainer.svelte-12d9sfg{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding:20px;box-sizing:border-box;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeLuckywheelContainer.Mobile.svelte-12d9sfg{padding:10px}.MainSection.svelte-12d9sfg{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;position:relative}.WheelWrapper.svelte-12d9sfg{flex-grow:1;display:flex;align-items:center;justify-content:center;min-height:0;width:100%}');
|
|
6
6
|
}
|
package/components/{PrizeEngineLuckywheel-dhLjv163.cjs → PrizeEngineLuckywheel-Jk7qbg1J.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoGameOverlay-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoGameOverlay-BTBB2PXb.cjs"),O=require("./CasinoMysteryChestContainer-1zTKkJGg.cjs"),z=require("./WheelSVG-Dgettf4b.cjs");function U(s){t.append_styles(s,"svelte-12d9sfg",'.PrizeLuckywheelContainer.svelte-12d9sfg{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding:20px;box-sizing:border-box;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeLuckywheelContainer.Mobile.svelte-12d9sfg{padding:10px}.MainSection.svelte-12d9sfg{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;position:relative}.WheelWrapper.svelte-12d9sfg{flex-grow:1;display:flex;align-items:center;justify-content:center;min-height:0;width:100%}')}function P(s){let e,l,n,o,a={lang:s[0],contentdirection:s[1],bonus:s[4],size:s[3],radius:s[7]};return n=new z.WheelSVG({props:a}),s[17](n),n.$on("spinning",s[18]),n.$on("spinning-request",s[19]),n.$on("success",s[20]),{c(){e=t.element("div"),l=t.element("div"),t.create_component(n.$$.fragment),t.attr(l,"class","WheelWrapper svelte-12d9sfg"),t.attr(e,"class","MainSection svelte-12d9sfg")},m(r,c){t.insert(r,e,c),t.append(e,l),t.mount_component(n,l,null),o=!0},p(r,c){const u={};c&1&&(u.lang=r[0]),c&2&&(u.contentdirection=r[1]),c&16&&(u.bonus=r[4]),c&8&&(u.size=r[3]),c&128&&(u.radius=r[7]),n.$set(u)},i(r){o||(t.transition_in(n.$$.fragment,r),o=!0)},o(r){t.transition_out(n.$$.fragment,r),o=!1},d(r){r&&t.detach(e),s[17](null),t.destroy_component(n)}}}function V(s){let e,l,n=s[4]&&P(s);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","PrizeLuckywheelContainer svelte-12d9sfg"),t.toggle_class(e,"Mobile",s[8])},m(o,a){t.insert(o,e,a),n&&n.m(e,null),s[21](e),l=!0},p(o,[a]){o[4]?n?(n.p(o,a),a&16&&t.transition_in(n,1)):(n=P(o),n.c(),t.transition_in(n,1),n.m(e,null)):n&&(t.group_outros(),t.transition_out(n,1,1,()=>{n=null}),t.check_outros())},i(o){l||(t.transition_in(n),l=!0)},o(o){t.transition_out(n),l=!1},d(o){o&&t.detach(e),n&&n.d(),s[21](null)}}}let x=null;function A(s,e,l){let n,o,a,{data:r=null}=e,{lang:c="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:y=""}=e,{translationurl:_=""}=e,{mbsource:b=""}=e,{size:S=324}=e,{mobilesize:w=240}=e,{contentdirection:M="anticlockwise"}=e,k=null,f;const C=O.isMobile(window.navigator.userAgent);let g,m=!1;z.setLocaleWhenInit();const L=()=>{fetch(_).then(d=>d.json()).then(d=>{Object.keys(d).forEach(h=>{z.addNewMessages(h,d[h])})})},G=i=>{g&&g.setDrawResult(i)},q=()=>{m||(l(6,m=!0),g&&g.eventSpin())};t.onMount(()=>{const i=d=>{const{type:h,data:D}=d.data;h==="PrizeGameResult"?G(D):h==="PrizeResultClose"?(l(6,m=!1),g&&g.closeMessage()):h==="PrizeGameStartAnimation"&&q()};return window.addEventListener("message",i),()=>{window.removeEventListener("message",i)}});function E(i){t.binding_callbacks[i?"unshift":"push"](()=>{g=i,l(5,g)})}const W=()=>l(6,m=!0),R=()=>window.postMessage({type:"PrizeGameRequestDraw"},"*"),j=()=>window.postMessage({type:"PrizeGameSpinEnd"},"*");function p(i){t.binding_callbacks[i?"unshift":"push"](()=>{f=i,l(2,f)})}return s.$$set=i=>{"data"in i&&l(9,r=i.data),"lang"in i&&l(0,c=i.lang),"clientstyling"in i&&l(10,u=i.clientstyling),"clientstylingurl"in i&&l(11,y=i.clientstylingurl),"translationurl"in i&&l(12,_=i.translationurl),"mbsource"in i&&l(13,b=i.mbsource),"size"in i&&l(14,S=i.size),"mobilesize"in i&&l(15,w=i.mobilesize),"contentdirection"in i&&l(1,M=i.contentdirection)},s.$$.update=()=>{if(s.$$.dirty&512)if(typeof r=="string")try{l(4,k=JSON.parse(r))}catch(i){console.error("[Luckywheel] Parse failed",i)}else l(4,k=r);s.$$.dirty&1&&c&&z.setLocale(c),s.$$.dirty&4096&&_&&L(),s.$$.dirty&1028&&u&&f&&t.setClientStyling(f,u),s.$$.dirty&2052&&y&&f&&t.setClientStylingURL(f,y),s.$$.dirty&8196&&b&&f&&t.setStreamStyling(f,`${b}.Style`,x),s.$$.dirty&49152&&l(16,n=C&&w?w:S),s.$$.dirty&65536&&l(3,o=n/.6875),s.$$.dirty&8&&l(7,a=.62*o/2)},[c,M,f,o,k,g,m,a,C,r,u,y,_,b,S,w,n,E,W,R,j,p]}class v extends t.SvelteComponent{constructor(e){super(),t.init(this,e,A,V,t.safe_not_equal,{data:9,lang:0,clientstyling:10,clientstylingurl:11,translationurl:12,mbsource:13,size:14,mobilesize:15,contentdirection:1},U)}get data(){return this.$$.ctx[9]}set data(e){this.$$set({data:e}),t.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get size(){return this.$$.ctx[14]}set size(e){this.$$set({size:e}),t.flush()}get mobilesize(){return this.$$.ctx[15]}set mobilesize(e){this.$$set({mobilesize:e}),t.flush()}get contentdirection(){return this.$$.ctx[1]}set contentdirection(e){this.$$set({contentdirection:e}),t.flush()}}customElements.define("prize-engine-luckywheel",t.create_custom_element(v,{data:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},size:{},mobilesize:{},contentdirection:{}},[],[],!0));exports.default=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameOverlay-BESeWDbx.cjs"),P=require("./LotteryProgramWof-DSkIPUzM.cjs"),v=require("./CasinoMysteryChestContainer-DOZW_cjX.cjs"),B={en:{History:"History",Play:"Play",CoinRoyale:"CoinRoyale",MysteryChest:"MysteryChest",LuckyWheels:"LuckyWheels",InfoTooltipCoin:"Flip a virtual coin and take a chance to win!",InfoTooltipChest:"Open Mystery Chest and find your reward!",InfoTooltipLuckywheel:"Spin a lucky wheel and take a chance to win!"}};function X({withLocale:n,translations:t}){v.$locale.subscribe(i=>{i==null&&(v.$dictionary.set(t),v.$locale.set(n))})}function q(n,t){v.addMessages(n,t)}function J(n){v.$locale.set(n)}const Q=()=>{X({withLocale:"en",translations:{}}),Object.keys(B).forEach(n=>{q(n,B[n])})};if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineHistory-Dl6d4zuj.cjs")).then(({default:t})=>{!customElements.get("prize-engine-history")&&customElements.define("prize-engine-history",t.element)})}if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineDetails-Bao9-Oye.cjs")).then(({default:t})=>{!customElements.get("prize-engine-details")&&customElements.define("prize-engine-details",t.element)})}if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineList-BIPwh5TF.cjs")).then(({default:t})=>{!customElements.get("prize-engine-list")&&customElements.define("prize-engine-list",t.element)})}function $(n){e.append_styles(n,"svelte-iscrfi",`.PrizeSuiteContainer.svelte-iscrfi.svelte-iscrfi{width:100%;height:100%;position:relative;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer.svelte-iscrfi{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer.full-width.svelte-iscrfi{padding:0}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer .HeaderTitle.svelte-iscrfi{font-size:var(--emw--font-size-medium, 16px);font-weight:500}.PrizeSuiteContainer.Mobile.svelte-iscrfi .IconButton.svelte-iscrfi{width:24px;height:24px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TooltipBackdrop.svelte-iscrfi{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TooltipBackdrop .Tooltip.svelte-iscrfi{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TabItem.svelte-iscrfi{font-size:var(--emw--font-size-xs, 10px);font-weight:700}.Overlay.svelte-iscrfi.svelte-iscrfi{border:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:99;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5));padding:0;cursor:default}.MainDrawer.svelte-iscrfi.svelte-iscrfi{width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;position:relative;overflow:hidden}.MainDrawer.Drawer.svelte-iscrfi.svelte-iscrfi{position:fixed;left:50%;transform:translateX(-50%);bottom:0px;z-index:100;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px;background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%)}.MainDrawer.Drawer.full-width.svelte-iscrfi.svelte-iscrfi{padding:0}.Header.svelte-iscrfi.svelte-iscrfi{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 24px;flex-shrink:0}.Header.svelte-iscrfi .HeaderTitle.svelte-iscrfi{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:700;text-align:center;flex-grow:1}.IconButton.svelte-iscrfi.svelte-iscrfi{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background-size:100%;background-repeat:no-repeat;padding:0}.IconButton.Close.svelte-iscrfi.svelte-iscrfi{background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.IconButton.Help.svelte-iscrfi.svelte-iscrfi{background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.TooltipBackdrop.svelte-iscrfi.svelte-iscrfi{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.TooltipBackdrop.svelte-iscrfi .Tooltip.svelte-iscrfi{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:8px;line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.TooltipBackdrop.svelte-iscrfi .Tooltip .IconButton.Close.svelte-iscrfi{top:12px;right:12px;position:absolute}.TabBar.svelte-iscrfi.svelte-iscrfi{display:flex;border-bottom:2px solid var(--emw--color-secondary, #729787);margin:0 0 20px;flex-shrink:0}.TabBar.svelte-iscrfi .TabItem.svelte-iscrfi{flex:1;padding:12px;background:transparent;border:none;color:var(--emw--color-gray-300, #729787);font-weight:700;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);transition:all 0.2s}.TabBar.svelte-iscrfi .TabItem.active.svelte-iscrfi{color:var(--emw--color-white, #ffffff);border-bottom:2px solid var(--emw--button-border-color, #75ffe9);margin-bottom:-2px}.ViewContent.svelte-iscrfi.svelte-iscrfi{flex-grow:1;overflow:hidden;display:flex;flex-direction:column}.TransitionWrapper.svelte-iscrfi.svelte-iscrfi{height:100%;width:100%;display:flex;flex-direction:column;flex-grow:1}`)}function O(n){let t,i,s,l,o,r,u,p=n[0]==="true"&&H(n),g=n[9]&&A(n),c=n[0]==="true"&&n[5]==="LIST"&&W(n),a=n[5]==="LIST"&&Y(n);function h(f,b){if(f[6]==="PLAY")return te;if(f[5]==="LIST")return ee}let w=h(n),m=w&&w(n);return{c(){t=e.element("div"),p&&p.c(),i=e.space(),s=e.element("div"),g&&g.c(),l=e.space(),c&&c.c(),o=e.space(),a&&a.c(),r=e.space(),u=e.element("div"),m&&m.c(),e.attr(u,"class","ViewContent svelte-iscrfi"),e.attr(s,"class","MainDrawer svelte-iscrfi"),e.toggle_class(s,"Drawer",n[0]==="true"),e.toggle_class(s,"full-width",n[5]==="DETAILS"),e.attr(t,"class","PrizeSuiteContainer svelte-iscrfi"),e.toggle_class(t,"is-drawer",n[0]==="true"),e.toggle_class(t,"Mobile",n[13])},m(f,b){e.insert(f,t,b),p&&p.m(t,null),e.append(t,i),e.append(t,s),g&&g.m(s,null),e.append(s,l),c&&c.m(s,null),e.append(s,o),a&&a.m(s,null),e.append(s,r),e.append(s,u),m&&m.m(u,null),n[29](t)},p(f,b){f[0]==="true"?p?p.p(f,b):(p=H(f),p.c(),p.m(t,i)):p&&(p.d(1),p=null),f[9]?g?g.p(f,b):(g=A(f),g.c(),g.m(s,l)):g&&(g.d(1),g=null),f[0]==="true"&&f[5]==="LIST"?c?c.p(f,b):(c=W(f),c.c(),c.m(s,o)):c&&(c.d(1),c=null),f[5]==="LIST"?a?a.p(f,b):(a=Y(f),a.c(),a.m(s,r)):a&&(a.d(1),a=null),w===(w=h(f))&&m?m.p(f,b):(m&&m.d(1),m=w&&w(f),m&&(m.c(),e.transition_in(m,1),m.m(u,null))),b[0]&1&&e.toggle_class(s,"Drawer",f[0]==="true"),b[0]&32&&e.toggle_class(s,"full-width",f[5]==="DETAILS"),b[0]&1&&e.toggle_class(t,"is-drawer",f[0]==="true")},d(f){f&&e.detach(t),p&&p.d(),g&&g.d(),c&&c.d(),a&&a.d(),m&&m.d(),n[29](null)}}}function H(n){let t,i,s;return{c(){t=e.element("button"),e.attr(t,"type","button"),e.attr(t,"class","Overlay svelte-iscrfi")},m(l,o){e.insert(l,t,o),i||(s=e.listen(t,"click",n[14]),i=!0)},p:e.noop,d(l){l&&e.detach(t),i=!1,s()}}}function A(n){let t,i,s,l,o,r=n[3](n[11])+"",u,p,g;return{c(){t=e.element("div"),i=e.element("div"),s=e.element("button"),l=e.space(),o=e.element("span"),u=e.text(r),e.attr(s,"type","button"),e.attr(s,"class","IconButton Close svelte-iscrfi"),e.attr(i,"class","Tooltip svelte-iscrfi"),e.attr(t,"class","TooltipBackdrop svelte-iscrfi")},m(c,a){e.insert(c,t,a),e.append(t,i),e.append(i,s),e.append(i,l),e.append(i,o),e.append(o,u),p||(g=e.listen(s,"click",n[15]),p=!0)},p(c,a){a[0]&2056&&r!==(r=c[3](c[11])+"")&&e.set_data(u,r)},d(c){c&&e.detach(t),p=!1,g()}}}function W(n){let t,i,s,l,o,r,u,p,g;return{c(){t=e.element("div"),i=e.element("button"),s=e.space(),l=e.element("div"),o=e.text(n[12]),r=e.space(),u=e.element("button"),e.attr(i,"type","button"),e.attr(i,"class","IconButton Help svelte-iscrfi"),e.attr(l,"class","HeaderTitle svelte-iscrfi"),e.attr(u,"type","button"),e.attr(u,"class","IconButton Close svelte-iscrfi"),e.attr(t,"class","Header svelte-iscrfi")},m(c,a){e.insert(c,t,a),e.append(t,i),e.append(t,s),e.append(t,l),e.append(l,o),e.append(t,r),e.append(t,u),p||(g=[e.listen(i,"click",n[15]),e.listen(u,"click",n[14])],p=!0)},p(c,a){a[0]&4096&&e.set_data(o,c[12])},d(c){c&&e.detach(t),p=!1,e.run_all(g)}}}function Y(n){let t,i,s=n[3]("Play")+"",l,o,r,u=n[3]("History")+"",p,g,c;return{c(){t=e.element("div"),i=e.element("button"),l=e.text(s),o=e.space(),r=e.element("button"),p=e.text(u),e.attr(i,"type","button"),e.attr(i,"class","TabItem svelte-iscrfi"),e.toggle_class(i,"active",n[6]==="PLAY"),e.attr(r,"type","button"),e.attr(r,"class","TabItem svelte-iscrfi"),e.toggle_class(r,"active",n[6]==="HISTORY"),e.attr(t,"class","TabBar svelte-iscrfi")},m(a,h){e.insert(a,t,h),e.append(t,i),e.append(i,l),e.append(t,o),e.append(t,r),e.append(r,p),g||(c=[e.listen(i,"click",n[27]),e.listen(r,"click",n[28])],g=!0)},p(a,h){h[0]&8&&s!==(s=a[3]("Play")+"")&&e.set_data(l,s),h[0]&64&&e.toggle_class(i,"active",a[6]==="PLAY"),h[0]&8&&u!==(u=a[3]("History")+"")&&e.set_data(p,u),h[0]&64&&e.toggle_class(r,"active",a[6]==="HISTORY")},d(a){a&&e.detach(t),g=!1,e.run_all(c)}}}function ee(n){let t,i,s,l=[n[10]],o={};for(let r=0;r<l.length;r+=1)o=e.assign(o,l[r]);return{c(){t=e.element("div"),i=e.element("prize-engine-history"),e.set_attributes(i,o),e.toggle_class(i,"svelte-iscrfi",!0),e.attr(t,"class","TransitionWrapper svelte-iscrfi")},m(r,u){e.insert(r,t,u),e.append(t,i)},p(r,u){e.set_attributes(i,o=e.get_spread_update(l,[u[0]&1024&&r[10]])),e.toggle_class(i,"svelte-iscrfi",!0)},i(r){r&&(s||e.add_render_callback(()=>{s=e.create_in_transition(t,P.fade,{duration:250}),s.start()}))},o:e.noop,d(r){r&&e.detach(t)}}}function te(n){let t;function i(o,r){if(o[5]==="LIST")return se;if(o[5]==="DETAILS")return ie}let s=i(n),l=s&&s(n);return{c(){l&&l.c(),t=e.empty()},m(o,r){l&&l.m(o,r),e.insert(o,t,r)},p(o,r){s===(s=i(o))&&l?l.p(o,r):(l&&l.d(1),l=s&&s(o),l&&(l.c(),e.transition_in(l,1),l.m(t.parentNode,t)))},i(o){e.transition_in(l)},o:e.noop,d(o){o&&e.detach(t),l&&l.d(o)}}}function ie(n){let t,i,s=n[7]&&R(n);return{c(){t=e.element("div"),s&&s.c(),e.attr(t,"class","TransitionWrapper svelte-iscrfi")},m(l,o){e.insert(l,t,o),s&&s.m(t,null)},p(l,o){l[7]?s?s.p(l,o):(s=R(l),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},i(l){l&&(i||e.add_render_callback(()=>{i=e.create_in_transition(t,P.fade,{duration:250}),i.start()}))},o:e.noop,d(l){l&&e.detach(t),s&&s.d()}}}function se(n){let t,i,s,l=[n[10]],o={};for(let r=0;r<l.length;r+=1)o=e.assign(o,l[r]);return{c(){t=e.element("div"),i=e.element("prize-engine-list"),e.set_attributes(i,o),e.toggle_class(i,"svelte-iscrfi",!0),e.attr(t,"class","TransitionWrapper svelte-iscrfi")},m(r,u){e.insert(r,t,u),e.append(t,i)},p(r,u){e.set_attributes(i,o=e.get_spread_update(l,[u[0]&1024&&r[10]])),e.toggle_class(i,"svelte-iscrfi",!0)},i(r){r&&(s||e.add_render_callback(()=>{s=e.create_in_transition(t,P.fade,{duration:250}),s.start()}))},o:e.noop,d(r){r&&e.detach(t)}}}function R(n){let t,i=[n[10],{data:n[7]},{programs:n[8]},{twostepdraw:n[1]}],s={};for(let l=0;l<i.length;l+=1)s=e.assign(s,i[l]);return{c(){t=e.element("prize-engine-details"),e.set_attributes(t,s),e.toggle_class(t,"svelte-iscrfi",!0)},m(l,o){e.insert(l,t,o)},p(l,o){e.set_attributes(t,s=e.get_spread_update(i,[o[0]&1024&&l[10],o[0]&128&&{data:l[7]},o[0]&256&&{programs:l[8]},o[0]&2&&{twostepdraw:l[1]}])),e.toggle_class(t,"svelte-iscrfi",!0)},d(l){l&&e.detach(t)}}}function ne(n){let t,i=(n[4]||n[0]==="false")&&O(n);return{c(){i&&i.c(),t=e.empty()},m(s,l){i&&i.m(s,l),e.insert(s,t,l)},p(s,l){s[4]||s[0]==="false"?i?i.p(s,l):(i=O(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(s){s&&e.detach(t),i&&i.d(s)}}}let le=null;function re(n,t,i){let s,l,o,r;e.component_subscribe(n,v.$format,d=>i(3,r=d));let{endpoint:u=""}=t,{session:p=""}=t,{lang:g="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:a=""}=t,{translationurl:h=""}=t,{mbsource:w=""}=t,{isdrawer:m="true"}=t,{type:f="wheelOfFortune"}=t,{luckywheelsize:b=324}=t,{luckywheelmobilesize:L=240}=t,{opened:z="false"}=t,{twostepdraw:x="false"}=t,_;const N=v.isMobile(window.navigator.userAgent);let T=z==="true";Q();const V=()=>{fetch(h).then(y=>y.json()).then(y=>{Object.keys(y).forEach(k=>{q(k,y[k])})})};let C="LIST",I="PLAY",S=null,E=[],M=!1;const D=d=>{const{type:y,data:k}=d.data;y==="OpenPrizeGame"?(i(7,S=k),i(5,C="DETAILS")):y==="BackToList"?(i(5,C="LIST"),i(7,S=null)):y==="ClosePrizeEngineDrawer"?i(4,T=!1):y==="PrizeProgramsLoaded"&&i(8,E=k)},Z=()=>{i(4,T=!1),window.postMessage({type:"ClosePrizeEngineDrawer"},"*")},G=()=>{i(9,M=!M)};e.onMount(()=>(window.addEventListener("message",D),()=>{window.removeEventListener("message",D)}));const U=()=>i(6,I="PLAY"),F=()=>i(6,I="HISTORY");function K(d){e.binding_callbacks[d?"unshift":"push"](()=>{_=d,i(2,_)})}return n.$$set=d=>{"endpoint"in d&&i(16,u=d.endpoint),"session"in d&&i(17,p=d.session),"lang"in d&&i(18,g=d.lang),"clientstyling"in d&&i(19,c=d.clientstyling),"clientstylingurl"in d&&i(20,a=d.clientstylingurl),"translationurl"in d&&i(21,h=d.translationurl),"mbsource"in d&&i(22,w=d.mbsource),"isdrawer"in d&&i(0,m=d.isdrawer),"type"in d&&i(23,f=d.type),"luckywheelsize"in d&&i(24,b=d.luckywheelsize),"luckywheelmobilesize"in d&&i(25,L=d.luckywheelmobilesize),"opened"in d&&i(26,z=d.opened),"twostepdraw"in d&&i(1,x=d.twostepdraw)},n.$$.update=()=>{n.$$.dirty[0]&67108864&&i(4,T=z==="true"),n.$$.dirty[0]&262144&&g&&J(g),n.$$.dirty[0]&2097152&&h&&V(),n.$$.dirty[0]&8388608&&f&&(i(5,C="LIST"),i(7,S=null),i(6,I="PLAY")),n.$$.dirty[0]&8388616&&i(12,s=r(f==="flipCoin"?"CoinRoyale":f==="mysteryChest"?"MysteryChest":"LuckyWheels")),n.$$.dirty[0]&8388608&&i(11,l=f==="flipCoin"?"InfoTooltipCoin":f==="mysteryChest"?"InfoTooltipChest":"InfoTooltipLuckywheel"),n.$$.dirty[0]&524292&&c&&_&&e.setClientStyling(_,c),n.$$.dirty[0]&1048580&&a&&_&&e.setClientStylingURL(_,a),n.$$.dirty[0]&4194308&&w&&_&&e.setStreamStyling(_,`${w}.Style`,le),n.$$.dirty[0]&67043328&&i(10,o={endpoint:u,session:p,lang:g,clientstyling:c,clientstylingurl:a,translationurl:h,mbsource:w,type:f,luckywheelsize:b,luckywheelmobilesize:L})},[m,x,_,r,T,C,I,S,E,M,o,l,s,N,Z,G,u,p,g,c,a,h,w,f,b,L,z,U,F,K]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,ne,e.safe_not_equal,{endpoint:16,session:17,lang:18,clientstyling:19,clientstylingurl:20,translationurl:21,mbsource:22,isdrawer:0,type:23,luckywheelsize:24,luckywheelmobilesize:25,opened:26,twostepdraw:1},$,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get isdrawer(){return this.$$.ctx[0]}set isdrawer(t){this.$$set({isdrawer:t}),e.flush()}get type(){return this.$$.ctx[23]}set type(t){this.$$set({type:t}),e.flush()}get luckywheelsize(){return this.$$.ctx[24]}set luckywheelsize(t){this.$$set({luckywheelsize:t}),e.flush()}get luckywheelmobilesize(){return this.$$.ctx[25]}set luckywheelmobilesize(t){this.$$set({luckywheelmobilesize:t}),e.flush()}get opened(){return this.$$.ctx[26]}set opened(t){this.$$set({opened:t}),e.flush()}get twostepdraw(){return this.$$.ctx[1]}set twostepdraw(t){this.$$set({twostepdraw:t}),e.flush()}}customElements.define("prize-engine-suite",e.create_custom_element(j,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},isdrawer:{},type:{},luckywheelsize:{},luckywheelmobilesize:{},opened:{},twostepdraw:{}},[],[],!0));exports.default=j;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameOverlay-BTBB2PXb.cjs"),P=require("./LotteryProgramWof-2uKUtUtX.cjs"),v=require("./CasinoMysteryChestContainer-1zTKkJGg.cjs"),B={en:{History:"History",Play:"Play",CoinRoyale:"CoinRoyale",MysteryChest:"MysteryChest",LuckyWheels:"LuckyWheels",InfoTooltipCoin:"Flip a virtual coin and take a chance to win!",InfoTooltipChest:"Open Mystery Chest and find your reward!",InfoTooltipLuckywheel:"Spin a lucky wheel and take a chance to win!"}};function X({withLocale:n,translations:t}){v.$locale.subscribe(i=>{i==null&&(v.$dictionary.set(t),v.$locale.set(n))})}function q(n,t){v.addMessages(n,t)}function J(n){v.$locale.set(n)}const Q=()=>{X({withLocale:"en",translations:{}}),Object.keys(B).forEach(n=>{q(n,B[n])})};if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineHistory-DLsDw9dt.cjs")).then(({default:t})=>{!customElements.get("prize-engine-history")&&customElements.define("prize-engine-history",t.element)})}if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineDetails-qoNBtP1p.cjs")).then(({default:t})=>{!customElements.get("prize-engine-details")&&customElements.define("prize-engine-details",t.element)})}if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineList-h09yq3UZ.cjs")).then(({default:t})=>{!customElements.get("prize-engine-list")&&customElements.define("prize-engine-list",t.element)})}function $(n){e.append_styles(n,"svelte-iscrfi",`.PrizeSuiteContainer.svelte-iscrfi.svelte-iscrfi{width:100%;height:100%;position:relative;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer.svelte-iscrfi{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer.full-width.svelte-iscrfi{padding:0}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer .HeaderTitle.svelte-iscrfi{font-size:var(--emw--font-size-medium, 16px);font-weight:500}.PrizeSuiteContainer.Mobile.svelte-iscrfi .IconButton.svelte-iscrfi{width:24px;height:24px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TooltipBackdrop.svelte-iscrfi{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TooltipBackdrop .Tooltip.svelte-iscrfi{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TabItem.svelte-iscrfi{font-size:var(--emw--font-size-xs, 10px);font-weight:700}.Overlay.svelte-iscrfi.svelte-iscrfi{border:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:99;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5));padding:0;cursor:default}.MainDrawer.svelte-iscrfi.svelte-iscrfi{width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;position:relative;overflow:hidden}.MainDrawer.Drawer.svelte-iscrfi.svelte-iscrfi{position:fixed;left:50%;transform:translateX(-50%);bottom:0px;z-index:100;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px;background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%)}.MainDrawer.Drawer.full-width.svelte-iscrfi.svelte-iscrfi{padding:0}.Header.svelte-iscrfi.svelte-iscrfi{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 24px;flex-shrink:0}.Header.svelte-iscrfi .HeaderTitle.svelte-iscrfi{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:700;text-align:center;flex-grow:1}.IconButton.svelte-iscrfi.svelte-iscrfi{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background-size:100%;background-repeat:no-repeat;padding:0}.IconButton.Close.svelte-iscrfi.svelte-iscrfi{background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.IconButton.Help.svelte-iscrfi.svelte-iscrfi{background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.TooltipBackdrop.svelte-iscrfi.svelte-iscrfi{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.TooltipBackdrop.svelte-iscrfi .Tooltip.svelte-iscrfi{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:8px;line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.TooltipBackdrop.svelte-iscrfi .Tooltip .IconButton.Close.svelte-iscrfi{top:12px;right:12px;position:absolute}.TabBar.svelte-iscrfi.svelte-iscrfi{display:flex;border-bottom:2px solid var(--emw--color-secondary, #729787);margin:0 0 20px;flex-shrink:0}.TabBar.svelte-iscrfi .TabItem.svelte-iscrfi{flex:1;padding:12px;background:transparent;border:none;color:var(--emw--color-gray-300, #729787);font-weight:700;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);transition:all 0.2s}.TabBar.svelte-iscrfi .TabItem.active.svelte-iscrfi{color:var(--emw--color-white, #ffffff);border-bottom:2px solid var(--emw--button-border-color, #75ffe9);margin-bottom:-2px}.ViewContent.svelte-iscrfi.svelte-iscrfi{flex-grow:1;overflow:hidden;display:flex;flex-direction:column}.TransitionWrapper.svelte-iscrfi.svelte-iscrfi{height:100%;width:100%;display:flex;flex-direction:column;flex-grow:1}`)}function O(n){let t,i,s,l,o,r,u,p=n[0]==="true"&&H(n),g=n[9]&&A(n),c=n[0]==="true"&&n[5]==="LIST"&&W(n),a=n[5]==="LIST"&&Y(n);function h(f,b){if(f[6]==="PLAY")return te;if(f[5]==="LIST")return ee}let w=h(n),m=w&&w(n);return{c(){t=e.element("div"),p&&p.c(),i=e.space(),s=e.element("div"),g&&g.c(),l=e.space(),c&&c.c(),o=e.space(),a&&a.c(),r=e.space(),u=e.element("div"),m&&m.c(),e.attr(u,"class","ViewContent svelte-iscrfi"),e.attr(s,"class","MainDrawer svelte-iscrfi"),e.toggle_class(s,"Drawer",n[0]==="true"),e.toggle_class(s,"full-width",n[5]==="DETAILS"),e.attr(t,"class","PrizeSuiteContainer svelte-iscrfi"),e.toggle_class(t,"is-drawer",n[0]==="true"),e.toggle_class(t,"Mobile",n[13])},m(f,b){e.insert(f,t,b),p&&p.m(t,null),e.append(t,i),e.append(t,s),g&&g.m(s,null),e.append(s,l),c&&c.m(s,null),e.append(s,o),a&&a.m(s,null),e.append(s,r),e.append(s,u),m&&m.m(u,null),n[29](t)},p(f,b){f[0]==="true"?p?p.p(f,b):(p=H(f),p.c(),p.m(t,i)):p&&(p.d(1),p=null),f[9]?g?g.p(f,b):(g=A(f),g.c(),g.m(s,l)):g&&(g.d(1),g=null),f[0]==="true"&&f[5]==="LIST"?c?c.p(f,b):(c=W(f),c.c(),c.m(s,o)):c&&(c.d(1),c=null),f[5]==="LIST"?a?a.p(f,b):(a=Y(f),a.c(),a.m(s,r)):a&&(a.d(1),a=null),w===(w=h(f))&&m?m.p(f,b):(m&&m.d(1),m=w&&w(f),m&&(m.c(),e.transition_in(m,1),m.m(u,null))),b[0]&1&&e.toggle_class(s,"Drawer",f[0]==="true"),b[0]&32&&e.toggle_class(s,"full-width",f[5]==="DETAILS"),b[0]&1&&e.toggle_class(t,"is-drawer",f[0]==="true")},d(f){f&&e.detach(t),p&&p.d(),g&&g.d(),c&&c.d(),a&&a.d(),m&&m.d(),n[29](null)}}}function H(n){let t,i,s;return{c(){t=e.element("button"),e.attr(t,"type","button"),e.attr(t,"class","Overlay svelte-iscrfi")},m(l,o){e.insert(l,t,o),i||(s=e.listen(t,"click",n[14]),i=!0)},p:e.noop,d(l){l&&e.detach(t),i=!1,s()}}}function A(n){let t,i,s,l,o,r=n[3](n[11])+"",u,p,g;return{c(){t=e.element("div"),i=e.element("div"),s=e.element("button"),l=e.space(),o=e.element("span"),u=e.text(r),e.attr(s,"type","button"),e.attr(s,"class","IconButton Close svelte-iscrfi"),e.attr(i,"class","Tooltip svelte-iscrfi"),e.attr(t,"class","TooltipBackdrop svelte-iscrfi")},m(c,a){e.insert(c,t,a),e.append(t,i),e.append(i,s),e.append(i,l),e.append(i,o),e.append(o,u),p||(g=e.listen(s,"click",n[15]),p=!0)},p(c,a){a[0]&2056&&r!==(r=c[3](c[11])+"")&&e.set_data(u,r)},d(c){c&&e.detach(t),p=!1,g()}}}function W(n){let t,i,s,l,o,r,u,p,g;return{c(){t=e.element("div"),i=e.element("button"),s=e.space(),l=e.element("div"),o=e.text(n[12]),r=e.space(),u=e.element("button"),e.attr(i,"type","button"),e.attr(i,"class","IconButton Help svelte-iscrfi"),e.attr(l,"class","HeaderTitle svelte-iscrfi"),e.attr(u,"type","button"),e.attr(u,"class","IconButton Close svelte-iscrfi"),e.attr(t,"class","Header svelte-iscrfi")},m(c,a){e.insert(c,t,a),e.append(t,i),e.append(t,s),e.append(t,l),e.append(l,o),e.append(t,r),e.append(t,u),p||(g=[e.listen(i,"click",n[15]),e.listen(u,"click",n[14])],p=!0)},p(c,a){a[0]&4096&&e.set_data(o,c[12])},d(c){c&&e.detach(t),p=!1,e.run_all(g)}}}function Y(n){let t,i,s=n[3]("Play")+"",l,o,r,u=n[3]("History")+"",p,g,c;return{c(){t=e.element("div"),i=e.element("button"),l=e.text(s),o=e.space(),r=e.element("button"),p=e.text(u),e.attr(i,"type","button"),e.attr(i,"class","TabItem svelte-iscrfi"),e.toggle_class(i,"active",n[6]==="PLAY"),e.attr(r,"type","button"),e.attr(r,"class","TabItem svelte-iscrfi"),e.toggle_class(r,"active",n[6]==="HISTORY"),e.attr(t,"class","TabBar svelte-iscrfi")},m(a,h){e.insert(a,t,h),e.append(t,i),e.append(i,l),e.append(t,o),e.append(t,r),e.append(r,p),g||(c=[e.listen(i,"click",n[27]),e.listen(r,"click",n[28])],g=!0)},p(a,h){h[0]&8&&s!==(s=a[3]("Play")+"")&&e.set_data(l,s),h[0]&64&&e.toggle_class(i,"active",a[6]==="PLAY"),h[0]&8&&u!==(u=a[3]("History")+"")&&e.set_data(p,u),h[0]&64&&e.toggle_class(r,"active",a[6]==="HISTORY")},d(a){a&&e.detach(t),g=!1,e.run_all(c)}}}function ee(n){let t,i,s,l=[n[10]],o={};for(let r=0;r<l.length;r+=1)o=e.assign(o,l[r]);return{c(){t=e.element("div"),i=e.element("prize-engine-history"),e.set_attributes(i,o),e.toggle_class(i,"svelte-iscrfi",!0),e.attr(t,"class","TransitionWrapper svelte-iscrfi")},m(r,u){e.insert(r,t,u),e.append(t,i)},p(r,u){e.set_attributes(i,o=e.get_spread_update(l,[u[0]&1024&&r[10]])),e.toggle_class(i,"svelte-iscrfi",!0)},i(r){r&&(s||e.add_render_callback(()=>{s=e.create_in_transition(t,P.fade,{duration:250}),s.start()}))},o:e.noop,d(r){r&&e.detach(t)}}}function te(n){let t;function i(o,r){if(o[5]==="LIST")return se;if(o[5]==="DETAILS")return ie}let s=i(n),l=s&&s(n);return{c(){l&&l.c(),t=e.empty()},m(o,r){l&&l.m(o,r),e.insert(o,t,r)},p(o,r){s===(s=i(o))&&l?l.p(o,r):(l&&l.d(1),l=s&&s(o),l&&(l.c(),e.transition_in(l,1),l.m(t.parentNode,t)))},i(o){e.transition_in(l)},o:e.noop,d(o){o&&e.detach(t),l&&l.d(o)}}}function ie(n){let t,i,s=n[7]&&R(n);return{c(){t=e.element("div"),s&&s.c(),e.attr(t,"class","TransitionWrapper svelte-iscrfi")},m(l,o){e.insert(l,t,o),s&&s.m(t,null)},p(l,o){l[7]?s?s.p(l,o):(s=R(l),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},i(l){l&&(i||e.add_render_callback(()=>{i=e.create_in_transition(t,P.fade,{duration:250}),i.start()}))},o:e.noop,d(l){l&&e.detach(t),s&&s.d()}}}function se(n){let t,i,s,l=[n[10]],o={};for(let r=0;r<l.length;r+=1)o=e.assign(o,l[r]);return{c(){t=e.element("div"),i=e.element("prize-engine-list"),e.set_attributes(i,o),e.toggle_class(i,"svelte-iscrfi",!0),e.attr(t,"class","TransitionWrapper svelte-iscrfi")},m(r,u){e.insert(r,t,u),e.append(t,i)},p(r,u){e.set_attributes(i,o=e.get_spread_update(l,[u[0]&1024&&r[10]])),e.toggle_class(i,"svelte-iscrfi",!0)},i(r){r&&(s||e.add_render_callback(()=>{s=e.create_in_transition(t,P.fade,{duration:250}),s.start()}))},o:e.noop,d(r){r&&e.detach(t)}}}function R(n){let t,i=[n[10],{data:n[7]},{programs:n[8]},{twostepdraw:n[1]}],s={};for(let l=0;l<i.length;l+=1)s=e.assign(s,i[l]);return{c(){t=e.element("prize-engine-details"),e.set_attributes(t,s),e.toggle_class(t,"svelte-iscrfi",!0)},m(l,o){e.insert(l,t,o)},p(l,o){e.set_attributes(t,s=e.get_spread_update(i,[o[0]&1024&&l[10],o[0]&128&&{data:l[7]},o[0]&256&&{programs:l[8]},o[0]&2&&{twostepdraw:l[1]}])),e.toggle_class(t,"svelte-iscrfi",!0)},d(l){l&&e.detach(t)}}}function ne(n){let t,i=(n[4]||n[0]==="false")&&O(n);return{c(){i&&i.c(),t=e.empty()},m(s,l){i&&i.m(s,l),e.insert(s,t,l)},p(s,l){s[4]||s[0]==="false"?i?i.p(s,l):(i=O(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(s){s&&e.detach(t),i&&i.d(s)}}}let le=null;function re(n,t,i){let s,l,o,r;e.component_subscribe(n,v.$format,d=>i(3,r=d));let{endpoint:u=""}=t,{session:p=""}=t,{lang:g="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:a=""}=t,{translationurl:h=""}=t,{mbsource:w=""}=t,{isdrawer:m="true"}=t,{type:f="wheelOfFortune"}=t,{luckywheelsize:b=324}=t,{luckywheelmobilesize:L=240}=t,{opened:z="false"}=t,{twostepdraw:x="false"}=t,_;const N=v.isMobile(window.navigator.userAgent);let T=z==="true";Q();const V=()=>{fetch(h).then(y=>y.json()).then(y=>{Object.keys(y).forEach(k=>{q(k,y[k])})})};let C="LIST",I="PLAY",S=null,E=[],M=!1;const D=d=>{const{type:y,data:k}=d.data;y==="OpenPrizeGame"?(i(7,S=k),i(5,C="DETAILS")):y==="BackToList"?(i(5,C="LIST"),i(7,S=null)):y==="ClosePrizeEngineDrawer"?i(4,T=!1):y==="PrizeProgramsLoaded"&&i(8,E=k)},Z=()=>{i(4,T=!1),window.postMessage({type:"ClosePrizeEngineDrawer"},"*")},G=()=>{i(9,M=!M)};e.onMount(()=>(window.addEventListener("message",D),()=>{window.removeEventListener("message",D)}));const U=()=>i(6,I="PLAY"),F=()=>i(6,I="HISTORY");function K(d){e.binding_callbacks[d?"unshift":"push"](()=>{_=d,i(2,_)})}return n.$$set=d=>{"endpoint"in d&&i(16,u=d.endpoint),"session"in d&&i(17,p=d.session),"lang"in d&&i(18,g=d.lang),"clientstyling"in d&&i(19,c=d.clientstyling),"clientstylingurl"in d&&i(20,a=d.clientstylingurl),"translationurl"in d&&i(21,h=d.translationurl),"mbsource"in d&&i(22,w=d.mbsource),"isdrawer"in d&&i(0,m=d.isdrawer),"type"in d&&i(23,f=d.type),"luckywheelsize"in d&&i(24,b=d.luckywheelsize),"luckywheelmobilesize"in d&&i(25,L=d.luckywheelmobilesize),"opened"in d&&i(26,z=d.opened),"twostepdraw"in d&&i(1,x=d.twostepdraw)},n.$$.update=()=>{n.$$.dirty[0]&67108864&&i(4,T=z==="true"),n.$$.dirty[0]&262144&&g&&J(g),n.$$.dirty[0]&2097152&&h&&V(),n.$$.dirty[0]&8388608&&f&&(i(5,C="LIST"),i(7,S=null),i(6,I="PLAY")),n.$$.dirty[0]&8388616&&i(12,s=r(f==="flipCoin"?"CoinRoyale":f==="mysteryChest"?"MysteryChest":"LuckyWheels")),n.$$.dirty[0]&8388608&&i(11,l=f==="flipCoin"?"InfoTooltipCoin":f==="mysteryChest"?"InfoTooltipChest":"InfoTooltipLuckywheel"),n.$$.dirty[0]&524292&&c&&_&&e.setClientStyling(_,c),n.$$.dirty[0]&1048580&&a&&_&&e.setClientStylingURL(_,a),n.$$.dirty[0]&4194308&&w&&_&&e.setStreamStyling(_,`${w}.Style`,le),n.$$.dirty[0]&67043328&&i(10,o={endpoint:u,session:p,lang:g,clientstyling:c,clientstylingurl:a,translationurl:h,mbsource:w,type:f,luckywheelsize:b,luckywheelmobilesize:L})},[m,x,_,r,T,C,I,S,E,M,o,l,s,N,Z,G,u,p,g,c,a,h,w,f,b,L,z,U,F,K]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,ne,e.safe_not_equal,{endpoint:16,session:17,lang:18,clientstyling:19,clientstylingurl:20,translationurl:21,mbsource:22,isdrawer:0,type:23,luckywheelsize:24,luckywheelmobilesize:25,opened:26,twostepdraw:1},$,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get isdrawer(){return this.$$.ctx[0]}set isdrawer(t){this.$$set({isdrawer:t}),e.flush()}get type(){return this.$$.ctx[23]}set type(t){this.$$set({type:t}),e.flush()}get luckywheelsize(){return this.$$.ctx[24]}set luckywheelsize(t){this.$$set({luckywheelsize:t}),e.flush()}get luckywheelmobilesize(){return this.$$.ctx[25]}set luckywheelmobilesize(t){this.$$set({luckywheelmobilesize:t}),e.flush()}get opened(){return this.$$.ctx[26]}set opened(t){this.$$set({opened:t}),e.flush()}get twostepdraw(){return this.$$.ctx[1]}set twostepdraw(t){this.$$set({twostepdraw:t}),e.flush()}}customElements.define("prize-engine-suite",e.create_custom_element(j,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},isdrawer:{},type:{},luckywheelsize:{},luckywheelmobilesize:{},opened:{},twostepdraw:{}},[],[],!0));exports.default=j;
|