@everymatrix/lottery-tipping-latest-result 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-tooltip_6.cjs.entry.js +9968 -0
  3. package/dist/cjs/index-e5294eca.js +1376 -0
  4. package/dist/cjs/index.cjs.js +10 -0
  5. package/dist/cjs/loader.cjs.js +15 -0
  6. package/dist/cjs/lottery-tipping-latest-result-c9dbebc8.js +650 -0
  7. package/dist/cjs/lottery-tipping-latest-result.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +28 -0
  9. package/dist/collection/components/lottery-tipping-calendar/lottery-tipping-calendar.css +130 -0
  10. package/dist/collection/components/lottery-tipping-calendar/lottery-tipping-calendar.js +306 -0
  11. package/dist/collection/components/lottery-tipping-latest-result/index.js +1 -0
  12. package/dist/collection/components/lottery-tipping-latest-result/lottery-tipping-latest-result.css +133 -0
  13. package/dist/collection/components/lottery-tipping-latest-result/lottery-tipping-latest-result.js +432 -0
  14. package/dist/collection/index.js +1 -0
  15. package/dist/collection/models/index.js +1 -0
  16. package/dist/collection/utils/locale.utils.js +67 -0
  17. package/dist/collection/utils/utils.js +159 -0
  18. package/dist/esm/app-globals-0f993ce5.js +3 -0
  19. package/dist/esm/general-tooltip_6.entry.js +9960 -0
  20. package/dist/esm/index-0975f224.js +1347 -0
  21. package/dist/esm/index.js +2 -0
  22. package/dist/esm/loader.js +11 -0
  23. package/dist/esm/lottery-tipping-latest-result-2ee900c2.js +639 -0
  24. package/dist/esm/lottery-tipping-latest-result.js +20 -0
  25. package/dist/index.cjs.js +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/lottery-tipping-latest-result/app-globals-0f993ce5.js +1 -0
  28. package/dist/lottery-tipping-latest-result/general-tooltip_6.entry.js +6656 -0
  29. package/dist/lottery-tipping-latest-result/index-0975f224.js +2 -0
  30. package/dist/lottery-tipping-latest-result/index.esm.js +1 -0
  31. package/dist/lottery-tipping-latest-result/lottery-tipping-latest-result-2ee900c2.js +1 -0
  32. package/dist/lottery-tipping-latest-result/lottery-tipping-latest-result.esm.js +1 -0
  33. package/dist/static/add.svg +8 -0
  34. package/dist/static/delete.svg +37 -0
  35. package/dist/static/info.svg +6 -0
  36. package/dist/static/left-arrow.svg +15 -0
  37. package/dist/static/loading.svg +10 -0
  38. package/dist/static/right-arrow.svg +15 -0
  39. package/dist/stencil.config.dev.js +19 -0
  40. package/dist/stencil.config.js +19 -0
  41. package/dist/storybook/main.js +43 -0
  42. package/dist/storybook/preview.js +9 -0
  43. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/packages/stencil/lottery-tipping-latest-result/stencil.config.d.ts +2 -0
  45. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/packages/stencil/lottery-tipping-latest-result/stencil.config.dev.d.ts +2 -0
  46. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/packages/stencil/lottery-tipping-latest-result/storybook/main.d.ts +3 -0
  47. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/packages/stencil/lottery-tipping-latest-result/storybook/preview.d.ts +70 -0
  48. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/tools/plugins/index.d.ts +3 -0
  49. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  50. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  51. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  52. package/dist/types/components/lottery-tipping-calendar/lottery-tipping-calendar.d.ts +62 -0
  53. package/dist/types/components/lottery-tipping-latest-result/index.d.ts +1 -0
  54. package/dist/types/components/lottery-tipping-latest-result/lottery-tipping-latest-result.d.ts +74 -0
  55. package/dist/types/components.d.ts +148 -0
  56. package/dist/types/index.d.ts +1 -0
  57. package/dist/types/models/index.d.ts +130 -0
  58. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  59. package/dist/types/utils/locale.utils.d.ts +2 -0
  60. package/dist/types/utils/utils.d.ts +10 -0
  61. package/loader/cdn.js +1 -0
  62. package/loader/index.cjs.js +1 -0
  63. package/loader/index.d.ts +24 -0
  64. package/loader/index.es2017.js +1 -0
  65. package/loader/index.js +2 -0
  66. package/loader/package.json +11 -0
  67. package/package.json +27 -0
