PageSourceSearch

https://weppa.io/chunk-LXV5M7CB.js

js weppa.io collected 2026-10-08 21:16:43 UTC 4,865 bytes, 1 lines download raw bytes

1import{a as O,b as M}from"./chunk-Z4XF42N4.js";import{a as y}from"./chunk-OHENFOAH.js";import{a as E}from"./chunk-T442FYLK.js";import"./chunk-FNLRD366.js";import{Ib as _,Kb as a,Lb as l,Ma as r,Nb as b,Ua as m,Ub as P,Za as C,fa as d,ib as p,jb as f,kb as x,mb as g,nb as v,ob as S,pb as o,qb as n,rb as u,zb as c}from"./chunk-GB56FVZ4.js";import"./chunk-PRARYYF3.js";var w=()=>["Inicio","Sorteo"],T=(i,e)=>e.id;function V(i,e){if(i&1&&(o(0,"span",11),a(1),n(),o(2,"span",12),a(3),n()),i&2){let t=c().$implicit;r(),l(t.nombre),r(2),l(t.ticket)}}function z(i,e){i&1&&a(0," Pendiente ")}function F(i,e){if(i&1&&(o(0,"li"),p(1,V,4,2)(2,z,1,0),n()),i&2){let t=e.$implicit;_("slot-pendiente",!t),r(),f(t?1:2)}}function k(i,e){if(i&1&&(o(0,"div",5)(1,"div",6)(2,"h3"),a(3),n(),o(4,"span",7),a(5),n()(),o(6,"p",8),a(7),n(),o(8,"ol",9),g(9,F,3,3,"li",10,x),n()()),i&2){let t=e.$implicit,s=c(2);_("premio-actual",t.id===s.premioActualId()),r(3),l(t.nombre),r(2),b("",t.ganadores.length,"/",t.cantidadGanadores),r(2),l(t.descripcion),r(2),v(s.slots(t))}}function D(i,e){i&1&&(o(0,"div",2),g(1,k,11,6,"div",4,T),n()),i&2&&(r(),v(e))}function N(i,e){if(i&1&&(o(0,"p",3),a(1),n()),i&2){let t=c();r(),l(t.error())}}function L(i,e){i&1&&(o(0,"p",3),a(1,"Esperando a que comience el sorteo..."),n())}var G=5e3,I=class i{constructor(e,t){this.campanas=e;this.seo=t}premios=d(null);error=d(null);intervalId;ngOnInit(){this.seo.setTitle("Ganadores del sorteo - Weppa"),this.seo.updateMetaTags([{name:"robots",content:"noindex, nofollow"}]),this.actualizarEstado(),this.intervalId=setInterval(()=>this.actualizarEstado(),G),typeof document<"u"&&document.addEventListener("visibilitychange",this.onVisibilityChange)}ngOnDestroy(){this.intervalId&&clearInterval(this.intervalId),typeof document<"u"&&document.removeEventListener("visibilitychange",this.onVisibilityChange)}onVisibilityChange=()=>{document.visibilityState==="visible"&&this.actualizarEstado()};premioActualId(){let e=this.premios();return e?e.find(t=>t.ganadores.length<t.cantidadGanadores)?.id??null:null}slots(e){return Array.from({length:e.cantidadGanadores},(t,s)=>e.ganadores[s]??null)}async actualizarEstado(){try{let e=await this.campanas.obtenerPremios();this.premios.set(e),this.error.set(null)}catch(e){console.error("No se pudo actualizar el estado del sorteo",e),this.premios()||this.error.set("No se pudo cargar el estado del sorteo.")}}static \u0275fac=function(t){return new(t||i)(m(M),m(E))};static \u0275cmp=C({type:i,selectors:[["app-sorteo-en-vivo"]],decls:6,vars:3,consts:[["subtitle","Sorteo Weppa te da m\xE1s","title","Ganadores del sorteo",3,"breadcrumbs"],[1,"container","sorteo-en-vivo-container","my-4"],[1,"premios-historial"],[1,"sorteo-en-vivo-esperando"],[1,"premio-card",3,"premio-actual"],[1,"premio-card"],[1,"premio-card-header"],[1,"badge-count"],[1,"premio-descripcion"],[1,"premio-slots"],[3,"slot-pendiente"],[1,"slot-nombre"],[1,"slot-ticket"]],template:function(t,s){if(t&1&&(u(0,"app-page-header",0),o(1,"div",1),u(2,"app-sorteo-youtube-live"),p(3,D,3,0,"div",2)(4,N,2,1,"p",3)(5,L,2,0,"p",3),n()),t&2){let h;S("breadcrumbs",P(2,w)),r(3),f((h=s.premios())?3:s.error()?4:5,h)}},dependencies:[y,O],styles:[".sorteo-en-vivo-esperando[_ngcontent-%COMP%]{text-align:center;color:#666;font-size:1.6rem;padding:4rem 0}.badge-count[_ngcontent-%COMP%]{background:#f7f8fc;color:#262247;font-size:1.3rem;font-weight:600;padding:.4rem 1rem;border-radius:999px;white-space:nowrap}.premio-descripcion[_ngcontent-%COMP%]{color:#666;font-size:1.4rem;margin:0}.premios-historial[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:1.2rem;align-items:start}@media(max-width:767px){.premios-historial[_ngcontent-%COMP%]{grid-template-columns:1fr}}.premio-card[_ngcontent-%COMP%]{border:1px solid rgba(38,34,71,.15);border-radius:1.2rem;padding:1.6rem 2rem;background:#f7f8fc}.premio-card.premio-actual[_ngcontent-%COMP%]{border-color:#fecb3c;box-shadow:0 0 0 2px #fecb3c66;background:#fff}.premio-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;margin-bottom:.4rem}.premio-card-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.6rem;color:#262247;font-weight:600;margin:0}.premio-slots[_ngcontent-%COMP%]{list-style:decimal;margin:1rem 0 0;padding-left:1.8rem;display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#262247;font-weight:600}.premio-slots[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.1rem}
1.premio-slots[_ngcontent-%COMP%]   .slot-nombre[_ngcontent-%COMP%]{color:#262247;font-weight:600}.premio-slots[_ngcontent-%COMP%]   .slot-ticket[_ngcontent-%COMP%]{color:#666;font-weight:400;font-size:1.2rem}.premio-slots[_ngcontent-%COMP%]   .slot-pendiente[_ngcontent-%COMP%]{color:#666;font-weight:400;font-style:italic}"]})};export{I as SorteoEnVivo};

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.