p3x-redis-ui-material
Version:
💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity
15 lines • 101 kB
JavaScript
import{a as Jt}from"./chunk-IZOMIYRD.js";import{a as ii}from"./chunk-BBINDSII.js";import{a as ni}from"./chunk-5MKOZDXN.js";import{a as Qe}from"./chunk-IKY2Z6UX.js";import{a as Ge,b as He,c as ze}from"./chunk-G3XOKGOC.js";import{a as Ne,b as Ue}from"./chunk-2IWVZCK2.js";import"./chunk-NBRXTOBF.js";import"./chunk-HWCHBMC4.js";import"./chunk-CVKYB7DC.js";import{b as Je}from"./chunk-UYYXUKSC.js";import"./chunk-DET2MY23.js";import{a as ti,b as ei}from"./chunk-X6LMH7OB.js";import"./chunk-IXQONZ5Z.js";import{b as We,c as Ze}from"./chunk-VQTCYUQY.js";import{e as Xe}from"./chunk-TKRAWHQA.js";import{a as Be,b as qe}from"./chunk-W32HPWBA.js";import{v as Ae}from"./chunk-5LJPHUK2.js";import{a as st}from"./chunk-YA4NX3C4.js";import{b as Le,c as Ve,e as Ye}from"./chunk-53CQV6LZ.js";import{b as $e,c as Ke}from"./chunk-4GIODJCK.js";import{c as rt}from"./chunk-PFG3GPGC.js";import{$a as Y,$b as J,Ac as Zt,Ba as Bt,Bb as p,Bc as N,Ca as ve,Cb as g,D as me,Da as F,Db as V,Eb as qt,Ec as Ee,Fa as Se,Hc as Pe,Ia as Pt,Ja as be,Jc as ke,Ka as kt,Kb as It,Lb as Wt,N as Kt,Nd as Oe,O as ue,Od as Fe,P as dt,Pd as Me,Q as ge,Rd as je,U as A,V as fe,Vc as Ie,Wa as T,X as nt,Xa as f,Y as ot,Ya as C,Z as y,Zb as ht,_c as Yt,a as it,ab as X,ac as we,ba as v,bb as x,c as $t,ca as S,cb as l,d as E,db as a,dd as Te,e as de,eb as D,fa as Dt,fd as Xt,g as _e,ga as yt,id as Re,ja as L,jb as b,ka as _t,lb as m,n as pe,na as jt,nb as c,pa as Ce,ra as Et,uc as De,v as he,vc as ye,w as wt,wc as Tt,xa as _,yc as mt,za as xe,zb as pt}from"./chunk-MHKTEXY5.js";import"./chunk-ENGD2CVB.js";import{a as Ht,b as zt,h as P}from"./chunk-O7S4L63H.js";var oi=(()=>{class o{dialog;constructor(t){this.dialog=t}show(t){return P(this,null,function*(){let{AclUserDialogComponent:e}=yield import("./chunk-HYB2NRV7.js"),i=this.dialog.open(e,st({data:t,width:"600px"}));return new Promise(r=>{i.afterClosed().subscribe(s=>r(s))})})}static \u0275fac=function(e){return new(e||o)(ot(rt))};static \u0275prov=A({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function ee(o){let n=o.cloneNode(!0),t=n.querySelectorAll("[id]"),e=o.nodeName.toLowerCase();n.removeAttribute("id");for(let i=0;i<t.length;i++)t[i].removeAttribute("id");return e==="canvas"?li(o,n):(e==="input"||e==="select"||e==="textarea")&&si(o,n),ri("canvas",o,n,li),ri("input, textarea, select",o,n,si),n}function ri(o,n,t,e){let i=n.querySelectorAll(o);if(i.length){let r=t.querySelectorAll(o);for(let s=0;s<i.length;s++)e(i[s],r[s])}}var Ui=0;function si(o,n){n.type!=="file"&&(n.value=o.value),n.type==="radio"&&n.name&&(n.name=`mat-clone-${n.name}-${Ui++}`)}function li(o,n){let t=n.getContext("2d");if(t)try{t.drawImage(o,0,0)}catch(e){}}function ae(o){let n=o.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function ie(o,n,t){let{top:e,bottom:i,left:r,right:s}=o;return t>=e&&t<=i&&n>=r&&n<=s}function Gi(o,n){let t=n.left<o.left,e=n.left+n.width>o.right,i=n.top<o.top,r=n.top+n.height>o.bottom;return t||e||i||r}function ft(o,n,t){o.top+=n,o.bottom=o.top+o.height,o.left+=t,o.right=o.left+o.width}function ai(o,n,t,e){let{top:i,right:r,bottom:s,left:d,width:h,height:u}=o,w=h*n,k=u*n;return e>i-k&&e<s+k&&t>d-w&&t<r+w}var Ot=class{_document;positions=new Map;constructor(n){this._document=n}clear(){this.positions.clear()}cache(n){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),n.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:ae(t)})})}handleScroll(n){let t=mt(n),e=this.positions.get(t);if(!e)return null;let i=e.scrollPosition,r,s;if(t===this._document){let u=this.getViewportScrollPosition();r=u.top,s=u.left}else r=t.scrollTop,s=t.scrollLeft;let d=i.top-r,h=i.left-s;return this.positions.forEach((u,w)=>{u.clientRect&&t!==w&&t.contains(w)&&ft(u.clientRect,d,h)}),i.top=r,i.left=s,{top:d,left:h}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function vi(o,n){let t=o.rootNodes;if(t.length===1&&t[0].nodeType===n.ELEMENT_NODE)return t[0];let e=n.createElement("div");return t.forEach(i=>e.appendChild(i)),e}function ce(o,n,t){for(let e in n)if(n.hasOwnProperty(e)){let i=n[e];i?o.setProperty(e,i,t?.has(e)?"important":""):o.removeProperty(e)}return o}function lt(o,n){let t=n?"":"none";ce(o.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function ci(o,n,t){ce(o.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},t)}function Ft(o,n){return n&&n!="none"?o+" "+n:o}function di(o,n){o.style.width=`${n.width}px`,o.style.height=`${n.height}px`,o.style.transform=Ct(n.left,n.top)}function Ct(o,n){return`translate3d(${Math.round(o)}px, ${Math.round(n)}px, 0)`}var ut={capture:!0},Qt={passive:!1,capture:!0},Hi=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275cmp=Pt({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(e,i){},styles:[`@layer cdk-resets {
.cdk-drag-preview {
background: none;
border: none;
padding: 0;
color: inherit;
inset: auto;
}
}
.cdk-drag-placeholder *,
.cdk-drag-preview * {
pointer-events: none !important;
}
`],encapsulation:2,changeDetection:0})}return o})(),Lt=(()=>{class o{_ngZone=y(_t);_document=y(yt);_styleLoader=y(Ee);_renderer=y(Bt).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new E;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=jt([]);_globalListeners;_draggingPredicate=t=>t.isDragging();_domNodesToDirectives=null;pointerMove=new E;pointerUp=new E;constructor(){}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,Qt)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(t,e){if(!(this._activeDragInstances().indexOf(t)>-1)&&(this._styleLoader.load(Hi),this._activeDragInstances.update(i=>[...i,t]),this._activeDragInstances().length===1)){let i=e.type.startsWith("touch"),r=d=>this.pointerUp.next(d),s=[["scroll",d=>this._scroll.next(d),ut],["selectstart",this._preventDefaultWhileDragging,Qt]];i?s.push(["touchend",r,ut],["touchcancel",r,ut]):s.push(["mouseup",r,ut]),i||s.push(["mousemove",d=>this.pointerMove.next(d),Qt]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=s.map(([d,h,u])=>this._renderer.listen(this._document,d,h,u))})}}stopDragging(t){this._activeDragInstances.update(e=>{let i=e.indexOf(t);return i>-1?(e.splice(i,1),[...e]):e}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances().indexOf(t)>-1}scrolled(t){let e=[this._scroll];return t&&t!==this._document&&e.push(new $t(i=>this._ngZone.runOutsideAngular(()=>{let r=this._renderer.listen(t,"scroll",s=>{this._activeDragInstances().length&&i.next(s)},ut);return()=>{r()}}))),wt(...e)}registerDirectiveNode(t,e){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(t,e)}removeDirectiveNode(t){this._domNodesToDirectives?.delete(t)}getDragDirectiveForNode(t){return this._domNodesToDirectives?.get(t)||null}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=t=>{this._activeDragInstances().length>0&&t.preventDefault()};_persistentTouchmoveListener=t=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))};_clearGlobalListeners(){this._globalListeners?.forEach(t=>t()),this._globalListeners=void 0}static \u0275fac=function(e){return new(e||o)};static \u0275prov=A({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function _i(o){let n=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*n}function zi(o){let n=getComputedStyle(o),t=te(n,"transition-property"),e=t.find(d=>d==="transform"||d==="all");if(!e)return 0;let i=t.indexOf(e),r=te(n,"transition-duration"),s=te(n,"transition-delay");return _i(r[i])+_i(s[i])}function te(o,n){return o.getPropertyValue(n).split(",").map(e=>e.trim())}var $i=new Set(["position"]),ne=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView=null;_preview;get element(){return this._preview}constructor(n,t,e,i,r,s,d,h,u,w){this._document=n,this._rootElement=t,this._direction=e,this._initialDomRect=i,this._previewTemplate=r,this._previewClass=s,this._pickupPositionOnPage=d,this._initialTransform=h,this._zIndex=u,this._renderer=w}attach(n){this._preview=this._createPreview(),n.appendChild(this._preview),pi(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(n){this._preview.style.transform=n}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(n){this._preview.classList.add(n)}getTransitionDuration(){return zi(this._preview)}addEventListener(n,t){return this._renderer.listen(this._preview,n,t)}_createPreview(){let n=this._previewTemplate,t=this._previewClass,e=n?n.template:null,i;if(e&&n){let r=n.matchSize?this._initialDomRect:null,s=n.viewContainer.createEmbeddedView(e,n.context);s.detectChanges(),i=vi(s,this._document),this._previewEmbeddedView=s,n.matchSize?di(i,r):i.style.transform=Ct(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else i=ee(this._rootElement),di(i,this._initialDomRect),this._initialTransform&&(i.style.transform=this._initialTransform);return ce(i.style,{"pointer-events":"none",margin:pi(i)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},$i),lt(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("popover","manual"),i.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(r=>i.classList.add(r)):i.classList.add(t)),i}};function pi(o){return"showPopover"in o}var Ki={passive:!0},hi={passive:!1},ji={passive:!1,capture:!0},Bi=800,mi="cdk-drag-placeholder",ui=new Set(["position"]);function Si(o,n,t={dragStartThreshold:5,pointerDirectionChangeThreshold:5}){let e=o.get(ve,null,{optional:!0})||o.get(Bt).createRenderer(null,null);return new oe(n,t,o.get(yt),o.get(_t),o.get(Xt),o.get(Lt),e)}var oe=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview=null;_previewContainer;_placeholderRef=null;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=jt(!1);_hasMoved=!1;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new E;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement=null;_rootElementTapHighlight;_pointerMoveSubscription=it.EMPTY;_pointerUpSubscription=it.EMPTY;_scrollSubscription=it.EMPTY;_resizeSubscription=it.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef=null;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(n){n!==this._disabled&&(this._disabled=n,this._toggleNativeDragInteractions(),this._handles.forEach(t=>lt(t,n)))}_disabled=!1;beforeStarted=new E;started=new E;released=new E;ended=new E;entered=new E;exited=new E;dropped=new E;moved=this._moveEvents;data;constrainPosition;constructor(n,t,e,i,r,s,d){this._config=t,this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=s,this._renderer=d,this.withRootElement(n).withParent(t.parentDragRef||null),this._parentPositions=new Ot(e),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(e=>N(e)),this._handles.forEach(e=>lt(e,this.disabled)),this._toggleNativeDragInteractions();let t=new Set;return this._disabledHandles.forEach(e=>{this._handles.indexOf(e)>-1&&t.add(e)}),this._disabledHandles=t,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){let t=N(n);if(t!==this._rootElement){this._removeRootElementListeners();let e=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[e.listen(t,"mousedown",this._pointerDown,hi),e.listen(t,"touchstart",this._pointerDown,Ki),e.listen(t,"dragstart",this._nativeDragStart,hi)]),this._initialTransform=void 0,this._rootElement=t}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?N(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&Gi(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let n=this._boundaryElement.getBoundingClientRect(),t=this._rootElement.getBoundingClientRect(),e=0,i=0;t.left<n.left?e=n.left-t.left:t.right>n.right&&(e=n.right-t.right),t.top<n.top?i=n.top-t.top:t.bottom>n.bottom&&(i=n.bottom-t.bottom);let r=this._activeTransform.x,s=this._activeTransform.y,d=r+e,h=s+i;this._rootElement.style.transform=Ct(d,h),this._activeTransform={x:d,y:h},this._passiveTransform={x:d,y:h}}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),lt(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),lt(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){let n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){let n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=n=>{if(this.beforeStarted.next(),this._handles.length){let t=this._getTargetHandle(n);t&&!this._disabledHandles.has(t)&&!this.disabled&&this._initializeDragSequence(t,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)};_pointerMove=n=>{let t=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging()){let i=Math.abs(t.x-this._pickupPositionOnPage.x),r=Math.abs(t.y-this._pickupPositionOnPage.y);if(i+r>=this._config.dragStartThreshold){let d=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),h=this._dropContainer;if(!d){this._endDragSequence(n);return}(!h||!h.isDragging()&&!h.isReceiving())&&(n.cancelable&&n.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(n)))}return}n.cancelable&&n.preventDefault();let e=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(e),this._dropContainer)this._updateActiveDropContainer(e,t);else{let i=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,r=this._activeTransform;r.x=e.x-i.x+this._passiveTransform.x,r.y=e.y-i.y+this._passiveTransform.y,this._applyRootElementTransform(r.x,r.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:e,event:n,distance:this._getDragDistance(e),delta:this._pointerDirectionDelta})})};_pointerUp=n=>{this._endDragSequence(n)};_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:n}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let t=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){gt(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let t=this._getShadowRoot(),e=this._dropContainer;if(t&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(t,"selectstart",qi,ji)}),e){let i=this._rootElement,r=i.parentNode,s=this._placeholder=this._createPlaceholderElement(),d=this._marker=this._marker||this._document.createComment("");r.insertBefore(d,i),this._initialTransform=i.style.transform||"",this._preview=new ne(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(r,t)),ci(i,!1,ui),this._document.body.appendChild(r.replaceChild(s,i)),this.started.next({source:this,event:n}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:n}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(n,t){this._parentDragRef&&t.stopPropagation();let e=this.isDragging(),i=gt(t),r=!i&&t.button!==0,s=this._rootElement,d=mt(t),h=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+Bi>Date.now(),u=i?ye(t):De(t);if(d&&d.draggable&&t.type==="mousedown"&&t.preventDefault(),e||r||h||u)return;if(this._handles.length){let O=s.style;this._rootElementTapHighlight=O.webkitTapHighlightColor||"",O.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(O=>this._updateOnScroll(O)),this._boundaryElement&&(this._boundaryRect=ae(this._boundaryElement));let w=this._previewTemplate;this._pickupPositionInElement=w&&w.template&&!w.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,n,t);let k=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:k.x,y:k.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(n){ci(this._rootElement,!0,ui),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let t=this._dropContainer,e=t.getItemIndex(this),i=this._getPointerPositionOnPage(n),r=this._getDragDistance(i),s=t._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:r,dropPoint:i,event:n}),this.dropped.next({item:this,currentIndex:e,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:r,dropPoint:i,event:n}),t.drop(this,e,this._initialIndex,this._initialContainer,s,r,i,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:t},{x:e,y:i}){let r=this._initialContainer._getSiblingContainerFromPosition(this,n,t);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,t)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{let s=this._dropContainer.getItemIndex(this),d=this._dropContainer.getItemAtIndex(s+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(r,this._dropContainer,d),this._dropContainer=r,this._dropContainer.enter(this,n,t,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(e,i),this._dropContainer._sortItem(this,n,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(n,t):this._applyPreviewTransform(n-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let n=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);let t=this._preview.getTransitionDuration();return t===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(e=>{let i=d=>{(!d||this._preview&&mt(d)===this._preview.element&&d.propertyName==="transform")&&(s(),e(),clearTimeout(r))},r=setTimeout(i,t*1.5),s=this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){let n=this._placeholderTemplate,t=n?n.template:null,e;return t?(this._placeholderRef=n.viewContainer.createEmbeddedView(t,n.context),this._placeholderRef.detectChanges(),e=vi(this._placeholderRef,this._document)):e=ee(this._rootElement),e.style.pointerEvents="none",e.classList.add(mi),e}_getPointerPositionInElement(n,t,e){let i=t===this._rootElement?null:t,r=i?i.getBoundingClientRect():n,s=gt(e)?e.targetTouches[0]:e,d=this._getViewportScrollPosition(),h=s.pageX-r.left-d.left,u=s.pageY-r.top-d.top;return{x:r.left-n.left+h,y:r.top-n.top+u}}_getPointerPositionOnPage(n){let t=this._getViewportScrollPosition(),e=gt(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,i=e.pageX-t.left,r=e.pageY-t.top;if(this._ownerSVGElement){let s=this._ownerSVGElement.getScreenCTM();if(s){let d=this._ownerSVGElement.createSVGPoint();return d.x=i,d.y=r,d.matrixTransform(s.inverse())}}return{x:i,y:r}}_getConstrainedPointerPosition(n){let t=this._dropContainer?this._dropContainer.lockAxis:null,{x:e,y:i}=this.constrainPosition?this.constrainPosition(n,this,this._initialDomRect,this._pickupPositionInElement):n;if(this.lockAxis==="x"||t==="x"?i=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||t==="y")&&(e=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:r,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,d=this._boundaryRect,{width:h,height:u}=this._getPreviewRect(),w=d.top+s,k=d.bottom-(u-s),O=d.left+r,U=d.right-(h-r);e=gi(e,O,U),i=gi(i,w,k)}return{x:e,y:i}}_updatePointerDirectionDelta(n){let{x:t,y:e}=n,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,s=Math.abs(t-r.x),d=Math.abs(e-r.y);return s>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),d>this._config.pointerDirectionChangeThreshold&&(i.y=e>r.y?1:-1,r.y=e),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,lt(this._rootElement,n))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(n=>n()),this._rootElementCleanups=void 0}_applyRootElementTransform(n,t){let e=1/this.scale,i=Ct(n*e,t*e),r=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=r.transform&&r.transform!="none"?r.transform:""),r.transform=Ft(i,this._initialTransform)}_applyPreviewTransform(n,t){let e=this._previewTemplate?.template?void 0:this._initialTransform,i=Ct(n,t);this._preview.setTransform(Ft(i,e))}_getDragDistance(n){let t=this._pickupPositionOnPage;return t?{x:n.x-t.x,y:n.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:t}=this._passiveTransform;if(n===0&&t===0||this.isDragging()||!this._boundaryElement)return;let e=this._rootElement.getBoundingClientRect(),i=this._boundaryElement.getBoundingClientRect();if(i.width===0&&i.height===0||e.width===0&&e.height===0)return;let r=i.left-e.left,s=e.right-i.right,d=i.top-e.top,h=e.bottom-i.bottom;i.width>e.width?(r>0&&(n+=r),s>0&&(n-=s)):n=0,i.height>e.height?(d>0&&(t+=d),h>0&&(t-=h)):t=0,(n!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:n})}_getDragStartDelay(n){let t=this.dragStartDelay;return typeof t=="number"?t:gt(n)?t.touch:t?t.mouse:0}_updateOnScroll(n){let t=this._parentPositions.handleScroll(n);if(t){let e=mt(n);this._boundaryRect&&e!==this._boundaryElement&&e.contains(this._boundaryElement)&&ft(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Tt(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,t){let e=this._previewContainer||"global";if(e==="parent")return n;if(e==="global"){let i=this._document;return t||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return N(e)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=n=>{if(this._handles.length){let t=this._getTargetHandle(n);t&&!this._disabledHandles.has(t)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()};_getTargetHandle(n){return this._handles.find(t=>n.target&&(n.target===t||t.contains(n.target)))}_conditionallyInsertAnchor(n,t,e){if(n===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(t===this._initialContainer&&t.hasAnchor){let i=this._anchor??=ee(this._placeholder);i.classList.remove(mi),i.classList.add("cdk-drag-anchor"),i.style.transform="",e?e.before(i):N(t.element).appendChild(i)}}};function gi(o,n,t){return Math.max(n,Math.min(t,o))}function gt(o){return o.type[0]==="t"}function qi(o){o.preventDefault()}function at(o,n,t){let e=fi(n,o.length-1),i=fi(t,o.length-1);if(e===i)return;let r=o[e],s=i<e?-1:1;for(let d=e;d!==i;d+=s)o[d]=o[d+s];o[i]=r}function fi(o,n){return Math.max(0,Math.min(n,o))}var Mt=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction="ltr";constructor(n){this._dragDropRegistry=n}_previousSwap={drag:null,delta:0,overlaps:!1};start(n){this.withItems(n)}sort(n,t,e,i){let r=this._itemPositions,s=this._getItemIndexFromPointerPosition(n,t,e,i);if(s===-1&&r.length>0)return null;let d=this.orientation==="horizontal",h=r.findIndex(I=>I.drag===n),u=r[s],w=r[h].clientRect,k=u.clientRect,O=h>s?1:-1,U=this._getItemOffsetPx(w,k,O),Q=this._getSiblingOffsetPx(h,r,O),G=r.slice();return at(r,h,s),r.forEach((I,tt)=>{if(G[tt]===I)return;let ct=I.drag===n,H=ct?U:Q,W=ct?n.getPlaceholderElement():I.drag.getRootElement();I.offset+=H;let Z=Math.round(I.offset*(1/I.drag.scale));d?(W.style.transform=Ft(`translate3d(${Z}px, 0, 0)`,I.initialTransform),ft(I.clientRect,0,H)):(W.style.transform=Ft(`translate3d(0, ${Z}px, 0)`,I.initialTransform),ft(I.clientRect,H,0))}),this._previousSwap.overlaps=ie(k,t,e),this._previousSwap.drag=u.drag,this._previousSwap.delta=d?i.x:i.y,{previousIndex:h,currentIndex:s}}enter(n,t,e,i){let r=this._activeDraggables,s=r.indexOf(n),d=n.getPlaceholderElement();s>-1&&r.splice(s,1);let h=i==null||i<0?this._getItemIndexFromPointerPosition(n,t,e):i,u=r[h];if(u===n&&(u=r[h+1]),!u&&(h==null||h===-1||h<r.length-1)&&this._shouldEnterAsFirstChild(t,e)&&(u=r[0]),u&&!this._dragDropRegistry.isDragging(u)){let w=u.getRootElement();w.parentElement.insertBefore(d,w),r.splice(h,0,n)}else this._element.appendChild(d),r.push(n);d.style.transform="",this._cacheItemPositions()}withItems(n){this._activeDraggables=n.slice(),this._cacheItemPositions()}withSortPredicate(n){this._sortPredicate=n}reset(){this._activeDraggables?.forEach(n=>{let t=n.getRootElement();if(t){let e=this._itemPositions.find(i=>i.drag===n)?.initialTransform;t.style.transform=e||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(n){return this._getVisualItemPositions().findIndex(t=>t.drag===n)}getItemAtIndex(n){return this._getVisualItemPositions()[n]?.drag||null}updateOnScroll(n,t){this._itemPositions.forEach(({clientRect:e})=>{ft(e,n,t)}),this._itemPositions.forEach(({drag:e})=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})}withElementContainer(n){this._element=n}_cacheItemPositions(){let n=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(t=>{let e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:ae(e)}}).sort((t,e)=>n?t.clientRect.left-e.clientRect.left:t.clientRect.top-e.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(n,t,e){let i=this.orientation==="horizontal",r=i?t.left-n.left:t.top-n.top;return e===-1&&(r+=i?t.width-n.width:t.height-n.height),r}_getSiblingOffsetPx(n,t,e){let i=this.orientation==="horizontal",r=t[n].clientRect,s=t[n+e*-1],d=r[i?"width":"height"]*e;if(s){let h=i?"left":"top",u=i?"right":"bottom";e===-1?d-=s.clientRect[h]-r[u]:d+=r[h]-s.clientRect[u]}return d}_shouldEnterAsFirstChild(n,t){if(!this._activeDraggables.length)return!1;let e=this._itemPositions,i=this.orientation==="horizontal";if(e[0].drag!==this._activeDraggables[0]){let s=e[e.length-1].clientRect;return i?n>=s.right:t>=s.bottom}else{let s=e[0].clientRect;return i?n<=s.left:t<=s.top}}_getItemIndexFromPointerPosition(n,t,e,i){let r=this.orientation==="horizontal",s=this._itemPositions.findIndex(({drag:d,clientRect:h})=>{if(d===n)return!1;if(i){let u=r?i.x:i.y;if(d===this._previousSwap.drag&&this._previousSwap.overlaps&&u===this._previousSwap.delta)return!1}return r?t>=Math.floor(h.left)&&t<Math.floor(h.right):e>=Math.floor(h.top)&&e<Math.floor(h.bottom)});return s===-1||!this._sortPredicate(s,n)?-1:s}},re=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(n,t){this._document=n,this._dragDropRegistry=t}start(n){let t=this._element.childNodes;this._relatedNodes=[];for(let e=0;e<t.length;e++){let i=t[e];this._relatedNodes.push([i,i.nextSibling])}this.withItems(n)}sort(n,t,e,i){let r=this._getItemIndexFromPointerPosition(n,t,e),s=this._previousSwap;if(r===-1||this._activeItems[r]===n)return null;let d=this._activeItems[r];if(s.drag===d&&s.overlaps&&s.deltaX===i.x&&s.deltaY===i.y)return null;let h=this.getItemIndex(n),u=n.getPlaceholderElement(),w=d.getRootElement();r>h?w.after(u):w.before(u),at(this._activeItems,h,r);let k=this._getRootNode().elementFromPoint(t,e);return s.deltaX=i.x,s.deltaY=i.y,s.drag=d,s.overlaps=w===k||w.contains(k),{previousIndex:h,currentIndex:r}}enter(n,t,e,i){let r=this._activeItems.indexOf(n);r>-1&&this._activeItems.splice(r,1);let s=i==null||i<0?this._getItemIndexFromPointerPosition(n,t,e):i;s===-1&&(s=this._getClosestItemIndexToPointer(n,t,e));let d=this._activeItems[s];d&&!this._dragDropRegistry.isDragging(d)?(this._activeItems.splice(s,0,n),d.getRootElement().before(n.getPlaceholderElement())):(this._activeItems.push(n),this._element.appendChild(n.getPlaceholderElement()))}withItems(n){this._activeItems=n.slice()}withSortPredicate(n){this._sortPredicate=n}reset(){let n=this._element,t=this._previousSwap;for(let e=this._relatedNodes.length-1;e>-1;e--){let[i,r]=this._relatedNodes[e];i.parentNode===n&&i.nextSibling!==r&&(r===null?n.appendChild(i):r.parentNode===n&&n.insertBefore(i,r))}this._relatedNodes=[],this._activeItems=[],t.drag=null,t.deltaX=t.deltaY=0,t.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(n){return this._activeItems.indexOf(n)}getItemAtIndex(n){return this._activeItems[n]||null}updateOnScroll(){this._activeItems.forEach(n=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}withElementContainer(n){n!==this._element&&(this._element=n,this._rootNode=void 0)}_getItemIndexFromPointerPosition(n,t,e){let i=this._getRootNode().elementFromPoint(Math.floor(t),Math.floor(e)),r=i?this._activeItems.findIndex(s=>{let d=s.getRootElement();return i===d||d.contains(i)}):-1;return r===-1||!this._sortPredicate(r,n)?-1:r}_getRootNode(){return this._rootNode||(this._rootNode=Tt(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(n,t,e){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let i=1/0,r=-1;for(let s=0;s<this._activeItems.length;s++){let d=this._activeItems[s];if(d!==n){let{x:h,y:u}=d.getRootElement().getBoundingClientRect(),w=Math.hypot(t-h,e-u);w<i&&(i=w,r=s)}}return r}},Ci=.05,bi=.05,M=(function(o){return o[o.NONE=0]="NONE",o[o.UP=1]="UP",o[o.DOWN=2]="DOWN",o})(M||{}),R=(function(o){return o[o.NONE=0]="NONE",o[o.LEFT=1]="LEFT",o[o.RIGHT=2]="RIGHT",o})(R||{});function wi(o,n){return new se(n,o.get(Lt),o.get(yt),o.get(_t),o.get(Xt))}var se=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis=null;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new E;entered=new E;exited=new E;dropped=new E;sorted=new E;receivingStarted=new E;receivingStopped=new E;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=it.EMPTY;_verticalScrollDirection=M.NONE;_horizontalScrollDirection=R.NONE;_scrollNode;_stopScrollTimers=new E;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(n,t,e,i,r){this._dragDropRegistry=t,this._ngZone=i,this._viewportRuler=r;let s=this.element=N(n);this._document=e,this.withOrientation("vertical").withElementContainer(s),t.registerDropContainer(this),this._parentPositions=new Ot(e)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,t,e,i){this._draggingStarted(),i==null&&this.sortingDisabled&&(i=this._draggables.indexOf(n)),this._sortStrategy.enter(n,t,e,i),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,t,e,i,r,s,d,h={}){this._reset(),this.dropped.next({item:n,currentIndex:t,previousIndex:e,container:this,previousContainer:i,isPointerOverContainer:r,distance:s,dropPoint:d,event:h})}withItems(n){let t=this._draggables;return this._draggables=n,n.forEach(e=>e._withDropContainer(this)),this.isDragging()&&(t.filter(i=>i.isDragging()).every(i=>n.indexOf(i)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(n){return this._direction=n,this._sortStrategy instanceof Mt&&(this._sortStrategy.direction=n),this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){if(n==="mixed")this._sortStrategy=new re(this._document,this._dragDropRegistry);else{let t=new Mt(this._dragDropRegistry);t.direction=this._direction,t.orientation=n,this._sortStrategy=t}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((t,e)=>this.sortPredicate(t,e,this)),this}withScrollableParents(n){let t=this._container;return this._scrollableElements=n.indexOf(t)===-1?[t,...n]:n.slice(),this}withElementContainer(n){if(n===this._container)return this;let t=N(this.element),e=this._scrollableElements.indexOf(this._container),i=this._scrollableElements.indexOf(n);return e>-1&&this._scrollableElements.splice(e,1),i>-1&&this._scrollableElements.splice(i,1),this._sortStrategy&&this._sortStrategy.withElementContainer(n),this._cachedShadowRoot=null,this._scrollableElements.unshift(n),this._container=n,this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?this._sortStrategy.getItemIndex(n):this._draggables.indexOf(n)}getItemAtIndex(n){return this._isDragging?this._sortStrategy.getItemAtIndex(n):this._draggables[n]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,t,e,i){if(this.sortingDisabled||!this._domRect||!ai(this._domRect,Ci,t,e))return;let r=this._sortStrategy.sort(n,t,e,i);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:n})}_startScrollingIfNecessary(n,t){if(this.autoScrollDisabled)return;let e,i=M.NONE,r=R.NONE;if(this._parentPositions.positions.forEach((s,d)=>{d===this._document||!s.clientRect||e||ai(s.clientRect,Ci,n,t)&&([i,r]=Wi(d,s.clientRect,this._direction,n,t),(i||r)&&(e=d))}),!i&&!r){let{width:s,height:d}=this._viewportRuler.getViewportSize(),h={width:s,height:d,top:0,right:s,bottom:d,left:0};i=Di(h,t),r=yi(h,n),e=window}e&&(i!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||e!==this._scrollNode)&&(this._verticalScrollDirection=i,this._horizontalScrollDirection=r,this._scrollNode=e,(i||r)&&e?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let n=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let n=this._container.style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),he(0,_e).pipe(dt(this._stopScrollTimers)).subscribe(()=>{let n=this._scrollNode,t=this.autoScrollStep;this._verticalScrollDirection===M.UP?n.scrollBy(0,-t):this._verticalScrollDirection===M.DOWN&&n.scrollBy(0,t),this._horizontalScrollDirection===R.LEFT?n.scrollBy(-t,0):this._horizontalScrollDirection===R.RIGHT&&n.scrollBy(t,0)})};_isOverContainer(n,t){return this._domRect!=null&&ie(this._domRect,n,t)}_getSiblingContainerFromPosition(n,t,e){return this._siblings.find(i=>i._canReceive(n,t,e))}_canReceive(n,t,e){if(!this._domRect||!ie(this._domRect,t,e)||!this.enterPredicate(n,this))return!1;let i=this._getShadowRoot().elementFromPoint(t,e);return i?i===this._container||this._container.contains(i):!1}_startReceiving(n,t){let e=this._activeSiblings;!e.has(n)&&t.every(i=>this.enterPredicate(i,this)||this._draggables.indexOf(i)>-1)&&(e.add(n),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:n,receiver:this,items:t}))}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:n,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){let t=this._parentPositions.handleScroll(n);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let n=Tt(this._container);this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let n=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,n))}};function Di(o,n){let{top:t,bottom:e,height:i}=o,r=i*bi;return n>=t-r&&n<=t+r?M.UP:n>=e-r&&n<=e+r?M.DOWN:M.NONE}function yi(o,n){let{left:t,right:e,width:i}=o,r=i*bi;return n>=t-r&&n<=t+r?R.LEFT:n>=e-r&&n<=e+r?R.RIGHT:R.NONE}function Wi(o,n,t,e,i){let r=Di(n,i),s=yi(n,e),d=M.NONE,h=R.NONE;if(r){let u=o.scrollTop;r===M.UP?u>0&&(d=M.UP):o.scrollHeight-u>o.clientHeight&&(d=M.DOWN)}if(s){let u=o.scrollLeft;t==="rtl"?s===R.RIGHT?u<0&&(h=R.RIGHT):o.scrollWidth+u>o.clientWidth&&(h=R.LEFT):s===R.LEFT?u>0&&(h=R.LEFT):o.scrollWidth-u>o.clientWidth&&(h=R.RIGHT)}return[d,h]}var Zi=(()=>{class o{_injector=y(Dt);constructor(){}createDrag(t,e){return Si(this._injector,t,e)}createDropList(t){return wi(this._injector,t)}static \u0275fac=function(e){return new(e||o)};static \u0275prov=A({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),le=new nt("CDK_DRAG_PARENT");var Ei=new nt("CdkDragHandle"),Pi=(()=>{class o{element=y(Et);_parentDrag=y(le,{optional:!0,skipSelf:!0});_dragDropRegistry=y(Lt);_stateChanges=new E;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._stateChanges.next(this)}_disabled=!1;constructor(){this._parentDrag?._addHandle(this)}ngAfterViewInit(){if(!this._parentDrag){let t=this.element.nativeElement.parentElement;for(;t;){let e=this._dragDropRegistry.getDragDirectiveForNode(t);if(e){this._parentDrag=e,e._addHandle(this);break}t=t.parentElement}}}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static \u0275fac=function(e){return new(e||o)};static \u0275dir=kt({type:o,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",J]},features:[It([{provide:Ei,useExisting:o}])]})}return o})(),ki=new nt("CDK_DRAG_CONFIG"),Ii=new nt("CdkDropList"),Ti=(()=>{class o{element=y(Et);dropContainer=y(Ii,{optional:!0,skipSelf:!0});_ngZone=y(_t);_viewContainerRef=y(Se);_dir=y(Yt,{optional:!0});_changeDetectorRef=y(ht);_selfHandle=y(Ei,{optional:!0,self:!0});_parentDrag=y(le,{optional:!0,skipSelf:!0});_dragDropRegistry=y(Lt);_destroyed=new E;_handles=new de([]);_previewTemplate=null;_placeholderTemplate=null;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(t){this._disabled=t,this._dragRef.disabled=this._disabled}_disabled=!1;constrainPosition;previewClass;previewContainer;scale=1;started=new L;released=new L;ended=new L;entered=new L;exited=new L;dropped=new L;moved=new $t(t=>{let e=this._dragRef.moved.pipe(pe(i=>({source:this,pointerPosition:i.pointerPosition,event:i.event,delta:i.delta,distance:i.distance}))).subscribe(t);return()=>{e.unsubscribe()}});_injector=y(Dt);constructor(){let t=this.dropContainer,e=y(ki,{optional:!0});this._dragRef=Si(this._injector,this.element,{dragStartThreshold:e&&e.dragStartThreshold!=null?e.dragStartThreshold:5,pointerDirectionChangeThreshold:e&&e.pointerDirectionChangeThreshold!=null?e.pointerDirectionChangeThreshold:5,zIndex:e?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),e&&this._assignDefaults(e),t&&(t.addItem(this),t._dropListRef.beforeStarted.pipe(dt(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(t){this._dragRef.setFreeDragPosition(t)}ngAfterViewInit(){xe(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(t){let e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(t){let e=this._handles.getValue();e.push(t),this._handles.next(e)}_removeHandle(t){let e=this._handles.getValue(),i=e.indexOf(t);i>-1&&(e.splice(i,1),this._handles.next(e))}_setPreviewTemplate(t){this._previewTemplate=t}_resetPreviewTemplate(t){t===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(t){this._placeholderTemplate=t}_resetPlaceholderTemplate(t){t===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let t=this.element.nativeElement,e=t;this.rootElementSelector&&(e=t.closest!==void 0?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(e||t)}_getBoundaryElement(){let t=this.boundaryElement;return t?typeof t=="string"?this.element.nativeElement.closest(t):N(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){let e=this._dir,i=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.scale=this.scale,t.dragStartDelay=typeof i=="object"&&i?i:Zt(i),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(me(1)).subscribe(()=>{if(this._parentDrag){t.withParent(this._parentDrag._dragRef);return}let e=this.element.nativeElement.parentElement;for(;e;){let i=this._dragDropRegistry.getDragDirectiveForNode(e);if(i){t.withParent(i._dragRef);break}e=e.parentElement}})}_handleEvents(t){t.started.subscribe(e=>{this.started.emit({source:this,event:e.event}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(e=>{this.released.emit({source:this,event:e.event})}),t.ended.subscribe(e=>{this.ended.emit({source:this,distance:e.distance,dropPoint:e.dropPoint,event:e.event}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(e=>{this.entered.emit({container:e.container.data,item:this,currentIndex:e.currentIndex})}),t.exited.subscribe(e=>{this.exited.emit({container:e.container.data,item:this})}),t.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:this,distance:e.distance,dropPoint:e.dropPoint,event:e.event})})}_assignDefaults(t){let{lockAxis:e,dragStartDelay:i,constrainPosition:r,previewClass:s,boundaryElement:d,draggingDisabled:h,rootElementSelector:u,previewContainer:w}=t;this.disabled=h??!1,this.dragStartDelay=i||0,this.lockAxis=e||null,r&&(this.constrainPosition=r),s&&(this.previewClass=s),d&&(this.boundaryElement=d),u&&(this.rootElementSelector=u),w&&(this.previewContainer=w)}_setupHandlesListener(){this._handles.pipe(ge(t=>{let e=t.map(i=>i.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),ue(t=>wt(...t.map(e=>e._stateChanges.pipe(Kt(e))))),dt(this._destroyed)).subscribe(t=>{let e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)})}static \u0275fac=function(e){return new(e||o)};static \u0275dir=kt({type:o,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,i){e&2&&pt("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",J],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",we]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[It([{provide:le,useExisting:o}]),Ce]})}return o})(),xi=new nt("CdkDropListGroup");var Ri=(()=>{class o{element=y(Et);_changeDetectorRef=y(ht);_scrollDispatcher=y(Te);_dir=y(Yt,{optional:!0});_group=y(xi,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new E;_scrollableParentsResolved=!1;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation="vertical";id=y(Ie).getId("cdk-drop-list-");lockAxis=null;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=t}_disabled=!1;sortingDisabled=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled=!1;autoScrollStep;elementContainerSelector=null;hasAnchor=!1;dropped=new L;entered=new L;exited=new L;sorted=new L;_unsortedItems=new Set;constructor(){let t=y(ki,{optional:!0}),e=y(Dt);this._dropListRef=wi(e,this.element),this._dropListRef.data=this,t&&this._assignDefaults(t),this._dropListRef.enterPredicate=(i,r)=>this.enterPredicate(i.data,r.data),this._dropListRef.sortPredicate=(i,r,s)=>this.sortPredicate(i,r.data,s.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),o._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(t){this._unsortedItems.add(t),t._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(e=>e._dragRef))}removeItem(t){if(this._unsortedItems.delete(t),this._latestSortedRefs){let e=this._latestSortedRefs.indexOf(t._dragRef);e>-1&&(this._latestSortedRefs.splice(e,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let t=o._dropLists.indexOf(this);t>-1&&o._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe(Kt(this._dir.value),dt(this._destroyed)).subscribe(e=>t.withDirection(e)),t.beforeStarted.subscribe(()=>{let e=Pe(this.connectedTo).map(i=>{if(typeof i=="string"){let r=o._dropLists.find(s=>s.id===i);return r}return i});if(this._group&&this._group._items.forEach(i=>{e.indexOf(i)===-1&&e.push(i)}),!this._scrollableParentsResolved){let i=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(r=>r.getElementRef().nativeElement);this._dropListRef.withScrollableParents(i),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let i=this.element.nativeElement.querySelector(this.elementContainerSelector);t.withElementContainer(i)}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=this.sortingDisabled,t.autoScrollDisabled=this.autoScrollDisabled,t.autoScrollStep=Zt(this.autoScrollStep,2),t.hasAnchor=this.hasAnchor,t.connectedTo(e.filter(i=>i&&i!==this).map(i=>i._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(e=>e._dragRef)),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(e=>{this.entered.emit({container:this,item:e.item.data,currentIndex:e.currentIndex})}),t.exited.subscribe(e=>{this.exited.emit({container:this,item:e.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(e=>{this.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:this,item:e.item.data})}),t.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance,dropPoint:e.dropPoint,event:e.event}),this._changeDetectorRef.markForCheck()}),wt(t.receivingStarted,t.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(t){let{lockAxis:e,draggingDisabled:i,sortingDisabled:r,listAutoScrollDisabled:s,listOrientation:d}=t;this.disabled=i??!1,this.sortingDisabled=r??!1,this.autoScrollDisabled=s??!1,this.orientation=d||"vertical",this.lockAxis=e||null}_syncItemsWithRef(t){this._latestSortedRefs=t,this._dropListRef.withItems(t)}static \u0275fac=function(e){return new(e||o)};static \u0275dir=kt({type:o,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,i){e&2&&(T("id",i.id),pt("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",J],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",J],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",J],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",J]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[It([{provide:xi,useValue:void 0},{provide:Ii,useExisting:o}])]})}return o})();var Oi=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=be({type:o});static \u0275inj=fe({providers:[Zi],imports:[Re]})}return o})();var Fi=(()=>{class o{dialog;constructor(t){this.dialog=t}show(t){return P(this,null,function*(){let{ConnectionDialogComponent:e}=yield import("./chunk-6OEBVCHF.js"),i={type:t.type,model:t.model},r=this.dialog.open(e,st({data:i,panelClass:["fullscreen-dialog","p3xr-connection-dialog-panel"]}));return new Promise((s,d)=>{r.afterClosed().subscribe(()=>{s()})})})}static \u0275fac=function(e){return new(e||o)(ot(rt))};static \u0275prov=A({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Mi=(()=>{class o{dialog;constructor(t){this.dialog=t}show(){return P(this,null,function*(){let{AiSettingsDialogComponent:t}=yield import("./chunk-SVSIF37N.js"),e=this.dialog.open(t,st({width:"75vw",maxWidth:"75vw"}));return new Promise(i=>{e.afterClosed().subscribe(()=>i())})})}static \u0275fac=function(e){return new(e||o)(ot(rt))};static \u0275prov=A({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Li=o=>({length:o}),Vi=(o,n)=>n.name,Ai=(o,n)=>n.id,Ni=(o,n)=>n.key;function Xi(o,n){if(o&1&&(D(0,"br"),l(1,"p3xr-ng-accordion",37)(2,"div",1)(3,"a",38),D(4,"p3xr-ng-button",39),a()(),l(5,"div",4)(6,"div",5),p(7),a(),l(8,"div",40),p(9),a()()()),o&2){let t,e,i,r,s=c();_(),x("title",(t=s.strings().promo)==null?null:t.title)("collapsible",!1),_(3),x("label",(e=s.strings().promo)==null?null:e.visit),_(3),V(" ",(i=s.strings().promo)==null?null:i.description," "),_(2),V(" ",(r=s.strings().promo)==null?null:r.disclaimer," ")}}function Ji(o,n){if(o&1){let t=b();l(0,"p3xr-ng-button",41),m("click",function(){v(t);let i=c();return S(i.connectionForm("new"))}),a()}if(o&2){let t,e=c();x("label",(t=e.strings().intention)==null?null:t.connectionAdd)}}function Qi(o,n){if(o&1&&(l(0,"div",9),p(1),a()),o&2){let t,e=c();_(),V(" ",(t=e.strings().intention)==null?null:t.noConnectionsInSettings," ")}}function tn(o,n){if(o&1&&p(0),o&2){let t,e=n.$implicit,i=c(6);V(" ",(t=i.strings().page)==null||t.overview==null||t.overview.connectedCount==null?null:t.overview.connectedCount(Wt(1,Li,e.clients))," ")}}function en(o,n){if(o&1){let t=b();l(0,"button",57),m("click",function(){v(t);let i=c(2).$implicit,r=c(5);return S(r.connect(i))}),l(1,"mat-icon"),p(2,"power"),a()()}if(o&2){let t,e,i=c(7);x("matTooltip",(t=i.strings().intention)==null?null:t.connect),T("aria-label",(e=i.strings().intention)==null?null:e.connect)}}function nn(o,n){if(o&1){let t=b();l(0,"button",58),m("click",function(){v(t);let i=c(2).$implicit,r=c(5);return S(r.connect(i))}),l(1,"mat-icon"),p(2,"power"),a(),l(3,"span"),p(4),a()()}if(o&2){let t,e=c(7);_(4),g((t=e.strings().intention)==null?null:t.connect)}}function on(o,n){if(o&1&&f(0,en,3,2,"button",55)(1,nn,5,1,"button",56),o&2){let t=c(6);C(t.isXs?0:1)}}function rn(o,n){if(o&1){let t=b();l(0,"button",60),m("click",function(){v(t);let i=c(7);return S(i.disconnect())}),D(1,"i",61),a()}if(o&2){let t,e,i=c(7);x("matTooltip",(t=i.strings().intention)==null?null:t.disconnect),T("aria-label",(e=i.strings().intention)==null?null:e.disconnect)}}function sn(o,n){if(o&1){let t=b();l(0,"button",58),m("click",function(){v(t);let i=c(7);return S(i.disconnect())}),D(1,"i",61),l(2,"span"),p(3),a()()}if(o&2){let t,e=c(7);_(3),g((t=e.strings().intention)==null?null:t.disconnect)}}function ln(o,n){if(o&1&&f(0,rn,2,2,"button",59)(1,sn,4,1,"button",56),o&2){let t=c(6);C(t.isXs?0:1)}}function an(o,n){if(o&1){let t=b();l(0,"button",66),m("click",function(i){v(t);let r=c(2).$implicit,s=c(5);return S(s.deleteConnection(r,i))}),l(1,"mat-icon"),p(2,"delete_forever"),a()()}if(o&2){let t,e,i=c(7);x("matTooltip",(t=i.strings().intention)==null?null:t.delete),T("aria-label",(e=i.strings().intention)==null?null:e.delete)}}function cn(o,n){if(o&1){let t=b();l(0,"button",67),m("click",function(i){v(t);let r=c(2).$implicit,s=c(5);return S(s.deleteConnection(r,i))}),l(1,"mat-icon"),p(2,"delete_forever"),a(),l(3,"span"),p(4),a()()}if(o&2){let t,e=c(7);_(4),g((t=e.strings().intention)==null?null:t.delete)}}function dn(o,n){if(o&1){let t=b();l(0,"button",68),m("click",function(){v(t);let i=c(2).$implicit,r=c(5);return S(r.connectionForm("edit",i))}),l(1,"mat-icon"),p(2,"edit"),a()()}if(o&2){let t,e,i=c(7);x("matTooltip",(t=i.strings().intention)==null?null:t.edit),T("aria-label",(e=i.strings().intention)==null?null:e.edit)}}function _n(o,n){if(o&1){let t=b();l(0,"button",69),m("click",function(){v(t);let i=c(2).$implicit,r=c(5);return S(r.connectionForm("edit",i))}),l(1,"mat-icon"),p(2,"edit"),a(),l(3,"span"),p(4),a()()}if(o&2){let t,e=c(7);_(4),g((t=e.strings().intention)==null?null:t.edit)}}function pn(o,n){if(o&1&&(f(0,an,3,2,"button",62)(1,cn,5,1,"button",63),f(2,dn,3,2,"button",64)(3,_n,5,1,"button",65)),o&2){let t=c(6);C(t.isXs?0:1),_(2),C(t.isXs?2:3)}}function hn(o,n){if(o&1){let t=b();l(0,"button",68),m("click",function(){v(t);let i=c(2).$implicit,r=c(5);return S(r.connectionForm("edit",i))}),l(1,"mat-icon"),p(2,"mode_comment"),a()()}if(o&2){let t,e,i=c(7);x("matTooltip",(t=i.strings().intention)==null?null:t.view),T("aria-label",(e=i.strings().intention)==null?null:e.view)}}function mn(o,n){if(o&1){let t=b();l(0,"button",69),m("click",function(){v(t);let i=c(2).$implicit,r=c(5);return S(r.connectionForm("edit",i))}),l(1,"mat-icon"),p(2,"mode_comment"),a(),l(3,"span"),p(4),a()()}if(o&2){let t,e=c(7);_(4),g((t=e.strings().intention)==null?null:t.view)}}function un(o,n){if(o&1&&f(0,hn,3,2,"button",64)(1,mn,5,1,"button",65),o&2){let t=c(6);C(t.isXs?0:1)}}function gn(o,n){o&1&&D(0,"mat-divider")}function fn(o,n){if(o&1&&(l(0,"div",51)(1,"div",52)(2,"div",53),p(3),a(),l(4,"div",54),p(5),a(),l(6,"div",54),Y(7,tn,1,3,null,null,Ni),a()(),f(9,on,2,1),f(10,ln,2,1),f(11,pn,4,2),f(12,un,2,1),a(),f(13,gn,1,0,"mat-divider")),o&2){let t=n.$implicit,e=n.$index,i=n.$count,r=c(5);x("cdkDragData",t),_(3),g(t.name),_(2),qt("",t.host,":",t.port),_(2),X(r.getConnectionClients(t)),_(2),C(r.currentConnectionId!==t.id?9:-1),_(),C(r.currentConnectionId===t.id?10:-1),_(),C(r.readonlyConnections?-1:11),_(),C(r.readonlyConnections?12:-1),_(),C(e!==i-1?13:-1)}}function Cn(o,n){if(o&1){let t=b();l(0,"div",50),m("cdkDropListDropped",function(i){v(t);let r=c().$implicit,s=c(3);return S(s.dropConnection(i,r.name))}),Y(1,fn,14,9,null,null,Ai),a()}if(o&2){let t=c().$implicit,e=c(3);x("cdkDropListData",t.connections)("cdkDropListEnterPredicate",e.connectionDropPredicate),_(),X(t.connections)}}function xn(o,n){if(o&1){let t=b();l(0,"div",45)(1,"div",46),m("click",function(){let i=v(t).$implicit,r=c(3);return S(r.toggleGroup(i.name))}),l(2,"mat-icon",47),p(3),a(),l(4,"span"),p(5),a(),l(6,"span",48),p(7),a()(),f(8,Cn,3,2,"div",49),a()}if(o&2){let t=n.$implicit,e=c(3);x("cdkDragData",t),_(3),g(e.collapsedGroups.has(t.name)?"chevron_right":"expand_more"),_(2),g(e.getGroupDisplayName(t.name)),_(2),V("(",t.connections.length,")"),_(),C(e.collapsedGroups.has(t.name)?-1:8)}}function vn(o,n){if(o&1){let t=b();l(0,"div",44),m("cdkDropListDropped",function(i){v(t);let r=c(2);return S(r.dropGroup(i))}),Y(1,xn,9,5,"div",45,Vi),a()}if(o&2){let t=c(2);x("cdkDropListData",t.groupedConnections)("cdkDropListEnterPredicate",t.groupDropPredicate),_(),X(t.groupedConnections)}}function Sn(o,n){if(o&1&&p(0),o&2){let t,e=n.$implicit,i=c(4);V(" ",(t=i.strings().page)==null||t.overview==null||t.overview.connectedCount==null?null:t.overview.connectedCount(Wt(1,Li,e.clients))," ")}}function bn(o,n){if(o&1){let t=b();l(0,"button",57),m("click",function(){v(t);let i=c(2).$implicit,r=c(3);return S(r.connect(i))}),l(1,"mat-icon"),p(2,"power"),a()()}if(o&2){let t,e,i=c(5);x("matTooltip",(t=i.strings().intention)==null?null:t.connect),T("aria-label",(e=i.strings().intention)==null?null:e.connect)}}function wn(o,n){if(o&1){let t=b();l(0,"button",58),m("click",function(){v(t);let i=c(2).$implicit,r=c(3);return S(r.connect(i))}),l(1,"mat-icon"),p(2,"power"),a(),l(3,"span"),p(4),a()()}if(o&2){let t,e=c(5);_(4),g((t=e.strings().intention)==null?null:t.connect)}}function Dn(o,n){if(o&1&&f(0,bn,3,2,"button",55)(1,wn,5,1,"button",56),o&2){let t=c(4);C(t.isXs?0:1)}}function yn(o,n){if(o&1){let t=b();l(0,"button",60),m("click",function(){v(t);let i=c(5);return S(i.disconnect())}),D(1,"i",61),a()}if(o&2){let t,e,i=c(5);x("matTooltip",(t=i.strings().intention)==null?null:t.disconnect),T("aria-label",(e=i.strings().intention)==null?null:e.disconnect)}}function En(o,n){if(o&1){let t=b();l(0,"button",58),m("click",function(){v(t);let i=c(5);return S(i.disconnect())}),D(1,"i",61),l(2,"span"),p(3),a()()}if(o&2){let t,e=c(5);_(3),g((t=e.strings().intention)==null?null:t.disconnect)}}function Pn(o,n){if(o&1&&f(0,yn,2,2,"button",59)(1,En,4,1,"button",56),o&2){let t=c(4);C(t.isXs?0:1)}}function kn(o,n){if(o&1){let t=b();l(0,"button",66),m("click",function(i){v(t);let r=c(2).$implicit,s=c(3);return S(s.deleteConnection(r,i))}),l(1,"mat-icon"),p(2,"delete_forever"),a()()}if(o&2){let t,e,i=c(5);x("matTooltip",(t=i.strings().intention)==null?null:t.delete),T("aria-label",(e=i.strings().intention)==null?null:e.delete)}}function In(o,n){if(o&1){let t=b();l(0,"button",67),m("click",function(i){v(t);let r=c(2).$implicit,s=c(3);return S(s.deleteConnection(r,i))}),l(1,"mat-icon"),p(2,"delete_forever"),a(),l(3,"span"),p(4),a()()}if(o&2){let t,e=c(5);_(4),g((t=e.strings().intention)==null?null:t.delete)}}function Tn(o,n){if(o&1){let t=b();l(0,"button",68),m("click",function(){v(t);let i=c(2).$implicit,r=c(3);return S(r.connectionForm("edit",i))}),l(1,"mat-icon"),p(2,"edit"),a()()}if(o&2){let t,e,i=c(5);x("matTooltip",(t=i.strings().intention)==null?null:t.edit),T("aria-label",(e=i.strings().intention)==null?null:e.edit)}}function Rn(o,n){if(o&1){let t=b();l(0,"button",69),m("click",function(){v(t);let i=c(2).$implicit,r=c(3);return S(r.connectionForm("edit",i))}),l(1,"mat-icon"),p(2,"edit"),a(),l(3,"span"),p(4),a()()}if(o&2){let t,e=c(5);_(4),g((t=e.strings().intention)==null?null:t.edit)}}function On(o,n){if(o&1&&(f(0,kn,3,2,"button",62)(1,In,5,1,"button",63),f(2,Tn,3,2,"button",64)(3,Rn,5,1,"button",65)),o&2){let t=c(4);C(t.isXs?0:1),_(2),C(t.isXs?2:3)}}function Fn(o,n){if(o&1){let t=b();l(0,"button",68),m("click",function(){v(t);let i=c(2).$implicit,r=c(3);return S(r.connectionForm("edit",i))}),l(1,"mat-icon"),p(2,"mode_comment"),a()()}if(o&2){let t,e,i=c(5);x("matTooltip",(t=i.strings().intention)==null?null:t.view),T("aria-label",(e=i.strings().intention)==null?null:e.view)}}function Mn(o,n){if(o&1){let t=b();l(0,"button",69),m("click",function(){v(t);let i=c(2).$implicit,r=c(3);return S(r.connectionForm("edit",i))}),l(1,"mat-icon"),p(2,"mode_comment"),a(),l(3,"span"),p(4),a()()}if(o&2){let t,e=c(5);_(4),g((t=e.strings().intention)==null?null:t.view)}}function Ln(o,n){if(o&1&&f(0,Fn,3,2,"button",64)(1,Mn,5,1,"button",65),o&2){let t=c(4);C(t.isXs?0:1)}}function Vn(o,n){o&1&&D(0,"mat-divider")}function An(o,n){if(o&1&&(l(0,"div",51)(1,"div",52)(2,"div",53),p(3),a(),l(4,"div",54),p(5),a(),l(6,"div",54),Y(7,Sn,1,3,null,null,Ni),a()(),f(9,Dn,2,1),f(10,Pn,2,1),f(11,On,4,2),f(12,Ln,2,1),a(),f(13,Vn,1,0,"mat-divider")),o&2){let t=n.$implicit,e=n.$index,i=n.$count,r=c(3);x("cdkDragData",t),_(3),g(t.name),_(2),qt("",t.host,":",t.port),_(2),X(r.getConnectionClients(t)),_(2),C(r.currentConnectionId!==t.id?9:-1),_(),C(r.currentConnectionId===t.id?10:-1),_(),C(r.readonlyConnections?-1:11),_(),C(r.readonlyConnections?12:-1),_(),C(e!==i-1?13:-1)}}function Nn(o,n){if(o&1){let t=b();l(0,"div",70),m("cdkDropListDropped",function(i){v(t);let r=c(2);return S(r.dropUngroupedConnection(i))}),Y(1,An,14,9,null,null,Ai),a()}if(o&2){let t=c(2);x("cdkDropListData",t.connectionsList),_(),X(t.connectionsList)}}function Un(o,n){if(o&1&&(l(0,"div"),f(1,vn,3,2,"div",42),f(2,Nn,3,1,"div",43),a()),o&2){let t=c();_(),C(t.groupModeEnabled?1:-1),_(),C(t.groupModeEnabled?-1:2)}}function Gn(o,n){if(o&1){let t=b();l(0,"p3xr-ng-button",76),m("click",function(i){return v(t),c(2).openAclCreate(),S(i.stopPropagation())}),a()}if(o&2){let t,e=c(2);x("label",(t=e.strings().page)==null||t.acl==null?null:t.acl.createUser)}}function Hn(o,n){if(o&1&&(l(0,"div",74),p(1),a()),o&2){let t,e=c(2);_(),g((t=e.strings().page)==null||t.acl==null?null:t.acl.loading)}}function zn(o,n){if(o&1&&(l(0,"div",74),p(1),a()),o&2){let t,e=c(2);_(),g((t=e.strings().page)==null||t.acl==null?null:t.acl.noUsers)}}function $n(o,n){if(o&1&&(l(0,"span",79),p(1),a()),o&2){let t,e=c(4);_(),V("(",(t=e.strings().page)==null||t.acl==null?null:t.acl.currentUser,")")}}function Kn(o,n){if(o&1&&(l(0,"mat-icon",80),p(1," warning "),a()),o&2){let t,e=c(4);x("matTooltip",(t=e.strings().page)==null||t.acl==null?null:t.acl.disabled)}}function jn(o,n){if(o&1){let t=b();l(0,"button",66),m("click",function(i){v(t);let r=c(3).$implicit;return c(3).deleteAclUser(r.name),S(i.stopPropagation())}),l(1,"mat-icon"),p(2,"delete"),a()()}if(o&2){let t,e,i=c(6);x("matTooltip",(t=i.strings().page)==null||t.acl==null?null:t.acl.deleteUser),T("aria-label",(e=i.strings().page)==null||e.acl==null?null:e.acl.deleteUser)}}function Bn(o,n){if(o&1){let t=b();l(0,"button",67),m("click",function(i){v(t);let r=c(3).$implicit;return c(3).deleteAclUser(r.name),S(i.stopPropagation())}),l(1,"mat-icon"),p(2,"delete"),a(),l(3,"span"),p(4),a()()}if(o&2){let t,e=c(6);_(4),g((t=e.strings().page)==null||t.acl==null?null:t.acl.deleteUser)}}function qn(o,n){if(o&1&&f(0,jn,3,2,"button",62)(1,Bn,5,1,"button",63),o&2){let t=c(5);C(t.isXs?0:1)}}function Wn(o,n){if(o&1){let t=b();l(0,"button",68),m("click",function(i){v(t);let r=c(2).$implicit;return c(3).openAclEdit(r),S(i.stopPropagation())}),l(1,"mat-icon"),p(2,"edit"),a()()}if(o&2){let t,e,i=c(5);x("matTooltip",(t=i.strings().page)==null||t.acl==null?null:t.acl.editUser),T("aria-label",(e=i.strings().page)==null||e.acl==null?null:e.acl.editUser)}}function Zn(o,n){if(o&1){let t=b();l(0,"button",69),m("click",function(i){v(t);let r=c(2).$implicit;return c(3).openAclEdit(r),S(i.stopPropagation())}),l(1,"mat-icon"),p(2,"edit"),a(),l(3,"span"),p(4),a()()}if(o&2){let t,e=c(5);_(4),g((t=e.strings().page)==null||t.acl==null?null:t.acl.editUser)}}function Yn(o,n){if(o&1&&(f(0,qn,2,1),f(1,Wn,3,2,"button",64)(2,Zn,5,1,"button",65)),o&2){let t=c().$implicit,e=c(3);C(t.name!=="default"&&t.name!==e.aclCurrentUser?0:-1),_(),C(e.isXs?1:2)}}function Xn(o,n){o&1&&D(0,"mat-divider")}function Jn(o,n){if(o&1){let t=b();l(0,"div",77),m("click",function(){let i=v(t).$implicit,r=c(3);return S(!r.readonlyConnections&&r.openAclEdit(i))}),l(1,"div",78)(2,"span",53),p(3),a(),f(4,$n,2,1,"span",79),a(),f(5,Kn,2,1,"mat-icon",80),f(6,Yn,3,2),a(),f(7,Xn,1,0,"mat-divider")}if(o&2){let t=n.$implicit,e=n.$index,i=n.$count,r=c(3);pt("p3xr-acl-clickable",!r.readonlyConnections),_(3),g(t.name),_(),C(t.name===r.aclCurrentUser?4:-1),_(),C(t.enabled?-1:5),_(),C(r.readonlyConnections?-1:6),_(),C(e!==i-1?7:-1)}}function Qn(o,n){if(o&1&&(l(0,"div",75),Y(1,Jn,8,7,null,null,Vi),a()),o&2){let t=c(2);_(),X(t.aclUsers)}}function to(o,n){if(o&1){let t=b();D(0,"br"),l(1,"p3xr-ng-accordion",71)(2,"div",1)(3,"p3xr-ng-button",72),m("click",function(i){return v(t),c().loadAclUsers(),S(i.stopPropagation())}),a(),f(4,Gn,1,1,"p3xr-ng-button",73),a(),l(5,"div",4),f(6,Hn,2,1,"div",74)(7,zn,2,1,"div",74)(8,Qn,3,0,"div",75),a()()}if(o&2){let t,e,i=c();_(),x("title",((t=i.strings().page)==null||t.acl==null?null:t.acl.title)+" \u2014 "+i.currentConnectionName),_(2),x("label",(e=i.strings().intention)==null?null:e.refresh),_(),C(i.readonlyConnections?-1:4),_(2),C(i.aclLoading?6:i.aclUsers?8:7)}}function eo(o,n){if(o&1){let t=b();l(0,"p3xr-ng-button",31),m("click",function(i){v(t);let r=c();return S(r.openAiSettings(i))}),a()}if(o&2){let t,e=c();x("label",(t=e.strings().intention)==null?null:t.edit)}}function io(o,n){o&1&&(l(0,"a",82),p(1,"console.groq.com"),a())}function no(o,n){if(o&1){let t=b();D(0,"mat-divider"),l(1,"mat-list-item",20),m("click",function(i){return i.stopPropagation()}),l(2,"div",81)(3,"div",21)(4,"div",22),p(5),a(),l(6,"div",23)(7,"mat-slide-toggle",24),m("change",function(i){v(t);let r=c();return S(r.toggleUseOwnKey(!i.checked))}),a()()(),l(8,"div",35),p(9),f(10,io,2,0,"a",82),a()()(),D(11,"mat-divider"),l(12,"mat-list-item")(13,"div",21)(14,"div",22),p(15),a(),l(16,"div",83),p(17),a()()()}if(o&2){let t,e,i,r,s=c();_(5),g((t=s.strings().label)==null?null:t.aiRouteViaNetwork),_(2),x("checked",!s.isUseOwnKey())("disabled",s.isAiReadonly()),_(2),V(" ",s.isUseOwnKey()?(e=s.strings().label)==null?null:e.aiRoutingDirect:(e=s.strings().label)==null?null:e.aiRoutingNetwork," "),_(),C(s.isUseOwnKey()?-1:10),_(5),g((i=s.strings().label)==null?null:i.aiGroqApiKey),_(2),g((r=s.state.cfg())==null?null:r.groqApiKeyMasked)}}var gr=(()=>{class o{i18n;settings;state;common;socket;cmd;connectionDialog;treeSettingsDialog;aiSettingsDialog;aclUserDialog;breakpointObserver;cdr;notificationService;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";isElectron=/electron/i.test(navigator.userAgent);isPromoDomain=window.location.hostname==="p3x.redis.patrikx3.com";readonlyConnections=!1;currentConnectionId;aclUsers=null;aclCurrentUser="";aclLoading=!1;isXs=!1;electronUiStorage=null;unsubs=[];constructor(t,e,i,r,s,d,h,u,w,k,O,U,Q){this.i18n=t,this.settings=e,this.state=i,this.common=r,this.socket=s,this.cmd=d,this.connectionDialog=h,this.treeSettingsDialog=u,this.aiSettingsDialog=w,this.aclUserDialog=k,this.breakpointObserver=O,this.cdr=U,this.notificationService=Q,this.strings=this.i18n.strings,this.restoreGroupingState(),this.breakpointObserver.observe("(max-width: 599px)").subscribe(G=>{this.isXs=G.matches,this.cdr.markForCheck()})}ngOnInit(){this.refreshState();let t=this.socket.connections$.subscribe(()=>this.refreshState()),e=this.socket.configuration$.subscribe(()=>this.refreshState()),i=this.socket.stateChanged$.subscribe(()=>this.refreshState()),r=this.socket.redisStatus$.subscribe(()=>this.refreshState());this.unsubs.push(()=>{t.unsubscribe(),e.unsubscribe(),i.unsubscribe(),r.unsubscribe()})}ngOnDestroy(){this.unsubs.forEach(t=>t())}get currentConnectionName(){return this.connectionsList.find(e=>e.id===this.currentConnectionId)?.name||""}refreshState(){this.connectionsList=this.state.connections()?.list||[],this.readonlyConnections=this.state.cfg()?.readonlyConnections===!0;let t=this.currentConnectionId;this.currentConnectionId=this.state.connection()?.id,this.currentConnectionId&&this.currentConnectionId!==t?this.loadAclUsers():!this.currentConnectionId&&t&&(this.aclUsers=null,this.aclCurrentUser=""),this.buildGroupedConnections(),this.cdr.detectChanges()}toggleGroupMode(){this.groupModeEnabled=!this.groupModeEnabled,this.setPersistentItem(o.GROUP_MODE_KEY,String(this.groupModeEnabled))}toggleGroup(t){this.collapsedGroups.has(t)?this.collapsedGroups.delete(t):this.collapsedGroups.add(t),this.setPersistentItem(o.COLLAPSED_GROUPS_KEY,JSON.stringify([...this.collapsedGroups]))}restoreGroupingState(){this.groupModeEnabled=this.getPersistentItem(o.GROUP_MODE_KEY)==="true",this.setPersistentItem(o.GROUP_MODE_KEY,String(this.groupModeEnabled));try{let t=this.getPersistentItem(o.COLLAPSED_GROUPS_KEY);this.collapsedGroups=t?new Set(JSON.parse(t).map(e=>this.normalizeCollapsedGroupName(e))):new Set}catch(t){this.collapsedGroups=new Set}}getPersistentItem(t){let e=this.getElectronUiStorage()[t];if(typeof e=="string")return e;try{return localStorage.getItem(t)}catch(i){return null}}setPersistentItem(t,e){try{localStorage.setItem(t,e)}catch(r){}let i=this.getElectronUiStorage();i[t]=e,this.electronUiStorage=i;try{window.parent&&window.parent!==window&&window.parent.postMessage({type:"p3x-ui-storage-set",key:t,value:e},"*")}catch(r){}}getElectronUiStorage(){if(this.electronUiStorage!==null)return this.electronUiStorage;let t={};try{let e=globalThis.__p3xr_electron_bootstrap;e&&typeof e=="object"&&!Array.isArray(e)&&(t=this.normalizeElectronUiStorage(e))}catch(e){t={}}return this.electronUiStorage=t,t}normalizeElectronUiStorage(t){return!t||typeof t!="object"||Array.isArray(t)?{}:Object.entries(t).reduce((e,[i,r])=>(typeof r=="string"&&(e[i]=r),e),{})}getGroupDisplayName(t){return t===o.UNGROUPED_GROUP_KEY?this.getUngroupedLabel():t}getUngroupedLabel(){return this.strings().label?.ungrouped}normalizeCollapsedGroupName(t){return typeof t!="string"?"":this.isLegacyUngroupedGroupName(t)?o.UNGROUPED_GROUP_KEY:t}isLegacyUngroupedGroupName(t){return t==="Ungrouped"||t===this.getUngroupedLabel()}buildGroupedConnections(){let t=new Map;for(let i of this.connectionsList){let r=i.group?.trim()||o.UNGROUPED_GROUP_KEY;t.has(r)||t.set(r,[]),t.get(r).push(i)}let e=[];for(let[i,r]of t)e.push({name:i,connections:r});this.groupedConnections=e}groupDropPredicate=t=>t.data&&"connections"in t.data;connectionDropPredicate=t=>t.data&&!("connections"in t.data);dropGroup(t){return P(this,null,function*(){if(t.previousIndex===t.currentIndex)return;at(this.groupedConnections,t.previousIndex,t.currentIndex);let e=[];for(let i of this.groupedConnections)for(let r of i.connections)e.push(r.id);try{yield this.socket.request({action:"connection/reorder",payload:{ids:e}})}catch(i){this.common.generalHandleError(i),this.refreshState()}})}dropConnection(t,e){return P(this,null,function*(){if(t.previousIndex!==t.currentIndex){at(t.container.data,t.previousIndex,t.currentIndex);try{let i=t.container.data.map(r=>r.id);yield this.socket.request({action:"connection/reorder",payload:{group:e||void 0,ids:i}})}catch(i){this.common.generalHandleError(i),this.refreshState()}}})}dropUngroupedConnection(t){return P(this,null,function*(){if(t.previousIndex!==t.currentIndex){at(this.connectionsList,t.previousIndex,t.currentIndex);try{let e=this.connectionsList.map(i=>i.id);yield this.socket.request({action:"connection/reorder",payload:{ids:e}})}catch(e){this.common.generalHandleError(e),this.refreshState()}}})}connectionForm(t,e){this.connectionDialog.show({type:t,model:e,$event:void 0})}connect(t){return P(this,null,function*(){this.cmd.connectRequest$.next({connection:t,disableState:!0})})}disconnect(){return P(this,null,function*(){yield this.cmd.disconnect(),this.refreshState()})}deleteConnection(t,e){return P(this,null,function*(){try{yield this.common.confirm({event:e,message:this.strings().confirm?.deleteConnectionText}),yield this.socket.request({action:"connection/delete",payload:{id:t.id}}),this.common.toast(this.strings().status?.deleted)}catch(i){i!==void 0&&this.common.generalHandleError(i)}})}getConnectionClients(t){let e=this.state.redisConnections()||{},i=[];for(let r of Object.keys(e))e[r].connection?.name===t.name&&i.push({key:r,clients:e[r].clients?.length||0});return i}isAiEnabled(){return this.state.cfg()?.aiEnabled!==!1}toggleAiEnabled(t){return P(this,null,function*(){try{yield this.socket.request({action:"ai/set-groq-api-key",payload:{aiEnabled:t}});let e=zt(Ht({},this.state.cfg()),{aiEnabled:t});this.state.cfg.set(e),this.cdr.markForCheck()}catch(e){this.common.generalHandleError(e)}})}hasGroqApiKey(){return this.state.cfg()?.hasGroqApiKey===!0}isUseOwnKey(){return this.state.cfg()?.aiUseOwnKey===!0&&this.hasGroqApiKey()}toggleUseOwnKey(t){return P(this,null,function*(){if(!(t&&!this.hasGroqApiKey()))try{yield this.socket.request({action:"ai/set-groq-api-key",payload:{aiEnabled:this.state.cfg()?.aiEnabled!==!1,aiUseOwnKey:t}});let e=zt(Ht({},this.state.cfg()),{aiUseOwnKey:t});this.state.cfg.set(e),this.cdr.markForCheck()}catch(e){this.common.generalHandleError(e)}})}isAiReadonly(){return this.readonlyConnections||this.state.cfg()?.groqApiKeyReadonly===!0}isGroqApiKeyReadonly(){return this.state.cfg()?.groqApiKeyReadonly===!0}openAiSettings(t){return P(this,null,function*(){yield this.aiSettingsDialog.show(),this.cdr.markForCheck()})}openTreeSettings(t){this.treeSettingsDialog.show({$event:t})}loadAclUsers(){return P(this,null,function*(){this.aclLoading=!0,this.cdr.markForCheck();try{let t=yield this.socket.request({action:"acl/list"});this.aclUsers=t.data.users,this.aclCurrentUser=t.data.currentUser}catch(t){this.aclUsers=null}this.aclLoading=!1,this.cdr.markForCheck()})}deleteAclUser(t){return P(this,null,function*(){try{let e=this.strings().page?.acl?.confirmDelete+` "${t}"?`;yield this.common.confirm({message:e}),yield this.socket.request({action:"acl/del-user",payload:{username:t}}),this.common.toast({message:this.strings().page?.acl?.userDeleted}),this.loadAclUsers()}catch(e){}})}openAclCreate(){return P(this,null,function*(){let t=yield this.aclUserDialog.show({username:"",rules:"on >password +@all ~* &*",isNew:!0});if(t)try{yield this.socket.request({action:"acl/set-user",payload:{username:t.username,rules:t.rules}}),this.common.toast({message:this.strings().page?.acl?.userSaved}),this.loadAclUsers()}catch(e){this.common.generalHandleError(e)}})}openAclEdit(t){return P(this,null,function*(){let e=t.raw.split(" "),i=yield this.aclUserDialog.show({username:t.name,rules:e.slice(2).join(" "),isNew:!1});if(i)try{yield this.socket.request({action:"acl/set-user",payload:{username:i.username,rules:i.rules}}),this.common.toast({message:this.strings().page?.acl?.userSaved}),this.loadAclUsers()}catch(r){this.common.generalHandleError(r)}})}switchToReact(){Jt("react")}switchToVue(){Jt("vue")}static \u0275fac=function(e){return new(e||o)(F(je),F(Be),F(qe),F(Xe),F(Ze),F(Je),F(Fi),F(ii),F(Mi),F(oi),F(ke),F(ht),F(We))};static \u0275cmp=Pt({type:o,selectors:[["p3xr-ng-settings"]],decls:149,vars:49,consts:[["accordionKey","donate",3,"title","collapsible"],["actions",""],["href","https://www.paypal.me/patrikx3","target","_blank","rel","noreferrer",2,"text-decoration","none"],["mdIcon","favorite",3,"label"],["content",""],[2,"padding","12px 16px","font-size","13px","opacity","0.85","line-height","1.6"],["accordionKey","settings",3,"title"],[3,"click","label","mdIcon"],["mdIcon","add_box",3,"label"],[2,"padding","16px"],["title","GUI","accordionKey","gui-framework"],[2,"display","flex","justify-content","flex-end","padding","16px"],[1,"p3xr-gui-toggle"],[1,"p3xr-gui-toggle-active"],[1,"fab","fa-angular",2,"color","#dd0031","margin-right","6px","font-size","16px"],[1,"p3xr-gui-toggle-item",3,"click"],[1,"fab","fa-react",2,"color","#61dafb","margin-right","6px","font-size","18px"],[1,"fab","fa-vuejs",2,"color","#42b883","margin-right","6px","font-size","18px"],["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","desktop-notifications",3,"title"],[2,"display","flex","width","100%","align-items","center"],[1,"p3xr-settings-label",2,"flex","1"],[3,"change","checked"],[2,"font-size","12px","opacity","0.7"],["accordionKey","tree-settings",3,"title"],["mdIcon","edit",3,"click","label"],[1,"p3xr-tree-settings-list"],[2,"display","flex","width","100%"],[1,"p3xr-settings-value"],[1,"p3xr-settings-hint"],[2,"display","flex","width","100%","font-weight","500"],["accordionKey","promo-network",3,"title","collapsible"],["href","https://network.corifeus.com","target","_blank","rel","noreferrer",2,"text-decoration","none"],["mdIcon","travel_explore",3,"label"],[2,"padding","0 16px 12px","font-size","11px","opacity","0.5","line-height","1.4"],["mdIcon","add_box",3,"click","label"],["cdkDropList","",1,"p3xr-group-drop-list",3,"cdkDropListData","cdkDropListEnterPredicate"],["cdkDropList","",3,"cdkDropListData"],["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"],["cdkDropList","",3,"cdkDropListDropped","cdkDropListData"],["accordionKey","acl-users",3,"title"],["mdIcon","refresh",3,"click","label"],["mdIcon","person_add",3,"label"],[2,"padding","16px","opacity","0.6"],[1,"p3xr-acl-users-list"],["mdIcon","person_add",3,"click","label"],[1,"p3xr-connection-item",3,"click"],[1,"p3xr-connection-info",2,"display","flex","align-items","center"],[2,"opacity","0.5","margin-left","6px","font-size","11px","line-height","1"],[2,"color","var(--p3xr-btn-warn-bg, #f44336)","font-size","20px","width","20px","height","20px",3,"matTooltip"],[2,"width","100%"],["href","https://console.groq.com","target","_blank",2,"color","inherit","text-decoration","underline"],[1,"p3xr-settings-row-value",2,"font-family","monospace"]],template:function(e,i){if(e&1&&(l(0,"p3xr-ng-accordion",0)(1,"div",1)(2,"a",2),D(3,"p3xr-ng-button",3),a()(),l(4,"div",4)(5,"div",5),p(6),a()()(),f(7,Xi,10,5),D(8,"br"),l(9,"p3xr-ng-accordion",6)(10,"div",1)(11,"p3xr-ng-button",7),m("click",function(){return i.toggleGroupMode()}),a(),f(12,Ji,1,1,"p3xr-ng-button",8),a(),l(13,"div",4),f(14,Qi,2,1,"div",9),f(15,Un,3,2,"div"),a()(),f(16,to,9,4),D(17,"br"),l(18,"p3xr-ng-accordion",10)(19,"div",4)(20,"div",11)(21,"div",12)(22,"span",13),D(23,"i",14),p(24,"Angular"),a(),l(25,"span",15),m("click",function(){return i.switchToReact()}),D(26,"i",16),p(27,"React"),a(),l(28,"span",15),m("click",function(){return i.switchToVue()}),D(29,"i",17),p(30,"Vue"),a()()()()(),D(31,"br"),l(32,"p3xr-ng-accordion",18)(33,"div",1),f(34,eo,1,1,"p3xr-ng-button",19),a(),l(35,"div",4)(36,"mat-list")(37,"mat-list-item",20),m("click",function(s){return s.stopPropagation()}),l(38,"div",21)(39,"div",22),p(40),a(),l(41,"div",23)(42,"mat-slide-toggle",24),m("change",function(s){return i.toggleAiEnabled(s.checked)}),a()()()(),f(43,no,18,7),a()()(),D(44,"br"),l(45,"p3xr-ng-accordion",25)(46,"div",4)(47,"mat-list")(48,"mat-list-item")(49,"div",26)(50,"span",27),p(51),a(),l(52,"mat-slide-toggle",28),m("change",function(s){return i.notificationService.setEnabled(s.checked)}),a()()(),D(53,"mat-divider"),l(54,"mat-list-item")(55,"div",29),p(56),a()()()()(),D(57,"br"),l(58,"p3xr-ng-accordion",30)(59,"div",1)(60,"p3xr-ng-button",31),m("click",function(s){return i.openTreeSettings(s)}),a()(),l(61,"div",4)(62,"mat-list",32)(63,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(64,"div",33)(65,"span",27),p(66),a(),l(67,"span"),p(68),a()()(),D(69,"mat-divider"),l(70,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(71,"div")(72,"div",33)(73,"span",27),p(74),a(),l(75,"span",34),p(76),a()(),l(77,"div",35),p(78),a()()(),D(79,"mat-divider"),l(80,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(81,"div")(82,"div",33)(83,"span",27),p(84),a(),l(85,"span",34),p(86),a()(),l(87,"div",35),p(88),a()()(),D(89,"mat-divider"),l(90,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(91,"div")(92,"div",33)(93,"span",27),p(94),a(),l(95,"span",34),p(96),a()(),l(97,"div",35),p(98),a()()(),D(99,"mat-divider"),l(100,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(101,"div")(102,"div",33)(103,"span",27),p(104),a(),l(105,"span",34),p(106),a()(),l(107,"div",35),p(108),a()()(),D(109,"mat-divider"),l(110,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(111,"div",33)(112,"span",27),p(113),a(),l(114,"span"),p(115),a()()(),D(116,"mat-divider"),l(117,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(118,"div",33)(119,"span",27),p(120),a(),l(121,"span"),p(122),a()()(),D(123,"mat-divider"),l(124,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(125,"div",33)(126,"span",27),p(127),a(),l(128,"span"),p(129),a()()(),D(130,"mat-divider"),l(131,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(132,"div",36),p(133),a()(),D(134,"mat-divider"),l(135,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(136,"div",36),p(137),a()(),D(138,"mat-divider"),l(139,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(140,"div")(141,"div",36),p(142),a(),l(143,"div",35),p(144),a()()(),D(145,"mat-divider"),l(146,"mat-list-item",20),m("click",function(s){return i.openTreeSettings(s)}),l(147,"div",36),p(148),a()()()()()),e&2){let r,s,d,h,u,w,k,O,U,Q,G,I,tt,ct,H,W,Z,xt,Vt,At,Nt,Ut,vt,et,St,z,bt,$,K,j,B,Gt,q;x("title",(r=i.strings().title)==null?null:r.donateTitle)("collapsible",!1),_(3),x("label",((s=i.strings().title)==null?null:s.donate)+" \u2014 PayPal"),_(3),V(" ",(d=i.strings().title)==null?null:d.donateDescription," "),_(),C(i.isPromoDomain?7:-1),_(2),x("title",(h=i.strings().label)==null?null:h.connections),_(2),x("label",(u=i.strings().label)==null?null:u.grouped)("mdIcon",i.groupModeEnabled?"check_box":"check_box_outline_blank"),_(),C(i.readonlyConnections?-1:12),_(2),C(i.connectionsList.length===0?14:-1),_(),C(i.connectionsList.length>0?15:-1),_(),C(i.currentConnectionId?16:-1),_(16),x("title",(w=i.strings().label)==null?null:w.aiSettings),_(2),C(!i.readonlyConnections&&!i.isGroqApiKeyReadonly()?34:-1),_(6),g((k=i.strings().label)==null?null:k.aiEnabled),_(2),x("checked",i.isAiEnabled())("disabled",i.isAiReadonly()),_(),C(i.isAiEnabled()&&i.hasGroqApiKey()?43:-1),_(2),x("title",(O=i.strings().label)==null?null:O.desktopNotifications),_(6),g((U=i.strings().label)==null?null:U.desktopNotificationsEnabled),_(),x("checked",i.notificationService.isEnabled()),_(4),g((Q=i.strings().label)==null?null:Q.desktopNotificationsInfo),_(2),x("title",(G=i.strings().form)==null||G.treeSettings==null||G.treeSettings.label==null?null:G.treeSettings.label.formName),_(2),x("label",(I=i.strings().intention)==null?null:I.edit),_(6),g((tt=i.strings().form)==null||tt.treeSettings==null||tt.treeSettings.field==null?null:tt.treeSettings.field.treeSeparator),_(2),g(i.settings.redisTreeDivider()||((ct=i.strings().label)==null?null:ct.treeSeparatorEmptyNote)),_(6),g((H=i.strings().form)==null||H.treeSettings==null||H.treeSettings.field==null?null:H.treeSettings.field.page),_(2),g(i.settings.pageCount()),_(2),g((W=i.strings().form)==null||W.treeSettings==null||W.treeSettings.error==null?null:W.treeSettings.error.page),_(6),g((Z=i.strings().form)==null||Z.treeSettings==null||Z.treeSettings.field==null?null:Z.treeSettings.field.keyPageCount),_(2),g(i.settings.keyPageCount()),_(2),g((xt=i.strings().form)==null||xt.treeSettings==null||xt.treeSettings.error==null?null:xt.treeSettings.error.keyPageCount),_(6),g((Vt=i.strings().form)==null||Vt.treeSettings==null?null:Vt.treeSettings.maxValueDisplay),_(2),g(i.settings.maxValueDisplay()),_(2),g((At=i.strings().form)==null||At.treeSettings==null?null:At.treeSettings.maxValueDisplayInfo),_(6),g((Nt=i.strings().form)==null||Nt.treeSettings==null?null:Nt.treeSettings.maxKeys),_(2),g(i.settings.maxKeys()),_(2),g((Ut=i.strings().form)==null||Ut.treeSettings==null?null:Ut.treeSettings.maxKeysInfo),_(5),g((vt=i.strings().form)==null||vt.treeSettings==null||vt.treeSettings.field==null?null:vt.treeSettings.field.keysSort),_(2),g(i.settings.keysSort()?(et=i.strings().label)==null||et.keysSort==null?null:et.keysSort.on:(et=i.strings().label)==null||et.keysSort==null?null:et.keysSort.off),_(5),g((St=i.strings().form)==null||St.treeSettings==null||St.treeSettings.field==null?null:St.treeSettings.field.searchMode),_(2),g(i.settings.searchClientSide()?(z=i.strings().form)==null||z.treeSettings==null||z.treeSettings.label==null?null:z.treeSettings.label.searchModeClient:(z=i.strings().form)==null||z.treeSettings==null||z.treeSettings.label==null?null:z.treeSettings.label.searchModeServer),_(5),g((bt=i.strings().form)==null||bt.treeSettings==null||bt.treeSettings.field==null?null:bt.treeSettings.field.searchModeStartsWith),_(2),g(i.settings.searchStartsWith()?($=i.strings().form)==null||$.treeSettings==null||$.treeSettings.label==null?null:$.treeSettings.label.searchModeStartsWith:($=i.strings().form)==null||$.treeSettings==null||$.treeSettings.label==null?null:$.treeSettings.label.searchModeIncludes),_(4),g(i.settings.jsonFormat()===2?(K=i.strings().form)==null||K.treeSettings==null||K.treeSettings.label==null?null:K.treeSettings.label.jsonFormatTwoSpace:(K=i.strings().form)==null||K.treeSettings==null||K.treeSettings.label==null?null:K.treeSettings.label.jsonFormatFourSpace),_(4),g(i.settings.animation()?(j=i.strings().form)==null||j.treeSettings==null||j.treeSettings.label==null?null:j.treeSettings.label.animation:(j=i.strings().form)==null||j.treeSettings==null||j.treeSettings.label==null?null:j.treeSettings.label.noAnimation),_(5),g(i.settings.undoEnabled()?(B=i.strings().form)==null||B.treeSettings==null||B.treeSettings.label==null?null:B.treeSettings.label.undoEnabled:(B=i.strings().form)==null||B.treeSettings==null||B.treeSettings.label==null?null:B.treeSettings.label.undoDisabled),_(2),g((Gt=i.strings().form)==null||Gt.treeSettings==null?null:Gt.treeSettings.undoHint),_(4),g(i.settings.showDiffBeforeSave()?(q=i.strings().form)==null||q.treeSettings==null||q.treeSettings.label==null?null:q.treeSettings.label.diffEnabled:(q=i.strings().form)==null||q.treeSettings==null||q.treeSettings.label==null?null:q.treeSettings.label.diffDisabled)}},dependencies:[Ae,Ye,Me,Oe,Fe,Ke,$e,ze,Ge,He,Ne,ei,ti,Ve,Le,Ue,Oi,Ri,Ti,Pi,Qe,ni],styles:["[_nghost-%COMP%]{display:block;color:var(--mat-app-text-color, inherit)}.p3xr-settings-hint[_ngcontent-%COMP%]{font-size:12px;color:var(--mat-app-text-color, rgba(0, 0, 0, .54));opacity:.7}.p3xr-gui-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:stretch;border-radius:4px;overflow:hidden;border:1px solid var(--p3xr-border-color, rgba(0,0,0,.12))}.p3xr-gui-toggle-active[_ngcontent-%COMP%], .p3xr-gui-toggle-item[_ngcontent-%COMP%]{padding:8px 12px;font-size:14px;-webkit-user-select:none;user-select:none;display:inline-flex;align-items:center}.p3xr-gui-toggle-active[_ngcontent-%COMP%]{font-weight:700;background-color:var(--p3xr-btn-primary-bg);color:var(--p3xr-btn-primary-color)}.p3xr-gui-toggle-item[_ngcontent-%COMP%]{font-weight:500;cursor:pointer}.p3xr-gui-toggle-active[_ngcontent-%COMP%] i[class*=fa-][_ngcontent-%COMP%]{text-shadow:0 0 3px rgba(0,0,0,.6),0 0 8px rgba(0,0,0,.3)}.p3xr-gui-toggle-item[_ngcontent-%COMP%]:hover{background-color:var(--p3xr-hover-bg)}.hide-xs[_ngcontent-%COMP%]{display:inline}.show-xs-tooltip[_ngcontent-%COMP%]{display:none}@media(max-width:599px){.hide-xs[_ngcontent-%COMP%]{display:none!important}.p3xr-connection-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:40px!important;width:40px!important;height:40px!important;padding:0!important;margin:2px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}.p3xr-connection-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .p3xr-connection-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0!important}}.p3xr-connection-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;padding:8px 8px 8px 16px;min-height:56px;box-sizing:border-box}.p3xr-connection-info[_ngcontent-%COMP%]{flex:1;min-width:0;overflow:hidden}.p3xr-connection-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex-shrink:0}.p3xr-connection-item.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;background:var(--mat-app-background-color, #fff)}.p3xr-connection-item.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.3}.cdk-drop-list-dragging[_ngcontent-%COMP%] .p3xr-connection-item[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.p3xr-connection-group-block.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;background:var(--mat-app-background-color, #fff)}.p3xr-connection-group-block.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.3}.p3xr-group-drop-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .p3xr-connection-group-block[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.p3xr-connection-group-header[cdkDragHandle][_ngcontent-%COMP%]{cursor:grab}.p3xr-tree-settings-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{cursor:pointer}.p3xr-tree-settings-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:hover{background-color:var(--p3xr-hover-bg)}.p3xr-acl-users-list[_ngcontent-%COMP%] .p3xr-acl-clickable[_ngcontent-%COMP%]{cursor:pointer}.p3xr-acl-users-list[_ngcontent-%COMP%] .p3xr-acl-clickable[_ngcontent-%COMP%]:hover{background-color:var(--p3xr-hover-bg)} .p3xr-tree-settings-list .mdc-list-item__primary-text{width:100%} .p3xr-settings-label{font-weight:500} .p3xr-settings-value{font-weight:400;opacity:.8}"],changeDetection:0})}return o})();export{gr as SettingsComponent};