PageSourceSearch

https://truckoffice.truckonline.pro/frontend/v2/fr/8751.e036445d418781a8.js

js truckonline.pro collected 2026-10-02 15:46:59 UTC 15,289 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktruckonline_eap_frontend_wrapper=self.webpackChunktruckonline_eap_frontend_wrapper||[]).push([[8751],{73187(T,S,a){a.d(S,{Q:()=>C});var l=a(35547),t=a(88834),r=a(49769);const f=["*"],O=(d,M)=>({small:d,disabled:M});let C=(()=>{class d{constructor(){this.color="accent",this.disabled=!1,this.type="button",this.tonlId=null,this.isSmall=!1}ngOnChanges(p){typeof p.disabled<"u"&&(this.disabled=p.disabled.currentValue)}static{this.\u0275fac=function(u){return new(u||d)}}static{this.\u0275cmp=l.VBU({type:d,selectors:[["tonl-button"]],inputs:{color:"color",disabled:"disabled",type:"type",tonlId:"tonlId",isSmall:"isSmall"},standalone:!1,features:[l.OA$],ngContentSelectors:f,decls:2,vars:10,consts:[["mat-raised-button","",3,"type","disabled","color","id","ngClass"]],template:function(u,_){1&u&&(l.NAR(),l.j41(0,"button",0),l.SdG(1),l.k0s()),2&u&&l.Y8G("type",l.mNQ(_.type))("id",l.mNQ(_.tonlId))("disabled",_.disabled)("color",_.color)("ngClass",l.l_i(7,O,_.isSmall,_.disabled))},dependencies:[t.$z,r.YU],styles:["[_nghost-%COMP%]    {pointer-events:none}[_nghost-%COMP%]     button.mat-mdc-raised-button.mat-mdc-button-base{border-radius:1px;box-shadow:0 2px 4px #0003;text-align:center;text-transform:uppercase;padding:22px;letter-spacing:normal;white-space:nowrap}[_nghost-%COMP%]     button.mat-mdc-raised-button.mat-mdc-button-base.small{border-radius:1px;padding:0 14px}[_nghost-%COMP%]     button.mat-mdc-raised-button.mat-mdc-button-base.small span.mdc-button__label{font-size:var(--font-size-small);color:var(--tonl-text-contrast-color);font-weight:500;letter-spacing:.5px}[_nghost-%COMP%]     button{pointer-events:auto}[_nghost-%COMP%]     button.disabled{pointer-events:none}"]})}}return d})()},28751(T,S,a){a.d(S,{EapLegaldatasImportModule:()=>x});var l=a(25386),t=a(35547),r=a(85802),f=a(45776);let O=(()=>{class o{constructor(e){this.legalData=e}uploadFile(e){return this.legalData.uploadC1B(e)}statut(e){return this.legalData.controlC1B(e)}static{this.\u0275fac=function(n){return new(n||o)(r.KVO(f.jx))}}static{this.\u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var C=a(84412);let d=(()=>{class o{constructor(){this.uploadStatut$=new C.t([]),this.selectedFiles$=new C.t([])}get uploadStatut(){return this.uploadStatut$.getValue()}set uploadStatut(e){this.uploadStatut$.next(e)}get uploadStatutObservable(){return this.uploadStatut$.asObservable()}get selectedFiles(){return this.selectedFiles$.getValue()}set selectedFiles(e){this.selectedFiles$.next(e)}get selectedFilesObservable(){return this.selectedFiles$.asObservable()}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var M=a(95416),p=a(33217),u=a(73187),_=a(27013);let E=(()=>{class o{constructor(e){this.importStateService=e,this.dragover=!1}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.dragover=!0}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.dragover=!1}onDrop(e){e.preventDefault(),e.stopPropagation();const n=e.dataTransfer.files;if(n.length>0){this.dragover=!1;const i=this.importStateService.selectedFiles;for(let s=0;s<n.length;s++)i.push(n.item(s));this.importStateService.selectedFiles=[].concat(i)}}static{this.\u0275fac=function(n){return new(n||o)(t.rXU(d))}}static{this.\u0275dir=t.FsC({type:o,selectors:[["","libAppDnd",""]],hostVars:2,hostBindings:function(n,i){1&n&&t.bIt("dragover",function(c){return i.onDragOver(c)})("dragleave",function(c){return i.onDragLeave(c)})("drop",function(c){return i.onDrop(c)}),2&n&&t.AVh("dragover",i.dragover)},standalone:!1})}}return o})();const A=["fileC1BClassisBtn"];function L(o,h){1&o&&(t.j41(0,"div"),t.nrm(1,"tonl-progress-bar",13),t.j41(2,"span"),t.pXf(3,2),t.k0s()()),2&o&&(t.R
17$(),t.Y8G("thin",!0)("progressBarMode","indeterminate")("theme","primary"))}function I(o,h){1&o&&(t.j41(0,"div"),t.nrm(1,"tonl-progress-bar",14),t.j41(2,"span"),t.pXf(3,3),t.k0s(),t.j41(4,"span",15),t.nrm(5,"tonl-icon",16),t.k0s()()),2&o&&(t.R7$(),t.Y8G("thin",!0)("maxValue",100)("value",100)("theme","primary"),t.R7$(4),t.Y8G("svgIcon","pictos:vert"))}function b(o,h){if(1&o&&(t.j41(0,"div")(1,"div"),t.EFF(2),t.k0s(),t.j41(3,"div",12),t.nVh(4,L,4,3,"div"),t.nVh(5,I,6,5,"div"),t.k0s()()),2&o){const e=h.$implicit;t.R7$(2),t.JRh(e.fileName),t.R7$(2),t.vxM(null!==e.restResultUploadFile&&"DATA_LOADING"===e.restResultUploadFile.status?4:-1),t.R7$(),t.vxM(null!==e.restResultUploadFile&&"COMPLETED"===e.restResultUploadFile.status?5:-1)}}function F(o,h){if(1&o&&(t.j41(0,"div")(1,"div",11),t.Z7z(2,b,6,3,"div",null,t.fX1),t.k0s()()),2&o){const e=t.XpG();t.R7$(2),t.Dyx(e.uploadStatusList)}}function D(o,h){if(1&o){const e=t.RV6();t.j41(0,"div",17),r.qSk(),t.j41(1,"svg",18)(2,"g",19),t.nrm(3,"path",20)(4,"path",21)(5,"path",22)(6,"path",23)(7,"path",24)(8,"path",25)(9,"path",26)(10,"path",27)(11,"path",28),t.k0s(),t.j41(12,"defs")(13,"clipPath",29),t.nrm(14,"rect",30),t.k0s()()()(),r.joV(),t.j41(15,"div",31)(16,"h2"),t.pXf(17,4),t.k0s()(),t.j41(18,"div",32),t.PLo(19,5),t.nrm(20,"div",33)(21,"div",34),t.YFu(),t.k0s(),t.j41(22,"div",35)(23,"input",36,0),t.bIt("change",function(i){r.eBV(e);const s=t.XpG();return r.Njj(s.onFileChange(i))}),t.k0s(),t.j41(25,"tonl-button",37),t.bIt("click",function(){r.eBV(e);const i=t.XpG();return r.Njj(i.browseFile())}),t.j41(26,"span"),t.pXf(27,6),t.k0s()()()}2&o&&(t.R7$(23),t.Y8G("hidden",!0))}let R=(()=>{class o{constructor(e,n,i){this.importBridge=e,this.importStateService=n,this.snackBar=i,this.uploadStatusList=[],this.showUploadStatus=!1,this.PROCESSING_STATUS=l.PROCESSING_STATUS,this.interval=[],this.INTERVAL_TIMER=3e3}ngOnInit(){this.importStateService.uploadStatutObservable.subscribe(e=>{this.uploadStatusList=e,this.showUploadStatus=null!=this.uploadStatusList&&this.uploadStatusList.length>0}),this.importStateService.selectedFilesObservable.subscribe(()=>{this.valid()})}onFileChange(e){const n=e.target.files;if(n.length>0){const i=this.importStateService.selectedFiles;for(let s=0;s<n.length;s++)i.push(n.item(s));this.importStateService.selectedFiles=[].concat(i)}}browseFile(){this.fileC1BClassisBtn.nativeElement.click()}deleteFileOfList(e){this.importStateService.selectedFiles=this.importStateService.selectedFiles.filter(n=>n.name!==e.name)}valid(){this.importStateService.selectedFiles.forEach(e=>{this.importBridge.uploadFile(e).subscribe(n=>{this.importStateService.uploadStatut=this.importStateService.uploadStatut.concat({fileName:e.name,uid:n.uid,restResultUploadFile:n}),this.interval[n.uid]=setInterval(()=>{this.importBridge.statut(n.uid).subscribe(i=>{if("COMPLETED"===i.status.toString()){const s=this.importStateService.uploadStatut.findIndex(c=>c.uid===i.uid);this.importStateService.uploadStatut[s].restResultUploadFile=i,this.importStateService.uploadStatut=[].concat(this.importStateService.uploadStatut),setTimeout(()=>{const c=this.importStateService.uploadStatut.findIndex(g=>g.uid===i.uid);this.importStateService.uploadStatut.splice(c,1),this.importStateService.uploadStatut=Array.from(this.importStateService.uploadStatut)},2e3),clearInterval(this.interval[n.uid])}})},this.INTERVAL_TIMER)},n=>{let i="Une erreur est survenue lors de l'import";n&&n.status&&403===n.status&&(i="Vous ne disposez pas des droits n\xE9cessaires pour effectuer cette action"),this.snackBar.open(i,null,{duration:4e3})})}),this.importStateService.selectedFiles.length=0}static{this.\u0275fac=function(n){return new(n||o)(t.rXU(O),t.rXU(d),t.rXU(M.UG))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["lib-eap-legaldatas-import"]],viewQuery:function(n,i){if(1&n&&t.GBs(A,5),2&n){let s;t.mGM(s=t.lsd())&&(i.fileC1BClassisBtn=s.first)}},standalone:!1,decls:8,vars:1,consts:()=>{let e,n,i,s,c,g,P;return e="Importation des donn\xE9es l\xE9gales",n="Chargement en cours..",i="Chargement termin\xE9 !",s="Fichier C1B",c="D\xE9posez vos fichiers ici",g="" + "\ufffd#20\ufffd" + "Faites glisser vos fichiers C1B/C1C, V1B/V1C depuis votre ordinateur" + "[\ufffd/#20\ufffd|\ufffd/#21\ufffd]" + "" + "\ufffd#21\ufffd" + "Ou" + "[\ufffd/#20\ufffd|\ufffd/#21\ufffd]" + "",g=t.k04(g),P="Parcourir vos fichiers",[["fileC1BClassisBtn",""],e,n,i,c,g,P,[1,"global-container"],["autocomplete","off"],["libAppDnd","",1,"dropzone"],[1,"dropzone-wrapper-content"],[1,"upload-status-list"],[1,"statut-upload-file-progress"],[3,"thin","progressBarMode","theme"],[3,"thin","maxValue","value","theme"],[1,"icon-wrapper"],[3,"svgIcon"],[1,"logo"],["width","155","height","141","viewBox","0 0 155 141","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0)"],["d","M14 47.8C13.7 46.6 13.5 45.3 13.5 44C13.5 35.4 20.4 28.5 29 28.5C31.8 28.5 34.5 29.3 36.8 30.6","stroke","#757575","stroke-width","2","stroke-miterlimit","10","stroke-linecap","round"],["d","M92.4 33.8C95.3 30.9 99.1 28.5 103.5 28.5C111.4 28.5 118 34.3 119.3 41.8C120.2 41.6 121.1 41.5 122 41.5C127.1 41.5 131.3 45.1 132.3 49.9","stroke","#757575","stroke-width","2","stroke-miterlimit","10","stroke-linecap","round"],["d","M30.1 28.7C33.1 14.3 45.8 3.5 61 3.5C77.7 3.5 91.4 17.3 92.4 33.8","stroke","#757575","stroke-width","2","stroke-miterlimit","10","stroke-linecap","round"],["d","M6.5 48.5H20.2","stroke","#757575","stroke-width","2","stroke-miterlimit","10","stroke-linecap","round"],["d","M0 59.5H29","stroke","#757575","stroke-width","2","stroke-miterlimit","10","stroke-linecap","round"],["d","M109 59.5H138","stroke","#757575","stroke-width","2","stroke-miterlimit","10","stroke-linecap","round"],["d","M114 50.5H155","stroke","#757575","stroke-width","2","stroke-miterlimit","10","stroke-linecap","round"],["d","M108.5 54C108.5 83.6441 108.5 103.108 108.5 135.3C108.5 137.1 107.1 138.5 105.3 138.5H32.7C30.9 138.5 29.5 137.1 29.5 135.3V43.7C29.5 41.9 30.9 40.5 32.7 40.5H93.5M108.5 54L93.5 40.5M108.5 54H93.5V40.5","stroke","#757575","stroke-width","2","stroke-miterlimit","10","stroke-linecap","round"],["d","M83.1667 89C83.1667 96.82 76.82 103.167 69 103.167C61.18 103.167 56.4059 95.29 56.4059 95.29M56.4059 95.29H62.8092M56.4059 95.29V102.373M54.8334 89C54.8334 81.18 61.1234 74.8333 69 74.8333C78.4492 74.8333 83.1667 82.71 83.1667 82.71M83.1667 82.71V75.6267M83.1667 82.71H76.8767","stroke","#6EBF06","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["id","clip0"],["width","155","height","141","fill","white"],[1,"dropzone-title"],[1,"helper"],[1,"sentence"],[1,"or"],[1,"wrapper-upload-form-bouton"],["type","file","id","fileC1B","placeholder",s,"multiple","multiple",1,"form-control",3,"change","hidden"],["id","form-browse",1,"tonl-button",3,"click"]]},template:function(n,i){1&n&&(t.j41(0,"section",7)(1,"h2"),t.pXf(2,1),t.k0s(),t.j41(3,"form",8)(4,"div",9)(5,"div",10),t.nVh(6,F,4,0,"div")(7,D,28,1),t.k0s()()()()),2&n&&(t.R7$(6),t.vxM(i.showUploadStatus?6:7))},dependencies:[p.R,u.Q,_.a,E],styles:['section.global-container[_ngcontent-%COMP%]{height:100%;width:100%;padding:2.5em;overflow:auto}section.global-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:500;font-size:1.7em;margin:0}section.global-container[_ngcontent-%COMP%] > form[_ngcontent-%COMP%]{margin-top:2.5em}section.global-container[_ngcontent-%COMP%]   p#message-form-error[_ngcontent-%COMP%]{text-align:center;padding:10px;color:var(--tonl-active-color, #e1951b)}section.global-container[_ngcontent-%COMP%]   .field-required[_ngcontent-%COMP%]{color:var(--tonl-active-color, #e1951b)}section.global-container[_ngcontent-%COMP%]   .dropzone[_ngcontent-%COMP%]{z-index:2;min-height:100px;width:100%;border-radius:30px;border:dashed 2px;border-color:var(--tonl-gray-background-color);transition:ease all .1s}section.global-container[_ngcontent-%COMP%]   .dropzone.dragover[_ngcontent-%COMP%]{border-color:var(--tonl-primary-color);background-color:var(--tonl-primary-color-transparent)}section.global-container[_ngcontent-%COMP%]   .upload-status-list[_ngcontent-%COMP%]{width:80%;margin:10% auto}section.global-container[_ngcontent-%COMP%]   .upload-status-list[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:2em}section.global-container[_ngcontent-%COMP%]   .upload-status-list[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-bottom:0}section.global-container[_ngcontent-%COMP%]   .validate[_ngcontent-%COMP%]{margin-top:2em}section.global-container[_ngcontent-%COMP%]   .dropzone-wrapper-content[_ngcontent-%COMP%]{margin:20px;vertical-align:middle}section.global-container[_ngcontent-%COMP%]   .dropzone-title[_ngcontent-%COMP%]{font-family:sans-serif;font-weight:700;text-align:center}section.global-container[_ngcontent-%COMP%]   .dropzone-icon-wrapper[_ngcontent-%COMP%]{font-size:20px;height:20px;width:20px;
1display:inline-block}section.global-container[_ngcontent-%COMP%]   div.wrapper-upload-form-bouton[_ngcontent-%COMP%]{display:block;margin:2.5em auto 20px;width:fit-content}section.global-container[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{margin:0 auto 2em;width:fit-content}section.global-container[_ngcontent-%COMP%]   .helper[_ngcontent-%COMP%]{font-size:1.2em;text-align:center;margin:.5em auto 0;width:fit-content}section.global-container[_ngcontent-%COMP%]   .helper[_ngcontent-%COMP%]   .sentence[_ngcontent-%COMP%]{color:var(--tonl-sub-menu-color)}section.global-container[_ngcontent-%COMP%]   .helper[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]{color:var(--tonl-text-color);position:relative;margin-top:2em}section.global-container[_ngcontent-%COMP%]   .helper[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]:after{content:"";position:absolute;width:45%;border-top:solid thin var(--tonl-gray-background-color);top:50%;right:0}section.global-container[_ngcontent-%COMP%]   .helper[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]:before{content:"";position:absolute;width:45%;border-top:solid thin var(--tonl-gray-background-color);top:50%;left:0}section.global-container[_ngcontent-%COMP%]   span.icon-wrapper[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;width:16px;height:16px;margin-left:10px;color:var(--tonl-cancel-color, red)}section.global-container[_ngcontent-%COMP%]   table.statut-upload-files[_ngcontent-%COMP%]{width:100%}section.global-container[_ngcontent-%COMP%]   table.statut-upload-files[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], section.global-container[_ngcontent-%COMP%]   table.statut-upload-files[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:6px}section.global-container[_ngcontent-%COMP%]   table.statut-upload-files[_ngcontent-%COMP%]   .statut-upload-file-progress[_ngcontent-%COMP%]{text-align:center}section.global-container[_ngcontent-%COMP%]   table.statut-upload-files[_ngcontent-%COMP%]   .statut-upload-file-progress[_ngcontent-%COMP%]   span.icon-wrapper[_ngcontent-%COMP%]{color:var(--tonl-valid-color, green);cursor:default}']})}}return o})();var v=a(93049);const N=[{path:"",component:R}];let B=(()=>{class o{static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=r.G2t({imports:[v.iI.forChild(N),v.iI]})}}return o})();var $=a(54984),k=a(63314),G=a(49769),w=a(52920),y=a(9912);let x=(()=>{class o{static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=r.G2t({imports:[G.MD,B,$.op,k.t,w.w2,y.d,M._T]})}}return o})()}}]);

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.