PageSourceSearch

https://www.aat.org.uk/csr/chunk-IEUZBQKF.js

js aat.org.uk collected 2026-10-03 21:40:24 UTC 55,295 bytes, 184 lines download raw bytes

vendor: 4,732 bytes, line 1
1import{a as ft,b as ht}from"./chunk-ZXSNIZ6S.js";import{a as gt,b as ut}from"./chunk-5T5T7ANT.js";import{la as _t,m as se}from"./chunk-YQOD7X2Z.js";import{a as dt}from"./chunk-563YFTIG.js";import{c as Le,d as G,f as P,h as J,i as U,j as K}from"./chunk-36JN3LZY.js";import{G as ee,R as M,S as te,T as _e,X as ct,Y as Ve,Z as ie,_ as ne,a as de,aa as Ae,b as Me,c as Be,ca as je,d as Pe,da as oe,ea as pt,fa as Ze,ga as $e,j as Qe,ka as B,m as at,n as st,na as He,q as me,r as Ne,ra as ae,sa as mt,u as lt,x as rt,z as Fe}from"./chunk-WPHW6CRH.js";import"./chunk-76O7YCWW.js";import"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{A as Se,E as pe,j as De,l as ze,o as ot,p as ke}from"./chunk-PO2RDVKE.js";import{$b as Z,Ab as c,Ac as Ie,Da as I,J as Ye,Ja as We,Lc as q,Mb as Q,Oc as we,Pb as w,Pc as et,Qc as tt,Rb as D,Wb as a,Xb as m,Yb as _,Yc as z,Za as Ge,Zb as b,_b as N,ac as $,bc as X,bd as it,ca as fe,cc as Y,da as he,db as p,dc as F,ec as L,ed as nt,fa as be,fc as xe,ha as h,ib as E,jb as Ce,jc as T,lc as l,mc as Te,nc as re,oa as v,oc as f,od as d,pa as x,pb as Re,pc as Ee,pd as W,qa as j,qc as g,rc as u,ta as qe,ub as k,uc as Ue,vb as ye,vc as Ke,wb as Je,xc as ce,yb as S,yc as C,zb as ve,zc as R}from"./chunk-3URBZWPM.js";import{a as Oe}from"./chunk-ODN5LVDJ.js";var Lt=["data-p-icon","window-maximize"],bt=(()=>{class t extends He{pathId;onInit(){this.pathId="url(#"+M()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=I(t)))(i||t)}})();static \u0275cmp=k({type:t,selectors:[["","data-p-icon","window-maximize"]],features:[S],attrs:Lt,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(j(),N(0,"g"),$(1,"path",0),Z(),N(2,"defs")(3,"clipPath",1),$(4,"rect",2),Z()()),n&2&&(Q("clip-path",i.pathId),p(3),xe("id",i.pathId))},encapsulation:2})}return t})();var Mt=["data-p-icon","window-minimize"],Ct=(()=>{class t extends He{pathId;onInit(){this.pathId="url(#"+M()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=I(t)))(i||t)}})();static \u0275cmp=k({type:t,selectors:[["","data-p-icon","window-minimize"]],features:[S],attrs:Mt,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.616
152 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(j(),N(0,"g"),$(1,"path",0),Z(),N(2,"defs")(3,"clipPath",1),$(4,"rect",2),Z()()),n&2&&(Q("clip-path",i.pathId),p(3),xe("id",i.pathId))},encapsulation:2})}return t})();var yt=(()=>{class t extends oe{pFocusTrapDisabled=!1;platformId=h(We);document=h(qe);firstHiddenFocusableElement;lastHiddenFocusableElement;onInit(){pe(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}onChanges(e){e.pFocusTrapDisabled&&pe(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let n=i=>st("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,s=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?lt(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Ne(s)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,s=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?rt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Ne(s)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=I(t)))(i||t)}})();static \u0275dir=Je({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",d]},features:[S]})}return t})();var vt=`
2    .p-dialog {
3        max-height: 90%;
4        transform: scale(1);
5        border-radius: dt('dialog.border.radius');
6        box-shadow: dt('dialog.shadow');
7        background: dt('dialog.background');
8        border: 1px solid dt('dialog.border.color');
9        color: dt('dialog.color');
10    }
11
12    .p-dialog-content {
13        overflow-y: auto;
14        padding: dt('dialog.content.padding');
15    }
16
17    .p-dialog-header {
18        display: flex;
19        align-items: center;
20        justify-content: space-between;
21        flex-shrink: 0;
22        padding: dt('dialog.header.padding');
23    }
24
25    .p-dialog-title {
26        font-weight: dt('dialog.title.font.weight');
27        font-size: dt('dialog.title.font.size');
28    }
29
30    .p-dialog-footer {
31        flex-shrink: 0;
32        padding: dt('dialog.footer.padding');
33        display: flex;
34        justify-content: flex-end;
35        gap: dt('dialog.footer.gap');
36    }
37
38    .p-dialog-header-actions {
39        display: flex;
40        align-items: center;
41        gap: dt('dialog.header.gap');
42    }
43
44    .p-dialog-enter-active {
45        transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
46    }
47
48    .p-dialog-leave-active {
49        transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
50    }
51
52    .p-dialog-enter-from,
53    .p-dialog-leave-to {
54        opacity: 0;
55        transform: scale(0.7);
56    }
57
58    .p-dialog-top .p-dialog,
59    .p-dialog-bottom .p-dialog,
60    .p-dialog-left .p-dialog,
61    .p-dialog-right .p-dialog,
62    .p-dialog-topleft .p-dialog,
63    .p-dialog-topright .p-dialog,
64    .p-dialog-bottomleft .p-dialog,
65    .p-dialog-bottomright .p-dialog {
66        margin: 0.75rem;
67        transform: translate3d(0px, 0px, 0px);
68    }
69
70    .p-dialog-top .p-dialog-enter-active,
71    .p-dialog-top .p-dialog-leave-active,
72    .p-dialog-bottom .p-dialog-enter-active,
73    .p-dialog-bottom .p-dialog-leave-active,
74    .p-dialog-left .p-dialog-enter-active,
75    .p-dialog-left .p-dialog-leave-active,
76    .p-dialog-right .p-dialog-enter-active,
77    .p-dialog-right .p-dialog-leave-active,
78    .p-dialog-topleft .p-dialog-enter-active,
79    .p-dialog-topleft .p-dialog-leave-active,
80    .p-dialog-topright .p-dialog-enter-active,
81    .p-dialog-topright .p-dialog-leave-active,
82    .p-dialog-bottomleft .p-dialog-enter-active,
83    .p-dialog-bottomleft .p-dialog-leave-active,
84    .p-dialog-bottomright .p-dialog-enter-active,
85    .p-dialog-bottomright .p-dialog-leave-active {
86        transition: all 0.3s ease-out;
87    }
88
89    .p-dialog-top .p-dialog-enter-from,
90    .p-dialog-top .p-dialog-leave-to {
91        transform: translate3d(0px, -100%, 0px);
92    }
93
94    .p-dialog-bottom .p-dialog-enter-from,
95    .p-dialog-bottom .p-dialog-leave-to {
96        transform: translate3d(0px, 100%, 0px);
97    }
98
99    .p-dialog-left .p-dialog-enter-from,
100    .p-dialog-left .p-dialog-leave-to,
101    .p-dialog-topleft .p-dialog-enter-from,
102    .p-dialog-topleft .p-dialog-leave-to,
103    .p-dialog-bottomleft .p-dialog-enter-from,
104    .p-dialog-bottomleft .p-dialog-leave-to {
105        transform: translate3d(-100%, 0px, 0px);
106    }
107
108    .p-dialog-right .p-dialog-enter-from,
109    .p-dialog-right .p-dialog-leave-to,
110    .p-dialog-topright .p-dialog-enter-from,
111    .p-dialog-topright .p-dialog-leave-to,
112    .p-dialog-bottomright .p-dialog-enter-from,
113    .p-dialog-bottomright .p-dialog-leave-to {
114        transform: translate3d(100%, 0px, 0px);
115    }
116
117    .p-dialog-left:dir(rtl) .p-dialog-enter-from,
118    .p-dialog-left:dir(rtl) .p-dialog-leave-to,
119    .p-dialog-topleft:dir(rtl) .p-dialog-enter-from,
120    .p-dialog-topleft:dir(rtl) .p-dialog-leave-to,
121    .p-dialog-bottomleft:dir(rtl) .p-dialog-enter-from,
122    .p-dialog-bottomleft:dir(rtl) .p-dialog-leave-to {
123        transform: translate3d(100%, 0px, 0px);
124    }
125
126    .p-dialog-right:dir(rtl) .p-dialog-enter-from,
127    .p-dialog-right:dir(rtl) .p-dialog-leave-to,
128    .p-dialog-topright:dir(rtl) .p-dialog-enter-from,
129    .p-dialog-topright:dir(rtl) .p-dialog-leave-to,
130    .p-dialog-bottomright:dir(rtl) .p-dialog-enter-from,
131    .p-dialog-bottomright:dir(rtl) .p-dialog-leave-to {
132        transform: translate3d(-100%, 0px, 0px);
133    }
134
135    .p-dialog-maximized {
136        width: 100vw !important;
137        height: 100vh !important;
138        top: 0px !important;
139        left: 0px !important;
140        max-height: 100%;
141        height: 100%;
142        border-radius: 0;
143    }
144
145    .p-dialog-maximized .p-dialog-content {
146        flex-grow: 1;
147    }
148
149    .p-dialog .p-resizable-handle {
150        position: absolute;
151        font-size: 0.1px;
152        display: block;
153        cursor: se-resize;
154        width: 12px;
155        height: 12px;
156        right: 1px;
157        bottom: 1px;
158    }
159`;var Vt=["header"],xt=["content"],Tt=["footer"],At=["closeicon"],jt=["maximizeicon"],Ht=["minimizeicon"],Ot=["headless"],Rt=["titlebar"],Pt=["*",[["p-footer"]]],Qt=["*","p-footer"],Nt=(t,o)=>({transform:t,transition:o}),Zt=t=>({value:"visible",params:t});function $t(t,o){t&1&&F(0)}function Xt(t,o){if(t&1&&(X(0),c(1,$t,1,0,"ng-container",11),Y()),t&2){let e=l(3);p(),a("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function Yt(t,o){if(t&1){let e=L();m(0,"div",15),T("mousedown",function(i){v(e);let s=l(4);return x(s.initResize(i))}),_()}if(t&2){let e=l(4);C(e.cx("resizeHandle")),Ke("z-index",90),a("pBind",e.ptm("resizeHandle"))}}function qt(t,o){if(t&1&&(m(0,"span",19),R(1),_()),t&2){let e=l(5);C(e.cx("title")),a("id",e.ariaLabelledBy)("pBind",e.ptm("title")),p(),Ie(e.header)}}function Wt(t,o){t&1&&F(0)}
vendor: 6,566 bytes, line 159
159function Gt(t,o){if(t&1&&b(0,"span",23),t&2){let e=l(7);a("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function Jt(t,o){t&1&&(j(),b(0,"svg",26))}function Ut(t,o){t&1&&(j(),b(0,"svg",27))}function Kt(t,o){if(t&1&&(X(0),c(1,Jt,1,0,"svg",24)(2,Ut,1,0,"svg",25),Y()),t&2){let e=l(7);p(),a("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),p(),a("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function ei(t,o){}function ti(t,o){t&1&&c(0,ei,0,0,"ng-template")}function ii(t,o){if(t&1&&(X(0),c(1,ti,1,0,null,11),Y()),t&2){let e=l(7);p(),a("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function ni(t,o){}function oi(t,o){t&1&&c(0,ni,0,0,"ng-template")}function ai(t,o){if(t&1&&(X(0),c(1,oi,1,0,null,11),Y()),t&2){let e=l(7);p(),a("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function si(t,o){if(t&1&&c(0,Gt,1,1,"span",21)(1,Kt,3,2,"ng-container",22)(2,ii,2,1,"ng-container",22)(3,ai,2,1,"ng-container",22),t&2){let e=l(6);a("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),p(),a("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),p(),a("ngIf",!e.maximized),p(),a("ngIf",e.maximized)}}function li(t,o){if(t&1){let e=L();m(0,"p-button",20),T("onClick",function(){v(e);let i=l(5);return x(i.maximize())})("keydown.enter",function(){v(e);let i=l(5);return x(i.maximize())}),c(1,si,4,4,"ng-template",null,4,z),_()}if(t&2){let e=l(5);a("pt",e.ptm("pcMaximizeButton"))("styleClass",e.cx("pcMaximizeButton"))("ariaLabel",e.maximized?e.minimizeLabel:e.maximizeLabel)("tabindex",e.maximizable?"0":"-1")("buttonProps",e.maximizeButtonProps)}}function ri(t,o){if(t&1&&b(0,"span"),t&2){let e=l(8);C(e.closeIcon)}}function ci(t,o){t&1&&(j(),b(0,"svg",30))}function pi(t,o){if(t&1&&(X(0),c(1,ri,1,2,"span",28)(2,ci,1,0,"svg",29),Y()),t&2){let e=l(7);p(),a("ngIf",e.closeIcon),p(),a("ngIf",!e.closeIcon)}}function di(t,o){}function mi(t,o){t&1&&c(0,di,0,0,"ng-template")}function _i(t,o){if(t&1&&(m(0,"span"),c(1,mi,1,0,null,11),_()),t&2){let e=l(7);p(),a("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function gi(t,o){if(t&1&&c(0,pi,3,2,"ng-container",22)(1,_i,2,1,"span",22),t&2){let e=l(6);a("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),p(),a("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function ui(t,o){if(t&1){let e=L();m(0,"p-button",20),T("onClick",function(i){v(e);let s=l(5);return x(s.close(i))})("keydown.enter",function(i){v(e);let s=l(5);return x(s.close(i))}),c(1,gi,2,2,"ng-template",null,4,z),_()}if(t&2){let e=l(5);a("pt",e.ptm("pcCloseButton"))("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function fi(t,o){if(t&1){let e=L();m(0,"div",15,3),T("mousedown",function(i){v(e);let s=l(4);return x(s.initDrag(i))}),c(2,qt,2,5,"span",16)(3,Wt,1,0,"ng-container",11),m(4,"div",17),c(5,li,3,5,"p-button",18)(6,ui,3,5,"p-button",18),_()()}if(t&2){let e=l(4);C(e.cx("header")),a("pBind",e.ptm("header")),p(2),a("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),p(),a("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),p(),C(e.cx("headerActions")),a("pBind",e.ptm("headerActions")),p(),a("ngIf",e.maximizable),p(),a("ngIf",e.closable)}}function hi(t,o){t&1&&F(0)}function bi(t,o){t&1&&F(0)}function Ci(t,o){if(t&1&&(m(0,"div",17,5),re(2,1),c(3,bi,1,0,"ng-container",11),_()),t&2){let e=l(4);C(e.cx("footer")),a("pBind",e.ptm("footer")),p(3),a("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function yi(t,o){if(t&1&&(c(0,Yt,1,5,"div",12)(1,fi,7,10,"div",13),m(2,"div",7,2),re(4),c(5,hi,1,0,"ng-container",11),_(),c(6,Ci,4,4,"div",14)),t&2){let e=l(3);a("ngIf",e.resizable),p(),a("ngIf",e.showHeader),p(),C(e.cn(e.cx("content"),e.contentStyleClass)),a("ngStyle",e.contentStyle)("pBind",e.ptm("content")),p(3),a("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),p(),a("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function vi(t,o){if(t&1){let e=L();m(0,"div",9,0),T("@animation.start",function(i){v(e);let s=l(2);return x(s.onAnimationStart(i))})("@animation.done",function(i){v(e);let s=l(2);return x(s.onAnimationEnd(i))}),c(2,Xt,2,1,"ng-container",10)(3,yi,7,8,"ng-template",null,1,z),_()}if(t&2){let e=Ue(4),n=l(2);ce(n.sx("root")),C(n.cn(n.cx("root"),n.styleClass)),a("ngStyle",n.style)("pBind",n.ptm("root"))("pFocusTrapDisabled",n.focusTrap===!1)("@animation",we(16,Zt,et(13,Nt,n.transformOptions,n.transitionOptions))),Q("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),p(2),a("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function xi(t,o){if(t&1&&(m(0,"div",7),c(1,vi,5,18,"div",8),_()),t&2){let e=l();ce(e.sx("mask")),C(e.cn(e.cx("mask"),e.maskStyleClass)),a("ngStyle",e.maskStyle)("pBind",e.ptm("mask")),p(),a("ngIf",e.visible)}}var Ti={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:t.position==="left"||t.position==="topleft"||t.position==="bottomleft"?"flex-start":t.position==="right"||t.position==="topright"||t.position==="bottomright"?"flex-end":"center",alignItems:t.position==="top"||t.position==="topleft"||t.position==="topright"?"flex-start":t.position==="bottom"||t.position==="bottomleft"||t.position==="bottomright"?"flex-end":"center",pointerEvents:t.modal?"auto":"none"}),root:{display:"flex",flexDirection:"column",pointerEvents:"auto"}},Ei={mask:({instance:t})=>{let e=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(n=>n===t.position);return["p-dialog-mask",{"p-overlay-mask p-overlay-mask-enter":t.modal},e?`p-dialog-${e}`:""]},root:({instance:t})=>["p-dialog p-component",{"p-dialog-maximized":t.maximizable&&t.maximized}],header:"p-dialog-header",title:"p-dialog-title",resizeHandle:"p-resizable-handle",headerActions:"p-dialog-header-actions",pcMaximizeButton:"p-dialog-maximize-button",pcCloseButton:"p-dialog-close-button",content:()=>["p-dialog-content"],footer:"p-dialog-footer"},Et=(()=>{class t extends Ae{name="dialog";style=vt;classes=Ei;inlineStyles=Ti;static \u0275fac=(()=>{let e;return function(i){return(e||(e=I(t)))(i||t)}})();static \u0275prov=fe({token:t,factory:t.\u0275fac})}return t})();var It=new be("DIALOG_INSTANCE"),Ii=U([P({transform:"{{transform}}",opacity:0}
159),G("{{transition}}")]),wi=U([G("{{transition}}",P({transform:"{{transform}}",opacity:0}))]),wt=(()=>{class t extends oe{hostName="";$pcDialog=h(It,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=h(B,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}header;draggable=!0;resizable=!0;contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;closeButtonProps={severity:"secondary",variant:"text",rounded:!0};maximizeButtonProps={severity:"secondary",variant:"text",rounded:!0};get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style=Oe({},e),this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)";break}}role="dialog";appendTo=nt(void 0);onShow=new E;onHide=new E;visibleChange=new E;onResizeInit=new E;onResizeEnd=new E;onDragEnd=new E;onMaximize=new E;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;closeIconTemplate;maximizeIconTemplate;minimizeIconTemplate;headlessTemplate;_headerTemplate;_contentTemplate;_footerTemplate;_closeiconTemplate;_maximizeiconTemplate;_minimizeiconTemplate;_headlessTemplate;$appendTo=it(()=>this.appendTo()||this.config.overlayAppendTo());_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=M("pn_id_");_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;_componentStyle=h(Et);headerT;contentT;footerT;closeIconT;maximizeIconT;minimizeIconT;headlessT;zIndexForLayering;get maximizeLabel(){return this.config.getTranslation(ne.ARIA).maximizeLabel}get minimizeLabel(){return this.config.getTranslation(ne.ARIA).minimizeLabel}zone=h(Ce);get maskClass(){let n=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(i=>i===this.position);return{"p-dialog-mask":!0,"p-overlay-mask p-overlay-mask-enter":this.modal||this.dismissableMask,[`p-dialog-${n}`]:n}}onInit(){this.breakpoints&&this.createStyle()}templates;onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerT=e.template;break;case"content":this.contentT=e.template;break;case"footer":this.footerT=e.template;break;case"closeicon":this.closeIconT=e.template;break;case"maximizeicon":this.maximizeIconT=e.template;break;case"minimizeicon":this.minimizeIconT=e.template;break;case"headless":this.headlessT=e.template;break;default:this.contentT=e.template;break}})}getAriaLabelledBy(){return this.header!==null?M("pn_id_")+"_header":null}parseDurationToMilliseconds(e){let n=/([\d\.]+)(ms|s)\b/g,i=0,s;for(;(s=n.exec(e))!==null;){let r=parseFloat(s[1]),y=s[2];y==="ms"?i+=r:y==="s"&&(i+=r*1e3)}if(i!==0)return i}_focus(e){if(e){let n=this.parseDurationToMilliseconds(this.transitionOptions),i=pt.getFocusableElements(e);if(i&&i.length>0)return this.zone.runOutsideAngular(()=>{setTimeout(()=>i[0].focus(),n||5)}),!0}return!1}focus(e=this.contentViewChild?.nativeElement){let n=this._focus(e);
159n||(n=this._focus(this.footerViewChild?.nativeElement),n||(n=this._focus(this.headerViewChild?.nativeElement),n||this._focus(this.contentViewChild?.nativeElement)))}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&Ze()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();let e=document.querySelectorAll(".p-dialog-mask-scrollblocker");this.modal&&e&&e.length==1&&$e(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?Ze():$e()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex?(se.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1)):this.zIndexForLayering=se.generateZIndex("modal",(this.baseZIndex??0)+this.config.zIndex.modal)}createStyle(){if(pe(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",ee(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`
160                        @media screen and (max-width: ${n}) {
161                            .p-dialog[${this.id}]:not(.p-dialog-maximized) {
162                                width: ${this.breakpoints[n]} !important;
163                            }
164                        }
165                    `;this.renderer.setProperty(this.styleElement,"innerHTML",e),ee(this.styleElement,"nonce",this.config?.csp()?.nonce)}}initDrag(e){de(e.target,"p-dialog-maximize-icon")||de(e.target,"p-dialog-header-close-icon")||de(e.target?.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",Me(this.document.body,"p-unselectable-text"))}onDrag(e){if(this.dragging&&this.container){let n=Qe(this.container),i=Fe(this.container),s=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,y=this.container.getBoundingClientRect(),H=getComputedStyle(this.container),O=parseFloat(H.marginLeft),ue=parseFloat(H.marginTop),V=y.left+s-O,A=y.top+r-ue,le=Pe();this.container.style.position="fixed",this.keepInViewport?(V>=this.minX&&V+n<le.width&&(this._style.left=`${V}px`,this.lastPageX=e.pageX,this.container.style.left=`${V}px`),A>=this.minY&&A+i<le.height&&(this._style.top=`${A}px`,this.lastPageY=e.pageY,this.container.style.top=`${A}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${V}px`,this.lastPageY=e.pageY,this.container.style.top=`${A}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,Be(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,Me(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,i=e.pageY-this.lastPageY,s=Qe(this.container),r=Fe(this.container),y=Fe(this.contentViewChild?.nativeElement),H=s+n,O=r+i,ue=this.container.style.minWidth,V=this.container.style.minHeight,A=this.container.getBoundingClientRect(),le=Pe();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(H+=n,O+=i),(!ue||H>parseInt(ue))&&A.left+H<le.width&&(this._style.width=H+"px",this.container.style.width=this._style.width),(!V||O>parseInt(V))&&A.top+O<le.height&&(this.contentViewChild.nativeElement.style.height=y+O-r+"px",this._style.height&&(this._style.height=O+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,Be(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{if(n.key=="Escape"){let i=se.getCurrent();(parseInt(this.container.style.zIndex)==i||this.zIndexForLayering==i)&&this.close(n)}})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?this.renderer.appendChild(this.document.body,this.wrapper):at(this.$appendTo(),this.wrapper))}restoreAppend(){this.container&&this.$appendTo()!=="self"&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.$attrSelector&&this.container?.setAttribute(this.$attrSelector,""),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&Me(this.wrapper,"p-overlay-mask-leave");break}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck(),this.maskVisible!==this.visible&&(this.maskVisible=this.visible);break;case"visible":this.onShow.emit({});break}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(this.document.body.style.removeProperty("--scrollbar;-width"),this.maximized=!1),this.modal&&this.disableModality(),de(this.document.body,"p-overflow-hidden")&&Be(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&se.clear(this.container),this.zIndexForLayering&&se.revertZIndex(this.zIndexForLayering),this.container=null,this.wrapper=null,this._style=this.originalStyle?Oe({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}onDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=I(t)))(i||t)}})();static \u0275cmp=k({type:t,selectors:[["p-dialog"]],contentQueries:function(n,i,s){if(n&1&&(f(s,Vt,4),f(s,xt,4),f(s,Tt,4),f(s,At,4),f(s,jt,4),f(s,Ht,4),f(s,Ot,4),f(s,Ve,4)),n&2){let r;
165g(r=u())&&(i._headerTemplate=r.first),g(r=u())&&(i._contentTemplate=r.first),g(r=u())&&(i._footerTemplate=r.first),g(r=u())&&(i._closeiconTemplate=r.first),g(r=u())&&(i._maximizeiconTemplate=r.first),g(r=u())&&(i._minimizeiconTemplate=r.first),g(r=u())&&(i._headlessTemplate=r.first),g(r=u())&&(i.templates=r)}},viewQuery:function(n,i){if(n&1&&(Ee(Rt,5),Ee(xt,5),Ee(Tt,5)),n&2){let s;g(s=u())&&(i.headerViewChild=s.first),g(s=u())&&(i.contentViewChild=s.first),g(s=u())&&(i.footerViewChild=s.first)}},inputs:{hostName:"hostName",header:"header",draggable:[2,"draggable","draggable",d],resizable:[2,"resizable","resizable",d],contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[2,"modal","modal",d],closeOnEscape:[2,"closeOnEscape","closeOnEscape",d],dismissableMask:[2,"dismissableMask","dismissableMask",d],rtl:[2,"rtl","rtl",d],closable:[2,"closable","closable",d],breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[2,"showHeader","showHeader",d],blockScroll:[2,"blockScroll","blockScroll",d],autoZIndex:[2,"autoZIndex","autoZIndex",d],baseZIndex:[2,"baseZIndex","baseZIndex",W],minX:[2,"minX","minX",W],minY:[2,"minY","minY",W],focusOnShow:[2,"focusOnShow","focusOnShow",d],maximizable:[2,"maximizable","maximizable",d],keepInViewport:[2,"keepInViewport","keepInViewport",d],focusTrap:[2,"focusTrap","focusTrap",d],transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",closeButtonProps:"closeButtonProps",maximizeButtonProps:"maximizeButtonProps",visible:"visible",style:"style",position:"position",role:"role",appendTo:[1,"appendTo"],headerTemplate:[0,"content","headerTemplate"],contentTemplate:"contentTemplate",footerTemplate:"footerTemplate",closeIconTemplate:"closeIconTemplate",maximizeIconTemplate:"maximizeIconTemplate",minimizeIconTemplate:"minimizeIconTemplate",headlessTemplate:"headlessTemplate"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[q([Et,{provide:It,useExisting:t},{provide:je,useExisting:t}]),ve([B]),S],ngContentSelectors:Qt,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["content",""],["titlebar",""],["icon",""],["footer",""],[3,"class","style","ngStyle","pBind",4,"ngIf"],[3,"ngStyle","pBind"],["pFocusTrap","",3,"class","style","ngStyle","pBind","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","",3,"ngStyle","pBind","pFocusTrapDisabled"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],[3,"class","pBind","z-index","mousedown",4,"ngIf"],[3,"class","pBind","mousedown",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"mousedown","pBind"],[3,"id","class","pBind",4,"ngIf"],[3,"pBind"],[3,"pt","styleClass","ariaLabel","tabindex","buttonProps","onClick","keydown.enter",4,"ngIf"],[3,"id","pBind"],[3,"onClick","keydown.enter","pt","styleClass","ariaLabel","tabindex","buttonProps"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],["data-p-icon","window-maximize",4,"ngIf"],["data-p-icon","window-minimize",4,"ngIf"],["data-p-icon","window-maximize"],["data-p-icon","window-minimize"],[3,"class",4,"ngIf"],["data-p-icon","times",4,"ngIf"],["data-p-icon","times"]],template:function(n,i){n&1&&(Te(Pt),c(0,xi,2,7,"div",6)),n&2&&a("ngIf",i.maskVisible)},dependencies:[Se,De,ze,ke,ot,ae,yt,dt,bt,Ct,ie,B],encapsulation:2,data:{animation:[Le("animation",[J("void => visible",[K(Ii)]),J("visible => void",[K(wi)])])]},changeDetection:0})}return t})();var Dt=`
166    .p-confirmdialog .p-dialog-content {
167        display: flex;
168        align-items: center;
169        gap: dt('confirmdialog.content.gap');
170    }
171
172    .p-confirmdialog-icon {
173        color: dt('confirmdialog.icon.color');
174        font-size: dt('confirmdialog.icon.size');
175        width: dt('confirmdialog.icon.size');
176        height: dt('confirmdialog.icon.size');
177    }
178`;var Di=["header"],zi=["footer"],ki=["rejecticon"],Si=["accepticon"],Li=["message"],Mi=["icon"],Bi=["headless"],Fi=[[["p-footer"]]],Vi=["p-footer"],Ai=(t,o,e)=>({$implicit:t,onAccept:o,onReject:e}),ji=t=>({$implicit:t});function Hi(t,o){t&1&&F(0)}function Oi(t,o){if(t&1&&c(0,Hi,1,0,"ng-container",7),t&2){let e=l(2);a("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)("ngTemplateOutletContext",tt(2,Ai,e.confirmation,e.onAccept.bind(e),e.onReject.bind(e)))}}function Ri(t,o){t&1&&c(0,Oi,1,6,"ng-template",null,2,z)}function Pi(t,o){t&1&&F(0)}function Qi(t,o){if(t&1&&c(0,Pi,1,0,"ng-container",8),t&2){let e=l(3);a("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function Ni(t,o){t&1&&c(0,Qi,1,1,"ng-template",null,4,z)}function Zi(t,o){}function $i(t,o){t&1&&c(0,Zi,0,0,"ng-template")}function Xi(t,o){if(t&1&&c(0,$i,1,0,null,8),t&2){let e=l(3);a("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)}}function Yi(t,o){if(t&1&&b(0,"i",12),t&2){let e=l(4);C(e.option("icon")),a("ngClass",e.cx("icon"))("pBind",e.ptm("icon"))}}function qi(t,o){if(t&1&&c(0,Yi,1,4,"i",11),t&2){let e=l(3);a("ngIf",e.option("icon"))}}function Wi(t,o){}function Gi(t,o){t&1&&c(0,Wi,0,0,"ng-template")}function Ji(t,o){if(t&1&&c(0,Gi,1,0,null,7),t&2){let e=l(3);a("ngTemplateOutlet",e.messageTemplate||e._messageTemplate)("ngTemplateOutletContext",we(2,ji,e.confirmation))}}function Ui(t,o){if(t&1&&b(0,"span",13),t&2){let e=l(3);C(e.cx("message")),a("pBind",e.ptm("message"))("innerHTML",e.option("message"),Ge)}}function Ki(t,o){if(t&1&&(w(0,Xi,1,1)(1,qi,1,1,"i",9),w(2,Ji,1,4)(3,Ui,1,4,"span",10)),t&2){let e=l(2);D(e.iconTemplate||e._iconTemplate?0:!e.iconTemplate&&!e._iconTemplate&&!e._messageTemplate&&!e.messageTemplate?1:-1),p(2),D(e.messageTemplate||e._messageTemplate?2:3)}}function en(t,o){if(t&1&&(w(0,Ni,2,0),c(1,Ki,4,2,"ng-template",null,3,z)),t&2){let e=l();D(e.headerTemplate||e._headerTemplate?0:-1)}}function tn(t,o){t&1&&F(0)}function nn(t,o){if(t&1&&(re(0),c(1,tn,1,0,"ng-container",8)),t&2){let e=l(2);p(),a("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function on(t,o){if(t&1&&b(0,"i",18),t&2){let e=l(6);C(e.option("rejectIcon")),a("pBind",e.ptm("pcRejectButton").icon)}}function an(t,o){if(t&1&&c(0,on,1,3,"i",17),t&2){let e=l(5);a("ngIf",e.option("rejectIcon"))}}function sn(t,o){}function ln(t,o){t&1&&c(0,sn,0,0,"ng-template")}function rn(t,o){if(t&1&&(w(0,an,1,1,"i",16),c(1,ln,1,0,null,8)),t&2){let e=l(4);D(e.rejectIcon&&!e.rejectIconTemplate&&!e._rejectIconTemplate?0:-1),p(),a("ngTemplateOutlet",e.rejectIconTemplate||e._rejectIconTemplate)}}function cn(t,o){if(t&1){let e=L();m(0,"p-button",15),T("onClick",function(){v(e);let i=l(3);return x(i.onReject())}),c(1,rn,2,2,"ng-template",null,5,z),_()}if(t&2){let e=l(3);a("pt",e.ptm("pcRejectButton"))("label",e.rejectButtonLabel)("styleClass",e.getButtonStyleClass("pcRejectButton","rejectButtonStyleClass"))("ariaLabel",e.option("rejectButtonProps","ariaLabel"))("buttonProps",e.getRejectButtonProps())}}function pn(t,o){if(t&1&&b(0,"i",18),t&2){let e=l(6);C(e.option("acceptIcon")),a("pBind",e.ptm("pcAcceptButton").icon)}}function dn(t,o){if(t&1&&c(0,pn,1,3,"i",17),t&2){let e=l(5);a("ngIf",e.option("acceptIcon"))}}function mn(t,o){}function _n(t,o){t&1&&c(0,mn,0,0,"ng-template")}function gn(t,o){if(t&1&&(w(0,dn,1,1,"i",16),c(1,_n,1,0,null,8)),t&2){let e=l(4);D(e.acceptIcon&&!e._acceptIconTemplate&&!e.acceptIconTemplate?0:-1),p(),a("ngTemplateOutlet",e.acceptIconTemplate||e._acceptIconTemplate)}}function un(t,o){if(t&1){let e=L();m(0,"p-button",15),T("onClick",function(){v(e);let i=l(3);return x(i.onAccept())}),c(1,gn,2,2,"ng-template",null,5,z),_()}if(t&2){let e=l(3);a("pt",e.ptm("pcAcceptButton"))("label",e.acceptButtonLabel)("styleClass",e.getButtonStyleClass("pcAcceptButton","acceptButtonStyleClass"))("ariaLabel",e.option("acceptButtonProps","ariaLabel"))("buttonProps",e.getAcceptButtonProps())}}function fn(t,o){if(t&1&&c(0,cn,3,5,"p-button",14)(1,un,3,5,"p-button",14),t&2){let e=l(2);a("ngIf",e.option("rejectVisible")),p(),a("ngIf",e.option("acceptVisible"))}}function hn(t,o){if(t&1&&(w(0,nn,2,1),w(1,fn,2,2)),t&2){let e=l();D(e.footerTemplate||e._footerTemplate?0:-1),p(),D(!e.footerTemplate&&!e._footerTemplate?1:-1)}}var bn={root:"p-confirmdialog",icon:"p-confirmdialog-icon",message:"p-confirmdialog-message",pcRejectButton:"p-confirmdialog-reject-button",pcAcceptButton:"p-confirmdialog-accept-button"},zt=(()=>{class t extends Ae{name="confirmdialog";style=Dt;classes=bn;static \u0275fac=(()=>{let e;return function(i){return(e||(e=I(t)))(i||t)}})();static \u0275prov=fe({token:t,factory:t.\u0275fac})}return t})();var kt=new be("CONFIRMDIALOG_INSTANCE"),Cn=U([P({transform:"{{transform}}",opacity:0}
178),G("{{transition}}",P({transform:"none",opacity:1}))]),yn=U([G("{{transition}}",P({transform:"{{transform}}",opacity:0}))]),Xe=(()=>{class t extends oe{confirmationService;zone;$pcConfirmDialog=h(kt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=h(B,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}header;icon;message;get style(){return this._style}set style(e){this._style=e,this.cd.markForCheck()}styleClass;maskStyleClass;acceptIcon;acceptLabel;closeAriaLabel;acceptAriaLabel;acceptVisible=!0;rejectIcon;rejectLabel;rejectAriaLabel;rejectVisible=!0;acceptButtonStyleClass;rejectButtonStyleClass;closeOnEscape=!0;dismissableMask;blockScroll=!0;rtl=!1;closable=!0;appendTo="body";key;autoZIndex=!0;baseZIndex=0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";focusTrap=!0;defaultFocus="accept";breakpoints;modal=!0;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)";break}}draggable=!0;onHide=new E;footer;_componentStyle=h(zt);headerTemplate;footerTemplate;rejectIconTemplate;acceptIconTemplate;messageTemplate;iconTemplate;headlessTemplate;templates;_headerTemplate;_footerTemplate;_rejectIconTemplate;_acceptIconTemplate;_messageTemplate;_iconTemplate;_headlessTemplate;confirmation;_visible;_style;maskVisible;dialog;wrapper;contentContainer;subscription;preWidth;_position="center";transformOptions="scale(0.7)";styleElement;id=M("pn_id_");ariaLabelledBy=this.getAriaLabelledBy();translationSubscription;constructor(e,n){super(),this.confirmationService=e,this.zone=n,this.subscription=this.confirmationService.requireConfirmation$.subscribe(i=>{if(!i){this.hide();return}
178i.key===this.key&&(this.confirmation=i,Object.keys(i).forEach(r=>{this[r]=i[r]}),this.confirmation.accept&&(this.confirmation.acceptEvent=new E,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new E,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0)})}onInit(){this.breakpoints&&this.createStyle(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.visible&&this.cd.markForCheck()})}onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"message":this._messageTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"rejecticon":this._rejectIconTemplate=e.template;break;case"accepticon":this._acceptIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break}})}getAriaLabelledBy(){return this.header!==null?M("pn_id_")+"_header":null}option(e,n){let i=this;if(i.hasOwnProperty(e))return n?i[n]:i[e]}getButtonStyleClass(e,n){let i=this.cx(e),s=this.option(n);return[i,s].filter(Boolean).join(" ")}getElementToFocus(){if(this.dialog?.el?.nativeElement)switch(this.option("defaultFocus")){case"accept":return me(this.dialog.el.nativeElement,".p-confirm-dialog-accept");case"reject":return me(this.dialog.el.nativeElement,".p-confirm-dialog-reject");case"close":return me(this.dialog.el.nativeElement,".p-dialog-header-close");case"none":return null;default:return me(this.dialog.el.nativeElement,".p-confirm-dialog-accept")}}createStyle(){if(!this.styleElement){this.styleElement=this.document.createElement("style"),this.styleElement.type="text/css",ee(this.styleElement,"nonce",this.config?.csp()?.nonce),this.document.head.appendChild(this.styleElement);let e="";for(let n in this.breakpoints)e+=`
179                    @media screen and (max-width: ${n}) {
180                        .p-dialog[${this.id}] {
181                            width: ${this.breakpoints[n]} !important;
182                        }
183                    }
184                `;this.styleElement.innerHTML=e,ee(this.styleElement,"nonce",this.config?.csp()?.nonce)}}close(){this.confirmation?.rejectEvent&&this.confirmation.rejectEvent.emit(te.CANCEL),this.hide(te.CANCEL)}hide(e){this.onHide.emit(e),this.visible=!1,this.unsubscribeConfirmationEvents(),this.confirmation=null}destroyStyle(){this.styleElement&&(this.document.head.removeChild(this.styleElement),this.styleElement=null)}onDestroy(){this.subscription.unsubscribe(),this.unsubscribeConfirmationEvents(),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.destroyStyle()}onVisibleChange(e){e?this.visible=e:this.close()}onAccept(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(te.ACCEPT)}onReject(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(te.REJECT),this.hide(te.REJECT)}unsubscribeConfirmationEvents(){this.confirmation&&(this.confirmation.acceptEvent?.unsubscribe(),this.confirmation.rejectEvent?.unsubscribe())}get acceptButtonLabel(){return this.option("acceptLabel")||this.getAcceptButtonProps()?.label||this.config.getTranslation(ne.ACCEPT)}get rejectButtonLabel(){return this.option("rejectLabel")||this.getRejectButtonProps()?.label||this.config.getTranslation(ne.REJECT)}getAcceptButtonProps(){return this.option("acceptButtonProps")}getRejectButtonProps(){return this.option("rejectButtonProps")}static \u0275fac=function(n){return new(n||t)(Re(_e),Re(Ce))};static \u0275cmp=k({type:t,selectors:[["p-confirmDialog"],["p-confirmdialog"],["p-confirm-dialog"]],contentQueries:function(n,i,s){if(n&1&&(f(s,ct,5),f(s,Di,4),f(s,zi,4),f(s,ki,4),f(s,Si,4),f(s,Li,4),f(s,Mi,4),f(s,Bi,4),f(s,Ve,4)),n&2){let r;g(r=u())&&(i.footer=r.first),g(r=u())&&(i.headerTemplate=r.first),g(r=u())&&(i.footerTemplate=r.first),g(r=u())&&(i.rejectIconTemplate=r.first),g(r=u())&&(i.acceptIconTemplate=r.first),g(r=u())&&(i.messageTemplate=r.first),g(r=u())&&(i.iconTemplate=r.first),g(r=u())&&(i.headlessTemplate=r.first),g(r=u())&&(i.templates=r)}},inputs:{header:"header",icon:"icon",message:"message",style:"style",styleClass:"styleClass",maskStyleClass:"maskStyleClass",acceptIcon:"acceptIcon",acceptLabel:"acceptLabel",closeAriaLabel:"closeAriaLabel",acceptAriaLabel:"acceptAriaLabel",acceptVisible:[2,"acceptVisible","acceptVisible",d],rejectIcon:"rejectIcon",rejectLabel:"rejectLabel",rejectAriaLabel:"rejectAriaLabel",rejectVisible:[2,"rejectVisible","rejectVisible",d],acceptButtonStyleClass:"acceptButtonStyleClass",rejectButtonStyleClass:"rejectButtonStyleClass",closeOnEscape:[2,"closeOnEscape","closeOnEscape",d],dismissableMask:[2,"dismissableMask","dismissableMask",d],blockScroll:[2,"blockScroll","blockScroll",d],rtl:[2,"rtl","rtl",d],closable:[2,"closable","closable",d],appendTo:"appendTo",key:"key",autoZIndex:[2,"autoZIndex","autoZIndex",d],baseZIndex:[2,"baseZIndex","baseZIndex",W],transitionOptions:"transitionOptions",focusTrap:[2,"focusTrap","focusTrap",d],defaultFocus:"defaultFocus",breakpoints:"breakpoints",modal:[2,"modal","modal",d],visible:"visible",position:"position",draggable:[2,"draggable","draggable",d]},outputs:{onHide:"onHide"},features:[q([zt,{provide:kt,useExisting:t},{provide:je,useExisting:t}]),ve([B]),S],ngContentSelectors:Vi,decls:6,vars:18,consts:[["dialog",""],["footer",""],["headless",""],["content",""],["header",""],["icon",""],["role","alertdialog",3,"visibleChange","pt","visible","closable","styleClass","modal","header","closeOnEscape","blockScroll","appendTo","position","dismissableMask","draggable","baseZIndex","autoZIndex","maskStyleClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[3,"ngClass","class","pBind"],[3,"class","pBind","innerHTML"],[3,"ngClass","class","pBind",4,"ngIf"],[3,"ngClass","pBind"],[3,"pBind","innerHTML"],[3,"pt","label","styleClass","ariaLabel","buttonProps","onClick",4,"ngIf"],[3,"onClick","pt","label","styleClass","ariaLabel","buttonProps"],[3,"class","pBind"],[3,"class","pBind",4,"ngIf"],[3,"pBind"]],template:function(n,i){if
184(n&1){let s=L();Te(Fi),m(0,"p-dialog",6,0),T("visibleChange",function(y){return v(s),x(i.onVisibleChange(y))}),w(2,Ri,2,0)(3,en,3,1),c(4,hn,2,2,"ng-template",null,1,z),_()}n&2&&(ce(i.style),a("pt",i.pt)("visible",i.visible)("closable",i.option("closable"))("styleClass",i.cn(i.cx("root"),i.styleClass))("modal",i.option("modal"))("header",i.option("header"))("closeOnEscape",i.option("closeOnEscape"))("blockScroll",i.option("blockScroll"))("appendTo",i.option("appendTo"))("position",i.position)("dismissableMask",i.dismissableMask)("draggable",i.draggable)("baseZIndex",i.baseZIndex)("autoZIndex",i.autoZIndex)("maskStyleClass",i.cn(i.cx("mask"),i.maskStyleClass)),p(2),D(i.headlessTemplate||i._headlessTemplate?2:3))},dependencies:[Se,De,ze,ke,ae,wt,ie,B],encapsulation:2,data:{animation:[Le("animation",[J("void => visible",[K(Cn)]),J("visible => void",[K(yn)])])]},changeDetection:0})}return t})(),St=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ye({type:t});static \u0275inj=he({imports:[Xe,ie,ie]})}return t})();function xn(t,o){if(t&1&&(m(0,"div",4)(1,"p-message",5),R(2),_()()),t&2){let e=l();p(),a("severity",e.message.type),p(),Ie(e.message.message)}}var qo=(()=>{let o=class o{constructor(){this._ffServices=h(_t),this._confirmationService=h(_e),this.message={type:"success",active:!1,message:""},this.buttonLoadingStatuses={enabling:!1,disabling:!1}}disable(n){this._confirmationService.confirm(this._generateDialogue(n,!0))}enable(n){this._confirmationService.confirm(this._generateDialogue(n,!1))}_generateDialogue(n,i){return{target:n.target,header:`This action will ${i?"dis":"en"}able web services that integrate with CRM`,message:"Please confirm you wish to proceed",closable:!0,closeOnEscape:!0,icon:"pi pi-exclamation-triangle",rejectButtonProps:{label:"Cancel",severity:"secondary",outlined:!0},acceptButtonProps:{label:`${i?"Dis":"En"}able services`,severity:i?"danger":null},accept:()=>this._disableOrEnableServices(i)}}_disableOrEnableServices(n){this.message.active=!1,this.buttonLoadingStatuses.enabling=!n,this.buttonLoadingStatuses.disabling=n,this._ffServices.enableOrDisableCrmServices(n).pipe(Ye(1)).subscribe({next:i=>{this._removeLoadingState(),this._addMessage("success",i)},error:i=>{this._removeLoadingState(),this._addMessage("error",i?.error?.message??"Error updating services status")}})}_removeLoadingState(){this.buttonLoadingStatuses={enabling:!1,disabling:!1}}_addMessage(n,i){this.message={active:!0,type:n,message:i}}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=k({type:o,selectors:[["app-downtime-management"]],features:[q([_e])],decls:14,vars:3,consts:[["header","Switch CRM integrated MyAAT services on or off"],[1,"flex","justify-between","mt-5"],["label","Disable web services","severity","danger","data-auto","disableService",3,"onClick","loading"],["label","Enable web services","data-auto","enableServices",3,"onClick","loading"],[1,"mt-5"],[3,"severity"]],template:function(i,s){i&1&&(b(0,"p-confirmdialog"),m(1,"p-card",0)(2,"p"),R(3," Use this service to enable or disable services on MyAAT. By choosing to disable services, you will begin to redirect users to a holding page to inform them of downtime. "),_(),b(4,"br"),m(5,"p"),R(6," This service will gradually impact all users over 30 minutes. This is because the configuration of these services is cached on the user's machine for half an hour. "),_(),b(7,"br"),m(8,"p"),R(9," If you are using this redirect users for scheduled downtime, please ensure you wait the full half hour for the user cache to clear to ensure no web integrations are active during the scheduled downtime. "),_(),m(10,"div",1)(11,"p-button",2),T("onClick",function(y){return s.disable(y)}),_(),m(12,"p-button",3),T("onClick",function(y){return s.enable(y)}),_()(),w(13,xn,3,2,"div",4),_()),i&2&&(p(11),a("loading",s.buttonLoadingStatuses.disabling),p(),a("loading",s.buttonLoadingStatuses.enabling),p(),D(s.message.active?13:-1))},dependencies:[ut,gt,mt,ae,St,Xe,ht,ft],encapsulation:2});let t=o;return t})();export{qo as DowntimeManagementComponent};

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.