1import{a as M,b as F}from"./chunk-OSK75ZEF.js";import{Mb as N,Pb as x,sc as y}from"./chunk-ZHWEFV6F.js";import"./chunk-3ZXI66IH.js";import"./chunk-JGOU25BT.js";import{j as v,k as C}from"./chunk-NB4OEQC7.js";import"./chunk-CVRUICUM.js";import{la as A}from"./chunk-XKYAXNFE.js";import"./chunk-3IVA5JX7.js";import{a as h}from"./chunk-CTEXTQCJ.js";import{j as I}from"./chunk-775YJCP7.js";import{v as S}from"./chunk-BXBU4EVG.js";import{Ac as d,Ba as p,Bb as r,Oc as E,Ub as g,Uc as m,Vb as R,qc as l,sc as _,vc as T,wc as O,xa as u,xc as f,yc as a,zc as c}from"./chunk-URAJCVFL.js";import"./chunk-5LG52DZN.js";import"./chunk-VSLG5BUT.js";var P=(i,t)=>t._id;function U(i,t){i&1&&(a(0,"div"),E(1,0),c());}function L(i,t){if(i&1&&(a(0,"div",6),d(1,"app-enej-connector-tile",7),c()),i&2){let o=t.$implicit;r(),f("connecteur",o);}}function $(i,t){if(i&1&&T(0,L,2,1,"div",6,P),i&2){let o=m(3);O(o.connecteurs);}}function V(i,t){if(i&1&&(a(0,"div",4),l(1,$,2,0),c()),i&2){let o=m(2);r(),_(o.connecteurs&&o.connecteurs.length>0?1:-1);}}function D(i,t){i&1&&(a(0,"div",5),d(1,"img",8),a(2,"div",9),E(3,1),c()());}function j(i,t){if(i&1&&(a(0,"div",4),l(1,V,2,1,"div",4),c(),l(2,D,4,0,"div",5)),i&2){let o=m();r(),_(o.connecteurs?1:-1),r(),_(o.connecteurs&&o.connecteurs.length===0?2:-1);}}var G=(()=>{let t=class t{constructor(){this.metierContexte=p(h),this.metierRights=p(v),this.rightAccess=!1,this.filArianne=[],this.connecteurs=[];}ngOnInit(){this.rightAccess=this.metierRights.canIAny("GESTION_RESS_DROIT_ACCEDER"),this.filArianne=[{libelle:"Pilotage",url:["pilotage"]},{libelle:"Ressources",url:[]}],this.connecteurs=this.makeConnecteurs();}makeConnecteurs(){let s=this.metierContexte.connecteurs$.value.filter(e=>e.scopeConnecteur===M.configuration).map(e=>{if(e.codeConnecteur){let n=F[e.codeConnecteur];n&&(e.title=n.title,e.description=n.description,e.imageUrl=n.imageUrl,e.imageAlt=n.imageAlt),e.codeConnecteur===C.lev?(e.isDeactivableByCollectivite=this.metierRights.canIAny("LEV_ENEJ_DROIT_ACTIVER_COLLECTIVITE"),e.canFlip=this.metierRights.canIAny("LEV_ENEJ_DROIT_ACTIVER_COLLECTIVITE")):e.codeConnecteur===C.esidoc?e.isDeactivableByCollectivite=this.metierRights.canIAny("ESIDOC_ENEJ_DROIT_ACTIVER_COLLECTIVITE"):e.codeConnecteur===C.enseigno&&(e.isDeactivableByCollectivite=this.metierRights.canIAny("ENSEIGNO_DROIT_ACTIVER_COLLECTIVITE")),e.codeConnecteur===C.stage&&(e.canFlip=!0);}return e;});return this.metierRights.canIAny("STAGE3E_DROIT_ACTIVER_COLLECTIVITE")||(s=s.filter(e=>e.codeConnecteur!==C.stage)),s;}};t.ɵfac=function(e){return new(e||t)();},t.ɵcmp=g({type:t,selectors:[["app-config-ressources"]],standalone:!1,decls:4,vars:4,consts:()=>{let s;s=" Vous n'avez pas les droits n\xE9cessaires. ";let e;return e=" Aucune ressource disponible ",[s,e,[1,"global_header_module_v2_1d"],["id","pageTitle","tabindex","0",3,"filsArianne","isBack"],[1,"bloc_ressources"],[1,"bloc_no_ressource"],[1,"ressource"],[3,"connecteur"],["width","206px","height","133px","src","assets/ressources/illus_no_services.svg","alt",""],[1,"text_no_ressource"]];},template:function(e,n){e&1&&(a(0,"div",2),d(1,"app-enej-fil-arianne",3),c(),l(2,U,2,0,"div"),l(3,j,3,2)),e&2&&(r(),f("filsArianne",n.filArianne)("isBack",!1),r(),_(n.rightAccess?-1:2),r(),_(n.rightAccess?3:-1));},dependencies:[x,N],styles:["h1[_ngcontent-%COMP%]{margin-bottom:24px}.bloc_ressources[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:16px}.bloc_no_ressource[_ngcontent-%COMP%]{background-color:var(--action-primary-default-10);border-radius:8px;padding:24px 56px;height:133px;display:flex;align-items:center;justify-content:space-between}.bloc_no_ressource[_ngcontent-%COMP%] .text_no_ressource[_ngcontent-%COMP%]{font-size:14px;font-family:var(--font-family-secondary);line-height:16px;font-weight:600;color:var(--text-strong)}"]});let i=t;return i;})();var te=(()=>{let t=class t{};t.ɵfac=function(e){return new(e||t)();},t.ɵmod=R({type:t}),t.ɵinj=u({imports:[y,A,S,I.forChild([{path:"",component:G}])]});let i=t;return i;})();export{te as ConfigRessourcesModule};
1/**i18n:c39901bdb0cbfdd3877d8c557162077eb2c7279b793f3de84c4b91a577566cb3*/
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.