1import{b as x}from"./chunk-NEQEN45E.js";import{$a as b,Ba as f,Db as V,Eb as I,Fb as j,Hb as C,Ib as A,Jb as v,Na as S,Pa as l,Pb as R,_ as w,da as D,ea as B,gb as E,hb as y,ia as L,jb as M,kb as p,nb as a,ob as s,pb as F,ra as O,sa as c,sb as h,ta as u,ua as P,vb as d,wb as r,xb as T,yb as _}from"./chunk-Y7DP5OXS.js";var k=class i{constructor(e){this.document=e}lockCount=0;savedScrollY=0;usingFixedBodyLock=!1;originalBodyStyles=null;lock(){if(this.lockCount+=1,this.lockCount!==1)return;let e=this.document.body;if(e.classList.add("dialog-scroll-lock"),!this.shouldUseFixedBodyLock())return;let t=this.document.defaultView;t&&(this.savedScrollY=t.scrollY||0,this.originalBodyStyles={position:e.style.position,top:e.style.top,left:e.style.left,right:e.style.right,width:e.style.width},e.style.position="fixed",e.style.top=`-${this.savedScrollY}px`,e.style.left="0",e.style.right="0",e.style.width="100%",this.usingFixedBodyLock=!0)}unlock(){if(this.lockCount===0||(this.lockCount-=1,this.lockCount>0))return;let e=this.document.body;if(e.classList.remove("dialog-scroll-lock"),!this.usingFixedBodyLock)return;let t=this.document.defaultView;this.originalBodyStyles&&(e.style.position=this.originalBodyStyles.position,e.style.top=this.originalBodyStyles.top,e.style.left=this.originalBodyStyles.left,e.style.right=this.originalBodyStyles.right,e.style.width=this.originalBodyStyles.width),t&&t.scrollTo(0,this.savedScrollY),this.usingFixedBodyLock=!1,this.originalBodyStyles=null,this.savedScrollY=0}shouldUseFixedBodyLock(){let e=this.document.defaultView;if(!e)return!1;let t=e.navigator.userAgent,n=/iP(hone|od|ad)/.test(t)||e.navigator.platform==="MacIntel"&&e.navigator.maxTouchPoints>1,o=/WebKit/i.test(t),m=/CriOS/i.test(t),g=/FxiOS/i.test(t);return n&&o&&!m&&!g}static \u0275fac=function(t){return new(t||i)(D(x))};static \u0275prov=w({token:i,factory:i.\u0275fac,providedIn:"root"})};var K=["dialogPanel"],Y=[[["","slot","body"]],"*",[["","slot","footer"]]],N=["[slot='body']","*","[slot='footer']"];function Q(i,e){if(i&1){let t=h();a(0,"button",9),d("click",function(){c(t);let o=r(2);return u(o.onCloseButtonClick())}),P(),a(1,"svg",10),F(2,"path",11)(3,"path",12),s()()}}function U(i,e){if(i&1){let t=h();a(0,"button",16),d("click",function(){c(t);let o=r(3);return u(o.onSecondaryButtonClick())}),C(1),s()}if(i&2){let t=r(3);y("disabled",t.secondaryButtonDisabled),l(),v(" ",t.secondaryButtonLabel," ")}}function q(i,e){if(i&1){let t=h();a(0,"button",17),d("click",function(){c(t);let o=r(3);return u(o.onPrimaryButtonClick())}),C(1),s()}if(i&2){let t=r(3);y("disabled",t.primaryButtonDisabled),l(),v(" ",t.primaryButtonLabel," ")}}function W(i,e){if(i&1){let t=h();a(0,"button",18),d("click",function(){c(t);let o=r(3);return u(o.onDangerButtonClick())}),C(1),s()}if(i&2){let t=r(3);y("disabled",t.dangerButtonDisabled),l(),v(" ",t.dangerButtonLabel," ")}}function $(i,e){if(i&1&&b(0,U,2,2,"button",13)(1,q,2,2,"button",14)(2,W,2,2,"button",15),i&2){let t=r(2);p(t.secondaryButtonLabel!=null&&t.secondaryButtonLabel.trim()?0:-1),l(),p(t.primaryButtonLabel!=null&&t.primaryButtonLabel.trim()?1:-1),l(),p(t.dangerButtonLabel!=null&&t.dangerButtonLabel.trim()?2:-1)}}function G(i,e){if(i&1){let t=h();a(0,"div",2),d("click",function(){c(t);let o=r();return u(o.onBackdropClick())}),a(1,"div",3,0),d("click",function(o){return c(t),u(o.stopPropagation())}),a(3,"header",4)(4,"h2",5),C(5),s(),b(6,Q,4,0,"button",6),s(),a(7,"section",7),_(8),_(9,1),s(),a(10,"footer",8),_(11,2),b(12,$,3,3),s()()()}if(i&2){let t=r();l(),M("dialog-panel--sm",t.size==="sm")("dialog-panel--md",t.size==="md")("dialog-panel--lg",t.size==="lg"),E("aria-labelledby",t.resolvedAriaLabelledBy)("aria-label",t.resolvedAriaLabel),l(3),y("id",t.titleId),l(),A(t.title),l(),p(t.dismissible?6:-1),l(6),p(t.hasFooterActions?12:-1)}}var H=class i{open=!1;title="";dismissible=!0;size="md";ariaLabel;secondaryButtonLabel;primaryButtonLabel;dangerButtonLabel;secondaryButtonDisabled=!1;primaryButtonDisabled=!1;dangerButtonDisabled=!1;dismissed=new f;secondaryButtonClick=new f;primaryButtonClick=new f;dangerButtonClick=new f;dialogPanelRef;scrollLock=B(k);document=B(x);wasOpen=!1;scrollLockActive=!1;previouslyFocusedElement=null;static instanceCounter=0;
1titleId=`app-dialog-title-${i.instanceCounter+=1}`;ngOnChanges(e){"open"in e&&(this.open&&!this.wasOpen&&this.onOpen(),!this.open&&this.wasOpen&&this.onClose(),this.wasOpen=this.open)}ngOnDestroy(){this.onClose()}get hasVisibleTitle(){return this.title.trim().length>0}get resolvedAriaLabelledBy(){return this.hasVisibleTitle?this.titleId:null}get resolvedAriaLabel(){return this.hasVisibleTitle?null:this.ariaLabel?.trim()||null}get hasFooterActions(){return this.hasButtonLabel(this.secondaryButtonLabel)||this.hasButtonLabel(this.primaryButtonLabel)||this.hasButtonLabel(this.dangerButtonLabel)}onBackdropClick(){this.dismissible&&this.dismissed.emit("backdrop")}onCloseButtonClick(){this.dismissible&&this.dismissed.emit("close-button")}onSecondaryButtonClick(){this.secondaryButtonDisabled||this.secondaryButtonClick.emit()}onPrimaryButtonClick(){this.primaryButtonDisabled||this.primaryButtonClick.emit()}onDangerButtonClick(){this.dangerButtonDisabled||this.dangerButtonClick.emit()}onDocumentKeydown(e){if(this.open){if(e.key==="Escape"&&this.dismissible){e.preventDefault(),this.dismissed.emit("escape");return}e.key==="Tab"&&this.trapFocus(e)}}onOpen(){let e=this.document.activeElement;this.previouslyFocusedElement=e instanceof HTMLElement?e:null,this.scrollLock.lock(),this.scrollLockActive=!0,setTimeout(()=>this.focusInitialElement(),0)}onClose(){this.scrollLockActive&&(this.scrollLock.unlock(),this.scrollLockActive=!1),this.restoreFocus()}
1getFocusableElements(){let e=this.dialogPanelRef?.nativeElement;if(!e)return[];let t=["a[href]","button:not([disabled])","textarea:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter(n=>n.getClientRects().length>0)}focusInitialElement(){if(!this.open)return;let e=this.dialogPanelRef?.nativeElement;if(!e)return;let t=this.getFocusableElements();if(t.length>0){t[0].focus();return}e.focus()}trapFocus(e){let t=this.dialogPanelRef?.nativeElement;if(!t)return;let n=this.getFocusableElements();if(n.length===0){e.preventDefault(),t.focus();return}let o=n[0],m=n[n.length-1],g=this.document.activeElement;if(!(g?t.contains(g):!1)){e.preventDefault(),o.focus();return}if(e.shiftKey&&g===o){e.preventDefault(),m.focus();return}!e.shiftKey&&g===m&&(e.preventDefault(),o.focus())}restoreFocus(){if(this.previouslyFocusedElement){if(!this.previouslyFocusedElement.isConnected){this.previouslyFocusedElement=null;return}this.previouslyFocusedElement.focus({preventScroll:!0}),this.previouslyFocusedElement=null}}hasButtonLabel(e){return!!e?.trim()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=L({type:i,selectors:[["app-dialog"]],viewQuery:function(t,n){if(t&1&&V(K,5),t&2){let o;I(o=j())&&(n.dialogPanelRef=o.first)}},hostBindings:function(t,n){t&1&&d("keydown",function(m){return n.onDocumentKeydown(m)},!1,S)},inputs:{open:"open",title:"title",dismissible:"dismissible",size:"size",ariaLabel:"ariaLabel",secondaryButtonLabel:"secondaryButtonLabel",primaryButtonLabel:"primaryButtonLabel",dangerButtonLabel:"dangerButtonLabel",secondaryButtonDisabled:"secondaryButtonDisabled",primaryButtonDisabled:"primaryButtonDisabled",dangerButtonDisabled:"dangerButtonDisabled"},outputs:{dismissed:"dismissed",secondaryButtonClick:"secondaryButtonClick",primaryButtonClick:"primaryButtonClick",dangerButtonClick:"dangerButtonClick"},standalone:!0,features:[O,R],ngContentSelectors:N,decls:1,vars:1,consts:[["dialogPanel",""],[1,"dialog-backdrop"],[1,"dialog-backdrop",3,"click"],["role","dialog","aria-modal","true","tabindex","-1",1,"dialog-panel",3,"click"],[1,"dialog-header"],[1,"dialog-title",3,"id"],["type","button","aria-label","Close dialog",1,"dialog-close"],[1,"dialog-body"],[1,"dialog-footer"],["type","button","aria-label","Close dialog",1,"dialog-close",3,"click"],["viewBox","0 0 24 24","aria-hidden","true","focusable","false"],["d","M6 6L18 18"],["d","M18 6L6 18"],["type","button",1,"btn","btn-secondary",3,"disabled"],["type","button",1,"btn","btn-primary",3,"disabled"],["type","button",1,"btn","btn-danger",3,"disabled"],["type","button",1,"btn","btn-secondary",3,"click","disabled"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["type","button",1,"btn","btn-danger",3,"click","disabled"]],template:function(t,n){t&1&&(T(Y),b(0,G,13,12,"div",1)),t&2&&p(n.open?0:-1)},styles:[".dialog-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:1rem;background:var(--color-dialog-overlay);-webkit-backdrop-filter:blur(12px) saturate(110%);backdrop-filter:blur(12px) saturate(110%);animation:_ngcontent-%COMP%_dialog-backdrop-fade .15s ease-out}.dialog-panel[_ngcontent-%COMP%]{--dialog-body-height: 14rem;--dialog-shell-offset: 12rem;width:min(100%,560px);max-height:min(100vh - 2rem,80vh);max-height:min(100dvh - 2rem,80dvh);display:flex;flex-direction:column;overflow:hidden;border-radius:var(--radius-xl);border:1px solid var(--color-dialog-border);background:var(--color-dialog-surface);box-shadow:var(--shadow-lg);z-index:101;animation:_ngcontent-%COMP%_dialog-panel-pop .15s ease-out}.dialog-panel--sm[_ngcontent-%COMP%]{max-width:400px;--dialog-body-height: 10rem;--dialog-shell-offset: 11rem}.dialog-panel--md[_ngcontent-%COMP%]{max-width:560px;--dialog-body-height: 14rem;--dialog-shell-offset: 12rem}.dialog-panel--lg[_ngcontent-%COMP%]{max-width:720px;--dialog-body-height: 18rem;--dialog-shell-offset: 13rem}.dialog-header[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid var(--color-dialog-border)}.dialog-title[_ngcontent-%COMP%]{margin:0;font-size:1.125rem;font-weight:700;color:var(--color-text-primary)}.dialog-close[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);cursor:pointer}.dialog-close[_ngcontent-%COMP%]:hover{background:var(--color-surface-inset);color:var(--color-text-primary)}.dialog-close[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.dialog-body[_ngcontent-%COMP%]{flex:1 1 auto;height:auto;max-height:calc(80vh - var(--dialog-shell-offset));max-height:calc(80dvh - var(--dialog-shell-offset));min-height:min(8rem,var(--dialog-body-height));overflow-y:auto;padding:1rem 1.25rem}.dialog-footer[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;
1gap:.75rem;padding:1rem 1.25rem;border-top:1px solid var(--color-dialog-border)}.dialog-footer[_ngcontent-%COMP%]:empty{display:none}@keyframes _ngcontent-%COMP%_dialog-backdrop-fade{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_dialog-panel-pop{0%{opacity:0;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}@media (max-width: 640px){.dialog-panel[_ngcontent-%COMP%]{max-height:min(100vh - 2rem,75vh);max-height:min(100dvh - 2rem,75dvh)}.dialog-body[_ngcontent-%COMP%]{max-height:calc(75vh - var(--dialog-shell-offset));max-height:calc(75dvh - var(--dialog-shell-offset))}.dialog-footer[_ngcontent-%COMP%]{flex-direction:column-reverse;align-items:stretch}.dialog-footer[_ngcontent-%COMP%] [_ngcontent-%COMP%]:is(button, a)[_ngcontent-%COMP%]{width:100%}}@media (prefers-reduced-motion: reduce){.dialog-backdrop[_ngcontent-%COMP%], .dialog-panel[_ngcontent-%COMP%]{animation:none}}"],changeDetection:0})};export{H as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.