PageSourceSearch

https://eigentyds.nl/1066.e04fbc4d37421516.js

js eigentyds.nl collected 2026-10-08 04:29:41 UTC 40,642 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[1066],{79777(B,y,n){n.d(y,{t:()=>j,z:()=>I});var r=n(85802),s=n(59882),T=n(36027),a=n(23994),M=n(99437),E=n(96354),P=n(25558),D=n(19037),i=n(84572),e=n(7673);const j=L=>{const G=(0,r.WQX)(T.r),W=(0,r.WQX)(D.s),N=(0,r.WQX)(a.T);return G.getOutboundRule({id:L.params.id}).pipe((0,P.n)(g=>{const S=g.Routes?.map(h=>h.TrunkId).filter(h=>null!=h&&h>0),u=S&&S?.length>0?"Id in ("+S.map(h=>`'${h}'`).join(", ")+")":void 0;return(0,i.z)([(0,e.of)(g),u?N.listTrunk({$select:["Id","Gateway"],$filter:u}):(0,e.of)(null)])}),(0,E.T)(([g,S])=>({...g,Routes:g.Routes?.map(u=>({...u,Trunk:S?.value?.find(h=>h.Id===u.TrunkId)??null}))??[]})),(0,M.W)(g=>W.handleError(g)))},I=()=>(0,r.WQX)(s.Ix).currentNavigation()?.extras.state?.rule},53879(B,y,n){n.d(y,{k:()=>E});var r=n(85802),s=n(67469),T=n(99437),a=n(96354),M=n(19037);const E=()=>{const P=(0,r.WQX)(s.G),D=(0,r.WQX)(M.s);return P.listGroup({$select:["Id","Name","Number"],$filter:"not startsWith(Name, '___FAVORITES___')",$orderby:["Name"]}).pipe((0,a.T)(i=>i.value??[]),(0,T.W)(i=>D.handleError(i)))}},42123(B,y,n){n.d(y,{O:()=>re});var r=n(17705),s=n(85802),T=n(59882),a=n(68018),M=n(89417),E=n(36027),P=n(99437),D=n(25558),i=n(7673),e=n(18810),j=n(983),I=n(50560),L=n(41029),G=n(45054),W=n(31899),N=n(89079),g=n(24708),S=n(84460),u=n(66300),h=n(95604),f=n(96106),_=n(45501),C=n(49769),x=n(6130),A=n(51280),t=n(35547);const K=m=>({number:m});function Q(m,$){1&m&&(t.EFF(0),t.nI1(1,"translate")),2&m&&t.JRh(t.bMT(1,1,"_i18n.OutboundRuleExists"))}function Z(m,$){if(1&m&&(t.EFF(0),t.nI1(1,"translate")),2&m){const p=t.XpG();t.JRh(t.bMT(1,1,p.isEmergency?"_i18n.XapiInvalid":"_i18n.OutboundInvalidRange"))}}function X(m,$){1&m&&(t.EFF(0),t.nI1(1,"translate")),2&m&&t.JRh(t.bMT(1,1,"_i18n.OutboundLengthInvalid"))}function w(m,$){1&m&&(t.j41(0,"field-input",10)(1,"val-errors",23),t.DNE(2,X,2,3,"ng-template",7),t.k0s()())}function q(m,$){1&m&&(t.EFF(0),t.nI1(1,"translate")),2&m&&t.JRh(t.bMT(1,1,"_i18n.GroupRequired"))}function ee(m,$){1&m&&(t.j41(0,"p",16),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.JRh(t.bMT(2,1,"_i18n.SectionBlocked")))}function te(m,$){if(1&m&&t.nrm(0,"app-trunk-select",28),2&m){const p=t.XpG().$index,R=t.XpG();t.Y8G("id",t.VkB("trunk-",p))("isClearable",!R.isEmergency||0!==p)("isNew",R.isNew)}}function ne(m,$){if(1&m&&t.EFF(0),2&m){const p=t.XpG().$index,R=t.XpG();t.SpI(" ",R.pbxRule.Routes[p].TrunkName," ")}}function oe(m,$){1&m&&(t.EFF(0),t.nI1(1,"translate")),2&m&&t.JRh(t.bMT(1,1,"_i18n.OutboundCallerIdInvalid"))}function se(m,$){1&m&&(t.EFF(0),t.nI1(1,"translate")),2&m&&t.JRh(t.bMT(1,1,"_i18n.NumberContainsStarCode"))}function ie(m,$){if(1&m&&(t.j41(0,"div",22)(1,"div",24)(2,"span",25),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",26)(6,"label",27),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.nVh(9,te,1,4,"app-trunk-select",28)(10,ne,1,1),t.nrm(11,"val-errors",29),t.k0s(),t.j41(12,"div",26)(13,"label",27),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"field-select",30),t.nrm(17,"val-errors",31),t.k0s()(),t.j41(18,"div",32)(19,"label",27),t.EFF(20),t.nI1(21,"translate"),t.k0s(),t.nrm(22,"field-input",33),t.k0s(),t.j41(23,"div",34)(24,"label",27),t.EFF(25),t.nI1(26,"translate"),t.k0s(),t.j41(27,"field-input",35)(28,"val-errors",36),t.DNE(29,oe,2,3,"ng-template",37)(30,se,2,3,"ng-template",38),t.k0s()()()()),2&m){const p=$.$implicit,R=$.$index,v=t.XpG();t.Y8G("formGroup",p),t.R7$(3),t.JRh(t.i5U(4,24,"_i18n.RouteNumberTabTitle",t.eq3(36,K,R+1))),t.R7$(3),t.Y8G("for",t.VkB("trunk-",R)),t.R7$(),t.JRh(t.i5U(8,27,"_i18n.RouteNumberTabTitle",t.eq3(38,K,R+1))),t.R7$(2),t.vxM(p.enabled?9:10),t.R7$(4),t.Y8G("for",t.VkB("digit-route-",R)),t.R7$(),t.JRh(t.bMT(15,30,"_i18n.StripDigits")),t.R7$(2),t.Y8G("id",t.VkB("digit-route-",R))("options",v.stripDigitOptions),t.R7$(3),t.Y8G("for",t.VkB("rule-prepend-",R)),t.R7$(),t.JRh(t.bMT(21,32,"_i18n.Prepend")),t.R7$(2),t.Y8G("id",t.VkB("rule-prepend-",R))("maxlength",50),t.R7$(2),t.Y8G("for",t.VkB("rule-caller-id-",R)),t.R7$(),t.JRh(t.bMT(26,34,"_i18n.OutboundCallerID")),t.R7$(2),t.Y8G("id",t.VkB("rule-caller-id-",R))("maxlength",50)}}let re=(()=>{class m{route=(0,s.WQX)(T.nX);router=(0,s.WQX)(T.Ix);outboundRulesApiService=(0,s.WQX)(E.r);cd=(0,s.WQX)(r.gRc);destroy$=(0,s.WQX)(s.abz);fb=(0,s.WQX)(M.ok);translate=(0,s.WQX)(a.c$);pbxRule;id;isNew;isEmergency;isSystemAdmin;groupItems;form;myPhoneParams=r.hFB.required();stripDigitOptions=[{value:0,label:"_i18n.StripNoDigits"},...[1,2,3,4,5,6,7,8,9].map(p=>({value:p,label:this.translate.instant("_i18n.StripTheFirstNDigits",{digit:p})}))];constructor(){this.route.data.pipe((0,N.pQ)(this.destroy$)).subscribe(v=>{this.initOutboundRule(v)})}initOutboundRule(p){this.isNew=p.isNew,this.isEmergency=p.emergency,this.isSystemAdmin=p.isSystemAdmin,this.groupItems=p.groupItems,this.pbxRule=p.rule??null,this.id=this.pbxRule?.Id,this.form=(0,I.W8)(this.fb,this.pbxRule,this.isEmergency),this.isSystemAdmin||this.f.FromToExt.disable(),this.pbxRule?.Routes?.some(R=>R.TrunkName&&!R.Trunk)&&this.f.Routes.disable(),this.cd.markForCheck()}navigateBack(){return this.router.navigate([this.isNew?"..":"../.."],{relativeTo:this.route})}get f(){return this.form.controls}get groups(){return this.f.GroupIds.value}static extractInvalidDnRanges(p,R){if((0,L.JC)(p)){const V=p.error.error.details?.map(Y=>{const H=Y.target?.match(/DNRanges\[(\d+)]\.(From|To)/);return H?Number(H[1]):void 0}).filter(Y=>void 0!==Y);if(V&&V.length>0)return(0,I.vw)((0,I.Li)(R).filter((Y,H)=>V.includes(H)))}return""}handleSaveError(p){const R=m.extractInvalidDnRanges(p,this.f.FromToExt.value);return!!R&&(this.f.FromToExt.setErrors({invalidDnRanges:R}),this.f.FromToExt.markAsTouched(),this.cd.markForCheck(),!0)}save$=()=>{const p=this.form.value,R=null!=p.FromToExt?(0,I.Li)(p.FromToExt):void 0,v={Name:p.Name,Prefix:p.Prefix,DNRanges:R,NumberLengthRanges:this.isEmergency?p.Prefix?.length?.toString():p.NumberLengthRanges,Routes:p.Routes?(0,I.D6)(p.Routes):void 0,GroupIds:p.GroupIds,EmergencyRule:this.isEmergency};return(this.isNew?this.outboundRulesApiService.createOutboundRule({pbxOutboundRule:v}):this.id?this.outboundRulesApiService.updateOutboundRule({id:this.id,pbxOutboundRule:v}).pipe((0,f.Pr)(this.isEmergency?"_i18n.EmergencyNumberNotFoundEditErrorMessage":"_i18n.OutboundRuleNotFoundEditErrorMessage")):(0,i.of)(void 0)).pipe((0,D.n)(()=>this.navigateBack()),(0,P.W)(V=>this.handleSaveError(V)?j.w:(0,e.$)(()=>V)))};static \u0275fac=function(R){return new(R||m)};
1static \u0275cmp=t.VBU({type:m,selectors:[["app-outbound-rules-add-edit"]],inputs:{myPhoneParams:[1,"myPhoneParams"]},decls:48,vars:40,consts:[[3,"back","header","helpUrl","formGroup","isNewEntity","save$"],[1,"row"],["formControlName","Name","data-qa","rule-name","label","_i18n.RuleName",1,"col-12",3,"maxlength"],["controlName","Name","label","_i18n.Name"],["formControlName","Prefix","data-qa","rule-prefix",1,"col-md-4",3,"label","description"],["controlName","Prefix"],["valError","duplicate"],["valError","invalid"],["data-qa","rule-from-ext","label","_i18n.CallsFromExtensions",1,"col-md-4",3,"description"],["formControlName","FromToExt",3,"enl","searchType"],["formControlName","NumberLengthRanges","data-qa","rule-length","label","_i18n.CallsNumbersWithLengthOf","description","_i18n.CallsNumbersWithLengthOfDescription",1,"col-md-4"],["placeholder","_i18n.SelectGroupsPlaceholder",3,"label","formControl","groups"],["controlName","GroupIds"],["valError","required"],["data-qa","routes"],["data-qa","make-outbound-calls-description"],[1,"text-error","mb-2"],[1,"d-flex","flex-column","gap-3"],[1,"row","d-none","d-lg-flex","justify-content-start","align-items-center"],[1,"col-lg-1"],[1,"col-lg-3"],[1,"col-lg-2"],[1,"row","d-flex","align-items-baseline","justify-content-start",3,"formGroup"],["controlName","NumberLengthRanges"],[1,"col-lg-1","col-md-12","d-none","d-lg-block"],[1,"py-2","text-nowrap"],[1,"col-lg-3","col-md-12","mb-3","mb-lg-0","align-self-start"],[1,"d-lg-none",3,"for"],["formControlName","Trunk",1,"mb-0",3,"id","isClearable","isNew"],["controlName","Trunk"],["formControlName","StripDigits","data-qa","digit-route",1,"mb-0",3,"id","options"],["controlName","StripDigits"],[1,"col-lg-2","col-md-12","mb-3","mb-lg-0"],["data-qa","rule-prepend","formControlName","Prepend",1,"mb-0",3,"id","maxlength"],[1,"col-lg-3","col-md-12","mb-3","mb-lg-0"],["data-qa","rule-caller-id","formControlName","CallerID",1,"mb-0",3,"id","maxlength"],["controlName","CallerID"],["valError","didIsInvalid"],["valError","starCodeError"]],template:function(R,v){1&R&&(t.j41(0,"edit-panel",0),t.nI1(1,"translate"),t.bIt("back",function(){return v.navigateBack()}),t.j41(2,"fieldset")(3,"div",1)(4,"field-input",2),t.nrm(5,"val-errors",3),t.k0s(),t.j41(6,"field-input",4)(7,"val-errors",5),t.DNE(8,Q,2,3,"ng-template",6)(9,Z,2,3,"ng-template",7),t.k0s()(),t.j41(10,"field-wrapper",8),t.nI1(11,"enlExample"),t.nI1(12,"async"),t.nrm(13,"app-phone-select",9),t.k0s(),t.nVh(14,w,3,0,"field-input",10),t.k0s()(),t.j41(15,"fieldset")(16,"legend"),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"app-departments-select",11)(20,"val-errors",12),t.DNE(21,q,2,3,"ng-template",13),t.k0s()()(),t.j41(22,"fieldset",14)(23,"legend"),t.EFF(24),t.nI1(25,"translate"),t.k0s(),t.j41(26,"p",15),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.nVh(29,ee,3,3,"p",16),t.j41(30,"div",17)(31,"div",18),t.nrm(32,"div",19)(33,"div",20),t.j41(34,"div",20)(35,"span"),t.EFF(36),t.nI1(37,"translate"),t.k0s()(),t.j41(38,"div",21)(39,"span"),t.EFF(40),t.nI1(41,"translate"),t.k0s()(),t.j41(42,"div",20)(43,"span"),t.EFF(44),t.nI1(45,"translate"),t.k0s()()(),t.Z7z(46,ie,31,40,"div",22,t.fX1),t.k0s()()()),2&R&&(t.Y8G("header",v.isNew?v.isEmergency?"_i18n.EmergencyNumberAdd":"_i18n.AddOutboundRule":t.bMT(1,22,"_i18n.Edit")+(null!=v.pbxRule&&v.pbxRule.Name?": "+(null==v.pbxRule?null:v.pbxRule.Name):""))("helpUrl",v.isEmergency?"_i18n.EmergencyEditorUri":"_i18n.OutboundCallRoutingUri")("formGroup",v.form)("isNewEntity",v.isNew)("save$",v.save$),t.R7$(4),t.Y8G("maxlength",50),t.R7$(2),t.Y8G("label",v.isEmergency?"_i18n.EmergencyNumber":"_i18n.CallsNumbersStartingWithPrefix")("description",v.isEmergency?"_i18n.EmergencyNumberDescription":"_i18n.CallsNumbersStartingWithPrefixDescription"),t.R7$(4),t.Y8G("description",t.bMT(12,26,t.bMT(11,24,"_i18n.CallsFromExtensionsDescription"))),t.R7$(3),t.Y8G("enl",v.myPhoneParams().ENL)("searchType","extensions"),t.R7$(),t.vxM(v.isEmergency?-1:14),t.R7$(3),t.JRh(t.bMT(18,28,"_i18n.CallsFromTheseDepartments")),t.R7$(2),t.Y8G("label",v.isEmergency?"_i18n.CallsFromTheseDepartmentsEmergencyRuleDescription":"_i18n.CallsFromTheseDepartmentsOutboundRuleDescription")("formControl",v.f.GroupIds)("groups",v.groupItems),t.R7$(5),t.JRh(t.bMT(25,30,"_i18n.MakeOutboundCallsOn")),t.R7$(3),t.JRh(t.bMT(28,32,"_i18n.MakeOutboundCallsOnDescription")),t.R7$(2),t.vxM(v.f.Routes.disabled?29:-1),t.R7$(7),t.JRh(t.bMT(37,34,"_i18n.StripDigits")),t.R7$(4),t.JRh(t.bMT(41,36,"_i18n.Prepend")),t.R7$(4),t.JRh(t.bMT(45,38,"_i18n.OutboundCallerID")),t.R7$(2),t.Dyx(null==v.f.Routes?null:v.f.Routes.controls))},dependencies:[M.X1,M.BC,M.cb,M.tU,M.l_,M.j4,M.JD,g.N4,g.IH,g.VI,S.m,u.q,G.Q,W.w,_.N,h.z,A.W,a.D9,x.C,C.Jj],styles:[".groups-table[_ngcontent-%COMP%]{max-height:230px;overflow-y:auto}.groups-table.emergency[_ngcontent-%COMP%]{max-height:200px}tr.error[_ngcontent-%COMP%]{background-color:#e05b4a33}"],changeDetection:0})}return m})()},91105(B,y,n){n.d(y,{x:()=>Oe});var r=n(10467),s=n(85802),T=n(17705),a=n(89417),M=n(49769),E=n(68018),P=n(36027),D=n(97201),i=n(4499),e=n(35547);let j=(()=>{class c extends i.d{getEmergencyNotificationsSettings(o,d="body"){const l=o?.$select,b=o?.$expand;let O=new D.rx(this.encoder);O=this.addToHttpParams(O,"$select",l,D.l2.Form,!1),O=this.addToHttpParams(O,"$expand",b,D.l2.Form,!1);let k=this.defaultHeaders;k=this.configuration.addCredentialToHeaders("Application","Authorization",k,"Bearer ");const F=this.configuration.selectHeaderAccept(["application/json"]);void 0!==F&&(k=k.set("Accept",F));let J="json";F&&(J=F.startsWith("text")?"text":this.configuration.isJsonMime(F)?"json":"blob");const{basePath:de,withCredentials:z}=this.configuration;return this.httpClient.request("get",`${de}/EmergencyNotificationsSettings`,{params:O.toHttpParams(),responseType:J,...z?{withCredentials:z}:{},headers:k,observe:d})}getEmergencyNotificationsSettingsQuery(o,d="body",l=!1,b){const O=o.$select,k=o.$expand;let F=new D.rx(this.encoder);return F=this.addToHttpParams(F,"$select",O,D.l2.Form,!1),F=this.addToHttpParams(F,"$expand",k,D.l2.Form,!1),"/EmergencyNotificationsSettings?"+F.toString()}updateEmergencyNotificationsSettings(o,d="body"){const l=o?.pbxEmergencyNotificationsSettings;let b=this.defaultHeaders;b=this.configuration.addCredentialToHeaders("Application","Authorization",b,"Bearer ");const O=this.configuration.selectHeaderAccept(["application/json"]);void 0!==O&&(b=b.set("Accept",O));const F=this.configuration.selectHeaderContentType(["application/json"]);void 0!==F&&(b=b.set("Content-Type",F));let J="json";O&&(J=O.startsWith("text")?"text":this.configuration.isJsonMime(O)?"json":"blob");const{basePath:de,withCredentials:z}=this.configuration;return this.httpClient.request("patch",`${de}/EmergencyNotificationsSettings`,{body:l,responseType:J,...z?{withCredentials:z}:{},headers:b,observe:d})}updateEmergencyNotificationsSettingsQuery(o,d="body",l=!1,b){return"/EmergencyNotificationsSettings"}static \u0275fac=(()=>{let o;return function(l){return(o||(o=e.xGo(c)))(l||c)}})();static \u0275prov=s.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();var I=n(59882),L=n(93049),G=n(38601),W=n(84412),N=n(25558),g=n(96354),S=n(38357);let u=(()=>{class c{route=(0,s.WQX)(I.nX);outboundRulesApiService=(0,s.WQX)(P.r);dataFetcher=(o,d)=>l=>l.pipe((0,N.n)(b=>this.requestOutboundRules(o,b,d)),(0,g.T)(b=>b.value??[]));requestOutboundRules(o,d,l){const b=(0,S.Y)((o.search??"").trim(),!0),O={$skip:d*l,$top:l,$select:["Name","Id","Routes","Priority","NumberLengthRanges","GroupIds","GroupNames","Prefix","DNRanges","Priority"],...b?{$filter:`contains(tolower(Name), '${b}')`}:{},$orderby:["Priority"]};
1return this.route.snapshot.data.emergency?this.outboundRulesApiService.getEmergencyOutboundRules(O):this.outboundRulesApiService.listOutboundRule(O)}static \u0275fac=function(d){return new(d||c)};static \u0275prov=s.jDH({token:c,factory:c.\u0275fac})}return c})();var h=n(79997),f=n(70152),_=n(23294),C=n(22972),x=n(56998);var t=n(86745),K=n(40953),Q=n(61851),Z=n(59053),X=n(89079),w=n(24708),q=n(19781),ee=n(84460),te=n(95604),ne=n(66300),oe=n(54999),se=n(41029);const ie=()=>["Extension","RingGroup"];let re=(()=>{class c extends C.m{buttons=oe.P.OkCancel;xapiError=(0,s.WQX)(se.Ko);api=(0,s.WQX)(j);destroy$=(0,s.WQX)(s.abz);cd=(0,s.WQX)(T.gRc);notificationSettings;form=new a.gE({SendChatRecipients:new a.MJ(!1,{nonNullable:!0}),PlayAnnouncement:new a.MJ(!1,{nonNullable:!0}),SendSpecifiedList:new a.MJ(!1,{nonNullable:!0}),EmergencyDNPrompt:new a.MJ({value:null,disabled:!0},a.k0.required),EmergencyPlayPrompt:new a.MJ({value:"",disabled:!0},a.k0.required),ChatRecipients:new a.MJ({value:"AllGroupsManagers",disabled:!0}),SpecifiedList:new a.MJ({value:"",disabled:!0},[a.k0.required,Z.Xm])});emergencySendChatOptions=[{value:"MyGroupManagers",label:"_i18n.MyGroupManagers"},{value:"MyGroupAllMembers",label:"_i18n.MyGroupAllMembers"},{value:"AllGroupsManagers",label:"_i18n.AllGroupsManagers"}];validateBeforeSubmit=this.createDialogValidate(this.form,this.cd);get f(){return this.form.controls}ngOnInit(){this.f.SendChatRecipients.valueChanges.pipe((0,_.F)(),(0,X.pQ)(this.destroy$)).subscribe(d=>{(0,x.TZ)(this.f.ChatRecipients,d,!0)}),this.f.SendSpecifiedList.valueChanges.pipe((0,_.F)(),(0,X.pQ)(this.destroy$)).subscribe(d=>{(0,x.TZ)(this.f.SpecifiedList,d,!0)}),this.f.PlayAnnouncement.valueChanges.pipe((0,_.F)(),(0,X.pQ)(this.destroy$)).subscribe(d=>{(0,x.TZ)(this.f.EmergencyPlayPrompt,d),(0,x.TZ)(this.f.EmergencyDNPrompt,d,!0)});const o="None"!==this.notificationSettings.ChatRecipients;this.form.patchValue({SendChatRecipients:o,PlayAnnouncement:!(!this.notificationSettings.EmergencyDNPrompt?.Number&&!this.notificationSettings.EmergencyPlayPrompt),SendSpecifiedList:!!this.notificationSettings.SpecifiedList,EmergencyDNPrompt:this.notificationSettings.EmergencyDNPrompt??null,EmergencyPlayPrompt:this.notificationSettings.EmergencyPlayPrompt??"",ChatRecipients:o?this.notificationSettings.ChatRecipients:"AllGroupsManagers",SpecifiedList:this.notificationSettings.SpecifiedList??""})}submit$=()=>{const{value:o}=this.form;return this.api.updateEmergencyNotificationsSettings({pbxEmergencyNotificationsSettings:{ChatRecipients:o.ChatRecipients??"None",EmergencyDNPrompt:o.EmergencyDNPrompt??null,EmergencyPlayPrompt:o.EmergencyPlayPrompt??null,SpecifiedList:o.SpecifiedList?.trim().replace(/,$/,"")??null}}).pipe(this.handleError(this.xapiError,this.cd,this.form))};static \u0275fac=(()=>{let o;return function(l){return(o||(o=e.xGo(c)))(l||c)}})();static \u0275cmp=e.VBU({type:c,selectors:[["app-emergency-notification-settings"]],hostVars:2,hostBindings:function(d,l){2&d&&e.AVh("modal-lg",!0)},inputs:{notificationSettings:"notificationSettings"},features:[e.Vt3],decls:18,vars:24,consts:[["dialog",""],["header","_i18n.EmergencyNotificationHeader",3,"submitted","buttons","validateBeforeSubmit","submit$","disableSubmitOnEnter"],["data-qa","send-email","label","_i18n.EmergencyNotificationSendEmail",3,"formControl"],["data-qa","emails-list","description","_i18n.EmailInputExample",3,"formControl"],[3,"control"],["data-qa","send-chat","label","_i18n.EmergencyNotificationSendChat",3,"formControl"],["data-qa","chat-list",3,"formControl","description","options"],["description","",1,"dashed_link",3,"click","routerLink"],["data-qa","play-announcement","label","_i18n.EmergencyNotificationPlayAnnouncement",3,"formControl"],["data-qa","dn-prompt"],["placeholder","_i18n.ChooseExtension",3,"formControl","searchDnTypes"],["data-qa","emergency-prompt","label","_i18n.EmergencyNotificationPrompt",3,"formControl"]],template:function(d,l){if(1&d){const b=e.RV6();e.j41(0,"app-modal-dialog",1,0),e.bIt("submitted",function(){return l.onSubmit()}),e.j41(2,"p"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"field-checkbox",2),e.j41(6,"field-input",3),e.nrm(7,"val-errors",4),e.k0s(),e.nrm(8,"field-checkbox",5),e.j41(9,"field-select",6)(10,"a",7),e.bIt("click",function(){s.eBV(b);const k=e.sdS(1);return s.Njj(k.cancel())}),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.nrm(13,"field-checkbox",8),e.j41(14,"field-wrapper",9),e.nrm(15,"app-dn-select",10)(16,"val-errors",4),e.k0s(),e.nrm(17,"app-call-prompts",11),e.k0s()}2&d&&(e.Y8G("buttons",l.buttons)("validateBeforeSubmit",l.validateBeforeSubmit)("submit$",l.submit$)("disableSubmitOnEnter",!0),e.R7$(3),e.JRh(e.bMT(4,19,"_i18n.EmergencyNotificationEditorDescription")),e.R7$(2),e.Y8G("formControl",l.f.SendSpecifiedList),e.R7$(),e.Y8G("formControl",l.f.SpecifiedList),e.R7$(),e.Y8G("control",l.f.SpecifiedList),e.R7$(),e.Y8G("formControl",l.f.SendChatRecipients),e.R7$(),e.Y8G("formControl",l.f.ChatRecipients)("description",!0)("options",l.emergencySendChatOptions),e.R7$(),e.Y8G("routerLink","/office/system/options"),e.R7$(),e.JRh(e.bMT(12,21,"_i18n.EmergencyNotificationSendChatHint")),e.R7$(2),e.Y8G("formControl",l.f.PlayAnnouncement),e.R7$(2),e.Y8G("formControl",l.f.EmergencyDNPrompt)("searchDnTypes",e.lJ4(23,ie)),e.R7$(),e.Y8G("control",l.f.EmergencyDNPrompt),e.R7$(),e.Y8G("formControl",l.f.EmergencyPlayPrompt))},dependencies:[q.t,ee.m,te.z,ne.q,t.J,K.p,Q.A,w.N4,w.IH,a.X1,a.BC,a.l_,L.Wk,E.D9],encapsulation:2})}return c})();var m=n(50560),$=n(87019),p=n(73042),R=n(90776),v=n(83188),V=n(68845),Y=n(98505),H=n(49562),ue=n(40960),me=n(25244),pe=n(38969),ae=n(96106),_e=n(52101);const he=()=>({number:1}),ge=()=>({number:2}),fe=()=>({number:3}),Ee=()=>({number:4}),Re=()=>({number:5}),ve=()=>[];function be(c,U){if(1&c){const o=e.RV6();e.j41(0,"button",8),e.bIt("click",function(){s.eBV(o);const l=e.XpG();return s.Njj(l.moveUpMoveDown(!0))}),e.nrm(1,"app-arrow-alt-up-solid-icon"),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"button",9),e.bIt("click",function(){s.eBV(o);const l=e.XpG();return s.Njj(l.moveUpMoveDown(!1))}),e.nrm(6,"app-arrow-alt-down-solid-icon"),e.j41(7,"span"),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&c){const o=e.XpG();e.Y8G("disabled",o.disableMoveUp),e.R7$(3),e.JRh(e.bMT(4,4,"_i18n.MoveUp")),e.R7$(2),e.Y8G("disabled",o.disableMoveDown),e.R7$(3),e.JRh(e.bMT(9,6,"_i18n.MoveDown"))}}function Me(c,U){if(1&c){const o=e.RV6();e.j41(0,"button",10),e.bIt("click",function(){s.eBV(o);const l=e.XpG();return s.Njj(l.setUpEmergencyNotifications())}),e.nrm(1,"app-bell-solid-icon"),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}2&c&&(e.R7$(3),e.JRh(e.bMT(4,1,"_i18n.EmergencyRulesNotifications")))}function Ce(c,U){if(1&c&&(e.j41(0,"td",23)(1,"span",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&c){const o=U.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,o.TrunkName||"_i18n.Blocked"))}}function Te(c,U){if(1&c){const o=e.RV6();e.j41(0,"tr",19),e.bIt("click",function(){const l=s.eBV(o).$implicit,b=e.XpG(2);return s.Njj(b.toggleRuleSelected(l))}),e.j41(1,"td",20),e.EFF(2),e.k0s(),e.j41(3,"td")(4,"span",21),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"td")(8,"div",21),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.j41(11,"td"),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"td",22)(15,"span",21),e.EFF(16),e.k0s()(),e.Z7z(17,Ce,4,3,"td",23,e.fX1),e.k0s()}if(2&c){const o=U.$implicit,d=e.XpG(2);e.AVh("selected",d.isRuleSelected(o)),e.BMQ("data-qa",o.Name),e.R7$(2),e.JRh(o.Name),e.R7$(3),e.JRh(e.bMT(6,8,o.Prefix||"_i18n.Any")),e.R7$(4),e.SpI(" ",e.bMT(10,10,d.formatToExtValue(o.DNRanges??e.lJ4(14,ve),(null==o.GroupNames?null:o.GroupNames.length)||0,3))," "),e.R7$(3),e.JRh(e.bMT(13,12,o.NumberLengthRanges||"_i18n.Any")),e.R7$(4),e.JRh(null==o.GroupNames?null:o.GroupNames.join(", ")),e.R7$(),e.Dyx(o.Routes)}}function ye(c,U){1&c&&(e.j41(0,"tr")(1,"td",24),e.nrm(2,"div",25),e.k0s()())}function Pe(c,U){if(1&c){const o=e.RV6();e.j41(0,"tr")(1,"td",26)(2,"a",27),e.bIt("click",function(){s.eBV(o);const l=e.XpG(2);return s.Njj(l.nextPage$.next())}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()}2&c&&(e.R7$(3),e.JRh(e.bMT(4,1,"_i18n.ReportsShowMore")))}function De(c,U){if(1&c&&(e.j41(0,"table",7)(1,"thead")(2,"tr")(3,"th",11),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"th",12),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"th",13),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"th",14),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"th",15),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"th",16),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"th",16),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"th",17),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"th",17),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"th",17),e.EFF(31),e.nI1(32,"translate"),e.k0s()()(),e.j41(33,"tbody"),e.Z7z(34,Te,19,15,"tr",18,e.BUC().identify,!0),e.k0s(),e.j41(36,"tfoot"),e.nV
1h(37,ye,3,0,"tr")(38,Pe,5,3,"tr"),e.k0s()()),2&c){const o=U,d=e.XpG();e.R7$(4),e.JRh(e.bMT(5,11,d.isEmergency?"_i18n.EmergencyRuleName":"_i18n.OutboundRuleName")),e.R7$(3),e.JRh(e.bMT(8,13,d.isEmergency?"_i18n.EmergencyNumber":"_i18n.PrefixTabTitle")),e.R7$(3),e.JRh(e.bMT(11,15,"_i18n.OutboundRuleCallFromExt")),e.R7$(3),e.JRh(e.bMT(14,17,"_i18n.LengthTabTitle")),e.R7$(3),e.JRh(e.bMT(17,19,"_i18n.Department")),e.R7$(3),e.JRh(e.i5U(20,21,"_i18n.RouteNumberTabTitle",e.lJ4(36,he))),e.R7$(3),e.JRh(e.i5U(23,24,"_i18n.RouteNumberTabTitle",e.lJ4(37,ge))),e.R7$(3),e.JRh(e.i5U(26,27,"_i18n.RouteNumberTabTitle",e.lJ4(38,fe))),e.R7$(3),e.JRh(e.i5U(29,30,"_i18n.RouteNumberTabTitle",e.lJ4(39,Ee))),e.R7$(3),e.JRh(e.i5U(32,33,"_i18n.RouteNumberTabTitle",e.lJ4(40,Re))),e.R7$(3),e.Dyx(d.rules),e.R7$(3),e.vxM(o.isLoading?37:o.hasMore?38:-1)}}let Oe=(()=>{class c{route=(0,s.WQX)(I.nX);router=(0,s.WQX)(I.Ix);cdRef=(0,s.WQX)(T.gRc);modalService=(0,s.WQX)(G.B);outboundRulesApiService=(0,s.WQX)(P.r);dataSource=(0,s.WQX)(u);destroy$=(0,s.WQX)(s.abz);emergencyNotificationsApi=(0,s.WQX)(j);paginator$;hasMoreOrLoading$;parameters$=new W.t(null);nextPage$=new W.t(void 0);reset$=new W.t(void 0);search=new a.MJ("",{nonNullable:!0});selectedRuleId=null;rules=[];performingMove=!1;isEmergency;hasTrunks;isSystemAdmin;get parameters(){return{search:this.search.value??""}}constructor(){this.isSystemAdmin=this.route.snapshot.data.isSystemAdmin,this.isEmergency=this.route.snapshot.data.emergency,this.hasTrunks=this.route.snapshot.data.hasTrunks,this.paginator$=(0,h.K)(this.modalService,this.destroy$,this.parameters$,this.nextPage$,this.reset$,this.dataSource.dataFetcher,$.z9)}formatToExtValue(o,d,l){const b=!!d,O=(0,m.vw)(o,l);return b?O:p.Q.isNullOrEmpty(O)?"_i18n.All":O}ngOnInit(){this.parameters$.next({search:""}),this.search.valueChanges.pipe((0,f.B)(500),(0,X.pQ)(this.destroy$)).subscribe(o=>{this.parameters$.next({search:o})}),this.paginator$.pipe((0,_.F)(),(0,X.pQ)(this.destroy$)).subscribe(o=>{this.rules=o.data})}back(){this.router.navigate([".."],{relativeTo:this.route})}moveUpMoveDown(o){this.performingMove||!this.selectedRuleId||(this.performingMove=!0,this.outboundRulesApiService.moveUpDown({outboundRulesMoveUpDownRequestBody:{up:o,id:this.selectedRuleId}}).pipe((0,ae.Pr)(this.isEmergency?"_i18n.EmergencyNumberMoveNotFoundEditErrorMessage":"_i18n.OutboundRuleMoveNotFoundEditErrorMessage"),(0,ae.AI)(500,this.isEmergency?"_i18n.EmergencyNumberNotFoundPriorityEditErrorMessage":"_i18n.OutboundRuleNotFoundPriorityEditErrorMessage"),(0,X.pQ)(this.destroy$)).subscribe({next:()=>{const d=this.selectedRuleId,l=this.rules.findIndex(b=>b.Id===d);l>-1&&(function ce(c,U,o){const d=o[U];o[U]=o[c],o[c]=d}(l,o?l-1:l+1,this.rules),this.cdRef.markForCheck()),this.performingMove=!1},error:d=>{this.modalService.error(d),this.performingMove=!1}}))}identify(o,d){return d.Id}delete(){this.selectedRuleId&&(0,_e.qq)(this.modalService).pipe((0,N.n)(()=>this.outboundRulesApiService.deleteOutboundRule({id:this.selectedRuleId})),(0,ae.Y$)()).subscribe({next:()=>{this.selectedRuleId=null,this.reset$.next()},error:o=>this.modalService.error(o)})}edit(){var o=this;return(0,r.A)(function*(){o.selectedRuleId&&(o.isEmergency?yield o.router.navigate(["office/system/emergency-numbers/edit",o.selectedRuleId]):yield o.router.navigate(["/office/outbound-rules/edit",o.selectedRuleId]))})()}get isSingleRuleSelected(){return this.selectedRuleId}get isAtLeastOneSelected(){return this.selectedRuleId}get isSearch(){return this.search.value?.length>0}get disableMoveUp(){return!this.isSystemAdmin||this.isSearch||!this.isSingleRuleSelected||this.rules[0]?.Id===this.selectedRuleId}get disableMoveDown(){return!this.isSystemAdmin||this.isSearch||!this.isSingleRuleSelected||this.rules[this.rules.length-1]?.Id===this.selectedRuleId}isRuleSelected(o){return this.selectedRuleId===o.Id}setRuleSelected(o){this.selectedRuleId=this.selectedRuleId!==o.Id?o.Id:null}toggleRuleSelected(o){this.setRuleSelected(o)}setUpEmergencyNotifications(){this.emergencyNotificationsApi.getEmergencyNotificationsSettings({$select:["ChatRecipients","EmergencyPlayPrompt","EmergencyDNPrompt","SpecifiedList"],$expand:["EmergencyDNPrompt"]}).subscribe(o=>{this.modalService.showComponent(re,{initialState:{notificationSettings:o}})})}static \u0275fac=function(d){return new(d||c)};
1static \u0275cmp=e.VBU({type:c,selectors:[["app-outbound-rules-list"]],features:[e.Jv_([u])],decls:18,vars:18,consts:[[3,"header","helpUrl"],["top-bar","",1,"button-group"],["text","_i18n.Add","data-qa","add-outbound-rule","routerLink","new",3,"disabled","tooltipWhenDisabled"],["data-qa","edit-outbound-rule","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","delete-outbound-rule","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","notifications-emergency-rule-btn","type","button",1,"btn","btn-primary"],["top-bar","",3,"formControl"],["full-width","",1,"scrollable-table"],["data-qa","move-up-outbound-rule","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","move-down-outbound-rule","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","notifications-emergency-rule-btn","type","button",1,"btn","btn-primary",3,"click"],[1,"col-size-200","col-size-xl-300"],[1,"col-size-100"],["nowrap","",1,"col-size-100"],[1,"col-size-50"],[1,"lg-visible","col-size-200"],[1,"xxl-visible","col-size-200"],[1,"xxl-visible","col-size-150"],[1,"pointer",3,"selected"],[1,"pointer",3,"click"],[1,"text-md-nowrap"],[1,"line-clamp-1"],[1,"lg-visible"],[1,"xxl-visible"],["colspan","10"],[1,"loader"],["colspan","10",1,"text-center"],[1,"dashed","link",3,"click"]],template:function(d,l){if(1&d&&(e.j41(0,"app-page",0)(1,"div",1),e.nrm(2,"app-button-add",2),e.j41(3,"button",3),e.bIt("click",function(){return l.edit()}),e.nrm(4,"app-pencil-solid-icon"),e.j41(5,"span"),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"button",4),e.bIt("click",function(){return l.delete()}),e.nrm(9,"app-trash-alt-solid-icon"),e.j41(10,"span"),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.nVh(13,be,10,8),e.nVh(14,Me,5,3,"button",5),e.k0s(),e.nrm(15,"search-bar",6),e.nVh(16,De,39,41,"table",7),e.nI1(17,"async"),e.k0s()),2&d){let b;e.Y8G("header",l.isEmergency?"_i18n.EmergencyNumbersTabHeader":"_i18n.OutboundRules")("helpUrl",l.isEmergency?"_i18n.EmergencyEditorUri":"_i18n.OutboundCallRoutingUri"),e.R7$(2),e.Y8G("disabled",!l.hasTrunks)("tooltipWhenDisabled",l.isEmergency?"_i18n.Create1SIPTrunkEm":"_i18n.Create1SIPTrunk"),e.R7$(),e.Y8G("disabled",!l.isSingleRuleSelected),e.R7$(3),e.JRh(e.bMT(7,12,"_i18n.Edit")),e.R7$(2),e.Y8G("disabled",!l.isAtLeastOneSelected),e.R7$(3),e.JRh(e.bMT(12,14,"_i18n.Delete")),e.R7$(2),e.vxM(l.isSystemAdmin?13:-1),e.R7$(),e.vxM(l.isEmergency?14:-1),e.R7$(),e.Y8G("formControl",l.search),e.R7$(),e.vxM((b=e.bMT(17,16,l.paginator$))?16:-1,b)}},dependencies:[a.X1,a.BC,a.l_,L.iI,L.Wk,Y.C,H.B,ue.N,me.T,pe.d,v.H,R.j,V.L,M.Jj,E.D9],styles:["tr.selected[_ngcontent-%COMP%]{background:var(--bg-primary-active)}"],changeDetection:0})}return c})()},60007(B,y,n){n.d(y,{Tp:()=>E,Xy:()=>M,ev:()=>a});var r=n(37201),s=n(76034),T=n(50139);const a=(0,s.c)("admin"),M=(0,s.c)("machineAdmin"),E=(0,T.d)(r.mD)},50139(B,y,n){n.d(y,{d:()=>a});var r=n(85802),s=n(96354),T=n(92996);const a=M=>()=>(0,r.WQX)(T.Z).getMyToken$().pipe((0,s.T)(E=>M.includes(E.myRole)))},18467(B,y,n){n.d(y,{o:()=>r});class r{data;isLoading;page;hasMore;constructor(T,a=!1,M=0,E=!1){this.data=T,this.isLoading=a,this.page=M,this.hasMore=E}}},79997(B,y,n){n.d(y,{K:()=>G});var r=n(28793),s=n(7673),T=n(57786),a=function(N){return N.Reset="Reset",N.NextPage="NextPage",N.ChunkLoading="ChunkLoading",N}(a||{}),M=n(65245),E=n(25558),P=n(5964),D=n(63489),i=n(96354),e=n(12498),j=n(44668),I=n(18467),L=n(89079);const G=(N,g,S,u,h,f,_)=>{const C=u.pipe((0,M.i)(1),(0,E.n)(()=>(0,r.x)((0,s.of)(a.ChunkLoading),(0,s.of)(a.NextPage)))),x=h.pipe((0,E.n)(()=>(0,r.x)((0,s.of)(a.Reset),(0,s.of)(a.NextPage))));return S.pipe((0,P.p)(A=>null!==A),(0,E.n)(A=>(0,T.h)(x,C).pipe((0,D.i)((t,K)=>t.hasMore||K!==a.ChunkLoading&&K!==a.NextPage?K===a.Reset?(0,s.of)(new I.o([],!0,0,!0)):K===a.ChunkLoading?(0,s.of)(new I.o(t.data,!0,t.page+1,t.hasMore)):K===a.NextPage?(0,s.of)(t.page).pipe(f(A,_),(0,i.T)(Q=>new I.o(t.data.concat(Q),!1,t.page,Q.length===_))):(0,s.of)(t):(0,s.of)(t),new I.o([],!1,-1,!0),1))),(0,e.L)(W(N)),(0,L.pQ)(g),(0,j.t)({refCount:!0}))},W=N=>({delay:g=>N.confirmRetryAfterError(g).pipe((0,i.T)(()=>0))})},31899(B,y,n){n.d(y,{w:()=>u});var r=n(35547),s=n(85802),T=n(23994),a=n(89417),M=n(92996),E=n(38601),P=n(72510),D=n(56998),i=n(98352),e=n(68018),j=n(51606),I=n(89079),L=n(95604),G=n(8876),W=n(49769);const N=[[["val-errors"]]],g=["val-errors"];function S(h,f){if(1&h){const _=r.RV6();r.j41(0,"field-wrapper",0)(1,"ng-select",1),r.nI1(2,"translate"),r.bIt("change",function(x){s.eBV(_);const A=r.XpG();return s.Njj(A.valueChanged(x))})("open",function(){s.eBV(_);const x=r.XpG();return s.Njj(x.loadTrunksOnce())}),r.k0s(),r.qex(3,2),r.SdG(4),r.bVm(),r.k0s()}if(2&h){const _=r.XpG();r.Y8G("label",_.label)("labelFor",_.id),r.R7$(),r.Y8G("id",_.id)("placeholder",r.bMT(2,11,_.placeholder))("disabled",!f.trunks)("items",_.trunks)("ngModel",_.value)("multiple",!1)("closeOnSelect",!0)("clearable",_.isClearable)("loading",_.loading)}}let u=(()=>{class h extends i.z{tokenInfoService=(0,s.WQX)(M.Z);trunksApiService=(0,s.WQX)(T.T);modalService=(0,s.WQX)(E.B);destroy$=(0,s.WQX)(s.abz);el=(0,s.WQX)(r.aKT);id=(0,D.bn)("trunk-select");label="";isClearable=!0;isNew;access$=this.tokenInfoService.myToken$;trunks=[];loading=!1;routesLoaded=!1;ngOnInit(){!this.isClearable&&this.isNew&&this.loadTrunksOnce(!0)}ngAfterViewInit(){this.el.nativeElement.id=""}constructor(){super(),this.touchOnChange=!0}loadTrunksOnce(_=!1){this.routesLoaded||(this.routesLoaded=!0,this.loading=!0,this.cd.markForCheck(),this.trunksApiService.listTrunk({$select:["Id","Gateway($select=Name)","Groups"],$expand:["Groups($select=GroupId,Name)"],$f
1ilter:j.O}).pipe((0,I.pQ)(this.destroy$)).subscribe({next:({value:C})=>{this.trunks=C||[],this.loadingFinished(),_&&this.valueChanged(this.trunks[0])},error:C=>{this.modalService.error(C),this.loadingFinished()}}))}writeValue(_){super.writeValue(_&&(this.trunks.find(C=>C.Id===_.Id)??_))}get placeholder(){return this.value?"":"_i18n.OutboundBlockCalls"}loadingFinished(){this.loading=!1,this.cd.markForCheck()}static \u0275fac=function(C){return new(C||h)};static \u0275cmp=r.VBU({type:h,selectors:[["app-trunk-select"]],hostVars:2,hostBindings:function(C,x){2&C&&r.AVh("form-input",!0)},inputs:{id:"id",label:"label",isClearable:"isClearable",isNew:"isNew"},features:[r.Jv_([{provide:a.kq,multi:!0,useExisting:h}]),r.Vt3],ngContentSelectors:g,decls:2,vars:3,consts:[["data-qa","trunk-select",1,"mb-0",3,"label","labelFor"],["data-qa","select","bindLabel","Gateway.Name",3,"change","open","id","placeholder","disabled","items","ngModel","multiple","closeOnSelect","clearable","loading"],["ngProjectAs","val-errors",5,["val-errors"]]],template:function(C,x){if(1&C&&(r.NAR(N),r.nVh(0,S,5,13,"field-wrapper",0),r.nI1(1,"async")),2&C){let A;r.vxM((A=r.bMT(1,1,x.access$))?0:-1,A)}},dependencies:[a.YN,a.BC,a.vS,P.vr,L.z,G.c,e.D9,W.Jj],styles:[".ng-touched.ng-invalid[_nghost-%COMP%]   ng-select[_ngcontent-%COMP%]:not(.ng-select-focused){--ng-select-border-color: var(--error)}"],changeDetection:0})}return h})()},51606(B,y,n){n.d(y,{O:()=>E,o:()=>P});var r=n(85802),s=n(96354),T=n(23994),a=n(19037),M=n(99437);const E="(Gateway/Type eq 'Provider' or Gateway/Type eq 'Analog' or Gateway/Type eq 'BridgeMaster' or Gateway/Type eq 'BridgeSlave' or Gateway/Type eq 'BridgeSlaveOverTunnel') and not (Messaging/Provider eq 'facebook' or Messaging/Provider eq 'whatsapp' or Tags/any(t: t eq 'WM'))",P=()=>{const D=(0,r.WQX)(T.T),i=(0,r.WQX)(a.s);return D.listTrunk({$top:1,$filter:E,$select:["Id"]}).pipe((0,s.T)(({value:e})=>!!e?.length),(0,M.W)(e=>i.handleError(e)))}},98505(B,y,n){n.d(y,{C:()=>T});var r=n(35547),s=n(85802);let T=(()=>{class a{static \u0275fac=function(P){return new(P||a)};static \u0275cmp=r.VBU({type:a,selectors:[["app-arrow-alt-down-solid-icon"],["","app-arrow-alt-down-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M176 32h96c13.3 0 24 10.7 24 24v200h103.8c21.4 0 32.1 25.8 17 41L241 473c-9.4 9.4-24.6 9.4-34 0L31.3 297c-15.1-15.1-4.4-41 17-41H152V56c0-13.3 10.7-24 24-24z"]],template:function(P,D){1&P&&(s.qSk(),r.rj2(0,"svg",0),r.Hgh(1,"path",1),r.eux())},encapsulation:2})}return a})()},40960(B,y,n){n.d(y,{N:()=>T});var r=n(35547),s=n(85802);let T=(()=>{class a{static \u0275fac=function(P){return new(P||a)};static \u0275cmp=r.VBU({type:a,selectors:[["app-bell-solid-icon"],["","app-bell-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]],template:function(P,D){1&P&&(s.qSk(),r.rj2(0,"svg",0),r.Hgh(1,"path",1),r.eux())},encapsulation:2})}return a})()},45501(B,y,n){n.d(y,{N:()=>N});var r=n(17705),s=n(89417),T=n(56998),a=n(98352),M=n(95604),E=n(72510),P=n(68018),D=n(49769),i=n(35547),e=n(85802);const j=[[["val-errors"]]],I=["val-errors"];function L(g,S){1&g&&(i.j41(0,"b",7),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&g&&(i.R7$(),i.JRh(i.bMT(2,1,"_i18n.MainMembershipBadge")))}function G(g,S){if(1&g&&(i.j41(0,"div",5)(1,"span",6),i.EFF(2),i.k0s(),i.nVh(3,L,3,3,"b",7),i.k0s()),2&g){const u=S.item;i.R7$(),i.Y8G("title",u.Name),i.R7$(),i.JRh(u.Name),i.R7$(),i.vxM(u.IsPrimaryBossGroup?3:-1)}}function W(g,S){if(1&g){const u=i.RV6();i.j41(0,"span",8),i.bIt("click",function(){const f=e.eBV(u);return e.Njj((0,f.clear)(f.item))}),i.EFF(1,"\xd7"),i.k0s(),i.j41(2,"span",6),i.EFF(3),i.k0s()}if(2&g){const u=S.item;i.R7$(2),i.Y8G("title",u.Name),i.R7$(),i.JRh(u.Name)}}let N=(()=>{class g extends a.z{groups=[];label="";description="";placeholder="_i18n.SelectGroup";disabled=!1;valueField="Id";required=!1;id=(0,T.bn)();opened=(0,r.CGW)();closed=(0,r.CGW)();removed=(0,r.CGW)();groupChanged=(0,r.CGW)();selectedValue=null;get hasSelectedValue(){return!!this.selectedValue&&(!Array.isArray(this.selectedValue)||this.selectedValue.length>0)}writeValue(u){super.writeValue(u),this.selectedValue=u}groupSearch=(u,h)=>h.Name?.toLowerCase().includes(u.toLowerCase());onItemSelected(u){let h=null;if(Array.isArray(u))h=u.map(f=>{switch(this.valueField){case"Number":return f.Number||"";case"Name":return f.Name;default:return f.Id}});else if(u)switch(this.valueField){case"Number":h=u.Number||"";break;case"Name":h=u.Name||"";break;default:h=u.Id}this.valueChanged(h),this.markAsTouched(),null!==u&&this.groupChanged.emit(u)}onOpen(){this.opened.emit()}
1onClose(){this.markAsTouched(),this.closed.emit()}onRemove(u){this.removed.emit(u)}static \u0275fac=(()=>{let u;return function(f){return(u||(u=i.xGo(g)))(f||g)}})();static \u0275cmp=i.VBU({type:g,selectors:[["app-departments-select"]],inputs:{groups:"groups",label:"label",description:"description",placeholder:"placeholder",disabled:"disabled",valueField:"valueField",required:"required",id:"id"},outputs:{opened:"opened",closed:"closed",removed:"removed",groupChanged:"groupChanged"},features:[i.Jv_([{provide:s.kq,multi:!0,useExisting:g}]),i.Vt3],ngContentSelectors:I,decls:7,vars:16,consts:[[3,"label","description","required"],["data-qa","group-select",3,"open","close","remove","change","ngModelChange","items","id","bindValue","placeholder","clearable","searchable","multiple","searchFn","closeOnSelect","disabled","ngModel"],["ng-option-tmp",""],["ng-label-tmp",""],["ngProjectAs","val-errors",5,["val-errors"]],[1,"d-flex","align-items-center","gap-2"],[1,"text-truncate",3,"title"],[1,"badge","bg-primary","text-uppercase","p-1","mb-1"],["data-qa","remove-choice","aria-hidden","true",1,"ng-value-icon","left",3,"click"]],template:function(h,f){1&h&&(i.NAR(j),i.j41(0,"field-wrapper",0)(1,"ng-select",1),i.nI1(2,"translate"),i.bIt("open",function(){return f.onOpen()})("close",function(){return f.onClose()})("remove",function(C){return f.onRemove(C)})("change",function(C){return f.onItemSelected(C)}),i.mxI("ngModelChange",function(C){return i.DH7(f.selectedValue,C)||(f.selectedValue=C),C}),i.DNE(3,G,4,3,"ng-template",2)(4,W,4,2,"ng-template",3),i.k0s(),i.qex(5,4),i.SdG(6),i.bVm(),i.k0s()),2&h&&(i.Y8G("label",f.label)("description",f.description)("required",f.required),i.R7$(),i.Y8G("items",f.groups)("id",f.id)("bindValue",f.valueField)("placeholder",f.hasSelectedValue?"":i.bMT(2,14,f.placeholder))("clearable",!0)("searchable",!0)("multiple",!0)("searchFn",f.groupSearch)("closeOnSelect",!1)("disabled",f.disabled),i.R50("ngModel",f.selectedValue))},dependencies:[E.vr,D.MD,s.YN,s.BC,s.vS,E.ZZ,E.Uq,M.z,P.D9],styles:[".ng-invalid.ng-touched[_nghost-%COMP%]     .ng-select-container{border-color:var(--error)}"],changeDetection:0})}return g})()},48244(B,y,n){n.d(y,{M:()=>P});var r=n(85802),s=n(19037),T=n(99437),a=n(96354),M=n(96697),E=n(16444);const P=()=>{const D=(0,r.WQX)(E.gx),i=(0,r.WQX)(s.s);return D.myPhoneSession.pipe((0,a.T)(e=>e.systemParameters),(0,M.s)(1),(0,T.W)(e=>i.handleError(e)))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.