PageSourceSearch

https://platform.indoorsnavi.pro/build/3397.0b37918d810a18f4.js

js indoorsnavi.pro collected 2026-10-06 08:05:23 UTC 9,276 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkinservicefrontendv2=self.webpackChunkinservicefrontendv2||[]).push([[3397],{3397:(ot,h,a)=>{a.r(h),a.d(h,{UWBModule:()=>et});var r=a(69808),u=a(25245),d=a(51062),S=a(29703),x=a(39244),B=a(1402),m=a(62169),A=a(95698),W=a(70262),b=a(39646),p=a(72289),t=a(5e3),y=a(73897),f=a(21350),Z=a(22290),v=a(21039),l=a(62312),_=a(47423);function D(e,o){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"Status")))}function L(e,o){if(1&e&&(t.TgZ(0,"div")(1,"div",7),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",8),t._uU(5),t.qZA()()()),2&e){const n=o.$implicit;t.xp6(1),t.ekj("online",n.enabled),t.xp6(1),t.hij(" ",t.lcZ(3,4,n.enabled?"Online":"Offline")," "),t.xp6(3),t.Oqu(n.enabled?"check_circle":"info")}}function Y(e,o){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"Working mode")))}function Q(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"div")(1,"button",9),t.NdJ("click",function(c){const g=t.CHM(n).$implicit,nt=t.oxw();return c.stopPropagation(),nt.toggleEnabledAgent(g)}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}if(2&e){const n=o.$implicit,i=t.oxw();t.xp6(1),t.ekj("disabled",!n.enabled),t.Q6J("disabled",i.loadingButtons.has(n.id)),t.xp6(1),t.hij(" ",t.lcZ(3,4,"Turned "+(n.enabled?"on":"off"))," ")}}function j(e,o){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"Config")))}function N(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){const s=t.CHM(n).$implicit;return t.oxw().downloadJson(s)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"Download Config")," "))}let I=(()=>{class e{constructor(n,i,c,s,g){this.appService=n,this.agentDialogService=i,this.agentService=c,this.toastrService=s,this.translateService=g,this.tableConfig={customColumns:["export_json","mode"],displayedColumns:["name","uuid","enabled","mode","export_json"],modelFieldDefinitions:this.agentDialogService.fieldDefs,dialogConfig:this.agentDialogService.config},this.loadingButtons=new Set,this.dataSource=new p.y(this.agentService)}downloadJson(n){const i=this.appService.currentApplication$.getValue(),c=URL.createObjectURL(new Blob([JSON.stringify({client_id:i.client_id,client_secret:i.client_secret,uuid:n.uuid},null,"\t")],{type:"application/json"})),s=document.createElement("a");s.href=c,s.download="Config.json",s.click()}toggleEnabledAgent(n){this.loadingButtons.add(n.id);const i=new FormData;i.append("enabled",String(n.enabled?0:1)),this.dataSource.editItem(n.id,i).pipe((0,A.q)(1),(0,W.K)(()=>{this.loadingButtons.delete(n.id);const c=this.translateService.instant("Error")+"!",s=this.translateService.instant("Failed to update agent status");return this.toastrService.error(s,c),(0,b.of)(null)})).subscribe(()=>{this.loadingButtons.delete(n.id);const c=this.translateService.instant("Success2")+"!",s=this.translateService.instant("Agent status updated successfully");this.toastrService.success(s,c),this.table.forceRefresh()})}onTableInited(n){this.table=n}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(y.I),t.Y36(f._),t.Y36(f.L),t.Y36(Z._W),t.Y36(d.sK))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-uwb-agents"]],decls:10,vars:2,consts:[[3,"dataSource","tableConfig","initialized"],["virtualColumnDef","enabled"],[4,"virtualHeaderDef"],[4,"virtualCellDef"],["virtualColumnDef","mode"],["virtualColumnDef","export_json"],["mat-raised-button","","class","inp-button inp-button-medium",3,"click",4,"virtualCellDef"],[1,"agent-status-bage"],[1,"inp-icon",2,"--size","16px"],["mat-stroked-button","",1,"inp-button","inp-button-medium","primary",3,"disabled","click"],["mat-raised-button","",1,"inp-button","inp-button-medium",3,"click"]],template:function(n,i){1&n&&(t.TgZ(0,"app-virtual-paginated-list",0),t.NdJ("initialized",function(s){return i.onTableInited(s)}),t.ynx(1,1),t.YNc(2,D,3,3,"span",2),t.YNc(3,L,6,6,"div",3),t.BQk(),t.ynx(4,4),t.YNc(5,Y,3,3,"span",2),t.YNc(6,Q,4,6,"div",3),t.BQk(),t.ynx(7,5),t.YNc(8,j,3,3,"span",2),t.YNc(9,N,3,3,"button",6),t.BQk(),t.qZA()),2&n&&t.Q6J("dataSource",i.dataSource)("tableConfig",i.tableConfig)},directives:[v.l,l.TB,l.jR,l.dj,u.Hw,_.lW],pipes:[d.X$],styles:["button[mat-stroked-button][_ngcontent-%COMP%]{font-weight:400}"],changeDetection:0}),e})();var U=a(92985);function M(e,o){if(1&e&&(t.TgZ(0,"div")(1,"mat-icon",5),t._uU(2),t.qZA()()),2&e){const n=o.$implicit;t.xp6(2),t.hij(" ",n.selected?"check":"close"," ")}}function O(e,o){if(1&e&&(t.TgZ(0,"div")(1,"mat-icon",5),t._uU(2),t.qZA()()),2&e){const n=o.$implicit;t.xp6(2),t.hij(" ",n.master?"check":"close"," ")}}function J(e,o){if(1&e&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&e){const n=o.ngIf;t.xp6(1),t.hij(" ",n.name," ")}}function $(e,o){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"Loading"))}function k(e,o){if(1&e&&(t.ynx(0),t.YNc(1,J,2,1,"div",6),t.ALo(2,"async"),t.YNc(3,$,2,3,"ng-template",null,7,t.W1O),t.BQk()),2&e){const n=o.$implicit,i=t.MAs(4);t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,n))("ngIfElse",i)}}let F=(()=>{class e{constructor(n,i,c){this.locatorDialogService=n,this.locatorService=i,this.agentService=c,this.tableConfig={displayedColumns:["identifier","address","agent","master","selected"],modelFieldDefinitions:this.locatorDialogService.fieldDefs,dialogConfig:this.locatorDialogService.config},this.dataSource=new p.y(this.locatorService),this.relatedDataSources=new Map,this.relatedDataSources.set("agent",new p.y(this.agentService))}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(U.q),t.Y36(U.u),t.Y36(f.L))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-uwb-locators"]],decls:7,vars:3,consts:[[3,"dataSource","tableConfig","relatedDataSources"],["virtualColumnDef","selected"],[4,"virtualCellDef"],["virtualColumnDef","master"],["virtualColumnDef","agent"],["color","primary"],[4,"ngIf","ngIfElse"],["loading",""]],template:function(n,i){1&n&&(t.TgZ(0,"app-virtual-paginated-list",0),t.ynx(1,1),t.YNc(2,M,3,1,"div",2),t.BQk(),t.ynx(3,3),t.YNc(4,O,3,1,"div",2),t.BQk(),t.ynx(5,4),t.YNc(6,k,5,4,"ng-container",2),t.BQk(),t.qZA()),2&n&&t.Q6J("dataSource",i.dataSource)("tableConfig",i.tableConfig)("relatedDataSources",i.relatedDataSources)},directives:[v.l,l.TB,l.dj,u.Hw,r.O5],pipes:[r.Ov,d.X$],styles:[""],changeDetection:0}),e})();var T=a(92186),C=a(71125),E=a(10729),R=a(85005);function w(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"inp-card",6),t._UZ(2,"div",7),t.TgZ(3,"inp-card-header")(4,"inp-card-title"),t._uU(5),t.qZA()()(),t.BQk()),2&e){const n=o.$implicit;t.xp6(2),t.Q6J("appRoundedImage",n.image),t.xp6(3),t.Oqu(n.name)}}function z(e,o){1&e&&t._UZ(0,"inp-user-card",9),2&e&&t.Q6J("user",o.ngIf)}function X(e,o){if(1&e&&(t.ynx(0),t.YNc(1,z,1,1,"inp-user-card",8),t.ALo(2,"async"),t.BQk()),2&e){const n=o.$implicit;
1t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,n))}}function H(e,o){if(1&e&&(t.TgZ(0,"div")(1,"mat-icon",10),t._uU(2),t.qZA()()),2&e){const n=o.$implicit;t.xp6(2),t.hij(" ",n.enabled?"check":"close"," ")}}function P(e,o){if(1&e&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&e){const n=o.ngIf;t.xp6(1),t.hij(" ",n.name," ")}}function K(e,o){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"Loading"))}function V(e,o){if(1&e&&(t.ynx(0),t.YNc(1,P,2,1,"div",11),t.ALo(2,"async"),t.YNc(3,K,2,3,"ng-template",null,12,t.W1O),t.BQk()),2&e){const n=o.$implicit,i=t.MAs(4);t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,n))("ngIfElse",i)}}const q=[{path:"locators",component:F,data:{section:m.y.UWBLocators}},{path:"agents",component:I,data:{section:m.y.UWBAgents}},{path:"tags",component:(()=>{class e{constructor(n,i){this.dialogService=n,this.tagService=i,this.dataSource=new p.y(this.tagService),this.tableConfig={displayedColumns:["name","model","user","enabled","mac_address","uuid"],modelFieldDefinitions:this.dialogService.fieldDefs,dialogConfig:this.dialogService.config},this.relatedDataSources=this.dialogService.relatedDataSources}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(T.V),t.Y36(T.e))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-uwb-tags"]],decls:9,vars:3,consts:[[3,"dataSource","tableConfig","relatedDataSources"],["virtualColumnDef","name"],[4,"virtualCellDef"],["virtualColumnDef","user"],["virtualColumnDef","enabled"],["virtualColumnDef","model"],[1,"table-card"],[3,"appRoundedImage"],["class","table-user-card",3,"user",4,"ngIf"],[1,"table-user-card",3,"user"],["color","primary"],[4,"ngIf","ngIfElse"],["loading",""]],template:function(n,i){1&n&&(t.TgZ(0,"app-virtual-paginated-list",0),t.ynx(1,1),t.YNc(2,w,6,2,"ng-container",2),t.BQk(),t.ynx(3,3),t.YNc(4,X,3,3,"ng-container",2),t.BQk(),t.ynx(5,4),t.YNc(6,H,3,1,"div",2),t.BQk(),t.ynx(7,5),t.YNc(8,V,5,4,"ng-container",2),t.BQk(),t.qZA()),2&n&&t.Q6J("dataSource",i.dataSource)("tableConfig",i.tableConfig)("relatedDataSources",i.relatedDataSources)},directives:[v.l,l.TB,l.dj,C.Gb,E.e,C.My,C.tQ,r.O5,R.X,u.Hw],pipes:[r.Ov,d.X$],styles:[""],changeDetection:0}),e})(),data:{section:m.y.UWBTags}},{path:"**",redirectTo:"locators"}];let tt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[B.Bz.forChild(q)],B.Bz]}),e})(),et=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[r.ez,tt,x.P,d.aw,u.Ps,S.m,_.ot]]}),e})()}}]);

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.