1import{a as ji}from"./chunk-GEGQ7BMY.js";import{a as hi,b as fi,c as _i,d as yi,e as bi,f as vi,g as gi,h as le,i as Mi,j as ce,k as Oi,l as Di,m as Ri,n as Yi,o as Pi,p as Gi}from"./chunk-PFPYDZEM.js";import{a as U}from"./chunk-3NHGXDGO.js";import{a as Ze,b as Ti,c as Ei,h as Vi,i as Ai}from"./chunk-BQLYUQUQ.js";import{a as Ii,b as xi,c as ki,d as Ke}from"./chunk-B2TFC6MN.js";import"./chunk-J4OYXPPY.js";import{a as se}from"./chunk-YT4R4ZLD.js";import{a as mi,b as ui}from"./chunk-KS3246G4.js";import"./chunk-NQ7YDYB5.js";import{b as ie,d as Si,e as Ci,f as wi,g as Fi,j as Je}from"./chunk-3O2ZXYOH.js";import{a as li,b as ci,f as Li}from"./chunk-AOKMH6F7.js";import{f as qt,i as Xt,j as ei,l as ti,m as ni,r as pi}from"./chunk-YN2QI7DK.js";import"./chunk-VDA7YXXZ.js";import{$ as Pt,$a as ne,Da as We,Ia as ii,L as Le,Ma as ri,N as Yt,Na as Be,O as K,Pa as qe,Q as Z,Qa as ai,Ua as re,V as X,Va as oi,W as Lt,Wa as si,X as we,Xa as ze,Z as f,_a as ae,aa as Gt,ab as di,ba as ee,ca as jt,da as Wt,db as oe,ea as Bt,eb as Qe,f as xt,ga as te,gb as Ue,ha as Pe,hb as He,ia as Ge,ib as $e,sa as rt,ta as je,za as Zt}from"./chunk-JOD2B45U.js";import{$ as et,$a as o,A as lt,B as W,Ba as s,Bd as Dt,Ca as E,Dd as Ye,Fb as ge,Gb as O,Ib as Y,Id as Rt,J as Ie,Jb as Ct,Jd as V,K as he,La as G,Lb as Se,Ld as Ne,Ma as _t,Mb as Ce,Na as v,Pa as yt,Qa as $,Qb as wt,Ra as l,S as fe,T,Ta as _e,Tb as Ft,Vb as J,W as w,Wa as g,Wb as tt,Xa as ke,Ya as bt,Z as ct,Za as ye,_ as dt,_a as be,ab as n,ac as Ve,ba as L,bb as S,dc as Ae,e as st,ea as M,eb as Te,f as R,fa as mt,fb as F,hc as It,hd as kt,ib as h,ic as Me,ka as P,kb as c,la as p,lb as vt,m as j,ma as u,mb as gt,mc as Oe,md as it,n as ue,nb as St,od as Tt,pa as N,pb as I,pd as Et,qa as pt,qb as x,qd as Vt,r as z,ra as ut,rb as k,rd as At,s as Fe,sa as D,ta as ht,ub as H,v as Xe,va as xe,vb as d,vd as Mt,wb as ve,wd as Ot,xa as ft,xb as Ee,xc as De,zc as Re}from"./chunk-JDHCD27D.js";import"./chunk-U56AJ4WN.js";import"./chunk-QW25UBG2.js";import"./chunk-VG435CBV.js";import"./chunk-2TGLTRKB.js";import"./chunk-QODWUC62.js";import"./chunk-ZZUOGAMH.js";import"./chunk-F5FWF62K.js";import"./chunk-62UTK67Z.js";import"./chunk-5MVDFBVA.js";import"./chunk-6NQXYX6O.js";import"./chunk-6FZ6HTFN.js";import"./chunk-3ZHAU54H.js";import"./chunk-BCEXGF7I.js";import"./chunk-4OC4J3KU.js";import"./chunk-5HJRL7AQ.js";import"./chunk-BZ2AF6A3.js";import"./chunk-5Q7TOUQO.js";import"./chunk-J7SAVNBH.js";import"./chunk-TQSIHDRQ.js";import"./chunk-5M5F6JO4.js";import"./chunk-4O3R4RJ7.js";import"./chunk-W5R36C44.js";import"./chunk-OKS7PAPY.js";import"./chunk-QL26X5CN.js";import"./chunk-6WAJIOJB.js";import"./chunk-TVI3JHAT.js";import"./chunk-VMEZMGAL.js";import"./chunk-NXZIHEPR.js";import"./chunk-TLDRWEYZ.js";import"./chunk-QAJCY744.js";import"./chunk-BKLTKOZS.js";import"./chunk-JP64JGEM.js";import"./chunk-ARNGCMWF.js";import"./chunk-RDW7RKSZ.js";import"./chunk-J7L74KD7.js";import"./chunk-F2IUQLPO.js";import"./chunk-ZFMKZYNV.js";import"./chunk-CGANMBIP.js";import"./chunk-JLJVUECB.js";import"./chunk-WVMWMMA5.js";import"./chunk-3LOXJAKH.js";import"./chunk-UFMCAAV4.js";import"./chunk-WH2R3KDH.js";import"./chunk-FHBFWDFD.js";import"./chunk-4VSZITBC.js";import"./chunk-3S5TWZ6V.js";import"./chunk-S3DH7XZE.js";import"./chunk-DUJRARYK.js";import"./chunk-ZDPKOQPE.js";import"./chunk-PCRX3JX6.js";import"./chunk-WBPLJNRU.js";import"./chunk-QQX4FGZT.js";import"./chunk-4KGZTO2H.js";import"./chunk-T3HRP72S.js";import"./chunk-FYPBPHK6.js";import"./chunk-K24OBSMV.js";import"./chunk-2ZONFV5N.js";import"./chunk-UPRN5RRP.js";import"./chunk-VPW6Q7ER.js";import"./chunk-D7CNU4UV.js";import"./chunk-ZKD6Q4NN.js";import"./chunk-AT4MWBU6.js";import"./chunk-BEH76JLW.js";import"./chunk-FDBUMSDU.js";import"./chunk-VFXTUNKZ.js";import"./chunk-IQYLT45D.js";import"./chunk-ELFQCLW5.js";import"./chunk-XX6CYFHX.js";import"./chunk-R4ZRZJFL.js";import"./chunk-L657QK52.js";import"./chunk-TWHX6PYH.js";import"./chunk-ZMBKQYKH.js";import"./chunk-23MD5PJZ.js";import"./chunk-54FWYJWD.js";import"./chunk-SW52EETU.js";import"./chunk-FEUIO42G.js";import"./chunk-4Y7EKSO4.js";import"./chunk-7SKINCJQ.js";import"./chunk-5RRN3CNG.js";import"./chunk-XTUYEPAJ.js";import"./chunk-KU56GUYH.js";import"./chunk-NSSPUKNU.js";import"./chunk-QYMDOW3X.js";import"./chunk-C2WD53WW.js";import"./chunk-6XQL7KTK.js";import"./chunk-LUQVNFYH.js";import"./chunk-HSPB25GH.js";import"./chunk-KD7NBQZ2.js";import"./chunk-HUMDHSGG.js";import"./chunk-VYYV2WR2.js";import"./chunk-SERYFTHI.js";import"./chunk-SPBDFKQN.js";import{D as Kt}from"./chunk-TTMJZXM7.js";import"./chunk-DJEFBPF6.js";import"./chunk-HFV3BX2A.js";import"./chunk-2SD4HG2L.js";import"./chunk-PN45T4J6.js";import{a as Jt}from"./chunk-NTBGHQ6K.js";import"./chunk-YPBZBTIZ.js";import"./chunk-C2FWVWGW.js";import"./chunk-PGGWZRRL.js";import"./chunk-UNAYTCP3.js";import"./chunk-L62OWK2K.js";import"./chunk-T7ZNK6BJ.js";import"./chunk-7EQBH2NW.js";import"./chunk-A72T7OPD.js";import"./chunk-KCL7HKQ4.js";import"./chunk-LETHUPQK.js";import"./chunk-IGLWZTM3.js";import{a as $t}from"./chunk-HKKKCUFH.js";import"./chunk-2YQYWTFY.js";import"./chunk-ECZ7PBWU.js";import"./chunk-H3HTOQNB.js";import"./chunk-MJN6ZDZD.js";import"./chunk-RCTOGBGJ.js";import"./chunk-4D3QHJI2.js";import"./chunk-E2J2V7JN.js";import"./chunk-FRLOFI6C.js";import"./chunk-RXTIIY6K.js";import"./chunk-WFHAGO45.js";import"./chunk-37H4LYIE.js";import"./chunk-6I4ZS4ET.js";import"./chunk-HUYHDVA2.js";import"./chunk-VGL5PJXJ.js";import"./chunk-RFETR5NS.js";import"./chunk-IW3FZJZP.js";import"./chunk-7SOB5VNT.js";import"./chunk-YUIUJIOR.js";import"./chunk-ANMJJENO.js";import"./chunk-SS2JVLYO.js";import"./chunk-YW3L7OMP.js";import"./chunk-6TDLGY7R.js";import"./chunk-XPOSOJQS.js";import"./chunk-DDZ3KR2Q.js";import"./chunk-HINZ6I47.js";import"./chunk-6C2RHGCK.js";import"./chunk-NX4KVXRT.js";import"./chunk-RKIFHFP5.js";import"./chunk-TUP2LBIE.js";import"./chunk-4LPQT2SX.js";import{a as Q}from"./chunk-COC2OZ54.js";import"./chunk-OBHFW5SV.js";import"./chunk-DS6ZAKRC.js";import"./chunk-HMCZS4MF.js";import"./chunk-DK3AVWVC.js";import"./chunk-P3SS3TVY.js";
1import"./chunk-JKMSEH4M.js";import"./chunk-SYN7RTKF.js";import"./chunk-ON73BHK4.js";import"./chunk-SLQ46IMP.js";import"./chunk-KSAN64HE.js";import"./chunk-4QGSVVO6.js";import"./chunk-RZU6EEB3.js";import"./chunk-K6EXLIDY.js";import"./chunk-CPOPW76G.js";import"./chunk-RN7FIFIX.js";import"./chunk-MWEVNH63.js";import"./chunk-NKCGXAZP.js";import"./chunk-RB2XUNWZ.js";import"./chunk-UPS3GTGM.js";import"./chunk-XJVYBG4P.js";import"./chunk-LD6JDGM4.js";import"./chunk-GIYFUJ7L.js";import"./chunk-IGQBNJNN.js";import"./chunk-QVOOKHMN.js";import"./chunk-HRL5THFW.js";import"./chunk-C4EATB5L.js";import"./chunk-5AIUMSX2.js";import"./chunk-V7B2CCHI.js";import"./chunk-5HE56K66.js";import"./chunk-PBCKWYA6.js";import"./chunk-46RKL2EM.js";import"./chunk-PKWQCDLC.js";import"./chunk-FB7IA6NC.js";import"./chunk-HUZNR2L4.js";import"./chunk-MOH6VPHM.js";import"./chunk-3AMP7A7C.js";import"./chunk-HO42MNY5.js";import"./chunk-RDZ3BVCD.js";import"./chunk-RG5CTBQ4.js";import"./chunk-FNGEWL3U.js";import"./chunk-LJ5Q3KED.js";import"./chunk-UEJLHX2E.js";import"./chunk-TNK2G5YD.js";import"./chunk-XHD5KS2W.js";import"./chunk-VIC4YF7C.js";import"./chunk-O7TMSX43.js";import"./chunk-ZPN2NAQN.js";import"./chunk-NIYDRLW4.js";import"./chunk-XHOTVM3O.js";import"./chunk-NYOCZ43I.js";import"./chunk-7LWBAHKX.js";import"./chunk-LNYBTIG7.js";import"./chunk-D4I6ZQKR.js";import"./chunk-IFFYADB3.js";import"./chunk-R2JU4DLM.js";import"./chunk-OKZDTEIM.js";import{e as Ht}from"./chunk-SHGUVSVI.js";import"./chunk-3BND4F5K.js";import"./chunk-EZI37X7V.js";import"./chunk-75NPZ7HO.js";import"./chunk-LOEAA5XF.js";import"./chunk-45365BH5.js";import"./chunk-KBUBAKBM.js";import"./chunk-TFCWMFOQ.js";import"./chunk-I3S324BU.js";import"./chunk-VFGTXZIM.js";import"./chunk-T3N6EYEF.js";import"./chunk-W5S6WXSZ.js";import"./chunk-MCO7DSFO.js";import"./chunk-NTVSTLYX.js";import"./chunk-MBFI6CGI.js";import"./chunk-HHJJPMV6.js";import"./chunk-353PICLG.js";import"./chunk-CAZ7M5DC.js";import"./chunk-LOMYR75D.js";import"./chunk-RHFXNMSL.js";import"./chunk-U6WVZEYH.js";import"./chunk-GZKVZ4TD.js";import"./chunk-7QY3BMVN.js";import"./chunk-NWPYI2UP.js";import"./chunk-TNPL7MIN.js";import"./chunk-BFTVWOI6.js";import"./chunk-ZJ3KJJ63.js";import"./chunk-I2MBJ3M7.js";import"./chunk-LRG7YKEN.js";import"./chunk-4NSJUDQO.js";import"./chunk-UKICUBNO.js";import"./chunk-M5NUXHLD.js";import"./chunk-SQKRLW6R.js";import"./chunk-DFTBSFIN.js";import"./chunk-PDBA6QOJ.js";import"./chunk-M2GLXRA2.js";import"./chunk-CF52RSJZ.js";import"./chunk-ALWV3RJ2.js";import"./chunk-7C6Z24SS.js";import"./chunk-2ETHV3H2.js";import"./chunk-ZVHU7VE3.js";import"./chunk-TG7MYBKB.js";import"./chunk-KYVNAIKK.js";import{e as Ut}from"./chunk-T7XD7V2T.js";import"./chunk-4ZBUTOIE.js";import"./chunk-JUS4MKBW.js";import"./chunk-WDTJILD4.js";import"./chunk-3UBQVOI4.js";import"./chunk-5LLXTGP2.js";import"./chunk-ONYDXMTT.js";import"./chunk-BLAD3DA7.js";import"./chunk-Q3RM5UTT.js";import"./chunk-DLMNTZQ6.js";import"./chunk-IYY5JQTE.js";import"./chunk-KT3R4VUS.js";import"./chunk-KBI3KW4E.js";import"./chunk-54RJ67CF.js";import"./chunk-V5IFIIWL.js";import"./chunk-V2JYXY4D.js";import"./chunk-5UDQQDEV.js";import"./chunk-TXXWDYRP.js";import"./chunk-DLCBWOSY.js";import"./chunk-PNJVOMPP.js";import"./chunk-WOSKHUYG.js";import"./chunk-PSBFLAJC.js";import"./chunk-7LGTWIAC.js";import"./chunk-TY37EXAA.js";import"./chunk-YUMN652D.js";import"./chunk-TCSTYJMB.js";import"./chunk-S7XK7FX5.js";import"./chunk-PCLUZ65O.js";import"./chunk-MIR5A3Z7.js";import"./chunk-2FURWH4E.js";import"./chunk-5MU2G7HW.js";import"./chunk-7SO6IQPR.js";import"./chunk-EBWCXIFH.js";import"./chunk-R43PPFWG.js";import"./chunk-LHY2TOIB.js";import"./chunk-BTW4MGUI.js";import"./chunk-YFZG6HUK.js";import"./chunk-YI6IBXHV.js";import"./chunk-5OX7OX74.js";import"./chunk-VJFR7CVY.js";import"./chunk-7LEM3RHH.js";import"./chunk-II4RWQI3.js";import"./chunk-5OZU24FS.js";import"./chunk-6KRFVLII.js";import"./chunk-7Q3YF2MG.js";import"./chunk-SKQ7RYUF.js";import"./chunk-UNL5XY5B.js";import"./chunk-UWO35N4X.js";import"./chunk-PLK75Q3A.js";import"./chunk-KNHCPC3N.js";import"./chunk-TGH4HSNW.js";import"./chunk-LSBFLPDJ.js";import"./chunk-AM3VOA32.js";import"./chunk-OQAEBRA5.js";import"./chunk-SAOUSUZE.js";import"./chunk-XFYGS4YQ.js";import"./chunk-XUA64EFT.js";import"./chunk-4EJSG444.js";import"./chunk-MDSLION2.js";import"./chunk-ONLN3DS5.js";import"./chunk-KERTVZEB.js";import"./chunk-V2KSICSA.js";import{a as zt,b as Nt}from"./chunk-TCZU6JLS.js";import"./chunk-OG6NDV7Y.js";import"./chunk-HSLYIFR4.js";import"./chunk-M5DNT3MU.js";import"./chunk-4XBJYZ5W.js";import"./chunk-R4JFECO7.js";import"./chunk-SWOLYJBS.js";
1import"./chunk-LK4PFQLP.js";import"./chunk-BES4JRIO.js";import"./chunk-QYC4ILGT.js";import"./chunk-4JULHJQA.js";import"./chunk-JYRXWQX5.js";import"./chunk-N4C3TQXV.js";import"./chunk-3ZSPAYUG.js";import"./chunk-OEUDK4A7.js";import"./chunk-ZJQZEXV4.js";import"./chunk-D22JVIG4.js";import"./chunk-QWLQUMDY.js";import"./chunk-DKS57BVI.js";import"./chunk-VU5W7W6Y.js";import"./chunk-ZQ4IJSDM.js";import"./chunk-NOXQXPZQ.js";import"./chunk-WMLW3QJQ.js";import"./chunk-5CEFM27D.js";import"./chunk-BCREO4Q5.js";import{u as Qt}from"./chunk-FYHO4ULB.js";import"./chunk-FUMVX7XQ.js";import"./chunk-YZHSVWQ6.js";import"./chunk-JDT5QXWG.js";import"./chunk-M52MQETK.js";import"./chunk-76YVRX2R.js";import"./chunk-OZF6BMOL.js";import"./chunk-GJP6PTKT.js";import"./chunk-RSDQHAJX.js";import"./chunk-DOTYW6ST.js";import"./chunk-VOYK3LZF.js";import"./chunk-QGCCROOZ.js";import"./chunk-2BAXJKYK.js";import"./chunk-Z5Y2GXLN.js";import"./chunk-672GO22T.js";import"./chunk-SNFOAZZQ.js";import"./chunk-RNRCJDVT.js";import"./chunk-OVHPPCBL.js";import"./chunk-W3WDPWBE.js";import"./chunk-DE4UMQWQ.js";import"./chunk-MLSR6YE6.js";import"./chunk-GCWVITNF.js";import"./chunk-JWWEG5TZ.js";import"./chunk-PXPVXIY2.js";import"./chunk-MBDATR2U.js";import"./chunk-5TG5YCDX.js";import"./chunk-TM6CITDE.js";import"./chunk-GNAP6VFF.js";import{a as A,b as q,g as C}from"./chunk-JEGVIFEP.js";var Ji=["input"],Ki=["formField"],Zi=["*"],Xi=0,at=class{constructor(y,e){this.source=y,this.value=e}};var er=new et("MatRadioGroup"),tr=new et("mat-radio-default-options",{providedIn:"root",factory:ir});function ir(){return{color:"accent",disabledInteractive:!1}}var rr=(()=>{class a{get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,i,r,m,_,b,B){this._elementRef=t,this._changeDetector=i,this._focusMonitor=r,this._radioDispatcher=m,this._defaultOptions=b,this._ngZone=L(ht),this._uniqueId=`mat-radio-${++Xi}`,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new D,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this._injector=L(ut),this._onInputClick=$i=>{this.disabled&&this.disabledInteractive&&$i.preventDefault()},this.radioGroup=e,this._noopAnimations=_==="NoopAnimations",this._disabledInteractive=b?.disabledInteractive??!1,B&&(this.tabIndex=tt(B,0))}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,t)=>{e!==this.id&&t===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._inputElement.nativeElement.addEventListener("click",this._onInputClick)})}ngOnDestroy(){this._inputElement?.nativeElement.removeEventListener("click",this._onInputClick),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new at(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._c
1ontrolValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){let e=this.radioGroup,t;if(!e||!e.selected||this.disabled?t=this.tabIndex:t=e.selected===this?this.tabIndex:-1,t!==this._previousTabIndex){let i=this._inputElement?.nativeElement;i&&(i.setAttribute("tabindex",t+""),this._previousTabIndex=t,yt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===i&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===i&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static{this.\u0275fac=function(t){return new(t||a)(E(er,8),E(xe),E(Ft),E(kt),E(xt),E(ft,8),E(tr,8),pt("tabindex"))}}static{this.\u0275cmp=M({type:a,selectors:[["mat-radio-button"]],viewQuery:function(t,i){if(t&1&&(I(Ji,5),I(Ki,7,xe)),t&2){let r;x(r=k())&&(i._inputElement=r.first),x(r=k())&&(i._rippleTrigger=r.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(t,i){t&1&&h("focus",function(){return i._inputElement.nativeElement.focus()}),t&2&&($("id",i.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),_e("mat-primary",i.color==="primary")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("mat-mdc-radio-checked",i.checked)("mat-mdc-radio-disabled",i.disabled)("mat-mdc-radio-disabled-interactive",i.disabledInteractive)("_mat-animation-noopable",i._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",J],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:tt(e)],checked:[2,"checked","checked",J],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",J],required:[2,"required","required",J],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",J]},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[_t,O],ngContentSelectors:Zi,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(t,i){if(t&1){let r=F();vt(),o(0,"div",2,0)(2,"div",3)(3,"div",4),h("click",function(_){return p(r),u(i._onTouchTargetClick(_))}),n(),o(4,"input",5,1),h("change",function(_){return p(r),u(i._onInputInteraction(_))}),n(),o(6,"div",6),S(7,"div",7)(8,"div",8),n(),o(9,"div",9),S(10,"div",10),n()(),o(11,"label",11),gt(12),n()()}t&2&&(l("labelPosition",i.labelPosition),s(2),_e("mdc-radio--disabled",i.disabled),s(2),l("id",i.inputId)("checked",i.checked)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),$("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),s(5),l("matRippleTrigger",i._rippleTrigger.nativeElement)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0),s(2),l("for",i.inputId))},dependencies:[Mt,Rt],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled])~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, var(--mat-app-on-surface))}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner
1-circle{border-color:var(--mdc-radio-selected-hover-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, var(--mat-app-on-surface))}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size);top:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2);left:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner
1-circle{border-color:var(--mdc-radio-selected-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-app-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-app-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-app-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, var(--mat-app-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display)}
1[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}}return a})(),Wi=(()=>{class a{static{this.\u0275fac=function(t){return new(t||a)}}static{this.\u0275mod=mt({type:a})}static{this.\u0275inj=dt({imports:[it,Oe,Ot,rr,it]})}}return a})();var sr=(a,y)=>({option:a,group:y});function lr(a,y){if(a&1&&(o(0,"mat-chip",8),d(1),n()),a&2){let e=c().$implicit;s(),Ee("",e.label,":")}}function cr(a,y){if(a&1){let e=F();o(0,"mat-chip-row",9),h("removed",function(){let i=p(e).$implicit,r=c().$implicit,m=c(2);return u(m.remove(i,r.id))}),d(1),o(2,"button",10)(3,"mat-icon"),d(4,"cancel"),n()()()}if(a&2){let e=y.$implicit;s(),Ee(" ",e," "),s(),$("aria-label","remove "+e)}}function dr(a,y){if(a&1&&(v(0,lr,2,1,"mat-chip",8),ye(1,cr,5,2,"mat-chip-row",null,ke),S(3,"div",7)),a&2){let e=y.$implicit;g(e.label?0:-1),s(),be(e.options)}}function mr(a,y){if(a&1&&ye(0,dr,4,1,"div",7,ke),a&2){let e=c();be(e.value)}}function pr(a,y){a&1&&(o(0,"mat-option",6),d(1,"No matching options"),n())}function ur(a,y){if(a&1&&(o(0,"mat-option",13),d(1),n()),a&2){let e=y.$implicit,t=c().$implicit;l("value",Ct(3,sr,e,t)),$("data-cy","autocomplete-option-"+e),s(),Ee(" ",e," ")}}function hr(a,y){if(a&1&&(o(0,"mat-optgroup",12),ye(1,ur,2,6,"mat-option",13,bt),n()),a&2){let e=y.$implicit;_e("form__multiselect-group--no-label",!e.label),l("label",e.label),s(),be(e.options)}}function fr(a,y){if(a&1&&(ye(0,hr,3,3,"mat-optgroup",11,ke),Se(2,"async")),a&2){let e=c();be(Ce(2,0,e.filtered_options))}}var _r=[13,188],me=(()=>{class a extends Ke{constructor(){super(...arguments),this.options=new R([]),this.separatorKeysCodes=_r}ngAfterViewInit(){}listenToFormValueChanges(){this.control.valueChanges.pipe(Ie(300),z(e=>typeof e=="string"?e:""),fe(""),T(e=>this.filterOptions(e))).subscribe()}add(e){let{option:t,group:i}=e.option.value,r,m=!1;if(!this.value)r=[{id:i.id,options:[t],label:i.label}],m=!0;else{r=[...this.value];let _=r.findIndex(b=>b.id===i.id);if(_===-1)r.push({id:i.id,options:[t],label:i.label}),m=!0;else{let b=A({},r[_]);b.options.includes(t)||(b.options=[...b.options,t],r[_]=b,m=!0)}}this.reset(!0,!1,""),m&&(this.value=r,this.selectedItem.emit(r))}clearInput(e){this.filtered_options.getValue().length>0&&e.chipInput?.clear?.()}reset(e,t,i){this.control.setValue(""),super.reset(e,t,i)}selectValue(e){}filterOptions(e){return this.options.pipe(W(t=>t!=null),w(t=>{if(!e)this.filtered_options.next(t);else{let i=t.map(r=>q(A({},r),{options:r.options.filter(m=>m.toLowerCase().includes(e.toLowerCase()))})).filter(r=>r.options.length>0);this.filtered_options.next(i)}}))}remove(e,t){if(this.value){this.autoCompleteTrigger.closePanel();let i=[...this.value],r=i.findIndex(m=>m.id===t);if(r>-1){let m=A({},i[r]),_=[...m.options];_.includes(e)&&(m.options=_.filter(b=>b!==e),m.options.length===0?i.splice(r,1):i[r]=m,i.length===0&&(i=null),this.value=i,this.selectedItem.emit(i))}}}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=N(a)))(i||a)}})()}static{this.\u0275cmp=M({type:a,selectors:[["app-multi-autocomplete"]],inputs:{options:"options"},standalone:!0,features:[G,O],decls:13,vars:10,consts:[["chipGrid",""],["trigger",""],["auto","matAutocomplete"],["subscriptSizing","dynamic",1,"form__field"],["type","text","matInput","","data-cy","autocomplete-input",3,"matChipInputTokenEnd","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes","placeholder","formControl"],["autoActiveFirstOption","",3,"optionSelected"],["disabled",""],[1,"form__chip-group-spacer"],["disabled","",1,"form__chip-group-label"],[3,"removed"],["matChipRemove",""],[1,"form__multiselect-group",3,"label","form__multiselect-group--no-label"],[1,"form__multiselect-group",3,"label"],[3,"value"]],template:function(t,i){if(t&1){let r=F();o(0,"mat-form-field",3)(1,"mat-label"),d(2),n(),o(3,"mat-chip-grid",null,0),v(5,mr,2,0),n(),o(6,"input",4,1),h("matChipInputTokenEnd",function(_){return p(r),u(i.clearInput(_))}),n(),o(8,"mat-autocomplete",5,2),h("optionSelected",function(_){return p(r),u(i.add(_))}),v(10,pr,2,0,"mat-option",6),Se(11,"async"),v(12,fr,3,2),n()()}if(t&2){let r,m=H(4),_=H(9);s(2),ve(i.label),s(3),g(i.value?5:-1),s(),St("placeholder",i.placeholder),l("matChipInputFor",m)("matAutocomplete",_)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("formControl",i.control),s(4),g(((r=Ce(11,8,i.filtered_options))==null?null:r.length)===0?10:12)}}
1,dependencies:[te,Z,X,ee,ki,Ii,Ye,Dt,xi,le,fi,vi,gi,hi,yi,ne,ae,re,Ge,Pe,Qe,oe,Me]})}}return a})();var yr=["datepicker"];function br(a,y){if(a&1){let e=F();o(0,"mat-datepicker-actions")(1,"div"),d(2,"View data from the past"),n(),o(3,"mat-chip-listbox",5)(4,"mat-chip-option",6),h("click",function(){p(e);let i=c();return u(i.setYearRange(5))}),d(5,"5 years"),n(),o(6,"mat-chip-option",6),h("click",function(){p(e);let i=c();return u(i.setYearRange(10))}),d(7,"10 years"),n(),o(8,"mat-chip-option",6),h("click",function(){p(e);let i=c();return u(i.setYearRange(20))}),d(9,"20 years"),n()()()}if(a&2){let e=c();s(4),l("selected",e.selectedYearRange===5),s(2),l("selected",e.selectedYearRange===10),s(2),l("selected",e.selectedYearRange===20)}}function vr(a,y){if(a&1&&(o(0,"mat-error"),d(1),n()),a&2){let e=c();s(),ve(e.error)}}var gr={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"YYYY",dateA11yLabel:"YYYY",monthYearA11yLabel:"YYYY"}},nt=new Date(1984,0,1),ot=new Date(2050,11,31),Sr=(()=>{class a extends Vt{format(e,t){return e?e.getFullYear().toString():""}parse(e){if(!e)return null;if(/^\d{4}$/.test(e)){let t=Number(e);return new Date(t,0,1)}return super.parse(e)}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=N(a)))(i||a)}})()}static{this.\u0275prov=ct({token:a,factory:a.\u0275fac})}}return a})(),zi=(()=>{class a{constructor(){this.label="Select Year",this.error="Invalid year selected",this.minFilters=[],this.maxFilters=[],this.includeRangeChips=!0,this.yearSelected=new D,this.yearRangeSelected=new D,this.minYear=nt.getFullYear(),this.maxYear=ot.getFullYear(),this.filter=e=>{if(this.isValidDate(e)){let t=e?.getFullYear();if(t)return t>=this.minYear&&t<=this.maxYear}return!1}}ngOnChanges({minFilters:e,maxFilters:t}){if(e?.currentValue){let i=this.getFilterYear(e.currentValue,"min");i?this.minYear=Math.max(i,nt.getFullYear()):this.minYear=nt.getFullYear()}if(t?.currentValue){let i=this.getFilterYear(t.currentValue,"max");i?this.maxYear=Math.min(i,ot.getFullYear()):this.maxYear=ot.getFullYear()}}getFilterYear(e,t){let r=e.filter(m=>this.isValidDate(m)).map(m=>m.getFullYear());if(r.length>0)return t==="min"?Math.min(...r):Math.max(...r)}isValidDate(e){if(!(e instanceof Date))return!1;let t=e.getTime();return!isNaN(t)}setYearRange(e){this.yearRangeSelected.emit(e),this.datepicker?.close()}setYear(e){this.yearSelected.emit(e),this.datepicker?.close()}static{this.\u0275fac=function(t){return new(t||a)}}static{this.\u0275cmp=M({type:a,selectors:[["app-year-picker"]],viewQuery:function(t,i){if(t&1&&I(yr,5,Ze),t&2){let r;x(r=k())&&(i.datepicker=r.first)}},hostAttrs:[1,"form__field-container","form__field-container--year-picker"],inputs:{label:"label",error:"error",control:"control",minFilters:"minFilters",maxFilters:"maxFilters",selectedYearRange:"selectedYearRange",includeRangeChips:"includeRangeChips"},outputs:{yearSelected:"yearSelected",yearRangeSelected:"yearRangeSelected"},standalone:!0,features:[ge([{provide:Tt,useClass:Sr},{provide:Et,useValue:gr}]),P,O],decls:9,vars:7,consts:[["datepicker",""],["subscriptSizing","dynamic",1,"form__field"],["matInput","","placeholder","YYYY",3,"change","formControl","matDatepicker","matDatepickerFilter"],["matIconSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],[1,"datepicker__chips"],[3,"click","selected"]],template:function(t,i){if(t&1){let r=F();o(0,"mat-form-field",1)(1,"mat-label"),d(2),n(),o(3,"input",2),h("change",function(){return p(r),u(i.setYearRange(null))}),n(),S(4,"mat-datepicker-toggle",3),o(5,"mat-datepicker",4,0),h("yearSelected",function(_){return p(r),u(i.setYear(_))}),v(7,br,10,3,"mat-datepicker-actions"),n(),v(8,vr,2,1,"mat-error"),n()}if(t&2){let r=H(6);s(2),ve(i.label),s(),l("formControl",i.control)("matDatepicker",r)("matDatepickerFilter",i.filter),s(),l("for",r),s(3),g(i.includeRangeChips?7:-1),s(),g(i.control.hasError("matDatepickerFilter")?8:-1)}},dependencies:[le,bi,_i,Ai,Ze,Ti,Ei,Vi,ne,ae,re,oi,ze,Qe,oe,At,te,Z,X,ee]})}}return a})();var Fr=["featureWidgetRef"],Ir=["autocomplete"],xr=a=>({hidden:a});
1function kr(a,y){if(a&1){let e=F();o(0,"div",5)(1,"button",8),h("click",function(){p(e);let i=c();return u(i.openAddData.emit(!0))}),d(2,"Add Data Layers"),n()()}}function Tr(a,y){a&1&&(o(0,"li"),d(1,"Add one or more feature layers to the map"),n())}function Er(a,y){if(a&1&&(o(0,"div",7),d(1," Steps: "),o(2,"ol"),v(3,Tr,2,0,"li"),o(4,"li"),d(5,"Select a layer from the dropdown"),n(),o(6,"li"),d(7,"Select a feature from that layer in the map"),n()()()),a&2){let e=c();s(3),g(e.selectFromAddedLayers?3:-1)}}var Ni=(()=>{class a extends pi{constructor(){super(...arguments),this.pickInfo=new D,this.openAddData=new D,this.enabled=!1,this.selectFromAddedLayers=!1,this.layers={},this.autoOptions=new R([]),this.geomStringThreshold=15e3,this.autoCompleteHidden=!1}ngOnChanges({pickOptions:e,active:t,detailFeatureSelected:i,parentReset:r}){this.mapView&&!this.loaded&&(this.mapView.popup.visible=!1,this.selectFromAddedLayers?this.setupAddedLayerSelection():(this.setupLayerOptions(V.geom_picker_ids),window.Cypress&&(window.geomPicker=this)),this.loaded=!0),this.loaded&&t&&this.handleActiveChange(t),this.loaded&&(r&&r.currentValue&&this.reset(!1),this.checkOptionsChange(e)&&this.handleOptionsChange(),this.active&&(i?.currentValue||e?.currentValue?.pickInfo?.featureId)?this.removeHighlight():this.active&&this.featureGraphic&&i&&!i.currentValue&&this.highlightFeature(this.featureGraphic))}ngOnDestroy(){this.removeAddLayerListener(),this.removeViewListener(),this.removeHighlight(),this.mapView.popupEnabled=!0,super.ngOnDestroy()}checkOptionsChange(e){return this.active&&e&&e.currentValue&&"pickInfo"in e.currentValue&&(!this.callSimpleCompare(e.currentValue.pickInfo,e.previousValue?.pickInfo)||e.currentValue.aoiInfo?.geometry!==e.previousValue?.aoiInfo?.geometry)}callSimpleCompare(e,t){return ri(e,t)}handleActiveChange(e){!e.currentValue&&e.previousValue!==void 0?(this.removeViewListener(),this.mapView.popupEnabled=!0,this.removeHighlight(),this.openAddData.emit(!1)):e.currentValue&&(Object.keys(this.layers).length===0&&this.openAddData.emit(!0),this.featureGraphic&&e.previousValue!==void 0&&(this.removeHighlight(),this.highlightFeature(this.featureGraphic)),this.createViewListener(),this.selectFromAddedLayers?this.listenToAddedLayerUpdate():this.removeAddLayerListener(),e.currentValue&&e.previousValue===!1&&this.handleOptionsChange())}highlightFeature(e){super.highlightFeature(e)}handleOptionsChange(){this.pickOptions&&this.pickOptions.pickInfo?this.pickOptions.pickInfo?.portalId&&this.handlePortalItem(this.pickOptions.pickInfo.portalId):this.reset(!1)}handlePortalItem(e){this.callFindPortalItemById(e).pipe(T(t=>t?j(t.load().then(i=>i)):ue(null)),T(t=>(t&&(t.type==="feature"||t.type==="geojson"||t.type==="csv")&&this.selectNewLayer(t.title,t),j(this.selectNewFeature()))),he(1)).subscribe()}selectNewFeature(){return C(this,null,function*(){if(this.selectedFeatureId=this.pickOptions?.pickInfo?.featureId?this.pickOptions.pickInfo.featureId:null,this.selectedFeatureId)this.primaryService&&this.primaryService.load().then(()=>{let e=this.getOptionDetail();this.queryById().subscribe(t=>{this.featureLoaded=!0,this.featureLoadedChange.emit(t),this.handleFeatureDetails(t)})});else if(this.pickOptions?.aoiInfo?.aoiGeometry){let e=yield this.callGeomFromString(this.pickOptions.aoiInfo.aoiGeometry);this.graphicService.setGraphic(e,this.featureGraphicsLayer),this.mapView.goTo(e)}else this.removeHighlight()})}fetchAddLayersGroup(){let e=this.mapView.map.allLayers.find(t=>t.type==="group"&&t.title.toLowerCase()==="added layers");return e?e.allLayers.filter(t=>t instanceof Q||t instanceof Jt||t instanceof $t):[]}callFindPortalItemById(e){return Zt(this.mapView,e)}handleHitTestResults(e){return C(this,null,function*(){if(e.results.length){let t=e.results[0].type==="graphic"?e.results[0].graphic:null;t&&t.geometry&&this.currentTitle&&(yield this.pickFeature(t),this.renderFeatureWidget(t,this.featureWidgetRef))}else this.openSnackbar(`No features for ${this.currentTitle} found at this location`)})}createViewListener(){this.removeViewListener(),this.mapView.popupEnabled=!1,this.viewListener=this.mapView.on("click",e=>{this.handleMapClickEvent(e)})}handleMapClickEvent(e){this.currentTitle?(this.graphicService.setGraphic(null,this.featureGraphicsLayer),this.mapView.hitTest(e,{include:this.primaryService}).then(t=>{this.handleHitTestResults(t)}
1).catch(t=>{this.openSnackbar(`Error querying ${this.currentTitle}, please contact support if the issue persists`,"error")})):this.openSnackbar("No layer selected in pick feature tool, please select a layer from the dropdown")}removeViewListener(){this.viewListener&&(this.viewListener.remove(),this.viewListener=null)}openSnackbar(e,t){let i={duration:5e3};t==="warning"&&(i.panelClass="snackbar--warning"),t==="error"&&(i.panelClass="snackbar--error"),this.snackbar.open(e,"close",i)}getFeatureId(e,t){return t==="aoi"?"aoi-feature":e.getObjectId()?e.getObjectId():"aoi-feature"}getIntersectId(e){return e?e.intersect_id:"aoi"}pickFeature(e){return C(this,null,function*(){let t=Object.values(this.layers).find(B=>B?.portalItem?.id===this.primaryService?.portalItem?.id),i=t?V.geom_picker_ids.find(B=>B?.portal_id===t?.portalItem?.id):null,r=this.getIntersectId(i),m=this.getFeatureId(e,r),_=i?null:yield this.callGeomToString(e.geometry);_&&_.length>this.geomStringThreshold&&(_=yield this.generalizeGeometry(e.geometry));let b={pickInfo:{portalId:this.primaryService.portalItem?.id,featureId:m,intersectId:r,feature:e},aoiInfo:i?null:{aoiGeometry:_,jobId:null}};this.pickInfo.emit(b)})}generalizeGeometry(e){return C(this,null,function*(){this.openSnackbar("Selected geometry will be generalized for calculations due to size or complexity","warning");let t=.15,i=this.callGeometryEngineGeneralize(e,t),r=yield this.callGeomToString(i);for(;r.length>this.geomStringThreshold;)t+=.05,i=this.callGeometryEngineGeneralize(e,t),r=yield this.callGeomToString(i);return r})}callGeometryEngineGeneralize(e,t){return Kt(e,t,!1,"miles")}callGeomToString(e){return C(this,null,function*(){return yield qe(JSON.stringify(e))})}reset(e=!0){this.currentTitle="",this.pickOptions=null,this.removeHighlight(),this.featureGraphic=null,this.autocomplete.reset(!0,!1),this.featureWidget&&(this.featureWidget.visible=!1),e&&this.pickInfo.emit(null)}selectNewLayer(e,t){t&&!this.mapView.map.allLayers.includes(t)&&this.callAddLayerToMap(t),e?(this.setTitleAndCheckLayers(e,t),this.primaryService&&this.configurePrimaryServiceAndPickList()):this.reset(this.active)}callAddLayerToMap(e){ii(e,this.mapView)}setTitleAndCheckLayers(e,t){if(this.currentTitle=e,e in this.layers)this.primaryService=this.layers[e];else if(t)this.layers[t.title]=t,this.primaryService=t;else{this.openSnackbar("Layer not found in map, please try again","error");return}}configurePrimaryServiceAndPickList(){this.primaryService.outFields=["*"],this.mapView.scale>this.primaryService.minScale&&(this.mapView.scale=this.primaryService.minScale),this.primaryTableSource=new We(this.primaryService),this.callSetVisibleRecursive(this.primaryService),this.captureLayerView();let e=V.geom_picker_ids.find(t=>t.portal_id===this.primaryService.portalItem?.id);this.setPickOptions(e)}callSetVisibleRecursive(e){je(e)}setPickOptions(e){this.pickOptions?.pickInfo?(this.pickOptions.pickInfo.intersectId=e?e.intersect_id:"aoi",this.pickOptions.pickInfo.portalId=this.primaryService.portalItem?.id):this.pickOptions={pickInfo:{portalId:this.primaryService.portalItem?.id,featureId:null,intersectId:e?e.intersect_id:"aoi"},aoiInfo:null}}setupLayerOptions(e){this.layers={},this.mapView.map.allLayers.filter(t=>t instanceof Q&&t.portalItem?.id!=null&&t.portalItem.id!=""&&t.url?.includes("FeatureServer")).filter(t=>t instanceof Q&&e.flatMap(i=>i.portal_id).includes(t.portalItem.id)).forEach(t=>{let i=t;this.layers.hasOwnProperty(i.title)||(this.layers[i.title]=i)}),this.autoOptions.next(Object.keys(this.layers))}setupAddedLayerSelection(){this.layers={},this.fetchAddLayersGroup().forEach(e=>{let t=e;this.layers.hasOwnProperty(t.title)||(this.layers[t.title]=t)}),Object.keys(this.layers).length===0?(this.autoCompleteHidden=!0,this.active&&this.openAddData.emit(!0)):this.autoCompleteHidden=!1,this.autoOptions.next(Object.keys(this.layers))}getOptionDetail(){return V.geom_picker_ids.find(e=>e.portal_id===this.primaryService.portalItem?.id)}handleAddedLayerUpdate(e){return C(this,null,function*(){if(e.onMap)this.removeLayerFromGroup(e.layerId);else{let t=this.mapView.map.findLayerById(e.layerId);if(!t){this.active&&this.snackbar.open("There was an error adding that layer","error");return}yield this.checkAddedLayerTypeAndHandleUpdate(t)}Object.keys(this.layers).length===0&&this.active?(this.autoCompleteHidden=!0,this.active&&this.openAddData.emit(!0)):this.autoCompleteHidden=!1,this.autoOptions.next(Object.keys(this.layers))})}checkAddedLayerTypeAndHandleUpdate(e){return C(this,null,function*(){if(e.type==="feature"||e.type==="geojson"||e.type==="csv"){this.currentTitle=null;let t=yield this.addedFeatureLayer(e);e.parent&&e.parent instanceof Ut&&(e.parent.title.toLowerCase()==="added layers"?(this.currentTitle=t.title,this.selectNewLayer(t.title,t)):this.autocomplete.autoCompleteTrigger.openPanel
1())}else return})}removeLayerFromGroup(e){let t=Object.values(this.layers).find(i=>i?.id===e);t&&t.title in this.layers&&(delete this.layers[t.title],this.currentTitle===t.title&&(this.currentTitle=null,this.reset()))}addedFeatureLayer(e){return C(this,null,function*(){return yield e.load(),this.layers[e.title]=e,e})}addedGroupLayer(e){return C(this,null,function*(){e.loaded||(yield e.load());for(let t of e.allLayers.filter(i=>i.type==="feature"||i.type==="geojson"||i.type==="csv"))yield this.addedFeatureLayer(t)})}renderFeatureWidget(e,t){super.renderFeatureWidget(e,t),this.featureWidget.visible=!0,this.featureWidget.visibleElements.title=!0,this.highlightFeature(e)}listenToAddedLayerUpdate(){this.removeAddLayerListener(),this.addLayerListener=zt(()=>this.mapView.map.allLayers.map(e=>e.id),(e,t)=>{this.handleLayerIdChanges(e,t)})}handleLayerIdChanges(e,t){this.getIdChanges(e,t).forEach(r=>{this.handleAddedLayerUpdate({onMap:e.length<t.length,layerId:r})})}getIdChanges(e,t){return e.filter(i=>!t.includes(i)).concat(t.filter(i=>!e.includes(i))).toArray()}removeAddLayerListener(){this.addLayerListener&&(this.addLayerListener.remove(),this.addLayerListener=null)}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=N(a)))(i||a)}})()}static{this.\u0275cmp=M({type:a,selectors:[["app-geom-picker"]],viewQuery:function(t,i){if(t&1&&(I(Fr,5),I(Ir,5)),t&2){let r;x(r=k())&&(i.featureWidgetRef=r.first),x(r=k())&&(i.autocomplete=r.first)}},inputs:{pickOptions:"pickOptions",enabled:"enabled",selectFromAddedLayers:"selectFromAddedLayers"},outputs:{pickInfo:"pickInfo",openAddData:"openAddData"},standalone:!0,features:[G,P,O],decls:9,vars:7,consts:[["autocomplete",""],["featureWidgetRef",""],[1,"widget-panel__content","widget-panel__content--py-0"],[1,"widget-panel__content-section",3,"ngClass"],["placeholder","Select a layer","label","Layer",3,"selectedItem","options","value"],[1,"widget-panel__content-section","widget-panel__content-section--centered"],[1,"widget-panel__content-section"],[1,"widget-panel__help-text"],["mat-flat-button","","color","accent",3,"click"]],template:function(t,i){if(t&1){let r=F();o(0,"div",2)(1,"div",3)(2,"app-base-autocomplete",4,0),h("selectedItem",function(_){return p(r),u(i.selectNewLayer(_))}),n()(),v(4,kr,3,0,"div",5),o(5,"div",6),v(6,Er,8,1,"div",7),S(7,"div",null,1),n()()}t&2&&(s(),l("ngClass",Y(5,xr,i.autoCompleteHidden)),s(),l("options",i.autoOptions)("value",i.currentTitle),s(2),g(i.selectFromAddedLayers?4:-1),s(2),g(i.active&&!i.featureWidget||i.featureWidget&&!i.featureWidget.visible?6:-1))},dependencies:[Ke,ei,K,Le,Ae],styles:[".pdt-10[_ngcontent-%COMP%]{padding-top:10px}"]})}}return a})();var Or=["addLayerPicker"],Dr=["drawTools"],Rr=["fromMapPicker"];function Yr(a,y){if(a&1){let e=F();o(0,"app-geom-picker",12,1),h("openAddData",function(i){p(e);let r=c();return u(r.openAddData.emit(i))})("pickInfo",function(i){p(e);let r=c();return u(r.setPickInformation(i))}),n()}if(a&2){let e=c();l("active",e.selectedTool==="fromMap"&&e.active)("enabled",!0)("mapView",e.mapView)("parentReset",e.clearWidgets)("pickOptions",e.summaryOptions)}}function Lr(a,y){a&1&&Te(0)}function Pr(a,y){if(a&1&&S(0,"app-draw-tools",9,2),a&2){let e=c();l("active",e.selectedTool==="drawShape"&&e.active)("mapView",e.mapView)("areaFilterOptions",e.summaryOptions)("parentReset",e.clearWidgets)}}function Gr(a,y){a&1&&Te(0)}function jr(a,y){if(a&1){let e=F();o(0,"app-geom-picker",13,3),h("openAddData",function(i){p(e);let r=c();return u(r.openAddData.emit(i))})("pickInfo",function(i){p(e);let r=c();return u(r.setPickInformation(i))}),n()}if(a&2){let e=c();l("selectFromAddedLayers",!0)("active",e.selectedTool==="addLayer"&&e.active)("enabled",e.selectedTool==="addLayer"&&e.active&&!(!(e.summaryOptions==null||e.summaryOptions.pickInfo==null)&&e.summaryOptions.pickInfo.getIntersect)&&!(!(e.summaryOptions==null||e.summaryOptions.aoiInfo==null)&&e.summaryOptions.aoiInfo.jobId)&&!(!(e.summaryOptions==null||e.summaryOptions.aoiInfo==null)&&e.summaryOptions.aoiInfo.jobPending))("mapView",e.mapView)("parentReset",e.clearWidgets)("pickOptions",e.summaryOptions)}}function Wr(a,y){a&1&&Te(0)}function Br(a,y){a&1&&(o(0,"div",14)(1,"div",15),d(2," Please note that this process may take several minutes to complete. For best results, stay on the page and do not refresh. "),n()())}
1function qr(a,y){if(a&1&&v(0,Br,3,0,"div",14),a&2){let e=c();g(e.areaFilterOptions!=null&&e.areaFilterOptions.aoiInfo&&!e.showSummary?0:-1)}}var Qi=(()=>{class a extends se{ngOnDestroy(){this.active=!1,this.unsubscribeToSubscriptions()}constructor(e,t,i,r){super(t),this.location=i,this.selectionUpdated=new D,this.openAddData=new D,this.values=null,this.active=!1,this.screenSize="desktop",this.selectedToolIndex=0,this.loading=!1,this.areaFilterOptions=null,this.params=new st,this.loaded=!1,this.searchForm=new we({portalId:new f,featureId:new f,geometry:new f,intersectId:new f,jobId:new f}),this.summaryOptions=null,this.showSummary=!1,this.clearWidgets=!1,this.graphicService=L(ni),this.layoutService=L(ie),this.wildfireOptions=U}ngOnChanges({active:e,selectedTool:t,values:i}){if(this.mapView&&!this.loaded&&(this.subscribeToObservables([this.listenToQueryParams(),this.listenToFormChanges(),this.listenToScreenSize(),this.listenToGeometry()]),this.loaded=!0),this.loaded&&i){let r=this.getSpatialInputValues(i.currentValue);this.hasSpatialInputValues(r)?this.params.next(r):i.previousValue&&this.hasAreaSelection()&&this.clear()}t&&this.setSelectedToolIndex(t.currentValue)}setSelectedToolIndex(e){switch(e){case"fromMap":this.selectedToolIndex=0;break;case"drawShape":this.selectedToolIndex=1;break;case"addLayer":this.selectedToolIndex=2;break}}listenToQueryParams(){return this.params.pipe(ce(Object.keys(this.searchForm.controls)),W(e=>Object.keys(e).length>0),T(e=>j(this.handleParams(e))))}listenToScreenSize(){return this.layoutService.size.pipe(w(e=>this.screenSize=e))}listenToGeometry(){return this.graphicService.geometry$.pipe(T(()=>j(this.graphicService.getAoiGeometryString())),z(e=>{if(e){this.setDrawInfo({aoiGeometry:e,jobId:null});return}this.isDrawSelectionActive()&&this.setDrawInfo(null)}))}getSpatialInputValues(e){return e?Object.entries(e).reduce((t,[i,r])=>(this.searchForm.contains(i)&&(t[i]=r),t),{}):{}}hasSpatialInputValues(e){return Object.values(e).some(t=>t!=null&&t!=="")}hasAreaSelection(){return!!this.areaFilterOptions?.aoiInfo||!!this.areaFilterOptions?.pickInfo}isDrawSelectionActive(){return this.searchForm.value.featureId==="aoi-feature"||!!this.areaFilterOptions?.aoiInfo&&!this.areaFilterOptions?.pickInfo}clear(){this.areaFilterOptions=null,this.summaryOptions=null,this.searchForm.reset(),this.loading=!1,this.showSummary=!1,this.reset(),this.resetWildfires()}handleParams(e){return C(this,null,function*(){this.searchForm.patchValue(e),this.showSummary="jobId"in e||"jobPending"in e||"getIntersect"in e;let t=yield this.setAreaFilterFromParams(e);if(!t){this.clear();return}this.areaFilterOptions=t,(this.areaFilterOptions?.aoiInfo||this.areaFilterOptions?.pickInfo)&&(this.summaryOptions=Object.assign({},this.areaFilterOptions))})}setPickInformation(e){e?(this.clearWidgets=!1,this.areaFilterOptions=e,this.summaryOptions=Object.assign({},e),this.searchForm.patchValue(q(A(A({},e.pickInfo),e.aoiInfo),{geometry:e.aoiInfo?.aoiGeometry})),this.showSummary=!1):this.areaFilterOptions&&this.clear()}setDrawInfo(e){e?(this.clearWidgets=!1,this.areaFilterOptions={aoiInfo:e,pickInfo:null},this.summaryOptions=Object.assign({},this.areaFilterOptions),this.searchForm.patchValue({geometry:e.aoiGeometry,jobId:e.jobId,portalId:null,featureId:"aoi-feature",intersectId:null}),this.showSummary=!1):this.areaFilterOptions&&this.clear()}setAreaFilterFromParams(e){return C(this,null,function*(){let t=null,i=null;if(e.geometry&&e.portalId===null){let r=yield Be(e.geometry);this.graphicService.setGeometry(r),t={aoiGeometry:e.geometry,jobId:"jobId"in e?e.jobId:null,jobPending:"jobPending"in e?!0:null,featureId:"aoi"}}return"featureId"in e&&e.featureId!=="aoi-feature"&&(i={portalId:"portalId"in e?e.portalId:null,featureId:e.featureId,intersectId:"intersectId"in e?e.intersectId:null,getIntersect:!0}),"geometry"in e&&e.geometry&&"portalId"in e&&e.portalId&&(t={jobId:"jobId"in e?e.jobId:null,jobPending:"jobPending"in e?!0:null,featureId:"aoi",aoiGeometry:null},i={portalId:"portalId"in e?e.portalId:null,intersectId:"aoi",featureId:e.featureId}),!t&&!i?null:{aoiInfo:t,pickInfo:i}})}callCalculateGeodesicAreaAcres(e){return ti(e)}resetWildfires(){Object.values(this.wildfireOptions).filter(e=>
1e.service!==null).forEach(e=>{let t=e.service;t.definitionExpression=t._initState&&t._initState?.definitionExpression?t._initState?.definitionExpression:"1=1"})}getExpansionText(e,t,i){let r="";return i instanceof Mi&&(r=" wildfires"),t?.queryError?`Error loading ${e}${r}`:i.expansionPanelDisabled?`No ${e}${r} found`:`Open to view ${e}${r}`}listenToFormChanges(){return this.searchForm.valueChanges.pipe(w(e=>this.selectionUpdated.emit(e)))}reset(){this.fromMapPicker.reset(!1),this.drawTools?.clearShape(),this.addLayerPicker.reset(!1)}static{this.\u0275fac=function(t){return new(t||a)(E(Re),E(De),E(Ve),E(Xt))}}static{this.\u0275cmp=M({type:a,selectors:[["app-spatial-filters"]],viewQuery:function(t,i){if(t&1&&(I(Or,5),I(Dr,5),I(Rr,5)),t&2){let r;x(r=k())&&(i.addLayerPicker=r.first),x(r=k())&&(i.drawTools=r.first),x(r=k())&&(i.fromMapPicker=r.first)}},inputs:{selectedTool:"selectedTool",values:"values",active:"active"},outputs:{selectionUpdated:"selectionUpdated",openAddData:"openAddData"},standalone:!0,features:[ge([Ve]),G,P,O],decls:12,vars:10,consts:[["helpText",""],["fromMapPicker",""],["drawTools",""],["addLayerPicker",""],[1,"tabs__tab-group","tabs__tab-group--no-header",3,"selectedIndex"],["title","Pick","label","Pick Feature From Map",1,"tabs__tab",3,"disabled"],[3,"active","enabled","mapView","parentReset","pickOptions"],[4,"ngTemplateOutlet"],["title","Draw","label","Draw Area",1,"tabs__tab",3,"disabled"],[3,"active","mapView","areaFilterOptions","parentReset"],["title","Add Layer","label","Add Data Layer",1,"tabs__tab",3,"disabled"],[3,"selectFromAddedLayers","active","enabled","mapView","parentReset","pickOptions"],[3,"openAddData","pickInfo","active","enabled","mapView","parentReset","pickOptions"],[3,"openAddData","pickInfo","selectFromAddedLayers","active","enabled","mapView","parentReset","pickOptions"],[1,"widget-panel__content-section"],[1,"widget-panel__help-text"]],template:function(t,i){if(t&1&&(o(0,"mat-tab-group",4)(1,"mat-tab",5),v(2,Yr,2,5,"app-geom-picker",6)(3,Lr,1,0,"ng-container",7),n(),o(4,"mat-tab",8),v(5,Pr,2,4,"app-draw-tools",9)(6,Gr,1,0,"ng-container",7),n(),o(7,"mat-tab",10),v(8,jr,2,6,"app-geom-picker",11)(9,Wr,1,0,"ng-container",7),n()(),v(10,qr,1,1,"ng-template",null,0,wt)),t&2){let r=H(11);l("selectedIndex",i.selectedToolIndex),s(),l("disabled",i.loading),s(),g(i.mapView?2:-1),s(),l("ngTemplateOutlet",r),s(),l("disabled",i.loading),s(),g(i.mapView&&i.screenSize!=="mobile"?5:-1),s(),l("ngTemplateOutlet",r),s(),l("disabled",i.loading),s(),g(i.mapView?8:-1),s(),l("ngTemplateOutlet",r)}},dependencies:[K,Ge,$e,Ue,He,Je,Ne,It,mi,ui,Ni],styles:[".hidden[_ngcontent-%COMP%]{display:none}.draw-options[_ngcontent-%COMP%]{display:flex;justify-content:center}.wrapper[_ngcontent-%COMP%] .mat-button-toggle-group[_ngcontent-%COMP%]{height:20px;font-size:11px;align-items:center;min-width:400px;width:100%}mat-button-toggle[_ngcontent-%COMP%]{width:100%}.mat-button-toggle-appearance-standard.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#b1c671}.draw-tools[_ngcontent-%COMP%]{justify-content:center}.relative[_ngcontent-%COMP%]{position:relative}.summary-stats[_ngcontent-%COMP%]{display:flex;overflow:auto}.close-layers-panel-button[_ngcontent-%COMP%]{height:24px;width:24px;padding:0}"]})}}return a})();var zr=["typeAutocomplete"],Nr=["fundSourceAutocomplete"],Qr=["dataSourceAutocomplete"],Ur=["agencyAutocomplete"],Hr=["spatialInputs"],$r=a=>({"sidebar__panel-header--mobile sidebar__panel-header--full":a}),Ui=a=>({hidden:a}),pe=a=>[a];function Jr(a,y){if(a&1){let e=F();o(0,"button",15),h("click",function(){p(e);let i=c();return u(i.hideFilters())}),o(1,"mat-icon"),d(2,"close"),n()()}}function Kr(a,y){if(a&1&&(o(0,"mat-checkbox",44),d(1," Filter by area "),n(),o(2,"mat-form-field",45)(3,"mat-label"),d(4,"Area Type"),n(),o(5,"mat-select",46)(6,"mat-option",47),d(7,"Current map extent"),n(),o(8,"mat-option",48),d(9,"Select from map"),n(),o(10,"mat-option",49),d(11,"Draw a shape"),n(),o(12,"mat-option",50),d(13,"Add data layer"),n()()()),a&2){let e=c(2);l("formControl",e.boundaryForm.controls.active),s(2),l("ngClass",Y(3,Ui,!e.boundaryForm.value.active)),s(3),l("formControl",e.boun
1daryForm.controls.type)}}function Zr(a,y){if(a&1){let e=F();o(0,"button",51),h("click",function(){p(e);let i=c(2);return u(i.searchForm.patchValue({search:""}))}),o(1,"mat-icon"),d(2,"close"),n()()}}function Xr(a,y){if(a&1){let e=F();o(0,"form",9),v(1,Kr,14,5),o(2,"app-spatial-filters",16,0),h("openAddData",function(i){p(e);let r=c();return u(r.openAddData.emit(i))})("selectionUpdated",function(i){p(e);let r=c();return u(r.updateSpatialInputs(i))}),n(),S(4,"mat-divider"),o(5,"app-multi-autocomplete",17,1),h("selectedItem",function(i){p(e);let r=c();return u(r.handleSelection(i,"dataSource"))}),n(),o(7,"app-multi-autocomplete",18,2),h("selectedItem",function(i){p(e);let r=c();return u(r.handleSelection(i,"source"))}),n(),o(9,"app-multi-autocomplete",19,3),h("selectedItem",function(i){p(e);let r=c();return u(r.handleSelection(i,"type"))}),n(),o(11,"mat-form-field",20)(12,"mat-label"),d(13,"Treatment or Wildfire Name"),n(),o(14,"input",21),h("keyup.enter",function(){p(e);let i=c();return u(i.apply())}),n(),v(15,Zr,3,0,"button",22),n(),o(16,"div",23)(17,"app-year-picker",24),h("yearRangeSelected",function(i){p(e);let r=c();return u(r.setYearRange(i))})("yearSelected",function(i){p(e);let r=c();return u(r.setYear(i,"startYear"))}),n(),o(18,"app-year-picker",25),h("yearRangeSelected",function(i){p(e);let r=c();return u(r.setYearRange(i))})("yearSelected",function(i){p(e);let r=c();return u(r.setYear(i,"endYear"))}),n()(),o(19,"div",23)(20,"mat-form-field",26)(21,"mat-label"),d(22,"Min Acres"),n(),S(23,"input",27),n(),o(24,"mat-form-field",26)(25,"mat-label"),d(26,"Max Acres"),n(),S(27,"input",28),n()(),o(28,"mat-expansion-panel",29)(29,"mat-expansion-panel-header",30),d(30," More Filters "),n(),o(31,"div",31)(32,"div",32)(33,"mat-checkbox",33),d(34," Include planned treatments "),n(),o(35,"mat-checkbox",34),d(36," Include duplicates "),n(),o(37,"mat-checkbox",35),d(38," Include large areas "),n()(),o(39,"app-multi-autocomplete",36,4),h("selectedItem",function(i){p(e);let r=c();return u(r.handleSelection(i,"agency"))}),n(),S(41,"mat-divider"),o(42,"div",37)(43,"mat-label",38),d(44,"Treatment Year Range"),n(),o(45,"div",23)(46,"app-year-picker",39),h("yearSelected",function(i){p(e);let r=c();return u(r.setYear(i,"treatmentStartYear"))}),n(),o(47,"app-year-picker",40),h("yearSelected",function(i){p(e);let r=c();return u(r.setYear(i,"treatmentEndYear"))}),n()(),o(48,"mat-hint",41),d(49,"Override year range for treatments only"),n()(),S(50,"mat-divider"),o(51,"div",37)(52,"mat-label",38),d(53,"Wildfire Year Range"),n(),o(54,"div",23)(55,"app-year-picker",39),h("yearSelected",function(i){p(e);let r=c();return u(r.setYear(i,"wildfireStartYear"))}),n(),o(56,"app-year-picker",40),h("yearSelected",function(i){p(e);let r=c();return u(r.setYear(i,"wildfireEndYear"))}),n()(),o(57,"mat-hint",41),d(58,"Override year range for wildfires only"),n()(),S(59,"mat-divider"),o(60,"div",37)(61,"mat-label",38),d(62,"Treatment Area"),n(),o(63,"div",23)(64,"mat-form-field",26)(65,"mat-label"),d(66,"Min Acres"),n(),S(67,"input",42),n(),o(68,"mat-form-field",26)(69,"mat-label"),d(70,"Max Acres"),n(),S(71,"input",43),n()(),o(72,"mat-hint",41),d(73,"Override area range for treatments only"),n()()()()()}if(a&2){let e=c();l("formGroup",e.searchForm),s(),g(e.screenSize!=="mobile"?1:-1),s(),l("ngClass",Y(37,Ui,!e.boundaryForm.value.active||e.boundaryForm.value.type==="byExtent"||e.screenSize==="mobile"))("mapView",e.mapView)("selectedTool",e.boun
1daryForm.value.type&&e.boundaryForm.value.type!=="byExtent"?e.boundaryForm.value.type:null)("values",e.searchForm.value)("active",e.active),s(3),l("options",e.dataSources)("value",e.selectedDataSources)("disabled",e.searchForm.disabled),s(2),l("options",e.fundSources)("value",e.selectedFundSources)("disabled",e.searchForm.disabled),s(2),l("options",e.typeOptions)("value",e.selectedTypes)("disabled",e.searchForm.disabled),s(6),g(e.searchForm.value.search?15:-1),s(2),l("control",e.searchForm.controls.startYear)("maxFilters",Y(39,pe,e.searchForm.value.endYear))("selectedYearRange",e.selectedYearRange),s(),l("control",e.searchForm.controls.endYear)("minFilters",Y(41,pe,e.searchForm.value.startYear))("selectedYearRange",e.selectedYearRange),s(21),l("options",e.agencies)("value",e.selectedAgencies),s(7),l("control",e.searchForm.controls.treatmentStartYear)("maxFilters",Y(43,pe,e.searchForm.value.treatmentEndYear))("includeRangeChips",!1),s(),l("control",e.searchForm.controls.treatmentEndYear)("minFilters",Y(45,pe,e.searchForm.value.treatmentStartYear))("includeRangeChips",!1),s(8),l("control",e.searchForm.controls.wildfireStartYear)("maxFilters",Y(47,pe,e.searchForm.value.wildfireEndYear))("includeRangeChips",!1),s(),l("control",e.searchForm.controls.wildfireEndYear)("minFilters",Y(49,pe,e.searchForm.value.wildfireStartYear))("includeRangeChips",!1)}}var Hi=(()=>{class a extends se{constructor(e,t,i){super(t),this.router=e,this.route=t,this.layoutService=i,this.openAddData=new D,this.defaultStartYear=Yi(),this.defaultDataSources=V.treatments.default_data_sources??[],this.loaded=!1,this.boundaryForm=new we({active:new f(!1),type:new f("byExtent")}),this.searchForm=new we({filterByExtent:new f(!1),search:new f("",{nonNullable:!0}),minAcres:new f(null),maxAcres:new f(null),treatmentType:new f(null),fireType:new f(null),fundSource:new f(null),dataSource:new f(null),agency:new f(null),startYear:new f(this.defaultStartYear,{updateOn:"blur"}),endYear:new f(null,{updateOn:"blur"}),planned:new f(!1),includeDuplicates:new f(!1),includeLargeArea:new f(!1),treatmentStartYear:new f(this.defaultStartYear,{updateOn:"blur"}),treatmentEndYear:new f(null,{updateOn:"blur"}),wildfireStartYear:new f(this.defaultStartYear,{updateOn:"blur"}),wildfireEndYear:new f(null,{updateOn:"blur"}),treatmentMinAcres:new f(null),treatmentMaxAcres:new f(null),wildfireMinAcres:new f(null),wildfireMaxAcres:new f(null),extent:new f(null),portalId:new f,featureId:new f,geometry:new f,intersectId:new f,jobId:new f,featureType:new f}),this.typeOptions=new R([]),this.fundSources=new R([]),this.dataSources=new R([]),this.agencies=new R([]),this.selectedTypes=[],this.selectedFundSources=[],this.selectedDataSources=[],this.selectedAgencies=[],this.selectedYearRange=null,this.fireTypes=new R({}),this.storedSpatialFilters={},this.history=L(Li),this.screenSize="desktop"}ngOnChanges(){let e=!!this.treatmentService&&!!this.currentWildfireService&&!!this.historicalWildfireService&&!!this.recentWildfireService;this.mapView&&e&&!this.loaded&&(this.loaded=!0,this.applyDefaultDataSources(),this.loadFormOptions().subscribe(),this.subscribeToObservables([this.listenToScreenSize(),this.listenToBoundaryForm(),this.listenToPrimaryYearOverrides(),this.listenToQueryParameters(),this.listenToFormValueChanges(),this.listenToClearSearch(),this.listenToApplySearch(),this.listenToMobileByExtent()]),this.getResults().subscribe())}listenToScreenSize(){return this.layoutService.size.pipe(w(e=>this.screenSize=e))}listenToFormValueChanges(){return this.searchForm.valueChanges.pipe(Ie(100),T(()=>this.getResults()))}listenToPrimaryYearOverrides(){return lt(this.searchForm.controls.startYear.valueChanges.pipe(fe(this.searchForm.controls.startYear.value),w(e=>{let t=this.searchForm.controls.treatmentStartYear.value,i=this.searchForm.controls.wildfireStartYear.value;t?.getTime()!==e?.getTime()&&this.searchForm.controls.treatmentStartYear.setValue(e,{emitEvent:!0}),i?.getTime()!==e?.getTime()&&this.searchForm.controls.wildfireStartYear.setValue(e,{emitEvent:!0})}
1)),this.searchForm.controls.endYear.valueChanges.pipe(fe(this.searchForm.controls.endYear.value),w(e=>{let t=this.searchForm.controls.treatmentEndYear.value,i=this.searchForm.controls.wildfireEndYear.value;t?.getTime()!==e?.getTime()&&this.searchForm.controls.treatmentEndYear.setValue(e,{emitEvent:!0}),i?.getTime()!==e?.getTime()&&this.searchForm.controls.wildfireEndYear.setValue(e,{emitEvent:!0})})))}listenToBoundaryForm(){return this.boundaryForm.valueChanges.pipe(w(e=>{e?.active||this.resetSpatialInputs()}),W(e=>e?.active===!0),w(e=>this.updateBoundaryInputs(e)))}listenToMobileByExtent(){return this.layoutService.mobileByExtentActive$.pipe(w(e=>{let t={active:e};e&&(t.type="byExtent"),this.updateBoundaryInputs(t)}))}updateBoundaryInputs(e){let t=e.type??"byExtent";t!=="byExtent"&&t in this.storedSpatialFilters?this.searchForm.patchValue(q(A({},this.storedSpatialFilters[t]),{filterByExtent:null,extent:null})):this.searchForm.patchValue({portalId:null,featureId:null,geometry:null,intersectId:null,jobId:null,featureType:null,filterByExtent:e.type==="byExtent",extent:null})}resetSpatialInputs(){this.searchForm.patchValue({portalId:null,featureId:null,geometry:null,intersectId:null,jobId:null,featureType:null,filterByExtent:null,extent:null}),this.openAddData.emit(!1)}handleExtentListener(e){e&&!this.viewExtentListener?this.addViewExtentListener():e||this.removeViewExtentListener()}addViewExtentListener(){this.removeViewExtentListener(),this.viewExtentListener=Nt(()=>this.mapView.stationary,()=>C(this,null,function*(){let e=this.mapView.extent;if(!this.route.snapshot.queryParams.extent)this.searchForm.patchValue({extent:e});else{let t=yield this.compressExtent(e);this.router.navigate([],{queryParams:{extent:t},queryParamsHandling:"merge",replaceUrl:!0}).then(()=>{this.history.urlHistory.length>1&&this.history.urlHistory[this.history.urlHistory.length-1].includes("extent=")&&this.history.urlHistory.pop()})}}))}removeViewExtentListener(){this.viewExtentListener&&(this.viewExtentListener.remove(),this.viewExtentListener=null)}listenToQueryParameters(){return this.queryParams.pipe(ce(["treatmentRendererId"],!0),w(e=>this.active=Object.keys(e).length===0),W(e=>Object.keys(e).length>0),W(e=>this.checkExtentParams(e)),T(e=>this.applyParamsToForm(e)),w(()=>this.updateStoredSpatialFilters()))}checkExtentParams(e){return e.filterByExtent==="true"&&!e.extent&&!this.searchForm.value.extent?(this.handleExtentParams(),!1):!0}handleExtentParams(){return C(this,null,function*(){this.searchForm.patchValue({filterByExtent:!0},{emitEvent:!1});let e=this.handleGeometry(!1);e&&this.router.navigate([],{queryParams:{extent:yield this.compressExtent(e)},queryParamsHandling:"merge",replaceUrl:!0})})}applyParamsToForm(e){return C(this,null,function*(){if(e.clear)this.clear();else if(Object.keys(e).length>0){let t=A({},e);"featureType"in t&&["treatment","current","recent","historical"].includes(t.featureType)&&(t.featureId=null,t.featureType=null),t.extent&&(t.extent=yield this.decompressExtent(t.extent)),t.filterByExtent=t.filterByExtent==="true",t.filterByExtent||(t.extent=null,t.filterByExtent=null),t.intersectId&&t.intersectId!=="aoi"?this.boundaryForm.patchValue({active:!0,type:"fromMap"}):t.portalId?this.boundaryForm.patchValue({active:!0,type:"addLayer"}):t.geometry?this.boundaryForm.patchValue({active:!0,type:"drawShape"}):t.filterByExtent?this.boundaryForm.patchValue({active:!0,type:"byExtent"}):this.boundaryForm.patchValue({active:!1,type:"byExtent"}),t.treatmentType=this.stringParamToArray(t.treatmentType),t.fireType=this.stringParamToArray(t.fireType),t.agency=this.stringParamToArray(t.agency),t.dataSource=this.stringParamToArray(t.dataSource);let i=[];t.treatmentType?.length>0&&i.push({options:t.treatmentType,id:"treatmentType",label:"Treatment Types"}),t.fireType?.length>0&&i.push({options:t.fireType,id:"fireType",label:"Fire Types"}),this.selectedTypes=i,t.fundSource=this.stringParamToArray(t.fundSource),t.fundSource?.length>0?this.selectedFundSources=[{options:t.fundSource,id:"fundSource"}]:this.selectedFundSources=[],t.dataSource?.length>0?this.selectedDataSources=[{options:t.dataSource,id:"dataSource"}]:this.selectedDataSources=[],t.agency?.length>
10?this.selectedAgencies=[{options:t.agency,id:"agency"}]:this.selectedAgencies=[],["startYear","treatmentStartYear","wildfireStartYear"].forEach(b=>{t[b]?t[b]=new Date(t[b],0,1):t[b]=null}),["endYear","treatmentEndYear","wildfireEndYear"].forEach(b=>{t[b]?t[b]=new Date(t[b],11,31):t[b]=null}),Object.entries(this.searchForm.controls).forEach(([b,B])=>{t[b]||(t[b]=B.defaultValue)}),this.searchForm.patchValue(t)}})}stringParamToArray(e){return typeof e=="string"?[e]:e??null}loadFormOptions(){let e=this.treatmentService;return j(e.featureLayer.load()).pipe(T(()=>this.loadTypeOptions(e)),T(()=>this.loadFundSourceOptions(e)),T(()=>this.loadDataSourceOptions(e)),T(()=>this.loadAgencyOptions(e)))}loadTypeOptions(e){let t=this.loadOptionsFromField(e,"twig_category"),i=this.loadFireTypes();return Fe([t,i]).pipe(z(([r,m])=>{let _=[{label:"Treatment Categories",options:r,id:"treatmentType"},{label:"Fire Categories",options:m,id:"fireType"}];this.typeOptions.next(_)}))}loadFireTypes(){let e=new Q({url:V.wildfire_types_url});return j(e.load()).pipe(T(()=>Ri(e)),w(t=>this.fireTypes.next(t)),z(t=>Array.from(new Set(Object.values(t)))))}loadFundSourceOptions(e){return this.loadOptionsFromField(e,"fund_source").pipe(w(t=>this.fundSources.next([{options:t,id:"fundSource"}])))}loadDataSourceOptions(e){return this.loadOptionsFromField(e,V.treatments.identifier_db_field).pipe(w(t=>this.dataSources.next([{options:t,id:"dataSource"}])))}applyDefaultDataSources(){this.defaultDataSources.length!==0&&(this.selectedDataSources=[{options:[...this.defaultDataSources],id:"dataSource"}],this.searchForm.patchValue({dataSource:[...this.defaultDataSources]}))}loadAgencyOptions(e){return this.loadOptionsFromField(e,"agency").pipe(w(t=>this.agencies.next([{options:t,id:"agency"}])))}loadOptionsFromField(e,t){let r=e.featureLayer.createQuery(),m=`${t} is not null`;return r.where=m,r.outFields=[t],r.returnDistinctValues=!0,r.returnGeometry=!1,r.orderByFields=[`${t} ASC`],e.queryFeatures(r).pipe(z(_=>_.map(b=>b.attributes[t])),he(1))}setYear(e,t){this.searchForm.patchValue({[t]:new Date(e.getFullYear(),0,1)}),this.selectedYearRange=null}setYearRange(e){if(e){let t=new Date().getFullYear();this.searchForm.patchValue({startYear:new Date(t-e,0,1)}),this.searchForm.patchValue({endYear:new Date(t,11,31)})}this.selectedYearRange=e}handleSelection(e,t){let i={};t==="type"?i={treatmentType:null,fireType:null}:t==="source"?i={fundSource:null}:t==="dataSource"?i={dataSource:null}:t==="agency"&&(i={agency:null}),e&&e.forEach(r=>{r.id&&r.options.length>0&&(i[r.id]=r.options)}),this.searchForm.patchValue(i)}getResults(){return this.fireTypes.pipe(W(e=>Object.entries(e).length>0),he(1),T(e=>{let t=this.handleGeometry(),i=Oi(this.searchForm.value);return Xe({treatmentCount:this.runSearch(this.treatmentService,i,t),wildFireCounts:Xe(this.buildAndRunWildfireSearches(e,t))})}))}handleGeometry(e=!0){let{extent:t,filterByExtent:i}=this.searchForm.value;if(this.handleExtentListener(i),i)t&&!this.mapView.extent.equals(t)?this.mapView.goTo(t):t||(t=this.mapView.extent,this.searchForm.patchValue({extent:t},{emitEvent:e}));else{t&&this.searchForm.patchValue({extent:null},{emitEvent:e});return}return t}buildAndRunWildfireSearches(e,t){return[{id:"recent",service:this.recentWildfireService},{id:"current",service:this.currentWildfireService},{id:"historical",service:this.historicalWildfireService}].map(r=>{let m=U[r.id];if(m){let _=this.callBuildWildfireWhere(m,this.searchForm.value,e);return this.runSearch(r.service,_,t)}else return ue(-1)})}apply(){return C(this,null,function*(){let e=yield this.formatQueryParams(),t=q(A({},e),{showResults:!0});this.router.navigate([],{queryParams:t}),this.layoutService.setDrawerState("min")})}clear(){this.screenSize!=="mobile"&&this.router.navigate([],{queryParams:{}}),this.reset(),this.spatialInputs.reset()}compressExtent(e){return C(this,null,function*(){return yield qe(JSON.stringify(e.toJSON()))})}decompressExtent(e){return C(this,null,function*(){let t=yield ai(e);return new Qt(JSON.parse(t))})}formatQueryParams(){return C(this,null,function*(){let e=A({},this.searchForm.value);return e.extent&&(e.extent=yield this.compressExtent(e.extent)),["startYear","endYear","treatmentStartYear","treatmentEndYear","wildfireStartYear","wildfireEndYear"].forEach(i=>
1{e[i]&&(e[i]=e[i].getFullYear())}),Object.keys(e).forEach(i=>{!e[i]&&e[i]!==0&&(e[i]=null)}),e})}callBuildWildfireWhere(e,t,i){return Di(e,t,i)}runSearch(e,t,i){let r={where:t,outFields:["*"],returnGeometry:!1,start:0};r.geometry=i;let m=e.featureLayer;if(m.definitionExpression!==t&&this.callSetVisibleRecursive(m),e.filter.where!==t||e.filter.geometry!==r.geometry){let _=new Ht(A({},r));return e.queryCount(_)}return ue(-1)}callSetVisibleRecursive(e){je(e)}reset(){this.fundSourceAutocomplete?.reset(!0,!1,""),this.selectedFundSources=[],this.dataSourceAutocomplete?.reset(!0,!1,""),this.selectedDataSources=[],this.typeAutocomplete?.reset(!0,!1,""),this.selectedTypes=[],this.agencyAutocomplete?.reset(!0,!1,""),this.selectedAgencies=[],this.boundaryForm.reset({active:!1,type:"byExtent"}),this.storedSpatialFilters={},this.searchForm.reset({startYear:this.defaultStartYear,treatmentStartYear:this.defaultStartYear,wildfireStartYear:this.defaultStartYear}),this.applyDefaultDataSources()}callGeomFromString(e){return C(this,null,function*(){return yield Be(e)})}updateSpatialInputs(e){let t=null;Object.values(e).forEach(r=>{r&&(t="intersection")}),this.searchForm.patchValue(q(A({},e),{featureType:t})),this.updateStoredSpatialFilters()}updateStoredSpatialFilters(){let e=this.boundaryForm.value.type??"byExtent";if(e!=="byExtent"){let t={portalId:this.searchForm.value.portalId??null,featureId:this.searchForm.value.featureId??null,geometry:this.searchForm.value.geometry??null,intersectId:this.searchForm.value.intersectId??null,featureType:this.searchForm.value.featureType??null};this.storedSpatialFilters[e]=t}}hideFilters(){this.router.navigate([],{queryParams:{showResults:!0},queryParamsHandling:"merge"}),this.layoutService.setDrawerState("min")}listenToClearSearch(){return this.layoutService.clearSearch$.pipe(w(()=>this.clear()))}listenToApplySearch(){return this.layoutService.applySearch$.pipe(w(()=>this.apply()))}static{this.\u0275fac=function(t){return new(t||a)(E(Re),E(De),E(ie))}}static{this.\u0275cmp=M({type:a,selectors:[["app-search-form"]],viewQuery:function(t,i){if(t&1&&(I(zr,5,me),I(Nr,5,me),I(Qr,5,me),I(Ur,5,me),I(Hr,5)),t&2){let r;x(r=k())&&(i.typeAutocomplete=r.first),x(r=k())&&(i.fundSourceAutocomplete=r.first),x(r=k())&&(i.dataSourceAutocomplete=r.first),x(r=k())&&(i.agencyAutocomplete=r.first),x(r=k())&&(i.spatialInputs=r.first)}},hostAttrs:[1,"sidebar__panel"],inputs:{treatmentService:"treatmentService",currentWildfireService:"currentWildfireService",recentWildfireService:"recentWildfireService",historicalWildfireService:"historicalWildfireService",queryParams:"queryParams"},outputs:{openAddData:"openAddData"},standalone:!0,features:[G,P,O],decls:16,vars:11,consts:[["spatialInputs",""],["dataSourceAutocomplete",""],["fundSourceAutocomplete",""],["typeAutocomplete",""],["agencyAutocomplete",""],[1,"sidebar__panel-header",3,"ngClass"],["data-cy","search-heading",1,"sidebar__panel-heading"],["mat-icon-button","",1,"sidebar__panel-button--icon"],[1,"sidebar__panel-body"],[1,"form",3,"formGroup"],[1,"sidebar__panel-footer"],["mat-flat-button","","color","accent","data-cy","clear-btn",3,"click"],[1,"sidebar__panel-footer-button-group"],[1,"sidebar__panel-footer-results-count",3,"treatmentSource","recentWildfireSource","historicalWildfireSource","currentWildfireSource","servicesLoaded","showCalculatedOnApply"],["id","apply-search-button","mat-flat-button","","color","primary","data-cy","apply-btn",3,"click"],["mat-icon-button","",1,"sidebar__panel-button--icon",3,"click"],[3,"openAddData","selectionUpdated","ngClass","mapView","selectedTool","values","active"],["id","dataSourceField","data-cy","data-source-autocomplete","label","Data Source","placeholder","Select Values",1,"form__field",3,"selectedItem","options","value","disabled"],["id","sourceField","data-cy","fund-source-autocomplete","label","Treatment Funding Source","placeholder","Select Values",1,"form__field",3,"selectedItem","options","value","disabled"],["id","typeField","data-cy","type-autocomplete","label","Treatment or Wildfire Category","placeholder","Select Values",1,"form__field",3,"selectedItem","options","value","disabled"],["id","nameField","data-cy","name-field","subscriptSizing","dynamic",1,"form__field"],["matInput","","formControlName","search","type","text","placeholder","Search by name","data-cy","name-input",3,"keyup.enter"],["matSuffix","","type","button","mat-icon-button","","data-cy","name-clear-btn",2,"opacity","0.53"],[1,"form__row"],["label","Start Year","error","Invalid start year",3,"yearRangeSelected","yearSelected","control","maxFilters","selectedYearRange"],["label","End Year","error","Invalid end year",3,"yearRangeSelected","yearSelected","control","minFilters","selectedYearRange"],["subscriptSizing","dynamic",1,"form__field"],["matInput","","formControlName","minAcres","type","number","min","0"],["matInput","","formControlName","maxAcres","type","number","min","0"],["id","more-filters-expand","data-cy","more-filters-panel"],["data-cy","more-filters-header",1,"form__accordion-header"],["id","more-filters-expand-content",1,"form__group"],[1,"form__checkbox-group"],["formControlName","planned","aria-label","Include planned treatments","data-cy","planned-checkbox","matTooltip","Treatments with a planned status or future completion date, depending on the data source. Visit the data resources page for more information.",1,"hint-parent"],["matTooltip","A duplicate treatment error flag is added to a treatment with the same activity, date, and shape as another treatment. Visit the data resources page for more information.","formControlName","includeDuplicates","aria-label","Include duplicate treatments","data-cy","include-duplicates-checkbox",1,"hint-parent"],["matTooltip","A large area error flag is added to any treatment exceeding 3,000,000 acres. Visit the data resources page for more information.","formControlName","includeLargeArea","aria-label","Include large area treatments",1,"hint-parent"],["id","agencyField","data-cy","agency-autocomplete","label","Treatment Agency","placeholder","Select Values",1,"form__field",3,"selectedItem","options","value"],[1,"form__field-group"],[1,"form__field-label"],["label","Start Year","error","Invalid start year",3,"yearSelected","control","maxFilters","includeRangeChips"],["label","End Year","error","Invalid end year",3,"yearSelected","control","minFilters","includeRangeChips"],[1,"form__field-hint"],["matInput","","formControlName","treatmentMinAcres","type","number","min","0"],["matInput","","formControlName","treatmentMaxAcres","type","number","min","0"],["id","search-filter-by-area","aria-label","Filter by area","data-cy","filter-by-area",3,"formControl"],["id","search-area-type-select-field","subscriptSizing","dynamic","data-cy","area-type-field",1,"form__field",3,"ngClass"],["
1id","search-area-type-select","data-cy","area-type-select",3,"formControl"],["value","byExtent","data-cy","area-option-extent"],["value","fromMap","data-cy","area-option-from-map"],["value","drawShape","data-cy","area-option-draw"],["id","add-data-layer-option","value","addLayer","data-cy","area-option-add-layer"],["matSuffix","","type","button","mat-icon-button","","data-cy","name-clear-btn",2,"opacity","0.53",3,"click"]],template:function(t,i){t&1&&(o(0,"div",5)(1,"h2",6),d(2,"Fuel Treatment and Wildfire Search"),n(),v(3,Jr,3,0,"button",7),n(),o(4,"div",8)(5,"div"),d(6," Filter fuel treatment and wildfire data using the selections below. You can also select a fuel treatment, wildfire, or other area on the map to view more details about that feature. "),n(),S(7,"mat-divider"),v(8,Xr,74,51,"form",9),n(),o(9,"div",10)(10,"button",11),h("click",function(){return i.clear()}),d(11,"Clear"),n(),o(12,"div",12),S(13,"app-results-count",13),o(14,"button",14),h("click",function(){return i.apply()}),d(15,"Apply"),n()()()),t&2&&(l("ngClass",Y(9,$r,i.screenSize==="mobile")),s(3),g(i.screenSize==="mobile"?3:-1),s(5),g(i.mapView?8:-1),s(5),l("treatmentSource",i.treatmentService)("recentWildfireSource",i.recentWildfireService)("historicalWildfireSource",i.historicalWildfireService)("currentWildfireSource",i.currentWildfireService)("servicesLoaded",i.loaded)("showCalculatedOnApply",!!(i.boundaryForm.value.active&&i.boundaryForm.value.type&&i.boundaryForm.value.type!=="byExtent")))},dependencies:[Oe,Ae,qt,le,ne,ae,re,si,ze,Pe,Yt,K,Le,oe,Ci,Si,Wi,te,Pt,Z,Gt,X,Lt,Bt,ee,jt,Wt,me,Je,wi,Fi,Ne,ci,li,Ye,Qi,zi,di,Pi],styles:[".form__checkbox-group[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]})}}return a})();var ea=["searchFormComponent"];function ta(a,y){if(a&1){let e=F();o(0,"mat-tab-group",2)(1,"mat-tab",4)(2,"app-search-form",5,0),h("openAddData",function(i){p(e);let r=c();return u(r.showAddData=i)}),n()(),o(4,"mat-tab",4),S(5,"app-search-results",6),Se(6,"async"),n()()}if(a&2){let e=c();l("selectedIndex",e.currentTabIndex),s(2),l("mapView",e.mapView)("treatmentService",e.treatmentService)("recentWildfireService",e.recentWildfireService)("currentWildfireService",e.currentWildfireService)("historicalWildfireService",e.historicalWildfireService)("queryParams",e.queryParams),s(3),l("active",Ce(6,14,e.widgetStateChange))("mapView",e.mapView)("treatmentSource",e.treatmentService)("recentWildfireService",e.recentWildfireService)("currentWildfireService",e.currentWildfireService)("historicalWildfireService",e.historicalWildfireService)("queryParams",e.queryParams)}}function ia(a,y){if(a&1){let e=F();o(0,"app-add-data",7),h("closeAddData",function(i){p(e);let r=c();return u(r.showAddData=i)}),n()}if(a&2){let e=c();l("mapView",e.mapView)("filterByFeatureLayers",!0)}}var ts=(()=>{class a extends se{constructor(){super(...arguments),this.searchFormSubject=new R(void 0),this.layoutService=L(ie),this.loaded=!1,this.currentTabIndex=0,this.showAddData=!1}set searchFormComponent(e){e&&this.searchFormSubject.next(e)}ngOnInit(){this.subscribeToObservables([this.listenToStateChanges()])}ngOnChanges(){this.mapView&&!this.loaded&&(this.loaded=!0,this.setUpDataSources())}setUpDataSources(){this.treatmentService=this.setUpService(V.treatments.url,V.treatments.area_field),this.recentWildfireService=this.setUpService(V.recent_fires.url,U.recent.fieldMap.areaField),this.currentWildfireService=this.setUpService(V.current_fires.url,U.current.fieldMap.areaField),this.historicalWildfireService=this.setUpService(V.historical_fires.url,U.historical.fieldMap.areaField)}setUpService(e,t){let[i,...r]=this.callGetLayersFromMap(e);return new We(i,{linkedDefinitionLayers:r,defaultSort:{active:t??"",direction:"desc"}})}callGetLayerFromMap(e){return rt(this.mapView.map,e)}callGetLayersFromMap(e){return rt(this.mapView.map,e,!0).filter(t=>t instanceof Q)}listenToStateChanges(){let e=this.searchFormSubject.asObservable();return Fe([this.queryParams.pipe(ce(["treatmentRendererId"],!0)),this.layoutService.size,e]).pipe(w(([t,i])=>{Object.keys(t).length===0&&i==="mobile"&&(this.layoutService.triggerClearSearch(),this.layoutService.triggerApplySearch()),Object.keys(t).length===0||t.showResults==="false"||t.showResults===!1?this.currentTabIndex=0:this.currentTabIndex=1}))}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=N(a)))(i||a)}})()}static{this.\u0275cmp=M({type:a,selectors:[["app-feature-search"]],viewQuery:function(t,i){if(t&1&&I(ea,5),t&2){let r;x(r=k())&&(i.searchFormComponent=r.first)}},hostAttrs:[1,"sidebar__panel-row"],standalone:!0,features:[G,P,O],decls:3,vars:2,consts:[["searchFormComponent",""],[1,"sidebar__panel","sidebar__panel--border"],["animationDuration","100ms",1,"tabs__tab-group","tabs__tab-group--no-header",3,"selectedIndex"],["
1id","add-data-panel",3,"mapView","filterByFeatureLayers"],[1,"tabs__tab"],[3,"openAddData","mapView","treatmentService","recentWildfireService","currentWildfireService","historicalWildfireService","queryParams"],[3,"active","mapView","treatmentSource","recentWildfireService","currentWildfireService","historicalWildfireService","queryParams"],["id","add-data-panel",3,"closeAddData","mapView","filterByFeatureLayers"]],template:function(t,i){t&1&&(o(0,"div",1),v(1,ta,7,16,"mat-tab-group",2),n(),v(2,ia,1,2,"app-add-data",3)),t&2&&(s(),g(i.recentWildfireService&&i.currentWildfireService&&i.historicalWildfireService?1:-1),s(),g(i.showAddData?2:-1))},dependencies:[Hi,Gi,$e,Ue,He,ji,Me]})}}return a})();export{ts as FeatureSearchComponent};
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.