/*! For license information please see 744.c84b4fe0ce3b47637990.js.LICENSE.txt */ "use strict";(self.webpackChunkengine=self.webpackChunkengine||[]).push([[744,5893,8521,3922],{3922:(e,n,t)=>{t.r(n),t.d(n,{default:()=>A});var o=t(28416),s=t(5439),i=t.n(s),a=t(9411),c=t.n(a),r=t(94683),l=t.n(r),d=t(36906),b=t(47233),u=t.n(b),m=t(53502),g=t.n(m),p=t(53804),f=t(83840),h=t(85893),x=(0,p.getIsMobile)(),_=(0,o.memo)(c().div.withConfig({componentId:"sc-jlsabs-0"})(["",";font:1em var(--mainFont);"],(0,f.styledFlex)({isInlineFlex:!0,alignItems:"center"}))),y=(0,o.memo)(c().div.withConfig({componentId:"sc-jlsabs-1"})(["",";padding:1px;background:var(--bonusButtonLayer1,linear-gradient(0deg,#38ffaf 30.96%,#50a927));border-radius:0.375em;height:1.5em;cursor:pointer;",";"],(0,f.styledFlex)({isInlineFlex:!0,alignItems:"center"}),(function(e){return e.isLandscape&&(0,a.css)(["margin-right:0.5em;"])}))),v=(0,o.memo)(c().div.withConfig({componentId:"sc-jlsabs-2"})(["",";background:var( --bonusButtonLayer2,linear-gradient(129.07deg,rgba(140,195,24,0.8) -30.86%,rgba(21,145,56,0.8) 77.6%) );border-radius:0.375em;height:100%;width:100%;padding:0 0.375em;"],(0,f.styledFlex)({isInlineFlex:!0,alignItems:"center"}))),j=(0,o.memo)(c().span.withConfig({componentId:"sc-jlsabs-3"})(["width:1.25em;height:1.25em;display:inline-flex;vertical-align:middle;cursor:pointer;font-size:1em;position:relative;"])),I=(0,o.memo)(c().span.withConfig({componentId:"sc-jlsabs-4"})(["width:1.5em;height:1.5em;display:inline-flex;vertical-align:middle;cursor:pointer;font-size:1em;position:relative;margin:",";",";"],"0",(function(e){return e.isLandscape&&(0,a.css)(["margin-right:0.5em;"])}))),w=(0,o.memo)(c().span.withConfig({componentId:"sc-jlsabs-5"})(["display:flex;align-items:center;justify-content:center;min-width:1em;height:1em;line-height:1em;border-radius:50%;background:linear-gradient(129.07deg,#e22424 -30.86%,#ac0000 77.6%) padding-box,linear-gradient(211.29deg,#ac0000 23.55%,rgba(255,94,94,0.8) 98.7%) border-box;text-align:center;position:absolute;top:-0.375em;right:-0.375em;border:1px solid transparent;"])),C=(0,o.memo)(c().span.withConfig({componentId:"sc-jlsabs-6"})(["font-size:0.5em;color:#fff;line-height:1;"])),k=(0,o.memo)(c().p.withConfig({componentId:"sc-jlsabs-7"})(["font:0.5em var(--mainFont);letter-spacing:0.04em;color:rgba(var(--white),0.7);margin:0;"])),F=(0,o.memo)(c().div.withConfig({componentId:"sc-jlsabs-8"})(['display:flex;justify-content:flex-start;flex-direction:column;text-align:left;color:rgba(var(--white),0.8);padding-left:0.25em;margin-left:0.25em;position:relative;&:before{content:"";display:block;background:rgba(var(--white),0.4);border-radius:0.5em;width:1px;height:0.375em;position:absolute;left:0;top:0;bottom:0;margin:auto;}'])),B=(0,o.memo)(c().span.withConfig({componentId:"sc-jlsabs-9"})(["color:rgb(var(--white));font:0.625em var(--mainFontMedium);letter-spacing:0.02em;margin:0 0.2em;"])),L=(0,o.memo)(c().div.withConfig({componentId:"sc-jlsabs-10"})(["display:flex;align-items:center;"])),O=(0,o.memo)(c().span.withConfig({componentId:"sc-jlsabs-11"})(["color:rgba(var(--white),0.5);letter-spacing:0.02em;font:0.5em var(--mainFont);"]));function T(e){var n=e.selectedBonus,t=e.currencyId,o=e.bonuses,s=e.onClick,i=e.resources,a=e.styles,c=e.parentId,r=x&&!l()(),b=i.strFreeBet,m=i.strFreeAmount,p=n||{},f=p.bet,T=p.remainingBet,A=p.remainingCount,E="";switch(p.type){case d.BonusTypes.FreeBet:E=(0,h.jsxs)(F,{style:a.selectedBonusText,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-bonus-box_sel-bonus-txt"),children:[(0,h.jsx)(k,{style:a.bonusName,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-bonus-box_sel-bonus-txt_bonus-name"),children:b||"_Free Bet"}),(0,h.jsxs)(L,{style:a.countAndCurrency,children:[(0,h.jsxs)(B,{style:a.remainingCount,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-bonus-box_sel-bonus-txt_remaining-count"),children:["x",A," /",f]}),(0,h.jsx)(O,{style:a.currencyId,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-bonus-box_sel-bonus-txt_currency-id"),children:t})]})]});break;case d.BonusTypes.FreeAmount:E=(0,h.jsxs)(F,{style:a.selectedBonusText,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-bonus-box_sel-bonus-txt"),children:[(0,h.jsx)(k,{style:a.bonusName,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-bonus-box_sel-bonus-txt_bonus-name"),children:m||"_Free Amount"}),(0,h.jsxs)(L,{style:a.countAndCurrency,children:[(0,h.jsx)(B,{style:a.remainingCount,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-bonus-box_sel-bonus-txt_remaining-count"),children:T}),(0,h.jsx)(O,{style:a.currencyId,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-bonus-box_sel-bonus-txt_currency-id"),children:t})]})]})}return(0,h.jsx)(_,{style:a.container,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button"),children:o.list.length>0?o.selected?(0,h.jsx)(y,{onClick:s,isLandscape:r,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-bonus-box"),children:(0,h.jsxs)(v,{"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-bonus-box_inner"),children:[(0,h.jsx)(j,{style:a.icon,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-bonus-box_inner_icon"),children:(0,h.jsx)(u(),{color:"#fff"})}),E]})}):(0,h.jsxs)(I,{style:a.icon,isLandscape:r,onClick:s,"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-icon"),children:[(0,h.jsx)(g(),{color:"#fff"}),(0,h.jsx)(w,{style:a.badge,children:(0,h.jsx)(C,{"data-testid":"".concat(c?"".concat(c,"_"):"","global-bonus-button_active-icon_badge-text"),children:o.list.length})})]}):null})}T.defaultProps={selectedBonus:null,currencyId:"",onClick:function(){},bonuses:{list:[],selected:null,enabled:null},resources:{},styles:{},parentId:""},T.propTypes={selectedBonus:i().oneOfType([i().object,i().bool]),currencyId:i().string,onClick:i().func,bonuses:i().object,resources:i().object,styles:i().object,parentId:i().string};const A=T},75251:(e,n,t)=>{var o=t(28416),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function l(e,n,t){var o,i={},l=null,d=null;for(o in void 0!==t&&(l=""+t),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(d=n.ref),n)a.call(n,o)&&!r.hasOwnProperty(o)&&(i[o]=n[o]);if(e&&e.defaultProps)for(o in n=e.defaultProps)void 0===i[o]&&(i[o]=n[o]);return{$$typeof:s,type:e,key:l,ref:d,props:i,_owner:c.current}}n.Fragment=i,n.jsx=l,n.jsxs=l},85893:(e,n,t)=>{e.exports=t(75251)}}]);