. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 52.223.31.75 / Your IP : 172.31.32.98 [ Web Server : Apache/2.4.66 () OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux ip-172-31-14-81.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE Domains : 4 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/sapere/www/ |
Upload File : |
"use strict";(self.webpackChunkSapere=self.webpackChunkSapere||[]).push([[659],{452:(A,k,s)=>{s.d(k,{l:()=>R});var t=s(4438);let e=(()=>{class i{constructor(){this.progress=0}ngOnInit(){}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-file-uploader-progress"]],inputs:{progress:"progress"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[1,"progress-cont"],[1,"progress"]],template:function(o,p){1&o&&(t.j41(0,"div",0),t.nrm(1,"div",1),t.k0s()),2&o&&(t.R7$(),t.xc7("width",p.progress+"%"))},styles:[".progress-cont[_ngcontent-%COMP%]{height:7px;width:100%;border-radius:4px;background-color:#d0d0d0;position:relative}.progress-cont[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{width:0;height:100%;position:absolute;z-index:1;top:0;left:0;border-radius:4px;background-color:#4c97cb;transition:.5s all}"]})}}return i})();var u=s(4912),O=s(4628);function C(i,_){1&i&&(t.qSk(),t.j41(0,"svg",14),t.nrm(1,"path",23)(2,"path",24)(3,"path",25),t.k0s())}function x(i,_){1&i&&(t.qSk(),t.j41(0,"svg",15),t.nrm(1,"polygon",26),t.j41(2,"g"),t.nrm(3,"path",27)(4,"path",28)(5,"path",29)(6,"path",30)(7,"path",31),t.k0s(),t.nrm(8,"polygon",32),t.k0s())}function h(i,_){if(1&i){const n=t.RV6();t.j41(0,"div",12)(1,"div",13),t.DNE(2,C,4,0,":svg:svg",14)(3,x,9,0,":svg:svg",15),t.k0s(),t.j41(4,"div",16)(5,"h4",17),t.EFF(6),t.k0s(),t.j41(7,"p",18),t.EFF(8),t.k0s(),t.nrm(9,"app-file-uploader-progress",19),t.k0s(),t.j41(10,"div",20),t.bIt("click",function(){const p=t.eBV(n).$index,f=t.XpG(3);return t.Njj(f.deleteFile(p))}),t.qSk(),t.j41(11,"svg",21),t.nrm(12,"path",22),t.k0s()()()}if(2&i){const n=_.$implicit,o=t.XpG(3);t.R7$(2),t.vxM("video/*"==o.accept?2:3),t.R7$(4),t.SpI(" ",null==n?null:n.name," "),t.R7$(2),t.SpI(" ",o.formatBytes(null==n?null:n.size,2)," "),t.R7$(),t.Y8G("progress",null==n?null:n.progress)}}function m(i,_){}function P(i,_){if(1&i&&(t.j41(0,"div",11),t.Z7z(1,h,13,4,"div",12,t.fX1,!1,m,0,0),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.Dyx(n.files)}}function F(i,_){if(1&i){const n=t.RV6();t.j41(0,"div",2),t.bIt("fileDropped",function(p){t.eBV(n);const f=t.XpG();return t.Njj(f.onFileDropped(p))}),t.j41(1,"input",3,0),t.bIt("change",function(p){t.eBV(n);const f=t.XpG();return t.Njj(f.fileBrowseHandler(p))}),t.k0s(),t.qSk(),t.j41(3,"svg",4)(4,"g",5),t.nrm(5,"path",6)(6,"path",7)(7,"path",8),t.k0s()(),t.joV(),t.nrm(8,"br")(9,"br"),t.j41(10,"label",9),t.EFF(11,"Scegli un file da caricare"),t.k0s(),t.j41(12,"div",10),t.nrm(13,"br"),t.EFF(14,"(Se devi caricare molti file puoi comprimerli in un file zip e caricarlo qui)"),t.k0s()(),t.DNE(15,P,4,1,"div",11)}if(2&i){const n=t.XpG();t.R7$(),t.Y8G("multiple",n.multiple)("accept",n.accept),t.R7$(14),t.vxM(n.showList?15:-1)}}function v(i,_){if(1&i){const n=t.RV6();t.j41(0,"div",35),t.bIt("fileDropped",function(p){t.eBV(n);const f=t.XpG(2);return t.Njj(f.onFileDropped(p))}),t.j41(1,"div")(2,"input",36,0),t.bIt("change",function(p){t.eBV(n);const f=t.XpG(2);return t.Njj(f.fileBrowseHandler(p))}),t.k0s(),t.j41(4,"label",9),t.EFF(5),t.k0s()()()}if(2&i){const n=t.XpG(2);t.R7$(2),t.Y8G("multiple",n.multiple)("accept",n.accept),t.R7$(3),t.JRh(n.buttonValue)}}function M(i,_){1&i&&(t.qSk(),t.j41(0,"svg",14),t.nrm(1,"path",37)(2,"path",38)(3,"path",39),t.k0s())}function w(i,_){1&i&&(t.qSk(),t.j41(0,"svg",15),t.nrm(1,"polygon",26),t.j41(2,"g"),t.nrm(3,"path",27)(4,"path",28)(5,"path",29)(6,"path",30)(7,"path",31),t.k0s(),t.nrm(8,"polygon",32),t.k0s())}function j(i,_){if(1&i){const n=t.RV6();t.j41(0,"div",12)(1,"div",13),t.DNE(2,M,4,0,":svg:svg",14)(3,w,9,0,":svg:svg",15),t.k0s(),t.j41(4,"div",16)(5,"h4",17),t.EFF(6),t.k0s(),t.j41(7,"p",18),t.EFF(8),t.k0s(),t.nrm(9,"app-file-uploader-progress",19),t.k0s(),t.j41(10,"div",20),t.bIt("click",function(){const p=t.eBV(n).$index,f=t.XpG(3);return t.Njj(f.deleteFile(p))}),t.qSk(),t.j41(11,"svg",21),t.nrm(12,"path",22),t.k0s()()()}if(2&i){const n=_.$implicit,o=t.XpG(3);t.R7$(2),t.vxM("video/*"==o.accept?2:3),t.R7$(4),t.SpI(" ",null==n?null:n.name," "),t.R7$(2),t.SpI(" ",o.formatBytes(null==n?null:n.size,2)," "),t.R7$(),t.Y8G("progress",null==n?null:n.progress)}}function D(i,_){}function b(i,_){if(1&i&&(t.j41(0,"div",34),t.Z7z(1,j,13,4,"div",12,t.fX1,!1,D,0,0),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.Dyx(n.files)}}function B(i,_){if(1&i&&(t.j41(0,"div",1),t.DNE(1,v,6,3,"div",33)(2,b,4,1,"div",34),t.k0s()),2&i){const n=t.XpG();t.R7$(),t.vxM(n.files&&0==n.files.length||!n.hideButtonAfterUpload?1:-1),t.R7$(),t.vxM(n.showList&&n.files&&n.files.length>0?2:-1)}}let R=(()=>{class i{constructor(n){this.filesEvent=new t.bkB,this.showList=!0,this.lite=!1,this.hideButtonAfterUpload=!1,this.multiple=!0,this.accept="image/jpeg,image/gif,image/png,application/pdf,image/x-eps,video/*,.zip,.rar,application/zip",this.buttonValue="Clicca qui per scegliere i files da caricare",this.files=[]}flushFilesList(){this.files=[]}onFileDropped(n){if(n instanceof DragEvent){const o=n.dataTransfer?.files;o&&this.prepareFilesList(o)}else this.prepareFilesList(n)}fileBrowseHandler(n){const o=n.target;o.files&&this.prepareFilesList(o.files)}deleteFile(n){this.files.splice(n,1)}uploadFilesSimulator(n){setTimeout(()=>{if(n!==this.files.length){const o=setInterval(()=>{100===this.files[n].progress?(clearInterval(o),this.uploadFilesSimulator(n+1)):this.files[n].progress+=5},200)}},1e3)}prepareFilesList(n){for(const o of n)this.files.push(o);this.filesEvent.emit(this.files),this.lite&&this.flushFilesList()}formatBytes(n,o=2){if(0===n)return"0 Bytes";const f=o<=0?0:o,E=Math.floor(Math.log(n)/Math.log(1024));return parseFloat((n/Math.pow(1024,E)).toFixed(f))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][E]}static{this.\u0275fac=function(o){return new(o||i)(t.rXU(O.P))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-file-uploader"]],inputs:{showList:"showList",lite:"lite",hideButtonAfterUpload:"hideButtonAfterUpload",multiple:"multiple",accept:"accept",buttonValue:"buttonValue"},outputs:{filesEvent:"filesEvent"},standalone:!0,features:[t.aNF],decls:2,vars:1,consts:[["fileDropRef",""],[1,"cont-lit"],["appDnd","",1,"container",3,"fileDropped"],["type","file","id","fileDropRef",3,"change","multiple","accept"],["xmlns","http://www.w3.org/2000/svg","width","63","height","64","viewBox","0 0 63 64"],["fill","#3B454F","fill-rule","nonzero"],["d","M42.656 15.135a1.953 1.953 0 0 1-1.391-.578L31.5 4.795l-9.765 9.762a1.97 1.97 0 1 1-2.785-2.785L30.106.616a1.97 1.97 0 0 1 2.785 0l11.157 11.156a1.97 1.97 0 0 1-1.392 3.363z"],["d","M31.5 36.791a1.97 1.97 0 0 1-1.969-1.969V2.01a1.97 1.97 0 0 1 3.938 0v32.812a1.97 1.97 0 0 1-1.969 1.969z"],["d","M55.781 63.041H7.22A7.225 7.225 0 0 1 0 55.822V41.385a4.599 4.599 0 0 1 4.594-4.594h7.234a4.567 4.567 0 0 1 4.402 3.276l2.814 9.382a.658.658 0 0 0 .628.467h23.656a.658.658 0 0 0 .628-.467l2.814-9.385a4.572 4.572 0 0 1 4.402-3.273h7.234A4.599 4.599 0 0 1 63 41.385v14.437a7.225 7.225 0 0 1-7.219 7.219zM4.594 40.729a.656.656 0 0 0-.657.656v14.437a3.286 3.286 0 0 0 3.282 3.282H55.78a3.286 3.286 0 0 0 3.282-3.282V41.385a.656.656 0 0 0-.657-.656h-7.234a.65.65 0 0 0-.628.467L47.73 50.58a4.628 4.628 0 0 1-4.402 3.274H19.672a4.567 4.567 0 0 1-4.402-3.276l-2.814-9.382a.65.65 0 0 0-.628-.467H4.594z"],["for","fileDropRef"],[2,"font-size","10px","color","gray"],[1,"files-list"],[1,"single-file"],[1,"file-icon","p-5",2,"width","50px"],["xmlns","http://www.w3.org/2000/svg","enable-background","new 0 0 64 64","viewBox","0 0 64 64","id","video-file"],["version","1.1","id","Capa_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 58 58",0,"xml","space","preserve",2,"enable-background","new 0 0 58 58"],[1,"info"],[1,"name"],[1,"size"],[3,"progress"],[1,"delete",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","14","height","18","viewBox","0 0 14 18"],["fill","#B1B1B1","fill-rule","nonzero","d","M1 16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v10zm3.17-7.83a.996.996 0 0 1 1.41 0L7 9.59l1.42-1.42a.996.996 0 1 1 1.41 1.41L8.41 11l1.42 1.42a.996.996 0 1 1-1.41 1.41L7 12.41l-1.42 1.42a.996.996 0 1 1-1.41-1.41L5.59 11 4.17 9.58a.996.996 0 0 1 0-1.41zM10.5 1L9.79.29C9.61.11 9.35 0 9.09 0H4.91c-.26 0-.52.11-.7.29L3.5 1H1c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1h-2.5z"],["fill","#FBB040","stroke","#000","stroke-miterlimit","10","stroke-width","2","d","M58.4,13.5H5.6c-1.6,0-2.8,1.3-2.8,2.8v31.3\n\t\t\t\t\t\t\t c0,1.6,1.3,2.8,2.8,2.8h52.9c1.6,0,2.8-1.3,2.8-2.8V16.3C61.3,14.8,60,13.5,58.4,13.5z M32,43.3c-6.2,0-11.2-5.1-11.2-11.3\n\t\t\t\t\t\t\t s5-11.3,11.2-11.3S43.2,25.8,43.2,32S38.2,43.3,32,43.3z"],["fill","#EF4136","stroke","#000","stroke-miterlimit","10","stroke-width","2","d","M32,20.7c-6.2,0-11.2,5.1-11.2,11.3\n\t\t\t\t\t\t\t s5,11.3,11.2,11.3S43.2,38.2,43.2,32S38.2,20.7,32,20.7z M36.4,32.8l-6.2,3.6c-0.7,0.4-1.5-0.1-1.5-0.8v-7.2c0-0.8,0.8-1.2,1.5-0.8\n\t\t\t\t\t\t\t l6.2,3.6C37,31.5,37,32.5,36.4,32.8z"],["fill","#F5CB95","stroke","#000","stroke-miterlimit","10","stroke-width","2","d","M36.4,32.8l-6.2,3.6c-0.7,0.4-1.5-0.1-1.5-0.8\n\t\t\t\t\t\t\t\t v-7.2c0-0.8,0.8-1.2,1.5-0.8l6.2,3.6C37,31.5,37,32.5,36.4,32.8z"],["points","51.5,14 37.5,0 6.5,0 6.5,58 51.5,58 ",2,"fill","#EDEADA"],["d","M16.5,23h25c0.552,0,1-0.447,1-1s-0.448-1-1-1h-25c-0.552,0-1,0.447-1,1S15.948,23,16.5,23z",2,"fill","#CEC9AE"],["d","M16.5,15h10c0.552,0,1-0.447,1-1s-0.448-1-1-1h-10c-0.552,0-1,0.447-1,1S15.948,15,16.5,15z",2,"fill","#CEC9AE"],["d","M41.5,29h-25c-0.552,0-1,0.447-1,1s0.448,1,1,1h25c0.552,0,1-0.447,1-1S42.052,29,41.5,29z",2,"fill","#CEC9AE"],["d","M41.5,37h-25c-0.552,0-1,0.447-1,1s0.448,1,1,1h25c0.552,0,1-0.447,1-1S42.052,37,41.5,37z",2,"fill","#CEC9AE"],["d","M41.5,45h-25c-0.552,0-1,0.447-1,1s0.448,1,1,1h25c0.552,0,1-0.447,1-1S42.052,45,41.5,45z",2,"fill","#CEC9AE"],["points","37.5,0 37.5,14 51.5,14 ",2,"fill","#CEC9AE"],["appDnd","",1,"container-lite",2,"cursor","pointer"],[1,"files-list-lite"],["appDnd","",1,"container-lite",2,"cursor","pointer",3,"fileDropped"],["type","file","id","fileDropRef",2,"cursor","pointer",3,"change","multiple","accept"],["fill","#FBB040","stroke","#000","stroke-miterlimit","10","stroke-width","2","d","M58.4,13.5H5.6c-1.6,0-2.8,1.3-2.8,2.8v31.3\n\t\t\t\t\t\t\t\t c0,1.6,1.3,2.8,2.8,2.8h52.9c1.6,0,2.8-1.3,2.8-2.8V16.3C61.3,14.8,60,13.5,58.4,13.5z M32,43.3c-6.2,0-11.2-5.1-11.2-11.3\n\t\t\t\t\t\t\t\t s5-11.3,11.2-11.3S43.2,25.8,43.2,32S38.2,43.3,32,43.3z"],["fill","#EF4136","stroke","#000","stroke-miterlimit","10","stroke-width","2","d","M32,20.7c-6.2,0-11.2,5.1-11.2,11.3\n\t\t\t\t\t\t\t\t s5,11.3,11.2,11.3S43.2,38.2,43.2,32S38.2,20.7,32,20.7z M36.4,32.8l-6.2,3.6c-0.7,0.4-1.5-0.1-1.5-0.8v-7.2c0-0.8,0.8-1.2,1.5-0.8\n\t\t\t\t\t\t\t\t l6.2,3.6C37,31.5,37,32.5,36.4,32.8z"],["fill","#F5CB95","stroke","#000","stroke-miterlimit","10","stroke-width","2","d","M36.4,32.8l-6.2,3.6c-0.7,0.4-1.5-0.1-1.5-0.8\n\t\t\t\t\t\t\t\t\t v-7.2c0-0.8,0.8-1.2,1.5-0.8l6.2,3.6C37,31.5,37,32.5,36.4,32.8z"]],template:function(o,p){1&o&&t.DNE(0,F,16,3)(1,B,3,2,"div",1),2&o&&t.vxM(0!=p.lite&&p.lite?1:0)},dependencies:[e,u.X4],styles:[".container[_ngcontent-%COMP%]{width:100%;min-height:200px;padding:2rem;text-align:center;border:dashed 1px #979797;border-radius:20px;position:relative;margin:0 auto}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;position:absolute;z-index:2;width:100%;height:100%;top:0;left:0}.container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#fff;width:183px;height:44px;border-radius:21.5px;background-color:#db202f;padding:8px 16px}.container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#38424c}.container-lite[_ngcontent-%COMP%]{width:100%;padding:2rem;text-align:center;position:relative;margin:0 auto}.container-lite[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;position:absolute;z-index:2;width:100%;height:100%;top:0;left:0}.container-lite[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#fff;width:183px;height:44px;border-radius:21.5px;background-color:#db202f;padding:8px 16px}.container-lite[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#38424c}.fileover[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_shake 1s;animation-iteration-count:infinite}.files-list[_ngcontent-%COMP%]{margin-top:1.5rem}.files-list[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%]{padding:.5rem;justify-content:space-between;align-items:center;border:dashed 1px #979797;margin-bottom:1rem;display:flex;flex-grow:1}.files-list[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .delete[_ngcontent-%COMP%]{display:flex;margin-left:.5rem;cursor:pointer;align-self:flex-end}.files-list[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#353f4a;margin:0}.files-list[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#a4a4a4;margin:0;margin-bottom:.25rem}.files-list[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{width:100%}.files-list-lite[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%]{padding:.5rem;justify-content:space-between;align-items:center;display:flex;flex-grow:1}.files-list-lite[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .delete[_ngcontent-%COMP%]{display:flex;margin-left:.5rem;cursor:pointer;align-self:flex-end}.files-list-lite[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#353f4a;margin:0}.files-list-lite[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#a4a4a4;margin:0;margin-bottom:.25rem}.files-list-lite[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{width:100%}@keyframes _ngcontent-%COMP%_shake{0%{transform:translate(1px,1px) rotate(0)}10%{transform:translate(-1px,-2px) rotate(-1deg)}20%{transform:translate(-3px) rotate(1deg)}30%{transform:translate(3px,2px) rotate(0)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(-1deg)}60%{transform:translate(-3px,1px) rotate(0)}70%{transform:translate(3px,1px) rotate(-1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(1px,2px) rotate(0)}to{transform:translate(1px,-2px) rotate(-1deg)}}"]})}}return i})()},5522:(A,k,s)=>{s.d(k,{z:()=>I});var t=s(467),e=s(4438),u=s(4006),O=s(8834),C=s(5596),x=s(6695),h=s(2042),m=s(9159),P=s(8199),F=s(177),v=s(9417),M=s(4912),w=s(15),j=s(4628),D=s(3719),b=s(9631),B=s(9213),R=s(4823);const i=()=>[5,8,10];function _(a,g){if(1&a){const l=e.RV6();e.j41(0,"input",26),e.bIt("keyup",function(c){e.eBV(l);const d=e.XpG();return e.Njj(d.filter(c.target.value))}),e.k0s()}}function n(a,g){1&a&&(e.j41(0,"div",11)(1,"div",27),e.EFF(2," Non sono presenti files associati all'utente! "),e.k0s()())}function o(a,g){1&a&&(e.j41(0,"th",28),e.EFF(1," Nome File "),e.k0s())}function p(a,g){if(1&a){const l=e.RV6();e.j41(0,"td",29)(1,"a",30),e.bIt("click",function(){const c=e.eBV(l).$implicit,d=e.XpG();return e.Njj(d.scaricaFile(c))}),e.EFF(2),e.k0s()()}if(2&a){const l=g.$implicit,r=e.XpG();e.R7$(),e.FS9("matTooltip",l),e.R7$(),e.JRh(r.settings.parseOnlyFilename(l))}}function f(a,g){1&a&&(e.j41(0,"th",31),e.EFF(1," Data "),e.k0s())}function T(a,g){if(1&a){const l=e.RV6();e.j41(0,"td",32)(1,"a",30),e.bIt("click",function(){const c=e.eBV(l).$implicit,d=e.XpG();return e.Njj(d.scaricaFile(c))}),e.EFF(2),e.k0s()()}if(2&a){const l=g.$implicit,r=e.XpG();e.R7$(),e.FS9("matTooltip",l),e.R7$(),e.JRh(r.settings.parseOnlyDataFromFilename(l))}}function E(a,g){1&a&&(e.j41(0,"th",33),e.EFF(1," Azioni "),e.k0s())}function y(a,g){if(1&a){const l=e.RV6();e.j41(0,"span",37),e.bIt("click",function(){e.eBV(l);const c=e.XpG().$implicit,d=e.XpG();return e.Njj(d.cancellaFile(c))}),e.nrm(1,"i-tabler",38),e.k0s()}}function z(a,g){if(1&a){const l=e.RV6();e.j41(0,"td",32)(1,"span",34),e.bIt("click",function(){const c=e.eBV(l).$implicit,d=e.XpG();return e.Njj(d.scaricaFile(c))}),e.nrm(2,"i-tabler",35),e.k0s(),e.DNE(3,y,2,0,"span",36),e.k0s()}if(2&a){const l=e.XpG();e.R7$(3),e.vxM(l.id_admin?3:-1)}}function U(a,g){1&a&&e.nrm(0,"tr",39)}function S(a,g){1&a&&e.nrm(0,"tr",40)}let I=(()=>{class a{constructor(l,r){this.api=l,this.settings=r,this.files=[],this.id_admin=!0,this.dialogRef=(0,e.WQX)(u.CP),this.dataSource=new m.I6([]),this.sort=Object.create(null),this.paginator=Object.create(null),this.displayedColumns=["Nome File","Data","Azioni"],this.data=(0,e.WQX)(u.Vh),this.data=(0,e.WQX)(u.Vh),this.functionDownload=(0,e.WQX)(u.Vh),this.functionDelete=(0,e.WQX)(u.Vh),this.files=this.data.files,this.data.enable_delete||(this.id_admin=!1)}onCloseClick(){this.dialogRef.close(!1)}filter(l){this.dataSource&&(this.dataSource.filter=l.trim().toLowerCase())}scaricaFile(l){var r=this;return(0,t.A)(function*(){r.data.functionDownload&&r.data.functionDownload(l)})()}ngOnInit(){var l=this;return(0,t.A)(function*(){l.dataSource=new m.I6((yield l.files)||[]),l.dataSource.paginator=l.paginator,l.dataSource.sort=l.sort,l.dataSource.filterPredicate=(r,c)=>r?.toLowerCase().includes(c)})()}cancellaFile(l){var r=this;return(0,t.A)(function*(){r.data.functionDelete&&r.data.functionDelete(l)})()}static{this.\u0275fac=function(r){return new(r||a)(e.rXU(w.W),e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["app-filemanager-dialog"]],viewQuery:function(r,c){if(1&r&&(e.GBs(h.B4,5),e.GBs(x.iy,5)),2&r){let d;e.mGM(d=e.lsd())&&(c.sort=d.first),e.mGM(d=e.lsd())&&(c.paginator=d.first)}},standalone:!0,features:[e.aNF],decls:31,vars:7,consts:[[1,"cardWithShadow"],[2,"padding-bottom","0px !important"],[1,"mat-subtitle-1","f-s-16","f-w-600","w-100","p-b-5"],[1,"cursor:","pointer;",2,"float","right","cursor","pointer","border","none","background","white","border-radius","50%",3,"click"],[1,"row","justify-content-between","m-t-10"],[1,"col-12"],["appearance","outline",1,"w-100","hide-hint"],["matInput","","placeholder","Cerca qui un file",3,"keyup",4,"ngIf"],["matSuffix",""],["name","search",1,"icon-20"],[1,"p-b-30","position-relative",2,"padding-top","0px !important"],[1,"m-t-24","text-center"],[1,"table-responsive","m-t-30"],["mat-table","","matSort","",1,"w-100",3,"dataSource"],["matColumnDef","Nome File"],["mat-header-cell","","mat-sort-header","nome","class","f-w-600 mat-subtitle-1 f-s-14 p-l-0",4,"matHeaderCellDef"],["mat-cell","","class","p-l-0",4,"matCellDef"],["matColumnDef","Data"],["mat-header-cell","","mat-sort-header","corsi_titolo","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Azioni"],["mat-header-cell","","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-flat-button","","color","primary",3,"click"],["matInput","","placeholder","Cerca qui un file",3,"keyup"],[1,"text-center"],["mat-header-cell","","mat-sort-header","nome",1,"f-w-600","mat-subtitle-1","f-s-14","p-l-0"],["mat-cell","",1,"p-l-0"],[3,"click","matTooltip"],["mat-header-cell","","mat-sort-header","corsi_titolo",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-cell",""],["mat-header-cell","",1,"f-w-600","mat-subtitle-1","f-s-14"],[1,"text-info","bg-light-info","rounded-circle","icon-46","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click"],["name","download",1,"icon-22","d-flex"],[1,"text-error","bg-light-error","rounded-circle","icon-46","d-flex","align-items-center","justify-content-center",2,"cursor","pointer"],[1,"text-error","bg-light-error","rounded-circle","icon-46","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click"],["name","x",1,"icon-22","d-flex"],["mat-header-row",""],["mat-row",""]],template:function(r,c){1&r&&(e.j41(0,"mat-card",0)(1,"mat-card-content",1)(2,"h6",2),e.EFF(3,"Files "),e.j41(4,"button",3),e.bIt("click",function(){return c.dialogRef.close(!0)}),e.EFF(5,"X"),e.k0s()(),e.j41(6,"div",4)(7,"div",5)(8,"mat-form-field",6),e.DNE(9,_,1,0,"input",7),e.j41(10,"mat-icon",8),e.nrm(11,"i-tabler",9),e.k0s()()()()(),e.j41(12,"mat-card-content",10),e.DNE(13,n,3,0,"div",11),e.j41(14,"div",12)(15,"table",13),e.qex(16,14),e.DNE(17,o,2,0,"th",15)(18,p,3,2,"td",16),e.bVm(),e.qex(19,17),e.DNE(20,f,2,0,"th",18)(21,T,3,2,"td",19),e.bVm(),e.qex(22,20),e.DNE(23,E,2,0,"th",21)(24,z,4,1,"td",19),e.bVm(),e.DNE(25,U,1,0,"tr",22)(26,S,1,0,"tr",23),e.k0s(),e.nrm(27,"mat-paginator",24),e.k0s(),e.j41(28,"div",11)(29,"button",25),e.bIt("click",function(){return c.onCloseClick()}),e.EFF(30,"Chiudi"),e.k0s()()()()),2&r&&(e.R7$(9),e.Y8G("ngIf",c.dataSource),e.R7$(4),e.vxM(c.files&&0==c.files.length?13:-1),e.R7$(2),e.Y8G("dataSource",c.dataSource),e.R7$(10),e.Y8G("matHeaderRowDef",c.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",c.displayedColumns),e.R7$(),e.Y8G("pageSizeOptions",e.lJ4(6,i)))},dependencies:[O.$z,C.RN,C.m2,P.G,D.rl,D.yw,b.fg,B.An,R.oV,x.iy,h.B4,h.aE,m.Zl,m.tL,m.ji,m.cC,m.YV,m.iL,m.KS,m.$R,m.YZ,m.NB,F.MD,F.bT,v.YN,v.X1,M.X4,M.Jc],encapsulation:2})}}return a})()}}]);