PageSourceSearch

https://dronos.ai/4391.f5a8fc848c623f76.js

js dronos.ai collected 2026-10-05 14:23:36 UTC 13,146 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdronos_app=self.webpackChunkdronos_app||[]).push([[4391],{17940:(M,C,n)=>{n.d(C,{F:()=>c});var e=n(56610),t=n(23279),p=n(50917);const E=[[["","header",""]],[["","content",""]]],l=["[header]","[content]"],r=s=>({"modal-lg":s});let c=(()=>{class s{constructor(){this.closeModal=new t.bkB,this.modalLg=!1}close(){this.closeModal.emit()}static{this.\u0275fac=function(g){return new(g||s)}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-b-modal"]],inputs:{modalLg:"modalLg"},outputs:{closeModal:"closeModal"},ngContentSelectors:l,decls:10,vars:6,consts:[["tabindex","-1","role","dialog",1,"modal","d-block"],["role","document",1,"modal-dialog",3,"ngClass"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"btn-text",3,"click"],["alt","close",3,"src"],[1,"modal-body"]],template:function(g,u){1&g&&(t.NAR(E),t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.SdG(4),t.j41(5,"button",4),t.bIt("click",function(){return u.close()}),t.nrm(6,"img",5),t.nI1(7,"assetUrl"),t.k0s()(),t.j41(8,"div",6),t.SdG(9,1),t.k0s()()()()),2&g&&(t.R7$(),t.Y8G("ngClass",t.eq3(4,r,u.modalLg)),t.R7$(5),t.Y8G("src",t.bMT(7,2,"/images/close.svg"),t.B4B))},dependencies:[e.YU,p.i],styles:[".modal[_ngcontent-%COMP%]{background-color:#00000080;top:44px}.modal-content[_ngcontent-%COMP%]{border:1px solid #4e5b6d;background-color:#14181f;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff}
1.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%]{border:none}.custom-btn[_ngcontent-%COMP%]{font-family:Barlow;font-style:normal;font-weight:400;font-size:14px;letter-spacing:1px;color:#d7e2e8;padding:6px;cursor:pointer}"]})}}return s})()},68452:(M,C,n)=>{n.d(C,{G:()=>I});var e=n(73308),t=n(23279),p=n(94934),E=n(35025),l=n.n(E),r=n(491),c=n(71873),s=n(76178),f=n(50917),m=n(17940),g=n(87091),u=n(90330),T=n(18502),b=n(49025),O=n(76098);function P(_,h){if(1&_){const o=t.RV6();t.j41(0,"div",9)(1,"img",10),t.nI1(2,"assetUrl"),t.bIt("click",function(){t.eBV(o);const a=t.XpG().$implicit,d=t.XpG();return t.Njj(d.showConfirmModalHandler(a))})("keydown",function(){t.eBV(o);const a=t.XpG().$implicit,d=t.XpG();return t.Njj(d.showConfirmModalHandler(a))}),t.k0s()()}2&_&&(t.R7$(),t.Y8G("src",t.bMT(2,1,"/images/delete.svg"),t.B4B))}function v(_,h){if(1&_){const o=t.RV6();t.j41(0,"li",1)(1,"div")(2,"h3",3),t.EFF(3),t.k0s(),t.j41(4,"p",4),t.EFF(5),t.k0s(),t.j41(6,"p",5),t.EFF(7),t.k0s(),t.j41(8,"div",6),t.bIt("click",function(){const a=t.eBV(o).$implicit,d=t.XpG();return t.Njj(d.showFilePreview(a.attachment[0]))})("keydown",function(){const a=t.eBV(o).$implicit,d=t.XpG();return t.Njj(d.showFilePreview(a.attachment[0]))}),t.j41(9,"span",7),t.EFF(10,"Show Attachment"),t.k0s(),t.nrm(11,"img",8),t.nI1(12,"assetUrl"),t.k0s()(),t.DNE(13,P,3,3,"div",9),t.k0s()}if(2&_){const o=h.$implicit,i=t.XpG();t.R7$(3),t.JRh(o.certificateName),t.R7$(2),t.SpI(" ",o.issuedBy," "),t.R7$(2),t.SpI(" Issued ",i.moment(o.issuedDate).format("MMMM YY")," "),t.R7$(4),t.Y8G("src",t.bMT(12,5,"/images/new-view-icon.svg"),t.B4B),t.R7$(2),t.vxM(i.viewOnly?-1:13)}}function R(_,h){if(1&_&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&_){const o=t.XpG();t.R7$(),t.JRh(o.NO_CERTIFICATE_MSG)}}function D(_,h){if(1&_){const o=t.RV6();t.j41(0,"app-b-modal",11),t.bIt("closeModal",function(){t.eBV(o);const a=t.XpG();return t.Njj(a.closePreview())}),t.j41(1,"div",12),t.EFF(2,"Preview"),t.k0s(),t.nrm(3,"iframe",13),t.k0s()}if(2&_){const o=t.XpG();t.R7$(3),t.Y8G("src",o.sanitizer.bypassSecurityTrustResourceUrl(o.filePreview),t.f$h)}}let I=(()=>{class _{constructor(o,i,a,d){this.accountService=o,this.notificationService=i,this.uploadFileService=a,this.sanitizer=d,this.certificateList=[],this.getUserData=new t.bkB,this.moment=l(),this.showPreviewModal=!1,this.NO_CERTIFICATE_MSG=r.Ci,this.confirmModalConfig={title:"",message:""}}showFilePreview(o){var i=this;return(0,e.A)(function*(){if("object"==typeof o){const a=new FileReader;a.onload=()=>{i.filePreview=a.result},a.readAsDataURL(o),i.showPreviewModal=!0}else try{const d=(yield(0,p.s)(i.uploadFileService.getUserFilesPresignedUrl(o))).storage.files[0].preSignedUrl;window.open(d,"_blank")}catch{i.notificationService.showToast({type:s.w.error,message:r.UT})}})()}removeCertificate(o){var i=this;return(0,e.A)(function*(){try{const d={userCertificate:[...i.certificateList.filter(w=>w.certificateNumber!=o.certificateNumber)]},A=yield(0,p.s)(i.accountService.updateUserAccount(d,i.userData._id));localStorage.setItem(g.C.USER_DATA,JSON.stringify({...i.userData,userCertificate:A.userCertificate})),i.getUserData.emit(),i.notificationService.showToast({type:s.w.success,message:r.iI})}catch{i.notificationService.showToast({type:s.w.error,message:r.UT})}})()}closePreview(){this.filePreview="",this.showPreviewModal=!1}showConfirmModalHandler(o){this.selectedCertificate=o,this.confirmModalConfig.title="Delete license or certification",this.confirmModalConfig.message=`Are you sure you want to delete ${o.certificateName}?`,this.AdConfirmModal.showModal()}onConfirm(){this.AdConfirmModal.closeModal(),this.removeCertificate(this.selectedCertificate)}static{this.\u0275fac=function(i){return new(i||_)(t.rXU(u.D),t.rXU(T.B),t.rXU(b.R),t.rXU(O.up))}}static{this.\u0275cmp=t.VBU({type:_,selectors:[["app-certification-list"]],viewQuery:function(i,a){if(1&i&&t.GBs(c.K,5),2&i){let d;t.mGM(d=t.lsd())&&(a.AdConfirmModal=d.first)}},inputs:{certificateList:"certificateList",userData:"userData",viewOnly:"viewOnly"},outputs:{getUserData:"getUserData"},decls:6,vars:3,consts:[[1,"certificate"],[1,"certificate-category"],[3,"confirm","modalConfig"],[1,"certificate-name"],[1,"certificate-issuer"],[1,"certificate-d
1ate"],[1,"show-att",3,"click","keydown"],[1,"att-heading"],["alt","view",3,"src"],[1,"action-icons-wrapper"],["alt","remove",1,"action-icons",3,"click","keydown","src"],[3,"closeModal"],["header",""],["content","","width","100%","height","600px","title","preview",3,"src"]],template:function(i,a){1&i&&(t.j41(0,"ul",0),t.Z7z(1,v,14,7,"li",1,t.fX1,!1,R,2,1,"div"),t.k0s(),t.DNE(4,D,4,1,"app-b-modal"),t.j41(5,"ad-confirm-modal",2),t.bIt("confirm",function(){return a.onConfirm()}),t.k0s()),2&i&&(t.R7$(),t.Dyx(a.certificateList),t.R7$(3),t.vxM(a.showPreviewModal?4:-1),t.R7$(),t.Y8G("modalConfig",a.confirmModalConfig))},dependencies:[f.i,m.F,c.K],styles:['.certificate[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}.certificate-category[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin:0 0 24px;padding-bottom:12px;position:relative}.certificate-category[_ngcontent-%COMP%]:not(:last-child):before{content:"";position:absolute;height:1px;width:100%;background-color:#ffffff1a;bottom:0}.certificate-category[_ngcontent-%COMP%]   .action-icons-wrapper[_ngcontent-%COMP%]{gap:12px;display:none}.certificate-category[_ngcontent-%COMP%]   .action-icons-wrapper[_ngcontent-%COMP%]   .action-icons[_ngcontent-%COMP%]{width:24px;height:24px;cursor:pointer}.certificate-category[_ngcontent-%COMP%]:hover   .action-icons-wrapper[_ngcontent-%COMP%]{display:flex}.certificate-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:1.2;margin:0 0 4px;color:#fff}.certificate-issuer[_ngcontent-%COMP%]{font-weight:400;font-size:12px;line-height:14px;margin:0 0 4px;color:#fff}.certificate-date[_ngcontent-%COMP%]{font-weight:400;font-size:12px;line-height:14px;color:#c8c8c8}.show-att[_ngcontent-%COMP%]{width:fit-content;border-radius:12px;border:1px solid #c8c8c8;color:#c8c8c8;padding:4px 15px;display:flex;justify-content:flex-start;align-items:center;gap:4px;cursor:pointer}']})}}return _})()},12140:(M,C,n)=>{n.d(C,{j:()=>E});var e=n(23279);
1function t(l,r){if(1&l&&(e.j41(0,"span",3),e.EFF(1),e.k0s()),2&l){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.subtext)}}function p(l,r){if(1&l){const c=e.RV6();e.j41(0,"div",2),e.bIt("click",function(){const f=e.eBV(c).$implicit,m=e.XpG();return e.Njj(m.changeTab(f))}),e.EFF(1),e.DNE(2,t,2,1,"span",3),e.k0s()}if(2&l){const c=r.$implicit,s=e.XpG();e.AVh("active",s.selectedTab===c),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.vxM(c.subtext?2:-1)}}let E=(()=>{class l{constructor(){this.activeTab=new e.bkB}ngOnInit(){this.selectedTab=this.tabs[0]}changeTab(c){this.selectedTab=c,this.activeTab.emit(c)}static{this.\u0275fac=function(s){return new(s||l)}}static{this.\u0275cmp=e.VBU({type:l,selectors:[["app-tab"]],inputs:{tabs:"tabs"},outputs:{activeTab:"activeTab"},decls:3,vars:0,consts:[[1,"workspace-tab-container"],[1,"tab-item",3,"active"],[1,"tab-item",3,"click"],[1,"sub-text"]],template:function(s,f){1&s&&(e.j41(0,"div",0),e.Z7z(1,p,3,4,"div",1,e.fX1),e.k0s()),2&s&&(e.R7$(),e.Dyx(f.tabs))},styles:['.workspace-tab-container[_ngcontent-%COMP%]{display:flex}.workspace-tab-container[_ngcontent-%COMP%]   .tab-item[_ngcontent-%COMP%]{padding:0 10px 5px;font-size:16px;line-height:24px;font-weight:600;text-transform:uppercase;position:relative;color:#fff}.workspace-tab-container[_ngcontent-%COMP%]   .tab-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;margin-left:2px}.workspace-tab-container[_ngcontent-%COMP%]   .tab-item[_ngcontent-%COMP%]:hover{color:#00f0ff;cursor:pointer}.workspace-tab-container[_ngcontent-%COMP%]   .tab-item.active[_ngcontent-%COMP%]{color:#00f0ff}.workspace-tab-container[_ngcontent-%COMP%]   .tab-item.active[_ngcontent-%COMP%]:after{content:"";position:absolute;width:100%;height:1px;left:0;bottom:0;background-color:#00f0ff}']})}}return l})()},491:(M,C,n)=>{n.d(C,{$8:()=>d,Ci:()=>R,FS:()=>a,Hg:()=>w,JZ:()=>c,Od:()=>o,Qm:()=>T,UT:()=>p,W_:()=>s,YA:()=>m,ZT:()=>b,_:()=>x,_X:()=>E,a4:()=>f,dP:()=>O,eg:()=>u,ht:()=>g,iI:()=>e,iV:()=>D,pC:()=>v,ph:()=>i,s1:()=>r,sD:()=>P,tq:()=>I,wp:()=>t,yY:()=>A});const e="User data updated successfully",t="User data not updated successfully",p="Something went wrong",E="LICENSE OR CERTIFICATION",r="Member(s) have not been invited.",c="Member(s) have been reinvited",s="Member(s) have not been reinvited.",f="Member(s) have been removed.",m="Member(s) have not been removed.",g="User role updated successfully",u="User Role not updated",T="Workspace data updated successfully",b="Workspace data not updated",O="Workspace created successfully",P="Workspace deleted successfully",v="user-template",R="No certificate to show",D="Workspace settings updated successfully",I="Failed to fetch devices. Please try again later.",o=5242880,i=1048576,a=[{name:"Malaysia"},{name:"Afghanistan"},{name:"Albania"},{name:"Pakistan"},{name:"Australia"},{name:"India"}],d=[{name:"Pilot"},{name:"API Inspector"},{name:"Thermography"}],A="report",w="component",x="asset"},50917:(M,C,n)=>{n.d(C,{i:()=>t});var e=n(23279);let t=(()=>{class p{transform(l){return`https://fe-assets-prod.dronos.ai/assets/assets/workspace${(c=l).startsWith("/")?"":"/"}${c}`;var c}static{this.\u0275fac=function(r){return new(r||p)}}static{this.\u0275pipe=e.EJ8({name:"assetUrl",type:p,pure:!0})}}return p})()},71873:(M,C,n)=>{n.d(C,{K:()=>l});var e=n(23279),t=n(58484),p=n(12335);function E(r,c){if(1&r){const s=e.RV6();e.qex(0),e.j41(1,"div",2),e.nrm(2,"img",3),e.j41(3,"div",4),e.EFF(4),e.k0s(),e.j41(5,"div",5),e.EFF(6),e.k0s(),e.j41(7,"div")(8,"ad-button",6),e.bIt("click",function(){e.eBV(s);const m=e.XpG();return e.Njj(m.handleCancel())}),e.EFF(9,"Cancel"),e.k0s(),e.j41(10,"ad-button",7),e.bIt("click",function(){e.eBV(s);const m=e.XpG();return e.Njj(m.handleOk())}),e.EFF(11,"Delete"),e.k0s()()(),e.bVm()}if(2&r){const s=e.XpG();e.R7$(4),e.JRh(s.modalConfig.title),e.R7$(2),e.JRh(s.modalConfig.message)}}let l=(()=>{class r{constructor(){this.isVisible=!1,this.modalConfig={title:"",message:""},this.confirm=new e.bkB}showModal(){this.isVisible=!0}closeModal(){this.isVisible=!1}handleCancel(){this.closeModal()}handleOk(){this.confirm.emit(!0)}static{this.\u0275fac=function(f){return new(f||r)}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["ad-confirm-modal"]],inputs:{modalConfig:"modalConfig"},outputs:{confirm:"confirm"},decls:2,vars:1,consts:[["nzCentered","","nzClosable","false",3,"nz
1VisibleChange","nzVisible"],[4,"nzModalContent"],[1,"d-flex","justify-content-center","align-items-center","flex-column","text-center"],["src","https://fe-assets-prod.dronos.ai/assets/assets/shared/icon/alert.svg","alt","",1,"icon-alert"],[1,"title"],[1,"message"],["nzType","text","onkeypress","",3,"click"],["nzType","primary","onkeypress","",3,"click"]],template:function(f,m){1&f&&(e.j41(0,"nz-modal",0),e.mxI("nzVisibleChange",function(u){return e.DH7(m.isVisible,u)||(m.isVisible=u),u}),e.DNE(1,E,12,2,"ng-container",1),e.k0s()),2&f&&e.R50("nzVisible",m.isVisible)},dependencies:[t.U6,t.F2,t.A9,p.J],styles:[".ant-modal-content{background-color:#14171f;color:#eef4f7;border-radius:12px}  .ant-modal-footer{display:none}.icon-alert[_ngcontent-%COMP%]{width:72px;height:72px}.text-center[_ngcontent-%COMP%]{text-align:center}.title[_ngcontent-%COMP%]{margin-top:18px;font-weight:500;font-size:21px;line-height:25.2px;word-break:break-word}.message[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:32px;font-weight:400;font-size:14px;line-height:21px;color:#babfc7}"]})}}return r})()}}]);

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.