PageSourceSearch

https://app.siteboard.io/default-libs_angular_reports_src_lib_serv…r_ui-components_-e6369e.b64b99a3b809a623.js

js siteboard.io collected 2026-09-28 06:39:36 UTC 15,950 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([["default-libs_angular_reports_src_lib_services_report-facade_ng_ts-libs_angular_ui-components_-e6369e"],{88534:($,b,s)=>{s.d(b,{d:()=>Z});var u=s(98507),d=s(99312),a=s(7493),v=s(57288),R=s(60369),h=s(55808),I=s(93355),S=s(72326),E=s(88241),n=s(322),C=s(22025),x=s(23081),p=s(20760),c=s(57061),l=s(61320),f=s(72219),A=s(7017),D=s(39889),T=s(42509);var F=s(27247),w=s(72934),m=s(6042);const P={keepAlive:!0,reconnectionDelay:3e3,responseType:"event"},_={observe:"events",reportProgress:!0,responseType:"text"};let B=(()=>{class i{httpClient;sseOptions;httpClientOptions;url;method;static SEPARATOR=":";progress=0;chunk="";constructor(t,e,r,o,g){this.httpClient=t,this.sseOptions=e,this.httpClientOptions=r,this.url=o,this.method=g}createObservable(){return new l.c(t=>{const e=this.subscribeStreamRequest(this.url,this.sseOptions,this.httpClientOptions,this.method,t);return()=>e.unsubscribe()})}subscribeStreamRequest(t,e,r,o,g){return this.httpClient.request(o,t,r).pipe(function O(i){return(0,D.N)((Q,t)=>{let e,o,r=!1,g=!1,y=!1;const L=()=>y&&g&&(t.complete(),!0),M=()=>{y=!1,e=Q.subscribe((0,T._)(t,void 0,()=>{y=!0,!L()&&(o||(o=new A.B,(0,f.Tg)(i(o)).subscribe((0,T._)(t,()=>{e?M():r=!0},()=>{g=!0,L()}))),o).next()})),r&&(e.unsubscribe(),e=null,r=!1,M())};M()})}(y=>this.repeatWhen(y,e.keepAlive,e.reconnectionDelay))).pipe(function U(i){return(0,D.N)((Q,t)=>{let e,o,r=!1;const g=()=>{e=Q.subscribe((0,T._)(t,void 0,void 0,y=>{o||(o=new A.B,(0,f.Tg)(i(o)).subscribe((0,T._)(t,()=>e?g():r=!0))),o&&o.next(y)})),r&&(e.unsubscribe(),e=null,r=!1,g())};g()})}(y=>this.retryWhen(y,e.keepAlive,e.reconnectionDelay,g))).subscribe(y=>this.parseStreamEvent(y,g))}repeatWhen(t,e,r){return t.pipe((0,F.v)(()=>e)).pipe((0,w.c)(r))}retryWhen(t,e,r,o){return t.pipe((0,m.M)(g=>this.threatRequestError(g,o))).pipe((0,F.v)(()=>e)).pipe((0,w.c)(r))}threatRequestError(t,e){this.dispatchStreamData(this.errorEvent(t),e),this.isValidStatus(t.status)||e.error(t)}isValidStatus(t){return null!=t&&t<=299}parseStreamEvent(t,e){t.type!==d.hv.Sent?t.type!==d.hv.DownloadProgress?t.type!==d.hv.Response||this.onStreamCompleted(t,e):this.onStreamProgress(t.partialText,e):this.progress=0}onStreamProgress(t,e){t&&(t=t.substring(this.progress),this.progress+=t.length,t.split(/(\r\n|\r|\n){2}/g).forEach(r=>this.parseEventData(r,e)))}onStreamCompleted(t,e){this.onStreamProgress(t.body,e),this.dispatchStreamData(this.parseEventChunk(this.chunk),e),this.chunk="",this.progress=0,this.dispatchStreamData(this.errorEvent(),e)}parseEventData(t,e){0===t.trim().length?(this.dispatchStreamData(this.parseEventChunk(this.chunk),e),this.chunk=""):this.chunk+=t}parseEventChunk(t){if(!t||0===t.length)return;const e={id:void 0,data:"",event:"message"};
1return t.split(/\n|\r\n|\r/).forEach(r=>this.parseChunkLine(r.trim(),e)),this.messageEvent(e.event,{lastEventId:e.id,data:e.data})}parseChunkLine(t,e){const r=t.indexOf(i.SEPARATOR);if(r<=0)return;const o=t.substring(0,r);if(-1===Object.keys(e).findIndex(y=>y===o))return;let g=t.substring(r+1).replace(/^\s/,"");"data"===o&&(g=e.data+g),e[o]=g}dispatchStreamData(t,e){this.validEvent(t)&&e.next("event"===this.sseOptions.responseType?t:t.data)}validEvent(t){return!(!t||"error"===t.type&&"event"!==this.sseOptions.responseType||"error"!==t.type&&(!t.data||!t.data.length))}messageEvent(t,e){return new MessageEvent(t,e)}errorEvent(t){let e;return t&&t.status>0&&(e={error:t,message:t.message},this.isValidStatus(t.status)||(e.status=t.status,e.statusText=t.statusText)),new ErrorEvent("error",e)}}return i})(),j=(()=>{class i{httpClient;constructor(t){this.httpClient=t}stream(t,e,r,o="GET"){var g=Object.assign({},P,e),y=Object.assign({},r,_);return new B(this.httpClient,g,y,t,o).createObservable()}static \u0275fac=function(e){return new(e||i)(a.KVO(d.Qq))};static \u0275prov=a.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var N=s(30005),V=s(13660);function W(i,Q){return new URLSearchParams((0,V.omitBy)({search:i?.search??"",page:((i?.pagination.pageIndex??0)+1).toString(),limit:i?.pagination.pageSize.toString(),sortBy:i?.sorting?.map(t=>`${t.id}:${t.desc?"DESC":"ASC"}`).join(","),...(0,V.mapKeys)(Q,(t,e)=>`filter.${e}`)},t=>null==t))}let K=(()=>{class i{_baseUrl="/api/reports/deep";_sseClient=(0,a.WQX)(j);_http=(0,a.WQX)(d.Qq);getCategoryReport(t,e){if(!t)throw new Error("`scanRequestId` is required");if(!e)throw new Error("`category` is required");return this._http.get(`${this._baseUrl}/${t}/${e}`)}getCategoryReportFile(t,e){if(!t)throw new Error("`scanRequestId` is required");if(!e)throw new Error("`category` is required");const r=new URLSearchParams({type:"pdf"});return this._http.get(`${this._baseUrl}/${t}/report/${e}?${r.toString()}`,{responseType:"blob",observe:"response"}).pipe((0,N.T)(o=>({data:o.body,fileName:(0,c.u)(o.headers.get("Content-Disposition"))})))}getIssues(t,e,r){if(!t)throw new Error("`scanRequestId` is required");if(!e)throw new Error("`category` is required");const o=W(r,{category:e});return this._http.get(`${this._baseUrl}/${t}/issues?${o.toString()}`)}getPages(t,e,r){if(!t)throw new Error("`scanRequestId` is required");if(!e)throw new Error("`category` is required");const o=W(r,{category:e});return this._http.get(`${this._baseUrl}/${t}/pages?${o.toString()}`)}getAffectedPages(t,e,r,o){if(!t)throw new Error("`scanRequestId` is required");if(!e)throw new Error("`category` is required");if(!r)throw new Error("`auditTypeId` is required");const g=W(o,{category:e});return this._http.get(`${this._baseUrl}/${t}/issues/${r}/pages?${g.toString()}`)}getReportRescanChanges(t){if(t)return this._sseClient.stream(`${this._baseUrl}/${t}/changes/rescans`,{keepAlive:!0,reconnectionDelay:1e3},{},"GET").pipe((0,N.T)(e=>JSON.parse(e.data)))}abort(t){return this._http.post(`${this._baseUrl}/${t}/abort`,{})}rescanPage(t,e){return this._http.post(`/api/scan/request/${t}/rescan`,e)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=a.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),X=(()=>{class i{_baseUrl="/api/reports/deep/targets";_sseClient=(0,a.WQX)(j);_http=(0,a.WQX)(d.Qq);createDeepScan(t,e){var r=this;return(0,u.A)(function*(){if(!t)throw new Error("`targetId` is required");return(0,n._)(r._http.post(`${r._baseUrl}/${t}`,{meter:e}))})()}getLatestReportMetrics(t){if(!t)throw new Error("`targetId` is required");return this._http.get(`${this._baseUrl}/${t}/latest-report/metrics`)}checkMetricsExist(t){if(!t)throw new Error("`targetId` is required");return this._http.get(`${this._baseUrl}/${t}/latest-report/metrics/exists`)}getLatestReportChanges(t){if(!t)throw new Error("`targetId` is required");return this._sseClient.stream(`${this._baseUrl}/${t}/latest-report/changes`,{keepAlive:!0,reconnectionDelay:1e3},{},"GET").pipe((0,N.T)(e=>JSON.parse(e.data)))}getLatestReportPages(t,e,r){if(!t)throw new Error("`targetId` is required");if(!e)throw new Error("`category` is required");const o=W(r,{category:e});return this._http.get(`${this._baseUrl}/${t}/latest-report/pages?${o.toString()}`)}getLatestCategoryReport(t,e){return this._http.get(`${this._baseUrl}/${t}/latest-report/${e}`)}getMetricsHistory(t,e){return this._http.get(`${this._baseUrl}/${t}/latest-report/${e}/metrics/history`)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=a.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Z=(()=>{class i{_route=(0,a.WQX)(R.ActivatedRoute);_http=(0,a.WQX)(d.Qq);_deepScanApi=(0,a.WQX)(K);_latestDeepScanApi=(0,a.WQX)(X);_i18n=(0,h.s)();targetId=(0,E.o)("id");category=(0,a.vPA)(this._route.snapshot.paramMap.get("category")??I.If.ACCESSIBILITY);scanAborted=(0,a.vPA)(!1);latestReportMetrics=(0,a.ZcF)({request:()=>({targetId:this.targetId()}),loader:(()=>{var e,t=this;return e=(0,u.A)(function*({request:r}){try{return yield(0,n._)(t._latestDeepScanApi.getLatestReportMetrics(r.targetId))}catch{return null}}),function(o){return e.apply(this,arguments)}})()});latestReportChanges=(0,v.ot)((0,v.br)(this.targetId).pipe((0,C.n)(t=>this._latestDeepScanApi.getLatestReportChanges(t))));scanRequestId=(0,a.EWP)(()=>this.latestReportMetrics.value()?.id);latestReportRescanChanges=(0,v.ot)((0,v.br)(this.scanRequestId).pipe((0,x.p)(Boolean),(0,C.n)(t=>this._deepScanApi.getReportRescanChanges(t))),{initialValue:void 0});metricsExist=(0,a.ZcF)({request:()=>({targetId:this.targetId()}),loader:(()=>{var e,t=this;return e=(0,u.A)(function*({request:r}){return yield(0,n._)(t._latestDeepScanApi.checkMetricsExist(r.targetId))}),function(o){return e.apply(this,arguments)}})()});latestCategoryReport=(0,a.ZcF)({request:()=>({scanRequestId:this.scanRequestId(),category:this.category()}),loader:({request:t})=>(0,n._)(this._deepScanApi.getCategoryReport(t.scanRequestId,t.category))});issueTabTableState=(0,a.vPA)({search:null,pagination:{pageIndex:0,pageSize:10}
1,sorting:[{id:"issueCount",desc:!0}]});issuesQueryParamsTransformer=(0,p.EE)();issuesTabQueryParams=(0,a.EWP)(()=>this.issuesQueryParamsTransformer.stringify(this.issueTabTableState()));pagesTabTableState=(0,a.vPA)({search:null,pagination:{pageIndex:0,pageSize:10},sorting:[{id:"issueCount",desc:!0}]});pagesQueryParamsTransformer=(0,p.EE)();pagesTabQueryParams=(0,a.EWP)(()=>this.pagesQueryParamsTransformer.stringify(this.pagesTabTableState()));affectedPagesTabTableState=(0,a.vPA)({search:null,pagination:{pageIndex:0,pageSize:10},sorting:[]});rescan(t){var e=this;return(0,u.A)(function*(){e.scanAborted.set(!1),yield e._latestDeepScanApi.createDeepScan(e.targetId(),t)})()}abortScan(t){var e=this;return(0,u.A)(function*(){try{yield(0,n._)(e._deepScanApi.abort(t)),e.scanAborted.set(!0),e.latestReportMetrics.reload(),e.latestCategoryReport.reload(),S.oR.success(e._i18n().t("REPORTS.API.ABORT.SUCCESS"))}catch(r){console.error("Failed to abort DeepScan:",r),S.oR.error(e._i18n().t("REPORTS.API.ABORT.ERROR"))}})()}getIssues(t){return(0,a.ZcF)({request:()=>({params:t(),scanRequestId:this.scanRequestId(),category:this.category()}),loader:({request:e})=>(0,n._)(this._deepScanApi.getIssues(e.scanRequestId,e.category,e.params))})}getPages(t){return(0,a.ZcF)({request:()=>({params:t(),scanRequestId:this.scanRequestId(),category:this.category()}),loader:({request:e})=>(0,n._)(this._deepScanApi.getPages(e.scanRequestId,e.category,e.params))})}getAffectedPages(t,e){return(0,a.ZcF)({request:()=>({auditTypeId:t(),params:e(),scanRequestId:this.scanRequestId(),category:this.category()}),loader:({request:r})=>(0,n._)(this._deepScanApi.getAffectedPages(r.scanRequestId,r.category,r.auditTypeId,r.params))})}getIssue(t){return(0,a.ZcF)({request:()=>({auditTypeId:t()}),loader:({request:e})=>(0,n._)(this._http.get(`/api/scan/audit-types/${e.auditTypeId}`))})}getScan(t){return(0,a.ZcF)({request:()=>({scanId:t()}),loader:({request:e})=>(0,n._)(this._http.get(`/api/scan/${e.scanId}`))})}rescanSinglePage(t,e){return(0,n._)(this._deepScanApi.rescanPage(t,e))}getCategoryReportFile(){var t=this;return(0,u.A)(function*(){return(0,n._)(t._deepScanApi.getCategoryReportFile(t.scanRequestId(),t.category()))})()}static \u0275fac=function(e){return new(e||i)};static \u0275prov=a.jDH({token:i,factory:i.\u0275fac})}return i})()},20760:($,b,s)=>{s.d(b,{EE:()=>E,Zr:()=>I,lV:()=>R,mZ:()=>h});var u=s(55836);const d=n=>C=>C?JSON.parse(C):n,a=n=>null==n?n:JSON.stringify(n),v=n=>null==n?n:n.toString(),R=(n=0)=>({parse:(0,u.oE)({defaultValue:n}),stringify:v}),h=(n=0)=>({parse:(0,u.oE)({defaultValue:n}),stringify:v}),I=(n=[])=>({parse:d(n),stringify:a}),E=n=>{const C=R(n?.pagination?.pageIndex),x=h(n?.pagination?.pageSize),p=I(n?.sorting),c=((n=[])=>({parse:d(n),stringify:a}))(n?.columnFilters);return{parse:l=>({search:l?.search??null,pageIndex:C.parse(l?.pageIndex??null),pageSize:x.parse(l?.pageSize??null),sort:p.parse(l?.sort??null),columnFilters:c.parse(l?.columnFilters??null)}),stringify:l=>({search:l?.search??null,pageIndex:C.stringify(l?.pagination?.pageIndex),pageSize:x.stringify(l?.pagination?.pageSize),sort:p.stringify(l?.sorting),columnFilters:c.stringify(l?.columnFilters)})}}},11888:($,b,s)=>{s.d(b,{n:()=>R});var u=s(20434),d=function(h){return h.SOLID="solid",h.RAISED="raised",h.OUTLINE="outline",h}(d||{}),a=s(7493);const v=["*"];let R=(()=>{class h{_appearance=(0,u.OY)(d.RAISED);get appearance(){return this._appearance()}set appearance(S){this._appearance.set(S)}static \u0275fac=function(E){return new(E||h)};static \u0275cmp=a.VBU({type:h,selectors:[["sona-card"]],hostAttrs:[1,"card"],inputs:{appearance:"appearance"},features:[a.Jv_([(0,u.Fe)("c-sona-card")])],ngContentSelectors:v,decls:1,vars:0,template:function(E,n){1&E&&(a.NAR(),a.SdG(0))}
1,styles:[".c-sona-card{--bs-card-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);display:block}.c-sona-card .card-body{border-radius:inherit}.c-sona-card:is(.c-sona-card--outline,.c-sona-card--solid){--bs-card-box-shadow: none}.c-sona-card.c-sona-card--solid{--bs-card-border-width: 0;--bs-card-bg: #f8f9fa}\n"],encapsulation:2,changeDetection:0})}return h})()},57061:($,b,s)=>{function u(d){if(!d)return null;const a=/filename="([^"]+)"/.exec(d);return a?a[1]:null}s.d(b,{u:()=>u})},88241:($,b,s)=>{s.d(b,{o:()=>R});var u=s(7493),d=s(57288),a=s(60369),v=s(30005);function R(h){(0,u.Af3)(R);const I=(0,u.WQX)(a.ActivatedRoute),S=I.snapshot.params;if("function"==typeof h)return(0,d.ot)(I.params.pipe((0,v.T)(h)),{initialValue:h(S)});const E=n=>h?n?.[h]??null:n;return(0,d.ot)(I.params.pipe((0,v.T)(E)),{initialValue:E(S)})}},55836:($,b,s)=>{s.d(b,{nt:()=>n,oE:()=>C});var u=s(7493),d=s(57288),a=s(60369),h=s(51559),S=s(30005);let E=(()=>{class p{constructor(){this._router=(0,u.WQX)(a.Router),this._currentKeys={},this._navigationExtras={},this._schedulerNotifier=function R(){const p=(0,u.vPA)(0);return{notify:()=>{p.update(c=>1+(c>>>0))},listen:p.asReadonly()}}(),(0,u.QZP)(()=>{this._schedulerNotifier.listen(),(0,u.O8t)(()=>{this.navigate()})})}scheduleNavigation(){this._schedulerNotifier.notify()}setParamKeyValue(l,f){this._currentKeys[l]=f}setCurrentNavigationExtras(l={}){const{queryParamsHandling:f,onSameUrlNavigation:A,replaceUrl:D,skipLocationChange:T,preserveFragment:O}=l;(f||""===f)&&(this._navigationExtras.queryParamsHandling=f),A&&(this._navigationExtras.onSameUrlNavigation=A),D&&(this._navigationExtras.replaceUrl=D),T&&(this._navigationExtras.skipLocationChange=T),O&&(this._navigationExtras.preserveFragment=O)}navigate(){return this._router.navigate([],{queryParams:this._currentKeys,queryParamsHandling:"merge",...this._navigationExtras}).then(l=>(this._currentKeys={},this._navigationExtras={},l))}static#t=this.\u0275fac=function(f){return new(f||p)};static#e=this.\u0275prov=u.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})();function n(p,c){if(void 0!==c?.defaultValue&&c?.parse)throw new Error("linkedQueryParam: You cannot have both defaultValue and parse at the same time!");const l=function v(p,c,l){!c&&(0,u.Af3)(p);const f=c??(0,u.WQX)(u.zZn);return l?(0,u.N4e)(f,l):f}(n,c?.injector);return(0,u.N4e)(l,()=>{const f=(0,u.WQX)(a.ActivatedRoute),A=(0,u.WQX)(E),D=m=>{const P=m[p]??null;return c?.parse?c.parse(P):null==P&&void 0!==c?.defaultValue?c.defaultValue:P},T=(0,d.ot)(f.queryParams.pipe(function I(p,c){return(0,h.F)((l,f)=>c?c(l[p],f[p]):l[p]===f[p])}(p),(0,S.T)(m=>D(m))),{initialValue:D(f.snapshot.queryParams)}),O=(0,u.vPA)(T()),U=O.set;(0,u.QZP)(()=>{const m=T();(0,u.O8t)(()=>U(m))});const F=m=>{U(m);let P=m;P=c?.stringify?c.stringify(m):null==m?null:"string"==typeof m?m:String(m),A.setParamKeyValue(p,P),A.setCurrentNavigationExtras(c??{}),A.scheduleNavigation()};return Object.assign(O,{set:F,update:m=>F(m(O()))})})}function C(p={defaultValue:null}){return c=>{if(null==c)return p.defaultValue;const l=parseInt(c,10);return Number.isNaN(l)?p.defaultValue:l}}}}]);
2//# sourceMappingURL=default-libs_angular_reports_src_lib_services_report-facade_ng_ts-libs_angular_ui-components_-e6369e.b64b99a3b809a623.js.map

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.