1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[6351],{83503(O,M,i){i.d(M,{hotdeskingRoutes:()=>ye});var s=i(85802),g=i(17705),$=i(85343),p=i(25558),y=i(7673),u=i(28793),_=i(95847),m=i(38601),A=i(7881),k=i(59882),b=i(4801),P=i(96106),x=i(62049),S=i(96354),R=i(42610),D=i(12426),j=i(38357),E=i(97273),N=i(83185);let l=(()=>{class a{usersApiService=(0,s.WQX)(_.u);localStorageService=(0,s.WQX)(D.sj);getStoredPageSize(){const t=this.localStorageService.retrieve(R.Hh.UsersPageSize);return t?+t:E.pA}setStoredPageSize(t){this.localStorageService.store(R.Hh.UsersPageSize,t)}resolveData(t,o,n){return this.usersApiService.listUser({$orderby:["Number"],$count:!0,$filter:"startsWith(Number,'HD')",$search:(0,j.Bj)(n),$select:["IsRegistered","CurrentProfileName","Id","Number","HotdeskingAssignment"],$expand:["Phones($select=MacAddress,Name,Settings($select=IsSBC,ProvisionType))"],$skip:(t-1)*o,$top:o}).pipe((0,p.n)(c=>(0,N.Gp)(c,this.usersApiService).pipe((0,S.T)(v=>({value:(0,E.D5)(c.value||[],v.value||[],[],[],[]),totalItems:c["@odata.count"]})))))}static \u0275fac=function(o){return new(o||a)};static \u0275prov=s.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var T=i(69494),r=i(99437),d=i(52101),h=i(89079),I=i(83188),V=i(90776),U=i(38969),e=i(35547);let Q=(()=>{class a{static \u0275fac=function(o){return new(o||a)};static \u0275cmp=e.VBU({type:a,selectors:[["app-sign-out-alt-light-icon"],["","app-sign-out-alt-light-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M160 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l141.6 143.1c6.3 6.3 6.3 16.4 0 22.7L333.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H176c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l141.7-143c18.8-18.8 18.8-49.2 0-68L356.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H176c-26.5 0-48 21.6-48 48zM0 112v288c0 26.5 21.5 48 48 48h132c6.6 0 12-5.4 12-12v-8c0-6.6-5.4-12-12-12H48c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16h132c6.6 0 12-5.4 12-12v-8c0-6.6-5.4-12-12-12H48C21.5 64 0 85.5 0 112z"]],template:function(o,n){1&o&&(s.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return a})();var W=i(68845),C=i(89417),X=i(7707),z=i(84412),Y=i(50942),w=i(63674),J=i(87438),K=i(23294),Z=i(44051),q=i(29325),ee=i(42974),H=i(68018),F=i(49769);function te(a,f){1&a&&(e.j41(0,"span",12),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.Upgrade")))}function se(a,f){if(1&a&&(e.j41(0,"div",6),e.nrm(1,"app-indicator-name-type",11),e.nI1(2,"translate"),e.nI1(3,"translate"),e.nV
1h(4,te,3,3,"span",12),e.k0s()),2&a){const t=e.XpG(2);e.R7$(),e.Y8G("title",e.bMT(2,5,t.user.Registrar?"_i18n.ExtensionIsRegistered":"_i18n.ExtensionIsNotRegistered"))("indicator",t.user.Registrar?"available":"out_of_office")("name",f.Name)("type",e.bMT(3,7,t.phoneType)),e.R7$(3),e.vxM(null!=t.user.Registrar&&t.user.Registrar.FirmwareAvailable?4:-1)}}function ne(a,f){if(1&a&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&a){const t=f;e.R7$(),e.Lme("",t.Number," ",t.Name)}}function ie(a,f){if(1&a){const t=e.RV6();e.j41(0,"tr",1),e.bIt("click",function(n){s.eBV(t);const c=e.XpG();return s.Njj(c.onClick(n))}),e.j41(1,"td",2)(2,"app-checker",3),e.bIt("ngModelChange",function(n){s.eBV(t);const c=e.XpG();return s.Njj(c.selectedChange.emit(n))})("checkerClick",function(n){s.eBV(t);const c=e.XpG();return s.Njj(c.checkerClick.emit(n))}),e.k0s()(),e.j41(3,"td",4),e.nrm(4,"app-indicator-name-type",5),e.nI1(5,"translate"),e.nI1(6,"appProfileCssClass"),e.k0s(),e.j41(7,"td"),e.nVh(8,se,5,9,"div",6),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s(),e.j41(11,"td"),e.nVh(12,ne,2,2,"span"),e.nI1(13,"async"),e.k0s(),e.j41(14,"td",7)(15,"row-action-button")(16,"li",8)(17,"button",9),e.bIt("click",function(n){s.eBV(t);const c=e.XpG();return s.Njj(c.routeToEditor(n))}),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.j41(20,"li",8)(21,"button",10),e.bIt("click",function(n){s.eBV(t);const c=e.XpG();return s.Njj(c.deleteUser(n))}),e.EFF(22),e.nI1(23,"translate"),e.k0s()()()()()}if(2&a){let t,o;const n=e.XpG();e.AVh("clickable",n.clickable),e.R7$(2),e.Y8G("ngModel",n.selected),e.R7$(2),e.Y8G("title",e.bMT(5,11,n.user.IsRegistered?"_i18n.ExtensionIsRegistered":"_i18n.ExtensionIsNotRegistered"))("indicator",e.bMT(6,13,n.user.IsRegistered?n.user.CurrentProfileName:null))("name",n.user.Number),e.R7$(4),e.vxM((t=n.user.Phone)?8:-1,t),e.R7$(2),e.JRh(null==n.user.Phone?null:n.user.Phone.MacAddress),e.R7$(2),e.vxM((o=e.bMT(13,15,n.loggedId$))?12:-1,o),e.R7$(6),e.SpI(" ",e.bMT(19,17,"_i18n.Edit")," "),e.R7$(4),e.SpI(" ",e.bMT(23,19,"_i18n.Remove")," ")}}let oe=(()=>{class a{usersApiService=(0,s.WQX)(_.u);router=(0,s.WQX)(k.Ix);route=(0,s.WQX)(k.nX);modalService=(0,s.WQX)(m.B);peersApi=(0,s.WQX)(Y.L);destroy$=(0,s.WQX)(s.abz);user;selected;clickAction="none";refresh=(0,g.CGW)();selectedChange=(0,g.CGW)();checkerClick=(0,g.CGW)();selectedControl=new C.MJ(!1);hotdeskingAssignment$=new z.t("");loggedId$=this.hotdeskingAssignment$.pipe((0,p.n)(t=>t?this.peersApi.getPeerByNumber({number:t}).pipe((0,r.W)(()=>(0,y.of)(void 0))):(0,y.of)(void 0)));get clickable(){return"edit"===this.clickAction||"select"===this.clickAction}ngOnInit(){this.selectedControl.valueChanges.pipe((0,K.F)(),(0,h.pQ)(this.destroy$)).subscribe(t=>this.selectedChange.emit(t??!1))}ngOnChanges(t){t.selected&&this.selectedControl.value!==this.selected&&this.selectedControl.setValue(this.selected),t.user&&this.hotdeskingAssignment$.next(this.user.HotdeskingAssignment??"")}get phoneType(){const{IsSBC:t,ProvisionType:o}=this.user.Phone?.Settings||{};return t?"_i18n.RouterPhone":o===w.Y.LocalLan?"_i18n.LocalPhone":"_i18n.NormalPhone"}onClick(t){switch(this.clickAction){case"edit":this.routeToEditor(t);break;case"select":this.toggleSelected(t)}}routeToEditor(t){this.router.navigate([this.user.Id],{relativeTo:this.route})}deleteUser(t){const o=this.user.Id;(this.user.Phone?.Settings?.IsSBC?this.modalService.showConfirmationComponent(J.t):this.modalService.confirmDeletion("_i18n.DeletePhone")).pipe((0,p.n)(()=>this.usersApiService.deleteUser({id:o})),(0,P.Y$)()).subscribe({next:()=>{this.selectedChange.emit(!1),this.refresh.emit()},error:c=>this.modalService.error(c)})}toggleSelected(t){t.stopPropagation(),this.selectedControl.setValue(!this.selectedControl.value)}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=e.VBU({type:a,selectors:[["app-hotdesking-list-item"]],inputs:{user:"user",selected:"selected",clickAction:"clickAction"},outputs:{refresh:"refresh",selectedChange:"selectedChange",checkerClick:"checkerClick"},features:[e.OA$],decls:1,vars:1,consts:[["data-qa","user-list-item",3,"clickable"],["data-qa","user-list-item",3,"click"],[1,"checker"],[3,"ngModelChange","checkerClick","ngModel"],["nowrap",""],[1,"d-block","minw-px-100",3,"title","indicator","name"],[1,"d-flex","align-items-center","gap-1"],["data-qa","actions",1,"actions"],["role","menuitem"],["type","button","data-qa","edit-user",1,"dropdown-item",3,"click"],["type","button","data-qa","delete-user",1,"dropdown-item",3,"click"],[3,"title","indicator","name","type"],[1,"text-red"]],template:function(o,n){1&o&&e.nVh(0,ie,24,21,"tr",0),2&o&&e.vxM(n.user?0:-1)},dependencies:[X.$,C.X1,C.BC,C.YN,C.vS,Z.i,q.I,ee.t,H.D9,F.Jj],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}return a})();var ae=i(87019);function re(a,f){if(1&a&&e.nrm(0,"search-bar",7),2&a){const t=e.XpG();e.Y8G("formControl",t.pager.search)}}function le(a,f){if(1&a){const t=e.RV6();e.j41(0,"app-hotdesking-list-item",18),e.bIt("selectedChange",function(n){const c=s.eBV(t).$implicit,v=e.XpG();return s.Njj(v.selector.setSelected(c,n))})("checkerClick",function(n){const c=s.eBV(t).$implicit,v=e.XpG();return s.Njj(v.selector.handleCheckerClick(c,n))})("refresh",function(){s.eBV(t);const n=e.XpG();return s.Njj(n.refresh())}),e.k0s()}if(2&a){const t=f.$implicit,o=e.XpG();e.Y8G("user",t)("selected",o.selector.isRowSelected(t))}}let ce=(()=>{class a{addPhoneService=(0,s.WQX)(T.l);cd=(0,s.WQX)(g.gRc);router=(0,s.WQX)(k.Ix);route=(0,s.WQX)(k.nX);hotdeskingResolver=(0,s.WQX)(l);usersApiService=(0,s.WQX)(_.u);modalService=(0,s.WQX)(m.B);destroy$=(0,s.WQX)(s.abz);pager;items;selector=new x.a({cd:this.cd,keySelector:t=>t.Id});searchEnabled;constructor(){const t=this.hotdeskingResolver;this.pager=new b.f(this.destroy$,t,void 0,t.getStoredPageSize()),this.searchEnabled=!0,this.pager.pagedItems$.pipe((0,h.pQ)(this.destroy$)).subscribe({next:n=>{this.updateItems(n)},error:n=>this.modalService.error(n)})}identify(t,o){return o.Id}onPageSizeChange(t){this.hotdeskingResolver.setStoredPageSize(t),this.pager.pageSizeChanged(t)}refresh(){this.pager.refresh$.next()}updateItems(t){this.items=t.value||[],this.selector.onDataChanged(this.items),this.cd.markForCheck()}goBack(){this.router.navigate([".."],{relativeTo:this.route}).catch($.l)}addNewPhone(){this.addPhoneService.addPhone({mode:"hotdesking"}).pipe((0,p.n)(t=>this.router.navigate([t],{relativeTo:this.route}))).subscribe()}batchDelete(){const t=this.selector.selectedKeys;t.length&&(0,d.zq)(this.modalService).pipe((0,p.n)(()=>this.usersApiService.batchDelete({usersBatchDeleteRequestBody:{ids:t}}).pipe((0,P.AI)(400,"_i18n.HotdeskingNotFoundErrorMessage"))),(0,P.Tg)(this.modalService)).subscribe(()=>{this.selector.resetAll(),this.refresh()})}batchLogout(){const t=this.selector.selectedKeys;if(!t.length)return;const o=[],n=t.map(c=>this.usersApiService.updateUser({id:c,pbxUser:{HotdeskingAssignment:""}}).pipe((0,P.Pr)("_i18n.HotdeskingNotFoundCannotLogoutErrorMessage"),(0,r.W)(v=>(o.push(v),(0,y.of)(void 0))),(0,S.T)((v,_e)=>_e)));this.modalService.confirmation("_i18n.ConfirmHotdeskingLogout").pipe((0,p.n)(()=>this.modalService.progress("_i18n.Logout",t.length,(0,u.x)(...n)))).subscribe({complete:()=>{o.length&&this.modalService.error(o.map(c=>(0,A.PE)(c)).join("<br/>")),this.selector.resetAll(),this.refresh()}})}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=e.VBU({type:a,selectors:[["ng-component"]],features:[e.Jv_([T.l])],decls:41,vars:35,consts:[["header","_i18n.HDPhones","helpUrl","_i18n.HotdeskingUri",3,"back"],["top-bar","",1,"button-group"],["data-qa","add","text","_i18n.Add",3,"click"],["type","button","data-qa","delete",1,"btn","btn-primary",3,"click","disabled"],["app-trash-alt-solid-icon",""],["type","button","data-qa","logout",1,"btn","btn-primary",3,"click","disabled"],["app-sign-out-alt-light-icon",""],["top-bar","",3,"formControl"],["full-width","",1,"scrollable-table"],[1,"checker"],[3,"ngModelChange","ngModel"],[1,"col-size-100"],["nowrap","",1,"col-size-300"],["nowrap",""],[1,"actions"],["clickAction","edit",3,"user","selected"],["colspan","6"],[3,"pageChanged","itemsPerPageChanged","currentPage","itemsPerPage","totalItems","showBoundaryLinks","showPageSizes"],["clickAction","edit",3,"selectedChange","checkerClick","refresh","user","selected"]],template:function(o,n){1&o&&(e.j41(0,"app-page",0),e.bIt("back",function(){return n.goBack()}),e.j41(1,"div",1)(2,"app-button-add",2),e.bIt("click",function(){return n.addNewPhone()}),e.k0s(),e.j41(3,"button",3),e.bIt("click",function(){return n.batchDelete()}),e.nrm(4,"i",4),e.j41(5,"span"),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"button",5),e.bIt("click",function(){return n.batchLogout()}),e.nrm(9,"i",6),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.nVh(12,re,1,1,"search-bar",7),e.j41(13,"table",8)(14,"thead")(15,"tr")(16,"th",9)(17,"app-checker",10),e.bIt("ngModelChange",function(v){return n.selector.setSelectAll(v)}),e.k0s()(),e.j41(18,"th",11),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"th",12),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"th",11),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"th",13),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.nrm(30,"th",14),e.k0s()(),e.j41(31,"tbody"),e.Z7z(32,le,1,2,"app-hotdesking-list-item",15,n.identify,!0),e.k0s(),e.j41(34,"tfoot")(35,"tr")(36,"td",16)(37,"app-paging",17),e.nI1(38,"async"),e.nI1(39,"async"),e.nI1(40,"async"),e.bIt("pageChanged",function(v){return n.pager.pageChanged(v)})("itemsPerPageChanged",function(v){return n.onPageSizeChange(v)}),e.k0s()()()()()()),2&o&&(e.R7$(3),e.Y8G("disabled",!n.selector.isAnySelected),e.R7$(3),e.Lme("",e.bMT(7,17,"_i18n.Delete"),"",n.selector.selectedCountLabel),e.R7$(2),e.Y8G("disabled",!n.selector.isAnySelected),e.R7$(2),e.Lme(" ",e.bMT(11,19,"_i18n.Logout"),"",n.selector.selectedCountLabel," "),e.R7$(2),e.vxM(n.searchEnabled?12:-1),e.R7$(5),e.Y8G("ngModel",n.selector.isAnySelected),e.R7$(2),e.JRh(e.bMT(20,21,"_i18n.Extension")),e.R7$(3),e.JRh(e.bMT(23,23,"_i18n.IPPhone")),e.R7$(3),e.JRh(e.bMT(26,25,"_i18n.MAC")),e.R7$(3),e.JRh(e.bMT(29,27,"_i18n.LoggedIn")),e.R7$(4),e.Dyx(n.items),e.R7$(5),e.Y8G("currentPage",e.bMT(38,29,n.pager.currentPage$))("itemsPerPage",e.bMT(39,31,n.pager.pageSize$))("totalItems",e.bMT(40,33,n.pager.totalCount$))("showBoundaryLinks",!0)("showPageSizes",!0))},dependencies:[I.H,V.j,U.d,Q,W.L,C.X1,C.BC,C.l_,X.$,C.YN,C.vS,oe,ae.u4,H.D9,F.Jj],encapsulation:2,changeDetection:0})}return a})();var de=i(88141),he=i(45984),B=i(84360),pe=i(45054),G=i(50759),ue=i(19037);function L(a,f){return a.getUser({$select:["Phones","Number","AuthID","AuthPassword","DeskphonePassword"],$expand:["Phones"],id:f}).pipe((0,S.T)(t=>({...t,Id:f})))}
1function me(a,f){if(1&a){const t=e.RV6();e.j41(0,"edit-panel",1),e.nI1(1,"translate"),e.bIt("back",function(){s.eBV(t);const n=e.XpG();return s.Njj(n.location.back())}),e.j41(2,"app-user-phones",2),e.bIt("addPhone",function(){s.eBV(t);const n=e.XpG();return s.Njj(n.addPhone())}),e.k0s()()}if(2&a){const t=e.XpG();e.Y8G("header",e.bMT(1,9,"_i18n.Edit")+" "+t.extensionNumber)("formGroup",t.form)("save$",t.save$),e.R7$(2),e.Y8G("sbcs",t.sbcs)("user",t.user)("form",t.form)("sipPort",t.sipPort)("hotDesking",!0)("params",t.params)}}let fe=(()=>{class a{location=(0,s.WQX)(he.aZ);usersApi=(0,s.WQX)(_.u);addPhoneService=(0,s.WQX)(T.l);destroyRef=(0,s.WQX)(s.abz);params;sipPort;sbcs;form;user;extensionNumber="";userPhones;constructor(){const t=(0,s.WQX)(k.nX),o=(0,s.WQX)(g.gRc);t.data.pipe((0,h.pQ)(this.destroyRef)).subscribe(n=>{const c=n.systemParameters;this.params=n.params,this.user=n.user,this.sbcs=n.sbcs,this.sipPort=c.SipPort,this.extensionNumber=this.user.Number,this.form=(0,B.Ui)(this.user,this.params),o.markForCheck()})}get id(){return this.user.Id}save$=()=>{const t=(0,B.KB)(this.form.value);return this.usersApi.updateUser({id:this.id,pbxUser:t}).pipe((0,P.Pr)("_i18n.HotdeskingNotFoundEditErrorMessage"),(0,de.M)(()=>{this.location.back()}))};addPhone(){this.addPhoneService.addPhone({mode:"standard",userId:this.id}).pipe((0,p.n)(()=>L(this.usersApi,this.id)),(0,h.pQ)(this.destroyRef)).subscribe(t=>{this.userPhones.onPhoneAdded(t)})}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=e.VBU({type:a,selectors:[["app-edit-hotdesking"]],viewQuery:function(o,n){if(1&o&&e.GBs(G.M,5),2&o){let c;e.mGM(c=e.lsd())&&(n.userPhones=c.first)}},features:[e.Jv_([T.l])],decls:1,vars:1,consts:[["helpUrl","_i18n.HotdeskingUri",3,"header","formGroup","save$"],["helpUrl","_i18n.HotdeskingUri",3,"back","header","formGroup","save$"],[3,"addPhone","sbcs","user","form","sipPort","hotDesking","params"]],template:function(o,n){1&o&&e.nVh(0,me,3,11,"edit-panel",0),2&o&&e.vxM(n.form?0:-1)},dependencies:[pe.Q,C.X1,C.cb,C.j4,G.M,H.D9],encapsulation:2,changeDetection:0})}return a})();var ve=i(36463),Ce=i(64277),ke=i(76122);const ye=[{path:"",component:ce},{path:":id",component:fe,resolve:{user:a=>{const{id:f}=a.params,t=(0,s.WQX)(_.u),o=(0,s.WQX)(ue.s);return L(t,+f).pipe((0,r.W)(n=>o.handleError(n)))},sbcs:i(46484).i,networkInterfaces:ke.j,systemParameters:Ce.M,params:ve.cT}}]},46222(O,M,i){i.d(M,{R:()=>y,v:()=>p});var s=i(85802),g=i(68018),$=i(35547),p=function(u){return u[u.None=0]="None",u[u.Paid=1]="Paid",u[u.Enterprise=2]="Enterprise",u[u.Mcm=3]="Mcm",u}(p||{});let y=(()=>{class u{translate=(0,s.WQX)(g.c$);transform(m,A){let b,k="";switch(m&&(k=this.translate.instant(m)+" "),A){case p.Paid:b=`${m?"(":""}${this.translate.instant("_i18n.AvailableProEnt")}${m?")":""}`;break;case p.Enterprise:b=`${m?"(":""}${this.translate.instant("_i18n.AvailableEnt")}${m?")":""}`;break;case p.Mcm:b=`${m?"(":""}${this.translate.instant("_i18n.AvailableSingleCompany")}${m?")":""}`;break;default:b=""}return`${k}${b}`}static \u0275fac=function(A){return new(A||u)};static \u0275pipe=$.EJ8({name:"LicenseRestricted",type:u,pure:!0})}return u})()},94304(O,M,i){i.d(M,{Mj:()=>j,h6:()=>N,kt:()=>E});var s=i(35547),g=i(85802),$=i(49969),p=i(68173);const y="400ms cubic-bezier(0.4,0.0,0.2,1)",u=[(0,p.iF)({height:0,visibility:"hidden"}),(0,p.i0)(y,(0,p.iF)({height:"*",visibility:"visible"}))],_=[(0,p.iF)({height:"*",visibility:"visible"}),(0,p.i0)(y,(0,p.iF)({height:0,visibility:"hidden"}))];let m=(()=>{class l{set display(r){this._display=r,"none"!==r?this.isAnimated?this.toggle():this.show():this.hide()}set collapse(r){this.collapseNewValue=r,(!this._player||this._isAnimationDone)&&(this.isExpanded=r,this.toggle())}get collapse(){return this.isExpanded}constructor(r,d,h){this._el=r,this._renderer=d,this.collapsed=new g.bkB,this.collapses=new g.bkB,this.expanded=new g.bkB,this.expands=new g.bkB,this.isExpanded=!0,this.collapseNewValue=!0,this.isCollapsed=!1,this.isCollapse=!0,this.isCollapsing=!1,this.isAnimated=!1,this._display="block",this._stylesLoaded=!1,this._COLLAPSE_ACTION_NAME="collapse",this._EXPAND_ACTION_NAME="expand",this._factoryCollapseAnimation=h.build(_),this._factoryExpandAnimation=h.build(u)}ngAfterViewChecked(){this._stylesLoaded=!0,this._player&&this._isAnimationDone&&(this._player.reset(),this._renderer.setStyle(this._el.nativeElement,"height","*"))}toggle(){this.isExpanded?this.hide():this.show()}hide(){this.isCollapsing=!0,this.isExpanded=!1,this.isCollapsed=!0,this.isCollapsing=!1,this.collapses.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated,this._COLLAPSE_ACTION_NAME)(()=>{this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated?this.show():(this.collapsed.emit
1(this),this._renderer.setStyle(this._el.nativeElement,"display","none"))})}show(){this._renderer.setStyle(this._el.nativeElement,"display",this._display),this.isCollapsing=!0,this.isExpanded=!0,this.isCollapsed=!1,this.isCollapsing=!1,this.expands.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated,this._EXPAND_ACTION_NAME)(()=>{this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated?this.hide():(this.expanded.emit(this),this._renderer.removeStyle(this._el.nativeElement,"overflow"))})}animationRun(r,d){if(!r||!this._stylesLoaded)return I=>I();this._renderer.setStyle(this._el.nativeElement,"overflow","hidden"),this._renderer.addClass(this._el.nativeElement,"collapse");const h=d===this._EXPAND_ACTION_NAME?this._factoryExpandAnimation:this._factoryCollapseAnimation;return this._player&&this._player.reset(),this._player=h.create(this._el.nativeElement),this._player.play(),I=>this._player?.onDone(I)}static{this.\u0275fac=function(d){return new(d||l)(s.rXU(s.aKT),s.rXU(s.sFG),s.rXU($.S6))}}static{this.\u0275dir=s.FsC({type:l,selectors:[["","collapse",""]],hostVars:9,hostBindings:function(d,h){2&d&&(s.BMQ("aria-hidden",h.isCollapsed),s.AVh("collapse",h.isCollapse)("in",h.isExpanded)("show",h.isExpanded)("collapsing",h.isCollapsing))},inputs:{display:"display",isAnimated:"isAnimated",collapse:"collapse"},outputs:{collapsed:"collapsed",collapses:"collapses",expanded:"expanded",expands:"expands"},exportAs:["bs-collapse"]})}}return l})(),A=(()=>{class l{static forRoot(){return{ngModule:l,providers:[]}}static{this.\u0275fac=function(d){return new(d||l)}}static{this.\u0275mod=s.$C({type:l})}static{this.\u0275inj=g.G2t({})}}return l})();var k=i(49769);const b=["*"],P=[[["","accordion-heading",""]],"*"],x=["[accordion-heading]","*"],S=l=>({"text-muted":l});function R(l,T){if(1&l&&(s.j41(0,"button",4),s.EFF(1),s.k0s()),2&l){const r=s.XpG();s.Y8G("ngClass",s.eq3(2,S,r.isDisabled)),s.R7$(),s.SpI(" ",r.heading," ")}}let D=(()=>{class l{constructor(){this.closeOthers=!1,this.isAnimated=!1}static{this.\u0275fac=function(d){return new(d||l)}}static{this.\u0275prov=g.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})(),j=(()=>{class l{constructor(r){this.isAnimated=!1,this.closeOthers=!1,this.groups=[],Object.assign(this,r)}closeOtherPanels(r){this.closeOthers&&this.groups.forEach(d=>{d!==r&&(d.isOpen=!1)})}addGroup(r){r.isAnimated=this.isAnimated,this.groups.push(r)}removeGroup(r){const d=this.groups.indexOf(r);-1!==d&&this.groups.splice(d,1)}static{this.\u0275fac=function(d){return new(d||l)(s.rXU(D))}}static{this.\u0275cmp=s.VBU({type:l,selectors:[["accordion"]],hostAttrs:["role","tablist",1,"panel-group",2,"display","block"],hostVars:1,hostBindings:function(d,h){2&d&&s.BMQ("aria-multiselectable",h.closeOthers)},inputs:{isAnimated:"isAnimated",closeOthers:"closeOthers"},ngContentSelectors:b,decls:1,vars:0,template:function(d,h){1&d&&(s.NAR(),s.SdG(0))},encapsulation:2})}}return l})(),E=(()=>{class l{get isOpen(){return this._isOpen}set isOpen(r){r!==this.isOpen&&(r&&this.accordion.closeOtherPanels(this),this._isOpen=r,Promise.resolve(null).then(()=>{this.isOpenChange.emit(r)}))}constructor(r){this.isAnimated=!1,this.panelClass="panel-default",this.isDisabled=!1,this.isOpenChange=new g.bkB,this._isOpen=!1,this.accordion=r}ngOnInit(){this.accordion.addGroup(this)}ngOnDestroy(){this.accordion.removeGroup(this)}toggleOpen(){this.isDisabled||(this.isOpen=!this.isOpen)}static{this.\u0275fac=function(d){return new(d||l)(s.rXU(j))}}static{this.\u0275cmp=s.VBU({type:l,selectors:[["accordion-group"],["accordion-panel"]],hostAttrs:[1,"panel",2,"display","block"],hostVars:2,hostBindings:function(d,h){2&d&&s.AVh("panel-open",h.isOpen)},inputs:{heading:"heading",panelClass:"panelClass",isDisabled:"isDisabled",isOpen:"isOpen"},outputs:{isOpenChange:"isOpenChange"},ngContentSelectors:x,decls:9,vars:6,consts:[[1,"panel","card",3,"ngClass"],["role","tab",1,"panel-heading","card-header",3,"click","ngClass"],[1,"panel-title"],["role","button",1,"accordion-toggle"],["type","button",1,"btn","btn-link",3,"ngClass"],["role","tabpanel",1,"panel-collapse","collapse",3,"collapse","isAnimated"],[1,"panel-body","card-block","card-body"]],template:function(d,h){1&d&&(s.NAR(P),s.j41(0,"div",0)(1,"div",1),s.bIt("click",function(){return h.toggleOpen()}),s.j41(2,"div",2)(3,"div",3),s.nVh(4,R,2,4,"button",4),s.SdG(5),s.k0s()()(),s.j41(6,"div",5)(7,"div",6),s.SdG(8,1),s.k0s()()()),2&d&&(s.Y8G("ngClass",h.panelClass),s.R7$(),s.Y8G("ngClass",h.isDisabled?"panel-disabled":"panel-enabled"),s.R7$(2),s.BMQ("aria-expanded",h.isOpen),s.R7$(),s.vxM(h.heading?4:-1),s.R7$(2),s.Y8G("collapse",!h.isOpen)("isA
1nimated",h.isAnimated))},dependencies:[k.YU,A,m],styles:["[_nghost-%COMP%] .card-header.panel-enabled[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] .card-header.panel-disabled[_ngcontent-%COMP%] .btn.btn-link[_ngcontent-%COMP%]{cursor:default;text-decoration:none}"]})}}return l})(),N=(()=>{class l{static forRoot(){return{ngModule:l,providers:[]}}static{this.\u0275fac=function(d){return new(d||l)}}static{this.\u0275mod=s.$C({type:l})}static{this.\u0275inj=g.G2t({imports:[E]})}}return l})()}}]);
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.