@betorigami/games 0.7.37 → 0.7.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3929,7 +3929,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
|
|
|
3929
3929
|
padding: 12px;
|
|
3930
3930
|
border-radius: 10px;
|
|
3931
3931
|
}
|
|
3932
|
-
`;class or extends B{constructor(){super(...arguments);this.isAuto=!1;this.autobetSelectedTiles=[];this.autobetInProgress=!1;this.minesState=null;this.hasWon=!1;this.hitBomb=!1;this.loadingTiles=[];this.isDesktop=!1}static styles=[G,wn];_hasAnimatedInitialLoad=!1;firstUpdated(){if(!this._hasAnimatedInitialLoad&&this.minesState===null)setTimeout(()=>{this._hasAnimatedInitialLoad=!0},800)}_getTileInfo(o){let i=this.minesState?.state==="VIEWING_RESULTS",a=this.minesState?.mineLocations?.includes(o)??!1,t=this.minesState?.selectedTiles?.includes(o)??!1,r=i||t,e=this.isAuto&&i&&t,n=this.autobetSelectedTiles.includes(o);return{isViewingResults:i,isMine:a,isSelected:t,isRevealed:r,wasAutoRevealed:e,isAutobetSelected:n}}get tiles(){return Array.from({length:Ao},(o,i)=>{let{isMine:a,isRevealed:t,wasAutoRevealed:r}=this._getTileInfo(i);return{id:i,isMine:a,isRevealed:t,wasAutoRevealed:r&&t}})}calculateTileState(o){let{isMine:i,isRevealed:a,wasAutoRevealed:t,isAutobetSelected:r,isSelected:e}=this._getTileInfo(o);if(!a)return r?"AUTOBET_SELECTED":"NORMAL";if(i){if(t)return"AUTOBET_SELECTED_BOMB";return e?"SELECTED_BOMB":"UNSELECTED_BOMB"}if(t)return"AUTOBET_SELECTED_GEM";return e?"SELECTED_GEM":"UNSELECTED_GEM"}render(){let o=this.minesState?.state==="VIEWING_RESULTS",i=!this.isAuto&&this.minesState?.state!=="GAME_IN_PROGRESS"||this.isAuto&&this.minesState!==null,a=this.isAuto||o&&!this.hitBomb;return $`
|
|
3932
|
+
`;class or extends B{constructor(){super(...arguments);this.isAuto=!1;this.autobetSelectedTiles=[];this.autobetInProgress=!1;this.minesState=null;this.hasWon=!1;this.hitBomb=!1;this.loadingTiles=[];this.isDesktop=!1}static styles=[G,wn];_hasAnimatedInitialLoad=!1;firstUpdated(){if(!this._hasAnimatedInitialLoad&&this.minesState===null)setTimeout(()=>{this._hasAnimatedInitialLoad=!0},800)}_getTileInfo(o){let i=this.minesState?.state==="VIEWING_RESULTS",a=this.minesState?.mineLocations?.includes(o)??!1,t=this.minesState?.selectedTiles?.includes(o)??!1,r=i||t,e=this.isAuto&&i&&t,n=this.autobetSelectedTiles.includes(o);return{isViewingResults:i,isMine:a,isSelected:t,isRevealed:r,wasAutoRevealed:e,isAutobetSelected:n}}get tiles(){return Array.from({length:Ao},(o,i)=>{let{isMine:a,isRevealed:t,wasAutoRevealed:r}=this._getTileInfo(i+1);return{id:i+1,isMine:a,isRevealed:t,wasAutoRevealed:r&&t}})}calculateTileState(o){let{isMine:i,isRevealed:a,wasAutoRevealed:t,isAutobetSelected:r,isSelected:e}=this._getTileInfo(o);if(!a)return r?"AUTOBET_SELECTED":"NORMAL";if(i){if(t)return"AUTOBET_SELECTED_BOMB";return e?"SELECTED_BOMB":"UNSELECTED_BOMB"}if(t)return"AUTOBET_SELECTED_GEM";return e?"SELECTED_GEM":"UNSELECTED_GEM"}render(){let o=this.minesState?.state==="VIEWING_RESULTS",i=!this.isAuto&&this.minesState?.state!=="GAME_IN_PROGRESS"||this.isAuto&&this.minesState!==null,a=this.isAuto||o&&!this.hitBomb;return $`
|
|
3933
3933
|
<div class="mines-grid-container" role="grid">
|
|
3934
3934
|
<div
|
|
3935
3935
|
class=${to({"mines-grid-wrapper":!0})}
|
|
@@ -8060,7 +8060,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
|
|
|
8060
8060
|
?hitBomb=${this.hitBomb}
|
|
8061
8061
|
.loadingTiles=${this.loadingTiles}
|
|
8062
8062
|
></origami-mines-grid>
|
|
8063
|
-
`}}d([S({type:Boolean})],Ur.prototype,"isAuto",void 0),d([S({type:Array})],Ur.prototype,"autobetSelectedTiles",void 0),d([S({type:Boolean})],Ur.prototype,"autobetInProgress",void 0),d([S({type:Object})],Ur.prototype,"minesState",void 0),d([S({type:Boolean})],Ur.prototype,"showWinPopup",void 0),d([S({type:Boolean})],Ur.prototype,"hitBomb",void 0),d([S({type:Array})],Ur.prototype,"loadingTiles",void 0),d([S({type:Boolean})],Ur.prototype,"isDesktop",void 0),Ur=d([O("origami-mines-content")],Ur);class _n{previousValues=[];callback;constructor(o){this.callback=o}check(o){if(o.length!==this.previousValues.length||o.some((a,t)=>a!==this.previousValues[t]))this.callback([...o],[...this.previousValues]),this.previousValues=[...o]}}class ja extends Eo{_playSound(o){let i={click:"click",bet:"bet",win:"win",bomb:"mines-bomb",gem:"mines-gem"};this.gameData?.soundController?.play(i[o]).catch((a)=>console.error(a))}authTokenWatcher=new _n(([o],[i])=>{if(o&&o!==i)this.isCheckingForSession=!0,this.getMinesActiveBet()});get isToggleDisabled(){let o=this.getMinesState;return this.autobetInProgress||o?.state==="GAME_IN_PROGRESS"||this.isCheckingForSession||this.isLoading}get areInputsDisabled(){let o=this.getMinesState;return this.autobetInProgress||o?.state==="GAME_IN_PROGRESS"||this.isCheckingForSession||this.isLoading}get isGameActive(){return this.getMinesState?.state==="GAME_IN_PROGRESS"}get minesApi(){return this.isDemoMode?new co:new Wo(this.gameData.authToken,this.gameData.baseUrl??"")}addToHistory(o,i,a){if(!a)return;let t=[...this.history,{multiplier:o,won:i,id:a}];this.history=t}async getMinesActiveBet(){try{let o=await this.minesApi.getActiveBet();if(!o.success){this.emit("show-alert",{detail:{type:"error",message:o.error}});return}if(o.data){if(this.gameData?.updateBetAmount(P(o.data.amount)),this.minesData=o.data,this.manualOrAuto!=="Manual")this.manualOrAuto="Manual"}}finally{this.isCheckingForSession=!1}}async firstUpdated(){super.firstUpdated(),await this.getMinesActiveBet()}updated(o){super.updated(o),this.authTokenWatcher.check([this.gameData?.authToken])}get getMinesState(){if(!this.minesData)return null;return Wo.getState(this.minesData)}async executeAutobet(o,i){if(this.minesData=null,this.autobetSelectedTiles.length===0)return{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("games.mines.selectTileToAutobet",this.gameData.language||"en")};try{if(!this.gameData?.currency)throw new Error("Currency is not set");let a=await this.minesApi.autobetPlay({language:this.gameData.language,amount:i,currency:this.gameData.currency,minesCount:this.minesCount,selectedTiles:this.autobetSelectedTiles});if(!a.success)return this.showError(a.error),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||q("alerts.errorProcessingBet",this.gameData?.language||"en")};this.minesData=a.data;let t=this.isDemoMode?P(this.gameData.balance).minus(a.data.amount??0).plus(a.data.payout??0):P(a.data.afterBalance??0);this.gameData.updateBalance(t);let r=a.data,{multiplier:e,id:n}=r,s=P(e||"0").isGreaterThan(0);if(s)this._playSound("win");this.addToHistory(Number(e),s,n),this.updateHistoryWithBet(r);let l=P(r.payout||"0").minus(r.amount),h=ki(Number(r.multiplier));return await this.waitForAnimationsComplete(s),{pnl:l,gameOutcome:h,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("alerts.gameError",this.gameData?.language||"en")}}}async toggleAutobet(o){if(this.autobetSelectedTiles.length===0){this.emit("show-alert",{detail:{type:"error",message:q("games.mines.selectTileToAutobet",this.gameData?.language||"en")}});return}if(!this.autobetInProgress)this.emit("show-alert",{detail:{id:"autobet-started",type:"warning",message:q("autobet.startAutobet",this.gameData?.language||"en"),autoCloseDelay:5000}});await super.toggleAutobet(o)}minesClickHandler=async(o)=>{if(this._playSound("click"),this.manualOrAuto==="Auto"){if(this.autobetSelectedTiles.includes(o.detail.tile))this.autobetSelectedTiles=this.autobetSelectedTiles.filter((a)=>a!==o.detail.tile);else if(this.autobetSelectedTiles.length<25-this.minesCount)this.autobetSelectedTiles=[...this.autobetSelectedTiles,o.detail.tile];this.minesData=null;return}let i=o.detail.tile;await this.minesNext(i)};async minesManualStart(){if(this.isLoading=!0,this.minesData=null,this._playSound("bet"),!this.gameData?.currency)throw new Error("Currency is not set");let o={language:this.gameData.language,amount:this.gameData?.amount??"0",currency:this.gameData.currency,minesCount:this.minesCount},i=await this.minesApi.startManualBet(o);if(!i.success){this.showError(i.error),this.isLoading=!1;return}let a=this.isDemoMode?P(this.gameData.balance).minus(i.data.amount??0).plus(i.data.payout??0):P(i.data.afterBalance??0);this.gameData.updateBalance(a),this.minesData=i.data,this.isLoading=!1}async minesChooseRandomTile(){this.isSelectingRandomTile=!0,this._playSound("click");let i=this.getMinesState?.selectedTiles??[],a=Array.from({length:Ao},(r,e)=>e).filter((r)=>!i.includes(r)),t=a[Math.floor(Math.random()*a.length)];if(t!==void 0)await this.minesNext(t);this.isSelectingRandomTile=!1}async minesNext(o){if(this.loadingTiles.includes(o))return;this.loadingTiles=[...this.loadingTiles,o];try{let i=await this.minesApi.selectTile({betId:this.minesData?.id??"",selectedTiles:[o]});if(!i.success){this.emit("show-alert",{detail:{type:"error",message:i.error}});return}let a=i.data.betActions.find((r)=>r.type==="END_BET")?.data.MINES,t=!!a&&a.result.includes(o);if(this._playSound(t?"bomb":"gem"),this.minesData=i.data,a){let{multiplier:r,id:e}=i.data,n=P(r||"0").isGreaterThan(0);this.addToHistory(Number(r),n,e),this.updateHistoryWithBet(i.data)}}finally{this.loadingTiles=this.loadingTiles.filter((i)=>i!==o)}}async minesCashout(){this.isLoading=!0,this._playSound("bet");let o=await this.minesApi.cashout();if(!o.success){this.emit("show-alert",{detail:{type:"error",message:o.error}}),this.isLoading=!1;return}let i=o.data?.afterBalance,a=o.data?.currency;if(i&&a){let t=this.isDemoMode?P(this.gameData.balance).plus(o.data.payout??0):P(o.data.afterBalance??0);this.gameData.updateBalance(t)}if(this.isLoading=!1,this.minesData=o.data,this.minesData){let{multiplier:t,id:r}=this.minesData,e=P(t||"0").isGreaterThan(0);if(e)this._playSound("win");this.addToHistory(Number(t),e,r),this.updateHistoryWithBet(this.minesData)}}onManualOrAutoChange(){this.minesData=null,this.autobetSelectedTiles=[]}onMinesCountChange(){if(this.manualOrAuto==="Auto"&&this.autobetSelectedTiles.length>25-this.minesCount)this.autobetSelectedTiles=[]}onAutobetChange(){if(!this.autobetInProgress)this.minesData=null}isSpacebarDisabled=()=>{if(!this.gameData?.hotkeysOpenEnabled)return!0;if(this.manualOrAuto==="Manual")return this._minesManualEl?.shadowRoot?.querySelector("origami-button")?.disabled??!0;else return this._minesAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn")?.disabled??!0};handleSpacebar=()=>{if(this.isSpacebarDisabled())return;if(this.manualOrAuto==="Manual")if(this.isGameActive)this.minesCashout();else this.minesManualStart();else{let i=this._minesAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");if(i instanceof HTMLElement)i.click()}};pickRandomTile=()=>{if(!this.isGameActive)return;this.minesChooseRandomTile()};async waitForAnimationsComplete(o){if(this.gameData?.instantBetEnabled);else{if(await bo(200),o)await bo(150);await this.ensureMinimumDisplayTime(o,300,300)}await bo(this.getAutobetDelay())}constructor(){super();this.minesCount=3;this.autobetSelectedTiles=[];this.minesData=null;this.isLoading=!1;this.isSelectingRandomTile=!1;this.history=[];this.isCheckingForSession=!0;this.loadingTiles=[];new Mo(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{disabled:this.isSpacebarDisabled}},{key:"q",callback:this.pickRandomTile.bind(this),options:{repeat:!0,repeatInterval:200,disabled:()=>!this.isGameActive||this.autobetInProgress&&!this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}},{key:"w",callback:this.minesCashout.bind(this),options:{disabled:()=>!this.isGameActive||(this.getMinesState?.selectedTiles.length??0)===0||!this.gameData?.hotkeysOpenEnabled}}])}render(){let o=this.getMinesState,i=this.minesData?.multiplier,a=o?.state==="VIEWING_RESULTS"&&o?.outcome==="WIN",t=this.minesData?.payout,r=this.gameData?.currency??"USD",e=o?.mineLocations?.some((s)=>o?.selectedTiles?.includes(s))??!1,n=this.gameData?.mainWidth>=768;return $`
|
|
8063
|
+
`}}d([S({type:Boolean})],Ur.prototype,"isAuto",void 0),d([S({type:Array})],Ur.prototype,"autobetSelectedTiles",void 0),d([S({type:Boolean})],Ur.prototype,"autobetInProgress",void 0),d([S({type:Object})],Ur.prototype,"minesState",void 0),d([S({type:Boolean})],Ur.prototype,"showWinPopup",void 0),d([S({type:Boolean})],Ur.prototype,"hitBomb",void 0),d([S({type:Array})],Ur.prototype,"loadingTiles",void 0),d([S({type:Boolean})],Ur.prototype,"isDesktop",void 0),Ur=d([O("origami-mines-content")],Ur);class _n{previousValues=[];callback;constructor(o){this.callback=o}check(o){if(o.length!==this.previousValues.length||o.some((a,t)=>a!==this.previousValues[t]))this.callback([...o],[...this.previousValues]),this.previousValues=[...o]}}class ja extends Eo{_playSound(o){let i={click:"click",bet:"bet",win:"win",bomb:"mines-bomb",gem:"mines-gem"};this.gameData?.soundController?.play(i[o]).catch((a)=>console.error(a))}authTokenWatcher=new _n(([o],[i])=>{if(o&&o!==i)this.isCheckingForSession=!0,this.getMinesActiveBet()});get isToggleDisabled(){let o=this.getMinesState;return this.autobetInProgress||o?.state==="GAME_IN_PROGRESS"||this.isCheckingForSession||this.isLoading}get areInputsDisabled(){let o=this.getMinesState;return this.autobetInProgress||o?.state==="GAME_IN_PROGRESS"||this.isCheckingForSession||this.isLoading}get isGameActive(){return this.getMinesState?.state==="GAME_IN_PROGRESS"}get minesApi(){return this.isDemoMode?new co:new Wo(this.gameData.authToken,this.gameData.baseUrl??"")}addToHistory(o,i,a){if(!a)return;let t=[...this.history,{multiplier:o,won:i,id:a}];this.history=t}async getMinesActiveBet(){try{let o=await this.minesApi.getActiveBet();if(!o.success){this.emit("show-alert",{detail:{type:"error",message:o.error}});return}if(o.data){if(this.gameData?.updateBetAmount(P(o.data.amount)),this.minesData=o.data,this.manualOrAuto!=="Manual")this.manualOrAuto="Manual"}}finally{this.isCheckingForSession=!1}}async firstUpdated(){super.firstUpdated(),await this.getMinesActiveBet()}updated(o){super.updated(o),this.authTokenWatcher.check([this.gameData?.authToken])}get getMinesState(){if(!this.minesData)return null;return Wo.getState(this.minesData)}async executeAutobet(o,i){if(this.minesData=null,this.autobetSelectedTiles.length===0)return{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("games.mines.selectTileToAutobet",this.gameData.language||"en")};try{if(!this.gameData?.currency)throw new Error("Currency is not set");let a=await this.minesApi.autobetPlay({language:this.gameData.language,amount:i,currency:this.gameData.currency,minesCount:this.minesCount,selectedTiles:this.autobetSelectedTiles});if(!a.success)return this.showError(a.error),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||q("alerts.errorProcessingBet",this.gameData?.language||"en")};this.minesData=a.data;let t=this.isDemoMode?P(this.gameData.balance).minus(a.data.amount??0).plus(a.data.payout??0):P(a.data.afterBalance??0);this.gameData.updateBalance(t);let r=a.data,{multiplier:e,id:n}=r,s=P(e||"0").isGreaterThan(0);if(s)this._playSound("win");this.addToHistory(Number(e),s,n),this.updateHistoryWithBet(r);let l=P(r.payout||"0").minus(r.amount),h=ki(Number(r.multiplier));return await this.waitForAnimationsComplete(s),{pnl:l,gameOutcome:h,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("alerts.gameError",this.gameData?.language||"en")}}}async toggleAutobet(o){if(this.autobetSelectedTiles.length===0){this.emit("show-alert",{detail:{type:"error",message:q("games.mines.selectTileToAutobet",this.gameData?.language||"en")}});return}if(!this.autobetInProgress)this.emit("show-alert",{detail:{id:"autobet-started",type:"warning",message:q("autobet.startAutobet",this.gameData?.language||"en"),autoCloseDelay:5000}});await super.toggleAutobet(o)}minesClickHandler=async(o)=>{if(this._playSound("click"),this.manualOrAuto==="Auto"){if(this.autobetSelectedTiles.includes(o.detail.tile))this.autobetSelectedTiles=this.autobetSelectedTiles.filter((a)=>a!==o.detail.tile);else if(this.autobetSelectedTiles.length<25-this.minesCount)this.autobetSelectedTiles=[...this.autobetSelectedTiles,o.detail.tile];this.minesData=null;return}let i=o.detail.tile;await this.minesNext(i)};async minesManualStart(){if(this.isLoading=!0,this.minesData=null,this._playSound("bet"),!this.gameData?.currency)throw new Error("Currency is not set");let o={language:this.gameData.language,amount:this.gameData?.amount??"0",currency:this.gameData.currency,minesCount:this.minesCount},i=await this.minesApi.startManualBet(o);if(!i.success){this.showError(i.error),this.isLoading=!1;return}let a=this.isDemoMode?P(this.gameData.balance).minus(i.data.amount??0).plus(i.data.payout??0):P(i.data.afterBalance??0);this.gameData.updateBalance(a),this.minesData=i.data,this.isLoading=!1}async minesChooseRandomTile(){this.isSelectingRandomTile=!0,this._playSound("click");let i=this.getMinesState?.selectedTiles??[],a=Array.from({length:Ao},(r,e)=>e+1).filter((r)=>!i.includes(r)),t=a[Math.floor(Math.random()*a.length)];if(t!==void 0)await this.minesNext(t);this.isSelectingRandomTile=!1}async minesNext(o){if(this.loadingTiles.includes(o))return;this.loadingTiles=[...this.loadingTiles,o];try{let i=await this.minesApi.selectTile({betId:this.minesData?.id??"",selectedTiles:[o]});if(!i.success){this.emit("show-alert",{detail:{type:"error",message:i.error}});return}let a=i.data.betActions.find((r)=>r.type==="END_BET")?.data.MINES,t=!!a&&a.result.includes(o);if(this._playSound(t?"bomb":"gem"),this.minesData=i.data,a){let{multiplier:r,id:e}=i.data,n=P(r||"0").isGreaterThan(0);this.addToHistory(Number(r),n,e),this.updateHistoryWithBet(i.data)}}finally{this.loadingTiles=this.loadingTiles.filter((i)=>i!==o)}}async minesCashout(){this.isLoading=!0,this._playSound("bet");let o=await this.minesApi.cashout();if(!o.success){this.emit("show-alert",{detail:{type:"error",message:o.error}}),this.isLoading=!1;return}let i=o.data?.afterBalance,a=o.data?.currency;if(i&&a){let t=this.isDemoMode?P(this.gameData.balance).plus(o.data.payout??0):P(o.data.afterBalance??0);this.gameData.updateBalance(t)}if(this.isLoading=!1,this.minesData=o.data,this.minesData){let{multiplier:t,id:r}=this.minesData,e=P(t||"0").isGreaterThan(0);if(e)this._playSound("win");this.addToHistory(Number(t),e,r),this.updateHistoryWithBet(this.minesData)}}onManualOrAutoChange(){this.minesData=null,this.autobetSelectedTiles=[]}onMinesCountChange(){if(this.manualOrAuto==="Auto"&&this.autobetSelectedTiles.length>25-this.minesCount)this.autobetSelectedTiles=[]}onAutobetChange(){if(!this.autobetInProgress)this.minesData=null}isSpacebarDisabled=()=>{if(!this.gameData?.hotkeysOpenEnabled)return!0;if(this.manualOrAuto==="Manual")return this._minesManualEl?.shadowRoot?.querySelector("origami-button")?.disabled??!0;else return this._minesAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn")?.disabled??!0};handleSpacebar=()=>{if(this.isSpacebarDisabled())return;if(this.manualOrAuto==="Manual")if(this.isGameActive)this.minesCashout();else this.minesManualStart();else{let i=this._minesAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");if(i instanceof HTMLElement)i.click()}};pickRandomTile=()=>{if(!this.isGameActive)return;this.minesChooseRandomTile()};async waitForAnimationsComplete(o){if(this.gameData?.instantBetEnabled);else{if(await bo(200),o)await bo(150);await this.ensureMinimumDisplayTime(o,300,300)}await bo(this.getAutobetDelay())}constructor(){super();this.minesCount=3;this.autobetSelectedTiles=[];this.minesData=null;this.isLoading=!1;this.isSelectingRandomTile=!1;this.history=[];this.isCheckingForSession=!0;this.loadingTiles=[];new Mo(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{disabled:this.isSpacebarDisabled}},{key:"q",callback:this.pickRandomTile.bind(this),options:{repeat:!0,repeatInterval:200,disabled:()=>!this.isGameActive||this.autobetInProgress&&!this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}},{key:"w",callback:this.minesCashout.bind(this),options:{disabled:()=>!this.isGameActive||(this.getMinesState?.selectedTiles.length??0)===0||!this.gameData?.hotkeysOpenEnabled}}])}render(){let o=this.getMinesState,i=this.minesData?.multiplier,a=o?.state==="VIEWING_RESULTS"&&o?.outcome==="WIN",t=this.minesData?.payout,r=this.gameData?.currency??"USD",e=o?.mineLocations?.some((s)=>o?.selectedTiles?.includes(s))??!1,n=this.gameData?.mainWidth>=768;return $`
|
|
8064
8064
|
<origami-game-layout footer-position="below" .gameType=${"MINES"}>
|
|
8065
8065
|
<origami-game-sidebar
|
|
8066
8066
|
data-is-desktop=${n}
|