1"use strict";(self.webpackChunkevpulse=self.webpackChunkevpulse||[]).push([[440],{1440:(tt,p,n)=>{n.r(p),n.d(p,{IvreDatasetModule:()=>w});var U=n(4662),l=n(1226),g=n(325),y=n(4963),D=n(8369),q=n(7122),Z=n(9090),v=n(9296),t=n(5e3),C=n(3055),R=n(4394),_=n(1737),m=n(7221),f=n(5154),S=n(279),I=n(4555),L=n(5719);let h=(()=>{class a{constructor(e,s){this._httpClient=e,this.endpoints=s}scheduleLoadJob(){return this._httpClient.post(this.endpoints.createIRVEStaticsEndpoint(S.EG),{observe:"response"}).pipe((0,m.K)(e=>(console.error("Error:",e),(0,_._)(e))),(0,f.d)(1))}scheduleImporByIdJob(e){return this._httpClient.post(this.endpoints.createIRVEStaticsEndpoint({uri:`/etl/import/${e}`}),{observe:"response"}).pipe((0,m.K)(s=>(console.error("Error:",s),(0,_._)("An error occurred"))),(0,f.d)(1))}}return a.\u0275fac=function(e){return new(e||a)(t.LFG(I.E),t.LFG(L.n))},a.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac}),a})();var x=n(6026),E=n(6947),i=n(9808),r=n(7093),O=n(3322),J=n(7423),A=n(5245),M=n(6139),P=n(9254),c=n(9224);const b=function(){return{delay:"300ms",scale:"0.2"}},T=function(a){return{value:"*",params:a}},F=function(){return{delay:"400ms"}};function H(a,u){1&a&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"mat-icon",3),t._uU(3,"dataset\n "),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6,"\n Selectionner une resource\n "),t.qZA(),t._uU(7,"\n"),t.qZA()),2&a&&(t.xp6(2),t.Q6J("@animate",t.VKq(3,T,t.DdM(2,b))),t.xp6(3),t.Q6J("@animate",t.VKq(6,T,t.DdM(5,F))))}function Q(a,u){if(1&a&&(t.TgZ(0,"div",5),t._uU(1,"\n\n "),t.TgZ(2,"mat-card",6),t._uU(3,"\n "),t.TgZ(4,"mat-card-header"),t._uU(5,"\n "),t.TgZ(6,"mat-card-title"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.TgZ(9,"mat-card-subtitle"),t._uU(10),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-card-content",7),t._uU(14,"\n "),t.TgZ(15,"div",8),t._uU(16,"\n "),t.TgZ(17,"span",9),t._uU(18,"Disponible :"),t.qZA(),t._uU(19,"\n "),t.TgZ(20,"span"),t._uU(21),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"div",8),t._uU(25,"\n "),t.TgZ(26,"span",9),t._uU(27,"Date de mise \xe0 jour :"),t.qZA(),t._uU(28,"\n "),t.TgZ(29,"span"),t._uU(30),t.ALo(31,"date"),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n\n "),t.TgZ(34,"div",8),t._uU(35,"\n "),t.TgZ(36,"span",9),t._uU(37,"ID DataGouv :"),t.qZA(),t._uU(38,"\n "),t.TgZ(39,"span"),t._uU(40),t.qZA(),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n\n "),t.TgZ(43,"div",8),t._uU(44,"\n "),t.TgZ(45,"span",9),t._uU(46,"ID Dataset :"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"span"),t._uU(49),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n\n "),t.TgZ(52,"div",8),t._uU(53,"\n "),t.TgZ(54,"span",9),t._uU(55,"Type de Dataset :"),t.qZA(),t._uU(56,"\n "),t.TgZ(57,"span"),t._uU(58),t.qZA(),t._uU(59,"\n "),t.qZA(),t._uU(60,"\n\n "),t.TgZ(61,"div",8),t._uU(62,"\n "),t.TgZ(63,"span",9),t._uU(64,"Date de mise \xe0 jour :"),t.qZA(),t._uU(65,"\n "),t.TgZ(66,"span"),t._uU(67),t.ALo(68,"date"),t.qZA(),t._uU(69,"\n "),t.qZA(),t._uU(70,"\n\n "),t.TgZ(71,"div",8),t._uU(72,"\n "),t.TgZ(73,"span",9),t._uU(74,"Taille du fichier :"),t.qZA(),t._uU(75,"\n "),t.TgZ(76,"span"),t._uU(77),t.ALo(78,"number"),t.qZA(),t._uU(79,"\n "),t.qZA(),t._uU(80,"\n\n "),t.TgZ(81,"div",8),t._uU(82,"\n "),t.TgZ(83,"span",9),t._uU(84,"Format du fichier :"),t.qZA(),t._uU(85,"\n "),t.TgZ(86,"span"),t._uU(87),t.qZA(),t._uU(88,"\n "),t.qZA(),t._uU(89,"\n\n\n "),t.TgZ(90,"div",10),t._uU(91,"\n "),t.TgZ(92,"span",9),t._uU(93,"URL originale :"),t.qZA(),t._uU(94,"\n "),t.TgZ(95,"a",11),t._uU(96),t.qZA(),t._uU(97,"\n "),t.qZA(),t._uU(98,"\n\n "),t.TgZ(99,"div",8),t._uU(100,"\n "),t.TgZ(101,"span",9),t._uU(102,"URL de la page :"),t.qZA(),t._uU(103,"\n "),t.TgZ(104,"a",12),t._uU(105),t.qZA(),t._uU(106,"\n "),t.qZA(),t._uU(107,"\n\n "),t.TgZ(108,"div",8),t._uU(109,"\n "),t.TgZ(110,"span",9),t._uU(111,"Trait\xe9e :"),t.qZA(),t._uU(112,"\n "),t.TgZ(113,"span"),t._uU(114),t.qZA(),t._uU(115,"\n "),t.qZA(),t._uU(116,"\n\n "),t.TgZ(117,"div",8),t._uU(118,"\n "),t.TgZ(119,"span",9),t._uU(120,"Nom du sch\xe9ma :"),t.qZA(),t._uU(121,"\n "),t.TgZ(122,"span"),t._uU(123),t.qZA(),t._uU(124,"\n "),t.qZA(),t._uU(125,"\n\n "),t.TgZ(126,"div",8),t._uU(127,"\n "),t.TgZ(128,"span",9),t._uU(129,"Version du sch\xe9ma :"),t.qZA(),t._uU(130,"\n "),t.TgZ(131,"span"),t._uU(132),t.qZA(),t._uU(133,"\n "),t.qZA(),t._uU(134,"\n\n "),t.TgZ(135,"div",8),t._uU(136,"\n "),t.TgZ(137,"span",9),t._uU(138,"Titre :"),t.qZA(),t._uU(139,"\n "),t.TgZ(140,"span"),t._uU(141),t.qZA(),t._uU(142,"\n "),t.qZA(),t._uU(143,"\n\n "),t.TgZ(144,"div",8),t._uU(145,"\n "),t.TgZ(14
16,"span",9),t._uU(147,"Type :"),t.qZA(),t._uU(148,"\n "),t.TgZ(149,"span"),t._uU(150),t.qZA(),t._uU(151,"\n "),t.qZA(),t._uU(152,"\n\n\n "),t.TgZ(153,"div",8),t._uU(154,"\n "),t.TgZ(155,"span",9),t._uU(156,"URL :"),t.qZA(),t._uU(157,"\n "),t.TgZ(158,"a",12),t._uU(159),t.qZA(),t._uU(160,"\n "),t.qZA(),t._uU(161,"\n "),t.qZA(),t._uU(162,"\n "),t.qZA(),t._uU(163,"\n\n\n\n"),t.qZA()),2&a){const e=t.oxw();t.xp6(4),t.Q6J("@slideInTop",void 0),t.xp6(3),t.Oqu(e.dataset.dataset_title),t.xp6(3),t.Oqu(e.dataset.dataset_slug),t.xp6(3),t.Q6J("@slideInRight",void 0)("@slideInOut",!e.dataset),t.xp6(8),t.Oqu(e.dataset.available?"Oui":"Non"),t.xp6(9),t.Oqu(t.xi3(31,24,e.dataset.updated,"dd/MM/yyyy HH:mm:ss")),t.xp6(10),t.Oqu(e.dataset.datagouv_id),t.xp6(9),t.Oqu(e.dataset.dataset_id),t.xp6(9),t.Oqu(e.dataset.dataset_type),t.xp6(9),t.Oqu(t.xi3(68,27,e.dataset.dataset_updated,"dd/MM/yyyy HH:mm:ss")),t.xp6(10),t.hij("",t.lcZ(78,30,e.dataset.filesize)," octets"),t.xp6(10),t.Oqu(e.dataset.format),t.xp6(8),t.s9C("href",e.dataset.original_url,t.LSH),t.xp6(1),t.Oqu(e.dataset.original_url),t.xp6(8),t.s9C("href",e.dataset.page_url,t.LSH),t.xp6(1),t.Oqu(e.dataset.page_url),t.xp6(9),t.Oqu(e.dataset.processed?"Oui":"Non"),t.xp6(9),t.Oqu(e.dataset.schema_name),t.xp6(9),t.Oqu(e.dataset.schema_version),t.xp6(9),t.Oqu(e.dataset.title),t.xp6(9),t.Oqu(e.dataset.type),t.xp6(8),t.s9C("href",e.dataset.url,t.LSH),t.xp6(1),t.Oqu(e.dataset.url)}}let V=(()=>{class a extends P.J{constructor(){super()}}return a.\u0275fac=function(e){return new(e||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["dataset-resource-details"]],inputs:{dataset:"dataset"},features:[t.qOj],decls:4,vars:2,consts:[["class","details-card","fxLayout","column","fxLayoutAlign","center center","fxFlex","",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","",1,"details-card"],[1,"s-120","mb-12","select-todo-icon","hint-text"],[1,"hint-text","mat-h1","select-todo-text"],["fxLayout","column","fxLayoutAlign","start center","fxFlex",""],["fxLayout","column","fxLayoutAlign","start start",1,"details-card"],["fxLayout","column","fxLayoutGap","10px"],[1,"details-item"],[1,"details-label","font-weight-700","secondary-text"],["fxFlex","",1,"details-item"],["target","_blank","fxFlex","",3,"href"],["target","_blank",3,"href"]],template:function(e,s){1&e&&(t.YNc(0,H,8,8,"div",0),t._uU(1,"\n\n"),t.YNc(2,Q,164,32,"div",1),t._uU(3,"\n\n")),2&e&&(t.Q6J("ngIf",!s.dataset),t.xp6(2),t.Q6J("ngIf",s.dataset))},dependencies:[i.O5,r.xw,r.SQ,r.Wh,r.yH,c.a8,c.dk,c.dn,c.n5,c.$j,A.Hw,i.JJ,i.uU],styles:[".details-card[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex:1 0 100%;padding:32px}.details-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.details-label[_ngcontent-%COMP%]{font-weight:700;margin-right:10px}"],data:{animation:v.p}}),a})();const j=["rightDrawer"];function N(a,u){if(1&a){const e=t.EpF();t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"button",19),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.deselectCurrentDataset())}),t._uU(3,"\n "),t.TgZ(4,"mat-icon",20),t._uU(5,"arrow_back"),t.qZA(),t._uU(6,"\n "),t.qZA(),t._uU(7,"\n "),t.qZA()}}const Y=function(a){return{"current-datasets-elected":a}},z=[{path:"",component:(()=>{class a extends y.E{constructor(e,s,o,d,W,X,k){super(o),this.mediaQery=e,this.sideNaveService=s,this.backendHealthService=o,this.datasetResourcesService=d,this.epulsJobsService=W,this.notificationService=X,this.snackService=k,this.datasetListPage=q.z,this.datasetListDataSource=new D.A(this.datasetResourcesService),this.isHandset$=this.mediaQery.isHandset$}ngOnInit(){this.datasetResourcesService.onDatagouvResourcesChanged$.pipe(this.takeUntilComponentDestroy()).subscribe(e=>{this.datasetListPage=e}),this.datasetResourcesService.onCurrentDatagouvResourceChanged$.pipe(this.takeUntilComponentDestroy()).subscribe(e=>{this.currentDataset=e}),this.notificationService.connect().pipe(this.takeUntilComponentDestroy()).subscribe(e=>{e&&"COMPLETED"===e.action&&this.datasetResourcesService.getDatagouResources()}),this.sideNaveService.setSidnav(Z.A.IRVE_STATIC_RECORD_SIDNAV,this.rightDrawer)}onBackEndStateChanged(e){}
1refreshDatasetResources(){this.epulsJobsService.scheduleLoadJob().pipe(this.takeUntilComponentDestroy()).subscribe(e=>{console.log("Le travail a \xe9t\xe9 planifi\xe9 avec succ\xe8s.",e),this.snackService.success(`La t\xe2che ${null==e?void 0:e.job_instance_id} est en cours d'execution`)},e=>{console.error("Erreur lors de la planification du travail :",e.status),409===e.status?this.snackService.success("Une t\xe2che est en cours d'execution"):this.snackService.error("Erreur lors de la planification de la t\xe2che..")})}setCurrentDataset(e){console.log("Set current Dataset ",e),this.currentDataset=e}deselectCurrentDataset(){this.currentDataset=null}importDataset(e){this.epulsJobsService.scheduleImporByIdJob(e.id).pipe(this.takeUntilComponentDestroy()).subscribe(s=>{console.log("Le travail a \xe9t\xe9 planifi\xe9 avec succ\xe8s.",s),e.processed=!0},s=>{console.error("Erreur lors de la planification du travail :",s),this.snackService.error(s.msg)})}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(C.h),t.Y36(Z.A),t.Y36(R.A),t.Y36(l.C),t.Y36(h),t.Y36(x.m),t.Y36(E.f))},a.\u0275cmp=t.Xpm({type:a,selectors:[["irve-dataset"]],viewQuery:function(e,s){if(1&e&&t.Gf(j,7),2&e){let o;t.iGM(o=t.CRH())&&(s.rightDrawer=o.first)}},features:[t.qOj],decls:64,vars:8,consts:[["id","irve-dataset-list",1,"page-layout","carded","fullwidth",2,"background-color","transparent!important"],[1,"center"],["fxLayout","column","fxLayoutAlign","start","fxLayout.gt-sm","column","fxLayoutAlign.gt-sm","start",1,"header","py-24"],["fxLayout","row","fxLayoutAlign","start center",1,"mt-md-0"],["fxLayout","column","fxLayoutAlign","start start"],["fxLayout","row","fxLayoutAlign","start center",1,"mat-headline","kanit-font","mb-0","mb-md-0"],["color","primary",1,"mr-8"],[1,"subtitle","secondary-text"],[1,"fill-space"],["mat-flat-button","","color","primary",1,"py-4","px-8","line-height-32",3,"click"],[1,"font-size-24"],[1,"px-8","font-size-16","text-bold"],[1,"content-card",3,"ngClass"],[1,"toolbar","px-24","py-8"],[4,"ngIf"],["fxFlexAlign","row",1,"content"],["fxFlex","",3,"dataSource","datasetResourcePage","onRowSelect","onStartImport"],["fxFlex","",3,"dataset"],[1,"m-32"],["mat-icon-button","",3,"click"],[1,"secondary-text"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t._uU(4,"\n "),t.TgZ(5,"div",2),t._uU(6,"\n "),t._uU(7,"\n "),t.TgZ(8,"div",3),t._uU(9,"\n "),t.TgZ(10,"div",4),t._uU(11,"\n "),t.TgZ(12,"div",5),t._uU(13,"\n "),t.TgZ(14,"mat-icon",6),t._uU(15,"ev_station"),t.qZA(),t._uU(16,"\n IRVE - Datasets\n "),t.qZA(),t._uU(17,"\n "),t.TgZ(18,"div",7),t._uU(19,"\n "),t.TgZ(20,"span"),t._uU(21),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n "),t._UZ(25,"span",8),t._uU(26,"\n "),t.TgZ(27,"button",9),t.NdJ("click",function(){return s.refreshDatasetResources()}),t._uU(28,"\n "),t.TgZ(29,"mat-icon",10),t._uU(30,"cloud_sync"),t.qZA(),t._uU(31,"\n "),t.TgZ(32,"span",11),t._uU(33,"Extraire les donn\xe9es IRVE statiques"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n "),t._uU(37,"\n "),t.qZA(),t._uU(38,"\n "),t._uU(39,"\n\n "),t._uU(40,"\n "),t.TgZ(41,"div",12),t._uU(42,"\n "),t.TgZ(43,"div",13),t._uU(44,"\n "),t.YNc(45,N,8,0,"div",14),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"div",15),t._uU(49,"\n "),t.TgZ(50,"dataset-resources-list",16),t.NdJ("onRowSelect",function(d){return s.setCurrentDataset(d)})("onStartImport",function(d){return s.importDataset(d)}),t._uU(51,"\n "),t.qZA(),t._uU(52,"\n\n "),t.TgZ(53,"dataset-resource-details",17),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n "),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t._UZ(58,"div",18),t._uU(59,"\n "),t._uU(60,"\n "),t.qZA(),t._uU(61,"\n "),t._uU(62,"\n"),t.qZA(),t._uU(63,"\n")),2&e&&(t.xp6(21),t.hij("",s.datasetListPage.total_elements," - Jeux de donn\xe9es IRVE statiques"),t.xp6(20),t.Q6J("ngClass",t.VKq(6,Y,s.currentDataset)),t.xp6(4),t.Q6J("ngIf",s.currentDataset),t.xp6(5),t.Q6J("dataSource",s.datasetListDataSource)("datasetResourcePage",s.datasetListPage),t.xp6(3),t.Q6J("dataset",s.currentDataset))},dependencies:[i.mk,i.O5,r.xw,r.Wh,r.XD,r.yH,O.oO,J.lW,A.Hw,M.v,V],styles:["@media screen and (max-width: 1919px){#irve-dataset-list .center .content-card dataset-resources-list{border-right:0}#irve-dataset-list .center .content-card dataset-resources-list,#irve-dataset-list .center .content-card dataset-resource-details{flex:1 0 100%}#irve-dataset-list .center .content-card dataset-resource-details{display:none!important}#irve-dataset-list .center .content-card.current-datasets-elected .content dataset-resources-list{display:none!important}#irve-dataset-list .center .content-card.current-datasets-elected .content dataset-resource-details{display:flex!important}}\n"],encapsulation:2,data:{animation:v.p}}),a})(),resolve:{datesetResources:l.C},data:{title:"IRVE-DATASET-RESOURCES",roles:["Manager"]}}];let B=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[g.Bz.forChild(z),g.Bz]}),a})();var G=n(3477);let $=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[U.h,i.ez]}),a})();var K=n(9199);let w=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({providers:[l.C,h,x.m],imports:[U.h,B,G.s,$,K.k]}),a})()}}]);
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.