@everymatrix/lottery-tipping-latest-result 1.86.26 → 1.86.28
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/dist/cjs/{general-tooltip_6.cjs.entry.js → general-tooltip_7.cjs.entry.js} +428 -254
- package/dist/cjs/{index-2ca263e9.js → index-6a03d840.js} +3 -2
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{lottery-tipping-latest-result-3b809e79.js → lottery-tipping-latest-result-1763f6ca.js} +75 -46
- package/dist/cjs/lottery-tipping-latest-result.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/lottery-tipping-calendar/lottery-tipping-calendar.css +1 -1
- package/dist/collection/components/lottery-tipping-calendar/lottery-tipping-calendar.js +2 -2
- package/dist/collection/components/lottery-tipping-latest-result/lottery-tipping-latest-result.css +6 -0
- package/dist/collection/components/lottery-tipping-latest-result/lottery-tipping-latest-result.js +46 -38
- package/dist/collection/utils/api.js +10 -0
- package/dist/collection/utils/utils.js +22 -25
- package/dist/esm/{general-tooltip_6.entry.js → general-tooltip_7.entry.js} +429 -256
- package/dist/esm/{index-32d8a144.js → index-52961f92.js} +3 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{lottery-tipping-latest-result-c2b7bf41.js → lottery-tipping-latest-result-59297760.js} +75 -46
- package/dist/esm/lottery-tipping-latest-result.js +3 -3
- package/dist/lottery-tipping-latest-result/{general-tooltip_6.entry.js → general-tooltip_7.entry.js} +239 -239
- package/dist/lottery-tipping-latest-result/{index-32d8a144.js → index-52961f92.js} +2 -2
- package/dist/lottery-tipping-latest-result/index.esm.js +1 -1
- package/dist/lottery-tipping-latest-result/lottery-tipping-latest-result-59297760.js +1 -0
- package/dist/lottery-tipping-latest-result/lottery-tipping-latest-result.esm.js +1 -1
- package/dist/types/components/lottery-tipping-latest-result/lottery-tipping-latest-result.d.ts +4 -4
- package/dist/types/components.d.ts +0 -8
- package/dist/types/models/index.d.ts +17 -0
- package/dist/types/utils/api.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +4 -2
- package/package.json +1 -1
- package/dist/lottery-tipping-latest-result/lottery-tipping-latest-result-c2b7bf41.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],v=[],y=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?w(b):f.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(m),$(v),(p=m.length>0)&&f.raf(b)},w=e=>h().then(e),g=y(v,!0),S={},k=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>L});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!k(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,F);const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},F={forEach:(e,t)=>e.map(N).forEach(t),map:(e,t)=>e.map(N).map(t).map(U)},N=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),U=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),R(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},W=e=>n(e).$hostElement$,D=(e,t,n)=>{const l=W(e);return{emit:e=>H(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},H=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},q=new WeakMap,G=e=>"sc-"+e.S,V=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=z(n),s=z(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=k(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(B);t=t.replace(I,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},_=/\s/,z=e=>e?e.split(_):[],B="Capture",I=RegExp(B+"$"),J=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of K(Object.keys(o)))e in s||V(l,e,o[e],void 0,n,t.l);for(const e of K(Object.keys(s)))V(l,e,o[e],s[e],n,t.l)};function K(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Q=!1,X=!1,Y=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else if(o=l.v=a.createElement(l.m),J(null,l,X),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=Y(e,l,r),s&&o.appendChild(s);return o["s-hn"]=x,o},Z=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=Y(null,n,o),r&&(l[o].v=r,oe(i,r,t)))},ee=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;le(t),e&&e.remove()}}},te=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),ne=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.m||Q)&&J(e,t,X),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],v=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==v)v=l[--p];else if(te(h,m,o))ne(h,m,o),h=t[++i],m=l[++c];else if(te(d,v,o))ne(d,v,o),d=t[--f],v=l[--p];else if(te(h,v,o))ne(h,v,o),oe(e,h.v,d.v.nextSibling),h=t[++i],v=l[--p];else if(te(d,m,o))ne(d,m,o),oe(e,d.v,h.v),d=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=Y(t&&t[c],n,u):(ne(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=Y(t&&t[c],n,c),m=l[++c]),s&&oe(h.v.parentNode,s,h.v)}i>f?Z(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&ee(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),Z(l,null,t,s,0,s.length-1)):null!==o&&ee(o,0,o.length-1)):e.i!==r&&(l.data=r)},le=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(le)},oe=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),se=(e,t)=>{t&&!e.k&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.k=t)))},re=(e,t)=>{if(e.l|=16,!(4&e.l))return se(e,e.j),g((()=>ie(e,t)));e.l|=512},ie=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.O&&(e.O.map((([e,t])=>pe(n,e,t))),e.O=void 0),l=pe(n,"componentWillLoad")),ce(l,(()=>ae(e,n,t)))},ce=(e,t)=>ue(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ue=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ae=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.C,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=G(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=q.get(e=e.head||e);if(r||q.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.M)?n:j(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);fe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>he(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},fe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.C,s=e.P||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,o.L&&(r.u=r.u||{},o.L.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.P=r,r.v=s.v=l.shadowRoot||l,M=l["s-sc"],Q=!!(1&o.l),ne(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},he=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,me(t),pe(n,"componentDidLoad"),e.R(t),l||de()),e.T(t),e.k&&(e.k(),e.k=void 0),512&e.l&&w((()=>re(e,!1))),e.l&=-517},de=()=>{me(a.documentElement),w((()=>H(u,"appload",{detail:{namespace:"lottery-tipping-latest-result"}})))},pe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},me=e=>e.classList.add("hydrated"),ve=(e,t,l)=>{var o,r;const i=e.prototype;if(t.A||t.F||e.watchers){e.watchers&&!t.F&&(t.F=e.watchers);const c=Object.entries(null!=(o=t.A)?o:{});if(c.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(i,e,{get(){return((e,t)=>n(this).N.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.N.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.A[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.N.set(t,l),a)){if(o.F&&128&u){const e=o.F[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&re(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(i,e,{value(...t){var l;const o=n(this);return null==(l=null==o?void 0:o.U)?void 0:l.then((()=>{var n;return null==(n=o.t)?void 0:n[e](...t)}))}})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.F)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.F)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.L)||o.push([e,s])),s}))]))}}return e},ye=e=>{pe(e,"connectedCallback")},$e=e=>{pe(e,"disconnectedCallback")},be=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,v=a.head,y=v.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let w,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],S:l[1],A:l[2],W:l[3]};4&c.l&&(S=!0),c.A=l[2],c.W=l[3],c.L=[],c.F=null!=(o=l[4])?o:{};const u=c.S,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,C:n,N:new Map};l.U=new Promise((e=>l.T=e)),l.D=new Promise((e=>l.R=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,we(this,e,c.W)),w&&(clearTimeout(w),w=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.C,o=()=>{};if(1&t.l)we(e,t,l.W),(null==t?void 0:t.t)?ye(t.t):(null==t?void 0:t.D)&&t.D.then((()=>ye(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){se(t,t.j=n);break}}l.A&&Object.entries(l.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.H){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.H;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.S}#${t.q}" was not found`);l.isProxied||(n.F=l.watchers,ve(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),ye(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=G(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>re(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.G&&(e.G.map((e=>e())),e.G=void 0),(null==e?void 0:e.t)?$e(e.t):(null==e?void 0:e.
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],v=[],y=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?w(b):f.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(m),$(v),(p=m.length>0)&&f.raf(b)},w=e=>h().then(e),g=y(v,!0),S={},k=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>L});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!k(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,F);const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},F={forEach:(e,t)=>e.map(H).forEach(t),map:(e,t)=>e.map(H).map(t).map(N)},H=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),N=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),R(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},U=e=>n(e).$hostElement$,W=(e,t,n)=>{const l=U(e);return{emit:e=>D(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},D=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},q=new WeakMap,G=e=>"sc-"+e.S,V=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=z(n),s=z(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=k(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(B);t=t.replace(I,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},_=/\s/,z=e=>e?e.split(_):[],B="Capture",I=RegExp(B+"$"),J=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of K(Object.keys(o)))e in s||V(l,e,o[e],void 0,n,t.l);for(const e of K(Object.keys(s)))V(l,e,o[e],s[e],n,t.l)};function K(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Q=!1,X=!1,Y=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else if(o=l.v=a.createElement(l.m),J(null,l,X),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=Y(e,l,r),s&&o.appendChild(s);return o["s-hn"]=x,o},Z=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=Y(null,n,o),r&&(l[o].v=r,oe(i,r,t)))},ee=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;le(t),e&&e.remove()}}},te=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),ne=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.m||Q)&&J(e,t,X),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],v=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==v)v=l[--p];else if(te(h,m,o))ne(h,m,o),h=t[++i],m=l[++c];else if(te(d,v,o))ne(d,v,o),d=t[--f],v=l[--p];else if(te(h,v,o))ne(h,v,o),oe(e,h.v,d.v.nextSibling),h=t[++i],v=l[--p];else if(te(d,m,o))ne(d,m,o),oe(e,d.v,h.v),d=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=Y(t&&t[c],n,u):(ne(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=Y(t&&t[c],n,c),m=l[++c]),s&&oe(h.v.parentNode,s,h.v)}i>f?Z(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&ee(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),Z(l,null,t,s,0,s.length-1)):null!==o&&ee(o,0,o.length-1)):e.i!==r&&(l.data=r)},le=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(le)},oe=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),se=(e,t)=>{t&&!e.k&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.k=t)))},re=(e,t)=>{if(e.l|=16,!(4&e.l))return se(e,e.j),g((()=>ie(e,t)));e.l|=512},ie=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.O&&(e.O.map((([e,t])=>pe(n,e,t))),e.O=void 0),l=pe(n,"componentWillLoad")),ce(l,(()=>ae(e,n,t)))},ce=(e,t)=>ue(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ue=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ae=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.C,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=G(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=q.get(e=e.head||e);if(r||q.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.M)?n:j(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);fe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>he(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},fe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.C,s=e.P||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,o.L&&(r.u=r.u||{},o.L.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.P=r,r.v=s.v=l.shadowRoot||l,M=l["s-sc"],Q=!!(1&o.l),ne(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},he=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,me(t),pe(n,"componentDidLoad"),e.R(t),l||de()),e.T(t),e.k&&(e.k(),e.k=void 0),512&e.l&&w((()=>re(e,!1))),e.l&=-517},de=()=>{me(a.documentElement),w((()=>D(u,"appload",{detail:{namespace:"lottery-tipping-latest-result"}})))},pe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},me=e=>e.classList.add("hydrated"),ve=(e,t,l)=>{var o,r;const i=e.prototype;if(t.A||t.F||e.watchers){e.watchers&&!t.F&&(t.F=e.watchers);const c=Object.entries(null!=(o=t.A)?o:{});if(c.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(i,e,{get(){return((e,t)=>n(this).H.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.H.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.A[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.H.set(t,l),a)){if(o.F&&128&u){const e=o.F[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&re(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(i,e,{value(...t){var l;const o=n(this);return null==(l=null==o?void 0:o.N)?void 0:l.then((()=>{var n;return null==(n=o.t)?void 0:n[e](...t)}))}})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.F)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.F)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.L)||o.push([e,s])),s}))]))}}return e},ye=e=>{pe(e,"connectedCallback")},$e=e=>{pe(e,"disconnectedCallback")},be=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,v=a.head,y=v.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let w,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],S:l[1],A:l[2],U:l[3]};4&c.l&&(S=!0),c.A=l[2],c.U=l[3],c.L=[],c.F=null!=(o=l[4])?o:{};const u=c.S,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,C:n,H:new Map};l.N=new Promise((e=>l.T=e)),l.W=new Promise((e=>l.R=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,we(this,e,c.U)),w&&(clearTimeout(w),w=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.C,o=()=>{};if(1&t.l)we(e,t,l.U),(null==t?void 0:t.t)?ye(t.t):(null==t?void 0:t.W)&&t.W.then((()=>ye(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){se(t,t.j=n);break}}l.A&&Object.entries(l.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.D){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.D;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.S}#${t.q}" was not found`);l.isProxied||(n.F=l.watchers,ve(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),ye(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=G(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>re(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.G&&(e.G.map((e=>e())),e.G=void 0),(null==e?void 0:e.t)?$e(e.t):(null==e?void 0:e.W)&&e.W.then((()=>$e(e.t)))}})()))}componentOnReady(){return n(this).W}};c.D=e[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,ve(a,c,1)))}))})),h.length>0&&(S&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(o=f.M)?o:j(a);null!=e&&$.setAttribute("nonce",e),v.insertBefore($,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(de,30)))},we=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=e,r=ge(t,o),i=Se(n);f.ael(s,l,r,i),(t.G=t.G||[]).push((()=>f.rel(s,l,r,i)))}))},ge=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){s(e)}},Se=e=>({passive:!!(1&e),capture:!!(2&e)}),ke=e=>f.M=e;export{A as H,be as b,W as c,U as g,R as h,h as p,l as r,ke as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{L as LotteryTippingLatestResult}from"./lottery-tipping-latest-result-
|
|
1
|
+
export{L as LotteryTippingLatestResult}from"./lottery-tipping-latest-result-59297760.js";import"./index-52961f92.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e}from"./index-52961f92.js";const n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)},s={primaryColor:"#333",secondaryColor:"#E6E6E6"};function o(t,e){if(void 0===e&&(e={}),"function"==typeof t.icon){var n=e.placeholders||s;return a(t.icon(n.primaryColor,n.secondaryColor),e)}return a(t.icon,e)}function a(t,e){var n="svg"===t.tag?r(r({},t.attrs),e.extraSVGAttrs||{}):t.attrs,i=Object.keys(n).reduce((function(t,e){var i=n[e],r="".concat(e,'="').concat(i,'"');return t.push(r),t}),[]),s=i.length?" "+i.join(" "):"",o=(t.children||[]).map((function(t){return a(t,e)})).join("");return o&&o.length?"<".concat(t.tag).concat(s,">").concat(o,"</").concat(t.tag,">"):"<".concat(t.tag).concat(s," />")}function l(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function c(t,e){if(!t||!e)return;const n=new URL(e);fetch(n.href).then((t=>t.text())).then((e=>{const n=document.createElement("style");n.innerHTML=e,t&&t.appendChild(n)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function h(t,e){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{n.innerHTML=e,t&&t.appendChild(n)}))}}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function u(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function p(t){u(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===d(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}const g=["ro","en","fr","ar","hr"],f={en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],bettingType:"Betting Type:",prizeAllocation:"Prize Allocation (Turnover: {turnover})",prizes:"Prizes",numberOfWinners:"Number of Winners",prizeMoney:"Prize Money",noLatestResult:"No latest result.",loading:"Loading...."},ro:{bettingType:"Tip de pariu:",prizeAllocation:"Alocarea premiilor (Cifră de afaceri: €{turnover})",prizes:"Premii",numberOfWinners:"Număr de câștigători",prizeMoney:"Bani de premiu",noLatestResult:"Niciun rezultat recent.",loading:"Se încarcă...."},fr:{bettingType:"Type de pari:",prizeAllocation:"Répartition des prix (Chiffre d'affaires: € {turnover})",prizes:"Prix",numberOfWinners:"Nombre de gagnants",prizeMoney:"Prix en argent",noLatestResult:"Aucun résultat récent.",loading:"Chargement...."},ar:{bettingType:"نوع الرهان:",prizeAllocation:"تخصيص الجائزة (دوران: € {turnover})",prizes:"الجوائز",numberOfWinners:"عدد الفائزين",prizeMoney:"أموال الجائزة",noLatestResult:"لا يوجد أحدث نتيجة.",loading:"جار التحميل...."},hr:{bettingType:"Vrsta oklade:",prizeAllocation:"Raspodjela nagrada (Promet: € {turnover})",prizes:"Nagrade",numberOfWinners:"Broj pobjednika",prizeMoney:"Novčana nagrada",noLatestResult:"Nema najnovijih rezultata.",loading:"Učitavanje...."}},b=(t,e,n)=>{const i=e;let r=f[void 0!==i&&g.includes(i)?i:"en"][t];return n&&Object.keys(n).forEach((t=>{r=r.replace(`{${t}}`,n[t])})),r},y=t=>{Object.keys(t).forEach((e=>{for(let n in t[e])f[e][n]=t[e][n]}))};function m(t,e="GET",n=null,i={}){return new Promise(((r,s)=>{const o="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})),a=Object.assign({"Content-Type":"application/json"},i);"GET"!==e&&"HEAD"!==e&&(a["X-Idempotency-Key"]=o);const l={method:e,headers:a,body:null};n&&"GET"!==e&&"HEAD"!==e?l.body=JSON.stringify(n):delete l.body,fetch(t,l).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>r(t))).catch((t=>s(t)))}))}function v(t,e){return null==t||""===t||(0!==t||!e)&&(Array.isArray(t)?function(t){if(0===t.length)return!0;const e=t.length;let n=0;for(let i=0;i<e;i++){if(!v(t[i]))return!1;n++}return n===e}(t):"[object Object]"===Object.prototype.toString.call(t)?function(t){if(0===Object.keys(t).length)return!0;const e=Object.keys(t).length;let n=0;for(const e of Object.values(t)){if(!v(e))return!1;n++}return n===e}(t):!t)}const w={0:"1",1:"X",2:"2"},x={H:0,D:1,A:2},z=t=>t.map((t=>{const e=[0,0,0];return t[0].forEach((t=>{const n=x[t];void 0!==n&&(e[n]=1)})),e.map(((t,e)=>({isSelected:1===t,value:w[e]})))}));function k(t){if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}const T=o(n,{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),C=o(i,{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),S=class{constructor(e){t(this,e),this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.endpoint=void 0,this.gameId=void 0,this.playerId=void 0,this.sessionId=void 0,this.hasDrawDates=["2025-05-28T02:00:00Z","2025-05-16T02:00:00Z"],this.lastestDate="2025-05-28T02:00:00Z",this.drawList=void 0,this.curDrawItem=void 0,this.curDrawItemIdx=0,this.curDrawSelection=[],this.curDrawSelectionBettingType=void 0,this.curDrawSelectionMap={},this.curPrizes=void 0,this.curPrizeMap={},this.curTurnOver=0,this.isLoading=!0,this.playTypes=null,this.bettingTypes=void 0,this.vendorGameId=void 0,this.isLoadingTurnover=!1}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this.translationUrl&&y(JSON.parse(this.translationUrl)),this.initData()}async initData(){try{this.isLoading=!0,await Promise.all([this.getGameById(),this.fetDrawList()]),this.getTurnOver()}catch(t){console.error(t)}finally{this.isLoading=!1}}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}async getGameById(){var t,e,n,i;try{const r=await async function(t,e){try{return await m(`${t}/games/${e}`,"GET",{})}catch(t){throw console.error("Failed to fetch game info:",t),new Error("The game is currently not available. Please try again later.")}}(this.endpoint,this.gameId);this.vendorGameId=null==r?void 0:r.type,this.playTypes=null===(e=null===(t=null==r?void 0:r.rules)||void 0===t?void 0:t.poolGame)||void 0===e?void 0:e.playTypes,this.bettingTypes=null===(i=null===(n=null==r?void 0:r.rules)||void 0===n?void 0:n.poolGame)||void 0===i?void 0:i.bettingTypes}catch(t){console.log(t)}}findLatestDateIdx(t){const e=new Date;let n=0,i=1/0;return t.forEach(((t,r)=>{const s=new Date(t),o=Math.abs(function(t,e){return u(2,arguments),p(t).getTime()-p(e).getTime()}(e,s));o<i&&(i=o,n=r)})),n}async fetDrawList(){try{const t={status:"PAYABLE",limit:9999},{items:e}=await m(`${this.endpoint}/games/${this.gameId}/draws${function(t){const e={};Object.entries(t).forEach((([t,n])=>{v(n,!0)||(e[t]=n)}));const n=Object.entries(e).map((([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&");return n?`?${n}`:""}(t)}`,"GET");if(!e||0===e.length)return;const n=e;n.sort(((t,e)=>t.date.localeCompare(e.date))),this.drawList=n,this.hasDrawDates=n.map((t=>t.date)),this.curDrawItemIdx=this.findLatestDateIdx(this.hasDrawDates),this.lastestDate=this.hasDrawDates[this.curDrawItemIdx],this.curDrawItem=n[this.curDrawItemIdx],this.curDrawSelectionBettingType=n[this.curDrawItemIdx].winningNumbers[0].winning_type,this.curDrawItem.winningNumbers.forEach((t=>{this.curDrawSelectionMap[t.winning_type]=[z(t.poolGameOutcomes)]})),this.curDrawItem.prizes.forEach((t=>{const e=t.winningType;this.curPrizeMap[e]?(this.curPrizeMap[e].push(t),this.curPrizeMap[e].sort(((t,e)=>e.totalAmount.value-t.totalAmount.value))):this.curPrizeMap[e]=[t]})),this.curDrawSelection=this.curDrawSelectionMap[this.curDrawSelectionBettingType],this.curPrizes=this.curPrizeMap[this.curDrawSelectionBettingType]}catch(t){console.log(t)}}get displayedPrizes(){return[...this.curPrizes.filter((t=>t.divisionDisplayName.includes("Correct"))).sort(((t,e)=>{const n=Number(t.divisionDisplayName.match(/\d+/)[0]);return Number(null==e?void 0:e.divisionDisplayName.match(/\d+/)[0])-n})),...this.curPrizes.filter((t=>"Bonus"===t.divisionDisplayName))]}changeCurDateItem(t){this.lastestDate=this.hasDrawDates[t],this.curDrawItemIdx=t,this.curDrawItem=this.drawList[t],this.curDrawSelectionBettingType=this.curDrawItem.winningNumbers[0].winning_type,this.curDrawItem.winningNumbers.forEach((t=>{this.curDrawSelectionMap[t.winning_type]=[z(t.poolGameOutcomes)]})),this.curPrizeMap={},this.curDrawItem.prizes.forEach((t=>{const e=t.winningType;this.curPrizeMap[e]?(this.curPrizeMap[e].push(t),this.curPrizeMap[e].sort(((t,e)=>e.totalAmount.value-t.totalAmount.value))):this.curPrizeMap[e]=[t]})),this.curDrawSelection=this.curDrawSelectionMap[this.curDrawSelectionBettingType],this.curPrizes=this.curPrizeMap[this.curDrawSelectionBettingType],this.getTurnOver()}handleChangeDate(t){this.changeCurDateItem(t.detail)}preDraw(){this.curDrawItemIdx>0&&this.changeCurDateItem(--this.curDrawItemIdx)}nextDraw(){this.curDrawItemIdx<this.drawList.length-1&&this.changeCurDateItem(++this.curDrawItemIdx)}async getTurnOver(){var t,e,n;if(null===(t=this.curDrawItem)||void 0===t?void 0:t.id)try{this.isLoadingTurnover=!0;const t=await async function({endpoint:t,gameId:e,drawId:n}){try{return await m(`${t}/games/${e}/draws/${n}/saleStatistics`)}catch(t){return Promise.reject(t)}}({endpoint:this.endpoint,gameId:this.vendorGameId,drawId:this.curDrawItem.id});this.curTurnOver=null!==(n=null===(e=null==t?void 0:t.wagerSegment)||void 0===e?void 0:e.totalSalesCrossDraw)&&void 0!==n?n:0}catch(t){console.error(t)}finally{this.isLoadingTurnover=!1}}handleDrawBettingTypeChange(t){this.curDrawSelectionBettingType=t,this.curDrawSelection=this.curDrawSelectionMap[this.curDrawSelectionBettingType],this.curPrizes=this.curPrizeMap[this.curDrawSelectionBettingType],this.getTurnOver()}getBettingTypeName(t){var e,n;const i=null===(n=null===(e=this.bettingTypes)||void 0===e?void 0:e.find((e=>e.code===t)))||void 0===n?void 0:n.name;return null!=i?i:t}render(){return e("div",{key:"e104fc35ddcdaad1e461bcc867f779dc90254bc6",class:"lottery-tipping-latest-result",ref:t=>this.stylingContainer=t},this.curDrawSelection&&this.curDrawSelection.length>0&&e("div",{key:"085e418338a52262e8866f300be8e67f4d3bbfc7",class:"result-wrapper"},e("div",{key:"7cf61f06f845fb6aabe53896163fa402b1e52a26",class:"date-selection"},e("div",{key:"da4abd68318c454324a665f6e02257dda4f224be",class:"date-selection-leftIcon",innerHTML:T,onClick:this.preDraw.bind(this)}),e("div",{key:"938f8f160c10eae2678dc7a98027a3421409f096",class:"date-selection-calendar"},e("lottery-tipping-calendar",{key:"c8048c6977b3740b8d2e0e7eff3292c329cdc4be",date:this.lastestDate,highLightDates:this.hasDrawDates,language:this.language,"mb-source":this.mbSource,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl})),e("div",{key:"eb17af80ec1b1c38f9d51b878013477290c824d7",class:"date-selection-rightIcon",innerHTML:C,onClick:this.nextDraw.bind(this)})),e("div",{key:"ab7ad2efffe5f9437db6a77b0b0c60e3d9454c5e",class:"winning-result"},e("div",{key:"e6a7ae5ba4c6c967858bb6e4e9a7a75246ec86f2",class:"betting-type"},e("div",{key:"341e5ee07c3e588b154d3a73373bed40a8e51a90",class:"betting-type-title"},b("bettingType",this.language)),e("div",{key:"f824ded5140f92aee54748939fecb5aac692cd6f",class:"betting-type-text"},e("div",{key:"85cb8c0a387b378b36f05af6703c023d9b0819f9",class:"LotteryTippingTicketController__segmented-control"},Object.keys(this.curDrawSelectionMap).map((t=>e("button",{class:{LotteryTippingTicketController__segment:!0,"LotteryTippingTicketController__segment--active":this.curDrawSelectionBettingType===t},onClick:this.handleDrawBettingTypeChange.bind(this,t)},this.getBettingTypeName(t))))))),e("lottery-tipping-ticket-bet",{key:"06293a063a9ac5f0f59ab8ec9033df764eadd511","session-id":this.sessionId,endpoint:this.endpoint,"game-id":this.vendorGameId,"draw-id":this.curDrawItem.id,"default-bullet-config-line-group":JSON.stringify(this.curDrawSelection),"read-pretty":!0,"total-pages":this.curDrawSelection.length,language:this.language,"mb-source":this.mbSource,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl})),this.isLoadingTurnover?e("div",{class:"loading-wrap"},e("ui-skeleton",{structure:"title",width:"140px",height:"30px"}),e("ui-skeleton",{structure:"rectangle",width:"100%",height:"30px"}),e("ui-skeleton",{structure:"rectangle",width:"100%",height:"30px"}),e("ui-skeleton",{structure:"rectangle",width:"100%",height:"30px"}),e("ui-skeleton",{structure:"rectangle",width:"100%",height:"30px"})):e("div",{class:"prize-result"},e("div",{class:"prize-result-title"},b("prizeAllocation",this.language,{turnover:(t=this.curTurnOver,null==t?"":`€${t?k(t):0}`)})),e("div",{class:"prize-result-table"},e("div",{class:"prize-result-table-header"},e("div",{class:"prize-result-table-row"},e("div",{class:"prize-result-table-column"},b("prizes",this.language)),e("div",{class:"prize-result-table-column"},b("numberOfWinners",this.language)),e("div",{class:"prize-result-table-column"},b("prizeMoney",this.language)))),e("div",{class:"prize-result-table-body"},this.displayedPrizes.map((t=>e("div",{class:"prize-result-table-row"},e("div",{class:"prize-result-table-column"},t.divisionDisplayName),e("div",{class:"prize-result-table-column"},t.players),e("div",{class:"prize-result-table-column"},k(t.totalAmount.value))))))))),0==this.curDrawSelection.length&&!this.isLoading&&e("div",{key:"9aa470442a1f2b4600d0f7727210e71cebf934c8"},b("noLatestResult",this.language)),this.isLoading&&e("div",{key:"4568a1cda8eca35552d84075fbc4507d397e3178",class:"loading-wrap"},b("loading",this.language)));var t}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};S.style=".lottery-tipping-latest-result {\n padding: 16px;\n container-type: inline-size;\n background-color: var(--emw--color-background, #fff);\n}\n.lottery-tipping-latest-result .date-selection {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 24px;\n width: 400px;\n}\n.lottery-tipping-latest-result .date-selection-leftIcon, .lottery-tipping-latest-result .date-selection-rightIcon {\n cursor: pointer;\n}\n\n.LotteryTippingTicketController__segmented-control {\n height: 2.2rem;\n display: inline-flex;\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n border-radius: 2rem;\n padding: 0.2rem;\n}\n.LotteryTippingTicketController__segment {\n background-color: transparent;\n border: none;\n padding: 0.3rem 0.8rem;\n cursor: pointer;\n font-weight: 500;\n border-radius: 2rem;\n outline: none;\n transition: background-color 0.25s ease, color 0.25s ease;\n white-space: nowrap;\n color: var(--emw--color-typography, #000);\n}\n.LotteryTippingTicketController__segment--active {\n background-color: var(--emw--color-background, #fff);\n color: var(--emw--color-typography, #000);\n font-weight: 600;\n}\n.LotteryTippingTicketController__segment:not(.LotteryTippingTicketController__segment--active):hover {\n background-color: var(--emw--color-background-tertiary, #ccc);\n}\n\n.betting-type {\n margin-bottom: 16px;\n display: flex;\n align-items: center;\n gap: 20px;\n}\n.betting-type-title {\n font-weight: 600;\n font-size: 16px;\n color: var(--emw--color-typography-secondary, #333);\n}\n.betting-type-text {\n font-size: 16px;\n}\n\n.result-wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 60%;\n margin: 0 auto;\n}\n.result-wrapper .winning-result {\n width: 100%;\n margin-top: 20px;\n}\n.result-wrapper .loading-wrap {\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n.result-wrapper .prize-result {\n width: 100%;\n margin-top: 20px;\n}\n.result-wrapper .prize-result-title {\n font-size: 16px;\n font-weight: 600;\n margin-bottom: 12px;\n color: var(--emw--color-typography-secondary, #333);\n}\n.result-wrapper .prize-result-table {\n width: 100%;\n}\n.result-wrapper .prize-result-table-row {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-evenly;\n}\n.result-wrapper .prize-result-table-column {\n text-align: left;\n padding: 12px 14px;\n width: 160px;\n font-size: 14px;\n width: calc((100% - 2px) / 3);\n color: var(--emw--color-typography, #000);\n}\n.result-wrapper .prize-result-table-header {\n width: 100%;\n background-color: var(--emw--color-background-secondary, #e6e6e6);\n border-radius: 4px;\n}\n.result-wrapper .prize-result-table-body {\n background-color: var(--emw--color-background-tertiary, #fff);\n}\n.result-wrapper .prize-result-table .prize-result-table-header .prize-result-table-column {\n color: var(--emw--color-typography, #000);\n font-weight: 600;\n border-right: 1px solid var(--emw--color-background, #fff);\n}\n.result-wrapper .prize-result-table .prize-result-table-body .prize-result-table-row:hover {\n color: var(--emw--color-typography, #000);\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n@container (max-width: 980px) and (min-width: 780px) {\n .result-wrapper {\n width: 84%;\n }\n}\n@container (max-width: 780px) and (min-width: 480px) {\n .result-wrapper {\n width: 100%;\n }\n}\n@container (max-width: 480px) {\n .result-wrapper {\n width: 100%;\n }\n .result-wrapper .winning-result {\n width: 100%;\n margin-top: 14px;\n }\n .result-wrapper .prize-result {\n width: 100%;\n }\n .result-wrapper .prize-result-table-column {\n padding: 6px;\n width: 100px;\n }\n}";export{S as L,i as R,d as _,c as a,h as b,o as c,b as d,n as e,y as g,u as r,l as s,p as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./index-
|
|
1
|
+
import{p as e,b as t}from"./index-52961f92.js";export{s as setNonce}from"./index-52961f92.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["general-tooltip_7",[[1,"lottery-tipping-latest-result",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],endpoint:[513],gameId:[1537,"game-id"],playerId:[1538,"player-id"],sessionId:[1537,"session-id"],hasDrawDates:[32],lastestDate:[32],drawList:[32],curDrawItem:[32],curDrawItemIdx:[32],curDrawSelection:[32],curDrawSelectionBettingType:[32],curDrawSelectionMap:[32],curPrizes:[32],curPrizeMap:[32],curTurnOver:[32],isLoading:[32],playTypes:[32],bettingTypes:[32],vendorGameId:[32],isLoadingTurnover:[32]},[[0,"changeDate","handleChangeDate"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],sessionId:[513,"session-id"],endpoint:[513],gameId:[513,"game-id"],drawId:[513,"draw-id"],totalPages:[1538,"total-pages"],minTotalPages:[514,"min-total-pages"],maxTotalPages:[514,"max-total-pages"],mode:[513],readPretty:[516,"read-pretty"],defaultBulletConfigLineGroup:[513,"default-bullet-config-line-group"],translationData:[32],clientStylingUrlContent:[32],bulletConfigLineGroup:[32],currentPage:[32],isLoading:[32],hasErrors:[32],dialogConfig:[32],ticketDataSource:[32],resetBulletConfig:[64],getData:[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],gameId:["fetchMatchData"],sessionId:["fetchMatchData"],drawId:["fetchMatchData"],defaultBulletConfigLineGroup:["fetchMatchData"],currentPage:["handleCurrentPageChange"]}],[1,"lottery-tipping-calendar",{date:[1],highLightDates:[16],language:[513],translationUrl:[520,"translation-url"],weeks:[32],days:[32],alterDate:[32],curDate:[32],recordInfo:[32],showCalendar:[32]},null,{date:["handleDateChange"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}],[1,"lottery-tipping-bullet-group",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],positionIdx:[513,"position-idx"],theme:[513],mode:[513],bulletConfigContent:[513,"bullet-config-content"]},[[0,"lotteryTippingBulletToggle","lotteryTippingBulletSelectionHandler"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"general-tooltip",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],position:[1],delay:[2],isVisible:[32],_tooltipId:[32]},[[1,"mouseenter","handleMouseEnterOrFocus"],[0,"focusin","handleMouseEnterOrFocus"],[1,"mouseleave","handleMouseLeaveOrBlur"],[0,"focusout","handleMouseLeaveOrBlur"],[0,"keydown","handleKeyDown"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-bullet",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],positionIdx:[514,"position-idx"],theme:[513],value:[513],disabled:[516],isSelected:[516,"is-selected"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}]]]],e))));
|
package/dist/types/components/lottery-tipping-latest-result/lottery-tipping-latest-result.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "../../../../../../dist/packages/stencil/lottery-tipping-ticket-bet/dist/types/index";
|
|
2
2
|
import { BettingType, DrawItem, PlayType, Prize } from '../../models';
|
|
3
|
+
import "../../../../../../dist/packages/stencil/ui-skeleton/dist/types/index";
|
|
3
4
|
export declare class LotteryTippingLatestResult {
|
|
4
5
|
/**
|
|
5
6
|
* Client custom styling via message bus
|
|
@@ -22,10 +23,6 @@ export declare class LotteryTippingLatestResult {
|
|
|
22
23
|
*/
|
|
23
24
|
language: string;
|
|
24
25
|
endpoint: string;
|
|
25
|
-
/**
|
|
26
|
-
* EndpointTicket URL for the source of ticket data
|
|
27
|
-
*/
|
|
28
|
-
endpointTicket: string;
|
|
29
26
|
/**
|
|
30
27
|
* GameID of the lottery game
|
|
31
28
|
*/
|
|
@@ -53,12 +50,14 @@ export declare class LotteryTippingLatestResult {
|
|
|
53
50
|
playTypes: Array<PlayType>;
|
|
54
51
|
bettingTypes: Array<BettingType>;
|
|
55
52
|
vendorGameId: string;
|
|
53
|
+
isLoadingTurnover: boolean;
|
|
56
54
|
private stylingContainer;
|
|
57
55
|
private stylingSubscription;
|
|
58
56
|
handleClientStylingChange(newValue: any, oldValue: any): void;
|
|
59
57
|
handleClientStylingUrlChange(newValue: any, oldValue: any): void;
|
|
60
58
|
handleMbSourceChange(newValue: any, oldValue: any): void;
|
|
61
59
|
componentWillLoad(): void;
|
|
60
|
+
initData(): Promise<void>;
|
|
62
61
|
componentDidLoad(): void;
|
|
63
62
|
disconnectedCallback(): void;
|
|
64
63
|
private getGameById;
|
|
@@ -69,6 +68,7 @@ export declare class LotteryTippingLatestResult {
|
|
|
69
68
|
handleChangeDate(e: any): void;
|
|
70
69
|
preDraw(): void;
|
|
71
70
|
nextDraw(): void;
|
|
71
|
+
getTurnOver(): Promise<void>;
|
|
72
72
|
handleDrawBettingTypeChange(bettingType: string): void;
|
|
73
73
|
getBettingTypeName(bettingType: string): string;
|
|
74
74
|
render(): any;
|
|
@@ -22,10 +22,6 @@ export namespace Components {
|
|
|
22
22
|
*/
|
|
23
23
|
"clientStylingUrl": string;
|
|
24
24
|
"endpoint": string;
|
|
25
|
-
/**
|
|
26
|
-
* EndpointTicket URL for the source of ticket data
|
|
27
|
-
*/
|
|
28
|
-
"endpointTicket": string;
|
|
29
25
|
/**
|
|
30
26
|
* GameID of the lottery game
|
|
31
27
|
*/
|
|
@@ -103,10 +99,6 @@ declare namespace LocalJSX {
|
|
|
103
99
|
*/
|
|
104
100
|
"clientStylingUrl"?: string;
|
|
105
101
|
"endpoint"?: string;
|
|
106
|
-
/**
|
|
107
|
-
* EndpointTicket URL for the source of ticket data
|
|
108
|
-
*/
|
|
109
|
-
"endpointTicket"?: string;
|
|
110
102
|
/**
|
|
111
103
|
* GameID of the lottery game
|
|
112
104
|
*/
|
|
@@ -27,6 +27,7 @@ export interface WinningNumber {
|
|
|
27
27
|
secondaryNumbers: Array<number>;
|
|
28
28
|
teritaryNumbers: Array<number>;
|
|
29
29
|
winning_type: string;
|
|
30
|
+
poolGameOutcomes: string[][][];
|
|
30
31
|
}
|
|
31
32
|
export interface DrawItem {
|
|
32
33
|
breakEndTime: string;
|
|
@@ -128,4 +129,20 @@ export interface GameInfo {
|
|
|
128
129
|
nextDraw: DrawInfo | null;
|
|
129
130
|
rules: GameRule;
|
|
130
131
|
}
|
|
132
|
+
export interface WagerSegment {
|
|
133
|
+
drawStartTime?: string;
|
|
134
|
+
drawStatus?: string;
|
|
135
|
+
grossGameingRevenue?: string;
|
|
136
|
+
grossSales?: string;
|
|
137
|
+
playerCounts?: number;
|
|
138
|
+
saleContribute?: string;
|
|
139
|
+
ticketCounts?: number;
|
|
140
|
+
totalSalesCrossDraw?: number;
|
|
141
|
+
winsClaimed?: string;
|
|
142
|
+
}
|
|
143
|
+
export interface SaleStatisticsRes {
|
|
144
|
+
drawId?: string;
|
|
145
|
+
gameId?: string;
|
|
146
|
+
wagerSegment?: WagerSegment;
|
|
147
|
+
}
|
|
131
148
|
export {};
|
|
@@ -4,8 +4,10 @@ export declare const generateUUID: () => string;
|
|
|
4
4
|
export declare function fetchRequest(url: string, method?: string, body?: any, headers?: {}): Promise<any>;
|
|
5
5
|
export declare function isEmptyValue(value: any, allowZero?: boolean): boolean;
|
|
6
6
|
export declare function toQueryParams(params: Record<string, any>): string;
|
|
7
|
-
export declare
|
|
8
|
-
|
|
7
|
+
export declare const parseEachLineNumber: (outcomes: string[][][]) => {
|
|
8
|
+
isSelected: boolean;
|
|
9
|
+
value: any;
|
|
10
|
+
}[][];
|
|
9
11
|
export declare function thousandSeperator(value: number | string): string;
|
|
10
12
|
export declare function formattedTurnover(turnover: number | null | undefined): string;
|
|
11
13
|
export declare function fetchGameInfo(endpoint: string, gameId: string): Promise<GameInfo>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e}from"./index-32d8a144.js";const n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)},s={primaryColor:"#333",secondaryColor:"#E6E6E6"};function a(t,e){if(void 0===e&&(e={}),"function"==typeof t.icon){var n=e.placeholders||s;return o(t.icon(n.primaryColor,n.secondaryColor),e)}return o(t.icon,e)}function o(t,e){var n="svg"===t.tag?r(r({},t.attrs),e.extraSVGAttrs||{}):t.attrs,i=Object.keys(n).reduce((function(t,e){var i=n[e],r="".concat(e,'="').concat(i,'"');return t.push(r),t}),[]),s=i.length?" "+i.join(" "):"",a=(t.children||[]).map((function(t){return o(t,e)})).join("");return a&&a.length?"<".concat(t.tag).concat(s,">").concat(a,"</").concat(t.tag,">"):"<".concat(t.tag).concat(s," />")}function l(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function c(t,e){if(!t||!e)return;const n=new URL(e);fetch(n.href).then((t=>t.text())).then((e=>{const n=document.createElement("style");n.innerHTML=e,t&&t.appendChild(n)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function d(t,e){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{n.innerHTML=e,t&&t.appendChild(n)}))}}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function u(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function p(t){u(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===h(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}const b=["ro","en","fr","ar","hr"],f={en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],bettingType:"Betting Type:",prizeAllocation:"Prize Allocation (Turnover: {turnover})",prizes:"Prizes",numberOfWinners:"Number of Winners",prizeMoney:"Prize Money",noLatestResult:"No latest result.",loading:"Loading...."},ro:{bettingType:"Tip de pariu:",prizeAllocation:"Alocarea premiilor (Cifră de afaceri: €{turnover})",prizes:"Premii",numberOfWinners:"Număr de câștigători",prizeMoney:"Bani de premiu",noLatestResult:"Niciun rezultat recent.",loading:"Se încarcă...."},fr:{bettingType:"Type de pari:",prizeAllocation:"Répartition des prix (Chiffre d'affaires: € {turnover})",prizes:"Prix",numberOfWinners:"Nombre de gagnants",prizeMoney:"Prix en argent",noLatestResult:"Aucun résultat récent.",loading:"Chargement...."},ar:{bettingType:"نوع الرهان:",prizeAllocation:"تخصيص الجائزة (دوران: € {turnover})",prizes:"الجوائز",numberOfWinners:"عدد الفائزين",prizeMoney:"أموال الجائزة",noLatestResult:"لا يوجد أحدث نتيجة.",loading:"جار التحميل...."},hr:{bettingType:"Vrsta oklade:",prizeAllocation:"Raspodjela nagrada (Promet: € {turnover})",prizes:"Nagrade",numberOfWinners:"Broj pobjednika",prizeMoney:"Novčana nagrada",noLatestResult:"Nema najnovijih rezultata.",loading:"Učitavanje...."}},g=(t,e,n)=>{const i=e;let r=f[void 0!==i&&b.includes(i)?i:"en"][t];return n&&Object.keys(n).forEach((t=>{r=r.replace(`{${t}}`,n[t])})),r},y=t=>{Object.keys(t).forEach((e=>{for(let n in t[e])f[e][n]=t[e][n]}))};function m(t,e="GET",n=null,i={}){return new Promise(((r,s)=>{const a="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})),o=Object.assign({"Content-Type":"application/json"},i);"GET"!==e&&"HEAD"!==e&&(o["X-Idempotency-Key"]=a);const l={method:e,headers:o,body:null};n&&"GET"!==e&&"HEAD"!==e?l.body=JSON.stringify(n):delete l.body,fetch(t,l).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>r(t))).catch((t=>s(t)))}))}function v(t,e){return null==t||""===t||(0!==t||!e)&&(Array.isArray(t)?function(t){if(0===t.length)return!0;const e=t.length;let n=0;for(let i=0;i<e;i++){if(!v(t[i]))return!1;n++}return n===e}(t):"[object Object]"===Object.prototype.toString.call(t)?function(t){if(0===Object.keys(t).length)return!0;const e=Object.keys(t).length;let n=0;for(const e of Object.values(t)){if(!v(e))return!1;n++}return n===e}(t):!t)}const w={0:"1",1:"X",2:"2"};function x(t){const e=[],n=[];for(let e=0;e<t.length;e+=2){const[i,r]=[t[e],t[e+1]];n[r]?n[r].push(i):n[r]=[i]}return n.forEach((t=>{e.push(function(t){const e=[];return Object.keys(w).forEach((n=>{e.push({isSelected:t.includes(Number(n)),value:w[n]})})),e}(t))})),e}function z(t){if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}const k=a(n,{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),T=a(i,{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),C=class{constructor(e){t(this,e),this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.endpoint=void 0,this.endpointTicket=void 0,this.gameId=void 0,this.playerId=void 0,this.sessionId=void 0,this.hasDrawDates=["2025-05-28T02:00:00Z","2025-05-16T02:00:00Z"],this.lastestDate="2025-05-28T02:00:00Z",this.drawList=void 0,this.curDrawItem=void 0,this.curDrawItemIdx=0,this.curDrawSelection=[],this.curDrawSelectionBettingType=void 0,this.curDrawSelectionMap={},this.curPrizes=void 0,this.curPrizeMap={},this.curTurnOver=0,this.isLoading=!1,this.playTypes=null,this.bettingTypes=void 0,this.vendorGameId=void 0}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this.translationUrl&&y(JSON.parse(this.translationUrl)),this.getGameById(),this.fetDrawList()}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}async getGameById(){var t,e,n,i;try{this.isLoading=!0;const r=await async function(t,e){try{return await m(`${t}/games/${e}`,"GET",{})}catch(t){throw console.error("Failed to fetch game info:",t),new Error("The game is currently not available. Please try again later.")}}(this.endpoint,this.gameId);this.vendorGameId=null==r?void 0:r.type,this.playTypes=null===(e=null===(t=null==r?void 0:r.rules)||void 0===t?void 0:t.poolGame)||void 0===e?void 0:e.playTypes,this.bettingTypes=null===(i=null===(n=null==r?void 0:r.rules)||void 0===n?void 0:n.poolGame)||void 0===i?void 0:i.bettingTypes}catch(t){console.log(t)}finally{this.isLoading=!1}}findLatestDateIdx(t){const e=new Date;let n=0,i=1/0;return t.forEach(((t,r)=>{const s=new Date(t),a=Math.abs(function(t,e){return u(2,arguments),p(t).getTime()-p(e).getTime()}(e,s));a<i&&(i=a,n=r)})),n}async fetDrawList(){try{this.isLoading=!0;const t={status:"PAYABLE",limit:9999},{items:e}=await m(`${this.endpoint}/games/${this.gameId}/draws${function(t){const e={};Object.entries(t).forEach((([t,n])=>{v(n,!0)||(e[t]=n)}));const n=Object.entries(e).map((([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&");return n?`?${n}`:""}(t)}`,"GET");if(!e||0===e.length)return;const n=e;n.sort(((t,e)=>t.date.localeCompare(e.date))),this.drawList=n,this.hasDrawDates=n.map((t=>t.date)),this.curDrawItemIdx=this.findLatestDateIdx(this.hasDrawDates),this.lastestDate=this.hasDrawDates[this.curDrawItemIdx],this.curDrawItem=n[this.curDrawItemIdx],this.curDrawSelectionBettingType=n[this.curDrawItemIdx].winningNumbers[0].winning_type,this.curDrawItem.winningNumbers.forEach((t=>{this.curDrawSelectionMap[t.winning_type]=[x(t.numbers)]})),this.curDrawItem.prizes.forEach((t=>{const e=t.winningType;this.curPrizeMap[e]?(this.curPrizeMap[e].push(t),this.curPrizeMap[e].sort(((t,e)=>e.totalAmount.value-t.totalAmount.value))):this.curPrizeMap[e]=[t]})),this.curDrawSelection=this.curDrawSelectionMap[this.curDrawSelectionBettingType],this.curPrizes=this.curPrizeMap[this.curDrawSelectionBettingType],this.curTurnOver=this.curPrizes.reduce(((t,e)=>t+Number(e.totalAmount.value)),0)}catch(t){console.log(t)}finally{this.isLoading=!1}}get displayedPrizes(){return[...this.curPrizes.filter((t=>t.divisionDisplayName.includes("Correct"))).sort(((t,e)=>{const n=Number(t.divisionDisplayName.match(/\d+/)[0]);return Number(null==e?void 0:e.divisionDisplayName.match(/\d+/)[0])-n})),...this.curPrizes.filter((t=>"Bonus"===t.divisionDisplayName))]}changeCurDateItem(t){this.lastestDate=this.hasDrawDates[t],this.curDrawItemIdx=t,this.curDrawItem=this.drawList[t],this.curDrawSelectionBettingType=this.curDrawItem.winningNumbers[0].winning_type,this.curDrawItem.winningNumbers.forEach((t=>{this.curDrawSelectionMap[t.winning_type]=[x(t.numbers)]})),this.curPrizeMap={},this.curDrawItem.prizes.forEach((t=>{const e=t.winningType;this.curPrizeMap[e]?(this.curPrizeMap[e].push(t),this.curPrizeMap[e].sort(((t,e)=>e.totalAmount.value-t.totalAmount.value))):this.curPrizeMap[e]=[t]})),this.curDrawSelection=this.curDrawSelectionMap[this.curDrawSelectionBettingType],this.curPrizes=this.curPrizeMap[this.curDrawSelectionBettingType],this.curTurnOver=this.curPrizes.reduce(((t,e)=>t+Number(e.totalAmount.value)),0)}handleChangeDate(t){this.changeCurDateItem(t.detail)}preDraw(){this.curDrawItemIdx>0&&this.changeCurDateItem(--this.curDrawItemIdx)}nextDraw(){this.curDrawItemIdx<this.drawList.length-1&&this.changeCurDateItem(++this.curDrawItemIdx)}handleDrawBettingTypeChange(t){this.curDrawSelectionBettingType=t,this.curDrawSelection=this.curDrawSelectionMap[this.curDrawSelectionBettingType],this.curPrizes=this.curPrizeMap[this.curDrawSelectionBettingType],console.log("this.curPrizes",this.curPrizes),this.curTurnOver=this.curPrizes.reduce(((t,e)=>t+Number(e.totalAmount.value)),0)}getBettingTypeName(t){var e,n;const i=null===(n=null===(e=this.bettingTypes)||void 0===e?void 0:e.find((e=>e.code===t)))||void 0===n?void 0:n.name;return null!=i?i:t}render(){return e("div",{key:"7007ddb59aed34fc20fecdf06d0d53452313e787",class:"lottery-tipping-latest-result",ref:t=>this.stylingContainer=t},this.curDrawSelection&&this.curDrawSelection.length>0&&e("div",{key:"59a729ba714503d5b536133e80b68ad6fa3d97a2",class:"result-wrapper"},e("div",{key:"54e9234aaa863b63c7560ea3bba43b78501046d3",class:"date-selection"},e("div",{key:"aed56b08b9f7fe29c58ba5e55353397b906ac686",class:"date-selection-leftIcon",innerHTML:k,onClick:this.preDraw.bind(this)}),e("div",{key:"56a8536a2e6b81947adffad3f865d605c3b9c32e",class:"date-selection-calendar"},e("lottery-tipping-calendar",{key:"e6f6498838ec7d2ca56db9f85bd888b2b7d6511f",date:this.lastestDate,highLightDates:this.hasDrawDates,language:this.language,"mb-source":this.mbSource,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl})),e("div",{key:"6f2380ab5945ba0fb53a0fc69541312723306202",class:"date-selection-rightIcon",innerHTML:T,onClick:this.nextDraw.bind(this)})),e("div",{key:"74771044a8391de4ae6caad07b3c4c39a3e1a1e1",class:"winning-result"},e("div",{key:"999094cbf4db0b96479ceadfb58e39393438ae30",class:"betting-type"},e("div",{key:"38af0c363d784156fb5835f59775e29c620800ac",class:"betting-type-title"},g("bettingType",this.language)),e("div",{key:"496a1eebcd1cc0f8d4a5ece6c0e472e0d2595b8e",class:"betting-type-text"},e("div",{key:"e2d7bf643dcea0909228ec15b27c3bd8223a037d",class:"LotteryTippingTicketController__segmented-control"},Object.keys(this.curDrawSelectionMap).map((t=>e("button",{class:{LotteryTippingTicketController__segment:!0,"LotteryTippingTicketController__segment--active":this.curDrawSelectionBettingType===t},onClick:this.handleDrawBettingTypeChange.bind(this,t)},this.getBettingTypeName(t))))))),e("lottery-tipping-ticket-bet",{key:"0075d96aa6f5a3278be09a9859d09de127d1d4a1","session-id":this.sessionId,endpoint:this.endpoint,"game-id":this.vendorGameId,"draw-id":this.curDrawItem.id,"default-bullet-config-line-group":JSON.stringify(this.curDrawSelection),"read-pretty":!0,"total-pages":this.curDrawSelection.length,language:this.language,"mb-source":this.mbSource,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl})),e("div",{key:"1b1203abf46c48ce37301ad964995548488fab13",class:"prize-result"},e("div",{key:"6ca0a57e88e2f104f7cd9b9c8b656259c4f85c48",class:"prize-result-title"},g("prizeAllocation",this.language,{turnover:(t=this.curTurnOver,null==t?"":`€${t?z(t):0}`)})),e("div",{key:"eb5c63f5cf063bf3d58e5f67a934d4aa646e5d2a",class:"prize-result-table"},e("div",{key:"f4aa7aa010af6b7cc7461029cd3b6d0cd5f1fa17",class:"prize-result-table-header"},e("div",{key:"ce5afb5067aaa10d2b8aed55eb9bf2e456640a22",class:"prize-result-table-row"},e("div",{key:"a25246d5ed02922cdc424e3ba995219e248298cc",class:"prize-result-table-column"},g("prizes",this.language)),e("div",{key:"701aed9ffb565e7530d96afa946f630b27cb6bc4",class:"prize-result-table-column"},g("numberOfWinners",this.language)),e("div",{key:"c8dcd3e3c5315a29a76d641898b569667a32c6a3",class:"prize-result-table-column"},g("prizeMoney",this.language)))),e("div",{key:"a1fe82d196b3db775a8e671b107b0b8aa835b2c4",class:"prize-result-table-body"},this.displayedPrizes.map((t=>e("div",{class:"prize-result-table-row"},e("div",{class:"prize-result-table-column"},t.divisionDisplayName),e("div",{class:"prize-result-table-column"},t.players),e("div",{class:"prize-result-table-column"},z(t.totalAmount.value))))))))),0==this.curDrawSelection.length&&!this.isLoading&&e("div",{key:"84d70585471cffd14e2e0c0db37966b54f4150ac"},g("noLatestResult",this.language)),this.isLoading&&e("div",{key:"b8988afe78bf47497f09743cf5841014e8611a05",class:"loading-wrap"},g("loading",this.language)));var t}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};C.style=".lottery-tipping-latest-result {\n padding: 16px;\n container-type: inline-size;\n background-color: var(--emw--color-background, #fff);\n}\n.lottery-tipping-latest-result .date-selection {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 24px;\n width: 400px;\n}\n.lottery-tipping-latest-result .date-selection-leftIcon, .lottery-tipping-latest-result .date-selection-rightIcon {\n cursor: pointer;\n}\n\n.LotteryTippingTicketController__segmented-control {\n height: 2.2rem;\n display: inline-flex;\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n border-radius: 2rem;\n padding: 0.2rem;\n}\n.LotteryTippingTicketController__segment {\n background-color: transparent;\n border: none;\n padding: 0.3rem 0.8rem;\n cursor: pointer;\n font-weight: 500;\n border-radius: 2rem;\n outline: none;\n transition: background-color 0.25s ease, color 0.25s ease;\n white-space: nowrap;\n color: var(--emw--color-typography, #000);\n}\n.LotteryTippingTicketController__segment--active {\n background-color: var(--emw--color-background, #fff);\n color: var(--emw--color-typography, #000);\n font-weight: 600;\n}\n.LotteryTippingTicketController__segment:not(.LotteryTippingTicketController__segment--active):hover {\n background-color: var(--emw--color-background-tertiary, #ccc);\n}\n\n.betting-type {\n margin-bottom: 16px;\n display: flex;\n align-items: center;\n gap: 20px;\n}\n.betting-type-title {\n font-weight: 600;\n font-size: 16px;\n color: var(--emw--color-typography-secondary, #333);\n}\n.betting-type-text {\n font-size: 16px;\n}\n\n.result-wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 60%;\n margin: 0 auto;\n}\n.result-wrapper .winning-result {\n width: 100%;\n margin-top: 20px;\n}\n.result-wrapper .prize-result {\n width: 100%;\n margin-top: 20px;\n}\n.result-wrapper .prize-result-title {\n font-size: 16px;\n font-weight: 600;\n margin-bottom: 12px;\n color: var(--emw--color-typography-secondary, #333);\n}\n.result-wrapper .prize-result-table {\n width: 100%;\n}\n.result-wrapper .prize-result-table-row {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-evenly;\n}\n.result-wrapper .prize-result-table-column {\n text-align: left;\n padding: 12px 14px;\n width: 160px;\n font-size: 14px;\n width: calc((100% - 2px) / 3);\n color: var(--emw--color-typography, #000);\n}\n.result-wrapper .prize-result-table-header {\n width: 100%;\n background-color: var(--emw--color-background-secondary, #e6e6e6);\n border-radius: 4px;\n}\n.result-wrapper .prize-result-table-body {\n background-color: var(--emw--color-background-tertiary, #fff);\n}\n.result-wrapper .prize-result-table .prize-result-table-header .prize-result-table-column {\n color: var(--emw--color-typography, #000);\n font-weight: 600;\n border-right: 1px solid var(--emw--color-background, #fff);\n}\n.result-wrapper .prize-result-table .prize-result-table-body .prize-result-table-row:hover {\n color: var(--emw--color-typography, #000);\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n@container (max-width: 980px) and (min-width: 780px) {\n .result-wrapper {\n width: 84%;\n }\n}\n@container (max-width: 780px) and (min-width: 480px) {\n .result-wrapper {\n width: 100%;\n }\n}\n@container (max-width: 480px) {\n .result-wrapper {\n width: 100%;\n }\n .result-wrapper .winning-result {\n width: 100%;\n margin-top: 14px;\n }\n .result-wrapper .prize-result {\n width: 100%;\n }\n .result-wrapper .prize-result-table-column {\n padding: 6px;\n width: 100px;\n }\n}";export{C as L,i as R,h as _,c as a,d as b,a as c,g as d,n as e,y as g,u as r,l as s,p as t}
|