"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[694,698],{20657:function(e,s,n){n.d(s,{r:function(){return l}});var t=n(15215),a=n(74848),i=n(47290),l=function(e){var s=e.containerClassName,n=(0,t.Tt)(e,["containerClassName"]);return(0,a.jsx)("div",{className:s,children:(0,a.jsx)(i.hp,(0,t.Cl)({},n))})}},4674:function(e,s,n){n.d(s,{y:function(){return i}});var t=n(74848),a=n(57510),i=function(){return(0,t.jsx)("div",{className:"floatingCirclesG",children:(0,a.loop)(1,9,function(e){return(0,t.jsx)("div",{className:"f_circleG frotateG_"+("00"+e).substr(-2,2)},e)})})}},25890:function(e,s,n){var t,a=n(15215),i=n(74848),l=n(92276),o=n(83375);!function(e){e.FORCE_UPDATE="force_update"}(t||(t={}));var c=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.scrollRatio=1,s.contentRef=function(e){s.content=e},s.barRef=function(e){s.bar=e},s.wrpRef=function(e){s.scrollWrp=e},s.moveBar=function(){s.content&&window.requestAnimationFrame(function(){var e=s.content.scrollHeight,n=s.content.clientHeight;if(s.scrollRatio=n/e,s.bar)if(s.scrollRatio>=1)s.bar.classList.add("bc_scroll_hidden"),s.scrollWrp.classList.add("__fit");else{s.bar.classList.remove("bc_scroll_hidden"),s.scrollWrp.classList.remove("__fit");var t=s.isRtl?s.scrollWrp.clientWidth-s.bar.clientWidth:-1*(s.scrollWrp.clientWidth-s.bar.clientWidth);s.bar.style.cssText="height:"+Math.max(100*s.scrollRatio,10)+"%; top:"+s.content.scrollTop/e*100+"%;right:"+t+"px;"}})},s.dragStart=function(e){e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),s.lastPageY=e.pageY,s.bar.classList.add("bc_scroll_grabbed"),document.body.classList.add("bc_scroll_grabbed"),document.addEventListener("mousemove",s.drag),document.addEventListener("mouseup",s.dragEnd)},s.drag=function(e){var n=e.pageY-s.lastPageY;s.lastPageY=e.pageY,window.requestAnimationFrame(function(){s.content.scrollTop+=n/s.scrollRatio})},s.dragEnd=function(){s.bar.classList.remove("bc_scroll_grabbed"),document.body.classList.remove("bc_scroll_grabbed"),document.removeEventListener("mousemove",s.drag),document.removeEventListener("mouseup",s.dragEnd)},s.calculatePositionBar=function(){var e=s.props.animationDelayMS;setTimeout(function(){s.moveBar()},e||1)},s}return(0,a.C6)(s,e),s.prototype.UNSAFE_componentWillMount=function(){this.isRtl="rtl"===window.getComputedStyle(document.body).direction},s.prototype.componentDidMount=function(){window.addEventListener("resize",this.moveBar),window.requestAnimationFrame(this.moveBar);var e=window.getComputedStyle(this.rootComponent);"0px"===e.height&&"0px"!==e["max-height"]&&(this.rootComponent.style.height=e["max-height"]),document.addEventListener(t.FORCE_UPDATE,this.calculatePositionBar)},s.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.moveBar),document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener(t.FORCE_UPDATE,this.calculatePositionBar)},s.prototype.componentDidUpdate=function(){this.calculatePositionBar()},s.prototype.getScrollableElement=function(){return this.content},s.prototype.render=function(){var e,s=this.props,n=s.children,t=s.className;return(0,i.jsxs)("div",{ref:this.rootComponentRef,className:(0,o.n)((e={bc_scroll_container:!0},e[t]=Boolean(t),e)),onClick:this.calculatePositionBar,children:[(0,i.jsx)("div",{className:"bc_scroll_wrapper",ref:this.wrpRef,children:(0,i.jsx)("div",{ref:this.contentRef,className:(0,o.n)({bc_scroll_content:!0,bc_scroll_rtl:this.isRtl}),onMouseEnter:this.moveBar,onScroll:this.moveBar,children:n})}),(0,i.jsx)("div",{className:"bc_scroll_bar",ref:this.barRef,onMouseDown:this.dragStart})]})},s}(l.I);s.A=c},37479:function(e,s,n){n.d(s,{A:function(){return l}});var t=n(74848),a=n(83375),i=n(73645);function l(e){var s,n,l=e.className,o=e.buttonClass,c=e.buttonLabel,r=e.content,_=e.title;return(0,t.jsxs)("div",{className:"bcc_container_wrp",children:[(0,t.jsxs)("div",{className:(0,a.n)((s={bcc_container_info:!0},s[String(l)]=l,s)),children:[_&&(0,t.jsxs)("span",{className:"ci_title",children:[_,". "]}),r]}),(0,t.jsxs)("div",{className:"bcc_actions",children:[(0,t.jsx)("button",{className:(0,a.n)((n={"bcc_button mls_btn mls_btn_white":!0},n[String(o)]=o,n)),onClick:i.closePopup,children:!!c||__("Okay, I got it")}),(0,t.jsx)("button",{className:"bcc_button mls_btn mls_btn_green __buy_tokens",onClick:function(){chat.buyTokensPopup(),(0,i.closePopup)()},children:__("Buy Tokens")})]})]})}},65203:function(e,s,n){var t=n(15215),a=n(74848),i=n(96540),l=n(16053),o=n(73645),c=n(83375),r=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.handleClose=function(e){var n=s.props.popup.options.onClose;e.preventDefault(),n?n():(0,o.closePopup)()},s}return(0,t.C6)(s,e),s.prototype.render=function(){var e;if(!this.props.popup||!this.props.popup.opened)return null;var s=this.props.popup,n=s.component,l=s.componentProps,o=s.options,r=o.title,_=o.className,d=n&&"object"==typeof n?(0,i.cloneElement)(n,{title:r}):n;return(0,a.jsxs)("div",{className:"bc_confirm_popup_wrp __ask_again",children:[(0,a.jsx)("div",{className:"bcc_popup_overlay",onClick:this.handleClose}),(0,a.jsx)("div",{className:(0,c.n)((e={bc_confirm_popup:!0},e[_]=!!_,e)),children:(0,a.jsx)("div",{className:"bcc_content",children:!!n&&("function"==typeof n?(0,a.jsx)(n,(0,t.Cl)({},l,{title:r})):d)})})]})},s=(0,t.Cg)([(0,l.Ng)("popup")],s)}(i.Component);s.A=r},26748:function(e,s,n){n.d(s,{A:function(){return C}});var t=n(15215),a=n(74848),i=n(96540),l=n(16053),o=n(12400),c=n(90093),r=n(42914),_=n(73645),d=n(99525),m=n(41042),p=n(80554),u=n(43284),h=n(63861),g=n(73437),b=n(1169),f=n(3050),v=n(72983),x=n(5117),j=n(89979),N=(0,i.forwardRef)(function(e,s){var n=e.arrowRef,t=e.popupContainerRef,l=e.children,o=e.closeGame,c=e.gameInfo,r=e.toggleHelp,_=e.isShowHelp,d=(0,i.useRef)(null);if((0,i.useImperativeHandle)(s,function(){return d.current}),!c)return null;var m=c.description;return(0,a.jsxs)("div",{ref:d,className:(0,u.A)(["panel_games_popup js-chat_games_popup",m.className]),children:[(0,a.jsxs)("div",{className:"pgp_head",children:[m.title2||m.title,m.tooltip&&(0,a.jsxs)("span",{className:"pgp_help_wrap",children:[(0,a.jsx)(j.A,{group:"pgp_help_icon",icon:"#svg_icon_help",url:x.z,onClick:r}),_&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"pgp_popover_arrow"}),(0,a.jsxs)("div",{className:"pgp_popover",children:[m.tooltip.title&&(0,a.jsx)("div",{className:"pgp_popover_title",children:m.tooltip.title}),m.tooltip.text,(0,a.jsx)("div",{className:"pgp_popover_close",onClick:r})]})]})]}),(0,a.jsx)("div",{className:"pgp_close",onClick:o})]}),(0,a.jsx)("div",{ref:t,className:"pgp_container js-pgp_container",children:(0,a.jsx)("div",{className:"pgp_content",children:l})}),(0,a.jsx)("div",{ref:n,className:"pgp_arrow js-pgp_arrow"})]})});function w(e){return{isImageGameLoaded:e.isImageGameLoaded}}var y=function(e){function s(s){var n=e.call(this,s)||this;return n.isOpenedLastTime=!1,n.lastHitResult=null,n.isAllLoadedImages=!1,n.activeTabRef=(0,i.createRef)(),n.arrowRef=(0,i.createRef)(),n.popupContainerRef=(0,i.createRef)(),n.popupRef=(0,i.createRef)(),n.calcPopup=function(){var e=n.props,s=e.activeId,t=e.hitResult,a=(n.activeTabRef||{}).current,i=(n.popupRef||{}).current,l=(n.arrowRef||{}).current,o=(n.popupContainerRef||{}).current;if(a&&l&&i&&o){var c=o.scrollTop,r=d.A.getState(),_=(0,m.BH)(r);if(v.isRTLCulture){var p=i.getBoundingClientRect().right-a.getBoundingClientRect().right,u=-5;l.style.right="".concat(p+a.clientWidth/2+u,"px")}else{u=_?0:-15;l.style.left="".concat(a.offsetLeft+a.clientWidth/2+u,"px")}if("tip-menu"!==s){o.style.maxHeight="100%";var h=i.getBoundingClientRect().top+window.pageYOffset;h<0&&(o.style.maxHeight="".concat(o.clientHeight-Math.abs(h)-52,"px"),(0,b.b)(t,n.lastHitResult)&&(o.scrollTop=c),n.lastHitResult=t)}}},n.toggleHelp=function(){n.setState({isShowHelp:!n.state.isShowHelp})},n.handleImageLoad=function(){(0,_.setIsImageGameLoaded)(),n.isAllLoadedImages||((0,f.w)(p.R.GAME_CONTROLS_LOADED),n.isAllLoadedImages=!0)},n.handleClick=function(e,s){void 0===s&&(s=!1),s||n.props.onClick(e)},n.closeGame=function(){n.props.onClick(null)},n.state={isShowHelp:!1},n}return(0,t.C6)(s,e),s.prototype.componentDidMount=function(){document.addEventListener(p.R.CHAT_RESIZED,this.calcPopup),chat.setChatHeight()},s.prototype.componentWillUnmount=function(){document.removeEventListener(p.R.CHAT_RESIZED,this.calcPopup)},s.prototype.UNSAFE_componentWillReceiveProps=function(e){var s=this,n=i.Children.toArray(this.props.children);this.isOpenedLastTime=n.some(function(e){return e.props.description.id===s.props.activeId}),e.activeId!==this.props.activeId&&this.setState({isShowHelp:!1})},s.prototype.componentDidUpdate=function(e){var s=this.props,n=s.activeId,t=s.children,a=s.onClick;this.calcPopup();var l=i.Children.toArray(e.children),o=i.Children.toArray(t);o.forEach(function(e){if(null==e?void 0:e.props){var s=e.props,t=s.description,i=s.disabled,l=t.id;i&&n===l&&a(n)}}),l.every(function(e){return e.props.disabled})!==o.every(function(e){return e.props.disabled})&&chat.setChatHeight()},s.prototype.render=function(){var e=this,s=this.props,n=s.activeId,t=s.children,i=s.hitResult,o=s.isImageGameLoaded,c=this.state.isShowHelp,r=Array.isArray(t)?t:[t],_=d.A.getState(),p=(0,m.BH)(_);if(r.every(function(e){return null==e?void 0:e.props.disabled}))return this.isAllLoadedImages=!1,null;var g=r.filter(Boolean).find(function(e){var s,t;return!!n&&(null===(t=null===(s=null==e?void 0:e.props)||void 0===s?void 0:s.description)||void 0===t?void 0:t.id)===n&&!e.props.disabled});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"panel_games bc_flex bc_flex_justify_s_around",children:r.filter(Boolean).map(function(s){var t=s.props,c=t.description,r=t.disabled,_=c.id,m=c.className,g=c.badgeComponent,b=c.icon,f=c.title,v=_===n,x=v&&i&&i.game.type===_,j=p?(0,h.oF)("svg/bc/chat_bots/panel_games/pg_".concat(b,"_v2.svg")):(0,h.oF)("svg/bc/chat_bots/panel_games/pg_".concat(b,".svg"));return(0,a.jsx)("div",{ref:v?e.activeTabRef:void 0,className:(0,u.A)(["pg_item","js-pg_item",m,r&&"__disabled",v&&"__expanded",x&&"__playing"]),"data-id":_,children:(0,a.jsxs)("div",{className:"pg_icon_wrp",title:f,onClick:function(){return e.handleClick(_,r)},children:[(0,a.jsx)("img",{className:(0,u.A)(["pg_icon",m]),alt:"",src:j,onLoad:e.handleImageLoad}),g&&o&&(0,a.jsx)(l.Kq,{store:d.A,children:(0,a.jsx)(g,{})})]})},_)})}),!!g&&(0,a.jsx)(N,{arrowRef:this.arrowRef,popupContainerRef:this.popupContainerRef,ref:this.popupRef,closeGame:this.closeGame,gameInfo:g.props,toggleHelp:this.toggleHelp,isShowHelp:c,children:g})]})},s.defaultProps={onClick:g.noop},s=(0,t.Cg)([(0,l.Ng)(w)],s)}(i.Component),k=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.handleTabChange=function(e){var n,a=s.props,i=a.currentTab,l=a.gamesData,o=a.gamesSettings,d=a.lovenseVibeWithMe;i&&"function"==typeof _.setGameSettings&&o&&(0,_.setGameSettings)(i,(0,t.Cl)((0,t.Cl)({},o[i]),{isActiveNow:!1})),"vibe-with-me"!==e||(0,r.w)()&&(null===(n=null==d?void 0:d.gameData)||void 0===n?void 0:n.type)||"function"!=typeof _.setGameTab?(0,c.R)(e,o||{},l)||"function"==typeof _.setGameTab&&(0,_.setGameTab)(e===i?null:e):(0,_.setGameTab)(null)},s}return(0,t.C6)(s,e),s.prototype.componentDidMount=function(){var e=this.props,s=e.currentTab,n=e.gamesSettings,t=void 0===n?{}:n,a=o.C.filter(function(e){return e.id===s})[0];a&&((t[a.storeKey]||{}).enabled||(0,_.setGameTab)(null))},s.prototype.render=function(){var e=this.props,s=e.currentTab,n=e.gamesData,i=e.gamesSettings,l=e.hitResult,c=e.lovenseVibeWithMe,r=e.pendingHitResult,d=e.performerStatus,m=e.isRu,p=e.onHit,u=l&&l.game&&l.game.type,h=(0,t.Cl)((0,t.Cl)({},i),{lovenseVibeWithMe:null==c?void 0:c.gameData}),g=(0,t.Cl)((0,t.Cl)({},n),{lovenseVibeWithMe:null==c?void 0:c.gameData});return o.C.length?(0,a.jsx)(y,{activeId:s,hitResult:l,onClick:this.handleTabChange,children:o.C.map(function(e){var s,n=e.component,t=(!(null===(s=e.performerStatuses)||void 0===s?void 0:s.length)||e.performerStatuses.includes(d))&&e.isShow(e,h[e.storeKey],g[e.storeKey]);return(0,a.jsx)(n,{data:g[e.storeKey],description:e,disabled:!t,hitResult:u===e.id?l:null,pendingHitResult:r,settings:h[e.storeKey],isRu:m,onHit:p,setGameTab:_.setGameTab},e.id)})}):null},s=(0,t.Cg)([(0,l.Ng)("gamesSettings, gamesData, currentTab, performerStatus, pendingHitResult, hitResult, lovenseVibeWithMe")],s)}(i.Component),C=k},12400:function(e,s,n){n.d(s,{_:function(){return Vs},C:function(){return Gs}});var t=n(15215),a=n(45070),i=n(21110),l=n(73645),o=n(62340),c=n(74848),r=n(96540),_=n(83375),d=n(8639),m=n(25890),p=n(18071),u=n(89979),h=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props.settings,s=e.playlist,n=e.playing,t=this.state.currentTime;return(0,c.jsxs)("div",{className:"pgp_adj_list",children:[(0,c.jsx)("div",{className:"adjl_header",children:(0,c.jsxs)("div",{className:"adjl_row",children:[(0,c.jsx)("div",{className:"adjl_cell",children:__("%_auto_dj_%Title")}),(0,c.jsx)("div",{className:"adjl_cell",children:__("%_auto_dj_%Requested by")})]})}),s.length?(0,c.jsx)(m.A,{className:"adjl_scroll",children:(0,c.jsx)("div",{className:"adjl_body",children:s.map(function(e,s){return(0,c.jsxs)("div",{className:(0,_.n)({adjl_row:!0,__playing:n&&0===s}),children:[(0,c.jsx)("div",{className:"adjl_cell",children:(0,c.jsxs)("div",{className:"adjl_title_wrp",children:[(0,c.jsxs)("div",{className:"adjl_title ltr",title:e.title,children:[n&&0===s?(0,c.jsx)(p.cl,{}):e.isPremium?(0,c.jsx)("span",{className:"adjl_icon_track",children:(0,c.jsx)(u.A,{group:"adjl_icon",icon:"#icon_auto_dj_priority"})}):"",e.title]})," ",(0,c.jsxs)("div",{className:"adjl_duration",children:["(",0===s&&(0,d.Ji)(t)+"/",(0,d.Ji)(e.duration),")"]})]})}),(0,c.jsx)("div",{className:"adjl_cell",children:e.memberDisplayName})]},"entry_".concat(s))})})}):(0,c.jsx)("div",{className:"adjl_msg",children:__("Song requests will appear here")},"msg")]})},s}(p.Ay),g=h,b=n(40682),f=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e,s=this.props,n=s.children,t=s.hidden,a=s.className;return(0,c.jsx)("p",{className:(0,_.n)((e={pgp_notice:!0,__hidden:t},e[a]=Boolean(a),e)),children:n})},s.defaultProps={hidden:!1},s}(r.Component),v=f,x=n(69623),j=n(2268),N=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.handleSubmit=function(s){e.prototype.handleSubmit.call(this,s),this.props.setGameTab(null)},s.prototype.render=function(){var e=this.props.settings,s=e.amount,n=e.amountPremium,t=this.state,a=t.valid,i=t.input,l=t.isPremium;return(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"pgp_adj_form_wrp __input",children:[(0,c.jsx)("div",{className:"adjfw_title",children:__("Enter the Link")}),(0,c.jsx)("div",{className:"adjw_input_wrp",children:(0,c.jsx)("input",{className:"adjw_input_link",onInput:this.handleInput,value:i,placeholder:__("Enter youtube link")})})]}),this.props.children,(0,c.jsxs)("div",{className:"pgp_adj_form_wrp",children:[(0,c.jsx)("div",{className:"pgp_adj_form",children:(0,c.jsxs)("div",{className:"pgp_input_wrp",children:[(0,c.jsxs)("label",{className:"pgpi_item __checkbox bc_flex bc_flex_justify_s_between",children:[(0,c.jsxs)("div",{className:(0,_.n)({pgpi_block:!0,"bc_flex bc_flex_items_center":!0,__selected:l}),children:[(0,c.jsx)("input",{className:"pgpi_input",type:"checkbox",checked:l,onChange:this.togglePremium}),__("Add to the top of Playlist")]}),(0,c.jsx)(b.E,{tagName:"div",className:"pgpi_block __tokens",html:__("%amount% %tokens_plural%",{amount:''+(n-s)+"",tokens_plural:j.kX.pluralise("tokens",n-s)})})]}),(0,c.jsxs)("label",{className:"pgpi_item __radio __active bc_flex bc_flex_justify_s_between",children:[(0,c.jsxs)("span",{className:(0,_.n)({pgpi_block:!0,"bc_flex bc_flex_items_center":!0,__selected:l}),children:[(0,c.jsx)("input",{className:"pgpi_input",defaultChecked:!0,type:"radio"}),__("Add to Playlist")]}),(0,c.jsx)(b.E,{tagName:"div",className:"pgpi_block __tokens",html:__("%amount% %tokens_plural%",{amount:''+s+"",tokens_plural:j.kX.pluralise("tokens",s)})})]})]})}),(0,c.jsx)("div",{className:"form_actions __open",children:(0,c.jsx)("button",{className:(0,_.n)({"pgp_btn mls_btn mls_btn_dark_green":!0,"mls_btn_disabled ":!a}),onClick:this.handleSubmit.bind(this),disabled:!a,children:__("Add (%amount% %tokens_plural%)",{amount:l?n:s,tokens_plural:j.kX.pluralise("tokens",l?n:s)})})})]})]})},s}(x.A),w=N,y=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props,s=e.settings,n=e.data.showForm,a=e.description,i=e.onHit,o=e.setGameTab,r=s.enabled,d=s.playlist,m={playlist:!!d.length,playlistHolder:r&&!d.length,expandBtnInHolder:!d.length&&!n&&r,expandBtnUnderPlaylist:!n&&r,form:n&&r},p=__("Add"),u=(0,c.jsx)(c.Fragment,{children:m.form&&(0,c.jsx)("div",{className:"adj_title",children:trans("%s1%%Modelname%'s%s2% Playlist",{Modelname:chat.performerData&&chat.performerData.displayName,s1:'',s2:""})})}),h=(0,c.jsxs)(c.Fragment,{children:[u,(0,c.jsx)(g,(0,t.Cl)({},this.props))]}),f=(0,c.jsxs)(c.Fragment,{children:[u,(0,c.jsx)("div",{className:(0,_.n)({"pgp_adj_list __empty bc_flex bc_flex_full_center":!0,__show_form:m.form}),children:(0,c.jsx)("div",{className:"adjl_container",children:(0,c.jsx)(b.E,{tagName:"div",className:"adjlb_title",html:__("Playlist is currently empty. %s1%Be the first one to add music.%s2%",{s1:'
',s2:""})})})})]});return(0,c.jsxs)("div",{className:"sga_inner",children:[!r&&(0,c.jsxs)(v,{children:[__("Model temporarily restricted adding music to her playlist."),(0,c.jsx)("br",{}),__("The current playlist will play out.")]}),r&&!m.form&&(0,c.jsx)(v,{children:trans("Want music of your choice to play in a model's chat room? For a specific number of Tokens %s1%you can add music from YouTube%s2% to a model's playlist.",{s1:'',s2:""})}),m.form&&(0,c.jsxs)(w,{description:a,settings:s,onHit:i,setGameTab:o,children:[m.playlist&&h,m.playlistHolder&&f]},"form"),!m.form&&m.playlist&&h,!m.form&&m.playlistHolder&&f,m.expandBtnUnderPlaylist&&(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{className:"pgp_btn mls_btn mls_btn_dark_green",onClick:l.setAutoDJShowForm,children:p})})]})},s}(r.Component),k=y,C=n(21035),R=n(5652),T=n(72983);var S=n(16053),A=n(67746),E=n(15597),D=n(51823),P=n(54503),M=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.handleTip=function(){var e=s.props,n=e.gameData,t=e.onClose;(0,P.S)({tipAmount:n.goalToken},{subType:D.A.VIBE_WITH_ME_SINGLE}),t()},s}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props.gameData;return(0,c.jsxs)("div",{className:"pgp_inner",children:[(0,c.jsx)(v,{children:trans("Use Lovense Remote app for scanning the QR code or entering a unique code %s1%to sync the model’s toys with yours.%s2%",{s1:'',s2:""})}),(0,c.jsx)(v,{children:trans("%s1%You’ll feel the same vibrations%s2% as %modelname%!",{s1:'',s2:"",modelname:''.concat(e.modelDisplayName||e.modelName,"")})}),(0,c.jsx)("div",{className:"pgp_input_wrp",children:(0,c.jsxs)("label",{className:"pgpi_item __radio __active bc_flex bc_flex_justify_s_between",children:[(0,c.jsxs)("span",{className:"pgpi_block __selected bc_flex bc_flex_items_center",children:[(0,c.jsx)("input",{className:"pgpi_input",type:"radio",checked:!0}),__("Sync the toys")]}),(0,c.jsx)(b.E,{tagName:"div",className:"pgpi_block __tokens",html:__("%amount% %tokens_plural%",{amount:''.concat(e.goalToken,""),tokens_plural:''.concat(j.kX.pluralise("tokens",e.goalToken),"")})})]})}),(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{className:"pgp_btn mls_btn mls_btn_dark_green",onClick:this.handleTip,children:__("Begin!")})})]})},s}(r.Component),I=M,W=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.handleClick=function(){var e=s.props,n=e.customerData,t=e.onShowInfo;n.status===E.Q.REWARD?t():s.handleTip()},s.handleTip=function(){var e=s.props,n=e.gameData,t=e.onClose;(0,P.S)({tipAmount:n.goalToken},{subType:D.A.VIBE_WITH_ME_SINGLE}),t()},s}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props,s=e.gameData,n=e.customerData;return(0,c.jsxs)("div",{className:"pgp_inner",children:[(0,c.jsx)(v,{children:trans("%s1%NB!%s2% %s3%Your device is currently synced%s4% with %modelname%'s device.",{s1:'',s2:"",s3:'',s4:"",modelname:''.concat(n.vibModelDisplayName||n.vibModelName,"")})}),(0,c.jsx)(v,{children:trans("After sending %goalToken% %tokens_plural% %s1%your toy will be automatically synced%s2% with %modelname%'s device",{s1:'',s2:"",goalToken:''.concat(s.goalToken,""),modelname:''.concat(s.modelDisplayName||s.modelName,""),tokens_plural:''.concat(j.kX.pluralise("tokens%_alt_%",s.goalToken),"")})}),(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{className:"pgp_btn mls_btn mls_btn_dark_green",onClick:this.handleClick,children:__("Begin!")})})]})},s}(r.Component),H=W,L=n(20657),z=n(4674),B=n(86723),F=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props.customerData;return(0,c.jsxs)("div",{className:"vwm_app_wrp",children:[(0,c.jsx)(v,{children:trans("%s1%Scan the QR code%s2% or %s3%enter the unique code%s4% in %s5%Lovense Remote%s6% app.",{s1:'',s2:"",s3:'',s4:"",s5:'',s6:""})}),(0,c.jsxs)("div",{className:"vwm_a_list",children:[(0,c.jsxs)("div",{className:"vwm_a_item __vmw_indent_sm",children:[(0,c.jsx)("p",{className:"vwm_ai_title","data-count-item":"1",children:trans("Download %s1%Lovense Remote%s2% app",{s1:'',s2:""})}),(0,c.jsxs)("div",{className:"vwm_ai_container bc_flex",children:[(0,c.jsx)("a",{href:B.LovenseVibeWithMeController.LINK_APPLE_STORE,target:"_blank",rel:"noopener nofollow",className:"vwm_ai_app_link __apple bc_flex bc_flex_column bc_flex_justify_center",children:trans("Download on the %s1%Apple Store%s2%",{s1:'',s2:""})}),(0,c.jsx)("a",{href:B.LovenseVibeWithMeController.LINK_GOOGLE_STORE,target:"_blank",rel:"noopener nofollow",className:"vwm_ai_app_link __google bc_flex bc_flex_column bc_flex_justify_center",children:trans("Get it on %s1%Google Play%s2%",{s1:'',s2:""})})]})]}),(0,c.jsxs)("div",{className:"vwm_a_item",children:[(0,c.jsx)("p",{className:"vwm_ai_title bc_flex bc_flex_items_center","data-count-item":"2",children:trans("%s1%Scan the QR code%s2% or %s3%enter the unique code%s4%",{s1:'',s2:"",s3:'',s4:""})}),(0,c.jsxs)("div",{className:"vwm_ai_container bc_flex bc_flex_items_end",children:[(0,c.jsxs)("div",{className:"vwm_a_qr_wrp vwm_a_tooltip_wrp",children:[(0,c.jsx)(z.y,{}),(0,c.jsx)("div",{className:"vwm_a_qr_img_wrp",children:(0,c.jsx)(L.r,{size:110,value:e.qrCode,containerClassName:"vwm_a_qr_img"})}),(0,c.jsx)("div",{className:"vwm_a_tooltip","data-text":__("Scan the QR code with the app"),children:__("Scan the QR code with the app")})]}),(0,c.jsxs)("div",{className:"vwm_a_qr_info bc_flex bc_flex_column",children:[(0,c.jsx)("div",{className:"vwm_a_qr_title",children:__("Your code")}),(0,c.jsxs)("div",{className:"vwm_a_qr_code vwm_a_tooltip_wrp",children:[e.code,(0,c.jsx)("div",{className:"vwm_a_tooltip","data-text":__("Enter the unique code in the app"),children:__("Enter the unique code in the app")})]})]})]})]}),(0,c.jsx)("div",{className:"vwm_a_item",children:(0,c.jsx)("p",{className:"vwm_ai_title","data-count-item":"3",children:(0,c.jsx)("span",{className:"pgp_s_success bc_bold",children:__("Enjoy!")})})})]})]})},s}(r.Component),G=F,V=n(47885),O=n(26580),U=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props.gameData;return(0,c.jsxs)("div",{className:"vwm_success_wrp bc_flex bc_flex_column bc_flex_full_center",children:[(0,c.jsx)(O.A,{group:"vmw_s_icon",icon:"#svg_ch_success",url:V.g5}),(0,c.jsx)("div",{className:"vwm_s_text",children:trans("%s1%Your toy has been successfully synced%s2%%br% with the %modelname%'s device",{s1:'',s2:"",modelname:''.concat(e.modelDisplayName||e.modelName,""),br:"
"})})]})},s}(r.Component),X=U,q=function(e){function s(s){var n=e.call(this,s)||this;return n.showInfo=function(){n.setState({isInfoShowed:!0})},n.state={isInfoShowed:!1},n}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props,s=e.lovenseVibeWithMe,n=e.onClose,t=this.state.isInfoShowed,a=null==s?void 0:s.gameData,i=null==s?void 0:s.customerData,l=null==i?void 0:i.status;if(!t&&i.vibModelName&&l!==E.Q.JOIN&&i.modelName!==i.vibModelName)return(0,c.jsx)(H,{gameData:a,customerData:i,onShowInfo:this.showInfo,onClose:n});switch(l){case E.Q.NO_REWARD:return(0,c.jsx)(I,{gameData:a,onClose:n});case E.Q.REWARD:return(0,c.jsx)(G,{customerData:i});case E.Q.JOIN:return(0,c.jsx)(X,{gameData:a})}return null},s}(r.Component),Y=q,Q=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props,s=e.gameData,n=e.customerData,t=e.onShowInfo,a=e.onOpenForm,i=Math.max(0,s.goalToken-s.receivedToken);return n.status===E.Q.REWARD?(0,c.jsxs)("div",{className:"pgp_inner",children:[(0,c.jsx)(v,{children:trans("%s1%NB!%s2% %s3%Your device is currently synced%s4% with %modelname%'s device.",{s1:'',s2:"",s3:'',s4:"",modelname:''.concat(n.vibModelDisplayName||n.vibModelName,"")})}),(0,c.jsx)(v,{children:trans("%s1%%modelname%'s goal is reached!%s2% You can now %s3%sync your toy%s4% with the model's device!",{s1:'',s2:"",s3:'',s4:"",modelname:s.modelDisplayName||s.modelName})}),(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{className:"pgp_btn mls_btn mls_btn_dark_green",onClick:t,children:__("Sync the toys!")})})]}):(0,c.jsxs)("div",{className:"pgp_inner",children:[(0,c.jsx)(v,{children:trans("%s1%NB!%s2% %s3%Your device is currently synced%s4% with %modelname%'s device.",{s1:'',s2:"",s3:'',s4:"",modelname:''.concat(n.vibModelDisplayName||n.vibModelName,"")})}),(0,c.jsx)(v,{children:trans("As soon as the goal is reached, %s1%your toy will be synced%s2% with %modelname%'s device",{s1:'',s2:"",modelname:''.concat(s.modelDisplayName||s.modelName,"")})}),(0,c.jsx)(v,{className:"vmw_small_text",children:trans("Tokens left to reach the goal: %goalToken%",{goalToken:''.concat(i,"")})}),(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{className:"pgp_btn mls_btn mls_btn_dark_green",onClick:a,children:__("Add Tokens")})})]})},s}(r.Component),J=Q,K=n(57510),Z=function(e){function s(s){var n=e.call(this,s)||this;n.inputRef=function(e){return n.inputEl=e},n.handleTip=function(){var e=n.props.onClose,s=n.state,t=s.selectedTip,a=s.customTip;(0,P.S)({tipAmount:t||a},{subType:D.A.VIBE_WITH_ME_CROWD}),e()},n.changeSelectedTip=function(e){n.setState({selectedTip:e},function(){!e&&n.inputEl&&n.inputEl.focus()})},n.handleChangeCustomInput=function(e){var s=e.target;n.setState({customTip:parseInt(s.value,10)||0})},n.handleFocusCustomInput=function(e){n.changeSelectedTip(null)};var t=n.getPredefinedTips();return n.state={selectedTip:t[0],customTip:null,predefinedTips:t},n}return(0,t.C6)(s,e),s.prototype.getPredefinedTips=function(){var e=this.props.gameData,s=e.goalToken-e.receivedToken,n=[200,100,50,20];return n.includes(s)&&n.splice(n.indexOf(s),1),(0,t.fX)([s],n,!0)},s.prototype.render=function(){var e=this,s=this.props.gameData,n=this.state,t=n.selectedTip,a=n.customTip,i=n.predefinedTips;return(0,c.jsxs)("div",{className:"pgp_inner",children:[(0,c.jsx)(v,{children:trans("How many %s1%Tokens%s2% would you like to send as a tip?",{s1:'',s2:""})}),(0,c.jsxs)("div",{className:"pgp_input_wrp",children:[(0,K.loopv)(i,function(s){return(0,c.jsx)("label",{className:(0,_.n)({"pgpi_item __radio bc_flex bc_flex_justify_s_between":!0,__active:t===s}),onClick:function(){return e.changeSelectedTip(s)},children:(0,c.jsxs)("span",{className:"pgpi_block __selected bc_flex bc_flex_items_center",children:[(0,c.jsx)("input",{className:"pgpi_input",checked:t===s,readOnly:!0,type:"radio"}),trans("%amount% %tokens_plural%",{amount:''.concat(s,""),tokens_plural:''+j.kX.pluralise("tokens",s)+""})]})},s)}),(0,c.jsxs)("div",{className:"pgpi_item_wrp bc_flex",children:[(0,c.jsx)("label",{className:(0,_.n)({"pgpi_item __radio bc_flex bc_flex_justify_s_between":!0,__active:!t}),children:(0,c.jsxs)("span",{className:"pgpi_block __custom __selected bc_flex bc_flex_items_center",children:[(0,c.jsx)("input",{className:"pgpi_input",type:"radio",checked:!t,onChange:function(){return e.changeSelectedTip(null)}}),__("Custom amount:")]})}),(0,c.jsx)("input",{ref:this.inputRef,className:"pgpi_input_amount",type:"text",value:a,onInput:this.handleChangeCustomInput,onFocus:this.handleFocusCustomInput})]})]}),(0,c.jsxs)("div",{className:"pgp_action __bot_full bc_flex bc_flex_items_center",children:[(0,c.jsx)("div",{className:"pgp_action_text vmw_small_text",children:trans("Goal: %s1%%receivedToken% / %goalToken%%s2% %tokens_plural%",{s1:'',s2:"",receivedToken:s.receivedToken,goalToken:s.goalToken,tokens_plural:''.concat(j.kX.pluralise("tokens",s.receivedToken),"")})}),(0,c.jsx)("button",{className:"pgp_btn mls_btn mls_btn_dark_green",disabled:!t&&!a,onClick:this.handleTip,children:__("Send Tip")})]})]})},s}(r.Component),$=Z,ee=function(e){function s(s){var n=e.call(this,s)||this;return n.handleOpenForm=function(){n.setState({isFormShowed:!0})},n.state={isFormShowed:!1},n}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props,s=e.gameData,n=e.customerData,t=e.onShowInfo,a=e.onClose;return this.state.isFormShowed?(0,c.jsx)($,{gameData:s,onClose:a}):(0,c.jsx)(J,{gameData:s,customerData:n,onShowInfo:t,onOpenForm:this.handleOpenForm})},s}(r.Component),se=ee,ne=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props,s=e.gameData,n=e.onOpenForm;return(0,c.jsxs)("div",{className:"pgp_inner",children:[(0,c.jsx)(v,{children:trans("Use Lovense Remote app for scanning the QR code or entering a unique code %s1%to sync the model’s toys with yours.%s2%",{s1:'',s2:""})}),(0,c.jsx)(v,{children:trans("%s1%You’ll feel the same vibrations%s2% as %modelname%!",{s1:'',s2:"",modelname:''.concat(s.modelDisplayName||s.modelName,"")})}),(0,c.jsx)(v,{className:"vmw_small_text bc_bold",children:trans("Goal: %s1%%receivedToken% / %goalToken%%s2% %tokens_plural%",{s1:'',s2:"",receivedToken:s.receivedToken,goalToken:s.goalToken,tokens_plural:''.concat(j.kX.pluralise("tokens",s.receivedToken),"")})}),(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{className:"pgp_btn mls_btn mls_btn_dark_green",onClick:n,children:__("Send Tip")})})]})},s}(r.Component),te=ne,ae=function(e){function s(s){var n=e.call(this,s)||this;return n.showForm=function(){n.setState({isFormShowed:!0})},n.showInfo=function(){n.setState({isInfoShowed:!0})},n.state={isFormShowed:!1,isInfoShowed:!1},n}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props,s=e.lovenseVibeWithMe,n=e.onClose,t=this.state,a=t.isFormShowed,i=t.isInfoShowed,l=null==s?void 0:s.gameData,o=null==s?void 0:s.customerData,r=null==o?void 0:o.status;if(!i&&o.vibModelName&&r!==E.Q.JOIN&&o.modelName!==o.vibModelName)return(0,c.jsx)(se,{gameData:l,customerData:o,onShowInfo:this.showInfo,onClose:n});switch(r){case E.Q.NO_REWARD:return a?(0,c.jsx)($,{gameData:l,onClose:n}):(0,c.jsx)(te,{gameData:l,onOpenForm:this.showForm});case E.Q.REWARD:return(0,c.jsx)(G,{customerData:o});case E.Q.JOIN:return(0,c.jsx)(X,{gameData:l})}return null},s}(r.Component),ie=ae,le=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.handleSync=function(){(0,s.props.onShowConnectionInfo)()},s}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props.gameData;return(0,c.jsxs)("div",{className:"pgp_inner",children:[(0,c.jsx)(v,{children:trans("Use Lovense Remote app for scanning the QR code or entering a unique code %s1%to sync the model’s toys with yours.%s2%",{s1:'',s2:""})}),(0,c.jsx)(v,{children:trans("%s1%You’ll feel the same vibrations%s2% as %modelname%!",{s1:'',s2:"",modelname:''.concat(e.modelDisplayName||e.modelName,"")})}),(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{className:"pgp_btn mls_btn mls_btn_dark_green",onClick:this.handleSync,children:__("Sync the toys!")})})]})},s}(r.Component),oe=le,ce=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.handleSync=function(){(0,s.props.onShowConnectionInfo)()},s}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props,s=e.gameData,n=e.customerData;return(0,c.jsxs)("div",{className:"pgp_inner",children:[(0,c.jsx)(v,{children:trans("%s1%NB!%s2% %s3%Your device is currently synced%s4% with %modelname%'s device.",{s1:'',s2:"",s3:'',s4:"",modelname:''.concat(n.vibModelDisplayName||n.vibModelName,"")})}),(0,c.jsx)(v,{children:trans("You can sync your toy with %modelname%'s device for free",{modelname:''.concat(s.modelDisplayName||s.modelName,"")})}),(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{className:"pgp_btn mls_btn mls_btn_dark_green",onClick:this.handleSync,children:__("Sync the toys!")})})]})},s}(r.Component),re=ce,_e=function(e){function s(s){var n=e.call(this,s)||this;return n.showConnectionInfo=function(){n.setState({showConnectionInfo:!0})},n.state={showConnectionInfo:!1},n}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props.lovenseVibeWithMe,s=this.state.showConnectionInfo,n=null==e?void 0:e.gameData,t=null==e?void 0:e.customerData,a=null==t?void 0:t.status;if(!s&&t.vibModelName&&a!==E.Q.JOIN&&t.modelName!==t.vibModelName)return(0,c.jsx)(re,{gameData:n,customerData:t,onShowConnectionInfo:this.showConnectionInfo});switch(a){case E.Q.NO_REWARD:case E.Q.REWARD:return s?(0,c.jsx)(G,{customerData:t}):(0,c.jsx)(oe,{gameData:n,onShowConnectionInfo:this.showConnectionInfo});case E.Q.JOIN:return(0,c.jsx)(X,{gameData:n})}return null},s}(r.Component),de=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.updateStatus=function(){B.LovenseVibeWithMeController.getCustomerStatus()},s.handleClose=function(){s.props.setGameTab(null)},s}return(0,t.C6)(s,e),s.prototype.componentDidMount=function(){this.updateStatus(),window.addEventListener("focus",this.updateStatus)},s.prototype.componentWillUnmount=function(){window.removeEventListener("focus",this.updateStatus)},s.prototype.render=function(){var e,s,n=this.props.lovenseVibeWithMe;if(!(null===(e=null==n?void 0:n.gameData)||void 0===e?void 0:e.enable))return null;switch(null===(s=null==n?void 0:n.gameData)||void 0===s?void 0:s.type){case A.o.SINGLE:return(0,c.jsx)(Y,{lovenseVibeWithMe:n,onClose:this.handleClose});case A.o.CROWD:return(0,c.jsx)(ie,{lovenseVibeWithMe:n,onClose:this.handleClose});case A.o.FREE:return(0,c.jsx)(_e,{lovenseVibeWithMe:n})}return null},s=(0,t.Cg)([(0,S.Ng)("lovenseVibeWithMe")],s)}(r.Component),me=de,pe=n(47303),ue=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e,s,n=this.props.lovenseVibeWithMe,t=trans("%s1%Your toy has been successfully synced%s2% with the %modelname%'s device.",{modelname:(null===(e=null==n?void 0:n.gameData)||void 0===e?void 0:e.modelDisplayName)||(null===(s=null==n?void 0:n.gameData)||void 0===s?void 0:s.modelName),s1:"",s2:""});return(0,c.jsx)("div",{className:(0,_.n)({"system_msg msg_wrp js-chat_msg msg_chat_game":!0,__vibe_with_me:!0,__promo:!0}),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsx)("div",{className:"cg_content",children:(0,c.jsxs)("div",{className:"cg_msg_wrp cg_msg_wrp bc_flex bc_flex_items_center",children:[(0,c.jsx)(u.A,{group:"cg_icon_vibe",icon:"#svg_cg_vibe_with_me"}),(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[__("Vibe with Me:")," ",t]})]})})})})},s}(r.Component),he=ue,ge=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e,s,n=this.props.lovenseVibeWithMe;return(0,c.jsx)("div",{className:(0,_.n)({"system_msg msg_wrp js-chat_msg msg_chat_game":!0,__vibe_with_me:!0,__promo:!0}),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsx)("div",{className:"cg_content",children:(0,c.jsxs)("div",{className:"cg_msg_wrp cg_msg_wrp bc_flex bc_flex_items_center",children:[(0,c.jsx)(u.A,{group:"cg_icon_vibe __faded",icon:"#svg_cg_vibe_with_me"}),(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[__("Vibe With Me:")," ",__("Synchronization of your toy with %modelname%'s device is complete.",{modelname:(null===(e=null==n?void 0:n.gameData)||void 0===e?void 0:e.modelDisplayName)||(null===(s=null==n?void 0:n.gameData)||void 0===s?void 0:s.modelName)})]})]})})})})},s}(r.Component),be=ge,fe=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e,s,n=this.props.lovenseVibeWithMe,t=trans("Sync your toy with my Lovense for %goalToken% %tokens_plural%!",{goalToken:null===(e=n.gameData)||void 0===e?void 0:e.goalToken,tokens_plural:j.kX.pluralise("tokens",null===(s=n.gameData)||void 0===s?void 0:s.goalToken)});return(0,c.jsx)("div",{className:(0,_.n)({"system_msg msg_wrp js-chat_msg msg_chat_game":!0,__vibe_with_me:!0,__promo:!0}),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsx)("div",{className:"cg_content",children:(0,c.jsxs)("div",{className:"cg_msg_wrp cg_msg_wrp bc_flex bc_flex_items_center",children:[(0,c.jsx)(u.A,{group:"cg_icon_vibe",icon:"#svg_cg_vibe_with_me"}),(0,c.jsxs)("div",{className:"cg_msg_info bc_flex bc_flex_column",children:[(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[__("Vibe With Me:")," ",t]}),(0,c.jsx)("div",{className:"gc_msg_label bc_bold",children:__("Feel the same vibrations as I do!")}),(0,c.jsx)("div",{className:"cg_msg_actions",children:(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":"vibe-with-me","data-action":"confirm",children:__("Sync the toys!")})})]})]})})})})},s}(r.Component),ve=fe,xe=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){return(0,c.jsx)("div",{className:(0,_.n)({"system_msg msg_wrp js-chat_msg msg_chat_game":!0,__vibe_with_me:!0,__promo:!0}),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsx)("div",{className:"cg_content",children:(0,c.jsxs)("div",{className:"cg_msg_wrp cg_msg_wrp bc_flex bc_flex_items_center",children:[(0,c.jsx)(u.A,{group:"cg_icon_vibe",icon:"#svg_cg_vibe_with_me"}),(0,c.jsxs)("div",{className:"cg_msg_info bc_flex bc_flex_column",children:[(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[__("Vibe With Me:")," ",__("Sync your toy with my Lovense!")]}),(0,c.jsx)("div",{className:"gc_msg_label bc_bold",children:__("Feel the same vibrations as I do!")}),(0,c.jsx)("div",{className:"cg_msg_actions",children:(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":"vibe-with-me","data-action":"confirm",children:__("Sync the toys!")})})]})]})})})})},s}(r.Component),je=xe,Ne=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props.lovenseVibeWithMe;return(0,c.jsx)("div",{className:(0,_.n)({"system_msg msg_wrp js-chat_msg msg_chat_game":!0,__vibe_with_me:!0,__promo:!0}),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsx)("div",{className:"cg_content",children:(0,c.jsxs)("div",{className:"cg_msg_wrp cg_msg_wrp bc_flex bc_flex_items_center",children:[(0,c.jsx)(u.A,{group:"cg_icon_vibe",icon:"#svg_cg_vibe_with_me"}),(0,c.jsxs)("div",{className:"cg_msg_info bc_flex bc_flex_column",children:[(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[__("Vibe With Me:")," ",__("Sync your toy with my Lovense!")]}),(0,c.jsxs)("div",{className:"gc_msg_label bc_bold",children:[__("Feel the same vibrations that I do as soon as the goal is reached!")," (",e.gameData.receivedToken," / ",e.gameData.goalToken,")"]}),(0,c.jsx)("div",{className:"cg_msg_actions",children:(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":"vibe-with-me","data-action":"confirm",children:__("Sync the toys!")})})]})]})})})})},s}(r.Component),we=Ne,ye=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e,s,n=this.props.lovenseVibeWithMe;return(0,c.jsx)("div",{className:(0,_.n)({"system_msg msg_wrp js-chat_msg msg_chat_game":!0,__vibe_with_me:!0,__promo:!0}),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsx)("div",{className:"cg_content",children:(0,c.jsxs)("div",{className:"cg_msg_wrp cg_msg_wrp bc_flex bc_flex_items_center",children:[(0,c.jsx)(u.A,{group:"cg_icon_vibe",icon:"#svg_cg_vibe_with_me"}),(0,c.jsxs)("div",{className:"cg_msg_info bc_flex bc_flex_column",children:[(0,c.jsx)("div",{className:"cg_msg_ttl",children:__("Vibe with Me feature is available!")}),(0,c.jsx)("div",{className:"gc_msg_label bc_bold",children:__("Now you can sync your toy with %modelname%'s Lovense!",{modelname:(null===(e=n.gameData)||void 0===e?void 0:e.modelDisplayName)||(null===(s=n.gameData)||void 0===s?void 0:s.modelName)})}),(0,c.jsx)("div",{className:"cg_msg_actions",children:(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":"vibe-with-me","data-action":"confirm",children:__("Sync the toys!")})})]})]})})})})},s}(r.Component),ke=ye,Ce=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e,s,n,t=this.props.lovenseVibeWithMe,a=trans("The goal (%goalToken%/%goalToken%) achieved!",{goalToken:null===(e=t.gameData)||void 0===e?void 0:e.goalToken});return(0,c.jsx)("div",{className:(0,_.n)({"system_msg msg_wrp js-chat_msg msg_chat_game":!0,__vibe_with_me:!0,__promo:!0}),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsx)("div",{className:"cg_content",children:(0,c.jsxs)("div",{className:"cg_msg_wrp cg_msg_wrp bc_flex bc_flex_items_center",children:[(0,c.jsx)(u.A,{group:"cg_icon_vibe",icon:"#svg_cg_vibe_with_me"}),(0,c.jsxs)("div",{className:"cg_msg_info bc_flex bc_flex_column",children:[(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[__("Vibe With Me:")," ",a]}),(0,c.jsx)("div",{className:"gc_msg_label bc_bold",children:__("Now you can sync your toy with %modelname%'s Lovense!",{modelname:(null===(s=t.gameData)||void 0===s?void 0:s.modelDisplayName)||(null===(n=t.gameData)||void 0===n?void 0:n.modelName)})}),(0,c.jsx)("div",{className:"cg_msg_actions",children:(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":"vibe-with-me","data-action":"confirm",children:__("Sync the toys!")})})]})]})})})})},s}(r.Component),Re=Ce,Te=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e,s,n=this.props,t=n.lovenseVibeWithMe,a=n.type,i=a===pe.B.REWARD||(null===(e=null==t?void 0:t.customerData)||void 0===e?void 0:e.status)===E.Q.REWARD;if(a===pe.B.CONNECT)return(0,c.jsx)(he,{lovenseVibeWithMe:t});if(a===pe.B.DISCONNECT)return(0,c.jsx)(be,{lovenseVibeWithMe:t});switch(null===(s=t.gameData)||void 0===s?void 0:s.type){case A.o.SINGLE:return i?(0,c.jsx)(ke,{lovenseVibeWithMe:t}):(0,c.jsx)(ve,{lovenseVibeWithMe:t});case A.o.CROWD:return i?(0,c.jsx)(Re,{lovenseVibeWithMe:t}):(0,c.jsx)(we,{lovenseVibeWithMe:t});case A.o.FREE:return(0,c.jsx)(je,{})}return null},s}(r.Component),Se=Te,Ae=n(26989),Ee=function(e){function s(s){var n=e.call(this,s)||this;return n.timers=[],n.handleReplay=function(){var e=n.props,s=e.description,t=e.settings,a=e.isRu,i=e.onHit,o=e.data;(0,l.setHitResult)(null),(0,l.openPopup)(s.confirmComponent,{},{description:s,settings:t,data:o,isRu:a,onHit:i})},n.showButton=function(){var e=n.props.appearanceDelay;n.timers.push(window.setTimeout(function(){n.setState({isClickable:!0})},e))},n.state={isClickable:!1},n}return(0,t.C6)(s,e),s.prototype.componentDidMount=function(){this.showButton()},s.prototype.componentWillUnmount=function(){this.timers.map(function(e){return clearTimeout(e)}),this.timers=[]},s.prototype.render=function(){var e,s=this.props,n=s.className,t=s.btnText,a=s.disabled,i=this.state.isClickable;return(0,c.jsx)("button",{className:(0,_.n)((e={"pgp_btn __accordion mls_btn mls_btn_dark_green":!0,__clickable:i},e[n]=!!n,e)),type:"button",onClick:this.handleReplay,disabled:a,children:t})},s}(r.Component),De=Ee,Pe=n(63861),Me=n(33617),Ie=function(e){function s(s){var n=e.call(this,s)||this;return n.cdnHost=(0,Pe.ip)("@cdn_host"),n.refWrap=function(e){return n.wrap=e},n.handleRollsChange=function(e){(0,l.setRollTheDiceType)(e.target.value)},n.handleRoll=function(){n.props.onHit(n.props.description.id)},n.handleAnimationStart=function(){void 0!==n.autoplayTimeout&&clearTimeout(n.autoplayTimeout),Me.U.isVideoAutoPlayEnablingChecked()||Me.U.setVideoAutoPlayEnablingOn(),n.wrap&&n.wrap.classList.add("__animating")},n.handleAnimationEnd=function(){n.wrap&&n.wrap.classList.remove("__animating");var e=n.props.settings;!e.enabled&&e.isActiveNow||e.enabled&&!e.isActiveNow?setTimeout(function(){(0,l.setGameSettings)("roll-dice",{isActiveNow:!1})},o.vr):(0,l.setGameSettings)("roll-dice",(0,t.Cl)((0,t.Cl)({},e),{isActiveNow:!1}))},n.handleBack=function(){(0,l.setHitResult)(null),n.handleAnimationEnd()},n.state={isVideoPlayable:!Me.U.isVideoAutoPlayEnablingChecked()||Me.U.isVideoAutoplayEnabled()},n}return(0,t.C6)(s,e),s.prototype.UNSAFE_componentWillReceiveProps=function(e){e.hitResult&&this.setAutoplayStateChangingTimeout()},s.prototype.componentWillUnmount=function(){this.handleAnimationEnd()},s.prototype.setAutoplayStateChangingTimeout=function(){var e=this;Me.U.isVideoAutoPlayEnablingChecked()||(this.autoplayTimeout=window.setTimeout(function(){Me.U.setVideoAutoPlayEnablingOff(),e.setState({isVideoPlayable:!1})},2e3))},s.prototype.renderTitle=function(){var e=this.props.hitResult,s=e.game.result.info.value;return(0,c.jsxs)("div",{className:"pgp_result_title bc_flex bc_flex_column bc_flex_items_center",children:[__("Congratulations! You’ve won:"),(0,c.jsx)("div",{className:"rtd_gitem __result",children:(0,c.jsxs)("div",{className:"rtd_gline bc_inline_flex bc_flex_items_center",children:[(0,c.jsx)("div",{className:"pgp_dice_number",children:Array.isArray(s)&&s.length>1?s[0]+s[1]:s[0]}),(0,c.jsx)("div",{className:"rtd_label pgp_s_danger bc_fw_semi_bold",children:(0,Ae.ET)(e.prizes,15)})]})})]})},s.prototype.renderVideoBlocks=function(){var e=this.props.hitResult,s=e.game.result.info.value;return(0,c.jsxs)("div",{className:"gf_video_wrp bc_flex bc_flex_justify_center",children:[(0,c.jsxs)("video",{onPlay:this.handleAnimationStart,onEnded:this.handleAnimationEnd,width:"100",height:"150",muted:!0,autoPlay:!0,playsInline:!0,children:[(0,c.jsx)("source",{src:"".concat(this.cdnHost,"/video/games/dice/g/r").concat(s[0],".webm"),type:"video/webm"}),(0,c.jsx)("source",{src:"".concat(this.cdnHost,"/video/games/dice/g/r").concat(s[0],".mp4"),type:"video/mp4"})]}),"d2"===e.game.subType&&(0,c.jsxs)("video",{width:"100",height:"150",muted:!0,autoPlay:!0,playsInline:!0,children:[(0,c.jsx)("source",{src:"".concat(this.cdnHost,"/video/games/dice/g/b").concat(s[1],".webm"),type:"video/webm"}),(0,c.jsx)("source",{src:"".concat(this.cdnHost,"/video/games/dice/g/b").concat(s[1],".mp4"),type:"video/mp4"})]})]})},s.prototype.renderImageBlock=function(){var e=this.props.hitResult,s=e.game.result.info.value;return(0,c.jsxs)("div",{className:"gf_image_wrp bc_flex bc_flex_justify_center",onAnimationEnd:this.handleAnimationEnd,children:[(0,c.jsxs)("picture",{children:[(0,c.jsx)("source",{srcSet:(0,Pe.oF)("chat_games/roll_the_dice/game/r".concat(s[0],".webp")),type:"image/webp"}),(0,c.jsx)("img",{src:(0,Pe.oF)("chat_games/roll_the_dice/chat/r".concat(s[0],".jpg")),width:"100",height:"150",className:"gf_img",alt:""})]},"1"),"d2"===e.game.subType&&(0,c.jsxs)("picture",{children:[(0,c.jsx)("source",{srcSet:(0,Pe.oF)("chat_games/roll_the_dice/game/b".concat(s[1],".webp")),type:"image/webp"}),(0,c.jsx)("img",{src:(0,Pe.oF)("chat_games/roll_the_dice/chat/b".concat(s[1],".jpg")),width:"100",height:"150",className:"gf_img",alt:""})]},"2")]})},s.prototype.renderGameItemListSingleDice=function(){var e=this.props,s=e.settings,n=e.isRu;return(0,c.jsx)("div",{className:"rtd_gitem __list",children:(0,K.loopv)(s.d1_prizes,function(e,s){return(0,c.jsxs)("div",{className:"rtd_gline bc_inline_flex bc_flex_items_center",children:[(0,c.jsx)("div",{className:"pgp_dice_number",children:+s+1}),(0,c.jsx)("div",{className:"rtd_label",children:(0,Ae.ET)(n&&e.ru?e.ru:e.en,12)})]},s)})})},s.prototype.renderGameItemListDoubleDice=function(){var e=this.props,s=e.settings,n=e.isRu;return(0,c.jsx)("div",{className:"rtd_gitem __list",children:(0,K.loopv)(s.d2_prizes,function(e,s){return(0,c.jsxs)("div",{className:"rtd_gline bc_inline_flex bc_flex_items_center",children:[(0,c.jsx)("div",{className:"pgp_dice_number",children:+s+2}),(0,c.jsx)("div",{className:"rtd_label",children:(0,Ae.ET)(n&&e.ru?e.ru:e.en,12)})]},s)})})},s.prototype.renderDescription=function(){return(0,c.jsx)(v,{children:(0,c.jsx)(b.E,{tagName:"p",className:"pgp_game_title",html:__("%s1%Roll the dice%s2% for the specified amount of Tokens and %s3%get one of the prizes%s4% offered by the model!",{s1:'',s2:"",s3:'',s4:""})})})},s.prototype.renderCheckboxesSingleDice=function(){var e=this.props,s=e.settings,n="d2"===e.data.type;return(0,c.jsxs)("label",{className:(0,_.n)({"pgpi_item __radio bc_flex bc_flex_justify_s_between":!0,__active:!n}),children:[(0,c.jsxs)("span",{className:"pgpi_block bc_flex bc_flex_items_center",children:[(0,c.jsx)("input",{className:"pgpi_input",name:"dice_roll",value:"d1",type:"radio",checked:!n,onChange:this.handleRollsChange}),trans("Roll %s1%1%s2% dice",{s1:'',s2:""})]}),(0,c.jsx)(b.E,{tagName:"div",className:"pgpi_block __tokens",html:__("%amount% %tokens_plural%",{amount:''+s.d1_amount+"",tokens_plural:j.kX.pluralise("tokens",s.d1_amount)})})]})},s.prototype.renderCheckboxesDoubleDice=function(){var e=this.props,s=e.settings,n="d2"===e.data.type;return(0,c.jsxs)("label",{className:(0,_.n)({"pgpi_item __radio bc_flex bc_flex_justify_s_between":!0,__active:n}),children:[(0,c.jsxs)("span",{className:"pgpi_block bc_flex bc_flex_items_center",children:[(0,c.jsx)("input",{className:"pgpi_input",name:"dice_roll",value:"d2",type:"radio",checked:n,onChange:this.handleRollsChange}),trans("Roll %s1%2%s2% dice",{s1:'',s2:""})]}),(0,c.jsx)(b.E,{tagName:"div",className:"pgpi_block __tokens",html:__("%amount% %tokens_plural%",{amount:''+s.d2_amount+"",tokens_plural:j.kX.pluralise("tokens",s.d2_amount)})})]})},s.prototype.renderActionsStartGame=function(){var e=this.props.pendingHitResult;return(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{onClick:this.handleRoll,disabled:e,className:"pgp_btn mls_btn mls_btn_dark_green",children:__("Roll the Dice!")})})},s.prototype.renderActionsEndGame=function(){var e=this.props,s=e.settings,n=e.isRu,t=e.data,a=e.description,i=e.onHit;return(0,c.jsxs)("div",{className:"pgp_action bc_flex bc_flex_items_center bc_flex_justify_s_between",children:[(0,c.jsx)(De,{description:a,settings:s,isRu:n,onHit:i,data:t,className:"__dice",btnText:__("Roll the Dice again!"),appearanceDelay:a.animationDuration,disabled:!s.enabled}),(0,c.jsx)("span",{className:"pgp_link",onClick:this.handleBack,children:__("Back to view the prizes")})]})},s.prototype.render=function(){var e=this.props,s=e.settings,n=e.hitResult,t=e.data,a=this.state.isVideoPlayable;if(n)return(0,c.jsxs)("div",{className:"pgp_inner __animating",ref:this.refWrap,children:[this.renderTitle(),(0,c.jsxs)("div",{className:"cc_game_field __dice bc_flex bc_flex_column bc_flex_items_center",children:[a&&this.renderVideoBlocks(),!a&&this.renderImageBlock()]}),(0,c.jsxs)("div",{className:"pgp_input_wrp",children:[s.d1_enabled&&this.renderCheckboxesSingleDice(),s.d2_enabled&&this.renderCheckboxesDoubleDice()]}),this.renderActionsEndGame()]});var i="d2"===t.type;return(0,c.jsxs)("div",{className:"pgp_inner",ref:this.refWrap,children:[this.renderDescription(),s.d1_enabled&&!i&&this.renderGameItemListSingleDice(),s.d2_enabled&&i&&this.renderGameItemListDoubleDice(),(0,c.jsxs)("div",{className:"pgp_input_wrp",children:[s.d1_enabled&&this.renderCheckboxesSingleDice(),s.d2_enabled&&this.renderCheckboxesDoubleDice()]}),this.renderActionsStartGame()]})},s}(r.Component),We=Ie,He=n(46517),Le=n(26929);var ze=function(e){function s(s){var n=e.call(this,s)||this;return n.cdnHostUrl=(0,Pe.ip)("@cdn_host"),n}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props,s=e.dice,n=e.needHandlePlay;return(0,c.jsxs)("video",(0,t.Cl)({className:"vw_video",width:"62",height:"90",muted:!0,autoPlay:!0,playsInline:!0},n&&{"data-native_onplay":"chat.handlePlayRollTheDiceHit()"},{children:[(0,c.jsx)("source",{src:"".concat(this.cdnHostUrl,"/video/games/dice/c/").concat(s,".webm"),type:"video/webm"}),(0,c.jsx)("source",{src:"".concat(this.cdnHostUrl,"/video/games/dice/c/").concat(s,".mp4"),type:"video/mp4"})]}))},s}(r.Component),Be=ze,Fe=n(90289),Ge=n(99128),Ve=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.isVideoPlayable=!Me.U.isVideoAutoPlayEnablingChecked()||Me.U.isVideoAutoplayEnabled(),s.uniqueId=(0,Fe.fE)(),s}return(0,t.C6)(s,e),s.prototype.componentDidMount=function(){var e=this,n=this.props,t=n.value,a=n.justAdded;window.setTimeout(function(){if(!Me.U.isVideoAutoPlayEnablingChecked()){Me.U.setVideoAutoPlayEnablingOff();var n=document.getElementById(e.uniqueId);n&&(n.innerHTML=Ge.w.renderToString((0,c.jsx)(s,{value:t,justAdded:a})))}},2e3)},s.prototype.render=function(){var e=this.props,s=e.value,n=e.justAdded;return this.isVideoPlayable&&n?(0,c.jsx)("div",{id:this.uniqueId,className:"bc_dice_chat bc_flex bc_flex_justify_center",children:(0,c.jsxs)("div",{className:"dc_video_wrp __bg bc_flex bc_flex_justify_center",children:[(0,c.jsx)(Be,{dice:"r".concat(s[0]),needHandlePlay:!Me.U.isVideoAutoPlayEnablingChecked()},"1"),!!s[1]&&(0,c.jsx)(Be,{dice:"b".concat(s[1])},"2")]})}):(0,c.jsx)("div",{className:"bc_dice_chat bc_flex bc_flex_justify_center",children:(0,c.jsxs)("div",{className:"dc_video_wrp bc_flex bc_flex_justify_center",children:[(0,c.jsxs)("picture",{children:[(0,c.jsx)("source",{srcSet:(0,Pe.oF)("chat_games/roll_the_dice/chat/r".concat(s[0],".webp")),type:"image/webp"}),(0,c.jsx)("img",{src:(0,Pe.oF)("chat_games/roll_the_dice/chat/r".concat(s[0],".jpg")),className:"vw_img",alt:s[0].toString()})]},"1"),!!s[1]&&(0,c.jsxs)("picture",{children:[(0,c.jsx)("source",{srcSet:(0,Pe.oF)("chat_games/roll_the_dice/chat/b".concat(s[1],".jpg")),type:"image/webp"}),(0,c.jsx)("img",{src:(0,Pe.oF)("chat_games/roll_the_dice/chat/b".concat(s[1],".jpg")),className:"vw_img",alt:s[1].toString()})]},"2")]})})},s}(r.Component),Oe=Ve;var Ue=n(98810);var Xe=n(75583),qe=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.componentDidMount=function(){var e=this.props.onAnimationStart;e&&e()},s.prototype.render=function(){for(var e=this.props.result,s=[],n=0;n<3;n++){s[n]=[];for(var t=0;t<3;)s[n][t]=e.reels[3*t+n],t++;for(var a=3;a<20;){for(var i={icon:e.reels[Math.floor(Math.random()*e.reels.length)].icon,active:!1};i.icon===s[n][a-1].icon;)i.icon=e.reels[Math.floor(Math.random()*e.reels.length)].icon;s[n][a]=i,a++}}return(0,c.jsx)("div",{className:"bc_slot_machine_game",children:(0,c.jsxs)("div",{className:"sm_body",children:[(0,c.jsx)("div",{className:"smb_recess",children:(0,c.jsx)("div",{className:"smb_void",children:(0,c.jsxs)("div",{className:(0,_.n)({smb_drum:!0,__rtl:T.isRTLCulture}),children:[(0,c.jsx)(u.A,{group:"bd_body",icon:"#svg_sm_gf_body"}),(0,c.jsx)("div",{className:"bd_slots bc_flex bc_flex_items_end",children:(0,K.loop)(0,s.length,function(e){return(0,c.jsx)("div",{className:"bds_item bc_flex bc_flex_column bc_flex_items_center __".concat(e+1),children:(0,K.loop)(0,s[e].length,function(n){return(0,c.jsx)(Xe.A,{icon:s[e][n].icon,win:s[e][n].active},n)})},e)})}),(0,c.jsx)(u.A,{group:"bd_top",icon:"#svg_sm_gf_top"}),(0,c.jsx)(u.A,{group:"bd_bottom",icon:"#svg_sm_gf_bottom"})]})})}),(0,c.jsx)("div",{className:"smb_shadow"})]})})},s}(r.Component),Ye=qe,Qe=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.timeout=0,s.refWrap=function(e){return s.wrap=e},s.handleRateChange=function(e){(0,l.setSlotMachineRate)(Number(e.target.value))},s.handleHit=function(){s.props.onHit(s.props.description.id)},s.handleAnimation=function(){s.handleAnimationStart(),clearTimeout(s.timeout),s.timeout=window.setTimeout(s.handleAnimationEnd,5e3)},s.handleAnimationEnd=function(){s.wrap&&s.wrap.classList.remove("__animating")},s.handleAnimationStart=function(){s.wrap&&s.wrap.classList.add("__animating")},s.handleBack=function(){(0,l.setHitResult)(null),s.handleAnimationEnd()},s.getPrizeIcon=function(e){var n,t,a=s.props,i=a.hitResult,l=a.settings,r=null!==(t=parseInt(null===(n=i.game.result.info.prizes[e])||void 0===n?void 0:n.prize.replace("p",""),10))&&void 0!==t?t:null;if(!r)return null;var _=l.prizes[r-1].slug;return _?(0,c.jsx)(c.Fragment,{children:Array.from({length:o.Hf}).map(function(e,s){return(0,c.jsx)("div",{className:"slmi_icon_wrp",children:(0,c.jsx)(u.A,{group:"slmi_icon",icon:o.PM[_],url:"sprite/bc/slot_machine.svg"})},s)})}):null},s}return(0,t.C6)(s,e),s.prototype.componentWillUnmount=function(){this.handleAnimationEnd()},s.prototype.render=function(){var e,s=this,n=this.props,t=n.data.rate,a=n.data,i=n.description,l=n.hitResult,r=n.pendingHitResult,d=n.isRu,m=n.onHit,p=l?l.cachedSettings:this.props.settings,h=this.props.settings,g=o.vA[t],f=l?(0,o.t7)(l.game.result.info,p,d,!0):null,x=Boolean(l)&&l.prizes.length>0;return(0,c.jsxs)("div",{ref:this.refWrap,className:"pgp_inner",children:[Boolean(l)&&(0,c.jsxs)("div",{className:"stw_slot bc_flex bc_flex_column bc_flex_items_center",children:[(0,c.jsxs)("div",{className:"pgp_result_title",children:[(0,c.jsx)("div",{className:(0,_.jc)("pgp_result_title_text",!x&&"__hidden"),children:__("Congratulations! You’ve won:")}),x&&Array.isArray(l.prizes)?null===(e=l.prizes)||void 0===e?void 0:e.map(function(e,n){return(0,c.jsxs)("div",{className:"pgp_slm_info __result",children:[s.getPrizeIcon(n),(0,c.jsx)("span",{className:"slmi_text pgp_s_danger bc_fw_semi_bold",children:(0,Ae.ET)(e,15)})]},e)}):(0,c.jsx)("div",{className:"pgp_slm_info",children:(0,c.jsx)("div",{className:"slmi_text pg_s_danger bc_fw_semi_bold",children:__("nothing :( Try again!")})})]}),(0,c.jsx)(Ye,{result:f,onAnimationStart:this.handleAnimation}),(0,c.jsx)("div",{className:"pgp_input_wrp __full",children:(0,K.loop)(1,p.no_lose?3:5,function(e){return(0,c.jsxs)("label",{className:(0,_.jc)("pgpi_item __radio bc_flex bc_flex_justify_s_between",t===e&&"__active"),children:[(0,c.jsxs)("span",{className:"pgpi_block bc_flex bc_flex_items_center",children:[(0,c.jsx)("input",{className:"pgpi_input",checked:t===e,name:"inputSlotMachine",type:"radio",value:e,onChange:s.handleRateChange}),(0,c.jsx)(b.E,{html:__("Play %bets%",{bets:''.concat(e," ").concat(j.kX.pluralise("bets",e))}),tagName:"span"})]}),(0,c.jsx)(b.E,{className:"pgpi_block __tokens",html:__("%amount% %tokens_plural%",{amount:''.concat(h.amount*e,""),tokens_plural:j.kX.pluralise("tokens",h.amount*e)}),tagName:"span"})]},"rate_".concat(e))})}),(0,c.jsxs)("div",{className:"pgp_action bc_flex bc_flex_items_center bc_flex_justify_s_between",children:[(0,c.jsx)(De,{className:"__slot",appearanceDelay:i.animationDuration,btnText:__("Play again!"),data:a,description:i,settings:p,isRu:d,onHit:m}),(0,c.jsx)("span",{className:"pgp_link",onClick:this.handleBack,children:__("Back to view the prizes")})]})]}),Boolean(!l)&&(0,c.jsxs)("div",{className:"sga_info",children:[(0,c.jsx)(v,{children:trans("Choose how many bets to play and %s1%try your luck%s2% in the “Slot Machine” game! You can %s3%win one of the prizes%s4% offered by the model!",{s1:'',s2:"",s3:'',s4:""})}),(0,c.jsxs)("div",{className:"slm_game_wrp bc_flex bc_flex_column",children:[(0,c.jsx)("div",{className:"slmg_item __info",children:(0,K.loopv)(p.prizes,function(e,s){return(0,c.jsxs)("div",{className:"pgp_slm_info bc_flex bc_flex_items_center",children:[(0,c.jsx)("div",{className:"slmi_icon_wrp",children:(0,c.jsx)(u.A,{group:"slmi_icon",icon:o.PM[e.slug],url:"sprite/bc/slot_machine.svg"})}),(0,c.jsx)("div",{className:"slmi_text",children:(0,Ae.ET)(d&&e.ru?e.ru:e.en,10)})]},"prize_".concat(s))})}),(0,c.jsxs)("div",{className:"slmg_item __slots",children:[(0,c.jsx)("div",{className:"slm_game_title",children:__("Winning lines:")}),(0,c.jsx)("div",{className:"slmg_block bc_flex bc_flex_wrap",children:(0,K.loopv)(g,function(e){return(0,c.jsx)("div",{className:"pgp_slm_slot",children:(0,K.loopv)(e,function(e,s){return(0,c.jsx)("div",{className:(0,_.jc)("slms_item",e.active&&"__active"),children:(0,c.jsx)(u.A,{group:"slms_icon",icon:(0,o.aJ)(e.icon),url:"sprite/bc/slot_machine.svg"})},String(s))})})})})]})]}),(0,c.jsx)("div",{className:"pgp_input_wrp",children:(0,K.loop)(1,p.no_lose?3:5,function(e){return(0,c.jsxs)("label",{className:(0,_.jc)("pgpi_item __radio bc_flex bc_flex_justify_s_between",t===e&&"__active"),children:[(0,c.jsxs)("span",{className:"pgpi_block bc_flex bc_flex_items_center",children:[(0,c.jsx)("input",{className:"pgpi_input",checked:t===e,name:"inputSlotMachine",type:"radio",value:e,onChange:s.handleRateChange}),(0,c.jsx)(b.E,{html:__("Play %bets%",{bets:''.concat(e," ").concat(j.kX.pluralise("bets",e))}),tagName:"span"})]}),(0,c.jsx)(b.E,{className:"pgpi_block __tokens",html:__("%amount% %tokens_plural%",{amount:''.concat(h.amount*e,""),tokens_plural:j.kX.pluralise("tokens",h.amount*e)}),tagName:"span"})]},"rate_".concat(e))})}),(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{className:(0,_.jc)("pgp_btn mls_btn mls_btn_dark_green",r&&"mls_btn_disabled"),disabled:r,onClick:this.handleHit,children:(0,c.jsx)(b.E,{className:"cg_label",html:__("Play!"),tagName:"span"})})})]})]})},s}(r.Component),Je=Qe,Ke=n(21464);function Ze(e){var s=o.Xq["slot-machine"].storeKey;return{data:e.gamesData[s],gameSettings:e.gamesSettings[s]}}var $e=function(e){function s(s){var n=e.call(this,s)||this;return n.handleRateChange=function(e){var s=e.target,a=Number(s.value);n.setState(function(e){return(0,t.Cl)((0,t.Cl)({},e),{radio:a})})},n.state={radio:s.data.rate||1},n}return(0,t.C6)(s,e),s.prototype.UNSAFE_componentWillUpdate=function(e,s){s.radio!==this.state.radio&&(0,l.setSlotMachineRate)(s.radio)},s.prototype.render=function(){var e,s=this,n=this.props,t=n.description,a=n.gameSettings,i=n.settings,o=i.amount,r=i.no_lose,d=n.onHit,m=this.state.radio*(null!==(e=null==a?void 0:a.amount)&&void 0!==e?e:o);return(0,c.jsxs)("div",{className:"bcc_container_wrp cg_slm_confirm",children:[(0,c.jsxs)("div",{className:"bcc_container_info",children:[(0,c.jsx)(Ke.E,{className:"cgr_label",html:__("Play for %tokens%?",{tokens:''.concat(m," ").concat(j.kX.pluralise("tokens",m),"")}),tagName:"span"}),(0,c.jsx)("div",{className:"slmc_radio_wrp bc_flex bc_flex_wrap",children:(0,K.loop)(1,r?3:5,function(e){return(0,c.jsx)("div",{className:"slmc_item",children:(0,c.jsxs)("label",{className:(0,_.n)({cg_radio:!0,cg_slm_r_first:1===e}),children:[(0,c.jsx)("input",{checked:s.state.radio===e,type:"radio",value:e,onChange:s.handleRateChange}),(0,c.jsx)("span",{className:"cgr_mark"}),(0,c.jsx)(Ke.E,{className:"cgr_label",html:__("Play %bets%",{bets:''.concat(e," ").concat(j.kX.pluralise("bets",e),"")}),tagName:"span"})]})},"rate_".concat(e))})})]}),(0,c.jsxs)("div",{className:"bcc_actions",children:[(0,c.jsx)("button",{className:"bcc_button mls_btn mls_btn_green",onClick:function(){(0,l.closePopup)(),d(t.id)},children:t.confirmBtn}),(0,c.jsx)("button",{className:"bcc_button mls_btn mls_btn_white",onClick:l.closePopup,children:__("Cancel")})]})]})},s=(0,t.Cg)([(0,S.Ng)(Ze)],s)}(r.Component),es=$e,ss=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){for(var e=this.props.result,s=[],n=0;n<3;n++){s[n]=[];for(var t=0;t<3;)s[n][t]=e.reels[3*t+n],t++;for(var a=3;a<9;){for(var i={icon:e.reels[Math.floor(Math.random()*e.reels.length)].icon,active:!1};i.icon===s[n][a-1].icon;)i.icon=e.reels[Math.floor(Math.random()*e.reels.length)].icon;s[n][a]=i,a++}}return(0,c.jsx)("div",{className:"bc_slot_machine_chat",children:(0,c.jsxs)("div",{className:"sm_body",children:[(0,c.jsx)("div",{className:"smb_recess",children:(0,c.jsx)("div",{className:"smb_void",children:(0,c.jsxs)("div",{className:(0,_.n)({smb_drum:!0,__rtl:T.isRTLCulture}),children:[(0,c.jsx)(u.A,{group:"bd_body",icon:"#svg_sm_gf_body"}),(0,c.jsx)("div",{className:"bd_slots bc_flex bc_flex_items_end",children:(0,K.loop)(0,s.length,function(e){return(0,c.jsx)("div",{className:"bds_item bc_flex bc_flex_column bc_flex_items_center __".concat(e+1),children:(0,K.loop)(0,s[e].length,function(n){return(0,c.jsx)(Xe.A,{icon:s[e][n].icon,win:s[e][n].active},n)})},e)})}),(0,c.jsx)(u.A,{group:"bd_top",icon:"#svg_sm_gf_top"}),(0,c.jsx)(u.A,{group:"bd_bottom",icon:"#svg_sm_gf_bottom"})]})})}),(0,c.jsx)("div",{className:"smb_shadow"})]})})},s}(r.Component),ns=ss,ts=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.id=(0,Fe.fE)(),s}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props,s=e.icon,n=e.label;return(0,c.jsxs)("p",{className:"msgl_item bc_flex bc_flex_items_center",id:this.id,children:[(0,c.jsx)(u.A,{group:"msgl_icon",icon:"#svg_sm_".concat(s),url:"sprite/bc/slot_machine.svg"}),(0,c.jsx)("span",{className:"js-msgl_prize msgl_prize",children:(0,Ae.ET)(n,15)})]})},s}(r.Component),as=ts;var is=n(93300),ls=function(e){function s(s){var n=e.call(this,s)||this;return n.rotationTimers=[],n.basicPalette=[["#1ccad1","#17bec7","#0691a4"],["#246ee7","#1c64d3","#0949a0"],["#d12bd3","#c022bd","#990a86"],["#ec4716","#de3d0d","#bc1201"],["#f5c908","#ecb209","#cf7f02"],["#83db31","#66ca29","#25a012"]],n.extendedPalette=[["#f6ed2e","#eed924","#daad0a"]],n.finalPalette=[],n.blurRef=(0,r.createRef)(),n.winNumberRef=(0,r.createRef)(),n.canvasFieldRef=(0,r.createRef)(),n.clearWheelAnimations=function(){clearTimeout(n.animationTimeout),clearInterval(n.animationInterval)},n.handleWinSectionAccent=function(){n.winNumberRef.current&&n.winNumberRef.current.classList.add("__win")},n.getFinalPalette=function(){for(var e=n.props.sectorsAmount,s=void 0===e?0:e,t=n.finalPalette,a=n.basicPalette,i=n.extendedPalette,l=s>18,o=a.length,c=Math.floor(s/o),r=s%o,_=0;_=18?8:5)*i/l,c=a-1,r=a,_=a+1;switch(a){case 0:c=t-1,r=a,_=a+1;break;case t-1:c=t-2,r=t-1,_=0}for(var d=0;d'.concat(d.amount,""),tokens_plural:j.kX.pluralise("tokens",d.amount)}),tagName:"div"})]})}),(0,c.jsxs)("div",{className:"pgp_action bc_flex bc_flex_items_center bc_flex_justify_s_between",children:[(0,c.jsx)(De,{appearanceDelay:n.animationDuration,btnText:__("Spin the Wheel again!"),data:s,description:n,disabled:!o.enabled,isRu:i,onHit:l,settings:o}),(0,c.jsx)("span",{className:"pgp_link",onClick:this.handleBack,children:__("Back to view the prizes")})]})]}),Boolean(!t)&&(0,c.jsxs)("div",{className:"sga_info",children:[(0,c.jsx)(v,{children:(0,c.jsx)(b.E,{className:"pgp_game_title",html:__("%s1%Spin the wheel%s2% for the specified amount of Tokens and %s3%get one of the prizes%s4% offered by the model!",{s1:'',s2:"",s3:'',s4:""}),tagName:"p"})}),(0,c.jsx)("ul",{className:"stw_prizes",children:(0,K.loopv)(o.prizes,function(e,s){return(0,c.jsxs)("li",{className:"stw_prize bc_flex bc_flex_items_center",children:[(0,c.jsx)("span",{className:"stw_number",children:Number(s)+1}),(0,c.jsx)("span",{className:"stw_label",children:(0,Ae.ET)(i&&e.ru?e.ru:e.en,11)})]},s)})}),(0,c.jsx)("div",{className:"pgp_input_wrp",children:(0,c.jsxs)("label",{className:"pgpi_item __radio __active bc_flex bc_flex_justify_s_between",children:[(0,c.jsxs)("span",{className:"pgpi_block bc_flex bc_flex_items_center",children:[(0,c.jsx)("input",{className:"pgpi_input",defaultChecked:!0,type:"radio"}),__("Spin the Wheel")]}),(0,c.jsx)(b.E,{className:"pgpi_block __tokens",html:__("%amount% %tokens_plural%",{amount:''.concat(d.amount,""),tokens_plural:j.kX.pluralise("tokens",d.amount)}),tagName:"div"})]})}),(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{className:(0,_.n)({mls_btn_disabled:a,"pgp_btn mls_btn mls_btn_dark_green":!0}),disabled:a,onClick:this.handleRoll,children:(0,c.jsx)("span",{className:"cgr_label",children:__("Spin the Wheel!")})})})]})]})},s}(r.Component),rs=cs;var _s=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){return(0,c.jsxs)("div",{className:"wof_pointer",children:[(0,c.jsx)("div",{className:"wofp_bottom"}),(0,c.jsx)("div",{className:"wofp_top",children:(0,c.jsx)("div",{className:"pt_border"})})]})},s}(r.Component),ds=_s,ms=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return(0,t.C6)(s,e),s.prototype.render=function(){var e=this.props.sectorsWinner,s=["#d02929","#d98c19","#d6b81b","#97c21e","#42c521","#31d6d6","#51abec","#5157ec","#7951ec","#b151ec","#ec51ca","#ec5151"];return(0,c.jsxs)("div",{className:"bc_wheel_of_fortune_chat bc_flex bc_flex_justify_center bc_flex_items_center",children:[(0,c.jsx)("div",{className:"wof_dots",children:(0,K.loop)(0,12,function(e){return(0,c.jsx)("div",{className:"wofd_wrp",children:(0,c.jsx)("div",{className:"dw_item"})},e)})}),(0,c.jsx)("div",{className:"wof_field",children:(0,c.jsx)("div",{className:"woff_blur",children:(0,K.loop)(0,12,function(e){return(0,c.jsxs)("div",{className:"woff_sector",children:[Boolean(e)&&(0,c.jsx)("svg",{className:"ws_svg",width:"62",height:"62",viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg",style:{transform:"rotate(".concat(30*e,"deg)")},children:(0,c.jsx)("circle",{r:"15.5",cx:"31",cy:"31",className:"wss_circle",stroke:s[e]})}),!e&&(0,c.jsx)("div",{className:"ws_winner",style:{backgroundColor:"".concat(s[e])}})]},e)})})}),(0,c.jsx)(ds,{}),(0,c.jsx)("div",{className:"wof_center",children:e})]})},s}(r.Component),ps=ms;var us=n(89105),hs=n(84162),gs=(0,r.memo)(function(e){var s,n,t=e.className,a=(0,hs._)(e),i=a.selectedItem,l=a.isEnoughTokens,o=a.handleBuyTokensClick;return(0,c.jsxs)(c.Fragment,{children:[l&&(0,c.jsx)("button",{className:(0,_.n)((s={"pgp_btn pgt_btn mls_btn mls_btn_dark_green":!0},s[t]=Boolean(t),s)),type:"submit",children:__("Send %price% TKN",{price:null==i?void 0:i.price})}),!l&&(0,c.jsx)("button",{className:(0,_.n)((n={"pgp_btn pgt_btn mls_btn mls_btn_dark_green":!0},n[t]=Boolean(t),n)),type:"button",onClick:o,children:__("Buy Tokens")})]})}),bs=n(84574),fs=(0,r.forwardRef)(function(e,s){var n=e.tipMenuItem,t=(0,bs.y)(e),a=t.inputID,i=t.price,l=t.service,o=t.hash,r=t.isSelected,d=t.onChange;return(0,c.jsxs)("label",{ref:s,id:"tm-".concat(o),className:(0,_.n)({pgt_item:!0,__selected:r}),htmlFor:a,children:[(0,c.jsx)("p",{className:"pgt_name",children:(0,Ue.CN)(__(l))}),r&&(0,c.jsx)(gs,{className:"__in_list",selectedItem:n}),!r&&(0,c.jsxs)("p",{className:"pgt_price",children:[i," TKN"]}),(0,c.jsx)("input",{id:a,className:"pgt_input",checked:r,name:"service-".concat(n.hash),type:"radio",onChange:function(){return d(n.hash)}})]})}),vs=n(83910),xs=n(26112),js=n(93488),Ns=n(45273),ws=n(58236),ys=n(80554),ks=n(24899),Cs=function(){function e(){}return e.calcGamesPopupPosition=function(s,n){var t=document.querySelector(".js-chat_games_popup"),a=null===document||void 0===document?void 0:document.querySelector(".js-pgp_container"),i=(s||{}).scrollContentEl;if(t&&a&&i){var l=i.scrollTop;a.style.maxHeight="".concat(368,"px"),n&&n.style.setProperty("height","100%");var o=t.getBoundingClientRect().top+window.scrollY;o<0&&(a.style.maxHeight="".concat(Math.ceil(a.clientHeight-Math.abs(o)-52),"px")),e.fixScrollPanelHeight(a,n),l&&(i.scrollTop=l)}},e.fixScrollPanelHeight=function(e,s){if(s){var n=e.scrollHeight-e.offsetHeight;n&&s.style.setProperty("height","".concat(s.offsetHeight-n,"px"))}},e}(),Rs=function(e){var s=(0,r.useRef)(null),n=(0,js._)(e).items,t=(0,xs.i)({items:n,lastOrderHash:e.data.lastOrderHash,popupOpenSource:e.data.popupOpenSource}),a=t.selectedItem,i=t.handleSelectedServiceChange,l=t.handleTipMenuFormSubmit,o=function(e){var s=e.scrollPanelRef,n=(e.items,(0,r.useRef)(null)),t=(0,r.useRef)(null),a=function(){var e=n.current;if(!e)return t.current=null,null;if(!t.current){var s=e.querySelector(".js-pgt_list");t.current=s||null}return t.current};return(0,ws.u)(function(){Cs.calcGamesPopupPosition(s.current,a())}),(0,ks.Z9)(ys.R.CHAT_RESIZED,function(){Cs.calcGamesPopupPosition(s.current,a())}),{listWrapperRef:n}}({scrollPanelRef:s,items:n}).listWrapperRef;return(0,Ns.F)({scrollElementRef:s,scrollCenterToItem:vs.vQ,selectedHash:a.hash}),{listWrapperRef:o,scrollPanelRef:s,items:n,selectedItem:a,handleSelectedServiceChange:i,handleTipMenuFormSubmit:l}},Ts=(0,r.memo)(function(e){var s=Rs(e),n=s.listWrapperRef,t=s.scrollPanelRef,a=s.items,i=s.selectedItem,l=s.handleSelectedServiceChange,o=s.handleTipMenuFormSubmit;return(0,c.jsxs)("div",{className:"pgp_inner",children:[(0,c.jsxs)("header",{className:"pgpt_header",children:[(0,c.jsx)("p",{className:"pgth_column",children:__("Activity")}),(0,c.jsx)("p",{className:"pgth_column",children:__("Tokens")})]}),(0,c.jsxs)("form",{className:"pgt_form",onSubmit:o,children:[(0,c.jsx)("div",{ref:n,className:"pgt_list_wrp",children:(0,c.jsx)(us.M,{ref:t,className:"pgt_list js-pgt_list",isOutWrapBar:!0,isRecalculateOnResize:!0,children:a.map(function(e){return(0,c.jsx)(fs,{tipMenuItem:e,isSelected:e.hash===i.hash,onChange:l},e.hash)})})}),(0,c.jsx)("footer",{className:"pgp_action",children:(0,c.jsx)(gs,{selectedItem:i})})]})]})}),Ss=n(24629),As=n(40172),Es=[Ss.A.SV,Ss.A.DA,Ss.A.IT,Ss.A.EN,Ss.A.HR,Ss.A.HU,Ss.A.NO,Ss.A.SR,Ss.A.LV,Ss.A.FI,Ss.A.NL,Ss.A.TR],Ds=function(e){function s(s){var n=e.call(this,s)||this;return n.handleItemClick=function(e){(0,l.setTokenKenoSelectedAmount)(e)},n.handleFieldType=function(){var e=n.props,s=e.fields;"game"===e.type&&n.setState({cols:10,rows:Math.ceil(s.length/10)})},n.handleChatGameField=function(){for(var e,s=n.props,t=s.amount,a=s.fields,i=n.state,l=i.cols,o=i.rows*l,c=Math.floor(o/2),r=[],_=0;_=0&&void 0!==a[e-d];_--)r[_]=a[e-d],d++;var m=1;for(_=c+1;_=s*l)return(0,c.jsx)("div",{className:(0,_.n)({tkf_cube:!0,__checked:t.isSelected,__mark:"game"===a&&t.isDone&&t.amount!==n,__win:t.amount===n||t.fieldAmount===n}),onClick:function(){return t.isDone||"chat"===a?null:e.handleItemClick(t.amount)},children:(0,c.jsxs)("div",{className:"fc_body",children:[(0,c.jsx)("div",{className:"fc_recess"}),t.isDone&&"game"===a&&t.amount!==n&&(0,c.jsx)("div",{className:"fc_mark",children:(0,c.jsxs)("svg",{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("rect",{x:"13.4824",y:"0.0380859",width:"2.71643",height:"19.015",transform:"rotate(45 13.4824 0.0380859)"}),(0,c.jsx)("rect",{x:"0.0371094",y:"1.95898",width:"2.71643",height:"19.015",transform:"rotate(-45 0.0371094 1.95898)"})]})}),(!t.isDone||t.isDone&&t.amount===n)&&"game"===a&&(0,c.jsx)("span",{className:"fc_number",children:t.amount}),"chat"===a&&(0,c.jsx)("span",{className:"fc_number",children:t.fieldAmount?t.fieldAmount:""})]})},i)})},s)})})},s}(r.Component),Ps=Ds,Ms=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.timeout=0,s.refWrap=function(e){return s.wrap=e},s.handleHit=function(){s.props.data.selectedAmount&&(clearTimeout(s.timeout),s.handleAnimationStart(),s.props.onHit(s.props.description.id))},s.handleBack=function(){(0,l.setHitResult)(null),s.handleAnimationEnd()},s.handleAnimationStart=function(){s.wrap&&s.wrap.classList.add("__animating")},s.handleAnimationEnd=function(){s.wrap&&s.wrap.classList.remove("__animating");var e=s.props.settings;e.enabled?(0,l.setGameSettings)("token-keno",{isActiveNow:!1}):(e.reload||(0,l.setTokenKenoSelectedAmount)(!1),setTimeout(function(){(0,l.setGameSettings)("token-keno",{isActiveNow:!1})},o.vr))},s}return(0,t.C6)(s,e),s.prototype.componentWillUnmount=function(){this.handleAnimationEnd()},s.prototype.UNSAFE_componentWillReceiveProps=function(e){var s=this;this.props.pendingHitResult===e.pendingHitResult||e.pendingHitResult||(clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){s.handleAnimationEnd()},1e3))},s.prototype.handleShowPrizeClick=function(e){e!==this.props.data.showPrizes&&(0,l.setTokenKenoShowPrizes)(!this.props.data.showPrizes)},s.prototype.render=function(){var e=this,s=this.props,n=s.data,a=s.isRu,i=s.hitResult,l=s.description,o=s.onHit,r=n.selectedAmount,d=n.showPrizes,m=n.waitingSettings,p=n.suggestingAmount,u=i?i.game.amount:null,h=i?i.cachedSettings:this.props.settings,g=(0,K.loop)(h.min_amount,h.max_amount+1,function(e){return{amount:e,isSelected:r===e,isDone:h.prizes.find(function(s){return s.amount===e})}}),f=h.enabled||h.reload,x=f&&u?p:r,N=Boolean(u)||!r||!f,w=!u||m||!i||!f,y=h.prizes.findIndex(function(e){return Number(e.hash)===Number(null==i?void 0:i.game.result.info.value)});return(0,c.jsxs)("div",{className:(0,_.n)({pgp_inner:!0,__result:Boolean(u)}),ref:this.refWrap,children:[u?(0,c.jsxs)("div",{className:"pgp_result_title",children:[__("Congratulations! You’ve won:"),(0,c.jsxs)("div",{className:"pgp_result_keno",children:[(0,c.jsx)("span",{className:"pgp_result_number",children:null!=u?u:y+1}),(0,c.jsx)("span",{className:"pgp_result_text",children:(0,Ae.ET)(i.prizes,15)})]})]}):(0,c.jsx)(v,{children:(0,c.jsx)(b.E,{tagName:"p",className:"pgp_game_title",html:__("%s1%Select a number and play%s2% “Bingo” to %s3%receive one of the prizes%s4% the model offers! Numbers correspond to the amount of Tokens required to participate.",{s1:'',s2:"",s3:'',s4:""})})}),(0,c.jsxs)("div",{className:"pgp_keno",children:[(0,c.jsxs)("div",{className:"pgp_tabs bc_flex",children:[(0,c.jsx)("div",{className:(0,_.n)({pgt_item:!0,__selected:!d}),onClick:function(){return e.handleShowPrizeClick(!1)},children:__("Select a number")}),(0,c.jsx)("div",{className:(0,_.n)({pgt_item:!0,__selected:d}),onClick:function(){return e.handleShowPrizeClick(!0)},children:d?__("All prizes"):__("See prizes")})]}),d?(0,c.jsx)("ul",{className:"pgk_prizes",children:h.prizes.map(function(e,s){return(0,c.jsx)("li",{className:"pgk_prizes_item",children:(0,Ae.ET)(a&&e.ru?e.ru:e.en,15)},String(s))})}):(0,c.jsx)("div",{className:"pgk_table",children:(0,c.jsx)(Ps,{fields:g,amount:u,type:"game"})})]}),(0,c.jsx)("div",{className:"pgp_input_wrp __static",children:(0,c.jsxs)("label",{className:"pgpi_item __radio bc_flex bc_flex_justify_s_between",children:[(0,c.jsxs)("span",{className:"pgpi_block bc_flex bc_flex_items_center",children:[(0,c.jsx)("input",{className:"pgpi_input",checked:Boolean(x),readOnly:!0,type:"radio"}),(0,c.jsx)(b.E,{tagName:"div",className:"pgpi_block",html:x?__("You have selected a number: %number%",{number:''+x+""}):__("Select a number")})]}),x&&(0,c.jsx)(b.E,{tagName:"div",className:"pgpi_block __tokens",html:__("%amount% %tokens_plural%",{amount:''+x+"",tokens_plural:j.kX.pluralise("tokens",x)})})]})}),!u&&(0,c.jsx)("div",{className:"pgp_action",children:(0,c.jsx)("button",{onClick:this.handleHit,className:(0,_.n)({"pgp_btn mls_btn mls_btn_dark_green":!0,mls_btn_disabled:N}),disabled:N,children:(0,c.jsx)(b.E,{tagName:"span",className:"cg_label",html:__("Play!")})})}),u&&(0,c.jsxs)("div",{className:"pgp_action bc_flex bc_flex_items_center bc_flex_justify_s_between",children:[(0,c.jsx)(De,{description:l,settings:this.props.settings,isRu:a,onHit:o,data:(0,t.Cl)((0,t.Cl)({},n),{selectedAmount:n.suggestingAmount}),className:(0,_.n)({__token_keno:!0,mls_btn_disabled:w}),btnText:__("Play again!"),appearanceDelay:l.animationDuration,disabled:w}),(0,c.jsx)("span",{className:"pgp_link",onClick:this.handleBack,children:__("Back to view the prizes")})]})]})},s}(r.Component),Is=Ms;var Ws,Hs,Ls,zs=n(57558),Bs=(0,t.Cl)((0,t.Cl)({},i.q.isEnabled(a.i.TIP_MENU_POPUP_GAME)?((Ws={})["tip-menu"]={badgeComponent:function(){var e=function(){var e=(0,He.d4)(As._G)||Ss.A.EN,s=(0,r.useMemo)(function(){return Es.includes(e)},[e]);return{lang:e,isTipMenuBadgeLong:s}}(),s=e.lang,n=e.isTipMenuBadgeLong;return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("span",{className:(0,_.n)({"pg_badge_new bc_text_badge":!0,__long:n}),children:(0,c.jsx)("img",{className:"tb_icon",alt:"",src:(0,Pe.oF)("svg/bc/badge_tip_menu_lg/".concat(s,".svg"))})})})},component:Ts},Ws):{}),((Hs={})["auto-dj"]={component:k,hitAction:l.autoDJHitAction,hitComponent:function(e){var s,n=e.description,t=n.id,a=n.className,i=n.iconFlat,l=n.title,o=e.track,r=e.isModerator,m=o.amount;return(0,c.jsxs)("div",{className:(0,_.n)((s={"system_msg msg_wrp js-chat_msg msg_chat_game":!0},s[a]=Boolean(a),s.__hit=!0,s)),children:[(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsxs)("div",{className:"cg_content",children:[m&&(0,c.jsx)("div",{className:"cg_msg_tokens",children:(0,c.jsx)("div",{className:(0,R.u)(C.X.TIP_SUCCESS),children:(0,c.jsx)("div",{className:"msg_box",children:(0,c.jsx)(b.E,{tagName:"div",className:"system_area",html:__("%username% played for %amount% %tokens_plural%!",{username:o.memberDisplayName,amount:m,tokens_plural:''.concat(j.kX.pluralise("tokens",m),"")})})})})}),(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[l,": ",__("Song requested by %username%",{username:o.memberDisplayName})]}),(0,c.jsxs)("div",{className:"cg_msg_result bc_flex bc_flex_items_center",children:[o.isPremium&&(0,c.jsx)("div",{className:"cg_auto_dj_box",children:(0,c.jsx)(u.A,{group:"adjb_icon",icon:"#icon_auto_dj_priority"})}),(0,c.jsxs)("div",{className:(0,_.n)({gc_msg_label:!0,__clear:!o.isPremium,ltr:!0}),children:[!T.isRTLCulture&&o.title,(0,c.jsxs)("span",{className:"cg_msg_s_time",children:[" (",(0,d.Ji)(o.duration),") "]}),T.isRTLCulture&&o.title]})]}),!r&&(0,c.jsx)("div",{className:"cg_msg_actions",children:(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":t,"data-action":"view_prizes",children:__("Request a song")})})]})}),(0,c.jsx)(u.A,{group:"cg_msg_icon",icon:"#".concat(i)})]})}},Hs["vibe-with-me"]={component:me,hitAction:zs._p,promoComponent:Se},Hs["roll-dice"]={component:We,confirmComponent:function(e){var s=e.data.type,n=e.description,t=e.onHit,a=(0,He.d4)(function(e){return(0,Le.fj)(e)});if("d2"===s&&!(null==a?void 0:a.d2_enabled))return(0,c.jsx)("div",{className:"cgr_no_results",children:__("No 2 rolls available")});if("d1"===s&&!(null==a?void 0:a.d1_enabled))return(0,c.jsx)("div",{className:"cgr_no_results",children:__("No 1 roll available")});var i="d2"===s?null==a?void 0:a.d2_amount:null==a?void 0:a.d1_amount;return(0,c.jsxs)("div",{className:"bcc_container_wrp",children:[(0,c.jsx)("div",{className:"bcc_container_info",children:"d2"===s?(0,c.jsx)(b.E,{className:"cgr_label",html:__("Roll 2 dice for %tokens%?",{tokens:''.concat(i," ").concat(j.kX.pluralise("tokens",i),"")}),tagName:"span"}):(0,c.jsx)(b.E,{className:"cgr_label",html:__("Roll 1 dice for %tokens%?",{tokens:''.concat(i," ").concat(j.kX.pluralise("tokens",i),"")}),tagName:"span"})}),(0,c.jsxs)("div",{className:"bcc_actions",children:[(0,c.jsx)("button",{className:"bcc_button mls_btn mls_btn_green",onClick:function(){(0,l.closePopup)(),t(n.id)},children:n.confirmBtn}),(0,c.jsx)("button",{className:"bcc_button mls_btn mls_btn_white",onClick:l.closePopup,children:__("Cancel")})]})]})},hitAction:l.rollDiceHitAction,hitComponent:function(e){var s,n,t,a=e.description,i=e.eventData,l=e.justAdded,o=e.sameMember,r=e.settings,d=e.isModerator,m=e.isRu,p=i.game,u=p.amount,h=p.subType,g=p.dn,f=p.result,v=a.id;return r&&(n="d1"===h?f.info.value[0]:Number(f.info.value[0])+f.info.value[1],t=(0,Ae.ET)(a.getHitPrizes(i,a,r,m),12)),(0,c.jsx)("div",{className:(0,_.n)((s={"system_msg msg_wrp js-chat_msg msg_chat_game __hit":!0},s[a.className]=Boolean(a.className),s)),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsxs)("div",{className:"cg_content",children:[(0,c.jsx)("div",{className:"cg_msg_tokens",children:(0,c.jsx)("div",{className:(0,R.u)(C.X.TIP_SUCCESS),children:(0,c.jsx)("div",{className:"msg_box",children:(0,c.jsx)(b.E,{tagName:"div",className:"system_area",html:__("%username% played for %amount% %tokens_plural%!",{username:g,amount:u,tokens_plural:''.concat(j.kX.pluralise("tokens",u),"")})})})})}),!t&&!d&&(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":v,"data-action":"confirm",children:o?__("Roll again!"):__("Roll as well!")}),!!t&&(0,c.jsxs)("div",{className:(0,_.n)({"js-cb-game-msg cg_msg_wrp bc_flex __dice":!0,__rtl:T.isRTLCulture}),children:[(0,c.jsx)("div",{className:"cmw_game_wrp bc_flex bc_flex_justify_f_start",children:(0,c.jsx)(Oe,{value:i.game.result.info.value,justAdded:l})}),(0,c.jsxs)("div",{className:"cg_msg_info",children:[(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[(0,Ae.JR)(a.title),":"," ",__("%username% rolled %result%!",{username:g,result:n})]}),(0,c.jsx)("div",{className:"cg_keno_prize __dice",children:(0,c.jsx)("div",{className:"cgkp_game_wrp bc_inline_flex bc_flex_items_center",children:(0,c.jsxs)("p",{className:"gc_msg_label bc_flex bc_flex_items_start",children:[(0,c.jsx)("span",{className:"ms_preview",children:__("Prize:")}),(0,c.jsx)("span",{className:"ms_prize",children:t})]})})}),!d&&(0,c.jsx)("div",{className:"cg_msg_actions",children:(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":v,"data-action":"confirm",children:o?__("Roll again!"):__("Roll as well!")})})]})]})]})})})},promoComponent:function(e){var s,n=e.settings,t=e.description,a=e.isRu,i=t.id,l=(0,Ue.CN)((0,Ae.ET)(a&&n.message_ru?n.message_ru:n.message,15));return(0,c.jsx)("div",{className:(0,_.n)((s={"system_msg msg_wrp js-chat_msg msg_chat_game":!0},s[t.className]=Boolean(t.className),s.__promo=!0,s)),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsxs)("div",{className:"cg_content",children:[(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[(0,Ae.JR)(t.title),": ",l," ",(0,c.jsx)("a",{href:"#",className:"js-game-control","data-id":i,"data-action":"view_prizes",children:__("Check the prizes!")})]}),n.d1_enabled&&(0,c.jsxs)("div",{className:"cg_msg",children:[(0,c.jsx)(b.E,{tagName:"span",className:"cgr_label",html:__("Roll 1 dice for %tokens%",{tokens:''.concat(n.d1_amount," ").concat(j.kX.pluralise("tokens",n.d1_amount),"")})}),(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":i,"data-value":"d1","data-action":"confirm",children:__("Roll the Dice!")})]}),n.d2_enabled&&(0,c.jsxs)("div",{className:"cg_msg",children:[(0,c.jsx)(b.E,{tagName:"span",className:"cgr_label",html:__("Roll 2 dice for %tokens%",{tokens:''.concat(n.d2_amount," ").concat(j.kX.pluralise("tokens",n.d2_amount),"")})}),(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":i,"data-value":"d2","data-action":"confirm",children:__("Roll the Dice!")})]})]})})})}},Hs["slot-machine"]={component:Je,confirmComponent:es,hitAction:l.slotMachineHitAction,hitComponent:function(e){var s,n=e.description,t=e.sameMember,a=e.settings,i=e.isModerator,l=e.isRu,r=e.eventData.game,d=r.amount,m=r.result,p=r.dn,u=n.id,h=a?(0,o.t7)(m.info,a,l,!0):null;return(0,c.jsx)("div",{className:(0,_.n)((s={"system_msg msg_wrp js-chat_msg msg_chat_game":!0},s[n.className]=Boolean(n.className),s.__hit=!0,s)),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsxs)("div",{className:"cg_content",children:[(0,c.jsx)("div",{className:"cg_msg_tokens",children:(0,c.jsx)("div",{className:(0,R.u)(C.X.TIP_SUCCESS),children:(0,c.jsx)("div",{className:"msg_box",children:(0,c.jsx)(b.E,{tagName:"div",className:"system_area",html:__("%username% played for %amount% %tokens_plural%!",{username:p,amount:d,tokens_plural:''.concat(j.kX.pluralise("tokens",d),"")})})})})}),!h&&!i&&(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":u,"data-action":"confirm",children:t?trans("Play again!"):trans("Play as well!")}),h&&(0,c.jsxs)("div",{className:(0,_.n)({"js-cb-game-msg cg_msg_wrp bc_flex":!0,__rtl:T.isRTLCulture}),children:[(0,c.jsx)("div",{className:"cmw_game_wrp bc_flex bc_flex_justify_f_start",children:(0,c.jsx)(ns,{result:h})}),(0,c.jsxs)("div",{className:"cg_msg_info",children:[(0,c.jsxs)("p",{className:"cg_msg_ttl",children:["".concat((0,Ae.JR)(n.title),": "),h.isPrizes?__("%username% won prize!",{username:p}):trans("%username% won %s1%nothing :(%s2%",{username:p,s1:'',s2:""})]}),(0,c.jsx)("div",{className:"cg_keno_prize __hit __slot",children:(0,c.jsx)("div",{className:"cgkp_game_wrp bc_inline_flex bc_flex_items_center",children:(0,c.jsx)("div",{className:"gc_msg_label",children:(0,K.loopv)(h.prizes,function(e,s){return(0,c.jsx)(as,{icon:e.icon,label:e.label},s)})})})}),!i&&(0,c.jsx)("div",{className:"cg_msg_actions",children:(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":u,"data-action":"confirm",children:t?trans("Play again!"):trans("Play as well!")})})]})]})]})})})},promoComponent:function(e){var s,n=e.settings,t=e.description,a=e.isRu,i=t.id,l=(0,Ue.CN)((0,Ae.ET)(a&&n.message_ru?n.message_ru:n.message,15));return(0,c.jsx)("div",{className:(0,_.n)((s={"system_msg msg_wrp js-chat_msg msg_chat_game":!0},s[t.className]=Boolean(t.className),s.__promo=!0,s)),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsxs)("div",{className:"cg_content",children:[(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[(0,Ae.JR)(t.title),": ",l," ",(0,c.jsx)("a",{href:"#",className:"js-game-control","data-id":i,"data-action":"view_prizes",children:__("Check the prizes!")})]}),(0,c.jsx)("div",{className:"cg_msg",children:(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":i,"data-value":1,"data-action":"confirm",children:(0,c.jsx)(b.E,{tagName:"span",className:"cg_slm_label",html:__("Bet and play! (%tokens%)",{tokens:''.concat(n.amount," ").concat(j.kX.pluralise("tokens",n.amount),"")})})})})]})})})}},Hs["spin-wheel"]={component:rs,confirmComponent:function(e){var s,n=(0,He.d4)(function(e){return(0,Le.O)(e)}),t=e.description,a=e.settings,i=e.onHit,o=null!==(s=null==n?void 0:n.amount)&&void 0!==s?s:a.amount;return(0,c.jsxs)("div",{className:"bcc_container_wrp",children:[(0,c.jsx)("div",{className:"bcc_container_info",children:(0,c.jsx)(b.E,{className:"cgr_label",html:__("Spin the wheel for %tokens%?",{tokens:''.concat(o," ").concat(j.kX.pluralise("tokens",o),"")}),tagName:"span"})}),(0,c.jsxs)("div",{className:"bcc_actions",children:[(0,c.jsx)("button",{className:"bcc_button mls_btn mls_btn_green",onClick:function(){(0,l.closePopup)(),i(t.id)},children:t.confirmBtn}),(0,c.jsx)("button",{className:"bcc_button mls_btn mls_btn_white",onClick:l.closePopup,children:__("Cancel")})]})]})},hitAction:l.spinWheelHitAction,hitComponent:function(e){var s,n=e.description,t=e.sameMember,a=e.settings,i=e.isModerator,l=e.isRu,o=e.eventData.game,r=o.amount,d=o.dn,m=o.result,p=n.id,u=a?(0,Ae.ET)(n.getHitPrizes(e.eventData,n,a,l),12):null;return(0,c.jsx)("div",{className:(0,_.n)((s={"system_msg msg_wrp js-chat_msg msg_chat_game":!0},s[n.className]=Boolean(n.className),s.__hit=!0,s)),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsxs)("div",{className:"cg_content",children:[(0,c.jsx)("div",{className:"cg_msg_tokens",children:(0,c.jsx)("div",{className:(0,R.u)(C.X.TIP_SUCCESS),children:(0,c.jsx)("div",{className:"msg_box",children:(0,c.jsx)(b.E,{tagName:"div",className:"system_area",html:__("%username% played for %amount% %tokens_plural%!",{username:d,amount:r,tokens_plural:''.concat(j.kX.pluralise("tokens",r),"")})})})})}),!u&&!i&&(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":p,"data-action":"confirm",children:t?__("Spin again!"):__("Spin as well!")}),!!u&&(0,c.jsxs)("div",{className:(0,_.n)({"js-cb-game-msg cg_msg_wrp bc_flex":!0,__rtl:T.isRTLCulture}),children:[(0,c.jsx)("div",{className:"cmw_game_wrp bc_flex bc_flex_justify_f_start",children:(0,c.jsx)(ps,{sectorsWinner:m.info.value})}),(0,c.jsxs)("div",{className:"cg_msg_info",children:[(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[(0,Ae.JR)(n.title),":"," ",__("%username% spinned %result%!",{result:m.info.value.toString(),username:d})]}),(0,c.jsx)("div",{className:"cg_keno_prize __wheel",children:(0,c.jsx)("div",{className:"cgkp_game_wrp bc_inline_flex bc_flex_items_center",children:(0,c.jsxs)("p",{className:"gc_msg_label bc_flex bc_flex_items_start",children:[(0,c.jsx)("span",{className:"ms_preview",children:__("Prize:")}),(0,c.jsx)("span",{className:"ms_prize",children:u})]})})}),!i&&(0,c.jsx)("div",{className:"cg_msg_actions",children:(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":p,"data-action":"confirm",children:t?__("Spin again!"):__("Spin as well!")})})]})]})]})})})},promoComponent:function(e){var s,n=e.settings,t=e.description,a=e.isRu,i=t.id,l=(0,Ue.CN)((0,Ae.ET)(a&&n.message_ru?n.message_ru:n.message,15));return(0,c.jsx)("div",{className:(0,_.n)((s={"system_msg msg_wrp js-chat_msg msg_chat_game":!0},s[t.className]=Boolean(t.className),s.__promo=!0,s)),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsxs)("div",{className:"cg_content",children:[(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[(0,Ae.JR)(t.title),": ",l," ",(0,c.jsx)("a",{href:"#",className:"js-game-control","data-id":i,"data-action":"view_prizes",children:__("Check the prizes!")})]}),(0,c.jsxs)("div",{className:"cg_msg",children:[(0,c.jsx)(b.E,{tagName:"span",className:"cgr_label",html:__("Spin the wheel for %tokens%",{tokens:''.concat(n.amount," ").concat(j.kX.pluralise("tokens",n.amount),"")})}),(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":i,"data-action":"confirm",children:__("Spin the Wheel!")})]})]})})})}},Hs["token-keno"]={component:Is,confirmComponent:function(e){var s=e.description,n=e.onHit,t=(0,He.d4)(function(e){return(0,Le.Tc)(e)}),a=null==t?void 0:t.suggestingAmount;return(0,c.jsxs)("div",{className:"bcc_container_wrp",children:[(0,c.jsx)("div",{className:"bcc_container_info",children:(0,c.jsx)(b.E,{className:"cg_label",html:__("Play for %tokens%?",{tokens:''.concat(a," ").concat(j.kX.pluralise("tokens",a),"")}),tagName:"span"})}),(0,c.jsxs)("div",{className:"bcc_actions",children:[(0,c.jsx)("button",{className:"bcc_button mls_btn mls_btn_green",onClick:function(){(0,l.closePopup)(),n(s.id)},children:s.confirmBtn}),(0,c.jsx)("button",{className:"bcc_button mls_btn mls_btn_white",onClick:l.closePopup,children:__("Cancel")})]})]})},hitAction:l.tokenKenoHitAction,hitComponent:function(e){var s,n=e.data,t=n.suggestingAmount,a=n.waitingSettings,i=e.description,l=e.sameMember,o=e.settings,r=e.isModerator,d=e.isRu,m=e.eventData.game,p=m.amount,u=m.dn,h=i.id,g=o?(0,Ae.ET)(i.getHitPrizes(e.eventData,i,o,d),12):null,f=o?(0,K.loop)(o.min_amount,o.max_amount+1,function(e){return{fieldAmount:e,isDone:o.prizes.find(function(e){return e.amount===p})}}):null;return(0,c.jsx)("div",{className:(0,_.n)((s={"system_msg msg_wrp js-chat_msg msg_chat_game js-token-keno-hit-container __hit":!0},s[i.className]=Boolean(i.className),s)),children:(0,c.jsx)("div",{className:"msg_box",children:(0,c.jsxs)("div",{className:"cg_content",children:[(0,c.jsx)("div",{className:"cg_msg_tokens",children:(0,c.jsx)("div",{className:(0,R.u)(C.X.TIP_SUCCESS),children:(0,c.jsx)("div",{className:"msg_box",children:(0,c.jsx)(b.E,{tagName:"div",className:"system_area",html:__("%username% played for %amount% %tokens_plural%!",{username:u,amount:p,tokens_plural:''.concat(j.kX.pluralise("tokens",p),"")})})})})}),!g&&!r&&(0,c.jsx)("button",{className:(0,_.n)({"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control":!0,mls_btn_disabled:a}),"data-id":h,"data-value":t,"data-action":"confirm",children:l?__("Play again!"):__("Play as well!")}),Boolean(g)&&(0,c.jsxs)("div",{className:(0,_.n)({"js-cb-game-msg cg_msg_wrp bc_flex":!0,__rtl:T.isRTLCulture}),children:[(0,c.jsx)("div",{className:"cmw_game_wrp bc_flex bc_flex_justify_f_start",children:(0,c.jsx)(Ps,{fields:f,amount:p,type:"chat"})}),(0,c.jsxs)("div",{className:"cg_msg_info",children:[(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[(0,Ae.JR)(i.title),":"," ",__("%username% chose %amount%!",{username:u,amount:p})]}),(0,c.jsx)("div",{className:"cg_keno_prize __hit __token",children:(0,c.jsx)("div",{className:"cgkp_game_wrp bc_inline_flex bc_flex_items_center",children:(0,c.jsxs)("p",{className:"gc_msg_label bc_flex bc_flex_items_start",children:[(0,c.jsx)("span",{className:"ms_preview",children:__("Prize:")}),(0,c.jsx)("span",{className:"ms_prize",children:g})]})})}),t&&!r&&(0,c.jsx)("button",{className:(0,_.n)({"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control":!0,mls_btn_disabled:a}),"data-id":h,"data-value":t,"data-action":"confirm",children:l?__("Play again!"):__("Play as well!")})]})]})]})})})},promoComponent:function(e){var s,n=e.settings,t=e.description,a=e.isRu,i=e.data.selectedAmount,l=t.id,o=(0,Ue.CN)((0,Ae.ET)(a&&n.message_ru?n.message_ru:n.message,15)),r=(0,K.loop)(n.min_amount,n.max_amount+1,function(e){return{amount:e,isSelected:i===e,isDone:n.prizes.find(function(s){return s.amount===e})}});return(0,c.jsx)("div",{className:(0,_.n)((s={"system_msg msg_wrp js-chat_msg msg_chat_game js-token-keno-promo-container __promo":!0},s[t.className]=Boolean(t.className),s)),children:(0,c.jsx)("div",{className:"msg_box bc_flex",children:(0,c.jsxs)("div",{className:"cg_content",children:[(0,c.jsxs)("div",{className:"cg_msg_ttl",children:[(0,Ae.JR)(t.title),": ",o," ",(0,c.jsx)("a",{href:"#",className:"js-game-control","data-id":l,"data-action":"view_prizes",children:__("Check the prizes!")})]}),(0,c.jsxs)("div",{className:"cg_msg",children:[(0,c.jsx)("span",{className:"cg_label",children:__("Choose the number and play!")}),(0,c.jsx)("div",{className:"cg_keno_prize __promo",children:(0,c.jsx)("div",{className:"cgkp_game_wrp bc_inline_flex bc_flex_wrap",children:r.map(function(e){var s;return(0,c.jsx)("div",{className:(0,_.n)((s={"js-game-control":!e.isDone,"cg_keno_cube __small":!0,__selected:e.isSelected},s[e.isDone?"__mark":"__number"]=!0,s)),"data-action":"select","data-id":l,"data-value":e.amount,"data-amount":e.amount},e.amount)})})}),Boolean(i)&&(0,c.jsx)("button",{className:"msg_btn mls_btn mls_btn_white mls_btn_mini js-game-control","data-id":l,"data-action":"confirm",children:(0,c.jsx)(b.E,{tagName:"span",className:"cg_label",html:__("Play! (%tokens%)",{tokens:''.concat(i," ").concat(j.kX.pluralise("tokens",i),"")})})})]})]})})})}},Hs)),Fs=((Ls={})["tip-menu"]=0,Ls["spin-wheel"]=1,Ls["auto-dj"]=2,Ls["roll-dice"]=3,Ls["slot-machine"]=4,Ls["token-keno"]=5,Ls["vibe-with-me"]=6,Ls),Gs=o.Fp.map(function(e){return(0,t.Cl)((0,t.Cl)({},e),Bs[e.id])}).sort(function(e,s){return Fs[e.id]-Fs[s.id]}),Vs=Gs.reduce(function(e,s){var n;return(0,t.Cl)((0,t.Cl)({},e),((n={})[s.id]=s,n))},{})},86723:function(e,s,n){n.r(s),n.d(s,{LovenseVibeWithMeController:function(){return o}});var t,a=n(15215);!function(e){e.ENABLE="vibeWithMeEnable",e.STATUS="vibeWithMeStatus",e.TIP="vibeWithMeTip"}(t||(t={}));var i=n(57558),l=n(15597),o=function(){function e(){}return e.init=function(s,n){return(0,a.sH)(this,void 0,void 0,function(){return(0,a.YH)(this,function(t){switch(t.label){case 0:return window.Lovense?[4,e.waitInit()]:[3,2];case 1:if(!t.sent())return[2];window.Lovense.vibrateWithMe.init("bongacams",s,n),e.attachEventHandlers(),t.label=2;case 2:return[2]}})})},e.destroy=function(){e.waiting=!1,window.Lovense&&window.Lovense.vibrateWithMe.destroy()},e.waitInit=function(){return(0,a.sH)(this,void 0,void 0,function(){var s;return(0,a.YH)(this,function(n){switch(n.label){case 0:s=function(){var e;return Boolean(null===(e=window.Lovense)||void 0===e?void 0:e.vibrateWithMe)},e.waiting=!0,n.label=1;case 1:return s()||!e.waiting?[3,3]:[4,new Promise(function(e){return setTimeout(e,100)})];case 2:return n.sent(),[3,1];case 3:return e.waiting=!1,[2,s()]}})})},e.attachEventHandlers=function(){var s;null===(s=window.Lovense)||void 0===s||s.vibrateWithMe.addMessageListener(e.handleEvent)},e.handleEvent=function(s){switch(null==s?void 0:s.type){case t.ENABLE:(0,i.tw)(s.payload);break;case t.STATUS:s.payload.status!==l.Q.JOIN?e.getCustomerStatus():(0,i.vA)(s.payload);break;case t.TIP:(0,i.fz)(s.payload)}},e.invokeApp=function(){window.Lovense&&window.Lovense.vibrateWithMe.callRemoteApp()},e.getGameStatus=function(){window.Lovense&&window.Lovense.vibrateWithMe.getGameStatus(function(e){(0,i.tw)(e)})},e.getCustomerStatus=function(){window.Lovense&&window.Lovense.vibrateWithMe.getCustomerStatus(function(e){(0,i.vA)(e)})},e.receiveData=function(e){var s;(null===(s=window.Lovense)||void 0===s?void 0:s.recieveData)&&window.Lovense.recieveData({data:e})},e.forceDisable=function(){(0,i.tw)({enable:!1})},e.waiting=!1,e.LINK_APPLE_STORE="//apps.apple.com/us/app/lovense-remote/id1027312824",e.LINK_GOOGLE_STORE="//play.google.com/store/apps/details?id=com.lovense.wear",e}()},57558:function(e,s,n){n.d(s,{vA:function(){return m},tw:function(){return d},fz:function(){return p},_p:function(){return u},g7:function(){return h}});var t,a=n(15215),i=n(99525);function l(e,s){switch(s.type){case t.SET_GAME_DATA:return(0,a.Cl)((0,a.Cl)({},e),{gameData:s.payload});case t.SET_CUSTOMER_DATA:return(0,a.Cl)((0,a.Cl)({},e),{customerData:s.payload});case t.UPDATE_AFTER_TIP:var n=s.payload,i=n.modelName,l=n.goalToken,o=n.receivedToken;return e.gameData.modelName!==i?e:(0,a.Cl)((0,a.Cl)({},e),{gameData:(0,a.Cl)((0,a.Cl)({},e.gameData),{goalToken:l,receivedToken:o})});default:return e}}!function(e){e.SET_GAME_DATA="@@vibeWithMe/setGameData",e.SET_CUSTOMER_DATA="@@vibeWithMe/setCustomerData",e.UPDATE_AFTER_TIP="@@vibeWithMe/updateAfterTip"}(t||(t={}));var o=n(37828),c=n(73645),r=n(1325),_=n(63861);function d(e){return(0,a.sH)(this,void 0,void 0,function(){var s,n,i,l;return(0,a.YH)(this,function(o){switch(o.label){case 0:return s=g,i={type:t.SET_GAME_DATA},n=[(0,a.Cl)({},e)],l={},[4,f(e.modelName)];case 1:return s.apply(void 0,[(i.payload=a.Cl.apply(void 0,n.concat([(l.modelDisplayName=o.sent(),l)])),i)]),[2]}})})}function m(e){return(0,a.sH)(this,void 0,void 0,function(){var s,n,i,l;return(0,a.YH)(this,function(o){switch(o.label){case 0:return s=g,i={type:t.SET_CUSTOMER_DATA},n=[(0,a.Cl)({},e)],l={},[4,f(e.modelName)];case 1:return l.modelDisplayName=o.sent(),[4,f(e.vibModelName)];case 2:return s.apply(void 0,[(i.payload=a.Cl.apply(void 0,n.concat([(l.vibModelDisplayName=o.sent(),l)])),i)]),[2]}})})}function p(e){g({type:t.UPDATE_AFTER_TIP,payload:e})}function u(){(0,c.setGameTab)("vibe-with-me")}function h(){(0,c.openGame)("vibe-with-me")}function g(e){o.A.action(function(s){return{lovenseVibeWithMe:l(s.lovenseVibeWithMe,e)}})()}var b={};function f(e){return(0,a.sH)(this,void 0,void 0,function(){var s,n,t,l;return(0,a.YH)(this,function(a){switch(a.label){case 0:return(s=b[e]||"")||!e?[3,6]:(null==(n=i.A.getState().chatHost)?void 0:n.username)!==e?[3,1]:(s=n.displayName,[3,5]);case 1:return a.trys.push([1,4,,5]),t=(0,r.K)((0,_.ip)("@ajax_get_unsecured_user_data"),"username",e),[4,fetch(t,{headers:{"X-Requested-With":"XMLHttpRequest"},credentials:"include"})];case 2:return[4,a.sent().json()];case 3:return l=a.sent(),s=l.result.user.displayName,[3,5];case 4:return a.sent(),[3,5];case 5:s&&(b[e]=s),a.label=6;case 6:return[2,s]}})})}},15597:function(e,s,n){var t;n.d(s,{Q:function(){return t}}),function(e){e[e.NO_REWARD=1]="NO_REWARD",e[e.REWARD=2]="REWARD",e[e.JOIN=3]="JOIN"}(t||(t={}))}}]);