PageSourceSearch

https://www.narrpr.com/chunk-DO9cdfug.js

js narrpr.com collected 2026-09-24 10:21:43 UTC 98,132 bytes, 4 lines download raw bytes

1import {C as Ce}from'./chunk-DbHtFOnl.js';import {d as di}from'./chunk-B83bHKqx.js';import'./chunk-ClzaL-FP.js';import'./chunk-CkXQK5jV.js';import'./chunk-Drd5IWzc.js';import'./chunk-CVofoBtB.js';import {i}from'./chunk-QBCjkOKX.js';import {Z as Ze}from'./chunk-yEY1rUsH.js';import'./chunk-Cg8WTY0l.js';import {Q,dl as WX,ew as ri,dT as t$1,ex as eK,b as h,u as ue,I as Ii,cj as B,ey as Xe,ay as N_,ez as wi,eA as EN,ev as PL,dk as e$1,af as Ke,aB as Ne,eB as uje,ak as k,c4 as nc,ad as ft,eC as s,cM as r$1,at as en,aj as T,eD as vu,aF as N,al as l$1,eE as k1,am as O1,e as ei,eF as p1e,eG as cu,eH as nn,eI as cs,eJ as ls,eK as us,bM as ZP,_ as _t,d as It,x as xB,cd as Cm,ar as Fl,a2 as Et,eL as tK,aq as RB,eM as Ia,ce as she,ep as ve,ac as vf,h as h$2,c,a_ as h$3,b9 as HTe,b1 as oL,b2 as RTe,b4 as lZ,ba as xZ,E as Ee,j as eA,r as _i,m as mt,N as vd,R as yd,i as bt,D as Dq,t as Ut,C as bi,A as wt,T as _d,eN as o3,aU as gm,$ as $c,aW as ym,bx as y$1,bz as rE,e3 as YP,dQ as JA,dR as GW,b8 as Qe,b0 as PTe,b3 as ATe,br as OZ,bs as NZ,bV as o$1,eO as KW,U as Uc,l as gt,bf as Z2,dh as bC,P as Pc,di as DC,v as xn,bg as Q2,bB as n3,cg as LR,bm as Yz,eP as EZ,eQ as sZ,eR as iZ,bh as ct,p as ks,w as wq,O as Os,bK as C,g as eS,de as Cl,M as Mn$1,F as SC,bG as Ih,B as Bn$1,J as Eh,K as lw,q as jq,V as CC,W as Mq,bc as bm,bC as Oq,b_ as Lq,bF as Th,bk as Rt,bE as Fq,aX as Vc,bI as Qh,dS as JR}from'./main-NEVA7CKN.js';import {w as we}from'./chunk-CLJbwTd-.js';import {$,O}from'./chunk-DFvrZSsq.js';import {M as Mn,G as Gi}from'./chunk-USkchlZm.js';import {X as Xn$1}from'./chunk-C92XNHMp.js';import {D as D$2,x,k as k$1,o as oe}from'./chunk-BkxJwbPG.js';import {y as yt}from'./chunk-B4K9HvAI.js';import'./chunk-BIHkF3_w.js';import {J as Je}from'./chunk-Cu14bgF5.js';import'./chunk-TQIqNFdq.js';import {W}from'./chunk-55KcXClT.js';import'./chunk-C2XtVl4P.js';import'./chunk-DXq2PU8S.js';import {D as De}from'./chunk-CsFuxWhC.js';import {D,d}from'./chunk-C9q5z8O3.js';import'./chunk-COINAcus.js';import'./chunk-D45A4Kvf.js';import'./chunk-ukXQ2x_E.js';import'./chunk-DoDEkuHC.js';import'./chunk-DyVjW7Cb.js';import {b as be}from'./chunk-CFeh7qgi.js';import {j}from'./chunk-DhSouhSP.js';import {c as cr}from'./chunk-Wt6A7_xL.js';import {D as D$1,h as h$1,L,A,y,m}from'./chunk-B2FrM_Hf.js';import {O as Oe}from'./chunk-BMjl2xtm.js';import'./chunk-DYPACD-D.js';import {y as ye}from'./chunk-BgxtlrPM.js';import {j as j$1}from'./chunk-DXqlAPw9.js';import'./chunk-CkEiKLJH.js';import {H}from'./chunk-B25e24hi.js';import {v}from'./chunk-BdvdUt-K.js';import {C as Cn}from'./chunk-2rtGJnSx.js';import {k as k$2}from'./chunk-DnUZvZcS.js';import'./chunk-DLzXaLOh.js';import'./chunk-B6tlgJu0.js';import'./chunk-BT5uL7hS.js';import {E}from'./chunk-C6YWspNr.js';import {s as s$1}from'./chunk-OxaTH9Ok.js';import'./chunk-DuUGlwXP.js';import'./chunk-ET3xikx3.js';import'./chunk-CnMYnkxI.js';import'./chunk-D29tK9MF.js';import'./chunk-9DnaCXdK.js';import'./chunk-DcjaGY9F.js';import'./chunk-nVJqXz4r.js';import {b}from'./chunk-CIdJeA1w.js';import {i as ie}from'./chunk-CJM49yBM.js';import'./chunk-DBDEZsmK.js';import'./chunk-CCqaRlsj.js';import'./chunk-atB_X3Ql.js';import'./chunk-B_rGuiZn.js';import'./chunk-BSKQhZj9.js';import'./chunk-DATRLLjE.js';import'./chunk-BLQ_S_os.js';import'./chunk-DDG7G9en.js';import'./chunk-BnG51gBo.js';import'./chunk-BhAWqUjm.js';import'./chunk-B9usH-BC.js';import'./chunk-7pUEEU_r.js';import'./chunk-DTNRXaRs.js';import'./chunk-BIbQ1UKx.js';import'./chunk-BstX6jKq.js';import'./chunk-Bm6gXIli.js';import'./chunk-4Z5ece65.js';import'./chunk-DmzMd4Hd.js';import'./chunk-CQSLm-IF.js';import'./chunk-DSWH1hlZ.js';import'./chunk-Cq46ixID.js';var ot=(function(t){return t[t.Success=0]="Success",t[t.Error=1]="Error",t[t.DuplicateOrgId=2]="DuplicateOrgId",t[t.CannotChangeOrgId=3]="CannotChangeOrgId",t[t.CannotDelete=4]="CannotDelete",t[t.InvalidCertificate=5]="InvalidCertificate",t})(ot||{});function Bn(t,m){if(t&1){let e=Uc();mt(0,"section",0),eA(1),mt(2,"p",3)(3,"input",4),gt("keydown.enter",function(i){ks(e);let r=wq(1),d=Mn$1();return Os(r?0:d.addItem(i))}),bt(),Z2(),bt(),mt(4,"button",5),gt("click",function(){ks(e);let i=Mn$1();return Os(i.addItem())}),$c(5," Add "),bt()();}if(t&2){let e=Mn$1(),o=wq(0);Ut();let i=Dq(e.inputCtrl.value?.length<2||e.$pendingItemInList()||o);Ut(2),xn("formControl",e.inputCtrl)("rprDisableControl",o),Q2(),Ut(),wt("cursor-not-allowed",i),xn("disabled",i);}}function Fn(t,m){if(t&1){let e=Uc();mt(0,"button",7),gt("click",function(){ks(e);let i=Mn$1().$implicit,r=Mn$1();return Os(r.removeItem(i))}),$c(1,"remove"),bt();}if(t&2){Mn$1(2);let e=wq(0);xn("disabled",e);}}function Un(t,m){if(t&1&&(mt(0,"li",2),$c(1),_i(2,Fn,2,1,"button",6),bt()),t&2){let e=m.$implicit,o=Mn$1();Ut(),SC(" ",e," "),Ut(),bi(o.$userCanManage()?2:-1);}}var ki=(()=>{class t extends xB{constructor(){super(...arguments),this.$form=Cm.required({alias:"form"}),this.$saving=Cm.required({alias:"saving"}),this.$userCanManage=Cm.required({alias:"userCanManage"}),this.inputCtrl=new Fl(""),this.$pendingItemInList=Q(false),this.$aliasNamesCtrl=Et(()=>this.$form().controls.aliasNames);}ngAfterViewInit(){this.inputCtrl.valueChanges.pipe(Ne(e=>e?.length>1),Ke(e=>{this.$pendingItemInList.set(this.$aliasNamesCtrl().value.some(o=>o.toLowerCase()===e.toLowerCase()));}),ft(this.unsubscribe$)).subscribe();}addItem(e){e?.preventDefault();let{$aliasNamesCtrl:o,inputCtrl:i}=this;o().setValue([...o().value,i.value].toSorted((r,d)=>r.toLowerCase().localeCompare(d.toLowerCase()))),this.inputCtrl.setValue(""),this.markAsDirty();}removeItem(e){let{$aliasNamesCtrl:o}=this;o().setValue(o().value.filter(i=>i!==e)),this.markAsDirty();}markAsDirty(){setTimeout(()=>this.$form().markAsDirty(),101);}static{this.\u0275fac=(()=>{let e;return function(i){return (e||(e=_t(t)))(i||t)}})();}static{this.\u0275cmp=It({type:t,selectors:[["rpr-admin-manage-org-alias-names"]],inputs:{$form:[1,"form","$form"],$saving:[1,"saving","$saving"],$userCanManage:[1,"userCanManage","$userCanManage"]},features:[Ee],decls:5,vars:4,consts:[[1,"is-flex","margin-bottom-20"],[1,"addable-removeable-list-items"],[1,"is-flex","justify-content-between"],[1,"control"],["type","text","maxlength","50","placeholder","Enter new alias name","data-lpignore","true","autocomplete","off",1,"input",3,"keydown.enter","formControl","rprDisableControl","rprResetInput"],["type","button",1,"button","is-primary",3,"click","disabled"],["type","button",3,"disabled"],["type","button",3,"click","disabled"]],template:function(o,i){if(o&1&&(eA(0),_i(1,Bn,6,6,"section",0),mt(2,"ol",1),vd(3,Un,3,2,"li",2,yd),bt()),o&2){Dq(i.$saving()),Ut(),bi(i.$userCanManage()?1:-1);let r=i.$aliasNamesCtrl().value;Ut(),wt("scrollable",r.length>3),Ut(),_d(r);}},dependencies:[h$3,HTe,oL,RTe,lZ,xZ,E],styles:["section[_ngcontent-%COMP%]{column-gap:16px}section[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{width:100%}ol[_ngcontent-%COMP%]{height:122px}ol.scrollable[_ngcontent-%COMP%]{overflow-y:scroll}li[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:hover{text-decoration:underline}"]});}}return t})();var qn=t=>({forLegacy:true,associationId:t}),Wn=(t,m)=>m.key,Gn=(t,m)=>m.associationId;function Zn(t,m){if(t&1&&$c(0),t&2){let e=Mn$1(2).$implicit;SC(" ",e.key," ");}}function Hn(t,m){t&1&&$c(0," \xA0 ");}function zn(t,m){if(t&1&&(gm(0,"tr")(1,"td"),_i(2,Zn,1,1)(3,Hn,1,0),ym(),gm(4,"td")(5,"a",1),$c(6),ym()(),gm(7,"td"),$c(8),ym()()),t&2){let e=m.$implicit,o=m.$index,i=Mn$1(3),r=e.associationId;Ut(),wt("first",o===0),Ut(),bi(o===0?2:3),Ut(3),Vc("href",i.buildAdm
1inAssociationsUrl(Mq(6,qn,r)),Qh),Ut(),SC(" ",e.name," "),Ut(2),bm(r);}}function Kn(t,m){if(t&1&&vd(0,zn,9,8,"tr",null,Gn),t&2){let e=m.$implicit;_d(e.value);}}function Yn(t,m){if(t&1&&(vd(0,Kn,2,0,null,null,Wn),Oq(2,"keyvalue")),t&2){let e=Mn$1();_d(Lq(2,0,e.$items()));}}function jn(t,m){t&1&&(gm(0,"tr")(1,"td",2),$c(2,"No associations belong to this MLS..."),ym()());}var Ri=(()=>{class t{constructor(){this.$form=Cm.required({alias:"form"}),this.$saving=Cm.required({alias:"saving"}),this.$associationLookups=Cm(null,{alias:"associationLookups"}),this.buildAdminAssociationsUrl=tK,this.$items=Et(()=>this.$associationLookups()?new Map(Object.entries(this.$associationLookups())):null);}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=It({type:t,selectors:[["rpr-admin-manage-org-associations-info"]],inputs:{$form:[1,"form","$form"],$saving:[1,"saving","$saving"],$associationLookups:[1,"associationLookups","$associationLookups"]},decls:13,vars:3,consts:[[1,"margin-bottom-8"],["target","_blank",3,"href"],["colspan","3",1,"is-italic"]],template:function(o,i){if(o&1&&(gm(0,"p",0),$c(1,"These are the Associations that belong to this MLS."),ym(),gm(2,"table")(3,"thead")(4,"th"),$c(5,"State"),ym(),gm(6,"th"),$c(7,"Association Name"),ym(),gm(8,"th"),$c(9,"Association ID"),ym()(),gm(10,"tbody"),_i(11,Yn,3,2)(12,jn,3,0,"tr"),ym()()),o&2){let r=i.$items()?.size;Ut(10),wt("no-data",!r),Ut(),bi(r?11:12);}},dependencies:[o3],styles:["@media screen and (max-width:1009px){th[_ngcontent-%COMP%]:first-child{width:61px}th[_ngcontent-%COMP%]:last-child{width:107px}}@media screen and (min-width:1010px){th[_ngcontent-%COMP%]:first-child{min-width:65px}}td[_ngcontent-%COMP%]:not(.first){border-right:unset}"]});}}return t})();var I=(function(t){return t[t.Id=1]="Id",t[t.OfficeName=2]="OfficeName",t[t.Address=3]="Address",t[t.DateAdded=4]="DateAdded",t[t.RprYN=4]="RprYN",t})(I||{});var Qn=(t,m)=>m.mlsOfficeId;function Jn(t,m){if(t&1){let e=Uc();mt(0,"section",12)(1,"rpr-admin-pagination",25),Ih("fade-in-animation"),gt("pageIndexChanged",function(){ks(e);let i=Mn$1();return Os(i.search())}),bt()();}if(t&2){let e=Mn$1(),o=wq(0),i=wq(3);Ut(),xn("pageIndexCtrl",e.form.controls.pageIndex)("ctrlDisabled",o)("pageIndexes",i)("searching",o);}}function Xn(t,m){if(t&1&&Bn$1(0,"i",26),t&2){Mn$1();let e=wq(38);wt("fa-chevron-up",e)("fa-chevron-down",!e);}}function eo(t,m){if(t&1&&Bn$1(0,"i",26),t&2){Mn$1();let e=wq(38);wt("fa-chevron-up",e)("fa-chevron-down",!e);}}function to(t,m){if(t&1&&Bn$1(0,"i",26),t&2){Mn$1();let e=wq(38);wt("fa-chevron-up",e)("fa-chevron-down",!e);}}function io(t,m){if(t&1&&Bn$1(0,"i",26),t&2){Mn$1();let e=wq(38);wt("fa-chevron-up",e)("fa-chevron-down",!e);}}function no(t,m){t&1&&(mt(0,"tr")(1,"td",27)(2,"p",28),$c(3,"Loading..."),bt()()());}function oo(t,m){if(t&1){let e=Uc();mt(0,"tr",29),gt("click",function(){let i=ks(e).$implicit,r=Mn$1(4),d=wq(0);return Os(!d&&r.toggleOffice(i.mlsOfficeId))}),mt(1,"td"),Bn$1(2,"mat-checkbox",30),bt(),mt(3,"td"),$c(4),bt(),mt(5,"td"),$c(6),Oq(7,"titlecase"),bt(),mt(8,"td")(9,"p"),$c(10),Oq(11,"dashValue"),Bn$1(12,"br"),$c(13),bt()(),mt(14,"td"),$c(15),bt()();}if(t&2){let e=m.$implicit;Mn$1(4);let o=wq(0),i=wq(4);Ut(2),xn("checked",i.includes(e.mlsOfficeId))("disabled",o),Ut(2),bm(e.mlsOfficeId),Ut(2),bm(Lq(7,9,e.mlsOfficeName)),Ut(4),SC(" ",Lq(11,11,e.streetAddress)),Ut(3),JR(" ",e.city,", ",e.state," ",e.zip," "),Ut(2),bm(e.rprFlag);}}function ao(t,m){if(t&1&&vd(0,oo,16,13,"tr",null,Qn),t&2){Mn$1(3);let e=wq(1);_d(e);}}function ro(t,m){t&1&&(mt(0,"tr")(1,"td",27)(2,"p",31),$c(3,"No records found..."),bt()()());}function so(t,m){if(t&1&&_i(0,ao,2,0)(1,ro,4,0,"tr"),t&2){Mn$1(2);let e=wq(2);bi(e?0:1);}}function lo(t,m){if(t&1&&_i(0,no,4,0,"tr")(1,so,2,1),t&2){Mn$1();let e=wq(0);bi(e?0:1);}}function co(t,m){t&1&&$c(0," Loading... ");}function mo(t,m){t&1&&$c(0," Please perform a search above... ");}function go(t,m){if(t&1&&(mt(0,"tr")(1,"td",27)(2,"p",31),_i(3,co,1,0)(4,mo,1,0),bt()()()),t&2){Mn$1();let e=wq(0);Ut(3),bi(e?3:4);}}function po(t,m){t&1&&$c(0,"Office");}function uo(t,m){t&1&&$c(0,"Offices");}function fo(t,m){if(t&1&&($c(0),bC(1,20),Pc(2,po,1,0,"ng-template",22)(3,uo,1,0,"ng-template",23),DC()),t&2){Mn$1();let e=wq(62);SC(" ",e," "),Ut(),xn("ngPlural",e);}}function ho(t,m){t&1&&$c(0,"Selection");}function _o(t,m){t&1&&$c(0,"Selection");}function Co(t,m){t&1&&$c(0,"Selections");}var Ni=(()=>{class t extends RB{constructor(){super(...arguments),this.$searching=Q(false),this.$pageIndexes=Q(null),this.$allChecked=Et(()=>!this.$mlsOfficeIds()?.length||!this.$selectedOfficeIds().length?false:this.$mlsOfficeIds().every(e=>this.$selectedOfficeIds().includes(e))),this.$activeSort=Q(I.OfficeName),this.$areRowsAscending=Q(true),this.$offices=Q(null),this.$selectedOfficeIds=Q([]),this.DaggOfficesSortColumnId=I,this.$mlsOfficeIds=Et(()=>this.$offices()?.map(e=>e.mlsOfficeId)),this.adminHelper=h(j),this.adminOfficesApi=h(di);}
1ngOnInit(){let{orgId:e}=this.dialogData,{$memoizedDaggOfficesSearchCriteria:o}=this.adminHelper;if(this.form=new Ia({orgId:new Fl(e),officeKeyword:new Fl(o()?.officeKeyword||""),mlsBrokerId:new Fl(o()?.mlsBrokerId||""),officeCity:new Fl(o()?.officeCity||""),officeState:new Fl(o()?.officeState||""),includeActiveUnassigned:new Fl(l$1(o()?.includeActiveUnassigned)?o().includeActiveUnassigned:true),includeActiveAssigned:new Fl(l$1(o()?.includeActiveAssigned)?o().includeActiveAssigned:false),includeRprParticipant:new Fl(l$1(o()?.includeRprParticipant)?o().includeRprParticipant:false),includeNonRprParticipant:new Fl(l$1(o()?.includeNonRprParticipant)?o().includeNonRprParticipant:false),pageIndex:new Fl(l$1(o()?.pageIndex)?o().pageIndex:y.Zero),sortColumnId:new Fl(I.OfficeName),sortDirection:new Fl(s$1.Ascending)}),o()){let{sortColumnId:i,sortDirection:r}=o();this.$activeSort.set(i),this.$areRowsAscending.set(r===s$1.Ascending),this.search();}}search(){this.findDaggOfficesByFilters();}handleIncludeActiveChange({assigned:e=false}={}){let{includeActiveUnassigned:o,includeActiveAssigned:i}=this.form.controls,{value:r}=i,{value:d}=o,g=!d&&!i;!e&&!d&&!g?i.setValue(true):e&&!r&&!g&&o.setValue(true);}handleRprParticipantChange({y:e=true}={}){let{includeRprParticipant:o,includeNonRprParticipant:i}=this.form.controls,{value:r}=o,{value:d}=i;e&&r&&d?i.setValue(false):!e&&d&&r&&o.setValue(false);}toggleAll({checked:e}){this.$selectedOfficeIds.update(o=>e?this.$mlsOfficeIds():o.filter(i=>!this.$mlsOfficeIds().includes(i)));}sortById(){this.$activeSort()===I.Id?this.reverseRowsAreAscending():(this.$activeSort.set(I.Id),this.resetRowsAreAscending()),this.findDaggOfficesByFilters({sortColumnId:I.Id});}sortByOfficeName(){this.$activeSort()===I.OfficeName?this.reverseRowsAreAscending():(this.setDefaultActiveSort(),this.resetRowsAreAscending());let e=this.$areRowsAscending()?1:-1;this.$offices.update(o=>o.toSorted((i,r)=>e*i.mlsOfficeName.toLowerCase().localeCompare(r.mlsOfficeName.toLowerCase())));}sortByAddress(){this.$activeSort()===I.Address?this.reverseRowsAreAscending():(this.$activeSort.set(I.Address),this.resetRowsAreAscending()),this.findDaggOfficesByFilters({sortColumnId:I.Address});}sortByRprYN(){this.$activeSort()===I.RprYN?this.reverseRowsAreAscending():(this.$activeSort.set(I.RprYN),this.resetRowsAreAscending()),this.findDaggOfficesByFilters({sortColumnId:I.RprYN});}toggleOffice(e){this.$selectedOfficeIds.update(o=>o.find(r=>r===e)?o.filter(r=>r!==e):[...o,e]);}findDaggOfficesByFilters({sortColumnId:e=I.OfficeName}={}){this.$searching.set(true);let o=this.$areRowsAscending()?s$1.Ascending:s$1.Descending;this.form.controls.sortColumnId.setValue(e),this.form.controls.sortDirection.setValue(o);let{orgId:i,officeKeyword:r,mlsBrokerId:d,officeCity:g,officeState:f,includeActiveUnassigned:h,includeActiveAssigned:w,includeRprParticipant:k$1,includeNonRprParticipant:B,pageIndex:$}=this.form.value;this.adminOfficesApi.findDaggOfficesByFiltersNew({orgId:i,officeKeyword:r,mlsBrokerId:d,officeCity:g,officeState:f,includeActiveUnassigned:h,includeActiveAssigned:w,includeRprParticipant:k$1,includeNonRprParticipant:B,sortColumnId:e,sortDirection:o,pageIndex:$,pageSize:m.Ten}).pipe(Ke(z=>{this.adminHelper.$memoizedDaggOfficesSearchCriteria.set(z.data.length?this.form.getRawValue():null),this.$offices.set(z.data),this.$pageIndexes.set(z.paging.pageIndexes);}),k(()=>(this.setDefaultActiveSort(),this.resetRowsAreAscending(),this.helper.showErrorDialog(),N(null))),nc(()=>this.$searching.set(false)),ft(this.unsubscribe$)).subscribe();}setDefaultActiveSort(){this.$activeSort.set(I.OfficeName);}reverseRowsAreAscending(){this.$areRowsAscending.set(!this.$areRowsAscending());}resetRowsAreAscending(){this.$areRowsAscending.set(true);}static{this.\u0275fac=(()=>{let e;return function(i){return (e||(e=_t(t)))(i||t)}})();}static{this.\u0275cmp=It({type:t,selectors:[["rpr-admin-search-dagg-offices-dialog"]],hostVars:8,hostBindings:function(o,i){o&2&&wt("admin-dialog",true)("has-admin-table",true)("admin-has-number-input",true)("admin-has-sortable-data",true);},features:[Ee],decls:75,vars:79,consts:[[1,"is-flex","flex-column","material-halos-unclipped"],[1,"margin-bottom-15"],[1,"dialog-header","margin-0"],[1,"is-flex","flex-column",3,"ngSubmit","formGroup"],[1,"is-flex"],[3,"form","frmControlName","maxlength","ctrlDisabled","placeholder","hasBottomMargin","isFocused"],[3,"form","frmControlName","maxlength","ctrlDisabled","placeholder","hasBottomMargin"],["type","submit",1,"is-align-self-flex-end","button","is-primary",3,"disabled"],[1,"is-flex","align-items-center"],[3,"change","formControlName","rprDisableControl"],[1,"is-flex","align-items-center","rpr-y-n"],[1,"margin-top-2"],[1,"padding-top-8","padding-bottom-8","pagination-container"],[1,"margin-top-16","padding-right-9"],[3,"change","checked","disabled"],[1,"sort-column",3,"click"],[1,"fa-regular",3,"fa-chevron-up","fa-chevron-down"],[1,"is-flex","align-items-center","padding-top-16","ctas"],["type","button",1,"button","is-primary",3,"click","disabled"],["type","button",1,"button","is-text","is-text-alt",3,"click","disabled"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","=1"],["ngPluralCase","other"],["aria-label","Close","rprMakeTabbable","",1,"fa-light","fa-xmark","close-dialog-icon",3,"click","
1spaceOrEnterKeyPressed"],[3,"pageIndexChanged","pageIndexCtrl","ctrlDisabled","pageIndexes","searching"],[1,"fa-regular"],["colspan","5"],[1,"is-istalic"],[3,"click"],[3,"checked","disabled"],[1,"is-italic"]],template:function(o,i){if(o&1){let r=Uc();eA(0)(1)(2)(3)(4),mt(5,"mat-dialog-content",0)(6,"header",1)(7,"h1",2),$c(8,"Search for DAGG Offices..."),bt()(),mt(9,"form",3),gt("ngSubmit",function(){return i.search()}),mt(10,"section",4)(11,"rpr-admin-input",5),$c(12," Office ID / Name: "),bt(),mt(13,"rpr-admin-input",6),$c(14," Broker ID: "),bt(),mt(15,"rpr-admin-input",6),$c(16," City: "),bt(),mt(17,"rpr-admin-input",6),$c(18," State: "),bt(),mt(19,"button",7),$c(20," Search "),bt()(),mt(21,"section",8)(22,"mat-checkbox",9),gt("change",function(){return i.handleIncludeActiveChange()}),$c(23," Active Unassigned Offices "),bt(),Z2(),mt(24,"mat-checkbox",9),gt("change",function(){return i.handleIncludeActiveChange({assigned:true})}),$c(25," Active Assigned Offices "),bt(),Z2(),mt(26,"section",10)(27,"label",11),$c(28,"RPR Y/N:"),bt(),mt(29,"p",8)(30,"mat-checkbox",9),gt("change",function(){return i.handleRprParticipantChange()}),$c(31," Y "),bt(),Z2(),mt(32,"mat-checkbox",9),gt("change",function(){return i.handleRprParticipantChange({y:false})}),$c(33," N "),bt(),Z2(),bt()()(),_i(34,Jn,2,4,"section",12),bt(),mt(35,"ng-scrollbar")(36,"table",13)(37,"thead"),eA(38),mt(39,"tr")(40,"th")(41,"mat-checkbox",14),gt("change",function(g){return i.toggleAll(g)}),bt()(),mt(42,"th",15),gt("click",function(){ks(r);let g=wq(2);return Os(g&&i.sortById())}),mt(43,"p",8),$c(44," ID "),_i(45,Xn,1,4,"i",16),bt()(),mt(46,"th",15),gt("click",function(){ks(r);let g=wq(2);return Os(g&&i.sortByOfficeName())}),mt(47,"p",8),$c(48," Office Name "),_i(49,eo,1,4,"i",16),bt()(),mt(50,"th",15),gt("click",function(){ks(r);let g=wq(2);return Os(g&&i.sortByAddress())}),mt(51,"p",8),$c(52," Address "),_i(53,to,1,4,"i",16),bt()(),mt(54,"th",15),gt("click",function(){ks(r);let g=wq(2);return Os(g&&i.sortByRprYN())}),mt(55,"p",8),$c(56," RPR Y/N "),_i(57,io,1,4,"i",16),bt()()()(),mt(58,"tbody"),_i(59,lo,2,1)(60,go,5,1,"tr"),bt()()(),mt(61,"p",17),eA(62),mt(63,"button",18),gt("click",function(){return i.close(i.$selectedOfficeIds())}),$c(64," Select "),_i(65,fo,4,2),bt(),mt(66,"button",19),gt("click",function(){return i.$selectedOfficeIds.set([])}),$c(67," Clear "),bC(68,20),Pc(69,ho,1,0,"ng-template",21)(70,_o,1,0,"ng-template",22)(71,Co,1,0,"ng-template",23),DC(),bt(),mt(72,"button",19),gt("click",function(){return i.close()}),$c(73," Cancel "),bt()(),mt(74,"i",24),gt("click",function(){return i.close()})("spaceOrEnterKeyPressed",function(){return i.close()}),bt()();}if(o&2){let r=Dq(i.$searching());Ut();let d=Dq(i.$offices());Ut();let g=Dq(d?.length);Ut();let h=Dq(i.$pageIndexes())?.length>1;Ut();let w=Dq(i.$selectedOfficeIds());Ut(5),xn("formGroup",i.form),Ut(2),xn("form",i.form)("frmControlName","officeKeyword")("maxlength",null)("ctrlDisabled",r)("placeholder","Show all")("hasBottomMargin",false)("isFocused",true),Ut(2),xn("form",i.form)("frmControlName","mls
1BrokerId")("maxlength",null)("ctrlDisabled",r)("placeholder","Show all")("hasBottomMargin",false),Ut(2),xn("form",i.form)("frmControlName","officeCity")("maxlength",null)("ctrlDisabled",r)("placeholder","Show all")("hasBottomMargin",false),Ut(2),xn("form",i.form)("frmControlName","officeState")("maxlength",null)("ctrlDisabled",r)("placeholder","Show all")("hasBottomMargin",false),Ut(2),wt("cursor-not-allowed",r),xn("disabled",r),Ut(3),xn("formControlName","includeActiveUnassigned")("rprDisableControl",r),Q2(),Ut(2),xn("formControlName","includeActiveAssigned")("rprDisableControl",r),Q2(),Ut(6),xn("formControlName","includeRprParticipant")("rprDisableControl",r),Q2(),Ut(2),xn("formControlName","includeNonRprParticipant")("rprDisableControl",r),Q2(),Ut(2),bi(h?34:-1),Ut(2),wt("sortable",g);let k=i.$activeSort();Ut(2),Dq(i.$areRowsAscending());let B=k===i.DaggOfficesSortColumnId.Id,$=k===i.DaggOfficesSortColumnId.OfficeName,z=k===i.DaggOfficesSortColumnId.Address,we=k===i.DaggOfficesSortColumnId.RprYN;Ut(3),xn("checked",i.$allChecked())("disabled",r),Ut(),wt("active",B),Ut(3),bi(B?45:-1),Ut(),wt("active",$),Ut(3),bi($?49:-1),Ut(),wt("active",z),Ut(3),bi(z?53:-1),Ut(),wt("active",we),Ut(3),bi(we?57:-1),Ut(),wt("no-data",!g)("searching",r)("offices-available",g),Ut(),bi(d?59:60),Ut(3);let xe=Dq(w.length),ge=!g||!xe||r;Ut(),wt("cursor-not-allowed",ge),xn("disabled",ge),Ut(2),bi(xe?65:-1),Ut(),wt("cursor-not-allowed",ge),xn("disabled",ge),Ut(2),xn("ngPlural",xe),Ut(4),wt("cursor-not-allowed",r),xn("disabled",r);}},dependencies:[Oe,be,h$3,y$1,rE,YP,JA,GW,Qe,HTe,PTe,RTe,ATe,OZ,NZ,o$1,KW],styles:["mat-dialog-content[_ngcontent-%COMP%]{min-height:90vh}form[_ngcontent-%COMP%]{row-gap:16px}form[_ngcontent-%COMP%] > section[_ngcontent-%COMP%], .rpr-y-n[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .ctas[_ngcontent-%COMP%]{column-gap:16px}button[type=submit][_ngcontent-%COMP%]{height:40px}.rpr-y-n[_ngcontent-%COMP%]{column-gap:8px}.pagination-container[_ngcontent-%COMP%]{border-top:1px solid rgb(218.7306069364,226.4283377374,235.5693930636);border-bottom:1px solid rgb(218.7306069364,226.4283377374,235.5693930636)}table.sortable[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{cursor:pointer}table[_ngcontent-%COMP%] > tbody.searching[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{cursor:not-allowed}.ctas[_ngcontent-%COMP%]{margin-top:auto}"]});}}return t})();var bo=["input"],vo=(t,m)=>m.daggOfficeId;function Oo(t,m){if(t&1&&(mt(0,"li"),$c(1),bt()),t&2){let e=m.$implicit;Ut(),bm(e);}}function xo(t,m){if(t&1){let e=Uc();mt(0,"section",12)(1,"p",16),$c(2,"RPR Y/N field is set to Yes for these DAGG Office IDs:"),bt(),mt(3,"ol",17),vd(4,Oo,2,1,"li",null,yd),bt(),mt(6,"p",18),$c(7," Are you sure you'd like to add these offices to the Broker Opt-out Messaging list? "),bt(),mt(8,"p",19)(9,"button",20),gt("click",function(){ks(e);let i=Mn$1(2);return Os(i.addOfficeIds({rprParticipantsConfirmed:true}))}),$c(10," Yes "),bt(),mt(11,"button",21),gt("click",function(){ks(e);let i=Mn$1(2);return Os(i.confirmNo())}),$c(12," No "),bt()()();}if(t&2){Mn$1();let e=wq(7),o=Mn$1();wt("with-invalid-ids",e),Ut(4),_d(o.$rprIds());}}function yo(t,m){if(t&1&&(mt(0,"li"),$c(1),bt()),t&2){let e=m.$implicit;Ut(),bm(e);}}function Ao(t,m){if(t&1&&(mt(0,"section",12)(1,"strong",13),$c(2," These DAGG Office IDs are not valid for this Org: "),bt(),mt(3,"ol",17),vd(4,yo,2,1,"li",null,yd),bt()()),t&2){let e=Mn$1(2);Ut(4),_d(e.$invalidIds());}}function Do(t,m){t&1&&(mt(0,"strong",13),$c(1," Please enter a comma-separated list of DAGG Office IDs to add to the opt-out list. "),bt());}function Mo(t,m){if(t&1){let e=Uc();mt(0,"p"),$c(1,"Manage opted out Broker DAGG offices. Changes are saved automatically."),bt(),mt(2,"section",7)(3,"p",8)(4,"input",9,0),gt("keydown.enter",function(i){ks(e);let r=Mn$1();return i.preventDefault(),Os(r.addOfficeIds())}),bt(),Z2(),mt(6,"rpr-balloon",10),gt("toggled",function(i){ks(e);let r=Mn$1();return Os(r.handleBalloonToggle(!i))}),eA(7),_i(8,xo,13,2,"section",11),_i(9,Ao,6,0,"section",12),_i(10,Do,2,0,"strong",13),bt()(),mt(11,"p",14)(12,"button",15),gt("click",function(){ks(e);let i=Mn$1();return Os(i.addOfficeIds())}),$c(13," Add "),bt(),$c(14," or "),mt(15,"button",15),gt("click",function(){ks(e);let i=Mn$1();return Os(i.openSearchDaggOfficesDialog())}),$c(16," Search "),bt()()();}if(t&2){let e=CC(5),o=Mn$1(),i=wq(3);Ut(4),xn("formControl",o.inputCtrl)("rprDisableControl",i),Q2(),Ut(2),xn("targetElement",e)("offsetTop",12)("left",0)("arrowLeft",10);let r=o.$rprIds().length;Ut();let d=Dq(o.$invalidIds().length);Ut(),bi(r?8:-1),Ut(),bi(d?9:-1),Ut(),bi(o.$addAttemptedWithoutOfficeId()?10:-1),Ut(2),wt("is-loading",i
1)("cursor-not-allowed",i),xn("disabled",i),Ut(3),wt("cursor-not-allowed",i),xn("disabled",i);}}function So(t,m){if(t&1&&Bn$1(0,"i",22),t&2){Mn$1();let e=wq(7);wt("fa-chevron-up",e)("fa-chevron-down",!e);}}function wo(t,m){if(t&1&&Bn$1(0,"i",22),t&2){Mn$1();let e=wq(7);wt("fa-chevron-up",e)("fa-chevron-down",!e);}}function $o(t,m){if(t&1&&Bn$1(0,"i",22),t&2){Mn$1();let e=wq(7);wt("fa-chevron-up",e)("fa-chevron-down",!e);}}function To(t,m){if(t&1&&Bn$1(0,"i",22),t&2){Mn$1();let e=wq(7);wt("fa-chevron-up",e)("fa-chevron-down",!e);}}function Io(t,m){t&1&&Bn$1(0,"th");}function Lo(t,m){if(t&1&&(mt(0,"tr")(1,"td")(2,"p",23),$c(3,"Loading..."),bt()()()),t&2){Mn$1(2);let e=wq(0);Ut(),Rt("colspan",e?5:4);}}function ko(t,m){if(t&1){let e=Uc();mt(0,"td",27)(1,"i",28),gt("click",function(){ks(e),Mn$1();let i=wq(0),r=wq(1),d=Mn$1(3),g=wq(3);return Os(!g&&d.deleteOffice(i,r))}),bt()();}if(t&2){Mn$1(4);let e=wq(3);Ut(),Rt("disabled",e);}}function Ro(t,m){if(t&1&&(eA(0)(1),mt(2,"tr")(3,"td"),$c(4),bt(),mt(5,"td",25),$c(6),bt(),mt(7,"td")(8,"p"),$c(9),Bn$1(10,"br"),$c(11),bt()(),mt(12,"td",26)(13,"time",3),Oq(14,"date"),$c(15),Oq(16,"date"),mt(17,"time"),Oq(18,"date"),$c(19),Oq(20,"date"),bt()()(),_i(21,ko,2,1,"td",27),bt()),t&2){let e=m.$implicit,o=Mn$1(3),i=wq(0),r=Dq(e.daggOfficeId);Ut();let d=Dq(e.daggOfficeName);Ut(),wt("added",o.$officeIdsAdded().includes(r))("deleting",r===o.$officeIdBeingDeleted()),Ut(2),SC("",r,"*"),Ut(2),bm(d),Ut(3),SC(" ",e.addressLine1),Ut(2),SC(" ",e.cityStateZip," ");let g=e.createdDateTime;Ut(2),Rt("datetime",Fq(14,15,g,"yyyy-MM-dd")),Ut(2),SC(" ",Fq(16,18,g,"M/d/y")," "),Ut(2),Rt("datetime",Fq(18,21,g,"yyyy-MM-DDTHH:mm:ss")),Ut(2),SC(" ",Fq(20,24,e.createdDateTime,"h:mm a")," "),Ut(2),bi(i?21:-1);}}function No(t,m){if(t&1&&vd(0,Ro,22,27,"tr",24,vo),t&2){Mn$1(2);let e=wq(1);_d(e);}}function Po(t,m){if(t&1&&_i(0,Lo,4,1,"tr")(1,No,2,0),t&2){let e=Mn$1();bi(e.$loading()?0:1);}}function Eo(t,m){t&1&&$c(0," Loading... ");}function Vo(t,m){t&1&&$c(0," No opt-outs have been added... ");}function Bo(t,m){if(t&1&&(mt(0,"tr")(1,"td",29)(2,"p",23),_i(3,Eo,1,0)(4,Vo,1,0),bt()()()),t&2){let e=Mn$1();Ut(3),bi(e.$loading()?3:4);}}function Fo(t,m){t&1&&(mt(0,"p"),$c(1," * "),mt(2,"strong",30),$c(3,"Offices manually added by RPR staff."),bt()());}var Pi=(()=>{class t extends xB{constructor(){super(...arguments),this.$savedOrg=Cm.required({alias:"savedOrg"}),this.$userCanManage=Cm.required({alias:"userCanManage"}),this.inputCtrl=new Fl(""),this.$adding=Q(false),this.$addAttemptedWithoutOfficeId=Q(false),this.$rprIds=Q([]),this.$invalidIds=Q([]),this.$officeIdsAdded=Q([]),this.$officeIdBeingDeleted=Q(""),this.$activeSort=Q(I.OfficeName),this.$areRowsAscending=Q(true),this.$brokerOptOuts=Q([]),this.DaggOfficesSortColumnId=I,this.$userCanViewOnly=Et(()=>!this.$userCanManage()),this.$orgId=Et(()=>this.$savedOrg().orgId),this.$input=she("input"),this.$balloon=she(ve),this.$pendingDaggOfficeIds=Q([]),this.helper=h(ue),this.adminOrgsApi=h(De),this.dialog=h(vf);}ngOnInit(){this.inputCtrl.valueChanges.pipe(Ne(e=>!!e?.length),Ke(()=>this.hideBalloon()),ft(this.unsubscribe$)).subscribe(),this.getBrokerDaggOfficeOptOuts();}handleBalloonToggle(e){e&&(this.clearRprIds(),this.clearInvalidIds());}addOfficeIds({rprParticipantsConfirmed:e=false,fromDialog:o=false}={}){this.hideBalloon();let{$orgId:i,$pendingDaggOfficeIds:r}=this;if(!e&&!o){if(this.inputCtrl.value?.length)this.$addAttemptedWithoutOfficeId.set(false);else {this.$addAttemptedWithoutOfficeId.set(true),setTimeout(()=>this.showBalloon(),101),this.$input().nativeElement.focus();return}r.set(this.inputCtrl.value.split(",").map(d=>d.trim()).filter(d=>d.length)),this.inputCtrl.setValue("");}this.$adding.set(true),this.adminOrgsApi.addBrokerDaggOfficeOptOuts({orgId:i(),daggOfficeIds:r(),rprParticipantsConfirmed:e}).pipe(k(()=>(this.helper.showErrorDialog(),N(null))),Ke(d=>{if(e&&d)this.$officeIdsAdded.set(r()),this.getBrokerDaggOfficeOptOuts();else {let g=d?.rprIds,f=g?.length;f&&this.$rprIds.set(g);let h=d?.invalidIds,w=h?.length;w&&(this.$invalidIds.set(h),this.$pendingDaggOfficeIds.update(k=>
1k.filter(B=>g.includes(B)))),(f||w)&&this.showBalloon();}}),nc(()=>{e&&this.clearIds(),this.$adding.set(false);}),ft(this.unsubscribe$)).subscribe();}confirmNo(){this.hideBalloon(),this.clearIds();}openSearchDaggOfficesDialog(){let{$orgId:e}=this;this.dialog.open(Ni,{data:{orgId:e()}}).afterClosed().pipe(Ne(o=>o),Ke(o=>{this.$pendingDaggOfficeIds.set(o),this.addOfficeIds({fromDialog:true});}),ft(this.unsubscribe$)).subscribe();}sortById(){this.$activeSort()===I.Id?this.reverseRowsAreAscending():(this.$activeSort.set(I.Id),this.resetRowsAreAscending()),this.getBrokerDaggOfficeOptOuts({sortColumnId:I.Id});}sortByOfficeName(){this.$activeSort()===I.OfficeName?this.reverseRowsAreAscending():(this.$activeSort.set(I.OfficeName),this.resetRowsAreAscending());let e=this.$areRowsAscending()?1:-1;this.$brokerOptOuts.update(o=>o.toSorted((i,r)=>e*i.daggOfficeName.toLowerCase().localeCompare(r.daggOfficeName.toLowerCase())));}sortByAddress(){this.$activeSort()===I.Address?this.reverseRowsAreAscending():(this.$activeSort.set(I.Address),this.resetRowsAreAscending()),this.getBrokerDaggOfficeOptOuts({sortColumnId:I.Address});}sortByDateAdded(){this.$activeSort()===I.DateAdded?this.reverseRowsAreAscending():(this.$activeSort.set(I.DateAdded),this.resetRowsAreAscending()),this.getBrokerDaggOfficeOptOuts({sortColumnId:I.DateAdded});}deleteOffice(e,o){let{$orgId:i}=this;this.helper.showConfirmDialog(`Are you sure you want to delete <strong class="has-text-danger">${o}</strong>
2			(${e}) from the list of opt-outs?`,null).pipe(Ne(r=>r),Ke(()=>this.$officeIdBeingDeleted.set(e)),en(()=>this.adminOrgsApi.deleteBrokerDaggOfficeOptOut({orgId:i(),daggOfficeId:e})),Ke(()=>this.$brokerOptOuts.update(r=>r.filter(d=>d.daggOfficeId!==e))),k(()=>(this.helper.showErrorDialog(),N(null))),nc(()=>this.$officeIdBeingDeleted.set("")),ft(this.unsubscribe$)).subscribe();}getBrokerDaggOfficeOptOuts({sortColumnId:e=I.Address}={}){this.$loading.set(true);let{$orgId:o}=this,i=this.$areRowsAscending()?s$1.Ascending:s$1.Descending;this.adminOrgsApi.getBrokerDaggOfficeOptOuts({orgId:o(),sortColumnId:e,sortDirection:i}).pipe(k(()=>(this.helper.showErrorDialog(),N(null))),Ke(r=>{this.$brokerOptOuts.set(r),setTimeout(()=>this.$officeIdsAdded.set([]),2e3);}),nc(()=>this.$loading.set(false)),ft(this.unsubscribe$)).subscribe();}showBalloon(){this.$balloon().show();}hideBalloon(){this.$balloon().hide();}clearRprIds(){this.$rprIds().length&&this.$rprIds.set([]);}clearInvalidIds(){this.$invalidIds().length&&this.$invalidIds.set([]);}clearIds(){this.$pendingDaggOfficeIds.set([]),this.clearRprIds(),this.clearInvalidIds();}reverseRowsAreAscending(){this.$areRowsAscending.set(!this.$areRowsAscending());}resetRowsAreAscending(){this.$areRowsAscending.set(true);}static{this.\u0275fac=(()=>{let e;return function(i){return (e||(e=_t(t)))(i||t)}})();}static{this.\u0275cmp=It({type:t,selectors:[["rpr-admin-manage-org-broker-opt-out-system-messaging"]],viewQuery:function(o,i){o&1&&LR(i.$input,bo,5)(i.$balloon,ve,5),o&2&&Yz(2);},hostAttrs:[1,"admin-has-sortable-data"],inputs:{$savedOrg:[1,"savedOrg","$savedOrg"],$userCanManage:[1,"userCanManage","$userCanManage"]},features:[Ee],decls:30,vars:25,consts:[["input",""],[1,"margin-top-16","margin-bottom-16"],[1,"sort-column",3,"click"],[1,"is-flex"],[1,"fa-regular",3,"fa-chevron-up","fa-chevron-down"],[1,"sort-column","office-name",3,"click"],[1,"sort-column","date-added",3,"click"],[1,"is-flex","align-items-center","margin-top-16","margin-bottom-16"],[1,"control"],["type","text","maxlength","1000","placeholder","Enter DAGG Office ID(s)","data-lpignore","true","autocomplete","off",1,"input",3,"keydown.enter","formControl","rprDisableControl","rprResetInput"],[3,"toggled","targetElement","offsetTop","left","arrowLeft"],[1,"post-add-evaluation",3,"with-invalid-ids"],[1,"post-add-evaluation"],[1,"has-text-danger","has-text-weight-normal"],[1,"is-flex","align-items-center","ctas"],["type","button",1,"button","is-primary",3,"click","disabled"],[1,"bold","margin-bottom-16"],[1,"list-style-disc"],[1,"bold","margin-top-16","margin-bottom-16"],[1,"is-flex","confirm-ctas"],["type","button",1,"button","is-primary",3,"click"],["type","button",1,"button","is-text","is-text-alt",3,"click"],[1,"fa-regular"],[1,"is-italic"],[3,"added","deleting"],[1,"office-name"],[1,"date-added"],[1,"has-text-center","delete"],[1,"fa-light","fa-circle-xmark","hover-cursor-pointer","delete-icon",3,"click"],["colspan","4"],[1,"has-text-weight-normal","gray-500"]],template:function(o,i){if(o&1){let r=Uc();eA(0)(1)(2)(3),_i(4,Mo,17,18),mt(5,"table",1)(6,"thead"),eA(7),mt(8,"tr")(9,"th",2),gt("click",function(){ks(r);let g=wq(2);return Os(g&&i.sortById())}),mt(10,"p",3),$c(11," ID "),_i(12,So,1,4,"i",4),bt()(),mt(13,"th",5),gt("click",function(){ks(r);let g=wq(2);return Os(g&&i.sortByOfficeName())}),mt(14,"p",3),$c(15," Office Name "),_i(16,wo,1,4,"i",4),bt()(),mt(17,"th",2),gt("click",function(){ks(r);let g=wq(2);return Os(g&&i.sortByAddress())}),mt(18,"p",3),$c(19," Address "),_i(20,$o,1,4,"i",4),bt()(),mt(21,"th",6),gt("click",function(){ks(r);let g=wq(2);return Os(g&&i.sortByDateAdded())}),mt(22,"p",3),$c(23," Date Added "),_i(24,To,1,4,"i",4),bt()(),_i(25,Io,1,0,"th"),bt()(),mt(26,"tbody"),_i(27,Po,2,1)(28,Bo,5,1,"tr"),bt()(),_i(29,Fo,4,0,"p");}if(o&2){let r=Dq(i.$userCanManage());Ut();let d=Dq(i.$brokerOptOuts());Ut();let g=Dq(d?.length),f=i.$adding(),h=i.$officeIdBeingDeleted();Ut(),Dq(f||!!h),Ut(),bi(r?4:-1),Ut(),wt("sortable",g);let w=i.$activeSort();Ut(2),Dq(i.$areRowsAscending());let k=w===i.DaggOfficesSortColumnId.Id,B=w===i.DaggOfficesSortColumnId.OfficeName,$=w===i.DaggOfficesSortColumnId.Address,z=w===i.DaggOfficesSortColumnId.DateAdded;Ut(2),wt("active",k),Ut(3),bi(k?12:-1),Ut(),wt("active",B),Ut(3),bi(B?16:-1),Ut(),wt("active",$),Ut(3),bi($?20:-1),Ut(),wt("active",z),Ut
2(3),bi(z?24:-1),Ut(),bi(r&&g?25:-1),Ut(),wt("no-data",!g),Ut(),bi(g?27:28),Ut(2),bi(g?29:-1);}},dependencies:[ve,h$3,HTe,oL,RTe,lZ,xZ,E,n3],styles:["@keyframes _ngcontent-%COMP%_highlightFade{0%{background-color:#bbf6db}80%{background-color:#bbf6db}to{background-color:transparent}}section[_ngcontent-%COMP%]:not(.post-add-evaluation){column-gap:16px}section[_ngcontent-%COMP%]:not(.post-add-evaluation) > .control[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]:not(.post-add-evaluation) > .ctas[_ngcontent-%COMP%]{column-gap:8px}section[_ngcontent-%COMP%]:not(.post-add-evaluation)   .confirm-ctas[_ngcontent-%COMP%]{column-gap:16px}section[_ngcontent-%COMP%]:not(.post-add-evaluation)   .with-invalid-ids[_ngcontent-%COMP%]{padding-bottom:16px;border-bottom:1px solid rgb(218.7306069364,226.4283377374,235.5693930636);margin-bottom:10px}@media screen and (max-width:1201px){table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]:first-child{padding-left:8px}}@media screen and (max-width:1009px){table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{line-height:unset;padding-top:4px;padding-bottom:4px}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th.office-name[_ngcontent-%COMP%]{width:76px}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th.office-name[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{width:59px}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th.date-added[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{width:62px}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]:is(.office-name,.date-added) > p[_ngcontent-%COMP%]{align-items:baseline}}@media screen and (min-width:1010px){table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{align-items:center}}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr.added[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_highlightFade 2s ease forwards}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr.deleting[_ngcontent-%COMP%]{background-color:#f2b4a9}@media screen and (max-width:1009px){table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{font-size:11px}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.date-added[_ngcontent-%COMP%]{width:73px}}@media screen and (max-width:1201px){table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.office-name[_ngcontent-%COMP%]{white-space:normal;word-break:break-word}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{padding-left:8px}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{padding-right:8px}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.date-added[_ngcontent-%COMP%]{width:81px}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.date-added[_ngcontent-%COMP%] > time[_ngcontent-%COMP%]{flex-direction:column}}@media screen and (min-width:1202px){table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.delete[_ngcontent-%COMP%]{padding-right:8px}}"]});}}return t})();function Uo(t,m){if(t&1){let e=Uc();mt(0,"section",17),Eh(function(i){ks(e);let r=Mn$1();return Os(r.slideDownOnEnterAnimation(i))}),lw(function(i){ks(e);let r=Mn$1();return Os(r.slideUpOnLeaveAnimation(i))}),mt(1,"p",18)(2,"mat-checkbox",15),$c(3," Send Welcome Email "),bt(),Z2(),mt(4,"rpr-info-icon")(5,"p"),$c(6,"This will send a Welcome email, including an RPR description and the user's credentials, for each user created."),bt()()(),mt(7,"p",18)(8,"mat-checkbox",15),$c(9," Force Password Reset "),bt(),Z2(),mt(10,"rpr-info-icon")(11,"p"),$c(12," Force the user to change the password the first time they login, even over SSO. This is a security feature, since the password was sent via email. "),bt()()(),mt(13,"mat-checkbox",15),$c(14," Subscribe to Newsletter "),bt(),Z2(),mt(15,"div",20)(16,"rpr-admin-date-input",21),$c(17," Start Date: "),bt()()();}if(t&2){Mn$1();let e=wq(0),o=wq(2),i=wq(3);Ut(2),xn("formControlName","automaticOnBoardingSendEmail")("rprDisableControl",i),Q2(),Ut(6),xn("formControlName","automaticOnBoardingForcePasswordReset")("rprDisableControl",i),Q2(),Ut(5),xn("formControlName","automaticOnBoardingSubscribeNewsletter")("rprDisableControl",i),Q2(),Ut(3),xn("form",e)("frmControlName","automaticOnBoardingDate")("ctrlDisabled",i)("isFullWidth",false)("isReadOnly",o);}}function qo(t,m){if(t&1){let e=Uc();mt(0,"section",17),Eh(function(i){ks(e);let r=Mn$1();return Os(r.slideDownOnEnterAnimation(i))}),lw(function(i){ks(e);let r=Mn$1();return Os(r.slideUpOnLeaveAnimation(i))}),mt(1,"mat-checkbox",14),gt("change",function(i){ks(e);let r=Mn$1();return Os(r.handleShowingTimeAreListingsAvailableForShowingsChange(i))}),$c(2," ShowingTime allows online showings for listings from this MLS "),bt(),Z2(),mt(3,"mat-checkbox",15),$c(4," RPR has decided to only allow agents in this MLS to request online showings for listings from this MLS "),bt(),Z2(),bt();}if(t&2){let e=Mn$1(),o=wq(1),i=wq(3);Ut(),xn("formControlName","showingTimeAreListingsAvailableForShowings")("rprDisableControl",i),Q2(),Ut(2),xn("formControlName","showingTimeAreListingShowingsRestrictedToAgentsInThisMls")("rprDisableControl",e.$showingTimeAreListingShowingsRestrictedToAgentsInThisMlsDisabled()||o),Q2();}}var Ei=(()=>{class t extends xB{constructor(){super(...arguments),this.$form=Cm.required({alias:"form"}),this.$saving=Cm.required({alias:"saving"}
2),this.$userCanViewOnly=Cm.required({alias:"userCanViewOnly"}),this.$isRealtorAssistantAgentIdValidationRequiredDisabled=Q(false),this.$showingTimeAreListingShowingsRestrictedToAgentsInThisMlsDisabled=Q(false),this.$automaticallyCreateNewUsersNightlyCtrl=Et(()=>this.$formCtrls().isAutomaticOnBoarding),this.$enablingShowingTimeIntegrationCtrl=Et(()=>this.$formCtrls().showingTimeCanAgentsRequestShowings),this.slideDownOnEnterAnimation=h$2,this.slideUpOnLeaveAnimation=c,this.$formCtrls=Et(()=>this.$form().controls),this.$isRealtorAssistantAccessDisallowedCtrl=Et(()=>this.$formCtrls().isRealtorAssistantAccessDisallowed),this.$isRealtorAssistantAgentIdValidationRequiredCtrl=Et(()=>this.$formCtrls().isRealtorAssistantAgentIdValidationRequired),this.$automaticOnBoardingSendEmailCtrl=Et(()=>this.$formCtrls().automaticOnBoardingSendEmail),this.$automaticOnBoardingForcePasswordResetCtrl=Et(()=>this.$formCtrls().automaticOnBoardingForcePasswordReset),this.$automaticOnBoardingSubscribeNewsletterCtrl=Et(()=>this.$formCtrls().automaticOnBoardingSubscribeNewsletter),this.$showingTimeAreListingsAvailableForShowingsCtrl=Et(()=>this.$formCtrls().showingTimeAreListingsAvailableForShowings),this.$showingTimeAreListingShowingsRestrictedToAgentsInThisMlsCtrl=Et(()=>this.$formCtrls().showingTimeAreListingShowingsRestrictedToAgentsInThisMls),this.helper=h(ue);}ngOnChanges(){this.$saving()||(this.conditionallyDisableIsRealtorAssistantAgentIdValidationRequired(),this.$showingTimeAreListingShowingsRestrictedToAgentsInThisMlsCtrl().value&&this.changeShowingTimeAreListingShowingsRestrictedToAgentsInThisMlsDisabled(false));}ngOnInit(){this.conditionallyDisableIsRealtorAssistantAgentIdValidationRequired(),this.$showingTimeAreListingsAvailableForShowingsCtrl().value||this.changeShowingTimeAreListingShowingsRestrictedToAgentsInThisMlsDisabled(true);}enforceMinMax(e){let o=this.$form().get(e);if(o.value===null)return;let i=+o.value;i<1?o.setValue("1"):i>365&&o.setValue("365");}handleDisallowRealtorAssistantAccessChange({checked:e}){e?(this.$isRealtorAssistantAgentIdValidationRequiredCtrl().value&&this.$isRealtorAssistantAgentIdValidationRequiredCtrl().setValue(null),this.disableIsRealtorAssistantAgentIdValidationRequired()):this.$isRealtorAssistantAgentIdValidationRequiredDisabled.set(false);}handleAutomaticallyCreateNewUsersNightlyChange({checked:e}){e?(this.$automaticallyCreateNewUsersNightlyCtrl().setValue(false),this.helper.showConfirmDialog("Are you sure you want to enable automatic on-boarding?",`Enable this option only when approved by the MLS, when the agent
3				roster has NRDS IDs, and when the Org is not going through a remap.`).pipe(Ne(o=>o),Ke(()=>{this.$automaticallyCreateNewUsersNightlyCtrl().setValue(true),this.setAutomaticOnBoardingSendEmailValue(true),this.setAutomaticOnBoardingForcePasswordResetValue(true),this.setAutomaticOnBoardingSubscribeNewsletterValue(true);}),ft(this.unsubscribe$)).subscribe()):(this.setAutomaticOnBoardingSendEmailValue(false),this.setAutomaticOnBoardingForcePasswordResetValue(false),this.setAutomaticOnBoardingSubscribeNewsletterValue(false));}handleShowingTimeCanAgentsRequestShowingsChange({checked:e}){e||(this.$showingTimeAreListingsAvailableForShowingsCtrl().setValue(false),this.setShowingTimeAreListingShowingsRestrictedToAgentsInThisMlsValue(false),this.changeShowingTimeAreListingShowingsRestrictedToAgentsInThisMlsDisabled(true));}handleShowingTimeAreListingsAvailableForShowingsChange({checked:e}){e?this.changeShowingTimeAreListingShowingsRestrictedToAgentsInThisMlsDisabled(false):(this.$showingTimeAreListingShowingsRestrictedToAgentsInThisMlsCtrl().value&&this.setShowingTimeAreListingShowingsRestrictedToAgentsInThisMlsValue(null),this.changeShowingTimeAreListingShowingsRestrictedToAgentsInThisMlsDisabled(true));}disableIsRealtorAssistantAgentIdValidationRequired(){this.$isRealtorAssistantAgentIdValidationRequiredDisabled.set(true);}conditionallyDisableIsRealtorAssistantAgentIdValidationRequired(){this.$isRealtorAssistantAccessDisallowedCtrl().value&&this.disableIsRealtorAssistantAgentIdValidationRequired();}setAutomaticOnBoardingSendEmailValue(e){this.$automaticOnBoardingSendEmailCtrl().setValue(e);}setAutomaticOnBoardingForcePasswordResetValue(e){this.$automaticOnBoardingForcePasswordResetCtrl().setValue(e);}setAutomaticOnBoardingSubscribeNewsletterValue(e){this.$automaticOnBoardingSubscribeNewsletterCtrl().setValue(e);}setShowingTimeAreListingShowingsRestrictedToAgentsInThisMlsValue(e){this.$showingTimeAreListingShowingsRestrictedToAgentsInThisMlsCtrl().setValue(e);}changeShowingTimeAreListingShowingsRestrictedToAgentsInThisMlsDisabled(e){this.$showingTimeAreListingShowingsRestrictedToAgentsInThisMlsDisabled.set(e);}static{this.\u0275fac=(()=>{let e;return function(i){return (e||(e=_t(t)))(i||t)}})();}static{this.\u0275cmp=It({type:t,selectors:[["rpr-admin-manage-org-miscellaneous"]],inputs:{$form:[1,"form","$form"],$saving:[1,"saving","$saving"],$userCanViewOnl
3y:[1,"userCanViewOnly","$userCanViewOnly"]},features:[Ee,ct],decls:68,vars:63,consts:[["rememberMeDuration",""],["deviceUpdateDuration",""],[3,"formGroup"],[3,"form","frmControlName","maxlength","ctrlDisabled","isReadOnly"],[1,"is-flex","pair","margin-bottom-12"],[1,"is-flex","flex-column","flex-item-equal-width"],["for","remember-me-duration"],[1,"control"],["type","number","id","remember-me-duration","min","1","max","365","data-lpignore","true","autocomplete","off",3,"focus","input","readonly","rprNumericInput","rprResetInput","formControlName","rprDisableControl"],[3,"form","frmControlName","maxlength","ctrlDisabled","isEqualWidth","isReadOnly"],[1,"is-flex","flex-column","margin-bottom-12"],["for","device-update-duration"],["type","number","id","device-update-duration","min","1","max","365","data-lpignore","true","autocomplete","off",3,"focus","input","readonly","rprNumericInput","rprResetInput","formControlName","rprDisableControl"],[1,"is-flex","flex-column","checkboxes"],[3,"change","formControlName","rprDisableControl"],[3,"formControlName","rprDisableControl"],[3,"change","checked","formControlName","rprDisableControl"],[1,"is-flex","flex-column","margin-left-20","sub-checkboxes"],[1,"is-flex","align-items-center","checkbox-with-info-icon"],[1,"is-flex","flex-column"],[1,"field"],[3,"form","frmControlName","ctrlDisabled","isFullWidth","isReadOnly"]],template:function(o,i){if(o&1){let r=Uc();eA(0)(1)(2)(3),bC(4,2),mt(5,"rpr-admin-input",3),$c(6," Copyright Notice: "),bt(),mt(7,"section",4)(8,"section",5),eA(9),mt(10,"label",6),$c(11,"Remember Me Duration (in days):"),bt(),mt(12,"p",7)(13,"input",8,0),gt("focus",function(){ks(r);let g=CC(14);return Os(g.select())})("input",function(){ks(r);let g=wq(9);return Os(i.enforceMinMax(g))}),bt(),Z2(),bt()(),mt(15,"rpr-admin-input",9),$c(16," Checkbox Text: "),bt()(),mt(17,"section",10),eA(18),mt(19,"label",11),$c(20,"Device Update Duration (in days):"),bt(),mt(21,"p",7)(22,"input",12,1),gt("focus",function(){ks(r);let g=CC(23);return Os(g.select())})("input",function(){ks(r);let g=wq(18);return Os(i.enforceMinMax(g))}),bt(),Z2(),bt()(),mt(24,"section",13)(25,"mat-checkbox",14),gt("change",function(g){return i.handleDisallowRealtorAssistantAccessChange(g)}),$c(26," Disallow Realtor Assistant access "),bt(),Z2(),mt(27,"mat-checkbox",15),$c(28," Require Realtor Assistant Agent ID validation "),bt(),Z2(),mt(29,"mat-checkbox",15),$c(30," Show List Date "),bt(),Z2(),mt(31,"mat-checkbox",15),$c(32," Display living area from listing data "),bt(),Z2(),mt(33,"mat-checkbox",15),$c(34," Show List Date as Entry Date for Reports "),bt(),Z2(),mt(35,"mat-checkbox",16),gt("change",function(g){return i.handleAutomaticallyCreateNewUsersNightlyChange(g)}),$c(36," Automatically create new users nightly "),bt(),Z2(),_i(37,Uo,18,11,"section",17),mt(38,"mat-checkbox",15),$c(39," Disable Report Sharing "),bt(),Z2(),mt(40,"mat-checkbox",15),$c(41," Disable Lot Size Conversion to Sq Ft "),bt(),Z2(),mt(42,"p",18)(43,"mat-checkbox",14),gt("change",function(g){return i.handleShowingTimeCanAgentsRequestShowingsChange(g)}),$c(44," Enable the ShowingTime integration for agents in this MLS "),bt(),Z2(),mt(45,"rpr-info-icon")(46,"section",19)(47,"p"),$c(48,' The RPR system depends on the ShowingTime system to determine if a user is shown the "Request for ShowingTime" button on the property details page. RPR calls a ShowingTime API to make that decision. '),bt(),mt(49,"p"),$c(50," The settings that are available here determine whether the RPR system calls the ShowingTime API, not whether the user is shown the button. "),bt()()()(),_i(51,qo,5,4,"section",17),mt(52,"mat-checkbox",15),$c(53," AARP integration: suppress data and report element option on the website and mobile apps "),bt(),Z2(),mt(54,"mat-checkbox",15),$c(55," ClimateCheck: suppress Additional Resource button on the website and mobile apps "),bt(),Z2(),mt(56,"mat-checkbox",15),$c(57," First Street: suppress Additional Resource button on the website and mobile apps "),bt(),Z2(),mt(58,"mat-checkbox",15),$c(59," Rental Beast: suppress Additional Resource button on the website and mobile apps "),bt(),Z2(),mt(60,"mat-checkbox",15),$c(61," RentSpree: suppress Additional Resource button being viewable on the website and mobile apps "),bt(),Z2(),mt(62,"mat-checkbox",15),$c(63," Snaptimate: suppress Additional Resource button on the website and mobile apps "),bt(),Z2(),mt(64,"mat-checkbox",15),$c(65," Realtor.com: suppress link on User's Profile page on the website app (not available on mobile) "),bt(),Z2(),mt(66,"mat-checkbox",15),$c(67," NAR Dashboard: suppress the integration card on the website (not available on mobile) "),bt(),Z2(),bt(),DC();}if(o&2){let r=Dq(i.$form());Ut();let d=Dq(i.$saving());Ut();
3let g=Dq(i.$userCanViewOnly());Ut();let f=Dq(d||g);Ut(),xn("formGroup",r),Ut(),xn("form",r)("frmControlName","copyrightNotice")("maxlength","500")("ctrlDisabled",d)("isReadOnly",g),Ut(4);let h=Dq("stayLoggedInDurationInMinutes");Ut(4),xn("readonly",g)("formControlName",h)("rprDisableControl",d),Q2(),Ut(2),xn("form",r)("frmControlName","stayLoggedInDurationText")("maxlength","50")("ctrlDisabled",d)("isEqualWidth",true)("isReadOnly",g),Ut(3);let w=Dq("deviceUpdateDurationInDays");Ut(4),xn("readonly",g)("formControlName",w)("rprDisableControl",f),Q2(),Ut(3),xn("formControlName","isRealtorAssistantAccessDisallowed")("rprDisableControl",f),Q2(),Ut(2),xn("formControlName","isRealtorAssistantAgentIdValidationRequired")("rprDisableControl",i.$isRealtorAssistantAgentIdValidationRequiredDisabled()||f),Q2(),Ut(2),xn("formControlName","showListDate")("rprDisableControl",f),Q2(),Ut(2),xn("formControlName","showLivingArea")("rprDisableControl",f),Q2(),Ut(2),xn("formControlName","showListDateAsEntryDateForReports")("rprDisableControl",f),Q2();let k=i.$automaticallyCreateNewUsersNightlyCtrl().value;Ut(2),wt("automatically-creating-new-users-nightly",k),xn("checked",k)("formControlName","isAutomaticOnBoarding")("rprDisableControl",f),Q2(),Ut(2),bi(k?37:-1),Ut(),xn("formControlName","isReportSharingDisabled")("rprDisableControl",f),Q2(),Ut(2),xn("formControlName","isLotSizeConversionDisabled")("rprDisableControl",f),Q2(),Ut(3),xn("formControlName","showingTimeCanAgentsRequestShowings")("rprDisableControl",f),Q2(),Ut(8),bi(i.$enablingShowingTimeIntegrationCtrl().value?51:-1),Ut(),xn("formControlName","isAarpLivabilityIndexDisabled")("rprDisableControl",f),Q2(),Ut(2),xn("formControlName","isClimateCheckDisabled")("rprDisableControl",f),Q2(),Ut(2),xn("formControlName","isFirstStreetDisabled")("rprDisableControl",f),Q2(),Ut(2),xn("formControlName","isRentalBeastDisabled")("rprDisableControl",f),Q2(),Ut(2),xn("formControlName","isRentSpreeDisabled")("rprDisableControl",f),Q2(),Ut(2),xn("formControlName","isSnaptimateDisabled")("rprDisableControl",f),Q2(),Ut(2),xn("formControlName","isRealtorComConnectedAppDisabled")("rprDisableControl",f),Q2(),Ut(2),xn("formControlName","isNarMetroMarketStatisticsDisabled")("rprDisableControl",f),Q2();}},dependencies:[Ce,Oe,h$3,ie,rE,b,HTe,oL,EZ,RTe,ATe,sZ,iZ,OZ,NZ,E],styles:["[_nghost-%COMP%]{display:block;background-color:#fff;padding:15px 20px}input[type=number][_ngcontent-%COMP%]{width:100%}.checkboxes[_ngcontent-%COMP%], .sub-checkboxes[_ngcontent-%COMP%]{row-gap:8px}.checkbox-with-info-icon[_ngcontent-%COMP%]{column-gap:8px}.checkbox-with-info-icon[_ngcontent-%COMP%]   rpr-info-icon[_ngcontent-%COMP%]{margin-top:3px}.checkbox-with-info-icon[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{row-gap:16px}.automatically-creating-new-users-nightly[_ngcontent-%COMP%] + section[_ngcontent-%COMP%] + mat-checkbox[_ngcontent-%COMP%]{margin-top:-19px}@media screen and (max-width:1009px){rpr-admin-input[_ngcontent-%COMP%]     label{font-size:13px}label[_ngcontent-%COMP%]{font-size:13px}}"]});}}return t})();var Wo=(t,m)=>m.value;function Go(t,m){if(t&1){let e=Uc();mt(0,"mat-checkbox",21),gt("change",function(i){let r=ks(e).$implicit,d=Mn$1();return Os(d.handleShownTabChange(i,r.value))}),$c(1),bt();}if(t&2){let e=m.$implicit,o=Mn$1(),i=wq(3);xn("checked",o.$shownTabsCtrl().value.includes(e.value))("disabled",i),Ut(),SC(" ",e.description," ");}}function Zo(t,m){if(t&1){let e=Uc();mt(0,"rpr-admin-geographies",22),gt("deleteRequested",function(i){ks(e);let r=Mn$1();return Os(r.deleteGeographies(i))})("additionalStateRequested",function(){ks(e);let i=Mn$1();return Os(i.addPlaceholderGeographies())}),$c(1," Counties covered by Org: "),bt();}if(t&2){let e=m.$index,o=m.$index,i=m.$count,r=m.$count,d=Mn$1(),g=wq(0),f=wq(1),h=wq(2);xn("form",d.$hasGeographiesForm())("idx",e)("isLast",i>1?o===r-1:true)("entityType",d.EntityType.Org)("entityId",g?.orgId)("stateAbbreviationPlaceIdLookups",d.$stateAbbreviationPlaceIdLookups())("saving",f)("userCanViewOnly",h)("statePlaceIdsWithCoveredCounties",g?.statePlaceIdsWithCoveredCounties)("coveredCountyPlaceIds",g?.coveredCountyPlaceIds);}}var Vi=(()=>{class t{constructor(){this.$form=Cm.required({alias:"form"}),this.$statuses=Cm.required({alias:"statuses"}),this.$stateAbbreviationPlaceIdLookups=Cm.required({alias:"stateAbbreviationPlaceIdLookups"}),this.$accessOptions=Cm.required({alias:"accessOptions"}),this.$rprRegions=Cm.required({alias:"rprRegions"}),this.$geographies=Cm.required({alias:"geographies"}),this.$savedOrg=Cm.required({alias:"savedOrg"}),this.$submitted=Cm.required({alias:"submitted"}),this.$saving=Cm.required({alias:"saving"}),this.$errorMsg=Cm.required({alias:"errorMsg"}
3),this.$userCanViewOnly=Cm.required({alias:"userCanViewOnly"}),this.$shownTabsCtrl=Et(()=>this.$form().controls.shownTabs),this.$hasGeographiesForm=Et(()=>this.$form()),this.EntityType=ri;}handleShownTabChange({checked:e},o){let{$shownTabsCtrl:i}=this;e?i().setValue([...i().value,o]):i().setValue(i().value.filter(r=>r!==o)),this.markAsDirty();}deleteGeographies(e){this.$geographies().removeAt(e),this.markAsDirty();}addPlaceholderGeographies(){this.$geographies().push(D$1({statePlaceId:0})),this.markAsDirty();}markAsDirty(){setTimeout(()=>this.$form().markAsDirty(),101);}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=It({type:t,selectors:[["rpr-admin-manage-org-overview"]],inputs:{$form:[1,"form","$form"],$statuses:[1,"statuses","$statuses"],$stateAbbreviationPlaceIdLookups:[1,"stateAbbreviationPlaceIdLookups","$stateAbbreviationPlaceIdLookups"],$accessOptions:[1,"accessOptions","$accessOptions"],$rprRegions:[1,"rprRegions","$rprRegions"],$geographies:[1,"geographies","$geographies"],$savedOrg:[1,"savedOrg","$savedOrg"],$submitted:[1,"submitted","$submitted"],$saving:[1,"saving","$saving"],$errorMsg:[1,"errorMsg","$errorMsg"],$userCanViewOnly:[1,"userCanViewOnly","$userCanViewOnly"]},decls:49,vars:75,consts:[[3,"formGroup"],[3,"form","frmControlName","maxlength","ctrlDisabled","isFocused","isReadOnly","errorMsg"],[3,"form","frmControlName","maxlength","ctrlDisabled","isReadOnly"],[1,"is-flex","margin-bottom-12","pair"],[3,"form","frmControlName","maxlength","ctrlDisabled","hasBottomMargin","isEqualWidth","isReadOnly","errorMsg"],[3,"form","frmControlName","maxlength","ctrlDisabled","hasBottomMargin","isEqualWidth","isReadOnly"],[1,"flex-item-equal-width","field"],[3,"form","frmControlName","ctrlDisabled","isReadOnly"],[1,"status",3,"form","frmControlName","options","ctrlDisabled","selectWidth","hasBottomMargin","emptyOptionIncluded","submitted","errorMsg"],[1,"text-before-select"],[3,"form","frmControlName","options","ctrlDisabled","selectWidth","hasBottomMargin","marginBottomOverride"],[1,"is-flex","align-items-center","margin-bottom-20","type-of-feed"],[1,"is-flex","checkboxes"],[3,"formControlName","rprDisableControl"],[1,"is-flex","align-items-center","margin-bottom-20","with-access-to"],[1,"is-align-self-flex-start","nowrap"],[3,"checked","disabled"],[3,"form","type","frmControlName","maxlength","ctrlDisabled","isReadOnly"],[3,"form","frmControlName","options","ctrlDisabled","selectWidth","hasBottomMargin","marginBottomOverride","submitted","errorMsg"],[1,"is-flex","flex-column","geographies-grid"],[3,"form","idx","isLast","entityType","entityId","stateAbbreviationPlaceIdLookups","saving","userCanViewOnly","statePlaceIdsWithCoveredCounties","coveredCountyPlaceIds"],[3,"change","checked","disabled"],[3,"deleteRequested","additionalStateRequested","form","idx","isLast","entityType","entityId","stateAbbreviationPlaceIdLookups","saving","userCanViewOnly","statePlaceIdsWithCoveredCounties","coveredCountyPlaceIds"]],template:function(o,i){if(o&1&&(eA(0)(1)(2)(3),bC(4,0),mt(5,"rpr-admin-input",1),$c(6," Org Name: "),bt(),mt(7,"rpr-admin-input",2),$c(8," Short Name: "),bt(),mt(9,"section",3)(10,"rpr-admin-input",4),$c(11," Org ID: "),bt(),mt(12,"rpr-admin-input",5),$c(13," OUID: "),bt()(),mt(14,"section",3)(15,"p",6)(16,"rpr-admin-date-input",7),$c(17," Start Date: "),bt()(),mt(18,"p",6)(19,"rpr-admin-date-input",7),$c(20," Expiration Date: "),bt()()(),mt(21,"rpr-admin-dropdown",8),bC(22,9),$c(23," Status: "),DC(),bt(),mt(24,"rpr-admin-dropdown",10),bC(25,9),$c(26," State: "),DC(),bt(),mt(27,"section",11)(28,"label"),$c(29,"Type of Feed:"),bt(),mt(30,"p",12)(31,"mat-checkbox",13),$c(32,"Residential"),bt(),Z2(),mt(33,"mat-checkbox",13),$c(34,"Commercial"),bt(),Z2(),bt()(),mt(35,"section",14)(36,"label",15),$c(37,"With Access To:"),bt(),mt(38,"p",12),vd(39,Go,2,3,"mat-checkbox",16,Wo),bt()(),mt(41,"rpr-admin-input",17),$c(42," Website: "),bt(),mt(43,"rpr-admin-dropdown",18),bC(44,9),$c(45," RPR Region: "),DC(),bt(),mt(46,"section",19),vd(47,Zo,2,10,"rpr-admin-geographies",20,yd),bt(),DC()),o&2){let r=i.$form(),d=Dq(i.$savedOrg());Ut();let g=Dq(i.$saving()),f=i.$errorMsg();Ut();
3let h=Dq(i.$userCanViewOnly());Ut();let w=Dq(g||h);Ut(),xn("formGroup",r),Ut(),xn("form",r)("frmControlName","name")("maxlength","200")("ctrlDisabled",g)("isFocused",!d)("isReadOnly",h)("errorMsg",f),Ut(2),xn("form",r)("frmControlName","shortName")("maxlength","50")("ctrlDisabled",g)("isReadOnly",h),Ut(3),xn("form",r)("frmControlName","orgId")("maxlength","10")("ctrlDisabled",g)("hasBottomMargin",false)("isEqualWidth",true)("isReadOnly",!!d)("errorMsg",f),Ut(2),xn("form",r)("frmControlName","organizationUniqueId")("maxlength","10")("ctrlDisabled",g)("hasBottomMargin",false)("isEqualWidth",true)("isReadOnly",h),Ut(4),xn("form",r)("frmControlName","effectiveDate")("ctrlDisabled",g)("isReadOnly",h),Ut(3),xn("form",r)("frmControlName","expirationDate")("ctrlDisabled",g)("isReadOnly",h),Ut(2),xn("form",r)("frmControlName","statusId")("options",i.$statuses())("ctrlDisabled",w)("selectWidth","100%")("hasBottomMargin",true)("emptyOptionIncluded",true)("submitted",i.$submitted())("errorMsg",f),Ut(3),xn("form",r)("frmControlName","statePlaceId")("options",i.$stateAbbreviationPlaceIdLookups())("ctrlDisabled",w)("selectWidth","100%")("hasBottomMargin",true)("marginBottomOverride",20),Ut(7),xn("formControlName","hasResidentialFeed")("rprDisableControl",w),Q2(),Ut(2),xn("formControlName","hasCommercialFeed")("rprDisableControl",w),Q2(),Ut(6),_d(i.$accessOptions()),Ut(2),xn("form",r)("type","url")("frmControlName","websiteUrl")("maxlength","100")("ctrlDisabled",g)("isReadOnly",h),Ut(2),xn("form",r)("frmControlName","regionId")("options",i.$rprRegions())("ctrlDisabled",w)("selectWidth","100%")("hasBottomMargin",true)("marginBottomOverride",20)("submitted",i.$submitted())("errorMsg",f),Ut(4),_d(i.$geographies().controls);}},dependencies:[Ce,ye,Ze,Oe,h$3,rE,HTe,RTe,ATe,OZ,NZ],styles:[".counties-ui[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{column-gap:4px}.status[_ngcontent-%COMP%]{margin-top:-34px}.geographies-grid[_ngcontent-%COMP%]{row-gap:16px}"]});}}return t})();var Ho=(t,m)=>m.value;function zo(t,m){if(t&1&&(mt(0,"rpr-admin-dropdown",2),bC(1,3),$c(2),DC(),bt()),t&2){let e=m.$implicit,o=Mn$1(),i=o.$memberType()===o.MemberType.Realtor&&e.value===o.Securable.Rvms;wt("is-hidden",i),xn("form",o.$localForm())("frmControlName",o.getEnumName(o.Securable,e.value))("options",o.$permissionLevelLookups())("ctrlDisabled",o.$saving()||o.$userCanViewOnly()),Ut(2),SC(" ",e.description," ");}}var Bi=(()=>{class t extends xB{constructor(){super(...arguments),this.$form=Cm.required({alias:"form"}),this.$memberType=Cm.required({alias:"memberType"}),this.$securableLookups=Cm.required({alias:"securableLookups"}),this.$saving=Cm.required({alias:"saving"}),this.$userCanViewOnly=Cm.required({alias:"userCanViewOnly"}),this.$permissionLevelLookups=Q([]),this.$localForm=Et(()=>this.$form().controls.permissionLevels.get(ei(D$2,this.$memberType()))),this.MemberType=D$2,this.Securable=x,this.getEnumName=ei,this.adminOrgsApi=h(De),this.helper=h(ue);}ngOnInit(){let e=this.$memberType();this.adminOrgsApi.getPermissionLevelLookups({memberType:e}).pipe(k(()=>(this.helper.showErrorDialog(),N(null))),Ke(o=>this.$permissionLevelLookups.set(o)),ft(this.unsubscribe$)).subscribe();}static{this.\u0275fac=(()=>{let e;return function(i){return (e||(e=_t(t)))(i||t)}})();}static{this.\u0275cmp=It({type:t,selectors:[["rpr-admin-manage-org-permission-levels"]],inputs:{$form:[1,"form","$form"],$memberType:[1,"memberType","$memberType"],$securableLookups:[1,"securableLookups","$securableLookups"],$saving:[1,"saving","$saving"],$userCanViewOnly:[1,"userCanViewOnly","$userCanViewOnly"]},features:[Ee],decls:3,vars:0,consts:[[1,"is-flex","flex-column"],[3,"is-hidden","form","frmControlName","options","ctrlDisabled"],[3,"form","frmControlName","options","ctrlDisabled"],[1,"text-before-select"]],template:function(o,i){o&1&&(mt(0,"p",0),vd(1,zo,3,7,"rpr-admin-dropdown",1,Ho),bt()),o&2&&(Ut(),_d(i.$securableLookups()));},dependencies:[ye,HTe],styles:["p[_ngcontent-%COMP%]{row-gap:8px}"]});}}return t})();var Fi=(()=>{class t{constructor(){this.$form=Cm.required({alias:"form"}),this.$oldOrgIds=Cm.required({alias:"oldOrgIds"}),this.$orgAgentTypes=Cm.required({alias:"orgAgentTypes"}),this.$orgOfficeTypes=Cm.required({alias:"orgOfficeTypes"}),this.$orgTimeZones=Cm.required({alias:"orgTimeZones"}),this.$submitted=Cm.required({alias:"submitted"}),this.$saving=Cm.required({alias:"saving"}),this.$errorMsg=Cm.required({alias:"errorMsg"}
3),this.$userCanViewOnly=Cm.required({alias:"userCanViewOnly"});}updateValidation({checked:e}){let{reliOrgId:o,oldOrgId:i,reliAgentType:r,reliDerivedAgentType:d,reliOfficeType:g,reliTimeZone:f}=this.$form().controls,{required:h}=O1;e?(o.setValidators(h),i.setValidators(h),r.setValidators(h),d.setValidators(h),g.setValidators(h),f.setValidators(h)):(o.removeValidators(h),i.removeValidators(h),r.removeValidators(h),d.removeValidators(h),g.removeValidators(h),f.removeValidators(h)),o.updateValueAndValidity(),i.updateValueAndValidity(),r.updateValueAndValidity(),d.updateValueAndValidity(),g.updateValueAndValidity(),f.updateValueAndValidity();}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=It({type:t,selectors:[["rpr-admin-manage-org-reli"]],inputs:{$form:[1,"form","$form"],$oldOrgIds:[1,"oldOrgIds","$oldOrgIds"],$orgAgentTypes:[1,"orgAgentTypes","$orgAgentTypes"],$orgOfficeTypes:[1,"orgOfficeTypes","$orgOfficeTypes"],$orgTimeZones:[1,"orgTimeZones","$orgTimeZones"],$submitted:[1,"submitted","$submitted"],$saving:[1,"saving","$saving"],$errorMsg:[1,"errorMsg","$errorMsg"],$userCanViewOnly:[1,"userCanViewOnly","$userCanViewOnly"]},decls:27,vars:51,consts:[[3,"formGroup"],[1,"is-flex","align-items-baseline","margin-bottom-20","is-reli-enabled"],[3,"change","formControlName","rprDisableControl"],[1,"is-italic","has-text-weight-normal"],[1,"bold"],[1,"is-flex","margin-top-20","margin-bottom-10","pair"],[3,"form","frmControlName","maxlength","ctrlDisabled","isEqualWidth","errorMsg","isReadOnly"],[3,"form","frmControlName","options","ctrlDisabled","isEqualWidth","submitted","errorMsg"],[1,"text-before-select"],[3,"form","frmControlName","options","ctrlDisabled","selectWidth","hasBottomMargin","marginBottomOverride","submitted","errorMsg"],[3,"form","frmControlName","options","selectWidth","ctrlDisabled","submitted","errorMsg"]],template:function(o,i){if(o&1&&(bC(0,0),mt(1,"p",1)(2,"mat-checkbox",2),gt("change",function(d){return i.updateValidation(d)}),$c(3," RELI "),bt(),Z2(),mt(4,"small")(5,"strong",3),$c(6," (When checked, the system will use RELI specific logic to display listing information) "),bt()()(),mt(7,"h2",4),$c(8,"Mapping Fields"),bt(),mt(9,"section",5)(10,"rpr-admin-input",6),$c(11," RELI Org ID: "),bt(),mt(12,"rpr-admin-dropdown",7),bC(13,8),$c(14," Old Org ID: "),DC(),bt()(),mt(15,"rpr-admin-dropdown",9),bC(16,8),$c(17," Agent ID: "),DC(),bt(),mt(18,"rpr-admin-dropdown",9),bC(19,8),$c(20," Derived Agent ID: "),DC(),bt(),mt(21,"rpr-admin-dropdown",9),bC(22,8),$c(23," Office ID: "),DC(),bt(),mt(24,"rpr-admin-dropdown",10),bC(25,8),$c(26," Time Zone: "),DC(),bt(),DC()),o&2){let r=i.$form(),d=i.$submitted(),g=i.$saving(),f=i.$errorMsg(),h=i.$userCanViewOnly(),w=g||h;xn("formGroup",r),Ut(2),xn("formControlName","isReliEnabled")("rprDisableControl",w),Q2();let k=r.controls.isReliEnabled.value;Ut(8),xn("form",r)("frmControlName","reliOrgId")("maxlength","10")("ctrlDisabled",!k||g)("isEqualWidth",true)("errorMsg",f)("isReadOnly",h),Ut(2),xn("form",r)("frmControlName","oldOrgId")("options",i.$oldOrgIds())("ctrlDisabled",w)("isEqualWidth",true)("submitted",d)("errorMsg",f),Ut(3),xn("form",r)("frmControlName","reliAgentType")("options",i.$orgAgentTypes())("ctrlDisabled",w)("selectWidth","100%")("hasBottomMargin",true)("marginBottomOverride",20)("submitted",d)("errorMsg",f),Ut(3),xn("form",r)("frmControlName","reliDerivedAgentType")("options",i.$orgAgentTypes())("ctrlDisabled",w)("selectWidth","100%")("hasBottomMargin",true)("marginBottomOverride",20)("submitted",d)("errorMsg",f),Ut(3),xn("form",r)("frmControlName","reliOfficeType")("options",i.$orgOfficeTypes())("ctrlDisabled",w)("selectWidth","100%")("hasBottomMargin",true)("marginBottomOverride",20)("submitted",d)("errorMsg",f),Ut(3),xn("form",r)("frmControlName","reliTimeZone")("options",i.$orgTimeZones())("selectWidth","100%")("ctrlDisabled",w)("submitted",d)("errorMsg",f);}},dependencies:[ye,Oe,h$3,rE,HTe,RTe,ATe,OZ,NZ],styles:[".is-reli-enabled[_ngcontent-%COMP%]{column-gap:16px}.is-reli-enabled[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-size:14px}"]});}}return t})();var Ui=t=>[t],Ko=(t,m)=>m.value;function Yo(t,m){t&1&&Bn$1(0,"rpr-full-page-loading-indicator");}function jo(t,m){t&1&&Bn$1(0,"rpr-full-page-loading-indicator");}function Qo(t,m){if(t&1&&($c(0," Details for "),mt(1,"em",31),$c(2),bt()),t&2){Mn$1();let e=wq(0);Ut(2),bm(e.name);}}function Jo(t,m){t&1&&$c(0," Enter New Org Information... ");}function Xo(t,m){if(t&1&&($c(0," Last Updated: "),mt(1,"time"),Oq(2,"date"),$c(3),Oq(4,"date"),bt()),t&2){Mn$1();let e=wq(20);Ut(),Rt("datetime",Fq(2,2,e,"yyyy-MM-ddTHH:mm:ss")),Ut(2),SC(" ",Fq(4,5,e,"M/d/yyyy h:mm a")," ");}}function ea(t,m){t&1&&($c(0),Oq(1,"dashValue")),t&2&&SC(" Last Updated: ",Lq(1,1,"")," ");}function ta(t,m){}function ia(t,m){}function na(t,m){}function oa(t,m){if(t&1&&Bn$1(0,"rpr-admin-contacts",20),t&2){let e=m.$index,o=m.$index,i=m.$count,r=m.$count;Mn$1();let d=wq(3),g=wq(6),f=Mn$1();xn("form",f.hasContactsForm)("idx",e)("isLast",i>1?o===r-1:true)("contactTypesLookups",f.$contactTypesLookups())("stateAbbreviationLookups",f.$stateAbbreviationLookups())("phoneTypeLookups",f.$phoneTypeLookups())("faxTypeLookups",f.$faxTypeLookups())("emailTypeLookups",f.$emailTypeLookups())("saving",d)("userCanViewOnl
3y",g);}}function aa(t,m){if(t&1&&(mt(0,"rpr-collapsible-panel",16),Bn$1(1,"rpr-admin-manage-org-permission-levels",32),bt()),t&2){let e=m.$implicit;Mn$1();let o=wq(3),i=wq(6),r=Mn$1();xn("headingText",`Permission Levels for ${e.description}`)("collapsedStateKey",`cp_admin_manage-org_permission-levels-${e.value}`),Ut(),xn("form",r.form)("memberType",e.value)("securableLookups",r.$securableLookups())("saving",o)("userCanViewOnly",i);}}function ra(t,m){if(t&1){let e=Uc();mt(0,"rpr-collapsible-panel",16)(1,"rpr-admin-staff-users",33),$c(2," Shown are the Staff Users of this Org. "),bt()(),mt(3,"rpr-collapsible-panel",16)(4,"rpr-admin-service-user-accounts",34),gt("serviceUserAccountSaved",function(i){ks(e);let r=Mn$1(2);return Os(r.handleServiceUserChange(i))})("serviceUserAccountDeleted",function(i){ks(e);let r=Mn$1(2);return Os(r.handleServiceUserChange(i,{isSaved:false}))}),bt()();}if(t&2){Mn$1();let e=wq(0),o=wq(3),i=wq(5),r=Mn$1();xn("headingText","Staff Users")("collapsedStateKey","cp_admin_manage-org_staff-users"),Ut(),xn("form",r.hasStaffUsersForm)("userType",r.UserType.OrgStaff)("entityId",e.orgId)("usersPaging",e.usersPaging)("saving",o)("userCanManage",i)("isRealtorAssistantAccessDisallowed",e.isRealtorAssistantAccessDisallowed),Ut(2),xn("headingText","Service User Accounts")("collapsedStateKey","cp_admin_manage-org_service-user-accounts"),Ut(),xn("entityType",r.EntityType.Org)("savedItem",e)("saving",o)("userCanManage",i);}}function sa(t,m){if(t&1&&(mt(0,"rpr-collapsible-panel",16),Bn$1(1,"rpr-admin-manage-org-broker-opt-out-system-messaging",35),bt()),t&2){Mn$1();let e=wq(0),o=wq(5);xn("headingText","Broker Opt-Out System Messaging")("collapsedStateKey","cp_admin_manage-org_broker-opt-out-system-messaging"),Ut(),xn("savedOrg",e)("userCanManage",o);}}function la(t,m){}function da(t,m){}function ca(t,m){}function ma(t,m){if(t&1&&(mt(0,"button",37),$c(1," Save "),bt()),t&2){Mn$1(2);let e=wq(4);wt("cursor-not-allowed",e),xn("disabled",e);}}function ga(t,m){if(t&1&&_i(0,ma,2,3,"button",36),t&2){let e=Mn$1(2);bi(e.$userCanManage()?0:-1);}}function pa(t,m){if(t&1&&(mt(0,"a",38),$c(1),bt()),t&2){Mn$1();let e=wq(0),o=wq(4),i=Mn$1();wt("disabled",o)("cursor-not-allowed",o),xn("routerLink",Mq(7,Ui,i.buildAdminOrgsUrl()))("rprDisabledLink",o),Ut(),SC(" ",e?"Close":"Cancel"," ");}}function ua(t,m){if(t&1){let e=Uc();mt(0,"a",40),gt("click",function(i){ks(e),Mn$1(2);let r=wq(4),d=Mn$1();return Os(r?i.preventDefault():d.requestDelete())}),mt(1,"b"),$c(2,"Delete this Org"),bt(),Bn$1(3,"i",41),bt();}if(t&2){Mn$1(2);let e=wq(4);wt("disabled",e)("cursor-not-allowed",e);}}function fa(t,m){if(t&1&&_i(0,ua,4,4,"a",39),t&2){Mn$1();let e=wq(1);bi(e?0:-1);}}function ha(t,m){if(t&1&&(mt(0,"strong",42),Th("fade-out-animation"),Ih("fade-in-animation"),$c(1),bt()),t&2){let e=Mn$1().ctrl;Ut(),SC(" ",e.errors.message," ");}}function _a(t,m){if(t&1&&_i(0,ha,2,1,"strong",42),t&2){let e=m.ctrl;Mn$1();let o=wq(2);bi((e.touched||o)&&e.errors?0:-1);}}function Ca(t,m){if(t&1){let e=Uc();eA(0)(1)(2)(3)(4)(5)(6),_i(7,jo,1,0,"rpr-full-page-loading-indicator"),mt(8,"section",5)(9,"rpr-admin-page-header")(10,"h1"),_i(11,Qo,3,1)(12,Jo,1,0),bt(),mt(13,"a",6,0),Bn$1(15,"i",7),mt(16,"b"),$c(17),bt()()(),mt(18,"form",8),Ih("fade-in-animation"),gt("ngSubmit",function(){ks(e);let i=Mn$1();return Os(i.save())}),mt(19,"section",9),eA(20),mt(21,"p"),_i(22,Xo,5,8)(23,ea,2,3),bt(),mt(24,"p",10),Pc(25,ta,0,0,"ng-template",11)(26,ia,0,0,"ng-template",11)(27,na,0,0,"ng-template",11),bt()(),mt(28,"section",12)(29,"section",13)(30,"section",14),Bn$1(31,"rpr-admin-manage-org-overview",15),mt(32,"rpr-collapsible-panel",16),Bn$1(33,"rpr-admin-manage-org-reli",17),bt(),mt(34,"rpr-collapsible-panel",16),Bn$1(35,"rpr-admin-manage-org-alias-names",18),bt(),mt(36,"rpr-collapsible-panel",16),Bn$1(37,"rpr-admin-manage-org-associations-info",19),bt(),mt(38,"rpr-collapsible-panel",16),vd(39,oa,1,10,"rpr-admin-contacts",20,yd),bt(),mt(41,"rpr-collapsible-panel",16),Bn$1(42,"rpr-admin-industry-relations-contact",21),bt(),vd(43,aa,2,7,"rpr-collapsible-panel",16,Ko),mt(45,"rpr-collapsible-panel",16)(46,"rpr-admin-org-relationships",22),$c(47," Orgs this Org shares data with. "),bt()(),_i(48,ra,5,15),_i(49,sa,2,4,"rpr-collapsible-panel",16),Bn$1(50,"rpr-admin-manage-org-miscellaneous",23),bt()(),mt(51,"section",24)(52,"section",14)(53,"rpr-collapsible-panel",16)(54,"rpr-admin-links",25),gt("ssoConfigured",function(i){ks(e);let r=Mn$1();return Os(r.handleConfiguringOfSso(i))})("orgCloned",function(i){ks(e);let r=Mn$1();return Os(r.handleCloningOfOrg(i))})("orgRenameToolRan",function(){ks(e);let i=Mn$1();return Os(i.handleRunningOfRenameOrgTool())}),bt()(),mt(55,"rpr-collapsible-panel",16)(56,"rpr-admin-chart-service",26),gt("chartServiceSettingsSaved",function(i){ks(e);let r=Mn$1();return Os(r.handleSavingOfChartServiceSettings(i))}),bt()(),mt(57,"rpr-collapsible-panel",16)(58,"rpr-admin-token",27),bC(59,28),$c(60," Chart "),DC(),bt()(),mt(61,"rpr-collapsible-panel",16),Bn$1(62,"rpr-admin-editing-history",29),bt(),mt(63,"rpr-collapsible-panel",16),Bn$1(64,"rpr-admin-editing-history",29),bt()()()(),mt(65,"p",30),Pc(66,la,0,0,"ng-template",11)(67,da,0,0,"ng-template",11)(68,ca,0,0,"ng-template",11),bt()()(),Pc(69,ga,1,1,"ng-template",null,1,jq)(71,pa,2,9,"
3ng-template",null,2,jq)(73,fa,1,1,"ng-template",null,3,jq)(75,_a,1,1,"ng-template",null,4,jq);}if(t&2){let e=CC(70),o=CC(72),i=CC(74),r=CC(76),d=Mn$1(),g=Dq(d.$savedItem());Ut(),Dq(g?.canDelete),Ut();let f=Dq(d.$submitted());Ut();let h=Dq(d.$saving());Ut();let w=Dq(h||d.$deleting());Ut();let k=Dq(d.$userCanManage());Ut();let B=Dq(!k);Ut(),bi(w?7:-1),Ut(4),bi(g?11:12),Ut(2),wt("disabled",w)("cursor-not-allowed",w),xn("routerLink",Mq(114,Ui,d.buildAdminOrgsUrl()))("rprDisabledLink",w),Ut(4),bm(d.adminHelper.$memoizedOrgsSearchCriteria()?"Back to Search Results":"Go to Search"),Ut(),xn("formGroup",d.form),Ut(2);let $=Dq(g?.lastModifiedDateTime);Ut(),wt("is-flex",$)("last-updated",$),Ut(),bi($?22:23),Ut(3),xn("ngTemplateOutlet",e),Ut(),xn("ngTemplateOutlet",o),Ut(),xn("ngTemplateOutlet",i),Ut(4),xn("form",d.form)("statuses",d.$statuses())("stateAbbreviationPlaceIdLookups",d.$stateAbbreviationPlaceIdLookups())("accessOptions",d.$accessOptions())("rprRegions",d.$rprRegions())("geographies",d.geographies)("savedOrg",g)("submitted",f)("saving",h)("errorMsg",r)("userCanViewOnly",B),Ut(),xn("headingText","RELI")("collapsedStateKey","cp_admin_manage-org_reli"),Ut(),xn("form",d.form)("oldOrgIds",d.$oldOrgIds())("orgAgentTypes",d.$orgAgentTypes())("orgOfficeTypes",d.$orgOfficeTypes())("orgTimeZones",d.$orgTimeZones())("submitted",f)("saving",h)("errorMsg",r)("userCanViewOnly",B),Ut(),xn("headingText","Alias Names")("collapsedStateKey","cp_admin_manage-org_alias-names"),Ut(),xn("form",d.form)("saving",h)("userCanManage",k),Ut(),xn("headingText","Associations Info")("collapsedStateKey","cp_admin_manage-org_associations-info"),Ut(),xn("form",d.form)("associationLookups",g?.associationLookups)("saving",h),Ut(),xn("headingText","Contacts")("collapsedStateKey","cp_admin_manage-org_contacts"),Ut(),_d(d.contacts.controls),Ut(2),xn("headingText","Association & MLS Services Contact for this Org")("collapsedStateKey","cp_admin_manage-org_association-mls-services-contact-for-org"),Ut(),xn("usersByStaffList",d.$usersByStaffList())("saving",h)("userCanViewOnly",B)("frmControlName","industryRelationsUserName")("industryRelationsUserNameForm",d.hasIndustryRelationsUserNameForm),Ut(),_d(d.$memberTypeLookups()),Ut(2),xn("headingText","Data Sharing Orgs")("collapsedStateKey","cp_admin_manage-org_data-sharing-orgs"),Ut(),xn("form",d.sharingDataWithOrgs)("permissionLevels",g?.permissionLevels||d.$defaultPermissionLevels())("orgStateLookups",d.$orgStateLookups())("statePlaceId",g?.statePlaceId)("saving",h)("userCanManage",k),Ut(2),bi(g?48:-1),Ut(),bi(g?49:-1),Ut(),xn("form",d.form)("saving",h)("userCanViewOnly",B),Ut(3),xn("headingText","Links")("collapsedStateKey","cp_admin_manage-org_links"),Ut(),xn("entityId",g?.orgId)("entityType",d.EntityType.Org)("savedItem",g)("dataToolsPath",d.ORGS)("agentsEnabled",true)("testDataEnabled",true)("coBrandEnabled",true)("realtorAssistantsEnabled",true)("singleSignOnEnabled",true)("dashboardEnabled",true)("toolsEnabled",true)("userCanManage",k),Ut(),xn("headingText","Chart Service")("collapsedStateKey","cp_admin_manage-org_chart-service"),Ut(),xn("entityType",d.EntityType.Org)("savedItem",g),Ut(),xn("headingText","Chart Token")("collapsedStateKey","cp_admin_manage-org_chart-token"),Ut(),xn("savedItem",g)("saving",h)("userCanManage",k),Ut(3),xn("headingText","Editing History")("collapsedStateKey","cp_admin_manage-org_editing-history"),Ut(),xn("entries",g?.auditEntries)("limit",10),Ut(),xn("headingText","Permission Levels Editing History")("collapsedStateKey","cp_admin_manage-org_permission-levels-editing-history"),Ut(),xn("entries",g?.permissionLevelAuditEntries)("limit",5),Ut(2),xn("ngTemplateOutlet",e),Ut(),xn("ngTemplateOutlet",o),Ut(),xn("ngTemplateOutlet",i);}}var _l=(()=>{class t extends H{constructor(){super(...arguments),this.$userCanManage=Q(false),this.$statuses=Q([]),this.$stateAbbreviationPlaceIdLookups=Q([]),this.$accessOptions=Q([]),this.$rprRegions=Q([]),this.$oldOrgIds=Q([]),this.$orgAgentTypes=Q([]),this.$orgOfficeTypes=Q([]),this.$orgTimeZones=Q([]),this.$contactTypesLookups=Q([]),this.$stateAbbreviationLookups=Q([]),this.$ph
3oneTypeLookups=Q([]),this.$faxTypeLookups=Q([]),this.$emailTypeLookups=Q([]),this.$usersByStaffList=Q([]),this.$memberTypeLookups=Q([]),this.$securableLookups=Q([]),this.$defaultPermissionLevels=Q({}),this.$orgStateLookups=Q([]),this.$savedItem=Q(null),this.$submitted=Q(false),this.$saving=Q(false),this.$deleting=Q(false),this.ORGS=WX,this.EntityType=ri,this.UserType=t$1,this.buildAdminOrgsUrl=eK,this.adminHelper=h(j),this.helper=h(ue),this.route=h(Ii),this.routerHelper=h(B),this.adminOrgsApi=h(De),this.adminMiscApi=h(cr),this.adminUsersApi=h(Xe),this.usersApi=h(N_),this.location=h(wi),this.title=h(EN),this.fb=h(PL);}ngOnInit(){this.confirmLeaving=true,this.$userCanManage.set(this.helper.user?.hasAccessToAny(e$1.ManageOrgs)),this.readParamMap();}save(){if(this.$submitted.set(true),this.form.invalid)return;this.$submitted.set(false),this.$saving.set(true);let e=this.$savedItem()?.orgId,o=this.buildOrg(),{orgId:i,name:r}=o;this.adminOrgsApi.saveOrg({originalOrgId:e,org:o}).pipe(Ke(d=>{d.status===ot.DuplicateOrgId&&this.helper.showErrorDialog(null,"An Org with the same Org ID already exists.");}),Ne(d=>!!d.org),Ke(({org:d})=>{location.href.includes(i)||this.location.go(uje(i)),this.setPageTitle(r),this.$savedItem.set(d),this.form.markAsPristine(),this.helper.showToastMessage({message:"Org saved"});}),k(()=>(this.helper.showErrorDialog(),N(null))),nc(()=>this.$saving.set(false)),ft(this.unsubscribe$)).subscribe();}handleServiceUserChange(e,{isSaved:o=true}={}){this.$savedItem.update(i=>new D(s(r$1({},i),{serviceUsers:this.adminHelper.refreshServiceUsers(e,i.serviceUsers,{isSaved:o})})));}handleSavingOfChartServiceSettings(e){this.$savedItem().chartServiceSettingsId!==e&&this.$savedItem.update(o=>new D(s(r$1({},o),{chartServiceSettingsId:e}))),this.adminHelper.showChartServiceSettingsSavedMessage();}handleConfiguringOfSso(e){this.$savedItem().ssoIdentityProviderId!==e&&this.$savedItem.update(o=>new D(s(r$1({},o),{ssoIdentityProviderId:e}))),this.helper.showToastMessage({message:"Single Sign On (SSO) config saved"});}handleCloningOfOrg(e){this.form.controls.orgId.setValue(e),this.$savedItem.update(o=>new D(s(r$1({},o),{orgId:e}))),this.helper.showToastMessage({message:"Org cloned"});}handleRunningOfRenameOrgTool(){this.helper.showToastMessage({message:"Rename Org Tool Ran Successfully!"});}requestDelete(){let{name:e,orgId:o}=this.$savedItem();this.helper.showConfirmDialog(`Are you sure you want to <em class="has-text-danger">delete</em>
4			<strong class="gray-700">${e}</strong>?`,null).pipe(Ne(i=>i),Ke(()=>this.$deleting.set(true)),en(()=>this.adminOrgsApi.deleteOrg({orgId:o})),Ne(i=>i===ot.Success),Ke(()=>this.routerHelper.navigateByUrl(eK())),k(()=>(this.$deleting.set(false),this.helper.showErrorDialog(),N(null))),ft(this.unsubscribe$)).subscribe();}readParamMap(){this.route.paramMap.pipe(T(e=>e.get("orgId")),Ke(e=>this.getData(e)),ft(this.unsubscribe$)).subscribe();}getData(e){let o=e||this.route.snapshot.paramMap.get("orgId");this.$loading.set(true),vu({defaultOrg:this.$userCanManage()&&!o?this.adminOrgsApi.getDefaultOrg():N(null),statusLookups:this.adminOrgsApi.getOrgStatusLookups({includeDefaultChoice:false}),stateAbbreviationPlaceIdLookups:this.adminMiscApi.getStateAbbreviationPlaceIdLookups(),shownTabs:this.adminMiscApi.getAdminShownTabs({entityType:ri.Org}),rprRegions:this.adminMiscApi.getRegions({includeNationalRegion:false}),oldOrgIds:this.adminOrgsApi.getOldOrgLookups(),orgAgentTypes:this.adminOrgsApi.getReliOrgAgentTypes(),orgOfficeTypes:this.adminOrgsApi.getReliOrgOfficeTypes(),orgTimeZones:this.adminOrgsApi.getReliOrgTimeZones(),contactTypesLookups:this.adminMiscApi.getContactTypesLookups(),profilePageLookups:this.usersApi.getProfilePageLookups(),usersByStaffList:this.adminUsersApi.getUsersByStaffListType({staffListType:$.IndustryRelationsStaff}),memberTypeLookups:this.adminOrgsApi.getMemberTypeLookups({includeDefaultChoice:false}),securableLookups:this.adminOrgsApi.getSecurableLookups({includeDefaultChoice:false}),orgStateLookups:this.usersApi.getOrgStateLookups(),savedItem:o?this.adminOrgsApi.getOrgNew({orgId:o}):N(null)}).pipe(Ke(i=>{this.$statuses.set(i.statusLookups),this.$stateAbbreviationPlaceIdLookups.set(i.stateAbbreviationPlaceIdLookups.filter(d=>d.value)),this.$accessOptions.set(i.shownTabs),this.$rprRegions.set(i.rprRegions),this.$oldOrgIds.set(i.oldOrgIds),this.$orgAgentTypes.set(i.orgAgentTypes),this.$orgOfficeTypes.set(i.orgOfficeTypes),this.$orgTimeZones.set(i.orgTimeZones),this.$contactTypesLookups.set(i.contactTypesLookups),this.$stateAbbreviationLookups.set(i.profilePageLookups.stateAbbreviationLookups),this.$ph
4oneTypeLookups.set(i.profilePageLookups.phoneTypeLookups),this.$faxTypeLookups.set(i.profilePageLookups.faxTypeLookups),this.$emailTypeLookups.set(i.profilePageLookups.emailTypeLookups),this.$usersByStaffList.set(i.usersByStaffList),this.$memberTypeLookups.set(i.memberTypeLookups),this.$securableLookups.set(i.securableLookups),this.$defaultPermissionLevels.set(i.defaultOrg?.permissionLevels),this.$orgStateLookups.set(i.orgStateLookups);let r=i.savedItem;r&&this.setPageTitle(r.name),this.$savedItem.set(r),this.initForm(r),this.$loading.set(false);}),k(()=>(o?this.routerHelper.navigateByUrl(eK()):this.helper.showErrorDialog(),N(null))),ft(this.unsubscribe$)).subscribe();}initForm(e){let o=e?.statePlaceIdsWithCoveredCounties?.length?e.statePlaceIdsWithCoveredCounties.map($=>D$1({statePlaceId:$})):[D$1({statePlaceId:0})],i$1=this.$orgAgentTypes().find($=>$.description===e?.reliAgentType)?.value||null,r=this.$orgAgentTypes().find($=>$.description===e?.reliDerivedAgentType)?.value||null,d=this.$orgOfficeTypes().find($=>$.description===e?.reliOfficeType)?.value||null,g=this.$orgTimeZones().find($=>$.description===e?.reliTimeZone)?.value||null,f=e?.contacts?.length?e.contacts.reduce(($,z)=>($.push(h$1({item:z})),$),this.fb.array([])):this.fb.array([h$1()]),h=this.$usersByStaffList().find($=>$.value===e?.industryRelationsUserName)&&e?.industryRelationsUserName||null,w=e?.sharingDataWithOrgs?.length?e.sharingDataWithOrgs.reduce(($,z)=>{let{orgId:we,name:xe,shareActiveListings:ge,shareInactiveListings:at,shareConfidentialFields:rt}=z;return $.push(L({orgId:we,name:xe,shareActiveListings:ge,shareInactiveListings:at,shareConfidentialFields:rt})),$},this.fb.array([])):this.fb.array([]),k=e?.usersNew?.length?e.usersNew.reduce(($,z)=>($.push(A(z)),$),this.fb.array([])):this.fb.array([]),{required:B}=O1;this.form=this.fb.group({name:this.fb.control(e?.name||"",B),shortName:this.fb.control(e?.shortName||null),orgId:this.fb.control(e?.orgId||"",B),organizationUniqueId:this.fb.control(e?.organizationUniqueId||""),effectiveDate:this.fb.control(e?.effectiveDate?k1(e.effectiveDate):null),expirationDate:this.fb.control(e?.expirationDate?k1(e.expirationDate):null),statusId:this.fb.control(e?.statusId||i.Live,B),statePlaceId:this.fb.control(e?.statePlaceId||this.$stateAbbreviationPlaceIdLookups().at(0)?.value),hasResidentialFeed:this.fb.control(l$1(e?.hasResidentialFeed)?e.hasResidentialFeed:true),hasCommercialFeed:this.fb.control(l$1(e?.hasCommercialFeed)?e.hasCommercialFeed:false),shownTabs:this.fb.control(e?.shownTabs||[]),websiteUrl:this.fb.control(e?.websiteUrl||""),regionId:this.fb.control(e?.regionId||null,B),geographies:this.fb.array(o),isReliEnabled:this.fb.control(l$1(e?.isReliEnabled)?e.isReliEnabled:false),reliOrgId:this.fb.control(e?.reliOrgId||""),oldOrgId:this.fb.control(e?.oldOrgId||""),reliAgentType:this.fb.control(i$1),reliDerivedAgentType:this.fb.control(r),reliOfficeType:this.fb.control(d),reliTimeZone:this.fb.control(g),aliasNames:this.fb.control(e?.aliasNames||[]),contacts:f,industryRelationsUserName:this.fb.control(h),permissionLevels:this.fb.group({}),sharingDataWithOrgs:w,usersNew:k,copyrightNotice:this.fb.control(e?.copyrightNotice||""),stayLoggedInDurationInMinutes:this.fb.control(e?.stayLoggedInDurationInMinutes?e.stayLoggedInDurationInMinutes.toString():""),stayLoggedInDurationText:this.fb.control(e?.stayLoggedInDurationText||""),deviceUpdateDurationInDays:this.fb.control(e?.deviceUpdateDurationInDays?e.deviceUpdateDurationInDays.toString():""),isRealtorAssistantAccessDisallowed:this.fb.control(l$1(e?.isRealtorAssistantAccessDisallowed)?e.isRealtorAssistantAccessDisallowed:false),isRealtorAssistantAgentIdValidationRequired:this.fb.control(l$1(e?.isRealtorAssistantAgentIdValidationRequired)?e.isRealtorAssistantAgentIdValidationRequired:false),showListDate:this.fb.control(l$1(e?.showListDate)?e.showListDate:true),showLivingArea:this.fb.control(l$1(e?.showLivingArea)?e.showLivingArea:true),showListDateAsEntryDateForReports:this.fb.control(l$1(e?.showListDateAsEntryDateForReports)?e?.showListDateAsEntryDateForReports:false),isAutomaticOnBoarding:this.fb.control(l$1(e?.isAutomaticOnBoarding)?e?.isAutomaticOnBoarding:false),automaticOnBoardingSendEmail:this.fb.control(l$1(e?.automaticOnBoardingSendEmail)?e?.automaticOnBoardingSendEmail:false),automaticOnBoardingForcePasswordReset:this.fb.control(l$1(e?.automaticOnBoardingForcePasswordReset)?e?.automaticOnBoardingForcePasswordReset:false),automaticOnBoardingSubscribeNewsletter:this.fb.control(l$1(e?.automaticOnBoardingSubscribeNewsletter)?e?.automaticOnBoardingSubscribeNewsletter:false),automaticOnBoardingDate:this.fb.control(l$1(e?.automaticOnBoardingDate)?k1(e?.automaticOnBoardingDate):null),isReportSharingDisabled:this.fb.control(l$1(e?.isReportSharingDisabled)?e?.isReportSharingDisabled:false),isLotSizeConversionDisabled:this.fb.control(l$1(e?.isLotSizeConversionDisabled)?e?.isLotSizeConversionDisabled:false),showingTimeC
4anAgentsRequestShowings:this.fb.control(l$1(e?.showingTimeCanAgentsRequestShowings)?e?.showingTimeCanAgentsRequestShowings:false),showingTimeAreListingsAvailableForShowings:this.fb.control(l$1(e?.showingTimeAreListingsAvailableForShowings)?e?.showingTimeAreListingsAvailableForShowings:false),showingTimeAreListingShowingsRestrictedToAgentsInThisMls:this.fb.control(l$1(e?.showingTimeAreListingShowingsRestrictedToAgentsInThisMls)?e?.showingTimeAreListingShowingsRestrictedToAgentsInThisMls:false),isAarpLivabilityIndexDisabled:this.fb.control(l$1(e?.isAarpLivabilityIndexDisabled)?e?.isAarpLivabilityIndexDisabled:false),isClimateCheckDisabled:this.fb.control(l$1(e?.isClimateCheckDisabled)?e?.isClimateCheckDisabled:false),isFirstStreetDisabled:this.fb.control(l$1(e?.isFirstStreetDisabled)?e?.isFirstStreetDisabled:false),isRentalBeastDisabled:this.fb.control(l$1(e?.isRentalBeastDisabled)?e?.isRentalBeastDisabled:false),isRentSpreeDisabled:this.fb.control(l$1(e?.isRentSpreeDisabled)?e?.isRentSpreeDisabled:false),isSnaptimateDisabled:this.fb.control(l$1(e?.isSnaptimateDisabled)?e?.isSnaptimateDisabled:false),isRealtorComConnectedAppDisabled:this.fb.control(l$1(e?.isRealtorComConnectedAppDisabled)?e?.isRealtorComConnectedAppDisabled:false),isNarMetroMarketStatisticsDisabled:this.fb.control(l$1(e?.isNarMetroMarketStatisticsDisabled)?e?.isNarMetroMarketStatisticsDisabled:false)}),this.geographies=this.form.controls.geographies,this.contacts=this.form.controls.contacts,this.hasContactsForm=this.form,this.hasIndustryRelationsUserNameForm=this.form,this.sharingDataWithOrgs=this.form.controls.sharingDataWithOrgs,this.hasStaffUsersForm=this.form,this.setPermissionLevels(e?.permissionLevels);}setPageTitle(e){this.title.getTitle().includes(e)||this.title.setTitle(`Admin - Orgs - ${e}`);}setPermissionLevels(e){let o="PublicRecords";this.$memberTypeLookups()?.forEach(({value:i})=>{let r=this.fb.group({}),d=ei(D$2,i);this.$securableLookups().forEach(({value:g})=>{let f=i===D$2.Realtor&&[x.InactiveListings,x.Rvms].includes(g)?k$1.AssociatedWithOrgOrDataSharingOrg:k$1.None,h=ei(x,g);r.addControl(h,this.fb.control(e?.[d]?.[h]||f));}),r.addControl(o,this.fb.control(e?.[d]?.[o]||k$1.None)),this.form.controls.permissionLevels.addControl(ei(D$2,i),r);});}buildOrg(){let{name:e,shortName:o,orgId:i,organizationUniqueId:r,effectiveDate:d$1,expirationDate:g,statusId:f,statePlaceId:h,hasResidentialFeed:w,hasCommercialFeed:k,shownTabs:B,websiteUrl:$,regionId:z}=this.form.value,we=p1e(d$1),xe=p1e(g),ge=this.geographies.value.filter(K=>!!K.statePlaceId).map(K=>K.statePlaceId),at=this.geographies.value.flatMap(K=>K.counties),{isReliEnabled:rt,reliOrgId:qi,oldOrgId:Wi,reliAgentType:gt,reliDerivedAgentType:pt,reliOfficeType:ut,reliTimeZone:ft}=this.form.value,Gi=gt?this.$orgAgentTypes().find(({value:K})=>K===gt).description:null,Zi=pt?this.$orgAgentTypes().find(({value:K})=>K===pt).description:null,Hi=ut?this.$orgOfficeTypes().find(({value:K})=>K===ut).description:null,zi=ft?this.$orgTimeZones().find(({value:K})=>K===ft).description:null,{aliasNames:Ki}=this.form.value,Yi=this.contacts.value.map(({firstName:K,lastName:Ln,title:kn,contactTypeId:Rn,address:Nn,phones:Pn,faxes:En,emails:Vn})=>new cu({firstName:K,lastName:Ln,title:kn,contactTypeId:Rn,address:new nn(Nn),phones:Pn.map(Pe=>new us(Pe)),faxes:En.map(Pe=>new ls(Pe)),emails:Vn.map(Pe=>new cs(Pe))})),{industryRelationsUserName:ji}=this.form.value,{permissionLevels:Qi}=this.form.value,{sharingDataWithOrgs:Ji}=this.form.value,Xi=Ji.map(K=>new d(K)),{copyrightNotice:en,stayLoggedInDurationInMinutes:tn,stayLoggedInDurationText:nn$1,deviceUpdateDurationInDays:on,isRealtorAssistantAccessDisallowed:an,isRealtorAssistantAgentIdValidationRequired:rn,showListDate:sn,showLivingArea:ln,showListDateAsEntryDateForReports:dn,isAutomaticOnBoarding:cn,automaticOnBoardingSendEmail:mn,automaticOnBoardingForcePasswordReset:gn,automaticOnBoardingSubscribeNewsletter:pn,automaticOnBoardingDate:un,isReportSharingDisabled:fn,isLotSizeConversionDisabled:hn,showingTimeCanAgentsRequestShowings:_n,showingTimeAreListingsAvailableForShowings:Cn,showingTimeAreListingShowingsRestrictedToAgentsInThisMls:bn,isAarpLivabilityIndexDisabled:vn,isCl
4imateCheckDisabled:On,isFirstStreetDisabled:xn,isRentalBeastDisabled:yn,isRentSpreeDisabled:An,isSnaptimateDisabled:Dn,isRealtorComConnectedAppDisabled:Mn,isNarMetroMarketStatisticsDisabled:Sn}=this.form.value,wn=ZP(tn),$n=ZP(on),Tn=p1e(un),In=this.$savedItem()?.ssoIdentityProviderId;return new D({name:e,shortName:o,orgId:i,organizationUniqueId:r,effectiveDate:we,expirationDate:xe,statusId:f,statePlaceId:h,hasResidentialFeed:w,hasCommercialFeed:k,shownTabs:B,websiteUrl:$,regionId:z,statePlaceIdsWithCoveredCounties:ge,coveredCountyPlaceIds:at,isReliEnabled:rt,reliOrgId:qi,oldOrgId:Wi,reliAgentType:Gi,reliDerivedAgentType:Zi,reliOfficeType:Hi,reliTimeZone:zi,aliasNames:Ki,contacts:Yi,industryRelationsUserName:ji,permissionLevels:Qi,sharingDataWithOrgs:Xi,copyrightNotice:en,stayLoggedInDurationInMinutes:wn,stayLoggedInDurationText:nn$1,deviceUpdateDurationInDays:$n,isRealtorAssistantAccessDisallowed:an,isRealtorAssistantAgentIdValidationRequired:rn,showListDate:sn,showLivingArea:ln,showListDateAsEntryDateForReports:dn,isAutomaticOnBoarding:cn,automaticOnBoardingSendEmail:mn,automaticOnBoardingForcePasswordReset:gn,automaticOnBoardingSubscribeNewsletter:pn,automaticOnBoardingDate:Tn,isReportSharingDisabled:fn,isLotSizeConversionDisabled:hn,showingTimeCanAgentsRequestShowings:_n,showingTimeAreListingsAvailableForShowings:Cn,showingTimeAreListingShowingsRestrictedToAgentsInThisMls:bn,isAarpLivabilityIndexDisabled:vn,isCl
4imateCheckDisabled:On,isFirstStreetDisabled:xn,isRentalBeastDisabled:yn,isRentSpreeDisabled:An,isSnaptimateDisabled:Dn,isRealtorComConnectedAppDisabled:Mn,isNarMetroMarketStatisticsDisabled:Sn,ssoIdentityProviderId:In})}static{this.\u0275fac=(()=>{let e;return function(i){return (e||(e=_t(t)))(i||t)}})();}static{this.\u0275cmp=It({type:t,selectors:[["rpr-admin-manage-org"]],hostVars:6,hostBindings:function(o,i){o&2&&wt("admin-manage-entity",true)("has-admin-table",true)("admin-has-number-input",true);},features:[Ee],decls:2,vars:1,consts:[["ctaIncluded",""],["submitBtn",""],["goToOrgsSearch",""],["deleteOrg",""],["errorMsg",""],[1,"container"],[1,"nowrap","admin-fa-cta",3,"routerLink","rprDisabledLink"],[1,"fa-regular","fa-chevron-left"],["rprFocusInvalidInput","",1,"form-with-last-updated",3,"ngSubmit","formGroup"],[1,"is-flex","align-items-center","justify-content-between"],[1,"is-flex","align-items-center","non-floating-ctas"],[3,"ngTemplateOutlet"],[1,"columns","is-multiline-is-mobile","margin-top-10"],[1,"column","is-two-thirds-fullhd","is-two-thirds-widescreen","is-three-fifths-desktop"],[1,"column-content","cards"],[1,"is-block","margin-bottom-20","overview",3,"form","statuses","stateAbbreviationPlaceIdLookups","accessOptions","rprRegions","geographies","savedOrg","submitted","saving","errorMsg","userCanViewOnly"],[3,"headingText","collapsedStateKey"],[3,"form","oldOrgIds","orgAgentTypes","orgOfficeTypes","orgTimeZones","submitted","saving","errorMsg","userCanViewOnly"],[3,"form","saving","userCanManage"],[3,"form","associationLookups","saving"],[3,"form","idx","isLast","contactTypesLookups","stateAbbreviationLookups","phoneTypeLookups","faxTypeLookups","emailTypeLookups","saving","userCanViewOnly"],[3,"usersByStaffList","saving","userCanViewOnly","frmControlName","industryRelationsUserNameForm"],[3,"form","permissionLevels","orgStateLookups","statePlaceId","saving","userCanManage"],[3,"form","saving","userCanViewOnly"],[1,"column","sidebar-column"],[3,"ssoConfigured","orgCloned","orgRenameToolRan","entityId","entityType","savedItem","dataToolsPath","agentsEnabled","testDataEnabled","coBrandEnabled","realtorAssistantsEnabled","singleSignOnEnabled","dashboardEnabled","toolsEnabled","userCanManage"],[3,"chartServiceSettingsSaved","entityType","savedItem"],[3,"savedItem","saving","userCanManage"],[1,"token-type"],[3,"entries","limit"],[1,"is-flex","align-items-center","floating-ctas"],[1,"has-text-weight-normal","red-500"],[3,"form","memberType","securableLookups","saving","userCanViewOnly"],[3,"form","userType","entityId","usersPaging","saving","userCanManage","isRealtorAssistantAccessDisallowed"],[3,"serviceUserAccountSaved","serviceUserAccountDeleted","entityType","savedItem","saving","userCanManage"],[3,"savedOrg","userCanManage"],["type","submit",1,"button","is-primary",3,"cursor-not-allowed","disabled"],["type","submit",1,"button","is-primary",3,"disabled"],[1,"button","is-text","is-text-alt",3,"routerLink","rprDisabledLink"],[1,"button","is-text","is-text-alt","has-text-danger","admin-fa-cta",3,"disabled","cursor-not-allowed"],[1,"button","is-text","is-text-alt","has-text-danger","admin-fa-cta",3,"click"],[1,"fa-regular","fa-chevron-right"],[1,"has-text-danger","has-text-weight-normal"]],template:function(o,i){o&1&&_i(0,Yo,1,0,"rpr-full-page-loading-indicator")(1,Ca,77,116),o&2&&bi(i.$loading()?0:1);},dependencies:[Mn,Je,W,O,Xn$1,ki,Ri,Pi,Ei,Vi,Bi,Fi,oe,j$1,Gi,yt,we,Cn,k$2,v,C,eS,HTe,PTe,ATe,OZ,Cl,o$1,n3],styles:["body:not(.window-scrolled-to-bottom)[_nghost-%COMP%]   .floating-ctas[_ngcontent-%COMP%], body:not(.window-scrolled-to-bottom)   [_nghost-%COMP%]   .floating-ctas[_ngcontent-%COMP%]{background-color:#fff9;box-shadow:0 0 16px 32px #fff9}[_nghost-%COMP%]   .floating-ctas[_ngcontent-%COMP%]{margin-top:-8px}"]});}}return t})();export{_l as AdminManageOrg};

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.