www.trilhardario.com Open in urlscan Pro
18.159.229.239  Public Scan

Submitted URL: http://www.trilhardario.com/413.d3d86914da7dd24f.js
Effective URL: https://www.trilhardario.com/413.d3d86914da7dd24f.js
Submission: On August 01 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

"use strict";(self.webpackChunkng_multisite=self.webpackChunkng_multisite||[]).push([[413],{2413:(Lt,f,a)=>{a.r(f),a.d(f,{SyndicateRoutingModule:()=>Ct});var p=a(8555),C=a(4282),Z=a(5258),t=a(5e3),A=a(4049),m=a(5275),w=a(5862),v=a(3460),R=a(5714),I=a(5610),L=a(9815),l=a(9808),P=a(9563),U=a(1190),d=a(2340),S=a(9931),O=a(2010),k=a(1811),N=a(1479),Y=a(1228),D=a(520),J=a(8083),W=a(804);let Q=(()=>{class e{constructor(i,n,c){this.http=i,this.storageService=n,this.headerService=c}getToken(){return this.storageService.getToken()}getHttpOptions(){return this.headerService.getHeaders()}createCartLotteryWheels(i){return this.http.post(`${d.N.rapi}/api/cart_syndicate_wheels`,i,this.getHttpOptions())}updateCartLotteryWheels(i){return this.http.post(`${d.N.rapi}/api/cart_syndicate_wheels/${i.cart_lottery_wheel}`,i,this.getHttpOptions())}deleteCartLotteryWheels(i){return this.http.post(`${d.N.rapi}/api/cart_syndicate_wheels`,i,this.getHttpOptions())}getCartLotteryWheels(){return this.http.post(`${d.N.rapi}/api/cart_syndicate_wheels`,this.getHttpOptions())}createCartSyndicateWheels(i){return this.http.post(`${d.N.rapi}/api/cart_syndicate_wheels`,i,this.getHttpOptions())}updateCartSyndicateWheels(i){return this.http.post(`${d.N.rapi}/api/cart_syndicate_wheels`,i,this.getHttpOptions())}deleteCartSyndicateWheels(i){return this.http.post(`${d.N.rapi}/api/cart_syndicate_wheels`,i,this.getHttpOptions())}}return e.\u0275fac=function(i){return new(i||e)(t.LFG(D.eN),t.LFG(J.s),t.LFG(W.s))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var E=a(8502),j=a(671),F=a(5769),q=a(4535),B=a(2293),H=a(5036),$=a(8966),_=a(5262),M=a(9975),b=a(3409),z=a(4509),G=a(4010),X=a(3270),K=a(5639);function V(e,s){1&e&&(t.ynx(0),t._UZ(1,"app-spinner"),t.BQk())}function tt(e,s){1&e&&(t.ynx(0),t.TgZ(1,"div",5)(2,"div",6),t._UZ(3,"div",7),t.TgZ(4,"h3",8)(5,"span",9),t._uU(6," query_builder "),t.qZA(),t.TgZ(7,"span",10),t._uU(8),t.ALo(9,"internalTranslate"),t.qZA()()()(),t.BQk()),2&e&&(t.xp6(8),t.Oqu(t.lcZ(9,1,"WORDS.PENDING")))}function it(e,s){if(1&e&&(t.TgZ(0,"span",26),t._uU(1),t.ALo(2,"millionWord"),t.qZA()),2&e){const i=t.oxw(3);t.xp6(1),t.hij("",t.lcZ(2,1,i.syndicate.jackpot)," ")}}function et(e,s){if(1&e&&(t.TgZ(0,"div",6),t._UZ(1,"div",21),t.TgZ(2,"h3",22)(3,"span",9),t._uU(4," monetization_on "),t.qZA(),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"internalTranslate"),t.qZA(),t.TgZ(8,"strong",23)(9,"small",24),t._uU(10),t.ALo(11,"currency_local"),t.qZA(),t.TgZ(12,"span"),t._uU(13),t.ALo(14,"jackpot"),t.qZA(),t.YNc(15,it,3,3,"span",25),t.qZA()()()),2&e){const i=t.oxw(2);t.xp6(6),t.hij("",t.lcZ(7,4,"WORDS.NEXT_JACKPOT"),":"),t.xp6(4),t.hij(" ",t.lcZ(11,6,i.syndicate.currency)," "),t.xp6(3),t.Oqu(t.lcZ(14,8,i.syndicate.jackpot)),t.xp6(2),t.Q6J("ngIf",i.syndicate.jackpot>999999)}}function nt(e,s){if(1&e){const i=t.EpF();t.TgZ(0,"app-raffle-syn-picker",27),t.NdJ("quantity",function(c){return t.CHM(i),t.oxw(2).checkQuantity(c)})("inputRangeSubscription",function(c){return t.CHM(i),t.oxw(2).checkRangeSub(c)}),t.qZA()}if(2&e){const i=t.oxw(2);t.Q6J("product",i.syndicate)("type","syndicate")("synName",i.syndicate.name)("pickerSyn",i.pickerSync)("subscriptionTimes",i.subscriptionTimes)("subscriptionSelected",i.inputRangeSubscription?i.inputRangeSubscription:void 0)("quantitySelected",i.quantity)}}function at(e,s){if(1&e&&(t.TgZ(0,"small",37),t._uU(1),t.ALo(2,"internalTranslate"),t.ALo(3,"currency_local"),t.TgZ(4,"span",38),t._uU(5),t.ALo(6,"number"),t.qZA(),t._uU(7),t.ALo(8,"internalTranslate"),t.qZA()),2&e){const i=t.oxw(3);t.xp6(1),t.AsE(" ",t.lcZ(2,4,"WORDS.PRICE"),": ",t.lcZ(3,6,i.inputRangeSubscription.currency),""),t.xp6(4),t.Oqu(t.xi3(6,8,i.inputRangeSubscription.price/i.inputRangeSubscription.draws,"1.2-2")),t.xp6(2),t.hij("/",t.lcZ(8,11,"WORDS.DRAW")," ")}}function st(e,s){if(1&e&&(t.TgZ(0,"small",37),t._uU(1),t.ALo(2,"internalTranslate"),t.ALo(3,"currency_local"),t.TgZ(4,"span",38),t._uU(5),t.ALo(6,"number"),t.qZA(),t._uU(7),t.ALo(8,"internalTranslate"),t.qZA()),2&e){const i=t.oxw(4);t.xp6(1),t.AsE(" ",t.lcZ(2,4,"WORDS.PRICE"),": ",t.lcZ(3,6,i.inputRangeSubscription.currency),""),t.xp6(4),t.Oqu(t.xi3(6,8,i.inputRangeSubscription.price/i.inputRangeSubscription.draws,"1.2-2")),t.xp6(2),t.hij("/",t.lcZ(8,11,"WORDS.DRAW")," ")}}function ct(e,s){if(1&e&&(t.TgZ(0,"h4",39)(1,"span"),t._uU(2),t.ALo(3,"currency_local"),t.qZA(),t._uU(4),t.ALo(5,"number"),t.YNc(6,st,9,13,"small",33),t.qZA()),2&e){const i=t.oxw(3);t.xp6(2),t.Oqu(t.lcZ(3,3,i.inputRangeSubscription.currency)),t.xp6(2),t.hij("",t.xi3(5,5,i.totalDiscountAmount,"1.0-2")," "),t.xp6(2),t.Q6J("ngIf",i.inputRangeSubscription.draws>0)}}function rt(e,s){if(1&e&&(t.TgZ(0,"span",40),t._UZ(1,"app-spinner",41),t.qZA()),2&e){const i=t.oxw(3);t.xp6(1),t.Q6J("diameter",i.diameter)("strokeWidth",1)}}const ot=function(e){return{"cart-total-discount-off-applied-h4":e}};function dt(e,s){if(1&e){const i=t.EpF();t.TgZ(0,"div",28)(1,"div",29)(2,"div",30)(3,"div")(4,"h4",31)(5,"span",32)(6,"span"),t._uU(7),t.ALo(8,"currency_local"),t.qZA(),t._uU(9),t.ALo(10,"number"),t.qZA(),t.YNc(11,at,9,13,"small",33),t.qZA(),t.YNc(12,ct,7,8,"h4",34),t.TgZ(13,"button",35),t.NdJ("click",function(){return t.CHM(i),t.oxw(2).saveCart()}),t._uU(14),t.ALo(15,"internalTranslate"),t.ALo(16,"internalTranslate"),t.YNc(17,rt,2,2,"span",36),t.qZA()()()()()}if(2&e){const i=t.oxw(2);t.xp6(4),t.Q6J("ngClass",t.VKq(17,ot,i.isDiscountOff)),t.xp6(3),t.Oqu(t.lcZ(8,8,i.inputRangeSubscription.currency)),t.xp6(2),t.hij("",t.xi3(10,10,i.total,"1.0-2")," "),t.xp6(2),t.Q6J("ngIf",i.inputRangeSubscription.draws>0),t.xp6(1),t.Q6J("ngIf",i.isDiscountOff),t.xp6(1),t.uIk("disabled",!!i.savingCart||null),t.xp6(1),t.hij(" ",i.isUpdatedSyndicate?t.lcZ(16,15,"ACTIONS.UPDATE"):t.lcZ(15,13,"WORDS.ADD_CART")," "),t.xp6(3),t.Q6J("ngIf",i.savingCart)}}const lt=function(e){return[e]};function pt(e,s){if(1&e&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6),t._UZ(5,"div",7),t.TgZ(6,"h3",8)(7,"span",9),t._uU(8," query_builder "),t.qZA(),t.TgZ(9,"span",10),t._uU(10),t.ALo(11,"internalTranslate"),t.qZA(),t.TgZ(12,"small",11),t._uU(13),t.ALo(14,"countdown"),t.ALo(15,"internalTranslate"),t.qZA()()()(),t.TgZ(16,"div",12)(17,"figure",13),t._UZ(18,"img",14),t.qZA(),t.TgZ(19,"h2",15),t._uU(20),t.qZA()(),t.TgZ(21,"div",16),t.YNc(22,tt,10,3,"ng-container",17),t.YNc(23,et,16,10,"ng-template",null,18,t.W1O),t.qZA()(),t.YNc(25,nt,1,7,"app-raffle-syn-picker",19),t.YNc(26,dt,18,19,"div",20),t.qZA()()),2&e){const i=t.MAs(24),n=t.oxw();t.xp6(2),t.Q6J("ngClass",n.bgproduct),t.xp6(8),t.hij("",t.lcZ(11,10,"WORDS.NEXT_DRAW"),":"),t.xp6(3),t.hij(" ",n.syndicate.draw_date?t.xi3(14,12,n.syndicate.draw_date,n.timer):t.lcZ(15,15,"WORDS.PENDING")," "),t.xp6(4),t.Q6J("ngClass",t.VKq(17,lt,n.specialLogo)),t.xp6(1),t.uIk("src",n.cdnProducts+"/lotto-logos/wt/"+n.syndicate.identifier+".png",t.LSH),t.xp6(2),t.hij(" ",n.syndicate.name," "),t.xp6(2),t.Q6J("ngIf",-1===n.syndicate.jackpot)("ngIfElse",i),t.xp6(3),t.Q6J("ngIf",n.inputRangeSubscription),t.xp6(1),t.Q6J("ngIf",n.inputRangeSubscription)}}let ut=(()=>{class e extends P.o{constructor(i,n,c,r,o,u,g,y,h,T,Zt,x,At,wt,Rt,It){super(o,T,h,c,x),this.activatedRoute=i,this.router=n,this.clientService=c,this.syndicatesService=r,this.cartService=o,this.authService=u,this.platformId=g,this.wheelsService=y,this.cookieService=h,this.logger=T,this.translationRapi=Zt,this.utmCampaignService=x,this.routerLangService=At,this.gmService=wt,this.domainService=Rt,this.dialog=It,this.cdnProducts=d.N.cdnProducts,this.quantity=1,this.pickerSync=!0,this.diameter=15,this.subscriptionTimes=[],this.isLogging=!1,this.total=0,this.timer=0,this.lang=S.S.currentLanguage.lanid,this.syndicatePicksId=0,this.isDiscountOff=!1,this.totalDiscountAmount=0,this.subscriptions={}}ngOnInit(){var i,n;this.loading=!0,this.translationRapi.loadTranslations(),this.subscriptions.userLogged=this.authService.isUserLogged.subscribe(o=>{this.isLogging=o,this.isLogging&&(this.subscriptions.userDetails=this.authService.userDetailsObserver.subscribe(u=>{void 0!==u&&(this.idUser=u.identifier)}))}),this.subscriptions.routeParams=this.activatedRoute.params.subscribe(o=>{o.identifier?(this.idSyndicateUpdated=o.identifier,this.currentCart=o.cart_id,this.isUpdatedSyndicate=!0):void 0!==this.activatedRoute.snapshot.queryParams.sub_id&&this.loadSubscriontRenew(this.activatedRoute.snapshot.queryParams.sub_id),this.loadSyndicates(),this.countDown()}),this.syndicate&&(null===(n=null===(i=this.syndicate)||void 0===i?void 0:i.lucky_numbers)||void 0===n?void 0:n.length)>0&&0===this.syndicatePicksId&&(this.syndicatePicksId=this.generateRandomInt(this.syndicate.lucky_numbers[0].pick_id,this.syndicate.lucky_numbers[1].pick_id));const c={section:"Lottery Teams",subsection:this.syndicate.name,path:this.gmService.getLangURL()+"/teams/"+this.syndicate.routing_friendly.partial_path};this.gmService.virtualpv(c);const r=[{item_id:this.syndicate.identifier,item_name:this.syndicate.name,price:this.total,item_brand:this.domainService.getDomain(),item_category:"Lottery Teams",item_variant:this.syndicate.regions?this.syndicate.regions.map(o=>o.name).toString():"",index:0}];this.gmService.viewItem(r,this.inputRangeSubscription.currency)}ngOnDestroy(){Object.values(this.subscriptions).forEach(i=>i.unsubscribe()),this.translationRapi.unsubscribeTranslation()}loadSyndicates(){this.isUpdatedSyndicate&&this.currentCart?this.cartService.getCartDetails(this.currentCart).subscribe(i=>{i.data&&this.loadFromCurrentCartPicker(i),this.loading=!1},()=>{history.pushState(null,"","/teams/"+this.syndicate.routing_friendly.partial_path),this.loadDefaultPickers(),this.loading=!1}):(this.loadDefaultPickers(),this.loading=!1)}loadSubscriontRenew(i){this.syndicatesService.getSyndicateSubscriptions(i).subscribe(n=>{this.quantity=n.data.subscriptions})}loadSubscriptionsTimes(){this.syndicate&&this.syndicate.prices.forEach(i=>{this.subscriptionTimes.push({time:i.time,time_type:i.time_type,draws:i.draws,price:i.price,identifier:i.identifier,currency:i.currency})})}loadFromCurrentCartPicker(i){var n,c;this.bgproduct=`bg-product-${this.syndicate.identifier}`,this.cart=i.data,this.cartSyndicate=i.data.cart_syndicate_list.find(r=>r.identifier===Number(this.idSyndicateUpdated)),void 0!==this.cartSyndicate?(this.loadSubscriptionsTimes(),this.quantity=Number(this.cartSyndicate.tickets_by_draw),this.syndicatePicksId=null===(c=null===(n=this.cartSyndicate)||void 0===n?void 0:n.syndicate_picks_id)||void 0===c?void 0:c.syndicate_picks_id,this.inputRangeSubscription=this.subscriptionTimes.find(r=>r.identifier===this.cartSyndicate.price_attributes.identifier)):(history.pushState(null,"","/teams/"+this.syndicate.routing_friendly.partial_path),this.loadDefaultPickers())}loadDefaultPickers(){this.loadSubscriptionsTimes(),this.bgproduct=`bg-product-${this.syndicate.identifier}`,this.inputRangeSubscription=this.subscriptionTimes[0]}saveCart(){this.domainService.softBlockBehavior.subscribe(i=>{if(void 0!==i)if(i)this.dialog.open(O.G,{panelClass:"mat-sm-modal"});else{const n=S.S.currentLanguage.lanid.toString(),c=this.routerLangService.getRouteByLang("blocked-account",n);this.authService.userSuspendedBehavior.subscribe(r=>{r?this.router.navigate([c]):(this.savingCart=!0,this.verifyCart(this.isLogging,!0))})}})}checkQuantity(i){this.quantity=i,this.calcTotal()}checkSyndicateLuckyId(i){this.syndicatePicksId=i}checkRangeSub(i){this.inputRangeSubscription=i,this.calcTotal()}setSyndicateCart(){this.addSyndicateToCart()}addWheelSyndicateToCart(){const i={crt_id:this.cart.identifier,syndicate_id:this.syndicate.identifier,syndicate_prc_id:Number(this.inputRangeSubscription.identifier),ticket_byDraw:3,syndicate_picks_id:1234};this.wheelsService.createCartSyndicateWheels(i).subscribe(()=>{this.savingCart=!1,this.cartService.updateTotalListCart(this.isLogging),this.router.navigate(["cart"])},()=>{})}addSyndicateToCart(){this.isUpdatedSyndicate?this.cartService.editSyndicateCart(this.idSyndicateUpdated,{price_id:this.inputRangeSubscription.identifier,tickets_by_draw:this.quantity,syndicate_picks_id:this.syndicatePicksId}).subscribe(n=>{this.gmService.addToCart("syndicate",n.data),this.savingCart=!1,this.cartService.updateTotalListCart(this.isLogging),this.router.navigate(["cart"])},()=>{this.savingCart=!1}):this.cartService.addSyndicateCart({cart_id:this.cart.identifier,syndicate_id:this.syndicate.identifier,price_id:this.inputRangeSubscription.identifier,tickets_by_draw:this.quantity,syndicate_picks_id:this.syndicatePicksId}).subscribe(n=>{this.gmService.addToCart("syndicate",n.data),this.savingCart=!1,this.syndicatePicksId=0,this.cartService.updateTotalListCart(this.isLogging),this.router.navigate(["cart"])},n=>{this.logger.createLog(U.a.ERROR,n,this.constructor.toString().match(/\w+/g)[1],"addSyndicateToCart"),this.savingCart=!1})}calcTotal(){this.inputRangeSubscription&&this.quantity&&(this.total=this.inputRangeSubscription.price*this.quantity,this.getPromoCodeActive())}countDown(){(0,l.NF)(this.platformId)&&setInterval(()=>{this.timer=this.timer+1e3},1e3)}confirmCart(i){this.cart=i.data,this.setSyndicateCart()}confirmCartFailed(){this.savingCart=!1}get specialLogo(){return 106===this.syndicate.identifier||117===this.syndicate.identifier||127===this.syndicate.identifier||150===this.syndicate.identifier||165===this.syndicate.identifier||171===this.syndicate.identifier||178===this.syndicate.identifier||179===this.syndicate.identifier||180===this.syndicate.identifier||181===this.syndicate.identifier||182===this.syndicate.identifier||183===this.syndicate.identifier?"pw-header-lotto-logo_special":"pw-header-logo-normal"}generateRandomInt(i,n){return Math.floor(Math.random()*(n-i)+i)}getPromoCodeActive(){this.subscriptions.cartService=this.cartService.promoCodeInfo.subscribe(i=>{void 0!==i&&(this.isDiscountOff=!0,this.totalDiscountAmount=(100-i)*this.total/100)})}}return e.\u0275fac=function(i){return new(i||e)(t.Y36(p.gz),t.Y36(p.F0),t.Y36(k.y),t.Y36(m.p),t.Y36(N.N),t.Y36(Y.e),t.Y36(t.Lbi),t.Y36(Q),t.Y36(E.F),t.Y36(j.$),t.Y36(v.B),t.Y36(F.J),t.Y36(q.F),t.Y36(B.i),t.Y36(H.N),t.Y36($.uw))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-play-syndicate"]],inputs:{syndicate:"syndicate"},features:[t.qOj],decls:2,vars:2,consts:[[4,"ngIf"],["class","pw-global-set content-wrap lotto-2 wt txt-left",4,"ngIf"],[1,"pw-global-set","content-wrap","lotto-2","wt","txt-left"],[1,"pw-wrapper","relative-left","full-width","bg-light-2","lato","padding-10"],[1,"pw-header","relative-left","full-width","flex","row","wrap",3,"ngClass"],[1,"grow-3","relative","pw-header-next-draw","full-height"],[1,"relative-left","full-width","full-height","flex","y-items-center","x-content-center"],[1,"box-overlay","light","absolute","top-0","left-0","full-width","full-height"],[1,"lato","light-2","relative","weight-300","txt-center"],[1,"material-icons","pw-header-box-icon"],[1,"pw-header-box-title"],[1,"block","margin-top-5"],[1,"grow-4","relative","pw-header-lotto-name","txt-center"],[1,"pw-header-lotto-logo","absolute","top-0","left-50p","bg-light-2","circle",3,"ngClass"],["loading","lazy","width","62","alt","",1,"relative"],[1,"absolute","bottom-10","left-0","uppercase","ellipsis","weight-400","light-2"],[1,"grow-3","relative","pw-header-jackpot","txt-center"],[4,"ngIf","ngIfElse"],["next",""],[3,"product","type","synName","pickerSyn","subscriptionTimes","subscriptionSelected","quantitySelected","quantity","inputRangeSubscription",4,"ngIf"],["class","relative-left pw-footer_special-wrap full-width bg-light-2",4,"ngIf"],[1,"box-overlay","dark","absolute","top-0","left-0","full-width","full-height"],[1,"lato","light-2","relative","weight-300"],[1,"block","margin-top-bottom-5","weight-600","normal-17","txt-dark-shadow"],[1,"inline-block","weight-300"],["class","pw-header-box-million",4,"ngIf"],[1,"pw-header-box-million"],[3,"product","type","synName","pickerSyn","subscriptionTimes","subscriptionSelected","quantitySelected","quantity","inputRangeSubscription"],[1,"relative-left","pw-footer_special-wrap","full-width","bg-light-2"],[1,"relative-left","full-width","ultra-light-bg"],[1,"pw-footer","pw-footer_special","padding-15","relative-left","full-width","flex","row","wrap","x-content-center"],[1,"weight-700","txt-center","light-2","margin-bottom-10",3,"ngClass"],[1,"cart-total-price-wrap"],["class","block weight-300",4,"ngIf"],["class","weight-700 txt-center light-2 margin-bottom-10",4,"ngIf"],["type","submit","id","add_to_basket",1,"pw-btn","pw-action-btn",3,"click"],["class","button-spinner relative margin-left-5 inline-block",4,"ngIf"],[1,"block","weight-300"],["id","oDivPriceXDraw"],[1,"weight-700","txt-center","light-2","margin-bottom-10"],[1,"button-spinner","relative","margin-left-5","inline-block"],[3,"diameter","strokeWidth"]],template:function(i,n){1&i&&(t.YNc(0,V,2,0,"ng-container",0),t.YNc(1,pt,27,19,"div",1)),2&i&&(t.Q6J("ngIf",n.loading),t.xp6(1),t.Q6J("ngIf",n.syndicate&&!n.loading))},directives:[l.O5,_.O,l.mk,M.Q],pipes:[b.J,z.u,G.K,X.A,K.w,l.JJ],styles:[""]}),e})();var ht=a(2320),gt=a(5921),yt=a(4754);function ft(e,s){if(1&e&&(t.TgZ(0,"section",1),t._UZ(1,"app-bg-animated"),t.TgZ(2,"article",2)(3,"h2",3)(4,"small",4),t._uU(5),t.qZA(),t._uU(6),t.TgZ(7,"small",4),t._uU(8),t.qZA()(),t._UZ(9,"div",5),t.ALo(10,"internalTranslate"),t.ALo(11,"translateTag"),t.qZA()()),2&e){const i=t.oxw();t.Q6J("ngClass",i.bgproduct),t.xp6(5),t.Oqu(i.about_title),t.xp6(1),t.hij(" ",i.syndicate.name," "),t.xp6(2),t.Oqu(i.about_subtitle),t.xp6(1),t.Q6J("innerHTML",t.lcZ(10,5,t.lcZ(11,7,"SYNDICATE_ABOUT."+i.syndicate.original_name)),t.oJD)}}let mt=(()=>{class e{constructor(i){this.translationService=i}ngOnInit(){this.bgproduct=`bg-product-${this.syndicate.identifier}`,this.add_about_titles()}add_about_titles(){this.about_title=this.translationService.searchTerm("SYNDICATE_ABOUT_TITLE"),"SYNDICATE_ABOUT_TITLE"===this.about_title&&(this.about_title=this.translationService.searchTerm("WORDS.ABOUT")),this.about_subtitle=this.translationService.searchTerm("SYNDICATE_ABOUT_SUBTITLE"),"SYNDICATE_ABOUT_SUBTITLE"===this.about_subtitle&&(this.about_subtitle="")}}return e.\u0275fac=function(i){return new(i||e)(t.Y36(ht.D))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-about-syndicate"]],inputs:{syndicate:"syndicate"},decls:1,vars:1,consts:[["class","lotto-detail-about standard-paragraphs standard-section ",3,"ngClass",4,"ngIf"],[1,"lotto-detail-about","standard-paragraphs","standard-section",3,"ngClass"],[1,"content-wrap","txt-center","lato","light-2"],[1,"weight-500","title-section"],[1,"weight-300","block"],[1,"lotto-detail-about-description","md-wrap","relative","margin-auto",3,"innerHTML"]],template:function(i,n){1&i&&t.YNc(0,ft,12,9,"section",0),2&i&&t.Q6J("ngIf",n.syndicate)},directives:[l.O5,l.mk,gt.L],pipes:[b.J,yt.Z],styles:[""]}),e})();var vt=a(9731);function St(e,s){if(1&e&&t._UZ(0,"app-play-syndicate",6),2&e){const i=t.oxw(2);t.Q6J("syndicate",i.syndicate)}}function _t(e,s){if(1&e&&t._UZ(0,"app-about-syndicate",6),2&e){const i=t.oxw(2);t.Q6J("syndicate",i.syndicate)}}function bt(e,s){if(1&e&&(t.ynx(0),t.TgZ(1,"section",2)(2,"article",3),t.YNc(3,St,1,1,"app-play-syndicate",4),t.qZA()(),t.YNc(4,_t,1,1,"app-about-syndicate",4),t._UZ(5,"app-top-product",5),t.BQk()),2&e){const i=t.oxw();t.xp6(3),t.Q6J("ngIf",i.syndicate),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("section","teams")("paddingTop",!0)}}function Tt(e,s){1&e&&(t.TgZ(0,"div",7),t._UZ(1,"app-spinner"),t.qZA())}const xt=[{path:"",component:(()=>{class e{constructor(i,n,c,r,o,u,g,y,h){this.windorefService=i,this.syndicatesService=n,this.activatedRoute=c,this.router=r,this.routingFriendly=o,this.translationRapiService=u,this.productObserverService=g,this.stateRoute=y,this.translateTag=h,this.showProduct=!1,this.activatedRoute.params.subscribe(()=>{this.ngOnInit()})}ngOnInit(){this.loading=!0,this.init()}init(){this.activatedRoute.params.subscribe(i=>{const n=this.stateRoute.getURLParameter("syndicate_id");n?(this.idProduct=n,this.loadProduct()):this.routingFriendly.getUrlFriendly({type_product:Z.F.SYNDICATE,partial_path:i.id}).subscribe(c=>{c.data.routing_friendly.length>0?(this.idProduct=c.data.routing_friendly[0].id_product,this.checkProduct(i)):this.notFoundRedirect()})})}checkProduct(i){i.identifier&&(this.idSyndicateUpdated=i.identifier,this.currentCart=i.cart_id,this.isUpdatedSyndicate=!0),this.loadProduct()}redirectSite(){this.productObserverService.syndicateShowListBehavior.subscribe(i=>{void 0===i||i?this.showProduct=!1:this.router.navigate(["/"],{queryParams:this.getParams()})})}loadProduct(){this.redirectSite(),this.syndicatesService.getSyndicate(this.idProduct).subscribe(i=>{this.syndicate=i.data;const n=`${C.o.SYNDICATE+this.translateTag.translateTag(this.syndicate.original_name)}`;this.translationRapiService.loadSeo(n),this.loading=!1},()=>{this.notFoundRedirect()})}notFoundRedirect(){this.router.navigate(["/teams"],{queryParams:this.getParams()}),this.loading=!1}getParams(){const i=this.windorefService.getNativeWindow().location.toString().split("?");let n={};return i.length>1&&i[1].toString().split("&").forEach(c=>{let r=c.split("="),o={};o[r[0]]=r[1],n=Object.assign(Object.assign({},n),o)}),n}}return e.\u0275fac=function(i){return new(i||e)(t.Y36(A.o),t.Y36(m.p),t.Y36(p.gz),t.Y36(p.F0),t.Y36(w.k),t.Y36(v.B),t.Y36(R.y),t.Y36(I.H),t.Y36(L.x))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-syndicate"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","relative-left full-width margin-top-bottom-35 weight-300",4,"ngIf"],[1,"lotto-picker","standard-section","bg-light-18"],[1,"content-wrap"],[3,"syndicate",4,"ngIf"],[3,"section","paddingTop"],[3,"syndicate"],[1,"relative-left","full-width","margin-top-bottom-35","weight-300"]],template:function(i,n){1&i&&(t.YNc(0,bt,6,4,"ng-container",0),t.YNc(1,Tt,2,0,"div",1)),2&i&&(t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading))},directives:[l.O5,ut,mt,vt.W,_.O],styles:[""]}),e})()}];let Ct=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.Bz.forChild(xt)],p.Bz]}),e})()}}]);