@sbb-esta/lyne-elements-experimental-dev 5.13.0-dev.1793553487 → 5.13.0-dev.1793604753

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.
@@ -528,7 +528,7 @@ import{__esDecorate as e,__runInitializers as t}from"tslib";import{SbbButtonElem
528
528
  </filter>
529
529
  </defs>
530
530
  </svg>
531
- `;const H=e=>`data:image/svg+xml;utf8,${encodeURIComponent(e)}`,U=H(y),W=[O,k,P,F,I,L,R,z,B,V,A,j,M,N].map(H),G=[b,x,S,C,w,T,E,D].map(H),K=Object.freeze({HORIZONTAL:0,VERTICAL:1,SOUTHWEST:2,NORTHWEST:3,NORTHEAST:4,SOUTHEAST:5});let q=(()=>{let y=a,b,x=[],S=[],C,w=[],T=[],E,D=[],O=[],k,A=[],j=[];return class extends y{static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;b=[d()],C=[d()],E=[d()],k=[d()],e(this,null,b,{kind:`accessor`,name:`_score`,static:!1,private:!1,access:{has:e=>`_score`in e,get:e=>e._score,set:(e,t)=>{e._score=t}},metadata:t},x,S),e(this,null,C,{kind:`accessor`,name:`_highScore`,static:!1,private:!1,access:{has:e=>`_highScore`in e,get:e=>e._highScore,set:(e,t)=>{e._highScore=t}},metadata:t},w,T),e(this,null,E,{kind:`accessor`,name:`_gameOver`,static:!1,private:!1,access:{has:e=>`_gameOver`in e,get:e=>e._gameOver,set:(e,t)=>{e._gameOver=t}},metadata:t},D,O),e(this,null,k,{kind:`accessor`,name:`_started`,static:!1,private:!1,access:{has:e=>`_started`in e,get:e=>e._started,set:(e,t)=>{e._started=t}},metadata:t},A,j),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static{this.elementName=`sbb-easter-egg`}static{this.elementDependencies=[r,o,i,n]}static{this.styles=[u(p)]}get score(){return this._score}get highScore(){return this._highScore}#e;get _score(){return this.#e}set _score(e){this.#e=e}#t;get _highScore(){return this.#t}set _highScore(e){this.#t=e}#n;get _gameOver(){return this.#n}set _gameOver(e){this.#n=e}#r;get _started(){return this.#r}set _started(e){this.#r=e}constructor(){super(),this.#e=t(this,x,0),this.#t=(t(this,S),t(this,w,0)),this.#n=(t(this,T),t(this,D,!1)),this.#r=(t(this,O),t(this,A,!1)),this._canvas=(t(this,j),null),this._ctx=null,this._cellSize=20,this._snake=[],this._currentDir={x:0,y:0},this._nextDir={x:0,y:0},this._snakePresence=/* @__PURE__ */ new Uint8Array(256),this._foodPixel=[5,5],this._currentFoodIndex=0,this._currentSpeed=230,this._timerId=null,this._touchStart={x:0,y:0},this._touchEnd={x:0,y:0},this._trainImages=[],this._foodImages=[],this._gridImage=null,this._imagesReady=!1,this._openAbortController=null,this._prevTailCell=null,this._ateFoodThisFrame=!1,this._needsFullRedraw=!0,this._handleStartClick=()=>{c||(this._resetGame(),this._started=!0)},this.backdropAction=`none`,this.accessibilityLabel=m[this.language.current],this.language.withHandler(()=>{this.accessibilityLabel=m[this.language.current]})}disconnectedCallback(){super.disconnectedCallback(),this._stopGame(),this._openAbortController?.abort(),this._openAbortController=null}handleOpening(){super.handleOpening(),!c&&(this._attachInputListeners(),this._imagesReady||this._initGame().then(()=>this._resetGame(!0)),this._focusStartButton())}handleClosing(){super.handleClosing(),this._highScore=0,this._resetGame(!0),this._openAbortController?.abort(),this._openAbortController=null}async _initGame(){this._cellSize=Math.min(20,Math.max(8,Math.floor(window.innerWidth/16)-1));let e=this._canvas;e&&(e.width=16*this._cellSize,e.height=16*this._cellSize,this._ctx=e.getContext(`2d`),this._gridImage=await this._loadImage(U),this._trainImages=await Promise.all(W.map(e=>this._loadImage(e))),this._foodImages=await Promise.all(G.map(e=>this._loadImage(e))),this._imagesReady=!0)}async _loadImage(e){let t=new Image;return t.src=e,t.decode().then(()=>t).catch(()=>t)}_attachInputListeners(){this._openAbortController?.abort(),this._openAbortController=new AbortController;let e=this._openAbortController.signal;document.addEventListener(`keydown`,e=>this._onKeydown(e),{signal:e});let t=this._canvas;t&&(t.addEventListener(`touchstart`,e=>this._onTouchStart(e),{signal:e,passive:!0}),t.addEventListener(`touchend`,e=>this._onTouchEnd(e),{signal:e,passive:!0}),t.addEventListener(`touchmove`,e=>e.preventDefault(),{signal:e,passive:!1}))}_onTouchStart(e){if(this._gameOver||!this._started)return;let t=e.changedTouches[0];this._touchStart={x:t.screenX,y:t.screenY}}_onTouchEnd(e){if(this._gameOver||!this._started)return;let t=e.changedTouches[0];this._touchEnd={x:t.screenX,y:t.screenY},this._handleSwipe()}_handleSwipe(){if(this._gameOver||!this._started)return;let e=this._touchEnd.x-this._touchStart.x,t=this._touchEnd.y-this._touchStart.y;if(Math.abs(e)<30&&Math.abs(t)<30)return;let n=Math.abs(e)>Math.abs(t)?e>0?`ArrowRight`:`ArrowLeft`:t>0?`ArrowDown`:`ArrowUp`;this._applyDirectionKey(n)}_onKeydown(e){this._applyDirectionKey(e.key)}_applyDirectionKey(e){if(!this._gameOver&&this._started){switch(e.toLowerCase()){case`w`:case`arrowup`:this._nextDir={x:0,y:-1};break;case`s`:case`arrowdown`:this._nextDir={x:0,y:1};break;case`a`:case`arrowleft`:if(!this._started)return;this._nextDir={x:-1,y:0};break;case`d`:case`arrowright`:this._nextDir={x:1,y:0};break;default:return}this._started=!0}}_resetGame(e){this._stopGame(),this._gameOver=!1,this._started=!1,this._score=0,this._currentSpeed=230,this._currentDir={x:1,y:0},this._nextDir={x:1,y:0},this._snake=[{x:10,y:10,corner:K.HORIZONTAL},{x:9,y:10,corner:K.HORIZONTAL},{x:8,y:10,corner:K.HORIZONTAL}],this._snakePresence=/* @__PURE__ */ new Uint8Array(256);for(let e of this._snake)this._snakePresence[this._idx(e.x,e.y)]=1;this._foodPixel=[5,5],this._currentFoodIndex=0,this._prevTailCell=null,this._ateFoodThisFrame=!1,this._needsFullRedraw=!0,this._imagesReady?e?this._draw():this._startGame():this._initGame().then(()=>{e?this._draw():this._startGame()})}_startGame(){this._timerId=setInterval(()=>this._update(),this._currentSpeed)}_stopGame(){this._timerId!==null&&(clearInterval(this._timerId),this._timerId=null)}_setGameOver(){this._stopGame(),this._gameOver=!0,this._score>this._highScore&&(this._highScore=this._score),this._focusStartButton()}async _focusStartButton(){c||(await this.updateComplete,this.shadowRoot?.querySelector(`.sbb-easter-egg__overlay sbb-button`)?.focus())}_updatePoints(){this._score+=1,this._score%3==0&&(this._currentSpeed=Math.max(this._currentSpeed-5,50),this._stopGame(),this._startGame())}_hasCollided(e){return e.x<0||e.x>=16||e.y<0||e.y>=16||this._snake.some(t=>t.x===e.x&&t.y===e.y)}_placeFood(){let e=[];for(let t=0;t<this._snakePresence.length;t++)this._snakePresence[t]===0&&e.push(t);if(!e.length)return;let t=e[Math.floor(Math.random()*e.length)];this._foodPixel=[t%16,Math.floor(t/16)],this._currentFoodIndex=Math.floor(Math.random()*this._foodImages.length)}_isReverse(e,t){return e.x===-t.x&&e.y===-t.y}_idx(e,t){return t*16+e}_getSecondSnakeCellDir(){let e=this._snake[0],t=this._snake[2];if(!t)return null;if(e.x===t.x)return K.VERTICAL;if(e.y===t.y)return K.HORIZONTAL;let n=t.x-e.x,r=t.y-e.y,i={"1,1":[K.SOUTHWEST,K.NORTHEAST],"-1,1":[K.SOUTHEAST,K.NORTHWEST],"-1,-1":[K.NORTHEAST,K.SOUTHWEST],"1,-1":[K.NORTHWEST,K.SOUTHEAST]}[`${n},${r}`];return i?this._currentDir.x===0?i[1]:i[0]:null}_update(){if(this._started){this._isReverse(this._currentDir,this._nextDir)||(this._currentDir={...this._nextDir});let e={x:this._snake[0].x+this._currentDir.x,y:this._snake[0].y+this._currentDir.y,corner:null};if(this._hasCollided(e)){this._setGameOver();return}if(this._snakePresence[this._idx(e.x,e.y)]=1,this._snake.unshift(e),this._snake[1].corner=this._getSecondSnakeCellDir(),e.x===this._foodPixel[0]&&e.y===this._foodPixel[1])this._placeFood(),this._updatePoints(),this._ateFoodThisFrame=!0,this._prevTailCell=null;else{let e=this._snake.length-1;this._prevTailCell={...this._snake[e]},this._snakePresence[this._idx(this._snake[e].x,this._snake[e].y)]=0,this._snake.pop(),this._ateFoodThisFrame=!1}}this._draw()}_clearTile(e,t){if(!this._ctx||!this._gridImage)return;let n=this._cellSize;this._ctx.clearRect(e*n,t*n,n,n),this._ctx.drawImage(this._gridImage,e*20,t*20,20,20,e*n,t*n,n,n)}_draw(){if(!this._ctx||!this._gridImage)return;let e=this._cellSize;requestAnimationFrame(()=>{if(!this._ctx||!this._gridImage)return;if(this._needsFullRedraw){let t=e*16;this._ctx.clearRect(0,0,t,t),this._ctx.drawImage(this._gridImage,0,0,t,t),this._ctx.drawImage(this._foodImages[this._currentFoodIndex],this._foodPixel[0]*e,this._foodPixel[1]*e,e,e);for(let t=0;t<this._snake.length;t++){let n=this._snake[t],r=n.corner===null?null:this._trainImages[n.corner];t===0&&(r=this._trainImages[this._getTrainHeadDir()]),t===this._snake.length-1&&(r=this._trainImages[this._getTrainTailDir(t)]),r&&this._ctx.drawImage(r,n.x*e,n.y*e,e,e)}this._needsFullRedraw=!1;return}let t=this._snake[1];if(this._clearTile(t.x,t.y),t.corner!==null&&this._ctx.drawImage(this._trainImages[t.corner],t.x*e,t.y*e,e,e),this._ateFoodThisFrame){let t=this._snake[0];this._clearTile(t.x,t.y),this._ctx.drawImage(this._trainImages[this._getTrainHeadDir()],t.x*e,t.y*e,e,e),this._ctx.drawImage(this._foodImages[this._currentFoodIndex],this._foodPixel[0]*e,this._foodPixel[1]*e,e,e)}else{this._prevTailCell&&this._clearTile(this._prevTailCell.x,this._prevTailCell.y);let t=this._snake.length-1,n=this._snake[t];this._clearTile(n.x,n.y),this._ctx.drawImage(this._trainImages[this._getTrainTailDir(t)],n.x*e,n.y*e,e,e);let r=this._snake[0];this._ctx.drawImage(this._trainImages[this._getTrainHeadDir()],r.x*e,r.y*e,e,e)}})}_getTrainHeadDir(){return{"0,1":8,"0,-1":6,"-1,0":9,"1,0":7}[`${this._currentDir.x},${this._currentDir.y}`]??7}_getTrainTailDir(e){let t=this._snake[e],n=this._snake[e-1];return t.x===n.x?t.y-n.y>0?13:11:t.x-n.x>0?10:12}render(){let e=this.language.current,t=!this._started||this._gameOver,n=this._gameOver?v[e]:_[e];return s`
531
+ `;const H=e=>`data:image/svg+xml;utf8,${encodeURIComponent(e)}`,U=H(y),W=[O,k,P,F,I,L,R,z,B,V,A,j,M,N].map(H),G=[b,x,S,C,w,T,E,D].map(H),K=Object.freeze({HORIZONTAL:0,VERTICAL:1,SOUTHWEST:2,NORTHWEST:3,NORTHEAST:4,SOUTHEAST:5});let q=(()=>{let y=a,b,x=[],S=[],C,w=[],T=[],E,D=[],O=[],k,A=[],j=[];return class extends y{static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;b=[d()],C=[d()],E=[d()],k=[d()],e(this,null,b,{kind:`accessor`,name:`_score`,static:!1,private:!1,access:{has:e=>`_score`in e,get:e=>e._score,set:(e,t)=>{e._score=t}},metadata:t},x,S),e(this,null,C,{kind:`accessor`,name:`_highScore`,static:!1,private:!1,access:{has:e=>`_highScore`in e,get:e=>e._highScore,set:(e,t)=>{e._highScore=t}},metadata:t},w,T),e(this,null,E,{kind:`accessor`,name:`_gameOver`,static:!1,private:!1,access:{has:e=>`_gameOver`in e,get:e=>e._gameOver,set:(e,t)=>{e._gameOver=t}},metadata:t},D,O),e(this,null,k,{kind:`accessor`,name:`_started`,static:!1,private:!1,access:{has:e=>`_started`in e,get:e=>e._started,set:(e,t)=>{e._started=t}},metadata:t},A,j),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static{this.elementName=`sbb-easter-egg`}static{this.elementDependencies=[r,o,i,n]}static{this.styles=[u(p)]}get score(){return this._score}get highScore(){return this._highScore}#e;get _score(){return this.#e}set _score(e){this.#e=e}#t;get _highScore(){return this.#t}set _highScore(e){this.#t=e}#n;get _gameOver(){return this.#n}set _gameOver(e){this.#n=e}#r;get _started(){return this.#r}set _started(e){this.#r=e}constructor(){super(),this.#e=t(this,x,0),this.#t=(t(this,S),t(this,w,0)),this.#n=(t(this,T),t(this,D,!1)),this.#r=(t(this,O),t(this,A,!1)),this._canvas=(t(this,j),null),this._ctx=null,this._cellSize=20,this._snake=[],this._currentDir={x:0,y:0},this._nextDir={x:0,y:0},this._snakePresence=/* @__PURE__ */ new Uint8Array(256),this._foodPixel=[5,5],this._currentFoodIndex=0,this._currentSpeed=230,this._timerId=null,this._touchStart={x:0,y:0},this._touchEnd={x:0,y:0},this._trainImages=[],this._foodImages=[],this._gridImage=null,this._imagesReady=!1,this._openAbortController=null,this._prevTailCell=null,this._ateFoodThisFrame=!1,this._needsFullRedraw=!0,this._handleStartClick=()=>{c||(this._resetGame(),this._started=!0)},this.backdropAction=`none`,this.accessibilityLabel=m[this.language.current],this.language.withHandler(()=>{this.accessibilityLabel=m[this.language.current]})}disconnectedCallback(){super.disconnectedCallback(),this._stopGame(),this._openAbortController?.abort(),this._openAbortController=null}handleOpening(){super.handleOpening(),c||(this._attachInputListeners(),this._imagesReady||this._initGame().then(()=>this._resetGame(!0)),this._focusStartButton())}handleClosing(){super.handleClosing(),this._highScore=0,this._resetGame(!0),this._openAbortController?.abort(),this._openAbortController=null}async _initGame(){this._cellSize=Math.min(20,Math.max(8,Math.floor(window.innerWidth/16)-1));let e=this._canvas;e&&(e.width=16*this._cellSize,e.height=16*this._cellSize,this._ctx=e.getContext(`2d`),this._gridImage=await this._loadImage(U),this._trainImages=await Promise.all(W.map(e=>this._loadImage(e))),this._foodImages=await Promise.all(G.map(e=>this._loadImage(e))),this._imagesReady=!0)}async _loadImage(e){let t=new Image;return t.src=e,t.decode().then(()=>t).catch(()=>t)}_attachInputListeners(){this._openAbortController?.abort(),this._openAbortController=new AbortController;let e=this._openAbortController.signal;document.addEventListener(`keydown`,e=>this._onKeydown(e),{signal:e});let t=this._canvas;t&&(t.addEventListener(`touchstart`,e=>this._onTouchStart(e),{signal:e,passive:!0}),t.addEventListener(`touchend`,e=>this._onTouchEnd(e),{signal:e,passive:!0}),t.addEventListener(`touchmove`,e=>e.preventDefault(),{signal:e,passive:!1}))}_onTouchStart(e){if(this._gameOver||!this._started)return;let t=e.changedTouches[0];this._touchStart={x:t.screenX,y:t.screenY}}_onTouchEnd(e){if(this._gameOver||!this._started)return;let t=e.changedTouches[0];this._touchEnd={x:t.screenX,y:t.screenY},this._handleSwipe()}_handleSwipe(){if(this._gameOver||!this._started)return;let e=this._touchEnd.x-this._touchStart.x,t=this._touchEnd.y-this._touchStart.y;if(Math.abs(e)<30&&Math.abs(t)<30)return;let n=Math.abs(e)>Math.abs(t)?e>0?`ArrowRight`:`ArrowLeft`:t>0?`ArrowDown`:`ArrowUp`;this._applyDirectionKey(n)}_onKeydown(e){this._applyDirectionKey(e.key)}_applyDirectionKey(e){if(!this._gameOver&&this._started){switch(e.toLowerCase()){case`w`:case`arrowup`:this._nextDir={x:0,y:-1};break;case`s`:case`arrowdown`:this._nextDir={x:0,y:1};break;case`a`:case`arrowleft`:if(!this._started)return;this._nextDir={x:-1,y:0};break;case`d`:case`arrowright`:this._nextDir={x:1,y:0};break;default:return}this._started=!0}}_resetGame(e){this._stopGame(),this._gameOver=!1,this._started=!1,this._score=0,this._currentSpeed=230,this._currentDir={x:1,y:0},this._nextDir={x:1,y:0},this._snake=[{x:10,y:10,corner:K.HORIZONTAL},{x:9,y:10,corner:K.HORIZONTAL},{x:8,y:10,corner:K.HORIZONTAL}],this._snakePresence=/* @__PURE__ */ new Uint8Array(256);for(let e of this._snake)this._snakePresence[this._idx(e.x,e.y)]=1;this._foodPixel=[5,5],this._currentFoodIndex=0,this._prevTailCell=null,this._ateFoodThisFrame=!1,this._needsFullRedraw=!0,this._imagesReady?e?this._draw():this._startGame():this._initGame().then(()=>{e?this._draw():this._startGame()})}_startGame(){this._timerId=setInterval(()=>this._update(),this._currentSpeed)}_stopGame(){this._timerId!==null&&(clearInterval(this._timerId),this._timerId=null)}_setGameOver(){this._stopGame(),this._gameOver=!0,this._score>this._highScore&&(this._highScore=this._score),this._focusStartButton()}async _focusStartButton(){c||(await this.updateComplete,this.shadowRoot?.querySelector(`.sbb-easter-egg__overlay sbb-button`)?.focus())}_updatePoints(){this._score+=1,this._score%3==0&&(this._currentSpeed=Math.max(this._currentSpeed-5,50),this._stopGame(),this._startGame())}_hasCollided(e){return e.x<0||e.x>=16||e.y<0||e.y>=16||this._snake.some(t=>t.x===e.x&&t.y===e.y)}_placeFood(){let e=[];for(let t=0;t<this._snakePresence.length;t++)this._snakePresence[t]===0&&e.push(t);if(!e.length)return;let t=e[Math.floor(Math.random()*e.length)];this._foodPixel=[t%16,Math.floor(t/16)],this._currentFoodIndex=Math.floor(Math.random()*this._foodImages.length)}_isReverse(e,t){return e.x===-t.x&&e.y===-t.y}_idx(e,t){return t*16+e}_getSecondSnakeCellDir(){let e=this._snake[0],t=this._snake[2];if(!t)return null;if(e.x===t.x)return K.VERTICAL;if(e.y===t.y)return K.HORIZONTAL;let n=t.x-e.x,r=t.y-e.y,i={"1,1":[K.SOUTHWEST,K.NORTHEAST],"-1,1":[K.SOUTHEAST,K.NORTHWEST],"-1,-1":[K.NORTHEAST,K.SOUTHWEST],"1,-1":[K.NORTHWEST,K.SOUTHEAST]}[`${n},${r}`];return i?this._currentDir.x===0?i[1]:i[0]:null}_update(){if(this._started){this._isReverse(this._currentDir,this._nextDir)||(this._currentDir={...this._nextDir});let e={x:this._snake[0].x+this._currentDir.x,y:this._snake[0].y+this._currentDir.y,corner:null};if(this._hasCollided(e)){this._setGameOver();return}if(this._snakePresence[this._idx(e.x,e.y)]=1,this._snake.unshift(e),this._snake[1].corner=this._getSecondSnakeCellDir(),e.x===this._foodPixel[0]&&e.y===this._foodPixel[1])this._placeFood(),this._updatePoints(),this._ateFoodThisFrame=!0,this._prevTailCell=null;else{let e=this._snake.length-1;this._prevTailCell={...this._snake[e]},this._snakePresence[this._idx(this._snake[e].x,this._snake[e].y)]=0,this._snake.pop(),this._ateFoodThisFrame=!1}}this._draw()}_clearTile(e,t){if(!this._ctx||!this._gridImage)return;let n=this._cellSize;this._ctx.clearRect(e*n,t*n,n,n),this._ctx.drawImage(this._gridImage,e*20,t*20,20,20,e*n,t*n,n,n)}_draw(){if(!this._ctx||!this._gridImage)return;let e=this._cellSize;requestAnimationFrame(()=>{if(!this._ctx||!this._gridImage)return;if(this._needsFullRedraw){let t=e*16;this._ctx.clearRect(0,0,t,t),this._ctx.drawImage(this._gridImage,0,0,t,t),this._ctx.drawImage(this._foodImages[this._currentFoodIndex],this._foodPixel[0]*e,this._foodPixel[1]*e,e,e);for(let t=0;t<this._snake.length;t++){let n=this._snake[t],r=n.corner===null?null:this._trainImages[n.corner];t===0&&(r=this._trainImages[this._getTrainHeadDir()]),t===this._snake.length-1&&(r=this._trainImages[this._getTrainTailDir(t)]),r&&this._ctx.drawImage(r,n.x*e,n.y*e,e,e)}this._needsFullRedraw=!1;return}let t=this._snake[1];if(this._clearTile(t.x,t.y),t.corner!==null&&this._ctx.drawImage(this._trainImages[t.corner],t.x*e,t.y*e,e,e),this._ateFoodThisFrame){let t=this._snake[0];this._clearTile(t.x,t.y),this._ctx.drawImage(this._trainImages[this._getTrainHeadDir()],t.x*e,t.y*e,e,e),this._ctx.drawImage(this._foodImages[this._currentFoodIndex],this._foodPixel[0]*e,this._foodPixel[1]*e,e,e)}else{this._prevTailCell&&this._clearTile(this._prevTailCell.x,this._prevTailCell.y);let t=this._snake.length-1,n=this._snake[t];this._clearTile(n.x,n.y),this._ctx.drawImage(this._trainImages[this._getTrainTailDir(t)],n.x*e,n.y*e,e,e);let r=this._snake[0];this._ctx.drawImage(this._trainImages[this._getTrainHeadDir()],r.x*e,r.y*e,e,e)}})}_getTrainHeadDir(){return{"0,1":8,"0,-1":6,"-1,0":9,"1,0":7}[`${this._currentDir.x},${this._currentDir.y}`]??7}_getTrainTailDir(e){let t=this._snake[e],n=this._snake[e-1];return t.x===n.x?t.y-n.y>0?13:11:t.x-n.x>0?10:12}render(){let e=this.language.current,t=!this._started||this._gameOver,n=this._gameOver?v[e]:_[e];return s`
532
532
  <div class="sbb-dialog__container">
533
533
  <div @animationend=${this.onOverlayAnimationEnd} class="sbb-dialog">
534
534
  <div
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements-experimental-dev",
3
- "version": "5.13.0-dev.1793553487",
3
+ "version": "5.13.0-dev.1793604753",
4
4
  "description": "Lyne Design System",
5
5
  "keywords": [
6
6
  "design system",
7
7
  "web components",
8
8
  "lit",
9
- "https://github.com/sbb-design-systems/lyne-components/commit/9a128ae6f6a449b6fe750f188fafb0e3b2ee4f50"
9
+ "https://github.com/sbb-design-systems/lyne-components/commit/ac4cd44bf6a0d408fe986cf8006f8c37e37a754a"
10
10
  ],
11
11
  "type": "module",
12
12
  "exports": {