@everymatrix/lottery-tipping-page 1.83.5 → 1.83.7

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.
@@ -1 +1 @@
1
- export{L as LotteryTippingPage}from"./lottery-tipping-page-b611e76d.js";import"./index-3be4f76e.js";
1
+ export{L as LotteryTippingPage}from"./lottery-tipping-page-92169e63.js";import"./index-3be4f76e.js";
@@ -0,0 +1 @@
1
+ import{r as t,h as e}from"./index-3be4f76e.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 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"}},l=(t,e)=>{const i=e;return r[void 0!==i&&o.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.endpointLotteryBe=void 0,this.gameId=void 0,this.playerId=void 0,this.sessionId=void 0,this.drawId=void 0,this.logoUrl=void 0,this.activeTab=a.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={[a.BuyTickets]:l("buyTickets",this.language),[a.MyTickets]:l("myTickets",this.language)};return e("div",{class:"tab-btns"},Object.values(a).map((i=>e("div",{class:"tab-btn"+(this.activeTab===i?" active":""),onClick:this.handleTabClick.bind(this,i)},t[i]))))}renderContent(){return this.activeTab===a.BuyTickets?e("lottery-tipping-ticket-controller",{endpoint:this.endpoint,endpointTicket:this.endpointTicket,"endpoint-lottery-be":this.endpointLotteryBe,gameId:this.gameId,playerId:this.playerId,sessionId:this.sessionId,drawId:this.drawId,language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStylingUrl,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,"logo-url":this.logoUrl}):this.activeTab===a.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,"mb-source":this.mbSource,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStylingUrl,"translation-url":this.translationUrl}):null}render(){return e("div",{key:"25d9a739d9040f9b79d9652b8cef03cf72a1d8e6",class:"lottery-tipping-page",ref:t=>this.stylingContainer=t},e("div",{key:"a94afa5201c3b6ccbe7edf59cdd04251ef280713",class:"lottery-tipping-page-header"},e("slot",{key:"ca7b177f464fbae1a54cae96a9ddad5bc50c5f9c",name:"backBtn"}),this.renderTabs(),e("div",{key:"28cd52ce3161d7da7136adc41fb021967a4a2ae9",class:"lottery-tipping-page-header-operation"},e("slot",{key:"4caab039d48ecaf202a2d993ca2b1b46f3291804",name:"themeBtn"}),e("slot",{key:"5ab4e60d657bf0b945afd87f7778fb1d57b8f69b",name:"logoutBtn"}))),e("div",{key:"31e2e35380bde69f1e5b65cf9841f856fe6e9ed2",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 background: var(--emw--color-background, #fff);\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-operation {\n display: flex;\n gap: 14px;\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 color: var(--emw--color-typography, #000);\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-typography, #000);\n border: 1px solid var(--emw--color-typography, #000);\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}
@@ -1 +1 @@
1
- import{p as e,b as l}from"./index-3be4f76e.js";export{s as setNonce}from"./index-3be4f76e.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const l=import.meta.url,n={};return""!==l&&(n.resourcesUrl=new URL(".",l).href),e(n)})().then((async e=>(await n(),l([["general-multi-select_13",[[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"],logoUrl:[513,"logo-url"],activeTab:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-history",{endpoint:[513],endpointTicket:[513,"endpoint-ticket"],gameId:[1537,"game-id"],playerId:[1538,"player-id"],sessionId:[1537,"session-id"],drawId:[513,"draw-id"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[513,"translation-url"],ticketHistory:[32],activeStatus:[32],statusOptions:[32],isLoading:[32],rawData:[32],filterData:[32],paginationInfo:[32],quickFiltersActive:[32],showCurrentTicketLine:[32],curTicketItem:[32],curSelection:[32],curSelectionIdx:[32],showCurrentDrawResult:[32],curDrawItem:[32],curDrawSelection:[32],curDrawSelectionBettingType:[32],curDrawSelectionMap:[32]},[[0,"pageSizeChange","handlePageSizeChange"],[0,"pageChange","handlePageChange"],[0,"filterChange","handleFilterChange"],[0,"filterClear","handleFilterClear"],[0,"poolGameCurrentPageChange","handlePoolGameCurrentPageChange"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],gameId:["handleGameInfoChange"],endpoint:["handleGameInfoChange"],endpointTicket:["handleTicketInfoChange"],playerId:["handleTicketInfoChange"],sessionId:["handleTicketInfoChange"]}],[1,"lottery-tipping-ticket-controller",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],logoUrl:[513,"logo-url"],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-filter",{quickFiltersActive:[516,"quick-filters-active"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[520,"translation-url"],isOpen:[32],filterData:[32],ticketTypeList:[32],showClearButton:[32]},[[0,"modalCloseEvent","handleModalClose"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-pagination",{total:[2],pageSizeOptions:[16],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[520,"translation-url"],current:[2],pageSize:[32],totalPages:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],total:["updateTotalPages"],pageSize:["updateTotalPages"]}],[1,"lottery-tipping-panel",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],headerTitle:[1,"header-title"],expanded:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-banner",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[513,"translation-url"],logoUrl:[513,"logo-url"],stopTime:[1,"stop-time"],period:[1]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],sessionId:[513,"session-id"],endpoint:[513],gameId:[513,"game-id"],drawId:[513,"draw-id"],totalPages:[1538,"total-pages"],minTotalPages:[514,"min-total-pages"],maxTotalPages:[514,"max-total-pages"],mode:[513],readPretty:[516,"read-pretty"],defaultBulletConfigLineGroup:[513,"default-bullet-config-line-group"],translationData:[32],clientStylingUrlContent:[32],bulletConfigLineGroup:[32],currentPage:[32],isLoading:[32],hasErrors:[32],dialogConfig:[32],ticketDataSource:[32],resetBulletConfig:[64],getData:[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],gameId:["fetchMatchData"],sessionId:["fetchMatchData"],drawId:["fetchMatchData"],currentPage:["handleCurrentPageChange"]}],[1,"general-multi-select",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],options:[16],maxVisibleChips:[2,"max-visible-chips"],placeholder:[1],selectedValues:[32],dropdownOpen:[32],overflowOpen:[32],popoverStyle:[32],clear:[64]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{mbSource:[1,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],visible:[516],dialogTitle:[1,"dialog-title"],width:[1],closable:[4],mask:[4],maskClosable:[4,"mask-closable"],animationDuration:[2,"animation-duration"],fullscreen:[4],showFooter:[4,"show-footer"],showCancelBtn:[4,"show-cancel-btn"],language:[513],translationUrl:[520,"translation-url"]},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))));
1
+ import{p as e,b as l}from"./index-3be4f76e.js";export{s as setNonce}from"./index-3be4f76e.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const l=import.meta.url,n={};return""!==l&&(n.resourcesUrl=new URL(".",l).href),e(n)})().then((async e=>(await n(),l([["general-multi-select_13",[[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"],endpointLotteryBe:[513,"endpoint-lottery-be"],gameId:[513,"game-id"],playerId:[514,"player-id"],sessionId:[513,"session-id"],drawId:[513,"draw-id"],logoUrl:[513,"logo-url"],activeTab:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-history",{endpoint:[513],endpointTicket:[513,"endpoint-ticket"],gameId:[1537,"game-id"],playerId:[1538,"player-id"],sessionId:[1537,"session-id"],drawId:[513,"draw-id"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[513,"translation-url"],ticketHistory:[32],activeStatus:[32],statusOptions:[32],isLoading:[32],rawData:[32],filterData:[32],paginationInfo:[32],quickFiltersActive:[32],showCurrentTicketLine:[32],curTicketItem:[32],curSelection:[32],curSelectionIdx:[32],showCurrentDrawResult:[32],curDrawItem:[32],curDrawSelection:[32],curDrawSelectionBettingType:[32],curDrawSelectionMap:[32]},[[0,"pageSizeChange","handlePageSizeChange"],[0,"pageChange","handlePageChange"],[0,"filterChange","handleFilterChange"],[0,"filterClear","handleFilterClear"],[0,"poolGameCurrentPageChange","handlePoolGameCurrentPageChange"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],gameId:["handleGameInfoChange"],endpoint:["handleGameInfoChange"],endpointTicket:["handleTicketInfoChange"],playerId:["handleTicketInfoChange"],sessionId:["handleTicketInfoChange"]}],[1,"lottery-tipping-ticket-controller",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],logoUrl:[513,"logo-url"],endpoint:[513],endpointLotteryBe:[513,"endpoint-lottery-be"],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],saleStatisticsInfo:[32],dialogConfig:[32]},[[0,"lotteryTippingBulletBetSelect","lotteryTippingBulletGroupSelectionHandler"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-filter",{quickFiltersActive:[516,"quick-filters-active"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[520,"translation-url"],isOpen:[32],filterData:[32],ticketTypeList:[32],showClearButton:[32]},[[0,"modalCloseEvent","handleModalClose"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-pagination",{total:[2],pageSizeOptions:[16],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[520,"translation-url"],current:[2],pageSize:[32],totalPages:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],total:["updateTotalPages"],pageSize:["updateTotalPages"]}],[1,"lottery-tipping-panel",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],headerTitle:[1,"header-title"],expanded:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-banner",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[513,"translation-url"],logoUrl:[513,"logo-url"],stopTime:[1,"stop-time"],period:[1],formattedTurnover:[1,"formatted-turnover"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],sessionId:[513,"session-id"],endpoint:[513],gameId:[513,"game-id"],drawId:[513,"draw-id"],totalPages:[1538,"total-pages"],minTotalPages:[514,"min-total-pages"],maxTotalPages:[514,"max-total-pages"],mode:[513],readPretty:[516,"read-pretty"],defaultBulletConfigLineGroup:[513,"default-bullet-config-line-group"],translationData:[32],clientStylingUrlContent:[32],bulletConfigLineGroup:[32],currentPage:[32],isLoading:[32],hasErrors:[32],dialogConfig:[32],ticketDataSource:[32],resetBulletConfig:[64],getData:[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],gameId:["fetchMatchData"],sessionId:["fetchMatchData"],drawId:["fetchMatchData"],defaultBulletConfigLineGroup:["fetchMatchData"],currentPage:["handleCurrentPageChange"]}],[1,"general-multi-select",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],options:[16],maxVisibleChips:[2,"max-visible-chips"],placeholder:[1],selectedValues:[32],dropdownOpen:[32],overflowOpen:[32],popoverStyle:[32],clear:[64]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{mbSource:[1,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],visible:[516],dialogTitle:[1,"dialog-title"],width:[1],closable:[4],mask:[4],maskClosable:[4,"mask-closable"],animationDuration:[2,"animation-duration"],fullscreen:[4],showFooter:[4,"show-footer"],showCancelBtn:[4,"show-cancel-btn"],language:[513],translationUrl:[520,"translation-url"]},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))));
@@ -27,6 +27,10 @@ export declare class LotteryTippingPage {
27
27
  * EndpointTicket URL for the source of ticket data
28
28
  */
29
29
  endpointTicket: string;
30
+ /**
31
+ * Endpoint URL for the lottery backend's api
32
+ */
33
+ endpointLotteryBe: string;
30
34
  /**
31
35
  * GameID of the lottery game
32
36
  */
@@ -20,6 +20,10 @@ export namespace Components {
20
20
  */
21
21
  "drawId": string;
22
22
  "endpoint": string;
23
+ /**
24
+ * Endpoint URL for the lottery backend's api
25
+ */
26
+ "endpointLotteryBe": string;
23
27
  /**
24
28
  * EndpointTicket URL for the source of ticket data
25
29
  */
@@ -80,6 +84,10 @@ declare namespace LocalJSX {
80
84
  */
81
85
  "drawId"?: string;
82
86
  "endpoint"?: string;
87
+ /**
88
+ * Endpoint URL for the lottery backend's api
89
+ */
90
+ "endpointLotteryBe"?: string;
83
91
  /**
84
92
  * EndpointTicket URL for the source of ticket data
85
93
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/lottery-tipping-page",
3
- "version": "1.83.5",
3
+ "version": "1.83.7",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as t,h as e}from"./index-3be4f76e.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.logoUrl=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,"mb-source":this.mbSource,"client-styling":this.clientStylingUrl,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,"logo-url":this.logoUrl}):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,"mb-source":this.mbSource,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStylingUrl,"translation-url":this.translationUrl}):null}render(){return e("div",{key:"e3f90ee042b701e6e676ed244d5c4f5e3b8aa6c8",class:"lottery-tipping-page",ref:t=>this.stylingContainer=t},e("div",{key:"6e3ecc173663a6c695b875347f97e7201ee000ac",class:"lottery-tipping-page-header"},e("slot",{key:"11b34047ac66f16d642c3bf201ecc3e306a49925",name:"backBtn"}),this.renderTabs(),e("div",{key:"130a3596c6a360d92c67e5d6225a6ab4e98477e0",class:"lottery-tipping-page-header-operation"},e("slot",{key:"3358dc585d3b08916a35f873a7d3c533e306c4a4",name:"themeBtn"}),e("slot",{key:"afa9e206303d0037f4a32e0d5255eceb81989df3",name:"logoutBtn"}))),e("div",{key:"c97f79985f02dd25fbf599c8c9ee956d57158a0b",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 background: var(--emw--color-background, #fff);\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-operation {\n display: flex;\n gap: 14px;\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 color: var(--emw--color-typography, #000);\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-typography, #000);\n border: 1px solid var(--emw--color-typography, #000);\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}