1import{a as Ae}from"./chunk-TLDH6SA4.js";import{a as j,b as Se,d as ye}from"./chunk-2FBLYSQG.js";import{a as Te}from"./chunk-4RAI6THS.js";import{a as ve}from"./chunk-RKRZTP7U.js";import{a as xe,b as Fe,c as Ie,d as be,e as we,f as R}from"./chunk-G6JDCWDM.js";import"./chunk-ERFLRXVQ.js";import{a as he}from"./chunk-YMDVW5FD.js";import"./chunk-UB6QNVRM.js";import{a as Ce}from"./chunk-JHZD34BJ.js";import{a as E}from"./chunk-MMBMOIDV.js";import"./chunk-XSNTHPBI.js";import"./chunk-7SEEFNUX.js";import{a as G}from"./chunk-TGMD5NYZ.js";import{a as me,b as ge,c as fe}from"./chunk-LJHPGWLV.js";import{a as _e}from"./chunk-CCHYZV24.js";import"./chunk-QQ46FBEU.js";import{a as ue}from"./chunk-6Y7HRAOR.js";import"./chunk-OLLNPAQS.js";import"./chunk-FDYFDUR3.js";import"./chunk-65RTA2NZ.js";import{q as ce}from"./chunk-A3364LFD.js";import{b as pe}from"./chunk-4O4ZC76I.js";import{h as re,i as oe,l as P,n as ae,q as de,u as le}from"./chunk-GF52ZLA4.js";import"./chunk-KCQQPDMT.js";import{$ as z}from"./chunk-3TGTSPZJ.js";import{a as se,b as k}from"./chunk-MNYHBXZY.js";import{a as D,c as q}from"./chunk-7UKIXG2M.js";import{g as ie,i as ne}from"./chunk-XVV3EBMI.js";import{$b as $,Ab as C,Bb as K,Cb as L,Db as O,Ea as f,Eb as B,Fa as _,Fb as d,Gb as l,Hb as Q,Ia as U,Ib as w,Jb as T,Jc as Z,Lb as I,Lc as ee,Mc as te,Na as y,Ob as h,Qb as s,W as H,a as V,ab as o,ac as p,b as W,bb as A,bc as v,cc as x,dc as X,jc as S,kb as M,mb as J,mc as c,nc as m,oc as Y,rb as u,vb as g,wa as b}from"./chunk-Y7SJDQ4B.js";var N=class{constructor(){this.status=new P,this.createdOnFrom=new P(""),this.createdOnTo=new P("")}};function Be(t,r){if(t&1){let n=I();d(0,"button",9),h("click",function(){f(n);let i=s().$implicit,a=s(3);return _(a.fullDownload(i.requestId))}),p(1),c(2,"transloco"),l(),d(3,"button",9),h("click",function(){f(n);let i=s().$implicit,a=s(3);return _(a.confirmFile(i.requestId))}),p(4),c(5,"transloco"),l()}t&2&&(o(),x(" ",m(2,2,"identifiers.download")," "),o(3),x(" ",m(5,4,"identifiers.confirm")," "))}function $e(t,r){t&1&&(d(0,"button",8),p(1),c(2,"transloco"),l()),t&2&&(o(),x(" ",m(2,1,"identifiers.no_action")," "))}function Pe(t,r){if(t&1&&(d(0,"tr",4)(1,"td"),p(2),l(),d(3,"td"),p(4),l(),d(5,"td"),p(6),c(7,"date"),l(),d(8,"td",5),c(9,"transloco"),p(10),c(11,"transloco"),l(),d(12,"td",6)(13,"button",7)(14,"mat-icon"),p(15,"more_vert Menu"),l()(),d(16,"mat-menu",null,0),u(18,Be,6,6)(19,$e,3,3,"button",8),l()()()),t&2){let n=r.$implicit,e=$(17),i=s(3);o(2),x(" ",n.requestId,""),o(2),x(" ",n.quantity,""),o(2),x(" ",Y(7,7,n.createdOn,"dd.MM.yyyy"),""),o(2),g("matTooltip",m(9,10,i.getStatusToolTip(n.status))),o(2),v(m(11,12,n.status)),o(3),g("matMenuTriggerFor",e),o(5),C(i.isActionsAvailable(n)?18:19)}}function ke(t,r){if(t&1&&(d(0,"div",1)(1,"app-issuer-table",2)(2,"tr",3)(3,"th"),p(4),c(5,"transloco"),l(),d(6,"th"),p(7),c(8,"transloco"),l(),d(9,"th"),p(10),c(11,"transloco"),l(),d(12,"th"),p(13),c(14,"transloco"),l(),d(15,"th"),p(16),c(17,"transloco"),l()(),O(18,Pe,20,14,"tr",4,L),l()()),t&2){let n=s(2);o(),g("currentWidth",n.currentWidth),o(3),v(m(5,6,"identifiers.request_id")),o(3),v(m(8,8,"identifiers.quantity")),o(3),v(m(11,10,"shared.registration_date")),o(3),v(m(14,12,"shared.state")),o(3),v(m(17,14,"shared.actions")),o(2),B(n.aggregatedIdentifier.items)}}function De(t,r){t&1&&(d(0,"app-issuer-not-found-card"),p(1),c(2,"transloco"),l()),t&2&&(o(),x(" ",m(2,1,"communicates.aggregated_identifiers_not_found")," "))}function ze(t,r){if(t&1&&u(0,ke,20,16,"div",1)(1,De,3,3,"app-issuer-not-found-card"),t&2){let n=s();C(n.aggregatedIdentifier.totalItemsCount>0?0:1)}}var Ee=(()=>{let r=class r{constructor(){this.download$=new y,this.confirmFile$=new y,this.AuthorizedRouterTypes=D,this.getStatusToolTip=Te}fullDownload(e){this.download$.emit(e)}confirmFile(e){this.confirmFile$.emit(e)}isActionsAvailable(e){return e.status===j.Synchronized||e.status===j.Downloaded}};r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=b({type:r,selectors:[["app-aggregated-identifier-table"]],inputs:{aggregatedIdentifier:"aggregatedIdentifier",currentWidth:"currentWidth"},outputs:{download$:"download$",confirmFile$:"confirmFile$"},standalone:!0,features:[S],decls:1,vars:1,consts:[["menu",""],[1,"table-row"],[3,"currentWidth"],[1,"table-head"],[1,"table-content"],[3,"matTooltip"],[1,"mobile"],["mat-icon-button","",3,"matMenuTriggerFor"],["mat-menu-item","",1,"menu-button-disabled"],["mat-menu-item","",1,"menu-button",3,"click"]],template:function(i,a){i&1&&u(0,ze,2,1),i&2&&C(a.aggregatedIdentifier?
10:-1)},dependencies:[he,k,te,fe,z,pe,ge,me,Ce,_e],styles:[".mat-mdc-menu-item-text{width:100%!important}.warning[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:5px}.warning[_ngcontent-%COMP%] .icon-warning[_ngcontent-%COMP%]{color:#eed202}.mobile-button[_ngcontent-%COMP%]{display:none;position:absolute;right:15px}.mobile-button[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:35px;height:35px;background-color:#7a8da0;border-radius:50px}@media (max-width: 740px){.mobile[_ngcontent-%COMP%]{display:none}.mobile-button[_ngcontent-%COMP%]{display:block}.warning[_ngcontent-%COMP%]{flex-direction:row-reverse}.mobile-hide[_ngcontent-%COMP%]{display:none}}"]});let t=r;return t})();function Re(t,r){if(t&1){let n=I();d(0,"div",1)(1,"mat-chip-row",2),p(2),d(3,"button",3),h("click",function(){let i=f(n).$index,a=s(2);return _(a.updateFilterHandler(i))}),d(4,"mat-icon"),p(5,"cancel"),l()()()()}if(t&2){let n=r.$implicit;o(),g("editable",!0),o(),x(" ",n.value," ")}}function Ne(t,r){if(t&1&&O(0,Re,6,2,"div",1,K),t&2){let n=s();B(n.appliedFilters())}}var Ve=(()=>{let r=class r extends we{constructor(){super(...arguments),this.updateFilter=new y}updateFilterHandler(e){let i=this.appliedFilters();i.splice(e,1);let a=this.createFilterObject(i);this.updateFilter.emit({request:a,filters:i})}createFilterObject(e){let i=new E;return e.forEach(a=>{i.hasOwnProperty(a.field)&&(i[a.field]=a.requestValue)}),i}};r.\u0275fac=(()=>{let e;return function(a){return(e||(e=U(r)))(a||r)}})(),r.\u0275cmp=b({type:r,selectors:[["app-aggregated-identifiers-chips-filters"]],outputs:{updateFilter:"updateFilter"},standalone:!0,features:[J,S],decls:2,vars:1,consts:[[1,"bottom-chips"],[1,"chip"],[3,"editable"],["matChipRemove","",3,"click"]],template:function(i,a){i&1&&(d(0,"div",0),u(1,Ne,2,0),l()),i&2&&(o(),C(a.appliedFilters().length>0?1:-1))},dependencies:[Ie,z,Fe]});let t=r;return t})();function Oe(t,r){if(!r)return[];let n=[];return r.createdOnFrom&&n.push(R("createdOnFrom",r.createdOnFrom.toString(),t.translate("filters.date_from"),r.createdOnFrom.toString())),r.createdOnTo&&n.push(R("createdOnTo",r.createdOnTo.toString(),t.translate("filters.date_to"),r.createdOnTo.toString())),r.status&&r.status[0]&&n.push(R("status",t.translate(r.status.toString()),t.translate("shared.state"),r.status.toString())),n}function We(t,r){if(t&1&&(p(0),c(1,"transloco")),t&2){let n=s();X(" ",m(1,2,"shared.search_result"),"(",n.totalItemsCount,") ")}}function qe(t,r){t&1&&(w(0,2),u(1,We,2,4),T()),t&2&&(o(),C(r.items.length>0?1:-1))}function Ge(t,r){if(t&1){let n=I();w(0),d(1,"app-issuer-filters-box",10)(2,"form",11,0),h("ngSubmit",function(){f(n);let i=s(2);return _(i.search())}),Q(4,"app-issuer-input",12)(5,"app-issuer-input",12)(6,"app-issuer-select-input",13),d(7,"div",14)(8,"button",15),h("click",function(){f(n);let i=s(2);return _(i.resetFilters())}),p(9),c(10,"transloco"),l(),d(11,"button",16),p(12),c(13,"transloco"),l()()()(),T()}if(t&2){let n=$(3),e=s(2);o(),g("isFilterToggled",e.isFilterToggled),o(),g("formGroup",e.aggregatedIdentifiersFilterForm),o(2),g("control",e.aggregatedIdentifiersFilterForm.controls.createdOnFrom)("formGroupDirective",n)("label","filters.registration-date-from")("inputType","date"),o(),g("control",e.aggregatedIdentifiersFilterForm.controls.createdOnTo)("formGroupDirective",n)("label","filters.registration-date-to")("inputType","date"),o(),g("control",e.aggregatedIdentifiersFilterForm.controls.status)("label","shared.state")("options",e.identifiersStatusArray),o(3),x(" ",m(10,16,"filters.clean-filters")," "),o(2),g("disabled",e.aggregatedIdentifiersFilterForm.invali
1d),o(),x(" ",m(13,18,"filters.filter")," ")}}function je(t,r){if(t&1){let n=I();d(0,"app-aggregated-identifier-table",17),h("download$",function(i){f(n);let a=s(2);return _(a.download(i))})("confirmFile$",function(i){f(n);let a=s(2);return _(a.openModal(i))}),l()}if(t&2){let n=s(2);g("currentWidth",n.currentWidth)("aggregatedIdentifier",r)}}function He(t,r){if(t&1){let n=I();d(0,"app-issuer-paginator",18),h("pageEvent",function(i){f(n);let a=s(2);return _(a.handlePageEvent(i))}),l()}if(t&2){let n=r;g("pageSize",n.pageSize)("pageCount",n.pagesCount)("pageNumber",n.pageNumber)}}function Ue(t,r){if(t&1){let n=I();d(0,"app-identifiers-confirmation-modal",19),h("closeModal",function(){f(n);let i=s(2);return _(i.closeModal())})("confirmationCode",function(i){f(n);let a=s(2);return _(a.confirmChecksum(i))}),l()}}function Je(t,r){if(t&1){let n=I();d(0,"app-issuer-main-table-view",1),h("requestButtonAction",function(){f(n);let i=s();return _(i.navigate(i.AuthorizedRouterTypes.AggregatedIdentifiersRegisterRequest,null))})("toggleFilters",function(){f(n);let i=s();return _(i.toggleFilters())})("width",function(i){f(n);let a=s();return _(a.setWidth(i))}),u(1,qe,2,1,"ng-container",2),c(2,"async"),w(3,3),u(4,Ge,14,20,"ng-container"),c(5,"async"),d(6,"app-aggregated-identifiers-chips-filters",4),h("updateFilter",function(i){f(n);let a=s();return _(a.updateFilters(i))}),l(),T(),w(7,5),u(8,je,1,2,"app-aggregated-identifier-table",6),c(9,"async"),T(),w(10,7),u(11,He,1,3,"app-issuer-paginator",8),c(12,"async"),T(),l(),u(13,Ue,1,0,"app-identifiers-confirmation-modal",9)}if(t&2){let n,e,i,a,F=s();g("displayFilterButton",r.totalItemsCount>0),o(),C((n=m(2,7,F.aggregatedIdentifiers$))?1:-1,n),o(3),C((e=m(5,9,F.aggregatedIdentifiers$))?4:-1,e),o(2),g("appliedFilters",F.appliedFilters),o(2),C((i=m(9,11,F.aggregatedIdentifiers$))?8:-1,i),o(3),C((a=m(12,13,F.aggregatedIdentifiers$))?11:-1,a),o(2),g("ngIf",F.showModal())}}var Yt=(()=>{let r=class r{handlePageEvent(e){this.aggregatedIdentifiersFilter=W(V({},this.aggregatedIdentifiersFilter),{pageSize:e.pageSize,pageNumber:e.pageNumber}),this.facadeService.updateFilters(this.aggregatedIdentifiersFilter)}constructor(e,i,a,F){this.route=e,this.translateService=i,this.facadeService=a,this.router=F,this.aggregatedIdentifiersFilter=new E,this.aggregatedIdentifiers$=this.facadeService.list$,this.aggregatedIdentifiersFilterForm=new oe(new N),this.showModal=M(!1),this.isFilterToggled=M(!1),this.appliedFilters=M([]),this.currentWidth=M(1e3),this.identifiersStatusArray=ye,this.AuthorizedRouterTypes=D}ngOnInit(){this.facadeService.filters$.pipe(H()).subscribe(e=>{this.aggregatedIdentifiersFilterForm.patchValue(e)}),this.facadeService.clearFilters()}ngOnDestroy(){this.facadeService.clearAggregatedIdentifiersData()}search(){let e=this.aggregatedIdentifiersFilterForm.getRawValue();this.aggregatedIdentifiersFilter=W(V({},e),{createdOnFrom:G(e.createdOnFrom??null),createdOnTo:G(e.createdOnTo??null),pageSize:this.aggregatedIdentifiersFilter.pageSize,pageNumber:this.aggregatedIdentifiersFilter.pageNumber}),this.appliedFilters.set(Oe(this.translateService,this.aggregatedIdentifiersFilter)),this.aggregatedIdentifiersFilterForm.reset(),this.isFilterToggled.set(!1),this.facadeService.updateFilters(this.aggregatedIdentifiersFilter)}navigate(e,i){if(i){this.router.navigate([i,q[e]],{relativeTo:this.route});return}this.router.navigate([q[e]],{relativeTo:this.route})}resetFilters(){this.facadeService.clearFilters(),this.aggregatedIdentifiersFilterForm.reset(),this.appliedFilters.set([]),this.isFilterToggled.set(!1)}toggleFilters(){this.isFilterToggled.update(e=>!e)}updateFilters(e){this.aggregatedIdentifiersFilter=new E(V({},e.request)),this.facadeService.updateFilters(e.request),this.appliedFilters.set(e.filters)}download(e){this.facadeService.getAggregatedIdentifierConfirmation(e.toString())}openModal(e){this.requestId=e,this.showModal.set(!0)}closeModal(){this.showModal.set(!1)}confirmChecksum(e){this.requestId&&this.facadeService.confirmAggregatedIdentifier(this.requestId.toString(),e),this.closeModal()}setWidth(e){this.currentWidth.set(e)}};r.\u0275fac=function(i){return new(i||r)(A(ie),A(se),A(Ae),A(ne))},r.\u0275cmp=b({type:r,selectors:[["app-aggregated-identifier"]],standalone:!0,features:[S],decls:2,vars:3,consts:[["parentForm","ngForm"],[3,"requestButtonAction","toggleFilters","width","displayFilterButton"],["count",""],["filters",""],[3,"updateFilter","appliedFilters"],["issuer-table",""],[3,"currentWidth","aggregatedIdentifier"],["pagination",""],[3,"pageSize","pageCount","pageNumber"],[3,"closeModal","confirmationCode",4,"ngIf"],[3,"isFilterToggled"],[1,"form",3,"ngSubmit","formGroup"],[3,"control","formGroupDirective","label","inputType"],[3,"control","label","options"],[1,"filter-buttons"],["
1id","clear-filter","type","reset",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-primary","btn-block","btn-filter",3,"disabled"],[3,"download$","confirmFile$","currentWidth","aggregatedIdentifier"],[3,"pageEvent","pageSize","pageCount","pageNumber"],[3,"closeModal","confirmationCode"]],template:function(i,a){if(i&1&&(u(0,Je,14,15),c(1,"async")),i&2){let F;C((F=m(1,1,a.aggregatedIdentifiers$))?0:-1,F)}},dependencies:[ee,Z,le,ae,re,de,k,Ee,Se,ve,be,ce,ue,Ve,xe]});let t=r;return t})();export{Yt as AggregatedIdentifierComponent};
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.