1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[5362],{38543(Y,R,l){l.d(R,{peopleRoutes:()=>Dn});var _=l(96354),h=l(25558),j=l(88141),v=l(99437),a=l(85802),x=l(17705),c=l(32271),S=l(16444),M=l(59882),$=l(93049),y=l(68739),g=l(89417),B=l(12426),u=l(42610),G=l(68083),F=l(3032),V=l(84572),N=l(84412),b=l(7673),p=l(68018),k=l(96106),m=l(33971),f=l(73042),T=l(20284),D=l(53775),z=l(96049),K=l(576),q=l(19061),tt=l(33226),E=l(40259),nt=l(68845),I=l(68580),et=l(56998),ot=l(19781),it=l(28333),O=l(49769),at=l(54495),L=l(58689),d=l(8516),X=l(23773),lt=l(13499),w=l(89079),ct=l(50644),st=l(11082),t=l(35547);const rt=()=>({exact:!0}),pt=(e,r)=>r.routeLink;function dt(e,r){1&e&&(t.j41(0,"h3",0),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"_i18n.Team")))}function mt(e,r){if(1&e&&t.nrm(0,"lucide-icon",4),2&e){const n=t.XpG(3);t.Y8G("img",n.MessageCircle)}}function _t(e,r){if(1&e){const n=t.RV6();t.j41(0,"li",12)(1,"a",16),t.bIt("click",function(){a.eBV(n);const i=t.XpG(2);return a.Njj(i.newChat())}),t.nVh(2,mt,1,1,"lucide-icon",4),t.j41(3,"span"),t.EFF(4),t.nI1(5,"translate"),t.k0s()()()}if(2&e){t.XpG(2);const n=t.r8f(0);t.R7$(2),t.vxM(n?2:-1),t.R7$(2),t.JRh(t.bMT(5,2,"_i18n.NewChat"))}}function Ct(e,r){if(1&e&&t.nrm(0,"lucide-icon",4),2&e){const n=t.XpG(2);t.Y8G("img",n.PhoneCall)}}function ht(e,r){if(1&e&&t.nrm(0,"lucide-icon",4),2&e){const n=t.XpG(2);t.Y8G("img",n.UserPlus)}}function gt(e,r){if(1&e&&t.nrm(0,"lucide-icon",4),2&e){const n=t.XpG(2);t.Y8G("img",n.Video)}}function ut(e,r){if(1&e){const n=t.RV6();t.j41(0,"ul",11),t.nVh(1,_t,6,4,"li",12),t.j41(2,"li",12)(3,"a",13),t.bIt("click",function(){a.eBV(n);const i=t.XpG();return a.Njj(i.newCall())}),t.nVh(4,Ct,1,1,"lucide-icon",4),t.j41(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s()()(),t.j41(8,"li",12)(9,"a",14),t.bIt("click",function(){a.eBV(n);const i=t.XpG();return a.Njj(i.newContact())}),t.nVh(10,ht,1,1,"lucide-icon",4),t.j41(11,"span"),t.EFF(12),t.nI1(13,"translate"),t.k0s()()(),t.j41(14,"li",12)(15,"a",15),t.bIt("click",function(){a.eBV(n);const i=t.XpG();return a.Njj(i.meet())}),t.nVh(16,gt,1,1,"lucide-icon",4),t.j41(17,"span"),t.EFF(18),t.nI1(19,"translate"),t.k0s()()()()}if(2&e){t.XpG();const n=t.r8f(0),o=t.r8f(3);t.R7$(),t.vxM(o?1:-1),t.R7$(3),t.vxM(n?4:-1),t.R7$(2),t.JRh(t.bMT(7,7,"_i18n.NewCall")),t.R7$(4),t.vxM(n?10:-1),t.R7$(2),t.JRh(t.bMT(13,9,"_i18n.NewContact")),t.R7$(4),t.vxM(n?16:-1),t.R7$(2),t.JRh(t.bMT(19,11,"_i18n.Meet"))}}function ft(e,r){if(1&e){const n=t.RV6();t.j41(0,"field-checkbox",17),t.nI1(1,"translate"),t.mxI("ngModelChange",function(i){a.eBV(n);const s=t.XpG();return t.DH7(s.showPersonalContacts,i)||(s.showPersonalContacts=i),a.Njj(i)}),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("title",t.mNQ(t.bMT(1,5,n.showPersonalContacts()?"_i18n.HidePersonalContacts":"_i18n.ShowPersonalContacts")))("switch",!0),t.R50("ngModel",n.showPersonalContacts),t.Y8G("icon",n.addressBookIcon)}}function vt(e,r){if(1&e&&t.nrm(0,"lucide-icon",4),2&e){const n=t.XpG(2);t.Y8G("img",n.Funnel)}}function xt(e,r){if(1&e&&(t.j41(0,"button",18),t.nVh(1,vt,1,1,"lucide-icon",4),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&e){t.XpG();const n=t.r8f(0);t.HbH(t.VkB("btn ",n?"btn-border":"btn-plain")),t.R7$(),t.vxM(n?1:-1),t.R7$(),t.SpI(" ",t.bMT(3,5,"_i18n.All")," ")}}function bt(e,r){if(1&e&&t.nrm(0,"lucide-icon",4),2&e){const n=t.XpG(2);t.Y8G("img",n.Funnel)}}function wt(e,r){if(1&e){const n=t.RV6();t.j41(0,"li",12)(1,"a",23),t.bIt("click",function(){const i=a.eBV(n).$implicit,s=t.XpG(3);return a.Njj(s.peopleLink.set(i.routeLink))}),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}if(2&e){const n=r.$implicit;t.R7$(),t.Y8G("routerLink",n.routeLink)("routerLinkActiveOptions",t.lJ4(5,rt)),t.R7$(),t.SpI(" ",t.bMT(3,3,n.displayName)," ")}}function Pt(e,r){if(1&e&&(t.j41(0,"ul",22),t.Z7z(1,wt,4,6,"li",12,pt),t.k0s()),2&e){const n=t.XpG(2),o=t.r8f(0);t.AVh("dropdown-menu-right",!o),t.R7$(),t.Dyx(n.departmentFilterOptions())}}function Mt(e,r){if(1&e&&(t.j41(0,"div",9)(1,"button",19),t.nVh(2,bt,1,1,"lucide-icon",4),t.nrm(3,"app-route-title",20),t.k0s(),t.DNE(4,Pt,3,2,"ul",21),t.k0s()),2&e){t.XpG();const n=t.r8f(0);t.R7$(),t.HbH(t.VkB("btn ",n?"btn-border":"btn-plain"," dropdown-toggle minw-px-50")),t.R7$(),t.vxM(n?2:-1)}}function kt(e,r){if(1&e){const n=t.RV6();
1t.SS7(0),t.j41(1,"button",24),t.nI1(2,"translate"),t.bIt("click",function(){a.eBV(n);const i=t.r8f(0),s=t.XpG();return a.Njj(s.showPersonalContacts.set(!i))}),t.nrm(3,"lucide-icon",4),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"div",25)(7,"button",26),t.nI1(8,"translate"),t.bIt("click",function(){a.eBV(n);const i=t.XpG();return a.Njj(i.tileSize.set("l"))}),t.nrm(9,"lucide-icon",4),t.k0s(),t.j41(10,"button",27),t.nI1(11,"translate"),t.bIt("click",function(){a.eBV(n);const i=t.XpG();return a.Njj(i.tileSize.set("m"))}),t.nrm(12,"lucide-icon",4),t.k0s(),t.j41(13,"button",28),t.nI1(14,"translate"),t.bIt("click",function(){a.eBV(n);const i=t.XpG();return a.Njj(i.tileSize.set("s"))}),t.nrm(15,"lucide-icon",4),t.k0s()(),t.j41(16,"button",29),t.nI1(17,"translate"),t.bIt("click",function(){a.eBV(n);const i=t.XpG();return a.Njj(i.goToSettings())}),t.nrm(18,"lucide-icon",4),t.k0s()}if(2&e){const n=t.XpG(),o=t.bH3(n.showPersonalContacts());t.R7$(),t.HbH(t.VkB("btn ",o?"btn-primary":"btn-border")),t.Y8G("title",t.bMT(2,24,o?"_i18n.HidePersonalContacts":"_i18n.ShowPersonalContacts")),t.R7$(2),t.Y8G("img",n.contactIcon),t.R7$(),t.SpI(" ",t.bMT(5,26,"_i18n.Contacts")," "),t.R7$(3),t.AVh("active","l"===n.tileSize()),t.Y8G("title",t.mNQ(t.bMT(8,28,"_i18n.DefaultView"))),t.R7$(2),t.Y8G("img",n.Grid3x3),t.R7$(),t.AVh("active","m"===n.tileSize()),t.Y8G("title",t.mNQ(t.bMT(11,30,"_i18n.ComfortableView"))),t.R7$(2),t.Y8G("img",n.Table),t.R7$(),t.AVh("active","s"===n.tileSize()),t.Y8G("title",t.mNQ(t.bMT(14,32,"_i18n.CompactView"))),t.R7$(2),t.Y8G("img",n.List),t.R7$(),t.Y8G("title",t.bMT(17,34,"_i18n.View")),t.R7$(2),t.Y8G("img",n.Settings)}}let A=(()=>{class e{dialerService=(0,a.WQX)(lt.$);myPhone=(0,a.WQX)(S.gx);router=(0,a.WQX)(M.Ix);peopleService=(0,a.WQX)(F.Z);phoneService=(0,a.WQX)(T.u);phonebookLocalService=(0,a.WQX)(D.Ou);localStorageService=(0,a.WQX)(B.sj);isNewDesign=(0,a.WQX)(L.T);peopleLink=(0,X.I)(u.Hh.SavePeople,u.lX);getGroupPresentation=E.O;searchControl=new g.MJ(this.peopleService.lastSearchedText,{nonNullable:!0});hiddenGroups$=(0,k.lB)(this.localStorageService,u.Hh.HiddenGroups,[]).pipe((0,_.T)(n=>function Tt(e){return e.map(r=>{const[n,o]=r.split("@");return{bridgeId:n,groupId:o}})}(n)));bridges$=(0,G.tp)(this.myPhone.myPhoneSession,this.hiddenGroups$).pipe((0,ct.H9)());people$;presenceSorting$=this.myPhone.myPhoneSession.pipe((0,m.b$)(this.localStorageService));isChatEnabled$=this.myPhone.myPhoneSession.pipe((0,h.n)(n=>n.chatIsAllowed$));showPersonalContacts=(0,X.I)(u.Hh.ShowPersonalContacts,!1);showUnregistered=(0,X.I)(u.Hh.ShowUnregisteredExtensions,!0);tileSize=(0,X.I)(u.Hh.PeopleTileSize,"l");departmentFilterOptions=(0,w.ot)((0,V.z)([this.bridges$,(0,w.br)(this.showUnregistered)]).pipe((0,_.T)(([n,o])=>n.flatMap(i=>at.P.groupsSort(i.groups).filter(s=>!s.isFavorite()&&!s.isHidden&&(o||s.contactsMap.getContacts().some(C=>C.isRegistered))).map(s=>({routeLink:`/people/${i.id}/${s.id}`,displayName:(0,E.O)(i,s)})))),(0,_.T)(n=>[{routeLink:"/people",displayName:"_i18n.All"},{routeLink:"/people/favorites",displayName:"_i18n.Favorites"},...n])),{initialValue:[]});contactIcon=d.Bve;addressBookIcon=tt;MessageCircle=d.oFn;PhoneCall=d.d3s;UserPlus=d.ypN;Video=d.CeX;Funnel=d.rhG;Plus=d.FWt;Grid3x3=d.hNX;List=d.B8B;Table=d.XIK;Settings=d.wB_;get limitIncrement(){return(0,x.naY)()?40:100}limit=this.limitIncrement;limit$=new N.t(this.limit);personalContacts$=(0,k.lB)(this.localStorageService,u.Hh.ShowPersonalContacts,!1).pipe((0,h.n)(n=>n?this.phonebookLocalService.getContactBulk("",(0,b.of)(z.o.personalPhonebook()),(0,m.Jd)(this.myPhone.myPhoneSession),"/people").pipe((0,_.T)(o=>({items:o.Entries.map(i=>y.KA.create(i)),totalCount:o.TotalCount}))):(0,b.of)({items:[],totalCount:0})));constructor(){const n=(0,a.WQX)(M.nX);let o;if(n.snapshot.data.showAllUnique)o=this.bridges$.pipe(G.nu);else if(n.snapshot.data.showFavorites)o=this.myPhone.myPhoneSession.pipe(G.dI);else{const i=n.params.pipe((0,j.M)(()=>{this.limit=this.limitIncrement}));o=(0,V.z)([i,this.bridges$]).pipe((0,h.n)(C=>{const[P,H]=C;return this.getContactsOfGroupObservable(H,P.bridgeId,P.groupId)}),(0,v.W)(()=>(this.router.navigate(u.lX),(0,b.of)([]))))}this.people$=this.myPhone.myPhoneSession.pipe((0,h.n)(i=>(0,V.z)([(0,et.XP)(this.searchControl),i.myPrimaryDepartmentId$]).pipe((0,h.n)(([s,C])=>(this.peopleService.lastSearchedText=s,s?this.whenSearch(i,s):this.whenNoSearch(o)))))),(0,a.QZP)(()=>{const i=this.departmentFilterOptions().map(s=>s.routeLink);(0,c.O8)(()=>{const s=this.peopleLink(),C="string"==typeof s?s:s.join("/"),P="/"+(n.snapshot.pathFromRoot?.flatMap(H=>H.url).join("/")??"");i.includes(C)||this.peopleLink.set(u.lX),i.includes(P)||this.router.navigate(u.lX,{queryParamsHandling:"merge"})})})}whenSearch(n,o){return this.phonebookLocalService.getContactBulk(o,(0,b.of)(z.o.allPersons()),this.presenceSorting$,"/people").pi
1pe((0,_.T)(i=>({items:i.Entries.map(s=>n.createMergedContact(s)),totalCount:i.TotalCount})),(0,_.T)(i=>({extensions:[],persons:i})))}whenNoSearch(n){return(0,V.z)([this.personalContacts$,n]).pipe((0,_.T)(([o,i])=>({persons:o,extensions:i})))}showMoreContacts(n){switch(n){case"extensions":this.limit+=this.limitIncrement,this.limit$.next(this.limit);break;case"contacts":this.phonebookLocalService.showMore()}}newChat(){this.router.navigate(["/people/chat/create"])}newCall(){this.dialerService.makeNewCall()}meet(){this.router.navigate([st.i0])}newContact(){this.router.navigate(["contacts/new",""])}getContactsOfGroupObservable(n,o,i){const s=n.find(P=>P.id===o);if(void 0===s)throw new Error("_i18n.BridgeNotFound");const C=s.groupsMap[i];if(void 0===C)throw new Error("_i18n.BridgeNotFound");return C.contactsMap$.pipe((0,_.T)(P=>P.getContacts()))}onEnterPressed(){const n=(0,m.t9)(this.searchControl.value);f.Q.isNullOrEmpty(n)||this.phoneService.call(n,!1)}goToSettings(){this.router.navigate(["/settings/view"])}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=t.VBU({type:e,selectors:[["ng-component"]],hostAttrs:[1,"d-flex","flex-column","h-100","w-100"],hostVars:1,hostBindings:function(o,i){2&o&&t.BMQ("data-qa","people")},features:[t.Jv_([K.P,D.Ou])],decls:19,vars:28,consts:[[1,"aside-align","d-flex","align-items-center","m-0"],["placeholder","_i18n.SearchPeopleOrEnterNumber","data-qa","search-bar",3,"keydown.enter","formControl","clearable"],["search-prepend","","dropdown","","data-qa","add-new"],["dropdownToggle","","type","button","data-qa","create-menu-toggle"],[3,"img"],["id","dropdown-alignment-new-ui","class","dropdown-menu","role","menu","data-qa","dropdown",4,"dropdownMenu"],["data-qa","personal-contacts-toggle","search-prepend","",1,"mb-0",3,"switch","ngModel","title","icon"],["search-append","",1,"d-flex","align-items-center","gap-2","mw-0","flex-wrap"],["type","button","data-qa","departments-filter-disabled","disabled","",3,"class"],["dropdown","","placement","bottom right","data-qa","departments-filter",1,"d-flex","mw-0"],[1,"scrollable",3,"showMoreContactsClicked","presenceSorting","extensionsLimit","showUnregistered","isChatEnabled","peopleList","tileSize"],["id","dropdown-alignment-new-ui","role","menu","data-qa","dropdown",1,"dropdown-menu"],["role","menuitem"],["data-qa","new-call",1,"dropdown-item",3,"click"],["data-qa","new-contact",1,"dropdown-item",3,"click"],["data-qa","new-meet",1,"dropdown-item",3,"click"],["data-qa","new-chat",1,"dropdown-item",3,"click"],["data-qa","personal-contacts-toggle","search-prepend","",1,"mb-0",3,"ngModelChange","switch","ngModel","title","icon"],["type","button","data-qa","departments-filter-disabled","disabled",""],["id","button-alignment-new-ui","dropdownToggle","","type","button","data-qa","toggle"],[1,"text-truncate"],["id","dropdown-alignment-filter","class","dropdown-menu","role","menu","data-qa","dropdown",3,"dropdown-menu-right",4,"dropdownMenu"],["id","dropdown-alignment-filter","role","menu","data-qa","dropdown",1,"dropdown-menu"],["routerLinkActive","selected",1,"dropdown-item",3,"click","routerLink","routerLinkActiveOptions"],["type","button","data-qa","show-personal-toggle",3,"click","title"],[1,"buttons-split-group"],["type","button","data-qa","gridView",1,"btn","btn-border","btn-icon",3,"click","title"],["type","button","data-qa","semiCompactView",1,"btn","btn-border","btn-icon",3,"click","title"],["type","button","data-qa","compactView",1,"btn","btn-border","btn-icon",3,"click","title"],["type","button","data-qa","settings",1,"btn","btn-border","btn-icon",3,"click","title"]],template:function(o,i){if(1&o&&(t.SS7(0),t.j41(1,"div"),t.nVh(2,dt,3,3,"h3",0),t.SS7(3),t.nI1(4,"async"),t.j41(5,"search-bar",1),t.bIt("keydown.enter",function(){return i.onEnterPressed()}),t.j41(6,"div",2)(7,"button",3),t.nrm(8,"lucide-icon",4),t.k0s(),t.DNE(9,ut,20,13,"ul",5),t.k0s(),t.nVh(10,ft,2,7,"field-checkbox",6),t.j41(11,"div",7),t.nVh(12,xt,4,7,"button",8)(13,Mt,5,4,"div",9),t.nVh(14,kt,19,36),t.k0s()()(),t.j41(15,"people-list",10),t.nI1(16,"async"),t.nI1(17,"async"),t.nI1(18,"async"),t.bIt("showMoreContactsClicked",function(C){return i.showMoreContacts(C)}),t.k0s()),2&o){const s=t.bH3(i.isNewDesign());t.R7$(),t.HbH(s?"px-3 pb-4 border-bottom":""),t.R7$(),t.vxM(s?2:-1),t.R7$();const C=t.bH3(t.bMT(4,19,i.isChatEnabled$));t.R7$(2),t.Y8G("formControl",i.searchControl)("clearable",s),t.R7$(2),t.HbH(t.VkB("btn ",s?"btn-border":"btn-plain"," btn-icon")),t.R7$(),t.Y8G("img",i.Plus),t.R7$(2),t.vxM(s?-1:10),t.R7$(2),t.vxM(i.searchControl.value?12:13),t.R7$(2),t.vxM(s?14:-1),t.R7$(),t.Y8G("presenceSorting",t.bMT(16,22,i.presenceSorting$))("extensionsLimit",t.bMT(17,24,i.limit$))("showUnregistered",i.showUnregistered())("isChatEnabled",C)("peopleList",t.bMT(18,26,i.people$))("tileSize",s?i.tileSize():"l")}},dependencies:[nt.L,g.X1,g.BC,g.l_,I.Kk,I.UL,I.hs,g.YN,g.vS,it.T,$.Wk,q.t,$.wQ,ot.t,d.flO,d.WGl,O.Jj,p.D9],encapsulation:2})}return e})();var Vt=l(40838),It=l(5964),U=l(38601),Rt=l(95),jt=l(72252),St=l(62175),Gt=l(9852),W=l(22114),$t=l(37382),yt=l(58973),Ft=l(2122),Ot=l(18530),Xt=l(47548),Bt=l(4856),Nt=l(12834),Q=l(57241);const J=(e,r)=>r.value.Id;function Et(e,r){if(1&e){const n=t.RV6();t.j41(0,"app-manage-contact-button",11),t.bIt("click",function(){a.eBV(n);const i=t.XpG(3);return a.Njj(i.savePendingChanges())}),t.k0s()}if(2&e){const n=t.XpG(3);t.Y8G("disabled",!n.canSavePendingChanges)("icon",n.SaveIcon)}}function Lt(e,r){if(1&e){const n=t.RV6();t.j41(0,"li",10)(1,"a",12),t.bIt("click",function(){const i=a.eBV(n).$implicit,s=t.XpG(3);return a.Njj(s.onItemSelected(i))}),t.nrm(2,"lucide-icon",13)(3,"span",14),t.nI1(4,"async"),t.nI1(5,"translate"),t.k0s()()}if(2&e){const n=r.$implicit,o=t.XpG(3);t.R7$(),t.AVh("focus",n===o.selectedItem),t.R7$(),t.Y8G("img",o.Icons[n.value.Name]),t.R7$(),t.Y8G("truncatedText",t.bMT(5,7,t.bMT(4,5,n.label$))),t.BMQ("data-qa",n===o.selectedItem?"profile-name":null)}}function At(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",3)(1,"h4",4),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",5),t.nVh(5,Et,1,2,"app-manage-contact-button",6),t.j41(6,"app-button-close-x",7),t.bIt("click",function(){a.eBV(n);const i=t.XpG(2);
1return a.Njj(i.closed.emit())}),t.k0s()()(),t.j41(7,"div",8)(8,"ul",9),t.Z7z(9,Lt,6,9,"li",10,J),t.k0s()()}if(2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"_i18n.TitlePresence")),t.R7$(3),t.vxM(n.isNewDesign()?5:-1),t.R7$(4),t.Dyx(n.dropdownItems)}}function Ht(e,r){if(1&e){const n=t.RV6();t.j41(0,"li",10)(1,"a",22),t.bIt("click",function(){const i=a.eBV(n).$implicit,s=t.XpG(4);return a.Njj(s.onItemSelected(i))}),t.EFF(2),t.nI1(3,"async"),t.nI1(4,"translate"),t.k0s()()}if(2&e){const n=r.$implicit,o=t.XpG(4);t.R7$(),t.AVh("focus",n===o.selectedItem),t.R7$(),t.SpI(" ",t.bMT(4,5,t.bMT(3,3,n.label$))," ")}}function Yt(e,r){if(1&e&&(t.j41(0,"ul",21),t.Z7z(1,Ht,5,7,"li",10,J),t.k0s()),2&e){const n=t.XpG(3);t.R7$(),t.Dyx(n.dropdownItems)}}function Dt(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",0)(1,"span",15),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",16)(5,"button",17)(6,"span",18),t.EFF(7),t.nI1(8,"async"),t.nI1(9,"translate"),t.k0s()(),t.DNE(10,Yt,3,0,"ul",19),t.k0s(),t.j41(11,"button",20),t.bIt("click",function(){a.eBV(n);const i=t.XpG(2);return a.Njj(i.savePendingChanges())}),t.EFF(12),t.nI1(13,"translate"),t.k0s()()}if(2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,4,"_i18n.Profile")),t.R7$(5),t.JRh(t.bMT(9,8,t.bMT(8,6,n.selectedItem.label$))),t.R7$(4),t.Y8G("disabled",!n.canSavePendingChanges),t.R7$(),t.SpI(" ",t.bMT(13,10,"_i18n.Save")," ")}}function zt(e,r){if(1&e&&(t.nVh(0,At,11,4)(1,Dt,14,12,"div",0),t.j41(2,"div",1),t.nrm(3,"app-forwarding-profile-editor",2),t.k0s()),2&e){const n=t.XpG();t.vxM(n.isNewDesign()?0:1),t.R7$(3),t.Y8G("formControl",n.profileControl)("extensionInfo",n.extensionInfo)("showValidation",!0)}}let Ut=(()=>{class e{cd=(0,a.WQX)(x.gRc);fwdProfilesService=(0,a.WQX)(Ft._);modalService=(0,a.WQX)(U.B);destroyRef=(0,a.WQX)(a.abz);isNewDesign=(0,a.WQX)(L.T);refreshProfiles$=new Ot.B;dropdownItems;selectedItem;originalProfile=null;profileControl=new g.MJ(null);contact;closed=(0,x.CGW)();Icons=Bt.a;extensionInfo;ngOnInit(){this.extensionInfo={MobileNumber:this.contact.nativeMobileNumber,Number:this.contact.extensionNumber},this.refreshProfiles$.pipe((0,h.n)(()=>this.fwdProfilesService.getExtensionForwardingProfiles$(this.extensionInfo.Number)),(0,w.pQ)(this.destroyRef)).subscribe(n=>{const o=n.map(s=>({value:s,label$:s.CustomName?(0,b.of)(s.CustomName):this.fwdProfilesService.profileDisplayNames$.pipe((0,_.T)(C=>C[s.Name]))})),i=this.selectedItem&&o.find(s=>s.value.Id===this.selectedItem.value.Id)||o[0];this.dropdownItems=o,this.onItemSelected(i)}),this.destroyRef.onDestroy(()=>{this.savePendingChanges()}),this.refreshProfiles$.next()}onItemSelected(n){this.selectedItem&&this.selectedItem.value.Id!==n.value.Id&&this.savePendingChanges(),this.selectedItem=n,this.originalProfile=(0,W.qt)(n.value,this.extensionInfo.MobileNumber),this.profileControl.setValue(this.originalProfile,{emitEvent:!1}),this.profileControl.markAsPristine(),this.profileControl.markAsUntouched(),this.cd.markForCheck()}get canSavePendingChanges(){const{value:n,valid:o,pristine:i}=this.profileControl;return this.originalProfile&&n&&o&&!i}savePendingChanges(){if(!this.canSavePendingChanges)return;const n=this.profileControl.value,o=this.originalProfile,i=n.Exceptions?{Exceptions:n.Exceptions}:(0,yt.v)(o,(0,W.am)(n,this.extensionInfo.MobileNumber));i&&this.fwdProfilesService.updateProfile$({Id:o.Id,...i},this.extensionInfo.Number).subscribe({next:()=>this.refreshProfiles$.next(),error:s=>this.modalService.error(s)})}SaveIcon=d.eMP;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=t.VBU({type:e,selectors:[["app-people-contact-call-forwarding"]],inputs:{contact:"contact"},outputs:{closed:"closed"},decls:1,vars:1,consts:[[1,"aside-align","border-bottom","d-flex","align-items-center","px-4","gap-1"],[1,"mx-4","mt-4","lg-scrollable","flex-grow-1"],[3,"formControl","extensionInfo","showValidation"],[1,"d-flex","w-100","justify-content-between","align-items-baseline","mb-4","px-4"],[1,"mb-0","me-auto"],[1,"d-flex","align-items-center","gap-2","me-2"],["text","_i18n.Save","data-qa","save",3,"disabled","icon"],[3,"click"],[1,"overflow-x-auto","overflow-y-hidden","w-100","px-4","fitting-height","flex-shrink-0"],[1,"forwarding-tabs"],["role","menuitem"],["text","_i18n.Save","data-qa","save",3,"click","disabled","icon"],[1,"d-flex","align-items-center","px-4","forwarding-tab",3,"click"],[3,"img"],[3,"truncatedText"],[1,"text-lg"],["dropdown","",1,"btn-group","m-0","h4","bg-tiles","mw-0"],["type","button","dropdownToggle","",1,"btn","btn-plain","dropdown-toggle","mw-0"],["data-qa","profile-name",1,"text-truncate"],["class","dropdown-menu mw-0",4,"dropdownMenu"],["data-qa","save","type","button",1,"btn","btn-primary",3,"click","disabled"],[1,"dropdown-menu","mw-0"],[1,"dropdown-item","text-truncate",3,"click"]],template:function(o,i){1&o&&t.nVh(0,zt,4,4),2&o&&t.vxM(i.dropdownItems?0:-1)},dependencies:[$t.F,g.X1,g.BC,g.l_,I.Kk,I.UL,I.hs,d.flO,d.WGl,Nt.W,Xt.N,Q.d,p.D9,O.Jj],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:900px;height:100%}[_nghost-%COMP%] app-page{border-right:none;border-bottom:none}[_nghost-%COMP%] .dropdown-item.focus[_ngcontent-%COMP%]{background:var(--bg-primary-active)}
1.new-design [_nghost-%COMP%]{padding:var(--spacer-l) 0}.new-design [_nghost-%COMP%] .forwarding-tabs[_ngcontent-%COMP%]{margin:0!important}[_nghost-%COMP%] .fitting-height[_ngcontent-%COMP%]{min-height:fit-content;overflow-y:hidden}","[_nghost-%COMP%]{height:100%}.new-design [_nghost-%COMP%] .forwarding-tabs[_ngcontent-%COMP%]{background:var(--bg-primary-hover);border-radius:var(--border-radius);padding:var(--spacer-xs);display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;justify-content:stretch;align-items:stretch;width:100%;min-width:0;gap:var(--spacer-xs);list-style:none;margin:0 0 var(--spacer-xl)}.new-design [_nghost-%COMP%] .forwarding-tabs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:auto}.new-design [_nghost-%COMP%] .forwarding-tabs[_ngcontent-%COMP%] .forwarding-tab[_ngcontent-%COMP%]{border-radius:var(--border-radius);display:flex;flex-direction:column;gap:var(--spacer-xs);align-items:center;justify-content:center;padding:0 var(--spacer-s);height:var(--aside-folded-nav-height);cursor:pointer;--svg-color: currentColor}.new-design [_nghost-%COMP%] .forwarding-tabs[_ngcontent-%COMP%] .forwarding-tab[_ngcontent-%COMP%]:hover, .new-design [_nghost-%COMP%] .forwarding-tabs[_ngcontent-%COMP%] .forwarding-tab.focus[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--background) 95%,white 5%)}.new-design [_nghost-%COMP%] .forwarding-tabs[_ngcontent-%COMP%] .forwarding-tab.focus[_ngcontent-%COMP%]{cursor:default}.new-design [_nghost-%COMP%] .forwarding-tabs[_ngcontent-%COMP%] .forwarding-tab[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{max-width:180px}"],changeDetection:0})}return e})();var Wt=l(60235);let Qt=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275cmp=t.VBU({type:e,selectors:[["app-phone-arrow-up-right-solid-icon"],["","app-phone-arrow-up-right-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M295 183l135-135L384 48c-13.3 0-24-10.7-24-24s10.7-24 24-24L488 0c13.3 0 24 10.7 24 24l0 104c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-46.1L329 217c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM117.5 1.4c19.4-5.3 39.7 4.6 47.4 23.2l40 96c6.8 16.3 2.1 35.2-11.6 46.3L144 207.3c33.3 70.4 90.3 127.4 160.7 160.7L345 318.7c11.2-13.7 30-18.4 46.3-11.6l96 40c18.6 7.7 28.5 28 23.2 47.4l-24 88C481.8 499.9 466 512 448 512C200.6 512 0 311.4 0 64C0 46 12.1 30.2 29.5 25.4l88-24z"]],template:function(o,i){1&o&&(a.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}return e})(),Jt=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275cmp=t.VBU({type:e,selectors:[["app-user-pen-solid-icon"],["","app-user-pen-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["d","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l293.1 0c-3.1-8.8-3.7-18.4-1.4-27.8l15-60.1c2.8-11.3 8.6-21.5 16.8-29.7l40.3-40.3c-32.1-31-75.7-50.1-123.9-50.1l-91.4 0zm435.5-68.3c-15.6-15.6-40.9-15.6-56.6 0l-29.4 29.4 71 71 29.4-29.4c15.6-15.6 15.6-40.9 0-56.6l-14.4-14.4zM375.9 417c-4.1 4.1-7 9.2-8.4 14.9l-15 60.1c-1.4 5.5 .2 11.2 4.2 15.2s9.7 5.6 15.2 4.2l60.1-15c5.6-1.4 10.8-4.3 14.9-8.4L576.1 358.7l-71-71L375.9 417z"]],template:function(o,i){1&o&&(a.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}return e})();var Zt=l(4202);let Kt=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275cmp=t.VBU({type:e,selectors:[["app-mobile-android-alt-light-icon"],["","app-mobile-android-alt-light-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M224 96v240H96V96h128m48-96H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM48 480c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16h224c8.8 0 16 7.2 16 16v416c0 8.8-7.2 16-16 16H48zM244 64H76c-6.6 0-12 5.4-12 12v280c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12zm-48 352h-72c-6.6 0-12 5.4-12 12v8c0 6.6 5.4 12 12 12h72c6.6 0 12-5.4 12-12v-8c0-6.6-5.4-12-12-12z"]],template:function(o,i){1&o&&(a.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}return e})(),qt=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275cmp=t.VBU({type:e,selectors:[["app-phone-alt-light-icon"],["","app-phone-alt-light-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M493.09 351.3 384.7 304.8a31.36 31.36 0 0 0-36.5 8.9l-44.1 53.9A350 350 0 0 1 144.5 208l53.9-44.1a31.35 31.35 0 0 0 8.9-36.49l-46.5-108.5A31.33 31.33 0 0 0 125 .81L24.2 24.11A31.05 31.05 0 0 0 0 54.51C0 307.8 205.3 512 457.49 512A31.23 31.23 0 0 0 488 487.7L511.19 387a31.21 31.21 0 0 0-18.1-35.7zM456.89 480C222.4 479.7 32.3 289.7 32.1 55.21l99.6-23 46 107.39-72.8 59.5C153.3 302.3 209.4 358.6 313 407.2l59.5-72.8 107.39 46z"]],template:function(o,i){1&o&&(a.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}return e})(),tn=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275cmp=t.VBU({type:e,selectors:[["app-comment-alt-solid-icon"],["","app-comment-alt-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"]],template:function(o,i){1&o&&(a.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}return e})();var nn=l(19859),en=l(9764),on=l(66409),an=l(19341),ln=l(1438),cn=l(14175),Z=l(46062),sn=l(22429),rn=l(91968),pn=l(20496),dn=l(68521),mn=l(9195),_n=l(48661);const Cn=e=>({p1:e}
1),hn=e=>({phone:e}),gn=(e,r)=>r.dateTitle,un=(e,r)=>r.call.id;function fn(e,r){if(1&e){const n=t.RV6();t.j41(0,"a",2),t.nI1(1,"translate"),t.bIt("click",function(){a.eBV(n);const i=t.XpG().phone,s=t.XpG();return a.Njj(s.smsChatService.navigateToProviderWizard(i))}),t.nrm(2,"span",3),t.k0s()}if(2&e){const n=t.XpG().phone;t.Y8G("title",t.i5U(1,1,"_i18n.SendSmsTo",t.eq3(4,Cn,n)))}}function vn(e,r){if(1&e&&(t.nVh(0,fn,3,6,"a",1),t.nI1(1,"async")),2&e){const n=t.XpG();t.vxM(t.bMT(1,1,n.smsChatService.isSmsAvailable$)?0:-1)}}function xn(e,r){if(1&e){const n=t.RV6();t.j41(0,"app-manage-contact-button",10),t.bIt("click",function(){a.eBV(n);const i=t.XpG(2),s=t.XpG();return a.Njj(s.peopleService.toggleFavorite(i))}),t.k0s()}if(2&e){const n=t.XpG(2),o=t.XpG();t.HbH(t.VkB("btn-icon ",n.isFavorite?"filled fillIconFavorite":"")),t.Y8G("text",n.isFavorite?"_i18n.RemoveFromFavorites":"_i18n.AddToFavorites")("icon",o.Star)}}function bn(e,r){if(1&e){const n=t.RV6();t.j41(0,"app-manage-contact-button",11),t.bIt("click",function(){a.eBV(n);const i=t.XpG(3);return a.Njj(i.setStatus())}),t.k0s(),t.j41(1,"app-manage-contact-button",12),t.bIt("click",function(){a.eBV(n);const i=t.XpG(3);return a.Njj(i.setCallForwarding())}),t.k0s()}if(2&e){const n=t.XpG(3);t.Y8G("icon",n.UserPen),t.R7$(),t.Y8G("icon",n.PhoneForwarded)}}function wn(e,r){if(1&e&&t.nrm(0,"lucide-icon",29),2&e){const n=t.XpG().$implicit;t.HbH(n.iconClass),t.Y8G("img",r)}}function Pn(e,r){if(1&e&&(t.nrm(0,"lucide-icon",26),t.nI1(1,"translate")),2&e){const n=t.XpG(8);t.Y8G("img",n.Voicemail)("title",t.bMT(1,2,"_i18n.Voicemail"))}}function Mn(e,r){if(1&e&&(t.j41(0,"div",22)(1,"span",23),t.nVh(2,wn,1,3,"lucide-icon",24),t.j41(3,"h6",25),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.nVh(6,Pn,2,4,"lucide-icon",26),t.j41(7,"small",27),t.EFF(8),t.k0s()(),t.j41(9,"small",28),t.EFF(10),t.k0s()()),2&e){let n;const o=r.$implicit;t.R7$(2),t.vxM((n=o.icon)?2:-1,n),t.R7$(2),t.JRh(t.bMT(5,5,o.callTypeTitle)),t.R7$(2),t.vxM(o.isVoicemail?6:-1),t.R7$(2),t.JRh(o.duration),t.R7$(2),t.JRh(o.time)}}function kn(e,r){if(1&e&&(t.j41(0,"div",19)(1,"h5",20),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"hr",21),t.k0s(),t.Z7z(5,Mn,11,7,"div",22,un)),2&e){const n=r.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,n.dateTitle)),t.R7$(3),t.Dyx(n.calls)}}function Tn(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",15)(1,"div",18),t.bIt("infiniteScrollCallback",function(){a.eBV(n);const i=t.XpG(2);return a.Njj(i.nextPage())}),t.Z7z(2,kn,7,3,null,null,gn),t.k0s()()}if(2&e){const n=t.XpG(),o=t.XpG();t.R7$(),t.Y8G("infiniteScrollContainer","#scrollBox")("infiniteScrollDistance",1)("infiniteScrollDisabled",o.disabled()),t.R7$(),t.Dyx(n)}}function Vn(e,r){1&e&&(t.j41(0,"p",16),t.nrm(1,"app-server-error",30),t.k0s()),2&e&&(t.R7$(),t.Y8G("message",r))}function In(e,r){1&e&&(t.j41(0,"p",17),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"_i18n.ContactCallHistoryIsEmpty")))}function Rn(e,r){if(1&e&&(t.j41(0,"h4",13),t.nrm(1,"lucide-icon",14),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nVh(4,Tn,4,3,"div",15)(5,Vn,2,1,"p",16)(6,In,3,3,"p",17)),2&e){let n;const o=t.XpG(),i=t.XpG(3);t.R7$(),t.Y8G("img",i.History),t.R7$(),t.JRh(t.bMT(3,3,"_i18n.CallHistory")),t.R7$(2),t.vxM(r.length?4:(n=o.error())?5:6,n)}}function jn(e,r){if(1&e&&t.nVh(0,Rn,7,5),2&e){let n;const o=t.XpG(3);t.vxM((n=o.callHistoryList())?0:-1,n)}}function Sn(e,r){if(1&e){const n=t.RV6();t.j41(0,"app-people-contact-call-forwarding",31),t.bIt("closed",function(){a.eBV(n);const i=t.XpG(3);return a.Njj(i.callForwardingRequested.set(!1))}),t.k0s()}if(2&e){const n=t.XpG(2);t.Y8G("contact",n)}}function Gn(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",4)(1,"div",5)(2,"app-contact-panel-header",6),t.bIt("closed",function(){a.eBV(n);const i=t.XpG(2);return a.Njj(i.navigateBack())}),t.nVh(3,xn,1,5,"app-manage-contact-button",7),t.nVh(4,bn,2,2),t.k0s(),t.nrm(5,"app-contact-data",8),t.j41(6,"div",9),t.nVh(7,jn,1,1),t.k0s()(),t.nVh(8,Sn,1,1,"app-people-contact-call-forwarding",8),t.k0s()}if(2&e){let n;const o=t.XpG(),i=t.XpG();t.R7$(2),t.Y8G("contact",o)("phoneNumber",o.phones.extension),t.R7$(),t.vxM(i.peopleService.canToggleFavorite(o)?3:-1),t.R7$(),t.vxM(i.isCallForwardingAllowed()?4:-1),t.R7$(),t.Y8G("contact",o),t.R7$(2),t.vxM((n=i.pager())?7:-1,n),t.R7$(),t.vxM(i.callForwardingEditMode()?8:-1)}}function $n(e,r){if(1&e){const n=t.RV6();t.j41(0,"a",47),t.nI1(1,"translate"),t.bIt("click",function(){a.eBV(n);const i=t.XpG(2),s=t.XpG();return a.Njj(s.peopleService.callToExtensionNumber(i,!0))}),t.k0s()}2&e&&t.Y8G("title",t.mNQ(t.bMT(1,2,"_i18n.Video")))}function yn(e,r){if(1&e){const n=t.RV6();t.j41(0,"a",48),t.nI1(1,"translate"),t.bIt("click",function(){a.eBV(n);const i=t.XpG(2),s=t.XpG();return a.Njj(s.peopleService.chatWithExtension(i))}),t.k0s()}2&e&&t.Y8G("title",t.mNQ(t.bMT(1,2,"_i18n.Chat")))}function Fn(e,r){if(1&e){const n=t.RV6();t.j41(0,"a",49),t.nI1(1,"translate"),t.bIt("click",function(){a.eBV(n);const i=t.XpG(2),s=t.XpG();return a.Njj(s.peopleService.toggleFavorite(i))}),t.nrm(2,"lucide-icon",29),t.k0s()}if(2&e){const n=t.XpG(2),o=t.XpG();t.Y8G("title",t.bMT(1,4,n.isFavorite?"_i18n.RemoveFromFavorites":"_i18n.AddToF
1avorites")),t.R7$(2),t.HbH(n.isFavorite?"filled fillIconFavorite":""),t.Y8G("img",o.Star)}}function On(e,r){if(1&e){const n=t.RV6();t.j41(0,"a",50),t.bIt("click",function(){a.eBV(n);const i=t.XpG(2),s=t.XpG();return a.Njj(s.phone.call(i.phones.extension))}),t.nrm(1,"span",51)(2,"span",52),t.j41(3,"span",53),t.EFF(4),t.k0s()()}if(2&e){const n=t.XpG(2);t.R7$(2),t.Y8G("translate","_i18n.Extension"),t.R7$(2),t.JRh(n.phones.extension)}}function Xn(e,r){1&e&&t.eu8(0)}function Bn(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",45)(1,"a",54),t.bIt("click",function(){a.eBV(n);const i=t.XpG(2),s=t.XpG();return a.Njj(s.phone.call(i.phones.mobile))}),t.nrm(2,"span",55)(3,"span",52),t.j41(4,"span",56),t.EFF(5),t.k0s()(),t.DNE(6,Xn,1,0,"ng-container",57),t.k0s()}if(2&e){const n=t.XpG(2);t.XpG();const o=t.sdS(1);t.R7$(3),t.Y8G("translate","_i18n.MobileNumber"),t.R7$(2),t.JRh(n.phones.mobile),t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(4,hn,n.phones.mobile))}}function Nn(e,r){if(1&e&&(t.j41(0,"a",46),t.nrm(1,"span",58)(2,"span",52),t.j41(3,"span",59),t.EFF(4),t.k0s()()),2&e){const n=t.XpG(2);t.Y8G("href",t.VkB("mailto:",n.emailAddress),t.B4B),t.R7$(2),t.Y8G("translate","_i18n.ContactData5"),t.R7$(2),t.JRh(n.emailAddress)}}function En(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",60),t.bIt("click",function(){a.eBV(n);const i=t.XpG(3);return a.Njj(i.setStatus())}),t.nrm(1,"span",61),t.j41(2,"a",62),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",63),t.bIt("click",function(){a.eBV(n);const i=t.XpG(3);return a.Njj(i.setCallForwarding())}),t.nrm(6,"span",64),t.j41(7,"a",62),t.EFF(8),t.nI1(9,"translate"),t.k0s()()}2&e&&(t.R7$(3),t.JRh(t.bMT(4,2,"_i18n.SetStatus")),t.R7$(5),t.JRh(t.bMT(9,4,"_i18n.SetCallForwarding")))}function Ln(e,r){if(1&e){const n=t.RV6();t.j41(0,"app-people-contact-call-forwarding",31),t.bIt("closed",function(){a.eBV(n);const i=t.XpG(3);return a.Njj(i.callForwardingRequested.set(!1))}),t.k0s()}if(2&e){const n=t.XpG(2);t.Y8G("contact",n)}}function An(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",32)(1,"a",33),t.bIt("click",function(){a.eBV(n);const i=t.XpG(2);return a.Njj(i.navigateBack())}),t.k0s(),t.j41(2,"span",34)(3,"span",35),t.EFF(4),t.nI1(5,"lforfl"),t.nI1(6,"async"),t.k0s(),t.j41(7,"span"),t.EFF(8),t.k0s()(),t.nrm(9,"div",36),t.j41(10,"a",37),t.nI1(11,"translate"),t.bIt("click",function(){a.eBV(n);const i=t.XpG(),s=t.XpG();return a.Njj(s.peopleService.callToExtensionNumber(i))}),t.k0s(),t.nVh(12,$n,2,4,"a",38),t.nI1(13,"async"),t.nVh(14,yn,2,4,"a",39),t.nVh(15,Fn,3,6,"a",40),t.j41(16,"app-mobile-close-button",41),t.bIt("click",function(){a.eBV(n);const i=t.XpG(2);return a.Njj(i.navigateBack())}),t.k0s()(),t.j41(17,"div",4)(18,"div",5)(19,"div",42),t.nrm(20,"app-avatar",43),t.j41(21,"div"),t.nVh(22,On,5,2,"a",44),t.nVh(23,Bn,7,6,"div",45),t.nVh(24,Nn,5,4,"a",46),t.nVh(25,En,10,6),t.k0s()()(),t.nVh(26,Ln,1,1,"app-people-contact-call-forwarding",8),t.k0s()}if(2&e){const n=t.XpG(),o=t.XpG();t.R7$(4),t.SpI(" ",t.bMT(6,17,t.bMT(5,15,n))," "),t.R7$(4),t.SpI(" ",n.phones.extension," "),t.R7$(2),t.Y8G("title",t.mNQ(t.bMT(11,19,"_i18n.Call"))),t.R7$(2),t.vxM(t.bMT(13,21,o.peopleService.isVideoCallEnabled$)&&!n.isAIAgent?12:-1),t.R7$(2),t.vxM(o.isChatEnabled()?14:-1),t.R7$(),t.vxM(o.peopleService.canToggleFavorite(n)?15:-1),t.R7$(5),t.Y8G("ext",n)("allowLetters",!1)("colorfulDefault",!1),t.R7$(2),t.vxM(n.phones.extension?22:-1),t.R7$(),t.vxM(n.phones.mobile?23:-1),t.R7$(),t.vxM(n.emailAddress?24:-1),t.R7$(),t.vxM(o.isCallForwardingAllowed()?25:-1),t.R7$(),t.vxM(o.callForwardingEditMode()?26:-1)}}function Hn(e,r){if(1&e&&t.nVh(0,Gn,9,7,"div",4)(1,An,27,23),2&e){const n=t.XpG();t.vxM(n.isNewDesign()?0:1)}}const Dn=[{path:"",component:A,data:{title:"_i18n.All",showAllUnique:!0}},{path:"chat",children:Vt.R},{path:"view",component:(()=>{class e{phone=(0,a.WQX)(T.u);peopleService=(0,a.WQX)(F.Z);myPhoneService=(0,a.WQX)(S.gx);smsChatService=(0,a.WQX)(Rt.V);router=(0,a.WQX)(M.Ix);modalService=(0,a.WQX)(U.B);isNewDesign=(0,a.WQX)(L.T);UserPen=d.tYB;XIcon=d.uv5;PhoneForwarded=d.P9u;History=d.BZB;Voicemail=d.c2U;Star=d.FEq;extensionContact=(0,w.ot)(this.peopleService.currentExtension$,{initialValue:new y.KA("-1",Z.eE.Extension,Z.Ij)});partyNumber=(0,c.EW)(()=>this.call()?.partyNumber??"");call=x.hFB.required();callForwardingRequested=(0,a.vPA)(!1);isCallForwardingAllowed=(0,c.EW)(()=>{const n=this.extensionContact();return!(!n||!this.peopleService.isReceptionist(n)||n.isAIAgent)});callForwardingEditMode=(0,c.EW)(()=>this.isCallForwardingAllowed()&&this.callForwardingRequested());isChatEnabled=(0,w.ot)(this.myPhoneService.myPhoneSession.pipe((0,h.n)(n=>n.chatIsAllowed$)),{initialValue:!1});constructor(){this.router.events.pipe((0,It.p)(n=>
1n instanceof M.wF||n instanceof M.lW),(0,w.pQ)()).subscribe(()=>{this.callForwardingRequested.set(!0===this.router.currentNavigation()?.extras.state?.callForwarding)}),(0,a.QZP)(()=>{this.extensionContact()||this.peopleService.navigatePeople()})}navigateBack(){this.peopleService.navigatePreviousUrl()}setCallForwarding(){null!=this.extensionContact()&&this.isCallForwardingAllowed()&&this.callForwardingRequested.set(!0)}setStatus(){const n=this.extensionContact();!n||!this.isCallForwardingAllowed()||this.modalService.showDialog(Wt.c,{contact:n})}pager=(0,c.EW)(()=>{const n=this.extensionContact(),o=this.partyNumber(),i=new pn.i(this.myPhoneService,new dn.Ec(n),(0,b.of)(mn.r.AllCalls));return i.search(o),i});callHistoryList=(0,w.ot)((0,w.br)(this.pager).pipe((0,h.n)(n=>n.items$),(0,_.T)(n=>{const o=n.reduce((i,s)=>{const C=new _n.iH(s);return(i[C.dateRelative]??=[]).push(C),i},{});return Object.entries(o).map(([i,s])=>({dateTitle:i,calls:s}))})));static \u0275fac=function(o){return new(o||e)};static \u0275cmp=t.VBU({type:e,selectors:[["app-people-contact-view"]],inputs:{call:[1,"call"]},decls:3,vars:1,consts:[["sms",""],[1,"sms-anchor","mhover",3,"title"],[1,"sms-anchor","mhover",3,"click","title"],["app-comment-lines-light-icon","",1,"svg-md"],[1,"split-view","flex-child"],[1,"contact-info-holder"],[3,"closed","contact","phoneNumber"],["data-qa","toggle-favorite",3,"class","text","icon"],[3,"contact"],[1,"p-4","border-top","flex-child","d-flex","flex-column","interaction-history"],["data-qa","toggle-favorite",3,"click","text","icon"],["data-qa","set-status","text","_i18n.SetStatus",3,"click","icon"],["data-qa","set-call-forwarding","text","_i18n.SetCallForwarding",3,"click","icon"],[1,"mb-3"],[1,"me-1",3,"img"],["id","scrollBox",1,"flex-child","scrollable"],[1,"text-error"],[1,"text-hint"],["infiniteScroll","",1,"d-flex","flex-column","gap-2",3,"infiniteScrollCallback","infiniteScrollContainer","infiniteScrollDistance","infiniteScrollDisabled"],[1,"d-flex","align-items-center","gap-2","group-title"],["data-qa","date-title",1,"subheader","m-0"],[1,"flex-grow-1","m-0"],["data-qa","contact-call-history-item",1,"d-flex","align-items-baseline","gap-3","py-2","px-3","border","rounded","bg-tiles"],[1,"d-flex","flex-1","align-items-baseline","gap-2","text-truncate"],[3,"img","class"],[1,"m-0","p-0"],[1,"fillIconBlue","voicemail-icon",3,"img","title"],["data-qa","duration",1,"text-hint"],[1,"text-hint","text-truncate"],[3,"img"],[3,"message"],[3,"closed","contact"],[1,"p-1","b-b","d-flex","align-items-center","aside-align","bg"],["id","backBtn","app-arrow-left-light-icon","",1,"btn","btn-plain","me-1",3,"click"],[1,"text-md","text-truncate"],[1,"me-1"],[1,"d-flex","flex-fill","align-items-center",2,"min-width","0"],["id","callBtnTile","app-phone-alt-solid-icon","",1,"btn","btn-plain",3,"click","title"],["id","videoBtnTile","app-video-solid-icon","",1,"btn","btn-plain",3,"title"],["id","chatBtnTile","app-comment-alt-solid-icon","",1,"btn","btn-plain",3,"title"],["data-qa","toggle-favorite",1,"btn","btn-plain","btn-icon",3,"title"],[3,"click"],[1,"d-flex"],["size","l",3,"ext","allowLetters","colorfulDefault"],["id","contactExtensionBtn",1,"extension-item","mhover","mb-3"],[1,"d-flex","mb-3"],["id","contactEmailAddress","target","_blank","rel","noopener",1,"extension-item","mhover","mb-3",3,"href"],["id","videoBtnTile","app-video-solid-icon","",1,"btn","btn-plain",3,"click","title"],["id","chatBtnTile","app-comment-alt-solid-icon","",1,"btn","btn-plain",3,"click","title"],["data-qa","toggle-favorite",1,"btn","btn-plain","btn-icon",3,"click","title"],["id","contactExtensionBtn",1,"extension-item","mhover","mb-3",3,"click"],["app-phone-alt-light-icon","",1,"customSVGIcons","svg-md"],[3,"translate"],["id","extNumber"],["id","contactMobileBtn",1,"extension-item","mhover",3,"click"],["app-mobile-android-alt-light-icon","",1,"customSVGIcons","svg-md"],["id","extMob"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["app-envelope-light-icon","",1,"customSVGIcons","svg-md"],["id","extEmail"],["data-qa","set-status",1,"extension-item-link",3,"click"],["app-user-pen-solid-icon","",1,"customSVGIcons","svg-md"],[1,"link"],["data-qa","set-call-forwarding",1,"extension-item-link",3,"click"],["app-phone-arrow-up-right-solid-icon","",1,"customSVGIcons","svg-sm"]],template:function(o,i){if(1&o&&(t.DNE(0,vn,2,3,"ng-template",null,0,t.C5r),t.nVh(2,Hn,2,1)),2&o){let s;t.R7$(2),t.vxM((s=i.extensionContact())?2:-1,s)}},dependencies:[jt.U,St.f,p.Mm,O.T3,Ut,d.flO,d.WGl,Qt,Jt,Zt.l,Kt,qt,tn,nn.v,en.T,on.$,ln.v,an.L,cn.W,sn.D,rn.J,Q.d,Gt._,O.Jj,p.D9],styles:['@media(max-width:1399.98px){.d-xxl-down-none[_ngcontent-%COMP%], .xxl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:1199.98px){.d-xl-down-none[_ngcontent-%COMP%], .xl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:991.98px){.d-lg-down-none[_ngcontent-%COMP%], .lg-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:767.98px){.d-md-down-none[_ngcontent-%COMP%], .md-visible[_ngcontent-%COMP%]{display:none!important}}@media(max-width:575.98px){.d-sm-down-none[_ngcontent-%COMP%], .sm-visible[_ngcontent-%COMP%]{display:none!important}}[_nghost-%COMP%]{display:flex;flex-direction:column;background:var(--bg-primary)}.new-design [_nghost-%COMP%]{background:var(--background)}.extension-item[_ngcontent-%COMP%], .extension-item-link[_ngcontent-%COMP%]{min-width:250px;height:var(--avatar-size);display:grid;align-items:center;grid-template-columns:var(--avatar-size) auto;grid-template-areas:"icon label" "icon text"}.extension-item[_ngcontent-%COMP%] .customSVGIcons[_ngcontent-%COMP%], .extension-item-link[_ngcontent-%COMP%] .customSVGIcons[_ngcontent-%COMP%]{justify-self:center;grid-area:icon}.extension-item-link[_ngcontent-%COMP%]{height:var(--input-height);grid-template-areas:"icon link"}.extension-item-link[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{grid-area:link}.sms-anchor[_ngcontent-%COMP%]{display:flex;flex:none;width:var(--avatar-size);align-items:center;justify-content:center}.contact-info-holder[_ngcontent-%COMP%]{display:flex;flex-direction:column;container-type:inline-size;min-width:min-content;flex:1 1 auto}@media(max-height:500px),(max-width:576px){.contact-info-holder[_ngcontent-%COMP%]{overflow-y:auto}.contact-info-holder[_ngcontent-%COMP%] .scrollable[_ngcontent-%COMP%]{overflow:unset}}.button-favorite[_ngcontent-%COMP%]{--svg-color: var(--favorite)}.interaction-history[_ngcontent-%COMP%] .group-title[_ngcontent-%COMP%]{padding-bottom:var(--spacer-s)}.interaction-history[_ngcontent-%COMP%] .group-title[_ngcontent-%COMP%]:not(:first-child){padding-top:var(--spacer-s)}.split-view[_ngcontent-%COMP%]{display:flex}@media(max-width:991.98px){.split-view[_ngcontent-%COMP%]:has(>*:nth-child(2)){flex-direction:column;overflow:auto}.split-view[_ngcontent-%COMP%]:has(>*:nth-child(2)) > *[_ngcontent-%COMP%]:nth-child(n+1){border-top:1px solid var(--border-color)}.split-view[_ngcontent-%COMP%]:has(>*:nth-child(2)) .interaction-history[_ngcontent-%COMP%]{max-height:400px}}@media(min-width:992px){.split-view[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:nth-child(n+1){border-left:1px solid var(--border-color)}.split-view[_ngcontent-%COMP%] app-people-contact-call-forwarding[_ngcontent-%COMP%]{flex:0 0 60%}}']})}return e})(),data:{animation:"people_view"}},{path:"favorites",component:A,data:{title:"_i18n.Favorites",showFavorites:!0}},{path:":bridgeId/:groupId",component:A,data:{showByGroup:!0},resolve:{title:E.V}}]},66409(Y,R,l){l.d(R,{$:()=>j});var _=l(35547),h=l(85802);let j=(()=>{class v{static \u0275fac=function(c){return new(c||v)};static \u0275cmp=_.VBU({type:v,selectors:[["app-arrow-left-light-icon"],["","app-arrow-left-light-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M4.7 244.7c-6.2 6.2-6.2 16.4 0 22.6l176 176c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L54.6 272 432 272c8.8 0 16-7.2 16-16s-7.2-16-16-16L54.6 240 203.3 91.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0l-176 176z"]],template:function(c,S){1&c&&(h.qSk(),_.rj2(0,"svg",0),_.Hgh(1,"path",1),_.eux())},encapsulation:2})}return v})()},83188(Y,R,l){l.d(R,{H:()=>b});var _=l(85802),h=l(68018),j=l(59882),v=l(93049),a=l(99775),x=l(66409),c=l(35547);let S=(()=>{class p{static \u0275fac=function(f){return new(f||p)};static \u0275cmp=c.VBU({type:p,selectors:[["app-question-circle-regular-icon"],["","app-question-circle-regular-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42
118.841-42 42-42 42 18.841 42 42z"]],template:function(f,T){1&f&&(_.qSk(),c.rj2(0,"svg",0),c.Hgh(1,"path",1),c.eux())},encapsulation:2})}return p})();var M=l(18530),$=l(23386),y=l(89079);const g=[[["","top-bar",""]],[["table",8,"scrollable-table"]],[["",8,"scrollable-table"],["",8,"scrollable"]],"*",[["","header",""]],[["","help",""]],[["","header-text",""]]],B=["[top-bar]","table.scrollable-table",".scrollable-table, .scrollable","*","[header]","[help]","[header-text]"];function u(p,k){if(1&p){const m=c.RV6();c.j41(0,"button",11),c.bIt("click",function(){_.eBV(m);const T=c.XpG(2);return _.Njj(T.backEmitter.next())}),c.k0s()}}function G(p,k){if(1&p&&c.nrm(0,"a",6),2&p){const m=c.XpG(2);c.Y8G("routerLink",m.backRouterLink)}}function F(p,k){if(1&p&&(c.j41(0,"h4",7)(1,"span",12),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.SdG(4,6),c.k0s()),2&p){const m=c.XpG(2);c.R7$(2),c.JRh(c.bMT(3,1,m.header))}}function V(p,k){if(1&p&&(c.j41(0,"a",10),c.nI1(1,"translate"),c.j41(2,"span"),c.EFF(3),c.nI1(4,"translate"),c.k0s(),c.nrm(5,"app-question-circle-regular-icon"),c.k0s()),2&p){const m=c.XpG(2);c.Y8G("href",c.bMT(1,2,m.helpUrl||"_i18n.OfficeUsersAdmin"),c.B4B),c.R7$(3),c.JRh(c.bMT(4,4,"_i18n.HelpPage"))}}function N(p,k){if(1&p&&(c.j41(0,"div",0)(1,"div",4),c.nVh(2,u,1,0,"button",5),c.nVh(3,G,1,1,"a",6),c.nVh(4,F,5,3,"h4",7),c.k0s(),c.j41(5,"div",8),c.SdG(6,4),c.j41(7,"div",9),c.SdG(8,5),c.nVh(9,V,6,6,"a",10),c.k0s()()()),2&p){const m=c.XpG();c.R7$(2),c.vxM(m.backRouterLink||!m.backEmitter.observed||m.hideBack?-1:2),c.R7$(),c.vxM(m.backRouterLink&&!m.hideBack?3:-1),c.R7$(),c.vxM(m.header?4:-1),c.R7$(5),c.vxM(m.isAdminSectionActive?9:-1)}}let b=(()=>{class p{router=(0,_.WQX)(j.Ix);header;disableHeader=!1;hideBack=!1;helpUrl;backRouterLink;backEmitter=new M.B;back=(0,y.p)(this.backEmitter.pipe((0,$.c)(1e3)));get isAdminSectionActive(){return this.router.url.includes("/office")}static \u0275fac=function(f){return new(f||p)};static \u0275cmp=c.VBU({type:p,selectors:[["app-page"]],inputs:{header:"header",disableHeader:"disableHeader",hideBack:"hideBack",helpUrl:"helpUrl",backRouterLink:"backRouterLink"},outputs:{back:"back"},ngContentSelectors:B,decls:8,vars:1,consts:[[1,"page-header"],["cdkScrollable","",1,"scrollable"],["cdkScrollable","",1,"scrollable","overflow-x-auto","hide-empty"],[1,"page-content"],[1,"d-flex","gap-1","align-items-center","mw-0"],["type","button","app-arrow-left-light-icon","","data-qa","back-btn",1,"btn","btn-plain"],["app-arrow-left-light-icon","","data-qa","back-to-parent",1,"btn","btn-plain",3,"routerLink"],["data-qa","header",1,"m-0"],[1,"d-flex","gap-2","flex-1","align-items-center","mw-0"],[1,"ms-auto","d-flex","gap-2"],["target","_blank","data-qa","header-help-guide-btn",1,"btn","btn-plain","fw-normal",3,"href"],["type","button","app-arrow-left-light-icon","","data-qa","back-btn",1,"btn","btn-plain",3,"click"],[1,"d-inline-block"]],template:function(f,T){1&f&&(c.NAR(g),c.nVh(0,N,10,4,"div",0),c.SdG(1),c.j41(2,"div",1),c.SdG(3,1),c.k0s(),c.SdG(4,2),c.j41(5,"div",2)(6,"div",3),c.SdG(7,3),c.k0s()()),2&f&&c.vxM(T.disableHeader?-1:0)},dependencies:[x.$,S,v.Wk,a.uv,h.D9],styles:["@media(max-width:1399.98px){.d-xxl-down-none[_ngcontent-%COMP%], .xxl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:1199.98px){.d-xl-down-none[_ngcontent-%COMP%], .xl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:991.98px){.d-lg-down-none[_ngcontent-%COMP%], .lg-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:767.98px){.d-md-down-none[_ngcontent-%COMP%], .md-visible[_ngcontent-%COMP%]{display:none!important}}@media(max-width:575.98px){.d-sm-down-none[_ngcontent-%COMP%], .sm-visible[_ngcontent-%COMP%]{display:none!important}}[_nghost-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column;background:var(--bg-primary)}[_nghost-%COMP%] .page-header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--spacer);row-gap:var(--spacer-xs);padding:calc(var(--spacer-xs) - .5px) var(--spacer);min-height:var(--aside-folded-nav-height);border-bottom:1px solid var(--border-color);flex-shrink:0}[_nghost-%COMP%] .page-header[_ngcontent-%COMP%] .overflow-x-auto[_ngcontent-%COMP%]{scrollbar-width:none}
1[_nghost-%COMP%] .page-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacer-xs);min-width:0}[_nghost-%COMP%] .page-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span[_ngcontent-%COMP%], [_nghost-%COMP%] .page-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] [header-text]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .page-content[_ngcontent-%COMP%]{max-width:1000px;padding:var(--spacer) var(--spacer-l);container-type:inline-size;min-height:100%}[_nghost-%COMP%] .page-content[_ngcontent-%COMP%]:has( tabset:first-child), [_nghost-%COMP%] .page-content[_ngcontent-%COMP%]:has( .button-group:first-child){padding-top:0}[_nghost-%COMP%] >*.scrollable, [_nghost-%COMP%] >*.scrollable-table{flex:1 1 auto;min-width:0;min-height:0}[_nghost-%COMP%] >*.scrollable:empty, [_nghost-%COMP%] >*.scrollable-table:empty{display:none}.new-design [_nghost-%COMP%] .page-header[_ngcontent-%COMP%]{border-bottom:none}.new-design [_nghost-%COMP%] .page-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:var(--font-size-h3);font-weight:var(--font-weight-bold);--svg-size: 20px;--svg-color: currentColor}.new-design [_nghost-%COMP%] .page-body[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%]:has( [top-bar] .filter-container){overflow-y:auto}"]})}return p})()}}]);
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.