1"use strict";(self.webpackChunk_perlas_7bet=self.webpackChunk_perlas_7bet||[]).push([[2335],{yKDj:(e,t,s)=>{s.d(t,{Z:()=>n});var i=s("+9dH"),o=s("L5+t"),a=s("q1tI"),r=s("JRPe");class Iframe extends a.Component{constructor(){super(...arguments),(0,o.Z)(this,"listener",(e=>{const t=e.data||{};this.props.onMessage(t,e.origin)})),(0,o.Z)(this,"frameRef",(e=>{if(!e)return;const t=this.props.content;if(t){(e.contentWindow&&e.contentWindow.document||e.contentDocument).body.appendChild(t)}this.props.afterAddToBody(t)}))}componentDidMount(){window.addEventListener("message",this.listener)}componentWillUnmount(){window.removeEventListener("message",this.listener)}render(){const{className:e,children:t,height:s,name:o,sandbox:r,src:n,width:l,onMessage:h,afterAddToBody:m,intl:d,onLoad:c,...p}=this.props;return a.createElement("iframe",(0,i.Z)({ref:this.frameRef,className:e,height:s,name:o,sandbox:r,src:n,width:l,onLoad:c},p),t)}}(0,o.Z)(Iframe,"defaultProps",{onMessage:(e,t)=>{},afterAddToBody:e=>{}});const n=(0,r.XN)(Iframe)},nW9I:(e,t,s)=>{s.r(t),s.d(t,{default:()=>_});var i=s("q1tI"),o=s("L5+t"),a=s("JRPe"),r=s("wIs1"),n=s("sMoO"),l=s("rTvU"),h=s("2SJc"),m=s("QhvC"),d=s("Si0y"),c=s("662j"),p=s("yKDj"),g=s("5QKI"),u=s("l4TE"),f=s("YNfE"),y=s("tIc/"),b=s("J/B8"),Z=s("D30D"),w=s("9a6m");const E=(0,a.vU)({"app.form.bia.frame.not.supported":{id:"app.form.bia.frame.not.supported",defaultMessage:"Frame is not supported."},"app.form.bia.cookiePolicy":{id:"app.form.bia.cookiePolicy",defaultMessage:"Cookies are needed for the game to work properly. Please, make sure cookies are enabled and third-party cookies aren't blocked in your browser and click [here](/sports)."},"app.form.bia.game.not.found":{id:"app.form.bia.game.not.found",defaultMessage:"Game not found."}});var L,v=s("MrDB"),k=s("KWJI"),I=s("XfWh");let M=(0,g.A)(L=class Bia extends i.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{loading:!0,height:0}),(0,o.Z)(this,"messages",(0,l.Z)(this,E,"app.form.bia.")),(0,o.Z)(this,"apiErrors",(0,h.$x)(this)),(0,o.Z)(this,"onLogin",(()=>{this.openModal("login")})),(0,o.Z)(this,"onDeposit",(()=>{this.openModal("deposit")})),(0,o.Z)(this,"height",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e})),(0,o.Z)(this,"hash",window.location.hash.substring(1)),(0,o.Z)(this,"oldHash",void 0),(0,o.Z)(this,"timestamp",Date.now())}componentDidMount(){this.init()}init(){this.core._api.billfold.game.clear(),this.game.error(`${this.props.type}Url`,""),this.game.item(`${this.props.type}Url`)}openModal(e){const{location:t}=window,s=(0,w.Z)(t.search);s.modal=e;const i=(0,Z.Z)(s);if(i!==t.search){const e=this.core.item("settings").item("languages").values().join("|"),s=t.pathname.replace(new RegExp(`^/(${e})(/?)`),"$2");this.props.history.push(s+i+t.hash)}}setHash(e){this.props.history.replace(e)}shouldComponentUpdate(e){return this.props.type===e.type&&this.props.id===e.id||(this.hash=window.location.hash.substring(1)),!0}get url(){let e=this.game.item(`${this.props.type}Url`);return window.location.hash?this.oldHash=window.location.hash:this.hash?this.hash="":this.oldHash&&(this.oldHash=void 0,this.timestamp=Date.now()),e+=`×tamp=${this.timestamp}`,this.hash&&(e+="&hash="+(0,n.Z)(this.hash)),e}get game(){return this.core.item("games").item("allGames").item(this.props.id)}cookiesAreDisabled(){return!!~(location.search||"").toLowerCase().indexOf("error=cookiepolicy")}get hasError(){return!this.game||!!this.game.error(`${this.props.type}Url`)||this.cookiesAreDisabled||this.state.error}get error(){const e=(this.game?this.game.error(`${this.props.type}Url`):{}).errorCode;return 203===e?i.createElement("div",{className:"bia"},i.createElement(d.Z,{type:"game",onSubmit:()=>{this.game.error(`${this.props.type}Url`,"")}})):249===e?i.createElement(m.Z,null,i.createElement("div",{className:"container limits__container"},i.createElement(v.Z,{className:"limits__items",justify:"center"},i.createElement(k.Z,{className:"limits__item",xs:12},i.createElement(c.Z,null))))):i.createElement(v.Z,{justify:"center",className:"bia-notification-wrapper"},i.createElement(k.Z,{xs:12,sm:10,md:6},i.createElement(f.Z,{type:"error"},e?i.createElement(y.Z,{text:this.apiErrors(this.game.error(`${this.props.type}Url`))}):null,this.cookiesAreDisabled()?i.createElement(y.Z,{text:this.messages("cookiePolicy")}):null,e?null:i.createElement(y.Z,{text:this.messages("game.not.foun
1d")}))))}get loading(){return i.createElement(m.Z,null,i.createElement(b.default,{className:"bingo-progress"}))}get isLoading(){return!this.game&&this.core.item("games").item("preloading")}get content(){return this.game.loaded(`${this.props.type}Url`)?i.createElement(u.Z,null,this.state.loading?this.loading:null,i.createElement(p.Z,{id:"bia-frame",className:"bia-frame "+(this.state.loading?"bia-frame--loading":""),scrolling:"no",allowFullScreen:!0,style:{height:(this.state.height||0)+"px",width:"100%",visibility:"visible"},onMessage:e=>{const{type:t,value:s,params:i={}}=e||{};if("bia"===t)switch(s){case"error":case"loaded":this.setState({loading:!1});break;case"resize":this.setState({height:i.height});break;case"login":this.onLogin();break;case"deposit":this.onDeposit();break;case"hash":this.setHash(i.hash)}},src:this.url},this.messages("frame.not.supported"))):this.loading}render(){return this.hasError?this.error:this.content}})||L;const C=(0,I.Z)(r.Z,a.XN)(M);var D,$=s("VmZ8"),x=s("6GXI"),U=s("HKiv");let N=(0,g.A)(D=class BiaPage extends i.Component{componentDidMount(){this.$disposeLoading=(0,x.U5)((()=>[this.isLoading,this.showAMLWarning]),(e=>{let[t,s]=e;t||s||(document.querySelector(":root").style.setProperty("--w-offset-session","60px"),"function"==typeof this.$disposeLoading&&(this.$disposeLoading(),this.$disposeLoading=null))}),{fireImmediately:!0})}componentWillUnmount(){document.querySelector(":root").style.removeProperty("--w-offset-session")}resolveGameId(e){const t=this.core.item("games");return t?t.resolveGameId(e):null}get showAMLWarning(){return this.core.item("ui").item(U.H)}get loginCallLoading(){const{core:e}=this;return e.item("login").getCallLoading()||e.item("loginByToken").getCallLoading()||e.item("autoLogin").getCallLoading()}get loading(){return i.createElement(m.Z,null,i.createElement(b.default,{className:"altenar__loader"}))}get gameId(){const{id:e}=this.props.match.params;return this.resolveGameId(this.props.id||e)}get game(){return this.core.item("games").item("allGames").item(this.gameId)}get isLoading(){return!this.game&&this.core.item("games").item("preloading")||this.loginCallLoading||this.core.item("games").loading("allGames")}render(){if(this.isLoading)return this.loading;const e=this.core.item("settings").item("fe").item("betting.altenar"),{type:t=(this.core.item("loggedIn")?"real":"demo")}=this.props.match.params;return e?i.createElement($.ZP,{id:this.gameId,type:t}):i.createElement(C,{id:this.gameId,type:t})}})||D;const _=N}}]); 2//# sourceMappingURL=BiaPage.76c7f031.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.