1import{a as Gt}from"./chunk-GPBGSNIW.js";import"./chunk-YK5E7XLA.js";import"./chunk-EGRHWZRV.js";import{a as rt}from"./chunk-6QQO6FBE.js";import{a as Ht}from"./chunk-LIY6CTBO.js";import{a as F}from"./chunk-3QB6UJOF.js";import{a as Vt,b as ot}from"./chunk-2DRZ3F7B.js";import{b as zt}from"./chunk-UQZNR657.js";import"./chunk-Q7C53ZPU.js";import{a as Ft,b as Ut}from"./chunk-QSACKR3W.js";import"./chunk-H65YUYWY.js";import"./chunk-ZSE3Q4MF.js";import"./chunk-GRPZ7TV7.js";import"./chunk-CQ2BUT74.js";import{a as Nt}from"./chunk-FSL6SJZI.js";import"./chunk-UKSMBA4O.js";import"./chunk-D3QETHKZ.js";import"./chunk-H2LCDXSU.js";import"./chunk-H7XOA3XC.js";import"./chunk-TPUJH27J.js";import{a as At}from"./chunk-DHAYZCJM.js";import{a as Dt,b as Rt}from"./chunk-KKUUUKSX.js";import{g as it}from"./chunk-QVEX7IYN.js";import"./chunk-KLGDKDKP.js";import"./chunk-CW4S57X7.js";import{a as nt}from"./chunk-WADGNVGN.js";import{a as U}from"./chunk-2KUW4UIB.js";import"./chunk-XJFBTFHG.js";import{a as et}from"./chunk-K2Z6A57R.js";import"./chunk-77HE76UQ.js";import{a as H}from"./chunk-G4ZHS7ZC.js";import{a as J}from"./chunk-EKSH7FLZ.js";import"./chunk-VY53BBCH.js";import"./chunk-U5QDKIFU.js";import"./chunk-I74BUUU5.js";import"./chunk-636LGYKL.js";import{a as Lt}from"./chunk-U5J5CPWL.js";import"./chunk-4ZE5RWJH.js";import"./chunk-NR66VNE3.js";import"./chunk-ZQHM3OI4.js";import{a as z}from"./chunk-DJOYYF2J.js";import{B as It,C as wt,D as Et,c as yt,h as Ot,i as Mt,n as Bt,s as St,t as Tt}from"./chunk-HDZFM5JA.js";import{a as V}from"./chunk-5MY4PB5Q.js";import"./chunk-DZDS4KYC.js";import{b as Z}from"./chunk-LZZDLWFD.js";import"./chunk-FKDWYANP.js";import"./chunk-DMMUJNQ5.js";import{d as R}from"./chunk-NRYXF7KL.js";import{i as tt}from"./chunk-UUDTB52L.js";import{f as Q,h as D,i as K,k as X}from"./chunk-UFSLU6QR.js";import{b as kt}from"./chunk-FXJATGJO.js";import"./chunk-PJVXW3MY.js";import{c as q,d as A,e as N}from"./chunk-DYXGJSGT.js";import"./chunk-WVM24P4Z.js";import"./chunk-DUE7NZBZ.js";import{A as L,l as k,x as j}from"./chunk-5JTBALNX.js";import{$c as c,Ab as I,Cc as p,Dc as v,Ec as C,Fb as w,Fc as Pt,Qb as m,Sb as u,Tb as bt,Tc as $,Ub as E,Uc as O,Vb as B,Vc as Y,Wb as S,Xb as _,Yb as a,Zb as l,_b as f,ad as g,bd as b,db as T,eb as Ct,gc as y,hb as ht,jb as i,la as d,lc as h,nc as s,rc as ft,sa as x,sc as vt,ta as P,tc as xt,ya as W}from"./chunk-N7IAHGWD.js";import"./chunk-4PSLHSLT.js";var at=(function(e){return e.PROMOTION_PAGE="PROMOTION_PAGE",e})(at||{});var G=(function(e){return e.ALL="ALL",e.SPORT="SPORT",e.CASINO="CASINO",e.SLOT="SLOT",e.VIRTUAL="VIRTUAL",e.BETTING="BETTING",e.OTHER="OTHER",e})(G||{});var Qt=(e,r)=>({noBottomPadding:e,paddingFix:r}),Kt=e=>({largerTextArea:e}),Xt=e=>({disabled:e}),Jt=e=>({mobile:e});function Zt(e,r){if(e&1&&(f(0,"p",6),c(1,"sanitizeHtml")),e&2){let t=s(2);_("innerHTML",g(1,1,t.promotion==null?null:t.promotion.shortDescription[1]),T)}}function te(e,r){if(e&1&&m(0,Zt,2,3,"p",6),e&2){let t=s();u((t.promotion==null?null:t.promotion.type)!=="GAMES"||t.isCroatia?0:-1)}}function ee(e,r){if(e&1){let t=y();a(0,"a",11),h("click",function(){x(t);let n=s(2);return P(n.handlePromotionClick(n.promotion))}),p(1),l()}if(e&2){let t=s(2);i(),C(" ",t.promotion.buttonLabel," ")}}function ne(e,r){if(e&1){let t=y();a(0,"div",7),m(1,ee,2,1,"a",9),a(2,"a",10),h("click",function(){x(t);let n=s();return P(n.showPromotionDetails(n.promotion))}),p(3,"Info"),l()()}if(e&2){let t=s();i(),u(t.promotion.buttonLabel&&(t.isLoggedIn||t.promotion.type==="REDIRECT")?1:-1)}}function ie(e,r){if(e&1){let t=y();a(0,"a",16),h("click",function(){x(t);let n=s(2);return P(n.handlePromotionClick(n.promotion))}),p(1),l()}if(e&2){let t=s(2);i(),v(t.promotion.buttonLabel)}}function oe(e,r){if(e&1&&(a(0,"a",13),p(1),c(2,"translate"),l()),e&2){let t=s(2);_("ngClass",O(4,Xt,t.promotion.accepted)),i(),v(g(2,2,"BONUS_ITEM.PROMOTION_ACCEPTED"))}}function re(e,r){if(e&1){let t=y();a(0,"div",7),m(1,ie,2,1,"a",12),m(2,oe,3,6,"a",13),a(3,"div",14)(4,"a",15),h("click",function(){x(t);let n=s();return P(n.showPromotionDetails(n.promotion))}),p(5),c(6,"translate"),l()()()}if(e&2){let t=s();i(),u(!t.promotion.accepted&&t.promotion.buttonLabel?1:-1),i(),u(t.promotion.accepted?2:-1),i(3),v(g(6,3,"MORE_DETAILS_AND_PROMOTION_RULES"))}}function ae(e,r){if(e&1){let t=y();a(0,"a",16),h("click",function(){x(t);let n=s(2);return P(n.handlePromotionClick(n.promotion))}),p(1),l()}if(e&2){let t=s(2);i(),v(t.promotion.buttonLabel)}}function le(e,r){if(e&1){let t=y();a(0,"a",16),h("click",function(){x(t);let n=s(2);return P(n.redirectToBonusBuy(n.promotion))}),p(1),c(2,"translate"),l()}e&2&&(i(),v(g(2,1,"BONUS_BUY")))}function se(e,r){if(e&1){let t=y();a(0,"div",7),m(1,ae,2,1,"a",12),m(2,le,3,3,"a",12),a(3,"div",14)(4,"a",15),h("click",function(){x(t);let n=s();
1return P(n.showPromotionDetails(n.promotion))}),p(5),c(6,"translate"),l()()()}if(e&2){let t=s();i(),u(!t.promotion.accepted&&t.promotion.buttonLabel?1:-1),i(),u(t.promotion.accepted?2:-1),i(3),v(g(6,3,"MORE_DETAILS_AND_PROMOTION_RULES"))}}function ce(e,r){if(e&1){let t=y();a(0,"a",16),h("click",function(){x(t);let n=s(2);return P(n.handlePromotionClick(n.promotion))}),p(1),l()}if(e&2){let t=s(2);i(),v(t.promotion.buttonLabel)}}function pe(e,r){if(e&1){let t=y();a(0,"div",7),m(1,ce,2,1,"a",12),a(2,"div",14)(3,"a",15),h("click",function(){x(t);let n=s();return P(n.showPromotionDetails(n.promotion))}),p(4),c(5,"translate"),l()()()}if(e&2){let t=s();i(),u(t.promotion.buttonLabel?1:-1),i(3),v(g(5,2,"MORE_DETAILS_AND_PROMOTION_RULES"))}}function me(e,r){if(e&1){let t=y();a(0,"div",8),f(1,"app-game-slider",17),a(2,"div",14)(3,"a",15),h("click",function(){x(t);let n=s();return P(n.showPromotionDetails(n.promotion))}),p(4),c(5,"translate"),l()()()}if(e&2){let t=s();_("ngClass",O(6,Jt,t.isMobile)),i(),_("location","PROMOTION_ITEM")("games",t.promotion==null?null:t.promotion.games),i(3),v(g(5,4,"PROMOTIONS_MORE_DETAILS"))}}var Wt=(()=>{class e extends R{constructor(){super(),this.router=d(D),this.eventListenerService=d(At),this.modalService=d(Z),this.translate=d(q),this.bonusService=d(z),this.localStorageService=d(J),this.toaster=d(V),this.navigationService=d(it),this.slugService=d(nt),this.isLoggedIn=this.localStorageService.isLoggedIn(),this.playerObservable=this.appStateFacadeService.getPlayerDataObservable()}ngOnInit(){this.listenForPlayerState(),this.resize$=this.eventListenerService.resizeEvent$.subscribe({next:this.onResize.bind(this)})}ngOnDestroy(){this.player$&&this.player$.unsubscribe(),this.resize$&&this.resize$.unsubscribe()}listenForPlayerState(){this.player$=this.playerObservable.subscribe(t=>{this.player=t})}handlePromotionClick(t){if(!(this.isSerbia&&!this.navigationService.checkRegStatusAndNavigate(null,!0)))switch(t.type){case F.BONUS:this.isCroatia?this.isLoggedIn?this.acceptBonusTypePromotion(t):this.showLoginNotification():this.router.navigate(["/profile/promotions-activity"]);break;case F.BONUS_BUY:this.isCroatia&&(this.isLoggedIn?this.acceptBonusTypePromotion(t):this.showLoginNotification());break;case F.REDIRECT:this.navigate(t.referenceId);break}}showPromotionDetails(t){let o=this.slugService.slugify(t.name,t.id);this.router.navigate([`/promotions/${o}`])}redirectToBonusBuy(t){let o=this.slugService.slugify(t.name,t.id);this.router.navigate([`/promotions/${o}/bonus-buy/${t.referenceId}`])}navigate(t){t.startsWith("www")||t.startsWith("http")?window.open(t,"_blank"):this.router.navigateByUrl(t)}onResize(){this.imgSource=window.innerWidth>600?"img":"mobile"}acceptBonusTypePromotion(t){this.player&&!this.player.registrationCompleted?this.navigationService.checkIfOnlyF2FLeftAndInProcess(this.player):this.bonusService.acceptPlayerBonus(this.player.id,t.referenceId).subscribe(o=>{this.toaster.showSuccess(o.message),this.promotion.accepted=!0})}showLoginNotification(){let t=this.modalService.open(et,{centered:!0,scrollable:!0,size:"md"}),o=this.translate.instant("COMMON_NOTIFICATIONS"),n=this.translate.instant("NEED_TO_BE_LOGGED_IN_TO_ACCEPT_BONUS"),M={title:o,message:n};t.componentInstance.data=M}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=I({type:e,selectors:[["app-promotion-item"]],inputs:{promotion:"promotion"},features:[w],decls:17,vars:18,consts:[[1,"box","p-0","mb-3","mb-lg-4","overflow-hidden"],[1,"text-white","d-flex","flex-column","align-items-center"],[1,"img-fluid",3,"appCompressedImageSrc"],[1,"p-3","p-lg-4","text-wrapper",3,"ngClass"],[1,"box-text","smallerTextArea",3,"ngClass"],[1,"nameWrapper"],[1,"shortDescription",3,"innerHTML"],[1,"text-center"],[1,"type-games-wrapper",3,"ngClass"],[1,"btn","btn-primary","btn-bold","actionButton"],[1,"btn","btn-secondary","btn-bold",3,"click"],[1,"btn","btn-primary","btn-bold","actionButton",3,"click"],[1,"btn","btn-primary","btn-bold","w-80-percent"],[1,"btn","btn-primary","btn-bold","w-80-percent",3,"ngClass"],[1,"moreDetailsWrapper"],[1,"more-details-link",3,"click"],[1,"btn","btn-primary","btn-bold","w-80-percent",3,"click"],[3,"location","games"]],template:function(o,n){o&1&&(a(0,"div",0)(1,"div",1),f(2,"img",2),a(3,"div",3)(4,"div",4)(5,"div",5)(6,"h2"),p(7),l()(),a(8,"div"),f(9,"p",6),c(10,"sanitizeHtml"),m(11,te,1,1),l()(),m(12,ne,4,1,"div",7),m(13,re,7,5,"div",7),m(14,se,7,5,"div",7),m(15,pe,6,4,"div",7),l()(),m(16,me,6,8,"div",8),l()),o&2&&(i(2),_("appCompressedImageSrc",n.isMobile&&n.promotion.imageMob?n.promotion.imageMob:n.promotion.image),i(),_("ngClass",Y(13,Qt,(n.promotion==null?null:n.promotion.type)==="GAMES",(n.promotion==null?null:n.promotion.type)!=="GAMES")),i(),_("ngClass",O(16,Kt,(n.promotion==null?null:n.promotion.type)!=="GAMES")),i(3),v(n.promotion.name),i(2),_("innerHTML",g(10,11,n.promotion==null?null:n.promotion.shortDescription[0]),T),i(2),u(n.promotion!=null&&n.promotion.shortDescription[1]?11:-1),i(),u((n.promotion==null?null:n.promotion.type)!=="GAMES"&&!n.isCroatia?12:-1),i(),u(n.isCroatia&&(n.promotion==null?null:n.promotion.type)==="BONUS"?13:-1),i(),u(n.isCroatia&&(n.promotion==null?null:n.promotion.type)==="BONUS_BUY"?14:-1),i(),u(n.isCroatia&&(n.promotion==null?null:n.promotion.type)==="REDIRECT"?15:-1),i(),u((n.promotion==null?null:n.promotion.type)==="GAMES"&&(n.promotion!=null&&n.promotion.games)&&(n.promotion!=null&&n.promotion.games.length)?16:-1))},dependencies:[L,k,rt,Nt,N,A,H],styles:[".smallerTextArea[_ngcontent-%COMP%]{max-height:158px;min-height:158px}.smallerTextArea.largerTextArea[_ngcontent-%COMP%]{min-height:210px!important;max-height:210px!important}h2[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.noBottomPadding[_ngcontent-%COMP%]{padding-bottom:0!important}.type-games-wrapper[_ngcontent-%COMP%]{width:100%;left:0;bottom:0;text-align:center;transform:translateY(-15px);min-height:145px;max-height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center}
1.type-games-wrapper.mobile[_ngcontent-%COMP%]{align-items:unset}.actionButton[_ngcontent-%COMP%]{margin-right:10px}.moreDetailsWrapper[_ngcontent-%COMP%]{margin-top:10px}.moreDetailsWrapper[_ngcontent-%COMP%] .more-details-link[_ngcontent-%COMP%]{cursor:pointer}.moreDetailsWrapper[_ngcontent-%COMP%] .more-details-link[_ngcontent-%COMP%]:hover{color:var(--primary)}.w-80-percent[_ngcontent-%COMP%]{width:80%}.shortDescription[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}@media only screen and (max-width:992px){.paddingFix[_ngcontent-%COMP%]{padding-bottom:24px!important}}"]})}}return e})();var ue=["promotionsPageContainer"],$t=e=>({active:e}),de=e=>({slot:e});function _e(e,r){if(e&1&&f(0,"app-cro-v2-navigation",1),e&2){let t=s();_("centered",!0)("links",t.promoPageLinks)}}function ge(e,r){if(e&1&&f(0,"img",9),e&2){let t=s().$implicit;_("ngClass",O(2,de,t==="CASINO"))("src","/assets/images/promotions/"+t+".png",Ct)}}function Ce(e,r){if(e&1){let t=y();a(0,"div",8),h("click",function(){let n=x(t).$implicit,M=s(2);return P(M.onProductTypeClick(n))}),m(1,ge,1,4,"img",9),p(2),c(3,"translate"),l()}if(e&2){let t=r.$implicit,o=s(2);_("ngClass",O(5,$t,t===o.activeMenuItem)),i(),u(o.isPinnbet?1:-1),i(),C(" ",g(3,3,t)," ")}}function he(e,r){if(e&1&&(a(0,"header",3)(1,"div",6),B(2,Ce,4,7,"div",7,E),l()()),e&2){let t=s();i(2),S(t.dynamicProductTypeBtnSet)}}function be(e,r){if(e&1){let t=y();a(0,"div",12),h("click",function(){let n=x(t).$implicit,M=s(2);return P(M.onProductTypeClick(n))}),p(1),c(2,"translate"),l()}if(e&2){let t=r.$implicit,o=s(2);_("ngClass",O(4,$t,t===o.activeMenuItem)),i(),C(" ",g(2,2,t)," ")}}function fe(e,r){if(e&1&&(a(0,"header")(1,"div",10),B(2,be,3,6,"div",11,E),l()()),e&2){let t=s();i(2),S(t.dynamicProductTypeBtnSet)}}function ve(e,r){if(e&1&&(a(0,"div",5),f(1,"app-promotion-item",13),l()),e&2){let t=r.$implicit;i(),_("promotion",t)}}var mt=(()=>{class e extends R{constructor(){super(),this.promotionService=d(ot),this.router=d(D),this.helpersService=d(tt),this.promotions=[],this.dynamicProductTypeBtnSet=new Set(["ALL"]),this.playerDestroyRef=d(W),this.activeInactiveRewardsCountDestroyRef=d(W),this.promoPageLinks=[{url:"/rewards",name:"REWARDS",count:0},{url:"/promotions",name:"PROMOTIONS"}],this.limit=this.isMobile?4:8,this.offset=0,this.isLoadingMore=!1,this.allLoaded=!1,this.scrollRestoreRaf=0,this.getProductTypes()}getProductTypes(){this.promotionService.getProductTypes().subscribe(t=>{t.sort((o,n)=>o.order-n.order).forEach(o=>this.dynamicProductTypeBtnSet.add(this.isCroatia&&o.code==="SPORT"?"BETTING":o.code))})}ngOnInit(){this.isCroatia?this.getActiveAndInactiveRewardsCount():this.setPageBackground(),this.setQueryParamsSubscription(),this.getPlayerObservable()}ngOnDestroy(){this.queryParams$.unsubscribe(),cancelAnimationFrame(this.scrollRestoreRaf),this.promotions?.length&&this.isNavigatingToPromotionDetail()&&this.promotionService.cachePromotionsPage(this.activeMenuItem,{promotions:this.promotions,offset:this.offset,allLoaded:this.allLoaded,scrollY:window.scrollY})}isNavigatingToPromotionDetail(){let t=this.router.currentNavigation(),o=t?.finalUrl?this.router.serializeUrl(t.finalUrl):this.router.url;return/^\/promotions\/[^/?]+/.test(o.split("?")[0])}setPageBackground(){this.helpersService.setLobbyBackgroundImage(this.promotionsPageContainer.nativeElement)}setQueryParamsSubscription(){this.queryParams$=this.appStateFacadeService.observeActiveQueryParamsStatus().subscribe(t=>{t.adProductType?this.activeMenuItem=t.adProductType:this.activeMenuItem=G.ALL;let o=this.promotionService.consumePromotionsPageCache(this.activeMenuItem);if(o){this.promotions=o.promotions??[],this.offset=o.offset,this.allLoaded=o.allLoaded,this.isLoadingMore=!1,this.restoreScrollPosition(o.scrollY);return}this.resetPagination(),this.getPromotionsByProductType(this.setProductTypeArray())})}setProductTypeArray(){return this.activeMenuItem===G.BETTING?["SPORT","VIRTUAL"]:this.activeMenuItem!==G.ALL?[this.activeMenuItem]:[]}onProductTypeClick(t){this.activeMenuItem=t,this.router.navigate(["/promotions"],{queryParams:this.activeMenuItem===G.ALL?{}:{adProductType:this.activeMenuItem}})}getPromotionsByProductType(t){let o=this.activeMenuItem;this.promotionService.getPromotionsByLocation(at.PROMOTION_PAGE,this.limit,this.offset,t).subscribe(n=>{o===this.activeMenuItem&&(n&&n.length<this.limit&&(this.allLoaded=!0),this.promotions=n??[])})}getPlayerObservable(){this.appStateFacadeService.getPlayerDataObservable().pipe(U(this.playerDe
1stroyRef)).subscribe(t=>{this.player=t})}getActiveAndInactiveRewardsCount(){this.appStateFacadeService.getPlayerRewardsActiveAndInactiveCountObservable().pipe(U(this.activeInactiveRewardsCountDestroyRef)).subscribe(t=>{this.promoPageLinks[0].count=t.activeCount})}resetPagination(){this.isLoadingMore=!1,this.allLoaded=!1,this.offset=0}onWindowScroll(){this.isLoadingMore||this.allLoaded||this.isPromotionsContainerAtEdge()&&this.loadMorePromotions()}isPromotionsContainerAtEdge(){return this.promotionsPageContainer?.nativeElement?this.promotionsPageContainer.nativeElement.getBoundingClientRect().bottom<=(window.innerHeight||document.documentElement.clientHeight):!1}loadMorePromotions(){this.isLoadingMore=!0,this.offset+=this.limit;let t=this.activeMenuItem,o=this.setProductTypeArray();this.promotionService.getPromotionsByLocation(at.PROMOTION_PAGE,this.limit,this.offset,o).subscribe({next:n=>{this.isLoadingMore=!1,t===this.activeMenuItem&&(n&&n.length<this.limit&&(this.allLoaded=!0),this.promotions=[...this.promotions,...n??[]])},error:()=>{this.isLoadingMore=!1}})}restoreScrollPosition(t){if(cancelAnimationFrame(this.scrollRestoreRaf),!t)return;let o=0,n=-1,M=0,_t=()=>{window.scrollTo(0,t);let gt=document.documentElement.scrollHeight;M=gt===n?M+1:0,n=gt,M<15&&o++<120&&(this.scrollRestoreRaf=requestAnimationFrame(_t))};this.scrollRestoreRaf=requestAnimationFrame(_t)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=I({type:e,selectors:[["app-promotions"]],viewQuery:function(o,n){if(o&1&&ft(ue,7),o&2){let M;vt(M=xt())&&(n.promotionsPageContainer=M.first)}},hostBindings:function(o,n){o&1&&h("scroll",function(){return n.onWindowScroll()},ht)},features:[w],decls:8,vars:4,consts:[["promotionsPageContainer",""],[3,"centered","links"],["id","promotionsPageContainer",1,"pt-3","pt-lg-5",3,"ngClass"],[1,"text-center","mb-4"],[1,"row"],[1,"col-12","col-sm-6","col-lg-4","col-xxl-3"],["role","group","aria-label","btn-group",1,"btn-group","promotions-dynamic-btn-group"],[1,"btn","btn-outline-primary","bth-paddingLR-0",3,"ngClass"],[1,"btn","btn-outline-primary","bth-paddingLR-0",3,"click","ngClass"],[3,"ngClass","src"],[1,"btn-group-cro"],[3,"ngClass"],[3,"click","ngClass"],[3,"promotion"]],template:function(o,n){o&1&&(m(0,_e,1,2,"app-cro-v2-navigation",1),a(1,"div",2,0),m(3,he,4,0,"header",3),m(4,fe,4,0,"header"),a(5,"div",4),B(6,ve,2,1,"div",5,E),l()()),o&2&&(u(n.isCroatia&&n.player?0:-1),i(),_("ngClass",n.isPinnbet?"pinnbet-promotions":"container-fluid"),i(2),u(n.isCroatia?-1:3),i(),u(n.isCroatia?4:-1),i(2),S(n.promotions))},dependencies:[L,k,N,Ht,Wt,A],styles:["#promotionsPageContainer[_ngcontent-%COMP%]{min-height:85vh}.pinnbet-promotions[_ngcontent-%COMP%] .promo-wrapper[_ngcontent-%COMP%]{max-width:1340px;margin:0 auto}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{background-image:url(/assets/images/promo_red_bg.png);background-position:center;background-size:cover}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]{padding:170px 20px 20px;grid-column-gap:80px;column-gap:80px;display:flex;flex-wrap:nowrap;width:100%;max-width:1340px;margin:0 auto;overflow-x:scroll}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-width:150px;background-color:var(--boxRowColor);border:0;font-size:16px;border-radius:8px}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;bottom:100%;left:0;right:0;margin:0 auto}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] img.slot[_ngcontent-%COMP%]{height:160px;padding-bottom:5px}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] > div.active[_ngcontent-%COMP%]{color:#fff;background-color:var(--primaryColor)}.btn-group-cro[_ngcontent-%COMP%]{display:flex;gap:15px;margin-bottom:20px;place-content:center;width:100%;max-width:100%}.btn-group-cro[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border:1px solid var(--primaryButtonTextColor);padding:8px;border-radius:4px;cursor:pointer}.btn-group-cro[_ngcontent-%COMP%] div.active[_ngcontent-%COMP%]{border:2px solid var(--croNewBlue2)}@media only screen and (max-width:575.98px){.col-12[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%}}@media only screen and (max-width:768px){.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{background-image:url(/assets/images/pinnbet-promotions-header-background.png)}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]{padding:100px 40px 16px;column-gap:calc((100% - 210px)/2)}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:.625rem .5rem;min-width:90px;font-size:14px}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:90px;max-height:90px}.pinnbet-promotions[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] img.slot[_ngcontent-%COMP%]{max-height:85px;max-width:85px}.promotions-dynamic-btn-group[_ngcontent-%COMP%]{width:100%}.promotions-dynamic-btn-group[_ngcontent-%COMP%] .bth-paddingLR-0[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}"]})}}return e})();var Pe=e=>({"pinnbet-promotion-detail":e}),ye=e=>({"text-center":e}),Yt=()=>["/promotions"];function Oe(e,r){e&1&&(a(0,"a",1),f(1,"button",12),l()),e&2&&_("routerLink",$(1,Yt))}function Me(e,r){if(e&1&&f(0,"div",5),e&2){let t=s();_("appCompressedImageSrc",t.isMobile?t.promotion==null?null:t.promotion.wideImageMob:t.promotion==null?null:t.promotion.wideImage)}}function Be(e,r){e&1&&(a(0,"div",6)(1,"a",13),p(2),c(3,"translate"),l()()),e&2&&(i(),_("routerLink",$(4,Yt)),i(),C(" ",g(3,2,"BACK_TO_PROMOTIONS")))}function Se(e,r){if(e&1){let t=y();a(0,"button",15),h("click",function(){x(t);let n=s(2);return P(n.handlePromotionClick(n.promotion))}),p(1),l()}if(e&2){let t=s(2);_("ngClass",t.isPinnbet?"btn-primary btn-rounded text-uppercase":"btn-outline-success btn-lg"),i(),C(" ",t.promotion==null?null:t.promotion.buttonLabel," ")}}function Te(e,r){if(e&1&&(a(0,"header",9),m(1,Se,2,2,"button",14),l()),e&2){let t=s();i(),u(t.promotion!=null&&t.promotion.buttonLabel&&(t.isLoggedIn||(t.promotion==null?null:t.promotion.type)==="REDIRECT")?1:-1)}}function Ie(e,r){if(e&1){let t=y();a(0,"button",18),h("click",function(){x(t);let n=s(2);return P(n.handlePromotionClick(n.promotion))}),p(1),l()}if(e&2){let t=s(2);i(),C(" ",t.promotion==null?null:t.promotion.buttonLabel," ")}}function we(e,r){e&1&&(a(0,"button",17),p(1),c(2,"translate"),l()),e&2&&(i(),C(" ",g(2,1,"BONUS_ITEM.PROMOTION_ACCEPTED")," "))}function Ee(e,r){if(e&1&&(a(0,"header",9),m(1,Ie,2,1,"button",16),m(2,we,3,3,"button",17),l()),e&2){let t=s();i(),u(!t.promotion.accepted&&(t.promotion!=null&&t.promotion.buttonLabel)?1:-1),i(),u(t.promotion.accepted?2:-1)}}function ke(e,r){if(e&1){let t=y();a(0,"button",18),h("click",function(){x(t);let n=s(2);return P(n.handlePromotionClick(n.promotion))}),p(1),l()}if(e&2){let t=s(2);i(),C(" ",t.promotion==null?null:t.promotion.buttonLabel," ")}}function Le(e,r){if(e&1){let t=y();a(0,"button",18),h("click",function(){x(t);let n=s(2);return P(n.redirectToBonusBuy(n.promotion))}),p(1),c(2,"translate"),l()}e&2&&(i(),C(" ",g(2,1,"BONUS_BUY")," "))}function Ae(e,r){if(e&1&&(a(0,"header",9),m(1,ke,2,1,"button",16),m(2,Le,3,3,"button",16),l()),e&2){let t=s();i(),u(!t.promotion.accepted&&(t.promotion!=null&&t.promotion.buttonLabel)?1:-1),i(),u(t.promotion.accepted?2:-1)}}function Ne(e,r){if(e&1){let t=y();a(0,"button",18),h("click",function(){x(t);let n=s(2);return P(n.handlePromotionClick(n.promotion))}),p(1),l()}if(e&2){let t=s(2);i(),C(" ",t.promotion==null?null:t.promotion.buttonLabel," ")}}function De(e,r){if(e&1&&(a(0,"header",9),m(1,Ne,2,1,"button",16),l()),e&2){let t=s();i(),u(t.promotion!=null&&t.promotion.buttonLabel?1:-1)}}function Re(e,r){if(e&1&&(a(0,"header",9),f(1,"app-lobby-game-page",19),l()),e&2){let t=s();i(),_("games",t.promotion==null?null:t.promotion.games)("getGamesFromParams",!1)}}
1function Fe(e,r){if(e&1&&(f(0,"li",11),c(1,"sanitizeHtml")),e&2){let t=r.$implicit;_("innerHTML",g(1,1,t),T)}}function Ue(e,r){if(e&1&&(a(0,"div"),f(1,"hr"),a(2,"ul"),B(3,Fe,2,3,"li",11,E),l(),f(5,"hr"),l()),e&2){let t=s();i(3),S(t.promotion==null?null:t.promotion.shortDescription)}}function Ve(e,r){if(e&1&&(f(0,"p",11),c(1,"sanitizeHtml")),e&2){let t=r.$implicit;_("innerHTML",g(1,1,t),T)}}var ut=(()=>{class e extends R{constructor(){super(),this.promotionService=d(ot),this.route=d(Q),this.router=d(D),this.modalService=d(Z),this.translate=d(q),this.bonusService=d(z),this.localStorageService=d(J),this.toaster=d(V),this.navigationService=d(it),this.slugService=d(nt),this.isLoggedIn=this.localStorageService.isLoggedIn(),this.playerObservable=this.appStateFacadeService.getPlayerDataObservable()}ngOnInit(){this.listenForPlayerState(),this.getPromotion()}ngOnDestroy(){this.player$.unsubscribe()}listenForPlayerState(){this.player$=this.playerObservable.subscribe(t=>{this.player=t})}getPromotion(){let t=this.route.snapshot.paramMap.get("idOrSlug"),o=this.slugService.extractIdFromSlug(t);this.promotionService.getPromotionById(o).subscribe(n=>{this.promotion=new Vt(n)})}handlePromotionClick(t){switch(t.type){case F.BONUS:this.isCroatia?this.isLoggedIn?this.acceptBonusTypePromotion(t):this.showLoginNotification():this.router.navigate(["/profile/promotions-activity"]);break;case F.BONUS_BUY:this.isCroatia&&(this.isLoggedIn?this.acceptBonusTypePromotion(t):this.showLoginNotification());break;case F.REDIRECT:this.navigate(t.referenceId);break}}navigate(t){t.startsWith("www")||t.startsWith("http")?window.open(t,"_blank"):this.router.navigateByUrl(t)}redirectToBonusBuy(t){let o=this.slugService.slugify(t.name,t.id);this.router.navigate([`/promotions/${o}/bonus-buy/${t.referenceId}`])}acceptBonusTypePromotion(t){this.player&&!this.player.registrationCompleted?this.navigationService.checkIfOnlyF2FLeftAndInProcess(this.player):this.bonusService.acceptPlayerBonus(this.player.id,t.referenceId).subscribe(o=>{this.toaster.showSuccess(o.message),this.promotion.accepted=!0,this.router.navigate(["/promotions"])})}showLoginNotification(){let t=this.modalService.open(et,{centered:!0,scrollable:!0,size:"md"}),o=this.translate.instant("COMMON_NOTIFICATIONS"),n=this.translate.instant("NEED_TO_BE_LOGGED_IN_TO_ACCEPT_BONUS"),M={title:o,message:n};t.componentInstance.data=M}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=I({type:e,selectors:[["app-promotion-detail"]],features:[w],decls:19,vars:16,consts:[[1,"container-fluid","mt-3","mt-lg-5",3,"ngClass"],[3,"routerLink"],[1,"justify-content-center","row"],[1,"col-lg-8"],[1,"mb-0","mb-lg-4"],[1,"box","box-cover",3,"appCompressedImageSrc"],[1,"clearfix","text-center","mt-n3"],[1,"py-3"],[1,"display-4",3,"ngClass"],[1,"text-center","pb-4"],[1,"overflow-x-hidden"],[3,"innerHTML"],[1,"icon","icon-chevron-left","py-2","px-3","rounded","mb-2","font-weight-bold"],[1,"btn","btn-primary","btn-sm","px-4",3,"routerLink"],["type","button",1,"btn",3,"ngClass"],["type","button",1,"btn",3,"click","ngClass"],["type","button",1,"btn","btn-outline-primary","btn-lg"],["type","button",1,"btn","btn-outline-primary","btn-lg","disabled"],["type","button",1,"btn","btn-outline-primary","btn-lg",3,"click"],[3,"games","getGamesFromParams"]],template:function(o,n){o&1&&(a(0,"div",0),m(1,Oe,2,2,"a",1),a(2,"div",2)(3,"div",3)(4,"header",4),m(5,Me,1,1,"div",5),m(6,Be,4,5,"div",6),l(),a(7,"div",7)(8,"h2",8),p(9),l(),m(10,Te,2,1,"header",9),m(11,Ee,3,2,"header",9),m(12,Ae,3,2,"header",9),m(13,De,2,1,"header",9),m(14,Re,2,2,"header",9),m(15,Ue,6,0,"div"),a(16,"div",10),B(17,Ve,2,3,"p",11,bt),l()()()()()),o&2&&(_("ngClass",O(12,Pe,n.isPinnbet)),i(),u(n.isPinnbet?1:-1),i(4),u((n.isMobile?n.promotion!=null&&n.promotion.wideImageMob:n.promotion!=null&&n.promotion.wideImage)?5:-1),i(),u(n.isPinnbet?-1:6),i(2),_("ngClass",O(14,ye,!n.isPinnbet)),i(),C(" ",n.promotion==null?null:n.promotion.name," "),i(),u((n.promotion==null?null:n.promotion.type)!=="GAMES"&&!n.isCroatia?10:-1),i(),u(n.isCroatia&&(n.promotion==null?null:n.promotion.type)==="BONUS"?11:-1),i(),u(n.isCroatia&&(n.promotion==null?null:n.promotion.type)==="BONUS_BUY"?12:-1),i(),u(n.isCroatia&&(n.promotion==null?null:n.promotion.type)==="REDIRECT"?13:-1),i(),u((n.promotion==null?null:n.promotion.type)==="GAMES"?14:-1),i(),u(n.isPinnbet?-1:15),i(2),S(n.promotion==null?null:n.promotion.fullDescription))},dependencies:[L,k,X,K,rt,Gt,N,A,H],styles:[".box-cover[_ngcontent-%COMP%]{background-position:top}.pinnbet-promotion-detail[_ngcontent-%COMP%] .box-cover[_ngcontent-%COMP%]{background-position:center}.col-lg-8[_ngcontent-%COMP%]{padding-left:0;padding-right:0;max-width:1920px}.box.box-cover[_ngcontent-%COMP%]{height:12.5vw;max-height:12.5vw}@media only screen and (max-width:991.98px){.box.box-cover[_ngcontent-%COMP%]{height:43vw;max-height:43vw}
1.col-lg-8[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem;max-width:90%}.btn.btn-primary.btn-sm.btn-rounded[_ngcontent-%COMP%]{font-size:10px}}@media only screen and (max-width:768px){.pinnbet-promotion-detail[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:12px;font-weight:600}}@media only screen and (max-width:500px){.col-lg-8[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem;max-width:95%}.box.box-cover[_ngcontent-%COMP%]{height:44vw;max-height:44vw}}"]})}}return e})();var lt=class{constructor(r){this.id=r.id,this.name=r.name,this.description=r.description&&this.setBonusDescription(r.description),this.currency=r.currencyDisplayName,this.minAmount=r.minAmount,this.maxAmount=r.maxAmount,this.percentageAmount=r.percentageAmount,this.fixedAmount=r.fixedAmount,this.maxBonusAmount=r.maxBonusAmount,this.minBonusTurnover=r.minBonusTurnover,this.bonusBetLimit=r.bonusBetLimit,this.maxPayout=r.maxPayout}setBonusDescription(r){return this.removeEmptyElements(r=r?.split(` 2`))}removeEmptyElements(r){return r=r.filter(function(t){return t!==""})}};var ze=()=>["/promotions"],He=e=>({"flex-center":e}),Ge=e=>({"w-30pct":e}),jt=(e,r)=>({"is-invalid":e,"is-valid":r}),We=e=>({minBonusTurnover:e}),$e=e=>({disabled:e}),Ye=e=>({maxAmount:e}),je=e=>({minAmount:e}),qe=e=>({"invalid-feedback":e}),Qe=e=>({maxBonusAmount:e});function Ke(e,r){if(e&1&&(f(0,"li",28),c(1,"sanitizeHtml")),e&2){let t=r.$implicit;_("innerHTML",g(1,1,t),T)}}function Xe(e,r){if(e&1&&(a(0,"ul"),B(1,Ke,2,3,"li",28,E),l()),e&2){let t=s();i(),S(t.bonusBuy==null?null:t.bonusBuy.description)}}function Je(e,r){e&1&&(a(0,"small",20),p(1),c(2,"translate"),l()),e&2&&(i(),C(" ",g(2,1,"DEPOSIT_CARD_INVALID_FORMAT")," "))}function Ze(e,r){if(e&1&&(a(0,"small",21),p(1),c(2,"translate"),c(3,"number"),c(4,"currency"),l()),e&2){let t=s();i(),Pt(" ",g(2,2,"WITHDRAWAL_AVAILABLE")," : ",b(4,7,b(3,4,t.availableForWithdrawal,"1.2-2"),t.currency)," ")}}function tn(e,r){if(e&1&&(a(0,"small",21),p(1),c(2,"number"),c(3,"currency"),c(4,"translate"),l()),e&2){let t=s();i(),C(" ",b(4,7,"BONUS_BUY_MAX_BUY_AMOUNT",O(10,Ye,b(3,4,b(2,1,t.bonusBuy==null?null:t.bonusBuy.maxAmount,"1.2-2"),t.currency)))," ")}}function en(e,r){if(e&1&&(a(0,"small",21),p(1),c(2,"number"),c(3,"currency"),c(4,"translate"),l()),e&2){let t=s();i(),C(" ",b(4,7,"BONUS_BUY_MIN_BUY_AMOUNT",O(10,je,b(3,4,b(2,1,t.bonusBuy==null?null:t.bonusBuy.minAmount,"1.2-2"),t.currency)))," ")}}function nn(e,r){e&1&&(a(0,"small",22),p(1),c(2,"translate"),l()),e&2&&(i(),v(g(2,1,"BONUS_BUY_ENTER_AMOUNT")))}function on(e,r){if(e&1&&(a(0,"small",25),p(1),c(2,"number"),c(3,"currency"),c(4,"translate"),l()),e&2){let t=s();_("ngClass",O(11,qe,t.bonus.hasError("maxBonus"))),i(),C("",b(4,8,"BONUS_BUY_BONUS_LIMIT",O(13,Qe,b(3,5,b(2,2,t.bonusBuy==null?null:t.bonusBuy.maxPayout,"1.2-2"),t.currency)))," ")}}function rn(e,r){e&1&&(a(0,"small",22),p(1),c(2,"translate"),l()),e&2&&(i(),v(g(2,1,"COMMON_UNLIMITED")))}function an(e,r){if(e&1&&(p(0),c(1,"number"),c(2,"currency")),e&2){let t=s();C(" ",b(2,4,b(1,1,t.convertInputToNumber(t.bonus.value)*(t.bonusBuy==null?null:t.bonusBuy.minBonusTurnover),"1.2-2"),t.currency)," ")}}function ln(e,r){if(e&1&&(p(0),c(1,"number"),c(2,"currency")),e&2){let t=s();C(" ",b(2,4,b(1,1,0,"1.2-2"),t.currency)," ")}}function sn(e,r){if(e&1&&(p(0),c(1,"number"),c(2,"currency")),e&2){let t=s();C(" ",b(2,4,b(1,1,t.availableForWithdrawal-t.convertInputToNumber(t.amount.value),"1.2-2"),t.currency)," ")}}function cn(e,r){if(e&1&&(p(0),c(1,"number"),c(2,"currency")),e&2){let t=s();C(" ",b(2,4,b(1,1,t.availableForWithdrawal,"1.2-2"),t.currency)," ")}}function pn(e,r){if(e&1&&(a(0,"div",11)(1,"div",12),p(2),c(3,"translate"),l(),a(4,"div",13),p(5),c(6,"number"),c(7,"currency"),l()()),e&2){let t=s();i(2),v(g(3,2,"BONUS_BUY_MAX_STAKE")),i(3),C(" ",b(7,7,b(6,4,t.bonusBuy==null?null:t.bonusBuy.bonusBetLimit,"1.2-2"),t.currency)," ")}}var qt=(()=>{class e extends R{constructor(){super(),this.fb=d(It),this.route=d(Q),this.bonusService=d(z),this.toasterService=d(V),this.helpersService=d(tt),this.router=d(D),this.decimalPipe=d(j),this.destroyRef=d(W),this.BUTTON_TYPES=Dt,this.bonusId=this.route.
2snapshot.params.bonusId,this.buildForm()}ngOnInit(){this.getBonus(),this.getPlayerBalance(),this.getPlayerData()}getBonus(){this.bonusService.getBonusBuy(this.bonusId).subscribe(t=>{this.bonusBuy=new lt(t)})}getPlayerBalance(){this.appStateFacadeService.getBalanceInfo().pipe(U(this.destroyRef)).subscribe(t=>{this.availableForWithdrawal=t.playerBalanceInfo?.availableForWithdrawal})}getPlayerData(){this.appStateFacadeService.getPlayerDataObservable().pipe(U(this.destroyRef)).subscribe(t=>{this.player=t,this.currency=t?.currency})}buildForm(){this.form=this.fb.group({amount:[""],bonus:[""]})}buyBonus(){let t=this.convertInputToNumber(this.amount.value);this.bonusService.buyBonus(t).subscribe({next:o=>{this.toasterService.showSuccess(o.message),this.router.navigate(["/promotions"])}})}validateAmount(){this.bonus.setValue("");let t=/^(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d{1,2})?$/,o=/[^0-9.,]/g;if(o.test(this.amount.value.trim())){this.amount.setValue(this.amount.value.replace(o,""));return}if(!t.test(this.amount.value.trim())){this.amount.setErrors({amountInvalid:!0}),this.clearTimeout();return}
2this.clearTimeout(),this.formatAmountTimeout=setTimeout(()=>{this.formatInput(this.amount.value,"amount");let n=this.convertInputToNumber(this.amount.value);n<this.bonusBuy.minAmount?this.amount.setErrors({minAmount:!0}):n>this.bonusBuy.maxAmount?this.amount.setErrors({maxAmount:!0}):n>this.availableForWithdrawal?this.amount.setErrors({max:!0}):this.amount.setErrors(null),this.calculateBonus(n)},750)}clearTimeout(){this.formatAmountTimeout&&(clearTimeout(this.formatAmountTimeout),this.formatAmountTimeout=null)}calculateBonus(t){if(!this.amount.value){this.bonus.setValue("");return}let o=t*this.bonusBuy.percentageAmount/100+this.bonusBuy.fixedAmount,n=this.helpersService.toFixedWithoutRounding(o,2);this.calculatedBonus=n,this.formatInput(n.toString(),"bonus"),this.bonusBuy.maxPayout&&n>this.bonusBuy.maxPayout?this.bonus.setErrors({maxBonus:!0}):this.bonus.setErrors(null)}formatInput(t,o){if(t!=null&&t!==""){let n=this.decimalPipe.transform(this.convertInputToNumber(t),"1.2-2");this.form.get(o)?.setValue(n,{emitEvent:!1})}}convertInputToNumber(t){t.match(/^\d+(\.\d{1,2})?$/)&&(t=t.replace(".",","));let n=t.replace(/\./g,"").replace(",",".");return parseFloat(n)}get amount(){return this.form.get("amount")}get bonus(){return this.form.get("bonus")}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=I({type:e,selectors:[["app-cro-bonus-buy"]],features:[w],decls:63,vars:63,consts:[[1,"container-fluid","mt-3","mt-lg-5"],[3,"routerLink"],[1,"icon","icon-chevron-left","py-2","px-3","rounded","mb-2","font-weight-bold"],[3,"ngClass"],[1,"mb-0","mb-lg-4",3,"ngClass"],[1,"accepted-bonus"],[1,"bonus-label"],[1,"check-icon"],[1,"bonus-data"],[1,"bonus-title"],[1,"bonus-convert"],[1,"flex-space-btw"],[1,"balance-label"],[1,"balance-value"],[1,"hr"],[3,"ngSubmit","formGroup"],[1,"inputs","mt-4","mb-5"],[1,"input"],[1,"label-top"],["formControlName","amount","type","text",1,"amount","form-control",3,"input","ngClass"],[1,"invalid-feedback"],[1,"invalid-feedback","label-bottom"],[1,"label-bottom"],[1,"icon"],["readonly","","formControlName","bonus","type","text",1,"bonus","form-control",3,"ngClass"],[1,"label-bottom",3,"ngClass"],[1,"flex-space-btw","mb-2"],["appAdmiralButton","",1,"u_txt-white","mt-4","btn",3,"click","text","marginCostume","width","height","ngClass"],[1,"bonus-description",3,"innerHTML"]],template:function(o,n){o&1&&(a(0,"div",0)(1,"a",1),f(2,"button",2),l(),a(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6),p(7),c(8,"translate"),l(),a(9,"mat-icon",7),p(10,"check"),l()(),a(11,"div",8)(12,"div",9),p(13),l(),m(14,Xe,3,0,"ul"),l(),a(15,"div",10)(16,"div",11)(17,"div",12),p(18),c(19,"translate"),l(),a(20,"div",13),p(21),c(22,"number"),c(23,"currency"),l()(),f(24,"hr",14),a(25,"form",15),h("ngSubmit",function(){return n.buyBonus()}),a(26,"div",16)(27,"div",17)(28,"div",18),p(29),c(30,"translate"),l(),a(31,"input",19),h("input",function(){return n.validateAmount()}),l(),m(32,Je,3,3,"small",20),m(33,Ze,5,10,"small",21),m(34,tn,5,12,"small",21),m(35,en,5,12,"small",21),m(36,nn,3,3,"small",22),l(),a(37,"mat-icon",23),p(38,"keyboard_arrow_right"),l(),a(39,"div",17)(40,"div",18),p(41),c(42,"translate"),l(),f(43,"input",24),m(44,on,5,15,"small",25)(45,rn,3,3,"small",22),l()()(),f(46,"hr",14),a(47,"div",26)(48,"div",12),p(49),c(50,"translate"),l(),a(51,"div",13),m(52,an,3,7)(53,ln,3,7),l()(),a(54,"div",26)(55,"div",12),p(56),c(57,"translate"),l(),a(58,"div",13),m(59,sn,3,7)(60,cn,3,7),l()(),m(61,pn,8,10,"div",11),l(),a(62,"button",27),h("click",function(){return n.buyBonus()}),l()()()()),o&2&&(i(),_("routerLink",$(48,ze)),i(2),_("ngClass",O(49,He,!n.isMobile)),i(),_("ngClass",O(51,Ge,!n.isMobile)),i(3),v(g(8,29,"BONUS_BUY_BONUS_ACCEPTED")),i(6),v(n.bonusBuy==null?null:n.bonusBuy.name),i(),u(n.bonusBuy!=null&&n.bonusBuy.description?14:-1),i(4),v(g(19,31,"BONUS_BUY_BALANCE")),i(3),C(" ",b(23,36,b(22,33,n.availableForWithdrawal,"1.2-2"),n.currency)," "),i(4),_("formGroup",n.form),i(4),v(g(30,39,"BONUS_BUY_TURN_YOURS")),i(2),_("ngClass",Y(53,jt,!n.amount.valid&&n.amount.dirty,n.amount.valid&&n.amount.dirty)),i(),u(n.amount.hasError("amountInvalid")?32:-1),i(),u(n.amount.hasError("max")?33:-1),i(),u(n.amount.hasError("maxAmount")?34:-1),i(),u(n.amount.hasError("minAmount")?35:-1),i(),u(n.amount.valid?36:-1),i(5),v(g(42,41,"BONUS_BUY_INTO_BONUS")),i(2),_("ngClass",Y(56,jt,n.bonus.hasError("maxBonus"),!n.bonus.hasError("maxBonus"))),i(),u(n.bonusBuy!=null&&n.bonusBuy.maxPayout?44:45),i(5),C(" ",b(50,43,"BONUS_BUY_MIN_PLAY_THROUGH",O(59,We,n.bonusBuy==null?null:n.bonusBuy.minBonusTurnover))," "),i(3),u(n.amount.value&&n.amount.valid&&n.bonus.value&&n.bonus.valid?52:53),i(4),v(g(57,46,"BONUS_BUY_BALANCE_AFTER_BUY")),i(3),u(n.amount.value&&n.amount.valid&&n.bonus.value&&n.bonus.valid?59:60),i(2),u(n.bonusBuy!=null&&n.bonusBuy.bonusBetLimit?61:-1),i(),_("text","CONFIRM")("marginCostume","auto")("width","230px")("height","50px")("ngClass",O(61,$e,n.amount.invali
2d||!n.bonus.value||(n.bonusBuy==null?null:n.bonusBuy.maxPayout)&&n.calculatedBonus>(n.bonusBuy==null?null:n.bonusBuy.maxPayout))))},dependencies:[L,k,wt,Bt,yt,Ot,Mt,Et,Tt,St,X,K,Ut,Ft,Rt,N,j,Lt,A,H],styles:[".box-cover[_ngcontent-%COMP%]{background-position:top}.col-lg-8[_ngcontent-%COMP%]{padding-left:0;padding-right:0;max-width:1920px}.box.box-cover[_ngcontent-%COMP%]{height:12.5vw;max-height:12.5vw}.icon-chevron-left[_ngcontent-%COMP%]:before{color:#fff}.accepted-bonus[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;color:#fff;background:#2b80ff;border-radius:20px;height:38px;padding:0 15px}.accepted-bonus[_ngcontent-%COMP%] .bonus-label[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:16.8px}.accepted-bonus[_ngcontent-%COMP%] .check-mark[_ngcontent-%COMP%]{height:16px;width:16px}.bonus-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:#fff}.bonus-data[_ngcontent-%COMP%] .bonus-title[_ngcontent-%COMP%]{font-size:22px;font-weight:700;line-height:26.4px;text-align:center;margin:25px 0}.bonus-data[_ngcontent-%COMP%] .bonus-description[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.flex-center[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.w-30pct[_ngcontent-%COMP%]{width:30%}ul[_ngcontent-%COMP%]{padding-inline-start:15px}.hr[_ngcontent-%COMP%]{border-color:#2b80ff80;width:100%}.u_txt-white[_ngcontent-%COMP%]{color:var(--white)!important}.form-control.is-invalid[_ngcontent-%COMP%]{border:1px solid var(--danger)!important;background:#ff2e004d!important;padding:.625rem 1.25rem!important}.invalid-feedback[_ngcontent-%COMP%]{margin-top:0!important;color:#fff!important}.form-control.is-valid[_ngcontent-%COMP%]{padding:.625rem 1.25rem!important}.bonus-convert[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#2b80ff40;border:1px solid rgba(43,128,255,.5);border-radius:10px;padding:15px}.bonus-convert[_ngcontent-%COMP%] .inputs[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;align-items:center}.bonus-convert[_ngcontent-%COMP%] .inputs[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px}.bonus-convert[_ngcontent-%COMP%] .inputs[_ngcontent-%COMP%] .label-top[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:19.2px;text-align:center}.bonus-convert[_ngcontent-%COMP%] .inputs[_ngcontent-%COMP%] .label-bottom[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:14.4px;text-align:left;opacity:.8}.bonus-convert[_ngcontent-%COMP%] .inputs[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{color:#fff}.bonus-convert[_ngcontent-%COMP%] .inputs[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{height:50px;border-radius:6px;border:1px solid #00c938;background:#00c9384d;font-size:22px;text-align:center;color:#fff;width:136px}.bonus-convert[_ngcontent-%COMP%] .inputs[_ngcontent-%COMP%] .bonus[_ngcontent-%COMP%]{height:50px;border-radius:6px;border:1px solid #2b80ff;background:#2b80ff4d;font-size:25px;font-weight:700;text-align:center;color:#fff;width:136px}.bonus-convert[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly}.bonus-convert[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{background:#2b80ff;color:#fff;font-size:16px;font-weight:600;line-height:19.2px;border-radius:20px;width:25%}.bonus-convert[_ngcontent-%COMP%] .flex-space-btw[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:400;line-height:14.4px}@media only screen and (max-width:991.98px){.box.box-cover[_ngcontent-%COMP%]{height:43vw;max-height:43vw}.col-lg-8[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem;max-width:90%}.btn.btn-primary.btn-sm.btn-rounded[_ngcontent-%COMP%]{font-size:10px}}@media only screen and (max-width:500px){.col-lg-8[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem;max-width:95%}.box.box-cover[_ngcontent-%COMP%]{height:44vw;max-height:44vw}.bonus-convert[_ngcontent-%COMP%] .inputs[_ngcontent-%COMP%], .bonus-convert[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{gap:15px;justify-content:space-between}.bonus-convert[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{width:100%}}"]})}}return e})();var dt,mn=[{path:"",component:mt},{path:":idOrSlug",component:ut},{path:"**",redirectTo:""}],un=[{path:"",component:mt},{path:":idOrSlug",component:ut},{path:":idOrSlug/bonus-buy/:bonusId",component:qt,canMatch:[zt]},{path:"**",redirectTo:""}];!0===kt.isCroatia()?dt=un:dt=mn;var Wi=dt;export{Wi as PROMOTIONS_ROUTES};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.