2 lines
19 KiB
JavaScript
2 lines
19 KiB
JavaScript
import{a as le}from"./chunk-YEESETR2.js";import{b as K,c as Q,d as X,e as Z,f as $,g as ee,h as te,k as ne,l as ie,n as oe,p as re,t as ae}from"./chunk-UDFQV3WY.js";import{e as J,i as Y}from"./chunk-ZEULGWAI.js";import"./chunk-MBEC6LK4.js";import{Db as j,Eb as r,Fa as s,Fb as E,Gb as k,Hb as O,Jb as _,Kb as x,Lb as v,Oa as T,Ob as A,R as m,Rb as G,S as u,T as C,Ta as I,U as S,Ya as M,ca as h,db as b,fb as w,hb as L,ib as W,jb as g,kb as n,lb as o,mb as f,nb as F,ob as B,pc as z,qb as y,qc as H,rb as p,rc as R,sb as d,sc as q,xc as U,zb as N}from"./chunk-TVKQFRWX.js";import{a as V,b as D}from"./chunk-DAQOROHW.js";var ce=()=>({"background-color":"#00843B","border-color":"#00843B"}),de=()=>({}),me=(c,i,e)=>({"bg-green-50 border-green-500 text-green-700":c,"bg-red-50 border-red-500 text-red-700":i,"bg-blue-50 border-blue-500 text-blue-700":e}),ue=(c,i)=>i.id;function pe(c,i){c&1&&(n(0,"div",11),f(1,"div",16),o())}function ge(c,i){c&1&&(n(0,"div",11),C(),n(1,"svg",17),f(2,"path",18),o(),S(),n(3,"p",6),r(4,"Aucun Ev\xE8nement pour le moment"),o()())}function fe(c,i){if(c&1){let e=y();n(0,"tr")(1,"td")(2,"div",24)(3,"p",25),r(4),o(),n(5,"p",26),r(6),o()()(),n(7,"td",25),r(8),o(),n(9,"td")(10,"span"),r(11),o()(),n(12,"td"),r(13),o(),n(14,"td",27),r(15),o(),n(16,"td",28)(17,"div",29)(18,"button",30),p("click",function(){let t=m(e).$implicit,l=d(2);return u(l.viewArticle(t))}),C(),n(19,"svg",31),f(20,"path",32)(21,"path",33),o()(),S(),n(22,"button",34),p("click",function(){let t=m(e).$implicit,l=d(2);return u(l.editArticle(t))}),C(),n(23,"svg",35),f(24,"path",36),o()(),S(),n(25,"button",37),p("click",function(){let t=m(e).$implicit,l=d(2);return u(l.deleteArticle(t))}),C(),n(26,"svg",38),f(27,"path",39),o()()()()()}if(c&2){let e=i.$implicit,a=d(2);s(4),E(e.title),s(2),E(e.description),s(2),E(e.category),s(2),j(a.getStatusClass(e.statut)),s(),E(a.getStatusLabel(e.statut)),s(2),E(e.location),s(2),O("",a.formatDate(e.startDate)," - ",a.formatDate(e.endDate))}}function _e(c,i){if(c&1){let e=y();F(0),n(1,"button",40),p("click",function(){let t=m(e).$implicit,l=d(2);return u(l.goToPage(t))}),r(2),o(),B()}if(c&2){let e=i.$implicit,a=d(2);s(),g("ngClass",a.currentPage()===e?"px-3 py-1 border rounded text-white":"px-3 py-1 border border-gray-300 rounded hover:bg-gray-100 transition-colors")("ngStyle",a.currentPage()===e?A(3,ce):A(4,de)),s(),k(" ",e," ")}}function xe(c,i){if(c&1){let e=y();n(0,"div",12)(1,"table",19)(2,"thead")(3,"tr")(4,"th"),r(5,"Titre"),o(),n(6,"th"),r(7,"Cat\xE9gorie"),o(),n(8,"th"),r(9,"Statut"),o(),n(10,"th"),r(11,"Localit\xE9"),o(),n(12,"th"),r(13,"P\xE9riode"),o(),n(14,"th",20),r(15,"Actions"),o()()(),n(16,"tbody"),L(17,fe,28,9,"tr",null,ue),o()(),n(19,"div",21)(20,"button",22),p("click",function(){m(e);let t=d();return u(t.prevPage())}),r(21," \xAB Pr\xE9c\xE9dent "),o(),M(22,_e,3,5,"ng-container",23),n(23,"button",22),p("click",function(){m(e);let t=d();return u(t.nextPage())}),r(24," Suivant \xBB "),o()()()}if(c&2){let e=d();s(17),W(e.articles()),s(3),g("disabled",e.currentPage()===1),s(2),g("ngForOf",e.pages()),s(),g("disabled",e.currentPage()===e.totalPages())}}function ve(c,i){c&1&&(n(0,"p",70),r(1," Le titre est obligatoire "),o())}function he(c,i){c&1&&(n(0,"p",70),r(1," Le contenu est obligatoire "),o())}function Ce(c,i){c&1&&f(0,"div",69)}function Ee(c,i){if(c&1){let e=y();n(0,"div",13)(1,"div",41)(2,"div",42)(3,"h2",43),r(4),o()(),n(5,"form",44,0),p("ngSubmit",function(){m(e);let t=d();return u(t.saveArticle())}),n(7,"div")(8,"label",45),r(9,"Titre "),n(10,"span",46),r(11,"*"),o()(),n(12,"input",47,1),v("ngModelChange",function(t){m(e);let l=d();return x(l.form.title,t)||(l.form.title=t),u(t)}),o(),M(14,ve,2,0,"p",48),o(),n(15,"div")(16,"label",45),r(17,"r\xE9sum\xE9 "),n(18,"span",46),r(19,"*"),o()(),n(20,"textarea",49),v("ngModelChange",function(t){m(e);let l=d();return x(l.form.description,t)||(l.form.description=t),u(t)}),o()(),n(21,"div")(22,"label",45),r(23,"Contenu "),n(24,"span",46),r(25,"*"),o()(),n(26,"textarea",50,2),v("ngModelChange",function(t){m(e);let l=d();return x(l.form.content,t)||(l.form.content=t),u(t)}),o(),M(28,he,2,0,"p",48),o(),n(29,"div",51)(30,"div")(31,"label",45),r(32,"Cat\xE9gorie"),o(),n(33,"input",52,1),v("ngModelChange",function(t){m(e);let l=d();return x(l.form.category,t)||(l.form.category=t),u(t)}),o()(),n(35,"div")(36,"label",45),r(37,"Statut"),o(),n(38,"select",53),v("ngModelChange",function(t){m(e);let l=d();return x(l.form.statut,t)||(l.form.statut=t),u(t)}),n(39,"option",54),r(40,"\xC0 venir"),o(),n(41,"option",55),r(42,"En cours"),o(),n(43,"option",56),r(44,"Termin\xE9"),o(),n(45,"option",57),r(46,"Annul\xE9"),o()()()(),n(47,"div",51)(48,"div")(49,"label",45),r(50,"Date de d\xE9but"),o(),n(51,"input",58),v("ngModelChange",function(t){m(e);let l=d();return x(l.form.startDate,t)||(l.form.startDate=t),u(t)}),o()(),n(52,"div")(53,"label",45),r(54,"Date de fin"),o(),n(55,"input",59),v("ngModelChange",function(t){m(e);let l=d();return x(l.form.endDate,t)||(l.form.endDate=t),u(t)}),o()()(),n(56,"div",51)(57,"div")(58,"label",45),r(59,"Lieu"),o(),n(60,"input",60),v("ngModelChange",function(t){m(e);let l=d();return x(l.form.location,t)||(l.form.location=t),u(t)}),o()(),n(61,"div")(62,"label",45),r(63,"Nombre de Place Disponible"),o(),n(64,"input",61),v("ngModelChange",function(t){m(e);let l=d();return x(l.form.maxParticipants,t)||(l.form.maxParticipants=t),u(t)}),o()()(),n(65,"div")(66,"label",45),r(67,"Image mise en avant "),n(68,"span",46),r(69,"*"),o()(),n(70,"input",62),p("change",function(t){m(e);let l=d();return u(l.onFileSelected(t))}),o()(),n(71,"div",63)(72,"input",64),v("ngModelChange",function(t){m(e);let l=d();return x(l.form.isPublic,t)||(l.form.isPublic=t),u(t)}),o(),n(73,"label",65),r(74,"Rendre Public"),o()(),n(75,"div",66)(76,"button",67),p("click",function(){m(e);let t=d();return u(t.closeModal())}),r(77,"Annuler"),o(),n(78,"button",68),b(79,Ce,1,0,"div",69),r(80),o()()()()()}if(c&2){let e=N(13),a=N(27),t=d();s(4),k(" ",t.editingArticle()?"Modifier l'\xE9v\xE8nement":"Nouvel \xE9v\xE8nement"," "),s(8),_("ngModel",t.form.title),s(2),g("ngIf",e.invalid&&e.touched),s(6),_("ngModel",t.form.description),s(6),_("ngModel",t.form.content),s(2),g("ngIf",a.invalid&&a.touched),s(5),_("ngModel",t.form.category),s(5),_("ngModel",t.form.statut),s(13),_("ngModel",t.form.startDate),s(4),_("ngModel",t.form.endDate),s(5),_("ngModel",t.form.location),s(4),_("ngModel",t.form.maxParticipants),s(8),_("ngModel",t.form.isPublic),s(6),g("disabled",t.saving()),s(),w(t.saving()?79:-1),s(),k(" ",t.editingArticle()?"Mettre \xE0 jour":"Cr\xE9er"," ")}}function be(c,i){c&1&&(C(),n(0,"svg",74),f(1,"path",75),o())}function we(c,i){c&1&&(C(),n(0,"svg",74),f(1,"path",76),o())}function ye(c,i){c&1&&(C(),n(0,"svg",74),f(1,"path",77),o())}function Se(c,i){if(c&1&&(n(0,"div",14)(1,"div",71),M(2,be,2,0,"svg",72)(3,we,2,0,"svg",72)(4,ye,2,0,"svg",72),n(5,"span",73),r(6),o()()()),c&2){let e=d();s(),g("ngClass",G(5,me,e.notification().type==="success",e.notification().type==="error",e.notification().type==="info")),s(),g("ngIf",e.notification().type==="success"),s(),g("ngIf",e.notification().type==="error"),s(),g("ngIf",e.notification().type==="info"),s(2),E(e.notification().message)}}function Me(c,i){if(c&1){let e=y();n(0,"div",15)(1,"div",78)(2,"h3",79),r(3,"Confirmation"),o(),n(4,"p",80),r(5),o(),n(6,"div",81)(7,"button",82),p("click",function(){m(e);let t=d();return u(t.closeConfirmModal())}),r(8," Annuler "),o(),n(9,"button",83),p("click",function(){m(e);let t=d();return u(t.confirmModal().onConfirm())}),r(10," Supprimer "),o()()()()}if(c&2){let e=d();s(5),E(e.confirmModal().message)}}var se=class c{constructor(i,e){this.apiService=i;this.router=e}notification=h({show:!1,message:"",type:"success"});articles=h([]);loading=h(!0);showModal=h(!1);editingArticle=h(null);saving=h(!1);selectedImage=null;selectedImages=[];fileError=!1;currentPage=h(1);pageSize=7;totalPages=h(1);form={title:"",description:"",startDate:"",endDate:"",category:"",statut:"UPCOMING",location:"",content:"",isPublic:!1,maxParticipants:0,currentParticipants:0};ngOnInit(){this.loadevents()}loadevents(i=0){this.loading.set(!0),this.apiService.getAllEvents(i,this.pageSize).subscribe({next:e=>{this.articles.set(e.content),this.totalPages.set(e.totalPages),this.currentPage.set(i+1),this.loading.set(!1)},error:()=>{this.loading.set(!1)}})}nextPage(){this.currentPage()<this.totalPages()&&this.loadevents(this.currentPage())}prevPage(){this.currentPage()>1&&this.loadevents(this.currentPage()-2)}goToPage(i){this.loadevents(i-1)}pages(){return Array.from({length:this.totalPages()},(i,e)=>e+1)}openModal(){this.form={title:"",description:"",startDate:"",endDate:"",content:"",category:"",statut:"UPCOMING",location:"",isPublic:!1,maxParticipants:0,currentParticipants:0},this.selectedImage=null,this.fileError=!1,this.editingArticle.set(null),this.showModal.set(!0)}closeModal(i){this.showModal.set(!1),this.editingArticle.set(null),this.selectedImage=null,this.fileError=!1,i?.resetForm()}onFileSelected(i){let e=i.target;if(!e.files||e.files.length===0){this.selectedImages=[];return}this.selectedImages=Array.from(e.files),this.fileError=!1}viewArticle(i){this.router.navigate(["/admin/evenement",i.id])}editArticle(i){this.form={title:i.title,description:i.description,startDate:i.startDate,endDate:i.endDate,content:i.content,category:i.category,statut:i.statut,location:i.location,isPublic:i.isPublic,maxParticipants:i.maxParticipants,currentParticipants:i.currentParticipants},this.editingArticle.set(i),this.showModal.set(!0)}saveArticle(i){if(!this.form.title||!this.form.description)return;if(!this.editingArticle()&&(!this.selectedImages||this.selectedImages.length===0)){this.fileError=!0;return}this.saving.set(!0);let e=this.editingArticle(),a={title:this.form.title,content:this.form.content,description:this.form.description,startDate:this.form.startDate,endDate:this.form.endDate,category:this.form.category,statut:this.form.statut,location:this.form.location,isPublic:this.form.isPublic,maxParticipants:this.form.maxParticipants,currentParticipants:this.form.currentParticipants},t=new FormData;t.append("evenement",new Blob([JSON.stringify(a)],{type:"application/json"})),this.selectedImages.forEach(P=>{t.append("file",P)}),(e?this.apiService.updateEvent(e.id,t):this.apiService.createEvent(t)).subscribe({next:P=>{this.loadevents(),this.closeModal(i),this.saving.set(!1),this.showNotification(e?"Article mis \xE0 jour avec succ\xE8s":"Article cr\xE9\xE9 avec succ\xE8s","success")},error:P=>{console.error("Erreur lors de la sauvegarde",P),this.saving.set(!1),this.showNotification("Erreur lors de la sauvegarde","error")}})}getDay(i){return new Date(i).getDate().toString().padStart(2,"0")}getMonth(i){return["Jan","F\xE9v","Mar","Avr","Mai","Juin","Juil","Ao\xFBt","Sep","Oct","Nov","D\xE9c"][new Date(i).getMonth()]}getYear(i){return new Date(i).getFullYear().toString()}formatTime(i){return new Date(i).toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"})}getStatusClass(i){switch(i){case"UPCOMING":return"bg-blue-100 text-blue-700";case"ONGOING":return"bg-green-100 text-green-700";case"COMPLETED":return"bg-gray-100 text-gray-700";case"CANCELLED":return"bg-red-100 text-red-700";default:return"bg-gray-100 text-gray-700"}}getStatusLabel(i){switch(i){case"UPCOMING":return"\xC0 venir";case"ONGOING":return"En cours";case"COMPLETED":return"Termin\xE9";case"CANCELLED":return"Annul\xE9";default:return i}}trackByArticleId(i,e){return e.id}showNotification(i,e="success",a=2e3){this.notification.set({show:!0,message:i,type:e}),setTimeout(()=>this.notification.update(t=>D(V({},t),{show:!1})),a)}confirmModal=h({show:!1,message:"",onConfirm:()=>{}});openConfirmModal(i,e){this.confirmModal.set({show:!0,message:i,onConfirm:e})}closeConfirmModal(){this.confirmModal.update(i=>D(V({},i),{show:!1}))}deleteArticle(i){this.openConfirmModal(`Voulez-vous vraiment supprimer l'article "${i.title}" ?`,()=>{this.apiService.deleteEvent(i.id).subscribe({next:()=>{this.loadevents(),this.closeConfirmModal(),this.showNotification("Article supprim\xE9 avec succ\xE8s","success")},error:()=>{this.showNotification("Erreur lors de la suppression","error"),this.closeConfirmModal()}})})}formatDate(i){return i?new Date(i).toLocaleDateString("fr-FR"):""}static \u0275fac=function(e){return new(e||c)(T(le),T(J))};static \u0275cmp=I({type:c,selectors:[["app-evenements"]],decls:18,vars:4,consts:[["articleForm","ngForm"],["title","ngModel"],["content","ngModel"],[1,"space-y-6"],[1,"flex","flex-col","sm:flex-row","sm:items-center","sm:justify-between","gap-4"],[1,"text-2xl","font-bold","text-neutral-900"],[1,"text-neutral-500"],[1,"btn-primary",2,"background-color","#00843B",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-5","h-5","mr-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 6v6m0 0v6m0-6h6m-6 0H6"],[1,"card","p-0"],[1,"p-8","text-center"],[1,"table-container"],[1,"fixed","inset-0","bg-black/50","flex","items-center","justify-center","z-50","p-4"],[1,"fixed","top-4","right-4","z-50","pointer-events-none"],[1,"fixed","inset-0","bg-black/30","flex","items-center","justify-center","z-50","p-4"],[1,"spinner","w-8","h-8","mx-auto"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-12","h-12","text-neutral-300","mx-auto","mb-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"],[1,"table"],[1,"text-right"],[1,"flex","justify-end","items-center","mt-2","px-6","py-2","gap-2","border-t","border-gray-200","bg-gray-50","rounded-b-lg"],[1,"px-3","py-1","border","border-gray-300","rounded","hover:bg-gray-100","disabled:opacity-50","transition-colors",3,"click","disabled"],[4,"ngFor","ngForOf"],[1,"max-w-xs"],[1,"font-medium","text-neutral-900","truncate"],[1,"text-xs","text-neutral-400","truncate"],[1,"text-sm","text-neutral-500"],[1,"px-6","py-4","text-right"],[1,"flex","justify-end","gap-2"],["title","Voir l'article",1,"flex","items-center","justify-center","p-2","border-2","border-blue-500","rounded-full","bg-white","hover:bg-blue-50","transition-colors",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-4","h-4","text-blue-500"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M2.458 12C3.732 7.943 7.523 5 12 5c4.477 0 8.268 2.943 9.542 7-1.274 4.057-5.065 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"],["title","Modifier",1,"flex","items-center","justify-center","p-2","border-2","border-green-500","rounded-full","bg-white","hover:bg-green-50","transition-colors",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-4","h-4","text-green-500"],["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"],["title","Supprimer",1,"flex","items-center","justify-center","p-2","border-2","border-red-500","rounded-full","bg-white","hover:bg-red-50","transition-colors",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-4","h-4","text-red-500"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"],[3,"click","ngClass","ngStyle"],[1,"bg-white","rounded-2xl","shadow-xl","w-full","max-w-2xl","max-h-[90vh]","overflow-y-auto"],[1,"p-6","border-b","border-neutral-200"],[1,"text-xl","font-semibold","text-neutral-900"],["novalidate","",1,"p-6","space-y-5",3,"ngSubmit"],[1,"label"],[1,"text-red-500"],["type","text","name","title","required","",1,"input",3,"ngModelChange","ngModel"],["class","text-sm text-red-500 mt-1",4,"ngIf"],["name","description","rows","2",1,"input","resize-none",3,"ngModelChange","ngModel"],["name","content","rows","6","required","",1,"input","resize-none",3,"ngModelChange","ngModel"],[1,"grid","grid-cols-2","gap-4"],["type","text","name","category","required","",1,"input",3,"ngModelChange","ngModel"],["name","statut",1,"input",3,"ngModelChange","ngModel"],["value","UPCOMING"],["value","ONGOING"],["value","COMPLETED"],["value","CANCELLED"],["type","datetime-local","name","startDate",1,"input",3,"ngModelChange","ngModel"],["type","datetime-local","name","endDate",1,"input",3,"ngModelChange","ngModel"],["type","text","name","location",1,"input",3,"ngModelChange","ngModel"],["type","text","name","maxParticipants",1,"input",3,"ngModelChange","ngModel"],["type","file","multiple","","accept","image/*",1,"input",3,"change"],[1,"flex","items-center","gap-2"],["type","checkbox","name","isPublic","id","isPublic",1,"rounded","border-neutral-300","text-primary-500","focus:ring-primary-500",3,"ngModelChange","ngModel"],["for","featured",1,"text-sm","text-neutral-700"],[1,"flex","justify-end","gap-3","pt-4","border-t","border-neutral-200"],["type","button",1,"px-4","py-2","rounded-lg","border","border-red-500","text-red-500","hover:bg-red-50","transition-colors","font-medium",3,"click"],["type","submit",1,"px-4","py-2","rounded-lg","bg-[#00843B]","text-white","hover:bg-[#006830]","transition-colors","font-medium","flex","items-center","justify-center","gap-2",3,"disabled"],[1,"spinner","w-4","h-4","mr-2"],[1,"text-sm","text-red-500","mt-1"],[1,"pointer-events-auto","border-l-4","rounded-lg","shadow-lg","p-6","max-w-sm","w-full","flex","items-center","gap-4","animate-fade-in",3,"ngClass"],["class","w-6 h-6 flex-shrink-0","fill","none","stroke","currentColor","viewBox","0 0 24 24",4,"ngIf"],[1,"text-sm","font-medium"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-6","h-6","flex-shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 13l4 4L19 7"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 16h-1v-4h-1m1-4h.01M12 20a8 8 0 100-16 8 8 0 000 16z"],[1,"bg-white","rounded-2xl","shadow-xl","w-full","max-w-md","p-6","space-y-4"],[1,"text-lg","font-semibold","text-neutral-900"],[1,"text-neutral-700"],[1,"flex","justify-end","gap-3","mt-4"],[1,"px-4","py-2","rounded-lg","border","border-gray-300","text-gray-700","hover:bg-gray-100","transition-colors","font-medium",3,"click"],[1,"px-4","py-2","rounded-lg","bg-red-600","text-white","hover:bg-red-700","transition-colors","font-medium",3,"click"]],template:function(e,a){e&1&&(n(0,"div",3)(1,"div",4)(2,"div")(3,"h1",5),r(4,"Ev\xE8nements"),o(),n(5,"p",6),r(6,"G\xE9rez les \xE9v\xE8nements "),o()(),n(7,"button",7),p("click",function(){return a.openModal()}),C(),n(8,"svg",8),f(9,"path",9),o(),r(10," Nouvel Ev\xE8nement "),o()(),S(),n(11,"div",10),b(12,pe,2,0,"div",11)(13,ge,5,0,"div",11)(14,xe,25,3,"div",12),o(),b(15,Ee,81,16,"div",13),o(),b(16,Se,7,9,"div",14),b(17,Me,11,1,"div",15)),e&2&&(s(12),w(a.loading()?12:a.articles().length===0?13:14),s(3),w(a.showModal()?15:-1),s(),w(a.notification().show?16:-1),s(),w(a.confirmModal().show?17:-1))},dependencies:[U,z,H,R,q,ae,te,ie,oe,Q,K,ne,X,Z,re,ee,$,Y],encapsulation:2})};export{se as EvenementsComponent};
|