@@ -0,0 +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=e=>{const t=new URL(e,f.o);return t.origin!==u.location.origin?t.href:t.pathname},k={},j=e=>"object"==(e=typeof e)||"function"===e;function O(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:()=>C,map:()=>M,ok:()=>E,unwrap:()=>R,unwrapErr:()=>L});var E=e=>({isOk:!0,isErr:!1,value:e}),C=e=>({isOk:!1,isErr:!0,value:e});function M(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return C(e.value);throw"should never get here"}var x,P,R=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},T=(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&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?U(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,D);const u=U(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},U=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},D={forEach:(e,t)=>e.map(F).forEach(t),map:(e,t)=>e.map(F).map(t).map(N)},F=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),T(e.vtag,t,...e.vchildren||[])}const t=U(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$,H=(e,t,n)=>{const l=W(e);return{emit:e=>q(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},q=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},G=new WeakMap,V=e=>"sc-"+e.S,_=(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=B(n),s=B(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=j(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(I);t=t.replace(J,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},z=/\s/,B=e=>e?e.split(z):[],I="Capture",J=RegExp(I+"$"),K=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||k,s=t.u||k;for(const e of Q(Object.keys(o)))e in s||_(l,e,o[e],void 0,n,t.l);for(const e of Q(Object.keys(s)))_(l,e,o[e],s[e],n,t.l)};function Q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var X=!1,Y=!1,Z=(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),K(null,l,Y),null!=x&&o["s-si"]!==x&&o.classList.add(o["s-si"]=x),l.h)for(r=0;r<l.h.length;++r)s=Z(e,l,r),s&&o.appendChild(s);return o["s-hn"]=P,o},ee=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===P&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=Z(null,n,o),r&&(l[o].v=r,se(i,r,t)))},te=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;oe(t),e&&e.remove()}}},ne=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),le=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.m||X)&&K(e,t,Y),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(ne(h,m,o))le(h,m,o),h=t[++i],m=l[++c];else if(ne(d,v,o))le(d,v,o),d=t[--f],v=l[--p];else if(ne(h,v,o))le(h,v,o),se(e,h.v,d.v.nextSibling),h=t[++i],v=l[--p];else if(ne(d,m,o))le(d,m,o),se(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=Z(t&&t[c],n,u):(le(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=Z(t&&t[c],n,c),m=l[++c]),s&&se(h.v.parentNode,s,h.v)}i>f?ee(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&te(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),ee(l,null,t,s,0,s.length-1)):null!==o&&te(o,0,o.length-1)):e.i!==r&&(l.data=r)},oe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(oe)},se=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),re=(e,t)=>{t&&!e.k&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.k=t)))},ie=(e,t)=>{if(e.l|=16,!(4&e.l))return re(e,e.j),g((()=>ce(e,t)));e.l|=512},ce=(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])=>me(n,e,t))),e.O=void 0),l=me(n,"componentWillLoad")),ue(l,(()=>fe(e,n,t)))},ue=(e,t)=>ae(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ae=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,fe=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=V(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=G.get(e=e.head||e);if(r||G.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.M)?n:O(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);he(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>de(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},he=(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||U(null,null),r=(e=>e&&e.m===A)(t)?t:T(null,null,t);if(P=l.tagName,o.R&&(r.u=r.u||{},o.R.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,x=l["s-sc"],X=!!(1&o.l),le(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},de=e=>{const t=e.$hostElement$,n=e.t,l=e.j;me(n,"componentDidRender"),64&e.l||(e.l|=64,ve(t),me(n,"componentDidLoad"),e.L(t),l||pe()),e.T(t),e.k&&(e.k(),e.k=void 0),512&e.l&&w((()=>ie(e,!1))),e.l&=-517},pe=()=>{ve(a.documentElement),w((()=>q(u,"appload",{detail:{namespace:"lottery-tipping-latest-result"}})))},me=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ve=e=>e.classList.add("hydrated"),ye=(e,t,l)=>{var o,r;const i=e.prototype;if(t.U||t.A||e.watchers){e.watchers&&!t.A&&(t.A=e.watchers);const c=Object.entries(null!=(o=t.U)?o:{});if(c.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(i,e,{get(){return((e,t)=>n(this).D.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.D.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.U[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.D.set(t,l),a)){if(o.A&&128&u){const e=o.A[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ie(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.F)?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.A)?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.A)?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.R)||o.push([e,s])),s}))]))}}return e},$e=e=>{me(e,"connectedCallback")},be=e=>{me(e,"disconnectedCallback")},we=(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],U:l[2],N:l[3]};4&c.l&&(S=!0),c.U=l[2],c.N=l[3],c.R=[],c.A=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,D:new Map};l.F=new Promise((e=>l.T=e)),l.W=new Promise((e=>l.L=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,ge(this,e,c.N)),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)ge(e,t,l.N),(null==t?void 0:t.t)?$e(t.t):(null==t?void 0:t.W)&&t.W.then((()=>$e(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){re(t,t.j=n);break}}l.U&&Object.entries(l.U).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.A=l.watchers,ye(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(),$e(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=V(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=()=>ie(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)?be(e.t):(null==e?void 0:e.W)&&e.W.then((()=>be(e.t)))}})()))}componentOnReady(){return n(this).W}};c.H=e[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,ye(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:O(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(pe,30)))},ge=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=e,r=Se(t,o),i=ke(n);f.ael(s,l,r,i),(t.G=t.G||[]).push((()=>f.rel(s,l,r,i)))}))},Se=(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)}},ke=e=>({passive:!!(1&e),capture:!!(2&e)}),je=e=>f.M=e;export{S as a,we as b,H as c,W as g,T as h,h as p,l as r,je as s}
@@ -0,0 +1 @@
1
+ export{L as LotteryTippingLatestResult}from"./lottery-tipping-latest-result-2ee900c2.js";import"./index-0975f224.js";
@@ -0,0 +1 @@
1
+ import{r as t,h as e}from"./index-0975f224.js";function n(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function i(t,e){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 r(t,e){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{n.innerHTML=e,t&&t.appendChild(n)}))}}var s=function(){return s=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},s.apply(this,arguments)},a={primaryColor:"#333",secondaryColor:"#E6E6E6"};function o(t,e){if(void 0===e&&(e={}),"function"==typeof t.icon){var n=e.placeholders||a;return l(t.icon(n.primaryColor,n.secondaryColor),e)}return l(t.icon,e)}function l(t,e){var n="svg"===t.tag?s(s({},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}),[]),r=i.length?" "+i.join(" "):"",a=(t.children||[]).map((function(t){return l(t,e)})).join("");return a&&a.length?"<".concat(t.tag).concat(r,">").concat(a,"</").concat(t.tag,">"):"<".concat(t.tag).concat(r," />")}function c(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 d(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(!d(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(!d(e))return!1;n++}return n===e}(t):!t)}const h={0:"1",1:"X",2:"2"};function u(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(h).forEach((n=>{e.push({isSelected:t.includes(Number(n)),value:h[n]})})),e}(t))})),e}function p(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(".")}function f(t){return f="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},f(t)}function b(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function g(t){b(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===f(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 y=["ro","en","fr","ar","hr"],m={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...."}},v=(t,e,n)=>{const i=e;let r=m[void 0!==i&&y.includes(i)?i:"en"][t];return n&&Object.keys(n).forEach((t=>{r=r.replace(`{${t}}`,n[t])})),r},w=t=>{Object.keys(t).forEach((e=>{for(let n in t[e])m[e][n]=t[e][n]}))},x=o({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"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),z=o({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"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),k=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&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&i(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&r(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this.translationUrl&&w(JSON.parse(this.translationUrl)),this.getGameById(),this.fetDrawList()}componentDidLoad(){this.stylingContainer&&(this.mbSource&&r(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&i(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 c(`${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 b(2,arguments),g(t).getTime()-g(e).getTime()}(e,s));a<i&&(i=a,n=r)})),n}async fetDrawList(){try{this.isLoading=!0;const t={excludeStatus:"INIT,OPEN,CANCELED"},{items:e}=await c(`${this.endpoint}/games/${this.gameId}/draws${function(t){const e={};Object.entries(t).forEach((([t,n])=>{d(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.filter((t=>t.winningNumbers.length>0));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]=[u(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}}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]=[u(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],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:"e745605e51cfb92c4503b5e96e0142c8c6b4a8d0",class:"lottery-tipping-latest-result",ref:t=>this.stylingContainer=t},this.curDrawSelection&&this.curDrawSelection.length>0&&e("div",{key:"ae825710096f1ec467379bd8c62ee57a7ed472e5",class:"result-wrapper"},e("div",{key:"1bb57f7cce3985f991eecc95546d2716b7960b17",class:"date-selection"},e("div",{key:"9798fd769521260bf8c8e264a6eda272fb4b2841",class:"date-selection-leftIcon",innerHTML:x,onClick:this.preDraw.bind(this)}),e("div",{key:"8ba6a02c69cc4c3b943a8995deaa9d9ceeb2544a",class:"date-selection-calendar"},e("lottery-tipping-calendar",{key:"a8f1f1f44bc77cf5cfe65434c383b875d5594ed5",date:this.lastestDate,highLightDates:this.hasDrawDates,language:this.language,"translation-url":this.translationUrl})),e("div",{key:"b525125953bba88d153b64ee3ff72112b1ccf80f",class:"date-selection-rightIcon",innerHTML:z,onClick:this.nextDraw.bind(this)})),e("div",{key:"fcfc5e6e072049f1279fb4388471d2b339849de0",class:"winning-result"},e("div",{key:"00b4104f637649b1e2f31cb5087d3fa53c80f98d",class:"betting-type"},e("div",{key:"1abcbb1189d30622dc9e8601cd57dcc2275e5524",class:"betting-type-title"},v("bettingType",this.language)),e("div",{key:"1a963bbb6558eb52e4b69bd17025435c6fc5f4f7",class:"betting-type-text"},e("div",{key:"8eeffcdad2700e4ab82f10ad38715a3170812444",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:"723bbd8deda3681467d3cc3d391cf80df47f274b","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,"translation-url":this.translationUrl})),e("div",{key:"1fd49aa75429a82e71721ff7da75ecb6b88a460b",class:"prize-result"},e("div",{key:"a4534c61808ec601e983cce8adda6971e91600cd",class:"prize-result-title"},v("prizeAllocation",this.language,{turnover:p(this.curTurnOver)})),e("div",{key:"515e207fcf899cb68d11bddb69522f9f5bfc6362",class:"prize-result-table"},e("div",{key:"d9d4b212c9d4ef6b5c2cf7b4d1aba7d710a73d5a",class:"prize-result-table-header"},e("div",{key:"2daa570ac8e6b26d67003b1bfdb5d8af24a820a5",class:"prize-result-table-row"},e("div",{key:"ad5a06f05ab88d75608feaad5ab2f51ef3f02ad7",class:"prize-result-table-column"},v("prizes",this.language)),e("div",{key:"48fc4148c21d5c8fa51de77eea636ba19f5b518f",class:"prize-result-table-column"},v("numberOfWinners",this.language)),e("div",{key:"3d8880732e6d883f7f2b9a741be5b9c3aed86be2",class:"prize-result-table-column"},v("prizeMoney",this.language)))),e("div",{key:"85f554ac8100a75f95f61eee7d6df801b9c00d9b",class:"prize-result-table-body"},this.curPrizes.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.tickets),e("div",{class:"prize-result-table-column"},p(t.totalAmount.value))))))))),0==this.curDrawSelection.length&&!this.isLoading&&e("div",{key:"a369e399406415a630a2bd33a1c5e495c57511f7"},v("noLatestResult",this.language)),this.isLoading&&e("div",{key:"d37433e1e86308b269612678b04d82440ce059a7",class:"loading-wrap"},v("loading",this.language)))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};k.style=".lottery-tipping-latest-result {\n padding: 16px;\n container-type: inline-size;\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-gray-100, #e6e6e6);\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}\n.LotteryTippingTicketController__segment--active {\n background-color: var(--emw--color-background, #fff);\n color: #000000;\n font-weight: 600;\n}\n.LotteryTippingTicketController__segment:not(.LotteryTippingTicketController__segment--active):hover {\n background-color: var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));\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}\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}\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 color: rgb(85, 85, 85);\n font-size: 14px;\n width: calc((100% - 2px) / 3);\n}\n.result-wrapper .prize-result-table-header {\n width: 100%;\n background-color: var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n}\n.result-wrapper .prize-result-table .prize-result-table-header .prize-result-table-column {\n color: var(--emw--color-gray-300, #333);\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 background-color: var(--emw--color-gray-50, #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{k as L,f as _,i as a,r as b,o as c,v as d,w as g,b as r,n as s,g as t}
@@ -0,0 +1 @@
1
+ import{p as e,b as t}from"./index-0975f224.js";export{s as setNonce}from"./index-0975f224.js";import{g as l}from"./app-globals-0f993ce5.js";(()=>{const t=import.meta.url,l={};return""!==t&&(l.resourcesUrl=new URL(".",t).href),e(l)})().then((async e=>(await l(),t([["general-tooltip_6",[[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],endpointTicket:[513,"endpoint-ticket"],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]},[[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],limitStylingAppends:[32],clientStylingUrlContent:[32],bulletConfigLineGroup:[32],currentPage:[32],isLoading:[32],hasErrors:[32],dialogConfig:[32],ticketDataSource:[32],resetBulletConfig:[64],getData:[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{translationUrl:["handleNewTranslations"],gameId:["fetchMatchData"],sessionId:["fetchMatchData"],drawId:["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"]}],[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))));
@@ -0,0 +1,8 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M15 12H12M12 12H9M12 12V9M12 12V15M17 21H7C4.79086 21 3 19.2091 3 17V7C3 4.79086 4.79086 3 7 3H17C19.2091 3 21 4.79086 21 7V17C21 19.2091 19.2091 21 17 21Z"
4
+ stroke="#000"
5
+ stroke-width="2"
6
+ stroke-linecap="round"
7
+ />
8
+ </svg>
@@ -0,0 +1,37 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M10 11V17"
4
+ stroke='#000'
5
+ stroke-width="2"
6
+ stroke-linecap="round"
7
+ stroke-linejoin="round"
8
+ />
9
+ <path
10
+ d="M14 11V17"
11
+ stroke='#000'
12
+ stroke-width="2"
13
+ stroke-linecap="round"
14
+ stroke-linejoin="round"
15
+ />
16
+ <path
17
+ d="M4 7H20"
18
+ stroke='#000'
19
+ stroke-width="2"
20
+ stroke-linecap="round"
21
+ stroke-linejoin="round"
22
+ />
23
+ <path
24
+ d="M6 7H12H18V18C18 19.6569 16.6569 21 15 21H9C7.34315 21 6 19.6569 6 18V7Z"
25
+ stroke='#000'
26
+ stroke-width="2"
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ />
30
+ <path
31
+ d="M9 5C9 3.89543 9.89543 3 11 3H13C14.1046 3 15 3.89543 15 5V7H9V5Z"
32
+ stroke='#000'
33
+ stroke-width="2"
34
+ stroke-linecap="round"
35
+ stroke-linejoin="round"
36
+ />
37
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
2
+ viewBox="0 0 32 32" enable-background="new 0 0 32 32" xml:space="preserve">
3
+ <rect x="15" y="14" width="2" height="8" fill="#000"/>
4
+ <rect x="15" y="10" width="2" height="2" fill="#000"/>
5
+ <circle fill="none" stroke="#000" stroke-width="2" stroke-miterlimit="10" cx="16" cy="16" r="12"/>
6
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <title>left_fill</title>
3
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
4
+ <g id="Arrow" transform="translate(-338.000000, -48.000000)">
5
+ <g id="left_fill" transform="translate(338.000000, 48.000000)">
6
+ <path d="M24,0 L24,24 L0,24 L0,0 L24,0 Z M12.5934901,23.257841 L12.5819402,23.2595131 L12.5108777,23.2950439 L12.4918791,23.2987469 L12.4918791,23.2987469 L12.4767152,23.2950439 L12.4056548,23.2595131 C12.3958229,23.2563662 12.3870493,23.2590235 12.3821421,23.2649074 L12.3780323,23.275831 L12.360941,23.7031097 L12.3658947,23.7234994 L12.3769048,23.7357139 L12.4804777,23.8096931 L12.4953491,23.8136134 L12.4953491,23.8136134 L12.5071152,23.8096931 L12.6106902,23.7357139 L12.6232938,23.7196733 L12.6232938,23.7196733 L12.6266527,23.7031097 L12.609561,23.275831 C12.6075724,23.2657013 12.6010112,23.2592993 12.5934901,23.257841 L12.5934901,23.257841 Z M12.8583906,23.1452862 L12.8445485,23.1473072 L12.6598443,23.2396597 L12.6498822,23.2499052 L12.6498822,23.2499052 L12.6471943,23.2611114 L12.6650943,23.6906389 L12.6699349,23.7034178 L12.6699349,23.7034178 L12.678386,23.7104931 L12.8793402,23.8032389 C12.8914285,23.8068999 12.9022333,23.8029875 12.9078286,23.7952264 L12.9118235,23.7811639 L12.8776777,23.1665331 C12.8752882,23.1545897 12.8674102,23.1470016 12.8583906,23.1452862 L12.8583906,23.1452862 Z M12.1430473,23.1473072 C12.1332178,23.1423925 12.1221763,23.1452606 12.1156365,23.1525954 L12.1099173,23.1665331 L12.0757714,23.7811639 C12.0751323,23.7926639 12.0828099,23.8018602 12.0926481,23.8045676 L12.108256,23.8032389 L12.3092106,23.7104931 L12.3186497,23.7024347 L12.3186497,23.7024347 L12.3225043,23.6906389 L12.340401,23.2611114 L12.337245,23.2485176 L12.337245,23.2485176 L12.3277531,23.2396597 L12.1430473,23.1473072 Z" id="MingCute" fill-rule="nonzero">
7
+
8
+ </path>
9
+ <path d="M7.93932,13.0607 C7.35354,12.4749 7.35354,11.5251 7.93932,10.9393 L13.5962,5.28249 C14.182,4.6967 15.1317,4.6967 15.7175,5.28249 C16.3033,5.86827 16.3033,6.81802 15.7175,7.40381 L11.1213,12 L15.7175,16.5962 C16.3033,17.182 16.3033,18.1317 15.7175,18.7175 C15.1317,19.3033 14.182,19.3033 13.5962,18.7175 L7.93932,13.0607 Z" fill="#09244B">
10
+
11
+ </path>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <style>
3
+ .spinner_I8Q1{animation:spinner_qhi1 .75s linear infinite}
4
+ .spinner_vrS7{animation-delay:-.375s}@keyframes
5
+ spinner_qhi1{0%,100%{r:1.5px}50%{r:3px}}
6
+ </style>
7
+ <circle class="spinner_I8Q1" cx="4" cy="12" r="1.5" fill="black"/>
8
+ <circle class="spinner_I8Q1 spinner_vrS7" cx="12" cy="12" r="3" fill="black"/>
9
+ <circle class="spinner_I8Q1" cx="20" cy="12" r="1.5" fill="black"/>
10
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <title>right_fill</title>
3
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
4
+ <g id="Arrow" transform="translate(-386.000000, -48.000000)">
5
+ <g id="right_fill" transform="translate(386.000000, 48.000000)">
6
+ <path d="M24,0 L24,24 L0,24 L0,0 L24,0 Z M12.5934901,23.257841 L12.5819402,23.2595131 L12.5108777,23.2950439 L12.4918791,23.2987469 L12.4918791,23.2987469 L12.4767152,23.2950439 L12.4056548,23.2595131 C12.3958229,23.2563662 12.3870493,23.2590235 12.3821421,23.2649074 L12.3780323,23.275831 L12.360941,23.7031097 L12.3658947,23.7234994 L12.3769048,23.7357139 L12.4804777,23.8096931 L12.4953491,23.8136134 L12.4953491,23.8136134 L12.5071152,23.8096931 L12.6106902,23.7357139 L12.6232938,23.7196733 L12.6232938,23.7196733 L12.6266527,23.7031097 L12.609561,23.275831 C12.6075724,23.2657013 12.6010112,23.2592993 12.5934901,23.257841 L12.5934901,23.257841 Z M12.8583906,23.1452862 L12.8445485,23.1473072 L12.6598443,23.2396597 L12.6498822,23.2499052 L12.6498822,23.2499052 L12.6471943,23.2611114 L12.6650943,23.6906389 L12.6699349,23.7034178 L12.6699349,23.7034178 L12.678386,23.7104931 L12.8793402,23.8032389 C12.8914285,23.8068999 12.9022333,23.8029875 12.9078286,23.7952264 L12.9118235,23.7811639 L12.8776777,23.1665331 C12.8752882,23.1545897 12.8674102,23.1470016 12.8583906,23.1452862 L12.8583906,23.1452862 Z M12.1430473,23.1473072 C12.1332178,23.1423925 12.1221763,23.1452606 12.1156365,23.1525954 L12.1099173,23.1665331 L12.0757714,23.7811639 C12.0751323,23.7926639 12.0828099,23.8018602 12.0926481,23.8045676 L12.108256,23.8032389 L12.3092106,23.7104931 L12.3186497,23.7024347 L12.3186497,23.7024347 L12.3225043,23.6906389 L12.340401,23.2611114 L12.337245,23.2485176 L12.337245,23.2485176 L12.3277531,23.2396597 L12.1430473,23.1473072 Z" id="MingCute" fill-rule="nonzero">
7
+
8
+ </path>
9
+ <path d="M16.0607,10.9393 C16.6465,11.5251 16.6465,12.4749 16.0607,13.0607 L10.4038,18.7175 C9.81804,19.3033 8.86829,19.3033 8.2825,18.7175 C7.69672,18.1317 7.69672,17.182 8.2825,16.5962 L12.8787,12 L8.2825,7.40381 C7.69672,6.81802 7.69672,5.86827 8.2825,5.28248 C8.86829,4.6967 9.81804,4.6967 10.4038,5.28249 L16.0607,10.9393 Z" fill="#09244B">
10
+
11
+ </path>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </svg>
@@ -0,0 +1,19 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'lottery-tipping-latest-result',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'www'
14
+ },
15
+ {
16
+ type: 'docs-readme'
17
+ }
18
+ ]
19
+ };
@@ -0,0 +1,19 @@
1
+ import { cleanPackageJsonStencil } from "../../../tools/plugins";
2
+ import { sass } from "@stencil/sass";
3
+ export const config = {
4
+ namespace: 'lottery-tipping-latest-result',
5
+ taskQueue: 'async',
6
+ sourceMap: false,
7
+ minifyJs: true,
8
+ hashFileNames: false,
9
+ extras: {
10
+ experimentalImportInjection: true
11
+ },
12
+ plugins: [cleanPackageJsonStencil(), sass()],
13
+ outputTargets: [
14
+ {
15
+ type: 'dist',
16
+ esmLoaderPath: '../loader'
17
+ }
18
+ ]
19
+ };
@@ -0,0 +1,43 @@
1
+ import path from "path";
2
+ import { getStoryFiles, detectUsedPackages, parseTsConfig, exec, filterParsedPathsByUsedPackages } from "../../../../libs/common/src/storybook/storybook-utils";
3
+ const config = {
4
+ stories: ['../**/*.@(mdx|stories.@(js|ts|tsx))'],
5
+ addons: ['@storybook/addon-essentials', '@storybook/addon-interactions', 'storybook-dark-mode'],
6
+ docs: {
7
+ defaultName: 'Documentation',
8
+ autodocs: 'tag'
9
+ },
10
+ framework: {
11
+ name: '@storybook/web-components-vite',
12
+ options: {}
13
+ },
14
+ // Async viteFinal to build dependent packages before finalizing configuration.
15
+ viteFinal: async (config) => {
16
+ const storyFiles = getStoryFiles(path.resolve(__dirname, '../'));
17
+ const usedPackages = detectUsedPackages(storyFiles);
18
+ const buildPromises = usedPackages.map(async (pkg) => {
19
+ try {
20
+ console.log(`Building package ${pkg}...`);
21
+ const { stdout, stderr } = await exec(`nx run ${pkg}:build`);
22
+ console.log(`Built package ${pkg}: ${stdout}`);
23
+ if (stderr) {
24
+ console.error(`Build warning/error for package ${pkg}: ${stderr}`);
25
+ }
26
+ }
27
+ catch (error) {
28
+ console.error(`Error building package ${pkg}:`, error);
29
+ }
30
+ });
31
+ await Promise.all(buildPromises);
32
+ const parsedPaths = parseTsConfig() || {};
33
+ const filteredParsedPaths = filterParsedPathsByUsedPackages(parsedPaths, usedPackages);
34
+ return Object.assign(Object.assign({}, config), { resolve: {
35
+ alias: Object.assign({}, filteredParsedPaths)
36
+ }, define: {
37
+ process: {
38
+ env: {}
39
+ }
40
+ } });
41
+ }
42
+ };
43
+ export default config;
@@ -0,0 +1,9 @@
1
+ import { themes } from "@storybook/theming";
2
+ export const parameters = {
3
+ darkMode: {
4
+ dark: Object.assign(Object.assign({}, themes.dark), { appBg: 'black' }),
5
+ light: Object.assign(Object.assign({}, themes.normal), { appBg: 'green' }),
6
+ current: 'light',
7
+ stylePreview: true
8
+ }
9
+ };
@@ -0,0 +1,39 @@
1
+ /// <reference types="node" />
2
+ import { exec as execCallback } from 'child_process';
3
+ export declare const exec: typeof execCallback.__promisify__;
4
+ /**
5
+ * Recursively retrieves all story files (.stories.ts/.stories.tsx) in a directory.
6
+ * @param dir The directory to search.
7
+ * @returns Array of story file paths.
8
+ */
9
+ export declare const getStoryFiles: (dir: string) => string[];
10
+ /**
11
+ * Detects which internal packages are used in the provided story files.
12
+ * It looks at every import that starts with the given package alias prefix,
13
+ * then extracts the package name (the segment immediately following the prefix).
14
+ *
15
+ * @param stories Array of story file paths.
16
+ * @returns Array of unique package names (e.g. ['foo', 'bar']).
17
+ */
18
+ export declare const detectUsedPackages: (stories: string[]) => string[];
19
+ /**
20
+ * Extracts all import paths from a file using the TypeScript compiler API.
21
+ * @param filePath The file path to parse.
22
+ * @returns Array of import strings.
23
+ */
24
+ export declare const extractImports: (filePath: string) => string[];
25
+ /**
26
+ * Parses the tsconfig paths and resolves them to absolute paths.
27
+ * @param tsconfigPath The path to the tsconfig file.
28
+ * @returns An object mapping alias keys to absolute paths.
29
+ */
30
+ export declare const parseTsConfig: () => Record<string, string> | null;
31
+ /**
32
+ * Filters the parsed tsconfig alias mapping to only include keys that correspond
33
+ * to the used packages.
34
+ *
35
+ * @param parsedPaths The full alias mapping from tsconfig.
36
+ * @param usedPackages Array of package names that are used (e.g. ['foo', 'bar']).
37
+ * @returns Filtered alias mapping.
38
+ */
39
+ export declare const filterParsedPathsByUsedPackages: (parsedPaths: Record<string, string>, usedPackages: string[]) => Record<string, string>;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,3 @@
1
+ import type { StorybookConfig } from '@storybook/web-components-vite';
2
+ declare const config: StorybookConfig;
3
+ export default config;
@@ -0,0 +1,70 @@
1
+ export declare const parameters: {
2
+ darkMode: {
3
+ dark: {
4
+ appBg: string;
5
+ base: "light" | "dark";
6
+ colorPrimary: string;
7
+ colorSecondary: string;
8
+ appContentBg: string;
9
+ appPreviewBg: string;
10
+ appBorderColor: string;
11
+ appBorderRadius: number;
12
+ fontBase: string;
13
+ fontCode: string;
14
+ textColor: string;
15
+ textInverseColor: string;
16
+ textMutedColor: string;
17
+ barTextColor: string;
18
+ barHoverColor: string;
19
+ barSelectedColor: string;
20
+ barBg: string;
21
+ buttonBg: string;
22
+ buttonBorder: string;
23
+ booleanBg: string;
24
+ booleanSelectedBg: string;
25
+ inputBg: string;
26
+ inputBorder: string;
27
+ inputTextColor: string;
28
+ inputBorderRadius: number;
29
+ brandTitle?: string;
30
+ brandUrl?: string;
31
+ brandImage?: string;
32
+ brandTarget?: string;
33
+ gridCellSize?: number;
34
+ };
35
+ light: {
36
+ appBg: string;
37
+ base: "light" | "dark";
38
+ colorPrimary: string;
39
+ colorSecondary: string;
40
+ appContentBg: string;
41
+ appPreviewBg: string;
42
+ appBorderColor: string;
43
+ appBorderRadius: number;
44
+ fontBase: string;
45
+ fontCode: string;
46
+ textColor: string;
47
+ textInverseColor: string;
48
+ textMutedColor: string;
49
+ barTextColor: string;
50
+ barHoverColor: string;
51
+ barSelectedColor: string;
52
+ barBg: string;
53
+ buttonBg: string;
54
+ buttonBorder: string;
55
+ booleanBg: string;
56
+ booleanSelectedBg: string;
57
+ inputBg: string;
58
+ inputBorder: string;
59
+ inputTextColor: string;
60
+ inputBorderRadius: number;
61
+ brandTitle?: string;
62
+ brandUrl?: string;
63
+ brandImage?: string;
64
+ brandTarget?: string;
65
+ gridCellSize?: number;
66
+ };
67
+ current: string;
68
+ stylePreview: boolean;
69
+ };
70
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./vite-chunk-plugin";
2
+ export * from "./stencil-clean-deps-plugin";
3
+ export * from "./vite-clean-deps-plugin";
@@ -0,0 +1,5 @@
1
+ export declare function cleanPackageJsonStencil(): {
2
+ name: string;
3
+ apply: string;
4
+ buildEnd(): void;
5
+ };
@@ -0,0 +1,6 @@
1
+ export declare function viteChunkPlugin(): {
2
+ name: string;
3
+ config(config: any, { command }: {
4
+ command: any;
5
+ }): void;
6
+ };
@@ -0,0 +1,4 @@
1
+ export declare function cleanPackageJsonVite(widgetName: any): {
2
+ name: string;
3
+ closeBundle(): void;
4
+ };
@@ -0,0 +1,62 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import "../../../../../../dist/libs/vaadin-facade/index";
3
+ interface DayItem {
4
+ date: number;
5
+ month: number;
6
+ year: number;
7
+ }
8
+ export declare class LotteryTippingCalendar {
9
+ date: string;
10
+ highLightDates: string[];
11
+ language: string;
12
+ translationUrl?: any;
13
+ weeks: string[];
14
+ days: DayItem[];
15
+ alterDate: {
16
+ year: number;
17
+ month: number;
18
+ day: number;
19
+ };
20
+ curDate: {
21
+ year: number;
22
+ month: number;
23
+ day: number;
24
+ };
25
+ recordInfo: any[];
26
+ showCalendar: boolean;
27
+ changeDate: EventEmitter<number>;
28
+ monthSelectEl?: HTMLSelectElement;
29
+ calendarRef?: HTMLElement;
30
+ componentWillLoad(): void;
31
+ handleDateChange(): void;
32
+ componentDidLoad(): void;
33
+ disconnectedCallback(): void;
34
+ handleOutsideClick: (event: MouseEvent) => void;
35
+ get yearOptions(): {
36
+ label: string;
37
+ value: string;
38
+ }[];
39
+ get monthOptions(): {
40
+ label: string;
41
+ value: string;
42
+ }[];
43
+ loadRecords(): void;
44
+ setDays(year: number, month: number): void;
45
+ getFullDayOfMonth(year: number, month: number): number;
46
+ onYearMinus: () => void;
47
+ onYearPlus: () => void;
48
+ onMonthMinus: () => void;
49
+ onMonthPlus: () => void;
50
+ onYearChange: (e: CustomEvent) => void;
51
+ onMonthChange: (e: CustomEvent) => void;
52
+ showFormatedDate(date: {
53
+ year: number;
54
+ month: number;
55
+ day: number;
56
+ }): string;
57
+ handleSelectDate(curDay: number, curMonth: number, curYear: number): void;
58
+ tellIsCurDay(curDay: number, curMonth: number, curYear: number): boolean;
59
+ tellIsHighLight(curDay: number, curMonth: number, curYear: number): boolean;
60
+ render(): any;
61
+ }
62
+ export {};
@@ -0,0 +1 @@
1
+ export { LotteryTippingLatestResult } from './lottery-tipping-latest-result';
@@ -0,0 +1,74 @@
1
+ import "../../../../../../dist/packages/stencil/lottery-tipping-ticket-bet/dist/types/index";
2
+ import { BettingType, DrawItem, PlayType, Prize } from '../../models';
3
+ export declare class LotteryTippingLatestResult {
4
+ /**
5
+ * Client custom styling via message bus
6
+ */
7
+ mbSource: string;
8
+ /**
9
+ * Client custom styling via string
10
+ */
11
+ clientStyling: string;
12
+ /**
13
+ * Client custom styling via css file url
14
+ */
15
+ clientStylingUrl: string;
16
+ /**
17
+ * Client custom translation via json file url
18
+ */
19
+ translationUrl: string;
20
+ /**
21
+ * Client custom language for translation
22
+ */
23
+ language: string;
24
+ endpoint: string;
25
+ /**
26
+ * EndpointTicket URL for the source of ticket data
27
+ */
28
+ endpointTicket: string;
29
+ /**
30
+ * GameID of the lottery game
31
+ */
32
+ gameId: string;
33
+ /**
34
+ * Player ID
35
+ */
36
+ playerId: number;
37
+ /**
38
+ * GIC Session
39
+ */
40
+ sessionId: string;
41
+ hasDrawDates: Array<string>;
42
+ lastestDate: string;
43
+ drawList: Array<DrawItem>;
44
+ curDrawItem: DrawItem;
45
+ curDrawItemIdx: number;
46
+ curDrawSelection: any;
47
+ curDrawSelectionBettingType: string;
48
+ curDrawSelectionMap: Record<string, any>;
49
+ curPrizes: Array<Prize>;
50
+ curPrizeMap: Record<string, any>;
51
+ curTurnOver: number;
52
+ isLoading: boolean;
53
+ playTypes: Array<PlayType>;
54
+ bettingTypes: Array<BettingType>;
55
+ vendorGameId: string;
56
+ private stylingContainer;
57
+ private stylingSubscription;
58
+ handleClientStylingChange(newValue: any, oldValue: any): void;
59
+ handleClientStylingUrlChange(newValue: any, oldValue: any): void;
60
+ handleMbSourceChange(newValue: any, oldValue: any): void;
61
+ componentWillLoad(): void;
62
+ componentDidLoad(): void;
63
+ disconnectedCallback(): void;
64
+ private getGameById;
65
+ findLatestDateIdx(dateArr: Array<string>): number;
66
+ fetDrawList(): Promise<void>;
67
+ changeCurDateItem(idx: number): void;
68
+ handleChangeDate(e: any): void;
69
+ preDraw(): void;
70
+ nextDraw(): void;
71
+ handleDrawBettingTypeChange(bettingType: string): void;
72
+ getBettingTypeName(bettingType: string): string;
73
+ render(): any;
74
+ }