PageSourceSearch

https://hou.la/chunk-NUHB5YIJ.js

js hou.la collected 2026-10-02 15:58:27 UTC 22,191 bytes, 1 lines download raw bytes

1import{a as be}from"./chunk-AB6CKZTE.js";import{c as xe,d as O,e as M}from"./chunk-DIGPPQJE.js";import{h as ve}from"./chunk-KAJMKXZ6.js";import{c as Y,d as ge}from"./chunk-SRTXE2HR.js";import{Aa as A,Ba as b,F as ce,Fa as P,Ib as g,Jb as F,Ka as me,Kb as fe,Kc as _e,Lb as B,Lc as ee,Na as N,Ob as he,Rb as w,Tb as X,Ub as S,Uc as l,Vb as H,Vc as d,Wb as r,Wc as te,Xb as o,Yb as U,Z as le,_a as k,ac as j,da as h,db as a,gc as y,hc as T,ka as pe,l as oe,la as x,ld as I,ma as C,na as de,nc as z,oa as ue,oc as K,p as ae,pc as Q,r as se,sb as v,uc as s,vc as u,wa as D,wc as f,yb as E}from"./chunk-NTTV6FWH.js";import{g as Z}from"./chunk-W7GRJBO5.js";var Le=1200;function Ve(n,e){if(!Number.isFinite(n))return 0;if(e>=1)return n;if(e<=0)return 0;let t=1-Math.pow(1-e,3);return Math.round(n*t)}var Ce=class n{zone=h(D);host=h(A);translate=h(xe);navigateur=Y(h(P));valeur=0;affiche=b("0");observateur;image=0;get largeur(){return this.texte(this.valeur).length}constructor(){N(()=>this.armer())}ngOnChanges(){this.affiche.set(this.texte(this.valeur))}ngOnDestroy(){this.observateur?.disconnect(),this.image&&cancelAnimationFrame(this.image)}texte(e){let t=this.translate.currentLang||this.translate.defaultLang||"fr";try{return new Intl.NumberFormat(t).format(e)}catch{return String(e)}}armer(){if(!this.navigateur||typeof IntersectionObserver>"u"||window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)return;let e=this.host.nativeElement;e.getBoundingClientRect().top<window.innerHeight||this.zone.runOutsideAngular(()=>{this.observateur=new IntersectionObserver(t=>{t.some(i=>i.isIntersecting)&&(this.observateur?.disconnect(),this.monter())},{threshold:.6}),this.observateur.observe(e)})}monter(){let e=this.valeur,t=this.host.nativeElement.querySelector(".hcc");if(!t)return;let i=performance.now(),c=m=>{let _=Math.min(1,(m-i)/Le);t.textContent=this.texte(Ve(e,_)),_<1&&(this.image=requestAnimationFrame(c))};t.textContent=this.texte(0),this.image=requestAnimationFrame(c)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=v({type:n,selectors:[["hc-compteur"]],inputs:{valeur:"valeur"},features:[pe],decls:4,vars:4,consts:[["aria-hidden","true",1,"hcc"],[1,"sr-only"]],template:function(t,i){t&1&&(r(0,"span",0),s(1),o(),r(2,"span",1),s(3),o()),t&2&&(fe("min-width",i.largeur,"ch"),a(),u(i.affiche()),a(2),u(i.texte(i.valeur)))},styles:["[_nghost-%COMP%]{display:inline-block}.hcc[_ngcontent-%COMP%]{display:inline-block;font-variant-numeric:tabular-nums;text-align:inherit}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}"],changeDetection:0})};var Re=(n,e)=>e.nom;function De(n,e){if(n&1&&(r(0,"span",3)(1,"span",4),s(2),o(),s(3),l(4,"translate"),o()),n&2){let t=T().$implicit,i=T();a(2),u(i.symbole(t.etat)),a(),f(" ",d(4,2,"HC_PLATFORMS."+i.cle(t.etat))," ")}}function Ae(n,e){if(n&1&&(r(0,"li")(1,"b",2),s(2),o(),E(3,De,5,4,"span",3),o()),n&2){let t=e.$implicit,i=T();he("hps__p hps__p--",t.etat,""),g("data-platform",t.nom),a(2),u(t.nom),a(),w(!i.compact||t.etat!=="ok"?3:-1)}}var Ne=[{nom:"Hou.la",etat:"toujours"},{nom:"TikTok",etat:"ok"},{nom:"YouTube",etat:"ok"},{nom:"Kick",etat:"ok"},{nom:"Twitch",etat:"bientot"}];function Fe(n){return n==="bientot"?"\u23F3":"\u2713"}function Be(n){return n==="toujours"?"ALWAYS":n==="bientot"?"SOON":"READY"}var ye=class n{compact=!1;plateformes=Ne;symbole=Fe;cle=Be;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=v({type:n,selectors:[["hc-platform-strip"]],inputs:{compact:"compact"},decls:3,vars:2,consts:[["data-testid","hc-platforms",1,"hps"],[3,"class"],[1,"hps__nom"],[1,"hps__etat"],["aria-hidden","true"]],template:function(t,i){t&1&&(r(0,"ul",0),S(1,Ae,4,6,"li",1,Re),o()),t&2&&(B("hps--compact",i.compact),a(),H(i.plateformes))},dependencies:[M,O],styles:["[_nghost-%COMP%]{display:block}.hps[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}.hps__p[_ngcontent-%COMP%]{display:inline-flex;align-items:baseline;gap:8px;padding:10px 16px;border-radius:999px;background:var(--surface, #12121e);border:1px solid var(--border, rgba(255, 255, 255, .1))}.hps--compact[_ngcontent-%COMP%]   .hps__p[_ngcontent-%COMP%]{padding:6px 12px;font-size:14px}.hps__nom[_ngcontent-%COMP%]{font-weight:700;color:var(--ink, #fff)}.hps__etat[_ngcontent-%COMP%]{font-size:13px;color:var(--ink-soft, rgba(255, 255, 255, .66))}.hps__p--bientot[_ngcontent-%COMP%]{border-style:dashed;border-color:#ffffff4d}.hps__p--toujours[_ngcontent-%COMP%]{border-color:var(--accent-bright, #54a6f6)}"],changeDetection:0})};var Oe={win:"https://hou.la/api/download/connect/win",mac:"https://hou.la/api/download/connect/mac",linux:"https://hou.la/api/download/connect/linux"},Me={win:"Windows",mac:"macOS",linux:"Linux"},Pe={win:".exe",mac:".dmg",linux:".AppImage"},ft="https://github.com/Hou-la/houla-connect-app/releases/latest";function ht(n,e){let t=(e||"").toLowerCase(),i=(n||"").toLowerCase();return/android|iphone|ipad|ipod|mobile/.test(i)?null:t.startsWith("win")||/windows/.test(i)?"win":t.startsWith("mac")||/mac os x|macintosh/.test(i)?"mac":t.startsWith("linux")||/linux|x11/.test(i)?"linux":null}var Ue=["dialogue"],je=n=>({os:n}),ze=n=>({fichier:n}
1),Ke='a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])',Ee=class n{dialogueRef;os=b("win");ouverte=b(!1);nomOs=I(()=>Me[this.os()]);fichier=I(()=>Pe[this.os()]);lien=I(()=>Oe[this.os()]);cleOs=I(()=>this.os().toUpperCase());declencheur=null;ouvrir(e,t){let i=this.dialogueRef?.nativeElement;i&&(this.os.set(e),this.declencheur=t instanceof HTMLElement?t:document.activeElement,this.ouverte.set(!0),!i.open&&(typeof i.showModal=="function"?i.showModal():i.setAttribute("open","")))}fermer(){let e=this.dialogueRef?.nativeElement;e&&(typeof e.close=="function"?e.close():(e.removeAttribute("open"),this.apresFermeture()))}apresFermeture(){this.ouverte.set(!1);let e=this.declencheur;this.declencheur=null,e&&e.isConnected&&e.focus()}clicFond(e){e.target===this.dialogueRef?.nativeElement&&this.fermer()}clavier(e){if(e.key!=="Tab")return;let t=this.dialogueRef?.nativeElement;if(!t)return;let i=Array.from(t.querySelectorAll(Ke));if(!i.length)return;let c=i[0],m=i[i.length-1],_=document.activeElement;e.shiftKey&&(_===c||_===t)?(e.preventDefault(),m.focus()):!e.shiftKey&&_===m&&(e.preventDefault(),c.focus())}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=v({type:n,selectors:[["hc-telechargement"]],viewQuery:function(t,i){if(t&1&&z(Ue,5),t&2){let c;K(c=Q())&&(i.dialogueRef=c.first)}},decls:59,vars:46,consts:[["dialogue",""],["aria-labelledby","hcd-titre","aria-describedby","hcd-texte","data-testid","hc-dl-modal",1,"hcd",3,"close","click","keydown"],[1,"hcd__carte"],["type","button","data-testid","hc-dl-x",1,"hcd__x",3,"click"],["aria-hidden","true"],[1,"hcd__etat"],["id","hcd-titre",1,"hcd__titre"],["id","hcd-texte","data-testid","hc-dl-text",1,"hcd__texte"],["data-testid","hc-dl-steps",1,"hcd__etapes"],["aria-hidden","true",1,"hcd__n"],[1,"hcd__d"],[1,"hcd__relance"],["rel","noopener","data-testid","hc-dl-retry",3,"href"],[1,"hcd__bas"],["type","button","autofocus","","data-testid","hc-dl-close",1,"hcd__fermer",3,"click"]],template:function(t,i){if(t&1){let c=j();r(0,"dialog",1,0),y("close",function(){return x(c),C(i.apresFermeture())})("click",function(_){return x(c),C(i.clicFond(_))})("keydown",function(_){return x(c),C(i.clavier(_))}),r(2,"div",2)(3,"button",3),l(4,"translate"),y("click",function(){return x(c),C(i.fermer())}),r(5,"span",4),s(6,"\u2715"),o()(),r(7,"p",5)(8,"span",4),s(9,"\u2713"),o(),s(10),l(11,"translate"),o(),r(12,"h2",6),s(13),l(14,"translate"),o(),r(15,"p",7),s(16),l(17,"translate"),o(),r(18,"ol",8)(19,"li")(20,"span",9),s(21,"1"),o(),r(22,"span")(23,"b"),s(24),l(25,"translate"),o(),r(26,"span",10),s(27),l(28,"translate"),o()()(),r(29,"li")(30,"span",9),s(31,"2"),o(),r(32,"span")(33,"b"),s(34),l(35,"translate"),o(),r(36,"span",10),s(37),l(38,"translate"),o()()(),r(39,"li")(40,"span",9),s(41,"3"),o(),r(42,"span")(43,"b"),s(44),l(45,"translate"),o(),r(46,"span",10),s(47),l(48,"translate"),o()()()(),r(49,"p",11),s(50),l(51,"translate"),r(52,"a",12),s(53),l(54,"translate"),o()(),r(55,"div",13)(56,"button",14),y("click",function(){return x(c),C(i.fermer())}),s(57),l(58,"translate"),o()()()()}t&2&&(a(3),g("aria-label",d(4,14,"HC_DL.CLOSE")),a(7),f(" ",d(11,16,"HC_DL.STARTED")," "),a(3),f(" ",d(14,18,"HC_DL.TITLE")," "),a(3),f(" ",te(17,20,"HC_DL.TEXT",ee(42,je,i.nomOs()))," "),a(8),u(d(25,23,"HC_DL.S1_T")),a(3),u(te(28,25,"HC_DL.S1_"+i.cleOs(),ee(44,ze,i.fichier()))),a(7),u(d(35,28,"HC_DL.S2_T")),a(3),u(d(38,30,"HC_DL.S2_D")),a(7),u(d(45,32,"HC_DL.S3_T")),a(3),u(d(48,34,"HC_DL.S3_D")),a(3),f(" ",d(51,36,"HC_DL.RETRY_Q")," "),a(2),F("href",i.lien(),k),a(),u(d(54,38,"HC_DL.RETRY")),a(4),f(" ",d(58,40,"HC_DL.CLOSE")," "))},dependencies:[M,O],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:contents}.hcd[_ngcontent-%COMP%]{width:min(560px,100vw - 32px);max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;background:transparent;color:var(--ink, #fff);font-family:Inter,system-ui,sans-serif;line-height:1.55;overflow:auto}.hcd[_ngcontent-%COMP%]::backdrop{background:#05050cb8;backdrop-filter:blur(6px)}.hcd__carte[_ngcontent-%COMP%]{position:relative;padding:32px 28px 24px;border-radius:22px;background:var(--surface, #12121e);border:1px solid var(--border, rgba(255, 255, 255, .1));box-shadow:0 40px 90px -30px #000000e6}.hcd__x[_ngcontent-%COMP%]{position:absolute;top:14px;right:14px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--border, rgba(255, 255, 255, .1));background:var(--surface-2, #1a1a2e);color:var(--ink, #fff);font-size:15px;cursor:pointer}.hcd__x[_ngcontent-%COMP%]:hover{border-color:var(--accent-bright, #54a6f6)}.hcd__etat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:3px 12px;border:1px solid var(--accent-bright, #54a6f6);border-radius:999px;font:700 12px/1.5 Space Mono,monospace;letter-spacing:.08em;text-transform:uppercase}.hcd__titre[_ngcontent-%COMP%]{margin:0 48px 10px 0;font-size:26px;line-height:1.2;font-weight:800;letter-spacing:-.01em}.hcd__texte[_ngcontent-%COMP%]{margin:0 0 20px;color:var(--ink-soft, rgba(255, 255, 255, .66))}.hcd__etapes[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:grid;gap:10px}.hcd__etapes[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;border-radius:14px;border:1px solid var(--border, rgba(255, 255, 255, .1));background:var(--surface-2, #1a1a2e)}.hcd__n[_ngcontent-%COMP%]{flex:0 0 auto;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid var(--accent-bright, #54a6f6);font-weight:800;font-size:14px}.hcd__etapes[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{display:block}.hcd__d[_ngcontent-%COMP%]{display:block;color:var(--ink-soft, rgba(255, 255, 255, .66));font-size:15px}.hcd__relance[_ngcontent-%COMP%]{margin:18px 0 0;font-size:14px;color:var(--ink-soft, rgba(255, 255, 255, .66))}.hcd__relance[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--accent-bright, #54a6f6);text-decoration:underline;text-underline-offset:3px;font-weight:600}.hcd__bas[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:20px}.hcd__fermer[_ngcontent-%COMP%]{min-height:44px;padding:10px 24px;border:0;border-radius:999px;background:var(--accent-bouton, #2173cf);color:#fff;font:inherit;font-weight:600;cursor:pointer}.hcd__fermer[_ngcontent-%COMP%]:hover{background:var(--accent-bouton-survol, #1a66c7)}.hcd__x[_ngcontent-%COMP%]:focus-visible, .hcd__fermer[_ngcontent-%COMP%]:focus-visible, .hcd__relance[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--accent-bright, #54a6f6);outline-offset:3px}@media (prefers-reduced-motion: no-preference){.hcd[open][_ngcontent-%COMP%]{animation:hcd-entre .22s ease-out}}@keyframes _ngcontent-%COMP%_hcd-entre{0%{opacity:0;transform:translateY(16px) scale(.98)}}
1@media (max-width: 480px){.hcd__carte[_ngcontent-%COMP%]{padding:24px 18px 18px}.hcd__titre[_ngcontent-%COMP%]{font-size:22px}}'],changeDetection:0})};var Qe=()=>[0,1];function Ye(n,e){if(n&1&&(r(0,"li",5)(1,"span",6),s(2),l(3,"translate"),o(),de(),r(4,"svg",7),U(5,"path",8)(6,"path",9),o(),ue(),r(7,"span",10),s(8),l(9,"translate"),o(),r(10,"span",11),s(11),l(12,"translate"),o()()),n&2){let t=e.$implicit;a(2),u(d(3,3,"HC_TICKER.P"+t+"_Q")),a(6),u(d(9,5,"HC_TICKER.THEN")),a(3),u(d(12,7,"HC_TICKER.P"+t+"_A"))}}function $e(n,e){if(n&1&&(r(0,"ul",3),S(1,Ye,13,9,"li",5,X),o()),n&2){let t=e.$implicit,i=T();g("aria-hidden",t===1?"true":null),a(),H(i.paires)}}function qe(n,e){n&1&&(r(0,"span",12),s(1,"\u25B6"),o(),s(2),l(3,"translate")),n&2&&(a(2),f(" ",d(3,1,"HC_DEMO.PLAY")," "))}function Je(n,e){n&1&&(r(0,"span",12),s(1,"\u275A\u275A"),o(),s(2),l(3,"translate")),n&2&&(a(2),f(" ",d(3,1,"HC_DEMO.PAUSE")," "))}var We=14,we=class n{nombre=We;pause=b(!1);get paires(){return Array.from({length:this.nombre},(e,t)=>t+1)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=v({type:n,selectors:[["hc-ticker"]],inputs:{nombre:"nombre"},decls:9,vars:8,consts:[["data-testid","hc-ticker",1,"hct"],[1,"hct__fenetre"],[1,"hct__piste"],[1,"hct__liste"],["type","button","data-testid","hc-ticker-pause",1,"hct__btn",3,"click"],[1,"hct__p"],[1,"hct__q"],["viewBox","0 0 44 12","width","44","height","12","aria-hidden","true","focusable","false",1,"hct__fil"],["d","M1 6 H36"],["d","M34 1 L42 6 L34 11",1,"hct__pointe"],[1,"sr-only"],[1,"hct__a"],["aria-hidden","true"]],template:function(t,i){t&1&&(r(0,"section",0),l(1,"translate"),r(2,"div",1)(3,"div",2),S(4,$e,3,1,"ul",3,X),o()(),r(6,"button",4),y("click",function(){return i.pause.set(!i.pause())}),E(7,qe,4,3)(8,Je,4,3),o()()),t&2&&(B("hct--pause",i.pause()),g("aria-label",d(1,5,"HC_TICKER.LABEL")),a(4),H(_e(7,Qe)),a(2),g("aria-pressed",i.pause()),a(),w(i.pause()?7:8))},dependencies:[M,O],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.hct[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;border-top:1px solid var(--border, rgba(255, 255, 255, .1));border-bottom:1px solid var(--border, rgba(255, 255, 255, .1));background:#12121eb8}.hct__fenetre[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}.hct__piste[_ngcontent-%COMP%]{display:flex;width:max-content}.hct__liste[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex:0 0 auto}.hct__p[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:10px;padding:16px 28px;white-space:nowrap;font-size:15px;border-right:1px dashed rgba(255,255,255,.14)}.hct__q[_ngcontent-%COMP%]{color:var(--ink-soft, rgba(255, 255, 255, .66))}.hct__a[_ngcontent-%COMP%]{color:var(--ink, #fff);font-weight:600}.hct__fil[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{fill:none;stroke:var(--accent-bright, #54a6f6);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.hct__fil[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]:first-child{stroke-dasharray:3 4}.hct__btn[_ngcontent-%COMP%]{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;margin:0 12px;min-height:36px;padding:6px 12px;border-radius:999px;border:1px solid var(--border, rgba(255, 255, 255, .1));background:var(--surface-2, #1a1a2e);color:var(--ink, #fff);font:inherit;font-size:13px;cursor:pointer}.hct__btn[_ngcontent-%COMP%]:hover{border-color:var(--accent-bright, #54a6f6)}.hct__btn[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--accent-bright, #54a6f6);outline-offset:3px}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media (prefers-reduced-motion: no-preference){.hct__piste[_ngcontent-%COMP%]{animation:hct-defile 70s linear infinite}.hct--pause[_ngcontent-%COMP%]   .hct__piste[_ngcontent-%COMP%], .hct__fenetre[_ngcontent-%COMP%]:hover   .hct__piste[_ngcontent-%COMP%]{animation-play-state:paused}}@keyframes _ngcontent-%COMP%_hct-defile{to{transform:translate(-50%)}}
1@media (prefers-reduced-motion: reduce){.hct__fenetre[_ngcontent-%COMP%]{mask-image:none}.hct__piste[_ngcontent-%COMP%]{display:block;width:auto}.hct__liste[_ngcontent-%COMP%]{flex-wrap:wrap}.hct__liste[aria-hidden=true][_ngcontent-%COMP%], .hct__btn[_ngcontent-%COMP%]{display:none}.hct__p[_ngcontent-%COMP%]{white-space:normal}}@media (max-width: 600px){.hct__p[_ngcontent-%COMP%]{padding:12px 18px;font-size:14px}.hct__btn[_ngcontent-%COMP%]{margin:0 8px}}'],changeDetection:0})};function Ge(n){return typeof n!="string"?null:/^https:\/\/[^\s"'<>]+$/i.test(n)?n:null}function q(n){let e=Date.parse(n.publishedAt||"");return Number.isFinite(e)?e:-1/0}function Te(n,e,t){let c=(Array.isArray(n)?n:[]).filter(p=>p&&typeof p.slug=="string"&&p.slug&&typeof p.title=="string"&&p.title.trim()),m=new Set(c.filter(p=>Number.isFinite(q(p))).sort((p,R)=>q(R)-q(p)).slice(0,5).map(p=>p.slug)),_=c.map(p=>{let R=q(p),re={};for(let[Ie,G]of Object.entries(p.titleI18n||{}))typeof G=="string"&&G.trim()&&(re[Ie]=G.trim());return{slug:p.slug,titre:p.title.trim(),titres:re,createur:(p.publisher?.name||"").trim(),installations:Math.max(0,Math.floor(Number(p.installCount)||0)),vignette:Ge(p.bannerUrl),nouveau:m.has(p.slug)||Number.isFinite(R)&&t-R<15*864e5,categorie:typeof p.categorie=="string"?p.categorie:null,jeu:typeof p.game=="string"&&p.game.trim()?p.game.trim():null}}),W=Number(e);return{packs:_,sons:Number.isFinite(W)&&W>0?Math.floor(W):null,lu:t}}function ie(n,e,t){return!!n&&Number.isFinite(n.lu)&&e-n.lu<t}function It(n,e){return n.titres[e]||n.titre}function Lt(n){return n===null||!Number.isFinite(n)||n<=0?18e3:n<1e3?Math.floor(n/100)*100:Math.floor(n/1e3)*1e3}function Vt(n){let e=n.filter(c=>!!c.vignette),t=[],i=[];return e.forEach((c,m)=>(m%2===0?t:i).push(c)),[t,i]}function Rt(n,e){let t=new Set,i=[];for(let c of n){if(i.length>=e)break;if(!c.vignette)continue;let m=c.jeu||`pack:${c.slug}`;t.has(m)||(t.add(m),i.push(c))}return i}function Dt(n){return new Set(n.map(e=>e.createur.toLowerCase()).filter(e=>!!e)).size}var V="hc-vitrine",ke=5*60*1e3,Ze=2500,J=null,Se=class n{http=h(ve);etat=h(me);serveur=ge(h(P));charger(){return Z(this,null,function*(){if(!this.serveur&&this.etat.hasKey(V)){let i=this.etat.get(V,null);return this.etat.remove(V),i}let e=Date.now();if(this.serveur&&ie(J,e,ke))return this.etat.set(V,J),J;let t=yield this.lireApi(e);return this.serveur&&(t&&(J=t),this.etat.set(V,t)),t})}estFraiche(e,t=Date.now()){return ie(e,t,ke)}relire(){return this.lireApi(Date.now())}lireApi(e){return Z(this,null,function*(){let t=`${be.api}/api`,[i,c]=yield Promise.all([this.lire(`${t}/bundles?limit=100`),this.lire(`${t}/sound-effects?limit=1`)]);return i?Te(i,c?.total??null,e):null})}lire(e){return ae(this.http.get(e,{transferCache:!1}).pipe(se(Ze),ce(()=>oe(null))))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=le({token:n,factory:n.\u0275fac,providedIn:"root"})};var Xe=["video"];function et(n,e){n&1&&(r(0,"span",4),s(1,"\u275A\u275A"),o(),s(2),l(3,"translate")),n&2&&(a(2),f(" ",d(3,1,"HC_DEMO.PAUSE")," "))}function tt(n,e){n&1&&(r(0,"span",4),s(1,"\u25B6"),o(),s(2),l(3,"translate")),n&2&&(a(2),f(" ",d(3,1,"HC_OVERLAYS.PLAY_JAR")," "))}var nt="assets/apps/houla-connect/v2/",He=class n{zone=h(D);host=h(A);navigateur=Y(h(P));videoRef;dossier=nt;enLecture=b(!1);pauseVoulue=!1;visible=!1;observateur;constructor(){N(()=>this.armer())}ngOnDestroy(){this.observateur?.disconnect()}basculer(){let e=this.videoRef?.nativeElement;e&&(this.enLecture()?(this.pauseVoulue=!0,e.pause(),this.enLecture.set(!1)):(this.pauseVoulue=!1,this.jouer()))}armer(){if(this.navigateur){if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){this.pauseVoulue=!0;return}typeof IntersectionObserver>"u"||this.zone.runOutsideAngular(()=>{this.observateur=new IntersectionObserver(e=>{this.visible=e.some(t=>t.isIntersecting),this.zone.run(()=>this.suivre())},{threshold:.35}),this.observateur.observe(this.host.nativeElement)})}}suivre(){let e=this.videoRef?.nativeElement;e&&(this.visible&&!this.pauseVoulue?this.jouer():!this.visible&&this.enLecture()&&
1(e.pause(),this.enLecture.set(!1)))}jouer(){let e=this.videoRef?.nativeElement;if(!e)return;let t=e.play();this.enLecture.set(!0),t?.catch?.(()=>this.enLecture.set(!1))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=v({type:n,selectors:[["hc-bocal-video"]],viewQuery:function(t,i){if(t&1&&z(Xe,5),t&2){let c;K(c=Q())&&(i.videoRef=c.first)}},decls:7,vars:7,consts:[["video",""],["width","320","height","484","muted","","loop","","playsinline","","preload","none","data-testid","hc-overlays-jar",1,"hbv__video"],["type","video/mp4",3,"src"],["type","button","data-testid","hc-overlays-jar-toggle",1,"hbv__btn",3,"click"],["aria-hidden","true"]],template:function(t,i){if(t&1){let c=j();r(0,"video",1,0),l(2,"translate"),U(3,"source",2),o(),r(4,"button",3),y("click",function(){return x(c),C(i.basculer())}),E(5,et,4,3)(6,tt,4,3),o()}t&2&&(g("poster",i.dossier+"bocal-poster.webp",k)("aria-label",d(2,5,"HC_OVERLAYS.ALT_BOCAL")),a(3),F("src",i.dossier+"bocal.mp4",k),a(),g("aria-pressed",!i.enLecture()),a(),w(i.enLecture()?5:6))},dependencies:[M,O],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.hbv__video[_ngcontent-%COMP%]{display:block;width:100%;height:auto;border-radius:14px;background:#12121e}.hbv__btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px;max-width:100%;margin:10px auto 0;min-height:36px;padding:6px 14px;border-radius:18px;border:1px solid var(--border, rgba(255, 255, 255, .1));background:var(--surface-2, #1a1a2e);color:var(--ink, #fff);font:inherit;font-size:13px;line-height:1.3;text-align:center;cursor:pointer}.hbv__btn[_ngcontent-%COMP%]:hover{border-color:var(--accent-bright, #54a6f6)}.hbv__btn[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--accent-bright, #54a6f6);outline-offset:3px}'],changeDetection:0})};export{He as a,Ce as b,Fe as c,Be as d,ye as e,Oe as f,ft as g,ht as h,Ee as i,we as j,It as k,Lt as l,Vt as m,Rt as n,Dt as o,Se as p};

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.