1"use strict";(self.webpackChunkinitiative_as_a_service=self.webpackChunkinitiative_as_a_service||[]).push([["default-src_app_services_projects_projects_service_ts-src_app_shared_components_chips-autocom-aeaf37"],{70484(T,O,n){n.d(O,{o:()=>r});const r=t=>{const y={};for(const v in t){const g=t[v];if(null!=g&&""!==g)if(v.startsWith("custom:")){const C=g.split("||");y[`custom[]${v.substring(7)}`]=C}else y[v]=g}return y}},52582(T,O,n){n.d(O,{i:()=>R});var r=n(29330),t=n(96354),y=n(99437),c=n(88141),u=n(70484),d=n(70563);class v{static map(P){return{data:P.body,pagination:{cursor:P.headers.get("X-Cursor"),perPage:P.headers.get("X-Per-Page"),count:P.headers.get("X-Count"),total:P.headers.get("X-Total")}}}}var g=n(92549),C=n(94091),E=n(2615),A=n(85928),b=n(73878),S=n(87265);let R=(()=>{class M{constructor(i,s,p,m,f){this.httpClient=i,this.idpService=s,this.apiEndpointService=p,this.siteUtilityService=m,this.detailsPermission=f}postProjectOrganization(i,s){return this.httpClient.post(`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/projects/${i}/organizations`,{organization_ids:s})}deleteProjectOrganization(i,s){return this.httpClient.delete(`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/projects/${i}/organizations/${s}`)}postProjectImage(i,s){const p=new FormData;return p.append("image",s),this.httpClient.post(`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/projects/${i}/images`,p,{observe:"response"}).pipe((0,t.T)(m=>m.status===r.kG.Created))}getProjects(i,s,p,m){const f=this.shouldUseAuthenticatedVersion()?"/search/v1/search/projects":"/search/v1/public/projects",I=`${this.apiEndpointService.getFWSEndpoint()}${f}`,$={communities:i,size:m,from:s,...(0,u.o)(p)};return this.httpClient.get(I,{params:$})}getProjectsResponse(i,s,p,m){const f=this.shouldUseAuthenticatedVersion()?"/search/v1/search/projects":"/search/v1/public/projects",I=`${this.apiEndpointService.getFWSEndpoint()}${f}`,$={communities:i,size:m,from:s,...(0,u.o)(p)};return this.httpClient.get(I,{params:$,observe:"response"})}getTopics(i="",s=0,p=25,m=""){let f=(new r.Nl).set("from",s.toString()).set("size",p.toString()).set("type",m);i&&(f=f.set("search",i));const I=`${this.apiEndpointService.getFWSEndpoint()}/search/v1/search/topics`;return this.httpClient.get(I,{params:f}).pipe((0,t.T)($=>$.data))}getProject(i,s){const p=this.getProjectDetailsEndpointBasedOnAuthenticationStatus(i,s);let m=new r.Lr;return m=m.append(d.bj,d.Q$.Ignore),this.httpClient.get(p,{headers:m}).pipe((0,y.W)(f=>this.detailsPermission.handleDetailPageError(f)))}getProjectNeeds(i,s){const p=`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/projects/${s}/needs?initiativeId=${i}`;return this.httpClient.get(p)}updateProject(i,s){const p=`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/projects/${i}`;return this.httpClient.put(p,s,{observe:"response"}).pipe((0,c.M)(m=>{if(m.status!==r.kG.NoContent)throw new Error}),(0,t.T)(m=>{if(m.status===r.kG.NoContent)return m.body;throw new Error}))}submitEngagement(i){const{contributor:s,contact:p,siteId:m,categories:f,projectId:I}=i,$=`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/projects/${I}/engagements?initiativeId=${m}`;return this.httpClient.post($,{contributor:s,contact:p,categories:f},{params:i,observe:"response"}).pipe((0,c.M)(D=>{if(D.status!==r.kG.Created)throw new Error}),(0,t.T)(D=>{if(D.status===r.kG.Created)return D.body;throw new Error}))}getEvents(i,s){const p=new r.Nl({fromObject:{url:(0,g.R_)(),...s}});return this.httpClient.get(`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/projects/${i}/activities`,{params:p,observe:"response"}).pipe((0,t.T)(m=>v.map(m)))}addProjectMembers(i,s){return this.httpClient.post(`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/projects/${i}/members`,{accountIds:s,status:"Confirmed"})}removeProjectMember(i,s){const p=`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/projects/${i}/members/${s}`;return this.httpClient.delete(p)}removeProjectOrganization(i,s){const p=`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/projects/${i}/organizations/${s}`;return this.httpClient.delete(p)}getProjectDetailsEndpointBasedOnAuthenticationStatus(i,s){return this.idpService.isAuthenticated()?`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/sites/${i}/projects/${s}`:`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/public/sites/${i}/projects/${s}`}shouldUseAuthenticatedVersion(){return!!this.idpService.isAuthenticated()&&(C.Z.isAdminPanel()?this.siteUtilityService.isMemberTier():this.siteUtilityService.isMemberOrConstituent())}static{this.\u0275fac=function(s){return new(s||M)(E.KVO(r.Qq),E.KVO(A.J),E.KVO(b.J),E.KVO(C.Z),E.KVO(S.o))}}static{this.\u0275prov=E.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}}return M})()},16331(T,O,n){n.d(O,{J:()=>Y});var r=n(2615),t=n(73664),y=n(89417),c=n(78884),u=n(84412),d=n(96354),v=n(99172),g=n(25558),C=n(86906),E=n(84122),A=n(17705),b=n(72200),S=n(56971),R=n(60850),M=n(23029),P=n(64727),i=n(36471),s=n(99213),p=n(9183);const m=["filterInput"];function f(o,_){if(1&o){const e=t.RV6();t.j41(0,"mat-chip-row",10),t.bIt("removed",function(){const a=r.eBV(e).$implicit,h=t.XpG();
1return r.Njj(h.removeChip(a))}),t.k0s()}}function I(o,_){if(1&o&&(t.j41(0,"mat-chip-avatar",12)(1,"app-image-fallback-content",13),t.nrm(2,"mat-icon",14),t.k0s()()),2&o){const e=t.XpG().$implicit;t.R7$(),t.Y8G("src",t.mNQ(e.photoUrl))}}function $(o,_){if(1&o&&(t.j41(0,"mat-chip-avatar",12)(1,"app-image-fallback-content",13),t.nrm(2,"mat-icon",15),t.k0s()()),2&o){const e=t.XpG().$implicit;t.R7$(),t.Y8G("src",t.mNQ(e.photoUrl))}}function D(o,_){if(1&o){const e=t.RV6();t.j41(0,"lib-chip",11),t.bIt("removed",function(){const a=r.eBV(e).$implicit,h=t.XpG();return r.Njj(h.removeChip(a))}),t.nVh(1,I,3,2,"mat-chip-avatar",12)(2,$,3,2,"mat-chip-avatar",12),t.k0s()}if(2&o){let e;const l=_.$implicit,a=t.XpG();t.Y8G("label",l.name||l.fullName)("selectable",!1)("removable",!0)("size",a.chipSize)("type",a.chipType.Choice),t.R7$(),t.vxM("organizations"===(e=a.type)?1:"users"===e?2:-1)}}function x(o,_){if(1&o&&(t.j41(0,"span",16),t.EFF(1),t.k0s()),2&o){const e=t.XpG();t.R7$(),t.SpI(" ",e.placeholder," ")}}function B(o,_){if(1&o&&(t.j41(0,"span",27),t.EFF(1),t.k0s()),2&o){const e=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",null==e.mainIndustrySector?null:e.mainIndustrySector.name," ")}}function W(o,_){if(1&o&&(t.j41(0,"span",27),t.EFF(1),t.k0s()),2&o){const e=t.XpG(2).$implicit;t.R7$(),t.JRh(e.city)}}function G(o,_){if(1&o&&(t.j41(0,"span",27),t.EFF(1),t.k0s()),2&o){const e=t.XpG(2).$implicit;t.R7$(),t.JRh(e.country)}}function U(o,_){if(1&o&&(t.qex(0),t.j41(1,"div",22)(2,"app-image-fallback-content",13),t.nrm(3,"mat-icon",14),t.k0s(),t.j41(4,"div",23)(5,"div",24),t.EFF(6),t.k0s(),t.j41(7,"div",25),t.DNE(8,B,2,1,"span",26)(9,W,2,1,"span",26)(10,G,2,1,"span",26),t.k0s()()(),t.bVm()),2&o){const e=t.XpG().$implicit;t.R7$(2),t.Y8G("src",t.mNQ(e.photoUrl)),t.R7$(4),t.JRh(e.name),t.R7$(2),t.Y8G("ngIf",e.mainIndustrySector),t.R7$(),t.Y8G("ngIf",e.city),t.R7$(),t.Y8G("ngIf",e.country)}}function K(o,_){if(1&o&&(t.qex(0),t.j41(1,"div",28)(2,"app-image-fallback-content",13),t.nrm(3,"mat-icon",15),t.k0s(),t.j41(4,"div",23)(5,"div",24),t.EFF(6),t.k0s(),t.j41(7,"div",25),t.EFF(8),t.k0s()()(),t.bVm()),2&o){const e=t.XpG().$implicit;t.R7$(2),t.Y8G("src",t.mNQ(e.photoUrl)),t.R7$(4),t.JRh(e.name),t.R7$(2),t.JRh(e.location)}}function L(o,_){if(1&o&&(t.qex(0),t.EFF(1),t.bVm()),2&o){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e.name," ")}}function z(o,_){if(1&o&&(t.j41(0,"mat-option",18),t.qex(1,19),t.DNE(2,U,11,6,"ng-container",20)(3,K,9,4,"ng-container",20)(4,L,2,1,"ng-container",21),t.bVm(),t.k0s()),2&o){const e=_.$implicit,l=t.XpG(3);t.HbH(l.type),t.AVh("selected",l.isSelected(e)),t.Y8G("value",e),t.R7$(),t.Y8G("ngSwitch",l.type),t.R7$(),t.Y8G("ngSwitchCase","organizations"),t.R7$(),t.Y8G("ngSwitchCase","users")}}function V(o,_){if(1&o&&(t.qex(0),t.DNE(1,z,5,8,"mat-option",17),t.nI1(2,"async"),t.bVm()),2&o){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.options$))}}function N(o,_){1&o&&(t.qex(0),t.j41(1,"mat-option",29)(2,"div",30),t.nrm(3,"mat-spinner",31),t.k0s()(),t.bVm())}function k(o,_){1&o&&(t.qex(0),t.j41(1,"mat-option",29),t.EFF(2,"No results"),t.k0s(),t.bVm())}function w(o,_){if(1&o&&(t.qex(0),t.DNE(1,V,3,3,"ng-container",9)(2,N,4,0,"ng-container",9)(3,k,3,0,"ng-container",9),t.bVm()),2&o){const e=_.ngIf,l=t.XpG();t.R7$(),t.Y8G("ngIf",e.length),t.R7$(),t.Y8G("ngIf",l.filter.value.length&&l.isLoading),t.R7$(),t.Y8G("ngIf",l.filter.value.length&&!e.length&&!l.isLoading)}}let Y=(()=>{class o extends E.H{set dataSource(e){this.isLoading=!1,this.data$.next(e||[])}get val(){return this.value||[]}constructor(e){super(),this.cdr=e,this.class="chips-autocomplete-input",this.filterInputFocused=!1,this.placeholder="",this.isInitaasAdmin=!1,this.isMultipleValue=!0,this.hideInput=!1,this.isDisabled=!1,this.chipSize=c.or0.Regular,this.queryChange=new t.bkB,this.filter=new y.MJ(""),this.isLoading=!1,this.data$=new u.t([]),this.options$=this.data$.pipe((0,g.n)(l=>this.filter.valueChanges.pipe((0,v.Z)(""),(0,d.T)(a=>"string"==typeof a?a:""),(0,d.T)(a=>l.filter(h=>h.name.toLowerCase().includes(a?.toLowerCase())))))),this.tabIndex=0,this.chipType=c.pbY,this.forumTheme=C.C}ngOnInit(){this.filter.valueChanges.pipe((0,v.Z)(""),(0,d.T)(e=>"string"==typeof e?e:"")).subscribe(e=>{this.isLoading="topics"!==this.type,this.queryChange.emit(e)})}select({option:e}){this.isSelected(e.value)?this.unselect(e.value):(this.writeValue(this.isMultipleValue?[...this.val,e.value]:[e.value]),this.onChange(this.value),this.clearInput())}removeChip(e){this.unselect(e)}unselect(e){const a=this.val.filter(this.compareById?h=>JSON.stringify(h.id)!==JSON.stringify(e.id):h=>JSON.stringify(h)!==JSON.stringify(e));this.writeValue(a),this.onChange(this.value),this.clearInput()}isSelected(e){return this.val.some(this.compareById?a=>JSON.stringify(a.id)===JSON.stringify(e.id):a=>JSON.stringify(a)===JSON.stringify(e))}focus(){this.inputElement.nativeElement.focus()}clearInput(){this.inputElement.nativeElement.value="",this.focus(),this.filter.setValue("",{onlySelf:!1,emitEvent:!0}),this.cdr.detectChanges()}static{this.\u0275fac=function(l){return new(l||o)(t.rXU(A.gRc))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["app-chips-autocomplete"]],viewQuery:function(l,a){if(1&l&&t.GBs(m,7),2&l){let h;t.mGM(h=t.lsd())&&(a.inputElement=h.first)}},hostVars:3,hostBindings:function(l,a){1&l&&t.bIt("focus",function(){return a.focus()}),2&l&&(t.BMQ("tabindex",a.tabIndex),t.HbH(a.class))},inputs:{placeholder:"placeholder",isInitaasAdmin:"isInitaasAdmin",type:"type",compareById:"compareById",isMultipleValue:"isMultipleValue",hideInput:"hideInput",isDisabled:"isDisabled",chipSize:"chipSize",dataSource:"dataSource"},outputs:{queryChange:"queryChange"},standalone:!1,features:[t.Jv_([{provide:y.kq,useExisting:(0,r.Rfq)(()=>o),multi:!0}]),t.Vt3],decls:13,vars:16,consts:[["selectedTopics",""],["filterInput",""],["topicsAutocomplete","matAutocomplete"],[1,"one-forum-chip-list-autocomplete",3,"click","
1subscriptSizing"],["class","hidden",3,"removed",4,"ngFor","ngForOf"],[3,"label","selectable","removable","size","type"],["class","chips-placeholder pl-3",4,"ngIf"],[3,"focus","blur","hidden","formControl","matChipInputFor","matAutocomplete","disabled"],[1,"one-forum-autocomplete",3,"optionSelected","hideSingleSelectionIndicator"],[4,"ngIf"],[1,"hidden",3,"removed"],[3,"removed","label","selectable","removable","size","type"],["libIconContent",""],[3,"src"],["svgIcon","organization"],["svgIcon","user"],[1,"chips-placeholder","pl-3"],[3,"selected","class","value",4,"ngFor","ngForOf"],[3,"value"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ssm-organization-option"],[1,"info"],[1,"name"],[1,"location"],["class","coma-separated",4,"ngIf"],[1,"coma-separated"],[1,"ssm-user-option"],["disabled",""],[1,"chips-autocomplete-loading"],["diameter","20"]],template:function(l,a){if(1&l){const h=t.RV6();t.j41(0,"mat-form-field",3),t.bIt("click",function(){return r.eBV(h),r.Njj(a.focus())}),t.j41(1,"mat-chip-grid",null,0),t.DNE(3,f,1,0,"mat-chip-row",4),t.Z7z(4,D,3,6,"lib-chip",5,t.Vm6),t.DNE(6,x,2,1,"span",6),t.j41(7,"input",7,1),t.bIt("focus",function(){return r.eBV(h),r.Njj(a.filterInputFocused=!0)})("blur",function(){return r.eBV(h),t.sdS(8).value="",a.onTouched(),r.Njj(a.filterInputFocused=!1)}),t.k0s()(),t.j41(9,"mat-autocomplete",8,2),t.bIt("optionSelected",function(F){return r.eBV(h),r.Njj(a.select(F))}),t.DNE(11,w,4,3,"ng-container",9),t.nI1(12,"async"),t.k0s()()}if(2&l){const h=t.sdS(2),j=t.sdS(10);t.HbH(a.type),t.AVh("one-forum-chip-list-autocomplete--disabled",a.isDisabled),t.Y8G("subscriptSizing","dynamic"),t.R7$(3),t.Y8G("ngForOf",a.value),t.R7$(),t.Dyx(a.value),t.R7$(2),t.Y8G("ngIf",!(null!=a.val&&a.val.length||a.filterInputFocused)),t.R7$(),t.Y8G("hidden",a.hideInput)("formControl",a.filter)("matChipInputFor",h)("matAutocomplete",j)("disabled",a.isDisabled),t.R7$(2),t.Y8G("hideSingleSelectionIndicator",!0),t.R7$(2),t.Y8G("ngIf",t.bMT(12,14,a.options$))}},dependencies:[b.Sq,b.bT,b.ux,b.e1,b.fG,S.Q,y.me,y.BC,y.l_,R.$3,M.wT,R.pN,P.rl,i.yZ,i.HW,i.D7,i.jH,s.An,p.LG,c.wux,c.CR$,b.Jj],styles:['[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .hidden[_ngcontent-%COMP%]{display:none}.ng-touched.ng-invalid[_nghost-%COMP%] .one-forum-chip-list-autocomplete[_ngcontent-%COMP%] .mdc-text-field{background-color:var(--colour-surface-negative-subtle-default);outline:var(--colour-border-negative-default) solid var(--border-width-hairline)}.ng-valid[_nghost-%COMP%] .one-forum-chip-list-autocomplete[_ngcontent-%COMP%] .mdc-text-field:not(.mdc-text-field--focused):hover, .ng-untouched[_nghost-%COMP%] .one-forum-chip-list-autocomplete[_ngcontent-%COMP%] .mdc-text-field:not(.mdc-text-field--focused):hover{background-color:var(--colour-surface-neutral-subtle-default);outline:var(--colour-border-neutral-strong-hover) solid var(--border-width-hairline)}.ng-valid[_nghost-%COMP%] .one-forum-chip-list-autocomplete[_ngcontent-%COMP%] .mdc-text-field--focused, .ng-untouched[_nghost-%COMP%] .one-forum-chip-list-autocomplete[_ngcontent-%COMP%] .mdc-text-field--focused{background-color:var(--colour-surface-neutral-subtle-default);outline:var(--colour-border-accent-default) solid var(--border-width-thin)}.ng-valid[_nghost-%COMP%] .one-forum-chip-list-autocomplete--disabled[_ngcontent-%COMP%], .ng-untouched[_nghost-%COMP%] .one-forum-chip-list-autocomplete--disabled[_ngcontent-%COMP%]{opacity:var(--opacity-medium);cursor:not-allowed;pointer-events:none}[_nghost-%COMP%] .one-forum-chip-list-autocomplete[_ngcontent-%COMP%] .mdc-text-field{border-radius:var(--border-radius-100);background-color:var(--colour-surface-neutral-subtle-default);border:var(--border-width-hairline) solid var(--colour-border-neutral-default)}[_nghost-%COMP%] .one-forum-chip-list-autocomplete[_ngcontent-%COMP%] .mat-mdc-form-field-focus-overlay{background-color:unset}[_nghost-%COMP%] .one-forum-chip-list-autocomplete[_ngcontent-%COMP%] .mat-mdc-form-field-infix{padding:0}[_nghost-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] input[_ngcontent-%COMP%]{font-family:var(--typography-label-large-font-family);
1font-weight:var(--typography-label-large-font-weight);line-height:var(--typography-label-large-line-height);font-size:var(--typography-label-large-font-size);letter-spacing:var(--typography-body-regular-letter-spacing);text-transform:var(--typography-body-regular-text-case);color:var(--colour-text-primary)!important}[_nghost-%COMP%] .chips-placeholder[_ngcontent-%COMP%]{position:absolute;font-family:var(--typography-label-large-font-family);font-weight:var(--typography-label-large-font-weight);line-height:var(--typography-label-large-line-height);font-size:var(--typography-label-large-font-size);letter-spacing:var(--typography-body-regular-letter-spacing);text-transform:var(--typography-body-regular-text-case);color:var(--colour-text-neutral-disabled);margin:auto} app-chips-autocomplete .mdc-evolution-chip-set__chips{flex-wrap:wrap!important;align-items:center} app-chips-autocomplete mat-form-field .mdc-text-field:not(.mdc-text-field--disabled){background-color:var(--colour-surface-neutral-subtle-default)} app-chips-autocomplete mat-form-field .mat-mdc-text-field-wrapper{padding:0} app-chips-autocomplete mat-form-field .mat-form-field-wrapper{padding:0!important} div[matformfieldlineripple]{display:none} .ssm-user-option app-image-fallback-content{border-radius:50%} .ssm-organization-option app-image-fallback-content{border-radius:var(--border-radius-050)} .ssm-user-option, .ssm-organization-option{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:var(--space-100);box-sizing:border-box} .ssm-user-option app-image-fallback-content, .ssm-organization-option app-image-fallback-content{height:var(--size-500);width:var(--size-500);background:var(--colour-surface-neutral-subtle-default);flex-shrink:0} .ssm-user-option app-image-fallback-content mat-icon, .ssm-organization-option app-image-fallback-content mat-icon{margin:0!important;opacity:var(--opacity-low)} .ssm-user-option .coma-separated+.coma-separated:before, .ssm-organization-option .coma-separated+.coma-separated:before{content:", "} .ssm-user-option .info, .ssm-organization-option .info{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;flex-shrink:1;overflow:hidden} .ssm-user-option .name, .ssm-organization-option .name{font-family:var(--typography-label-large-font-family);font-weight:var(--typography-label-large-font-weight);line-height:var(--typography-label-large-line-height);font-size:var(--typography-label-large-font-size);letter-spacing:var(--typography-body-regular-letter-spacing);text-transform:var(--typography-body-regular-text-case);color:var(--colour-text-primary);display:block;overflow:hidden;width:100%;text-overflow:ellipsis} .ssm-user-option .location, .ssm-organization-option .location{font-family:var(--typography-label-small-font-family);font-weight:var(--typography-label-small-font-weight);line-height:var(--typography-label-small-line-height);font-size:var(--typography-label-small-font-size);letter-spacing:var(--typography-body-regular-letter-spacing);text-transform:var(--typography-body-regular-text-case);color:var(--colour-text-secondary);display:block;overflow:hidden;width:100%;text-overflow:ellipsis} mat-chip-avatar app-image-fallback-content{height:100%;width:100%;border-radius:50%;background:var(--colour-surface-neutral-default)} mat-chip-avatar app-image-fallback-content mat-icon{opacity:var(--opacity-medium)} .chips-autocomplete-loading{display:flex;align-items:center;justify-content:center} .chips-autocomplete-loading mat-spinner svg circle{stroke:var(--colour-icon-accent-default)}'],changeDetection:0})}}return o})()},32906(T,O,n){n.d(O,{a:()=>b});var r=n(72200),t=n(89417),y=n(60850),c=n(36471),u=n(71228),d=n(99213),v=n(9183),g=n(78884),C=n(85834),E=n(2615),A=n(73664);let b=(()=>{class S{static{this.\u0275fac=function(P){return new(P||S)}}static{this.\u0275mod=A.$C({type:S})}static{this.\u0275inj=E.G2t({imports:[r.MD,C.$,t.X1,y.jL,u.R,c.YN,d.m_,v.D6,g.wux]})}}return S})()},21100(T,O,n){n.d(O,{m:()=>t});var r=n(89417);class t{static validateAllFormFields(c){Object.keys(c.controls).forEac
1h(u=>{const d=c.get(u);d instanceof r.MJ?d.markAsTouched({onlySelf:!0}):(d instanceof r.gE||d instanceof r.Yp)&&this.validateAllFormFields(d)})}static getFormControl(c,u){return c.get(u)}static getFormGroup(c,u){return c.get(u)}static getFormArray(c,u){return c.get(u)}static getFormControlErrors(c,u){const d=t.getFormControl(c,u);return d?.touched?d?.errors:{}}static selectFirstInvalidControl(c,u){const v=Object.keys(c.controls).find(C=>c.get(C)?.invalid);if(!v)return;const g=c.get(v);if(g instanceof r.MJ&&g?.invalid){const C=u?.find(E=>E.nativeElement.classList.contains("ng-invalid"))?.nativeElement;C&&(C.scrollIntoView({block:"center"}),C.focus())}else g instanceof r.gE&&g?.invalid&&this.selectFirstInvalidControl(g,u)}}}}]);
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.