PageSourceSearch

https://app.beaglesecurity.com/chunk-TIBHSPA2.js

js beaglesecurity.com collected 2026-09-24 08:47:13 UTC 24,308 bytes, 323 lines download raw bytes

1import{a as ge,b as ue}from"./chunk-PSFGDCSP.js";import{a as ve,b as _e}from"./chunk-LXCLZBCB.js";import{a as he,d as Ce}from"./chunk-7SDXMCY7.js";import{a as me}from"./chunk-LLRJ4DZH.js";import"./chunk-N7D2LPKG.js";import"./chunk-FJ7RIFFD.js";import"./chunk-MDW3ME7L.js";import{a as be}from"./chunk-4CBD6KRM.js";import{a as G}from"./chunk-OB7ZIRYX.js";import"./chunk-3XSWA3P5.js";import{b as fe}from"./chunk-22CMMPY7.js";import"./chunk-Z6D74UMB.js";import"./chunk-OTFJ4D5S.js";import{a as ce,c as de,m as H}from"./chunk-NKFHN2UT.js";import"./chunk-Z72XREES.js";import{a as se}from"./chunk-LXGHVDMZ.js";import"./chunk-5BH2DXPY.js";import"./chunk-ZG4SWA7Y.js";import"./chunk-LBQHVHOD.js";import"./chunk-6JVWF4IY.js";import{a as le}from"./chunk-HZUXSG4X.js";import"./chunk-BTMCQCAC.js";import{b as pe}from"./chunk-P5X5UTD7.js";import"./chunk-FISCDIEQ.js";import"./chunk-OFDVQPEO.js";import{c as oe,d as ie,f as N,g as B,h as ae}from"./chunk-W4BNGQYG.js";import"./chunk-RENC6YYK.js";import{a as re}from"./chunk-PKRSU6VJ.js";import{a as z}from"./chunk-KO2D6ELQ.js";import{z as ne}from"./chunk-W2FPCXJS.js";import{f as F,h as T,m as V}from"./chunk-PRNDDZIA.js";import{b as te}from"./chunk-B7G3T42L.js";import{C as Z,N as ee,k,m as I}from"./chunk-A44CX4PV.js";import{Ab as a,Fc as s,Gb as u,Gc as C,Hc as Q,J as M,Ka as v,La as _,Mb as P,Nb as S,Rb as f,Sc as J,Ua as L,Uc as W,Vc as X,Wc as Y,Zb as l,cc as U,dc as E,ec as R,gc as A,hc as D,ic as o,jc as i,k as g,kc as m,oc as b,ta as $,tc as h,ua as O,uc as d,ya as K,za as w}from"./chunk-HWT7D4EW.js";var j=(()=>{class t{http;configuration;headers={"Content-Type":"application/json"};constructor(e,n){this.http=e,this.configuration=n}getApiErrorLogs(e){return g(this,null,function*(){var n=this.http.get(`${this.configuration.apiTestingApi}/restapi/errorlogs?appkey=${e}`),r=yield M(n);return r})}getApiErrorLogDetails(e,n,r,c){return g(this,null,function*(){var y=this.http.get(`${this.configuration.apiTestingApi}/restapi/errorlog?appkey=${e}&logtype=${n}&page=${r??0}&size=${c??20}`),q=yield M(y);return q})}getApiPagingDetails(e,n,r,c,y){return g(this,null,function*(){var q=this.http.get(`${this.configuration.apiTestingApi}/restapi/api/pagenumber?appkey=${e}&apikey=${n}&listsize=${r}&apisize=${c}&groupsize=${y}`),Oe=yield M(q);return Oe})}static \u0275fac=function(n){return new(n||t)(K(ee),K(te))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Le=(t,p)=>({valid:t,inValid:p});function Se(t,p){if(t&1){let e=b();o(0,"app-button",11),h("onClick",function(){v(e);let r=d(2);return _(r.onConfigureClick())}),i()}t&2&&l("type","ghost-white")("label","Configure")("display","inline-block")("size","sm")}function Re(t,p){if(t&1&&(o(0,"div",8),f(1,Se,1,4,"app-button",10),i()),t&2){let e=d();a(),l("ngIf",e.errorLog.error!="Valid")}}function Ae(t,p){if(t&1&&(o(0,"div",12)(1,"div",13),m(2,"i",14),o(3,"div",15),s(4),i()()()),t&2){let e=d();a(4),Q(" ",e.apiErrorLogDetail.errorLog.message," ")}}var Ee=(()=>{class t{allowEdit=!1;errorLog;apiErrorLogDetail;
1configureErrorLog=new L;onConfigureClick(){this.configureErrorLog.emit({errorLog:this.errorLog,errorLogDetail:this.apiErrorLogDetail})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["app-graphql-error-resolver-item"]],inputs:{allowEdit:"allowEdit",errorLog:"errorLog",apiErrorLogDetail:"apiErrorLogDetail"},outputs:{configureErrorLog:"configureErrorLog"},standalone:!1,decls:20,vars:16,consts:[[1,"d-flex","justify-content-start","api-list-container",3,"ngClass"],[1,"d-flex","align-items-center","left-section"],[1,"method-wrap"],[1,"api-name",3,"title"],[1,"d-flex","center-section"],[1,"d-flex","align-items-center","overflow-hidden"],[1,"bs-lock"],[1,"api-url",3,"title"],[1,"d-flex"],["class","d-flex justify-content-start api-error-container",4,"ngIf"],[3,"type","label","display","size","onClick",4,"ngIf"],[3,"onClick","type","label","display","size"],[1,"d-flex","justify-content-start","api-error-container"],[1,"d-flex","error-content-container"],[1,"bs-information-line","be-warning-icon"],[1,"error"]],template:function(n,r){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div"),s(4),i()(),o(5,"div",3),s(6),i(),o(7,"span"),s(8,">"),i(),o(9,"div",3),s(10),i(),o(11,"span"),s(12,">"),i()(),o(13,"div",4)(14,"div",5),m(15,"i",6),o(16,"div",7),s(17),i()()(),f(18,Re,2,1,"div",8),i(),f(19,Ae,5,1,"div",9)),n&2&&(l("ngClass",Y(13,Le,r.errorLog.error=="Valid",r.errorLog.error!="Valid")),a(3),U("fw-500 api-method ",r.apiErrorLogDetail.method,""),a(),C(r.apiErrorLogDetail.method),a(),l("title",r.apiErrorLogDetail.group),a(),C(r.apiErrorLogDetail.group),a(3),l("title",r.apiErrorLogDetail.name),a(),C(r.apiErrorLogDetail.name),a(6),l("title",r.apiErrorLogDetail.url),a(),C(r.apiErrorLogDetail.url),a(),E(r.allowEdit?18:-1),a(),l("ngIf",r.errorLog.error!="Valid"))},dependencies:[k,I,z],styles:[`
2
3.api-error-container[_ngcontent-%COMP%] {
4  gap: 12px;
5  padding: 8px 12px 8px 16px;
6  margin-bottom: 6px;
7  background-color: #ffffff;
8  border: 1px solid var(--border-color);
9  border-bottom-left-radius: 4px;
10  border-bottom-right-radius: 4px;
11  font-size: 0.75rem;
12  overflow: hidden;
13  cursor: pointer;
14  transition: all 0.2s ease-in-out;
15}
16.api-error-container[_ngcontent-%COMP%]   .error-content-container[_ngcontent-%COMP%] {
17  gap: 0.75rem;
18  color: var(--status-failed-color);
19}
20.api-error-container[_ngcontent-%COMP%]   .error-content-container[_ngcontent-%COMP%]   .be-warning-icon[_ngcontent-%COMP%] {
21  color: var(--status-failed-color);
22  font-size: 0.9rem;
23  transform: rotate(180deg);
24}
25.api-error-container[_ngcontent-%COMP%]   .error-content-container[_ngcontent-%COMP%]   .error[_ngcontent-%COMP%] {
26  color: #A94442;
27}
28.api-list-container[_ngcontent-%COMP%] {
29  gap: 12px;
30  padding: 8px 12px 8px 16px;
31  background-color: #ffffff;
32  border: 1px solid var(--border-color);
33  font-size: 0.75rem;
34  overflow: hidden;
35  cursor: pointer;
36  transition: all 0.2s ease-in-out;
37}
38.api-list-container.valid[_ngcontent-%COMP%] {
39  margin-bottom: 6px;
40  border-radius: 4px;
41}
42.api-list-container.inValid[_ngcontent-%COMP%] {
43  border-bottom: none;
44  border-top-left-radius: 4px;
45  border-top-right-radius: 4px;
46}
47.api-list-container[_ngcontent-%COMP%]:hover {
48  border-color: var(--card-hover-border-color);
49  background-color: var(--card-hover-bg);
50}
51.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%] {
52  gap: 16px;
53  overflow: hidden;
54}
55.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   app-checkbox[_ngcontent-%COMP%] {
56  line-height: 1;
57}
58.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .method-wrap[_ngcontent-%COMP%] {
59  min-width: 70px;
60}
61.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .api-method[_ngcontent-%COMP%] {
62  display: inline-block;
63  font-size: 0.68rem;
64  padding: 2px 8px;
65  border-radius: 3px;
66  color: #ffffff;
67}
68.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .api-method.GET[_ngcontent-%COMP%] {
69  color: #007F31;
70  border: 1px solid #9ADFB5;
71  background-color: #D9FFE8;
72}
73.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .api-method.POST[_ngcontent-%COMP%] {
74  color: #B07E0B;
75  border: 1px solid #ECDFC1;
76  background-color: #FFF7E5;
77}
78.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .api-method.PUT[_ngcontent-%COMP%] {
79  color: #0053B8;
80  border: 1px solid #BBD0E9;
81  background-color: #E8F2FF;
82}
83.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .api-method.DELETE[_ngcontent-%COMP%] {
84  color: #93241A;
85  border: 1px solid #FFCDC9;
86  background-color: #FFE8E5;
87}
88.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .api-method.PATCH[_ngcontent-%COMP%] {
89  color: #623497;
90  border: 1px solid #CAB4E3;
91  background-color: #F0E3FF;
92}
93.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .api-method.HEAD[_ngcontent-%COMP%] {
94  color: #00A5A5;
95  border: 1px solid #A5E7E7;
96  background-color: #E4FFFF;
97}
98.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .api-method.OPTIONS[_ngcontent-%COMP%] {
99  color: #A61468;
100  border: 1px solid #DEB2CB;
101  background-color: #FFDEF1;
102}
103.api-list-container[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .api-name[_ng
103content-%COMP%] {
104  color: var(--text-primary);
105  overflow: hidden;
106  text-overflow: ellipsis;
107  white-space: nowrap;
108}
109.api-list-container[_ngcontent-%COMP%]   .center-section[_ngcontent-%COMP%] {
110  color: var(--bs-primary);
111  overflow: hidden;
112}
113.api-list-container[_ngcontent-%COMP%]   .center-section[_ngcontent-%COMP%]   .api-url[_ngcontent-%COMP%] {
114  color: var(--bs-primary);
115  width: 100%;
116  overflow: hidden;
117  text-overflow: ellipsis;
118  white-space: nowrap;
119}
120.api-list-container[_ngcontent-%COMP%]   .center-section[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {
121  margin-right: 12px;
122}
123.api-list-container[_ngcontent-%COMP%]   .right-section[_ngcontent-%COMP%] {
124  margin-left: 12px;
125}`]})}return t})();var Ie=()=>({"rotate-down":1}),Fe=t=>({"overflow-show":t});function Te(t,p){t&1&&m(0,"span",7)}function ze(t,p){if(t&1){let e=b();o(0,"app-graphql-error-resolver-item",14),h("configureErrorLog",function(r){v(e);let c=d();return _(c.configureErrorLog.emit(r))}),i()}if(t&2){let e=p.$implicit,n=d();l("errorLog",n.errorLog)("apiErrorLogDetail",e)("allowEdit",n.allowEdit)}}function je(t,p){t&1&&(o(0,"div",12),m(1,"i",15),o(2,"div",16),s(3,'No Errors found in this group. Click the "Create New" button to create a new API. '),i()())}function qe(t,p){if(t&1){let e=b();o(0,"div",17)(1,"app-pagination",18),h("pageChanged",function(r){v(e);let c=d();return _(c.onApiErrorLogPageChange(r))}),i()()}if(t&2){let e=d();a(),l("totalItems",e.errorLogDetail.totalCount)("itemsPerPage",e.errorLogDetail.pageSize)("currentPage",e.errorLogDetail.page+1)}}var ye=(()=>{class t{errorResolverServ;router;applicationKey="";allowEdit=!1;errorLog;
125configureErrorLog=new L;route=w(F);isApiExpanded=!1;apiFetchState="INITIAL";errorLogDetail;constructor(e,n){this.errorResolverServ=e,this.router=n,this.errorLogDetail={apis:[],page:0,pageSize:10,totalCount:0,pageCount:0}}toggleApiExpand(){return g(this,null,function*(){this.isApiExpanded?this.isApiExpanded=!1:this.fetchApiErrorLogs()})}fetchApiErrorLogs(){return g(this,null,function*(){this.apiFetchState="LOADING";try{let e=yield this.errorResolverServ.getApiErrorLogDetails(this.applicationKey,this.errorLog.error,this.errorLogDetail.page,10);this.errorLogDetail=e,this.apiFetchState="SUCCESS",this.isApiExpanded=!0}catch{this.apiFetchState="API_ERROR"}})}onApiErrorLogPageChange(e){return g(this,null,function*(){this.errorLogDetail.page=e-1,yield this.fetchApiErrorLogs()})}static \u0275fac=function(n){return new(n||t)(u(j),u(T))};static \u0275cmp=P({type:t,selectors:[["app-api-error-resolver-category"]],inputs:{applicationKey:"applicationKey",allowEdit:"allowEdit",errorLog:"errorLog"},outputs:{configureErrorLog:"configureErrorLog"},standalone:!1,decls:17,vars:11,consts:[[1,"api-group"],[1,"d-flex","justify-content-between","title-wrap",3,"click"],[1,"left-section"],[1,"d-flex","align-items-center","title"],[1,"fw-500","app-count"],[1,"fw-500"],[1,"d-flex","align-items-center","right-menu"],[1,"loader"],[1,"bs-arrow-down-remix",3,"ngClass"],[1,"overflow-container",3,"ngClass"],[1,"api-list"],[3,"errorLog","apiErrorLogDetail","allowEdit"],[1,"text-center","no-apis"],["class","d-flex align-items-center justify-content-center my-3",4,"ngIf"],[3,"configureErrorLog","errorLog","apiErrorLogDetail","allowEdit"],[1,"bs-information-line"],[1,"message"],[1,"d-flex","align-items-center","justify-content-center","my-3"],[3,"pageChanged","totalItems","itemsPerPage","currentPage"]],template:function(n,r){n&1&&(o(0,"div",0)(1,"div",1),h("click",function(){return r.toggleApiExpand()}),o(2,"div",2)(3,"div",3)(4,"span",4),s(5),i(),o(6,"span",5),s(7),i()()(),o(8,"div",6),f(9,Te,1,0,"span",7),m(10,"i",8),i()(),o(11,"div",9)(12,"div",10),A(13,ze,1,3,"app-graphql-error-resolver-item",11,R,!1,je,4,0,"div",12),i(),f(16,qe,2,3,"div",13),i()()),n&2&&(a(5),C(r.errorLog.count),a(2),C(r.errorLog.error),a(2),E(r.apiFetchState=="LOADING"?9:-1),a(),l("ngClass",W(8,Ie)),a(),l("ngClass",X(9,Fe,r.isApiExpanded))("@apiExpandView",r.isApiExpanded?"expand":"collapse"),a(2),D(r.errorLogDetail.apis),a(3),l("ngIf",r.apiFetchState!="LOADING"&&r.errorLogDetail.totalCount>r.errorLogDetail.pageSize))},dependencies:[k,I,se,Ee],styles:[`
126
127.title-wrap[_ngcontent-%COMP%] {
128  padding: 12px 16px 12px 20px;
129  margin-bottom: 8px;
130  border: 1px solid var(--border-color);
131  border-radius: 4px;
132  background-color: #ffffff;
133  cursor: pointer;
134  transition: all 0.2s ease-in-out;
135}
136.title-wrap[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   app-checkbox[_ngcontent-%COMP%] {
137  line-height: 1;
138}
139.title-wrap[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .edit-wrap[_ngcontent-%COMP%] {
140  border-radius: 50%;
141  background-color: #e7f2ff;
142  height: 22px;
143  width: 22px;
144  display: none;
145  justify-content: center;
146  align-items: center;
147  transition: all 0.2s ease-in-out;
148}
149.title-wrap[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .edit-wrap[_ngcontent-%COMP%]:hover {
150  background-color: #ddecff;
151}
152.title-wrap[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .edit-wrap[_ngcontent-%COMP%]:hover   i[_ngcontent-%COMP%] {
153  color: var(--text-primary);
154}
155.title-wrap[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {
156  gap: 16px;
157}
158.title-wrap[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .app-count[_ngcontent-%COMP%] {
159  font-size: 0.75rem;
160  font-weight: 500;
161  line-height: 1;
162  color: var(--bs-primary);
163  border-radius: 0.75rem;
164  min-width: 1.5rem;
165  height: 1.5rem;
166  text-align: center;
167  background-color: rgba(231, 242, 255, 0.5019607843);
168  padding: 0.375rem;
169}
170.title-wrap[_ngcontent-%COMP%]   .left-section[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .bs-pencil-line[_ngcontent-%COMP%] {
171  font-size: 0.813rem;
172  line-height: 1;
173  color: var(--text-tertiary);
174  cursor: pointer;
175  transition: all 0.2s ease-in-out;
176}
177.title-wrap[_ngcontent-%COMP%]:hover {
178  border-color: var(--card-hover-border-color);
179  background-color: var(--card-hover-bg);
180}
181.title-wrap[_ngcontent-%COMP%]:hover   .left-section[_ngcontent-%COMP%]   .edit-wrap[_ngcontent-%COMP%] {
182  display: flex;
183}
184.title-wrap[_ngcontent-%COMP%]:hover   .right-menu[_ngcontent-%COMP%]   .bs-delete-bin-line[_ngcontent-%COMP%] {
185  display: inline-block;
186}
187.title-wrap[_ngcontent-%COMP%]   .right-menu[_ngcontent-%COMP%] {
188  gap: 18px;
189}
190.title-wrap[_ngcontent-%COMP%]   .right-menu[_ngcontent-%COMP%]   .bs-arrow-down-remix[_ngcontent-%COMP%] {
191  font-size: 0.875rem;
192  transform: rotate(-90deg);
193  transition: all 0.2s ease-in-out;
194}
195.title-wrap[_ngcontent-%COMP%]   .right-menu[_ngcontent-%COMP%]   .bs-arrow-down-remix.rotate-down[_ngcontent-%COMP%] {
196  transform: rotate(0deg);
197}
198.title-wrap[_ngcontent-%COMP%]   .right-menu[_ngcontent-%COMP%]   .bs-delete-bin-line[_ngcontent-%COMP%] {
199  display: none;
200  transition: all 0.2s ease-in-out;
201}
202.title-wrap[_ngcontent-%COMP%]   .right-menu[_ngcontent-%COMP%]   .bs-delete-bin-line[_ngcontent-%COMP%]:hover {
203  color: var(--bs-danger);
204}
205.title-wrap[_ngcontent-%COMP%]   .right-menu[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {
206  cursor: pointer;
207}
208.title-wrap[_ngcontent-%COMP%]   .right-menu[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:last-child {
209  margin-left: 14px;
210}
211.loader[_ngcontent-%COMP%] {
212  width: 20px;
213  height: 20px;
214  border: 2px solid var(--bs-primary);
215  border-bottom-color: transparent;
216  border-radius: 50%;
217  display: inline-block;
218  box-sizing: border-box;
219  animation: _ngcontent-%COMP%_rotation 1s linear infinite;
220}
221@keyframes _ngcontent-%COMP%_rotation {
222  0% {
223    transform: rotate(0deg);
224  }
225  100% {
226    transform: rotate(360deg);
227  }
228}
229.api-list[_ngcontent-%COMP%] {
230  padding: 4px 0 0px 12px;
231}
232.overflow-container[_ngcontent-%COMP%] {
233  overflow: hidden;
234}
235.overflow-show[_ngcontent-%COMP%] {
236  animation: _ngcontent-%COMP%_update-overflow 0.5s 0.3s forwards;
237}
238.overflow-show[_ngcontent-%COMP%]::-webkit-scrollbar {
239  width: 0;
240}
241@keyframes _ngcontent-%COMP%_update-overflow {
242  0% {
243    overflow: hidden;
244  }
245  100% {
246    overflow: visible;
247  }
248}
249.no-apis[_ngcontent-%COMP%] {
250  font-size: 0.813rem;
251  margin: 16px 0 20px 0;
252}
253.no-apis[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {
254  font-size: 2rem;
255}
256.no-apis[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%] {
257  margin-bottom: 16px;
258}
259.main-pagination-wrapper[_ngcontent-%COMP%] {
260  width: 100%;
261  height: 2.5rem;
262  background-color: #ffffff;
263  border: 0.0625rem solid var(--grey-highlight-bg);
264  border-radius: 0.5rem;
265  box-sizing: border-box;
266  display: flex;
267  align-items: center;
268  justify-content: end;
269  margin-top: -3px;
270}`],data:{animation:[oe("apiExpandView",[B("collapse",N({height:"0px"})),B("expand",N({height:"*"})),ae("collapse <=> expand",[ie("0.3s ease-in-out")])]),,]}})}return t})();function Ve(t,p){if(t&1){let e=b();o(0,"app-api-error-resolver-category",10),h("configureErrorLog",function(r){v(e);let c=d(2);return _(c.onConfigureErrorLog(r))}),i()}if(t&2){let e=p.$implicit,n=d(2);l("applicationKey",n.appKey)("allowEdit",n.allowEdit)("errorLog",e)}}function Ne(t,p){t&1&&(o(0,"div",9),m(1,"i",11),o(2,"div",12),s(3,"No Errors found! \u{1F680}"),i()())}function Be(t,p){if(t&1&&(o(0,"div",6),A(1,Ve,1,3,"app-api-error-resolver-category",8,R,!1,Ne,4,0,"div",9),i()),t&2){let e=d();a(),D(e.apiErrorLogs)}}function He(t,p){t&1&&(o(0,"div",7),m(1,"span",13),i())}var xe=(()=>{class t{errorResolverServ;rightSidebarService;toastrService;router;projectDataService;route=w(F);appKey="";isExpanded=!1;apiErrorLogs;isLoading=!0;encodedKey;allowEdit=!1;constructor(e,n,r,c,y){this.errorResolverServ=e,this.rightSidebarService=n,this.toastrService=r,this.router=c,this.projectDataService=y}ngOnInit(){this.reactToRouteParamChanges(),this.initialize()}reactToRouteParamChanges(){this.route.parent?.parent?.paramMap.subscribe(e=>{let n=e.get("app")||"";this.encodedKey=n})}initialize(){return g(this,null,function*(){try{this.isLoading=!0,this.appKey=yield be.getAppKeyFromRouteParam(this.route);let e=yield this.errorResolverServ.getApiErrorLogs(this.appKey);this.apiErrorLogs=e.errorLogs,this.allowEdit=e.allowEdit}catch{this.toastrService.error("Error","API fetch failed.")}finally{this.isLoading=!1}})}onConfigureErrorLog(e){let n=e.errorLogDetail.errorLog;switch(e.errorLog.error){case"FoundUnknownVariable":case"FoundInvalidDomain":this.openVariableRightSidebar(n.variable);break;case"RoleBasedAuthNotConfigured":this.editRoleBasedAuth(n);break;case"RoleBasedDefaultAuthNotConfigured":this.editRoleBasedDefaultAuth(n);break;case"FoundUnknownDefaultHeader":this.editDefaultHeader(n);break;case"DefaultAuthorizationNotConfigured":this.openDefaultAuthSidebar();break;case"SharedAuthNotPresent":this.openSharedAuthorizationRightSidebar(n);break;default:this.navigateToGraphqlQuery(e);break}}navigateToGraphqlQuery(e){return g(this,null,function*(){let n=e.errorLogDetail.key,r=yield this.errorResolverServ.getApiPagingDetails(this.appKey,n,10,10,10);this.projectDataService.navigateToApiTestingApi({key:this.appKey},n,e.errorLogDetail.group,r.groupPageNumber-1,r.groupApiPageNumber-1)})}editRoleBasedDefaultAuth(e){let n="edit",r={defaultAuthorization:!0,[n]:!0};this.router.navigate([],{relativeTo:this.route,queryParams:r,queryParamsHandling:"merge"}).then(()=>{this.rightSidebarService.open(ve,{header:`Setup default ${e.role} Authorization`,data:{appKey:this.appKey,operation:n,role:e.role}}).subscribe(()=>{this.initialize()})})}editRoleBasedAuth(e){let n={edit:!0,variable:e.reference};this.router.navigate([],{relativeTo:this.route,queryParams:n,queryParamsHandling:"merge"}).then(()=>{this.rightSidebarService.open(_e,{header:`Add ${e.role} Authorization`,data:{appKey:this.appKey,roleName:e.role}}).subscribe(()=>{this.initialize()})})}openSharedAuthorizationRightSidebar(e){this.router.navigate([],{relativeTo:this.route,queryParams:{add:!0,variable:e.reference},queryParamsHandling:"merge"}),this.rightSidebarService.open(ue,{header:"Add authorization",data:{appKey:this.appKey}}).subscribe(r=>{this.initialize()})}openDefaultAuthSidebar(){this.router.navigate([],{relativeTo:this.route,queryParams:{add:!0},queryParamsHandling:"merge"}),this.rightSidebarService.open(he,{header:"Setup default authorization",data:{appKey:this.appKey,key:this.encodedKey}}).subscribe(n=>{this.initialize()})}openVariableRightSidebar(e){this.router.navigate([],{relativeTo:this.route,queryParams:{add:!0},queryParamsHandling:"merge"}),this.rightSidebarService.open(ge,{header:"Add Variable",data:{appKey:this.appKey,variableInfo:{variable:e}}}).subscribe(r=>{})}editDefaultHeader(e){this.router.navigate([],{relativeTo:this.route,queryParams:{edit:!0,key:e.header},queryParamsHandling:"merge"}),this.rightSidebarService.open(G,{header:"Add default header",data:{appKey:this.appKey,inputData:{key:e.header}}}).subscribe(r=>{this.initialize()})}addHeader(){this.router.navigate([],{relativeTo:this.route,queryParams:{add:!0},queryParamsHandling:"merge"}),this.rightSidebarService.open(G,{header:"Add default header",data:{appKey:this.appKey}}).subscribe(n=>{this.initialize()})}static \u0275fac=function(n){return new(n||t)(u(j),u(ce),u(re),u(T),u(le))};static \u0275cmp=P({type:t,selectors:[["api-graphql-error-resolver"]],standalone:!1,features:[J([fe])],decls:11,vars:1,consts:[[1,"error-resolver-content-area","card-item","pt-0"],[1,"b-custom-scroll","b-scroll-view","w-100"],[1,"card-content"],[1,"text-section"],[1,"card-title","page-header","mb-0"],[1,"card-description"],[1,"content-container"],[1,"w-100","h-100","d-flex","justify-content-center"],[3,"applicationKey","allowEdit","errorLog"],[1,"text-center","no-data"],[3,"configureErrorLog","applicationKey","allowEdit","errorLog"],[1,"bs-information-line"],[1,"message"],[1,"loader"]],template:function(n,r){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span"),s(6," Error Resolver "),i()(),o(7,"div",5),s(8," Error Resolver helps you quickly resolve API-related errors with just a few clicks, ensuring smooth functionality "),i(),f(9,Be,4,1,"div",6)(10,He,2,0,"div",7),i()()()()),n&2&&(a(9),E(r.isLoading?10:9))},dependencies:[ye],styles:[`
271
272.text-section[_ngcontent-%COMP%] {
273  display: flex;
274  flex-direction: column;
275  gap: 1rem;
276  align-items: flex-start;
277  justify-content: flex-start;
278  width: 100%;
279  left: 1.5rem;
280  top: 1.5rem;
281}
282.error-resolver-content-area[_ngcontent-%COMP%]   .page-header[_ngcontent-%COMP%] {
283  position: sticky;
284  top: 0;
285  z-index: 1;
286  background-color: var(--card-bg);
287  padding-block: 1.5rem 0.75rem;
288}
289.error-resolver-content-area[_ngcontent-%COMP%]   .b-table-container[_ngcontent-%COMP%], 
290.error-resolver-content-area[_ngcontent-%COMP%]   .b-table-container-2[_ngcontent-%COMP%] {
291  max-height: unset;
292}
293.error-resolver-content-area[_ngcontent-%COMP%]     .b-table-container.b-table-scroll, 
294.error-resolver-content-area[_ngcontent-%COMP%]     .b-table-container-2.b-table-scroll {
295  overflow: unset;
296}
297.error-resolver-content-area[_ngcontent-%COMP%]     .tab-body {
298  overflow: unset;
299}
300.content-container[_ngcontent-%COMP%] {
301  width: 100%;
302  margin-top: 0.5rem;
303}
304.no-data[_ngcontent-%COMP%] {
305  padding: 32px;
306  max-width: 991px;
307  margin: 0 auto;
308}
309.no-data[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%] {
310  color: var(--text-tertiary);
311  font-size: 0.813rem;
312  margin-top: 16px;
313}
314.loader[_ngcontent-%COMP%] {
315  width: 1.75rem;
316  height: 1.75rem;
317  border: 0.1875rem solid var(--bs-primary);
318  border-bottom-color: transparent;
319  border-radius: 50%;
320  display: inline-block;
321  box-sizing: border-box;
322  animation: rotation 1s linear infinite;
323}`]})}return t})();var Ge=[{path:"",component:xe}],Me=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=S({type:t});static \u0275inj=O({imports:[V.forChild(Ge),V]})}return t})();var Bt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=S({type:t});static \u0275inj=O({imports:[Z,ne,Me,me,de,Ce,pe,H,H,z]})}return t})();export{Bt as ApiErrorResolverModule};

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.