@everymatrix/lottery-oddsbom-latest-result-group 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 (59) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/helper-date-navigator_6.cjs.entry.js +10586 -0
  3. package/dist/cjs/index-6e8dce5e.js +1265 -0
  4. package/dist/cjs/index.cjs.js +10 -0
  5. package/dist/cjs/loader.cjs.js +15 -0
  6. package/dist/cjs/lottery-oddsbom-latest-result-group-51987144.js +451 -0
  7. package/dist/cjs/lottery-oddsbom-latest-result-group.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +43 -0
  9. package/dist/collection/components/lottery-oddsbom-latest-result-group/index.js +1 -0
  10. package/dist/collection/components/lottery-oddsbom-latest-result-group/lottery-oddsbom-latest-result-group.css +64 -0
  11. package/dist/collection/components/lottery-oddsbom-latest-result-group/lottery-oddsbom-latest-result-group.js +306 -0
  12. package/dist/collection/index.js +1 -0
  13. package/dist/collection/models/index.js +1 -0
  14. package/dist/collection/utils/api.js +39 -0
  15. package/dist/collection/utils/utils.js +134 -0
  16. package/dist/esm/app-globals-0f993ce5.js +3 -0
  17. package/dist/esm/helper-date-navigator_6.entry.js +10578 -0
  18. package/dist/esm/index-f1cb78c1.js +1237 -0
  19. package/dist/esm/index.js +2 -0
  20. package/dist/esm/loader.js +11 -0
  21. package/dist/esm/lottery-oddsbom-latest-result-group-7f3fc378.js +442 -0
  22. package/dist/esm/lottery-oddsbom-latest-result-group.js +20 -0
  23. package/dist/index.cjs.js +1 -0
  24. package/dist/index.js +1 -0
  25. package/dist/lottery-oddsbom-latest-result-group/app-globals-0f993ce5.js +1 -0
  26. package/dist/lottery-oddsbom-latest-result-group/helper-date-navigator_6.entry.js +6657 -0
  27. package/dist/lottery-oddsbom-latest-result-group/index-f1cb78c1.js +2 -0
  28. package/dist/lottery-oddsbom-latest-result-group/index.esm.js +1 -0
  29. package/dist/lottery-oddsbom-latest-result-group/lottery-oddsbom-latest-result-group-7f3fc378.js +1 -0
  30. package/dist/lottery-oddsbom-latest-result-group/lottery-oddsbom-latest-result-group.esm.js +1 -0
  31. package/dist/stencil.config.dev.js +19 -0
  32. package/dist/stencil.config.js +19 -0
  33. package/dist/storybook/main.js +43 -0
  34. package/dist/storybook/preview.js +9 -0
  35. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-latest-result-group/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  36. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-latest-result-group/.stencil/packages/stencil/lottery-oddsbom-latest-result-group/stencil.config.d.ts +2 -0
  37. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-latest-result-group/.stencil/packages/stencil/lottery-oddsbom-latest-result-group/stencil.config.dev.d.ts +2 -0
  38. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-latest-result-group/.stencil/packages/stencil/lottery-oddsbom-latest-result-group/storybook/main.d.ts +3 -0
  39. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-latest-result-group/.stencil/packages/stencil/lottery-oddsbom-latest-result-group/storybook/preview.d.ts +70 -0
  40. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-latest-result-group/.stencil/tools/plugins/index.d.ts +4 -0
  41. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-latest-result-group/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  42. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-latest-result-group/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  43. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-latest-result-group/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-latest-result-group/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  45. package/dist/types/components/lottery-oddsbom-latest-result-group/index.d.ts +1 -0
  46. package/dist/types/components/lottery-oddsbom-latest-result-group/lottery-oddsbom-latest-result-group.d.ts +60 -0
  47. package/dist/types/components.d.ts +103 -0
  48. package/dist/types/index.d.ts +1 -0
  49. package/dist/types/models/index.d.ts +156 -0
  50. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  51. package/dist/types/utils/api.d.ts +7 -0
  52. package/dist/types/utils/utils.d.ts +7 -0
  53. package/loader/cdn.js +1 -0
  54. package/loader/index.cjs.js +1 -0
  55. package/loader/index.d.ts +24 -0
  56. package/loader/index.es2017.js +1 -0
  57. package/loader/index.js +2 -0
  58. package/loader/package.json +11 -0
  59. 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),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?v($):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),b(y),(d=m.length>0)&&f.raf($)},v=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(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&&!j(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(" "))}}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,$:null,h:null,u:null,p:null}),A={},F=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>H(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},H=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},N=new WeakMap,U=e=>"sc-"+e.v,W=(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=q(n),s=q(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(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},D=/\s/,q=e=>e?e.split(D):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of z(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else{if(B||(B="svg"===l.m),o=l.$=a.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),B&&"foreignObject"===l.m&&(B=!1),_(null,l,B),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=I(e,l,r),s&&o.appendChild(s);"svg"===l.m?B=!1:"foreignObject"===o.tagName&&(B=!0)}return o["s-hn"]=x,o},J=(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=I(null,n,o),r&&(l[o].$=r,Z(i,r,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Y(t),e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(_(e,t,B="svg"===r||"foreignObject"!==r&&B),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],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(Q(h,m,o))X(h,m,o),h=t[++i],m=l[++c];else if(Q(p,y,o))X(p,y,o),p=t[--f],y=l[--d];else if(Q(h,y,o))X(h,y,o),Z(e,h.$,p.$.nextSibling),h=t[++i],y=l[--d];else if(Q(p,m,o))X(p,m,o),Z(e,p.$,h.$),p=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=I(t&&t[c],n,u):(X(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Z(h.$.parentNode,s,h.$)}i>f?J(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&K(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):null!==o&&K(o,0,o.length-1),B&&"svg"===r&&(B=!1)):e.i!==i&&(l.data=i)},Y=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Y)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.j),g((()=>ne(e,t)));e.l|=512},ne=(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&&(l=ue(n,"componentWillLoad")),le(l,(()=>se(e,n,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.O)?n:k(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);re(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},re=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,o.M&&(r.u=r.u||{},o.M.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.C=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],X(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,ae(t),ue(n,"componentDidLoad"),e.P(t),l||ce()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>te(e,!1))),e.l&=-517},ce=()=>{ae(a.documentElement),v((()=>H(u,"appload",{detail:{namespace:"lottery-oddsbom-latest-result-group"}})))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ae=e=>e.classList.add("hydrated"),fe=(e,t,l)=>{var o,r;const i=e.prototype;if(t.L||t.R||e.watchers){e.watchers&&!t.R&&(t.R=e.watchers);const c=Object.entries(null!=(o=t.L)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).T.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.v}" 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.T.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.L[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.T.set(t,l),a)){if(o.R&&128&u){const e=o.R[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&te(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),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.R)?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.R)?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.M)||o.push([e,s])),s}))]))}}return e},he=e=>{ue(e,"disconnectedCallback")},pe=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),b=a.createElement("style"),$=[];let v,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],v:l[1],L:l[2],A:l[3]};4&c.l&&(S=!0),c.L=l[2],c.M=[],c.R=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,T:new Map};l.F=new Promise((e=>l.P=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.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.F)&&t.F.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.j=n);break}}l.L&&Object.entries(l.L).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.v.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.v}#${t.N}" was not found`);l.isProxied||(n.R=l.watchers,fe(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()}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=U(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&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=()=>te(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);(null==e?void 0:e.t)?he(e.t):(null==e?void 0:e.F)&&e.F.then((()=>he(e.t)))}})()))}componentOnReady(){return n(this).F}};c.H=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,fe(a,c,1)))}))})),h.length>0&&(S&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(ce,30)))},de=e=>f.O=e;export{A as H,pe as b,F as c,R as h,h as p,l as r,de as s}
@@ -0,0 +1 @@
1
+ export{L as LotteryOddsbomLatestResultGroup}from"./lottery-oddsbom-latest-result-group-7f3fc378.js";import"./index-f1cb78c1.js";
@@ -0,0 +1 @@
1
+ import{r as t,h as e}from"./index-f1cb78c1.js";function n(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function i(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 s(t,e){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{n.innerHTML=e,t&&t.appendChild(n)}))}}function o(t){return o="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},o(t)}function a(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function r(t){a(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===o(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))}function l(t,e){return a(2,arguments),r(t).getTime()-r(e).getTime()}function d(t){function e(t,n){return null==t||""===t||(0!==t||!n)&&(Array.isArray(t)?function(t){if(0===t.length)return!0;const n=t.length;let i=0;for(let s=0;s<n;s++){if(!e(t[s]))return!1;i++}return i===n}(t):"[object Object]"===Object.prototype.toString.call(t)?function(t){if(0===Object.keys(t).length)return!0;const n=Object.keys(t).length;let i=0;for(const n of Object.values(t)){if(!e(n))return!1;i++}return i===n}(t):!t)}const n={};Object.entries(t).forEach((([t,i])=>{e(i,!0)||(n[t]=i)}));const i=Object.entries(n).map((([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&");return i?`?${i}`:""}async function h({endpoint:t,gameId:e}){if(!t||!e)return;const{items:n}=await function(t,e="GET",n=null,i={}){return new Promise(((s,o)=>{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)})),r=Object.assign({"Content-Type":"application/json"},i);"GET"!==e&&"HEAD"!==e&&(r["X-Idempotency-Key"]=a);const l={method:e,headers:r,body:null};n&&"GET"!==e&&"HEAD"!==e?l.body=JSON.stringify(n):delete l.body,fetch(t,l).then((t=>{if(!t.ok)throw o(`HTTP error! Status: ${t.status}`),new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>s(t))).catch((t=>o(t)))}))}(`${t}/games/${e}/draws${d({status:"PAYABLE",limit:9999})}`);if(!n||0===n.length)return{};const i=n.sort(((t,e)=>null==t?void 0:t.date.localeCompare(null==e?void 0:e.date)));return{drawDatesOptions:i.map((t=>t.date)),drawResultsList:i}}const 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.sessionId=void 0,this.playerId="",this.gameIds=void 0,this.gameIdArr=[],this.drawDatesOptions=[],this.curDate=void 0,this.isLoading=!1,this.drawResultsObj={}}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&&s(this.stylingContainer,`${this.mbSource}.Style`)}handleGameIdStringChange(t,e){var n;t!=e&&(this.gameIdArr=(null===(n=this.gameIds)||void 0===n?void 0:n.split(","))||[],this.getData())}componentDidLoad(){var t;this.gameIdArr=(null===(t=this.gameIds)||void 0===t?void 0:t.split(","))||[],this.getData(),this.stylingContainer&&(this.mbSource&&s(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()}getData(){this.isLoading=!0,function({endpoint:t,gameIds:e}){if(t&&e)return Promise.allSettled(e.map((e=>h({endpoint:t,gameId:e}).then((t=>({gameId:e,drawResultsList:t.drawResultsList,drawDatesOptions:t.drawDatesOptions}))).catch((t=>(console.error(`Failed to fetch data for gameId: ${e}`,t),{gameId:e,drawResultsList:[],drawDatesOptions:[]})))))).then((t=>t.reduce(((t,e)=>{if("fulfilled"===e.status){const{gameId:n,drawResultsList:i,drawDatesOptions:s}=e.value;return t[n]={drawResultsList:i,drawDatesOptions:s},t}}),{})))}({endpoint:this.endpoint,gameIds:this.gameIdArr}).then((t=>{this.drawResultsObj=t;const e=Object.values(t).map((t=>t.drawDatesOptions)).filter(Boolean).flat();this.drawDatesOptions=function(t=[],e=[]){const n=new Set;return e.forEach((e=>{n.has(e)||(n.add(e),t.push(e))})),t.length?[...(i=t,i.slice().sort(((t,e)=>t.localeCompare(e))))]:[];var i}([],e),this.curDate=this.drawDatesOptions[function(t){const e=new Date;let n=0,i=1/0;return t.forEach(((t,s)=>{const o=new Date(t),a=Math.abs(l(e,o));a<i&&(i=a,n=s)})),n}(this.drawDatesOptions)]})).finally((()=>{this.isLoading=!1}))}handleChange(t){this.curDate=this.drawDatesOptions[t.detail]}handleNext(){if(this.curDate){const t=this.drawDatesOptions.findIndex((t=>t===this.curDate));t<this.drawDatesOptions.length-1&&(this.curDate=this.drawDatesOptions[t+1])}}handlePrev(){if(this.curDate){const t=this.drawDatesOptions.findIndex((t=>t===this.curDate));t>0&&(this.curDate=this.drawDatesOptions[t-1])}}renderLoading(){return e("div",{class:"loading-wrap"},e("section",{class:"dots-container"},e("div",{class:"dot"}),e("div",{class:"dot"}),e("div",{class:"dot"}),e("div",{class:"dot"}),e("div",{class:"dot"})))}renderMainContent(){return e("div",null,this.curDate&&e("helper-date-navigator",{language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,date:this.curDate,"default-highlight-dates":JSON.stringify(this.drawDatesOptions||[]),onNext:this.handleNext.bind(this),onPrev:this.handlePrev.bind(this),onChangeDate:this.handleChange.bind(this)}),e("div",{class:"games-container"},this.gameIdArr.map((t=>{var n,i;return e("lottery-oddsbom-latest-result",{endpoint:this.endpoint,"game-id":t,"cur-date":this.curDate,drawResults:JSON.stringify(null===(i=null===(n=this.drawResultsObj)||void 0===n?void 0:n[t])||void 0===i?void 0:i.drawResultsList),"is-passing-data":!0,"show-loading":!1,"hide-wrapper-empty":!0,language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"mb-source":this.mbSource,"session-id":this.sessionId,"player-id":this.playerId})}))))}render(){return e("div",{key:"e576645b260f4a713cce833aae814ce7edad137e",ref:t=>this.stylingContainer=t,class:"lottery-tipping-latest-result-group"},this.isLoading?this.renderLoading():this.renderMainContent())}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],gameIds:["handleGameIdStringChange"]}}};c.style=".lottery-tipping-latest-result-group{container-type:inline-size;padding:16px;background-color:var(--emw--color-background, #fff);height:100%}.games-container{display:flex;flex-direction:column;gap:24px;max-width:800px;margin:0 auto;margin-top:24px}.loading-wrap{margin:20px 0;display:flex;align-items:center;justify-content:center;min-height:100px}.loading-wrap .dots-container{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.loading-wrap .dot{height:14px;width:14px;margin-right:14px;border-radius:14px;background-color:var(--emw--color-gray-300, #333);animation:pulse 1.5s infinite ease-in-out}.loading-wrap .dot:last-child{margin-right:0}.loading-wrap .dot:nth-child(1){animation-delay:-0.3s}.loading-wrap .dot:nth-child(2){animation-delay:-0.1s}.loading-wrap .dot:nth-child(3){animation-delay:0.1s}@keyframes pulse{0%{transform:scale(0.8);background-color:var(--emw--color-gray-300, #333)}50%{transform:scale(1.2);background-color:var(--emw--color-gray-100, #e6e6e6)}100%{transform:scale(0.8);background-color:var(--emw--color-gray-150, #6f6f6f)}}";export{c as L,o as _,i as a,s as b,l as d,a as r,n as s,r as t}
@@ -0,0 +1 @@
1
+ import{p as e,b as t}from"./index-f1cb78c1.js";export{s as setNonce}from"./index-f1cb78c1.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([["helper-date-navigator_6",[[1,"lottery-oddsbom-latest-result-group",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],endpoint:[513],sessionId:[513,"session-id"],playerId:[513,"player-id"],gameIds:[513,"game-ids"],gameIdArr:[32],drawDatesOptions:[32],curDate:[32],isLoading:[32],drawResultsObj:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],gameIds:["handleGameIdStringChange"]}],[1,"lottery-oddsbom-latest-result",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],endpoint:[513],gameId:[513,"game-id"],curDate:[513,"cur-date"],showLoading:[516,"show-loading"],hideWrapperEmpty:[516,"hide-wrapper-empty"],isPassingData:[516,"is-passing-data"],drawResults:[513,"draw-results"],isEmpty:[32],_curDate:[32],drawResultsList:[32],curDrawItem:[32],curTurnOver:[32],isLoadingTurnover:[32],vendorGameId:[32],gameName:[32],isLoading:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],curDate:["handleDateChange"],drawResults:["handleDrawResultsChange"]}],[1,"helper-date-navigator",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],date:[1],defaultHighlightDates:[1,"default-highlight-dates"],highlightDates:[32],weeks:[32],days:[32],alterDate:[32],curDate:[32],recordInfo:[32],showCalendar:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],defaultHighlightDates:["handleGameIdStringChange"],date:["handleDateChange"]}],[1,"lottery-oddsbom-ticket-result",{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"],defaultResults:[513,"default-results"],splitView:[516,"split-view"],allResults:[32],ticketBetDataSource:[32],isLoading:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],gameId:["fetchMatchData"],drawId:["fetchMatchData"],defaultResults:["fetchMatchData"]}],[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-oddsbom-bullet",{isSelected:[516,"is-selected"],disabled:[516],text:[513],idx:[514],isReading:[516,"is-reading"],isDeleteByIcon:[516,"is-delete-by-icon"],isCallDialogBtn:[516,"is-call-dialog-btn"],isAddedByMoreBtn:[516,"is-added-by-more-btn"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}]]]],e))));
@@ -0,0 +1,19 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'lottery-oddsbom-latest-result-group',
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-oddsbom-latest-result-group',
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,4 @@
1
+ export * from "./vite-chunk-plugin";
2
+ export * from "./stencil-clean-deps-plugin";
3
+ export * from "./vite-clean-deps-plugin";
4
+ export * from "./lazy-load-chunk-plugin";
@@ -0,0 +1,12 @@
1
+ export declare const lazyLoadChunkPlugin: () => {
2
+ name: string;
3
+ config(config: any): {
4
+ build: {
5
+ rollupOptions: {
6
+ output: {
7
+ manualChunks(id: any): any;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ };
@@ -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 @@
1
+ export { LotteryOddsbomLatestResultGroup } from './lottery-oddsbom-latest-result-group';
@@ -0,0 +1,60 @@
1
+ import "../../../../../../dist/packages/stencil/helper-date-navigator/dist/types/index";
2
+ import "../../../../../../dist/packages/stencil/lottery-oddsbom-latest-result/dist/types/index";
3
+ import { GetGameDrawInfo } from '../../models';
4
+ export declare class LotteryOddsbomLatestResultGroup {
5
+ /**
6
+ * Client custom styling via message bus
7
+ */
8
+ mbSource: string;
9
+ /**
10
+ * Client custom styling via string
11
+ */
12
+ clientStyling: string;
13
+ /**
14
+ * Client custom styling via css file url
15
+ */
16
+ clientStylingUrl: string;
17
+ /**
18
+ * Client custom translation via json file url
19
+ */
20
+ translationUrl: string;
21
+ /**
22
+ * Client custom language for translation
23
+ */
24
+ language: string;
25
+ endpoint: string;
26
+ /**
27
+ * GIC Session
28
+ */
29
+ sessionId: string;
30
+ /**
31
+ * ID of the pool game
32
+ */
33
+ playerId: string;
34
+ /**
35
+ * GameID list of the games
36
+ */
37
+ gameIds: string;
38
+ private stylingContainer;
39
+ private stylingSubscription;
40
+ gameIdArr: string[];
41
+ drawDatesOptions: string[];
42
+ curDate: string;
43
+ isLoading: boolean;
44
+ drawResultsObj: {
45
+ [gameId: string]: Omit<GetGameDrawInfo, 'gameId'>;
46
+ };
47
+ handleClientStylingChange(newValue: any, oldValue: any): void;
48
+ handleClientStylingUrlChange(newValue: any, oldValue: any): void;
49
+ handleMbSourceChange(newValue: any, oldValue: any): void;
50
+ handleGameIdStringChange(newValue: any, oldValue: any): void;
51
+ componentDidLoad(): void;
52
+ disconnectedCallback(): void;
53
+ private getData;
54
+ private handleChange;
55
+ private handleNext;
56
+ private handlePrev;
57
+ private renderLoading;
58
+ private renderMainContent;
59
+ render(): any;
60
+ }
@@ -0,0 +1,103 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ export namespace Components {
9
+ interface LotteryOddsbomLatestResultGroup {
10
+ /**
11
+ * Client custom styling via string
12
+ */
13
+ "clientStyling": string;
14
+ /**
15
+ * Client custom styling via css file url
16
+ */
17
+ "clientStylingUrl": string;
18
+ "endpoint": string;
19
+ /**
20
+ * GameID list of the games
21
+ */
22
+ "gameIds": string;
23
+ /**
24
+ * Client custom language for translation
25
+ */
26
+ "language": string;
27
+ /**
28
+ * Client custom styling via message bus
29
+ */
30
+ "mbSource": string;
31
+ /**
32
+ * ID of the pool game
33
+ */
34
+ "playerId": string;
35
+ /**
36
+ * GIC Session
37
+ */
38
+ "sessionId": string;
39
+ /**
40
+ * Client custom translation via json file url
41
+ */
42
+ "translationUrl": string;
43
+ }
44
+ }
45
+ declare global {
46
+ interface HTMLLotteryOddsbomLatestResultGroupElement extends Components.LotteryOddsbomLatestResultGroup, HTMLStencilElement {
47
+ }
48
+ var HTMLLotteryOddsbomLatestResultGroupElement: {
49
+ prototype: HTMLLotteryOddsbomLatestResultGroupElement;
50
+ new (): HTMLLotteryOddsbomLatestResultGroupElement;
51
+ };
52
+ interface HTMLElementTagNameMap {
53
+ "lottery-oddsbom-latest-result-group": HTMLLotteryOddsbomLatestResultGroupElement;
54
+ }
55
+ }
56
+ declare namespace LocalJSX {
57
+ interface LotteryOddsbomLatestResultGroup {
58
+ /**
59
+ * Client custom styling via string
60
+ */
61
+ "clientStyling"?: string;
62
+ /**
63
+ * Client custom styling via css file url
64
+ */
65
+ "clientStylingUrl"?: string;
66
+ "endpoint"?: string;
67
+ /**
68
+ * GameID list of the games
69
+ */
70
+ "gameIds"?: string;
71
+ /**
72
+ * Client custom language for translation
73
+ */
74
+ "language"?: string;
75
+ /**
76
+ * Client custom styling via message bus
77
+ */
78
+ "mbSource"?: string;
79
+ /**
80
+ * ID of the pool game
81
+ */
82
+ "playerId"?: string;
83
+ /**
84
+ * GIC Session
85
+ */
86
+ "sessionId"?: string;
87
+ /**
88
+ * Client custom translation via json file url
89
+ */
90
+ "translationUrl"?: string;
91
+ }
92
+ interface IntrinsicElements {
93
+ "lottery-oddsbom-latest-result-group": LotteryOddsbomLatestResultGroup;
94
+ }
95
+ }
96
+ export { LocalJSX as JSX };
97
+ declare module "@stencil/core" {
98
+ export namespace JSX {
99
+ interface IntrinsicElements {
100
+ "lottery-oddsbom-latest-result-group": LocalJSX.LotteryOddsbomLatestResultGroup & JSXBase.HTMLAttributes<HTMLLotteryOddsbomLatestResultGroupElement>;
101
+ }
102
+ }
103
+ }
@@ -0,0 +1 @@
1
+ export * from './components/lottery-oddsbom-latest-result-group';
@@ -0,0 +1,156 @@
1
+ export interface PlayType {
2
+ betTypeId: string;
3
+ bettingType: string;
4
+ playMode: string;
5
+ }
6
+ export interface Amount {
7
+ currency: string;
8
+ value: string;
9
+ }
10
+ export interface Prize {
11
+ amount: Amount;
12
+ currency: string;
13
+ divident: string;
14
+ division: string;
15
+ divisionId: number;
16
+ endingAmount: Amount;
17
+ order: number;
18
+ tickets: number;
19
+ totalAmount: Amount;
20
+ divisionDisplayName: string;
21
+ winningType: string;
22
+ }
23
+ export interface WinningNumber {
24
+ drawType: string;
25
+ numbers: Array<number>;
26
+ secondaryNumbers: Array<number>;
27
+ teritaryNumbers: Array<number>;
28
+ winning_type: string;
29
+ poolGameOutcomes: string[][][];
30
+ }
31
+ export interface DrawItem {
32
+ breakEndTime: string;
33
+ closeTime: string;
34
+ date: string;
35
+ id: string;
36
+ openTime: string;
37
+ prizes: Array<Prize>;
38
+ status: string;
39
+ wagerAvailable: boolean;
40
+ wagerCloseTime: string;
41
+ winningNumbers: Array<WinningNumber>;
42
+ }
43
+ export interface BettingType {
44
+ code: string;
45
+ enabled: boolean;
46
+ name: string;
47
+ }
48
+ export interface DrawInfo {
49
+ date: string;
50
+ id: string;
51
+ status: string;
52
+ wagerAvailable: boolean;
53
+ wagerCloseTime: string;
54
+ breakEndTime: string;
55
+ openTime: string;
56
+ closeTime: string;
57
+ }
58
+ export interface PlayType {
59
+ betTypeId: string;
60
+ bettingType: string;
61
+ playMode: string;
62
+ }
63
+ export interface BettingType {
64
+ code: string;
65
+ enabled: boolean;
66
+ name: string;
67
+ }
68
+ interface NameItem {
69
+ name: string;
70
+ }
71
+ export interface DisciplineOption {
72
+ id: string;
73
+ name: string;
74
+ parentId?: number | null;
75
+ parentSport?: string | null;
76
+ }
77
+ interface Ranges {
78
+ bettingType: string;
79
+ displayName: string;
80
+ id: string;
81
+ name: string;
82
+ }
83
+ interface DisplayBettingType {
84
+ displaytype: string;
85
+ maxCol: number;
86
+ maxRow: number;
87
+ name: string;
88
+ }
89
+ interface OutcomeRange {
90
+ bettingType: Array<DisplayBettingType>;
91
+ display: {
92
+ ranges: Array<Ranges>;
93
+ };
94
+ }
95
+ export interface PlayType {
96
+ betTypeId: string;
97
+ bettingType: string;
98
+ playMode: string;
99
+ }
100
+ export interface BettingType {
101
+ code: string;
102
+ enabled: boolean;
103
+ name: string;
104
+ }
105
+ export interface PoolGameConfig {
106
+ bettingObjects: Array<NameItem>;
107
+ bettingTypes: Array<BettingType>;
108
+ disciplines: Array<DisciplineOption>;
109
+ eventCount: number;
110
+ outcomeRanges: Array<OutcomeRange>;
111
+ playModes: Array<NameItem>;
112
+ playTypes: Array<PlayType>;
113
+ }
114
+ export interface GameRule {
115
+ poolGame: PoolGameConfig;
116
+ }
117
+ export interface GameInfo {
118
+ id: string;
119
+ name: string;
120
+ type: string;
121
+ vendorGameType: string;
122
+ href: string;
123
+ launchId: string;
124
+ launchSlug: string;
125
+ vendorId: string;
126
+ wasiId: string;
127
+ currentDraw: DrawInfo | null;
128
+ nextDraw: DrawInfo | null;
129
+ rules: GameRule;
130
+ }
131
+ export interface DrawListRes {
132
+ items: Array<DrawItem>;
133
+ total: number;
134
+ }
135
+ export interface FetchGameInfoRes {
136
+ vendorGameId: string;
137
+ gameName: string;
138
+ }
139
+ export interface FetchGameInfoReq {
140
+ endpoint: string;
141
+ gameId: string;
142
+ }
143
+ export interface FormattedDrawItem {
144
+ date: string;
145
+ formattedTurnOver: string;
146
+ winNumber: number;
147
+ formattedWinTurnOver: string;
148
+ drawId: string;
149
+ results: string[][];
150
+ }
151
+ export interface GetGameDrawInfo {
152
+ drawDatesOptions: string[];
153
+ drawResultsList: DrawItem[];
154
+ gameId: string;
155
+ }
156
+ export {};