@betorigami/games 1.22.5 → 1.22.6
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 +16 -12
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -38,8 +38,18 @@ var hr=Object.create;var{getPrototypeOf:cr,defineProperty:X6,getOwnPropertyNames
|
|
|
38
38
|
\f\r]*(?:[^
|
|
39
39
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),r7=/'/g,n7=/"/g,o7=/^(?:script|style|textarea|title)$/i,T3=(a)=>(e,...i)=>({_$litType$:a,strings:e,values:i}),Z=T3(1),a1=T3(2),mt=T3(3),Y1=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),l7=new WeakMap,_2=a0.createTreeWalker(a0,129);function s7(a,e){if(!V3(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return a7!==void 0?a7.createHTML(e):e}var h7=(a,e)=>{let i=a.length-1,r=[],n,l=e===2?"<svg>":e===3?"<math>":"",t=G0;for(let s=0;s<i;s++){let o=a[s],d,u,m=-1,h=0;for(;h<o.length&&(t.lastIndex=h,u=t.exec(o),u!==null);)h=t.lastIndex,t===G0?u[1]==="!--"?t=e7:u[1]!==void 0?t=i7:u[2]!==void 0?(o7.test(u[2])&&(n=RegExp("</"+u[2],"g")),t=B2):u[3]!==void 0&&(t=B2):t===B2?u[0]===">"?(t=n??G0,m=-1):u[1]===void 0?m=-2:(m=t.lastIndex-u[2].length,d=u[1],t=u[3]===void 0?B2:u[3]==='"'?n7:r7):t===n7||t===r7?t=B2:t===e7||t===i7?t=G0:(t=B2,n=void 0);let f=t===B2&&a[s+1].startsWith("/>")?" ":"";l+=t===G0?o+zr:m>=0?(r.push(d),o.slice(0,m)+"$lit$"+o.slice(m)+S2+f):o+S2+(m===-2?s:f)}return[s7(a,l+(a[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class B0{constructor({strings:a,_$litType$:e},i){let r;this.parts=[];let n=0,l=0,t=a.length-1,s=this.parts,[o,d]=h7(a,e);if(this.el=B0.createElement(o,i),_2.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(r=_2.nextNode())!==null&&s.length<t;){if(r.nodeType===1){if(r.hasAttributes())for(let u of r.getAttributeNames())if(u.endsWith("$lit$")){let m=d[l++],h=r.getAttribute(u).split(S2),f=/([.?@])?(.*)/.exec(m);s.push({type:1,index:n,name:f[2],strings:h,ctor:f[1]==="."?A3:f[1]==="?"?$3:f[1]==="@"?D3:z0}),r.removeAttribute(u)}else u.startsWith(S2)&&(s.push({type:6,index:n}),r.removeAttribute(u));if(o7.test(r.tagName)){let u=r.textContent.split(S2),m=u.length-1;if(m>0){r.textContent=Fa?Fa.emptyScript:"";for(let h=0;h<m;h++)r.append(u[h],P0()),_2.nextNode(),s.push({type:2,index:++n});r.append(u[m],P0())}}}else if(r.nodeType===8)if(r.data===J3)s.push({type:2,index:n});else{let u=-1;for(;(u=r.data.indexOf(S2,u+1))!==-1;)s.push({type:7,index:n}),u+=S2.length-1}n++}}static createElement(a,e){let i=a0.createElement("template");return i.innerHTML=a,i}}function e0(a,e,i=a,r){if(e===Y1)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,l=U0(e)?void 0:e._$litDirective$;return n?.constructor!==l&&(n?._$AO?.(!1),l===void 0?n=void 0:(n=new l(a),n._$AT(a,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=e0(a,n._$AS(a,e.values),n,r)),e}class W3{constructor(a,e){this._$AV=[],this._$AN=void 0,this._$AD=a,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(a){let{el:{content:e},parts:i}=this._$AD,r=(a?.creationScope??a0).importNode(e,!0);_2.currentNode=r;let n=_2.nextNode(),l=0,t=0,s=i[0];for(;s!==void 0;){if(l===s.index){let o;s.type===2?o=new b0(n,n.nextSibling,this,a):s.type===1?o=new s.ctor(n,s.name,s.strings,this,a):s.type===6&&(o=new Q3(n,this,a)),this._$AV.push(o),s=i[++t]}l!==s?.index&&(n=_2.nextNode(),l++)}return _2.currentNode=a0,r}p(a){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(a,i,e),e+=i.strings.length-2):i._$AI(a[e])),e++}}class b0{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(a,e,i,r){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=a,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let a=this._$AA.parentNode,e=this._$AM;return e!==void 0&&a?.nodeType===11&&(a=e.parentNode),a}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(a,e=this){a=e0(this,a,e),U0(a)?a===Q||a==null||a===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):a!==this._$AH&&a!==Y1&&this._(a):a._$litType$!==void 0?this.$(a):a.nodeType!==void 0?this.T(a):t7(a)?this.k(a):this._(a)}O(a){return this._$AA.parentNode.insertBefore(a,this._$AB)}T(a){this._$AH!==a&&(this._$AR(),this._$AH=this.O(a))}_(a){this._$AH!==Q&&U0(this._$AH)?this._$AA.nextSibling.data=a:this.T(a0.createTextNode(a)),this._$AH=a}$(a){let{values:e,_$litType$:i}=a,r=typeof i=="number"?this._$AC(a):(i.el===void 0&&(i.el=B0.createElement(s7(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(e);else{let n=new W3(r,this),l=n.u(this.options);n.p(e),this.T(l),this._$AH=n}}_$AC(a){let e=l7.get(a.strings);return e===void 0&&l7.set(a.strings,e=new B0(a)),e}k(a){V3(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,r=0;for(let n of a)r===e.length?e.push(i=new b0(this.O(P0()),this.O(P0()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(a=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);a&&a!==this._$AB;){let i=a.nextSibling;a.remove(),a=i}}setConnected(a){this._$AM===void 0&&(this._$Cv=a,this._$AP?.(a))}}class z0{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(a,e,i,r,n){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=a,this.name=e,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(a,e=this,i,r){let n=this.strings,l=!1;if(n===void 0)a=e0(this,a,e,0),l=!U0(a)||a!==this._$AH&&a!==Y1,l&&(this._$AH=a);else{let t=a,s,o;for(a=n[0],s=0;s<n.length-1;s++)o=e0(this,t[i+s],e,s),o===Y1&&(o=this._$AH[s]),l||=!U0(o)||o!==this._$AH[s],o===Q?a=Q:a!==Q&&(a+=(o??"")+n[s+1]),this._$AH[s]=o}l&&!r&&this.j(a)}j(a){a===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,a??"")}}class A3 extends z0{constructor(){super(...arguments),this.type=3}j(a){this.element[this.name]=a===Q?void 0:a}}class $3 extends z0{constructor(){super(...arguments),this.type=4}j(a){this.element.toggleAttribute(this.name,!!a&&a!==Q)}}class D3 extends z0{constructor(a,e,i,r,n){super(a,e,i,r,n),this.type=5}_$AI(a,e=this){if((a=e0(this,a,e,0)??Q)===Y1)return;let i=this._$AH,r=a===Q&&i!==Q||a.capture!==i.capture||a.once!==i.once||a.passive!==i.passive,n=a!==Q&&(i===Q||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,a),this._$AH=a}handleEvent(a){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,a):this._$AH.handleEvent(a)}}class Q3{constructor(a,e,i){this.element=a,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(a){e0(this,a)}}var c7={M:"$lit$",P:S2,A:J3,C:1,L:h7,R:W3,D:t7,V:e0,I:b0,H:z0,N:$3,U:D3,B:A3,F:Q3},yr=E3.litHtmlPolyfillSupport;yr?.(B0,b0),(E3.litHtmlVersions??=[]).push("3.3.0");var u7=(a,e,i)=>{let r=i?.renderBefore??e,n=r._$litPart$;if(n===void 0){let l=i?.renderBefore??null;r._$litPart$=n=new b0(e.insertBefore(P0(),l),l,void 0,i??{})}return n._$AI(a),n};var Y3=globalThis;class H1 extends J2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let a=super.createRenderRoot();return this.renderOptions.renderBefore??=a.firstChild,a}update(a){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(a),this._$Do=u7(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Y1}}H1._$litElement$=!0,H1.finalized=!0,Y3.litElementHydrateSupport?.({LitElement:H1});var xr=Y3.litElementPolyfillSupport;xr?.({LitElement:H1});(Y3.litElementVersions??=[]).push("4.2.0");var T=(a)=>(e,i)=>{i!==void 0?i.addInitializer(()=>{customElements.define(a,e)}):customElements.define(a,e)};var Zr={attribute:!0,type:String,converter:N0,reflect:!1,hasChanged:Ha},Ir=(a=Zr,e,i)=>{let{kind:r,metadata:n}=i,l=globalThis.litPropertyMetadata.get(n);if(l===void 0&&globalThis.litPropertyMetadata.set(n,l=new Map),r==="setter"&&((a=Object.create(a)).wrapped=!0),l.set(i.name,a),r==="accessor"){let{name:t}=i;return{set(s){let o=e.get.call(this);e.set.call(this,s),this.requestUpdate(t,o,a)},init(s){return s!==void 0&&this.C(t,void 0,a,s),s}}}if(r==="setter"){let{name:t}=i;return function(s){let o=this[t];e.call(this,s),this.requestUpdate(t,o,a)}}throw Error("Unsupported decorator location: "+r)};function b(a){return(e,i)=>typeof i=="object"?Ir(a,e,i):((r,n,l)=>{let t=n.hasOwnProperty(l);return n.constructor.createProperty(l,r),t?Object.getOwnPropertyDescriptor(n,l):void 0})(a,e,i)}function q(a){return b({...a,state:!0,attribute:!1})}var V2=(a,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(a,e,i),i);function i1(a,e){return(i,r,n)=>{let l=(t)=>t.renderRoot?.querySelector(a)??null;if(e){let{get:t,set:s}=typeof r=="object"?i:n??(()=>{let o=Symbol();return{get(){return this[o]},set(d){this[o]=d}}})();return V2(i,r,{get(){let o=t.call(this);return o===void 0&&(o=l(this),(o!==null||this.hasUpdated)&&s.call(this,o)),o}})}return V2(i,r,{get(){return l(this)}})}}var Rr;function d7(a){return(e,i)=>V2(e,i,{get(){return(this.renderRoot??(Rr??=document.createDocumentFragment())).querySelectorAll(a)}})}var r2={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},p2=(a)=>(...e)=>({_$litDirective$:a,values:e});class b2{constructor(a){}get _$AU(){return this._$AM._$AU}_$AT(a,e,i){this._$Ct=a,this._$AM=e,this._$Ci=i}_$AS(a,e){return this.update(a,e)}update(a,e){return this.render(...e)}}var B=p2(class extends b2{constructor(a){if(super(a),a.type!==r2.ATTRIBUTE||a.name!=="class"||a.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter((e)=>a[e]).join(" ")+" "}update(a,[e]){if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter((r)=>r!=="")));for(let r in e)e[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(e)}let i=a.element.classList;for(let r of this.st)r in e||(i.remove(r),this.st.delete(r));for(let r in e){let n=!!e[r];n===this.st.has(r)||this.nt?.has(r)||(n?(i.add(r),this.st.add(r)):(i.remove(r),this.st.delete(r)))}return Y1}});class C3{canVibrate;constructor(a){a.addController(this),this.canVibrate="vibrate"in navigator}trigger(a=10){if(!this.canVibrate)return;try{navigator.vibrate(a)}catch{}}click(){this.trigger(50)}lightClick(){this.trigger(35)}}function f7(a){let e=a.replace(/-/g,"").substring(0,12),i=parseInt(e,16);return new Date(i)}function m7(a){return a.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0})}class X3 extends EventTarget{host;_historyData=[];_hasData=null;_isInitialized=!1;_hasNextPage=!1;_initialLoadSize=20;_hasLoadedMore=!1;_clientSeed=null;_hasLoadedClientSeed=!1;constructor(a){super();this.host=a,a.addController(this),setTimeout(()=>{this.preloadHistory(),this.loadClientSeed()},100)}get historyData(){return this._historyData}get hasData(){return this._hasData}get isInitialized(){return this._isInitialized}get hasNextPage(){return this._hasNextPage}get clientSeed(){return this._clientSeed}get hasLoadedClientSeed(){return this._hasLoadedClientSeed}notifyDataChanged(){this.dispatchEvent(new CustomEvent("history-data-changed",{detail:{historyData:this._historyData,hasNextPage:this._hasNextPage,hasData:this._hasData}}))}notifyClientSeedChanged(){this.dispatchEvent(new CustomEvent("client-seed-changed",{detail:{clientSeed:this._clientSeed}}))}async preloadHistory(){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken)return;try{let{historyData:a,hasNextPage:e}=await this.fetchHistory(void 0,this._initialLoadSize);this._historyData=a,this._hasData=a.length>0,this._hasNextPage=e,this._isInitialized=!0,this._hasLoadedMore=!1,this.notifyDataChanged()}catch(a){console.error("Failed to preload history:",a),this._isInitialized=!0,this._hasData=null}}async fetchHistory(a,e=5){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken)return{historyData:[],hasNextPage:!1};let i=new URL(`${this.host.gameData.baseUrl}/bet/my-bets`);if(i.searchParams.append("limit",e.toString()),a)i.searchParams.append("beforeId",a);let r=await fetch(i.toString(),{headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.host.gameData.authToken}`}});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);let n=await r.json();return{historyData:n.results.map((t)=>({id:`${t.id.slice(0,3)}...${t.id.slice(-3)}`,fullId:t.id,timestamp:m7(f7(t.id)),currency:t.currency,bet:Number(t.amount),win:Number(t.payout)})),hasNextPage:!!n.nextCursor}}async refreshHistory(a=!1){try{let e=a&&this._hasLoadedMore?this._historyData.length:this._initialLoadSize,{historyData:i,hasNextPage:r}=await this.fetchHistory(void 0,e);if(this._historyData=i,this._hasData=i.length>0,this._hasNextPage=r,!a)this._hasLoadedMore=!1;this.notifyDataChanged()}catch(e){console.error("Failed to refresh history:",e)}}async loadMore(){if(!this._hasNextPage||this._historyData.length===0)return{historyData:[],hasNextPage:!1};let a=this._historyData[this._historyData.length-1],{historyData:e,hasNextPage:i}=await this.fetchHistory(a.fullId,this._initialLoadSize);return this._historyData=[...this._historyData,...e],this._hasNextPage=i,this._hasLoadedMore=!0,this.notifyDataChanged(),this.dispatchEvent(new CustomEvent("history-loaded-more")),{historyData:e,hasNextPage:i}}addNewBet(a){if(this._historyData.some((i)=>i.fullId===a.id))return;let e={id:`${a.id.slice(0,3)}...${a.id.slice(-3)}`,fullId:a.id,timestamp:m7(f7(a.id)),currency:a.currency,bet:Number(a.amount),win:Number(a.payout)};if(!this._hasLoadedMore&&this._historyData.length>=this._initialLoadSize)this._historyData=[e,...this._historyData.slice(0,this._initialLoadSize-1)],this._hasNextPage=!0;else this._historyData=[e,...this._historyData];this._hasData=!0,this.notifyDataChanged()}async loadClientSeed(){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken||this._hasLoadedClientSeed)return;try{let a=await fetch(`${this.host.gameData.baseUrl}/provably-fair/my-info`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.host.gameData.authToken}`}});if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);let e=await a.json();this._clientSeed=e.clientSeed,this._hasLoadedClientSeed=!0,this.notifyClientSeedChanged()}catch(a){console.error("Failed to load client seed:",a)}}updateClientSeed(a){this._clientSeed=a,this.notifyClientSeedChanged()}}var v7="v4";class N3{host;muted=!1;audioCtx;buffer;spriteMap=null;constructor(a){this.host=a,a.addController(this);let e=window.AudioContext||window.webkitAudioContext;this.audioCtx=new e,fetch(`https://assets.betorigami.com/sounds/${v7}/sounds.mp3`).then((i)=>{return i.arrayBuffer().then((r)=>{this.audioCtx.decodeAudioData(r,(n)=>{this.buffer=n})}).catch((r)=>{})}).catch(),fetch(`https://assets.betorigami.com/sounds/${v7}/sounds.json`).then((i)=>i.json()).catch().then((i)=>{this.spriteMap=i.spritemap}).catch(),window.onclick=()=>{this.play("bet",!0),window.onclick=null}}async play(a,e,i=1,r,n=()=>{},l=!1){if(!this.buffer||!this.spriteMap)return;let t=this.audioCtx.createBufferSource();t.buffer=this.buffer;let s=this.spriteMap[a];try{if(this.audioCtx&&t){let o=this.audioCtx.createGain(),d=r??(this.host.gameData?.volume??100)/100,u=e??this.muted;if(o.gain.value=u?0:Math.min(d,1),o.connect(this.audioCtx.destination),t.connect(o),t.playbackRate.value=i,l)t.loop=!0,t.loopStart=s.start,t.loopEnd=s.end,t.start(0,s.start);else t.start(0,s.start),setTimeout(()=>{t?.stop(),n()},1000*(s.end-s.start));return t}}catch(o){console.error("Error playing sound",o)}}}var c1="USD";var w7=[1,2,3,4,8];var C1=2,k7=["ROULETTE","BACCARAT"];class Y extends H1{static componentStyles=[];emit(a,e){let i=new CustomEvent(a,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...e});return this.dispatchEvent(i),i}}var vo=R2("language"),W="en";var Qr={ar:()=>Promise.resolve().then(() => v1(G3(),1)),de:()=>Promise.resolve().then(() => v1(P3(),1)),en:()=>Promise.resolve().then(() => v1(U3(),1)),"en-soc":()=>Promise.resolve().then(() => v1(B3(),1)),es:()=>Promise.resolve().then(() => v1(_3(),1)),fi:()=>Promise.resolve().then(() => v1(a4(),1)),fr:()=>Promise.resolve().then(() => v1(e4(),1)),hi:()=>Promise.resolve().then(() => v1(i4(),1)),id:()=>Promise.resolve().then(() => v1(r4(),1)),ja:()=>Promise.resolve().then(() => v1(n4(),1)),ko:()=>Promise.resolve().then(() => v1(l4(),1)),pl:()=>Promise.resolve().then(() => v1(t4(),1)),pt:()=>Promise.resolve().then(() => v1(o4(),1)),ru:()=>Promise.resolve().then(() => v1(s4(),1)),tr:()=>Promise.resolve().then(() => v1(h4(),1)),vi:()=>Promise.resolve().then(() => v1(c4(),1)),zh:()=>Promise.resolve().then(() => v1(u4(),1))};class g7{loadedLanguages=new Set;loadingPromises=new Map;loadedTranslations=new Map;async loadLanguage(a){if(this.loadedLanguages.has(a))return;if(this.loadingPromises.has(a))return this.loadingPromises.get(a);let e=this.loadLanguageModule(a);this.loadingPromises.set(a,e);try{await e,this.loadedLanguages.add(a)}finally{this.loadingPromises.delete(a)}}getTranslationData(a){return this.loadedTranslations.get(a)||null}isLanguageLoaded(a){return this.loadedLanguages.has(a)}getLoadedLanguages(){return Array.from(this.loadedLanguages)}async preloadLanguages(a){let e=a.map((i)=>this.loadLanguage(i).catch(()=>{}));await Promise.all(e)}clearAll(){this.loadedLanguages.clear(),this.loadingPromises.clear(),this.loadedTranslations.clear(),d4()}async loadLanguageModule(a){try{let e=await Qr[a]();this.loadedTranslations.set(a,e.default),d4()}catch(e){throw e}}}var _0=new g7;_0.loadLanguage(W).catch(()=>{});var b7=v1(G3(),1),z7=v1(P3(),1),y7=v1(U3(),1),x7=v1(B3(),1),Z7=v1(_3(),1),I7=v1(a4(),1),R7=v1(e4(),1),S7=v1(i4(),1),H7=v1(r4(),1),F7=v1(n4(),1),K7=v1(l4(),1),O7=v1(t4(),1),M7=v1(o4(),1),j7=v1(s4(),1),q7=v1(h4(),1),L7=v1(c4(),1),E7=v1(u4(),1);var f4={ar:b7.default,de:z7.default,en:y7.default,"en-soc":x7.default,es:Z7.default,fi:I7.default,fr:R7.default,hi:S7.default,id:H7.default,ja:F7.default,ko:K7.default,pl:O7.default,pt:M7.default,ru:j7.default,tr:q7.default,vi:L7.default,zh:E7.default};function Yr(a){let e=_0.getTranslationData(a);if(e)return e;return f4[a]||f4[W]}var $o=R2(Symbol("translation"));class J7{cache=new Map;maxSize=1000;get(a){return this.cache.get(a)}set(a,e){if(this.cache.size>=this.maxSize)this.cache.clear();this.cache.set(a,e)}clear(){this.cache.clear()}size(){return this.cache.size}}var m4=new J7,p7=new Map;function Cr(a){let e=p7.get(a);if(!e)e=a.split("."),p7.set(a,e);return e}function V7(a,e,i){let r=Yr(e);try{let n=Cr(a),l=r;for(let t of n)if(l=l?.[t],l===void 0)break;if(typeof l==="string")return l;if(e!==W)return V7(a,W,i);return i||a}catch{return i||a}}function S(a,e=W,i){let r=i?`${a}:${e}:${i}`:`${a}:${e}`,n=m4.get(r);if(n!==void 0)return n;let l=V7(a,e,i);return m4.set(r,l),l}function d4(){m4.clear()}var t1={betAmount:"0.00",scale:1,updateBetAmount:()=>{},updateBalance:()=>{},currency:c1,currencyDecimals:2,showCurrencyAsText:!1,balance:0,baseUrl:"",authToken:"",publicKey:"",hotkeysOpenEnabled:!1,showMaxBetButton:!1,volume:100,instantBetEnabled:!1,mainWidth:0,updateMainWidth:()=>{},updateHotkeysOpenEnabled:()=>{},updateShowMaxBetButton:()=>{},updateVolume:()=>{},updateInstantBetEnabled:()=>{},language:W,seasonTheme:"DEFAULT",autobetNumberOfBets:0,updateAutobetNumberOfBets:()=>{},soundController:void 0,historyController:void 0,hapticController:void 0,lobbyUrl:"https://betorigami.com",depositUrl:void 0,hasLoadedBalance:!1,maxPayout:null,minBet:null,maxBet:null,edge:2,footerPosition:"BELOW",logoUrl:null,alwaysEnableMaxBetButton:!1,gcCurrencyIconSvgUrl:null,scCurrencyIconSvgUrl:null,customMinesBackgroundSvgUrl:null,customMinesGemSvgUrl:null,customMinesBombSvgUrl:null,customMinesTileSvgUrl:null,customMinesAutobetSelectedTileSvgUrl:null,customKenoBackgroundSvgUrl:null,customKenoGemSvgUrl:null,customKenoNonMatchTileSvgUrl:null,customKenoTileSvgUrl:null,customKenoSelectedTileSvgUrl:null,customRouletteBackgroundSvgUrl:null,roulettePreventOppositeBets:!1,customDiceBackgroundSvgUrl:null,diceMinMultiplier:null,advancedDiceMinMultiplier:null,customAdvancedDiceBackgroundSvgUrl:null,customPlinkoBackgroundSvgUrl:null,customPlinkoEdgeColor:null,customPlinkoCenterColor:null,customBaccaratBackgroundSvgUrl:null,customBaccaratCardBackSvgUrl:null,baccaratPreventOppositeBets:!1,customLimboBackgroundSvgUrl:null,customWheelBackgroundSvgUrl:null,customWheelCenterSvgUrl:null,customWheelCenterPadding:null,customDiamondsBackgroundSvgUrl:null,customBlackjackBackgroundSvgUrl:null,customCardBackSvgUrl:null,customFooterLobbySvgUrl:null,customFooterVolumeSvgUrl:null,customFooterGameInfoSvgUrl:null,customFooterInstantBetSvgUrl:null,customFooterHotkeysSvgUrl:null,customFooterProvablyFairSvgUrl:null},P=R2(Symbol("game"));var T7=D`
|
|
40
40
|
:host {
|
|
41
|
+
display: block;
|
|
42
|
+
height: 100%;
|
|
41
43
|
position: relative;
|
|
42
|
-
overflow: hidden;
|
|
44
|
+
overflow-x: hidden;
|
|
45
|
+
overflow-y: auto;
|
|
46
|
+
overscroll-behavior: none;
|
|
47
|
+
-webkit-overflow-scrolling: touch;
|
|
48
|
+
scrollbar-width: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host::-webkit-scrollbar {
|
|
52
|
+
display: none;
|
|
43
53
|
}
|
|
44
54
|
|
|
45
55
|
.loading-overlay {
|
|
@@ -8481,7 +8491,6 @@ var hr=Object.create;var{getPrototypeOf:cr,defineProperty:X6,getOwnPropertyNames
|
|
|
8481
8491
|
display: block;
|
|
8482
8492
|
width: 100%;
|
|
8483
8493
|
height: 100%;
|
|
8484
|
-
-webkit-overflow-scrolling: touch;
|
|
8485
8494
|
touch-action: pan-y;
|
|
8486
8495
|
}
|
|
8487
8496
|
|
|
@@ -8506,10 +8515,6 @@ var hr=Object.create;var{getPrototypeOf:cr,defineProperty:X6,getOwnPropertyNames
|
|
|
8506
8515
|
position: relative;
|
|
8507
8516
|
container-type: inline-size;
|
|
8508
8517
|
height: 100%;
|
|
8509
|
-
-webkit-overflow-scrolling: touch;
|
|
8510
|
-
overflow-y: auto;
|
|
8511
|
-
overflow-x: hidden;
|
|
8512
|
-
overscroll-behavior: none;
|
|
8513
8518
|
}
|
|
8514
8519
|
|
|
8515
8520
|
@media (max-width: 768px) {
|
|
@@ -8527,8 +8532,7 @@ var hr=Object.create;var{getPrototypeOf:cr,defineProperty:X6,getOwnPropertyNames
|
|
|
8527
8532
|
background-color:var(--background-tertiary, #2F2F2F);
|
|
8528
8533
|
color: var(--primary-text-color, #FFFFFF);
|
|
8529
8534
|
flex: 1;
|
|
8530
|
-
|
|
8531
|
-
-webkit-overflow-scrolling: touch;
|
|
8535
|
+
min-height: 0;
|
|
8532
8536
|
width: 100%;
|
|
8533
8537
|
min-width: 300px;
|
|
8534
8538
|
border-bottom-left-radius: 0;
|
|
@@ -8548,18 +8552,17 @@ var hr=Object.create;var{getPrototypeOf:cr,defineProperty:X6,getOwnPropertyNames
|
|
|
8548
8552
|
|
|
8549
8553
|
.game-layout-game-area {
|
|
8550
8554
|
width: 100%;
|
|
8555
|
+
min-width: 0;
|
|
8551
8556
|
display: flex;
|
|
8552
8557
|
flex-direction: column;
|
|
8553
8558
|
justify-content: center;
|
|
8554
8559
|
align-items: center;
|
|
8555
8560
|
user-select: none;
|
|
8556
8561
|
position: relative;
|
|
8557
|
-
overflow: auto;
|
|
8558
|
-
-webkit-overflow-scrolling: touch;
|
|
8559
8562
|
margin: 0 auto;
|
|
8560
8563
|
order: 1;
|
|
8561
8564
|
transition: min-height var(--anim-duration-fast) var(--ease-out-cubic);
|
|
8562
|
-
min-height:
|
|
8565
|
+
min-height: 0;
|
|
8563
8566
|
padding: 12px;
|
|
8564
8567
|
background: var(--background-tertiary, #2F2F2F);
|
|
8565
8568
|
}
|
|
@@ -8604,6 +8607,7 @@ var hr=Object.create;var{getPrototypeOf:cr,defineProperty:X6,getOwnPropertyNames
|
|
|
8604
8607
|
|
|
8605
8608
|
::slotted([slot="game-area"]) {
|
|
8606
8609
|
width: 100%;
|
|
8610
|
+
height: 100%;
|
|
8607
8611
|
}
|
|
8608
8612
|
|
|
8609
8613
|
::slotted([slot="game-overlay"]) {
|
|
@@ -8651,7 +8655,6 @@ var hr=Object.create;var{getPrototypeOf:cr,defineProperty:X6,getOwnPropertyNames
|
|
|
8651
8655
|
}
|
|
8652
8656
|
|
|
8653
8657
|
.game-layout-game-area {
|
|
8654
|
-
min-height: auto;
|
|
8655
8658
|
height: 100%;
|
|
8656
8659
|
order: 2;
|
|
8657
8660
|
padding: 0;
|
|
@@ -8663,6 +8666,7 @@ var hr=Object.create;var{getPrototypeOf:cr,defineProperty:X6,getOwnPropertyNames
|
|
|
8663
8666
|
min-width: 300px;
|
|
8664
8667
|
border-right: 1px solid var(--layout-divider, var(--background-base, #1A1A1A));
|
|
8665
8668
|
order: 1;
|
|
8669
|
+
overflow-y: auto;
|
|
8666
8670
|
}
|
|
8667
8671
|
}
|
|
8668
8672
|
|