PageSourceSearch

https://ynassets.younow.com/yn-web/live/806.b4ddee84f51240aa.js

js younow.com collected 2026-09-24 09:03:37 UTC 7,694 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkyn_web=self.webpackChunkyn_web||[]).push([[806],{29806:(L,l,n)=>{n.r(l),n.d(l,{MobileModule:()=>G});var d=n(12791),s=n(60177),u=n(10467),p=n(62181),a=n(62531),m=n(21413),g=n(56977),t=n(17705),b=n(14485),f=n(63284),y=n(5455),v=n(93811),x=n(85645),C=n(20205),M=n(32576),P=n(21425),B=n(35977);function I(o,h){if(1&o){const e=t.RV6();t.qex(0),t.j41(1,"div",4)(2,"div",5)(3,"div",6),t.EFF(4,"get_bars"),t.k0s(),t.j41(5,"div")(6,"span",7),t.EFF(7,"my_bars"),t.k0s(),t.j41(8,"i",8),t.nrm(9,"div",9)(10,"div",10),t.k0s(),t.j41(11,"span"),t.EFF(12),t.nI1(13,"number"),t.nI1(14,"async"),t.k0s()(),t.j41(15,"div",11),t.EFF(16),t.nI1(17,"async"),t.k0s(),t.j41(18,"button",12),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.logout())}),t.EFF(19," logout "),t.k0s()(),t.nrm(20,"app-products-list",13),t.k0s(),t.bVm()}if(2&o){const e=t.XpG();t.R7$(12),t.JRh(t.bMT(13,5,t.bMT(14,7,e.sessionUser$).bars)),t.R7$(4),t.JRh(t.bMT(17,9,e.sessionUser$).profile),t.R7$(4),t.Y8G("products",e.products)("productType",e.productType)("isModal",!0)}}function S(o,h){if(1&o&&(t.j41(0,"div",14)(1,"div",15),t.EFF(2),t.nI1(3,"number"),t.k0s(),t.nrm(4,"img",16),t.k0s()),2&o){const e=t.XpG();t.Y8G("@fadeScaleAnimation",void 0),t.R7$(2),t.SpI("+",t.bMT(3,3,e.currencyPurchased)," bars"),t.R7$(2),t.Y8G("src",e.mobileBarsCelebrationSrc,t.B4B)}}function O(o,h){if(1&o&&(t.j41(0,"div",17)(1,"div",18)(2,"div",19),t.nrm(3,"img",20)(4,"img",21),t.k0s(),t.j41(5,"h1",22),t.EFF(6,"Sign in to get a great value"),t.k0s(),t.j41(7,"p",23),t.EFF(8," Sign in to visit our official website "),t.k0s()(),t.j41(9,"div",24)(10,"div",25),t.nrm(11,"app-login",26),t.k0s()(),t.j41(12,"div",27),t.nrm(13,"app-terms-disclaimer"),t.k0s()()),2&o){const e=t.XpG();t.R7$(3),t.Y8G("src",e.goldBoxIconSrc,t.B4B),t.R7$(1),t.Y8G("src",e.dollarIconSrc,t.B4B),t.R7$(7),t.Y8G("hideTwitter",!0)("callback",e.onLogin.bind(e))}}const $=function(o){return{isloggedin:o}};let T=(()=>{class o{constructor(e,r,i,c,U,E,X){this.authService=e,this.utilsService=r,this.buybarsService=i,this.modalService=c,this.agoraChatService=U,this.ref=E,this.session=X,this.dollarIconSrc=this.utilsService.getLocalImage("icon-dollar"),this.goldBoxIconSrc=this.utilsService.getLocalImage("gold-box","png"),this.mobileBarsCelebrationSrc=this.utilsService.getLocalImage("mobile-bars-celebration"),this.isLoggedIn=!1,this.productType=p.c.BUY_BARS,this.products=[],this.sessionUser$=this.session.sessionUser$,this.isLoggedIn$=this.authService.loggedIn$,this.destroy$=new m.B}ngOnInit(){this.authService.loggedIn$.pipe((0,g.Q)(this.destroy$)).subscribe(e=>{this.isLoggedIn=e,e&&this.getBarsProducts()}),this.buybarsService.displayBarsCelebration$.pipe((0,g.Q)(this.destroy$)).subscribe(e=>{this.isLoggedIn&&(this.refreshProducts(),this.startBarsCelebration(e))})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onLogin(e){}logout(){this.logoutWithBackendNoRedirect(),this.agoraChatService.close()}startBarsCelebration(e){clearTimeout(this.barsCelebrationTimeout),this.modalService.showModalOverlay(),this.currencyPurchased=e,this.ref.markForCheck(),this.barsCelebrationTimeout=window.setTimeout(()=>{this.modalService.hideModalOverlay(),this.currencyPurchased=void 0,this.ref.markForCheck()},2e3)}getBarsProducts(){var e=this;return(0,u.A)(function*(){const{products:r}=yield e.buybarsService.getBarsProducts();e.products=r,e.ref.markForCheck()})()}refreshProducts(){this.products=void 0,this.getBarsProducts()}logoutWithBackendNoRedirect(){this.authService.logout(!0,!1)}static{this.\u0275fac=function(r){return new(r||o)(t.rXU(b.u),t.rXU(a.TJ),t.rXU(f.E),t.rXU(y.B),t.rXU(v.q),t.rXU(t.gRc),t.rXU(x.Q))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["app-buybars-page"]],decls:7,vars:10,consts:[[1,"fullscreen",3,"ngClass"],[4,"ngIf","ngIfElse"],["class","mobile-bars-celebration-wrapper",4,"ngIf"],["LoginModal",""],[1,"buybars-container"],[1,"buybars-header"],["translate","",1,"header__top"],["translate",""],[1,"ynicon","ynicon-bar"],[1,"path1"],[1,"path2"],[1,"profile-name"],["type","button","translate","",1,"logout-btn",3,"click"],[3,"products","productType","isModal"],[1,"mobile-bars-celebration-wrapper"],[1,"total-bars"],["alt","Mobile bars celebration",3,"src"],[1,"login-modal"],[1,"sign-up-bars"],[1,"image-container"],["alt","Bo
1x of bars icon",1,"gold-box-icon",3,"src"],["alt","Dollar icon",1,"dollar-icon",3,"src"],[1,"modal__title"],["translate","",1,"modal__paragraph"],[1,"modal-body"],[1,"login-wrapper"],[3,"hideTwitter","callback"],[1,"modal-footer"]],template:function(r,i){if(1&r&&(t.j41(0,"div",0),t.nI1(1,"async"),t.DNE(2,I,21,11,"ng-container",1),t.nI1(3,"async"),t.DNE(4,S,5,5,"div",2),t.k0s(),t.DNE(5,O,14,4,"ng-template",null,3,t.C5r)),2&r){const c=t.sdS(6);t.Y8G("ngClass",t.eq3(8,$,t.bMT(1,4,i.isLoggedIn$))),t.R7$(2),t.Y8G("ngIf",t.bMT(3,6,i.isLoggedIn$))("ngIfElse",c),t.R7$(2),t.Y8G("ngIf",i.currencyPurchased)}},dependencies:[s.YU,s.bT,C.X,M.Mm,P.G,B.K,s.Jj,s.QX],styles:[".fullscreen[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1;display:flex;align-items:center;justify-content:center;overflow-y:scroll}.fullscreen.isloggedin[_ngcontent-%COMP%]{display:block}.login-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.modal-footer[_ngcontent-%COMP%]{border:none}.image-container[_ngcontent-%COMP%]{position:relative;margin:auto;width:190px;height:190px}.image-container[_ngcontent-%COMP%]   .gold-box-icon[_ngcontent-%COMP%]{width:158px;height:158px;transform:rotate(-12deg) translate(-20px,40px)}.image-container[_ngcontent-%COMP%]   .dollar-icon[_ngcontent-%COMP%]{position:absolute;right:0;top:0;width:105px;height:105px}.mobile-bars-celebration-wrapper[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;width:260px;height:260px;gap:20px;padding:1rem;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;background-color:#212121;border-radius:1rem;border:2px solid #dddfe4;box-shadow:0 2px 10px #0003}.total-bars[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;background:#c967ff;color:var(--Gray-White, #fff);font-size:17px;font-style:normal;font-weight:600;line-height:22px}.buybars-container[_ngcontent-%COMP%]{padding-bottom:140px}.buybars-header[_ngcontent-%COMP%]{display:grid;align-items:center;justify-content:center;background:rgba(8,214,135,.1);padding:.75rem 0;border-bottom:4px solid var(--color-primary-green);color:var(--color-text-lighter)}.buybars-header[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .buybars-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:.45rem;margin-right:.25rem}.buybars-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:1rem}.buybars-header[_ngcontent-%COMP%]   .profile-name[_ngcontent-%COMP%]{position:absolute;top:4px;right:16px;background:none;border:none;color:var(--color-text-lighter);font-weight:600;font-size:9px;cursor:pointer;z-index:2}.buybars-header[_ngcontent-%COMP%]   .logout-btn[_ngcontent-%COMP%]{position:absolute;top:14px;right:14px;background:none;border:none;color:var(--color-text-lighter);font-weight:600;font-size:16px;cursor:pointer;z-index:2}.header__top[_ngcontent-%COMP%]{font-size:28px;font-weight:600;display:flex;align-items:center;justify-content:center}"],data:{animation:[a.R_,a.Tc]},changeDetection:0})}}return o})();var j=n(25834),F=n(99955),k=n(72597);const R=[{path:"buybars",component:T}];let G=(()=>{class o{static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=t.G2t({imports:[s.MD,d.iI.forChild(R),F.z,k.c,j.u,d.iI]})}}return o})()}}]);

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.