@everymatrix/lottery-tipping-page 0.1.0

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 (65) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-tooltip_7.cjs.entry.js +11899 -0
  3. package/dist/cjs/index-335e7b86.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-page-6e72415a.js +208 -0
  7. package/dist/cjs/lottery-tipping-page.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +34 -0
  9. package/dist/collection/components/lottery-tipping-page/index.js +1 -0
  10. package/dist/collection/components/lottery-tipping-page/lottery-tipping-page.css +46 -0
  11. package/dist/collection/components/lottery-tipping-page/lottery-tipping-page.js +297 -0
  12. package/dist/collection/index.js +1 -0
  13. package/dist/collection/models/index.js +5 -0
  14. package/dist/collection/utils/locale.utils.js +55 -0
  15. package/dist/collection/utils/utils.js +3 -0
  16. package/dist/esm/app-globals-0f993ce5.js +3 -0
  17. package/dist/esm/general-tooltip_7.entry.js +11890 -0
  18. package/dist/esm/index-8ab53757.js +1347 -0
  19. package/dist/esm/index.js +2 -0
  20. package/dist/esm/loader.js +11 -0
  21. package/dist/esm/lottery-tipping-page-5f471e39.js +203 -0
  22. package/dist/esm/lottery-tipping-page.js +20 -0
  23. package/dist/index.cjs.js +1 -0
  24. package/dist/index.js +1 -0
  25. package/dist/lottery-tipping-page/app-globals-0f993ce5.js +1 -0
  26. package/dist/lottery-tipping-page/general-tooltip_7.entry.js +7975 -0
  27. package/dist/lottery-tipping-page/index-8ab53757.js +2 -0
  28. package/dist/lottery-tipping-page/index.esm.js +1 -0
  29. package/dist/lottery-tipping-page/lottery-tipping-page-5f471e39.js +1 -0
  30. package/dist/lottery-tipping-page/lottery-tipping-page.esm.js +1 -0
  31. package/dist/static/add.svg +8 -0
  32. package/dist/static/delete.svg +37 -0
  33. package/dist/static/info.svg +6 -0
  34. package/dist/static/left-arrow.svg +15 -0
  35. package/dist/static/loading.svg +10 -0
  36. package/dist/static/right-arrow.svg +15 -0
  37. package/dist/static/tipping-full-color.svg +15 -0
  38. package/dist/stencil.config.dev.js +19 -0
  39. package/dist/stencil.config.js +19 -0
  40. package/dist/storybook/main.js +43 -0
  41. package/dist/storybook/preview.js +9 -0
  42. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  43. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/packages/stencil/lottery-tipping-page/stencil.config.d.ts +2 -0
  44. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/packages/stencil/lottery-tipping-page/stencil.config.dev.d.ts +2 -0
  45. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/packages/stencil/lottery-tipping-page/storybook/main.d.ts +3 -0
  46. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/packages/stencil/lottery-tipping-page/storybook/preview.d.ts +70 -0
  47. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/tools/plugins/index.d.ts +3 -0
  48. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  49. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  50. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  51. package/dist/types/components/lottery-tipping-page/index.d.ts +1 -0
  52. package/dist/types/components/lottery-tipping-page/lottery-tipping-page.d.ts +58 -0
  53. package/dist/types/components.d.ts +119 -0
  54. package/dist/types/index.d.ts +1 -0
  55. package/dist/types/models/index.d.ts +14 -0
  56. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  57. package/dist/types/utils/locale.utils.d.ts +3 -0
  58. package/dist/types/utils/utils.d.ts +1 -0
  59. package/loader/cdn.js +1 -0
  60. package/loader/index.cjs.js +1 -0
  61. package/loader/index.d.ts +24 -0
  62. package/loader/index.es2017.js +1 -0
  63. package/loader/index.js +2 -0
  64. package/loader/package.json +11 -0
  65. 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-page"}})))},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 LotteryTippingPage}from"./lottery-tipping-page-5f471e39.js";import"./index-8ab53757.js";
