1import{a as pi,b as mi}from"./chunk-NJEJBFXN.js";import{C as $e,a as Wt,b as rt,c as q,d as Zt,h as Le,i as xe,j as Kt,k as Xt,m as Yt,p as Jt,r as at,t as Qt,u as lt}from"./chunk-7MD7F2JP.js";import{a as oi,b as Fe,c as ri,d as ze,f as He,h as Se,i as Be,j as ai,m as li,n as Ge,o as ci,p as di,q as hi,w as je}from"./chunk-5U6ZFETJ.js";import{a as ei,c as ti,e as ii,g as ni,h as si,i as Ae,j as Ne}from"./chunk-2OFXEWVV.js";import{a as ne}from"./chunk-QHP44ZDY.js";import{a as ui}from"./chunk-4TT5AXM4.js";import{$ as _,$a as b,$b as de,A as It,Aa as M,Ab as zt,B as Tt,Bb as v,C as Ie,Ca as Vt,Cb as P,Da as h,Fa as Mt,Ha as tt,Ia as re,J as Rt,Ja as H,Jb as I,Ka as Me,Kb as st,L as Te,Mb as ce,Oa as A,Ob as $,P as Je,Pa as ve,Pb as Z,Q as Re,Qa as W,Qb as Ht,R as ue,Ra as Ot,Rb as we,S as ke,Sb as be,Ta as ae,Ub as Oe,W as se,X as ge,Ya as Lt,Z as oe,Za as S,_a as w,_b as K,ac as Bt,bb as B,cb as G,cc as ot,da as y,db as j,dc as ie,ea as D,eb as u,ec as Gt,fa as E,fb as l,g as V,ga as Q,gb as d,ha as Qe,hb as f,i as Ye,ia as Ve,ib as it,j as C,jb as nt,jc as X,k as me,kb as At,l as Et,la as z,ma as _e,nb as T,nc as jt,oa as et,pa as fe,pb as x,qa as kt,qc as U,rb as p,s as Pt,sb as Nt,sc as $t,ta as ee,tb as Ft,wc as Ut,yb as le,yc as qt,zb as te}from"./chunk-FQSZAGQJ.js";var gi=400,Yi=`${gi}ms cubic-bezier(0.4,0.0,0.2,1)`,_i=(()=>{class s{constructor(e,t){this._el=e,this._renderer=t,this.collapsed=K(),this.collapses=K(),this.expanded=K(),this.expands=K(),this.isExpanded=!0,this.collapseNewValue=!0,this.isCollapsed=!1,this.isCollapse=!0,this.isCollapsing=!1,this.display=de("block"),this.isAnimated=de(!1),this.collapse=de(!1),this._display="block",this._stylesLoaded=!1,this._isTransitionRunning=!1,this._COLLAPSE_ACTION_NAME="collapse",this._EXPAND_ACTION_NAME="expand",fe(()=>{let n=this.display();if(this._display=n,n==="none"){this.hide();return}this.isAnimated()?this.toggle():this.show()}),fe(()=>{let n=this.collapse();this.collapseNewValue=n,(!this._isTransitionRunning||this._isAnimationDone)&&(this.isExpanded=n,this.toggle())})}ngAfterViewChecked(){this._stylesLoaded=!0}toggle(){this.isExpanded?this.hide():this.show()}hide(){this.isCollapsing=!0,this.isExpanded=!1,this.isCollapsed=!0,this.isCollapsing=!1,this.collapses.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated(),this._COLLAPSE_ACTION_NAME)(()=>{if(this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated()){this.show();return}this.collapsed.emit(this),this._renderer.setStyle(this._el.nativeElement,"display","none")})}show(){this._renderer.setStyle(this._el.nativeElement,"display",this._display),this.isCollapsing=!0,this.isExpanded=!0,this.isCollapsed=!1,this.isCollapsing=!1,this.expands.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated(),this._EXPAND_ACTION_NAME)(()=>{if(this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated()){this.hide();return}this.expanded.emit(this)})}animationRun(e,t){if(!e||!this._stylesLoaded)return a=>a();let n=this._el.nativeElement,o=t===this._EXPAND_ACTION_NAME,r=!!this._pendingFinish;return this._cancelPending(),this._renderer.setStyle(n,"display",this._display),this._renderer.setStyle(n,"overflow","hidden"),this._renderer.setStyle(n,"transition",`height ${Yi}`),this._isTransitionRunning=!0,a=>{let c=()=>{this._cancelPending(),this._isTransitionRunning=!1,o?this._renderer.removeStyle(n,"display"):this._renderer.setStyle(n,"display","none"),this._renderer.removeStyle(n,"height"),this._renderer.removeStyle(n,"transition"),this._renderer.removeStyle(n,"overflow"),a()};if(this._pendingFinish=ii(n,"height",gi,c),r){let m=n.getBoundingClientRect().height;this._renderer.setStyle(n,"height",`${m}px`),n.offsetHeight,this._renderer.setStyle(n,"height",o?`${n.scrollHeight}px`:"0")}else o?(this._renderer.setStyle(n,"height","0"),n.offsetHeight,this._rafId=requestAnimationFrame(()=>{this._rafId=void 0,this._renderer.setStyle(n,"height",`${n.scrollHeight}px`)})):this._rafId=requestAnimationFrame(()=>{this._renderer.setStyle(n,"height",`${n.scrollHeight}px`),this._rafId=requestAnimationFrame(()=>{this._rafId=void 0,this._renderer.setStyle(n,"height","0")})})}}ngOnDestroy(){this._cancelPending()}_cancelPending(){this._pendingFinish?.cancel(),this._pendingFinish=void 0,this._rafId!==void 0&&(cancelAnimationFrame(this._rafId),this._rafId=void 0)}static{this.\u0275fac=function(t){return new(t||s)(H(ee),H(re))}}static{this.\u0275dir=W({type:s,selectors:[["","collapse",""]],hostVars:9,hostBindings:function(t,n){t&2&&(S("aria-hidden",n.isCollapsed),te("collapse",n.isCollapse)("in",n.isExpanded)("show",n.isExpanded)("collapsing",n.isCollapsing))},inputs:{display:[1,"display"],isAnimated:[1,"isAnimated"],collapse:[1,"collapse"]}
1,outputs:{collapsed:"collapsed",collapses:"collapses",expanded:"expanded",expands:"expands"},exportAs:["bs-collapse"]})}}return s})(),fi=(()=>{class s{static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275mod=ve({type:s})}static{this.\u0275inj=ge({})}}return s})();var J=(()=>{class s{constructor(){this.http=_(qt),this.sites=new me(new Array),this.sitesError=new me(null),this.sitesMode=new C,this.modalSite=new C,this.modalsite$=this.modalSite.asObservable(),this.sites$=this.sites.asObservable(),this.sitesError$=this.sitesError.asObservable(),this.sitesMode$=this.sitesMode.asObservable(),this.getSitesData()}getSitesData(){this.http.get(ne.apiUrl+"/api/v2/sites").subscribe({next:e=>{this.sites.next(e)},error:e=>{this.sitesError.next(e)}})}pinSite(e){return this.http.post(ne.apiUrl+"/api/v2/sites/"+e.id+"/pin",{})}unpinSite(e){return this.http.post(ne.apiUrl+"/api/v2/sites/"+e.id+"/unpin",{})}reorderSites(e){return this.http.post(ne.apiUrl+"/api/v2/sites/reorder",e)}storeRecentlyVisited(e){return this.http.post(ne.apiUrl+"/api/v2/sites/"+e+"/recently-visited",{})}storeCategoryPhase(e){return this.http.post(ne.apiUrl+"/api/v2/site-categories/"+e.id,{collapsed:e.collapsed})}setModalSite(e){this.modalSite.next(e)}setImportantSitesMode(e){this.sitesMode.next(e)}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275prov=se({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var vi=(()=>{class s{transform(e){e=e.replace(/[^A-Za-z|\s]/g," ");let t=e.split(" ");for(let n=0;n<t.length;n++)n==0?t[n]=t[n].toLowerCase():t[n]=t[n].charAt(0).toUpperCase()+t[n].slice(1);return t.join("")}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275pipe=Ot({name:"camelcase",type:s,pure:!0})}}return s})();var Qi=["*"];function en(s,i){if(s&1&&(it(0,"h3",1),v(1),nt()),s&2){let e=p();h(),P(e.title)}}var ct=(()=>{class s{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="click",this.outsideClick=!1,this.delay=0}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275prov=se({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),tn=(()=>{class s{get _bsVersions(){return ti()}constructor(e){this.placementInput=de(void 0,{alias:"placement"}),this._placement="top",Object.assign(this,e)}ngOnInit(){let e=this.placementInput();e&&(this._bsVersions.isBs5?this._placement=ni[e]:this._placement=e)}checkMarginNecessity(){return si(this._placement)}static{this.\u0275fac=function(t){return new(t||s)(H(ct))}}static{this.\u0275cmp=A({type:s,selectors:[["popover-container"]],hostAttrs:["role","tooltip",2,"display","block","position","absolute"],hostVars:7,hostBindings:function(t,n){t&2&&(S("id",n.popoverId),zt("popover in popover-"+n._placement+" bs-popover-"+n._placement+" "+n._placement+" "+n.containerClass+" "+n.checkMarginNecessity()),te("show",!n._bsVersions.isBs3)("bs3",n._bsVersions.isBs3))},inputs:{placementInput:[1,"placement","placementInput"]},ngContentSelectors:Qi,decls:4,vars:1,consts:[[1,"popover-arrow","arrow"],[1,"popover-title","popover-header"],[1,"popover-content","popover-body"]],template:function(t,n){t&1&&(Nt(),At(0,"div",0),w(1,en,2,1,"h3",1),it(2,"div",2),Ft(3),nt()),t&2&&(h(),b(n.title?1:-1))},styles:[".popover.bottom[_nghost-%COMP%] > .arrow[_ngcontent-%COMP%]{margin-left:-4px}[_nghost-%COMP%] .popover-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}}return s})(),nn=0,Ue=(()=>{class s{constructor(e,t,n,o,r,a){this._elementRef=t,this._renderer=n,this._positionService=a,this.popoverId=nn++,this.adaptivePosition=!0,this.placement="top",this.outsideClick=!1,this.triggers="click",this.containerClass="",this.isOpen=Bt(!1),this.delay=0,this.onShown=K(),this.onHidden=K(),this._isInited=!1,this._popover=r.createLoader(t,o,n).provide({provide:ct,useValue:e}),Object.assign(this,e),this._popover.onShown.subscribe(()=>this.onShown.emit(void 0)),this._popover.onHidden.subscribe(()=>this.onHidden.emit(void 0)),fe(()=>{let c=this.isOpen();c&&!this._popover.isShown?this.show():!c&&this._popover.isShown&&this.hide()}),typeof window<"u"&&t.nativeElement.addEventListener("click",function(){try{t.nativeElement.focus()}catch(c){return}})}setAriaDescribedBy(){this._ariaDescribedby=this._popover.isShown?`ngx-popover-${this.popoverId}`:void 0,this._ariaDescribedby?(this._popover.instance&&(this._popover.instance.popoverId=this._ariaDescribedby),this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby)):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}show(){if(this._popover.isShown||!this.popover||this._delayTimeoutId)return;this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}});let e=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._popover.attach(tn).to(this.container).position({attachment:this.placement}).show({content:this.popover,context:this.popoverContext,placement:this.placement,title:this.popoverTitle,containerClass:this.containerClass}),!this.adaptivePosition&&this._popover._componentRef&&(this._positionService.calcPosition(),this._positionService.deletePositionElement(this._popover._componentRef.location)),this.isOpen.set(!0),this.setAriaDescribedBy()},t=()=>{this._popoverCancelShowFn&&this._popoverCancelShowFn()};if(this.delay){let n=It(this.delay).subscribe(()=>{e(),t()});
1this.triggers&&ei(this.triggers).forEach(o=>{o.close&&(this._popoverCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,o.close,()=>{n.unsubscribe(),t()}))})}else e()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._popover.isShown&&(this._popover.hide(),this.setAriaDescribedBy(),this.isOpen.set(!1))}toggle(){if(this._popover.isShown)return this.hide();this.show()}ngOnInit(){this._isInited||(this._isInited=!0,this._renderer.removeAttribute(this._elementRef.nativeElement,"popover"),this._popover.listen({triggers:this.triggers,outsideClick:this.outsideClick,show:()=>this.show(),hide:()=>this.hide()}))}ngOnDestroy(){this._popover.dispose()}static{this.\u0275fac=function(t){return new(t||s)(H(ct),H(ee),H(re),H(Me),H(Ne),H(Ae))}}static{this.\u0275dir=W({type:s,selectors:[["","popover",""]],inputs:{adaptivePosition:"adaptivePosition",boundariesElement:"boundariesElement",popover:"popover",popoverContext:"popoverContext",popoverTitle:"popoverTitle",placement:"placement",outsideClick:"outsideClick",triggers:"triggers",container:"container",containerClass:"containerClass",isOpen:[1,"isOpen"],delay:"delay"},outputs:{isOpen:"isOpenChange",onShown:"onShown",onHidden:"onHidden"},exportAs:["bs-popover"],features:[ce([Ae,Ne])]})}}return s})(),qe=(()=>{class s{static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275mod=ve({type:s})}static{this.\u0275inj=ge({imports:[U]})}}return s})();var sn=(s,i,e)=>({"site-item d-flex flex-row justify-content-start":!0,"list position-relative":s,"grid ms-3 me-3 mb-3":i,pinned:e}),on=s=>({"site-link d-flex flex-nowrap text-decoration-none":!0,"align-items-center flex-row flex-grow-1":s}),bi=(s,i)=>({$implicit:s,sc:i});function rn(s,i){if(s&1){let e=T();l(0,"a",5),x("click",function(n){y(e);let o=p(2);return D(o.goTo(n))}),l(1,"span",6),f(2,"img",7),d(),l(3,"span",8),v(4),d()(),l(5,"button",9),E(),l(6,"svg",10),f(7,"path",11),d()()}if(s&2){let e=p().$implicit,t=p(),n=le(4);u("href",I(e.url),M)("ngClass",$(14,on,t.sitesView==="list")),S("data-site-id",e.id),h(2),u("ngSrc",I(e.icon.url))("alt",I(e.name+" icon")),h(2),P(e.name),h(),u("popover",n)("outsideClick",!0)("adaptivePosition",!0)("popoverContext",Z(16,bi,e,t.siteCategory)),S("aria-label","More info for "+e.name)}}function an(s,i){if(s&1){let e=T();l(0,"div",4)(1,"div",12)(2,"button",13),x("click",function(n){y(e);let o=p(2);return D(o.clickLink(n))}),f(3,"img",14),d()(),l(4,"div",15)(5,"div",16)(6,"a",17),x("click",function(n){y(e);let o=p(2);return D(o.goTo(n))}),v(7),d()(),l(8,"div",18)(9,"button",9),E(),l(10,"svg",19),f(11,"path",11),d()()()()()}if(s&2){let e=p().$implicit,t=p(),n=le(4);h(2),S("aria-label","Go to "+e.name+" url"),h(),u("ngSrc",I(e.icon.url))("alt",I(e.name+" icon")),h(3),u("href",I(e.url),M),S("data-site-id",e.id),h(),P(e.name),h(2),u("popover",n)("outsideClick",!0)("adaptivePosition",!0)("popoverContext",Z(14,bi,e,t.siteCategory)),S("aria-label","More info for "+e.name)}}function ln(s,i){if(s&1){let e=T();l(0,"li",3),x("mouseenter",function(n){y(e);let o=p();return D(o.onMouseEnter(n))})("mouseleave",function(n){y(e);let o=p();return D(o.onMouseLeave(n))}),w(1,rn,8,19),w(2,an,12,17,"div",4),d()}if(s&2){let e=i.$implicit,t=p();u("ngClass",Ht(3,sn,t.sitesView==="list",t.sitesView==="grid",e.weight)),h(),b(t.sitesView==="list"?1:-1),h(),b(t.sitesView==="grid"?2:-1)}}function cn(s,i){if(s&1&&(l(0,"p",23),v(1),d()),s&2){let e=p().$implicit;h(),P(e.description)}}function dn(s,i){if(s&1){let e=T();l(0,"button",32),x("click",function(){y(e);let n=p().$implicit,o=p();return D(o.unpinSite(n))}),E(),l(1,"svg",33),f(2,"path",34),d()()}if(s&2){let e=p().$implicit;S("aria-label","Unpin "+e.name)}}function hn(s,i){if(s&1){let e=T();l(0,"button",32),x("click",function(){y(e);let n=p().$implicit,o=p();return D(o.pinSite(n))}),E(),l(1,"svg",35),f(2,"path",36),d()()}if(s&2){let e=p().$implicit;S("aria-label","Pin "+e.name)}}function pn(s,i){if(s&1){let e=T();l(0,"button",37),x("click",function(n){y(e);let o=p(2);return D(o.enterReorderMode(n))}),E(),l(1,"svg",38),f(2,"path",39),d(),v(3," Move "),d()}if(s&2){let e=p().$implicit;S("aria-label","Move "+e.name)}
1}function mn(s,i){if(s&1){let e=T();l(0,"div",20)(1,"div",6),f(2,"img",21),d(),l(3,"div",22)(4,"div",8),v(5),d(),w(6,cn,2,1,"p",23),d(),l(7,"div",24),w(8,dn,3,1,"button",25),w(9,hn,3,1,"button",25),d()(),l(10,"div",26)(11,"a",27),x("click",function(n){y(e);let o=p();return D(o.goTo(n))}),E(),l(12,"svg",28),f(13,"path",29)(14,"path",30),d(),v(15," View "),d(),w(16,pn,4,1,"button",31),d()}if(s&2){let e=i.$implicit,t=i.sc;h(2),u("src",I(e.icon.url),M),h(3),P(e.name),h(),b(e.description?6:-1),h(2),b(e.weight&&t.name!=="Recently Viewed"?8:-1),h(),b(e.weight?-1:9),h(2),u("href",I(e.url),M),S("data-site-id",e.id)("aria-label","Visit "+e.name),h(5),b(e.weight&&t.name!=="Recently Viewed"?16:-1)}}var xi=(()=>{class s{constructor(){this.sitesService=_(J),this._snackbar=_($e),this.subscription=new V}onMouseEnter(e){e.target.classList.add("hover")}onMouseLeave(e){e.target.classList.remove("hover")}clickLink(e){e.target.closest(".image").nextElementSibling.querySelector(".name a").click()}goTo(e){let t=e.target,n=t.tagName.toLowerCase();if(e.preventDefault(),n=="button"||(n=="svg"||n=="path")&&t.closest("button"))return;n!="a"&&(t=t.closest(".site-link"));let o=parseInt(t.dataset.siteId);this.subscription.add(this.sitesService.storeRecentlyVisited(o).pipe(Te(()=>{this.sitesService.getSitesData()})).subscribe({next:()=>{},error:r=>console.log(r)})),window.open(t.href,"_blank"),e.preventDefault()}pinSite(e){this.subscription.add(this.sitesService.pinSite(e).subscribe({next:t=>{this._snackbar.open(t.message,null,{panelClass:"success",duration:5e3}),this.sitesService.getSitesData()},error:t=>{t.message?this._snackbar.open(t.message,"X",{panelClass:"error"}):this._snackbar.open(t.error.error,"X",{panelClass:"error"})},complete:()=>{}}))}unpinSite(e){this.subscription.add(this.sitesService.unpinSite(e).subscribe({next:t=>{this._snackbar.open(t.message,null,{panelClass:"success",duration:5e3}),this.sitesService.getSitesData()},error:t=>{t.message?this._snackbar.open(t.message,"X",{panelClass:"error"}):this._snackbar.open(t.error.error,"X",{panelClass:"error"})}}))}enterReorderMode(e){this.sitesService.setImportantSitesMode("reorder"),e.preventDefault()}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275cmp=A({type:s,selectors:[["app-sites-default-view"]],inputs:{siteCategory:"siteCategory",sitesView:"sitesView"},decls:5,vars:0,consts:[["popOverTemplate",""],[1,"sites-container","d-flex","flex-row","align-items-stretch","flex-wrap","list-unstyled","m-0","p-0"],[3,"ngClass"],[3,"mouseenter","mouseleave","ngClass"],[1,"site-link"],["aria-haspopup","true","aria-expanded","false",3,"click","href","ngClass"],[1,"icon"],["width","18","height","18",3,"ngSrc","alt"],[1,"name"],["type","button","aria-haspopup","true","aria-expanded","false","placement","right","boundariesElement","scrollParent",3,"popover","outsideClick","adaptivePosition","popoverContext"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-info-circle-fill"],["d","M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.
1081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"],[1,"image","align-items-center","d-flex","flex-grow-1","justify-content-center","ps-1","pe-1"],[3,"click"],["width","50","height","50",3,"ngSrc","alt"],[1,"info","d-flex","flex-row","flex-nowrap","flex-grow-1","align-items-center"],[1,"name","px-2","py-1"],["target","_blank",3,"click","href"],[1,"icon","pe-2","lh-1"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-info-circle-fill"],[1,"d-flex","flex-row","mb-3"],["alt","",3,"src"],[1,"details"],[1,"mb-0"],[1,"pin-unpin"],["type","button"],[1,"d-flex","flex-row","justify-content-start","actions"],[1,"btn","btn-sm","d-flex","flex-row","align-items-center","me-2",3,"click","href"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-eye-fill","text-primary","me-2"],["d","M10.5 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z"],["d","M0 8s3-5.5 8-5.5S16 8 16 8s-3 5.5-8 5.5S0 8 0 8zm8 3.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z"],["type","button",1,"btn","btn-sm","d-flex","flex-row","align-items-center"],["type","button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-star-fill"],["d","M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-star"],["d","M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256 4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73 3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356-.83 4.73zm4.905-2.767-3.686 1.894.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288L8 2.223l1.847 3.658a.525.525 0 0 0 .393.288l4.052.575-2.906 2.77a.565.565 0 0 0-.163.506l.694 3.957-3.686-1.894a.503.503 0 0 0-.461 0z"],["type","button",1,"btn","btn-sm","d-flex","flex-row","align-items-center",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-arrows-move","text-primary","me-2"],["fill-rule","evenodd","d","M7.646.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1-.708.708L8.5 1.707V5.5a.5.5 0 0 1-1 0V1.707L6.354 2.854a.5.5 0 1 1-.708-.708l2-2zM8 10a.5.5 0 0 1 .5.5v3.793l1.146-1.147a.5.5 0 0 1 .708.708l-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 0 1 .708-.708L7.5 14.293V10.5A.5.5 0 0 1 8 10zM.146 8.354a.5.5 0 0 1 0-.708l2-2a.5.5 0 1 1 .708.708L1.707 7.5H5.5a.5.5 0 0 1 0 1H1.707l1.147 1.146a.5.5 0 0 1-.708.708l-2-2zM10 8a.5.5 0 0 1 .5-.5h3.793l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L14.293 8.5H10.5A.5.5 0 0 1 10 8z"]],template:function(t,n){t&1&&(l(0,"ul",1),G(1,ln,3,7,"li",2,B),d(),ae(3,mn,17,11,"ng-template",null,0,Oe)),t&2&&(h(),j(n.siteCategory.sites))},dependencies:[U,X,$t,qe,Ue],styles:[`.site-item.list{flex:1 1 100%;margin-bottom:2px;margin-right:2.5rem;max-width:25rem}.site-item.list:hover,.site-item.list:focus-within,.site-item.list.hover{background-color:#f4f5f9}.site-item.list:hover>a .name,.site-item.list:focus-within>a .name,.site-item.list.hover>a .name{color:#345290}.site-item.list:hover button,.site-item.list:focus-within button,.site-item.list.hover button{display:block}.site-item.list>.site-link{font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:.875rem;height:2.5rem;line-height:1.125rem;max-height:4.375rem;padding-left:.625rem}.site-item.list>.site-link .icon{width:1.125rem}.site-item.list>.site-link .icon img{max-width:100%}.site-item.list>.site-link .name{color:#5a636b;margin-left:.625rem;padding-right:5px}.site-item.list>button{color:#5a636b;display:none;margin-right:.625rem}.site-item.grid{flex:1 1 100%;max-width:13.5rem}.site-item.grid .site-link{flex:1 1 auto;border:1px solid #d7e4ee;border-radius:3px;box-shadow:0 0 0 1px #fff;width:100%}.site-item.grid .site-link:hover,.site-item.grid .site-link:focus{text-decoration:none}.site-item.grid .image{background-color:#fff;min-height:5rem}.site-item.grid .image img{max-height:3.125rem;max-width:100%}.site-item.grid .info{background-color:#f6f7fa;border-top:1px solid #d7e4ee}.site-item.grid .info>.name{flex:1 1 auto;font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:.8125rem;font-weight:400;line-height:1.0625rem}.site-item.grid .info>.name a:hover{text-decoration:none}.site-item.grid .info .icon>button{color:#7f8993}.popover{max-width:20rem;position:absolute}.popover .icon{flex:1 1 100%;margin-right:1.25rem;max-width:3rem}.popover .icon img{max-width:100%}.popover .details{flex:1 1 auto;margin-right:5px}.popover .details .name{color:#345290;font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:1rem;line-height:1.25rem;margin-bottom:5px}.popover .details p{color:#5a636b;font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:.75rem;line-height:1rem}.popover .pin-unpin{flex:1 1 100%;max-width:.875rem}.popover .pin-unpin button{color:#2f94db99;font-size:1.125rem;line-height:18px}.popover .pin-unpin button:hover,.popover .pin-unpin button:focus{color:#2f94db}.popover .actions .btn{align-items:center;background-color:#fff;color:#5a636b;font-family:Open Sans,Arial,Helvetica,sans-serif}.popover .actions .btn:hover,.popover .actions .btn:focus{background-color:#f4f5f9} 2`],encapsulation:2})}}return s})();function mt(s){let i=s.cloneNode(!0),e=i.querySelectorAll("[id]"),t=s.nodeName.toLowerCase();i.removeAttribute("id");for(let n=0;n<e.length;n++)e[n].removeAttribute("id");return t==="canvas"?yi(s,i):(t==="input"||t==="select"||t==="textarea")&&Ci(s,i),Si("canvas",s,i,yi),Si("input, textarea, select",s,i,Ci),i}function Si(s,i,e,t){let n=i.querySelectorAll(s);if(n.length){let o=e.querySelectorAll(s);for(let r=0;r<n.length;r++)t(n[r],o[r])}}var un=0;function Ci(s,i){i.type!=="file"&&(i.value=s.value),i.type==="radio"&&i.name&&(i.name=`mat-clone-${i.name}-${un++}`)}function yi(s,i){let e=i.getContext("2d");if(e)try{e.drawImage(s,0,0)}catch(t){}}function bt(s){let i=s.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function ut(s,i,e){let{top:t,bottom:n,left:o,right:r}=s;return e>=t&&e<=n&&i>=o&&i<=r}function gn(s,i){let e=i.left<s.left,t=i.left+i.width>s.right,n=i.top<s.top,o=i.top+i.height>s.bottom;return e||t||n||o}function De(s,i,e){s.top+=i,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}
vendor: 4,269 bytes, lines 2-15
2function Di(s,i,e,t){let{top:n,right:o,bottom:r,left:a,width:c,height:m}=s,g=c*i,R=m*i;return t>n-R&&t<r+R&&e>a-g&&e<o+g}var We=class{_document;positions=new Map;constructor(i){this._document=i}clear(){this.positions.clear()}cache(i){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),i.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:bt(e)})})}handleScroll(i){let e=xe(i),t=this.positions.get(e);if(!t)return null;let n=t.scrollPosition,o,r;if(e===this._document){let m=this.getViewportScrollPosition();o=m.top,r=m.left}else o=e.scrollTop,r=e.scrollLeft;let a=n.top-o,c=n.left-r;return this.positions.forEach((m,g)=>{m.clientRect&&e!==g&&e.contains(g)&&De(m.clientRect,a,c)}),n.top=o,n.left=r,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function Ni(s,i){let e=s.rootNodes;if(e.length===1&&e[0].nodeType===i.ELEMENT_NODE)return e[0];let t=i.createElement("div");return e.forEach(n=>t.appendChild(n)),t}function xt(s,i,e){for(let t in i)if(i.hasOwnProperty(t)){let n=i[t];n?s.setProperty(t,n,e?.has(t)?"important":""):s.removeProperty(t)}return s}function he(s,i){let e=i?"":"none";xt(s.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Ei(s,i,e){xt(s.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function Ze(s,i){return i&&i!="none"?s+" "+i:s}function Pi(s,i){s.style.width=`${i.width}px`,s.style.height=`${i.height}px`,s.style.transform=Ee(i.left,i.top)}function Ee(s,i){return`translate3d(${Math.round(s)}px, ${Math.round(i)}px, 0)`}var Ce={capture:!0},ht={passive:!1,capture:!0},_n=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=A({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(t,n){},styles:[`@layer cdk-resets { 3 .cdk-drag-preview { 4 background: none; 5 border: none; 6 padding: 0; 7 color: inherit; 8 inset: auto; 9 } 10} 11.cdk-drag-placeholder *, 12.cdk-drag-preview * { 13 pointer-events: none !important; 14} 15`],encapsulation:2,changeDetection:0})}return s})(),St=(()=>{class s{_ngZone=_(_e);_document=_(Ve);_styleLoader=_(Yt);_renderer=_(tt).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new C;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=et([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new C;pointerUp=new C;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,ht)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,t){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(_n),this._activeDragInstances.update(n=>[...n,e]),this._activeDragInstances().length===1)){let n=t.type.startsWith("touch"),o=a=>this.pointerUp.next(a),r=[["scroll",a=>this._scroll.next(a),Ce],["selectstart",this._preventDefaultWhileDragging,ht]];n?r.push(["touchend",o,Ce],["touchcancel",o,Ce]):r.push(["mouseup",o,Ce]),n||r.push(["mousemove",a=>this.pointerMove.next(a),ht]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=r.map(([a,c,m])=>this._renderer.listen(this._document,a,c,m))})}}stopDragging(e){this._activeDragInstances.update(t=>{let n=t.indexOf(e);return n>-1?(t.splice(n,1),[...t]):t}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let t=[this._scroll];return e&&e!==this._document&&t.push(new Ye(n=>this._ngZone.runOutsideAngular(()=>{let o=this._renderer.listen(e,"scroll",r=>{this._activeDragInstances().length&&n.next(r)},Ce);return()=>{o()}}))),Ie(...t)}
15registerDirectiveNode(e,t){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,t)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(t){return new(t||s)};static \u0275prov=se({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function Ii(s){let i=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*i}function fn(s){let i=getComputedStyle(s),e=pt(i,"transition-property"),t=e.find(a=>a==="transform"||a==="all");if(!t)return 0;let n=e.indexOf(t),o=pt(i,"transition-duration"),r=pt(i,"transition-delay");return Ii(o[n])+Ii(r[n])}function pt(s,i){return s.getPropertyValue(i).split(",").map(t=>t.trim())}var vn=new Set(["position"]),gt=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView=null;_preview;get element(){return this._preview}constructor(i,e,t,n,o,r,a,c,m,g){this._document=i,this._rootElement=e,this._direction=t,this._initialDomRect=n,this._previewTemplate=o,this._previewClass=r,this._pickupPositionOnPage=a,this._initialTransform=c,this._zIndex=m,this._renderer=g}attach(i){this._preview=this._createPreview(),i.appendChild(this._preview),Ti(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(i){this._preview.style.transform=i}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(i){this._preview.classList.add(i)}getTransitionDuration(){return fn(this._preview)}addEventListener(i,e){return this._renderer.listen(this._preview,i,e)}_createPreview(){let i=this._previewTemplate,e=this._previewClass,t=i?i.template:null,n;if(t&&i){let o=i.matchSize?this._initialDomRect:null,r=i.viewContainer.createEmbeddedView(t,i.context);r.detectChanges(),n=Ni(r,this._document),this._previewEmbeddedView=r,i.matchSize?Pi(n,o):n.style.transform=Ee(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else n=mt(this._rootElement),Pi(n,this._initialDomRect),this._initialTransform&&(n.style.transform=this._initialTransform);return xt(n.style,{"pointer-events":"none",margin:Ti(n)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},vn),he(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("popover","manual"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>n.classList.add(o)):n.classList.add(e)),n}};function Ti(s){return"showPopover"in s}var wn={passive:!0},Ri={passive:!1},bn={passive:!1,capture:!0},xn=800,ki="cdk-drag-placeholder",Vi=new Set(["position"]);function Sn(s,i,e={dragStartThreshold:5,pointerDirectionChangeThreshold:5}){let t=s.get(re,null,{optional:!0})||s.get(tt).createRenderer(null,null);return new _t(i,e,s.get(Ve),s.get(_e),s.get(lt),s.get(St),t)}var _t=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=et(!1);_hasMoved=!1;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new C;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement=null;_rootElementTapHighlight;_pointerMoveSubscription=V.EMPTY;_pointerUpSubscription=V.EMPTY;_scrollSubscription=V.EMPTY;_resizeSubscription=V.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(i){i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEac
vendor: 37,000 bytes, line 15
15h(e=>he(e,i)))}_disabled=!1;beforeStarted=new C;started=new C;released=new C;ended=new C;entered=new C;exited=new C;dropped=new C;moved=this._moveEvents;data;constrainPosition;constructor(i,e,t,n,o,r,a){this._config=e,this._document=t,this._ngZone=n,this._viewportRuler=o,this._dragDropRegistry=r,this._renderer=a,this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new We(t),r.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(t=>q(t)),this._handles.forEach(t=>he(t,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){let e=q(i);if(e!==this._rootElement){this._removeRootElementListeners();let t=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[t.listen(e,"mousedown",this._pointerDown,Ri),t.listen(e,"touchstart",this._pointerDown,wn),t.listen(e,"dragstart",this._nativeDragStart,Ri)]),this._initialTransform=void 0,this._rootElement=e}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?q(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,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&&gn(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let i=this._boundaryElement.getBoundingClientRect(),e=this._rootElement.getBoundingClientRect(),t=0,n=0;e.left<i.left?t=i.left-e.left:e.right>i.right&&(t=i.right-e.right),e.top<i.top?n=i.top-e.top:e.bottom>i.bottom&&(n=i.bottom-e.bottom);let o=this._activeTransform.x,r=this._activeTransform.y,a=o+t,c=r+n;this._rootElement.style.transform=Ee(a,c),this._activeTransform={x:a,y:c},this._passiveTransform={x:a,y:c}}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),he(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),he(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){let i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){let i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_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=i=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(i);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,i)}else this.disabled||this._initializeDragSequence(this._rootElement,i)};_pointerMove=i=>{let e=this._getPointerPositionOnPage(i);if(!this._hasStartedDragging()){let n=Math.abs(e.x-this._pickupPositionOnPage.x),o=Math.abs(e.y-this._pickupPositionOnPage.y);if(n+o>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(i),c=this._dropContainer;if(!a){this._endDragSequence(i);return}(!c||!c.isDragging()&&!c.isReceiving())&&(i.cancelable&&i.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(i)))}return}i.cancelable&&i.preventDefault();let t=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(t),this._dropContainer)this._updateActiveDropContainer(t,e);else{let n=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,o=this._activeTransform;o.x=t.x-n.x+this._passiveTransform.x,o.y=t.y-n.y+this._passiveTransform.y,this._applyRootElementTransform(o.x,o.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:t,event:i,distance:this._getDragDistance(t),delta:this._pointerDirectionDelta})})};_pointerUp=i=>{this._endDragSequence(i)};_endDragSequence(i){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:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){ye(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),t=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(e,"selectstart",Cn,bn)}),t){let n=this._rootElement,o=n.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._marker=this._marker||this._document.createComment("");o.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=new gt(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(o,e)),Ei(n,!1,Vi),this._document.body.appendChild(o.replaceChild(r,n)),this.started.next({source:this,event:i}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();let t=this.isDragging(),n=ye(e),o=!n&&e.button!==0,r=this._rootElement,a=xe(e),c=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+xn>Date.now(),m=n?Xt(e):Kt(e);if(a&&a.draggable&&e.type==="mousedown"&&e.preventDefault(),t||o||c||m)return;if(this._handles.length){let O=r.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=bt(this._boundaryElement));let g=this._previewTemplate;this._pickupPositionInElement=g&&g.template&&!g.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,i,e);let R=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:R.x,y:R.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){Ei(this._rootElement,!0,Vi),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 e=this._dropContainer,t=e.getItemIndex(this),n=this._getPointerPositionOnPage(i),o=this._getDragDistance(n),r=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:o,dropPoint:n,event:i}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:o,dropPoint:n,event:i}),e.drop(this,t,this._initialIndex,this._initialContainer,r,o,n,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:t,y:n}){let o=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{let r=this._dropContainer.getItemIndex(this),a=this._dropContainer.getItemAtIndex(r+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(o,this._dropContainer,a),this._dropContainer=o,this._dropContainer.enter(this,i,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,n),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let i=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{let n=a=>{(!a||this._preview&&xe(a)===this._preview.element&&a.propertyName==="transform")&&(r(),t(),clearTimeout(o))},o=setTimeout(n,e*1.5),r=this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){let i=this._placeholderTemplate,e=i?i.template:null,t;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),t=Ni(this._placeholderRef,this._document)):t=mt(this._rootElement),t.style.pointerEvents="none",t.classList.add(ki),t}_getPointerPositionInElement(i,e,t){let n=e===this._rootElement?null:e,o=n?n.getBoundingClientRect():i,r=ye(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition(),c=r.pageX-o.left-a.left,m=r.pageY-o.top-a.top;return{x:o.left-i.left+c,y:o.top-i.top+m}}_getPointerPositionOnPage(i){let e=this._getViewportScrollPosition(),t=ye(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,n=t.pageX-e.left,o=t.pageY-e.top;if(this._ownerSVGElement){let r=this._ownerSVGElement.getScreenCTM();if(r){let a=this._ownerSVGElement.createSVGPoint();return a.x=n,a.y=o,a.matrixTransform(r.inverse())}}return{x:n,y:o}}_getConstrainedPointerPosition(i){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:t,y:n}=this.constrainPosition?this.constrainPosition(i,this,this._initialDomRect,this._pickupPositionInElement):i;if(this.lockAxis==="x"||e==="x"?n=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(t=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:o,y:r}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:c,height:m}=this._getPreviewRect(),g=a.top+r,R=a.bottom-(m-r),O=a.left+o,F=a.right-(c-o);t=Mi(t,O,F),n=Mi(n,g,R)}return{x:t,y:n}}_updatePointerDirectionDelta(i){let{x:e,y:t}=i,n=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-o.x),a=Math.abs(t-o.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(n.y=t>o.y?1:-1,o.y=t),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,he(this._rootElement,i))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(i=>i()),this._rootElementCleanups=void 0}_applyRootElementTransform(i,e){let t=1/this.scale,n=Ee(i*t,e*t),o=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=o.transform&&o.transform!="none"?o.transform:""),o.transform=Ze(n,this._initialTransform)}_applyPreviewTransform(i,e){let t=this._previewTemplate?.template?void 0:this._initialTransform,n=Ee(i,e);this._preview.setTransform(Ze(n,t))}_getDragDistance(i){let e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(i===0&&e===0||this.isDragging()||!this._boundaryElement)return;let t=this._rootElement.getBoundingClientRect(),n=this._boundaryElement.getBoundingClientRect();if(n.width===0&&n.height===0||t.width===0&&t.height===0)return;let o=n.left-t.left,r=t.right-n.right,a=n.top-t.top,c=t.bottom-n.bottom;n.width>t.width?(o>0&&(i+=o),r>0&&(i-=r)):i=0,n.height>t.height?(a>0&&(e+=a),c>0&&(e-=c)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){let e=this.dragStartDelay;return typeof e=="number"?e:ye(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){let e=this._parentPositions.handleScroll(i);if(e){let t=xe(i);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&De(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.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=Le(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){let t=this._previewContainer||"global";if(t==="parent")return i;if(t==="global"){let n=this._document;return e||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return q(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=i=>{if(this._handles.length){let e=this._getTargetHandle(i);e&&!this._disabledHandles.has(e)&&!this.disabled&&i.preventDefault()}else this.disabled||i.preventDefault()};_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}_conditionallyInsertAnchor(i,e,t){if(i===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(e===this._initialContainer&&e.hasAnchor){let n=this._anchor??=mt(this._placeholder);n.classList.remove(ki),n.classList.add("cdk-drag-anchor"),n.style.transform="",t?t.before(n):q(e.element).appendChild(n)}}};function Mi(s,i,e){return Math.max(i,Math.min(e,s))}function ye(s){return s.type[0]==="t"}function Cn(s){s.preventDefault()}function Fi(s,i,e){let t=Oi(i,s.length-1),n=Oi(e,s.length-1);if(t===n)return;let o=s[t],r=n<t?-1:1;for(let a=t;a!==n;a+=r)s[a]=s[a+r];s[n]=o}function Oi(s,i){return Math.max(0,Math.min(i,s))}var Ke=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction="ltr";constructor(i){this._dragDropRegistry=i}_previousSwap={drag:null,delta:0,overlaps:!1};start(i){this.withItems(i)}sort(i,e,t,n){let o=this._itemPositions,r=this._getItemIndexFromPointerPosition(i,e,t,n);if(r===-1&&o.length>0)return null;let a=this.orientation==="horizontal",c=o.findIndex(L=>L.drag===i),m=o[r],g=o[c].clientRect,R=m.clientRect,O=c>r?1:-1,F=this._getItemOffsetPx(g,R,O),pe=this._getSiblingOffsetPx(c,o,O),Ki=o.slice();return Fi(o,c,r),o.forEach((L,Xi)=>{if(Ki[Xi]===L)return;let Ct=L.drag===i,Xe=Ct?F:pe,yt=Ct?i.getPlaceholderElement():L.drag.getRootElement();L.offset+=Xe;let Dt=Math.round(L.offset*(1/L.drag.scale));a?(yt.style.transform=Ze(`translate3d(${Dt}px, 0, 0)`,L.initialTransform),De(L.clientRect,0,Xe)):(yt.style.transform=Ze(`translate3d(0, ${Dt}px, 0)`,L.initialTransform),De(L.clientRect,Xe,0))}),this._previousSwap.overlaps=ut(R,e,t),this._previousSwap.drag=m.drag,this._previousSwap.delta=a?n.x:n.y,{previousIndex:c,currentIndex:r}}enter(i,e,t,n){let o=this._activeDraggables,r=o.indexOf(i),a=i.getPlaceholderElement();r>-1&&o.splice(r,1);let c=n==null||n<0?this._getItemIndexFromPointerPosition(i,e,t):n,m=o[c];if(m===i&&(m=o[c+1]),!m&&(c==null||c===-1||c<o.length-1)&&this._shouldEnterAsFirstChild(e,t)&&(m=o[0]),m&&!this._dragDropRegistry.isDragging(m)){let g=m.getRootElement();g.parentElement.insertBefore(a,g),o.splice(c,0,i)}else this._element.appendChild(a),o.push(i);a.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables?.forEach(i=>{let e=i.getRootElement();if(e){let t=this._itemPositions.find(n=>n.drag===i)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return this._getVisualItemPositions().findIndex(e=>e.drag===i)}getItemAtIndex(i){return this._getVisualItemPositions()[i]?.drag||null}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:t})=>{De(t,i,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(i){this._element=i}_cacheItemPositions(){let i=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:bt(t)}}).sort((e,t)=>i?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(i,e,t){let n=this.orientation==="horizontal",o=n?e.left-i.left:e.top-i.top;return t===-1&&(o+=n?e.width-i.width:e.height-i.height),o}_getSiblingOffsetPx(i,e,t){let n=this.orientation==="horizontal",o=e[i].clientRect,r=e[i+t*-1],a=o[n?"width":"height"]*t;if(r){let c=n?"left":"top",m=n?"right":"bottom";t===-1?a-=r.clientRect[c]-o[m]:a+=o[c]-r.clientRect[m]}return a}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;let t=this._itemPositions,n=this.orientation==="horizontal";if(t[0].drag!==this._activeDraggables[0]){let r=t[t.length-1].clientRect;return n?i>=r.right:e>=r.bottom}else{let r=t[0].clientRect;return n?i<=r.left:e<=r.top}}_getItemIndexFromPointerPosition(i,e,t,n){let o=this.orientation==="horizontal",r=this._itemPositions.findIndex(({drag:a,clientRect:c})=>{if(a===i)return!1;if(n){let m=o?n.x:n.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&m===this._previousSwap.delta)return!1}return o?e>=Math.floor(c.left)&&e<Math.floor(c.right):t>=Math.floor(c.top)&&t<Math.floor(c.bottom)});return r===-1||!this._sortPredicate(r,i)?-1:r}},ft=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(i,e){this._document=i,this._dragDropRegistry=e}start(i){let e=this._element.childNodes;this._relatedNodes=[];for(let t=0;t<e.length;t++){let n=e[t];this._relatedNodes.push([n,n.nextSibling])}this.withItems(i)}sort(i,e,t,n){let o=this._getItemIndexFromPointerPosition(i,e,t),r=this._previousSwap;if(o===-1||this._activeItems[o]===i)return null;let a=this._activeItems[o];if(r.drag===a&&r.overlaps&&r.deltaX===n.x&&r.deltaY===n.y)return null;let c=this.getItemIndex(i),m=i.getPlaceholderElement(),g=a.getRootElement();o>c?g.after(m):g.before(m),Fi(this._activeItems,c,o);let R=this._getRootNode().elementFromPoint(e,t);return r.deltaX=n.x,r.deltaY=n.y,r.drag=a,r.overlaps=g===R||g.contains(R),{previousIndex:c,currentIndex:o}}enter(i,e,t,n){let o=this._activeItems.indexOf(i);o>-1&&this._activeItems.splice(o,1);let r=n==null||n<0?this._getItemIndexFromPointerPosition(i,e,t):n;r===-1&&(r=this._getClosestItemIndexToPointer(i,e,t));let a=this._activeItems[r];a&&!this._dragDropRegistry.isDragging(a)?(this._activeItems.splice(r,0,i),a.getRootElement().before(i.getPlaceholderElement())):(this._activeItems.push(i),this._element.appendChild(i.getPlaceholderElement()))}withItems(i){this._activeItems=i.slice()}withSortPredicate(i){this._sortPredicate=i}reset(){let i=this._element,e=this._previousSwap;for(let t=this._relatedNodes.length-1;t>-1;t--){let[n,o]=this._relatedNodes[t];n.parentNode===i&&n.nextSibling!==o&&(o===null?i.appendChild(n):o.parentNode===i&&i.insertBefore(n,o))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(i){return this._activeItems.indexOf(i)}getItemAtIndex(i){return this._activeItems[i]||null}updateOnScroll(){this._activeItems.forEach(i=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(i){i!==this._element&&(this._element=i,this._rootNode=void 0)}_getItemIndexFromPointerPosition(i,e,t){let n=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(t)),o=n?this._activeItems.findIndex(r=>{let a=r.getRootElement();return n===a||a.contains(n)}):-1;return o===-1||!this._sortPredicate(o,i)?-1:o}_getRootNode(){return this._rootNode||(this._rootNode=Le(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(i,e,t){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let n=1/0,o=-1;for(let r=0;r<this._activeItems.length;r++){let a=this._activeItems[r];if(a!==i){let{x:c,y:m}=a.getRootElement().getBoundingClientRect(),g=Math.hypot(e-c,t-m);g<n&&(n=g,o=r)}}return o}},Li=.05,zi=.05,N=(function(s){return s[s.NONE=0]="NONE",s[s.UP=1]="UP",s[s.DOWN=2]="DOWN",s})(N||{}),k=(function(s){return s[s.NONE=0]="NONE",s[s.LEFT=1]="LEFT",s[s.RIGHT=2]="RIGHT",s})(k||{});function yn(s,i){return new vt(i,s.get(St),s.get(Ve),s.get(_e),s.get(lt))}var vt=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis=null;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new C;entered=new C;exited=new C;dropped=new C;sorted=new C;receivingStarted=new C;receivingStopped=new C;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=V.EMPTY;_verticalScrollDirection=N.NONE;_horizontalScrollDirection=k.NONE;_scrollNode;_stopScrollTimers=new C;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(i,e,t,n,o){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=o;let r=this.element=q(i);this._document=t,this.withOrientation("vertical").withElementContainer(r),e.registerDropContainer(this),this._parentPositions=new We(t)}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(i,e,t,n){this._draggingStarted(),n==null&&this.sortingDisabled&&(n=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,t,n),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,t,n,o,r,a,c={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:t,container:this,previousContainer:n,isPointerOverContainer:o,distance:r,dropPoint:a,event:c})}withItems(i){let e=this._draggables;return this._draggables=i,i.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(n=>n.isDragging()).every(n=>i.indexOf(n)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._direction=i,this._sortStrategy instanceof Ke&&(this._sortStrategy.direction=i),this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){if(i==="mixed")this._sortStrategy=new ft(this._document,this._dragDropRegistry);else{let e=new Ke(this._dragDropRegistry);e.direction=this._direction,e.orientation=i,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,t)=>this.sortPredicate(e,t,this)),this}withScrollableParents(i){let e=this._container;return this._scrollableElements=i.indexOf(e)===-1?[e,...i]:i.slice(),this}withElementContainer(i){if(i===this._container)return this;let e=q(this.element),t=this._scrollableElements.indexOf(this._container),n=this._scrollableElements.indexOf(i);return t>-1&&this._scrollableElements.splice(t,1),n>-1&&this._scrollableElements.splice(n,1),this._sortStrategy&&this._sortStrategy.withElementContainer(i),this._cachedShadowRoot=null,this._scrollableElements.unshift(i),this._container=i,this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}getItemAtIndex(i){return this._isDragging?this._sortStrategy.getItemAtIndex(i):this._draggables[i]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,t,n){if(this.sortingDisabled||!this._domRect||!Di(this._domRect,Li,e,t))return;let o=this._sortStrategy.sort(i,e,t,n);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let t,n=N.NONE,o=k.NONE;if(this._parentPositions.positions.forEach((r,a)=>{a===this._document||!r.clientRect||t||Di(r.clientRect,Li,i,e)&&([n,o]=Dn(a,r.clientRect,this._direction,i,e),(n||o)&&(t=a))}),!n&&!o){let{width:r,height:a}=this._viewportRuler.getViewportSize(),c={width:r,height:a,top:0,right:r,bottom:a,left:0};n=Hi(c,e),o=Bi(c,i),t=window}t&&(n!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=o,this._scrollNode=t,(n||o)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let i=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.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 i=this._container.style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),Tt(0,Et).pipe(ue(this._stopScrollTimers)).subscribe(()=>{let i=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===N.UP?i.scrollBy(0,-e):this._verticalScrollDirection===N.DOWN&&i.scrollBy(0,e),this._horizontalScrollDirection===k.LEFT?i.scrollBy(-e,0):this._horizontalScrollDirection===k.RIGHT&&i.scrollBy(e,0)})};_isOverContainer(i,e){return this._domRect!=null&&ut(this._domRect,i,e)}_getSiblingContainerFromPosition(i,e,t){return this._siblings.find(n=>n._canReceive(i,e,t))}_canReceive(i,e,t){if(!this._domRect||!ut(this._domRect,e,t)||!this.enterPredicate(i,this))return!1;let n=this._getShadowRoot().elementFromPoint(e,t);return n?n===this._container||this._container.contains(n):!1}_startReceiving(i,e){let t=this._activeSiblings;!t.has(i)&&e.every(n=>this.enterPredicate(n,this)||this._draggables.indexOf(n)>-1)&&(t.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let i=Le(this._container);this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}};function Hi(s,i){let{top:e,bottom:t,height:n}=s,o=n*zi;return i>=e-o&&i<=e+o?N.UP:i>=t-o&&i<=t+o?N.DOWN:N.NONE}function Bi(s,i){let{left:e,right:t,width:n}=s,o=n*zi;return i>=e-o&&i<=e+o?k.LEFT:i>=t-o&&i<=t+o?k.RIGHT:k.NONE}function Dn(s,i,e,t,n){let o=Hi(i,n),r=Bi(i,t),a=N.NONE,c=k.NONE;if(o){let m=s.scrollTop;o===N.UP?m>0&&(a=N.UP):s.scrollHeight-m>s.clientHeight&&(a=N.DOWN)}if(r){let m=s.scrollLeft;e==="rtl"?r===k.RIGHT?m<0&&(c=k.RIGHT):s.scrollWidth+m>s.clientWidth&&(c=k.LEFT):r===k.LEFT?m>0&&(c=k.LEFT):s.scrollWidth-m>s.clientWidth&&(c=k.RIGHT)}return[a,c]}var Ai=new oe("CDK_DRAG_PARENT");var En=new oe("CdkDragHandle");var Gi=new oe("CDK_DRAG_CONFIG"),ji=new oe("CdkDropList"),$i=(()=>{class s{element=_(ee);dropContainer=_(ji,{optional:!0,skipSelf:!0});_ngZone=_(_e);_viewContainerRef=_(Me);_dir=_(at,{optional:!0});_changeDetectorRef=_(ot);_selfHandle=_(En,{optional:!0,self:!0});_parentDrag=_(Ai,{optional:!0,skipSelf:!0});_dragDropRegistry=_(St);_destroyed=new C;_handles=new me([]);_previewTemplate=null;_placeholderTemplate=null;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled=!1;constrainPosition;previewClass;previewContainer;scale=1;started=new z;released=new z;ended=new z;entered=new z;exited=new z;dropped=new z;moved=new Ye(e=>{let t=this._dragRef.moved.pipe(Pt(n=>({source:this,pointerPosition:n.pointerPosition,event:n.event,delta:n.delta,distance:n.distance}))).subscribe(e);return()=>{t.unsubscribe()}});_injector=_(Qe);constructor(){let e=this.dropContainer,t=_(Gi,{optional:!0});this._dragRef=Sn(this._injector,this.element,{dragStartThreshold:t&&t.dragStartThreshold!=null?t.dragStartThreshold:5,pointerDirectionChangeThreshold:t&&t.pointerDirectionChangeThreshold!=null?t.pointerDirectionChangeThreshold:5,zIndex:t?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),t&&this._assignDefaults(t),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(ue(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(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){Mt(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,n&&!n.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(e){let t=this._handles.getValue();t.push(e),this._handles.next(t)}_removeHandle(e){let t=this._handles.getValue(),n=t.indexOf(e);n>-1&&(t.splice(n,1),this._handles.next(t))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,t=e;this.rootElementSelector&&(t=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):q(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let t=this._dir,n=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,r=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof n=="object"&&n?n:rt(n),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(r).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe(Rt(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let t=this.element.nativeElement.parentElement;for(;t;){let n=this._dragDropRegistry.getDragDirectiveForNode(t);if(n){e.withParent(n._dragRef);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>
15{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){let{lockAxis:t,dragStartDelay:n,constrainPosition:o,previewClass:r,boundaryElement:a,draggingDisabled:c,rootElementSelector:m,previewContainer:g}=e;this.disabled=c??!1,this.dragStartDelay=n||0,this.lockAxis=t||null,o&&(this.constrainPosition=o),r&&(this.previewClass=r),a&&(this.boundaryElement=a),m&&(this.rootElementSelector=m),g&&(this.previewContainer=g)}_setupHandlesListener(){this._handles.pipe(ke(e=>{let t=e.map(n=>n.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),Re(e=>Ie(...e.map(t=>t._stateChanges.pipe(Je(t))))),ue(this._destroyed)).subscribe(e=>{let t=this._dragRef,n=e.element.nativeElement;e.disabled?t.disableHandle(n):t.enableHandle(n)})}static \u0275fac=function(t){return new(t||s)};static \u0275dir=W({type:s,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,n){t&2&&te("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._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",ie],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Gt]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[ce([{provide:Ai,useExisting:s}]),kt]})}return s})(),wt=new oe("CdkDropListGroup"),go=(()=>{class s{_items=new Set;disabled=!1;ngOnDestroy(){this._items.clear()}static \u0275fac=function(t){return new(t||s)};static \u0275dir=W({type:s,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:[2,"cdkDropListGroupDisabled","disabled",ie]},exportAs:["cdkDropListGroup"],features:[ce([{provide:wt,useExisting:s}])]})}return s})(),Ui=(()=>{class s{element=_(ee);_changeDetectorRef=_(ot);_scrollDispatcher=_(Qt);_dir=_(at,{optional:!0});_group=_(wt,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new C;_scrollableParentsResolved=!1;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation="vertical";id=_(Jt).getId("cdk-drop-list-");lockAxis=null;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}_disabled=!1;sortingDisabled=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled=!1;autoScrollStep;elementContainerSelector=null;hasAnchor=!1;dropped=new z;entered=new z;exited=new z;sorted=new z;_unsortedItems=new Set;constructor(){let e=_(Gi,{optional:!0}),t=_(Qe);this._dropListRef=yn(t,this.element),this._dropListRef.data=this,e&&this._assignDefaults(e),this._dropListRef.enterPredicate=(n,o)=>this.enterPredicate(n.data,o.data),this._dropListRef.sortPredicate=(n,o,r)=>this.sortPredicate(n,o.data,r.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),s._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(e){this._unsortedItems.add(e),e._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(t=>t._dragRef))}removeItem(e){if(this._unsortedItems.delete(e),this._latestSortedRefs){let t=this._latestSortedRefs.indexOf(e._dragRef);t>-1&&(this._latestSortedRefs.splice(t,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>
15e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let e=s._dropLists.indexOf(this);e>-1&&s._dropLists.splice(e,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(e){this._dir&&this._dir.change.pipe(Je(this._dir.value),ue(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{let t=Zt(this.connectedTo).map(n=>{if(typeof n=="string"){let o=s._dropLists.find(r=>r.id===n);return o}return n});if(this._group&&this._group._items.forEach(n=>{t.indexOf(n)===-1&&t.push(n)}),!this._scrollableParentsResolved){let n=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(n),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let n=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(n)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=rt(this.autoScrollStep,2),e.hasAnchor=this.hasAnchor,e.connectedTo(t.filter(n=>n&&n!==this).map(n=>n._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(t=>t._dragRef)),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),Ie(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){let{lockAxis:t,draggingDisabled:n,sortingDisabled:o,listAutoScrollDisabled:r,listOrientation:a}=e;this.disabled=n??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=r??!1,this.orientation=a||"vertical",this.lockAxis=t||null}_syncItemsWithRef(e){this._latestSortedRefs=e,this._dropListRef.withItems(e)}static \u0275fac=function(t){return new(t||s)};static \u0275dir=W({type:s,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,n){t&2&&(S("id",n.id),te("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._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",ie],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",ie],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",ie],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",ie]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[ce([{provide:wt,useValue:void 0},{provide:ji,useExisting:s}])]})}return s})();var In=(s,i)=>({"site-item d-flex flex-column justify-content-start ms-3 me-3 mb-3":!0,reorder:!0,"list flex-row":s,grid:i}),Tn=(s,i)=>({list:s,grid:i});
15function Rn(s,i){if(s&1&&(l(0,"span",5)(1,"span",7),E(),l(2,"svg",8),f(3,"path",9),d()(),Q(),l(4,"span",10),v(5),d()()),s&2){let e=p().$implicit;h(5),P(e.name)}}function kn(s,i){if(s&1&&(l(0,"div",11),f(1,"img",12),d(),l(2,"div",13)(3,"div",14),v(4),d(),l(5,"div",15)(6,"button",16),E(),l(7,"svg",8),f(8,"path",9),d()()()()),s&2){let e=p().$implicit;h(),u("src",I(e.icon.url),M),h(3),P(e.name),h(2),S("aria-label","Drag "+e.name+" site")}}function Vn(s,i){if(s&1&&f(0,"div",17),s&2){let e=p(2);u("ngClass",Z(1,Tn,e.sitesView==="list",e.sitesView==="grid"))}}function Mn(s,i){if(s&1&&(l(0,"div",4),w(1,Rn,6,1,"span",5),w(2,kn,9,4),ae(3,Vn,1,4,"div",6),d()),s&2){let e=i.$implicit,t=p();u("ngClass",Z(4,In,t.sitesView==="list",t.sitesView==="grid"))("cdkDragData",e),h(),b(t.sitesView==="list"?1:-1),h(),b(t.sitesView==="grid"?2:-1)}}var qi=(()=>{class s{constructor(){this._snackbar=_($e),this.sitesService=_(J),this.subscription=new V,this.createImportantSitesReorderForm()}get reorderSites(){return this.reorderImportantSitesForm.get("sites")}ngOnInit(){this.siteCategory.sites.forEach(e=>{this.reorderSites.push(new Se(e.id))})}createImportantSitesReorderForm(){this.reorderImportantSitesForm=new He({sites:new ai([],[Fe.required])})}onReorderImportantSubmit(){this.reorderImportantSitesForm.valid&&this.subscription.add(this.sitesService.reorderSites(this.reorderImportantSitesForm.value).subscribe({next:e=>{this._snackbar.open(e.message,null,{panelClass:"success",duration:5e3}),this.sitesService.setImportantSitesMode("normal")},error:e=>{e.message?this._snackbar.open(e.message,"X",{panelClass:"error"}):this._snackbar.open(e.error.error,"X",{panelClass:"error"})}}))}exitReorderMode(){this.sitesService.setImportantSitesMode("normal")}drop(e){let t=e.previousIndex,n=e.currentIndex;this.siteCategory.sites.splice(t,1),this.siteCategory.sites.splice(n,0,e.item.data);for(let o=0,r=this.siteCategory.sites.length;o<r;o++)this.reorderSites.at(o).patchValue(this.siteCategory.sites[o].id)}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275cmp=A({type:s,selectors:[["app-sites-reorder-view"]],inputs:{siteCategory:"siteCategory",sitesView:"sitesView"},decls:11,vars:5,consts:[["novalidate","",1,"d-flex","flex-row","justify-content-center","mb-3",3,"submit","formGroup"],["type","button",1,"btn","btn-sm","btn-light","me-2",3,"click"],["type","submit",1,"btn","btn-sm","btn-success"],["dragula","important-sites","cdkDropList","","cdkDropListOrientation","mixed",1,"sites-container","d-flex","flex-row","flex-wrap","align-items-stretch",3,"cdkDropListDropped","cdkDropListData"],["cdkDrag","",3,"ngClass","cdkDragData"],["tabindex","0",1,"site-link","d-flex","flex-row","flex-nowrap","align-items-center"],["class","site-placeholder",3,"ngClass",4,"cdkDragPlaceholder"],[1,"icon"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-arrows-move"],["fill-rule","evenodd","d","M7.646.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1-.708.708L8.5 1.707V5.5a.5.5 0 0 1-1 0V1.707L6.354 2.854a.5.5 0 1 1-.708-.708l2-2zM8 10a.5.5 0 0 1 .5.5v3.793l1.146-1.147a.5.5 0 0 1 .708.708l-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 0 1 .708-.708L7.5 14.293V10.5A.5.5 0 0 1 8 10zM.146 8.354a.5.5 0 0 1 0-.708l2-2a.5.5 0 1 1 .708.708L1.707 7.5H5.5a.5.5 0 0 1 0 1H1.707l1.147 1.146a.5.5 0 0 1-.708.708l-2-2zM10 8a.5.5 0 0 1 .5-.5h3.793l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L14.293 8.5H10.5A.5.5 0 0 1 10 8z"],[1,"name"],[1,"image","d-flex","flex-row","align-items-center","justify-content-center"],["alt","",3,"src"],[1,"info","d-flex","flex-row","align-items-center"],[1,"name","px-2","py-1"],[1,"icon","pe-2","lh-1"],["type","button"],[1,"site-placeholder",3,"ngClass"]],template:function(t,n){t&1&&(l(0,"form",0),x("submit",function(){return n.onReorderImportantSubmit()}),l(1,"button",1),x("click",function(){return n.exitReorderMode()}),v(2,"Cancel"),d(),l(3,"button",2),v(4,"Save"),d()(),l(5,"div",3),x("cdkDropListDropped",function(r){return n.drop(r)}),G(6,Mn,4,7,"div",4,B),d(),l(8,"pre"),v(9),we(10,"json"),d()),t&2&&(u("formGroup",n.reorderImportantSitesForm),h(5),u("cdkDropListData",n.siteCategory.sites),h(),j(n.siteCategory.sites),h(3),P(be(10,3,n.reorderImportantSitesForm.value)))},dependencies:[$i,Ui,je,Be,ze,Ge,U,X,jt],styles:[`.site-item.grid.reorder{align-items:stretch;background-color:#f4f5f9cc;border:1px solid #d7e4ee;cursor:grab;display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;width:100%}.site-item.grid.reorder .image{background-color:#f6f7fa}.site-item.grid.reorder .image img{filter:grayscale(1)}.site-placeholder{background-color:#f4f5f9cc;border:dotted 3px #d7e4ee;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)} 16`],encapsulation:2})}}return s})();var Pe=class{};var On=(s,i)=>({"site-item d-flex flex-row justify-content-start":!0,"list position-relative":s,"grid ms-3 me-3 mb-3":i}),Wi=s=>({$implicit:s});
16function Ln(s,i){if(s&1){let e=T();l(0,"a",4),x("click",function(n){y(e);let o=p(3);return D(o.goTo(n))}),l(1,"span",5),f(2,"img",6),d(),l(3,"span",7),v(4),d()(),l(5,"button",8),E(),l(6,"svg",9),f(7,"path",10),d()()}if(s&2){let e=p().$implicit;p(2);let t=le(2);u("href",I(e.url),M),S("data-site-id",e.id),h(2),u("src",I(e.icon.url),M)("alt",I(e.name+" icon")),h(2),P(e.name),h(),u("popover",t)("outsideClick",!0)("adaptivePosition",!0)("popoverContext",$(13,Wi,e)),S("aria-label","More info for "+e.name)}}function An(s,i){if(s&1){let e=T();l(0,"div",3)(1,"div",11)(2,"button",12),x("click",function(n){y(e);let o=p(3);return D(o.clickLink(n))}),f(3,"img",6),d()(),l(4,"div",13)(5,"div",14)(6,"a",15),x("click",function(n){y(e);let o=p(3);return D(o.goTo(n))}),v(7),d()(),l(8,"div",16)(9,"button",8),E(),l(10,"svg",17),f(11,"path",10),d()()()()()}if(s&2){let e=p().$implicit;p(2);let t=le(2);h(2),S("aria-label","Go to "+e.name+" url"),h(),u("src",I(e.icon.url),M)("alt",I(e.name+" icon")),h(3),u("href",I(e.url),M),S("data-site-id",e.id),h(),P(e.name),h(2),u("popover",t)("outsideClick",!0)("adaptivePosition",!0)("popoverContext",$(14,Wi,e)),S("aria-label","More info for "+e.name)}}function Nn(s,i){if(s&1&&(l(0,"li",2),w(1,Ln,8,15),w(2,An,12,16,"div",3),d()),s&2){let e=p(2);u("ngClass",Z(3,On,e.sitesView==="list",e.sitesView==="grid")),h(),b(e.sitesView==="list"?1:-1),h(),b(e.sitesView==="grid"?2:-1)}}function Fn(s,i){if(s&1&&(l(0,"ul",1),G(1,Nn,3,6,"li",2,B),d()),s&2){let e=p();h(),j(e.sites)}}function zn(s,i){if(s&1&&(l(0,"p",21),v(1),d()),s&2){let e=p().$implicit;h(),P(e.description)}}function Hn(s,i){if(s&1){let e=T();l(0,"button",29),x("click",function(){y(e);let n=p().$implicit,o=p();return D(o.pinSite(n))}),E(),l(1,"svg",30),f(2,"path",31),d()()}}function Bn(s,i){if(s&1){let e=T();l(0,"div",18)(1,"div",5),f(2,"img",19),d(),l(3,"div",20)(4,"div",7),v(5),d(),w(6,zn,2,1,"p",21),d(),l(7,"div",22),w(8,Hn,3,0,"button",23),d()(),l(9,"div",24)(10,"a",25),x("click",function(n){y(e);let o=p();return D(o.goTo(n))}),E(),l(11,"svg",26),f(12,"path",27)(13,"path",28),d(),v(14," View "),d()()}if(s&2){let e=i.$implicit;h(2),u("src",I(e.icon.url),M),h(3),P(e.name),h(),b(e.description?6:-1),h(2),b(e.weight?-1:8),h(2),u("href",I(e.url),M),S("data-site-id",e.id)("aria-label","Visit "+e.name)}}var Zi=(()=>{class s{constructor(){this.alertService=_(Wt),this.sitesService=_(J),this.subscription=new V}clickLink(e){e.target.closest(".image").nextElementSibling.querySelector(".name a").click()}goTo(e){let t=e.target,n=t.tagName.toLowerCase();if(e.preventDefault(),n=="button"||(n=="svg"||n=="path")&&t.closest("button"))return;n!="a"&&(t=t.closest(".site-link"));let o=parseInt(t.dataset.siteId);this.subscription.add(this.sitesService.storeRecentlyVisited(o).pipe(Te(()=>{this.sitesService.getSitesData()})).subscribe({next:()=>{},error:r=>console.log(r)})),window.open(t.href,"_blank"),e.preventDefault()}pinSite(e){this.subscription.add(this.sitesService.pinSite(e).subscribe({next:t=>{let n=new Pe;n.type="success",n.message=t.message,n.timeout=5e3,this.alertService.setAlert(n),this.sitesService.getSitesData()},error:t=>{let n=new Pe;n.type="danger",t.message?n.message=t.message:n.message=t.error.error,n.dismissible=!0,this.alertService.setAlert(n)}}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275cmp=A({type:s,selectors:[["app-sites-search-view"]],inputs:{sites:"sites",sitesView:"sitesView"},decls:3,vars:1,consts:[["popOverTemplate",""],[1,"sites-container","d-flex","flex-row","align-items-stretch","flex-wrap","list-unstyled","m-0","p-0"],[3,"ngClass"],[1,"site-link","flex-fill","w-100"],["aria-haspopup","true","aria-expanded","false",1,"site-link","d-flex","flex-nowrap","text-decoration-none","align-items-center","flex-row","flex-grow-1",3,"click","href"],[1,"icon"],[3,"src","alt"],[1,"name"],["type","button","aria-haspopup","true","aria-expanded","false","placement","right","boundariesElement","scrollParent",3,"popover","outsideClick","adaptivePosition","popoverContext"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-info-circle-fill"],["d","M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.
16081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"],[1,"image","bg-white","align-items-center","d-flex","flex-grow-1","justify-content-center","ps-1","pe-1"],[3,"click"],[1,"info","d-flex","flex-row","flex-nowrap","flex-grow-1","align-items-center"],[1,"name","px-2","py-1"],["target","_blank",3,"click","href"],[1,"icon","pe-2","lh-1"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-info-circle-fill"],[1,"d-flex","flex-row","mb-3"],["alt","",3,"src"],[1,"details"],[1,"mb-0"],[1,"pin-unpin"],["type","button","aria-label","Pin site"],[1,"d-flex","flex-row","justify-content-start","actions"],[1,"btn","btn-sm","d-flex","flex-row","align-items-center","me-2",3,"click","href"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-eye-fill","text-primary","me-2"],["d","M10.5 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z"],["d","M0 8s3-5.5 8-5.5S16 8 16 8s-3 5.5-8 5.5S0 8 0 8zm8 3.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z"],["type","button","aria-label","Pin site",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-star"],["d","M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256 4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73 3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356-.83 4.73zm4.905-2.767-3.686 1.894.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288L8 2.223l1.847 3.658a.525.525 0 0 0 .393.288l4.052.575-2.906 2.77a.565.565 0 0 0-.163.506l.694 3.957-3.686-1.894a.503.503 0 0 0-.461 0z"]],template:function(t,n){t&1&&(w(0,Fn,3,0,"ul",1),ae(1,Bn,15,9,"ng-template",null,0,Oe)),t&2&&b(n.sites.length>0?0:-1)},dependencies:[U,X,qe,Ue],styles:[`.site-item.list{flex:1 1 100%;margin-bottom:2px;margin-right:2.5rem;max-width:25rem}.site-item.list:hover,.site-item.list:focus-within,.site-item.list.hover{background-color:#f4f5f9}.site-item.list:hover>a .name,.site-item.list:focus-within>a .name,.site-item.list.hover>a .name{color:#345290}.site-item.list:hover button,.site-item.list:focus-within button,.site-item.list.hover button{display:block}.site-item.list>.site-link{font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:.875rem;height:2.5rem;line-height:1.125rem;max-height:4.375rem;padding-left:.625rem}.site-item.list>.site-link .icon{width:1.125rem}.site-item.list>.site-link .icon img{max-width:100%}.site-item.list>.site-link .name{color:#5a636b;margin-left:.625rem;padding-right:5px}.site-item.list>button{color:#5a636b;display:none;margin-right:.625rem}.site-item.grid{flex:1 1 100%;max-width:13.5rem}.site-item.grid .site-link{border:1px solid #d7e4ee;border-radius:3px;box-shadow:0 0 0 1px #fff}.site-item.grid .site-link:hover,.site-item.grid .site-link:focus{text-decoration:none}.site-item.grid .image{min-height:5rem}.site-item.grid .image img{max-height:3.125rem;max-width:100%}.site-item.grid .info{background-color:#f6f7fa;border-top:1px solid #d7e4ee}.site-item.grid .info>.name{flex:1 1 auto;font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:.8125rem;font-weight:400;line-height:1.0625rem}.site-item.grid .info>.name a:hover{text-decoration:none}.site-item.grid .info .icon>button{color:#7f8993}.popover{max-width:20rem;position:absolute}.popover .icon{flex:1 1 100%;margin-right:1.25rem;max-width:3rem}.popover .icon img{max-width:100%}.popover .details{flex:1 1 auto;margin-right:5px}.popover .details .name{color:#345290;font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:1rem;line-height:1.25rem;margin-bottom:5px}.popover .details p{color:#5a636b;font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:.75rem;line-height:1rem}.popover .pin-unpin{flex:1 1 100%;max-width:.875rem}.popover .pin-unpin button{color:#2f94db99;font-size:1.125rem;line-height:18px}.popover .pin-unpin button:hover,.popover .pin-unpin button:focus{color:#2f94db}.popover .actions .btn{align-items:center;background-color:#fff;color:#5a636b;font-family:Open Sans,Arial,Helvetica,sans-serif}.popover .actions .btn:hover,.popover .actions .btn:focus{background-color:#f4f5f9} 17`],encapsulation:2})}}return s})();var Gn=s=>({card:!0,"mb-4":s}),jn=s=>({"me-1":!0,btn:!0,active:s}),$n=s=>({btn:!0,active:s}),Un=s=>({"d-none":s});
17function qn(s,i){if(s&1){let e=T();l(0,"button",37),x("click",function(){y(e);let n=p(2);return D(n.resetSiteSearch())}),E(),l(1,"svg",38),f(2,"path",39),d()()}}function Wn(s,i){if(s&1&&(l(0,"option",15),v(1),d()),s&2){let e=i.$implicit,t=p(2);u("value",e.name)("selected",t.category.value===e.name),h(),P(e.name)}}function Zn(s,i){if(s&1){let e=T();l(0,"li")(1,"button",40),x("click",function(n){y(e);let o=p(2);return D(o.showCategory(n))}),v(2),d()()}if(s&2){let e=i.$implicit;h(),S("data-value",e.name),h(),P(e.name)}}function Kn(s,i){s&1&&(l(0,"p",42),v(1,"No sites match your search criteria."),d())}function Xn(s,i){if(s&1&&(f(0,"app-sites-search-view",41),w(1,Kn,2,0,"p",42)),s&2){let e=p(2);u("sites",e.sites)("sitesView",e.sitesView),h(),b(e.sites.length===0?1:-1)}}function Yn(s,i){s&1&&(E(),l(0,"svg",45),f(1,"path",49),d())}function Jn(s,i){s&1&&(E(),l(0,"svg",46),f(1,"path",50),d())}function Qn(s,i){if(s&1&&f(0,"app-sites-reorder-view",48),s&2){let e=p(3).$implicit,t=p(3);u("siteCategory",e)("sitesView",t.sitesView)}}function es(s,i){if(s&1&&w(0,Qn,1,2,"app-sites-reorder-view",48),s&2){let e=p(2).$implicit,t=p(3);b(e.sites.length>0&&t.sitesMode==="reorder"?0:-1)}}function ts(s,i){if(s&1&&f(0,"app-sites-default-view",48),s&2){let e=p(2).$implicit,t=p(3);u("siteCategory",e)("sitesView",t.sitesView)}}function is(s,i){if(s&1){let e=T();l(0,"div",0)(1,"button",43),we(2,"camelcase"),x("click",function(){y(e);let n=p().$implicit,o=p(3);return n.collapsed=!n.collapsed,D(o.categoryCollapseExpand(n))}),l(3,"span"),v(4),d(),f(5,"div",44),w(6,Yn,2,0,":svg:svg",45),w(7,Jn,2,0,":svg:svg",46),d(),l(8,"div",47),we(9,"camelcase"),w(10,es,1,1),w(11,ts,1,2,"app-sites-default-view",48),d()()}if(s&2){let e=p().$implicit,t=p(3);u("ngClass",$(16,Un,e.visible===!1)),h(),Lt("aria-controls",st("",be(2,12,e.name),"Collapse")),S("aria-expanded",!e.collapsed),h(3),P(e.name+" ("+e.sites.length+")"),h(2),b(e.collapsed?6:-1),h(),b(e.collapsed?-1:7),h(),u("id",st("",be(9,14,e.name),"Collapse"))("collapse",e.collapsed),h(2),b(e.name==="Important"?10:-1),h(),b(e.name!=="Important"||e.name==="Important"&&t.sitesMode==="normal"?11:-1)}}function ns(s,i){if(s&1&&w(0,is,12,18,"div",0),s&2){let e=i.$implicit;b(e?0:-1)}}function ss(s,i){if(s&1&&G(0,ns,1,1,null,null,B),s&2){let e=p(2);j(e.siteCategories)}}function os(s,i){if(s&1){let e=T();l(0,"div",4)(1,"h2",5),v(2),d(),l(3,"div",6)(4,"form",7),x("submit",function(){y(e);let n=p();return D(n.sitesSearchSubmit())}),l(5,"label",8),v(6,"Search for a site"),d(),l(7,"div",9),f(8,"input",10),w(9,qn,3,0,"button",11),d(),l(10,"div",12)(11,"label",13),v(12,"Choose a site category"),d(),l(13,"select",14)(14,"option",15),v(15,"All"),d(),G(16,Wn,2,3,"option",15,B),d()(),l(18,"button",16),v(19,"Search"),d()()(),l(20,"div",17)(21,"button",18),x("click",function(){y(e);let n=p();return D(n.switchView("list"))}),E(),l(22,"svg",19),f(23,"path",20),d()(),Q(),l(24,"button",21),x("click",function(){y(e);let n=p();return D(n.switchView("grid"))}),E(),l(25,"svg",22),f(26,"path",23),d()()()(),Q(),l(27,"div",24)(28,"div",25)(29,"h3"),v(30,"Categories"),d(),l(31,"ul")(32,"li")(33,"button",26),x("click",function(n){y(e);let o=p();return D(o.showCategory(n))}),v(34,"All"),d()(),G(35,Zn,3,2,"li",null,B),d()(),l(37,"div",27)(38,"div",28),E(),l(39,"svg",29),f(40,"path",30),d()(),Q(),l(41,"div",31),x("scroll",function(n){y(e);let o=p();return D(o.sitesColumnScroll(n))}),w(42,Xn,2,3)(43,ss,2,0),d(),l(44,"div",32),E(),l(45,"svg",33),f(46,"path",34),d()()()(),Q(),l(47,"p",35)(48,"a",36),v(49,"Feedback"),d()()}if(s&2){let e=p();h(2),P(e.title?e.title:e.serviceTitle),h(2),u("formGroup",e.sitesSearchForm),h(5),b(e.query.value?9:-1),h(5),u("value",null)("selected",e.category.value===null),h(2),j(e.siteCategories),h(5),u("ngClass",$(8,jn,e.sitesView==="list")),h(3),u("ngClass",$(10,$n,e.sitesView==="grid")),h(11),j(e.siteCategories),h(7),b(e.sites?42:43)}}function rs(s,i){if(s&1&&(l(0,"p",2),v(1),d()),s&2){let e=p();h(),P(e.errorMessage)}}var lr=(()=>{class s{constructor(){this.sitesService=_(J),this.userService=_(mi),this.inactive=!1,this.loading=!1,this.originalSitesColumnInnerScrollTop=0,this.siteCategories=[],this.sitesColumnScrollDirection="down",this.sitesMode="normal",this.subscription=new V,this.serviceTitle="Sites",this.createSiteSearchForm()}onResize(){this.resizeSitesPanelBody()}get query(){return this.sitesSearchForm.get("query")}get category(){return this.sitesSearchForm.get("category")}
17ngOnInit(){this.getSites(),this.formChanges(),this.getCurrentUser(),this.sitesService.sitesMode$.subscribe({next:e=>{e=="normal"&&this.sitesService.getSitesData(),e=="reorder"&&document.querySelector(".sites-column-inner").scrollTo(0,0),this.sitesMode=e},error:e=>console.log(e)})}formChanges(){this.subscription.add(this.category.valueChanges.subscribe({next:e=>{this.siteCategories.forEach(t=>{e!="null"&&(t.name==e?t.visible=!0:t.visible=!1),e=="null"&&(t.visible=!0)}),document.querySelectorAll("#sites-card-body .categories-column button").forEach(t=>{let n=t.getAttribute("data-value");e=="null"&&n==""||e!="null"&&n==e?t.classList.add("active"):t.classList.remove("active")})},error:e=>console.log(e)})),this.subscription.add(this.query.valueChanges.subscribe({next:e=>{if(e){let t=[];e=e.toLowerCase(),this.siteCategories.forEach(n=>{n.sites.forEach(o=>{let r=o.name.toLowerCase(),a=t.find(c=>c.name==o.name);r.indexOf(e)!==-1&&!a&&t.push(o)})}),this.siteCategories.forEach(n=>{n.sites.forEach(o=>{let r=o.description.toLowerCase(),a=t.find(c=>c.name==o.name);r.indexOf(e)!==-1&&!a&&t.push(o)})}),this.siteCategories.forEach(n=>{n.sites.forEach(o=>
17{o.tags.forEach(r=>{let a=t.find(m=>m.name==o.name);r.name.toLowerCase().indexOf(e)!==-1&&!a&&t.push(o)})})}),this.sites=t}else this.sites=null},error:e=>console.log(e)}))}showCategory(e){let t=e.target.dataset.value;t==""?this.sitesSearchForm.patchValue({category:"null"}):this.sitesSearchForm.patchValue({category:t}),this.sites&&this.resetSiteSearch()}getSites(){this.subscription.add(this.sitesService.sitesError$.pipe(ke(()=>this.loading=!0),Re(e=>{if(e)throw e;return this.sitesService.sites$})).subscribe({next:e=>{if(e.length>0){let t=e.find(n=>n.name=="Important");t&&(this.importantCategorySites=t.sites),this.siteCategories=e.map(n=>(n.visible=!0,n))}this.loading=!1},error:e=>{e instanceof Ut?(this.errorMessage=e.error,this.loading=!1):console.log(e)}}))}getCurrentUser(){this.subscription.add(this.userService.currentUser$.subscribe({next:e=>{if(e&&e.preferences&&e.preferences.length>0){let t=e.preferences.find(n=>n.name=="sites-view");t?this.sitesView=t.value:this.sitesView="list"}else this.sitesView="list";this.user=e},error:e=>console.log(e)}))}createSiteSearchForm(){this.sitesSearchForm=new He({query:new Se(null,Fe.required),category:new Se(null)})}sitesSearchSubmit(){this.sitesSearchForm.valid&&(this.loading=!0,this.loading=!1)}resetSiteSearch(){this.sites=null,this.sitesSearchForm.patchValue({query:null,category:"null"})}keepInfoOpen(){clearTimeout(this.infoBoxTimer),this.infoBoxTimer=null}closeInfoBox(e){this.infoBoxTimer=setTimeout(function(){let n=e.target.closest(".site-popover").previousSibling;n.getAttribute("aria-expanded")=="true"&&n.setAttribute("aria-expanded","false")},10)}categoryCollapseExpand(e){this.subscription.add(this.sitesService.storeCategoryPhase(e).subscribe({next:t=>{},error:t=>console.log(t)}))}switchView(e){let t=new pi;t.name="sites-view",t.value=e,this.sitesView=e,this.subscription.add(this.userService.storePreference(t).subscribe({next:n=>{},error:n=>console.log(n)}))}sitesColumnScroll(e){this.adjustScrollIndicator()}resizeSitesPanelBody(){let e=document.getElementById("sites-card-body");e&&(e.offsetWidth<576?e.classList.remove("sm","md","lg","xl"):e.offsetWidth>=576&&e.offsetWidth<768?(e.classList.remove("md","lg","xl"),e.classList.add("sm")):e.offsetWidth>=768&&e.offsetWidth<992?(e.classList.remove("sm","lg","xl"),e.classList.add("md")):e.offsetWidth>=992&&e.offsetWidth<1200?(e.classList.remove("sm","md","xl"),e.classList.add("lg")):(e.classList.remove("sm","md","lg"),e.classList.add("xl")))}adjustScrollIndicator(){let e,t,n=0,o,r,a=document.querySelector("#sites-card-body .sites-column"),c,m=0,g=0,R=0,O;if(a&&(o=a.querySelector(".scroll-indicator.up"),e=a.querySelectorAll(".collapseContent"),t=a.querySelectorAll(".collapse-heading"),r=a.querySelector(".scroll-indicator.down"),c=a.querySelector(".sites-column-inner"),c&&(m=c.offsetHeight,g=c.scrollTop,R=c.scrollHeight),O=a.querySelector(".sites-column-inner > ul.sites-container"),c&&this.originalSitesColumnInnerScrollTop!=c.scrollTop&&(this.sitesColumnScrollDirection=this.originalSitesColumnInnerScrollTop<c.scrollTop?"down":"up"),c&&(this.originalSitesColumnInnerScrollTop=c.scrollTop)),e&&e.length>0&&t&&t.length){for(let F=0;F<t.length;F++){let pe=t[F];n+=pe.offsetHeight}for(let F=0;F<e.length;F++){let pe=e[F];n+=pe.offsetHeight}}O&&(n=O.offsetHeight),n>m?(this.sitesColumnScrollDirection=="up"&&(r&&(r.classList.contains("invisible")||r.classList.add("invisible"),g==0&&r.classList.remove("invisible")),o&&(g>0?o.classList.remove("invisible"):o.classList.add("invisible"))),this.sitesColumnScrollDirection=="down"&&(o&&(o.classList.contains("invisible")||o.classList.add("invisible"),m+g==R&&o.classList.remove("invisible")),r&&(g>=0&&g<m+g&&r.classList.remove("invisible"),m+g==R&&r.classList.add("invisible")))):(o&&o.classList.add("invisible"),r&&r.classList.add("invisible"))}ngAfterViewInit(){this.resizeSitesPanelBody()}ngAfterViewChecked(){this.adjustScrollIndicator()}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275cmp=A({type:s,selectors:[["app-sites"]],hostBindings:function(t,n){t&1&&x("resize",function(){return n.onResize()},Vt)}
vendor: 4,686 bytes, line 17
17,inputs:{title:"title"},decls:5,vars:6,consts:[[3,"ngClass"],["id","sites-card-body",1,"card-body"],[1,"fw-bold","text-danger","text-center"],[3,"loading"],[1,"d-flex","flex-wrap","mb-4"],[1,"h4","mt-0","me-2","mb-2","text-info-300"],[1,"d-flex","justify-content-center","sites-filter-container"],["novalidate","",1,"d-flex","w-100","mb-0","sites-filter-form",3,"submit","formGroup"],["for","siteSearchInpt",1,"visually-hidden"],[1,"input-group","mb-3"],["type","text","formControlName","query","id","siteSearchInpt","placeholder","Search sites by name, keyword, etc","autocomplete","off",1,"form-control","form-control-sm","w-50"],["type","button","aria-label","Clear search",1,"btn","bg-transparent",2,"margin-left","-40px","z-index","100"],[1,"form-group-site-categories","mb-3"],["for","siteCategories",1,"form-label","visually-hidden"],["id","siteCategories","formControlName","category",1,"form-select"],[3,"value","selected"],["type","submit",1,"btn","btn-sm","btn-primary","ms-2","d-none"],[1,"sites-view","mb-2"],["type","button","title","List View",3,"click","ngClass"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-list"],["fill-rule","evenodd","d","M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"],["type","button","title","Grid View",3,"click","ngClass"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-grid"],["d","M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3z"],[1,"d-flex","flex-row","flex-nowrap","align-items-stretch"],[1,"categories-column"],["type","button","data-value","",1,"active",3,"click"],[1,"sites-column","d-flex","flex-row"],[1,"scroll-indicator","up","invisible"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-caret-up-fill"],["d","m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z"],["cdkScrollable","",1,"sites-column-inner","w-100",3,"scroll"],[1,"scroll-indicator","down","invisible"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-caret-down-fill"],["d","M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"],[1,"mt-3","mb-0"],["href","https://go.geneseo.edu/mygeneseositesfeedback","target","_blank",1,"text-info-300"],["type","button","aria-label","Clear search",1,"btn","bg-transparent",2,"margin-left","-40px","z-index","100",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-x-circle-fill"],["d","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"],["type","button",3,"click"],[3,"sites","sitesView"],[1,"text-center","fw-bold"],["type","button",1,"collapse-heading",3,"click","aria-controls"],["aria-hidden","true",1,"horizontal-rule"],["xmlns","http://www.w3.org/2000/svg","width","22","height","22","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-chevron-down"],["xmlns","http://www.w3.org/2000/svg","width","22","height","22","fill","currentColor","viewBox","0 0 16 16","aria-hidden","true",1,"bi","bi-chevron-up"],[1,"collapseContent",3,"id","collapse"],[3,"siteCategory","sitesView"],["fill-rule","evenodd","d","M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"],["fill-rule","evenodd","d","M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l
17-5.646 5.647a.5.5 0 0 1-.708-.708z"]],template:function(t,n){t&1&&(l(0,"div",0)(1,"div",1),w(2,os,50,12),w(3,rs,2,1,"p",2),f(4,"app-loading",3),d()()),t&2&&(u("ngClass",$(4,Gn,n.title)),h(2),b(!n.loading&&!n.errorMessage&&n.siteCategories?2:-1),h(),b(!n.loading&&n.errorMessage?3:-1),h(),u("loading",n.loading))},dependencies:[fi,_i,U,X,ui,je,Be,di,hi,oi,ci,ri,ze,Ge,li,xi,qi,Zi,vi],styles:[`.sites-filter-form{max-width:24.375rem}.sites-filter-form .input-group .form-control{border-bottom-right-radius:.2rem!important;border-top-right-radius:.2rem!important;height:2.0625rem}.sites-filter-form .input-group .btn{color:#646d75;padding-bottom:3px;padding-top:4px}.sites-filter-form .input-group .btn:hover{color:#b52b27}.sites-view .btn{color:#345290;line-height:1;padding-left:.375rem;padding-right:.375rem}.sites-view .btn.active{background-color:#f6f7fa;color:#5a636b;cursor:default}#sites-card-body .categories-column{display:none;margin-right:1.25rem;max-width:13.75rem;flex:1 1 100%}#sites-card-body .categories-column h3{color:#345290;font-size:1rem;font-weight:600;line-height:1.25rem;margin-bottom:.3125rem;margin-top:.9375rem;padding-left:.625rem}#sites-card-body .categories-column ul{list-style:none;margin:0;padding:0}#sites-card-body .categories-column ul li button{color:#5a636b;display:block;font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:.875rem;line-height:1.125rem;padding:.4375rem .625rem;text-align:left;width:100%}#sites-card-body .categories-column ul li button:hover,#sites-card-body .categories-column ul li button.active{background-color:#f6f7fa}#sites-card-body .sites-column{flex:1 1 100%;max-height:29.375rem;position:relative}#sites-card-body .sites-column .sites-column-inner{max-height:29.375rem;overflow-y:auto}#sites-card-body .sites-column .scroll-indicator{background-color:#f4f5f999;left:0;position:absolute;text-align:center;width:100%}#sites-card-body .sites-column .scroll-indicator.up{top:0}#sites-card-body .sites-column .scroll-indicator.down{top:27.875rem}#sites-card-body .sites-column .collapse-heading{align-items:center;color:#345290;display:flex;flex-flow:row;flex-wrap:nowrap;font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:1rem;font-weight:600;margin:.625rem 0 1rem;width:100%}#sites-card-body .sites-column .collapse-heading span{display:inline-block;order:1;padding:1px 4px}#sites-card-body .sites-column .collapse-heading .horizontal-rule{border-top:1px solid #CEDDEA;content:"";flex:1 0 auto;height:1px;margin:1px 5px 0;order:2}#sites-card-body .sites-column .collapse-heading svg{margin:0 .25rem;order:3}#sites-card-body.sm .categories-column,#sites-card-body.md .categories-column,#sites-card-body.lg .categories-column,#sites-card-body.xl .categories-column{display:block}#sites-card-body accordion accordion-group .card-header{background-color:transparent;border-bottom:none;padding:0}#sites-card-body>div{flex-flow:column}#sites-card-body>div .sites-filter-container{flex:1 1 auto}#sites-card-body>div .sites-filter-container .sites-filter-form{flex-flow:column}#sites-card-body.sm>div,#sites-card-body.md>div,#sites-card-body.lg>div,#sites-card-body.xl>div{align-items:center;flex-flow:row}#sites-card-body.sm>div .sites-filter-container .sites-filter-form,#sites-card-body.md>div .sites-filter-container .sites-filter-form,#sites-card-body.lg>div .sites-filter-container .sites-filter-form,#sites-card-body.xl>div .sites-filter-container .sites-filter-form{flex-flow:row}#sites-card-body.sm>div .sites-filter-container .sites-filter-form .form-group-site-categories,#sites-card-body.md>div .sites-filter-container .sites-filter-form .form-group-site-categories,#sites-card-body.lg>div .sites-filter-container .sites-filter-form .form-group-site-categories,#sites-card-body.xl>div .sites-filter-container .sites-filter-form .form-group-site-categories{display:none}.popover{max-width:20rem}.popover .icon{flex:1 1 100%;margin-right:1.25rem;max-width:3rem}.popover .icon img{max-width:100%}.popover .details{flex:1 1 auto;margin-right:5px}.popover .details .name{color:#345290;font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:1rem;line-height:1.25rem;margin-bottom:5px}.popover .details p{color:#5a636b;font-family:Open Sans,Arial,Helvetica,sans-serif;font-size:.75rem;line-height:1rem}.popover .pin-unpin{flex:1 1 100%;max-width:.875rem}.popover .pin-unpin button{color:#2f94db99;font-size:1.125rem;line-height:18px}.popover .pin-unpin button:hover,.popover .pin-unpin button:focus{color:#2f94db}.popover .actions .btn{align-items:center;background-color:#fff;color:#5a636b;font-family:Open Sans,Arial,Helvetica,sans-serif}.popover .actions .btn:hover,.popover .actions .btn:focus{background-color:#f4f5f9} 18`],encapsulation:2})}}return s})();export{$i as a,go as b,Ui as c,Pe as d,lr as e};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.