1"use strict";(self.webpackChunkcept=self.webpackChunkcept||[]).push([[6948],{6948:(S,h,r)=>{r.r(h),r.d(h,{EmailGroupsComponent:()=>p});var t=r(4438),g=r(177),_=r(1780),b=r(5289),v=r(7798),m=r(7952),x=r(7129),P=r(9792),O=r(1413),u=r(6977),w=r(9172),y=r(3946),D=r(9261),C=r(3990);const n=["tableRef"],d=(s,f)=>({sortBy:s,descending:f});function a(s,f){if(1&s){const e=t.RV6();t.j41(0,"tr")(1,"td")(2,"a",6),t.EFF(3),t.k0s()(),t.j41(4,"td"),t.EFF(5),t.nI1(6,"date"),t.k0s(),t.j41(7,"td")(8,"button",7),t.bIt("click",function(){const i=t.eBV(e).$implicit,c=t.XpG();return t.Njj(c.ubsubscribe(i))}),t.k0s()()()}if(2&s){const e=f.$implicit;t.R7$(2),t.Y8G("href",e.url,t.B4B),t.R7$(),t.SpI(" ",e.name," "),t.R7$(2),t.JRh(t.i5U(6,4,e.date,"dd/MM/YY HH:mm:ss")),t.R7$(3),t.Y8G("disabled",e.isUnsubscribing)}}function l(s,f){if(1&s){const e=t.RV6();t.j41(0,"app-paging",8),t.bIt("change",function(i){t.eBV(e);const c=t.XpG();return t.Njj(c.updateFilter({page:i}))}),t.k0s()}if(2&s){const e=t.XpG();t.Y8G("page",e.page)("pageSize",e.data.pageSize)("totalCount",(null==e.emailGroups?null:e.emailGroups.length)||0)("withArrows",!0)}}let p=(()=>{class s{constructor(e,o,i,c){this.translateService=e,this.groupsService=o,this.route=i,this.router=c,this.alive$=new O.B,this.onSort=this._onSort.bind(this)}ngOnInit(){this.tableHeaders=function M(s){return[{title:s.instant("EmailGroupsPage.Table.Headers.Name"),propertyName:"name"},{title:s.instant("EmailGroupsPage.Table.Headers.Date"),propertyName:"date"},{title:s.instant("EmailGroupsPage.Table.Headers.Unsubscribe"),propertyName:""}]}(this.translateService),this.emailGroups=[...this.data.items],this.route.queryParams.pipe((0,u.Q)(this.alive$),(0,w.Z)({}),(0,y.J)()).subscribe(([e,o])=>{this.page=Number(o.page)||0,o.sortField&&(o.sortField!==e.sortField||o.sortDirection!==e.sortDirection)&&this.sort(o.sortField,"desc"===o.sortDirection?.toLowerCase()),this.updateEmailGroupsPaged(),setTimeout(()=>{const{top:i}=(0,D.N)(this.tableRef.nativeElement);scroll({top:i-160,behavior:"smooth"})})})}sort(e,o){"date"===e?(0,m.my)(this.emailGroups,o,e):(0,m.NM)(this.emailGroups,o,e)}updateEmailGroupsPaged(){this.emailGroupsPaged=this.emailGroups.slice(this.page*this.data.pageSize,(this.page+1)*this.data.pageSize)}updateFilter(e){this.router.navigate([],{relativeTo:this.route,queryParams:e,queryParamsHandling:"merge"})}_onSort(e,o){this.updateFilter({sortField:e,sortDirection:o?"desc":"asc",page:0})}ubsubscribe(e){confirm(this.translateService.instant("Common.AreYouSure"))&&(e.isUnsubscribing=!0,this.groupsService.unsubscribeEmailGroup(e.groupId).pipe((0,u.Q)(this.alive$)).subscribe({next:o=>{this.emailGroups=this.emailGroups.filter(i=>i.groupId!==e.groupId),this.updateEmailGroupsPaged()},error:({})=>{e.isUnsubscribing=!1}}))}ngOnDestroy(){this.alive$.next(null),this.alive$.complete()}static{this.\u0275fac=function(o){return new(o||s)(t.rXU(_.c$),t.rXU(P.UP),t.rXU(C.nX),t.rXU(C.Ix))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-email-groups"]],viewQuery:function(o,i){if(1&o&&t.GBs(n,5,t.aKT),2&o){let c;t.mGM(c=t.lsd())&&(i.tableRef=c.first)}},inputs:{data:"data"},standalone:!0,features:[t.aNF],decls:14,vars:18,consts:[["tableRef",""],[1,"page"],[1,"page__title"],[1,"page__description"],[1,"table",3,"tableHeaders","isTableSortable","initialSortingData","sortFunc"],[3,"page","pageSize","totalCount","withArrows"],["ublLink","",3,"href"],[1,"remove",3,"click","disabled"],[3,"change","page","pageSize","totalCount","withArrows"]],template:function(o,i){if(1&o&&(t.j41(0,"div",1)(1,"h1",2),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"p",3),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"app-table",4,0),t.nI1(9,"async"),t.nI1(10,"async"),t.Z7z(11,a,9,7,"tr",null,t.fX1),t.k0s(),t.DNE(13,l,1,4,"app-paging",5),t.k0s()),2&o){let c;t.R7$(2),t.SpI(" ",t.bMT(3,7,"EmailGroupsPage.Title")," "),t.R7$(3),t.SpI(" ",t.bMT(6,9,"EmailGroupsPage.Description")," "),t.R7$(2),t.Y8G("tableHeaders",i.tableHeaders)("isTableSortable",!0)("initialSortingData",t.l_i(15,d,null==(c=t.bMT(9,11,i.route.queryParams))?null:c.sortField,"desc"===(null==(c=t.bMT(10,13,i.route.queryParams))?null:c.sortDirection)))("sortFunc",i.onSort),t.R7$(4),t.Dyx(i.emailGroupsPaged),t.R7$(2),t.vxM(13,((null==i.emailGroups?null:i.emailGroups.length)||0)>i.data.pageSize?13:-1)}},dependencies:[g.MD,g.Jj,g.vh,_.h,_.D9,b.O,v.d,x.u],styles:['.page[_ngcontent-%COMP%]{color:var(--base-text-color);font-family:var(--secondary-text-normal);font-size:18px;line-height:1.55;padding:0 20px 100px}.page__title[_ngcontent-%COMP%]{font-family:var(--primary-text-normal);text-transform:uppercase;font-size:var(--big-titles-font-size);color:var(--base-text-color);margin-bottom:20px}.page__description[_ngcontent-%COMP%]{margin-bottom:42px}.table[_ngcontent-%COMP%] td, .table[_ngcontent-%COMP%] th{padding:9px 5px 12px!important}.table[_ngcontent-%COMP%] td:first-child, .table[_ngcontent-%COMP%] th:first-child{width:250px;padding:9px 5px 12px 20px!important}.table[_ngcontent-%COMP%] td:last-child, .table[_ngcontent-%COMP%] th:last-child{text-align:right!important;padding:9px 20px 12px!important}.table[_ngcontent-%COMP%] th{background-color:var(--base-light-bg)}.table[_ngcontent-%COMP%] a{color:var(--link-color);cursor:pointer;text-decoration:none;background-color:transparent;border:none;padding:0}.table[_ngcontent-%COMP%] a:hover{text-decoration:underline}.table[_ngcontent-%COMP%] a:visited{color:var(--link-visited-color)}.remove[_ngcontent-%COMP%]{width:16px;height:16px;border:none;background:transparent;position:relative;color:var(--border-color-for-light-bg-4)}.remove[_ngcontent-%COMP%]:before, .remove[_ngcontent-%COMP%]:after{content:"";width:22.6274169982px;height:2px;background-color:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-45deg)}.remove[_ngcontent-%COMP%]:after{transform:translate(-50%,-50%) rotate(-135deg)}.remove[_ngcontent-%COMP%]:disabled{cursor:progress}']})}}return s})()},5289:(S,h,r)=>{r.d(h,{O:()=>C});var t=r(4438),g=r(177),_=r(1780),b=r(7952);const v=[[["","headers",""]],"*",[["","th-element",""]]],M=["[headers]","*","[th-element]"],m=n=>({"alternative-color-scheme":n}),x=n=>({"header-row__cell--sortable":n});function P(n,d){1&n&&t.SdG(0,2)}function O(n,d){1&n&&(t.j41(0,"span",7),t.nrm(1,"span",8)(2,"span",9),t.k0s())}function u(n,d){if(1&n&&t.DNE(0,O,3,0,"span",7),2&n){const a=t.XpG().$implicit,l=t.XpG(2);t.vxM(0,a.title&&(null==l.sortingData?null:l.sortingData.sortBy)!==a.propertyName?0:-1)}}function w(n,d){if(1&n&&(t.j41(0,"span",7),t.nrm(1,"span"),t.k0s()),2&n){const a=t.XpG(3);t.R7$(),t.ZvI("icon icon-dropdown-",a.sortingData.descending?"up":"down","")}}function y(n,d){if(1&n){const a=t.RV6();t.j41(0,"th",5),t.bIt("click",function(){const p=t.eBV(a).$implicit,s=t.XpG(2);return t.Njj(s.onTableHeaderClick(p))}),t.DNE(1,P,1,0),t.j41(2,"span",6),t.EFF(3),t.DNE(4,u,1,1)(5,w,2,3,"span",7),t.k0s()()}if(2&n){const a=d.$implicit,l=t.XpG(2);t.Y8G("ngClass",t.eq3(5,x,a.propertyName)),t.R7$(),t.vxM(1,a.hasElement?1:-1),t.R7$(2),t.SpI(" ",a.title," "),t.R7$(),t.vxM(4,l.isTableSortable&&a.propertyName?4:-1),t.R7$(),t.vxM(5,a.title&&(null==l.sortingData?null:l.sortingData.sortBy)===a.propertyName?5:-1)}}function D(n,d){if(1&n&&(t.j41(0,"tr",2),t.Z7z(1,y,6,7,"th",4,t.fX1),t.k0s()),2&n){const a=t.XpG();t.R7$(),t.Dyx(a.tableHeaders)}}let C=(()=>{class n{get _withScroll(){return this.withScroll}constructor(){this.sorted=new t.bkB}ngOnChanges(){this.isTableSortable&&(this.sortingData=this.initialSortingData??{sortBy:null,descending:!0})}
1onTableHeaderClick(a){if(!a.propertyName)return;a.propertyName===this.sortingData.sortBy?this.sortingData.descending=!this.sortingData.descending:(this.sortingData.sortBy=a.propertyName,this.sortingData.descending=!1);let l=this.getSortFunc();this.tableData=this.sortFunc?this.sortFunc(this.sortingData.sortBy,this.sortingData.descending):l(this.tableData,this.sortingData.descending,this.sortingData.sortBy),this.emitAfterSort&&this.sorted.emit({sortBy:this.sortingData.sortBy,descending:this.sortingData.descending})}getSortFunc(){return"string"==typeof this.tableData?.[0]?.[this.sortingData.sortBy]?"date"===this.sortingData.sortBy?b.my:b.NM:b.B8}static{this.\u0275fac=function(l){return new(l||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-table"]],hostVars:2,hostBindings:function(l,p){2&l&&t.AVh("table-scroll",p._withScroll)},inputs:{tableHeaders:"tableHeaders",isTableSortable:"isTableSortable",initialSortingData:"initialSortingData",tableData:"tableData",withScroll:"withScroll",emitAfterSort:"emitAfterSort",sortFunc:"sortFunc",alternativeColorScheme:"alternativeColorScheme"},outputs:{sorted:"sorted"},standalone:!0,features:[t.OA$,t.aNF],ngContentSelectors:M,decls:6,vars:4,consts:[[1,"table",3,"ngClass"],[1,"table__header"],[1,"table__header-row","header-row"],[1,"table__body"],[1,"header-row__cell",3,"ngClass"],[1,"header-row__cell",3,"click","ngClass"],[1,"header-row__cell-title"],[1,"sort-icons"],[1,"icon","icon-dropdown-down"],[1,"icon","icon-dropdown-up"]],template:function(l,p){1&l&&(t.NAR(v),t.j41(0,"table",0)(1,"thead",1),t.DNE(2,D,3,0,"tr",2),t.SdG(3),t.k0s(),t.j41(4,"tbody",3),t.SdG(5,1),t.k0s()()),2&l&&(t.Y8G("ngClass",t.eq3(2,m,p.alternativeColorScheme)),t.R7$(2),t.vxM(2,null!=p.tableHeaders&&p.tableHeaders.length?2:-1))},dependencies:[g.MD,g.YU,_.h],styles:[".table[_ngcontent-%COMP%]{font-size:var(--small-font-size);width:100%;max-width:100%;line-height:20px;margin-bottom:20px}.table__header[_ngcontent-%COMP%]{background:var(--light-bg3);font-family:var(--primary-text-bold)}.table.alternative-color-scheme[_ngcontent-%COMP%] .table__header[_ngcontent-%COMP%]{background:var(--base-light-bg)}.table[_ngcontent-%COMP%] .header-row__cell[_ngcontent-%COMP%]{text-transform:uppercase;position:relative;padding:10px 20px;vertical-align:middle;-webkit-user-select:none;user-select:none;text-align:left}.table[_ngcontent-%COMP%] .header-row__cell--sortable[_ngcontent-%COMP%]{cursor:pointer}.table[_ngcontent-%COMP%] .header-row__cell[_ngcontent-%COMP%] .sort-icons[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);left:calc(100% + 10px)}.table[_ngcontent-%COMP%] .header-row__cell[_ngcontent-%COMP%] .sort-icons[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{display:flex;height:7px}.table[_ngcontent-%COMP%] .header-row__cell[_ngcontent-%COMP%] .sort-icons[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:before{color:var(--darker-bg-5);font-size:var(--smaller-font-size)}.table[_ngcontent-%COMP%] .header-row__cell-title[_ngcontent-%COMP%]{display:inline-flex;position:relative;height:100%;align-items:center;width:max-content}.table__body[_ngcontent-%COMP%]{font-family:var(--secondary-text-normal)}.table[_ngcontent-%COMP%] .border{border-bottom:1px solid var(--border-color-for-ligt-bg)}.table[_ngcontent-%COMP%] .row:nth-of-type(2n){background-color:var(--light-bg3)}.table[_ngcontent-%COMP%] .row:nth-of-type(2n)+.expanded-row{background-color:var(--light-bg3)}.table[_ngcontent-%COMP%] .row, .table[_ngcontent-%COMP%] .expanded-row{min-height:40px}.table[_ngcontent-%COMP%] .row__cell, .table[_ngcontent-%COMP%] .expanded-row__cell{display:table-cell;padding:10px 20px;vertical-align:top}.table[_ngcontent-%COMP%] .row__cell--link, .table[_ngcontent-%COMP%] .expanded-row__cell--link{color:var(--primary-text-color);display:block}.table[_ngcontent-%COMP%] .row__cell--link:hover, .table[_ngcontent-%COMP%] .expanded-row__cell--link:hover{text-decoration:underline}.table[_ngcontent-%COMP%] .row__cell .name-link, .table[_ngcontent-%COMP%] .expanded-row__cell .name-link{font-family:var(--primary-text-bold)}.table[_ngcontent-%COMP%] .row__cell--select-wrapper, .table[_ngcontent-%COMP%] .expanded-row__cell--select-wrapper{position:relative}.table[_ngcontent-%COMP%] .row__cell--select-wrapper:after, .table[_ngcontent-%COMP%] .expanded-row__cell--select-wrapper:after{content:var(--icon-dropdown-down);position:absolute;font-family:var(--icomoon-font);top:50%;transform:translateY(-50%);right:5px;font-size:12px;pointer-events:none}.table[_ngcontent-%COMP%] .row__cell--select-wrapper select, .table[_ngcontent-%COMP%] .expanded-row__cell--select-wrapper select{width:100%;outline:none;padding:10px 15px;appearance:none;font-family:var(--secondary-text-normal);border:none}.table[_ngcontent-%COMP%] .row__cell--remove-btn, .table[_ngcontent-%COMP%] .expanded-row__cell--remove-btn{cursor:pointer;border:none;background-color:initial}.table[_ngcontent-%COMP%] .row__cell--remove-btn:before, .table[_ngcontent-%COMP%] .expanded-row__cell--remove-btn:before{color:var(--base-text-color)}.table[_ngcontent-%COMP%] .expanded-row--cell{padding:10px 20px}.table[_ngcontent-%COMP%] .expanded-row__content{padding:0 20px;position:relative;display:flex}.table.alternative-color-scheme[_ngcontent-%COMP%] .row:nth-of-type(2n){background-color:var(--base-light-bg)}.table.alternative-color-scheme[_ngcontent-%COMP%] .row:nth-of-type(2n)+.expanded-row{background-color:var(--base-light-bg)}"]})}}return n})()}}]);
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.