PageSourceSearch

https://nivano.app/4191.523c4d73d00e6cd2.js

js nivano.app collected 2026-10-02 01:15:07 UTC 30,302 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknivano_web=self.webpackChunknivano_web||[]).push([[4191],{54191:(ee,R,l)=>{l.d(R,{H:()=>zt});var _=l(90416),k=l(21413),D=l(70152),j=l(23294),I=l(56977),F=l(94751),C=l(45955),x=l(34794),y=l(2019),t=l(17705),$=l(79988),w=l(10181),S=l(71629),G=l(87827),P=l(17505),M=l(69905),f=l(60177),O=l(52168),A=l(57721),V=l(85956),B=l(86600),K=l(31433),Y=l(48221),L=l(19275);const X=["notesPaginator"];function U(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",27),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG(2);return t.Njj(r.toggleKeyword(s.label))}),t.EFF(1),t.j41(2,"span",28),t.EFF(3),t.k0s()()}if(2&n){const e=a.$implicit;t.Y8G("ngClass","tag-"+e.color+(e.active?" active":"")),t.R7$(1),t.SpI(" ",e.label,""),t.R7$(2),t.JRh(e.count)}}function W(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",27),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG(4);return t.Njj(r.toggleKeyword(s.label))}),t.EFF(1),t.j41(2,"span",28),t.EFF(3),t.k0s()()}if(2&n){const e=a.$implicit;t.Y8G("ngClass","tag-"+e.color+(e.active?" active":"")),t.R7$(1),t.SpI(" ",e.label,""),t.R7$(2),t.JRh(e.count)}}function H(n,a){if(1&n&&(t.j41(0,"div",32),t.DNE(1,W,4,3,"button",25),t.k0s()),2&n){const e=t.XpG(3);t.R7$(1),t.Y8G("ngForOf",e.vm.extraKeywords)("ngForTrackBy",e.trackByLabel)}}function J(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",29),t.bIt("click",function(i){return i.stopPropagation()}),t.j41(1,"button",30),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.showAllKeywords=!i.showAllKeywords)}),t.EFF(2),t.k0s(),t.DNE(3,H,2,2,"div",31),t.k0s()}if(2&n){const e=t.XpG(2);t.R7$(2),t.Lme(" +",e.vm.extraKeywords.length," autre",e.vm.extraKeywords.length>1?"s":""," "),t.R7$(1),t.Y8G("ngIf",e.showAllKeywords)}}function z(n,a){if(1&n&&(t.qex(0),t.j41(1,"span",24),t.EFF(2,"Mots-cl\xe9s :"),t.k0s(),t.DNE(3,U,4,3,"button",25),t.DNE(4,J,4,3,"div",26),t.bVm()),2&n){const e=t.XpG();t.R7$(3),t.Y8G("ngForOf",e.vm.visibleKeywords)("ngForTrackBy",e.trackByLabel),t.R7$(1),t.Y8G("ngIf",e.vm.hasMoreKeywords)}}function Z(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",33),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.clearFilters())}),t.nrm(1,"i",34),t.EFF(2," Tout effacer "),t.k0s()}}function Q(n,a){1&n&&(t.j41(0,"p"),t.EFF(1," Aucune note. Cr\xe9ez votre premi\xe8re note ! "),t.k0s())}function q(n,a){1&n&&(t.j41(0,"p"),t.EFF(1,"Aucune note ne correspond \xe0 ces filtres."),t.k0s())}function tt(n,a){1&n&&(t.j41(0,"p"),t.EFF(1,"Aucune note archiv\xe9e."),t.k0s())}function et(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",16),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.nouvelleNote())}),t.nrm(1,"i",17),t.EFF(2," Cr\xe9er une note "),t.k0s()}}function nt(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",33),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.clearFilters())}),t.nrm(1,"i",34),t.EFF(2," Effacer les filtres "),t.k0s()}}function it(n,a){if(1&n&&(t.j41(0,"div",35),t.nrm(1,"i",36),t.DNE(2,Q,2,0,"p",19),t.DNE(3,q,2,0,"p",19),t.DNE(4,tt,2,0,"p",19),t.DNE(5,et,3,0,"button",37),t.DNE(6,nt,3,0,"button",20),t.k0s()),2&n){const e=t.XpG();t.R7$(2),t.Y8G("ngIf",!e.vm.hasActiveFilters&&"archived"!==e.scope),t.R7$(1),t.Y8G("ngIf",e.vm.hasActiveFilters),t.R7$(1),t.Y8G("ngIf",!e.vm.hasActiveFilters&&"archived"===e.scope),t.R7$(1),t.Y8G("ngIf",!e.vm.hasActiveFilters&&"archived"!==e.scope),t.R7$(1),t.Y8G("ngIf",e.vm.hasActiveFilters)}}function ot(n,a){1&n&&t.eu8(0)}const b=function(n){return{$implicit:n}};function at(n,a){if(1&n&&(t.j41(0,"div",44),t.DNE(1,ot,1,0,"ng-container",45),t.k0s()),2&n){const e=a.$implicit;t.XpG(3);const o=t.sdS(39);t.R7$(1),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,b,e))}}function st(n,a){if(1&n&&(t.qex(0),t.j41(1,"div",39),t.nrm(2,"i",40),t.EFF(3," \xc9pingl\xe9es "),t.j41(4,"span",41),t.EFF(5),t.k0s()(),t.j41(6,"div",42),t.DNE(7,at,2,4,"div",43),t.k0s(),t.bVm()),2&n){const e=t.XpG(2);t.R7$(5),t.JRh(e.vm.totalPinned),t.R7$(2),t.Y8G("ngForOf",e.vm.pinnedCards)("ngForTrackBy",e.trackById)}}function rt(n,a){if(1&n&&(t.j41(0,"div",39),t.EFF(1," R\xe9centes "),t.j41(2,"span",41),t.EFF(3),t.k0s()()),2&n){const e=t.XpG(3);t.R7$(3),t.JRh(e.vm.totalRecent)}}function ct(n,a){1&n&&t.eu8(0)}function lt(n,a){if(1&n&&(t.j41(0,"div",48),t.DNE(1,ct,1,0,"ng-container",45),t.k0s()),2&n){const e=a.$implicit;t.XpG(3);const o=t.sdS(39);t.R7$(1),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,b,e))}}function _t(n,a){if(1&n&&(t.qex(0),t.DNE(1,rt,4,1,"div",46),t.j41(2,"div",42),t.DNE(3,lt,2,4,"div",47),t.k0s(),t.bVm()),2&n){const e=t.XpG(2);t.R7$(1),t.Y8G("ngIf",e.vm.pinnedCards.length>0),t.R7$(2),t.Y8G("ngForOf",e.vm.recentCards)("ngForTrackBy",e.trackById)}}function pt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",49)(1,"span",50),t.EFF(2),t.k0s(),t.j41(3,"div",51)(4,"button",52),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.prevCardPage())}),t.nrm(5,"i",53),t.k0s(),t.j41(6,"button",52),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.nextCardPage())}),t.nrm(7,"i",54),t.k0s()()()}if(2&n){const e=t.XpG(2);t.R7$(2),t.JRh(e.vm.cardPageRange),t.R7$(2),t.Y8G("disabled",!e.vm.hasPrevCardPage),t.R7$(2),t.Y8G("disabled",!e.vm.hasNext
1CardPage)}}function mt(n,a){if(1&n&&(t.qex(0),t.DNE(1,st,8,3,"ng-container",19),t.DNE(2,_t,4,3,"ng-container",19),t.DNE(3,pt,8,3,"div",38),t.bVm()),2&n){const e=t.XpG();t.R7$(1),t.Y8G("ngIf",e.vm.pinnedCards.length>0),t.R7$(1),t.Y8G("ngIf",e.vm.recentCards.length>0),t.R7$(1),t.Y8G("ngIf",e.vm.showCardPagination)}}function dt(n,a){1&n&&t.nrm(0,"mat-header-cell")}function ut(n,a){1&n&&t.nrm(0,"i",73)}function ft(n,a){1&n&&t.nrm(0,"i",74)}function ht(n,a){if(1&n&&(t.j41(0,"mat-cell"),t.DNE(1,ut,1,0,"i",71),t.DNE(2,ft,1,0,"i",72),t.k0s()),2&n){const e=a.$implicit;t.R7$(1),t.Y8G("ngIf",e.pinned),t.R7$(1),t.Y8G("ngIf",e.isPrivate)}}function gt(n,a){if(1&n){const e=t.RV6();t.j41(0,"mat-header-cell",75),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.setSort("titre"))}),t.EFF(1," Titre "),t.nrm(2,"i",76),t.k0s()}if(2&n){const e=t.XpG(2);t.AVh("active","titre"===e.sortCol),t.R7$(2),t.Y8G("ngClass","titre"===e.sortCol?"asc"===e.sortDir?"fa-sort-up":"fa-sort-down":"fa-sort")}}function vt(n,a){if(1&n&&(t.j41(0,"mat-cell")(1,"span",77),t.EFF(2),t.k0s()()),2&n){const e=a.$implicit;t.R7$(2),t.JRh(e.titre)}}function bt(n,a){1&n&&(t.j41(0,"mat-header-cell"),t.EFF(1,"Aper\xe7u"),t.k0s())}function Ct(n,a){if(1&n&&(t.j41(0,"mat-cell")(1,"span",78),t.EFF(2),t.k0s()()),2&n){const e=a.$implicit;t.R7$(1),t.AVh("empty",!e.hasExcerpt),t.R7$(1),t.SpI(" ",e.hasExcerpt?e.excerpt:"\u2014"," ")}}function Tt(n,a){1&n&&(t.j41(0,"mat-header-cell"),t.EFF(1,"Mots-cl\xe9s"),t.k0s())}function Et(n,a){if(1&n&&(t.j41(0,"span",81),t.EFF(1),t.k0s()),2&n){const e=a.$implicit;t.Y8G("ngClass","tag-"+e.color),t.R7$(1),t.JRh(e.label)}}function kt(n,a){if(1&n&&(t.j41(0,"mat-cell")(1,"div",79),t.DNE(2,Et,2,2,"span",80),t.k0s()()),2&n){const e=a.$implicit;t.R7$(2),t.Y8G("ngForOf",e.tags)}}function Nt(n,a){if(1&n){const e=t.RV6();t.j41(0,"mat-header-cell",75),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.setSort("responsable"))}),t.EFF(1," Auteur "),t.nrm(2,"i",76),t.k0s()}if(2&n){const e=t.XpG(2);t.AVh("active","responsable"===e.sortCol),t.R7$(2),t.Y8G("ngClass","responsable"===e.sortCol?"asc"===e.sortDir?"fa-sort-up":"fa-sort-down":"fa-sort")}}const N=function(n){return["/collaborateurs",n]};function Rt(n,a){if(1&n&&(t.j41(0,"div",83),t.nrm(1,"app-avatar",84),t.nI1(2,"contactDisplayName"),t.nI1(3,"imageUrl"),t.j41(4,"a",85),t.bIt("click",function(o){return o.stopPropagation()}),t.EFF(5),t.nI1(6,"contactDisplayName"),t.k0s()()),2&n){const e=t.XpG().$implicit;t.R7$(1),t.Y8G("nomAffichage",t.bMT(2,5,e.responsable))("size",24)("imageStyle",t.bMT(3,7,e.responsable)),t.R7$(3),t.Y8G("routerLink",t.eq3(11,N,null==e.responsable?null:e.responsable.id)),t.R7$(1),t.SpI(" ",t.bMT(6,9,e.responsable)," ")}}function Dt(n,a){if(1&n&&(t.j41(0,"mat-cell"),t.DNE(1,Rt,7,13,"div",82),t.k0s()),2&n){const e=a.$implicit;t.R7$(1),t.Y8G("ngIf",e.responsable)}}function jt(n,a){if(1&n){const e=t.RV6();t.j41(0,"mat-header-cell",75),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.setSort("dateModification"))}),t.EFF(1," Modifi\xe9e "),t.nrm(2,"i",76),t.k0s()}if(2&n){const e=t.XpG(2);t.AVh("active","dateModification"===e.sortCol),t.R7$(2),t.Y8G("ngClass","dateModification"===e.sortCol?"asc"===e.sortDir?"fa-sort-up":"fa-sort-down":"fa-sort")}}function It(n,a){if(1&n&&(t.j41(0,"mat-cell")(1,"span",86),t.EFF(2),t.k0s()()),2&n){const e=a.$implicit;t.R7$(2),t.JRh(e.dateStr)}}function Ft(n,a){1&n&&t.nrm(0,"mat-header-cell")}function xt(n,a){1&n&&t.eu8(0)}function yt(n,a){if(1&n&&(t.j41(0,"div",92),t.DNE(1,xt,1,0,"ng-container",45),t.k0s()),2&n){const e=t.XpG().$implicit;t.XpG(2);const o=t.sdS(41);t.R7$(1),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,b,e))}}function $t(n,a){if(1&n){const e=t.RV6();t.j41(0,"mat-cell",87),t.bIt("click",function(i){return i.stopPropagation()}),t.j41(1,"div",88)(2,"button",89),t.bIt("click",function(i){const r=t.eBV(e).$implicit,m=t.XpG(2);return t.Njj(m.openKebab(r,i))}),t.nrm(3,"i",90),t.k0s(),t.DNE(4,yt,2,4,"div",91),t.k0s()()}if(2&n){const e=a.$implicit;t.R7$(4),t.Y8G("ngIf",e.openKebab)}}function wt(n,a){1&n&&t.nrm(0,"mat-header-row")}function St(n,a){if(1&n){const e=t.RV6();t.j41(0,"mat-row",93),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG
1(2);return t.Njj(r.editerNote(s))}),t.k0s()}}const Gt=function(){return[10,25,50,100]};function Pt(n,a){if(1&n&&(t.qex(0),t.j41(1,"mat-table",55),t.qex(2,56),t.DNE(3,dt,1,0,"mat-header-cell",57),t.DNE(4,ht,3,2,"mat-cell",58),t.bVm(),t.qex(5,59),t.DNE(6,gt,3,3,"mat-header-cell",60),t.DNE(7,vt,3,1,"mat-cell",58),t.bVm(),t.qex(8,61),t.DNE(9,bt,2,0,"mat-header-cell",57),t.DNE(10,Ct,3,3,"mat-cell",58),t.bVm(),t.qex(11,62),t.DNE(12,Tt,2,0,"mat-header-cell",57),t.DNE(13,kt,3,1,"mat-cell",58),t.bVm(),t.qex(14,63),t.DNE(15,Nt,3,3,"mat-header-cell",60),t.DNE(16,Dt,2,1,"mat-cell",58),t.bVm(),t.qex(17,64),t.DNE(18,jt,3,3,"mat-header-cell",60),t.DNE(19,It,3,1,"mat-cell",58),t.bVm(),t.qex(20,65),t.DNE(21,Ft,1,0,"mat-header-cell",57),t.DNE(22,$t,5,1,"mat-cell",66),t.bVm(),t.DNE(23,wt,1,0,"mat-header-row",67),t.DNE(24,St,1,0,"mat-row",68),t.k0s(),t.nrm(25,"mat-paginator",69,70),t.bVm()),2&n){const e=t.XpG();t.R7$(1),t.Y8G("dataSource",e.listDataSource),t.R7$(22),t.Y8G("matHeaderRowDef",e.listColumns)("matHeaderRowDefSticky",!0),t.R7$(1),t.Y8G("matRowDefColumns",e.listColumns),t.R7$(1),t.Y8G("pageSize",25)("pageSizeOptions",t.lJ4(6,Gt))}}function Mt(n,a){1&n&&(t.qex(0),t.j41(1,"span",107),t.nrm(2,"i",40),t.EFF(3," \xc9pingl\xe9e "),t.k0s(),t.bVm())}function Ot(n,a){1&n&&t.nrm(0,"i",108)}function At(n,a){1&n&&t.nrm(0,"i",74)}function Vt(n,a){1&n&&t.eu8(0)}function Bt(n,a){if(1&n&&(t.j41(0,"div",109),t.DNE(1,Vt,1,0,"ng-container",45),t.k0s()),2&n){const e=t.XpG().$implicit;t.XpG();const o=t.sdS(41);t.R7$(1),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,b,e))}}function Kt(n,a){if(1&n&&(t.j41(0,"div",110),t.nrm(1,"span",111),t.EFF(2),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(1),t.xc7("color",e.contextIconColor),t.Y8G("ngClass",e.contextIconClass)("title",e.contextLabel),t.R7$(1),t.SpI(" ",e.titleObjet," ")}}function Yt(n,a){if(1&n&&(t.j41(0,"span",81),t.EFF(1),t.k0s()),2&n){const e=a.$implicit;t.Y8G("ngClass","tag-"+e.color),t.R7$(1),t.JRh(e.label)}}function Lt(n,a){if(1&n&&(t.j41(0,"div",112),t.DNE(1,Yt,2,2,"span",80),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(1),t.Y8G("ngForOf",e.tags)}}const Xt=function(n){return{"background-image":n}};function Ut(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",94)(1,"div",95),t.DNE(2,Mt,4,0,"ng-container",96),t.DNE(3,Ot,1,0,"ng-template",null,97,t.C5r),t.DNE(5,At,1,0,"i",72),t.k0s(),t.j41(6,"div",98),t.bIt("click",function(i){return i.stopPropagation()}),t.j41(7,"button",89),t.bIt("click",function(i){const r=t.eBV(e).$implicit,m=t.XpG();return t.Njj(m.openKebab(r,i))}),t.nrm(8,"i",90),t.k0s(),t.DNE(9,Bt,2,4,"div",99),t.k0s()(),t.j41(10,"div",100),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG
1();return t.Njj(r.editerNote(s))}),t.EFF(11),t.k0s(),t.j41(12,"div",101),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG();return t.Njj(r.editerNote(s))}),t.EFF(13),t.k0s(),t.DNE(14,Kt,3,5,"div",102),t.DNE(15,Lt,2,1,"div",103),t.j41(16,"div",104)(17,"div",83),t.nrm(18,"div",105),t.nI1(19,"imageUrl"),t.j41(20,"a",106),t.bIt("click",function(i){return i.stopPropagation()}),t.EFF(21),t.nI1(22,"contactDisplayName"),t.k0s()(),t.j41(23,"span",86),t.EFF(24),t.k0s()()}if(2&n){const e=a.$implicit,o=t.sdS(4),i=t.XpG();t.R7$(2),t.Y8G("ngIf",e.pinned)("ngIfElse",o),t.R7$(3),t.Y8G("ngIf",e.isPrivate),t.R7$(4),t.Y8G("ngIf",e.openKebab),t.R7$(2),t.JRh(e.titre),t.R7$(1),t.AVh("empty",!e.hasExcerpt),t.R7$(1),t.SpI(" ",e.hasExcerpt?e.excerpt:"\u2014 note vide \u2014"," "),t.R7$(1),t.Y8G("ngIf","page"===i.mode&&e.titleObjet),t.R7$(1),t.Y8G("ngIf",e.tags.length>0),t.R7$(3),t.Y8G("ngStyle",t.eq3(18,Xt,t.bMT(19,14,e.responsable))),t.R7$(2),t.Y8G("routerLink",t.eq3(20,N,null==e.responsable?null:e.responsable.id)),t.R7$(1),t.SpI(" ",t.bMT(22,16,e.responsable)," "),t.R7$(3),t.JRh(e.dateStr)}}function Wt(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",113),t.bIt("click",function(){t.eBV(e);const i=t.XpG().$implicit,s=t.XpG();return t.Njj(s.archiver(i))}),t.nrm(1,"i",121),t.EFF(2," Archiver "),t.k0s()}}function Ht(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",113),t.bIt("click",function(){t.eBV(e);const i=t.XpG().$implicit,s=t.XpG();return t.Njj(s.retablir(i))}),t.nrm(1,"i",122),t.EFF(2," Restaurer "),t.k0s()}}function Jt(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",113),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG
1();return t.Njj(r.togglePin(s))}),t.nrm(1,"i",40),t.EFF(2),t.k0s(),t.j41(3,"button",113),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG();return t.Njj(r.editerNote(s))}),t.nrm(4,"i",114),t.EFF(5," Modifier "),t.k0s(),t.j41(6,"button",113),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG();return t.Njj(r.dupliquer(s))}),t.nrm(7,"i",115),t.EFF(8," Dupliquer "),t.k0s(),t.DNE(9,Wt,3,0,"button",116),t.DNE(10,Ht,3,0,"button",116),t.j41(11,"button",113),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG();return t.Njj(r.download(s))}),t.nrm(12,"i",117),t.EFF(13," T\xe9l\xe9charger PDF "),t.k0s(),t.nrm(14,"div",118),t.j41(15,"button",119),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG();return t.Njj(r.supprimer(s))}),t.nrm(16,"i",120),t.EFF(17," Supprimer "),t.k0s()}if(2&n){const e=a.$implicit;t.R7$(2),t.SpI(" ",e.pinned?"D\xe9s\xe9pingler":"\xc9pingler"," "),t.R7$(7),t.Y8G("ngIf",!e.archived),t.R7$(1),t.Y8G("ngIf",e.archived)}}let zt=(()=>{class n{static{this.TAG_COLORS=["purple","teal","coral","pink","blue","amber","green","gray"]}constructor(e,o,i,s,r,m,T){this.cdr=e,this.dialog=o,this.jarvysService=i,this.authService=s,this.notesService=r,this.notesActionsService=m,this.dateService=T,this.mode="page",this.title="",this.viewMode="cards",this.scope="all",this.sortCol="dateModification",this.sortDir="desc",this.searchTerm="",this.activeKeywords=new Set,this.showAllKeywords=!1,this.cardPage=0,this.CARD_PAGE_SIZE=12,this.MAX_VISIBLE_KEYWORDS=8,this.listColumns=["pin","titre","apercu","tags","auteur","date","actions"],this.listDataSource=new _.Nf,this.vm=this.emptyVm(),this.allNotes=[],this.initialized=!1,this.search$=new k.B,this.destroy$=new k.B,this.loadNotes=()=>{let p=null;"tab"===this.mode&&this.type&&this.identifiant?p=this.notesService.getByContext(this.t
1ype,this.identifiant):"page"===this.mode&&(p=this.notesService.getAllNotes(this.collaborateur.id)),p&&(this.jarvysService.showLoading(),p.subscribe(h=>{this.allNotes=h,this.cardPage=0,this.buildViewModel(),this.jarvysService.hideLoading(),this.cdr.markForCheck()},()=>{this.jarvysService.hideLoading(),this.jarvysService.erreur("Impossible de charger les notes")}))},this.collaborateur=this.authService.loggedUser,this.loadStoredState()}ngOnInit(){this.initialized=!0,this.loadNotes(),this.search$.pipe((0,D.B)(200),(0,j.F)(),(0,I.Q)(this.destroy$)).subscribe(e=>{this.searchTerm=e,this.cardPage=0,this.buildViewModel(),this.cdr.markForCheck()})}ngAfterViewInit(){this.listDataSource.paginator=this.notesPaginator}ngOnChanges(e){e&&this.initialized&&this.loadNotes()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScope(e){this.scope=e,this.activeKeywords.clear(),this.cardPage=0,this.buildViewModel(),this.cdr.markForCheck()}setView(e){this.viewMode=e,localStorage.setItem("nv.notes-tab.view",e),this.cdr.markForCheck()}setSort(e){this.sortCol===e?this.sortDir="desc"===this.sortDir?"asc":"desc":(this.sortCol=e,this.sortDir="desc"),localStorage.setItem("nv.notes-tab.sort",`${this.sortCol}:${this.sortDir}`),this.buildViewModel(),this.cdr.markForCheck()}onSearch(e){this.search$.next(e)}toggleKeyword(e){this.activeKeywords.has(e)?this.activeKeywords.delete(e):this.activeKeywords.add(e),this.cardPage=0,this.buildViewModel(),this.cdr.markForCheck()}clearFilters(){this.search$.next(""),this.searchTerm="",this.scope="all",this.activeKeywords.clear(),this.cardPage=0,this.buildViewModel(),this.cdr.markForCheck()}prevCardPage(){this.cardPage--,this.buildViewModel(),this.cdr.markForCheck()}nextCardPage(){this.cardPage++,this.buildViewModel(),this.cdr.markForCheck()}openKebab(e,o){o.stopPropagation();const i=e.openKebab;this.closeAllMenus(),e.openKebab=!i,this.cdr.markForCheck()}closeAllMenus(){let e=!1;[...this.vm.pinnedCards,...this.vm.recentCards,...this.listDataSource.data].forEach(i=>{i.openKebab&&(i.openKebab=!1,e=!0)}),this.showAllKeywords&&(this.showAllKeywords=!1,e=!0),e&&this.cdr.markForCheck()}trackById(e,o){return o.id}trackByLabel(e,o){return o.label}nouvelleNote(){const e=new x.L;this.type&&this.identifiant&&this.title&&(e.idObjet=""+this.identifiant,e.typeObjet=this.type,e.titleObjet=this.title),e.titre=`Note - ${e.titleObjet||""} - ${this.dateService.formatYYYY_MM_DD_HHmm(new Date)}`,this.notesActionsService.openNoteInPopup(e,this.loadNotes)}editerNote(e){const o=this.findNote(e.id);o&&this.notesActionsService.openNoteInPopup({...o},this.loadNotes)}togglePin(e){const o=this.findNote(e.id);o&&(o.epinglee=!o.epinglee,this.jarvysService.showLoading(),this.notesService.update(o).subscribe(()=>{this.jarvysService.hideLoading(),this.loadNotes()},i=>this.jarvysService.erreur(i)))}archiver(e){const o=this.findNote(e.id);o&&(o.epinglee=!1,o.archivee=!0,this.jarvysService.showLoading(),this.notesService.update(o).subscribe(()=>{this.jarvysService.hideLoading(),this.jarvysService.openCustomSnackBar('La note <span class="accent">'+(o.titre||"")+"</span> a bien \xe9t\xe9 archiv\xe9e",F.YM.TypeUrl.NOTE,o.id),this.loadNotes()},i=>this.jarvysService.erreur(i)))}retablir(e){const o=this.findNote(e.id);o&&(o.archivee=!1,this.jarvysService.showLoading(),this.notesService.update(o).subscribe(()=>{this.jarvysService.hideLoading(),this.loadNotes()},i=>this.jarvysService.erreur(i)))}dupliquer(e){const o=this.findNote(e.id);o&&this.notesService.dupliquer(o).subscribe(()=>this.loadNotes())}supprimer(e){const o=this.findNote(e.id);o&&this.dialog.open(y.u,{data:{title:"Note "+(o.titre||""),message:"\xcates-vous s\xfbr de vouloir supprimer cette note ?",okMessage:"Oui"}}).afterClosed().subscribe(s=>{!0===s&&(this.jarvysService.showLoading(),this.notesService.delete(o).subscribe(()=>{this.jarvysService.hideLoading(),this.jarvysService.openCustomSnackBar('La note <span class="accent">'+(o.titre||"")+"</span> a bien \xe9t\xe9 supprim\xe9e",null,null),this.loadNotes()},r=>this.jarvysService.erreur(r)))})}download(e){const o=this.findNote(e.id);o&&this.notesService.genererEtTelechargerNote(o)}static getTagColor(e){let o=0;for(let i=0;i<e.length;i++)o=(o<<5)-o+e.charCodeAt(i),o|=0;return n.TAG_COLORS[Math.abs(o)%n.TAG_COLORS.length]}loadStoredState(){const e=localStorage.getItem("nv.notes-tab.view");this.viewMode="list"===e?"list":"cards";const o=localStorage.getItem("nv.notes-tab.sort");if(o){const[i,s]=o.split(":");i&&(this.sortCol=i),("asc"===s||"desc"===s)&&(this.sortDir=s)}}buildViewModel(){let e=this.allNotes.filter(c=>"archived"===this.scope?!!c.archivee:"mine"===this.scope?!c.archivee&&c.responsable?.id===this.collaborateur?.i
1d:!c.archivee);const o=this.buildKeywords(e),i=o.slice(0,this.MAX_VISIBLE_KEYWORDS),s=o.slice(this.MAX_VISIBLE_KEYWORDS),r=this.searchTerm.trim().toLowerCase();r&&(e=e.filter(c=>c.titre?.toLowerCase().includes(r)||this.stripHtml(c.description).toLowerCase().includes(r))),this.activeKeywords.size>0&&(e=e.filter(c=>C.D.splitTagsWithoutWhiteSpace(c.tags).some(d=>this.activeKeywords.has(d))));const m=[...e].sort((c,v)=>{let d=0;switch(this.sortCol){case"titre":d=(c.titre||"").localeCompare(v.titre||"","fr");break;case"responsable":d=this.displayName(c.responsable).localeCompare(this.displayName(v.responsable),"fr");break;default:d=(c.dateModification?new Date(c.dateModification).getTime():0)-(v.dateModification?new Date(v.dateModification).getTime():0)}return"asc"===this.sortDir?d:-d}),T={all:this.allNotes.filter(c=>!c.archivee).length,mine:this.allNotes.filter(c=>!c.archivee&&c.responsable?.id===this.collaborateur?.id).length,archived:this.allNotes.filter(c=>!!c.archivee).length},p=m.map(c=>this.toViewModel(c)),h=p.filter(c=>c.pinned),E=p.filter(c=>!c.pinned),g=this.cardPage*this.CARD_PAGE_SIZE,u=E.length,Zt=E.slice(g,g+this.CARD_PAGE_SIZE),Qt=0===u?"":`${g+1}\u2013${Math.min(g+this.CARD_PAGE_SIZE,u)} sur ${u}`;this.listDataSource.data=[...h,...E],this.vm={pinnedCards:h,recentCards:Zt,visibleKeywords:i,extraKeywords:s,hasMoreKeywords:s.length>0,scopeCounts:T,totalPinned:h.length,totalRecent:u,cardPageRange:Qt,hasPrevCardPage:this.cardPage>0,hasNextCardPage:g+this.CARD_PAGE_SIZE<u,showCardPagination:u>this.CARD_PAGE_SIZE,isEmpty:0===p.length,hasActiveFilters:r.length>0||this.activeKeywords.size>0||"all"!==this.scope}}buildKeywords(e){const o=new Map;return e.forEach(i=>{C.D.splitTagsWithoutWhiteSpace(i.tags).forEach(s=>{o.set(s,(o.get(s)||0)+1)})}),Array.from(o.entries()).sort((i,s)=>s[1]-i[1]).map(([i,s])=>({label:i,count:s,color:n.getTagColor(i),active:this.activeKeywords.has(i)}))}toViewModel(e){const o=this.stripHtml(e.description||"");return{id:e.id,titre:e.titre||"(Sans titre)",excerpt:o.slice(0,150).trim(),hasExcerpt:o.trim().length>0,tags:C.D.splitTagsWithoutWhiteSpace(e.tags).map(i=>({label:i,color:n.getTagColor(i)})),responsable:e.responsable,dateStr:this.formatRelativeDate(e.dateModification),pinned:!!e.epinglee,isPrivate:!!e.privee,archived:!!e.archivee,typeObjet:e.typeObjet,titleObjet:e.titleObjet,contextIconClass:this.jarvysService.getIconClassByType(e.typeObjet),contextIconColor:this.jarvysService.getIconColorByType(e.typeObjet),contextLabel:this.jarvysService.getLabelByType(e.typeObjet),openKebab:!1}}stripHtml(e){if(!e)return"";try{return(new DOMParser).parseFromString(e,"text/html").body.textContent||""}catch{return e}}formatRelativeDate(e){if(!e)return"";const o=e instanceof Date?e:new Date(e.toString().replace("T"," ")),i=Math.floor((Date.now()-o.getTime())/864e5);return 0===i?o.toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"}):i<7?`il y a ${i} j`:o.toLocaleDateString("fr-FR",{day:"2-digit",month:"short"})}displayName(e){return e?[e.prenom,e.nom].filter(Boolean).join(" "):""}findNote(e){return this.allNotes.find(o=>o.id===e)}emptyVm(){return{pinnedCards:[],recentCards:[],visibleKeywords:[],extraKeywords:[],hasMoreKeywords:!1,scopeCounts:{all:0,mine:0,archived:0},totalPinned:0,totalRecent:0,cardPageRange:"",hasPrevCardPage:!1,hasNextCardPage:!1,showCardPagination:!1,isEmpty:!0,hasActiveFilters:!1}}static{this.\u0275fac=function(o){return new(o||n)(t.rXU(t.gRc),t.rXU($.ef),t.rXU(w.L),t.rXU(S.u),t.rXU(G.j),t.rXU(P.y),t.rXU(M.k))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["notes-table"]],viewQuery:function(o,i){if(1&o&&t.GBs(X,5),2&o){let s;t.mGM(s=t.lsd())&&(i.notesPaginator=s.first)}},hostBindings:function(o,i){1&o&&t.bIt("click",function(){return i.closeAllMenus()},!1,t.EBC)},inputs:{mode:"mode",type:"type",identifiant:"identifiant",title:"title"},features:[t.OA$],decls:42,vars:19,consts:[[1,"nv-form","mx-3"],[1,"nv-tab-toolbar"],[1,"d-flex","gap-2"],[1,"nv-tab-search"],[1,"fas","fa-magnifying-glass"],["type","text","placeholder","Rechercher une note\u2026",3,"value","input"],[1,"filter-toggle",3,"click"],[1,"fas","fa-layer-group"],[1,"nv-scope-count"],[1,"fas","fa-user"],[1,"fas","fa-box-archive"],[1,"nv-view-switch"],["title","Vue cartes",3,"click"],[1,"fas","fa-grip"],["title","Vue liste",3,"click"],[1,"fas","fa-list"],["mat-flat-button","","color","primary",3,"click"],[1,"fas","fa-plus","me-1"],[1,"nv-tab-subbar"],[4,"ngIf"],["class","nv-clear-filters",3,"click",4,"ngIf"],["class","nv-empty-state",4,"ngIf"],["cardTpl",""],["kebabItems",""],[1,"nv-notes-subbar-label"],["class","nv-keyword-chip",3,"ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],["class","nv-more-kw-wrap",3,"click",4,"ngIf"],[1,"nv-keyword-chip",3,"ngClass","click"],[1,"nv-kw-count"],[1,"nv-more-kw-wrap",3,"click"],[1,"nv-keyword-chip",3,"click"],["class","nv-more-kw-panel",4,"ngIf"],[1,"nv-more-kw-panel"],[1,"nv-clear-filters",3,"click"],[1,"fas","fa-times-circle"],[1,"nv-empty-state"],[1,"far","fa-sticky-note"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["class","nv-pagination",4,"ngIf"],[1,"nv-section-head"],[1,"fas","fa-thumbtack"],[1,"nv-section-count"],[1,"nv-cards-grid"],["class","nv-note-card pinned",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nv-note-card","pinned"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","nv-section-head",4,"ngIf"],["class","nv-note-card",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nv-note-card"],[1,"nv-pagination"],[1,"nv-pagination-info"],[1,"nv-pagination-controls"],[3,"disabled","click"],[1,"fas","fa-chevron-left"],[1,"fas","fa-chevron-right"],[1,"nv-notes-table",3,"dataSource"],["matColumnDef","pin"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","titre"],["class","nv-sortable-header",3,"active","click",4,"matHeaderCellDef"],["matColumnDef","apercu"],["matColumnDef","tags"],["matColumnDef","auteur"],["matColumnDef","date"],["matColumnDef","actions"],[3,"click",4,"matCellDef"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],["class","clickable","matRipple","",3,"click",4,"matRowDef","matRowDefColumns"],[1,"ms-auto",3,"pageSize","pageSizeOptions"],["notesPaginator",""],["class","fas fa-thumbtack nv-pin-icon","title","\xc9pingl\xe9e",4,"ngIf"],["class","fas fa-lock nv-private-icon","title","Priv\xe9e",4,"ngIf"],["title","\xc9pingl\xe9e",1,"fas","fa-thumbtack","nv-pin-icon"],["title","Priv\xe9e",1,"fas","fa-lock","nv-private-icon"],[1,"nv-sortable-header",3,"click"],[1,"fas","ms-1",3,"ngClass"],[1,"nv-list-title-text"],[1,"nv-list-excerpt-text"],[1,"nv-list-tags"],["class","nv-tag",3,"ngClass",4,"ngFor","ngForOf"],[1,"nv-tag",3,"ngClass"],["class","nv-note-author",4,"ngIf"],[1,"nv-note-author"],[3,"nomAffichage","size","imageStyle"],[1,"nv-author-name","ms-1",3,"routerLink","click"],[1,"nv-note-date"],[3,"click"],[1,"nv-kebab-wrap"],["title","Actions",1,"nv-kebab",3,"click"],[1,"fas","fa-ellipsis-v"],["class","nv-kebab-menu nv-kebab-menu-left",4,"ngIf"],[1,"nv-kebab-menu","nv-kebab-menu-left"],["matRipple","",1,"clickable",3,"click"],[1,"nv-note-top"],[1,"nv-note-icons"],[4,"ngIf","ngIfElse"],["fileIcon",""],[1,"nv-kebab-wrap",3,"click"],["class","nv-kebab-menu",4,"ngIf"],[1,"nv-note-title",3,"click"],[1,"nv-note-excerpt",3,"click"],["class","nv-note-context",4,"ngIf"],["class","nv-note-tags",4,"ngIf"],[1,"nv-note-foot"],[1,"nv-avatar",3,"ngStyle"],[1,"nv-author-name",3,"routerLink","click"],["title","\xc9pingl\xe9e",1,"nv-pin-label"],[1,"fas","fa-file-lines","nv-note-file-icon"],[1,"nv-kebab-menu"],[1,"nv-note-context"],[3,"ngClass","title"],[1,"nv-note-tags"],[1,"nv-menu-item",3,"click"],[1,"fas","fa-pen"],[1,"fas","fa-copy"],["class","nv-menu-item",3,"click",4,"ngIf"],[1,"fas","fa-download"],[1,"nv-kebab-sep"],[1,"nv-menu-item","danger",3,"click"],[1,"fas","fa-tras
1h"],[1,"fas","fa-archive"],[1,"fas","fa-sync"]],template:function(o,i){1&o&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.nrm(4,"i",4),t.j41(5,"input",5),t.bIt("input",function(r){return i.onSearch(r.target.value)}),t.k0s()(),t.j41(6,"button",6),t.bIt("click",function(){return i.setScope("all")}),t.nrm(7,"i",7),t.EFF(8," Toutes "),t.j41(9,"span",8),t.EFF(10),t.k0s()(),t.j41(11,"button",6),t.bIt("click",function(){return i.setScope("mine")}),t.nrm(12,"i",9),t.EFF(13," Mes notes "),t.j41(14,"span",8),t.EFF(15),t.k0s()(),t.j41(16,"button",6),t.bIt("click",function(){return i.setScope("archived")}),t.nrm(17,"i",10),t.EFF(18," Archiv\xe9es "),t.j41(19,"span",8),t.EFF(20),t.k0s()()(),t.j41(21,"div",2)(22,"div",11)(23,"button",12),t.bIt("click",function(){return i.setView("cards")}),t.nrm(24,"i",13),t.EFF(25," Cartes "),t.k0s(),t.j41(26,"button",14),t.bIt("click",function(){return i.setView("list")}),t.nrm(27,"i",15),t.EFF(28," Liste "),t.k0s()(),t.j41(29,"button",16),t.bIt("click",function(){return i.nouvelleNote()}),t.nrm(30,"i",17),t.EFF(31," Nouvelle note "),t.k0s()()(),t.j41(32,"div",18),t.DNE(33,z,5,3,"ng-container",19),t.DNE(34,Z,3,0,"button",20),t.k0s(),t.DNE(35,it,7,5,"div",21),t.DNE(36,mt,4,3,"ng-container",19),t.DNE(37,Pt,27,7,"ng-container",19),t.k0s(),t.DNE(38,Ut,25,22,"ng-template",null,22,t.C5r),t.DNE(40,Jt,18,3,"ng-template",null,23,t.C5r)),2&o&&(t.R7$(5),t.Y8G("value",i.searchTerm),t.R7$(1),t.AVh("active","all"===i.scope),t.R7$(4),t.JRh(i.vm.scopeCounts.all),t.R7$(1),t.AVh("active","mine"===i.scope),t.R7$(4),t.JRh(i.vm.scopeCounts.mine),t.R7$(1),t.AVh("active","archived"===i.scope),t.R7$(4),t.JRh(i.vm.scopeCounts.archived),t.R7$(3),t.AVh("active","cards"===i.viewMode),t.R7$(3),t.AVh("active","list"===i.viewMode),t.R7$(7),t.Y8G("ngIf",i.vm.visibleKeywords.length>0),t.R7$(1),t.Y8G("ngIf",i.vm.hasActiveFilters),t.R7$(1),t.Y8G("ngIf",i.vm.isEmpty),t.R7$(1),t.Y8G("ngIf","cards"===i.viewMode&&!i.vm.isEmpty),t.R7$(1),t.Y8G("ngIf","list"===i.viewMode&&!i.vm.isEmpty))},dependencies:[f.YU,f.Sq,f.bT,f.T3,f.B3,O.Wk,_.MS,_.Aw,_.mS,_.j4,_.lM,_.p_,_.bO,_.cK,_.BE,_.OP,A.pG,V.iV,B.r6,K.f,Y.e,L.H],encapsulation:2,changeDetection:0})}}return n})()}}]);

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.