@@ -0,0 +1 @@
1
+ import{r as t,h as e}from"./index-8ab53757.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 s(t,e){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{n.innerHTML=e,t&&t.appendChild(n)}))}}var a;!function(t){t.BuyTickets="BUY_TICKETS",t.MyTickets="MY_TICKETS"}(a||(a={}));const o=["ro","en","fr","ar","hr"],r={en:{buyTickets:"Buy Tickets",myTickets:"My Tickets",logout:"Log out"},ro:{buyTickets:"Cumpără bilete",myTickets:"Biletele mele",logout:"Deconectare"},fr:{buyTickets:"Acheter des billets",myTickets:"Mes billets",logout:"Se déconnecter"},ar:{buyTickets:"شراء التذاكر",myTickets:"تذاكري",logout:"تسجيل الخروج"},hr:{buyTickets:"Kupi ulaznice",myTickets:"Moje ulaznice",logout:"Odjava"}},c=(t,e)=>{const n=e;return r[void 0!==n&&o.includes(n)?n:"en"][t]},l=class{constructor(e){t(this,e),this.handleTabClick=t=>{this.activeTab=t},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.drawId=void 0,this.activeTab=a.BuyTickets}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`)}componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const n=await fetch(t);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const i=await n.json();e=i,Object.keys(e).forEach((t=>{for(let n in e[t])r[t][n]=e[t][n]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var e})(this.translationUrl)}componentDidLoad(){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()}renderTabs(){const t={[a.BuyTickets]:c("buyTickets",this.language),[a.MyTickets]:c("myTickets",this.language)};return e("div",{class:"tab-btns"},Object.values(a).map((n=>e("div",{class:"tab-btn"+(this.activeTab===n?" active":""),onClick:this.handleTabClick.bind(this,n)},t[n]))))}renderContent(){return this.activeTab===a.BuyTickets?e("lottery-tipping-ticket-controller",{endpoint:this.endpoint,endpointTicket:this.endpointTicket,gameId:this.gameId,playerId:this.playerId,sessionId:this.sessionId,drawId:this.drawId,language:this.language,"translation-url":this.translationUrl}):null}render(){return e("div",{key:"e26cac829a2e2fc44106a53decc9ea76e6e25652",class:"lottery-tipping-page",ref:t=>this.stylingContainer=t},e("div",{key:"3f4ebaba74ec3c8fa2b23dfe71215cd28f846724",class:"lottery-tipping-page-header"},e("slot",{key:"e5ae948d767fe15a783f000d799ebc62df4a2ffa",name:"backBtn"}),this.renderTabs(),e("slot",{key:"be10eb43ad8df3058ccc6adf0b24ecd00a8437f8",name:"logoutBtn"})),e("div",{key:"a143b0cacd7172f8e68451e3bfffab5255f5ea2a",class:"lottery-tipping-content"},this.renderContent()))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};l.style=".lottery-tipping-page {\n container-type: inline-size;\n}\n.lottery-tipping-page-header {\n height: 56px;\n padding: 8px 10px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.lottery-tipping-page-header .tab-btns {\n display: flex;\n align-items: center;\n gap: 40px;\n flex: 1;\n justify-content: center;\n}\n.lottery-tipping-page-header .tab-btn {\n padding: 0 8px;\n line-height: 40px;\n font-size: 16px;\n cursor: pointer;\n font-weight: 600;\n height: 40px;\n border: 2px solid var(--emw--color-primary, #fed275);\n border-radius: 8px;\n box-shadow: 2px 2px 2px var(--emw--color-gray-400, #000);\n color: var(--emw--color-typography, #555);\n transition: all 0.2s linear;\n}\n.lottery-tipping-page-header .tab-btn.active {\n background-color: var(--emw--color-primary, #fed275);\n color: var(--emw--color-gray-300, #333);\n border: 2px solid var(--emw--color-gray-300, #333);\n}\n\n@container (min-width: 1200px) {\n .tab-btns {\n gap: 40px;\n }\n}\n@container (max-width: 480px) {\n .tab-btns {\n gap: 24px;\n }\n}";export{l as L,i as a,s as b,n as s}
@@ -0,0 +1 @@
1
+ import{p as e,b as t}from"./index-8ab53757.js";export{s as setNonce}from"./index-8ab53757.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_7",[[1,"lottery-tipping-page",{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:[513,"game-id"],playerId:[514,"player-id"],sessionId:[513,"session-id"],drawId:[513,"draw-id"],activeTab:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-controller",{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"],sessionId:[513,"session-id"],gameId:[513,"game-id"],playerId:[513,"player-id"],drawId:[513,"draw-id"],isLoading:[32],bettingTypeOptions:[32],playingModeOptions:[32],selectedBettingType:[32],selectedPlayingMode:[32],hasSelectBullet:[32],hasSelectAllBullet:[32],totalLineCombination:[32],submitLoading:[32],rawData:[32],dialogConfig:[32]},[[0,"lotteryTippingBulletBetSelect","lotteryTippingBulletGroupSelectionHandler"]],{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-ticket-banner",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[513,"translation-url"],stopTime:[1,"stop-time"],period:[1]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[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,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="97" height="28" viewBox="0 0 97 28">
2
+ <defs>
3
+ <polygon id="tipping-full-color-black-a" points=".035 .026 72.622 .026 72.622 13.501 .035 13.501"/>
4
+ </defs>
5
+ <g fill="none" fill-rule="evenodd" transform="translate(0 4)">
6
+ <g transform="translate(24.01 3.257)">
7
+ <mask id="tipping-full-color-black-b" fill="#fff">
8
+ <use xlink:href="#tipping-full-color-black-a"/>
9
+ </mask>
10
+ <path fill="#000" d="M42.3597459,0.137474286 C41.5771871,0.137474286 41.0190188,0.639131429 41.0190188,1.47387429 L41.0193626,11.9983314 C41.0190188,12.8329029 41.5775882,13.3347314 42.3588864,13.3344457 C43.1408149,13.3339314 43.6993843,12.8329029 43.6993843,11.9983314 L43.6993843,1.47387429 C43.6993843,0.639131429 43.1408149,0.137474286 42.3597459,0.137474286 M56.150475,0.137017143 C55.3690622,0.136502857 54.8113523,0.639302857 54.8108366,1.47387429 L54.8105501,7.71490286 C54.8105501,7.71490286 47.4869184,0.430674286 47.3826307,0.329131429 C47.2004138,0.15136 46.9324746,0.07776 46.6864244,0.191245714 C46.4286275,0.310331429 46.3235376,0.479817143 46.3235376,0.805645714 L46.3235376,11.9976457 C46.3235376,12.8322743 46.8821071,13.3341029 47.6639783,13.3344457 C48.445391,13.3346171 49.0035594,12.8322743 49.0039032,11.9976457 L49.0039032,5.75644571 C49.0039032,5.75644571 56.3274203,13.0407314 56.4318226,13.1422171 C56.6140968,13.3199886 56.8818068,13.3935886 57.1280288,13.2800457 C57.3862841,13.1610171 57.4909156,12.9914743 57.4909156,12.6656457 L57.4909156,1.47387429 C57.4912021,0.639302857 56.93269,0.137474286 56.150475,0.137017143 M72.5936068,6.15107429 L71.3592875,6.15107429 L67.2062308,6.15124571 C66.3686631,6.15107429 65.8665924,6.70804571 65.8663059,7.48776 C65.8663059,8.26718857 66.3686631,8.82404571 67.1505916,8.82404571 L69.3773057,8.82404571 C68.6686078,10.0230171 67.3628915,10.8287314 65.8665924,10.8287314 C63.6152389,10.8287314 61.7906054,9.00867429 61.7906054,6.76376 C61.7906054,4.51884571 63.6152389,2.69896 65.8665924,2.69896 C67.2478313,2.69896 68.2558692,3.33536 69.2118206,4.44518857 C69.8424173,5.17690286 70.5459581,5.21090286 71.0335317,4.91153143 C71.6659048,4.52296 71.9037036,3.65958857 71.4944604,3.04341714 C70.2867287,1.22524571 68.2178214,0.0262171429 65.8663059,0.0262171429 C62.1348121,0.0262171429 59.1101826,3.04273143 59.1101826,6.76376 C59.1101826,8.74993143 59.9727908,10.5351886 61.344002,11.7683314 L61.344002,11.7751314 L61.3515657,11.7751314 C62.5483529,12.8478743 64.1304315,13.5012457 65.8663059,13.5012457 C69.5977996,13.5012457 72.6224292,10.4846743 72.6224292,6.76376 C72.6224292,6.55707429 72.6115993,6.35296 72.5936068,6.15107429 M34.7100146,6.15136 L31.9741245,6.15136 L31.973838,2.81021714 L34.7100146,2.81044571 C35.8825635,2.81044571 36.4966576,3.59570286 36.4966576,4.48084571 C36.4966576,5.36581714 35.8825635,6.15136 34.7100146,6.15136 M34.8216941,0.137588571 L34.8212357,0.137474286 L29.2937589,0.137474286 L29.2937589,1.36250286 L29.2939308,11.9979886 C29.2938162,12.8329029 29.8521565,13.3346171 30.6335693,13.3344457 C31.415555,13.3341029 31.973838,12.8329029 31.9741818,11.9979886 L31.9741245,8.82404571 L34.821866,8.82404571 C37.2271298,8.82404571 39.1769085,6.87947429 39.1769085,4.48084571 C39.1769085,2.08198857 37.2271298,0.137588571 34.8216941,0.137588571 M13.6041917,0.137474286 C12.8219767,0.137474286 12.2635218,0.639131429 12.2635791,1.47387429 L12.2638656,11.9983314 C12.2635791,12.8329029 12.822034,13.3347314 13.603676,13.3344457 C14.3853752,13.3339314 14.9437728,12.8329029 14.9440593,11.9983314 L14.9437728,1.47387429 C14.9437728,0.639131429 14.3853179,0.137474286 13.6041917,0.137474286 M9.64062912,0.13976 L1.37565778,0.13736 C0.538491207,0.13736 0.0354463545,0.694217143 0.0354463545,1.47347429 C0.0354463545,2.25324571 0.538147402,2.81021714 1.37531397,2.81027429 L4.16735902,2.81021714 L4.16787473,11.9979886 L4.16787473,11.9986743 C4.16735902,12.8329029 4.72575657,13.3346171 5.50762774,13.3344457 C6.28921241,13.3341029 6.84755266,12.8329029 6.84766726,11.9986743 L6.84766726,11.9976457 L6.84749536,11.9976457 L6.84749536,2.81021714 L9.64062912,2.81027429 C10.4768216,2.81027429 10.9795799,2.25341714 10.9794653,1.47507429 C10.979408,0.694274286 10.4768216,0.137474286 9.64062912,0.13976 M22.9843537,6.15136 L20.2484635,6.15136 L20.248177,2.81021714 L22.9843537,2.81044571 C24.1569599,2.81044571 24.7711112,3.59570286 24.7711112,4.48084571 C24.7711112,5.36581714 24.1569599,6.15136 22.9843537,6.15136 M23.0960332,0.137588571 L23.0956894,0.137474286 L17.5680407,0.137474286 L17.5680407,1.36250286 L17.5682126,11.9979886 C17.5681553,12.8329029 18.1264383,13.3346171 18.9079083,13.3344457 C19.6898941,13.3341029 20.248177,12.8329029 20.2485208,11.9979886 L20.2484635,8.82404571 L23.0962051,8.82404571 C25.5015262,8.82404571 27.4512476,6.87947429 27.4512476,4.48084571 C27.4512476,2.08198857 25.5014116,0.137588571 23.0960332,0.137588571" mask="url(#tipping-full-color-black-b)"/>
11
+ </g>
12
+ <path fill="gold" d="M15.0561915,10.9267314 L10.956883,15.0146743 L20.0552964,15.9120457 L15.0561915,10.9267314 Z M15.9561025,-1.14285714e-05 L10.9569403,4.98530286 L15.0562488,9.07330286 L15.9561025,-1.14285714e-05 Z M4.09927979,19.9999886 L5.92941415,9.99998857 L2.86504643e-05,15.9120457 L4.09927979,19.9999886 Z M2.86504643e-05,4.08798857 L5.92941415,9.99998857 L14.1269423,9.99998857 L2.86504643e-05,4.08798857 Z"/>
13
+ <path fill="#FF9100" d="M15.956051,20 L20.0553021,15.9120571 L10.9568888,15.0146857 L15.956051,20 Z M15.956051,0 L15.0562545,9.07331429 L20.0553594,4.08794286 L15.956051,0 Z M4.09928552,20 L14.126948,10 L5.92941988,10 L4.09928552,20 Z M3.43805572e-05,4.088 L14.126948,10 L4.09928552,0 L3.43805572e-05,4.088 Z"/>
14
+ </g>
15
+ </svg>
@@ -0,0 +1,19 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'lottery-tipping-page',
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-page',
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 @@
1
+ export { LotteryTippingPage } from './lottery-tipping-page';
@@ -0,0 +1,58 @@
1
+ import "../../../../../../dist/packages/stencil/lottery-tipping-ticket-controller/dist/types/index";
2
+ import { Tab } from '../../models';
3
+ export declare class LotteryTippingPage {
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
+ /**
42
+ * Draw ID
43
+ */
44
+ drawId: string;
45
+ activeTab: Tab;
46
+ private stylingContainer;
47
+ private stylingSubscription;
48
+ handleClientStylingChange(newValue: any, oldValue: any): void;
49
+ handleClientStylingUrlChange(newValue: any, oldValue: any): void;
50
+ handleMbSourceChange(newValue: any, oldValue: any): void;
51
+ componentWillLoad(): void;
52
+ componentDidLoad(): void;
53
+ disconnectedCallback(): void;
54
+ private handleTabClick;
55
+ private renderTabs;
56
+ private renderContent;
57
+ render(): any;
58
+ }
@@ -0,0 +1,119 @@
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 LotteryTippingPage {
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
+ /**
19
+ * Draw ID
20
+ */
21
+ "drawId": string;
22
+ "endpoint": string;
23
+ /**
24
+ * EndpointTicket URL for the source of ticket data
25
+ */
26
+ "endpointTicket": string;
27
+ /**
28
+ * GameID of the lottery game
29
+ */
30
+ "gameId": string;
31
+ /**
32
+ * Client custom language for translation
33
+ */
34
+ "language": string;
35
+ /**
36
+ * Client custom styling via message bus
37
+ */
38
+ "mbSource": string;
39
+ /**
40
+ * Player ID
41
+ */
42
+ "playerId": number;
43
+ /**
44
+ * GIC Session
45
+ */
46
+ "sessionId": string;
47
+ /**
48
+ * Client custom translation via json file url
49
+ */
50
+ "translationUrl": string;
51
+ }
52
+ }
53
+ declare global {
54
+ interface HTMLLotteryTippingPageElement extends Components.LotteryTippingPage, HTMLStencilElement {
55
+ }
56
+ var HTMLLotteryTippingPageElement: {
57
+ prototype: HTMLLotteryTippingPageElement;
58
+ new (): HTMLLotteryTippingPageElement;
59
+ };
60
+ interface HTMLElementTagNameMap {
61
+ "lottery-tipping-page": HTMLLotteryTippingPageElement;
62
+ }
63
+ }
64
+ declare namespace LocalJSX {
65
+ interface LotteryTippingPage {
66
+ /**
67
+ * Client custom styling via string
68
+ */
69
+ "clientStyling"?: string;
70
+ /**
71
+ * Client custom styling via css file url
72
+ */
73
+ "clientStylingUrl"?: string;
74
+ /**
75
+ * Draw ID
76
+ */
77
+ "drawId"?: string;
78
+ "endpoint"?: string;
79
+ /**
80
+ * EndpointTicket URL for the source of ticket data
81
+ */
82
+ "endpointTicket"?: string;
83
+ /**
84
+ * GameID of the lottery game
85
+ */
86
+ "gameId"?: string;
87
+ /**
88
+ * Client custom language for translation
89
+ */
90
+ "language"?: string;
91
+ /**
92
+ * Client custom styling via message bus
93
+ */
94
+ "mbSource"?: string;
95
+ /**
96
+ * Player ID
97
+ */
98
+ "playerId"?: number;
99
+ /**
100
+ * GIC Session
101
+ */
102
+ "sessionId"?: string;
103
+ /**
104
+ * Client custom translation via json file url
105
+ */
106
+ "translationUrl"?: string;
107
+ }
108
+ interface IntrinsicElements {
109
+ "lottery-tipping-page": LotteryTippingPage;
110
+ }
111
+ }
112
+ export { LocalJSX as JSX };
113
+ declare module "@stencil/core" {
114
+ export namespace JSX {
115
+ interface IntrinsicElements {
116
+ "lottery-tipping-page": LocalJSX.LotteryTippingPage & JSXBase.HTMLAttributes<HTMLLotteryTippingPageElement>;
117
+ }
118
+ }
119
+ }
@@ -0,0 +1 @@
1
+ export * from './components/lottery-tipping-page';