p3x-redis-ui-material
Version:
💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io
1 lines • 47.7 kB
JavaScript
"use strict";(self.webpackChunkp3x_redis_ui_material=self.webpackChunkp3x_redis_ui_material||[]).push([[7060],{93300(t,n,e){e.d(n,{B:()=>h});var i=e(63924),o=e(66608),s=e(30943),r=e(33825),c=e(46256),l=e(23232),a=e(51218),d=e(65209),u=e(34503);const p=[[["","actions",""]],[["","content",""]]],g=["[actions]","[content]"];function m(t,n){1&t&&(a.j41(0,"div",6),a.SdG(1,1),a.k0s())}class h{i18n;title="";accordionKey="";strings;extended=!0;static counter=0;storageKey="";constructor(t){this.i18n=t,this.strings=this.i18n.strings}ngOnInit(){this.accordionKey||(this.accordionKey=String(++h.counter)),this.storageKey=`p3xr-accordion-extended-${this.accordionKey}`,this.loadState()}toggle(){this.extended=!this.extended,this.saveState()}loadState(){try{const t=localStorage.getItem(this.storageKey);this.extended=null===t||"true"===t}catch{this.extended=!0}}saveState(){try{localStorage.setItem(this.storageKey,String(this.extended))}catch{}}static ɵfac=function(t){return new(t||h)(a.rXU(l.W))};static ɵcmp=a.VBU({type:h,selectors:[["p3xr-ng-accordion"]],inputs:{title:"title",accordionKey:"accordionKey"},ngContentSelectors:g,decls:11,vars:8,consts:[[1,"p3xr-accordion-wrapper"],[1,"p3xr-accordion-toolbar"],[1,"p3xr-accordion-toolbar-inner"],[1,"p3xr-accordion-title",3,"click"],[1,"p3xr-accordion-actions"],["mat-icon-button","",1,"p3xr-accordion-toggle",3,"click","matTooltip"],[1,"p3xr-accordion-content"]],template:function(t,n){if(1&t&&(a.NAR(p),a.j41(0,"div",0)(1,"mat-toolbar",1)(2,"div",2)(3,"span",3),a.bIt("click",(function(){return n.toggle()})),a.EFF(4),a.k0s(),a.j41(5,"div",4),a.SdG(6),a.k0s(),a.j41(7,"button",5),a.bIt("click",(function(){return n.toggle()})),a.j41(8,"mat-icon"),a.EFF(9),a.k0s()()()(),a.nVh(10,m,2,0,"div",6),a.k0s()),2&t){let t;a.R7$(),a.AVh("p3xr-collapsed",!n.extended)("mat-elevation-z1",!n.extended),a.R7$(3),a.SpI(" ",n.title," "),a.R7$(3),a.Y8G("matTooltip",n.extended?(null==(t=n.strings().intention)?null:t.collapse)||"Collapse":(null==(t=n.strings().intention)?null:t.extend)||"Extend"),a.R7$(2),a.JRh(n.extended?"keyboard_arrow_up":"keyboard_arrow_down"),a.R7$(),a.vxM(n.extended?10:-1)}},dependencies:[i.MD,o.s5,o.KQ,s.Hl,d.iY,r.m_,r.An,c.uc,u.oV],styles:["[_nghost-%COMP%] { display: block; }\n .p3xr-accordion-wrapper[_ngcontent-%COMP%] {\n margin-bottom: 0;\n }\n .p3xr-accordion-toolbar[_ngcontent-%COMP%] {\n height: 48px;\n min-height: 48px;\n max-height: 48px;\n font-size: 20px;\n font-weight: 400;\n background-color: var(--p3xr-accordion-bg) !important;\n color: rgba(0, 0, 0, 0.87) !important;\n padding: 0;\n border-radius: 4px 4px 0 0;\n box-shadow: 0 1px 1px rgba(0,0,0,0.3);\n }\n .p3xr-accordion-toolbar.p3xr-collapsed[_ngcontent-%COMP%] {\n box-shadow: 0 1px 1px rgba(0,0,0,0.4);\n border-radius: 4px;\n }\n \n .p3xr-accordion-toolbar-inner[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n width: 100%;\n height: 48px;\n padding: 0 8px 0 16px;\n box-sizing: border-box;\n }\n .p3xr-accordion-content[_ngcontent-%COMP%] {\n border: 1px solid var(--p3xr-accordion-bg);\n border-radius: 0 0 4px 4px;\n }\n .p3xr-accordion-title[_ngcontent-%COMP%] {\n flex: 1;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .p3xr-accordion-actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n }\n .p3xr-accordion-toggle[_ngcontent-%COMP%] {\n flex-shrink: 0;\n width: 40px !important;\n height: 40px !important;\n padding: 0 !important;\n }"]})}},48982(t,n,e){e.d(n,{f:()=>F});var i=e(11228),o=e(63924),s=e(30943),r=e(33825),c=e(46256),l=e(90870),a=e(51218),d=e(65209),u=e(34503);function p(t,n){if(1&t&&(a.j41(0,"mat-icon"),a.EFF(1),a.k0s()),2&t){const t=a.XpG(3);a.R7$(),a.JRh(t.mdIcon)}}function g(t,n){if(1&t&&a.nrm(0,"i"),2&t){const t=a.XpG(3);a.HbH(t.faIcon)}}function m(t,n){if(1&t&&(a.j41(0,"button",0),a.nVh(1,p,2,1,"mat-icon"),a.nVh(2,g,1,2,"i",2),a.j41(3,"span"),a.EFF(4),a.k0s()()),2&t){const t=a.XpG(2);a.Y8G("ngClass",t.classes)("disabled",t.disabled),a.R7$(),a.vxM(t.mdIcon?1:-1),a.R7$(),a.vxM(t.faIcon?2:-1),a.R7$(2),a.JRh(t.label)}}function h(t,n){if(1&t&&(a.j41(0,"mat-icon"),a.EFF(1),a.k0s()),2&t){const t=a.XpG(3);a.R7$(),a.JRh(t.mdIcon)}}function b(t,n){if(1&t&&a.nrm(0,"i"),2&t){const t=a.XpG(3);a.HbH(t.faIcon)}}function f(t,n){if(1&t&&(a.j41(0,"button",1),a.nVh(1,h,2,1,"mat-icon"),a.nVh(2,b,1,2,"i",2),a.k0s()),2&t){const t=a.XpG(2);a.Y8G("ngClass",t.classes)("disabled",t.disabled)("matTooltip",t.label)("matTooltipPosition",t.tooltipPosition)("matTooltipDisabled",!t.label),a.BMQ("aria-label",t.label||null),a.R7$(),a.vxM(t.mdIcon?1:-1),a.R7$(),a.vxM(t.faIcon?2:-1)}}function k(t,n){if(1&t&&a.nVh(0,m,5,5,"button",0)(1,f,3,8,"button",1),2&t){const t=a.XpG();a.vxM(t.isWide?0:1)}}function x(t,n){if(1&t&&(a.j41(0,"mat-icon"),a.EFF(1),a.k0s()),2&t){const t=a.XpG(3);a.R7$(),a.JRh(t.mdIcon)}}function v(t,n){if(1&t&&a.nrm(0,"i"),2&t){const t=a.XpG(3);a.HbH(t.faIcon)}}function y(t,n){if(1&t&&(a.j41(0,"button",3),a.nVh(1,x,2,1,"mat-icon"),a.nVh(2,v,1,2,"i",2),a.j41(3,"span"),a.EFF(4),a.k0s()()),2&t){const t=a.XpG(2);a.Y8G("ngClass",t.classes)("disabled",t.disabled),a.R7$(),a.vxM(t.mdIcon?1:-1),a.R7$(),a.vxM(t.faIcon?2:-1),a.R7$(2),a.JRh(t.label)}}function R(t,n){if(1&t&&(a.j41(0,"mat-icon"),a.EFF(1),a.k0s()),2&t){const t=a.XpG(3);a.R7$(),a.JRh(t.mdIcon)}}function j(t,n){if(1&t&&a.nrm(0,"i"),2&t){const t=a.XpG(3);a.HbH(t.faIcon)}}function G(t,n){if(1&t&&(a.j41(0,"button",4),a.nVh(1,R,2,1,"mat-icon"),a.nVh(2,j,1,2,"i",2),a.k0s()),2&t){const t=a.XpG(2);a.Y8G("ngClass",t.classes)("disabled",t.disabled)("matTooltip",t.label)("matTooltipPosition",t.tooltipPosition)("matTooltipDisabled",!t.label),a.BMQ("aria-label",t.label||null),a.R7$(),a.vxM(t.mdIcon?1:-1),a.R7$(),a.vxM(t.faIcon?2:-1)}}function S(t,n){if(1&t&&a.nVh(0,y,5,5,"button",3)(1,G,3,8,"button",4),2&t){const t=a.XpG();a.vxM(t.isWide?0:1)}}class F{breakpointObserver;cdr;label="";mdIcon;faIcon;tooltipDirection="above";classes="";disabled=!1;raised=!1;isWide=!0;constructor(t,n){this.breakpointObserver=t,this.cdr=n,this.breakpointObserver.observe("(min-width: 720px)").subscribe((t=>{this.isWide=t.matches,this.cdr.markForCheck()}))}get tooltipPosition(){switch(this.tooltipDirection){case"top":default:return"above";case"bottom":return"below";case"above":case"below":case"left":case"right":case"before":case"after":return this.tooltipDirection}}static ɵfac=function(t){return new(t||F)(a.rXU(l.Q),a.rXU(i.gRc))};static ɵcmp=a.VBU({type:F,selectors:[["p3xr-ng-button"]],inputs:{label:"label",mdIcon:"mdIcon",faIcon:"faIcon",tooltipDirection:"tooltipDirection",classes:"classes",disabled:"disabled",raised:"raised"},decls:2,vars:1,consts:[["mat-flat-button","",3,"ngClass","disabled"],["mat-mini-fab","",3,"ngClass","disabled","matTooltip","matTooltipPosition","matTooltipDisabled"],[3,"class"],["mat-button","",1,"md-button-dark-hover-fix",3,"ngClass","disabled"],["mat-icon-button","",1,"md-button-dark-hover-fix",3,"ngClass","disabled","matTooltip","matTooltipPosition","matTooltipDisabled"]],template:function(t,n){1&t&&a.nVh(0,k,2,1)(1,S,2,1),2&t&&a.vxM(n.raised?0:1)},dependencies:[o.MD,o.YU,s.Hl,s.$z,s.$0,d.iY,r.m_,r.An,c.uc,u.oV],styles:["[_nghost-%COMP%] { display: inline-block; }\n [_nghost-%COMP%] button[_ngcontent-%COMP%] { margin: 0 !important; }"]})}},47183(t,n,e){e.d(n,{i:()=>r});var i=e(64961),o=e(24583),s=e(24698);class r{dialog;constructor(t){this.dialog=t}async show(t){const{TreecontrolSettingsDialogComponent:n}=await Promise.all([e.e(3761),e.e(4363),e.e(8763)]).then(e.bind(e,66583)),i=this.dialog.open(n,(0,o.createDialogPopupSettings)({width:"75vw",maxWidth:"75vw",panelClass:["fullscreen-dialog","p3xr-tree-settings-dialog-panel"]}));return new Promise((t=>{i.afterClosed().subscribe((()=>t()))}))}static ɵfac=function(t){return new(t||r)(s.KVO(i.bZ))};static ɵprov=s.jDH({token:r,factory:r.ɵfac,providedIn:"root"})}},40588(t,n,e){e.d(n,{SettingsComponent:()=>jt});var i=e(11228),o=e(66608),s=e(30943),r=e(33825),c=e(86623),l=e(84363),a=e(46256),d=e(774),u=e(64961),p=e(90870),g=e(8435),m=e(23232),h=e(55181),b=e(77385),f=e(26265),k=e(66593),x=e(24583),v=e(24698);class y{dialog;constructor(t){this.dialog=t}async show(t){const{ConnectionDialogComponent:n}=await Promise.all([e.e(3761),e.e(8215),e.e(522),e.e(1860)]).then(e.bind(e,32036)),i={type:t.type,model:t.model},o=this.dialog.open(n,(0,x.createDialogPopupSettings)({data:i,panelClass:["fullscreen-dialog","p3xr-connection-dialog-panel"]}));return new Promise(((t,n)=>{o.afterClosed().subscribe((()=>{t()}))}))}static ɵfac=function(t){return new(t||y)(v.KVO(u.bZ))};static ɵprov=v.jDH({token:y,factory:y.ɵfac,providedIn:"root"})}var R=e(47183);class j{dialog;constructor(t){this.dialog=t}async show(){const{AiSettingsDialogComponent:t}=await Promise.all([e.e(3761),e.e(9432)]).then(e.bind(e,2506)),n=this.dialog.open(t,(0,x.createDialogPopupSettings)({width:"75vw",maxWidth:"75vw"}));return new Promise((t=>{n.afterClosed().subscribe((()=>t()))}))}static ɵfac=function(t){return new(t||j)(v.KVO(u.bZ))};static ɵprov=v.jDH({token:j,factory:j.ɵfac,providedIn:"root"})}var G=e(93300),S=e(48982),F=e(51218),E=e(34503),w=e(12027);const $=t=>({length:t}),C=(t,n)=>n.name,D=(t,n)=>n.id,M=(t,n)=>n.key;function X(t,n){if(1&t){const t=F.RV6();F.j41(0,"p3xr-ng-button",21),F.bIt("click",(function(){v.eBV(t);const n=F.XpG();return v.Njj(n.connectionForm("new"))})),F.k0s()}if(2&t){let t;const n=F.XpG();F.Y8G("label",(null==(t=n.strings().intention)?null:t.connectionAdd)||"Add")}}function I(t,n){if(1&t&&(F.j41(0,"div",5),F.EFF(1),F.k0s()),2&t){let t;const n=F.XpG();F.R7$(),F.SpI(" ",(null==(t=n.strings().intention)?null:t.noConnectionsInSettings)||"No connections"," ")}}function V(t,n){if(1&t&&F.EFF(0),2&t){let t;const e=n.$implicit,i=F.XpG(6);F.SpI(" ",null==(t=i.strings().page)||null==t.overview||null==t.overview.connectedCount?null:t.overview.connectedCount(F.eq3(1,$,e.clients))," ")}}function P(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",36),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(5);return v.Njj(e.connect(n))})),F.j41(1,"mat-icon"),F.EFF(2,"power"),F.k0s()()}if(2&t){let t,n;const e=F.XpG(7);F.Y8G("matTooltip",(null==(t=e.strings().intention)?null:t.connect)||"Connect"),F.BMQ("aria-label",(null==(n=e.strings().intention)?null:n.connect)||"Connect")}}function _(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",37),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(5);return v.Njj(e.connect(n))})),F.j41(1,"mat-icon"),F.EFF(2,"power"),F.k0s(),F.j41(3,"span"),F.EFF(4),F.k0s()()}if(2&t){let t;const n=F.XpG(7);F.R7$(4),F.JRh((null==(t=n.strings().intention)?null:t.connect)||"Connect")}}function O(t,n){if(1&t&&F.nVh(0,P,3,2,"button",34)(1,_,5,1,"button",35),2&t){const t=F.XpG(6);F.vxM(t.isXs?0:1)}}function T(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",39),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(7);return v.Njj(n.disconnect())})),F.nrm(1,"i",40),F.k0s()}if(2&t){let t,n;const e=F.XpG(7);F.Y8G("matTooltip",(null==(t=e.strings().intention)?null:t.disconnect)||"Disconnect"),F.BMQ("aria-label",(null==(n=e.strings().intention)?null:n.disconnect)||"Disconnect")}}function L(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",37),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(7);return v.Njj(n.disconnect())})),F.nrm(1,"i",40),F.j41(2,"span"),F.EFF(3),F.k0s()()}if(2&t){let t;const n=F.XpG(7);F.R7$(3),F.JRh((null==(t=n.strings().intention)?null:t.disconnect)||"Disconnect")}}function K(t,n){if(1&t&&F.nVh(0,T,2,2,"button",38)(1,L,4,1,"button",35),2&t){const t=F.XpG(6);F.vxM(t.isXs?0:1)}}function U(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",45),F.bIt("click",(function(n){v.eBV(t);const e=F.XpG(2).$implicit,i=F.XpG(5);return v.Njj(i.deleteConnection(e,n))})),F.j41(1,"mat-icon"),F.EFF(2,"delete_forever"),F.k0s()()}if(2&t){let t,n;const e=F.XpG(7);F.Y8G("matTooltip",(null==(t=e.strings().intention)?null:t.delete)||"Delete"),F.BMQ("aria-label",(null==(n=e.strings().intention)?null:n.delete)||"Delete")}}function A(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",46),F.bIt("click",(function(n){v.eBV(t);const e=F.XpG(2).$implicit,i=F.XpG(5);return v.Njj(i.deleteConnection(e,n))})),F.j41(1,"mat-icon"),F.EFF(2,"delete_forever"),F.k0s(),F.j41(3,"span"),F.EFF(4),F.k0s()()}if(2&t){let t;const n=F.XpG(7);F.R7$(4),F.JRh((null==(t=n.strings().intention)?null:t.delete)||"Delete")}}function N(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",47),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(5);return v.Njj(e.connectionForm("edit",n))})),F.j41(1,"mat-icon"),F.EFF(2,"edit"),F.k0s()()}if(2&t){let t,n;const e=F.XpG(7);F.Y8G("matTooltip",(null==(t=e.strings().intention)?null:t.edit)||"Edit"),F.BMQ("aria-label",(null==(n=e.strings().intention)?null:n.edit)||"Edit")}}function J(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",48),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(5);return v.Njj(e.connectionForm("edit",n))})),F.j41(1,"mat-icon"),F.EFF(2,"edit"),F.k0s(),F.j41(3,"span"),F.EFF(4),F.k0s()()}if(2&t){let t;const n=F.XpG(7);F.R7$(4),F.JRh((null==(t=n.strings().intention)?null:t.edit)||"Edit")}}function B(t,n){if(1&t&&(F.nVh(0,U,3,2,"button",41)(1,A,5,1,"button",42),F.nVh(2,N,3,2,"button",43)(3,J,5,1,"button",44)),2&t){const t=F.XpG(6);F.vxM(t.isXs?0:1),F.R7$(2),F.vxM(t.isXs?2:3)}}function Y(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",47),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(5);return v.Njj(e.connectionForm("edit",n))})),F.j41(1,"mat-icon"),F.EFF(2,"mode_comment"),F.k0s()()}if(2&t){let t,n;const e=F.XpG(7);F.Y8G("matTooltip",(null==(t=e.strings().intention)?null:t.view)||"View"),F.BMQ("aria-label",(null==(n=e.strings().intention)?null:n.view)||"View")}}function q(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",48),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(5);return v.Njj(e.connectionForm("edit",n))})),F.j41(1,"mat-icon"),F.EFF(2,"mode_comment"),F.k0s(),F.j41(3,"span"),F.EFF(4),F.k0s()()}if(2&t){let t;const n=F.XpG(7);F.R7$(4),F.JRh((null==(t=n.strings().intention)?null:t.view)||"View")}}function H(t,n){if(1&t&&F.nVh(0,Y,3,2,"button",43)(1,q,5,1,"button",44),2&t){const t=F.XpG(6);F.vxM(t.isXs?0:1)}}function z(t,n){1&t&&F.nrm(0,"mat-divider")}function Q(t,n){if(1&t&&(F.j41(0,"div",30)(1,"div",31)(2,"div",32),F.EFF(3),F.k0s(),F.j41(4,"div",33),F.EFF(5),F.k0s(),F.j41(6,"div",33),F.Z7z(7,V,1,3,null,null,M),F.k0s()(),F.nVh(9,O,2,1),F.nVh(10,K,2,1),F.nVh(11,B,4,2),F.nVh(12,H,2,1),F.k0s(),F.nVh(13,z,1,0,"mat-divider")),2&t){const t=n.$implicit,e=n.$index,i=n.$count,o=F.XpG(5);F.Y8G("cdkDragData",t),F.R7$(3),F.JRh(t.name),F.R7$(2),F.Lme("",t.host,":",t.port),F.R7$(2),F.Dyx(o.getConnectionClients(t)),F.R7$(2),F.vxM(o.currentConnectionId!==t.id?9:-1),F.R7$(),F.vxM(o.currentConnectionId===t.id?10:-1),F.R7$(),F.vxM(o.readonlyConnections?-1:11),F.R7$(),F.vxM(o.readonlyConnections?12:-1),F.R7$(),F.vxM(e!==i-1?13:-1)}}function W(t,n){if(1&t){const t=F.RV6();F.j41(0,"div",29),F.bIt("cdkDropListDropped",(function(n){v.eBV(t);const e=F.XpG().$implicit,i=F.XpG(3);return v.Njj(i.dropConnection(n,e.name))})),F.Z7z(1,Q,14,9,null,null,D),F.k0s()}if(2&t){const t=F.XpG().$implicit,n=F.XpG(3);F.Y8G("cdkDropListData",t.connections)("cdkDropListEnterPredicate",n.connectionDropPredicate),F.R7$(),F.Dyx(t.connections)}}function Z(t,n){if(1&t){const t=F.RV6();F.j41(0,"div",24)(1,"div",25),F.bIt("click",(function(){const n=v.eBV(t).$implicit,e=F.XpG(3);return v.Njj(e.toggleGroup(n.name))})),F.j41(2,"mat-icon",26),F.EFF(3),F.k0s(),F.j41(4,"span"),F.EFF(5),F.k0s(),F.j41(6,"span",27),F.EFF(7),F.k0s()(),F.nVh(8,W,3,2,"div",28),F.k0s()}if(2&t){const t=n.$implicit,e=F.XpG(3);F.Y8G("cdkDragData",t),F.R7$(3),F.JRh(e.collapsedGroups.has(t.name)?"chevron_right":"expand_more"),F.R7$(2),F.JRh(e.getGroupDisplayName(t.name)),F.R7$(2),F.SpI("(",t.connections.length,")"),F.R7$(),F.vxM(e.collapsedGroups.has(t.name)?-1:8)}}function tt(t,n){if(1&t){const t=F.RV6();F.j41(0,"div",23),F.bIt("cdkDropListDropped",(function(n){v.eBV(t);const e=F.XpG(2);return v.Njj(e.dropGroup(n))})),F.Z7z(1,Z,9,5,"div",24,C),F.k0s()}if(2&t){const t=F.XpG(2);F.Y8G("cdkDropListData",t.groupedConnections)("cdkDropListEnterPredicate",t.groupDropPredicate),F.R7$(),F.Dyx(t.groupedConnections)}}function nt(t,n){if(1&t&&F.EFF(0),2&t){let t;const e=n.$implicit,i=F.XpG(4);F.SpI(" ",null==(t=i.strings().page)||null==t.overview||null==t.overview.connectedCount?null:t.overview.connectedCount(F.eq3(1,$,e.clients))," ")}}function et(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",36),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(3);return v.Njj(e.connect(n))})),F.j41(1,"mat-icon"),F.EFF(2,"power"),F.k0s()()}if(2&t){let t,n;const e=F.XpG(5);F.Y8G("matTooltip",(null==(t=e.strings().intention)?null:t.connect)||"Connect"),F.BMQ("aria-label",(null==(n=e.strings().intention)?null:n.connect)||"Connect")}}function it(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",37),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(3);return v.Njj(e.connect(n))})),F.j41(1,"mat-icon"),F.EFF(2,"power"),F.k0s(),F.j41(3,"span"),F.EFF(4),F.k0s()()}if(2&t){let t;const n=F.XpG(5);F.R7$(4),F.JRh((null==(t=n.strings().intention)?null:t.connect)||"Connect")}}function ot(t,n){if(1&t&&F.nVh(0,et,3,2,"button",34)(1,it,5,1,"button",35),2&t){const t=F.XpG(4);F.vxM(t.isXs?0:1)}}function st(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",39),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(5);return v.Njj(n.disconnect())})),F.nrm(1,"i",40),F.k0s()}if(2&t){let t,n;const e=F.XpG(5);F.Y8G("matTooltip",(null==(t=e.strings().intention)?null:t.disconnect)||"Disconnect"),F.BMQ("aria-label",(null==(n=e.strings().intention)?null:n.disconnect)||"Disconnect")}}function rt(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",37),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(5);return v.Njj(n.disconnect())})),F.nrm(1,"i",40),F.j41(2,"span"),F.EFF(3),F.k0s()()}if(2&t){let t;const n=F.XpG(5);F.R7$(3),F.JRh((null==(t=n.strings().intention)?null:t.disconnect)||"Disconnect")}}function ct(t,n){if(1&t&&F.nVh(0,st,2,2,"button",38)(1,rt,4,1,"button",35),2&t){const t=F.XpG(4);F.vxM(t.isXs?0:1)}}function lt(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",45),F.bIt("click",(function(n){v.eBV(t);const e=F.XpG(2).$implicit,i=F.XpG(3);return v.Njj(i.deleteConnection(e,n))})),F.j41(1,"mat-icon"),F.EFF(2,"delete_forever"),F.k0s()()}if(2&t){let t,n;const e=F.XpG(5);F.Y8G("matTooltip",(null==(t=e.strings().intention)?null:t.delete)||"Delete"),F.BMQ("aria-label",(null==(n=e.strings().intention)?null:n.delete)||"Delete")}}function at(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",46),F.bIt("click",(function(n){v.eBV(t);const e=F.XpG(2).$implicit,i=F.XpG(3);return v.Njj(i.deleteConnection(e,n))})),F.j41(1,"mat-icon"),F.EFF(2,"delete_forever"),F.k0s(),F.j41(3,"span"),F.EFF(4),F.k0s()()}if(2&t){let t;const n=F.XpG(5);F.R7$(4),F.JRh((null==(t=n.strings().intention)?null:t.delete)||"Delete")}}function dt(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",47),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(3);return v.Njj(e.connectionForm("edit",n))})),F.j41(1,"mat-icon"),F.EFF(2,"edit"),F.k0s()()}if(2&t){let t,n;const e=F.XpG(5);F.Y8G("matTooltip",(null==(t=e.strings().intention)?null:t.edit)||"Edit"),F.BMQ("aria-label",(null==(n=e.strings().intention)?null:n.edit)||"Edit")}}function ut(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",48),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(3);return v.Njj(e.connectionForm("edit",n))})),F.j41(1,"mat-icon"),F.EFF(2,"edit"),F.k0s(),F.j41(3,"span"),F.EFF(4),F.k0s()()}if(2&t){let t;const n=F.XpG(5);F.R7$(4),F.JRh((null==(t=n.strings().intention)?null:t.edit)||"Edit")}}function pt(t,n){if(1&t&&(F.nVh(0,lt,3,2,"button",41)(1,at,5,1,"button",42),F.nVh(2,dt,3,2,"button",43)(3,ut,5,1,"button",44)),2&t){const t=F.XpG(4);F.vxM(t.isXs?0:1),F.R7$(2),F.vxM(t.isXs?2:3)}}function gt(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",47),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(3);return v.Njj(e.connectionForm("edit",n))})),F.j41(1,"mat-icon"),F.EFF(2,"mode_comment"),F.k0s()()}if(2&t){let t,n;const e=F.XpG(5);F.Y8G("matTooltip",(null==(t=e.strings().intention)?null:t.view)||"View"),F.BMQ("aria-label",(null==(n=e.strings().intention)?null:n.view)||"View")}}function mt(t,n){if(1&t){const t=F.RV6();F.j41(0,"button",48),F.bIt("click",(function(){v.eBV(t);const n=F.XpG(2).$implicit,e=F.XpG(3);return v.Njj(e.connectionForm("edit",n))})),F.j41(1,"mat-icon"),F.EFF(2,"mode_comment"),F.k0s(),F.j41(3,"span"),F.EFF(4),F.k0s()()}if(2&t){let t;const n=F.XpG(5);F.R7$(4),F.JRh((null==(t=n.strings().intention)?null:t.view)||"View")}}function ht(t,n){if(1&t&&F.nVh(0,gt,3,2,"button",43)(1,mt,5,1,"button",44),2&t){const t=F.XpG(4);F.vxM(t.isXs?0:1)}}function bt(t,n){1&t&&F.nrm(0,"mat-divider")}function ft(t,n){if(1&t&&(F.j41(0,"div",49)(1,"div",31)(2,"div",32),F.EFF(3),F.k0s(),F.j41(4,"div",33),F.EFF(5),F.k0s(),F.j41(6,"div",33),F.Z7z(7,nt,1,3,null,null,M),F.k0s()(),F.nVh(9,ot,2,1),F.nVh(10,ct,2,1),F.nVh(11,pt,4,2),F.nVh(12,ht,2,1),F.k0s(),F.nVh(13,bt,1,0,"mat-divider")),2&t){const t=n.$implicit,e=n.$index,i=n.$count,o=F.XpG(3);F.R7$(3),F.JRh(t.name),F.R7$(2),F.Lme("",t.host,":",t.port),F.R7$(2),F.Dyx(o.getConnectionClients(t)),F.R7$(2),F.vxM(o.currentConnectionId!==t.id?9:-1),F.R7$(),F.vxM(o.currentConnectionId===t.id?10:-1),F.R7$(),F.vxM(o.readonlyConnections?-1:11),F.R7$(),F.vxM(o.readonlyConnections?12:-1),F.R7$(),F.vxM(e!==i-1?13:-1)}}function kt(t,n){if(1&t&&F.Z7z(0,ft,14,8,null,null,D),2&t){const t=F.XpG(2);F.Dyx(t.connectionsList)}}function xt(t,n){if(1&t&&(F.j41(0,"div"),F.nVh(1,tt,3,2,"div",22),F.nVh(2,kt,2,0),F.k0s()),2&t){const t=F.XpG();F.R7$(),F.vxM(t.groupModeEnabled?1:-1),F.R7$(),F.vxM(t.groupModeEnabled?-1:2)}}function vt(t,n){if(1&t){const t=F.RV6();F.j41(0,"p3xr-ng-button",14),F.bIt("click",(function(n){v.eBV(t);const e=F.XpG();return v.Njj(e.openAiSettings(n))})),F.k0s()}if(2&t){let t;const n=F.XpG();F.Y8G("label",(null==(t=n.strings().intention)?null:t.edit)||"Edit")}}function yt(t,n){1&t&&(F.j41(0,"a",51),F.EFF(1,"console.groq.com"),F.k0s())}function Rt(t,n){if(1&t){const t=F.RV6();F.j41(0,"mat-list-item",8),F.bIt("click",(function(t){return t.stopPropagation()})),F.j41(1,"div",50)(2,"div",9)(3,"div",10),F.EFF(4),F.k0s(),F.j41(5,"div",11)(6,"mat-slide-toggle",12),F.bIt("change",(function(n){v.eBV(t);const e=F.XpG();return v.Njj(e.toggleUseOwnKey(!n.checked))})),F.k0s()()(),F.j41(7,"div",19),F.EFF(8),F.nVh(9,yt,2,0,"a",51),F.k0s()()(),F.j41(10,"mat-list-item")(11,"div",9)(12,"div",10),F.EFF(13),F.k0s(),F.j41(14,"div",11),F.EFF(15),F.k0s()()()}if(2&t){let t,n,e;const i=F.XpG();F.R7$(4),F.JRh((null==(t=i.strings().label)?null:t.aiRouteViaNetwork)||"Route via network.corifeus.com"),F.R7$(2),F.Y8G("checked",!i.isUseOwnKey())("disabled",i.isAiReadonly()),F.R7$(2),F.SpI(" ",i.isUseOwnKey()?(null==(n=i.strings().label)?null:n.aiRoutingDirect)||"Queries go directly to Groq using your own API key, bypassing network.corifeus.com.":(null==(n=i.strings().label)?null:n.aiRoutingNetwork)||"AI queries are routed through network.corifeus.com. If you have your own free Groq API key, you can turn off this switch to route directly to Groq without network.corifeus.com."," "),F.R7$(),F.vxM(i.isUseOwnKey()?-1:9),F.R7$(4),F.JRh((null==(e=i.strings().label)?null:e.aiGroqApiKey)||"Groq API Key"),F.R7$(),F.xc7("font-family",i.hasGroqApiKey()?"monospace":"inherit"),F.R7$(),F.JRh(i.getGroqApiKeyDisplay())}}class jt{i18n;settings;common;socket;cmd;connectionDialog;treeSettingsDialog;aiSettingsDialog;dialog;breakpointObserver;cdr;static UNGROUPED_GROUP_KEY="";strings;connectionsList=[];groupedConnections=[];collapsedGroups;groupModeEnabled=!1;static COLLAPSED_GROUPS_KEY="p3xr-collapsed-connection-groups";static GROUP_MODE_KEY="p3xr-connection-group-mode";readonlyConnections=!1;currentConnectionId;license={};isXs=!1;electronUiStorage=null;unsubs=[];constructor(t,n,e,i,o,s,r,c,l,a,d){this.i18n=t,this.settings=n,this.common=e,this.socket=i,this.cmd=o,this.connectionDialog=s,this.treeSettingsDialog=r,this.aiSettingsDialog=c,this.dialog=l,this.breakpointObserver=a,this.cdr=d,this.strings=this.i18n.strings,this.restoreGroupingState(),this.breakpointObserver.observe("(max-width: 599px)").subscribe((t=>{this.isXs=t.matches,this.cdr.markForCheck()}))}ngOnInit(){this.refreshState();const t=this.socket.connections$.subscribe((()=>this.refreshState())),n=this.socket.configuration$.subscribe((()=>this.refreshState())),e=this.socket.licenseUpdate$.subscribe((()=>this.refreshState())),i=this.socket.stateChanged$.subscribe((()=>this.refreshState())),o=this.socket.redisStatus$.subscribe((()=>this.refreshState()));this.unsubs.push((()=>{t.unsubscribe(),n.unsubscribe(),e.unsubscribe(),i.unsubscribe(),o.unsubscribe()}))}ngOnDestroy(){this.unsubs.forEach((t=>t()))}refreshState(){const t=w.state;this.connectionsList=t.connections?.list||[],this.readonlyConnections=!0===t.cfg?.readonlyConnections,this.currentConnectionId=t.connection?.id,this.license=t.license||{},this.buildGroupedConnections(),this.cdr.detectChanges()}toggleGroupMode(){this.groupModeEnabled=!this.groupModeEnabled,this.setPersistentItem(jt.GROUP_MODE_KEY,String(this.groupModeEnabled))}toggleGroup(t){this.collapsedGroups.has(t)?this.collapsedGroups.delete(t):this.collapsedGroups.add(t),this.setPersistentItem(jt.COLLAPSED_GROUPS_KEY,JSON.stringify([...this.collapsedGroups]))}restoreGroupingState(){this.groupModeEnabled="true"===this.getPersistentItem(jt.GROUP_MODE_KEY);try{const t=this.getPersistentItem(jt.COLLAPSED_GROUPS_KEY);this.collapsedGroups=t?new Set(JSON.parse(t).map((t=>this.normalizeCollapsedGroupName(t)))):new Set}catch{this.collapsedGroups=new Set}}getPersistentItem(t){const n=this.getElectronUiStorage()[t];if("string"==typeof n)return n;try{return localStorage.getItem(t)}catch{return null}}setPersistentItem(t,n){try{localStorage.setItem(t,n)}catch{}const e=this.getElectronUiStorage();e[t]=n,this.electronUiStorage=e;try{window.parent&&window.parent!==window&&window.parent.postMessage({type:"p3x-ui-storage-set",key:t,value:n},"*")}catch{}}getElectronUiStorage(){if(null!==this.electronUiStorage)return this.electronUiStorage;let t={};try{const n=w?.electronUiStorageBootstrap;n&&"object"==typeof n&&!Array.isArray(n)&&(t=this.normalizeElectronUiStorage(n))}catch{t={}}return this.electronUiStorage=t,t}normalizeElectronUiStorage(t){return!t||"object"!=typeof t||Array.isArray(t)?{}:Object.entries(t).reduce(((t,[n,e])=>("string"==typeof e&&(t[n]=e),t)),{})}getGroupDisplayName(t){return t===jt.UNGROUPED_GROUP_KEY?this.getUngroupedLabel():t}getUngroupedLabel(){return this.strings().label?.ungrouped||"Ungrouped"}normalizeCollapsedGroupName(t){return"string"!=typeof t?"":this.isLegacyUngroupedGroupName(t)?jt.UNGROUPED_GROUP_KEY:t}isLegacyUngroupedGroupName(t){return"Ungrouped"===t||t===this.getUngroupedLabel()}buildGroupedConnections(){const t=new Map;for(const n of this.connectionsList){const e=n.group?.trim()||jt.UNGROUPED_GROUP_KEY;t.has(e)||t.set(e,[]),t.get(e).push(n)}const n=[];for(const[e,i]of t)n.push({name:e,connections:i});this.groupedConnections=n}groupDropPredicate=t=>t.data&&"connections"in t.data;connectionDropPredicate=t=>t.data&&!("connections"in t.data);async dropGroup(t){if(t.previousIndex===t.currentIndex)return;(0,g.HD)(this.groupedConnections,t.previousIndex,t.currentIndex);const n=[];for(const t of this.groupedConnections)for(const e of t.connections)n.push(e.id);try{await this.socket.request({action:"connections-reorder",payload:{ids:n}})}catch(t){this.common.generalHandleError(t),this.refreshState()}}async dropConnection(t,n){if(t.previousIndex!==t.currentIndex){(0,g.HD)(t.container.data,t.previousIndex,t.currentIndex);try{const e=t.container.data.map((t=>t.id));await this.socket.request({action:"connections-reorder",payload:{group:n||void 0,ids:e}})}catch(t){this.common.generalHandleError(t),this.refreshState()}}}connectionForm(t,n){this.connectionDialog.show({type:t,model:n,$event:void 0})}async connect(t){this.cmd.connectRequest$.next({connection:t,disableState:!0})}async disconnect(){await this.cmd.disconnect(),this.refreshState()}async deleteConnection(t,n){try{await this.common.confirm({event:n,message:this.strings().confirm?.deleteConnectionText||"Delete this connection?"}),await this.socket.request({action:"connection-delete",payload:{id:t.id}}),this.common.toast(this.strings().status?.deleted||"Deleted")}catch(t){void 0!==t&&this.common.generalHandleError(t)}}getConnectionClients(t){const n=w.state.redisConnections||{},e=[];for(const i of Object.keys(n))n[i].connection?.name===t.name&&e.push({key:i,clients:n[i].clients?.length||0});return e}getLicense(){return this.license}isLicenseEditable(){const t=this.license;return"boolean"==typeof t.licenseEditable?t.licenseEditable:"boolean"==typeof t.editableActive?t.editableActive:"boolean"!=typeof t.disabled||!t.disabled}getEffectiveLicenseTier(){return"enterprise"}getLicenseEditableText(){return this.isLicenseEditable()?this.strings().label?.licenseEditableYes||"Yes":this.strings().label?.licenseEditableNo||"No"}getLicenseStateText(){const t=this.license;return!0!==t.hasLicenseKey?this.strings().label?.licenseStateNoLicense||"No license":!0===t.valid&&"active"===t.licenseStatus?this.strings().label?.licenseStateActive||"Active":this.strings().label?.licenseStateInactive||"Inactive"}getLicenseKeyText(){const t=this.license;return!0!==t.hasLicenseKey?"-":"string"==typeof t.licenseKeyMasked&&t.licenseKeyMasked.length>0?t.licenseKeyMasked:"****"}getLicenseStatusText(){const t="string"==typeof this.license.licenseStatus?this.license.licenseStatus:"";if(!t)return"-";const n=this.strings().licenseStatusValue;return n?.[t]||t}getLicenseReasonText(){const t="string"==typeof this.license.reason?this.license.reason:"";if(!t)return"-";const n=this.strings().licenseReason;return n?.[t]||t}getLicenseMaxDevicesText(){const t=this.license,n="number"==typeof t.maxDevices?t.maxDevices:t.deviceLease?.maxDevices;return"number"!=typeof n||!Number.isFinite(n)||n<=0?"-":`${Math.floor(n)}`}getLicenseActiveDevicesText(){const t=this.license,n="number"==typeof t.activeDevices?t.activeDevices:t.deviceLease?.activeDevices;if("number"!=typeof n||!Number.isFinite(n)||n<0)return"-";const e="number"==typeof t.maxDevices?t.maxDevices:t.deviceLease?.maxDevices;return"number"==typeof e&&Number.isFinite(e)&&e>0?`${Math.floor(n)} / ${Math.floor(e)}`:`${Math.floor(n)}`}getLicenseFeaturesText(){const t=this.strings(),n=this.license,e=[];if(Array.isArray(n.features))for(const t of n.features)"string"==typeof t&&t.length>0&&e.push(t);const i=this.getEffectiveLicenseTier(),o=[];"pro"!==i&&"enterprise"!==i||(o.push(t.label?.licenseFeatureSsh||"SSH"),"enterprise"===i&&(o.push(t.label?.licenseFeatureCluster||"Cluster"),o.push(t.label?.licenseFeatureSentinel||"Sentinel")),o.push(t.label?.licenseFeatureReadonlyMode||"Readonly"),o.push(t.intention?.jsonViewEditor||"JSON Editor"),o.push(t.intention?.setBuffer||"Buffer Upload"),o.push(t.intention?.downloadBuffer||"Buffer Download"),o.push(t.label?.licenseFeatureReJSON||"ReJSON"));for(const t of o)t&&!e.includes(t)&&e.push(t);return 0===e.length?t.label?.licenseFeaturesEmpty||"-":e.join(", ")}getLicenseTierPolicyTitle(){return`${this.strings().label?.licenseTierPolicyTitle||"License Policy"}: ${this.getEffectiveLicenseTier()}`}async setLicense(t){if(this.isLicenseEditable())try{const{PromptDialogComponent:t}=await Promise.all([e.e(1016),e.e(3761),e.e(7054)]).then(e.bind(e,35346)),n=this.strings(),i=this.dialog.open(t,(0,x.createDialogPopupSettings)({panelClass:"p3xr-license-dialog",data:{title:n.confirm?.license?.title||"License",placeholder:n.confirm?.license?.placeholder||"Enter license key",initialValue:"",okButton:n.intention?.license||"Set License",cancelButton:n.intention?.cancel||"Cancel"}})),o=await new Promise((t=>{i.afterClosed().subscribe(t)}));if(void 0===o)return;const s=await this.socket.request({action:"set-license",payload:{license:o}});this.common.toast("ok"!==s.info?this.strings().error?.[s.info]||s.info:this.strings().status?.licenseSaved||"License saved")}catch(t){if(void 0!==t){const n=t?.message;this.strings().error?.[n]&&(t=new Error(this.strings().error[n])),this.common.generalHandleError(t)}}else this.common.toast(this.strings().error?.license_readonly||"License is read-only")}async showLicenseTierPolicy(t){await this.common.alert({title:this.getLicenseTierPolicyTitle(),message:this.strings().label?.licenseTierPolicyText||"",panelClass:"p3xr-license-tier-policy-dialog",autoFocus:!1})}isAiEnabled(){return!1!==w.state.cfg?.aiEnabled}async toggleAiEnabled(t){try{await this.socket.request({action:"set-groq-api-key",payload:{apiKey:w.state.cfg?.groqApiKey||"",aiEnabled:t}}),w.state.cfg.aiEnabled=t,this.cdr.markForCheck()}catch(t){this.common.generalHandleError(t)}}hasGroqApiKey(){const t=w.state.cfg?.groqApiKey||"";return t.startsWith("gsk_")&&t.length>20}isUseOwnKey(){return!0===w.state.cfg?.aiUseOwnKey&&this.hasGroqApiKey()}async toggleUseOwnKey(t){if(!t||this.hasGroqApiKey())try{await this.socket.request({action:"set-groq-api-key",payload:{apiKey:w.state.cfg?.groqApiKey||"",aiEnabled:!1!==w.state.cfg?.aiEnabled,aiUseOwnKey:t}}),w.state.cfg.aiUseOwnKey=t,this.cdr.markForCheck()}catch(t){this.common.generalHandleError(t)}}isAiReadonly(){return this.readonlyConnections||!0===w.state.cfg?.groqApiKeyReadonly}isGroqApiKeyReadonly(){return!0===w.state.cfg?.groqApiKeyReadonly}async openAiSettings(t){await this.aiSettingsDialog.show(),this.cdr.markForCheck()}getGroqApiKeyDisplay(){const t=w.state.cfg?.groqApiKey||"";return t?t.length<=8?"****":`${t.slice(0,4)}...${t.slice(-4)}`:this.strings().label?.aiGroqApiKeyNotSet||"Not set"}openTreeSettings(t){this.treeSettingsDialog.show({$event:t})}static ɵfac=function(t){return new(t||jt)(F.rXU(m.W),F.rXU(h.h),F.rXU(b.h),F.rXU(f.L),F.rXU(k.y),F.rXU(y),F.rXU(R.i),F.rXU(j),F.rXU(u.bZ),F.rXU(p.Q),F.rXU(i.gRc))};static ɵcmp=F.VBU({type:jt,selectors:[["p3xr-ng-settings"]],decls:102,vars:36,consts:[["accordionKey","settings",3,"title"],["actions",""],[3,"click","label","mdIcon"],["mdIcon","add_box",3,"label"],["content",""],[2,"padding","16px"],["accordionKey","ai-settings",3,"title"],["mdIcon","edit",3,"label"],[3,"click"],[1,"p3xr-settings-pair-row"],[1,"p3xr-settings-row-label"],[1,"p3xr-settings-row-value"],[3,"change","checked","disabled"],["accordionKey","tree-settings",3,"title"],["mdIcon","edit",3,"click","label"],[1,"p3xr-tree-settings-list"],[2,"display","flex","width","100%"],[1,"p3xr-settings-label",2,"flex","1"],[1,"p3xr-settings-value"],[1,"p3xr-settings-hint"],[2,"height","60px"],["mdIcon","add_box",3,"click","label"],["cdkDropList","",1,"p3xr-group-drop-list",3,"cdkDropListData","cdkDropListEnterPredicate"],["cdkDropList","",1,"p3xr-group-drop-list",3,"cdkDropListDropped","cdkDropListData","cdkDropListEnterPredicate"],["cdkDrag","",1,"p3xr-connection-group-block",3,"cdkDragData"],["cdkDragHandle","",1,"p3xr-connection-group-header",3,"click"],[2,"font-size","18px","width","18px","height","18px"],[2,"opacity","0.5","font-weight","400","font-size","12px"],["cdkDropList","",3,"cdkDropListData","cdkDropListEnterPredicate"],["cdkDropList","",3,"cdkDropListDropped","cdkDropListData","cdkDropListEnterPredicate"],["cdkDrag","",1,"p3xr-connection-item",3,"cdkDragData"],[1,"p3xr-connection-info"],[2,"font-weight","700"],[2,"font-size","13px","opacity","0.7"],["mat-mini-fab","",1,"btn-accent",3,"matTooltip"],["mat-flat-button","",1,"btn-accent"],["mat-mini-fab","",1,"btn-accent",3,"click","matTooltip"],["mat-flat-button","",1,"btn-accent",3,"click"],["mat-mini-fab","","matTooltipPosition","above",1,"btn-accent",3,"matTooltip"],["mat-mini-fab","","matTooltipPosition","above",1,"btn-accent",3,"click","matTooltip"],[1,"fa","fa-power-off"],["mat-mini-fab","",1,"btn-warn",3,"matTooltip"],["mat-flat-button","",1,"btn-warn"],["mat-mini-fab","",1,"btn-primary",3,"matTooltip"],["mat-flat-button","",1,"btn-primary"],["mat-mini-fab","",1,"btn-warn",3,"click","matTooltip"],["mat-flat-button","",1,"btn-warn",3,"click"],["mat-mini-fab","",1,"btn-primary",3,"click","matTooltip"],["mat-flat-button","",1,"btn-primary",3,"click"],[1,"p3xr-connection-item"],[2,"width","100%"],["href","https://console.groq.com","target","_blank",2,"color","inherit","text-decoration","underline"]],template:function(t,n){if(1&t&&(F.j41(0,"p3xr-ng-accordion",0)(1,"div",1)(2,"p3xr-ng-button",2),F.bIt("click",(function(){return n.toggleGroupMode()})),F.k0s(),F.nVh(3,X,1,1,"p3xr-ng-button",3),F.k0s(),F.j41(4,"div",4),F.nVh(5,I,2,1,"div",5),F.nVh(6,xt,3,2,"div"),F.k0s()(),F.nrm(7,"br"),F.j41(8,"p3xr-ng-accordion",6)(9,"div",1),F.nVh(10,vt,1,1,"p3xr-ng-button",7),F.k0s(),F.j41(11,"div",4)(12,"mat-list")(13,"mat-list-item",8),F.bIt("click",(function(t){return t.stopPropagation()})),F.j41(14,"div",9)(15,"div",10),F.EFF(16),F.k0s(),F.j41(17,"div",11)(18,"mat-slide-toggle",12),F.bIt("change",(function(t){return n.toggleAiEnabled(t.checked)})),F.k0s()()()(),F.nVh(19,Rt,16,9),F.k0s()()(),F.nrm(20,"br"),F.j41(21,"p3xr-ng-accordion",13)(22,"div",1)(23,"p3xr-ng-button",14),F.bIt("click",(function(t){return n.openTreeSettings(t)})),F.k0s()(),F.j41(24,"div",4)(25,"mat-list",15)(26,"mat-list-item",8),F.bIt("click",(function(t){return n.openTreeSettings(t)})),F.j41(27,"div",16)(28,"span",17),F.EFF(29),F.k0s(),F.j41(30,"span"),F.EFF(31),F.k0s()()(),F.nrm(32,"mat-divider"),F.j41(33,"mat-list-item",8),F.bIt("click",(function(t){return n.openTreeSettings(t)})),F.j41(34,"div")(35,"div",16)(36,"span",17),F.EFF(37),F.k0s(),F.j41(38,"span",18),F.EFF(39),F.k0s()(),F.j41(40,"div",19),F.EFF(41),F.k0s()()(),F.nrm(42,"mat-divider"),F.j41(43,"mat-list-item",8),F.bIt("click",(function(t){return n.openTreeSettings(t)})),F.j41(44,"div")(45,"div",16)(46,"span",17),F.EFF(47),F.k0s(),F.j41(48,"span",18),F.EFF(49),F.k0s()(),F.j41(50,"div",19),F.EFF(51),F.k0s()()(),F.nrm(52,"mat-divider"),F.j41(53,"mat-list-item",8),F.bIt("click",(function(t){return n.openTreeSettings(t)})),F.j41(54,"div")(55,"div",16)(56,"span",17),F.EFF(57),F.k0s(),F.j41(58,"span",18),F.EFF(59),F.k0s()(),F.j41(60,"div",19),F.EFF(61),F.k0s()()(),F.nrm(62,"mat-divider"),F.j41(63,"mat-list-item",8),F.bIt("click",(function(t){return n.openTreeSettings(t)})),F.j41(64,"div")(65,"div",16)(66,"span",17),F.EFF(67),F.k0s(),F.j41(68,"span",18),F.EFF(69),F.k0s()(),F.j41(70,"div",19),F.EFF(71),F.k0s()()(),F.nrm(72,"mat-divider"),F.j41(73,"mat-list-item",8),F.bIt("click",(function(t){return n.openTreeSettings(t)})),F.j41(74,"div",16)(75,"span",17),F.EFF(76),F.k0s(),F.j41(77,"span"),F.EFF(78),F.k0s()()(),F.nrm(79,"mat-divider"),F.j41(80,"mat-list-item",8),F.bIt("click",(function(t){return n.openTreeSettings(t)})),F.j41(81,"div",16)(82,"span",17),F.EFF(83),F.k0s(),F.j41(84,"span"),F.EFF(85),F.k0s()()(),F.nrm(86,"mat-divider"),F.j41(87,"mat-list-item",8),F.bIt("click",(function(t){return n.openTreeSettings(t)})),F.j41(88,"div",16)(89,"span",17),F.EFF(90),F.k0s(),F.j41(91,"span"),F.EFF(92),F.k0s()()(),F.nrm(93,"mat-divider"),F.j41(94,"mat-list-item",8),F.bIt("click",(function(t){return n.openTreeSettings(t)})),F.j41(95,"div",16),F.EFF(96),F.k0s()(),F.nrm(97,"mat-divider"),F.j41(98,"mat-list-item",8),F.bIt("click",(function(t){return n.openTreeSettings(t)})),F.j41(99,"div",16),F.EFF(100),F.k0s()()()()(),F.nrm(101,"div",20)),2&t){let t,e,i,o,s,r,c,l,a,d,u,p,g,m,h,b,f,k,x,v,y,R,j,G;F.Y8G("title",(null==(t=n.strings().label)?null:t.connections)||"Connections"),F.R7$(2),F.Y8G("label",(null==(e=n.strings().label)?null:e.grouped)||"Grouped")("mdIcon",n.groupModeEnabled?"check_box":"check_box_outline_blank"),F.R7$(),F.vxM(n.readonlyConnections?-1:3),F.R7$(2),F.vxM(0===n.connectionsList.length?5:-1),F.R7$(),F.vxM(n.connectionsList.length>0?6:-1),F.R7$(2),F.Y8G("title",(null==(i=n.strings().label)?null:i.aiSettings)||"AI Settings"),F.R7$(2),F.vxM(n.readonlyConnections||n.isGroqApiKeyReadonly()?-1:10),F.R7$(6),F.JRh((null==(o=n.strings().label)?null:o.aiEnabled)||"AI Enabled"),F.R7$(2),F.Y8G("checked",n.isAiEnabled())("disabled",n.isAiReadonly()),F.R7$(),F.vxM(n.isAiEnabled()&&n.hasGroqApiKey()?19:-1),F.R7$(2),F.Y8G("title",(null==(s=n.strings().form)||null==s.treeSettings||null==s.treeSettings.label?null:s.treeSettings.label.formName)||"Redis Settings"),F.R7$(2),F.Y8G("label",(null==(r=n.strings().intention)?null:r.edit)||"Edit"),F.R7$(6),F.JRh(null==(c=n.strings().form)||null==c.treeSettings||null==c.treeSettings.field?null:c.treeSettings.field.treeSeparator),F.R7$(2),F.JRh(n.settings.redisTreeDivider()||(null==(l=n.strings().label)?null:l.treeSeparatorEmptyNote)),F.R7$(6),F.JRh(null==(a=n.strings().form)||null==a.treeSettings||null==a.treeSettings.field?null:a.treeSettings.field.page),F.R7$(2),F.JRh(n.settings.pageCount()),F.R7$(2),F.JRh(null==(d=n.strings().form)||null==d.treeSettings||null==d.treeSettings.error?null:d.treeSettings.error.page),F.R7$(6),F.JRh(null==(u=n.strings().form)||null==u.treeSettings||null==u.treeSettings.field?null:u.treeSettings.field.keyPageCount),F.R7$(2),F.JRh(n.settings.keyPageCount()),F.R7$(2),F.JRh(null==(p=n.strings().form)||null==p.treeSettings||null==p.treeSettings.error?null:p.treeSettings.error.keyPageCount),F.R7$(6),F.JRh(null==(g=n.strings().form)||null==g.treeSettings?null:g.treeSettings.maxValueDisplay),F.R7$(2),F.JRh(n.settings.maxValueDisplay()),F.R7$(2),F.JRh(null==(m=n.strings().form)||null==m.treeSettings?null:m.treeSettings.maxValueDisplayInfo),F.R7$(6),F.JRh(null==(h=n.strings().form)||null==h.treeSettings?null:h.treeSettings.maxKeys),F.R7$(2),F.JRh(n.settings.maxKeys()),F.R7$(2),F.JRh(null==(b=n.strings().form)||null==b.treeSettings?null:b.treeSettings.maxKeysInfo),F.R7$(5),F.JRh(null==(f=n.strings().form)||null==f.treeSettings||null==f.treeSettings.field?null:f.treeSettings.field.keysSort),F.R7$(2),F.JRh(n.settings.keysSort()?null==(k=n.strings().label)||null==k.keysSort?null:k.keysSort.on:null==(k=n.strings().label)||null==k.keysSort?null:k.keysSort.off),F.R7$(5),F.JRh(null==(x=n.strings().form)||null==x.treeSettings||null==x.treeSettings.field?null:x.treeSettings.field.searchMode),F.R7$(2),F.JRh(n.settings.searchClientSide()?null==(v=n.strings().form)||null==v.treeSettings||null==v.treeSettings.label?null:v.treeSettings.label.searchModeClient:null==(v=n.strings().form)||null==v.treeSettings||null==v.treeSettings.label?null:v.treeSettings.label.searchModeServer),F.R7$(5),F.JRh(null==(y=n.strings().form)||null==y.treeSettings||null==y.treeSettings.field?null:y.treeSettings.field.searchModeStartsWith),F.R7$(2),F.JRh(n.settings.searchStartsWith()?null==(R=n.strings().form)||null==R.treeSettings||null==R.treeSettings.label?null:R.treeSettings.label.searchModeStartsWith:null==(R=n.strings().form)||null==R.treeSettings||null==R.treeSettings.label?null:R.treeSettings.label.searchModeIncludes),F.R7$(4),F.JRh(2===n.settings.jsonFormat()?null==(j=n.strings().form)||null==j.treeSettings||null==j.treeSettings.label?null:j.treeSettings.label.jsonFormatTwoSpace:null==(j=n.strings().form)||null==j.treeSettings||null==j.treeSettings.label?null:j.treeSettings.label.jsonFormatFourSpace),F.R7$(4),F.JRh(n.settings.animation()?null==(G=n.strings().form)||null==G.treeSettings||null==G.treeSettings.label?null:G.treeSettings.label.animation:null==(G=n.strings().form)||null==G.treeSettings||null==G.treeSettings.label?null:G.treeSettings.label.noAnimation)}},dependencies:[o.s5,s.Hl,s.$z,s.$0,r.m_,r.An,c.Fg,c.jt,c.YE,d.q,l.mV,l.sG,a.uc,E.oV,d.w,g.ad,g.O7,g.T1,g.Fb,G.B,S.f],styles:["[_nghost-%COMP%] { display: block; color: var(--mat-app-text-color, inherit); }\n .p3xr-settings-hint[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mat-app-text-color, rgba(0, 0, 0, 0.54));\n opacity: 0.7;\n }\n \n .hide-xs[_ngcontent-%COMP%] { display: inline; }\n .show-xs-tooltip[_ngcontent-%COMP%] { display: none; }\n \n @media (max-width: 599px) {\n .hide-xs[_ngcontent-%COMP%] { display: none !important; }\n \n .p3xr-connection-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n min-width: 40px !important;\n width: 40px !important;\n height: 40px !important;\n padding: 0 !important;\n margin: 2px !important;\n display: inline-flex !important;\n align-items: center !important;\n justify-content: center !important;\n }\n .p3xr-connection-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], \n .p3xr-connection-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n margin: 0 !important;\n }\n }\n \n .p3xr-connection-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 8px 8px 8px 16px;\n min-height: 56px;\n box-sizing: border-box;\n }\n .p3xr-connection-info[_ngcontent-%COMP%] { flex: 1; min-width: 0; overflow: hidden; }\n .p3xr-connection-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] { flex-shrink: 0; }\n \n .p3xr-connection-item.cdk-drag-preview[_ngcontent-%COMP%] {\n box-sizing: border-box;\n border-radius: 4px;\n box-shadow: 0 5px 5px -3px rgba(0,0,0,0.2), 0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12);\n background: var(--mat-app-background-color, #fff);\n }\n .p3xr-connection-item.cdk-drag-placeholder[_ngcontent-%COMP%] { opacity: 0.3; }\n .cdk-drop-list-dragging[_ngcontent-%COMP%] .p3xr-connection-item[_ngcontent-%COMP%]:not(.cdk-drag-placeholder) {\n transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\n }\n .p3xr-connection-group-block.cdk-drag-preview[_ngcontent-%COMP%] {\n box-sizing: border-box;\n border-radius: 4px;\n box-shadow: 0 5px 5px -3px rgba(0,0,0,0.2), 0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12);\n background: var(--mat-app-background-color, #fff);\n }\n .p3xr-connection-group-block.cdk-drag-placeholder[_ngcontent-%COMP%] { opacity: 0.3; }\n .p3xr-group-drop-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .p3xr-connection-group-block[_ngcontent-%COMP%]:not(.cdk-drag-placeholder) {\n transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\n }\n .p3xr-connection-group-header[cdkDragHandle][_ngcontent-%COMP%] { cursor: grab; }\n \n .p3xr-tree-settings-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] { cursor: pointer; }\n .p3xr-tree-settings-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:hover { background-color: var(--p3xr-hover-bg); }\n \n .p3xr-tree-settings-list .mdc-list-item__primary-text {\n width: 100%;\n }\n .p3xr-settings-label {\n font-weight: 500;\n }\n .p3xr-settings-value {\n font-weight: 400;\n opacity: 0.8;\n }"],changeDetection:0})}}}]);