1"use strict";(self.webpackChunkglobalm_app=self.webpackChunkglobalm_app||[]).push([[307],{20021:(P,C,n)=>{n.d(C,{r:()=>T});var t=n(62531);class T{static getDefaultMetadata(){return{is_favorite:!1,is_connected:!1,is_requested:!0,is_colleague:!1,can_direct_assignment:!1,is_following:!1,can_message:!1,can_accept_contact_request:!1}}deserialize(c){return c?(Object.assign(this,c),this.user=(new t.n5).deserialize(c.user),this):null}}},83142:(P,C,n)=>{n.d(C,{y:()=>O});var t=n(94650),T=n(13619),o=n(54004),c=n(20021),f=n(89349),g=n(66623);let O=(()=>{class d{constructor(e){this.clientService=e,this.refresh=new t.vpe}list(e){return this.clientService.get("contacts",{params:e&&e.toHttpParams()}).pipe(this.mapToPaginatorItems())}search(e){return this.clientService.get("contacts/search",{params:e&&e.toHttpParams()}).pipe(this.mapToPaginatorItems())}filter(){return this.clientService.get("contacts/filter").pipe(this.mapToFilter())}listSuggested(e){return this.clientService.get("contacts/suggested",{params:e&&e.toHttpParams()}).pipe(this.mapToPaginatorItems())}getOrganisations(){return this.clientService.get("organisations").pipe(this.mapToFilter())}get(e){return this.clientService.get(`contacts/${e}`).pipe(this.mapToContact())}getOrganisation(e){return this.clientService.get(`organisations/${e}`).pipe(this.mapToOrganisation())}delete(e){return this.clientService.delete(`contacts/${e.id}`).pipe((0,o.U)(E=>!0))}mapToPaginatorItems(){return(0,o.U)(e=>{const E=(new f.D).deserialize(e.data);return E.items=E.items.map(s=>(new c.r).deserialize(s)),E})}mapToContact(){return(0,o.U)(e=>(new c.r).deserialize(e.data.item))}mapToOrganisation(){return(0,o.U)(e=>(new g.Y).deserialize(e.data.item))}mapToFilter(){return(0,o.U)(e=>e.data.items)}}return d.\u0275fac=function(e){return new(e||d)(t.LFG(T.y))},d.\u0275prov=t.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},98021:(P,C,n)=>{n.d(C,{P:()=>h});var t=n(13619),T=n(70262),o=n(54004),c=n(94059),f=n(73741),g=n(39933),O=n(89349),d=n(94650);let h=(()=>{class e{constructor(s){this.clientService=s}list(s){return this.clientService.get("events",{params:s?s.toHttpParams():null}).pipe(this.mapToPaginator())}get(s){return this.clientService.get(`events/${s}`,{params:{include:"assignments,relays"}}).pipe(this.mapToItem())}create(s){return this.clientService.post("events",s.toFormData()).pipe(this.mapToItem(),(0,T.K)(_=>this.clientService.catchValidationError(_,s)))}update(s,_){return this.clientService.patch(`events/${s.id}`,_.toFormData()).pipe(this.mapToItem(),(0,T.K)(a=>this.clientService.catchValidationError(a,_)))}delete(s){return this.clientService.delete(`events/${s.id}`)}attachAssignments(s,_){return this.clientService.post(`events/${s}/assignments`,{assignments:_}).pipe((0,T.K)(a=>this.clientService.catchValidationError(a)))}detachAssignment(s,_){return this.clientService.delete(`events/${s}/assignments/${_}`).pipe((0,T.K)(a=>this.clientService.catchValidationError(a)))}mapToPaginator(){return(0,o.U)(s=>{const _=(new O.D).deserialize(s.data);return _.items=_.items.map(a=>this.deserializeItem(a)),_})}mapToItem(){return(0,o.U)(s=>this.deserializeItem(s.data.item))}deserializeItem(s){const _=(new c.j).deserialize(s);return _.assignments=Array.isArray(s.assignments)?s.assignments.map(a=>(new f.ot).deserialize(a)):[],_.relays=Array.isArray(s.relays)?s.relays.map(a=>(new g.Z).deserialize(a)):[],_}}return e.\u0275fac=function(s){return new(s||e)(d.LFG(t.y))},e.\u0275prov=d.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},15323:(P,C,n)=>{n.d(C,{t:()=>T});var t=n(24006);function T(o,c,f){return g=>{const O=o instanceof t.TO?o.value:o;return g.value!==O?{compare:{value:O,name:c,message:f||"VALIDATORS.COMPARE"}}:null}}},80209:(P,C,n)=>{n.d(C,{p:()=>f});var t=n(73678),T=n(54004),o=n(94650),c=n(32008);let f=(()=>{class g{constructor(d,h){this.authService=d,this.router=h}canActivate(d,h){const e=d.data.profileAccessKey;if(!e)return!0;const E=e.split(".");return this.authService.me$.pipe((0,T.U)(s=>{let _=!0;if(s?.profile?.access){let a=s?.profile?.access;E.forEach(m=>{_&&a[m]?a=a[m]:_=!1})}else _=!1;return!!_||(this.router.navigate(["/not-found"],{skipLocationChange:!0}).then(),!1)}))}}return g.\u0275fac=function(d){return new(d||g)(o.LFG(t.o),o.LFG(c.F0))},g.\u0275prov=o.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},97706:(P,C,n)=>{n.d(C,{X:()=>U});var t=n(70697),T=n(98021),o=n(94059),c=n(24006),f=n(39563),g=n(83135),O=n(40136),d=n(37545);class h extends f.I{constructor(){super({name:new c.p4(null,[(0,g.Q)()]),description:new c.p4(null),start_at:new c.p4(null,[(0,g.Q)()]),end_at:new c.p4(null),timezone:new c.p4(null,[(0,g.Q)()])}),this.get("end_at").setValidators([(0,g.Q)(),(0,d.x)(this.get("start_at"))])}setFromModel(D){this.get("name").setValue(D.name),this.get("description").setValue(D.description),this.get("start_at").setValue(D.start_at),this.get("end_at").setValue(D.end_at);const I=Intl.DateTimeFormat().resolvedOptions().timeZone??O.K8F;this.get("timezone").setValue(D.timezone??I)}}var e=n(94650),E=n(54338),s=n(36895),_=n(13359),a=n(28215),m=n(88107),i=n(51829),v=n(76188);function Z(M,D){1&M&&(e.TgZ(0,"h4",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&M&&(e.xp6(1),e.Oqu(e.l
1cZ(2,1,"NEW.Edit event")))}function b(M,D){1&M&&(e.TgZ(0,"h4",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&M&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"NEW.Add event")))}let U=(()=>{class M extends t.H{constructor(I,p,L){super(L),this.modal=I,this.eventService=p,this.injector=L,this.form=new h}ngOnInit(){this.event||(this.event=new o.j,this.event.timezone=this.me.profile.timezone??Intl.DateTimeFormat().resolvedOptions().timeZone??O.K8F),this.form.setFromModel(this.event)}onSubmit(){if(!this.form.validate()||this.pendings.has(this.PENDING_SUBMITTING))return;let I;this.pendings.add(this.PENDING_SUBMITTING),I=this.event.id?this.eventService.update(this.event,this.form):this.eventService.create(this.form),super.register(I).subscribe(p=>{this.pendings.clear(),this.modal.close(p)},p=>{this.pendings.clear()})}onCloseClick(){this.pendings.has(this.PENDING_SUBMITTING)||this.modal.dismiss()}}return M.\u0275fac=function(I){return new(I||M)(e.Y36(E.Kz),e.Y36(T.P),e.Y36(e.zs3))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-event-edit-modal"]],features:[e.qOj],decls:43,vars:42,consts:[[1,"modal-header"],["data-dismiss","modal","type","button","tabindex","-1",1,"btn-close",3,"click"],[1,"fas","fa-times"],["class","modal-title",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"modal-body"],[1,"form-group"],["type","text","formControlName","name","ngbTooltip","",1,"form-control",3,"appTooltipInvalid"],["type","text","formControlName","description","ngbTooltip","",1,"form-control",3,"appTooltipInvalid"],[1,"d-flex"],[1,"mr-3","flex-fill"],["formControlName","start_at","label","NEW.Start date",3,"timezoneFormControl","error"],[1,"form-group","flex-fill"],[1,"d-block"],["formControlName","timezone","ngbTooltip","",3,"appTooltipInvalid"],["formControlName","end_at","label","NEW.End date",3,"timezoneFormControl","error"],[1,"modal-footer"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-link","mr-2",3,"click"],[1,"btn","btn-success",3,"appPending"],[1,"modal-title"]],template:function(I,p){1&I&&(e.TgZ(0,"div",0)(1,"button",1),e.NdJ("click",function(){return p.onCloseClick()}),e._UZ(2,"i",2),e.qZA(),e.YNc(3,Z,3,3,"h4",3),e.YNc(4,b,3,3,"h4",3),e.qZA(),e.TgZ(5,"form",4),e.NdJ("ngSubmit",function(){return p.onSubmit()}),e.TgZ(6,"div",5)(7,"form",4),e.NdJ("ngSubmit",function(){return p.onSubmit()}),e.TgZ(8,"div",6)(9,"label"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e._UZ(12,"input",7),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"div",6)(15,"label"),e._uU(16),e.ALo(17,"translate"),e.qZA(),e._UZ(18,"textarea",8),e.ALo(19,"translate"),e.qZA(),e.TgZ(20,"div",9)(21,"div",10),e._UZ(22,"app-date-time-picker",11),e.ALo(23,"translate"),e.qZA(),e.TgZ(24,"div",12)(25,"label",13),e._uU(26),e.ALo(27,"translate"),e.qZA(),e._UZ(28,"app-timezone-select",14),e.ALo(29,"translate"),e.qZA()(),e.TgZ(30,"div",9)(31,"div",10),e._UZ(32,"app-date-time-picker",15),e.ALo(33,"translate"),e.qZA(),e._UZ(34,"div",12),e.qZA()()(),e.TgZ(35,"div",16)(36,"div",17)(37,"button",18),e.NdJ("click",function(){return p.onCloseClick()}),e._uU(38),e.ALo(39,"translate"),e.qZA(),e.TgZ(40,"button",19),e._uU(41),e.ALo(42,"translate"),e.qZA()()()()),2&I&&(e.xp6(3),e.Q6J("ngIf",p.event&&p.event.id),e.xp6(1),e.Q6J("ngIf",!p.event||!p.event.id),e.xp6(1),e.Q6J("formGroup",p.form),e.xp6(2),e.Q6J("formGroup",p.form),e.xp6(3),e.hij("* ",e.lcZ(11,17,"NEW.Name"),""),e.xp6(2),e.Q6J("appTooltipInvalid",e.xi3(13,19,p.form.getControlInvalidFirstErrorMessage("name"),p.form.getControlInvalidFirstError("name"))),e.xp6(4),e.Oqu(e.lcZ(17,22,"NEW.Description")),e.xp6(2),e.Q6J("appTooltipInvalid",e.xi3(19,24,p.form.getControlInvalidFirstErrorMessage("description"),p.form.getControlInvalidFirstError("description"))),e.xp6(4),e.Q6J("timezoneFormControl",p.form.get("timezone"))("error",e.xi3(23,27,p.form.getControlInvalidFirstErrorMessage("start_at"),p.form.getControlInvalidFirstError("start_at"))),e.xp6(4),e.hij("* ",e.lcZ(27,30,"CONTENT.UPLOAD.FIELDS.SHOT_TIMEZONE"),""),e.xp6(2),e.Q6J("appTooltipInvalid",e.xi3(29,32,p.form.getControlInvalidFirstErrorMessage("timezone"),p.form.getControlInvalidFirstError("timezone"))),e.xp6(4),e.Q6J("timezoneFormControl",p.form.get("timezone"))("error",e.xi3(33,35,p.form.getControlInvalidFirstErrorMessage("end_at"),p.form.getControlInvalidFirstError("end_at"))),e.xp6(6),e.Oqu(e.l
1cZ(39,38,"MODALS.BTN_CANCEL")),e.xp6(2),e.Q6J("appPending",p.pendings.has(p.PENDING_SUBMITTING)),e.xp6(1),e.Oqu(e.lcZ(42,40,"MODALS.BTN_SAVE")))},dependencies:[s.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,E._L,_.W,a.X,m.J,i.Q,v.X$],encapsulation:2}),M})()},69563:(P,C,n)=>{n.d(C,{z:()=>_});var t=n(40136),T=n(70697),o=n(94650),c=n(36895),f=n(76188);function g(a,m){if(1&a&&o._UZ(0,"i"),2&a){const i=o.oxw();o.Tol("fas "+i.iconClass)}}const O=function(a,m){return{"text-center":a,"text-left":m}};function d(a,m){if(1&a&&(o.TgZ(0,"div",0),o.Hsn(1),o.qZA()),2&a){const i=o.oxw();o.Q6J("ngClass",o.WLB(1,O,i.mode===i.NO_CONTENT_MODE_PAGE,i.mode===i.NO_CONTENT_MODE_BLOCK))}}function h(a,m){1&a&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&a&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"NO_CONTENT_NO_RESULTS")," "))}const e=function(a,m){return{"no-content":a,"alert alert-info":m}},E=function(a){return{"font-weight-bold":a}},s=["*"];let _=(()=>{class a extends T.H{constructor(i){super(i),this.injector=i,this.NO_CONTENT_MODE_PAGE=t.wUN,this.NO_CONTENT_MODE_BLOCK=t.i41,this.mode=t.wUN,this.iconClass="fa-times-circle",this.isSearchEnabled=!1}ngOnInit(){this.searchFormGroup&&(super.register(this.searchFormGroup.valueChanges).subscribe(i=>{this.setIsSearchFormEnabled(this.searchFormGroup.value)}),this.setIsSearchFormEnabled(this.searchFormGroup.value))}setIsSearchFormEnabled(i){this.isSearchEnabled=i?.filter&&!!Object.values(i.filter).find(v=>v&&""!==v)}}return a.\u0275fac=function(i){return new(i||a)(o.Y36(o.zs3))},a.\u0275cmp=o.Xpm({type:a,selectors:[["app-no-content"]],inputs:{mode:"mode",searchFormGroup:"searchFormGroup",iconClass:"iconClass"},features:[o.qOj],ngContentSelectors:s,decls:5,vars:10,consts:[[3,"ngClass"],[3,"class",4,"ngIf"],[3,"ngClass",4,"ngIf"],[4,"ngIf"]],template:function(i,v){1&i&&(o.F$t(),o.TgZ(0,"div",0),o.YNc(1,g,1,2,"i",1),o.TgZ(2,"div",0),o.YNc(3,d,2,4,"div",2),o.YNc(4,h,3,3,"div",3),o.qZA()()),2&i&&(o.Q6J("ngClass",o.WLB(5,e,v.mode===v.NO_CONTENT_MODE_PAGE,v.mode===v.NO_CONTENT_MODE_BLOCK)),o.xp6(1),o.Q6J("ngIf",v.mode===v.NO_CONTENT_MODE_PAGE),o.xp6(1),o.Q6J("ngClass",o.VKq(8,E,v.mode===v.NO_CONTENT_MODE_PAGE)),o.xp6(1),o.Q6J("ngIf",!v.isSearchEnabled),o.xp6(1),o.Q6J("ngIf",v.isSearchEnabled))},dependencies:[c.mk,c.O5,f.X$],styles:["[_nghost-%COMP%]{width:100%}.no-content[_ngcontent-%COMP%]{padding-top:5rem;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:wrap}.no-content[_ngcontent-%COMP%] .fas[_ngcontent-%COMP%]{color:#0a5ec6;font-size:41px;padding:1px 3px;margin-bottom:20px;display:inline-block}"]}),a})()},10829:(P,C,n)=>{n.d(C,{P:()=>S});var t=n(94650),o=(n(39933),n(40136)),c=n(70697),f=n(19548),g=n(36243),O=n(54338),d=n(32008),h=n(36895),e=n(76188),E=n(38537);function s(r,A){if(1&r&&(t.TgZ(0,"span",17),t._uU(1),t.qZA()),2&r){const l=t.oxw(2);t.xp6(1),t.Oqu(null==l.relay.sessions[0]||null==l.relay.sessions[0].location?null:l.relay.sessions[0].location.description)}}function _(r,A){if(1&r&&(t.TgZ(0,"span",17),t._uU(1),t.qZA()),2&r){const l=t.oxw(2);t.xp6(1),t.Oqu(null==l.relay.sessions[0]?null:l.relay.sessions[0].codec_setting.name)}}function a(r,A){if(1&r&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,s,2,1,"span",16),t.YNc(3,_,2,1,"span",16),t.qZA()()),2&r){const l=t.oxw();
1t.xp6(2),t.Q6J("ngIf",null==l.relay.sessions[0]?null:l.relay.sessions[0].location),t.xp6(1),t.Q6J("ngIf",null==l.relay.sessions[0]?null:l.relay.sessions[0].codec_setting)}}const m=function(r){return{name:r}};function i(r,A){if(1&r&&(t.TgZ(0,"div",14)(1,"div",18)(2,"span",17),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&r){const l=t.oxw();t.xp6(3),t.Oqu(t.xi3(4,1,"NEW.Managed by",t.VKq(4,m,l.relay.managed_by.name)))}}function v(r,A){if(1&r&&(t.TgZ(0,"tr")(1,"td")(2,"small",7),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"td")(6,"div",19),t._uU(7),t.ALo(8,"async"),t.ALo(9,"dynamicMoment"),t.qZA()()()),2&r){const l=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"NEW.Starts at")),t.xp6(4),t.Oqu(t.lcZ(8,4,t.Dn7(9,6,l.relay.start_at,null,l.relay.start_at_tz)))}}function Z(r,A){if(1&r&&(t.TgZ(0,"div",19),t._uU(1),t.ALo(2,"async"),t.ALo(3,"dynamicMoment"),t.qZA()),2&r){const l=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,t.Dn7(3,3,l.relay.end_at,null,l.relay.start_at_tz)))}}function b(r,A){1&r&&(t.TgZ(0,"div",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&r&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"NEW.Permanent")))}function U(r,A){1&r&&(t.TgZ(0,"div",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&r&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"NEW.Expired")))}function M(r,A){if(1&r&&(t.TgZ(0,"div",23),t._uU(1),t.qZA()),2&r){const l=A.$implicit;t.xp6(1),t.Oqu(l.name)}}function D(r,A){if(1&r&&(t.TgZ(0,"tr")(1,"td")(2,"small",21),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"td"),t.YNc(6,M,2,1,"div",22),t.qZA()()),2&r){const l=t.oxw();
1t.xp6(3),t.Oqu(t.lcZ(4,2,"NEW.Events")),t.xp6(3),t.Q6J("ngForOf",l.relay.event_groups)}}const I=function(r){return["/relay-services",r,"clone"]};function p(r,A){if(1&r&&(t.TgZ(0,"button",24)(1,"span",25),t._UZ(2,"i",26),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&r){const l=t.oxw();t.Q6J("routerLink",t.VKq(4,I,l.relay.id)),t.xp6(3),t.hij(" ",t.lcZ(4,2,"NEW.Clone")," ")}}const L=function(r){return["/relay-services",r,"manage"]};function N(r,A){if(1&r&&(t.TgZ(0,"button",24)(1,"span",25),t._UZ(2,"i",27),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&r){const l=t.oxw();t.Q6J("routerLink",t.VKq(4,L,l.relay.id)),t.xp6(3),t.hij(" ",t.lcZ(4,2,"NEW.Manage")," ")}}function x(r,A){if(1&r){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const y=t.oxw();return t.KtG(y.onDeleteClick())}),t.TgZ(1,"span",25),t._UZ(2,"i",29),t.qZA()()}}let S=(()=>{class r extends c.H{constructor(l,u,y){super(y),this.relayService=l,this.modalService=u,this.injector=y,this.FEATURE_DELETE=o.uPI,this.FEATURE_MANAGE="FEATURE_MANAGE",this.FEATURE_CLONE="FEATURE_CLONE",this.mode=o.QGg,this.showEvents=!0,this.showDelete=!1,this.deleted=new t.vpe}ngOnInit(){}isFeatureEnabled(l){switch(l){case this.FEATURE_MANAGE:return!0;case o.uPI:return this.showDelete||this.relay.access.delete;case this.FEATURE_CLONE:return!this.relay.isManagedByOtherOrganisation(this.me)}}onDeleteClick(){switch(this.mode){case o.KD1:this.deleted.emit(this.relay);break;case o.QGg:const l=this.modalService.open(g.M,{centered:!0}),u=l.componentInstance;u.mode=o.a56,u.data={name:this.relay.name},super.register(u.confirm).subscribe(()=>{u.pendings.add(this.PENDING_SUBMITTING),super.register(this.relayService.delete(this.relay)).subscribe(()=>{u.pendings.clear(),this.deleted.emit(this.relay),l.close()},y=>{u.pendings.clear()})})}}}return r.\u0275fac=function(l){return new(l||r)(t.Y36(f.D),t.Y36(O.FF),t.Y36(t.zs3))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-relay-list-item"]],inputs:{mode:"mode",relay:"relay",showEvents:"showEvents",showDelete:"showDelete"},outputs:{deleted:"deleted"},features:[t.qOj],decls:25,vars:17,consts:[[1,"card","display-mode-grid","h-100"],[1,"card-body","pb-2"],[1,"d-flex","justify-content-between"],[1,"text-primary","font-weight-bold",3,"routerLink"],["class","ml-2",4,"ngIf"],[1,"mt-2"],[4,"ngIf"],[1,"d-inline-block","mr-2","mb-1","font-weight-bold","text-nowrap"],["class","badge badge-pill badge-light mb-1",4,"ngIf"],["class","badge badge-pill badge-light ml-2 mb-1",4,"ngIf"],[1,"card-footer","pt-0"],[1,"d-flex","flex-wrap","justify-content-end"],["class","btn btn-icon",3,"routerLink",4,"ngIf"],["class","btn btn-icon icon-only",3,"click",4,"ngIf"],[1,"ml-2"],[1,"badge","badge-pill","badge-primary","text-center"],["class","d-block",4,"ngIf"],[1,"d-block"],[1,"badge","badge-pill","badge-secondary","text-center"],[1,"badge","badge-pill","badge-light","mb-1"],[1,"badge","badge-pill","badge-light","ml-2","mb-1"],[1,"d-inline-block","mr-2","mb-1","font-weight-bold"],["class","badge badge-pill badge-light mr-2 mb-1 text-free text-left",4,"ngFor","ngForOf"],[1,"badge","badge-pill","badge-light","mr-2","mb-1","text-free","text-left"],[1,"btn","btn-icon",3,"routerLink"],[1,"icon-container"],[1,"fas","fa-clone"],[1,"fas","fa-clipboard-list"],[1,"btn","btn-icon","icon-only",3,"click"],[1,"fas","fa-trash"]],template:function(l,u){1&l&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),t._uU(4),t.qZA(),t.YNc(5,a,4,2,"div",4),t.YNc(6,i,5,6,"div",4),t.qZA(),t.TgZ(7,"div",5)(8,"table"),t.YNc(9,v,10,10,"tr",6),t.TgZ(10,"tr")(11,"td")(12,"small",7),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"td"),t.YNc(16,Z,4,7,"div",8),t.YNc(17,b,3,3,"div",8),t.YNc(18,U,3,3,"div",9),t.qZA()(),t.YNc(19,D,7,4,"tr",6),t.qZA()()(),t.TgZ(20,"div",10)(21,"div",11),t.YNc(22,p,5,6,"button",12),t.YNc(23,N,5,6,"button",12),t.YNc(24,x,3,0,"button",13),t.qZA()()()),2&l&&(t.xp6(3),t.Q6J("routerLink",t.VKq(15,L,u.relay.id)),t.xp6(1),t.Oqu(u.relay.name),t.xp6(1),t.Q6J("ngIf",u.relay.sessions&&!u.relay.isManagedByOtherOrganisation(u.me)),t.xp6(1),t.Q6J("ngIf",u.relay.isManagedByOtherOrganisation(u.me)),t.xp6(3),t.Q6J("ngIf",u.relay.start_at),t.xp6(4),t.Oqu(t.lcZ(14,13,"NEW.Ends at")),t.xp6(3),t.Q6J("ngIf",!u.relay.permanent&&u.relay.end_at),t.xp6(1),t.Q6J("ngIf",u.relay.permanent),t.xp6(1),t.Q6J("ngIf",u.relay.isExpired()),t.xp6(1),t.Q6J("ngIf",u.showEvents&&u.relay.event_groups&&u.relay.event_groups.length),t.xp6(3),t.Q6J("ngIf",u.is
1FeatureEnabled(u.FEATURE_CLONE)),t.xp6(1),t.Q6J("ngIf",u.isFeatureEnabled(u.FEATURE_MANAGE)),t.xp6(1),t.Q6J("ngIf",u.isFeatureEnabled(u.FEATURE_DELETE)))},dependencies:[d.rH,d.yS,h.sg,h.O5,e.X$,h.Ov,E.L]}),r})()},51829:(P,C,n)=>{n.d(C,{Q:()=>_});var t=n(94650),T=n(54004),o=n(39646);class c{deserialize(m){return m?(Object.assign(this,m),this):null}}var f=n(78480);let g=(()=>{class a{constructor(i){this.contentService=i,this.items=[]}list(){return this.items.length?(0,o.of)(this.items):this.contentService.getForm().pipe((0,T.U)(i=>{if(i&&i.timezone){const v=i.timezone.map(Z=>(new c).deserialize(Z));return this.items=v,v}return[]}))}}return a.\u0275fac=function(i){return new(i||a)(t.LFG(f._))},a.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var O=n(70697),d=n(24006),h=n(71884),e=n(36895),E=n(76188);function s(a,m){if(1&a&&(t.TgZ(0,"option",1),t._uU(1),t.qZA()),2&a){const i=m.$implicit;t.Q6J("ngValue",i.value),t.xp6(1),t.AsE("",i.value," (",i.offset,")")}}let _=(()=>{class a extends O.H{constructor(i,v){super(v),this.timezoneService=i,this.injector=v,this.formControl=new d.p4,this.timezones=[],this.isDisabled=!1,this.onChange=Z=>{},this.onTouched=()=>{}}ngOnInit(){super.register(this.timezoneService.list()).subscribe(i=>{this.timezones=i}
1),super.register(this.formControl.valueChanges).pipe((0,h.x)()).subscribe(i=>{this.onChange(i),this.onTouched()})}get value(){return this.formControl.value}set value(i){this.formControl.setValue(i,{emitEvent:!1})}writeValue(i){this.formControl.setValue(i,{emitEvent:!1})}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.isDisabled=i,i?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1})}}return a.\u0275fac=function(i){return new(i||a)(t.Y36(g),t.Y36(t.zs3))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-timezone-select"]],features:[t._Bn([{provide:d.JU,useExisting:(0,t.Gpc)(()=>a),multi:!0}]),t.qOj],decls:5,vars:6,consts:[[1,"form-control",3,"formControl"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"]],template:function(i,v){1&i&&(t.TgZ(0,"select",0)(1,"option",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,s,2,3,"option",2),t.qZA()),2&i&&(t.Q6J("formControl",v.formControl),t.xp6(1),t.Q6J("ngValue",null),t.xp6(1),t.Oqu(t.lcZ(3,4,"NEW.Select timezone")),t.xp6(2),t.Q6J("ngForOf",v.timezones))},dependencies:[d.YN,d.Kr,d.EJ,d.JJ,d.oH,e.sg,E.X$]}),a})()},40106:(P,C,n)=>{n.d(C,{Y:()=>d});var t=n(94650),T=n(70697),o=n(40136),c=n(54338),f=n(36895),g=n(13359),O=n(76188);let d=(()=>{class h extends T.H{constructor(E,s){super(s),this.modal=E,this.injector=s,this.data={},this.mode=o.l06,this.confirm=new t.vpe}ngOnInit(){this.pendings.clear()}getConfirmationButtonClass(){switch(this.mode){case o.l06:case o.IFZ:case o.TWX:case o.$b_:case o.b4G:case o.F2G:case o.CJZ:case o.O5Y:return"btn btn-danger";default:return"btn btn-success"}}onConfirm(){this.confirm.emit(!0),this.pendings.add(this.PENDING_SUBMITTING),this.mode!==o.ACy&&this.modal.close(!0)}onCloseClick(){this.modal.dismiss()}}return h.\u0275fac=function(E){return new(E||h)(t.Y36(c.Kz),t.Y36(t.zs3))},h.\u0275cmp=t.Xpm({type:h,selectors:[["app-confirmation-modal"]],inputs:{data:"data",mode:"mode",messageText:"messageText"},outputs:{confirm:"confirm"},features:[t.qOj],decls:15,vars:15,consts:[[1,"modal-header"],["data-dismiss","modal","type","button","tabindex","-1",1,"btn-close",3,"click"],[1,"fas","fa-times"],[1,"modal-title"],[1,"modal-body",3,"innerHTML"],[1,"modal-footer"],["type","button",3,"ngClass","appPending","click"],["type","button",1,"btn","btn-link",3,"click"]],template:function(E,s){1&E&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(){return s.onCloseClick()}),t._UZ(2,"i",2),t.qZA(),t.TgZ(3,"h4",3),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t._UZ(6,"div",4),t.ALo(7,"translate"),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return s.onConfirm()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return s.onCloseClick()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()),2&E&&(t.xp6(4),t.Oqu(t.lcZ(5,6,"Are you sure?")),t.xp6(2),t.Q6J("innerHTML",s.messageText||t.xi3(7,8,s.mode+"_TEXT",s.data),t.oJD),t.xp6(3),t.Q6J("ngClass",s.getConfirmationButtonClass())("appPending",s.pendings.has(s.PENDING_SUBMITTING)),t.xp6(1),t.Oqu(t.lcZ(11,11,s.mode+"_CONFIRM")),t.xp6(3),t.Oqu(t.lcZ(14,13,"Cancel")))},dependencies:[f.mk,g.W,O.X$],encapsulation:2}),h})()},36243:(P,C,n)=>{n.d(C,{M:()=>E});var t=n(94650),T=n(40136),o=n(70697),c=n(39563),f=n(24006),g=n(83135),O=n(15323),d=n(54338),h=n(28215),e=n(76188);let E=(()=>{class s extends o.H{constructor(a,m){super(m),this.modal=a,this.injector=m,this.data={},this.mode=T.l06,this.confirm=new t.vpe}ngOnInit(){this.form=new c.I({name:new f.p4(null,[(0,g.Q)(),(0,O.t)(this.data.name)])})}onSubmit(){!this.form.validate()||(this.confirm.emit(!0),this.modal.close())}onCloseClick(){this.modal.dismiss()}}return s.\u0275fac=function(a){return new(a||s)(t.Y36(d.Kz),t.Y36(t.zs3))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-dangerous-confirmation-modal"]],inputs:{data:"data",mode:"mode"},outputs:{confirm:"confirm"},features:[t.qOj],decls:17,vars:16,consts:[[1,"modal-header"],["data-dismiss","modal","type","button","tabindex","-1",1,"btn-close",3,"click"],[1,"fas","fa-times"],[1,"modal-title"],[3,"formGroup","ngSubmit"],[1,"modal-body"],[1,"pb-3",3,"innerHTML"],[1,"form-group"],["type","text","formControlName","name","ngbTooltip","",1,"form-control",3,"appTooltipInvali
1d"],[1,"modal-footer"],[1,"btn","btn-danger","btn-block",3,"disabled"]],template:function(a,m){1&a&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(){return m.onCloseClick()}),t._UZ(2,"i",2),t.qZA(),t.TgZ(3,"h4",3),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"form",4),t.NdJ("ngSubmit",function(){return m.onSubmit()}),t.TgZ(7,"div",5),t._UZ(8,"div",6),t.ALo(9,"translate"),t.TgZ(10,"div",7),t._UZ(11,"input",8),t.ALo(12,"translate"),t.qZA()(),t.TgZ(13,"div",9)(14,"button",10),t._uU(15),t.ALo(16,"translate"),t.qZA()()()),2&a&&(t.xp6(4),t.Oqu(t.lcZ(5,6,m.mode+"_TITLE_TEXT")),t.xp6(2),t.Q6J("formGroup",m.form),t.xp6(2),t.Q6J("innerHTML",t.xi3(9,8,m.mode+"_TEXT",m.data),t.oJD),t.xp6(3),t.Q6J("appTooltipInvalid",t.xi3(12,11,m.form.getControlInvalidFirstErrorMessage("name"),m.form.getControlInvalidFirstError("name"))),t.xp6(3),t.Q6J("disabled",!m.form.valid),t.xp6(1),t.Oqu(t.lcZ(16,14,"DANGEROUS_CONFIRMATION_MODAL_CONFIRM")))},dependencies:[f._Y,f.Fj,f.JJ,f.JL,f.sg,f.u,d._L,h.X,e.X$]}),s})()}}]);
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.