1import{a as Yt,b as Qt,c as Jt,d as Zt,e as ei}from"./chunk-5JUMPHRX.js";import{c as oi}from"./chunk-EDT7CZCB.js";import{a as ti,b as ii,c as ni}from"./chunk-XWNRUSZ4.js";import"./chunk-JFFXWFYW.js";import"./chunk-XC7ZRJ2P.js";import{g as Ut,h as Ht,i as Xt}from"./chunk-MAYSMO3C.js";import{d as Wt,e as qt}from"./chunk-FWFC4QBU.js";import{a as zt,d as ai,f as si}from"./chunk-GUXXEPVP.js";import"./chunk-CTEUWAYK.js";import{a as ri}from"./chunk-LP2NNIGT.js";import"./chunk-KSX4P6HE.js";import{a as jt}from"./chunk-GTGL4HX3.js";import{a as Kt}from"./chunk-O5UUVVII.js";import"./chunk-LLTKVGKE.js";import"./chunk-2TQOHHTU.js";import"./chunk-S4E75IUV.js";import"./chunk-TPDNFX5W.js";import"./chunk-PFFUDPTK.js";import"./chunk-CLJM6GAU.js";import"./chunk-YXVYMWJ3.js";import"./chunk-TJGDRG2K.js";import{a as $t}from"./chunk-BE5PNU4P.js";import"./chunk-UXBZI6VV.js";import"./chunk-BJURP4IX.js";import{c as _t}from"./chunk-JS47IH5P.js";import"./chunk-PNW2HTT3.js";import"./chunk-GF6TCKMJ.js";import{D as Vt}from"./chunk-DRJ4Z3HZ.js";import"./chunk-IAAQ75KL.js";import{a as gt}from"./chunk-FAC4TMAW.js";import{F as Ot,a as ut}from"./chunk-BBWMV2NR.js";import{A as Rt,e as pt,k as dt,p as At,x as Ft,y as Nt,z as Lt}from"./chunk-KHQMMFNN.js";import{E as B,Hc as it,Ic as nt,Id as wt,Jc as rt,Rd as Bt,Sd as Dt,Wd as Gt,Yb as _e,bb as V,db as te,eb as ue,ed as he,fd as lt,gb as Je,hb as Ze,ib as ie,ld as re,nb as et,nd as ct,o as y,qd as mt,sb as tt,w as Ye,xb as ne,z as Qe,zd as ht}from"./chunk-ZWN73Z6L.js";import{c as Xe,d as We,f as qe,i as de}from"./chunk-BTBWVAJA.js";import{a as ft}from"./chunk-HATWEKFX.js";import{Cb as xt,Db as vt,Jb as Ct,Kb as St,Mb as kt,Nb as It,Rb as Pt,Sb as Mt,Ta as $,Tb as yt,Vb as Et,Wb as Tt,fb as at,hb as ot,jb as st,xb as bt,zb as D}from"./chunk-YHPSITOK.js";import{$a as ye,Bb as l,Bc as Fe,Cb as F,Cc as Ne,Cd as Ue,Db as Oe,Dd as ee,Ea as u,F as le,Fa as _,Fc as L,G as ce,Ga as Pe,Gc as R,J as me,Lb as p,Lc as J,M as Se,Ma as G,Mb as d,Nb as h,Ob as O,Pb as w,Qb as we,R as x,Rb as I,Sd as He,Ua as Me,Uc as Le,Wb as N,Xb as Be,Yb as De,Zb as Ae,_a as ge,_b as b,ac as s,cb as Ee,dc as pe,eb as o,fa as A,fb as g,fd as Re,ha as C,hc as W,ic as q,ja as ke,jc as Y,kb as Te,mc as Q,nc as M,oa as K,oc as E,od as Ve,pb as X,qc as Ge,qd as Z,r as ve,rd as $e,sd as ze,ta as Ie,v as se,vd as je,wa as U,wb as k,x as Ce,xa as H,xd as Ke}from"./chunk-WA2KBRFY.js";import"./chunk-CJBUIZAR.js";import"./chunk-DERWFAGR.js";import{a as T,b as z,l as j}from"./chunk-DGUZFZ3L.js";var Bi=["blikCodeInput"],Di=n=>({"game-blik-trigger__banner--status-with-form":n}),Ai=(n,a)=>({"game-blik-trigger__message--strong":n,"game-blik-trigger__message--success":a});function Gi(n,a){if(n&1){let i=I();p(0,"div",27),b("touchstart",function(t){u(i);let r=s(3);return _(r.onCarouselInteractionStart(t));})("touchend",function(t){u(i);let r=s(3);return _(r.onCarouselInteractionEnd(t));})("touchcancel",function(t){u(i);let r=s(3);return _(r.onCarouselInteractionEnd(t));})("mousedown",function(t){u(i);let r=s(3);return _(r.onCarouselInteractionStart(t));})("mouseup",function(t){u(i);let r=s(3);return _(r.onCarouselInteractionEnd(t));})("mouseleave",function(t){u(i);let r=s(3);return _(r.onCarouselInteractionEnd(t));}),p(1,"app-swiper-blik-prices-template",28),b("selectedPrice",function(t){u(i);let r=s(3);return _(r.selectPriceValue(t));}),d()();}if(n&2){let i=s(3);o(),l("prices",i.defaultPrices)("currentValue",i.currentAmount);}}function Fi(n,a){n&1&&(p(0,"span",29),N(1,4),d());}function Ni(n,a){n&1&&(p(0,"span",29),N(1,5),d());}function Li(n,a){if(n&1){let i=I();p(0,"div",12),b("click",function(t){u(i);let r=s(2);return _(r.stopPropagation(t));}),p(1,"div",13)(2,"span",14),N(3,2),d(),p(4,"button",15),b("click",function(t){u(i);let r=s(2);return _(r.closeBanner(t));}),h(5,"img",16),d()(),k(6,Gi,2,2,"div",17),p(7,"form",18),b("ngSubmit",function(t){u(i);let r=s(2);return _(r.submitBlikCode(t));}),p(8,"div",19)(9,"input",20),b("input",function(t){u(i);let r=s(2);return _(r.amountChange(t.target.value));}),d(),p(10,"span",21),M(11),L(12,"uppercase"),d()(),p(13,"div",22)(14,"input",23,1),b("keydown",function(t){u(i);let r=s(2);return _(r.allowBlikCodeKey(t));})("input",function(t){u(i);let r=s(2);return _(r.sanitizeBlikCodeInput(t.target.value));}),d()(),p(16,"div",24),N(17,3),L(18,"uppercase"),L(19,"uppercase"),L(20,"uppercase"),d(),p(21,"button",25),k(22,Fi,2,0,"span",26)(23,Ni,2,0,"span",26),d()()();}if(n&2){let i=s(2);o(6),l("ngIf",i.defaultPrices==null?null:i.defaultPrices.length),o(),l("formGroup",i.blikForm),o(4),E(R(12,11,i.currency)),o(9),Be(i.minPrice)(R(18,13,i.currency))(i.maxPrice)(R(19,15,i.currency))(R(20,17,i.currency)),De(17),o(),l("disabled",i.isSubmitting||i.blikForm.invali
1d),o(),l("ngIf",!i.isSubmitting),o(),l("ngIf",i.isSubmitting);}}function Ri(n,a){if(n&1){let i=I();p(0,"div",30),b("click",function(t){u(i);let r=s(2);return _(r.stopPropagation(t));}),we(1,31),d();}if(n&2){let i=s(2),e=Q(2);l("ngClass",Fe(2,Di,i.isBannerOpen)),o(),l("ngTemplateOutlet",e);}}function Vi(n,a){if(n&1){let i=I();p(0,"div",7),b("click",function(t){u(i);let r=s();return _(r.toggleBanner(t));}),p(1,"button",8),h(2,"img",9),d(),k(3,Li,24,19,"div",10)(4,Ri,2,4,"div",11),d();}if(n&2){let i=s();o(3),l("ngIf",i.isBannerOpen),o(),l("ngIf",i.shouldShowStandaloneStatus);}}function $i(n,a){n&1&&h(0,"div",42);}function zi(n,a){n&1&&h(0,"img",43);}function ji(n,a){n&1&&h(0,"img",44);}function Ki(n,a){if(n&1&&(O(0),p(1,"span"),M(2),d(),w()),n&2){let i=s(2);o(2),E(i.blikProcessingMessage);}}function Ui(n,a){if(n&1&&(p(0,"strong")(1,"span"),h(2,"br"),M(3),d(),M(4),d()),n&2){let i=s(3);o(3),E(i.blikCurrentBalance),o(),Ge(" ",i.successBalance," ",i.successCurrency," ");}}function Hi(n,a){if(n&1&&(O(0),p(1,"div"),M(2),d(),k(3,Ui,5,3,"strong",45),p(4,"div"),h(5,"br"),M(6),d(),w()),n&2){let i=s(2);o(2),E(i.blikSuccessMessage),o(),l("ngIf",i.successBalance!==null),o(3),E(i.blikBalanceRefreshNote);}}function Xi(n,a){if(n&1&&(p(0,"span"),M(1),d()),n&2){let i=s(3);o(),E(i.blikUnavailableMessage);}}function Wi(n,a){if(n&1&&(p(0,"span"),M(1),d()),n&2){let i=s(3);o(),E(i.blikSubmitErrorMessage);}}function qi(n,a){if(n&1&&(p(0,"span"),M(1),d()),n&2){let i=s(3);o(),E(i.blikTrackingErrorMessage);}}function Yi(n,a){if(n&1&&(p(0,"span"),M(1),d()),n&2){let i=s(3);o(),E(i.blikExpiredMessage);}}function Qi(n,a){if(n&1&&(p(0,"span"),M(1),d()),n&2){let i=s(3);o(),E(i.blikFailedMessage);}}function Ji(n,a){if(n&1&&(O(0),k(1,Xi,2,1,"span",45)(2,Wi,2,1,"span",45)(3,qi,2,1,"span",45)(4,Yi,2,1,"span",45)(5,Qi,2,1,"span",45),w()),n&2){let i=s(2);o(),l("ngIf",i.statusErrorKind==="unavailable"),o(),l("ngIf",i.statusErrorKind==="submit"),o(),l("ngIf",i.statusErrorKind==="tracking"),o(),l("ngIf",i.statusErrorKind==="expired"),o(),l("ngIf",i.statusErrorKind==="failed");}}function Zi(n,a){if(n&1){let i=I();p(0,"div",32)(1,"div",33),k(2,$i,1,0,"div",34)(3,zi,1,0,"img",35)(4,ji,1,0,"img",36),d(),p(5,"div",37)(6,"div",38),O(7,39),k(8,Ki,3,1,"ng-container",40)(9,Hi,7,3,"ng-container",40)(10,Ji,6,5,"ng-container",40),w(),d()(),p(11,"button",41),b("click",function(t){u(i);let r=s();return _(r.closeStatusBanner(t));}),h(12,"img",16),d()();}if(n&2){let i=s();l("ngClass","game-blik-trigger__status--"+i.statusBannerState),o(2),l("ngIf",i.statusBannerState==="processing"),o(),l("ngIf",i.statusBannerState==="success"),o(),l("ngIf",i.statusBannerState==="error"),o(2),l("ngClass",Ne(9,Ai,i.statusBannerState!=="success",i.statusBannerState==="success")),o(),l("ngSwitch",i.statusBannerState),o(),l("ngSwitchCase","processing"),o(),l("ngSwitchCase","success"),o(),l("ngSwitchCase","error");}}var ci=(()=>{let a=class a extends re{get hostDisplay(){return this.hasBlikAccess&&!this.isLoadingMethods?"flex":"none";}get shouldShowStandaloneStatus(){return this.statusBannerState!=="none";}constructor(e,t,r,c,m,f,S,v,P,ae,oe){super(ae,oe),this.formBuilder=e,this.paymentListService=t,this.userFullInfoService=r,this.blikPaymentFlowService=c,this.internalPaymentStatusService=m,this.loginStatusService=f,this.depositService=S,this.balanceStatusService=v,this.balanceService=P,this.blikUnavailableMessage=" BLIK payment is currently unavailable.",this.blikSubmitErrorMessage=" Unable to submit BLIK payment.",this.blikTrackingErrorMessage=" Unable to track BLIK payment status.",this.blikExpiredMessage=" Payment session expired.",this.blikFailedMessage=" Payment was declined or failed.",this.blikSuccessMessage=" Your BLIK payment was completed successfully.",this.blikProcessingMessage=" Please confirm the payment in your banking app.",this.blikBalanceRefreshNote=" Some game operators require you to make a spin or refresh the game to make new balance visible.",this.blikCurrentBalance=" Current balance:",this.blikMethod=null,this.isVisible=!1,this.isBannerOpen=!1,this.isLoadingMethods=!0,this.isSubmitting=!1,this.submitError="",this.username="",this.statusBannerState="none",this.statusErrorKind=null,this.successBalance=null,this.successCurrency="",this.defaultPrices=[],this.currentAmount=0,this.minPrice=0,this.maxPrice=0,this.currency="",this.isFullDataDepositAllowed=!0,this.hasSubmittedInThisSession=!1,this.lastHandledFinalSignature=null,this.statusBannerHideTimeoutId=null,this.isDestroyed=!1,this.blikForm=this.formBuilder.group({amount:[100,[D.required]],payment_id:["",[D.required]],bonus_id:[0],code_id:[""],freespin_code:[""],blik_code:["",[D.required,D.maxLength(6),D.pattern(/^\d{6}$/)]]}),this.gameId=null,this.disableParentDrag=new G(),this.enableParentDrag=new G();}ngOnInit(){this.loadAvailableBlikMethod();}ngOnDestroy(){this.isDestroyed=!0,this.clearStatusBannerAutoHide(),this.enableParentDrag.emit(),this.stopStatusTracking(),super.ngOnDestroy();}get hasBlikAccess(){return!!this.blikMethod&&this.blikPaymentFlowService.isLiveBlikOperator(this.blikMethod.systemName);}subscribeToBalance(){this.balanceStatusService.getBalanceInfoStatus().pipe(C(this.unsubscribe)).subscribe({next:e=>{this.currency=e?.currency||"",this.setDefaultPrices();}});}loadAvailableBlikMethod(){this.loginStatusService.getIfUserLogged().pipe(x(1),ke(e=>{this.username=e.username;}),A(()=>this.userFullInfoService.requestFullInfo(!0).pipe(x(1)))).subscribe({next:e=>{if(this.applyUserFullDataState(e),!this.isFullDataDepositAllowed){this.disableBlikAccess();return;}let t=e?.country||"en";this.paymentListService.fetchPayment(t).pipe(x(1)).subscribe({next:r=>{let c=r?.find(m=>this.blikPaymentFlowService.isLiveBlikOperator(m?.systemName))??null;if(this.blikMethod=c,this.isLoadingMethods=!1,!this.hasBlikAccess){this.disableBlikAccess();return;}this.isVisible=!0,this.subscribeToBalance(),this.initializeBlikMethod(this.blikMethod),this.startStatusWatch();},error:()=>{this.disableBlikAccess();}});},error:()=>{this.disableBlikAccess();}});}applyUserFullDataState(e){this.isFullDataDepositAllowed=!!e?.is_full_data;}disableBlikAccess(){this.stopStatusTracking(),this.blikMethod=null,this.isVisible=!1,this.isLoadingMethods=!1,this.isBannerOpen=!1,this.resetUiState(),this.blikForm.disable({emitEvent:!1});}initializeBlikMethod(e){if(!this.hasBlikAccess)return;this.blikForm.enable({emitEvent:!1}),this.minPrice=e?.limits?.minimum||0,this.maxPrice=e?.limits?.maximum||1e4,this.blikForm.get("payment_id")?.setValue(String(e.id)),this.blikForm.get("amount")?.setValidators([D.required,ti(this.minPrice,this.maxPrice)]),this.blikForm.get("amount")?.updateValueAndValidity(),this.setDefaultPrices();let t=Number(this.blikForm.get("amount")?.value||0);if(this.currentAmount=t,this.defaultPrices?.length&&(t===0||t<this.minPrice)){let r=this.defaultPrices[1]?.value??this.defaultPrices[0]?.value;r&&this.selectPriceValue(r);}}
1setDefaultPrices(){if(!this.currency||!this.blikMethod)return;if(this.blikMethod.amounts_select?.length){this.defaultPrices=this.blikMethod.amounts_select;return;}let e=B.defaultDepositValues?.[this.currency.toUpperCase()]??[];this.defaultPrices=e.map(t=>({label:`${t} ${this.currency.toUpperCase()}`,value:t}));}selectPriceValue(e){this.blikForm.get("amount")?.setValue(e),this.currentAmount=e,this.submitError="";}amountChange(e){this.currentAmount=Number(e||0),this.submitError="";}toggleBanner(e){e?.stopPropagation(),!(!this.hasBlikAccess||this.isLoadingMethods)&&(this.isBannerOpen=!this.isBannerOpen,this.isBannerOpen||this.enableParentDrag.emit());}onCarouselInteractionStart(e){e?.stopPropagation(),this.disableParentDrag.emit();}onCarouselInteractionEnd(e){e?.stopPropagation(),this.enableParentDrag.emit();}closeBanner(e){e?.stopPropagation(),this.isBannerOpen=!1,this.enableParentDrag.emit();}closeStatusBanner(e){e?.stopPropagation(),this.clearStatusBannerAutoHide(),this.statusBannerState="none",this.statusErrorKind=null,this.successBalance=null,this.successCurrency="";}onDocumentClick(){this.isBannerOpen&&(this.isBannerOpen=!1,this.enableParentDrag.emit());}stopPropagation(e){e.stopPropagation();}submitBlikCode(e){if(e?.stopPropagation(),this.blikCodeInput?.nativeElement?.blur(),this.submitError="",!this.hasBlikAccess||!this.username){this.submitError=this.blikUnavailableMessage,this.showErrorBanner("unavailable");return;}if(this.blikForm.invalid){this.blikForm.markAllAsTouched();return;}this.isSubmitting=!0,this.submitGameBlikPayment().then(()=>{this.isBannerOpen=!1,this.enableParentDrag.emit(),this.hasSubmittedInThisSession=!0,this.clearBlikCodeField(),this.isSubmitting=!1,this.showProcessingBanner();}).catch(()=>{this.isBannerOpen=!1,this.enableParentDrag.emit(),this.isSubmitting=!1,this.submitError=this.blikSubmitErrorMessage,this.showErrorBanner("submit");});}allowBlikCodeKey(e){["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","Home","End"].includes(e.key)||e.ctrlKey||e.metaKey||/^\d$/.test(e.key)||e.preventDefault();}sanitizeBlikCodeInput(e){let t=this.blikForm.get("blik_code");if(!t)return;let r=String(e||"").replace(/\D/g,"").slice(0,6);t.value!==r&&t.setValue(r,{emitEvent:!1});}submitGameBlikPayment(){return j(this,null,function*(){yield se(this.depositService.postDeposit(this.blikForm).pipe(x(1)));});}stopStatusTracking(){this.blikStatusSubscription?.unsubscribe(),this.blikStatusSubscription=void 0;}clearBlikCodeField(){let e=this.blikForm.get("blik_code");e&&(e.setValue(""),e.markAsPristine(),e.markAsUntouched(),e.updateValueAndValidity());}startStatusWatch(){!this.hasBlikAccess||!this.username||(this.stopStatusTracking(),this.blikStatusSubscription=this.internalPaymentStatusService.watchBlikStatus(this.username).pipe(C(this.unsubscribe)).subscribe({next:e=>j(this,null,function*(){if(e){if(e.status==="processing"){this.handleProcessingDocument(e);return;}if(e.status==="success"){yield this.handleSuccessDocument(e);return;}e.status==="error"&&this.handleErrorDocument(e);}}),error:()=>{this.blikStatusSubscription=void 0,this.hasSubmittedInThisSession&&this.showErrorBanner("tracking"),setTimeout(()=>{this.hasBlikAccess&&!this.blikStatusSubscription&&this.startStatusWatch();},0);}}));}handleProcessingDocument(e){if(this.hasSubmittedInThisSession){if(!e.is_active||this.blikPaymentFlowService.isExpired(e)){this.handleExpiredDocument(e);return;}this.showProcessingBanner();}}handleSuccessDocument(e){return j(this,null,function*(){let t=this.buildDocumentSignature(e);if(t===this.lastHandledFinalSignature)return;let r=this.hasSubmittedInThisSession;this.lastHandledFinalSignature=t,this.hasSubmittedInThisSession=!1,r&&this.sendBlikPaymentStat("success",e);let c=yield this.fetchLatestBalance();if(this.blikPaymentFlowService.tryClearStatus(this.username),this.isDestroyed)return;let m=this.blikPaymentFlowService.getFinalNotificationDurationMs(e);m>0?this.showSuccessBanner(c?.balance,c?.currency,m):this.closeStatusBanner();});}handleErrorDocument(e){if(!this.hasSubmittedInThisSession)return;let t=this.buildDocumentSignature(e);
1if(t===this.lastHandledFinalSignature)return;this.lastHandledFinalSignature=t,this.hasSubmittedInThisSession=!1,this.sendBlikPaymentStat("error",e);let r=this.blikPaymentFlowService.getFinalNotificationDurationMs(e);r>0?this.showErrorBanner("failed",r):this.closeStatusBanner();}handleExpiredDocument(e){if(!this.hasSubmittedInThisSession)return;let t=this.buildDocumentSignature(e);t!==this.lastHandledFinalSignature&&(this.lastHandledFinalSignature=t,this.hasSubmittedInThisSession=!1,this.showErrorBanner("expired"));}buildDocumentSignature(e){let t=this.blikPaymentFlowService.extractTimestampMs(e.updated_at)??"no-updated-at";return`${e.transaction_id??"no-transaction-id"}:${e.status}:${t}`;}resetUiState(){this.clearStatusBannerAutoHide(),this.isSubmitting=!1,this.submitError="",this.hasSubmittedInThisSession=!1,this.lastHandledFinalSignature=null,this.statusBannerState="none",this.statusErrorKind=null,this.successBalance=null,this.successCurrency="";}showProcessingBanner(){this.statusBannerState="processing",this.statusErrorKind=null,this.successBalance=null,this.successCurrency="",this.scheduleStatusBannerAutoHide(1e4);}showErrorBanner(e,t){this.clearStatusBannerAutoHide(),this.statusBannerState="error",this.statusErrorKind=e,this.successBalance=null,this.successCurrency="",t!==void 0&&this.scheduleStatusBannerAutoHide(t);}showSuccessBanner(e,t,r){this.clearStatusBannerAutoHide(),this.statusBannerState="success",this.statusErrorKind=null,this.successBalance=typeof e=="number"&&!Number.isNaN(e)?e:null,this.successCurrency=(t||this.currency||"PLN").toUpperCase(),this.scheduleStatusBannerAutoHide(r);}buildBlikStatPayload(e,t){if(!this.blikMethod?.id||!this.gameId||t.transaction_id===null||t.transaction_id===void 0)return null;let r=Number(this.blikForm.get("amount")?.value||this.currentAmount||0);return r?{transaction_id:Number(t.transaction_id),amount:r,method_id:Number(this.blikMethod.id),game_id:this.gameId,result:e,frontend_completed_at:new Date().toISOString()}:null;}sendBlikPaymentStat(e,t){let r=this.buildBlikStatPayload(e,t);if(!r){console.warn("Skipping BLIK payment stat because transaction_id or payload fields are missing",{result:e,transactionId:t?.transaction_id,gameId:this.gameId,methodId:this.blikMethod?.id});return;}this.blikPaymentFlowService.sendGameBlikPaymentStat(r).pipe(x(1),C(this.unsubscribe)).subscribe({next:()=>{},error:c=>{console.error("Failed to send BLIK payment stat",c);}});}fetchLatestBalance(){return se(this.balanceService.requestBalance().pipe(x(1),Se(e=>(console.error("Failed to refresh balance after BLIK success",e),ve(null)))));}clearStatusBannerAutoHide(){this.statusBannerHideTimeoutId!==null&&(clearTimeout(this.statusBannerHideTimeoutId),this.statusBannerHideTimeoutId=null);}scheduleStatusBannerAutoHide(e){this.clearStatusBannerAutoHide(),this.statusBannerHideTimeoutId=setTimeout(()=>{this.closeStatusBanner();},e);}};a.ɵfac=function(t){return new(t||a)(g(yt),g(dt),g(pt),g(ni),g(ii),g(V),g(ri),g(ie),g(gt),g($),g(te));},a.ɵcmp=U({type:a,selectors:[["app-game-blik-trigger"]],viewQuery:function(t,r){if(t&1&&W(Bi,5),t&2){let c;q(c=Y())&&(r.blikCodeInput=c.first);}},hostVars:2,hostBindings:function(t,r){t&1&&b("click",function(){return r.onDocumentClick();},!1,Ee),t&2&&F("display",r.hostDisplay);},inputs:{gameId:"gameId"},outputs:{disableParentDrag:"disableParentDrag",enableParentDrag:"enableParentDrag"},features:[X],decls:3,vars:1,consts:()=>{let e;e="BLIK";let t;t="Close";let r;r="Amount";let c;c="Amount";let m;m=" *Min: "+"\uFFFD0\uFFFD"+" "+"[\uFFFD1\uFFFD|\uFFFD3\uFFFD|\uFFFD4\uFFFD]"+", Max: "+"\uFFFD2\uFFFD"+" "+"[\uFFFD1\uFFFD|\uFFFD3\uFFFD|\uFFFD4\uFFFD]"+", Fee: 0 "+"[\uFFFD1\uFFFD|\uFFFD3\uFFFD|\uFFFD4\uFFFD]"+" ",m=Ae(m);let f;f="submit";let S;S="submit";let v;return v="Close",[["statusBannerTemplate",""],["blikCodeInput",""],c,m,f,S,["class","game-blik-trigger",3,"click",4,"ngIf"],[1,"game-blik-trigger",3,"click"],["type","button",1,"game-blik-trigger__icon"],["src","assets/icons/lc-ui-icon-ingame-blik-depo.png","alt",e],["class","game-blik-trigger__banner",3,"click",4,"ngIf"],["class","game-blik-trigger__banner game-blik-trigger__banner--status",3,"ngClass","click",4,"ngIf"],[1,"game-blik-trigger__banner",3,"click"],[1,"game-blik-trigger__header"],[1,"game-blik-trigger__header-title"],["type","button","aria-label",t,1,"game-blik-trigger__close","game-blik-trigger__close--header",3,"click"],["src","assets/icons/blik-close.png","alt",""],["class","game-blik-trigger__carousel",3,"touchstart","touchend","touchcancel","mousedown","mouseup","mouseleave",4,"ngIf"],[1,"game-blik-trigger__form",3,"ngSubmit","formGroup"],[1,"game-blik-trigger__field","game-blik-trigger__field--amount"],["type","number","formControlName","amount","placeholder",r,3,"input"],[1,"game-blik-trigger__field-suffix"],[1,"game-blik-trigger__field","game-blik-trigger__field--code"],["type","text","formControlName","blik_code","placeholder","Wprowad\u017A kod BLIK.","inputmode","numeric","autocomplete","one-time-code","pattern","[0-9]*","maxlength","6",3,"keydown","input"],[1,"game-blik-trigger__limits"],["type","submit",1,"game-blik-trigger__submit",3,"disabled"],["style","text-transform: uppercase;",4,"ngIf"],[1,"game-blik-trigger__carousel",3,"touchstart","touchend","touchcancel","mousedown","mouseup","mouseleave"],[3,"selectedPrice","prices","currentValue"],[2,"text-transform","uppercase"],[1,"game-blik-trigger__banner","game-blik-trigger__banner--status",3,"click","ngClass"],[3,"ngTemplateOutlet"],[1,"game-blik-trigger__status",3,"ngClass"],[1,"game-blik-trigger__status-icon-shell"],["class","game-blik-trigger__spinner",4,"ngIf"],["class","game-blik-trigger__status-asset","src","assets/icons/blik-success.png","alt","",4,"ngIf"],["class","game-blik-trigger__status-asset","src","assets/icons/blik-declined.png","alt","",4,"ngIf"],[1,"game-blik-trigger__status-content"],[1,"game-blik-trigger__message",3,"ngClass"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","aria-label",v,1,"game-blik-trigger__close","game-blik-trigger__close--inline",3,"click"],[1,"game-blik-trigger__spinner"],["src","assets/icons/blik-success.png","alt","",1,"game-blik-trigger__status-asset"],["src","assets/icons/blik-declined.png","alt","",1,"game-blik-trigger__status-asset"],[4,"ngIf"]];},template:function(t,r){t&1&&k(0,Vi,5,2,"div",6)(1,Zi,13,12,"ng-template",null,0,J),t&2&&l("ngIf",r.isVisible&&!r.isLoadingMethods);},dependencies:[Ve,Z,je,$e,ze,st,Ct,bt,St,xt,vt,Pt,Mt,kt,It,ai,Ke],styles:['[_nghost-%COMP%]{--blik-banner-bg: linear-gradient(180deg, rgba(12, 21, 39, .8) 0%, rgba(12, 21, 39, .5) 100%);--blik-banner-border: 1px solid #455D92;--blik-banner-shadow: 0 10px 24px rgba(0, 0, 0, .38), 0 0 16px rgba(114, 214, 202, .18);--blik-surface: #ffffff;--blik-accent: #ff7a4c;--blik-panel: #40558d;--blik-text-dark: #111931;--blik-text-light: #ffffff;--blik-muted-text: #d9e4ff;--blik-tile-bg: #32446A;--blik-tile-text: #FD9772;--blik-selected-tile-border: #FF642A;--blik-selected-tile-text: #10192D;--blik-status-icon-shell: #050c1e;--blik-processing-accent: #2d8cff;--blik-font-family: "Lato", var(--global-font)}.game-blik-trigger[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center}.game-blik-trigger__icon[_ngcontent-%COMP%]{width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--disable-text-color);font-size:18px;font-weight:900;letter-spacing:.8px;cursor:pointer;box-shadow:0 8px 18px #0006;padding:0}.game-blik-trigger__icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:44px;height:44px}.game-blik-trigger__banner[_ngcontent-%COMP%]{position:fixed;top:60px;left:0;right:0;width:calc(100vw - 22px);box-sizing:border-box;padding:12px;background:var(--blik-banner-bg);border:1px solid var(--blik-banner-border);box-shadow:var(--blik-banner-shadow);border-radius:20px;z-index:40;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.game-blik-trigger__banner--status[_ngcontent-%COMP%]{padding:12px 16px}.game-blik-trigger__banner--status-with-form[_ngcontent-%COMP%]{top:420px}.game-blik-trigger__close[_ngcontent-%COMP%]{position:absolute;top:16px;right:18px;border:0;width:24px;height:24px;border-radius:12px;padding:0;background:var(--disable-text-color);color:var(--text-white);font-size:18px;line-height:18px;
1cursor:pointer;z-index:2;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 1px #ffffff1a}.game-blik-trigger__close--header[_ngcontent-%COMP%]{position:static}.game-blik-trigger__close--header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:12px;height:12px}.game-blik-trigger__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.game-blik-trigger__header-title[_ngcontent-%COMP%]{color:var(--blik-text-light);font-family:var(--blik-font-family);font-size:16px;font-weight:900;line-height:24px}.game-blik-trigger__carousel[_ngcontent-%COMP%]{align-items:center;overflow:hidden;margin-top:12px;margin-bottom:24px}.game-blik-trigger__form[_ngcontent-%COMP%], .game-blik-trigger__status[_ngcontent-%COMP%]{width:100%;max-width:100%}.game-blik-trigger__form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.game-blik-trigger__field[_ngcontent-%COMP%]{position:relative;width:100%;margin-bottom:20px}.game-blik-trigger__form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;height:52px;border-radius:16px;border:1px solid var(--blik-accent);background:var(--blik-surface);color:var(--blik-text-dark);padding:0 16px;outline:none;font-family:var(--blik-font-family);font-size:16px;font-weight:700;line-height:36px;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ff7a4c14;transition:border-color .15s ease,box-shadow .15s ease}.game-blik-trigger__form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:hover{border-color:var(--login-input-border-focused);box-shadow:0 0 0 1px var(--login-input-border-focused)}.game-blik-trigger__form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, .game-blik-trigger__form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:active{border-color:var(--login-input-border-focused);box-shadow:0 0 0 2px var(--login-input-border-focused)}.game-blik-trigger__form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#2f3549;opacity:1}.game-blik-trigger__field--amount[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-right:72px;font-size:22px;font-weight:900;text-align:left}.game-blik-trigger__field--amount[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .game-blik-trigger__field--amount[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.game-blik-trigger__field--amount[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{-moz-appearance:textfield}.game-blik-trigger__field-suffix[_ngcontent-%COMP%]{position:absolute;top:50%;right:16px;transform:translateY(-50%);color:var(--blik-text-dark);font-family:var(--blik-font-family);font-size:22px;font-weight:900;line-height:36px;pointer-events:none}.game-blik-trigger__field--code[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{text-align:left}.game-blik-trigger__field--code[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:placeholder-shown){font-size:26px;font-weight:900;line-height:36px;text-align:center;letter-spacing:.1em}.game-blik-trigger__limits[_ngcontent-%COMP%]{color:var(--blik-muted-text);font-family:var(--blik-font-family);font-size:12px;line-height:20px;font-weight:700;opacity:1;margin-top:-16px;margin-bottom:16px}.game-blik-trigger__submit[_ngcontent-%COMP%]{width:100%;height:42px;border:0;border-radius:12px;background:var(--btn-accent-active-color);color:#fff;font-family:var(--blik-font-family);font-weight:900;font-size:18px;line-height:18px;cursor:pointer;box-shadow:0 8px 18px #ff704347}.game-blik-trigger__submit[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.game-blik-trigger__error[_ngcontent-%COMP%]{margin-top:10px;color:#ff8a8a;font-size:13px;line-height:18px;font-weight:700}.game-blik-trigger__status[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;gap:16px;box-sizing:border-box}.game-blik-trigger__status--success[_ngcontent-%COMP%]{align-items:center}.game-blik-trigger__status-icon-shell[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:999px;background:var(--blik-status-icon-shell);display:flex;align-items:center;justify-content:center;flex-shrink:0}.game-blik-trigger__status-asset[_ngcontent-%COMP%]{width:32px;height:32px;object-fit:contain}.game-blik-trigger__status-content[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;min-width:0}.game-blik-trigger__status--processing[_ngcontent-%COMP%] .game-blik-trigger__status-content[_ngcontent-%COMP%], .game-blik-trigger__status--error[_ngcontent-%COMP%] .game-blik-trigger__status-content[_ngcontent-%COMP%]{gap:0}.game-blik-trigger__close--inline[_ngcontent-%COMP%]{position:static;flex-shrink:0}.game-blik-trigger__close--inline[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:12px;height:12px}.game-blik-trigger__status--success[_ngcontent-%COMP%] .game-blik-trigger__close--inline[_ngcontent-%COMP%]{align-self:baseline}.game-blik-trigger__message[_ngcontent-%COMP%]{color:var(--blik-text-light);font-family:var(--blik-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:.01em}.game-blik-trigger__message--strong[_ngcontent-%COMP%]{font-weight:700}.game-blik-trigger__message--success[_ngcontent-%COMP%]{width:100%}.game-blik-trigger__message--success[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;font-size:17px;font-weight:900}.game-blik-trigger__spinner[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;box-sizing:border-box;border:4px solid var(--blik-processing-accent);border-right-color:transparent;animation:_ngcontent-%COMP%_game-blik-spin .9s linear infinite;flex-shrink:0}@keyframes _ngcontent-%COMP%_game-blik-spin{to{transform:rotate(360deg)}}']});let n=a;return n;})();var nn=["gameiframe"];function rn(n,a){if(n&1&&(p(0,"div",18),h(1,"img",19),d()),n&2){let i=s(3);o(),pe("src",i.licenceService.getKey("sticky-wallet-game"),ge);}}function an(n,a){if(n&1&&(p(0,"div",18),h(1,"img",20),d()),n&2){let i=s(3);o(),pe("src",i.avatar,ge);}}function on(n,a){if(n&1){let i=I();
1p(0,"div",15),b("click",function(){u(i);let t=s(2);return _(t.openClientAreaDialog());}),p(1,"div"),k(2,rn,2,1,"div",16)(3,an,2,1,"div",16),d(),h(4,"mat-progress-spinner",17),d();}if(n&2){let i=s(2);o(2),l("ngIf",i.showWalletIcon),o(),l("ngIf",!i.showWalletIcon),o(),l("value",i.gamificationPercentFill);}}function sn(n,a){if(n&1&&h(0,"app-tournamnent-ingame-info",21),n&2){let i=s(2);l("gameIdValue",i.gameId);}}function ln(n,a){if(n&1){let i=I();p(0,"app-game-blik-trigger",22),b("disableParentDrag",function(){u(i);let t=s(2);return _(t.disablePanelDrag());})("enableParentDrag",function(){u(i);let t=s(2);return _(t.enablePanelDrag());}),d();}if(n&2){let i=s(2);l("gameId",i.gameId);}}function cn(n,a){if(n&1){let i=I();p(0,"div",23),b("cdkDragEnded",function(t){u(i);let r=s(2);return _(r.chatDragEnd(t));}),h(1,"app-vip-chat-trigger",24),d();}if(n&2){let i=s(2);l("cdkDragFreeDragPosition",i.chatInitialPosition);}}function mn(n,a){if(n&1){let i=I();p(0,"div",25),b("cdkDragEnded",function(t){u(i);let r=s(2);return _(r.dragEnd(t));})("click",function(){u(i);let t=s(2);return _(t.openBonusDropDialog());}),h(1,"app-bonus-drop-ingame-info",26),d();}if(n&2){let i=s(2);F("right",i.initialPosition.x,"px"),o(),l("gameIdValue",i.gameId);}}function gn(n,a){if(n&1&&(p(0,"div",27),h(1,"iframe",28,1),d()),n&2){let i=s(2);o(),l("src",i.safeUrl,ye);}}function pn(n,a){if(n&1){let i=I();O(0),p(1,"div",7),b("cdkDragEnded",function(t){u(i);let r=s();return _(r.dragEnd(t));}),k(2,on,5,3,"div",8)(3,sn,1,1,"app-tournamnent-ingame-info",9),h(4,"app-missions-ingame-info",10),k(5,ln,1,1,"app-game-blik-trigger",11),d(),k(6,cn,2,1,"div",12)(7,mn,2,3,"div",13)(8,gn,3,1,"div",14),h(9,"app-user-notifications")(10,"router-outlet"),w();}if(n&2){let i=s(),e=Q(2);o(),F("left",i.initialPosition.x,"px"),Oe("logout-panel-container",!i.isLogin),o(),l("ngIf",i.isLogin)("ngIfElse",e),o(),l("ngIf",i.enableTournamentsDisplay),o(),l("gameIdValue",i.gameId),o(),l("ngIf",i.isLogin),o(),l("ngIf",i.isVipPlayer),o(),l("ngIf",i.isLogin),o(),l("ngIf",i.safeUrl);}}function dn(n,a){if(n&1){let i=I();p(0,"div",29),b("click",function(){u(i);let t=s();return _(t.closeDialog());}),h(1,"app-close-dialog-button",30),d();}n&2&&(o(),l("customClass","large")("position",!0));}var be=(()=>{let a=class a extends re{constructor(e,t,r,c,m,f,S,v,P,ae,oe,gi,pi,di,ui,_i,hi,fi,xe,bi,xi,vi,Ci,Si,ki,Ii,Pi,Mi,yi){super(P,xe),this.gameLaucherService=e,this.sanitizer=t,this.lastPlayedService=r,this.router=c,this.route=m,this.clientAreaDialog=f,this.avatarService=S,this.loginStatusService=v,this.errorDialog=P,this.gamificationLevelService=ae,this.userInfoService=oe,this.renderer=gi,this.returnUrlService=pi,this.balanceService=di,this.licenceService=ui,this.communicationService=_i,this.minimizeSiteService=hi,this.recommendationService=fi,this.detectDesktopService=xe,this.chatAccess=bi,this.locale=xi,this.platformId=vi,this.document=Ci,this.licence=Si,this.apollo=ki,this.seoSchemaValidator=Ii,this.frontPageGamesService=Pi,this.translationConfig=Mi,this.gameIframeEventsService=yi,this.chatContainerWidth=64,this.chatContainerHeight=64,this.chatContainerBaseLeft=11,this.chatContainerBaseTop=69,this.showWalletIcon=!1,this.initialPosition={x:0,y:0},this.position=T({},this.initialPosition),this.chatInitialPosition={x:0,y:0},this.chatPosition=T({},this.chatInitialPosition),this.offset={x:0,y:0},this.enableTournamentsDisplay=B.enableTournamentsDisplay,this.closeEvent=new G(),this.isVipPlayer=!1,this.homePageMetaDescription="",this.isPanelDragDisabled=!1,this.fullscreen_operators=[{name:"pragmatic",script_url:"https://client.pragmaticplaylive.net/desktop/assets/api/fullscreenApi.js"}],this.gamificationPercentFill=0,this.gameTurnoverNotificationService=Ie(Yt);}triggerFrontPageQuery(e){this.frontPageGamesService.fetchHomePageMetaDescription(this.licence).pipe(C(this.unsubscribe)).subscribe(t=>{this.setSchemaSets(e,t);});}openClientAreaDialog(){this.clientAreaDialog.open(Kt,z(T({},ne),{panelClass:"game-client-area-dialog",data:{gameName:this.gameName,gameId:this.gameId}})).afterClosed().subscribe(t=>{t&&this.returnUrlService.getUrl().pipe(x(1)).subscribe(r=>{r&&r.length>0?this.router.navigate(r,{}).then(()=>{this.minimizeSiteService.restorePage();}):this.router.navigate([""],{}).then(()=>{this.minimizeSiteService.restorePage();});});});}openBonusDropDialog(){this.clientAreaDialog.open(jt,z(T({},ne),{panelClass:"game-client-area-dialog",data:{gameName:this.gameName,gameId:this.gameId}}));}closeDialog(){this.userInfoService.openChat(),this.returnUrlService.getUrl().pipe(x(1)).subscribe(e=>{this.communicationService.postMessage(ue),e&&e.length>0?this.router.navigate(e,{}).then(()=>{this.minimizeSiteService.restorePage();}):this.router.navigate([""],{}).then(()=>{this.minimizeSiteService.restorePage();});});}dragEnd(e){this.offset=T({},e.source._dragRef._passiveTransform),this.position.x=this.initialPosition.x+this.offset.x,this.position.y=this.initialPosition.y+this.offset.y,localStorage?.setItem("positionX1",this.position.x.toString()),localStorage?.setItem("positionY1",this.position.y.toString()),window.innerWidth-10<Number(e.dropPoint.x)&&this.updatePosition(window.innerWidth-75,0
1),Number(e.dropPoint.x)<10&&this.updatePosition(0,0);}updatePosition(e,t){this.dragPosition={x:e,y:t};}chatDragEnd(e){let t=this.clampChatPosition(e.source.getFreeDragPosition());e.source.setFreeDragPosition(t),this.chatPosition.x=t.x,this.chatPosition.y=t.y,localStorage.setItem("positionXChat1",t.x.toString()),localStorage.setItem("positionYChat1",t.y.toString());}clampChatPosition(e){if(!ee(this.platformId))return e;let t=-this.chatContainerBaseLeft,r=-this.chatContainerBaseTop,c=Math.max(t,window.innerWidth-this.chatContainerBaseLeft-this.chatContainerWidth),m=Math.max(r,window.innerHeight-this.chatContainerBaseTop-this.chatContainerHeight);return{x:Math.min(Math.max(e.x,t),c),y:Math.min(Math.max(e.y,r),m)};}setSchemaSets(e,t){if(!e||!this.gameName)return;let c=`https://${Ye(this.locale)}`,m=`${c}/${this.locale}/${this.translationConfig.getTranslation(_e)}/${this.gameName}`,f=`${c}/${this.locale}/${this.translationConfig.getTranslation(_e)}/${this.gameName}`,S={"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":`${c}/#organization`,name:y.name,legalName:y.legalName,url:c,logo:{"@type":"ImageObject","@id":`${c}/#logo`,url:`${c}/assets/logo/logo.svg`,contentUrl:`${c}/assets/logo/logo.svg`,width:200,height:60},description:y.description,foundingDate:y.foundingDate,contactPoint:{"@type":"ContactPoint",contactType:"customer service",email:y.supportEmail},sameAs:[y.socialMedia.facebook,y.socialMedia.telegram]},{"@type":"WebSite","@id":`${c}/#website`,url:c,name:y.name,description:t||"The best Online Slots and Live Casino Games",publisher:{"@id":`${c}/#organization`},potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:`${c}/search?q={search_term_string}`},"query-input":"required name=search_term_string"},inLanguage:"en",datePublished:y.foundingDate,dateModified:new Date().toISOString()},{"@type":"BreadcrumbList","@id":`${f}#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:c},{"@type":"ListItem",position:2,name:this.gameName,item:f}]},{"@type":"WebPage","@id":f,url:f,name:`${this.gameName}`,description:`Details for the ${this.gameName} online slot at ${y.name}, with demo play and real-money access.`,isPartOf:{"@id":`${c}/#website`},breadcrumb:{"@id":`${f}#breadcrumb`},primaryImageOfPage:{"@type":"ImageObject","@id":`${f}#primaryimage`,url:e.thumbnail?.url,contentUrl:e.thumbnail?.url},mainEntity:{"@id":m},inLanguage:"en",datePublished:new Date().toISOString(),dateModified:new Date().toISOString()},{"@type":"Game","@id":m,name:this.gameName,alternateName:`${this.gameName} Slot`,description:`Play ${this.gameName} online at ${y.name} for free or real money.`,url:m,image:{"@type":"ImageObject","@id":`${m}#image`,url:e.thumbnail?.url,contentUrl:e.thumbnail?.url},genre:"Slot",provider:{"@type":"Organization",name:e.provider},isAccessibleForFree:!0,offers:{"@type":"Offer",url:m,availability:"https://schema.org/InStock",price:0,priceCurrency:B.baseCurrency,description:"Free to play demo version available"},potentialAction:{"@type":"PlayAction",target:{"@type":"EntryPoint",urlTemplate:m}},publisher:{"@id":`${c}/#organization`},mainEntityOfPage:{"@id":f},datePublished:new Date().toISOString(),dateModified:new Date().toISOString()}]};try{this.seoSchemaValidator.addSchemaMarkup(S),console.log("Schema markup added successfully");}catch(v){console.error("Error setting schema markup:",v);}}clearSchema(){try{if(!ee(this.platformId))return;document.querySelectorAll('script[type="application/ld+json"]').forEach(t=>t.remove()),console.log("Schema markup cleared");}catch(e){console.error("Error clearing schema markup:",e);}}ngOnInit(){if(this.seoSchemaValidator.getHomePageMetaDescription().pipe(x(1)).subscribe(e=>{this.homePageMetaDescription=e;}),ee(this.platformId)){this.getScreenHeight=window.innerHeight,this.renderer.addClass(document.getElementsByTagName("html")[0],"game-mode"),this.renderer.setStyle(document.getElementsByTagName("html")[0],"height",`${window.innerHeight}px`);let e=localStorage?.getItem("positionX1"),t=localStorage?.getItem("positionY1"),r=localStorage?.getItem("positionXChat1"),c=localStorage?.getItem("positionYChat1");window.innerWidth<Number(e)+70||Number(e)<0?this.initialPosition.x=0:this.initialPosition.x=e?+e:0,this.initialPosition.y=t?+t:0,this.chatInitialPosition=this.clampChatPosition({x:r?+r:this.chatInitialPosition.x,y:c?+c:this.chatInitialPosition.y}),this.chatPosition=T({},this.chatInitialPosition),this.loginStatusService.getLoginPartialStatus().pipe(C(this.unsubscribe)).subscribe(m=>{this.isLogin=m,this.isLogin&&(this.timerSubscription$=le(0,B.checkSessionInterval).pipe(A(()=>this.balanceService.getBalanceInfoStatus().pipe(C(this.unsubscribe))),C(this.unsubscribe)).subscribe(f=>{f.balance<parseInt(B.minBalanceThresholds[f.currency.toUpperCase()]||20)?this.showWalletIcon=!0:(this.showWalletIcon=!1,this.avatarService.getAvatar().pipe(x(1)).subscribe(v=>this.avatar=v));}));}),this.route.queryParams.subscribe(m=>{this.gameName||(this.gameName=m.gameName);}),this.route.paramMap.pipe(A(m=>(this.gameId=m.get("id"),this.gameLaucherService.requestStartGame(this.gameId,!0))),C(this.unsubscribe)).subscribe(m=>{this.lastPlayedService.addLastPlayed(this.gameId),this.gameBaseUrl=m.config.game_url,this.safeUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.gameBaseUrl),this.gameTurnoverNotificationService.gameTurnoverPercentage(m.turnover_contribution_percentage),this.sendRecommendationEvent(),this.enableFullScreen(m?.operator),this.homePageMetaDescription?this.setSchemaSets(m.config,this.homePageMetaDescription):this.triggerFrontPageQuery(m.config),ce(50).pipe(me(()=>!!this.gameIframe?.nativeElement),x(1),C(this.unsubscribe)).subscribe(()=>{let f=this.renderer.listen(this.gameIframe.nativeElement,"load",()=>{f();let S=()=>this.gameIframeEventsService.pingBalance(this.gameIframe?.nativeElement?.contentWindow);this.gameIframeEventsService.onMessage(Jt.GAME_READY).pipe(x(1),C(this.unsubscribe)).subscribe(()=>S()),le(15e3).pipe(x(1),C(this.unsubscribe)).subscribe(()=>S());});});},m=>{this.openErrorDialog(m.error?.error_message);}),this.gamificationLevelService.getStore().pipe(C(this.unsubscribe)).subscribe(m=>{this.gamificationPercentFill=m.turnover/m.levelEndsTurnover*100;}),this.loginStatusService.getIfUserLogged().pipe(C(this.unsubscribe)).subscribe(m=>{let S=!!(m.fullInfo?.roles?.map(v=>v.trim().toLowerCase())??[]).some(v=>["vip","supervip","super_vip","potential_vip"].includes(v));if(this.isVipPlayer=S,S){let v=`vip-${this.locale}`;this.chatAccess.initialize(v,m);}else this.chatAccess.setDisabled();console.log("chat enabled 3");}),this.gameIframeEventsService.onEvent(Qt.ALEAPLAY_RELOAD).pipe(C(this.unsubscribe)).subscribe(()=>{this.gameIframe?.nativeElement&&(this.gameIframe.nativeElement.src=this.gameBaseUrl),this.safeUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.gameBaseUrl);});}}enableFullScreen(e){if(!e)return;let t=this.fullscreen_operators.find(c=>c.name==e),r=!!t;this.injectFullscreenScripts(t),this.setFullscreenAttributes(r);}setFullscreenAttributes(e=!1){ce(50).pipe(me(()=>!!this.gameIframe?.nativeElement),x(1),Ce(()=>this.gameIframe.nativeElement)).subscribe(t=>{e?(this.renderer.setAttribute(t,"allowfullscreen",""),this.renderer.setAttribute(t,"webkitallowfullscreen",""),this.renderer.setAttribute(t,"mozallowfullscreen","")):(this.renderer.setAttribute(t,"donotallowfullscreen",""),this.renderer.removeAttribute(t,"allowfullscreen"),this.renderer.removeAttribute(t,"webkitallowfullscreen"),this.renderer.removeAttribute(t,"mozallowfullscreen"));});}injectFullscreenScripts(e){if(!e)return;let t=document.createElement("script");t.src=e.script_url,t.className="game-fullscreen-script",document.head.appendChild(t);}removeFullscreenScripts(){let e=document.querySelector(".game-fullscreen-script");e?.parentElement&&e.parentElement.removeChild(e);}disablePanelDrag(){this.isPanelDragDisabled||(this.isPanelDragDisabled=!0);}enablePanelDrag(){this.isPanelDragDisabled&&(this.isPanelDragDisabled=!1);}
1ngOnDestroy(){this.clearSchema(),this.renderer.removeClass(document.getElementsByTagName("html")[0],"game-mode"),this.renderer.setStyle(document.getElementsByTagName("html")[0],"height","100vh"),this.communicationService.postMessage(ue),this.timerSubscription$?.unsubscribe(),this.gameTurnoverNotificationService.dismiss(),this.removeFullscreenScripts(),super.ngOnDestroy();}sendRecommendationEvent(){this.gameId&&this.recommendationService.sendGameOpenedEvent(this.gameId).pipe(x(1)).subscribe(e=>{});}};a.ɵfac=function(t){return new(t||a)(g(Zt),g(He),g(tt),g(qe),g(Xe),g($),g(ct),g(V),g($),g(Ze),g(Gt),g(Te),g(mt),g(ie),g(he),g(Je),g(Dt),g(zt),g(te),g(Ft),g(Le),g(Me),g(Re),g(Qe),g(et),g(wt),g(Bt),g(ht),g(ei));},a.ɵcmp=U({type:a,selectors:[["app-game-launcher"]],viewQuery:function(t,r){if(t&1&&W(nn,5),t&2){let c;q(c=Y())&&(r.gameIframe=c.first);}},outputs:{closeEvent:"closeEvent"},features:[X],decls:8,vars:1,consts:[["notlogged",""],["gameiframe",""],[4,"ngIf"],["width","0","height","0",2,"position","absolute"],["id","spinner_gradient","x1","0%","y1","0%","x2","100%","y2","100%"],["offset","0%","stop-color","#FD7F50"],["offset","100%","stop-color","#5352ED"],["fxLayoutAlign","start center","fxLayout","row","cdkDragLockAxis","x","cdkDrag","",1,"panel-container",3,"cdkDragEnded"],["class","inner-container","fxLayout","row","fxLayoutAlign","center start",3,"click",4,"ngIf","ngIfElse"],["class","tournament-ingame",3,"gameIdValue",4,"ngIf"],[1,"missions-ingame",3,"gameIdValue"],["class","game-blik-inline",3,"gameId","disableParentDrag","enableParentDrag",4,"ngIf"],["class","chat-container","cdkDrag","",3,"cdkDragFreeDragPosition","cdkDragEnded",4,"ngIf"],["class","bonus-drop-ingame","cdkDragLockAxis","x","cdkDrag","",3,"right","cdkDragEnded","click",4,"ngIf"],["class","iframe-container",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center start",1,"inner-container",3,"click"],["class","avatar-wallet spinner-background",4,"ngIf"],["color","accent","mode","determinate","diameter","42",1,"outer-spinner",3,"value"],[1,"avatar-wallet","spinner-background"],["alt","Wallet Icon",1,"wallet-icon",3,"src"],["alt","avatar",3,"src"],[1,"tournament-ingame",3,"gameIdValue"],[1,"game-blik-inline",3,"disableParentDrag","enableParentDrag","gameId"],["cdkDrag","",1,"chat-container",3,"cdkDragEnded","cdkDragFreeDragPosition"],["variant","round",1,"vip-chat-inline"],["cdkDragLockAxis","x","cdkDrag","",1,"bonus-drop-ingame",3,"cdkDragEnded","click"],[3,"gameIdValue"],[1,"iframe-container"],["allow","autoplay","scrolling","no","frameborder","no","width","100%","height","100%","frameborder","0",1,"game-iframe",3,"src"],[1,"inner-container",3,"click"],[3,"customClass","position"]],template:function(t,r){t&1&&(k(0,pn,11,12,"ng-container",2)(1,dn,2,2,"ng-template",null,0,J),Pe(),p(3,"svg",3)(4,"defs")(5,"linearGradient",4),h(6,"stop",5)(7,"stop",6),d()()()),t&2&&l("ngIf",r.safeUrl);},dependencies:[Z,We,ft,lt,At,ot,at,Ut,Ht,Wt,Nt,Rt,ci],styles:[".custom-snackbar{background:#1a589b;color:#fff;font-size:14px;text-align:center;border-radius:25px!important} .custom-snackbar .mat-simple-snackbar-action{color:#fff}[_nghost-%COMP%]{overflow:hidden;width:100%;height:100%;position:fixed;top:0;left:0;z-index:1000;max-height:100%;max-width:100%}[_nghost-%COMP%] .avatar-wallet[_ngcontent-%COMP%]{position:relative;width:42px;height:42px;border-radius:50%;background-color:transparent}[_nghost-%COMP%] .avatar-wallet[_ngcontent-%COMP%] .wallet-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;width:28px;height:28px;transform:translate(-50%,-50%);object-fit:contain}[_nghost-%COMP%] .spinner-background[_ngcontent-%COMP%]{border-color:var(--global-bg);border-radius:50%;border-style:solid;border-width:5px;margin:0;box-sizing:border-box}[_nghost-%COMP%] .spinner-background[_ngcontent-%COMP%] .spinner-value[_ngcontent-%COMP%]{font-family:var(--global-font);font-style:normal;font-weight:700;font-size:26px;line-height:31px;text-align:center;width:100%}[_nghost-%COMP%] .iframe-container[_ngcontent-%COMP%]{width:100%;height:100%;max-height:100%;max-width:100%;overflow:hidden}[_nghost-%COMP%] .iframe-container[_ngcontent-%COMP%] .game-iframe[_ngcontent-%COMP%]{background-color:#000;position:absolute;top:0;overflow:hidden;min-width:100%;width:100%;height:100%;max-height:100%;max-width:100%}[_nghost-%COMP%] .panel-container[_ngcontent-%COMP%]{--game-launcher-panel-gap: 8px;position:absolute;height:50px;z-index:50;filter:drop-shadow(0px 1px 3px #000);top:10px;left:10px!important;border-radius:44px;padding:4px;background:#5472b280;gap:var(--game-launcher-panel-gap)}[_nghost-%COMP%] .panel-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0!important;padding:0}[_nghost-%COMP%] .panel-container[_ngcontent-%COMP%] .inner-container[_ngcontent-%COMP%]{position:relative;text-align:center}[_nghost-%COMP%] .panel-container[_ngcontent-%COMP%] .inner-container[_ngcontent-%COMP%] .icon-try-game-close[_ngcontent-%COMP%]{width:48px;position:relative}[_nghost-%COMP%] .panel-container[_ngcontent-%COMP%] .inner-container[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:relative;z-index:60;width:55px;margin-top:8px;margin-left:8px}[_nghost-%COMP%] .panel-container[_ngcontent-%COMP%] .inner-container[_ngcontent-%COMP%] .avatar-wallet[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:relative;z-index:60;width:34px}[_nghost-%COMP%] .panel-container[_ngcontent-%COMP%] .inner-container[_ngcontent-%COMP%] .outer-spinner[_ngcontent-%COMP%]{position:absolute;top:0;left:0}[_nghost-%COMP%] .panel-container[_ngcontent-%COMP%] .tournament-ingame[_ngcontent-%COMP%], [_nghost-%COMP%] .panel-container[_ngcontent-%COMP%] .mission-ingame[_ngcontent-%COMP%]{margin-right:0!important}[_nghost-%COMP%] .panel-container[_ngcontent-%COMP%] .game-blik-inline[_ngcontent-%COMP%]{margin-right:0!important;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .panel-container[_ngcontent-%COMP%] app-tournamnent-ingame-info .tournament-container, [_nghost-%COMP%] .panel-container[_ngcontent-%COMP%] app-missions-ingame-info .missions-mobile{margin-left:0!important}[_nghost-%COMP%] .chat-container[_ngcontent-%COMP%]{position:absolute;z-index:50;top:69px;left:11px!important;padding:4px;border-radius:44px;background:#5472b280;box-shadow:0 1px 1px #0003;filter:drop-shadow(0px 1px 1px rgba(0,0,0,.2))}[_nghost-%COMP%] .chat-container[_ngcontent-%COMP%] .vip-chat-inline[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin:0!important}[_nghost-%COMP%] .chat-container[_ngcontent-%COMP%] app-vip-chat-trigger .vip-chat.round{margin-left:0!important}[_nghost-%COMP%] .logout-panel-container[_ngcontent-%COMP%]{right:7px!important;left:auto!important;background:transparent;box-shadow:none!important;justify-content:end!important;height:auto}[_nghost-%COMP%] .logout-panel-container[_ngcontent-%COMP%] .tournament-ingame[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .bonus-drop-ingame[_ngcontent-%COMP%]{position:absolute;right:10px!important;top:10px;z-index:50}.outer-spinner[_ngcontent-%COMP%] circle{stroke:url(#spinner_gradient)!important}"]});let n=a;return n;})();var _n=[{path:":id",component:be,children:[{path:nt,canActivate:[],data:{isInGame:!0},loadChildren:()=>import("./chunk-NCPBXSMF.js").then(n=>n.TournamentsModule)},{path:rt,canActivate:[],data:{isInGame:!0},loadChildren:()=>import("./chunk-HFKLGMGG.js").then(n=>n.MissionsModule)},{path:it,canActivate:[$t],loadChildren:()=>import("./chunk-GRO52PMK.js").then(n=>n.ClientAreaModule)}]}],mi=(()=>{let a=class a{};a.ɵfac=function(t){return new(t||a)();},a.ɵmod=H({type:a}),a.ɵinj=K({imports:[de.forChild(_n),de]});let n=a;return n;})();var fa=(()=>{let a=class a{};a.ɵfac=function(t){return new(t||a)();},a.ɵmod=H({type:a}),a.ɵinj=K({imports:[Ue,mi,Ot,_t,Vt,ut,Xt,qt,Lt,Et,Tt,oi,si]});let n=a;return n;})();export{fa as GameLauncherModule};/**i18n:27e9ebd3f68126bab761f3b5456d3592bacf668a238e69c3d70805a5c5d32882*/
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.