1import{a as c,r as Pe,o as He,b as Ie,B as t,g as o,E as y,D as m,n as re,i as oe,j as e,t as u,p as i,F as x,q as we,x as ie,v as Ce,C as I,u as p,z as A,T as de,y as z,k as E,e as V,A as Ve,K as Be,L as Ee}from"./runtime-dom.esm-bundler-Cd9DCJMt.js";import{l as P,u as Se,r as ce}from"./app-DYGGXLIn.js";import{H as me}from"./hls-Cp2x8l1r.js";import{i as j,A as Re}from"./AppLayout-BfQqOvJi.js";import{P as Le}from"./PixPro-DWq6GYJQ.js";import{_ as _e}from"./FocalDragger-B6BMhmd6.js";import{_ as Oe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as Fe}from"./SmartAd-Dp2kNzK6.js";import{u as Ue}from"./useNoRightClick-dhZ3wQTL.js";const Ne={key:0,class:"absolute inset-0 overflow-hidden"},qe=["src","alt","title"],Ke={key:1,class:"absolute inset-0 bg-gradient-to-br from-gray-900 via-gray-800 to-black"},We={key:1,class:"absolute inset-0 bg-gradient-to-br from-gray-900 via-gray-800 to-black"},De={key:2,class:"absolute inset-0 flex flex-col justify-end p-6 lg:p-10 z-10"},Xe={key:0,class:"mb-3"},Je={class:"inline bg-[var(--color-primary)] text-white text-xs font-black uppercase tracking-widest px-3 py-1 rounded"},Ye={key:0,class:"ml-2 text-white text-sm font-bold"},Ze={class:"flex gap-2 mt-1"},Ge=["disabled"],Qe={key:0,class:"text-green-400 text-xs font-bold self-center"},et={class:"text-xl md:text-3xl lg:text-4xl font-black text-white leading-tight mb-2 max-w-2xl drop-shadow-lg"},tt={key:0,class:"text-gray-300 text-sm line-clamp-2 mb-4 max-w-xl"},lt={key:3,class:"absolute bottom-10 left-6 z-10 pointer-events-none"},ot={key:0,class:"absolute top-3 right-3 z-40 flex items-center gap-1.5 flex-wrap justify-end"},st={class:"relative group/trans"},at={key:0,class:"absolute top-full right-0 mt-1 bg-gray-900/95 backdrop-blur-sm border border-white/10 rounded-xl shadow-2xl overflow-hidden z-50 w-44"},rt=["onClick"],it={class:"text-base"},nt={key:0,class:"w-3 h-3 ml-auto text-[var(--color-primary)]",fill:"currentColor",viewBox:"0 0 20 20"},ut={key:0,class:"text-center py-1.5 text-[10px] text-gray-400 animate-pulse"},ct={key:1,class:"text-center py-1.5 text-[10px] text-green-400 font-bold"},dt={class:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},vt={key:0,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0zM2.458 12C3.732 5.943 7.523 3 12 3c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"},pt={key:1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59"},ft={key:0,class:"absolute top-3 left-1/2 -translate-x-1/2 z-40"},gt={class:"bg-black/80 backdrop-blur-sm rounded-xl px-4 py-2.5 flex items-center gap-3 shadow-xl border border-white/10"},ht=["disabled"],mt={key:0,class:"w-3.5 h-3.5 animate-spin",fill:"none",viewBox:"0 0 24 24"},bt={key:0,class:"text-green-400 text-xs font-bold"},yt={key:1,class:"text-red-400 text-xs font-bold"},xt={class:"absolute bottom-4 left-6 flex items-center gap-2 z-20"},kt=["onClick"],_t={class:"absolute bottom-0 left-0 right-0 h-0.5 bg-white/10 z-20"},wt={__name:"HeroSlider",props:{slides:{type:Array,default:()=>[]},duration:{type:Number,default:6e3},heroTransition:{type:String,default:"fondu"}},setup(d){const C=d,Q=[{id:"fondu",label:"Fondu",icon:"â¬"},{id:"glissement",label:"Glissement",icon:"â¬
"},{id:"zoom-doux",label:"Zoom doux",icon:"ð"},{id:"ken-burns",label:"Ken Burns",icon:"ð¬"},{id:"revelation",label:"Révélation",icon:"â¶"}],F=Se(),q=V(()=>(F.props.auth?.roles??[]).some(g=>["superadmin","admin","editor","journalist"].includes(g))),k=c(C.heroTransition),_=c(!1),J=c(!1),K=c(!1);async function B(g){k.value=g,J.value=!0;try{const n=document.querySelector('meta[name="csrf-token"]')?.content??"";await fetch("/7studio/hero-transition",{method:"PUT",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":n},body:JSON.stringify({transition:g})}),K.value=!0,setTimeout(()=>{K.value=!1,_.value=!1},1500)}catch(n){console.error(n)}finally{J.value=!1}}const Y=c(!1),R=c(null),ee=c(null);function W(){const g=v.value;g?.id&&g?.image&&(R.value=g.id,ee.value=g.image,Y.value=!0)}function U(){Y.value=!1,location.reload()}const T=V(()=>
1C.slides.length?C.slides:[{title:"7INFO",subtitle:"L'information vue de Côte d'Ivoire"}]),f=Pe(Array.from({length:Math.max(C.slides.length,1)},(g,n)=>{const s=C.slides[n]??{};return{id:s.id??null,title:s.title??"",surtitle:s.surtitle??null,subtitle:s.subtitle??"",image:s.image??null,link:s.link??null,category:s.category??null,focal_x:s.focal_x??50,focal_y:s.focal_y??50,hide_overlay:s.hide_overlay??!1}})),b=c(0),v=V(()=>f[b.value]??f[0]),H=V(()=>k.value==="ken-burns"?"anim-kenburns":k.value==="zoom-doux"?"anim-zoom-doux":""),se=c(0),ve=c(!1);let Z=null;function D(g){M.value=!1,$.value=!1,ve.value=!0,b.value=g,se.value=0,clearInterval(Z),requestAnimationFrame(()=>requestAnimationFrame(()=>{ve.value=!1,se.value=100,te()}))}function pe(){D((b.value+1)%T.value.length)}function $e(){D((b.value-1+T.value.length)%T.value.length)}function te(){M.value||$.value||(clearInterval(Z),Z=setInterval(pe,C.duration))}He(()=>{se.value=100,te()}),Ie(()=>clearInterval(Z));const fe=c(!1);function ge(){!M.value&&!$.value&&(fe.value=!1,_.value=!1)}const Me=()=>document.querySelector('meta[name="csrf-token"]')?.content??"";async function G(g,n){const s=await fetch(g,{method:"PUT",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":Me()},body:JSON.stringify(n)});if(!s.ok)throw new Error("API "+s.status);return s.json()}const M=c(!1),ae=c(!1),N=c(""),ne=c("");function be(){$.value=!1,M.value=!0,clearInterval(Z)}function ye(g){f[b.value]={...f[b.value],focal_x:g}}function je(g){f[b.value]={...f[b.value],focal_y:g}}async function L(){const g=f[b.value]?.id;if(g){ae.value=!0,N.value="",ne.value="";try{const n=f[b.value].focal_x,s=f[b.value].focal_y;await G("/7studio/hero/"+g,{cover_focal_x:n,cover_focal_y:s}),N.value="success",M.value=!1,setTimeout(()=>{N.value="",te()},2e3)}catch(n){N.value="error",ne.value=n.message||"Erreur réseau",setTimeout(()=>{N.value=""},4e3)}finally{ae.value=!1}}}async function Ae(){const g=f[b.value]?.id;if(!g)return;const n=!f[b.value].hide_overlay;f[b.value].hide_overlay=n;try{await G("/7studio/hero/"+g,{hero_hide_overlay:n})}catch{f[b.value].hide_overlay=!n}}const $=c(!1),X=c(!1),O=c(!1),S=Pe({title:"",subtitle:""});function ze(){M.value=!1,$.value=!$.value,$.value?(S.title=f[b.value]?.title??"",S.subtitle=f[b.value]?.subtitle??"",clearInterval(Z)):te()}function Te(){$.value=!1,te()}async function ue(){const g=f[b.value]?.id;if(g){X.value=!0;try{await G("/7studio/hero/"+g,{title:S.title.trim(),subtitle:S.subtitle.trim()||null}),f[b.value].title=S.title.trim(),f[b.value].subtitle=S.subtitle.trim(),O.value=!0,setTimeout(()=>{O.value=!1,$.value=!1,te()},1500)}catch(n){console.error(n)}finally{X.value=!1}}}return(g,n)=>(t(),o("div",{class:"relative overflow-hidden bg-gray-900 w-full",style:{"aspect-ratio":"1920/690"},onMouseover:n[5]||(n[5]=s=>fe.value=!0),onMouseleave:ge},[y(de,{name:k.value,mode:"default"},{default:m(()=>[(t(),o("div",{key:b.value,class:"absolute inset-0"},[v.value.id?(t(),o("div",Ne,[y(_e,{"article-id":v.value.id,"focal-x":v.value.focal_x??50,"focal-y":v.value.focal_y??50,"show-recadrer-button":!1,"show-save-bar":!1,"external-active":M.value,class:"h-full w-full","onUpdate:focalX":ye,"onUpdate:focalY":je},{default:m(({objectPosition:s})=>[v.value.image?(t(),o("img",{key:0,src:v.value.image,alt:(v.value.surtitle?v.value.surtitle+" - ":"")+v.value.title,title:(v.value.surtitle?v.value.surtitle+" - ":"")+v.value.title,class:oe(["absolute inset-0 w-full h-full object-cover transition-[object-position] duration-75",H.value]),style:re({objectPosition:s})},null,14,qe)):(t(),o("div",Ke))]),_:1}
1,8,["article-id","focal-x","focal-y","external-active"])])):(t(),o("div",We)),n[8]||(n[8]=e("div",{class:"absolute inset-0 bg-gradient-to-t from-black via-black/40 to-black/10 pointer-events-none"},null,-1)),v.value.hide_overlay?i("",!0):(t(),o("div",De,[v.value.category?(t(),o("div",Xe,[e("span",Je,u(v.value.category),1),v.value.surtitle?(t(),o("span",Ye,u(v.value.surtitle),1)):i("",!0)])):i("",!0),$.value?(t(),o(x,{key:1},[we(e("input",{"onUpdate:modelValue":n[0]||(n[0]=s=>S.title=s),class:"text-xl md:text-3xl lg:text-4xl font-black text-white leading-tight mb-2 max-w-2xl bg-transparent border-b-2 border-white/50 focus:border-[var(--color-primary)] outline-none w-full",placeholder:"Titre...",onKeyup:ie(ue,["enter"])},null,544),[[Ce,S.title]]),we(e("input",{"onUpdate:modelValue":n[1]||(n[1]=s=>S.subtitle=s),class:"text-gray-300 text-sm mb-4 max-w-xl bg-transparent border-b border-white/30 focus:border-[var(--color-primary)] outline-none w-full",placeholder:"Sous-titre (optionnel)..."},null,512),[[Ce,S.subtitle]]),e("div",Ze,[e("button",{onClick:ue,disabled:X.value,class:"bg-[var(--color-primary)] hover:bg-red-700 disabled:opacity-50 text-white text-xs font-black px-3 py-1.5 rounded-lg"},u(X.value?"Enregistrement...":"â Sauvegarder"),9,Ge),e("button",{onClick:Te,class:"bg-white/20 text-white text-xs px-3 py-1.5 rounded-lg"},"Annuler"),O.value?(t(),o("span",Qe,"â Sauvegardé")):i("",!0)])],64)):(t(),o(x,{key:2},[e("h2",et,u(v.value.title),1),v.value.subtitle?(t(),o("p",tt,u(v.value.subtitle),1)):i("",!0),v.value.link?(t(),I(p(P),{key:1,href:v.value.link,class:"text-white text-sm font-bold border-b border-white/40 hover:border-[var(--color-primary)] hover:text-[var(--color-primary)] transition-colors w-fit pb-0.5"},{default:m(()=>[...n[6]||(n[6]=[A(" Lire la suite â ",-1)])]),_:1},8,["href"])):i("",!0)],64))])),v.value.hide_overlay&&q.value?(t(),o("div",lt,[...n[7]||(n[7]=[e("span",{class:"bg-black/50 border border-white/20 text-white/50 text-[10px] font-black uppercase tracking-widest px-2 py-1 rounded"},"ESPACE PUB â texte masqué",-1)])])):i("",!0)]))]),_:1},8,["name"]),y(de,{name:"admin-bar"},{default:m(()=>[q.value&&fe.value&&!M.value?(t(),o("div",ot,[e("div",st,[e("button",{class:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold bg-black/60 border border-white/10 text-white hover:bg-black/80 backdrop-blur-sm shadow-lg",onClick:n[2]||(n[2]=z(s=>_.value=!_.value,["stop"]))},[n[9]||(n[9]=e("svg",{class:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 10l4.553-2.069A1 1 0 0121 8.82v6.36a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)),A(" "+u(Q.find(s=>s.id===k.value)?.label??"Transition"),1)]),_.value?(t(),o("div",at,[(t(),o(x,null,E(Q,s=>e("button",{key:s.id,onClick:z(l=>B(s.id),["stop"]),class:oe(["w-full flex items-center gap-2.5 px-3 py-2.5 text-xs font-semibold text-left transition-colors hover:bg-white/10",k.value===s.id?"text-[var(--color-primary)] bg-white/5":"text-white"])},[e("span",it,u(s.icon),1),A(" "+u(s.label)+" ",1),k.value===s.id?(t(),o("svg",nt,[...n[10]||(n[10]=[e("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1)])])):i("",!0)],10,rt)),64)),J.value?(t(),o("div",ut,"Enregistrement...")):i("",!0),K.value?(t(),o("div",ct,"â Sauvegardé")):i("",!0)])):i("",!0)]),e("button",{onClick:z(Ae,["stop"]),class:oe(["flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold backdrop-blur-sm shadow-lg border transition-all",v.value.hide_overlay?"bg-[var(--color-primary)] border-[var(--color-primary)] text-white":"bg-black/60 border-white/10 text-white hover:bg-black/80"])},[(t(),o("svg",dt,[v.value.hide_overlay?(t(),o("path",pt)):(t(),o("path",vt))])),A(" "+u(v.value.hide_overlay?"Afficher texte":"Mode bannière"),1)],2),e("button",{onClick:z(ze,["stop"]),class:oe(["flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold backdrop-blur-sm shadow-lg border transition-all",$.value?"bg-amber-500 border-amber-500 text-white":"bg-black/60 border-white/10 text-white hover:bg-black/80"])},[...n[11]||(n[11]=[e("svg",{class:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1),A(" Modifier texte ",-1)])],2),e("button",{onClick:z(be,["stop"]),class:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold bg-[var(--color-primary)] text-white hover:bg-red-700 backdrop-blur-sm shadow-lg transition-colors"},[...n[12]||(n[12]=[e("svg",{class:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 11l5-5m0 0l5 5m-5-5v12"})],-1),A(" ð¯ Recadrer ",-1)])]),e("button",{onClick:z(W,["stop"]),class:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold bg-black/60 border border-white/10 text-white hover:bg-black/80 backdrop-blur-sm shadow-lg"},[...n[13]||(n[13]=[e("svg",{class:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.
1664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9zM15 13a3 3 0 11-6 0 3 3 0 016 0z"})],-1),A(" âï¸ PixPro ",-1)])])])):i("",!0)]),_:1}),y(Le,{modelValue:Y.value,"onUpdate:modelValue":n[3]||(n[3]=s=>Y.value=s),"article-id":R.value,"article-cover-url":ee.value,"show-fab":!1,onImageUpdated:U},null,8,["modelValue","article-id","article-cover-url"]),y(de,{name:"admin-bar"},{default:m(()=>[M.value?(t(),o("div",ft,[e("div",gt,[n[15]||(n[15]=e("span",{class:"text-white text-xs font-bold"},"ð¯ Cliquez sur l'image pour centrer le cadrage",-1)),e("button",{onClick:L,disabled:ae.value,class:"bg-[var(--color-primary)] hover:bg-red-700 disabled:opacity-50 text-white text-xs font-black px-3 py-1.5 rounded-lg flex items-center gap-1.5"},[ae.value?(t(),o("svg",mt,[...n[14]||(n[14]=[e("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4",class:"opacity-25"},null,-1),e("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8v8H4z",class:"opacity-75"},null,-1)])])):i("",!0),A(" "+u(ae.value?"Enreg...":"â Valider"),1)],8,ht),e("button",{onClick:n[4]||(n[4]=s=>{M.value=!1,te()}),class:"text-white/60 hover:text-white text-xs px-2"},"Annuler"),N.value==="success"?(t(),o("span",bt,"â Sauvegardé")):i("",!0),N.value==="error"?(t(),o("span",yt,u(ne.value),1)):i("",!0)])])):i("",!0)]),_:1}),e("div",xt,[(t(!0),o(x,null,E(T.value,(s,l)=>(t(),o("button",{key:l,onClick:w=>D(l),class:oe(["rounded-full transition-all duration-300",b.value===l?"w-6 h-2 bg-[var(--color-primary)]":"w-2 h-2 bg-white/50 hover:bg-white/80"])},null,10,kt))),128))]),e("button",{onClick:$e,class:"absolute left-3 top-1/2 -translate-y-1/2 z-20 w-9 h-9 rounded-full bg-black/40 hover:bg-black/70 flex items-center justify-center text-white transition"},[...n[16]||(n[16]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.5",d:"M15 19l-7-7 7-7"})],-1)])]),e("button",{onClick:pe,class:"absolute right-3 top-1/2 -translate-y-1/2 z-20 w-9 h-9 rounded-full bg-black/40 hover:bg-black/70 flex items-center justify-center text-white transition"},[...n[17]||(n[17]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.5",d:"M9 5l7 7-7 7"})],-1)])]),e("div",_t,[e("div",{class:"h-full bg-[var(--color-primary)]",style:re({width:se.value+"%",transition:ve.value?"none":`width ${d.duration}ms linear`})},null,4)])],32))}},Ct=Oe(wt,[["__scopeId","data-v-20fd4445"]]),St={class:"flex items-center justify-between mb-4"},$t={class:"flex items-center gap-2 group/title"},Mt=["onKeydown"],jt={key:0,class:"text-[10px] text-gray-400 animate-pulse"},At={key:1,class:"text-[10px] text-green-500 font-bold"},zt={class:"text-sm font-black text-gray-900 uppercase tracking-widest border-l-4 border-[var(--color-primary)] pl-3"},Tt=["href"],ke={__name:"SectionHeader",props:{title:{type:String,required:!0},link:{type:String,default:null},linkLabel:{type:String,default:"Voir tout"},sectionKey:{type:String,default:null},page:{type:String,default:"home"}},setup(d){const C=d,Q=Se(),F=V(()=>Q.props.auth?.roles??[]),q=V(()=>C.sectionKey&&F.value.some(T=>["superadmin","admin","editor"].includes(T))),k=c(C.title),_=c(C.linkLabel),J=c(!1),K=c(""),B=c(!1),Y=c(!1),R=c(null);async function ee(){K.value=k.value,J.value=!0,await Ve(),R.value?.select()}function W(){J.value=!1,K.value=""}async function U(){const T=K.value.trim();if(!T||T===k.value){W();return}B.value=!0;try{const f=document.querySelector('meta[name="csrf-token"]')?.content??"";(await fetch(`/7studio/section/${C.page}/${C.sectionKey}`,{method:"PUT",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":f},body:JSON.stringify({title:T})})).ok&&(k.value=T,Y.value=!0,setTimeout(()=>{Y.value=!1},2e3))}finally{B.value=!1,J.value=!1}}return(T,f)=>(t(),o("div",St,[e("div",$t,[J.value?(t(),o(x,{key:0},[we(e("input",{ref_key:"inputRef",ref:R,"onUpdate:modelValue":f[0]||(f[0]=b=>K.value=b),class:"text-sm font-black text-gray-900 uppercase tracking-widest border-l-4 border-[var(--color-primary)] pl-3 bg-white border-b-2 border-b-[var(--color-primary)] outline-none rounded-none w-48",onKeydown:[ie(z(U,["prevent"]),["enter"]),ie(W,["escape"])],onBlur:U,maxlength:"120"},null,40,Mt),[[Ce,K.value]]),B.value?(t(),o("span",jt,"Enregistrementâ¦")):Y.value?(t(),o("span",At,"â Sauvegardé")):i("",!0),e("button",{onClick:z(W,["prevent"]),class:"text-gray-400 hover:text-gray-600 text-xs ml-1"},"â")],64)):(t(),o(x,{key:1},[e("h2",zt,u(k.value),1),q.value?(t(),o("button",{key:0,onClick:z(ee,["prevent"]),class:"opacity-0 group-hover/title:opacity-100 transition-opacity text-gray-400 hover:text-[var(--color-primary)] p-0.5 rounded",title:"Modifier le titre"},[...f[1]||(f[1]=[e("svg",{class:"w-3.5 h-3.5",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931z"})],-1)])])):i("",!0)],64))]),d.link?(t(),o("a",{key:0,href:d.link,class:"text-xs text-gray-500 hover:text-[var(--color-primary)] font-medium transition-colors whitespace-nowrap"},u(_.value)+" â ",9,Tt)):i("",!0)]))}},Pt={key:0,class:"flex items-center gap-3 lg:gap-4 shrink-0 ml-auto pl-5 lg:pl-8"},Et=["href","title","aria-label"],Ft=["fill"],Ht=["d"],It={__name:"SocialLinks",setup(d){const C=[{key:"facebook",label:"Facebook",color:"#1877F2",url:"https://facebook.com/7infoci",path:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"},{key:"youtube",label:"YouTube",color:"#FF0000",url:"https://www.youtube.com/@7infoci",path:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"},{key:"instagram",label:"Instagram",color:"#E4405F",url:"https://www.instagram.com/7infoci/",path:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.00
17-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"},{key:"tiktok",label:"TikTok",color:"#000000",url:"https://www.tiktok.com/@7infoci",path:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"},{key:"x",label:"X",color:"#000000",url:"https://x.com/7infoci",path:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"}],Q=Se(),F=V(()=>{const q=Q.props.social??{};return C.map(k=>{const _=(Object.prototype.hasOwnProperty.call(q,k.key)?q[k.key]:k.url)??"";return{...k,url:String(_).trim()}}).filter(k=>/^https?:\/\//i.test(k.url))});return(q,k)=>F.value.length?(t(),o("div",Pt,[(t(!0),o(x,null,E(F.value,_=>(t(),o("a",{key:_.key,href:_.url,target:"_blank",rel:"noopener noreferrer",title:"Suivez 7INFO sur "+_.label,"aria-label":"7INFO sur "+_.label,class:"flex items-center justify-center w-10 h-10 rounded-xl hover:bg-gray-100 hover:scale-110 transition-all"},[(t(),o("svg",{class:"w-6 h-6",viewBox:"0 0 24 24",fill:_.color,"aria-hidden":"true"},[e("path",{d:_.path},null,8,Ht)],8,Ft))],8,Et))),128))])):i("",!0)}},Lt=["content"],Ot=["content"],Vt=["content"],Bt=["content"],Rt=["content"],Ut={class:"bg-white border-b-2 border-gray-900"},Nt={class:"max-w-screen-2xl mx-auto px-4 lg:px-8 py-3 flex flex-col sm:flex-row items-center gap-3"},qt={class:"relative flex-1 min-w-0"},Kt=["onKeydown"],Wt={key:0,class:"absolute top-full left-0 right-0 mt-1 bg-white border border-gray-200 rounded-xl shadow-2xl z-50 overflow-hidden"},Dt={key:0,class:"px-4 py-3 text-sm text-gray-500 flex items-center gap-2"},Xt={key:0,class:"px-3 pt-2 pb-1"},Jt=["src","alt"],Yt={key:1,class:"w-10 h-8 bg-gray-100 rounded shrink-0 flex items-center justify-center"},Zt={class:"text-sm text-gray-800 line-clamp-1 flex-1"},Gt={class:"border-t border-gray-100 px-3 py-2"},Qt={class:"flex items-center gap-2 shrink-0 w-full sm:w-auto justify-end"},el={class:"flex items-center gap-2 text-sm text-gray-700 hover:text-[var(--color-primary)] transition-colors px-2 py-2 rounded-lg hover:bg-gray-100"},tl={class:"w-7 h-7 bg-[var(--color-primary)] rounded-full flex items-center justify-center text-white font-bold text-xs shrink-0"},ll={class:"max-w-[120px] truncate font-semibold"},ol={key:0,class:"absolute right-0 top-full pt-1 z-50 min-w-44"},sl={class:"bg-white border border-gray-200 rounded-xl shadow-xl py-1"},al={class:"px-4 py-2.5 border-b border-gray-100"},rl={class:"text-sm font-bold text-gray-800 truncate"},il={class:"flex flex-col lg:flex-row"},nl={class:"lg:w-2/3 bg-white"},ul={class:"px-4 lg:px-6 xl:px-8 py-8 space-y-10"},cl={key:0},dl={class:"grid grid-cols-2 sm:grid-cols-4 gap-3"},vl={class:"absolute inset-0"},pl=["src","alt"],fl={key:1,class:"text-gray-400 font-bold text-sm absolute inset-0 flex items-center justify-center"},gl={key:1},hl={class:"grid grid-cols-2 sm:grid-cols-4 gap-3 relative"},ml=["src","alt"],bl={key:1,class:"absolute inset-0 bg-gradient-to-br from-gray-800 to-gray-900"},yl={key:2,class:"absolute top-2 left-2"},xl={class:"bg-[var(--color-primary)] text-white text-[10px] font-black uppercase tracking-widest px-2 py-0.5 rounded"},kl={class:"absolute bottom-0 left-0 right-0 p-3"},_l={class:"text-xs font-bold text-white line-clamp-3 leading-snug"},wl={class:"text-[10px] text-gray-400 mt-1"},Cl={key:0,class:"text-sm text-gray-400 italic text-center py-4"},Sl={key:2},$l={class:"grid grid-cols-2 sm:grid-cols-4 gap-3"},Ml=["onClick"],jl=["src","alt"],Al={key:1,class:"absolute inset-0 bg-gray-800"},zl={class:"absolute bottom-0 left-0 right-0 p-2"},Tl={key:0,class:"text-[var(--color-primary)] text-xs font-bold mb-0.5"},Pl={class:"text-xs font-semibold text-white truncate"},El={class:"absolute inset-0 bg-gray-800 flex items-center justify-center"},Fl={class:"text-gray-400 text-xs text-center px-2 font-medium"},Hl={class:"absolute bottom-0 left-0 right-0 p-2"},Il={class:"text-xs font-bold text-white truncate"},Ll={key:3},Ol={class:"grid grid-cols-2 sm:grid-cols-4 gap-3"},Vl=["src","alt"],Bl={key:1,class:"absolute inset-0 bg-gray-200 flex items-center justify-center p-3"},Rl={class:"text-gray-700 font-bold text-center text-sm"},Ul={key:2,class:"absolute top-2 left-2 bg-[var(--color-primary)] text-white text-xs font-black px-2 py-0.5 rounded"},Nl={class:"absolute bottom-0 left-0 right-0 p-2"},ql={class:"text-xs font-bold text-white truncate"},Kl={key:0,class:"text-gray-300 text-xs truncate"},Wl={key:4,class:"flex justify-center mt-6"},Dl={key:5},Xl={key:0,class:"border-t border-gray-200 relative mb-4"},Jl={class:"flex items-center justify-between mb-4"},Yl={class:"flex items-center gap-2"},Zl={class:"font-black text-base text-gray-900 uppercase tracking-wide"},Gl={key:1,class:"grid grid-cols-2 sm:grid-cols-4 gap-3"},Ql=["src","alt"],eo=["src","alt"],to={key:2,class:"absolute top-1.5 left-1.5 bg-[var(--color-primary)] text-white text-[9px] font-black px-1.5 py-0.5 rounded uppercase"},lo={class:"absolute bottom-0 left-0 right-0 p-2"},oo={class:"text-xs font-bold text-white line-clamp-2 leading-snug"},so={key:2,class:"grid grid-cols-1 sm:grid-cols-3 gap-3"},ao=["src","alt"],ro=["src","alt"],io={key:2,class:"absolute top-2 right-2 z-10 opacity-0 group-hover:opacity-100 transition"},no=["onClick"],uo={class:"absolute bottom-0 left-0 right-0 p-3 pointer-events-none"}
1,co={class:"text-sm font-bold text-white line-clamp-3"},vo={class:"flex flex-col gap-2"},po={class:"w-16 h-12 rounded overflow-hidden bg-gray-200 shrink-0"},fo=["src","alt"],go={class:"text-xs font-semibold text-gray-800 group-hover:text-[var(--color-primary)] line-clamp-3 transition-colors"},ho={key:3},mo=["src","alt"],bo=["src","alt"],yo={key:2,class:"absolute top-2 right-2 z-10 opacity-0 group-hover:opacity-100 transition"},xo=["onClick"],ko={class:"absolute bottom-0 left-0 right-0 p-6 pointer-events-none"},_o={class:"text-xl font-black text-white line-clamp-2"},wo={key:0,class:"text-sm text-gray-300 mt-1 line-clamp-2"},Co={class:"hidden lg:block lg:w-1/3 border-l border-gray-200",style:{"padding-top":"68px"}},So={class:"shrink-0"},$o={class:"aspect-video bg-black relative"},Mo={class:"absolute bottom-2 right-2 flex items-center gap-1.5 z-10"},jo=["title"],Ao={key:0,class:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 24 24"},zo={key:1,class:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 24 24"},To={class:"flex items-center justify-between px-4 py-2 bg-[#161920] border-b border-white/5"},Po={class:"text-gray-400 text-xs"},Eo={key:0,class:"border-b border-white/10"},Fo={class:"w-16 h-12 rounded overflow-hidden bg-gray-800 shrink-0"},Ho=["src"],Io={key:1,class:"w-full h-full bg-gray-700"},Lo={class:"flex-1 min-w-0"},Oo={key:0,class:"text-[var(--color-primary)] text-xs font-bold mb-0.5 uppercase"},Vo={class:"text-sm font-semibold text-white group-hover:text-gray-200 transition-colors line-clamp-2 leading-snug"},Bo={key:1,class:"divide-y divide-white/5"},Ro={class:"w-16 h-12 rounded overflow-hidden bg-gray-800 shrink-0"},Uo=["src","alt"],No={key:1,class:"w-full h-full bg-gray-700"},qo={class:"flex-1 min-w-0"},Ko={key:0,class:"text-[var(--color-primary)] text-xs font-bold mb-0.5 uppercase"},Wo={class:"text-sm font-semibold text-gray-200 group-hover:text-white transition-colors line-clamp-2 leading-snug"},Do={class:"text-xs text-gray-500 mt-1"},Xo=["src","alt"],Jo={key:1,class:"bg-white/5 rounded-lg p-4 text-center"},Yo={class:"text-white/60 text-xs font-bold"},Zo=["innerHTML"],Go={key:2,class:"m-3 border border-dashed border-white/20 rounded-lg p-4 text-center"},Qo={key:1,class:"flex-1 flex items-center justify-center"},es={class:"relative w-full max-w-4xl z-10"},ts={class:"aspect-video bg-black rounded-xl overflow-hidden shadow-2xl"},ls=["src"],os=["src"],ss={class:"mt-3 px-1"},as={class:"text-white font-bold text-base leading-snug"},rs={class:"flex items-center gap-3 mt-1 text-gray-400 text-xs"},is={key:0,class:"text-[var(--color-primary)] font-bold"},ns="https://video1.getstreamhosting.com:1936/8042/8042/playlist.m3u8",us={__name:"Home",props:{slides:{type:Array,default:()=>[]},sections:{type:Object,default:()=>({})},categories:{type:Array,default:()=>[]},articlesByCategory:{type:Object,default:()=>({})},homeSections:{type:Array,default:()=>[]},allEmissions:{type:Array,default:()=>[]},allWebpressArticles:{type:Array,default:()=>[]},editorialFeed:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},live:Object,homeSidebarWidgets:{type:Array,default:()=>[]},homeSidebarContent:{type:String,default:"editorial_pub"},adZones:{type:Object,default:()=>({})},meta:{type:Object,default:()=>({})},sidebarPinnedArticle:{type:Object,default:null}},setup(d){const C=c(null),Q=c(null);let F=null,q=null;function k(s){const l=B.live?.stream_url||ns;me.isSupported()?(F=new me({lowLatencyMode:!0}),F.loadSource(l),F.attachMedia(s),F.on(me.Events.ERROR,(w,a)=>{if(a.fatal)switch(a.type){case me.ErrorTypes.NETWORK_ERROR:F.startLoad();break;case me.ErrorTypes.MEDIA_ERROR:F.recoverMediaError();break;default:F.destroy();break}}),s.play().catch(()=>{})):s.canPlayType("application/vnd.apple.mpegurl")&&(s.src=l,s.play().catch(()=>{}))}const _=c(!0);function J(){const s=C.value;s&&(_.value=!_.value,s.muted=_.value)}function K(){const s=C.value;s&&(s.requestFullscreen?s.requestFullscreen():s.webkitRequestFullscreen&&s.webkitRequestFullscreen())}Ue();const B=d,Y=Se(),R=V(()=>Y.props.auth??{}),ee=V(()=>(R.value?.roles??[]).some(s=>["superadmin","admin","editor"].includes(s))),W=V(()=>(R.value?.roles??[]).some(s=>["superadmin","admin","editor","journalist"].includes(s))),U=c(""),T=c(!1),f=c(!1),b=c(null),v=c(null),H=c({articles:[],categories:[]});let se=null;function ve(){if(clearTimeout(se),v.value=null,U.value.trim().length<2){H.value={articles:[],categories:[]},f.value=!1;return}f.value=!0,se=setTimeout(async()=>{try{const s=await fetch(route("search.suggestions")+"?q="+encodeURIComponent(U.value));H.value=await s.json()}finally{f.value=!1}},300)}function Z(){U.value.trim().length<2||(D(),ce.get(route("search"),{q:U.value.trim()}))}function D(){T.value=!1,v.value=null}const pe=V(()=>{const s=H.value.categories.map((w,a)=>"c"+a),l=H.value.articles.map((w,a)=>"a"+a);return[...s,...l]});function $e(){const s=pe.value;if(!s.length)return;const l=s.indexOf(v.value);v.value=s[(l+1)%s.length]}function te(){const s=pe.value;if(!s.length)return;const l=s.indexOf(v.value);v.value=s[(l-1+s.length)%s.length]}function fe(){if(!v.value){Z();return}const s=v.value;if(s.startsWith("c")){const l=parseInt(s.slice(1)),w=H.value.categories[l];w&&(D(),ce.visit(route("category.show",w.slug)))}else{const l=parseInt(s.slice(1)),w=H.value.articles[l];w&&(D(),ce.visit(route("article.show",w.slug)))}}const ge=c(!1);function Me(){ce.post(route("logout"))}const G=c([]),M=c(B.homeSidebarContent),ae=V(()=>B.slides.map(s=>({id:s.id,title:s.title,surtitle:s.surtitle??null,subtitle:s.subtitle??s.excerpt??null,image:j(s.cover_image_path),link:route("webpress.article.show",s.slug),category:s.category?.name??null,focal_x:s.cover_focal_x??50,focal_y:s.cover_focal_y??50,hide_overlay:s.hero_hide_overlay??!1}))),N=c(!1),ne=c(null),be=c(null);function ye(s,l){ne.value=s,be.value=l?j(l):null,N.value=!0}function je(){N.value=!1,location.reload()}const L=c(null);function Ae(s){if(!s)return"";const l=s.includes("?")?"&":"?";return`${s}${l}autoplay=1&rel=0&modestbranding=1`}const $=c([]),X=c([]),O=c(null),S=c(null),ze=c(null);He(()=>{const s=B.homeSections.find(h=>h.data_source==="emissions_programme");s?.data?.programs&&(G.value=s.data.programs.map(h=>({...h})));const l=B.homeSections.find(h=>h.data_source==="emissions");l?.data?.videos&&($.value=l.data.videos.map(h=>({...h})));const w=B.homeSections.find(h=>h.data_source==="offres");w?.data?.offers&&(X.value=w.data.offers.map(h=>({...h})));const a=document.querySelector("[data-site-header]");a&&(ue.value=a.offsetHeight);const r=C.value;r&&k(r),document.addEventListener("click",h=>{b.value&&!b.value.contains(h.target)&&D()}),q=setInterval(()=>{const h=Q.value;if(!h||h.scrollTop>=h.scrollHeight-h.clientHeight){h&&h.scrollTo({top:0,behavior:"smooth"});return}h.scrollBy({top:60,behavior:"smooth"})},3e3)});async function Te(s){const l=s.target.files?.[0];if(!l||!O.value)return;const w=new FormData,a=document.querySelector('meta[name="csrf-token"]').content;let r="";O.value==="category"?(w.append("image",l),r=`/7studio/category/${S.value}/image`):O.value==="video"?(w.append("image",l),r=`/7studio/video/${S.value}/thumbnail`):O.value==="offer"?(w.append("image",l),r=`/7studio/
1offer/${S.value}/image`):O.value==="prog"&&(w.append("logo",l),r=`/7studio/emission/${S.value}/logo`),w.append("_token",a);try{const h=await fetch(r,{method:"POST",body:w}),xe=await h.json();if(xe.success){if(O.value==="video"){const le=$.value.findIndex(he=>he.id===S.value);le!==-1&&($.value[le].thumbnail_path=xe.thumbnail_path)}else if(O.value==="offer"){const le=X.value.findIndex(he=>he.id===S.value);le!==-1&&(X.value[le].image_path=xe.image_path)}else if(O.value==="prog"){if(!h.ok){alert("Erreur serveur: "+h.status);return}const le=G.value.findIndex(he=>he.id===S.value);le!==-1&&G.value.splice(le,1,{...G.value[le],logo_path:xe.logo_path})}}}finally{s.target.value="",O.value=null,S.value=null}}const ue=c(64),g=V(()=>({top:ue.value+"px",height:`calc(100vh - ${ue.value}px)`}));function n(s){return s?new Date(s).toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"}):""}return Ie(()=>{F?.destroy(),clearInterval(q)}),(s,l)=>{const w=Be("Head");return t(),I(Re,null,{default:m(()=>[y(w,null,{default:m(()=>[e("title",null,u(d.meta.title),1),e("meta",{name:"description",content:d.meta.description},null,8,Lt),l[9]||(l[9]=e("link",{rel:"canonical",href:"https://7info.ci/"},null,-1)),l[10]||(l[10]=e("meta",{property:"og:type",content:"website"},null,-1)),l[11]||(l[11]=e("meta",{property:"og:site_name",content:"7INFO.CI"},null,-1)),e("meta",{property:"og:title",content:d.meta.title},null,8,Ot),e("meta",{property:"og:description",content:d.meta.description},null,8,Vt),l[12]||(l[12]=e("meta",{property:"og:url",content:"https://7info.ci/"},null,-1)),l[13]||(l[13]=e("meta",{property:"og:image",content:"https://7info.ci/icons/og-default.jpg"},null,-1)),l[14]||(l[14]=e("meta",{name:"twitter:card",content:"summary_large_image"},null,-1)),l[15]||(l[15]=e("meta",{name:"twitter:site",content:"@7infoci"},null,-1)),e("meta",{name:"twitter:title",content:d.meta.title},null,8,Bt),e("meta",{name:"twitter:description",content:d.meta.description},null,8,Rt),l[16]||(l[16]=e("meta",{name:"twitter:image",content:"https://7info.ci/icons/og-default.jpg"},null,-1))]),_:1}),y(Fe,{"format-id":"45656","format-name":"MegaBanniere 1 728x90","wrapper-class":"mb-3"}),y(Ct,{slides:ae.value},null,8,["slides"]),e("div",Ut,[e("div",Nt,[e("div",{class:"relative w-full min-w-0 sm:flex-1 sm:max-w-sm md:max-w-2xl lg:max-w-3xl",ref_key:"searchWrap",ref:b},[e("form",{onSubmit:z(Z,["prevent"]),class:"flex min-w-0"},[e("div",qt,[l[17]||(l[17]=e("svg",{class:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),we(e("input",{"onUpdate:modelValue":l[0]||(l[0]=a=>U.value=a),onInput:ve,onFocus:l[1]||(l[1]=a=>T.value=!0),onKeydown:[ie(D,["esc"]),ie(z($e,["prevent"]),["down"]),ie(z(te,["prevent"]),["up"]),ie(z(fe,["prevent"]),["enter"])],type:"search",placeholder:"Rechercher un article, une rubrique, une vidéoâ¦",class:"w-full min-w-0 bg-gray-50 border border-gray-300 rounded-l-xl pl-11 pr-4 py-2.5 text-sm text-gray-900 placeholder-gray-400 focus:outline-none focus:bg-white focus:border-[var(--color-primary)] focus:ring-1 focus:ring-[var(--color-primary)]/30 transition",autocomplete:"off"},null,40,Kt),[[Ce,U.value]])]),l[18]||(l[18]=e("button",{type:"submit",class:"bg-[var(--color-primary)] hover:bg-red-700 text-white font-bold px-5 py-2.5 rounded-r-xl text-sm transition-colors shrink-0"}," Rechercher ",-1))],32),y(de,{name:"dropdown"},{default:m(()=>[T.value&&(H.value.articles.length||H.value.categories.length||f.value)?(t(),o("div",Wt,[f.value?(t(),o("div",Dt,[...l[19]||(l[19]=[e("svg",{class:"w-4 h-4 animate-spin text-[var(--color-primary)]",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})],-1),A(" Recherche en cours⦠",-1)])])):i("",!0),f.value?i("",!0):(t(),o(x,{key:1},[H.value.categories.length?(t(),o("div",Xt,[l[21]||(l[21]=e("p",{class:"text-[10px] font-black uppercase tracking-widest text-gray-400 px-1 mb-1"},"Rubriques",-1)),(t(!0),o(x,null,E(H.value.categories,(a,r)=>(t(),I(p(P),{key:"c"+a.id,href:s.route("category.show",a.slug),onClick:D,class:oe(["flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-colors",v.value==="c"+r?"bg-red-50 text-[var(--color-primary)]":"text-gray-700 hover:bg-gray-50"])},{default:m(()=>[l[20]||(l[20]=e("svg",{class:"w-3.5 h-3.5 text-[var(--color-primary)] shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"})],-1)),A(" "+u(a.name),1)]),_:2},1032,["href","class"]))),128))])):i("",!0),H.value.articles.length?(t(),o("div",{key:1,class:oe(["px-3 pb-2",H.value.categories.length?"pt-1 border-t border-gray-100":"pt-2"])},[l[23]||(l[23]=e("p",{class:"text-[10px] font-black uppercase tracking-widest text-gray-400 px-1 mb-1"},"Articles",-1)),(t(!0),o(x,null,E(H.value.articles,(a,r)=>(t(),I(p(P),{key:"a"+a.id,href:s.route("article.show",a.slug),onClick:D,class:oe(["flex items-center gap-3 px-3 py-2 rounded-lg transition-colors",v.value==="a"+r?"bg-red-50":"hover:bg-gray-50"])},{default:m(()=>[a.cover_image_path?(t(),o("img",{key:0,src:p(j)(a.cover_image_path),alt:a.title,class:"w-10 h-8 object-cover rounded shrink-0"},null,8,Jt)):(t(),o("div",Yt,[...l[22]||(l[22]=[e("svg",{class:"w-4 h-4 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14"})],-1)])])),e("span",Zt,u(a.title),1)]),_:2},1032,["href","class"]))),128))],2)):i("",!0),e("div",Gt,[e("button",{onClick:Z,class:"w-full text-center text-xs text-[var(--color-primary)] hover:text-red-400 font-bold py-1 transition-colors"},' Voir tous les résultats pour "'+u(U.value)+'" â ',1)])],64))])):i("",!0)]),_:1})],512),e("div",Qt,[R.value.user?(t(),o("div",{key:1,class:"relative",onMouseenter:l[2]||(l[2]=a=>ge.value=!0),onMouseleave:l[3]||(l[3]=a=>ge.value=!1)},[e("button",el,[e("span",tl,u(R.value.user.name.charAt(0).toUpperCase()),1),e("span",ll,u(R.value.user.name),1),l[26]||(l[26]=e("svg",{class:"w-3.5 h-3.5 opacity-50 shrink-0",fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"})],-1))]),y(de,{name:"dropdown"},{default:m(()=>[ge.value?(t(),o("div",ol,[e("div",sl,[e("div",al,[l[27]||(l[27]=e("p",{class:"text-xs text-gray-400"},"Connecté en tant que",-1)),e("p",rl,u(R.value.user.name),1)]),e("form",{onSubmit:z(Me,["prevent"])},[...l[28]||(l[28]=[e("button",{type:"submit",class:"w-full text-left flex items-center gap-2 px-4 py-2.5 text-sm text-red-600 hover:bg-red-50 transition-colors font-medium"},[e("svg",{class:"w-4 h-4 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})]),A(" Déconnexion ")],-1)])],32)])])):i("",!0)]),_:1})],32)):(t(),o(x,{key:0},[y(p(P),{href:s.route("login"),class:"text-sm font-semibold text-gray-600 hover:text-[var(--color-primary)] transition-colors px-3 py-2 whitespace-nowrap"},{default:m(()=>[...l[24]||(l[24]=[A(" Connexion ",-1)])]),_:1},8,["href"]),y(p(P),{href:s.route("register"),class:"text-sm font-bold bg-[var(--color-primary)] hover:bg-red-700 text-white px-4 py-2 rounded-lg transition-colors whitespace-nowrap"},{default:m(()=>[...l[25]||(l[25]=[A(" S'inscrire ",-1)])]),_:1},8,["href"])],64))]),y(It)])]),e("div",il,[e("div",nl,[e("div",ul,[ee.value?(t(),o("input",{key:0,ref_key:"hiddenUploadInput",ref:ze,type:"file",accept:"image/*",class:"hidden",onChange:Te},null,544)):i("",!0),(t(!0),o(x,null,E(d.homeSections,a=>(t(),o(x,{key:a.id},[a.data_source==="emissions_programme"?(t(),o("section",cl,[y(ke,{title:d.sections["emissions-programme"]?.title??"EMISSIONS & PROGRAMME",link:s.route("programs.index"),"link-label":"Voir la grille"},null,8,["title","link"]),e("div",dl,[(t(!0),o(x,null,E(G.value.slice(0,8),r=>(t(),o("div",{key:r.id,class:"group/prog relative rounded-lg overflow-hidden bg-white aspect-video hover:ring-2 hover:ring-[var(--color-primary)] transition-all"},[y(p(P),{href:s.route("programs.index"),class:"absolute inset-0"},{default:m(()=>
1[e("div",vl,[r.logo_path?(t(),o("img",{key:0,src:p(j)(r.logo_path),alt:r.name,class:"absolute inset-0 w-full h-full object-cover group-hover/prog:scale-105 transition"},null,8,pl)):(t(),o("span",fl,u(r.name),1))])]),_:2},1032,["href"])]))),128))])])):i("",!0),a.data_source==="webpress"?(t(),o("section",gl,[y(ke,{title:d.sections.webpress?.title??"WEBPRESS",link:d.sections.webpress?.link_url??s.route("webpress.index"),"link-label":d.sections.webpress?.link_label??"Tout voir sur WebPress","section-key":"webpress",page:"home"},null,8,["title","link","link-label"]),e("div",hl,[(t(!0),o(x,null,E(a.data.articles,(r,h)=>(t(),o("div",{key:r.id,class:"relative group/card"},[y(p(P),{href:s.route("webpress.article.show",r.slug),class:"block rounded-lg overflow-hidden bg-gray-900 hover:ring-2 hover:ring-[var(--color-primary)] transition-all aspect-video"},{default:m(()=>[r.cover_image_path?(t(),o("img",{key:0,src:p(j)(r.cover_image_path),alt:r.title,class:"absolute inset-0 w-full h-full object-cover opacity-70 group-hover/card:opacity-90 group-hover/card:scale-105 transition duration-500"},null,8,ml)):(t(),o("div",bl)),l[29]||(l[29]=e("div",{class:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/20 to-transparent"},null,-1)),r.category?(t(),o("div",yl,[e("span",xl,u(r.category?.name),1)])):i("",!0),e("div",kl,[e("p",_l,u(r.title),1),e("p",wl,u(n(r.published_at)),1)])]),_:2},1032,["href"])]))),128))]),ee.value&&(!a.data.articles||!a.data.articles.length)?(t(),o("p",Cl,' Aucun article "à la une WebPress" â activez le toggle ð° dans un article pour le faire apparaître ici. ')):i("",!0)])):i("",!0),a.data_source==="emissions"?(t(),o("section",Sl,[y(ke,{title:d.sections.emissions?.title??"NOS ÃMISSIONS",link:d.sections.emissions?.link_url??s.route("videos.index"),"link-label":d.sections.emissions?.link_label??"Voir les replays","section-key":"emissions",page:"home"},null,8,["title","link","link-label"]),e("div",$l,[$.value.length||a.data.videos&&a.data.videos.length?(t(!0),o(x,{key:0},E(($.value.length?$.value:a.data.videos).slice(0,8),r=>(t(),o("div",{key:r.id,onClick:h=>r.video_path||r.embed_url?L.value=r:p(ce).visit("/videos"),class:"group/vid relative rounded-lg overflow-hidden bg-gray-900 aspect-video cursor-pointer hover:ring-2 hover:ring-[var(--color-primary)] transition"},[r.thumbnail_path||r.youtube_id?(t(),o("img",{key:0,src:r.thumbnail_path?p(j)(r.thumbnail_path):"https://img.youtube.com/vi/"+r.youtube_id+"/mqdefault.jpg",alt:r.title,class:"absolute inset-0 w-full h-full object-cover opacity-80 group-hover/vid:opacity-100 transition"},null,8,jl)):(t(),o("div",Al)),l[30]||(l[30]=e("div",{class:"absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-transparent"},null,-1)),l[31]||(l[31]=e("div",{class:"absolute inset-0 flex items-center justify-center"},[e("div",{class:"w-10 h-10 rounded-full bg-white/90 flex items-center justify-center shadow-lg opacity-0 group-hover/vid:opacity-100 group-hover/vid:scale-110 transition"},[e("svg",{class:"w-4 h-4 text-[var(--color-primary)] ml-0.5",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{d:"M6.3 2.841A1.5 1.5 0 004 4.11V15.89a1.5 1.5 0 002.3 1.269l9.344-5.89a1.5 1.5 0 000-2.538L6.3 2.84z"})])])],-1)),e("div",zl,[r.emission?(t(),o("p",Tl,u(r.emission.name),1)):i("",!0),e("p",Pl,u(r.title),1)])],8,Ml))),128)):(t(!0),o(x,{key:1},E(G.value.slice(0,8),r=>(t(),o("div",{key:"e"+r.id,onClick:l[4]||(l[4]=h=>p(ce).visit("/programmes")),class:"group relative rounded-lg overflow-hidden bg-gray-900 aspect-video hover:ring-2 hover:ring-[var(--color-primary)] transition-all cursor-pointer"},[e("div",El,[e("span",Fl,u(r.name),1)]),l[32]||(l[32]=e("div",{class:"absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-transparent"},null,-1)),l[33]||(l[33]=e("div",{class:"absolute inset-0 flex items-center justify-center"},[e("div",{class:"w-10 h-10 rounded-full bg-white/10 flex items-center justify-center"},[e("svg",{class:"w-4 h-4 text-white/60 ml-0.5",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{d:"M6.3 2.841A1.5 1.5 0 004 4.11V15.89a1.5 1.5 0 002.3 1.269l9.344-5.89a1.5 1.5 0 000-2.538L6.3 2.84z"})])])],-1)),e("div",Hl,[e("p",Il,u(r.name),1)])]))),128))])])):i("",!0),a.data_source==="offres"?(t(),o("section",Ll,[y(ke,{title:d.sections.offers?.title??"NOS OFFRES",link:d.sections.offers?.link_url??null,"link-label":d.sections.offers?.link_label??"Voir tout","section-key":"offers",page:"home"},null,8,["title","link","link-label"]),e("div",Ol,[X.value.length||a.data.offers&&a.data.offers.length?(t(!0),o(x,{key:0},E(X.value.length?X.value:a.data.offers,r=>(t(),o("div",{key:r.id,class:"group/offer relative rounded-lg overflow-hidden bg-gray-100 aspect-video"},[(t(),I(Ee(r.link_url?"a":"div"),{href:r.link_url||void 0,target:r.link_url?"_blank":void 0,class:"group absolute inset-0 cursor-pointer hover:ring-2 hover:ring-[var(--color-primary)] transition-all rounded-lg overflow-hidden"},{default:m(()=>[r.image_path?(t(),o("img",{key:0,src:p(j)(r.image_path),alt:r.title,class:"absolute inset-0 w-full h-full object-cover opacity-90 group-hover:opacity-100 transition"}
1,null,8,Vl)):(t(),o("div",Bl,[e("p",Rl,u(r.title),1)])),l[34]||(l[34]=e("div",{class:"absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent"},null,-1)),r.badge_text?(t(),o("div",Ul,u(r.badge_text),1)):i("",!0),e("div",Nl,[e("p",ql,u(r.title),1),r.subtitle?(t(),o("p",Kl,u(r.subtitle),1)):i("",!0)])]),_:2},1032,["href","target"]))]))),128)):(t(),o(x,{key:1},E(4,r=>e("div",{key:"ad"+r,class:"relative rounded-lg overflow-hidden bg-gray-200 aspect-video flex items-center justify-center"},[...l[35]||(l[35]=[e("p",{class:"text-gray-400 text-xs font-medium"},"Espace publicitaire",-1)])])),64))])])):i("",!0),a.data_source==="offres"?(t(),o("div",Wl,[y(Fe,{"format-id":"49046","format-name":"MegaBanniere 2 728x90"})])):i("",!0),a.data_source==="articles"?(t(),o("section",Dl,[a.sort_order>1?(t(),o("div",Xl,[...l[36]||(l[36]=[e("span",{class:"absolute left-0 top-[-1px] w-12 h-0.5 bg-[var(--color-primary)]"},null,-1)])])):i("",!0),e("div",Jl,[e("div",Yl,[a.category?.color?(t(),o("span",{key:0,class:"w-3 h-0.5",style:re({backgroundColor:a.category.color})},null,4)):i("",!0),e("h2",Zl,u(a.title),1)]),a.category?.slug?(t(),I(p(P),{key:0,href:s.route("category.show",a.category.slug),class:"text-xs font-bold text-[var(--color-primary)] hover:text-red-700 transition-colors"},{default:m(()=>[...l[37]||(l[37]=[A(" Voir tout â ",-1)])]),_:1},8,["href"])):i("",!0)]),a.layout==="grid4"?(t(),o("div",Gl,[(t(!0),o(x,null,E(a.data.articles,r=>(t(),I(p(P),{key:r.id,href:s.route("article.show",r.slug),class:"group relative rounded-lg overflow-hidden bg-gray-900 hover:ring-2 hover:ring-[var(--color-primary)] transition-all",style:{"aspect-ratio":"1920/690"}},{default:m(()=>[W.value&&r.cover_image_path?(t(),I(_e,{key:0,"article-id":r.id,"focal-x":r.cover_focal_x??50,"focal-y":r.cover_focal_y??50,class:"absolute inset-0"},{default:m(({objectPosition:h})=>[e("img",{src:p(j)(r.cover_image_path),alt:r.title,class:"absolute inset-0 w-full h-full object-cover opacity-80 group-hover:opacity-100 transition",style:re({objectPosition:h})},null,12,Ql)]),_:2},1032,["article-id","focal-x","focal-y"])):r.cover_image_path?(t(),o("img",{key:1,src:p(j)(r.cover_image_path),alt:r.title,class:"absolute inset-0 w-full h-full object-cover opacity-80 group-hover:opacity-100 transition"},null,8,eo)):i("",!0),l[38]||(l[38]=e("div",{class:"absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-transparent"},null,-1)),r.is_breaking?(t(),o("div",to,"Urgent")):i("",!0),e("div",lo,[e("p",oo,u(r.title),1)])]),_:2},1032,["href"]))),128))])):a.layout==="big_list"?(t(),o("div",so,[a.data.articles[0]?(t(),I(p(P),{key:0,href:s.route("article.show",a.data.articles[0].slug),class:"group relative rounded-lg overflow-hidden bg-gray-900 sm:col-span-2 hover:ring-2 hover:ring-[var(--color-primary)] transition-all",style:{"aspect-ratio":"1920/690"}},{default:m(()=>[W.value&&a.data.articles[0].cover_image_path?(t(),I(_e,{key:0,"article-id":a.data.articles[0].id,"focal-x":a.data.articles[0].cover_focal_x??50,"focal-y":a.data.articles[0].cover_focal_y??50,class:"absolute inset-0"},{default:m(({objectPosition:r})=>[e("img",{src:p(j)(a.data.articles[0].cover_image_path),alt:a.data.articles[0].title,class:"absolute inset-0 w-full h-full object-cover opacity-80 group-hover:opacity-100 transition",style:re({objectPosition:r})},null,12,ao)]),_:2},1032,["article-id","focal-x","focal-y"])):a.data.articles[0].cover_image_path?(t(),o("img",{key:1,src:p(j)(a.data.articles[0].cover_image_path),alt:a.data.articles[0].title,class:"absolute inset-0 w-full h-full object-cover opacity-80 group-hover:opacity-100 transition"},null,8,ro)):i("",!0),W.value&&a.data.articles[0].cover_image_path?(t(),o("div",io,[e("button",{onClick:z(r=>ye(a.data.articles[0].id,a.data.articles[0].cover_image_path),["prevent"]),class:"bg-black/60 hover:bg-[var(--color-primary)] text-white text-[10px] font-bold px-2 py-1 rounded"}," ð¨ PixPro ",8,no)])):i("",!0),l[39]||(l[39]=e("div",{class:"absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-transparent pointer-events-none"},null,-1)),e("div",uo,[e("p",co,u(a.data.articles[0].title),1)])]),_:2},1032,["href"])):i("",!0),e("div",vo,[(t(!0),o(x,null,E(a.data.articles.slice(1),r=>(t(),I(p(P),{key:r.id,href:s.route("article.show",r.slug),class:"group flex gap-2 hover:bg-gray-50 rounded-lg p-1 transition-colors"},{default:m(()=>[e("div",po,[r.cover_image_path?(t(),o("img",{key:0,src:p(j)(r.cover_image_path),alt:r.title,class:"w-full h-full object-cover"}
1,null,8,fo)):i("",!0)]),e("p",go,u(r.title),1)]),_:2},1032,["href"]))),128))])])):a.layout==="full_hero"?(t(),o("div",ho,[a.data.articles[0]?(t(),I(p(P),{key:0,href:s.route("article.show",a.data.articles[0].slug),class:"group relative block rounded-xl overflow-hidden bg-gray-900 aspect-[3/1] hover:ring-2 hover:ring-[var(--color-primary)] transition-all"},{default:m(()=>[W.value&&a.data.articles[0].cover_image_path?(t(),I(_e,{key:0,"article-id":a.data.articles[0].id,"focal-x":a.data.articles[0].cover_focal_x??50,"focal-y":a.data.articles[0].cover_focal_y??50,class:"absolute inset-0"},{default:m(({objectPosition:r})=>[e("img",{src:p(j)(a.data.articles[0].cover_image_path),alt:a.data.articles[0].title,class:"absolute inset-0 w-full h-full object-cover opacity-75 group-hover:opacity-90 transition",style:re({objectPosition:r})},null,12,mo)]),_:2},1032,["article-id","focal-x","focal-y"])):a.data.articles[0].cover_image_path?(t(),o("img",{key:1,src:p(j)(a.data.articles[0].cover_image_path),alt:a.data.articles[0].title,class:"absolute inset-0 w-full h-full object-cover opacity-75 group-hover:opacity-90 transition"},null,8,bo)):i("",!0),W.value&&a.data.articles[0].cover_image_path?(t(),o("div",yo,[e("button",{onClick:z(r=>ye(a.data.articles[0].id,a.data.articles[0].cover_image_path),["prevent"]),class:"bg-black/60 hover:bg-[var(--color-primary)] text-white text-[10px] font-bold px-2 py-1 rounded"}," ð¨ PixPro ",8,xo)])):i("",!0),l[40]||(l[40]=e("div",{class:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/30 to-transparent pointer-events-none"},null,-1)),e("div",ko,[e("p",_o,u(a.data.articles[0].title),1),a.data.articles[0].excerpt?(t(),o("p",wo,u(a.data.articles[0].excerpt),1)):i("",!0)])]),_:2},1032,["href"])):i("",!0)])):i("",!0)])):i("",!0)],64))),128))])]),e("aside",Co,[e("div",{class:"sticky flex flex-col overflow-hidden bg-[#000000]",style:re(g.value)},[e("div",So,[l[45]||(l[45]=e("div",{class:"flex items-center gap-2 px-4 py-2.5 bg-[var(--color-primary)]"},[e("span",{class:"w-2 h-2 rounded-full bg-white animate-pulse"}),e("span",{class:"text-white font-black text-xs uppercase tracking-widest"},"EN DIRECT"),e("span",{class:"ml-auto text-white/80 text-xs font-bold"},"7INFO")],-1)),e("div",$o,[e("video",{ref_key:"homeLiveVideoRef",ref:C,class:"w-full h-full",autoplay:"",muted:"",playsinline:"",style:{background:"#000"}},null,512),e("div",Mo,[e("button",{onClick:J,class:"w-7 h-7 flex items-center justify-center rounded-full bg-black/50 hover:bg-black/70 text-white text-xs transition",title:_.value?"Activer le son":"Couper le son"},[_.value?(t(),o("svg",Ao,[...l[41]||(l[41]=[e("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"},null,-1)])])):(t(),o("svg",zo,[...l[42]||(l[42]=[e("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"},null,-1)])]))],8,jo),e("button",{onClick:K,class:"w-7 h-7 flex items-center justify-center rounded-full bg-black/50 hover:bg-black/70 text-white text-xs transition",title:"Plein écran"},[...l[43]||(l[43]=[e("svg",{class:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 24 24"},[e("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})],-1)])])])]),e("div",To,[e("span",Po,u(d.live?.status_text??"En direct"),1),y(p(P),{href:s.route("live.index"),class:"text-[var(--color-primary)] text-xs font-bold hover:underline"},{default:m(()=>[...l[44]||(l[44]=[A(" Plein écran â ",-1)])]),_:1},8,["href"])])]),M.value!=="hidden"?(t(),o("div",{key:0,class:"flex-1 overflow-y-auto min-h-0",ref_key:"sidebarScrollRef",ref:Q},[M.value==="editorial"||M.value==="editorial_pub"?(t(),o(x,{key:0},[d.sidebarPinnedArticle?(t(),o("div",Eo,[l[46]||(l[46]=e("div",{class:"flex items-center gap-1.5 px-4 py-1.5 bg-[var(--color-primary)]/20 border-b border-[var(--color-primary)]/20"},[e("span",{class:"text-[var(--color-primary)] text-[9px] font-black uppercase tracking-widest"},"ð Mise en avant")],-1)),y(p(P),{href:s.route("article.show",d.sidebarPinnedArticle.slug),class:"group flex gap-3 py-3 px-4 hover:bg-white/5 transition-colors"},{default:m(()=>[e("div",Fo,[d.sidebarPinnedArticle.cover_image_path?(t(),o("img",{key:0,src:p(j)(d.sidebarPinnedArticle.cover_image_path),class:"w-full h-full object-cover group-hover:opacity-90 transition"},null,8,Ho)):(t(),o("div",Io))]),e("div",Lo,[d.sidebarPinnedArticle.category?(t(),o("p",Oo,u(d.sidebarPinnedArticle.category.name),1)):i("",!0),e("p",Vo,u(d.sidebarPinnedArticle.title),
11)])]),_:1},8,["href"])])):i("",!0),l[47]||(l[47]=e("h2",{class:"text-xs font-black text-gray-400 uppercase tracking-widest px-4 py-3 border-b border-white/10 sticky top-0 bg-[#000000] z-10"}," Actualité 7INFO ",-1)),d.editorialFeed&&d.editorialFeed.length?(t(),o("div",Bo,[(t(!0),o(x,null,E(d.editorialFeed,a=>(t(),I(p(P),{key:a.id,href:s.route("article.show",a.slug),class:"group flex gap-3 py-3 px-4 hover:bg-white/5 transition-colors"},{default:m(()=>[e("div",Ro,[a.cover_image_path?(t(),o("img",{key:0,src:p(j)(a.cover_image_path),alt:a.title,class:"w-full h-full object-cover group-hover:opacity-90 transition"},null,8,Uo)):(t(),o("div",No))]),e("div",qo,[a.category?(t(),o("p",Ko,u(a.category.name),1)):i("",!0),e("p",Wo,u(a.title),1),e("p",Do,u(n(a.published_at)),1)])]),_:2},1032,["href"]))),128))])):i("",!0)],64)):i("",!0),(M.value==="pub"||M.value==="editorial_pub")&&d.homeSidebarWidgets&&d.homeSidebarWidgets.length?(t(!0),o(x,{key:1},E(d.homeSidebarWidgets,a=>(t(),o("div",{key:a.id,class:"border-t border-white/10"},[a.type==="ad_banner"?(t(),I(Ee(a.config?.link_url?"a":"div"),{key:0,href:a.config?.link_url||void 0,target:"_blank",class:"block p-3 hover:opacity-90 transition-opacity"},{default:m(()=>[a.config?.image_path?(t(),o("img",{key:0,src:"/storage/"+a.config.image_path,alt:a.title||"Publicité",class:"w-full rounded-lg"},null,8,Xo)):(t(),o("div",Jo,[e("p",Yo,u(a.title||"Espace publicitaire"),1)]))]),_:2},1032,["href"])):a.type==="html_block"?(t(),o("div",{key:1,class:"p-3",innerHTML:a.config?.content},null,8,Zo)):i("",!0)]))),128)):i("",!0),ee.value&&M.value==="pub"&&(!d.homeSidebarWidgets||!d.homeSidebarWidgets.length)?(t(),o("div",Go,[...l[48]||(l[48]=[e("p",{class:"text-white/40 text-xs font-bold"},"Aucun widget pub configuré",-1),e("p",{class:"text-white/20 text-[10px] mt-1"},"Filament â Pubs Accueil",-1)])])):i("",!0)],512)):ee.value?(t(),o("div",Qo,[...l[49]||(l[49]=[e("p",{class:"text-white/30 text-xs font-bold uppercase tracking-widest"},"Sidebar masquée",-1)])])):i("",!0)],4)])]),y(de,{name:"home-modal"},{default:m(()=>[L.value?(t(),o("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:l[7]||(l[7]=z(a=>L.value=null,["self"]))},[e("div",{class:"absolute inset-0 bg-black/85 backdrop-blur-sm",onClick:l[5]||(l[5]=a=>L.value=null)}),e("div",es,[e("button",{onClick:l[6]||(l[6]=a=>L.value=null),class:"absolute -top-10 right-0 text-white/70 hover:text-white flex items-center gap-1.5 text-sm font-semibold transition-colors"},[...l[50]||(l[50]=[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1),A(" Fermer ",-1)])]),e("div",ts,[L.value.video_path?(t(),o("video",{key:0,src:p(j)(L.value.video_path),class:"w-full h-full",controls:"",autoplay:"",muted:"",playsinline:""},null,8,ls)):(t(),o("iframe",{key:1,src:Ae(L.value.embed_url),class:"w-full h-full",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,os))]),e("div",ss,[e("h2",as,u(L.value.title),1),e("div",rs,[L.value.emission?(t(),o("span",is,u(L.value.emission.name),1)):i("",!0),y(p(P),{href:s.route("videos.index"),class:"ml-auto text-[var(--color-primary)] hover:underline font-semibold text-xs"},{default:m(()=>[...l[51]||(l[51]=[A(" Voir tous les replays â ",-1)])]),_:1},8,["href"])])])])])):i("",!0)]),_:1}),y(Le,{modelValue:N.value,"onUpdate:modelValue":l[8]||(l[8]=a=>N.value=a),"article-id":ne.value,"article-cover-url":be.value,"show-fab":!1,onImageUpdated:je},null,8,["modelValue","article-id","article-cover-url"])]),_:1})}}},ys=Oe(us,[["__scopeId","data-v-aab4b85e"]]);export{ys as default};
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.