@everymatrix/lottery-tipping-page 0.1.7 → 0.2.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.
- package/dist/cjs/general-multi-select_13.cjs.entry.js +1858 -3165
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{lottery-tipping-page-80f111ca.js → lottery-tipping-page-333f1737.js} +1 -1
- package/dist/collection/components/lottery-tipping-page/lottery-tipping-page.css +1 -1
- package/dist/esm/general-multi-select_13.entry.js +1859 -3166
- package/dist/esm/index.js +1 -1
- package/dist/esm/{lottery-tipping-page-ab82834a.js → lottery-tipping-page-d25db885.js} +1 -1
- package/dist/lottery-tipping-page/general-multi-select_13.entry.js +1921 -3240
- package/dist/lottery-tipping-page/index.esm.js +1 -1
- package/dist/lottery-tipping-page/{lottery-tipping-page-ab82834a.js → lottery-tipping-page-d25db885.js} +1 -1
- package/dist/static/poolgame-bg.webp +0 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/packages/stencil/lottery-tipping-page/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/packages/stencil/lottery-tipping-page/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/static/tipping-full-color.svg +0 -15
- 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 +0 -2
- 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 +0 -2
- /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/packages/stencil/lottery-tipping-page/storybook/main.d.ts +0 -0
- /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/packages/stencil/lottery-tipping-page/storybook/preview.d.ts +0 -0
- /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{Users/adrian.pripon/Documents/Work → builds/emfe-widgets}/widgets-monorepo/packages/stencil/lottery-tipping-page/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export{L as LotteryTippingPage}from"./lottery-tipping-page-
|
|
1
|
+
export{L as LotteryTippingPage}from"./lottery-tipping-page-d25db885.js";import"./index-25e8d5c3.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./index-25e8d5c3.js";function i(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function n(t,e){const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).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 i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}var o;!function(t){t.BuyTickets="BUY_TICKETS",t.MyTickets="MY_TICKETS"}(o||(o={}));const a=["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"}},l=(t,e)=>{const i=e;return r[void 0!==i&&a.includes(i)?i:"en"][t]},c=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=o.BuyTickets}handleClientStylingChange(t,e){t!=e&&i(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&s(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const i=await fetch(t);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const n=await i.json();e=n,Object.keys(e).forEach((t=>{for(let i in e[t])r[t][i]=e[t][i]}))}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&&i(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}renderTabs(){const t={[o.BuyTickets]:l("buyTickets",this.language),[o.MyTickets]:l("myTickets",this.language)};return e("div",{class:"tab-btns"},Object.values(o).map((i=>e("div",{class:"tab-btn"+(this.activeTab===i?" active":""),onClick:this.handleTabClick.bind(this,i)},t[i]))))}renderContent(){return this.activeTab===o.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}):this.activeTab===o.MyTickets?e("lottery-tipping-ticket-history",{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:"22e9391b8373dd1c532dd20644b2f58e4a95de38",class:"lottery-tipping-page",ref:t=>this.stylingContainer=t},e("div",{key:"91eba7e12aa855de3f3a21e1f63c7f0e2c8e1345",class:"lottery-tipping-page-header"},e("slot",{key:"44e3fa709c92e9c9865031765f0499a5aceec19b",name:"backBtn"}),this.renderTabs(),e("slot",{key:"7d6d80bc6195041cf5f3929f11e9b8a40791fb72",name:"logoutBtn"})),e("div",{key:"f79703285155a8119abedf3d1316a166b61b1505",class:"lottery-tipping-content"},this.renderContent()))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};c.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-
|
|
1
|
+
import{r as t,h as e}from"./index-25e8d5c3.js";function i(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function n(t,e){const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).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 i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}var o;!function(t){t.BuyTickets="BUY_TICKETS",t.MyTickets="MY_TICKETS"}(o||(o={}));const a=["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"}},l=(t,e)=>{const i=e;return r[void 0!==i&&a.includes(i)?i:"en"][t]},c=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=o.BuyTickets}handleClientStylingChange(t,e){t!=e&&i(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&s(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const i=await fetch(t);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const n=await i.json();e=n,Object.keys(e).forEach((t=>{for(let i in e[t])r[t][i]=e[t][i]}))}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&&i(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}renderTabs(){const t={[o.BuyTickets]:l("buyTickets",this.language),[o.MyTickets]:l("myTickets",this.language)};return e("div",{class:"tab-btns"},Object.values(o).map((i=>e("div",{class:"tab-btn"+(this.activeTab===i?" active":""),onClick:this.handleTabClick.bind(this,i)},t[i]))))}renderContent(){return this.activeTab===o.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}):this.activeTab===o.MyTickets?e("lottery-tipping-ticket-history",{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:"22e9391b8373dd1c532dd20644b2f58e4a95de38",class:"lottery-tipping-page",ref:t=>this.stylingContainer=t},e("div",{key:"91eba7e12aa855de3f3a21e1f63c7f0e2c8e1345",class:"lottery-tipping-page-header"},e("slot",{key:"44e3fa709c92e9c9865031765f0499a5aceec19b",name:"backBtn"}),this.renderTabs(),e("slot",{key:"7d6d80bc6195041cf5f3929f11e9b8a40791fb72",name:"logoutBtn"})),e("div",{key:"f79703285155a8119abedf3d1316a166b61b1505",class:"lottery-tipping-content"},this.renderContent()))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};c.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-100, #e6e6e6);\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{c as L,n as a,s as b,i as s}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
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>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|