@everymatrix/lottery-oddsbom-ticket-bet 0.6.29 → 0.6.30

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.
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["lottery-oddsbom-bullet_9.cjs",[[1,"lottery-oddsbom-ticket-bet",{"endpoint":[513],"gameId":[513,"game-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"playerId":[513,"player-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isLoadingOdds":[32],"isSubmitLoading":[32],"matchInfo":[32],"ticketBoardInfo":[32],"gameConfig":[32],"addSelectionConfig":[32],"gameInfo":[32],"dialogConfig":[32],"oddsData":[32],"oddsInfo":[32],"oddsQuery":[32],"saleStatisticsInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsBomBulletGroupToggle"],[0,"oddsbomBulletGroupAddedByMoreBtnDel","handleOddsBomBulletAddedByMoreBtnDelete"],[0,"oddsbomAddMoreToMatch","handleOddsBomAddMoreToMatch"],[0,"oddsbomBoardClear","handleOddsBomBoardClear"],[0,"oddschartFillIn","handleOddsChartFillIn"],[0,"oddsQueryChange","handleOddsQueryChange"],[0,"oddsQueryLineChange","handleOddsQueryLineChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoardInfoChange"],"canSubmit":["handleCanSubmitChange"]}],[1,"lottery-oddsbom-ticket-board",{"ticketBoardInfo":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"addSelectionConfig":[16],"bulletsConfig":[32],"isInputInvalid":[32],"errorMessage":[32],"dialogConfig":[32],"curAddMoreInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsbomBulletGroupToggle"],[0,"oddsbomBulletCallDialogFromGroup","handleOddsbomBulletCallDialogFromGroup"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-oddschart",{"matchInfo":[16],"oddsInfo":[16],"total":[2],"curPage":[2,"cur-page"],"limit":[2],"offset":[2],"filterdOdds":[1,"filterd-odds"],"isSearching":[4,"is-searching"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isLoading":[4,"is-loading"],"language":[513],"translationUrl":[513,"translation-url"],"isAscend":[32],"selectedGroupIndex":[32],"matchSelection":[32],"hasFillInSelection":[32],"initOddsChart":[64],"closeOddsChart":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"matchInfo":["handleMatchInfoChange"]}],[1,"lottery-oddsbom-ticket-selection",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketBoardInfo":[1040],"language":[513],"expanded":[32],"_ticketBoardInfo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoradInfoChange"]}],[1,"lottery-oddsbom-oddschart-input",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"value":[513],"getValue":[64],"clearValue":[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-oddsbom-bullet-group",{"selectionIdx":[514,"selection-idx"],"matchIdx":[514,"match-idx"],"bulletConfigs":[16],"bulletConfigsDeleteOrigin":[16],"addSelectionConfig":[16],"isDeleteByIcon":[516,"is-delete-by-icon"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bulletListClass":[1,"bullet-list-class"],"innerBulletConfigs":[32],"innerBulletConfigsDeleteOrigin":[32]},[[0,"oddsbomBulletToggle","oddsbomBulletToggleHandler"],[0,"oddsbomBulletDelete","oddsbomBulletDeleteHandler"],[0,"oddsbomBulletAddedByMoreBtnDelete","oddsbomBulletAddedByMoreBtnDeleteHandler"],[0,"oddsbomBulletCallDialog","handleOddsbomBulletCallDialog"]],{"bulletConfigs":["handleBulletConfigsChange"],"bulletConfigsDeleteOrigin":["handleBulletConfigsDeleteOriginChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-ticket-button",{"variant":[513],"size":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
11
+ return index.bootstrapLazy([["lottery-oddsbom-bullet_9.cjs",[[1,"lottery-oddsbom-ticket-bet",{"endpoint":[513],"gameId":[513,"game-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"playerId":[513,"player-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isLoadingOdds":[32],"isSubmitLoading":[32],"matchInfo":[32],"ticketBoardInfo":[32],"gameConfig":[32],"addSelectionConfig":[32],"gameInfo":[32],"dialogConfig":[32],"oddsData":[32],"oddsInfo":[32],"oddsQuery":[32],"saleStatisticsInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsBomBulletGroupToggle"],[0,"oddsbomBulletGroupAddedByMoreBtnDel","handleOddsBomBulletAddedByMoreBtnDelete"],[0,"oddsbomAddMoreToMatch","handleOddsBomAddMoreToMatch"],[0,"oddsbomBoardClear","handleOddsBomBoardClear"],[0,"oddschartFillIn","handleOddsChartFillIn"],[0,"oddsQueryChange","handleOddsQueryChange"],[0,"oddsQueryLineChange","handleOddsQueryLineChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoardInfoChange"],"canSubmit":["handleCanSubmitChange"]}],[1,"lottery-oddsbom-ticket-board",{"ticketBoardInfo":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"addSelectionConfig":[16],"bulletsConfig":[32],"isInputInvalid":[32],"errorMessage":[32],"dialogConfig":[32],"curAddMoreInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsbomBulletGroupToggle"],[0,"oddsbomBulletCallDialogFromGroup","handleOddsbomBulletCallDialogFromGroup"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-oddschart",{"matchInfo":[16],"oddsInfo":[16],"total":[2],"curPage":[2,"cur-page"],"limit":[2],"offset":[2],"filterdOdds":[1,"filterd-odds"],"isSearching":[4,"is-searching"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isLoading":[4,"is-loading"],"language":[513],"translationUrl":[513,"translation-url"],"isAscend":[32],"selectedGroupIndex":[32],"matchSelection":[32],"hasFillInSelection":[32],"initOddsChart":[64],"closeOddsChart":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"matchInfo":["handleMatchInfoChange"]}],[1,"lottery-oddsbom-ticket-selection",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketBoardInfo":[1040],"language":[513],"expanded":[32],"_ticketBoardInfo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoradInfoChange"]}],[1,"lottery-oddsbom-oddschart-input",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"value":[513],"getValue":[64],"clearValue":[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"],"dialogClass":[1,"dialog-class"],"dialogStyle":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet-group",{"selectionIdx":[514,"selection-idx"],"matchIdx":[514,"match-idx"],"bulletConfigs":[16],"bulletConfigsDeleteOrigin":[16],"addSelectionConfig":[16],"isDeleteByIcon":[516,"is-delete-by-icon"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bulletListClass":[1,"bullet-list-class"],"innerBulletConfigs":[32],"innerBulletConfigsDeleteOrigin":[32]},[[0,"oddsbomBulletToggle","oddsbomBulletToggleHandler"],[0,"oddsbomBulletDelete","oddsbomBulletDeleteHandler"],[0,"oddsbomBulletAddedByMoreBtnDelete","oddsbomBulletAddedByMoreBtnDeleteHandler"],[0,"oddsbomBulletCallDialog","handleOddsbomBulletCallDialog"]],{"bulletConfigs":["handleBulletConfigsChange"],"bulletConfigsDeleteOrigin":["handleBulletConfigsDeleteOriginChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-ticket-button",{"variant":[513],"size":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -975,6 +975,8 @@ const LotteryTippingDialog = class {
975
975
  this.showCancelBtn = true;
976
976
  this.language = 'en';
977
977
  this.translationUrl = undefined;
978
+ this.dialogClass = undefined;
979
+ this.dialogStyle = undefined;
978
980
  }
979
981
  handleClientStylingChange(newValue, oldValue) {
980
982
  if (newValue != oldValue) {
@@ -1018,8 +1020,8 @@ const LotteryTippingDialog = class {
1018
1020
  handleClose() {
1019
1021
  this.cancel.emit();
1020
1022
  }
1021
- handleMaskClick(e) {
1022
- if (this.maskClosable && e.target === this.el.querySelector('.mask')) {
1023
+ handleMaskClick() {
1024
+ if (this.maskClosable) {
1023
1025
  this.cancel.emit();
1024
1026
  }
1025
1027
  }
@@ -1027,22 +1029,22 @@ const LotteryTippingDialog = class {
1027
1029
  this.confirm.emit();
1028
1030
  }
1029
1031
  render() {
1030
- const dialogStyle = {
1031
- width: typeof this.width === 'number' ? `${this.width}px` : this.width,
1032
- '--duration': `${this.animationDuration}ms`
1033
- };
1032
+ const computedDialogStyle = Object.assign({ width: typeof this.width === 'number' ? `${this.width}px` : this.width, '--duration': `${this.animationDuration}ms` }, (this.dialogStyle || {}));
1034
1033
  const dialogWrapperClass = ['dialog-wrapper', this.visible ? 'dialog-wrapper-visible' : ''];
1035
1034
  const maskClass = ['mask', this.visible ? 'mask-enter' : 'mask-leave'];
1036
- const dialogClass = [
1035
+ const computedDialogClass = [
1037
1036
  'dialog',
1038
1037
  this.visible ? 'dialog-enter' : 'dialog-leave',
1039
- this.fullscreen ? 'fullscreen' : ''
1040
- ].join(' ');
1038
+ this.fullscreen ? 'fullscreen' : '',
1039
+ this.dialogClass
1040
+ ]
1041
+ .filter(Boolean)
1042
+ .join(' ');
1041
1043
  const contentStyle = {
1042
1044
  maxHeight: 'calc(100vh - 62px)',
1043
1045
  overflowY: 'auto'
1044
1046
  };
1045
- return (index.h("div", { key: '716c6488b86fc5a74bcd8c8c8a4eee1b85f75cb7', class: dialogWrapperClass.join(' '), ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '161d976b5a15f62c63b56555e161b5b29c0a7771', class: maskClass.join(' '), onClick: this.handleMaskClick.bind(this) }), index.h("div", { key: 'ebd2c356c169765b06c85997dc9906b74358b450', class: dialogClass, style: dialogStyle, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-title" }, index.h("div", { key: '2a8616c336447b33d3c4b3f22deee3871abd93c9', class: "dialog-header" }, index.h("h2", { key: 'fc4f4f87826620754f8cce73874726cdebcc280e', id: "dialog-title", class: "dialog-title" }, this.dialogTitle), this.closable && (index.h("button", { key: '1626434c0700df7dc094cbf0c96840476ab65da5', class: "close-btn", onClick: this.handleClose.bind(this) }, "x"))), index.h("div", { key: '44d28c0e477e3e16069749f7700ee70b6a486d07', class: "dialog-content", style: contentStyle }, index.h("slot", { key: '745e1329fc3647247245f7aa96d10a06b6b18329' })), this.showFooter && (index.h("div", { key: 'cc3b19ba0ab16fd485f2c4e81a5793a25cecb98f', class: "dialog-footer" }, index.h("slot", { key: '906adc00a3735e096159002b972804cfe147f42e', name: "footer" }, this.showCancelBtn && (index.h("button", { key: '1fc68b04c7c39ca9b7dfb228836eb38c4368c355', class: "cancel-btn", onClick: this.handleClose.bind(this) }, translate('cancel', this.language))), index.h("button", { key: '1d054ca93148286249d4989c783a67e1afe33667', class: "confirm-btn", onClick: this.handleConfirm.bind(this) }, translate('confirm', this.language))))))));
1047
+ return (index.h("div", { key: '306683c5190fa6dca57dcf75e52eca575c0215e7', class: dialogWrapperClass.join(' '), ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '8be097f3a86fcd9ad4e18c6ac56cafdcf249049b', class: maskClass.join(' '), onClick: this.handleMaskClick.bind(this) }), index.h("div", { key: '87d2206d3e3d75fe0e0ef8a6afd8de5c20892ae6', part: "dialog", class: computedDialogClass, style: computedDialogStyle, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-title" }, index.h("div", { key: '30ca33b925ff2525ead8aae83e72031258367b40', class: "dialog-header" }, index.h("h2", { key: '492c3e864ac1547da58b0a47e4cc8d45470bde54', id: "dialog-title", class: "dialog-title" }, this.dialogTitle), this.closable && (index.h("button", { key: '8ae4b872d18ce82d33292dc794e8a1f714a96ba9', class: "close-btn", onClick: this.handleClose.bind(this) }, "x"))), index.h("div", { key: 'd661c78b333f78b9dee92e0975f8b136ef5a3071', class: "dialog-content", style: contentStyle }, index.h("slot", { key: 'f32a6f6e4962239e0148e61c4bb70f6b5d3a2c82' })), this.showFooter && (index.h("div", { key: '40b5e9fd1c9221eb4d6c87d053c5d018f540d8e7', class: "dialog-footer" }, index.h("slot", { key: '91539def47d118a69735ec229e7a6b36fc1db40b', name: "footer" }, this.showCancelBtn && (index.h("button", { key: 'f3b3add23f150c660159a906c2ef23b5fbe3b4c5', class: "cancel-btn", onClick: this.handleClose.bind(this) }, translate('cancel', this.language))), index.h("button", { key: '5fc33e89b6c55ac9e2162302e128bce0e79c5f89', class: "confirm-btn", onClick: this.handleConfirm.bind(this) }, translate('confirm', this.language))))))));
1046
1048
  }
1047
1049
  get el() { return index.getElement(this); }
1048
1050
  static get watchers() { return {
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["lottery-oddsbom-bullet_9.cjs",[[1,"lottery-oddsbom-ticket-bet",{"endpoint":[513],"gameId":[513,"game-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"playerId":[513,"player-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isLoadingOdds":[32],"isSubmitLoading":[32],"matchInfo":[32],"ticketBoardInfo":[32],"gameConfig":[32],"addSelectionConfig":[32],"gameInfo":[32],"dialogConfig":[32],"oddsData":[32],"oddsInfo":[32],"oddsQuery":[32],"saleStatisticsInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsBomBulletGroupToggle"],[0,"oddsbomBulletGroupAddedByMoreBtnDel","handleOddsBomBulletAddedByMoreBtnDelete"],[0,"oddsbomAddMoreToMatch","handleOddsBomAddMoreToMatch"],[0,"oddsbomBoardClear","handleOddsBomBoardClear"],[0,"oddschartFillIn","handleOddsChartFillIn"],[0,"oddsQueryChange","handleOddsQueryChange"],[0,"oddsQueryLineChange","handleOddsQueryLineChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoardInfoChange"],"canSubmit":["handleCanSubmitChange"]}],[1,"lottery-oddsbom-ticket-board",{"ticketBoardInfo":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"addSelectionConfig":[16],"bulletsConfig":[32],"isInputInvalid":[32],"errorMessage":[32],"dialogConfig":[32],"curAddMoreInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsbomBulletGroupToggle"],[0,"oddsbomBulletCallDialogFromGroup","handleOddsbomBulletCallDialogFromGroup"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-oddschart",{"matchInfo":[16],"oddsInfo":[16],"total":[2],"curPage":[2,"cur-page"],"limit":[2],"offset":[2],"filterdOdds":[1,"filterd-odds"],"isSearching":[4,"is-searching"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isLoading":[4,"is-loading"],"language":[513],"translationUrl":[513,"translation-url"],"isAscend":[32],"selectedGroupIndex":[32],"matchSelection":[32],"hasFillInSelection":[32],"initOddsChart":[64],"closeOddsChart":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"matchInfo":["handleMatchInfoChange"]}],[1,"lottery-oddsbom-ticket-selection",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketBoardInfo":[1040],"language":[513],"expanded":[32],"_ticketBoardInfo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoradInfoChange"]}],[1,"lottery-oddsbom-oddschart-input",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"value":[513],"getValue":[64],"clearValue":[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-oddsbom-bullet-group",{"selectionIdx":[514,"selection-idx"],"matchIdx":[514,"match-idx"],"bulletConfigs":[16],"bulletConfigsDeleteOrigin":[16],"addSelectionConfig":[16],"isDeleteByIcon":[516,"is-delete-by-icon"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bulletListClass":[1,"bullet-list-class"],"innerBulletConfigs":[32],"innerBulletConfigsDeleteOrigin":[32]},[[0,"oddsbomBulletToggle","oddsbomBulletToggleHandler"],[0,"oddsbomBulletDelete","oddsbomBulletDeleteHandler"],[0,"oddsbomBulletAddedByMoreBtnDelete","oddsbomBulletAddedByMoreBtnDeleteHandler"],[0,"oddsbomBulletCallDialog","handleOddsbomBulletCallDialog"]],{"bulletConfigs":["handleBulletConfigsChange"],"bulletConfigsDeleteOrigin":["handleBulletConfigsDeleteOriginChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-ticket-button",{"variant":[513],"size":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
22
+ return index.bootstrapLazy([["lottery-oddsbom-bullet_9.cjs",[[1,"lottery-oddsbom-ticket-bet",{"endpoint":[513],"gameId":[513,"game-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"playerId":[513,"player-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isLoadingOdds":[32],"isSubmitLoading":[32],"matchInfo":[32],"ticketBoardInfo":[32],"gameConfig":[32],"addSelectionConfig":[32],"gameInfo":[32],"dialogConfig":[32],"oddsData":[32],"oddsInfo":[32],"oddsQuery":[32],"saleStatisticsInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsBomBulletGroupToggle"],[0,"oddsbomBulletGroupAddedByMoreBtnDel","handleOddsBomBulletAddedByMoreBtnDelete"],[0,"oddsbomAddMoreToMatch","handleOddsBomAddMoreToMatch"],[0,"oddsbomBoardClear","handleOddsBomBoardClear"],[0,"oddschartFillIn","handleOddsChartFillIn"],[0,"oddsQueryChange","handleOddsQueryChange"],[0,"oddsQueryLineChange","handleOddsQueryLineChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoardInfoChange"],"canSubmit":["handleCanSubmitChange"]}],[1,"lottery-oddsbom-ticket-board",{"ticketBoardInfo":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"addSelectionConfig":[16],"bulletsConfig":[32],"isInputInvalid":[32],"errorMessage":[32],"dialogConfig":[32],"curAddMoreInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsbomBulletGroupToggle"],[0,"oddsbomBulletCallDialogFromGroup","handleOddsbomBulletCallDialogFromGroup"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-oddschart",{"matchInfo":[16],"oddsInfo":[16],"total":[2],"curPage":[2,"cur-page"],"limit":[2],"offset":[2],"filterdOdds":[1,"filterd-odds"],"isSearching":[4,"is-searching"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isLoading":[4,"is-loading"],"language":[513],"translationUrl":[513,"translation-url"],"isAscend":[32],"selectedGroupIndex":[32],"matchSelection":[32],"hasFillInSelection":[32],"initOddsChart":[64],"closeOddsChart":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"matchInfo":["handleMatchInfoChange"]}],[1,"lottery-oddsbom-ticket-selection",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketBoardInfo":[1040],"language":[513],"expanded":[32],"_ticketBoardInfo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoradInfoChange"]}],[1,"lottery-oddsbom-oddschart-input",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"value":[513],"getValue":[64],"clearValue":[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"],"dialogClass":[1,"dialog-class"],"dialogStyle":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet-group",{"selectionIdx":[514,"selection-idx"],"matchIdx":[514,"match-idx"],"bulletConfigs":[16],"bulletConfigsDeleteOrigin":[16],"addSelectionConfig":[16],"isDeleteByIcon":[516,"is-delete-by-icon"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bulletListClass":[1,"bullet-list-class"],"innerBulletConfigs":[32],"innerBulletConfigsDeleteOrigin":[32]},[[0,"oddsbomBulletToggle","oddsbomBulletToggleHandler"],[0,"oddsbomBulletDelete","oddsbomBulletDeleteHandler"],[0,"oddsbomBulletAddedByMoreBtnDelete","oddsbomBulletAddedByMoreBtnDeleteHandler"],[0,"oddsbomBulletCallDialog","handleOddsbomBulletCallDialog"]],{"bulletConfigs":["handleBulletConfigsChange"],"bulletConfigsDeleteOrigin":["handleBulletConfigsDeleteOriginChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-ticket-button",{"variant":[513],"size":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["lottery-oddsbom-bullet_9",[[1,"lottery-oddsbom-ticket-bet",{"endpoint":[513],"gameId":[513,"game-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"playerId":[513,"player-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isLoadingOdds":[32],"isSubmitLoading":[32],"matchInfo":[32],"ticketBoardInfo":[32],"gameConfig":[32],"addSelectionConfig":[32],"gameInfo":[32],"dialogConfig":[32],"oddsData":[32],"oddsInfo":[32],"oddsQuery":[32],"saleStatisticsInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsBomBulletGroupToggle"],[0,"oddsbomBulletGroupAddedByMoreBtnDel","handleOddsBomBulletAddedByMoreBtnDelete"],[0,"oddsbomAddMoreToMatch","handleOddsBomAddMoreToMatch"],[0,"oddsbomBoardClear","handleOddsBomBoardClear"],[0,"oddschartFillIn","handleOddsChartFillIn"],[0,"oddsQueryChange","handleOddsQueryChange"],[0,"oddsQueryLineChange","handleOddsQueryLineChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoardInfoChange"],"canSubmit":["handleCanSubmitChange"]}],[1,"lottery-oddsbom-ticket-board",{"ticketBoardInfo":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"addSelectionConfig":[16],"bulletsConfig":[32],"isInputInvalid":[32],"errorMessage":[32],"dialogConfig":[32],"curAddMoreInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsbomBulletGroupToggle"],[0,"oddsbomBulletCallDialogFromGroup","handleOddsbomBulletCallDialogFromGroup"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-oddschart",{"matchInfo":[16],"oddsInfo":[16],"total":[2],"curPage":[2,"cur-page"],"limit":[2],"offset":[2],"filterdOdds":[1,"filterd-odds"],"isSearching":[4,"is-searching"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isLoading":[4,"is-loading"],"language":[513],"translationUrl":[513,"translation-url"],"isAscend":[32],"selectedGroupIndex":[32],"matchSelection":[32],"hasFillInSelection":[32],"initOddsChart":[64],"closeOddsChart":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"matchInfo":["handleMatchInfoChange"]}],[1,"lottery-oddsbom-ticket-selection",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketBoardInfo":[1040],"language":[513],"expanded":[32],"_ticketBoardInfo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoradInfoChange"]}],[1,"lottery-oddsbom-oddschart-input",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"value":[513],"getValue":[64],"clearValue":[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-oddsbom-bullet-group",{"selectionIdx":[514,"selection-idx"],"matchIdx":[514,"match-idx"],"bulletConfigs":[16],"bulletConfigsDeleteOrigin":[16],"addSelectionConfig":[16],"isDeleteByIcon":[516,"is-delete-by-icon"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bulletListClass":[1,"bullet-list-class"],"innerBulletConfigs":[32],"innerBulletConfigsDeleteOrigin":[32]},[[0,"oddsbomBulletToggle","oddsbomBulletToggleHandler"],[0,"oddsbomBulletDelete","oddsbomBulletDeleteHandler"],[0,"oddsbomBulletAddedByMoreBtnDelete","oddsbomBulletAddedByMoreBtnDeleteHandler"],[0,"oddsbomBulletCallDialog","handleOddsbomBulletCallDialog"]],{"bulletConfigs":["handleBulletConfigsChange"],"bulletConfigsDeleteOrigin":["handleBulletConfigsDeleteOriginChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-ticket-button",{"variant":[513],"size":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
8
+ return bootstrapLazy([["lottery-oddsbom-bullet_9",[[1,"lottery-oddsbom-ticket-bet",{"endpoint":[513],"gameId":[513,"game-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"playerId":[513,"player-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isLoadingOdds":[32],"isSubmitLoading":[32],"matchInfo":[32],"ticketBoardInfo":[32],"gameConfig":[32],"addSelectionConfig":[32],"gameInfo":[32],"dialogConfig":[32],"oddsData":[32],"oddsInfo":[32],"oddsQuery":[32],"saleStatisticsInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsBomBulletGroupToggle"],[0,"oddsbomBulletGroupAddedByMoreBtnDel","handleOddsBomBulletAddedByMoreBtnDelete"],[0,"oddsbomAddMoreToMatch","handleOddsBomAddMoreToMatch"],[0,"oddsbomBoardClear","handleOddsBomBoardClear"],[0,"oddschartFillIn","handleOddsChartFillIn"],[0,"oddsQueryChange","handleOddsQueryChange"],[0,"oddsQueryLineChange","handleOddsQueryLineChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoardInfoChange"],"canSubmit":["handleCanSubmitChange"]}],[1,"lottery-oddsbom-ticket-board",{"ticketBoardInfo":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"addSelectionConfig":[16],"bulletsConfig":[32],"isInputInvalid":[32],"errorMessage":[32],"dialogConfig":[32],"curAddMoreInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsbomBulletGroupToggle"],[0,"oddsbomBulletCallDialogFromGroup","handleOddsbomBulletCallDialogFromGroup"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-oddschart",{"matchInfo":[16],"oddsInfo":[16],"total":[2],"curPage":[2,"cur-page"],"limit":[2],"offset":[2],"filterdOdds":[1,"filterd-odds"],"isSearching":[4,"is-searching"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isLoading":[4,"is-loading"],"language":[513],"translationUrl":[513,"translation-url"],"isAscend":[32],"selectedGroupIndex":[32],"matchSelection":[32],"hasFillInSelection":[32],"initOddsChart":[64],"closeOddsChart":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"matchInfo":["handleMatchInfoChange"]}],[1,"lottery-oddsbom-ticket-selection",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketBoardInfo":[1040],"language":[513],"expanded":[32],"_ticketBoardInfo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoradInfoChange"]}],[1,"lottery-oddsbom-oddschart-input",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"value":[513],"getValue":[64],"clearValue":[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"],"dialogClass":[1,"dialog-class"],"dialogStyle":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet-group",{"selectionIdx":[514,"selection-idx"],"matchIdx":[514,"match-idx"],"bulletConfigs":[16],"bulletConfigsDeleteOrigin":[16],"addSelectionConfig":[16],"isDeleteByIcon":[516,"is-delete-by-icon"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bulletListClass":[1,"bullet-list-class"],"innerBulletConfigs":[32],"innerBulletConfigsDeleteOrigin":[32]},[[0,"oddsbomBulletToggle","oddsbomBulletToggleHandler"],[0,"oddsbomBulletDelete","oddsbomBulletDeleteHandler"],[0,"oddsbomBulletAddedByMoreBtnDelete","oddsbomBulletAddedByMoreBtnDeleteHandler"],[0,"oddsbomBulletCallDialog","handleOddsbomBulletCallDialog"]],{"bulletConfigs":["handleBulletConfigsChange"],"bulletConfigsDeleteOrigin":["handleBulletConfigsDeleteOriginChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-ticket-button",{"variant":[513],"size":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -972,6 +972,8 @@ const LotteryTippingDialog = class {
972
972
  this.showCancelBtn = true;
973
973
  this.language = 'en';
974
974
  this.translationUrl = undefined;
975
+ this.dialogClass = undefined;
976
+ this.dialogStyle = undefined;
975
977
  }
976
978
  handleClientStylingChange(newValue, oldValue) {
977
979
  if (newValue != oldValue) {
@@ -1015,8 +1017,8 @@ const LotteryTippingDialog = class {
1015
1017
  handleClose() {
1016
1018
  this.cancel.emit();
1017
1019
  }
1018
- handleMaskClick(e) {
1019
- if (this.maskClosable && e.target === this.el.querySelector('.mask')) {
1020
+ handleMaskClick() {
1021
+ if (this.maskClosable) {
1020
1022
  this.cancel.emit();
1021
1023
  }
1022
1024
  }
@@ -1024,22 +1026,22 @@ const LotteryTippingDialog = class {
1024
1026
  this.confirm.emit();
1025
1027
  }
1026
1028
  render() {
1027
- const dialogStyle = {
1028
- width: typeof this.width === 'number' ? `${this.width}px` : this.width,
1029
- '--duration': `${this.animationDuration}ms`
1030
- };
1029
+ const computedDialogStyle = Object.assign({ width: typeof this.width === 'number' ? `${this.width}px` : this.width, '--duration': `${this.animationDuration}ms` }, (this.dialogStyle || {}));
1031
1030
  const dialogWrapperClass = ['dialog-wrapper', this.visible ? 'dialog-wrapper-visible' : ''];
1032
1031
  const maskClass = ['mask', this.visible ? 'mask-enter' : 'mask-leave'];
1033
- const dialogClass = [
1032
+ const computedDialogClass = [
1034
1033
  'dialog',
1035
1034
  this.visible ? 'dialog-enter' : 'dialog-leave',
1036
- this.fullscreen ? 'fullscreen' : ''
1037
- ].join(' ');
1035
+ this.fullscreen ? 'fullscreen' : '',
1036
+ this.dialogClass
1037
+ ]
1038
+ .filter(Boolean)
1039
+ .join(' ');
1038
1040
  const contentStyle = {
1039
1041
  maxHeight: 'calc(100vh - 62px)',
1040
1042
  overflowY: 'auto'
1041
1043
  };
1042
- return (h("div", { key: '716c6488b86fc5a74bcd8c8c8a4eee1b85f75cb7', class: dialogWrapperClass.join(' '), ref: (el) => (this.stylingContainer = el) }, h("div", { key: '161d976b5a15f62c63b56555e161b5b29c0a7771', class: maskClass.join(' '), onClick: this.handleMaskClick.bind(this) }), h("div", { key: 'ebd2c356c169765b06c85997dc9906b74358b450', class: dialogClass, style: dialogStyle, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-title" }, h("div", { key: '2a8616c336447b33d3c4b3f22deee3871abd93c9', class: "dialog-header" }, h("h2", { key: 'fc4f4f87826620754f8cce73874726cdebcc280e', id: "dialog-title", class: "dialog-title" }, this.dialogTitle), this.closable && (h("button", { key: '1626434c0700df7dc094cbf0c96840476ab65da5', class: "close-btn", onClick: this.handleClose.bind(this) }, "x"))), h("div", { key: '44d28c0e477e3e16069749f7700ee70b6a486d07', class: "dialog-content", style: contentStyle }, h("slot", { key: '745e1329fc3647247245f7aa96d10a06b6b18329' })), this.showFooter && (h("div", { key: 'cc3b19ba0ab16fd485f2c4e81a5793a25cecb98f', class: "dialog-footer" }, h("slot", { key: '906adc00a3735e096159002b972804cfe147f42e', name: "footer" }, this.showCancelBtn && (h("button", { key: '1fc68b04c7c39ca9b7dfb228836eb38c4368c355', class: "cancel-btn", onClick: this.handleClose.bind(this) }, translate('cancel', this.language))), h("button", { key: '1d054ca93148286249d4989c783a67e1afe33667', class: "confirm-btn", onClick: this.handleConfirm.bind(this) }, translate('confirm', this.language))))))));
1044
+ return (h("div", { key: '306683c5190fa6dca57dcf75e52eca575c0215e7', class: dialogWrapperClass.join(' '), ref: (el) => (this.stylingContainer = el) }, h("div", { key: '8be097f3a86fcd9ad4e18c6ac56cafdcf249049b', class: maskClass.join(' '), onClick: this.handleMaskClick.bind(this) }), h("div", { key: '87d2206d3e3d75fe0e0ef8a6afd8de5c20892ae6', part: "dialog", class: computedDialogClass, style: computedDialogStyle, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-title" }, h("div", { key: '30ca33b925ff2525ead8aae83e72031258367b40', class: "dialog-header" }, h("h2", { key: '492c3e864ac1547da58b0a47e4cc8d45470bde54', id: "dialog-title", class: "dialog-title" }, this.dialogTitle), this.closable && (h("button", { key: '8ae4b872d18ce82d33292dc794e8a1f714a96ba9', class: "close-btn", onClick: this.handleClose.bind(this) }, "x"))), h("div", { key: 'd661c78b333f78b9dee92e0975f8b136ef5a3071', class: "dialog-content", style: contentStyle }, h("slot", { key: 'f32a6f6e4962239e0148e61c4bb70f6b5d3a2c82' })), this.showFooter && (h("div", { key: '40b5e9fd1c9221eb4d6c87d053c5d018f540d8e7', class: "dialog-footer" }, h("slot", { key: '91539def47d118a69735ec229e7a6b36fc1db40b', name: "footer" }, this.showCancelBtn && (h("button", { key: 'f3b3add23f150c660159a906c2ef23b5fbe3b4c5', class: "cancel-btn", onClick: this.handleClose.bind(this) }, translate('cancel', this.language))), h("button", { key: '5fc33e89b6c55ac9e2162302e128bce0e79c5f89', class: "confirm-btn", onClick: this.handleConfirm.bind(this) }, translate('confirm', this.language))))))));
1043
1045
  }
1044
1046
  get el() { return getElement(this); }
1045
1047
  static get watchers() { return {
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["lottery-oddsbom-bullet_9",[[1,"lottery-oddsbom-ticket-bet",{"endpoint":[513],"gameId":[513,"game-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"playerId":[513,"player-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isLoadingOdds":[32],"isSubmitLoading":[32],"matchInfo":[32],"ticketBoardInfo":[32],"gameConfig":[32],"addSelectionConfig":[32],"gameInfo":[32],"dialogConfig":[32],"oddsData":[32],"oddsInfo":[32],"oddsQuery":[32],"saleStatisticsInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsBomBulletGroupToggle"],[0,"oddsbomBulletGroupAddedByMoreBtnDel","handleOddsBomBulletAddedByMoreBtnDelete"],[0,"oddsbomAddMoreToMatch","handleOddsBomAddMoreToMatch"],[0,"oddsbomBoardClear","handleOddsBomBoardClear"],[0,"oddschartFillIn","handleOddsChartFillIn"],[0,"oddsQueryChange","handleOddsQueryChange"],[0,"oddsQueryLineChange","handleOddsQueryLineChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoardInfoChange"],"canSubmit":["handleCanSubmitChange"]}],[1,"lottery-oddsbom-ticket-board",{"ticketBoardInfo":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"addSelectionConfig":[16],"bulletsConfig":[32],"isInputInvalid":[32],"errorMessage":[32],"dialogConfig":[32],"curAddMoreInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsbomBulletGroupToggle"],[0,"oddsbomBulletCallDialogFromGroup","handleOddsbomBulletCallDialogFromGroup"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-oddschart",{"matchInfo":[16],"oddsInfo":[16],"total":[2],"curPage":[2,"cur-page"],"limit":[2],"offset":[2],"filterdOdds":[1,"filterd-odds"],"isSearching":[4,"is-searching"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isLoading":[4,"is-loading"],"language":[513],"translationUrl":[513,"translation-url"],"isAscend":[32],"selectedGroupIndex":[32],"matchSelection":[32],"hasFillInSelection":[32],"initOddsChart":[64],"closeOddsChart":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"matchInfo":["handleMatchInfoChange"]}],[1,"lottery-oddsbom-ticket-selection",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketBoardInfo":[1040],"language":[513],"expanded":[32],"_ticketBoardInfo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoradInfoChange"]}],[1,"lottery-oddsbom-oddschart-input",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"value":[513],"getValue":[64],"clearValue":[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-oddsbom-bullet-group",{"selectionIdx":[514,"selection-idx"],"matchIdx":[514,"match-idx"],"bulletConfigs":[16],"bulletConfigsDeleteOrigin":[16],"addSelectionConfig":[16],"isDeleteByIcon":[516,"is-delete-by-icon"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bulletListClass":[1,"bullet-list-class"],"innerBulletConfigs":[32],"innerBulletConfigsDeleteOrigin":[32]},[[0,"oddsbomBulletToggle","oddsbomBulletToggleHandler"],[0,"oddsbomBulletDelete","oddsbomBulletDeleteHandler"],[0,"oddsbomBulletAddedByMoreBtnDelete","oddsbomBulletAddedByMoreBtnDeleteHandler"],[0,"oddsbomBulletCallDialog","handleOddsbomBulletCallDialog"]],{"bulletConfigs":["handleBulletConfigsChange"],"bulletConfigsDeleteOrigin":["handleBulletConfigsDeleteOriginChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-ticket-button",{"variant":[513],"size":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
19
+ return bootstrapLazy([["lottery-oddsbom-bullet_9",[[1,"lottery-oddsbom-ticket-bet",{"endpoint":[513],"gameId":[513,"game-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"playerId":[513,"player-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isLoadingOdds":[32],"isSubmitLoading":[32],"matchInfo":[32],"ticketBoardInfo":[32],"gameConfig":[32],"addSelectionConfig":[32],"gameInfo":[32],"dialogConfig":[32],"oddsData":[32],"oddsInfo":[32],"oddsQuery":[32],"saleStatisticsInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsBomBulletGroupToggle"],[0,"oddsbomBulletGroupAddedByMoreBtnDel","handleOddsBomBulletAddedByMoreBtnDelete"],[0,"oddsbomAddMoreToMatch","handleOddsBomAddMoreToMatch"],[0,"oddsbomBoardClear","handleOddsBomBoardClear"],[0,"oddschartFillIn","handleOddsChartFillIn"],[0,"oddsQueryChange","handleOddsQueryChange"],[0,"oddsQueryLineChange","handleOddsQueryLineChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoardInfoChange"],"canSubmit":["handleCanSubmitChange"]}],[1,"lottery-oddsbom-ticket-board",{"ticketBoardInfo":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"addSelectionConfig":[16],"bulletsConfig":[32],"isInputInvalid":[32],"errorMessage":[32],"dialogConfig":[32],"curAddMoreInfo":[32]},[[0,"oddsbomBulletGroupToggle","handleOddsbomBulletGroupToggle"],[0,"oddsbomBulletCallDialogFromGroup","handleOddsbomBulletCallDialogFromGroup"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-oddschart",{"matchInfo":[16],"oddsInfo":[16],"total":[2],"curPage":[2,"cur-page"],"limit":[2],"offset":[2],"filterdOdds":[1,"filterd-odds"],"isSearching":[4,"is-searching"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isLoading":[4,"is-loading"],"language":[513],"translationUrl":[513,"translation-url"],"isAscend":[32],"selectedGroupIndex":[32],"matchSelection":[32],"hasFillInSelection":[32],"initOddsChart":[64],"closeOddsChart":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"matchInfo":["handleMatchInfoChange"]}],[1,"lottery-oddsbom-ticket-selection",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketBoardInfo":[1040],"language":[513],"expanded":[32],"_ticketBoardInfo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketBoardInfo":["handleTicketBoradInfoChange"]}],[1,"lottery-oddsbom-oddschart-input",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"value":[513],"getValue":[64],"clearValue":[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"],"dialogClass":[1,"dialog-class"],"dialogStyle":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet-group",{"selectionIdx":[514,"selection-idx"],"matchIdx":[514,"match-idx"],"bulletConfigs":[16],"bulletConfigsDeleteOrigin":[16],"addSelectionConfig":[16],"isDeleteByIcon":[516,"is-delete-by-icon"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bulletListClass":[1,"bullet-list-class"],"innerBulletConfigs":[32],"innerBulletConfigsDeleteOrigin":[32]},[[0,"oddsbomBulletToggle","oddsbomBulletToggleHandler"],[0,"oddsbomBulletDelete","oddsbomBulletDeleteHandler"],[0,"oddsbomBulletAddedByMoreBtnDelete","oddsbomBulletAddedByMoreBtnDeleteHandler"],[0,"oddsbomBulletCallDialog","handleOddsbomBulletCallDialog"]],{"bulletConfigs":["handleBulletConfigsChange"],"bulletConfigsDeleteOrigin":["handleBulletConfigsDeleteOriginChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-ticket-button",{"variant":[513],"size":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
20
20
  });
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,g as o}from"./index-9dee9d86.js";import{s as n,a as s,b as d,c as a,t as l,d as r,r as c,f as h,g as m,M as b}from"./lottery-oddsbom-ticket-bet-32060989.js";export{L as lottery_oddsbom_ticket_bet}from"./lottery-oddsbom-ticket-bet-32060989.js";const p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var g=function(){return g=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},g.apply(this,arguments)},f={primaryColor:"#333",secondaryColor:"#E6E6E6"};function u(t,e){if(void 0===e&&(e={}),"function"==typeof t.icon){var i=e.placeholders||f;return y(t.icon(i.primaryColor,i.secondaryColor),e)}return y(t.icon,e)}function y(t,e){var i="svg"===t.tag?g(g({},t.attrs),e.extraSVGAttrs||{}):t.attrs,o=Object.keys(i).reduce((function(t,e){var o=i[e],n="".concat(e,'="').concat(o,'"');return t.push(n),t}),[]),n=o.length?" "+o.join(" "):"",s=(t.children||[]).map((function(t){return y(t,e)})).join("");return s&&s.length?"<".concat(t.tag).concat(n,">").concat(s,"</").concat(t.tag,">"):"<".concat(t.tag).concat(n," />")}const x=u({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},{extraSVGAttrs:{width:"18px",height:"18px",fill:""}}),v=class{constructor(i){t(this,i),this.oddsbomBulletToggleEvent=e(this,"oddsbomBulletToggle",7),this.oddsbomBulletDeleteEvent=e(this,"oddsbomBulletDelete",7),this.oddsbomBulletAddedByMoreBtnDeleteEvent=e(this,"oddsbomBulletAddedByMoreBtnDelete",7),this.oddsbomBulletCallDialogEvent=e(this,"oddsbomBulletCallDialog",7),this.isSelected=void 0,this.disabled=void 0,this.text=void 0,this.idx=void 0,this.isReading=void 0,this.isDeleteByIcon=void 0,this.isCallDialogBtn=void 0,this.isAddedByMoreBtn=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClick(){this.isCallDialogBtn?this.oddsbomBulletCallDialogEvent.emit():this.isDeleteByIcon?this.isAddedByMoreBtn?this.oddsbomBulletAddedByMoreBtnDeleteEvent.emit(this.text):this.oddsbomBulletDeleteEvent.emit(this.idx):this.disabled||this.oddsbomBulletToggleEvent.emit(this.idx)}render(){return i("div",{key:"e21cf46108e35dcbf7d65e8c6a5f12f5d5ae49cb",class:"OddsbomBullet",ref:t=>this.stylingContainer=t},i("button",{key:"4edf5cd481d8283bd71f6806b6f93949e1308095",class:{OddsbomBulletBtn__normal:!0,OddsbomBulletBtn__selected:this.isSelected,OddsbomBulletBtn__disabled:this.disabled,isDeleteByIcon:this.isDeleteByIcon,isCallDialogBtn:this.isCallDialogBtn||this.isReading},onClick:this.handleClick.bind(this),disabled:this.disabled},i("span",{key:"fa1aed0293dc004808e6992c069d6992317b0788",class:"OddsbomBullet--deleteIcon",innerHTML:x}),i("span",{key:"53ed96f2c2b833d21488049f987b6131718d563e",class:"OddsbomBullet--text"},this.text)))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};v.style=".OddsbomBullet .OddsbomBulletBtn__normal{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--emw--color-background, #fff);border:2px solid var(--emw--color-primary, #0d196e);border-radius:var(--emw--border-radius-medium, 8px);color:var(--emw--color-typography, #000);font-weight:bold;cursor:pointer;transition:transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease, background-color 0.3s;user-select:none;position:relative}.OddsbomBullet .OddsbomBulletBtn__normal:hover{transform:scale(1.15) rotate(-5deg);box-shadow:var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15)) 7px 6px 6px}.OddsbomBullet .OddsbomBulletBtn__normal .OddsbomBullet--deleteIcon{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover{background-color:var(--emw--color-background, #fff)}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--text{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--deleteIcon{display:inline;fill:var(--emw--color-typography, #000)}.OddsbomBullet .OddsbomBulletBtn__normal.isCallDialogBtn:hover{transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__selected{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-inverse, #fff);transform:scale(1.05);box-shadow:0 5px 10px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled{background-color:var(--emw--color-gray-50, #f5f5f5);border-color:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-150, #6f6f6f);cursor:not-allowed;transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled:hover{transform:none;box-shadow:none}";const w=class{constructor(i){t(this,i),this.addSelectionEvent=e(this,"addSelection",7),this.deleteSelectionEvent=e(this,"deleteSelection",7),this.deleteSelectionOriginEvent=e(this,"deleteSelectionOrigin",7),this.oddsbomBulletGroupToggleEvent=e(this,"oddsbomBulletGroupToggle",7),this.oddsbomBulletGroupAddedByMoreBtnDelEvent=e(this,"oddsbomBulletGroupAddedByMoreBtnDel",7),this.oddsbomBulletCallDialogFromGroupEvent=e(this,"oddsbomBulletCallDialogFromGroup",7),this.selectionIdx=void 0,this.matchIdx=void 0,this.bulletConfigs=[],this.bulletConfigsDeleteOrigin=[],this.addSelectionConfig=void 0,this.isDeleteByIcon=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.bulletListClass=void 0,this.innerBulletConfigs=void 0,this.innerBulletConfigsDeleteOrigin=void 0}handleBulletConfigsChange(t){this.innerBulletConfigs=t.map((t=>Object.assign({},t)))}handleBulletConfigsDeleteOriginChange(t){this.innerBulletConfigsDeleteOrigin=t.map((t=>Object.assign({},t)))}componentWillLoad(){this.handleBulletConfigsChange(this.bulletConfigs)}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}oddsbomBulletToggleHandler(t){const e=t.detail,{matchIdx:i,selectionIdx:o}=this,n=[...this.innerBulletConfigs],s=Object.assign({},n[e]);s.isSelected=!s.isSelected,n[e]=s,this.innerBulletConfigs=n,this.oddsbomBulletGroupToggleEvent.emit({bulletSelctionArr:this.innerBulletConfigs,matchIdx:i,selectionIdx:o})}oddsbomBulletDeleteHandler(t){const e=t.detail,{matchIdx:i,selectionIdx:o}=this,n=[...this.innerBulletConfigsDeleteOrigin],s=Object.assign({},n[e]);s.isSelected=!s.isSelected,n[e]=s,this.innerBulletConfigsDeleteOrigin=n,this.oddsbomBulletGroupToggleEvent.emit({bulletSelctionArr:this.innerBulletConfigsDeleteOrigin,matchIdx:i,selectionIdx:o})}oddsbomBulletAddedByMoreBtnDeleteHandler(t){const e=t.detail,{matchIdx:i,selectionIdx:o}=this;this.oddsbomBulletGroupAddedByMoreBtnDelEvent.emit({delText:e,matchIdx:i,selectionIdx:o})}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleOddsbomBulletCallDialog(){const{matchIdx:t,selectionIdx:e}=this;this.oddsbomBulletCallDialogFromGroupEvent.emit({matchIdx:t,selectionIdx:e})}render(){return i("div",{key:"38102a447cf8fafc8f7a7e5a122c7ccbc2ce8b4a",class:"oddsbomBulletGroup",ref:t=>this.stylingContainer=t},i("div",{key:"59ca1df498575356eb3438b45e9431b1bc7ee2dd",class:`oddsbomBulletGroup-list ${this.bulletListClass||""}`},this.innerBulletConfigs.map((t=>i("lottery-oddsbom-bullet",t.isAddMoreBtn?{text:`${this.addSelectionConfig.maxOverScore}+`,disabled:t.isDisabled,isCallDialogBtn:!0,onOddsbomBulletCallDialog:this.handleOddsbomBulletCallDialog.bind(this)}:{text:t.text,idx:t.idx,isSelected:t.isSelected,disabled:t.isDisabled,isDeleteByIcon:this.isDeleteByIcon,isAddedByMoreBtn:t.isAddedByMoreBtn})))))}static get watchers(){return{bulletConfigs:["handleBulletConfigsChange"],bulletConfigsDeleteOrigin:["handleBulletConfigsDeleteOriginChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};w.style=".oddsbomBulletGroup{width:100%}.oddsbomBulletGroup .oddsbomBulletGroup-list{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.oddsbomBulletGroup .selection-bullet-list{justify-content:flex-end}";const k=u({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),S=u(p,{extraSVGAttrs:{width:"18px",height:"18px",fill:"#0d196e"}}),C=u(p,{extraSVGAttrs:{width:"16px",height:"16px",fill:"#1367e7"}}),B=u({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),O=u({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),I=class{constructor(i){t(this,i),this.oddsQueryLineChangeEvent=e(this,"oddsQueryLineChange",7),this.oddschartFillInEvent=e(this,"oddschartFillIn",7),this.oddsQueryChangeEvent=e(this,"oddsQueryChange",7),this.handleSearch=async()=>{const t=this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input"),e=await Promise.all(Array.from(t).map((t=>t.getValue())));if(e.length!=2*this.matchInfo.length)return void a({theme:"warning",message:l("pleaseFillIn",this.language)});const i=[...this.matchSelection],o=[];for(let t=0;t<e.length;t+=2){const n=e[t],s=e[t+1],d=t/2;n&&s&&(o.push([[`${n}:${s}`]]),i[d]=[n,s])}if(this.matchSelection=[...i],o.length>0){const t=await r(JSON.stringify(o));this.oddsQueryLineChangeEvent.emit({lineSelectionBase64:t,offset:0}),this.hasFillInSelection=!0}},this.handleGroupClick=t=>{this.selectedGroupIndex=t},this.toggleFilterIcon=()=>{this.isAscend=!this.isAscend,this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({ascending:this.isAscend,offset:0,lineSelectionBase64:""})},this.handlePrevPage=()=>{this.curPage>=1&&(this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({offset:this.offset-this.limit,lineSelectionBase64:""}))},this.handleNextPage=()=>{this.curPage<this.totalPage-1&&(this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({offset:this.offset+this.limit,lineSelectionBase64:""}))},this.matchInfo=void 0,this.oddsInfo=void 0,this.total=void 0,this.curPage=void 0,this.limit=void 0,this.offset=void 0,this.filterdOdds=void 0,this.isSearching=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.isLoading=!1,this.language="en",this.translationUrl="",this.isAscend=!0,this.selectedGroupIndex=-1,this.matchSelection=[],this.hasFillInSelection=!1}async initOddsChart(){this.oddsQueryChangeEvent.emit({offset:0,ascending:!0,lineSelectionBase64:""})}async closeOddsChart(){this.hasFillInSelection=!1,this.selectedGroupIndex=-1,this.matchSelection=[],this.isAscend=!0,this.matchItemsContainer&&this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input").forEach((t=>{t.clearValue()}))}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}handleMatchInfoChange(t){this.matchSelection=t.map((()=>[-1,-1]))}componentWillLoad(){this.translationUrl&&c(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}get totalPage(){return Math.ceil(this.total/this.limit)}generateBulletGroup(t,e,o){let n;try{n=JSON.parse(t)}catch(t){return console.error("Failed to parse line JSON:",t),i("div",{class:"error-message"},"Invalid data format")}let s=n.map((t=>t[0])).map((t=>t[0]));const d=this.selectedGroupIndex===o;return i("div",{class:"oddsbom-oddschart-selection--group",onClick:this.handleGroupClick.bind(this,o)},i("div",{class:"oddsbom-oddschart-selection--group-wrap",style:{flexBasis:160*s.length+"px"}},s.map(((t,e)=>{const o=t.split(":");return i("div",{class:"oddsbom-oddschart-selection-item",key:e},i("div",{class:"oddsbom-oddschart-selection-item--1"},i("lottery-oddsbom-bullet",{text:o[0],"is-reading":!0,"is-selected":d})),i("div",{class:"oddsbom-oddschart-selection-item--2"},i("lottery-oddsbom-bullet",{text:o[1],"is-reading":!0,"is-selected":d})))}))),i("div",{class:"oddsbom-oddschart-selection-odds"},i("div",{class:"oddsbom-oddschart-selection-odds--text"},h(e)),d&&i("div",{class:"oddsbom-oddschart-selection-odds--fillIn"},i("lottery-oddsbom-ticket-button",{text:l("fillIn",this.language),size:"small",variant:"outline",onClick:this.handleFillIn.bind(this,s),language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))))}handleFillIn(t){this.oddschartFillInEvent.emit({fillInNums:t})}clearMatchSelection(){this.hasFillInSelection=!1,this.matchItemsContainer&&this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input").forEach((t=>{t.clearValue()}))}fillInMatchSelection(){const t=[];this.matchSelection.forEach((e=>{t.push(`${e[0]}:${e[1]}`)})),this.handleFillIn(t)}render(){var t,e;return i("div",{key:"b160d1870184937cdd013a233a4841545d8f769a",class:"oddsbom-oddschart",ref:t=>this.stylingContainer=t},(null===(t=this.matchInfo)||void 0===t?void 0:t.length)&&(null===(e=this.oddsInfo)||void 0===e?void 0:e.length)?this.matchInfo&&i("div",{class:"oddsbom-oddschart-container"},i("div",{class:"oddsbom-oddschart-wrap"},i("div",{class:"oddsbom-oddschart-match",ref:t=>this.matchItemsContainer=t},this.matchInfo.map(((t,e)=>i("div",{class:"oddsbom-oddschart-match-item",key:e},i("div",{class:"oddsbom-oddschart-match-item-name"},i("div",{class:"oddsbom-oddschart-match-item-name--home"},`${e+1}. ${t.eventName.split("vs")[0]}`),i("div",{class:"oddsbom-oddschart-match-item-name--delimiter"},"vs"),i("div",{class:"oddsbom-oddschart-match-item-name--away"},`${t.eventName.split("vs")[1]}`)),i("div",{class:"oddsbom-oddschart-match-item-input"},i("lottery-oddsbom-oddschart-input",null),i("lottery-oddsbom-oddschart-input",null))))),i("div",{class:"oddsbom-oddschart-match-search"},i("lottery-oddsbom-ticket-button",{text:l("search",this.language),variant:"outline",onClick:this.handleSearch}))),this.hasFillInSelection&&!this.isSearching&&(this.filterdOdds?i("div",{class:"oddsbom-oddschart-input-wrap"},i("div",{class:"oddsbom-oddschart-input"},this.matchSelection.map((t=>i("div",{class:"oddsbom-oddschart-input-item"},i("lottery-oddsbom-bullet",{text:t[0],"is-reading":!0,"is-selected":!0}),i("lottery-oddsbom-bullet",{text:t[1],"is-reading":!0,"is-selected":!0})))),i("div",{class:"oddsbom-oddschart-input-odds"},h(this.filterdOdds))),i("div",{class:"oddsbom-oddschart-input-operation"},i("lottery-oddsbom-ticket-button",{text:l("clear",this.language),variant:"outline",size:"small",onClick:this.clearMatchSelection.bind(this)}),i("lottery-oddsbom-ticket-button",{text:l("fillIn",this.language),variant:"outline",size:"small",onClick:this.fillInMatchSelection.bind(this)}))):i("div",{class:"oddsbom-oddschart-input-empty"},i("div",null,i("span",{innerHTML:C,style:{marginRight:"6px",height:"16px"}}),i("span",{style:{fontSize:"14px"}},l("noBets",this.language))),i("div",{class:"oddsbom-oddschart-input-empty-operation"},i("lottery-oddsbom-ticket-button",{text:l("clear",this.language),variant:"text",size:"small",onClick:this.clearMatchSelection.bind(this)}),i("lottery-oddsbom-ticket-button",{text:l("fillIn",this.language),variant:"text",size:"small",onClick:this.fillInMatchSelection.bind(this)})))),i("div",{class:"oddsbom-oddschart-match-filter"},(this.isLoading||this.isSearching)&&i("div",{class:"progress-bar"}),i("span",{onClick:this.toggleFilterIcon,class:"arrow "+(this.isAscend?"ascend":""),innerHTML:k})),i("div",{class:"oddsbom-oddschart-selection"},this.oddsInfo.map(((t,e)=>this.generateBulletGroup(t.lineSelection,t.odds,e)))),i("div",{class:"oddsbom-oddschart-pagination"},i("div",{class:"oddsbom-oddschart-pagination-wrap"},i("div",{class:"oddsbom-oddschart-pagination-prev "+(this.curPage<1?"disabled":""),onClick:this.handlePrevPage},i("div",{class:"oddsbom-oddschart-pagination-icon",innerHTML:B})),i("div",{class:"oddsbom-oddschart-pagination-page"},`${this.curPage+1} / ${this.totalPage}`),i("div",{class:"oddsbom-oddschart-pagination-next "+(this.curPage>=this.totalPage-1?"disabled":""),onClick:this.handleNextPage},i("div",{class:"oddsbom-oddschart-pagination-icon",innerHTML:O})))))):i("div",{class:"empty-wrap"},i("span",{innerHTML:S,style:{marginRight:"6px",height:"18px"}}),i("span",{class:"empty-wrap-text",style:{fontSize:"18px"}},l("noBets",this.language))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],matchInfo:["handleMatchInfoChange"]}}};I.style='.oddsbom-oddschart {\n container-type: inline-size;\n}\n.oddsbom-oddschart-container {\n position: relative;\n}\n.oddsbom-oddschart-match {\n display: flex;\n align-items: flex-end;\n margin-bottom: 4px;\n}\n.oddsbom-oddschart-match-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n flex-basis: 160px;\n}\n.oddsbom-oddschart-match-item-name {\n margin-bottom: 8px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.oddsbom-oddschart-match-item-name--home, .oddsbom-oddschart-match-item-name--away, .oddsbom-oddschart-match-item-name--delimiter {\n font-size: 13px;\n height: 16px;\n line-height: 16px;\n overflow: hidden;\n color: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-match-item-input {\n display: flex;\n justify-content: space-between;\n}\n.oddsbom-oddschart-match-search {\n flex-basis: 130px;\n text-align: center;\n}\n.oddsbom-oddschart-match-filter {\n display: flex;\n justify-content: flex-end;\n padding: 2px;\n position: relative;\n padding-top: 4px;\n border-top: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbom-oddschart-input {\n display: flex;\n margin-top: 4px;\n}\n.oddsbom-oddschart-input-empty {\n padding: 12px;\n border: 1px solid var(--emw--color-primary-variant, #1367e7);\n background-color: var(--emw--color-tertiary, #e3f2fd);\n width: 50%;\n min-width: 240px;\n max-width: 360px;\n margin: 4px auto;\n border-radius: 6px;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n}\n.oddsbom-oddschart-input-empty-operation {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-top: 4px;\n}\n.oddsbom-oddschart-input-wrap {\n display: flex;\n flex-direction: column;\n gap: 10px;\n margin-bottom: 4px;\n}\n.oddsbom-oddschart-input-item {\n display: flex;\n align-items: center;\n flex-basis: 160px;\n justify-content: center;\n gap: 5px;\n}\n.oddsbom-oddschart-input-odds {\n flex-basis: 130px;\n display: flex;\n align-items: center;\n font-size: 14px;\n text-indent: 16px;\n}\n.oddsbom-oddschart-input-operation {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 20px;\n}\n.oddsbom-oddschart-selection--group {\n display: flex;\n margin-bottom: 8px;\n}\n.oddsbom-oddschart-selection--group-wrap {\n display: flex;\n border-radius: 4px;\n}\n.oddsbom-oddschart-selection--group-wrap:hover {\n background: var(--emw--color-gray-50, #f5f5f5);\n cursor: pointer;\n}\n.oddsbom-oddschart-selection-item {\n display: flex;\n flex-basis: 160px;\n justify-content: center;\n gap: 10px;\n}\n.oddsbom-oddschart-selection-odds {\n display: flex;\n gap: 12px;\n align-items: center;\n flex-basis: 130px;\n position: relative;\n text-indent: 16px;\n}\n.oddsbom-oddschart-selection-odds--text {\n font-size: 14px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-selection-odds--fillIn {\n position: absolute;\n right: 0;\n}\n@container (max-width: 430px) {\n .oddsbom-oddschart .oddsbom-oddschart-selection-odds {\n text-indent: unset;\n }\n .oddsbom-oddschart .oddsbom-oddschart-selection-odds--fillIn {\n right: -22px;\n }\n .oddsbom-oddschart .oddsbom-oddschart-selection-item {\n gap: 4px;\n }\n}\n.oddsbom-oddschart .arrow {\n transition: transform 0.3s ease;\n font-size: 16px;\n display: inline-flex;\n cursor: pointer;\n fill: var(--emw--color-typography, #000);\n display: flex;\n justify-content: center;\n flex-basis: 130px;\n}\n.oddsbom-oddschart .arrow.ascend {\n transform: rotate(180deg);\n}\n\n.empty-wrap {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.empty-wrap-text {\n color: var(--emw--color-typography, #000);\n}\n\n.oddsbom-oddschart-pagination {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-top: 10px;\n padding-right: 16px;\n}\n.oddsbom-oddschart-pagination-wrap {\n display: flex;\n align-items: center;\n gap: 12px;\n height: 18px;\n}\n.oddsbom-oddschart-pagination-prev, .oddsbom-oddschart-pagination-next {\n cursor: pointer;\n}\n.oddsbom-oddschart-pagination-prev.disabled, .oddsbom-oddschart-pagination-next.disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.oddsbom-oddschart-pagination-icon {\n display: flex;\n height: 18px;\n align-items: center;\n fill: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-pagination-page {\n font-size: 14px;\n color: var(--emw--color-typography, #000);\n}\n\n.progress-bar {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 2px;\n background-color: var(--emw--color-gray-100, #e6e6e6);\n overflow: hidden;\n}\n.progress-bar::after {\n content: "";\n display: block;\n width: 20%;\n height: 100%;\n background-color: var(--emw--color-primary, #0d196e);\n animation: progress 1.5s linear infinite;\n}\n\n@keyframes progress {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(500%);\n }\n}';const _=class{constructor(i){t(this,i),this.valueChange=e(this,"valueChange",7),this.handleInputChange=t=>{const e=t.target.value.trim();this.valueChange.emit(e)},this.handleKeyDown=t=>{"Enter"===t.key&&this.inputElement.blur()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.value=""}async getValue(){return this.inputElement.value}async clearValue(){this.inputElement&&(this.inputElement.value=""),this.value=""}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return i("div",{key:"eb973f7978b7452788f72a43da5424abbe845361",class:"oddscharts-input",ref:t=>this.stylingContainer=t},i("input",{key:"f24fba10175b944af328b71f8e257d8ad1386af2",ref:t=>this.inputElement=t,type:"text",inputMode:"numeric",value:this.value,onInput:this.handleInputChange,onKeyDown:this.handleKeyDown,autocomplete:"one-time-code"}))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};_.style=".oddscharts-input{display:inline-flex;padding:2px}.oddscharts-input input{width:32px;height:32px;text-align:center;font-size:14px;font-weight:bold;line-height:32px;border:2px solid var(--emw--color-gray-100, #e6e6e6);border-radius:4px;padding:0;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000);text-transform:uppercase}.oddscharts-input input:focus{outline:none;border-color:var(--emw--color-primary, #0d196e);box-shadow:0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));border-width:2px}.oddscharts-input input:disabled{background-color:var(--emw--color-gray-50, #f5f5f5);border-color:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-150, #6f6f6f);cursor:not-allowed}.oddscharts-input input.error{border-color:var(--emw--color-error, #ff3d00)}.oddscharts-input input.error:focus{box-shadow:0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}";const j=class{constructor(i){t(this,i),this.oddsbomBoardClearEvent=e(this,"oddsbomBoardClear",7),this.oddsbomAddMoreToMatchEvent=e(this,"oddsbomAddMoreToMatch",7),this.ticketBoardInfo=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.translationUrl="",this.addSelectionConfig=void 0,this.bulletsConfig=void 0,this.isInputInvalid=!1,this.errorMessage="",this.dialogConfig={width:"400px",visible:!1,onConfirm:()=>this.handleFillInAddMore(),onCancel:()=>this.handleCloseAddMoreDialog()},this.curAddMoreInfo={matchIdx:0,selectionIdx:0,value:""}}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this.translationUrl&&m(JSON.parse(this.translationUrl))}handleOddsbomBulletGroupToggle(t){const{bulletConfigArr:e}=t.detail;this.bulletsConfig=e}handleOddsbomBulletCallDialogFromGroup(t){const{matchIdx:e,selectionIdx:i}=t.detail;this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{matchIdx:e,selectionIdx:i}),this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!0})}handleFillInAddMore(){if(this.isInputInvalid)return void this.handleCloseAddMoreDialog();const{matchIdx:t,selectionIdx:e,value:i}=this.curAddMoreInfo;this.oddsbomAddMoreToMatchEvent.emit({matchIdx:t,selectionIdx:e,value:i}),this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:""})}handleCloseAddMoreDialog(){this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:""}),this.isInputInvalid=!1,this.errorMessage=""}handleClearAllSelection(){this.oddsbomBoardClearEvent.emit(),a({message:l("selectionCleared",this.language),renderOne:!0})}validateInput(t){const e=Number(t);if(isNaN(e))return this.isInputInvalid=!0,void(this.errorMessage=l("enterValidNumber",this.language));if(e<b||e>this.addSelectionConfig.maxScore)return this.isInputInvalid=!0,void(this.errorMessage=l("enterNumberBetween",this.language,{min:b,max:this.addSelectionConfig.maxScore}));const{matchIdx:i,selectionIdx:o}=this.curAddMoreInfo;if(this.ticketBoardInfo[i].addSelections[o].some((e=>Number(e)===Number(t))))return this.isInputInvalid=!0,void(this.errorMessage=l("numberAlreadySelected",this.language));this.isInputInvalid=!1,this.errorMessage=""}handleInputChange(t){const e=t.target.value;this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:e}),this.validateInput(e)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return i("div",{key:"58b83bb2222b715e093fae83b28488e9aadbbbd9",class:"oddsbomTicketBoard",ref:t=>this.stylingContainer=t},i("div",{key:"713493a9e82abf4585f911f91757180cdea7f212",class:"oddsbomTicketBoard-btn"},i("lottery-oddsbom-ticket-button",{key:"7277db6f5372d2775bf30b69540f090e8076192c",onClick:this.handleClearAllSelection.bind(this),text:l("clearAll",this.language),variant:"outline"})),this.ticketBoardInfo.length?i("div",{class:"oddsbomTicketBoard-list"},this.ticketBoardInfo.map(((t,e)=>i("div",{class:"oddsbomTicketBoard-item"},i("div",{class:"oddsbomTicketBoard-item-header"},`${e+1}. ${t.matchName}`),i("div",{class:"oddsbomTicketBoard-item-match"},i("div",{class:"oddsbomTicketBoard-item-match--left"},t.matchName.split("vs")[0]),i("div",{class:"oddsbomTicketBoard-item-match--right"},i("lottery-oddsbom-bullet-group",{bulletConfigs:t.selections[0],selectionIdx:0,matchIdx:e,addSelectionConfig:this.addSelectionConfig}))),i("div",{class:"oddsbomTicketBoard-item-match"},i("div",{class:"oddsbomTicketBoard-item-match--left"},t.matchName.split("vs")[1]),i("div",{class:"oddsbomTicketBoard-item-match--right"},i("lottery-oddsbom-bullet-group",{bulletConfigs:t.selections[1],selectionIdx:1,matchIdx:e,addSelectionConfig:this.addSelectionConfig}))))))):i("div",{class:"oddsbomTicketBoard-noData"},l("noTicketBoard",this.language)),i("lottery-tipping-dialog",{key:"23b77482869ae9d539281279f897a5e421a23611",visible:this.dialogConfig.visible,width:this.dialogConfig.width,onCancel:this.handleCloseAddMoreDialog.bind(this)},i("div",{key:"aaa92cd6b0fff37031040e04083c826e642ec0f1",class:"addSelectionDialog"},i("div",{key:"8f52ac9acb648171638061d049892085cf5f648f",class:"addSelectionDialog-title"},l("enterScoreUpTo",this.language,{maxScore:this.addSelectionConfig.maxScore})),i("input",{key:"50db2d0d62fddabbf92c75f044635babfb102e00",type:"text",class:{"dialog-input":!0,invalid:this.isInputInvalid},value:this.curAddMoreInfo.value,onInput:this.handleInputChange.bind(this)}),i("div",{key:"710aacdcd1589af9ec50485f637744199807427c",class:"error-message"},this.errorMessage)),i("div",{key:"9c9ce1cbae02a5723d5261862e930afc3613b567",slot:"footer",class:"addSelectionDialog-footer"},i("lottery-oddsbom-ticket-button",{key:"fa4e9d024929f0485ea2099515a1b6b93eabf6b8",onClick:this.dialogConfig.onCancel,text:l("cancel",this.language),variant:"outline"}),i("lottery-oddsbom-ticket-button",{key:"91c1c08b3183d1c328fcc9d79ceda4ba0039f1c3",onClick:this.dialogConfig.onConfirm,text:l("confirm",this.language),variant:"primary",disabled:!this.curAddMoreInfo.value||this.isInputInvalid}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};j.style=".oddsbomTicketBoard {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n container-type: inline-size;\n min-height: 220px;\n}\n.oddsbomTicketBoard-noData {\n display: flex;\n justify-content: center;\n height: 200px;\n align-items: center;\n}\n.oddsbomTicketBoard-btn {\n display: flex;\n justify-content: flex-end;\n margin: 16px;\n margin-bottom: unset;\n}\n.oddsbomTicketBoard-item {\n display: flex;\n gap: 16px;\n flex-direction: column;\n padding: 24px;\n}\n.oddsbomTicketBoard-item:not(:last-child) {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomTicketBoard-item-header {\n font-weight: bold;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBoard-item-match {\n display: flex;\n align-items: center;\n}\n.oddsbomTicketBoard-item-match--left {\n width: 130px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBoard-item-match--right {\n flex: 1;\n display: flex;\n align-items: center;\n gap: 12px;\n justify-content: space-evenly;\n}\n@container (max-width: 320px) {\n .oddsbomTicketBoard-item-match--left {\n width: 100px;\n max-width: 100px;\n }\n}\n\n.dialog-input {\n width: 100%;\n padding: 8px;\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n box-sizing: border-box;\n margin-top: 10px;\n}\n\n.dialog-input.invalid,\n.dialog-input.invalid:focus {\n border-color: var(--emw--color-error, #ff3d00);\n outline-color: var(--emw--color-error, #ff3d00);\n}\n\n.error-message {\n color: var(--emw--color-error, #ff3d00);\n font-size: 12px;\n margin-top: 4px;\n}\n\n.addSelectionDialog-title {\n color: var(--emw--color-typography, #000);\n}\n.addSelectionDialog-footer {\n display: flex;\n justify-content: flex-end;\n gap: 18px;\n}";const M=class{constructor(e){t(this,e),this.handleClick=t=>{if(this.disabled)return;const e=this.host.shadowRoot.querySelector(".btn");if(!e)return;const i=e.getBoundingClientRect(),o=Math.max(i.width,i.height),n={top:t.clientY-i.top-o/2,left:t.clientX-i.left-o/2,size:o};this.ripples=[...this.ripples,n],setTimeout((()=>{this.ripples=this.ripples.filter((t=>t!==n))}),600)},this.variant="primary",this.size="medium",this.disabled=!1,this.loading=!1,this.text=void 0,this.mbSource=void 0,this.language="en",this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.ripples=[]}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){this.translationUrl&&c(this.translationUrl)}render(){const{variant:t,disabled:e,size:o}=this,n=e||this.loading;return i("button",{key:"c0c87c36c7c3f48286729c9133eded8338f137be",class:{btn:!0,[`btn--${t}`]:!0,[`btn--${o}`]:!0,"btn--loading":this.loading},disabled:n,onClick:this.handleClick},this.loading?i("div",{class:"loading-container"},i("span",{class:"content"},this.text||l("loading",this.language)),i("span",{class:"spinner"})):i("span",{class:"content"},this.text),i("div",{key:"8276ad215063ef4217b11f65fb189d6fcccd1f24",class:"ripple-container"},this.ripples.map(((t,e)=>i("span",{key:e,class:"ripple",style:{top:`${t.top}px`,left:`${t.left}px`,width:`${t.size}px`,height:`${t.size}px`}})))))}get host(){return o(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};M.style=':host{display:inline-block;font-family:"PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif}.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;font-weight:500;cursor:pointer;outline:none;overflow:hidden;transition:background-color 0.2s, border-color 0.2s, color 0.2s;user-select:none;-webkit-tap-highlight-color:transparent}.btn .content{position:relative}.btn:disabled{cursor:not-allowed;opacity:0.5}.btn .loading-container{display:flex;align-items:center}.btn--loading{position:relative}.btn .spinner{display:inline-block;width:1em;height:1em;border:2px solid rgba(255, 255, 255, 0.3);border-radius:50%;border-top-color:white;animation:spin 1s ease-in-out infinite;margin-left:0.5em;vertical-align:middle}.btn--small .spinner{width:0.8em;height:0.8em}.btn--large .spinner{width:1.2em;height:1.2em}@keyframes spin{to{transform:rotate(360deg)}}.btn--primary{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-inverse, #fff)}.btn--primary:hover:not(:disabled){background-color:var(--emw--color-primary-variant, #1367e7)}.btn--primary:active:not(:disabled){background-color:#08104a}.btn--outline .spinner,.btn--dashed .spinner,.btn--text .spinner{border-top-color:currentColor;border-color:rgba(0, 0, 0, 0.2)}.btn--outline{background-color:var(--emw--color-background, #fff);border-color:#dcdcdc;color:var(--emw--color-typography, #000)}.btn--outline:hover:not(:disabled){background-color:var(--emw--color-background-tertiary, #ccc);border-color:#a6a6a6}.btn--outline:active:not(:disabled){background-color:#e6e6e6}.btn--dashed{background-color:transparent;border-style:dashed;border-color:#dcdcdc;color:#333}.btn--dashed:hover:not(:disabled){border-color:#a6a6a6;color:#0052d9}.btn--text{background-color:transparent;color:#0052d9;border-color:transparent}.btn--text:hover:not(:disabled){background-color:#f2f2f2}.btn--text:active:not(:disabled){background-color:#e6e6e6}.btn--small{height:28px;font-size:12px;padding:0 12px}.btn--medium{height:34px;font-size:14px;padding:0 18px}.btn--large{height:40px;font-size:16px;padding:0 24px}.ripple-container{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit}.ripple{position:absolute;border-radius:50%;background-color:rgba(255, 255, 255, 0.3);transform:scale(0);animation:ripple-animation 600ms linear}.btn--outline .ripple,.btn--dashed .ripple,.btn--text .ripple{background-color:rgba(0, 0, 0, 0.1)}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}';const z=u({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),D=class{constructor(e){t(this,e),this.togglePanel=()=>{this.expanded=!this.expanded},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.ticketBoardInfo=void 0,this.language="en",this.expanded=!1,this._ticketBoardInfo=[]}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this._ticketBoardInfo=JSON.parse(JSON.stringify(this.ticketBoardInfo))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleTicketBoradInfoChange(t){this._ticketBoardInfo=JSON.parse(JSON.stringify(t))}generateMatchItemSelection(t,e,o,n,s,d,a){return i("div",{class:"oddsbomSelection-item"},i("div",{class:"oddsbomSelection-item-number"},o+1),i("div",{class:"oddsbomSelection-item-selection"},i("div",{class:"oddsbomSelection-item-team"},i("div",{class:"oddsbomSelection-item-team-name"},t),i("div",{class:"oddsbomSelection-item-team-selection"},i("lottery-oddsbom-bullet-group",{bulletConfigs:n,selectionIdx:0,matchIdx:o,bulletConfigsDeleteOrigin:d,isDeleteByIcon:!0,bulletListClass:"selection-bullet-list"}))),i("div",{class:"oddsbomSelection-item-team"},i("div",{class:"oddsbomSelection-item-team-name"},e),i("div",{class:"oddsbomSelection-item-team-selection"},i("lottery-oddsbom-bullet-group",{bulletConfigs:s,selectionIdx:1,matchIdx:o,bulletConfigsDeleteOrigin:a,isDeleteByIcon:!0,bulletListClass:"selection-bullet-list"})))))}generateSelectionList(){return this._ticketBoardInfo?this._ticketBoardInfo.map(((t,e)=>{var i,o,n,s;const{matchName:d,selections:a}=t,l=d.split("vs")[0],r=d.split("vs")[1],c=a[0].filter((t=>t.isSelected)),h=a[1].filter((t=>t.isSelected)),m=null!==(o=null===(i=t.addSelections)||void 0===i?void 0:i[0])&&void 0!==o?o:[],b=null!==(s=null===(n=t.addSelections)||void 0===n?void 0:n[1])&&void 0!==s?s:[];return m.length>0&&m.forEach((t=>{c.push({text:t,idx:-1,isSelected:!0,isDisabled:!1,isAddedByMoreBtn:!0})})),b.length>0&&b.forEach((t=>{h.push({text:t,idx:-1,isSelected:!0,isDisabled:!1,isAddedByMoreBtn:!0})})),this.generateMatchItemSelection(l,r,e,c,h,a[0],a[1])})):null}render(){return i("div",{key:"8e359b773654d6a1632f69837009ccc29d547561",class:"oddsbomSelection",ref:t=>this.stylingContainer=t},i("div",{key:"93c2575de9e70759118f4d4702f356322c2bcb88",class:"oddsbomSelection-panel"},i("div",{key:"2df0bf1be465b9baa00f44052c623071f78d799d",class:"oddsbomSelection-panel--header",onClick:this.togglePanel},i("div",{key:"c32a79afcab02f683ffb8abc26395e098b080939",class:"oddsbomSelection-panel--header-title"},l("myChoices",this.language)),i("div",{key:"de2b875b0fc538212d15cb7dde2c95b10d49665a",class:"oddsbomSelection-panel--header-icon "+(this.expanded?"expanded":""),innerHTML:z})),i("div",{key:"4a51e00f8ab67d9ab6c1cfd25d47f93c79d7a4bf",class:"oddsbomSelection-panel--content "+(this.expanded?"open":"closed")},i("div",{key:"9f9575c3bb176769cee836c9cf027fc76580b367",class:"oddsbomSelection-panel--content-thead"},i("div",{key:"3dd762c94c915afc9f14b38fdaec73a42b56004e",class:"oddsbomSelection-panel--content-thead-item"},l("teams",this.language)),i("div",{key:"2ea960a6db72e11a7e9157871f70769174f722f0",class:"oddsbomSelection-panel--content-thead-item"},l("scores",this.language))),i("div",{key:"847ef04f0a9e289c796a856c3d16bebc83d2d188",class:"oddsbomSelection-panel--content-tbody"},this.generateSelectionList()))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoradInfoChange"]}}};D.style=".oddsbomSelection {\n container-type: inline-size;\n}\n.oddsbomSelection-panel--header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n height: 40px;\n padding: 0 4px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-panel--header:hover {\n background-color: var(--emw--color-background-tertiary, #ccc);\n border-radius: 4px;\n}\n.oddsbomSelection-panel--header-title {\n font-size: 16px;\n font-weight: 600;\n user-select: none;\n}\n.oddsbomSelection-panel--header-icon {\n transition: transform 0.2s;\n}\n.oddsbomSelection-panel--header-icon.expanded {\n transform: rotate(180deg);\n}\n.oddsbomSelection-panel--content {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.3s ease, padding 0.3s ease;\n padding: 0 12px;\n font-size: 14px;\n user-select: none;\n}\n.oddsbomSelection-panel--content.open {\n max-height: 19000px;\n padding: 10px 12px;\n background-color: var(--emw--color-background, #fff);\n}\n.oddsbomSelection-panel--content.closed {\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n}\n.oddsbomSelection-panel--content-thead {\n display: flex;\n justify-content: space-between;\n padding: 0 24px;\n margin-bottom: 12px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-panel--content-tbody {\n padding: 0 18px;\n}\n.oddsbomSelection-item {\n display: flex;\n justify-content: space-between;\n position: relative;\n padding: 8px;\n}\n.oddsbomSelection-item:not(:last-child) {\n border-bottom: 1px dashed var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomSelection-item-number {\n position: absolute;\n left: -18px;\n top: 48%;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-item-selection {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.oddsbomSelection-item-team {\n display: flex;\n justify-content: space-between;\n align-items: center;\n min-height: 32px;\n color: var();\n}\n.oddsbomSelection-item-team-name {\n max-width: 140px;\n width: 140px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-item-team-selection {\n display: flex;\n gap: 6px;\n flex: 1;\n justify-content: flex-end;\n}\n@container (max-width: 430px) {\n .oddsbomSelection-item-team-name {\n max-width: 80px;\n width: 80px;\n }\n}\n\n.oddsbomSelection-panel--header-icon {\n fill: var(--emw--color-typography, #000);\n}";const T=["ro","en","fr","ar","hr"],$={en:{cancel:"Cancel",confirm:"Confirm"},ro:{cancel:"Anulează",confirm:"Confirmă"},fr:{cancel:"Annuler",confirm:"Confirmer"},ar:{cancel:"إلغاء",confirm:"تأكيد"},hr:{cancel:"Odustani",confirm:"Potvrdi"}},U=(t,e)=>{const i=e;return $[void 0!==i&&T.includes(i)?i:"en"][t]},A=class{constructor(i){t(this,i),this.open=e(this,"open",7),this.close=e(this,"close",7),this.confirm=e(this,"confirm",7),this.cancel=e(this,"cancel",7),this.wasVisible=!1,this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.visible=void 0,this.dialogTitle="",this.width="520px",this.closable=!0,this.mask=!0,this.maskClosable=!0,this.animationDuration=300,this.fullscreen=!1,this.showFooter=!0,this.showCancelBtn=!0,this.language="en",this.translationUrl=void 0}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(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 o=await i.json();e=o,Object.keys(e).forEach((t=>{for(let i in e[t])$[t][i]=e[t][i]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var e})(this.translationUrl)}componentWillUpdate(){this.visible&&!this.wasVisible?this.disableBodyScroll():!this.visible&&this.wasVisible&&this.enableBodyScroll(),this.wasVisible=this.visible}disconnectedCallback(){this.enableBodyScroll(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}disableBodyScroll(){document.body.style.overflow="hidden"}enableBodyScroll(){document.body.style.overflow=""}handleClose(){this.cancel.emit()}handleMaskClick(t){this.maskClosable&&t.target===this.el.querySelector(".mask")&&this.cancel.emit()}handleConfirm(){this.confirm.emit()}render(){const t={width:"number"==typeof this.width?`${this.width}px`:this.width,"--duration":`${this.animationDuration}ms`},e=["dialog-wrapper",this.visible?"dialog-wrapper-visible":""],o=["mask",this.visible?"mask-enter":"mask-leave"],n=["dialog",this.visible?"dialog-enter":"dialog-leave",this.fullscreen?"fullscreen":""].join(" ");return i("div",{key:"716c6488b86fc5a74bcd8c8c8a4eee1b85f75cb7",class:e.join(" "),ref:t=>this.stylingContainer=t},i("div",{key:"161d976b5a15f62c63b56555e161b5b29c0a7771",class:o.join(" "),onClick:this.handleMaskClick.bind(this)}),i("div",{key:"ebd2c356c169765b06c85997dc9906b74358b450",class:n,style:t,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},i("div",{key:"2a8616c336447b33d3c4b3f22deee3871abd93c9",class:"dialog-header"},i("h2",{key:"fc4f4f87826620754f8cce73874726cdebcc280e",id:"dialog-title",class:"dialog-title"},this.dialogTitle),this.closable&&i("button",{key:"1626434c0700df7dc094cbf0c96840476ab65da5",class:"close-btn",onClick:this.handleClose.bind(this)},"x")),i("div",{key:"44d28c0e477e3e16069749f7700ee70b6a486d07",class:"dialog-content",style:{maxHeight:"calc(100vh - 62px)",overflowY:"auto"}},i("slot",{key:"745e1329fc3647247245f7aa96d10a06b6b18329"})),this.showFooter&&i("div",{key:"cc3b19ba0ab16fd485f2c4e81a5793a25cecb98f",class:"dialog-footer"},i("slot",{key:"906adc00a3735e096159002b972804cfe147f42e",name:"footer"},this.showCancelBtn&&i("button",{key:"1fc68b04c7c39ca9b7dfb228836eb38c4368c355",class:"cancel-btn",onClick:this.handleClose.bind(this)},U("cancel",this.language)),i("button",{key:"1d054ca93148286249d4989c783a67e1afe33667",class:"confirm-btn",onClick:this.handleConfirm.bind(this)},U("confirm",this.language))))))}get el(){return o(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};A.style=".dialog-wrapper{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:1;z-index:199}.dialog-wrapper-visible{visibility:visible}.mask{position:fixed;inset:0;background-color:rgba(0, 0, 0, 0.5);opacity:0;z-index:1000;transition:opacity var(--duration) linear}.mask-enter{opacity:1}.mask-leave{opacity:0}.dialog{position:relative;background:var(--emw--color-background, #fff);border-radius:12px;box-shadow:0 4px 32px rgba(0, 0, 0, 0.15);opacity:0;transform:scale(0.9);transition:all var(--duration) linear;width:100%;max-width:100vw;overflow:hidden;z-index:1000}.dialog-enter{opacity:1;transform:scale(1)}.dialog-leave{opacity:0}.dialog.fullscreen{width:100vw !important;height:100vh;overflow:auto;max-height:none;border-radius:0;overflow:hidden}.dialog-header{padding:16px 16px 0 16px;display:flex;justify-content:space-between;align-items:center}.dialog-header .dialog-title{margin:0;font-size:1.25rem;font-weight:500;color:var(--emw--color-typography, #000)}.dialog-header .close-btn{background:transparent;border:none;font-size:1.5rem;width:2rem;height:2rem;color:var(--emw--color-gray-150, #6f6f6f);cursor:pointer;border-radius:4px}.dialog-header .close-btn:hover{background:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-gray-300, #333)}.dialog-content{padding:24px;font-size:0.95rem;line-height:1.6;color:var(--emw--color-dialog-typography, #000);flex:1;overflow-y:auto;max-height:calc(100vh - 200px)}.dialog.fullscreen .dialog-content{max-height:none}.dialog-footer{padding:0 16px 16px 16px;display:flex;justify-content:center;gap:12px}.dialog-footer .cancel-btn,.dialog-footer .confirm-btn{padding:10px 24px;border-radius:6px;font-size:0.9rem;cursor:pointer;transition:all 0.3s linear}.dialog-footer .cancel-btn{border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));background-color:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000)}.dialog-footer .cancel-btn:hover{background-color:var(--emw--color-background-tertiary, #ccc)}.dialog-footer .confirm-btn{border:none;color:var(--emw--color-typography-normalized, #ffffff);background:var(--emw--color-primary, #009993)}.dialog-footer .confirm-btn:hover{background:var(--emw--color-primary-variant, #004d4a)}@media screen and (max-width: 480px){.dialog.fullscreen .dialog-content{padding:12px}}.Loading{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.Loading svg{animation:spin 1s linear infinite;transform-origin:center}@keyframes spin{100%{transform:rotate(360deg)}}";export{v as lottery_oddsbom_bullet,w as lottery_oddsbom_bullet_group,I as lottery_oddsbom_oddschart,_ as lottery_oddsbom_oddschart_input,j as lottery_oddsbom_ticket_board,M as lottery_oddsbom_ticket_button,D as lottery_oddsbom_ticket_selection,A as lottery_tipping_dialog}
1
+ import{r as t,c as e,h as i,g as o}from"./index-9dee9d86.js";import{s as n,a as s,b as d,c as a,t as l,d as r,r as c,f as h,g as m,M as b}from"./lottery-oddsbom-ticket-bet-32060989.js";export{L as lottery_oddsbom_ticket_bet}from"./lottery-oddsbom-ticket-bet-32060989.js";const p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var g=function(){return g=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},g.apply(this,arguments)},f={primaryColor:"#333",secondaryColor:"#E6E6E6"};function u(t,e){if(void 0===e&&(e={}),"function"==typeof t.icon){var i=e.placeholders||f;return y(t.icon(i.primaryColor,i.secondaryColor),e)}return y(t.icon,e)}function y(t,e){var i="svg"===t.tag?g(g({},t.attrs),e.extraSVGAttrs||{}):t.attrs,o=Object.keys(i).reduce((function(t,e){var o=i[e],n="".concat(e,'="').concat(o,'"');return t.push(n),t}),[]),n=o.length?" "+o.join(" "):"",s=(t.children||[]).map((function(t){return y(t,e)})).join("");return s&&s.length?"<".concat(t.tag).concat(n,">").concat(s,"</").concat(t.tag,">"):"<".concat(t.tag).concat(n," />")}const x=u({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},{extraSVGAttrs:{width:"18px",height:"18px",fill:""}}),v=class{constructor(i){t(this,i),this.oddsbomBulletToggleEvent=e(this,"oddsbomBulletToggle",7),this.oddsbomBulletDeleteEvent=e(this,"oddsbomBulletDelete",7),this.oddsbomBulletAddedByMoreBtnDeleteEvent=e(this,"oddsbomBulletAddedByMoreBtnDelete",7),this.oddsbomBulletCallDialogEvent=e(this,"oddsbomBulletCallDialog",7),this.isSelected=void 0,this.disabled=void 0,this.text=void 0,this.idx=void 0,this.isReading=void 0,this.isDeleteByIcon=void 0,this.isCallDialogBtn=void 0,this.isAddedByMoreBtn=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClick(){this.isCallDialogBtn?this.oddsbomBulletCallDialogEvent.emit():this.isDeleteByIcon?this.isAddedByMoreBtn?this.oddsbomBulletAddedByMoreBtnDeleteEvent.emit(this.text):this.oddsbomBulletDeleteEvent.emit(this.idx):this.disabled||this.oddsbomBulletToggleEvent.emit(this.idx)}render(){return i("div",{key:"e21cf46108e35dcbf7d65e8c6a5f12f5d5ae49cb",class:"OddsbomBullet",ref:t=>this.stylingContainer=t},i("button",{key:"4edf5cd481d8283bd71f6806b6f93949e1308095",class:{OddsbomBulletBtn__normal:!0,OddsbomBulletBtn__selected:this.isSelected,OddsbomBulletBtn__disabled:this.disabled,isDeleteByIcon:this.isDeleteByIcon,isCallDialogBtn:this.isCallDialogBtn||this.isReading},onClick:this.handleClick.bind(this),disabled:this.disabled},i("span",{key:"fa1aed0293dc004808e6992c069d6992317b0788",class:"OddsbomBullet--deleteIcon",innerHTML:x}),i("span",{key:"53ed96f2c2b833d21488049f987b6131718d563e",class:"OddsbomBullet--text"},this.text)))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};v.style=".OddsbomBullet .OddsbomBulletBtn__normal{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--emw--color-background, #fff);border:2px solid var(--emw--color-primary, #0d196e);border-radius:var(--emw--border-radius-medium, 8px);color:var(--emw--color-typography, #000);font-weight:bold;cursor:pointer;transition:transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease, background-color 0.3s;user-select:none;position:relative}.OddsbomBullet .OddsbomBulletBtn__normal:hover{transform:scale(1.15) rotate(-5deg);box-shadow:var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15)) 7px 6px 6px}.OddsbomBullet .OddsbomBulletBtn__normal .OddsbomBullet--deleteIcon{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover{background-color:var(--emw--color-background, #fff)}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--text{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--deleteIcon{display:inline;fill:var(--emw--color-typography, #000)}.OddsbomBullet .OddsbomBulletBtn__normal.isCallDialogBtn:hover{transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__selected{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-inverse, #fff);transform:scale(1.05);box-shadow:0 5px 10px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled{background-color:var(--emw--color-gray-50, #f5f5f5);border-color:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-150, #6f6f6f);cursor:not-allowed;transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled:hover{transform:none;box-shadow:none}";const w=class{constructor(i){t(this,i),this.addSelectionEvent=e(this,"addSelection",7),this.deleteSelectionEvent=e(this,"deleteSelection",7),this.deleteSelectionOriginEvent=e(this,"deleteSelectionOrigin",7),this.oddsbomBulletGroupToggleEvent=e(this,"oddsbomBulletGroupToggle",7),this.oddsbomBulletGroupAddedByMoreBtnDelEvent=e(this,"oddsbomBulletGroupAddedByMoreBtnDel",7),this.oddsbomBulletCallDialogFromGroupEvent=e(this,"oddsbomBulletCallDialogFromGroup",7),this.selectionIdx=void 0,this.matchIdx=void 0,this.bulletConfigs=[],this.bulletConfigsDeleteOrigin=[],this.addSelectionConfig=void 0,this.isDeleteByIcon=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.bulletListClass=void 0,this.innerBulletConfigs=void 0,this.innerBulletConfigsDeleteOrigin=void 0}handleBulletConfigsChange(t){this.innerBulletConfigs=t.map((t=>Object.assign({},t)))}handleBulletConfigsDeleteOriginChange(t){this.innerBulletConfigsDeleteOrigin=t.map((t=>Object.assign({},t)))}componentWillLoad(){this.handleBulletConfigsChange(this.bulletConfigs)}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}oddsbomBulletToggleHandler(t){const e=t.detail,{matchIdx:i,selectionIdx:o}=this,n=[...this.innerBulletConfigs],s=Object.assign({},n[e]);s.isSelected=!s.isSelected,n[e]=s,this.innerBulletConfigs=n,this.oddsbomBulletGroupToggleEvent.emit({bulletSelctionArr:this.innerBulletConfigs,matchIdx:i,selectionIdx:o})}oddsbomBulletDeleteHandler(t){const e=t.detail,{matchIdx:i,selectionIdx:o}=this,n=[...this.innerBulletConfigsDeleteOrigin],s=Object.assign({},n[e]);s.isSelected=!s.isSelected,n[e]=s,this.innerBulletConfigsDeleteOrigin=n,this.oddsbomBulletGroupToggleEvent.emit({bulletSelctionArr:this.innerBulletConfigsDeleteOrigin,matchIdx:i,selectionIdx:o})}oddsbomBulletAddedByMoreBtnDeleteHandler(t){const e=t.detail,{matchIdx:i,selectionIdx:o}=this;this.oddsbomBulletGroupAddedByMoreBtnDelEvent.emit({delText:e,matchIdx:i,selectionIdx:o})}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleOddsbomBulletCallDialog(){const{matchIdx:t,selectionIdx:e}=this;this.oddsbomBulletCallDialogFromGroupEvent.emit({matchIdx:t,selectionIdx:e})}render(){return i("div",{key:"38102a447cf8fafc8f7a7e5a122c7ccbc2ce8b4a",class:"oddsbomBulletGroup",ref:t=>this.stylingContainer=t},i("div",{key:"59ca1df498575356eb3438b45e9431b1bc7ee2dd",class:`oddsbomBulletGroup-list ${this.bulletListClass||""}`},this.innerBulletConfigs.map((t=>i("lottery-oddsbom-bullet",t.isAddMoreBtn?{text:`${this.addSelectionConfig.maxOverScore}+`,disabled:t.isDisabled,isCallDialogBtn:!0,onOddsbomBulletCallDialog:this.handleOddsbomBulletCallDialog.bind(this)}:{text:t.text,idx:t.idx,isSelected:t.isSelected,disabled:t.isDisabled,isDeleteByIcon:this.isDeleteByIcon,isAddedByMoreBtn:t.isAddedByMoreBtn})))))}static get watchers(){return{bulletConfigs:["handleBulletConfigsChange"],bulletConfigsDeleteOrigin:["handleBulletConfigsDeleteOriginChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};w.style=".oddsbomBulletGroup{width:100%}.oddsbomBulletGroup .oddsbomBulletGroup-list{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.oddsbomBulletGroup .selection-bullet-list{justify-content:flex-end}";const k=u({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),S=u(p,{extraSVGAttrs:{width:"18px",height:"18px",fill:"#0d196e"}}),C=u(p,{extraSVGAttrs:{width:"16px",height:"16px",fill:"#1367e7"}}),B=u({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),O=u({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),I=class{constructor(i){t(this,i),this.oddsQueryLineChangeEvent=e(this,"oddsQueryLineChange",7),this.oddschartFillInEvent=e(this,"oddschartFillIn",7),this.oddsQueryChangeEvent=e(this,"oddsQueryChange",7),this.handleSearch=async()=>{const t=this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input"),e=await Promise.all(Array.from(t).map((t=>t.getValue())));if(e.length!=2*this.matchInfo.length)return void a({theme:"warning",message:l("pleaseFillIn",this.language)});const i=[...this.matchSelection],o=[];for(let t=0;t<e.length;t+=2){const n=e[t],s=e[t+1],d=t/2;n&&s&&(o.push([[`${n}:${s}`]]),i[d]=[n,s])}if(this.matchSelection=[...i],o.length>0){const t=await r(JSON.stringify(o));this.oddsQueryLineChangeEvent.emit({lineSelectionBase64:t,offset:0}),this.hasFillInSelection=!0}},this.handleGroupClick=t=>{this.selectedGroupIndex=t},this.toggleFilterIcon=()=>{this.isAscend=!this.isAscend,this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({ascending:this.isAscend,offset:0,lineSelectionBase64:""})},this.handlePrevPage=()=>{this.curPage>=1&&(this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({offset:this.offset-this.limit,lineSelectionBase64:""}))},this.handleNextPage=()=>{this.curPage<this.totalPage-1&&(this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({offset:this.offset+this.limit,lineSelectionBase64:""}))},this.matchInfo=void 0,this.oddsInfo=void 0,this.total=void 0,this.curPage=void 0,this.limit=void 0,this.offset=void 0,this.filterdOdds=void 0,this.isSearching=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.isLoading=!1,this.language="en",this.translationUrl="",this.isAscend=!0,this.selectedGroupIndex=-1,this.matchSelection=[],this.hasFillInSelection=!1}async initOddsChart(){this.oddsQueryChangeEvent.emit({offset:0,ascending:!0,lineSelectionBase64:""})}async closeOddsChart(){this.hasFillInSelection=!1,this.selectedGroupIndex=-1,this.matchSelection=[],this.isAscend=!0,this.matchItemsContainer&&this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input").forEach((t=>{t.clearValue()}))}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}handleMatchInfoChange(t){this.matchSelection=t.map((()=>[-1,-1]))}componentWillLoad(){this.translationUrl&&c(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}get totalPage(){return Math.ceil(this.total/this.limit)}generateBulletGroup(t,e,o){let n;try{n=JSON.parse(t)}catch(t){return console.error("Failed to parse line JSON:",t),i("div",{class:"error-message"},"Invalid data format")}let s=n.map((t=>t[0])).map((t=>t[0]));const d=this.selectedGroupIndex===o;return i("div",{class:"oddsbom-oddschart-selection--group",onClick:this.handleGroupClick.bind(this,o)},i("div",{class:"oddsbom-oddschart-selection--group-wrap",style:{flexBasis:160*s.length+"px"}},s.map(((t,e)=>{const o=t.split(":");return i("div",{class:"oddsbom-oddschart-selection-item",key:e},i("div",{class:"oddsbom-oddschart-selection-item--1"},i("lottery-oddsbom-bullet",{text:o[0],"is-reading":!0,"is-selected":d})),i("div",{class:"oddsbom-oddschart-selection-item--2"},i("lottery-oddsbom-bullet",{text:o[1],"is-reading":!0,"is-selected":d})))}))),i("div",{class:"oddsbom-oddschart-selection-odds"},i("div",{class:"oddsbom-oddschart-selection-odds--text"},h(e)),d&&i("div",{class:"oddsbom-oddschart-selection-odds--fillIn"},i("lottery-oddsbom-ticket-button",{text:l("fillIn",this.language),size:"small",variant:"outline",onClick:this.handleFillIn.bind(this,s),language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))))}handleFillIn(t){this.oddschartFillInEvent.emit({fillInNums:t})}clearMatchSelection(){this.hasFillInSelection=!1,this.matchItemsContainer&&this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input").forEach((t=>{t.clearValue()}))}fillInMatchSelection(){const t=[];this.matchSelection.forEach((e=>{t.push(`${e[0]}:${e[1]}`)})),this.handleFillIn(t)}render(){var t,e;return i("div",{key:"b160d1870184937cdd013a233a4841545d8f769a",class:"oddsbom-oddschart",ref:t=>this.stylingContainer=t},(null===(t=this.matchInfo)||void 0===t?void 0:t.length)&&(null===(e=this.oddsInfo)||void 0===e?void 0:e.length)?this.matchInfo&&i("div",{class:"oddsbom-oddschart-container"},i("div",{class:"oddsbom-oddschart-wrap"},i("div",{class:"oddsbom-oddschart-match",ref:t=>this.matchItemsContainer=t},this.matchInfo.map(((t,e)=>i("div",{class:"oddsbom-oddschart-match-item",key:e},i("div",{class:"oddsbom-oddschart-match-item-name"},i("div",{class:"oddsbom-oddschart-match-item-name--home"},`${e+1}. ${t.eventName.split("vs")[0]}`),i("div",{class:"oddsbom-oddschart-match-item-name--delimiter"},"vs"),i("div",{class:"oddsbom-oddschart-match-item-name--away"},`${t.eventName.split("vs")[1]}`)),i("div",{class:"oddsbom-oddschart-match-item-input"},i("lottery-oddsbom-oddschart-input",null),i("lottery-oddsbom-oddschart-input",null))))),i("div",{class:"oddsbom-oddschart-match-search"},i("lottery-oddsbom-ticket-button",{text:l("search",this.language),variant:"outline",onClick:this.handleSearch}))),this.hasFillInSelection&&!this.isSearching&&(this.filterdOdds?i("div",{class:"oddsbom-oddschart-input-wrap"},i("div",{class:"oddsbom-oddschart-input"},this.matchSelection.map((t=>i("div",{class:"oddsbom-oddschart-input-item"},i("lottery-oddsbom-bullet",{text:t[0],"is-reading":!0,"is-selected":!0}),i("lottery-oddsbom-bullet",{text:t[1],"is-reading":!0,"is-selected":!0})))),i("div",{class:"oddsbom-oddschart-input-odds"},h(this.filterdOdds))),i("div",{class:"oddsbom-oddschart-input-operation"},i("lottery-oddsbom-ticket-button",{text:l("clear",this.language),variant:"outline",size:"small",onClick:this.clearMatchSelection.bind(this)}),i("lottery-oddsbom-ticket-button",{text:l("fillIn",this.language),variant:"outline",size:"small",onClick:this.fillInMatchSelection.bind(this)}))):i("div",{class:"oddsbom-oddschart-input-empty"},i("div",null,i("span",{innerHTML:C,style:{marginRight:"6px",height:"16px"}}),i("span",{style:{fontSize:"14px"}},l("noBets",this.language))),i("div",{class:"oddsbom-oddschart-input-empty-operation"},i("lottery-oddsbom-ticket-button",{text:l("clear",this.language),variant:"text",size:"small",onClick:this.clearMatchSelection.bind(this)}),i("lottery-oddsbom-ticket-button",{text:l("fillIn",this.language),variant:"text",size:"small",onClick:this.fillInMatchSelection.bind(this)})))),i("div",{class:"oddsbom-oddschart-match-filter"},(this.isLoading||this.isSearching)&&i("div",{class:"progress-bar"}),i("span",{onClick:this.toggleFilterIcon,class:"arrow "+(this.isAscend?"ascend":""),innerHTML:k})),i("div",{class:"oddsbom-oddschart-selection"},this.oddsInfo.map(((t,e)=>this.generateBulletGroup(t.lineSelection,t.odds,e)))),i("div",{class:"oddsbom-oddschart-pagination"},i("div",{class:"oddsbom-oddschart-pagination-wrap"},i("div",{class:"oddsbom-oddschart-pagination-prev "+(this.curPage<1?"disabled":""),onClick:this.handlePrevPage},i("div",{class:"oddsbom-oddschart-pagination-icon",innerHTML:B})),i("div",{class:"oddsbom-oddschart-pagination-page"},`${this.curPage+1} / ${this.totalPage}`),i("div",{class:"oddsbom-oddschart-pagination-next "+(this.curPage>=this.totalPage-1?"disabled":""),onClick:this.handleNextPage},i("div",{class:"oddsbom-oddschart-pagination-icon",innerHTML:O})))))):i("div",{class:"empty-wrap"},i("span",{innerHTML:S,style:{marginRight:"6px",height:"18px"}}),i("span",{class:"empty-wrap-text",style:{fontSize:"18px"}},l("noBets",this.language))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],matchInfo:["handleMatchInfoChange"]}}};I.style='.oddsbom-oddschart {\n container-type: inline-size;\n}\n.oddsbom-oddschart-container {\n position: relative;\n}\n.oddsbom-oddschart-match {\n display: flex;\n align-items: flex-end;\n margin-bottom: 4px;\n}\n.oddsbom-oddschart-match-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n flex-basis: 160px;\n}\n.oddsbom-oddschart-match-item-name {\n margin-bottom: 8px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.oddsbom-oddschart-match-item-name--home, .oddsbom-oddschart-match-item-name--away, .oddsbom-oddschart-match-item-name--delimiter {\n font-size: 13px;\n height: 16px;\n line-height: 16px;\n overflow: hidden;\n color: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-match-item-input {\n display: flex;\n justify-content: space-between;\n}\n.oddsbom-oddschart-match-search {\n flex-basis: 130px;\n text-align: center;\n}\n.oddsbom-oddschart-match-filter {\n display: flex;\n justify-content: flex-end;\n padding: 2px;\n position: relative;\n padding-top: 4px;\n border-top: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbom-oddschart-input {\n display: flex;\n margin-top: 4px;\n}\n.oddsbom-oddschart-input-empty {\n padding: 12px;\n border: 1px solid var(--emw--color-primary-variant, #1367e7);\n background-color: var(--emw--color-tertiary, #e3f2fd);\n width: 50%;\n min-width: 240px;\n max-width: 360px;\n margin: 4px auto;\n border-radius: 6px;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n}\n.oddsbom-oddschart-input-empty-operation {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-top: 4px;\n}\n.oddsbom-oddschart-input-wrap {\n display: flex;\n flex-direction: column;\n gap: 10px;\n margin-bottom: 4px;\n}\n.oddsbom-oddschart-input-item {\n display: flex;\n align-items: center;\n flex-basis: 160px;\n justify-content: center;\n gap: 5px;\n}\n.oddsbom-oddschart-input-odds {\n flex-basis: 130px;\n display: flex;\n align-items: center;\n font-size: 14px;\n text-indent: 16px;\n}\n.oddsbom-oddschart-input-operation {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 20px;\n}\n.oddsbom-oddschart-selection--group {\n display: flex;\n margin-bottom: 8px;\n}\n.oddsbom-oddschart-selection--group-wrap {\n display: flex;\n border-radius: 4px;\n}\n.oddsbom-oddschart-selection--group-wrap:hover {\n background: var(--emw--color-gray-50, #f5f5f5);\n cursor: pointer;\n}\n.oddsbom-oddschart-selection-item {\n display: flex;\n flex-basis: 160px;\n justify-content: center;\n gap: 10px;\n}\n.oddsbom-oddschart-selection-odds {\n display: flex;\n gap: 12px;\n align-items: center;\n flex-basis: 130px;\n position: relative;\n text-indent: 16px;\n}\n.oddsbom-oddschart-selection-odds--text {\n font-size: 14px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-selection-odds--fillIn {\n position: absolute;\n right: 0;\n}\n@container (max-width: 430px) {\n .oddsbom-oddschart .oddsbom-oddschart-selection-odds {\n text-indent: unset;\n }\n .oddsbom-oddschart .oddsbom-oddschart-selection-odds--fillIn {\n right: -22px;\n }\n .oddsbom-oddschart .oddsbom-oddschart-selection-item {\n gap: 4px;\n }\n}\n.oddsbom-oddschart .arrow {\n transition: transform 0.3s ease;\n font-size: 16px;\n display: inline-flex;\n cursor: pointer;\n fill: var(--emw--color-typography, #000);\n display: flex;\n justify-content: center;\n flex-basis: 130px;\n}\n.oddsbom-oddschart .arrow.ascend {\n transform: rotate(180deg);\n}\n\n.empty-wrap {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.empty-wrap-text {\n color: var(--emw--color-typography, #000);\n}\n\n.oddsbom-oddschart-pagination {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-top: 10px;\n padding-right: 16px;\n}\n.oddsbom-oddschart-pagination-wrap {\n display: flex;\n align-items: center;\n gap: 12px;\n height: 18px;\n}\n.oddsbom-oddschart-pagination-prev, .oddsbom-oddschart-pagination-next {\n cursor: pointer;\n}\n.oddsbom-oddschart-pagination-prev.disabled, .oddsbom-oddschart-pagination-next.disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.oddsbom-oddschart-pagination-icon {\n display: flex;\n height: 18px;\n align-items: center;\n fill: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-pagination-page {\n font-size: 14px;\n color: var(--emw--color-typography, #000);\n}\n\n.progress-bar {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 2px;\n background-color: var(--emw--color-gray-100, #e6e6e6);\n overflow: hidden;\n}\n.progress-bar::after {\n content: "";\n display: block;\n width: 20%;\n height: 100%;\n background-color: var(--emw--color-primary, #0d196e);\n animation: progress 1.5s linear infinite;\n}\n\n@keyframes progress {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(500%);\n }\n}';const _=class{constructor(i){t(this,i),this.valueChange=e(this,"valueChange",7),this.handleInputChange=t=>{const e=t.target.value.trim();this.valueChange.emit(e)},this.handleKeyDown=t=>{"Enter"===t.key&&this.inputElement.blur()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.value=""}async getValue(){return this.inputElement.value}async clearValue(){this.inputElement&&(this.inputElement.value=""),this.value=""}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return i("div",{key:"eb973f7978b7452788f72a43da5424abbe845361",class:"oddscharts-input",ref:t=>this.stylingContainer=t},i("input",{key:"f24fba10175b944af328b71f8e257d8ad1386af2",ref:t=>this.inputElement=t,type:"text",inputMode:"numeric",value:this.value,onInput:this.handleInputChange,onKeyDown:this.handleKeyDown,autocomplete:"one-time-code"}))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};_.style=".oddscharts-input{display:inline-flex;padding:2px}.oddscharts-input input{width:32px;height:32px;text-align:center;font-size:14px;font-weight:bold;line-height:32px;border:2px solid var(--emw--color-gray-100, #e6e6e6);border-radius:4px;padding:0;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000);text-transform:uppercase}.oddscharts-input input:focus{outline:none;border-color:var(--emw--color-primary, #0d196e);box-shadow:0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));border-width:2px}.oddscharts-input input:disabled{background-color:var(--emw--color-gray-50, #f5f5f5);border-color:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-150, #6f6f6f);cursor:not-allowed}.oddscharts-input input.error{border-color:var(--emw--color-error, #ff3d00)}.oddscharts-input input.error:focus{box-shadow:0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}";const j=class{constructor(i){t(this,i),this.oddsbomBoardClearEvent=e(this,"oddsbomBoardClear",7),this.oddsbomAddMoreToMatchEvent=e(this,"oddsbomAddMoreToMatch",7),this.ticketBoardInfo=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.translationUrl="",this.addSelectionConfig=void 0,this.bulletsConfig=void 0,this.isInputInvalid=!1,this.errorMessage="",this.dialogConfig={width:"400px",visible:!1,onConfirm:()=>this.handleFillInAddMore(),onCancel:()=>this.handleCloseAddMoreDialog()},this.curAddMoreInfo={matchIdx:0,selectionIdx:0,value:""}}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this.translationUrl&&m(JSON.parse(this.translationUrl))}handleOddsbomBulletGroupToggle(t){const{bulletConfigArr:e}=t.detail;this.bulletsConfig=e}handleOddsbomBulletCallDialogFromGroup(t){const{matchIdx:e,selectionIdx:i}=t.detail;this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{matchIdx:e,selectionIdx:i}),this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!0})}handleFillInAddMore(){if(this.isInputInvalid)return void this.handleCloseAddMoreDialog();const{matchIdx:t,selectionIdx:e,value:i}=this.curAddMoreInfo;this.oddsbomAddMoreToMatchEvent.emit({matchIdx:t,selectionIdx:e,value:i}),this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:""})}handleCloseAddMoreDialog(){this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:""}),this.isInputInvalid=!1,this.errorMessage=""}handleClearAllSelection(){this.oddsbomBoardClearEvent.emit(),a({message:l("selectionCleared",this.language),renderOne:!0})}validateInput(t){const e=Number(t);if(isNaN(e))return this.isInputInvalid=!0,void(this.errorMessage=l("enterValidNumber",this.language));if(e<b||e>this.addSelectionConfig.maxScore)return this.isInputInvalid=!0,void(this.errorMessage=l("enterNumberBetween",this.language,{min:b,max:this.addSelectionConfig.maxScore}));const{matchIdx:i,selectionIdx:o}=this.curAddMoreInfo;if(this.ticketBoardInfo[i].addSelections[o].some((e=>Number(e)===Number(t))))return this.isInputInvalid=!0,void(this.errorMessage=l("numberAlreadySelected",this.language));this.isInputInvalid=!1,this.errorMessage=""}handleInputChange(t){const e=t.target.value;this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:e}),this.validateInput(e)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return i("div",{key:"58b83bb2222b715e093fae83b28488e9aadbbbd9",class:"oddsbomTicketBoard",ref:t=>this.stylingContainer=t},i("div",{key:"713493a9e82abf4585f911f91757180cdea7f212",class:"oddsbomTicketBoard-btn"},i("lottery-oddsbom-ticket-button",{key:"7277db6f5372d2775bf30b69540f090e8076192c",onClick:this.handleClearAllSelection.bind(this),text:l("clearAll",this.language),variant:"outline"})),this.ticketBoardInfo.length?i("div",{class:"oddsbomTicketBoard-list"},this.ticketBoardInfo.map(((t,e)=>i("div",{class:"oddsbomTicketBoard-item"},i("div",{class:"oddsbomTicketBoard-item-header"},`${e+1}. ${t.matchName}`),i("div",{class:"oddsbomTicketBoard-item-match"},i("div",{class:"oddsbomTicketBoard-item-match--left"},t.matchName.split("vs")[0]),i("div",{class:"oddsbomTicketBoard-item-match--right"},i("lottery-oddsbom-bullet-group",{bulletConfigs:t.selections[0],selectionIdx:0,matchIdx:e,addSelectionConfig:this.addSelectionConfig}))),i("div",{class:"oddsbomTicketBoard-item-match"},i("div",{class:"oddsbomTicketBoard-item-match--left"},t.matchName.split("vs")[1]),i("div",{class:"oddsbomTicketBoard-item-match--right"},i("lottery-oddsbom-bullet-group",{bulletConfigs:t.selections[1],selectionIdx:1,matchIdx:e,addSelectionConfig:this.addSelectionConfig}))))))):i("div",{class:"oddsbomTicketBoard-noData"},l("noTicketBoard",this.language)),i("lottery-tipping-dialog",{key:"23b77482869ae9d539281279f897a5e421a23611",visible:this.dialogConfig.visible,width:this.dialogConfig.width,onCancel:this.handleCloseAddMoreDialog.bind(this)},i("div",{key:"aaa92cd6b0fff37031040e04083c826e642ec0f1",class:"addSelectionDialog"},i("div",{key:"8f52ac9acb648171638061d049892085cf5f648f",class:"addSelectionDialog-title"},l("enterScoreUpTo",this.language,{maxScore:this.addSelectionConfig.maxScore})),i("input",{key:"50db2d0d62fddabbf92c75f044635babfb102e00",type:"text",class:{"dialog-input":!0,invalid:this.isInputInvalid},value:this.curAddMoreInfo.value,onInput:this.handleInputChange.bind(this)}),i("div",{key:"710aacdcd1589af9ec50485f637744199807427c",class:"error-message"},this.errorMessage)),i("div",{key:"9c9ce1cbae02a5723d5261862e930afc3613b567",slot:"footer",class:"addSelectionDialog-footer"},i("lottery-oddsbom-ticket-button",{key:"fa4e9d024929f0485ea2099515a1b6b93eabf6b8",onClick:this.dialogConfig.onCancel,text:l("cancel",this.language),variant:"outline"}),i("lottery-oddsbom-ticket-button",{key:"91c1c08b3183d1c328fcc9d79ceda4ba0039f1c3",onClick:this.dialogConfig.onConfirm,text:l("confirm",this.language),variant:"primary",disabled:!this.curAddMoreInfo.value||this.isInputInvalid}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};j.style=".oddsbomTicketBoard {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n container-type: inline-size;\n min-height: 220px;\n}\n.oddsbomTicketBoard-noData {\n display: flex;\n justify-content: center;\n height: 200px;\n align-items: center;\n}\n.oddsbomTicketBoard-btn {\n display: flex;\n justify-content: flex-end;\n margin: 16px;\n margin-bottom: unset;\n}\n.oddsbomTicketBoard-item {\n display: flex;\n gap: 16px;\n flex-direction: column;\n padding: 24px;\n}\n.oddsbomTicketBoard-item:not(:last-child) {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomTicketBoard-item-header {\n font-weight: bold;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBoard-item-match {\n display: flex;\n align-items: center;\n}\n.oddsbomTicketBoard-item-match--left {\n width: 130px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBoard-item-match--right {\n flex: 1;\n display: flex;\n align-items: center;\n gap: 12px;\n justify-content: space-evenly;\n}\n@container (max-width: 320px) {\n .oddsbomTicketBoard-item-match--left {\n width: 100px;\n max-width: 100px;\n }\n}\n\n.dialog-input {\n width: 100%;\n padding: 8px;\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n box-sizing: border-box;\n margin-top: 10px;\n}\n\n.dialog-input.invalid,\n.dialog-input.invalid:focus {\n border-color: var(--emw--color-error, #ff3d00);\n outline-color: var(--emw--color-error, #ff3d00);\n}\n\n.error-message {\n color: var(--emw--color-error, #ff3d00);\n font-size: 12px;\n margin-top: 4px;\n}\n\n.addSelectionDialog-title {\n color: var(--emw--color-typography, #000);\n}\n.addSelectionDialog-footer {\n display: flex;\n justify-content: flex-end;\n gap: 18px;\n}";const M=class{constructor(e){t(this,e),this.handleClick=t=>{if(this.disabled)return;const e=this.host.shadowRoot.querySelector(".btn");if(!e)return;const i=e.getBoundingClientRect(),o=Math.max(i.width,i.height),n={top:t.clientY-i.top-o/2,left:t.clientX-i.left-o/2,size:o};this.ripples=[...this.ripples,n],setTimeout((()=>{this.ripples=this.ripples.filter((t=>t!==n))}),600)},this.variant="primary",this.size="medium",this.disabled=!1,this.loading=!1,this.text=void 0,this.mbSource=void 0,this.language="en",this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.ripples=[]}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){this.translationUrl&&c(this.translationUrl)}render(){const{variant:t,disabled:e,size:o}=this,n=e||this.loading;return i("button",{key:"c0c87c36c7c3f48286729c9133eded8338f137be",class:{btn:!0,[`btn--${t}`]:!0,[`btn--${o}`]:!0,"btn--loading":this.loading},disabled:n,onClick:this.handleClick},this.loading?i("div",{class:"loading-container"},i("span",{class:"content"},this.text||l("loading",this.language)),i("span",{class:"spinner"})):i("span",{class:"content"},this.text),i("div",{key:"8276ad215063ef4217b11f65fb189d6fcccd1f24",class:"ripple-container"},this.ripples.map(((t,e)=>i("span",{key:e,class:"ripple",style:{top:`${t.top}px`,left:`${t.left}px`,width:`${t.size}px`,height:`${t.size}px`}})))))}get host(){return o(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};M.style=':host{display:inline-block;font-family:"PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif}.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;font-weight:500;cursor:pointer;outline:none;overflow:hidden;transition:background-color 0.2s, border-color 0.2s, color 0.2s;user-select:none;-webkit-tap-highlight-color:transparent}.btn .content{position:relative}.btn:disabled{cursor:not-allowed;opacity:0.5}.btn .loading-container{display:flex;align-items:center}.btn--loading{position:relative}.btn .spinner{display:inline-block;width:1em;height:1em;border:2px solid rgba(255, 255, 255, 0.3);border-radius:50%;border-top-color:white;animation:spin 1s ease-in-out infinite;margin-left:0.5em;vertical-align:middle}.btn--small .spinner{width:0.8em;height:0.8em}.btn--large .spinner{width:1.2em;height:1.2em}@keyframes spin{to{transform:rotate(360deg)}}.btn--primary{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-inverse, #fff)}.btn--primary:hover:not(:disabled){background-color:var(--emw--color-primary-variant, #1367e7)}.btn--primary:active:not(:disabled){background-color:#08104a}.btn--outline .spinner,.btn--dashed .spinner,.btn--text .spinner{border-top-color:currentColor;border-color:rgba(0, 0, 0, 0.2)}.btn--outline{background-color:var(--emw--color-background, #fff);border-color:#dcdcdc;color:var(--emw--color-typography, #000)}.btn--outline:hover:not(:disabled){background-color:var(--emw--color-background-tertiary, #ccc);border-color:#a6a6a6}.btn--outline:active:not(:disabled){background-color:#e6e6e6}.btn--dashed{background-color:transparent;border-style:dashed;border-color:#dcdcdc;color:#333}.btn--dashed:hover:not(:disabled){border-color:#a6a6a6;color:#0052d9}.btn--text{background-color:transparent;color:#0052d9;border-color:transparent}.btn--text:hover:not(:disabled){background-color:#f2f2f2}.btn--text:active:not(:disabled){background-color:#e6e6e6}.btn--small{height:28px;font-size:12px;padding:0 12px}.btn--medium{height:34px;font-size:14px;padding:0 18px}.btn--large{height:40px;font-size:16px;padding:0 24px}.ripple-container{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit}.ripple{position:absolute;border-radius:50%;background-color:rgba(255, 255, 255, 0.3);transform:scale(0);animation:ripple-animation 600ms linear}.btn--outline .ripple,.btn--dashed .ripple,.btn--text .ripple{background-color:rgba(0, 0, 0, 0.1)}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}';const z=u({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),D=class{constructor(e){t(this,e),this.togglePanel=()=>{this.expanded=!this.expanded},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.ticketBoardInfo=void 0,this.language="en",this.expanded=!1,this._ticketBoardInfo=[]}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this._ticketBoardInfo=JSON.parse(JSON.stringify(this.ticketBoardInfo))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&d(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleTicketBoradInfoChange(t){this._ticketBoardInfo=JSON.parse(JSON.stringify(t))}generateMatchItemSelection(t,e,o,n,s,d,a){return i("div",{class:"oddsbomSelection-item"},i("div",{class:"oddsbomSelection-item-number"},o+1),i("div",{class:"oddsbomSelection-item-selection"},i("div",{class:"oddsbomSelection-item-team"},i("div",{class:"oddsbomSelection-item-team-name"},t),i("div",{class:"oddsbomSelection-item-team-selection"},i("lottery-oddsbom-bullet-group",{bulletConfigs:n,selectionIdx:0,matchIdx:o,bulletConfigsDeleteOrigin:d,isDeleteByIcon:!0,bulletListClass:"selection-bullet-list"}))),i("div",{class:"oddsbomSelection-item-team"},i("div",{class:"oddsbomSelection-item-team-name"},e),i("div",{class:"oddsbomSelection-item-team-selection"},i("lottery-oddsbom-bullet-group",{bulletConfigs:s,selectionIdx:1,matchIdx:o,bulletConfigsDeleteOrigin:a,isDeleteByIcon:!0,bulletListClass:"selection-bullet-list"})))))}generateSelectionList(){return this._ticketBoardInfo?this._ticketBoardInfo.map(((t,e)=>{var i,o,n,s;const{matchName:d,selections:a}=t,l=d.split("vs")[0],r=d.split("vs")[1],c=a[0].filter((t=>t.isSelected)),h=a[1].filter((t=>t.isSelected)),m=null!==(o=null===(i=t.addSelections)||void 0===i?void 0:i[0])&&void 0!==o?o:[],b=null!==(s=null===(n=t.addSelections)||void 0===n?void 0:n[1])&&void 0!==s?s:[];return m.length>0&&m.forEach((t=>{c.push({text:t,idx:-1,isSelected:!0,isDisabled:!1,isAddedByMoreBtn:!0})})),b.length>0&&b.forEach((t=>{h.push({text:t,idx:-1,isSelected:!0,isDisabled:!1,isAddedByMoreBtn:!0})})),this.generateMatchItemSelection(l,r,e,c,h,a[0],a[1])})):null}render(){return i("div",{key:"8e359b773654d6a1632f69837009ccc29d547561",class:"oddsbomSelection",ref:t=>this.stylingContainer=t},i("div",{key:"93c2575de9e70759118f4d4702f356322c2bcb88",class:"oddsbomSelection-panel"},i("div",{key:"2df0bf1be465b9baa00f44052c623071f78d799d",class:"oddsbomSelection-panel--header",onClick:this.togglePanel},i("div",{key:"c32a79afcab02f683ffb8abc26395e098b080939",class:"oddsbomSelection-panel--header-title"},l("myChoices",this.language)),i("div",{key:"de2b875b0fc538212d15cb7dde2c95b10d49665a",class:"oddsbomSelection-panel--header-icon "+(this.expanded?"expanded":""),innerHTML:z})),i("div",{key:"4a51e00f8ab67d9ab6c1cfd25d47f93c79d7a4bf",class:"oddsbomSelection-panel--content "+(this.expanded?"open":"closed")},i("div",{key:"9f9575c3bb176769cee836c9cf027fc76580b367",class:"oddsbomSelection-panel--content-thead"},i("div",{key:"3dd762c94c915afc9f14b38fdaec73a42b56004e",class:"oddsbomSelection-panel--content-thead-item"},l("teams",this.language)),i("div",{key:"2ea960a6db72e11a7e9157871f70769174f722f0",class:"oddsbomSelection-panel--content-thead-item"},l("scores",this.language))),i("div",{key:"847ef04f0a9e289c796a856c3d16bebc83d2d188",class:"oddsbomSelection-panel--content-tbody"},this.generateSelectionList()))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoradInfoChange"]}}};D.style=".oddsbomSelection {\n container-type: inline-size;\n}\n.oddsbomSelection-panel--header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n height: 40px;\n padding: 0 4px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-panel--header:hover {\n background-color: var(--emw--color-background-tertiary, #ccc);\n border-radius: 4px;\n}\n.oddsbomSelection-panel--header-title {\n font-size: 16px;\n font-weight: 600;\n user-select: none;\n}\n.oddsbomSelection-panel--header-icon {\n transition: transform 0.2s;\n}\n.oddsbomSelection-panel--header-icon.expanded {\n transform: rotate(180deg);\n}\n.oddsbomSelection-panel--content {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.3s ease, padding 0.3s ease;\n padding: 0 12px;\n font-size: 14px;\n user-select: none;\n}\n.oddsbomSelection-panel--content.open {\n max-height: 19000px;\n padding: 10px 12px;\n background-color: var(--emw--color-background, #fff);\n}\n.oddsbomSelection-panel--content.closed {\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n}\n.oddsbomSelection-panel--content-thead {\n display: flex;\n justify-content: space-between;\n padding: 0 24px;\n margin-bottom: 12px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-panel--content-tbody {\n padding: 0 18px;\n}\n.oddsbomSelection-item {\n display: flex;\n justify-content: space-between;\n position: relative;\n padding: 8px;\n}\n.oddsbomSelection-item:not(:last-child) {\n border-bottom: 1px dashed var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomSelection-item-number {\n position: absolute;\n left: -18px;\n top: 48%;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-item-selection {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.oddsbomSelection-item-team {\n display: flex;\n justify-content: space-between;\n align-items: center;\n min-height: 32px;\n color: var();\n}\n.oddsbomSelection-item-team-name {\n max-width: 140px;\n width: 140px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-item-team-selection {\n display: flex;\n gap: 6px;\n flex: 1;\n justify-content: flex-end;\n}\n@container (max-width: 430px) {\n .oddsbomSelection-item-team-name {\n max-width: 80px;\n width: 80px;\n }\n}\n\n.oddsbomSelection-panel--header-icon {\n fill: var(--emw--color-typography, #000);\n}";const T=["ro","en","fr","ar","hr"],$={en:{cancel:"Cancel",confirm:"Confirm"},ro:{cancel:"Anulează",confirm:"Confirmă"},fr:{cancel:"Annuler",confirm:"Confirmer"},ar:{cancel:"إلغاء",confirm:"تأكيد"},hr:{cancel:"Odustani",confirm:"Potvrdi"}},U=(t,e)=>{const i=e;return $[void 0!==i&&T.includes(i)?i:"en"][t]},A=class{constructor(i){t(this,i),this.open=e(this,"open",7),this.close=e(this,"close",7),this.confirm=e(this,"confirm",7),this.cancel=e(this,"cancel",7),this.wasVisible=!1,this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.visible=void 0,this.dialogTitle="",this.width="520px",this.closable=!0,this.mask=!0,this.maskClosable=!0,this.animationDuration=300,this.fullscreen=!1,this.showFooter=!0,this.showCancelBtn=!0,this.language="en",this.translationUrl=void 0,this.dialogClass=void 0,this.dialogStyle=void 0}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&d(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 o=await i.json();e=o,Object.keys(e).forEach((t=>{for(let i in e[t])$[t][i]=e[t][i]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var e})(this.translationUrl)}componentWillUpdate(){this.visible&&!this.wasVisible?this.disableBodyScroll():!this.visible&&this.wasVisible&&this.enableBodyScroll(),this.wasVisible=this.visible}disconnectedCallback(){this.enableBodyScroll(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}disableBodyScroll(){document.body.style.overflow="hidden"}enableBodyScroll(){document.body.style.overflow=""}handleClose(){this.cancel.emit()}handleMaskClick(){this.maskClosable&&this.cancel.emit()}handleConfirm(){this.confirm.emit()}render(){const t=Object.assign({width:"number"==typeof this.width?`${this.width}px`:this.width,"--duration":`${this.animationDuration}ms`},this.dialogStyle||{}),e=["dialog-wrapper",this.visible?"dialog-wrapper-visible":""],o=["mask",this.visible?"mask-enter":"mask-leave"],n=["dialog",this.visible?"dialog-enter":"dialog-leave",this.fullscreen?"fullscreen":"",this.dialogClass].filter(Boolean).join(" ");return i("div",{key:"306683c5190fa6dca57dcf75e52eca575c0215e7",class:e.join(" "),ref:t=>this.stylingContainer=t},i("div",{key:"8be097f3a86fcd9ad4e18c6ac56cafdcf249049b",class:o.join(" "),onClick:this.handleMaskClick.bind(this)}),i("div",{key:"87d2206d3e3d75fe0e0ef8a6afd8de5c20892ae6",part:"dialog",class:n,style:t,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},i("div",{key:"30ca33b925ff2525ead8aae83e72031258367b40",class:"dialog-header"},i("h2",{key:"492c3e864ac1547da58b0a47e4cc8d45470bde54",id:"dialog-title",class:"dialog-title"},this.dialogTitle),this.closable&&i("button",{key:"8ae4b872d18ce82d33292dc794e8a1f714a96ba9",class:"close-btn",onClick:this.handleClose.bind(this)},"x")),i("div",{key:"d661c78b333f78b9dee92e0975f8b136ef5a3071",class:"dialog-content",style:{maxHeight:"calc(100vh - 62px)",overflowY:"auto"}},i("slot",{key:"f32a6f6e4962239e0148e61c4bb70f6b5d3a2c82"})),this.showFooter&&i("div",{key:"40b5e9fd1c9221eb4d6c87d053c5d018f540d8e7",class:"dialog-footer"},i("slot",{key:"91539def47d118a69735ec229e7a6b36fc1db40b",name:"footer"},this.showCancelBtn&&i("button",{key:"f3b3add23f150c660159a906c2ef23b5fbe3b4c5",class:"cancel-btn",onClick:this.handleClose.bind(this)},U("cancel",this.language)),i("button",{key:"5fc33e89b6c55ac9e2162302e128bce0e79c5f89",class:"confirm-btn",onClick:this.handleConfirm.bind(this)},U("confirm",this.language))))))}get el(){return o(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};A.style=".dialog-wrapper{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:1;z-index:199}.dialog-wrapper-visible{visibility:visible}.mask{position:fixed;inset:0;background-color:rgba(0, 0, 0, 0.5);opacity:0;z-index:1000;transition:opacity var(--duration) linear}.mask-enter{opacity:1}.mask-leave{opacity:0}.dialog{position:relative;background:var(--emw--color-background, #fff);border-radius:12px;box-shadow:0 4px 32px rgba(0, 0, 0, 0.15);opacity:0;transform:scale(0.9);transition:all var(--duration) linear;width:100%;max-width:100vw;overflow:hidden;z-index:1000}.dialog-enter{opacity:1;transform:scale(1)}.dialog-leave{opacity:0}.dialog.fullscreen{width:100vw !important;height:100vh;overflow:auto;max-height:none;border-radius:0;overflow:hidden}.dialog-header{padding:16px 16px 0 16px;display:flex;justify-content:space-between;align-items:center}.dialog-header .dialog-title{margin:0;font-size:1.25rem;font-weight:500;color:var(--emw--color-typography, #000)}.dialog-header .close-btn{background:transparent;border:none;font-size:1.5rem;width:2rem;height:2rem;color:var(--emw--color-gray-150, #6f6f6f);cursor:pointer;border-radius:4px}.dialog-header .close-btn:hover{background:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-gray-300, #333)}.dialog-content{padding:24px;font-size:0.95rem;line-height:1.6;color:var(--emw--color-dialog-typography, #000);flex:1;overflow-y:auto;max-height:calc(100vh - 200px)}.dialog.fullscreen .dialog-content{max-height:none}.dialog-footer{padding:0 16px 16px 16px;display:flex;justify-content:center;gap:12px}.dialog-footer .cancel-btn,.dialog-footer .confirm-btn{padding:10px 24px;border-radius:6px;font-size:0.9rem;cursor:pointer;transition:all 0.3s linear}.dialog-footer .cancel-btn{border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));background-color:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000)}.dialog-footer .cancel-btn:hover{background-color:var(--emw--color-background-tertiary, #ccc)}.dialog-footer .confirm-btn{border:none;color:var(--emw--color-typography-normalized, #ffffff);background:var(--emw--color-primary, #009993)}.dialog-footer .confirm-btn:hover{background:var(--emw--color-primary-variant, #004d4a)}@media screen and (max-width: 480px){.dialog.fullscreen .dialog-content{padding:12px}}.Loading{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.Loading svg{animation:spin 1s linear infinite;transform-origin:center}@keyframes spin{100%{transform:rotate(360deg)}}";export{v as lottery_oddsbom_bullet,w as lottery_oddsbom_bullet_group,I as lottery_oddsbom_oddschart,_ as lottery_oddsbom_oddschart_input,j as lottery_oddsbom_ticket_board,M as lottery_oddsbom_ticket_button,D as lottery_oddsbom_ticket_selection,A as lottery_tipping_dialog}
@@ -1 +1 @@
1
- import{p as l,b as e}from"./index-9dee9d86.js";export{s as setNonce}from"./index-9dee9d86.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),l(n)})().then((async l=>(await n(),e([["lottery-oddsbom-bullet_9",[[1,"lottery-oddsbom-ticket-bet",{endpoint:[513],gameId:[513,"game-id"],sessionId:[513,"session-id"],drawId:[513,"draw-id"],playerId:[513,"player-id"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isLoading:[32],isLoadingOdds:[32],isSubmitLoading:[32],matchInfo:[32],ticketBoardInfo:[32],gameConfig:[32],addSelectionConfig:[32],gameInfo:[32],dialogConfig:[32],oddsData:[32],oddsInfo:[32],oddsQuery:[32],saleStatisticsInfo:[32]},[[0,"oddsbomBulletGroupToggle","handleOddsBomBulletGroupToggle"],[0,"oddsbomBulletGroupAddedByMoreBtnDel","handleOddsBomBulletAddedByMoreBtnDelete"],[0,"oddsbomAddMoreToMatch","handleOddsBomAddMoreToMatch"],[0,"oddsbomBoardClear","handleOddsBomBoardClear"],[0,"oddschartFillIn","handleOddsChartFillIn"],[0,"oddsQueryChange","handleOddsQueryChange"],[0,"oddsQueryLineChange","handleOddsQueryLineChange"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoardInfoChange"],canSubmit:["handleCanSubmitChange"]}],[1,"lottery-oddsbom-ticket-board",{ticketBoardInfo:[16],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[513,"translation-url"],addSelectionConfig:[16],bulletsConfig:[32],isInputInvalid:[32],errorMessage:[32],dialogConfig:[32],curAddMoreInfo:[32]},[[0,"oddsbomBulletGroupToggle","handleOddsbomBulletGroupToggle"],[0,"oddsbomBulletCallDialogFromGroup","handleOddsbomBulletCallDialogFromGroup"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-oddschart",{matchInfo:[16],oddsInfo:[16],total:[2],curPage:[2,"cur-page"],limit:[2],offset:[2],filterdOdds:[1,"filterd-odds"],isSearching:[4,"is-searching"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],isLoading:[4,"is-loading"],language:[513],translationUrl:[513,"translation-url"],isAscend:[32],selectedGroupIndex:[32],matchSelection:[32],hasFillInSelection:[32],initOddsChart:[64],closeOddsChart:[64]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],matchInfo:["handleMatchInfoChange"]}],[1,"lottery-oddsbom-ticket-selection",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],ticketBoardInfo:[1040],language:[513],expanded:[32],_ticketBoardInfo:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoradInfoChange"]}],[1,"lottery-oddsbom-oddschart-input",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],value:[513],getValue:[64],clearValue:[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-oddsbom-bullet-group",{selectionIdx:[514,"selection-idx"],matchIdx:[514,"match-idx"],bulletConfigs:[16],bulletConfigsDeleteOrigin:[16],addSelectionConfig:[16],isDeleteByIcon:[516,"is-delete-by-icon"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],bulletListClass:[1,"bullet-list-class"],innerBulletConfigs:[32],innerBulletConfigsDeleteOrigin:[32]},[[0,"oddsbomBulletToggle","oddsbomBulletToggleHandler"],[0,"oddsbomBulletDelete","oddsbomBulletDeleteHandler"],[0,"oddsbomBulletAddedByMoreBtnDelete","oddsbomBulletAddedByMoreBtnDeleteHandler"],[0,"oddsbomBulletCallDialog","handleOddsbomBulletCallDialog"]],{bulletConfigs:["handleBulletConfigsChange"],bulletConfigsDeleteOrigin:["handleBulletConfigsDeleteOriginChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-ticket-button",{variant:[513],size:[513],disabled:[516],loading:[516],text:[513],mbSource:[513,"mb-source"],language:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],ripples:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{isSelected:[516,"is-selected"],disabled:[516],text:[513],idx:[514],isReading:[516,"is-reading"],isDeleteByIcon:[516,"is-delete-by-icon"],isCallDialogBtn:[516,"is-call-dialog-btn"],isAddedByMoreBtn:[516,"is-added-by-more-btn"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}]]]],l))));
1
+ import{p as l,b as e}from"./index-9dee9d86.js";export{s as setNonce}from"./index-9dee9d86.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),l(n)})().then((async l=>(await n(),e([["lottery-oddsbom-bullet_9",[[1,"lottery-oddsbom-ticket-bet",{endpoint:[513],gameId:[513,"game-id"],sessionId:[513,"session-id"],drawId:[513,"draw-id"],playerId:[513,"player-id"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isLoading:[32],isLoadingOdds:[32],isSubmitLoading:[32],matchInfo:[32],ticketBoardInfo:[32],gameConfig:[32],addSelectionConfig:[32],gameInfo:[32],dialogConfig:[32],oddsData:[32],oddsInfo:[32],oddsQuery:[32],saleStatisticsInfo:[32]},[[0,"oddsbomBulletGroupToggle","handleOddsBomBulletGroupToggle"],[0,"oddsbomBulletGroupAddedByMoreBtnDel","handleOddsBomBulletAddedByMoreBtnDelete"],[0,"oddsbomAddMoreToMatch","handleOddsBomAddMoreToMatch"],[0,"oddsbomBoardClear","handleOddsBomBoardClear"],[0,"oddschartFillIn","handleOddsChartFillIn"],[0,"oddsQueryChange","handleOddsQueryChange"],[0,"oddsQueryLineChange","handleOddsQueryLineChange"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoardInfoChange"],canSubmit:["handleCanSubmitChange"]}],[1,"lottery-oddsbom-ticket-board",{ticketBoardInfo:[16],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[513,"translation-url"],addSelectionConfig:[16],bulletsConfig:[32],isInputInvalid:[32],errorMessage:[32],dialogConfig:[32],curAddMoreInfo:[32]},[[0,"oddsbomBulletGroupToggle","handleOddsbomBulletGroupToggle"],[0,"oddsbomBulletCallDialogFromGroup","handleOddsbomBulletCallDialogFromGroup"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-oddschart",{matchInfo:[16],oddsInfo:[16],total:[2],curPage:[2,"cur-page"],limit:[2],offset:[2],filterdOdds:[1,"filterd-odds"],isSearching:[4,"is-searching"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],isLoading:[4,"is-loading"],language:[513],translationUrl:[513,"translation-url"],isAscend:[32],selectedGroupIndex:[32],matchSelection:[32],hasFillInSelection:[32],initOddsChart:[64],closeOddsChart:[64]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],matchInfo:["handleMatchInfoChange"]}],[1,"lottery-oddsbom-ticket-selection",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],ticketBoardInfo:[1040],language:[513],expanded:[32],_ticketBoardInfo:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoradInfoChange"]}],[1,"lottery-oddsbom-oddschart-input",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],value:[513],getValue:[64],clearValue:[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"],dialogClass:[1,"dialog-class"],dialogStyle:[16]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet-group",{selectionIdx:[514,"selection-idx"],matchIdx:[514,"match-idx"],bulletConfigs:[16],bulletConfigsDeleteOrigin:[16],addSelectionConfig:[16],isDeleteByIcon:[516,"is-delete-by-icon"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],bulletListClass:[1,"bullet-list-class"],innerBulletConfigs:[32],innerBulletConfigsDeleteOrigin:[32]},[[0,"oddsbomBulletToggle","oddsbomBulletToggleHandler"],[0,"oddsbomBulletDelete","oddsbomBulletDeleteHandler"],[0,"oddsbomBulletAddedByMoreBtnDelete","oddsbomBulletAddedByMoreBtnDeleteHandler"],[0,"oddsbomBulletCallDialog","handleOddsbomBulletCallDialog"]],{bulletConfigs:["handleBulletConfigsChange"],bulletConfigsDeleteOrigin:["handleBulletConfigsDeleteOriginChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-ticket-button",{variant:[513],size:[513],disabled:[516],loading:[516],text:[513],mbSource:[513,"mb-source"],language:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],ripples:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{isSelected:[516,"is-selected"],disabled:[516],text:[513],idx:[514],isReading:[516,"is-reading"],isDeleteByIcon:[516,"is-delete-by-icon"],isCallDialogBtn:[516,"is-call-dialog-btn"],isAddedByMoreBtn:[516,"is-added-by-more-btn"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}]]]],l))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/lottery-oddsbom-ticket-bet",
3
- "version": "0.6.29",
3
+ "version": "0.6.30",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",