1"use strict";(self.webpackChunk_perlas_7bet=self.webpackChunk_perlas_7bet||[]).push([[4688],{qgTm:(e,t,i)=>{i.d(t,{Z:()=>v,j:()=>sendGameDataForFrosmo});var n=i("L5+t"),s=i("q1tI"),o=i("JRPe"),r=i("TSYQ"),l=i.n(r),a=i("9CU5"),m=i("NL18"),d=i("5QKI"),c=i("rTvU");const p=(0,o.vU)({"app.game.list.empty":{id:"app.game.list.empty",defaultMessage:"No games found"},"app.game.list.notAvailable":{id:"app.game.list.notAvailable",defaultMessage:"Sorry, there are no games available for you"},"app.game.list.more":{id:"app.game.list.more",defaultMessage:"View more"},"app.game.list.gameId.not.found":{id:"app.game.list.gameId.not.found",defaultMessage:"GameId is not found"}});var u,g,f=i("GP84"),h=i("Tr2L");let S=(0,d.A)((g=class GameList extends s.Component{constructor(){super(...arguments),(0,n.Z)(this,"messages",(0,c.Z)(this,p,"app.game.list."))}get settings(){return this.core.item("settings")}get loading(){return this.core.item("games").loading("allGames")}get loaded(){return this.core.item("games").item("allGames"),this.core.item("games").loaded("allGames")}get count(){const e=this.settings.item("fe");return this.props.count||e.item("games.list.limit."+this.core.item("deviceType"))||e.item("games.list.limit")||6}get infiniteScroll(){return this.settings.item("fe").item("games.list.infinite")}get isFrosmoContainer(){return this.settingsFe.item("applyFrosmoContainer")&&"ru"!==localStorage.getItem("selectedLanguage")}get isDesktop(){return"desktop"===this.core.item("deviceType")}get infiniteScrollStep(){const e=this.settings.item("fe");return this.props.infiniteScrollStep||e.item("games.list.infinite.step."+this.core.item("deviceType"))||e.item("games.list.infinite.step")||50}get settingsFe(){return this.core.item("settings").item("fe")}get infiniteScrollOffset(){return this.settings.item("fe").item("games.list.infinite.offset")||100}get gameFrosmoIndex(){return this.isDesktop?9*this.settingsFe.item("frosmoContainerRowDesktop")-1:7*this.settingsFe.item("frosmoContainerRowMobile")-1}get listArray(){return[...this.props.list()][this.gameFrosmoIndex]}get frosmoContainer(){return s.createElement("div",{className:"fr_casino_grid"},"Frosmo Container")}get className(){return l()(this.props.className,`game-list game-list--${this.props.id}`)}get allGames(){return this.core.item("games").item("allGames")}get content(){var e;const{props:{list:t,firstCountOffset:i,emptyComponent:n}}=this;return!this.loaded||this.loading?null:null!==(e=t())&&void 0!==e&&e.size?s.createElement(m.Z,{className:"game-list__games"},s.createElement(h.Z,{infiniteScroll:this.infiniteScroll,infiniteScrollStep:this.infiniteScrollStep,infiniteScrollOffset:this.infiniteScrollOffset,count:this.count,firstCountOffset:i,items:t(),itemOverride:e=>e?s.createElement(s.Fragment,null,s.createElement(f.Z,{key:e,gameId:e,className:"game-list__game"}),this.isFrosmoContainer?e===this.listArray&&this.frosmoContainer:null):s.createElement("div",{className:"game-list__not-available"},this.messages("notAvailable")),moreButton:(e,t)=>s.createElement("div",{className:"game-list__actions",ref:t},s.createElement(a.Z,{className:"button-accent",onClick:e},this.messages("more")))})):n||s.createElement("div",{className:"game-list__empty"},this.messages("empty"))}get children(){const{children:e}=this.props;return e||null}render(){return s.createElement("div",{className:this.className},this.children,this.content)}},(0,n.Z)(g,"defaultProps",{firstCountOffset:0}),u=g))||u;const v=(0,o.XN)(S);function sendGameDataForFrosmo(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"gameImpressions";e.event.emit(i,{products:[{gameId:t.item("gameId"),name:t.item("title"),category:`${t.item("parentGameCategory")}/${t.item("group")}
1`,vendor:t.item("supplier"),image:t.item("src"),launchUrl:`/games/${t.item("friendlyId")}/`}]})}},Tr2L:(e,t,i)=>{i.d(t,{Z:()=>List});var n=i("L5+t"),s=i("q1tI"),o=i("x5no"),r=i("75kq");const l=new o.Z(100);class List extends s.Component{render(){const e=[],{count:t,firstCountOffset:i,moreButton:n,items:o,itemOverride:l,children:a,infiniteScroll:m,infiniteScrollOffset:d,infiniteScrollStep:c}=this.props,p=Symbol.iterator in o?o[Symbol.iterator]():Object.entries(o)[Symbol.iterator]();let u=p.next(),g=1+i;if(u.done)return a;do{e.push(l(u.value))}while(g++<t&&!(u=p.next()).done);return u.done||(u=p.next()).done||e.push(s.createElement(DeepList,{key:(0,r.M)(),infiniteScroll:m,infiniteScrollStep:c-1,infiniteScrollMainStep:c,infiniteScrollOffset:d,firstIteration:u,iterator:p,count:t,itemOverride:l,moreButton:n})),e}}(0,n.Z)(List,"defaultProps",{itemOverride:e=>{let[,t]=e;return t},moreButton:(e,t)=>s.createElement("button",{ref:t,onClick:e},"more"),children:null,count:1/0,infiniteScrollOffset:0,firstCountOffset:0,infiniteScrollStep:1/0});class DeepList extends s.Component{constructor(){super(...arguments),(0,n.Z)(this,"state",{show:!1,count:this.props.count})}get moreButton(){return this.props.moreButton((e=>this.show(e)),(e=>this.setInfiniteElement(e)))}setInfiniteElement(e){this.infiniteElement=e}show(e){this.unsubscribeFromInfiniteScroll(),e="number"==typeof e?e:this.props.count,this.setState({show:!0,count:e})}componentDidMount(){this.props.infiniteScroll&&this.subscribeToInfiniteScroll()}shouldComponentUpdate(e){return this.props.infiniteScroll&&!e.infiniteScroll?this.unsubscribeFromInfiniteScroll():e.infiniteScroll&&!this.props.infiniteScroll&&this.subscribeToInfiniteScroll(),!0}componentWillUnmount(){this.state.show||this.unsubscribeFromInfiniteScroll()}subscribeToInfiniteScroll(){this.props.infiniteScrollStep&&l.subscribe(this.infiniteElement,(e=>e&&this.show()))}unsubscribeFromInfiniteScroll(){l.unsubscribe(this.infiniteElement)}get children(){const e=[],{firstIteration:t,count:i,moreButton:n,iterator:o,itemOverride:l,infiniteScroll:a,infiniteScrollOffset:m,infiniteScrollStep:d,infiniteScrollMainStep:c}=this.props,{count:p}=this.state;let u=t||o.next(),g=1;if(u.done)return null;do{e.push(l(u.value))}while(g++<p&&!(u=o.next()).done);return u.done||(u=o.next()).done||e.push(s.createElement(DeepList,{key:(0,r.M)(),infiniteScrollStep:d>0?d-1:c-1,infiniteScrollMainStep:c,infiniteScrollOffset:m,infiniteScroll:a,firstIteration:u,iterator:o,count:i,itemOverride:l,moreButton:n})),e}render(){return this.state.show?this.children:this.moreButton}}},paHZ:(e,t,i)=>{i.d(t,{Z:()=>n.Z});var n=i("pc7k")},Jqe4:(e,t,i)=>{i.r(t),i.d(t,{default:()=>h});var n=i("L5+t"),s=i("q1tI"),o=i("JRPe"),r=i("rTvU");const l=(0,o.vU)({"app.page.pendingRounds.notification.mobile":{id:"app.page.pendingRounds.notification.mobile",defaultMessage:"mobile"},"app.page.pendingRounds.notification.desktop":{id:"app.page.pendingRounds.notification.desktop",defaultMessage:"desktop"},"app.page.pendingRounds.notification":{id:"app.page.pendingRounds.notification",defaultMessage:"You have unfinished rounds in {device} games. Check it out on your {device} device."}});var a,m=i("JQTf"),d=i("J/B8"),c=i("l4TE"),p=i("tIc/"),u=i("paHZ"),g=i("qgTm");let f=(0,i("5QKI").A)(a=class PendingRounds extends s.Component{constructor(){super(...arguments),(0,n.Z)(this,"messages",(0,r.Z)(this,l,"app.page.pendingRounds."))}componentDidMount(){this.core._api.billfold.gamesWithPendingRounds.clear(),this.games.item("pendingRounds")}get games(){return this.core.item("games")}get pendingRounds(){return this.games.item("pendingRounds")}get pendingRoundsOnMobile(){return this.games.item("pendingRoundsOnMobile")}get pendingRoundsOnDesktop(){return this.games.item("pendingRoundsOnDesktop")}get deviceType(){return this.core.item("deviceType")}get emptyComponent(){return("mobile"===this.deviceType||"tablet"===this.deviceType)&&this.pendingRoundsOnDesktop||"desktop"===this.deviceType&&this.pendingRoundsOnMobile?s.createElement("div",{className:"pending-rounds-device"},s.createElement(c.Z,null,s.createElement("img",{className:"pending-rounds-device__icon",src:`/cms/img/games/pending-rounds/${this.pendingRoundsOnMobile?"mobile":"desktop"}.svg`,alt:this.messages(this.pendingRoundsOnMobile?"notification.mobile":"notification.desktop")}),s.createElement(p.Z,{text:this.messages("notification",{device:this.messages(this.pendingRoundsOnMobile?"notification.mobile":"notification.desktop")})}))):null}get loading(){return this.games.loading("pendingRounds")}get loaded(){return this.games.loaded("pendingRounds")}render(){return s.createElement("div",{className:"pending-rounds"},s.createElement("div",{className:"container text-center"},s.createElement(c.Z,{hidden:(0,m.$)((()=>!this.loading||this.loaded))},s.createElement("div",{className:"pending-rounds__loading text-center"},s.createElement(d.default,null))),s.createElement(c.Z,{hidden:(0,m.$)((()=>!this.loaded))},s.createElement(g.Z,{id:"pendingRounds",list:()=>this.pendingRounds,emptyComponent:this.emptyComponent},s.createElement(u.Z,{id:"pendingRounds",className:"game-list__title"})))))}})||a;const h=(0,o.XN)(f)}}]); 2//# sourceMappingURL=PendingRounds.03afdaa8.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.