PageSourceSearch

https://my.rebelinternet.uk/4377.f157c40a7c120e4b.js

js rebelinternet.uk collected 2026-10-06 13:19:40 UTC 44,099 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksrc=self.webpackChunksrc||[]).push([[4377],{24377:function(Be,H,g){g.r(H),g.d(H,{APIStatusModule:function(){return Fe}});var C=g(43144),A=g(15671),ee=g(62866),Z=g(69808),v=g(93075),te=g(41174),z=g(83327),x=g(22161),ne=g(34390),ie=g(495),oe=g(87757),c=g.n(oe),e=g(5e3),M=g(60136),D=g(29388),O=g(633),U=g(40520),E=function(){var i=function(s){(0,M.Z)(t,s);var n=(0,D.Z)(t);function t(r,o){var a;return(0,A.Z)(this,t),(a=n.call(this,r,o)).url="api/api-status",a.entityTitle="APIEndPoint",a}return(0,C.Z)(t,[{key:"GetAllEndPoints",value:function(){var o=this,a=this.url+"/GetAll";return new Promise(function(p,h){o.http.get(a).subscribe(function(u){p(u)},function(u){console.error("Error: ",u),h(u)})})}}]),t}(x.hC);return i.\u0275fac=function(n){return new(n||i)(e.LFG(U.eN),e.LFG(O.K7))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i}(),J=g(32726),j=g(59783),L=g(15315),N=g(31424),re=g(14036),W=g(73407),ae=g(98952),G=g(40845),q=function(i,s,n,t){return new(n||(n=Promise))(function(o,a){function p(l){try{u(t.next(l))}catch(f){a(f)}}function h(l){try{u(t.throw(l))}catch(f){a(f)}}function u(l){l.done?o(l.value):function r(o){return o instanceof n?o:new n(function(a){a(o)})}(l.value).then(p,h)}u((t=t.apply(i,s||[])).next())})},Q=function(){return{"margin-left":"25%"}};function se(i,s){1&i&&(e.TgZ(0,"div",25),e.TgZ(1,"small",26),e._uU(2,"URL is required."),e.qZA(),e.qZA()),2&i&&e.Akn(e.DdM(2,Q))}function le(i,s){1&i&&(e.TgZ(0,"tr",27),e.TgZ(1,"th",28),e._uU(2,"Key"),e.qZA(),e.TgZ(3,"th",29),e._uU(4,"Value"),e.qZA(),e._UZ(5,"th",30),e.qZA())}function ue(i,s){if(1&i){var n=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td",28),e._uU(2),e.qZA(),e.TgZ(3,"td",29),e._uU(4),e.qZA(),e.TgZ(5,"td",30),e.TgZ(6,"button",31),e.NdJ("click",function(){var a=e.CHM(n).$implicit;return e.oxw().removeProp("param",a.key)}),e.qZA(),e.qZA(),e.qZA()}if(2&i){var t=s.$implicit;e.xp6(2),e.Oqu(t.key),e.xp6(2),e.Oqu(t.value)}}function pe(i,s){1&i&&(e.TgZ(0,"tr",27),e.TgZ(1,"th",28),e._uU(2,"Key"),e.qZA(),e.TgZ(3,"th",29),e._uU(4,"Value"),e.qZA(),e._UZ(5,"th",30),e.qZA())}function de(i,s){if(1&i){var n=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td",28),e._uU(2),e.qZA(),e.TgZ(3,"td",29),e._uU(4),e.qZA(),e.TgZ(5,"td",30),e.TgZ(6,"button",31),e.NdJ("click",function(){var a=e.CHM(n).$implicit;return e.oxw().removeProp("header",a.key)}),e.qZA(),e.qZA(),e.qZA()}if(2&i){var t=s.$implicit;e.xp6(2),e.Oqu(t.key),e.xp6(2),e.Oqu(t.value)}}function ce(i,s){1&i&&(e.TgZ(0,"div",25),e.TgZ(1,"small",26),e._uU(2,"Key is required"),e.qZA(),e.qZA()),2&i&&e.Akn(e.DdM(2,Q))}function he(i,s){1&i&&(e.TgZ(0,"div",25),e.TgZ(1,"small",26),e._uU(2,"Value is required"),e.qZA(),e.qZA()),2&i&&e.Akn(e.DdM(2,Q))}var fe=function(){return{width:"1330px",height:"710px"}},b=function(){return{width:"25%",display:"inline-block"}},w=function(){return{width:"75%"}},$=function(){return{width:"90px",display:"inline-block"}},S=function(){return{"text-align":"end"}},ge=function(){return{width:"500px",height:"310px"}},K=function(){var i=function(){function s(n,t,r){(0,A.Z)(this,s),this.formBuilder=n,this.apiEndPointService=t,this.messageService=r,this.visible=!1,this.onActionComplete=new e.vpe,this.addHeaderVisible=!1,this.addQueryVisible=!1,this.prosVisible=!1,this.cloningMode=!1,this.queryParams=[],this.headers=[],this.requestTypes=[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}],this.clients=[{label:"Billing Both",value:"BILLINGBOTH"},{label:"BT Wholesale",value:"WHOLESALE"},{label:"DS",value:"DS"},{label:"Go Cardless",value:"GOCARDLESS"},{label:"Hub Spot",value:"HUBSPOT"},{label:"Plume",value:"PLUME"},{label:"Saa Squatch",value:"SAASQUATCH"},{label:"Talk Talk",value:"TALKTALK"},{label:"Vantage",value:"VANTAGE"},{label:"Zapappi",value:"ZAPAPPI"}]}return(0,C.Z)(s,[{key:"ngOnInit",value:function(){return q(this,void 0,void 0,c().mark(function t(){return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:this.formGroup=this.formBuilder.group({url:["",v.kI.required],jsonrequest:[" "],params:[" "],headers:[" "],typerequest:["",v.kI.required],client:["",v.kI.required]}),this.propsGroup=this.formBuilder.group({key:["",v.kI.required],value:["",v.kI.required]}),this.queryParams=[],this.headers=[];case 4:case"end":return o.stop()}},t,this)}))}},{key:"LoadData",value:function(){return q(this,void 0,void 0,c().mark(function t(){return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:this.cloningMode=!1,this.formGroup.reset(),this.formGroup.clearValidators(),this.queryParams=[],this.headers=[],this.APIEndPoint&&(this.formGroup.get("url").setValue(this.APIEndPoint.url),this.formGroup.get("jsonrequest").setValue(this.APIEndPoint.jsonRequest),this.formGroup.get("typerequest").setValue(this.APIEndPoint.typeRequest),this.formGroup.get("client").setValue(this.APIEndPoint.client),this.cloningMode=!0,this.queryParams=JSON.parse(this.APIEndPoint.params),this.headers=JSON.parse(this.APIEndPoint.headers));case 6:case"end":return o.stop()}},t,this)}))}},{key:"onHide",value:function(){return q(this,void 0,void 0,c().mark(function t(){return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:this.cloningMode=!1,this.formGroup.reset(),this.formGroup.clearValidators(),this.queryParams=[],this.headers=[];case 5:case"end":return o.stop()}},t,this)}))}},{key:"saveEndPoint",value:function(){return q(this,void 0,void 0,c().mark(function t(){var o,a,p,r=this;return c().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(o=JSON.stringify(this.queryParams),a=JSON.stringify(this.headers),this.formGroup.get("params").setValue(o),this.formGroup.get("headers").setValue(a),!this.formGroup.invalid){u.next=6;break}return u.abrupt("return");case 6:return this.formGroup.get("jsonrequest").value||this.formGroup.get("jsonrequest").setValue(""),p=this.cloningMode?"API EndPoint Cloned":"API EndPoint added",u.next=10,this.apiEndPointService.create(this.formGroup.value,{successMessage:p}).then(function(){r.visible=!1,r.onActionComplete.emit()});case 10:case"end":return u.stop()}},t,this)}))}},{key:"addHeader",value:function(){this.addHeaderVisible=!0,this.prosVisible=!0}},{key:"addQuery",value:function(){this.addQueryVisible=!0,this.prosVisible=!0}},{key:"validate",value:function(t){var r,o,a;return!(null===(r=this.formGroup.get(t))||void 0===r?void 0:r.valid)&&((null===(o=this.formGroup.get(t))||void 0===o?void 0:o.touched)||(null===(a=this.formGroup.get(t))||void 0===a?void 0:a.dirty))}},{key:"validateKeyValue",value:function(t){var r,o,a;return!(null===(r=this.propsGroup.get(t))||void 0===r?void 0:r.valid)&&((null===(o=this.propsGroup.get(t))||void 0===o?void 0:o.touched)||(null===(a=this.propsGroup.get(t))||void 0===a?void 0:a.dirty))}},{key:"addProp",value:function(){var t=this;if(this.addHeaderVisible){if(this.headers&&this.headers.length>0&&this.headers.find(function(r){return r.key===t.propsGroup.value.key}))return void this.messageService.add(J.v.Error("Property already exists"));this.headers.push(this.propsGroup.value),this.addHeaderVisible=!1}else{if(this.queryParams&&this.queryParams.length>0&&this.queryParams.find(function(r){return r.key===t.propsGroup.value.key}))return void this.messageService.add(J.v.Error("Property already exists"));this.queryParams.push(this.propsGroup.value),this.addQueryVisible=!1}this.prosVisible=!1,this.propsGroup.reset(),this.messageService.add(J.v.Success("Property added"))}},{key:"removeProp",value:function(t,r){"header"===t?this.headers=this.headers.filter(function(o){return o.key!==r}):this.queryParams=this.queryParams.filter(function(o){return o.key!==r})}}]),s}();return i.\u0275fac=function(n){return new(n||i)(e.Y36(v.qu),e.Y36(E),e.Y36(j.ez))},i.\u0275cmp=e.Xpm({type:i,selectors:[["api-craft"]],inputs:{visible:"visible",APIEndPoint:"APIEndPoint"},outputs:{onActionComplete:"onActionComplete"},decls:60,vars:86,consts:[[3,"header","visible","modal","draggable","resizable","visibleChange","onShow","onHide"],[2,"display","flex",3,"formGroup"],[1,"col-4",2,"display","inline-block"],["rte","1pB",1,"inputs-group-row"],["rte","1pC"],["type","text","pInputText","","formControlName","url"],["class","p-error","rte","1qd",3,"style",4,"ngIf"],["formControlName","client","optionLabel","label","optionValue","value","placeholder","Select a Type","appendTo","body",3,"options"],["formControlName","typerequest","optionLabel","label","optionValue","value","placeholder","Select a Type","appendTo","body",3,"options"],["rte","1pB",1,"inputs-group-row",2,"display","flex"],["rows","14","type","text","pInputText","","formControlName","jsonrequest","pInputTextarea","",3,"autoResize"],[1,"col-8",2,"display","inline-block"],["scrollHeight","150px",1,"apiPropsTable",3,"scrollable","value"],["pTemplate","header"],["pTemplate","body"],[1,""],["icon","pi pi-plus","type","button","label","Add Param",3,"onClick"],["icon","pi pi-plus","type","button","label","Add Header",3,"onClick"],[1,"mt-1"],["
1icon","pi pi-check","type","button",3,"label","disabled","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[3,"formGroup"],["type","text","pInputText","","formControlName","key"],["type","text","pInputText","","formControlName","value"],["icon","pi pi-check","type","button",3,"label","disabled","click"],["rte","1qd",1,"p-error"],["rte","1qe"],[1,"proprow"],[2,"flex-grow","1"],[2,"flex-grow","2"],[2,"flex-grow","0"],[1,"removeProp","pi","pi-trash",3,"click"]],template:function(n,t){1&n&&(e.TgZ(0,"p-dialog",0),e.NdJ("visibleChange",function(o){return t.visible=o})("onShow",function(){return t.LoadData()})("onHide",function(){return t.onHide()}),e.TgZ(1,"form",1),e.TgZ(2,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"label",4),e._uU(5,"URL: "),e.qZA(),e._UZ(6,"input",5),e.YNc(7,se,3,3,"div",6),e.qZA(),e._UZ(8,"br"),e.TgZ(9,"div",3),e.TgZ(10,"label",4),e._uU(11,"Client: "),e.qZA(),e._UZ(12,"p-dropdown",7),e.qZA(),e._UZ(13,"br"),e.TgZ(14,"div",3),e.TgZ(15,"label",4),e._uU(16,"Type: "),e.qZA(),e._UZ(17,"p-dropdown",8),e.qZA(),e._UZ(18,"br"),e.TgZ(19,"div",9),e.TgZ(20,"label",4),e._uU(21,"JSON Body: "),e.qZA(),e._UZ(22,"textarea",10),e.qZA(),e.qZA(),e.TgZ(23,"div",11),e.TgZ(24,"div",9),e.TgZ(25,"label",4),e._uU(26,"Params: "),e.qZA(),e.TgZ(27,"p-table",12),e.YNc(28,le,6,0,"ng-template",13),e.YNc(29,ue,7,2,"ng-template",14),e.qZA(),e.qZA(),e.TgZ(30,"div",15),e.TgZ(31,"p-button",16),e.NdJ("onClick",function(){return t.addQuery()}),e.qZA(),e.qZA(),e._UZ(32,"br"),e.TgZ(33,"div",9),e.TgZ(34,"label",4),e._uU(35,"Headers: "),e.qZA(),e.TgZ(36,"p-table",12),e.YNc(37,pe,6,0,"ng-template",13),e.YNc(38,de,7,2,"ng-template",14),e.qZA(),e.qZA(),e.TgZ(39,"div",15),e.TgZ(40,"p-button",17),e.NdJ("onClick",function(){return t.addHeader()}),e.qZA(),e.qZA(),e._UZ(41,"br"),e.TgZ(42,"div",18),e.TgZ(43,"p-button",19),e.NdJ("onClick",function(){return t.saveEndPoint()}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"p-dialog",20),e.NdJ("visibleChange",function(o){return t.prosVisible=o}),e.TgZ(45,"form",21),e.TgZ(46,"div",3),e.TgZ(47,"label",4),e._uU(48,"Key: "),e.qZA(),e._UZ(49,"input",22),e.YNc(50,ce,3,3,"div",6),e.qZA(),e._UZ(51,"br"),e.TgZ(52,"div",3),e.TgZ(53,"label",4),e._uU(54,"Value: "),e.qZA(),e._UZ(55,"input",23),e.YNc(56,he,3,3,"div",6),e.qZA(),e._UZ(57,"br"),e.TgZ(58,"div",18),e.TgZ(59,"p-button",24),e.NdJ("click",function(){return t.addProp()}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Akn(e.DdM(66,fe)),e.Q6J("header",t.cloningMode?"Clone EndPoint":"Create EndPoint")("visible",t.visible)("modal",!0)("draggable",!1)("resizable",!1),e.xp6(1),e.Q6J("formGroup",t.formGroup),e.xp6(3),e.Akn(e.DdM(67,b)),e.xp6(2),e.Akn(e.DdM(68,w)),e.xp6(1),e.Q6J("ngIf",t.validate("url")),e.xp6(3),e.Akn(e.DdM(69,b)),e.xp6(2),e.Akn(e.DdM(70,w)),e.Q6J("options",t.clients),e.xp6(3),e.Akn(e.DdM(71,b)),e.xp6(2),e.Akn(e.DdM(72,w)),e.Q6J("options",t.requestTypes),e.xp6(3),e.Akn(e.DdM(73,b)),e.xp6(2),e.Akn(e.DdM(74,w)),e.Q6J("autoResize",!1),e.xp6(3),e.Akn(e.DdM(75,$)),e.xp6(2),e.Q6J("scrollable",!0)("value",t.queryParams),e.xp6(3),e.Akn(e.DdM(76,S)),e.xp6(4),e.Akn(e.DdM(77,$)),e.xp6(2),e.Q6J("scrollable",!0)("value",t.headers),e.xp6(3),e.Akn(e.DdM(78,S)),e.xp6(3),e.Akn(e.DdM(79,S)),e.xp6(1),e.Q6J("label",t.cloningMode?"Clone EndPoint":"Create EndPoint")("disabled",!t.formGroup.valid),e.xp6(1),e.Akn(e.DdM(80,ge)),e.Q6J("header",t.addHeaderVisible?"Add Header":"Add Param")("visible",t.prosVisible)("modal",!0)("draggable",!1)("resizable",!1),e.xp6(1),e.Q6J("formGroup",t.propsGroup),e.xp6(2),e.Akn(e.DdM(81,b)),e.xp6(2),e.Akn(e.DdM(82,w)),e.xp6(1),e.Q6J("ngIf",t.validateKeyValue("key")),e.xp6(3),e.Akn(e.DdM(83,b)),e.xp6(2),e.Akn(e.DdM(84,w)),e.xp6(1),e.Q6J("ngIf",t.validateKeyValue("value")),e.xp6(2),e.Akn(e.DdM(85,S)),e.xp6(1),e.Q6J("label",t.addHeaderVisible?"Add Header":"Add Param")("disabled",!t.propsGroup.valid))},directives:[L.V,v._Y,v.JL,v.sg,v.Fj,N.o,v.JJ,v.u,Z.O5,re.Lt,W.g,ae.iA,j.jx,G.zx],styles:[".apisWorking[_ngcontent-%COMP%], .apisWorking[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px}.apiWorkingFine[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#00b300}
1.apiWorkingRegular[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#f90}.apiWorkingBad[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:red}.header[_ngcontent-%COMP%]{margin-bottom:42px}.AddEndPointContainer[_ngcontent-%COMP%]{margin-bottom:10px}.searchEndPoint[_ngcontent-%COMP%]{height:40px;margin-right:9px}.searchEndPoint[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:100%}.clearSearchBtn[_ngcontent-%COMP%]{position:absolute;right:75px;height:40px;width:40px;cursor:pointer;background:transparent;border:none}.clearSearchIcon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;height:40px;color:#7d7d7d}.clearSearchIcon[_ngcontent-%COMP%]:hover{color:#090909}.apiEndpoints[_ngcontent-%COMP%]{margin-top:20px}textarea[_ngcontent-%COMP%]{resize:vertical}.apiPropsTable[_ngcontent-%COMP%]{width:calc(100% - 90px);border:1px solid lightgray}.proprow[_ngcontent-%COMP%]{background-color:#fff}.removeProp[_ngcontent-%COMP%]{background:transparent;color:red;border:none;cursor:pointer}.removeProp[_ngcontent-%COMP%]:hover{color:#720000}"]}),i}(),X=function(){var i=function(s){(0,M.Z)(t,s);var n=(0,D.Z)(t);function t(r,o){var a;return(0,A.Z)(this,t),(a=n.call(this,r,o)).url="api/customer-portal/make-request/{requestId}/test",a.entityTitle="APICheck",a}return(0,C.Z)(t,[{key:"CheckEndPoint",value:function(o){var a=this,p=this.url.replace("{requestId}",o.id_original.toString());return new Promise(function(h){a.http.get(p).subscribe(function(l){h(!(!l||200!==l))},function(l){h(!1)})})}}]),t}(x.hC);return i.\u0275fac=function(n){return new(n||i)(e.LFG(U.eN),e.LFG(O.K7))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i}(),ve=g(17102),R=function(){var i=function(s){(0,M.Z)(t,s);var n=(0,D.Z)(t);function t(r,o){var a;return(0,A.Z)(this,t),(a=n.call(this,r,o)).url="api/api-status/{id}/view/{view}/details",a.entityTitle="APIRrquestDetails",a}return(0,C.Z)(t,[{key:"GetRequests",value:function(o,a){var p=this,h=this.url.replace("{id}",o.toString());return h=h.replace("{view}",a),new Promise(function(u,l){p.http.get(h).subscribe(function(f){u(f)},function(f){console.error("Error: ",f),l(f)})})}}]),t}(x.hC);return i.\u0275fac=function(n){return new(n||i)(e.LFG(U.eN),e.LFG(O.K7))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i}(),I=function(){return{width:"25%",display:"inline-block"}},y=function(){return{width:"75%"}};function _e(i,s){1&i&&(e.TgZ(0,"div",9),e.TgZ(1,"label",3),e._uU(2,"Response: "),e.qZA(),e._UZ(3,"textarea",12),e.qZA()),2&i&&(e.xp6(1),e.Akn(e.DdM(5,I)),e.xp6(2),e.Akn(e.DdM(6,y)),e.Q6J("autoResize",!1))}var Pe=function(){return{width:"35vw",height:"480px"}},V=function(){var i=function(){function s(n){(0,A.Z)(this,s),this.formBuilder=n,this.requestDetailsVisible=!1}return(0,C.Z)(s,[{key:"ngOnInit",value:function(){return function(i,s,n,t){return new(n||(n=Promise))(function(o,a){function p(l){try{u(t.next(l))}catch(f){a(f)}}function h(l){try{u(t.throw(l))}catch(f){a(f)}}function u(l){l.done?o(l.value):function r(o){return o instanceof n?o:new n(function(a){a(o)})}(l.value).then(p,h)}u((t=t.apply(i,s||[])).next())})}(this,void 0,void 0,c().mark(function t(){return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:this.formGroup=this.formBuilder.group({url:[""],date:[""],statusCode:[""],json:[""],type:[""],time:[""],response:[""]}),this.formGroup.disable();case 2:case"end":return o.stop()}},t,this)}))}},{key:"LoadData",value:function(){this.formGroup.get("url").setValue(this.request.apiEndPoint.url),this.formGroup.get("date").setValue(this.request.date),this.formGroup.get("statusCode").setValue(this.request.statusCode),this.formGroup.get("json").setValue(this.request.apiEndPoint.jsonRequest),this.formGroup.get("type").setValue(this.request.apiEndPoint.typeRequest),this.formGroup.get("time").setValue(this.request.time),this.formGroup.get("response").setValue(this.request.response)}},{key:"ResponseVisible",value:function(){return!(!this.request||!this.request.response)&&200!==this.request.statusCode}}]),s}();return i.\u0275fac=function(n){return new(n||i)(e.Y36(v.qu))},i.\u0275cmp=e.Xpm({type:i,selectors:[["api-viewer-details"]],inputs:{request:"request"},decls:33,vars:46,consts:[["header","Request Details",3,"visible","modal","draggable","resizable","visibleChange","onShow"],[3,"formGroup"],["rte","1pB",1,"inputs-group-row"],["rte","1pC"],["type","text","pInputText","","formControlName","url"],["type","text","pInputText","","formControlName","date"],["type","text","pInputText","","formControlName","statusCode"],["type","text","pInputText","","formControlName","time"],["type","text","pInputText","","formControlName","type"],["rte","1pB",1,"inputs-group-row",2,"display","flex"],["rows","9","type","text","pInputText","","formControlName","json","pInputTextarea","",3,"autoResize"],["class","inputs-group-row","style","display: flex;","rte","1pB",4,"ngIf"],["rows","9","type","text","pInputText","","formControlName","response","pInputTextarea","",3,"autoResize"]],template:function(n,t){1&n&&(e.TgZ(0,"p-dialog",0),e.NdJ("visibleChange",function(o){return t.requestDetailsVisible=o})("onShow",function(){return t.LoadData()}),e.TgZ(1,"form",1),e.TgZ(2,"div",2),e.TgZ(3,"label",3),e._uU(4,"URL: "),e.qZA(),e._UZ(5,"input",4),e.qZA(),e._UZ(6,"br"),e.TgZ(7,"div",2),e.TgZ(8,"label",3),e._uU(9,"Date: "),e.qZA(),e._UZ(10,"input",5),e.qZA(),e._UZ(11,"br"),e.TgZ(12,"div",2),e.TgZ(13,"label",3),e._uU(14,"Status Code: "),e.qZA(),e._UZ(15,"input",6),e.qZA(),e._UZ(16,"br"),e.TgZ(17,"div",2),e.TgZ(18,"label",3),e._uU(19,"Time (S): "),e.qZA(),e._UZ(20,"input",7),e.qZA(),e._UZ(21,"br"),e.TgZ(22,"div",2),e.TgZ(23,"label",3),e._uU(24,"Type: "),e.qZA(),e._UZ(25,"input",8),e.qZA(),e._UZ(26,"br"),e.TgZ(27,"div",9),e.TgZ(28,"label",3),e._uU(29,"JSON Body: "),e.qZA(),e._UZ(30,"textarea",10),e.qZA(),e._UZ(31,"br"),e.YNc(32,_e,4,7,"div",11),e.qZA(),e.qZA()),2&n&&(e.Akn(e.DdM(33,Pe)),e.Q6J("visible",t.requestDetailsVisible)("modal",!0)("draggable",!1)("resizable",!1),e.xp6(1),e.Q6J("formGroup",t.formGroup),e.xp6(2),e.Akn(e.DdM(34,I)),e.xp6(2),e.Akn(e.DdM(35,y)),e.xp6(3),e.Akn(e.DdM(36,I)),e.xp6(2),e.Akn(e.DdM(37,y)),e.xp6(3),e.Akn(e.DdM(38,I)),e.xp6(2),e.Akn(e.DdM(39,y)),e.xp6(3),e.Akn(e.DdM(40,I)),e.xp6(2),e.Akn(e.DdM(41,y)),e.xp6(3),e.Akn(e.DdM(42,I)),e.xp6(2),e.Akn(e.DdM(43,y)),e.xp6(3),e.Akn(e.DdM(44,I)),e.xp6(2),e.Akn(e.DdM(45,y)),e.Q6J("autoResize",!1),e.xp6(2),e.Q6J("ngIf",t.ResponseVisible()))},directives:[L.V,v._Y,v.JL,v.sg,v.Fj,N.o,v.JJ,v.u,W.g,Z.O5],styles:["textarea[_ngcontent-%COMP%]{resize:vertical}"]}),i}
1(),F=function(i,s,n,t){return new(n||(n=Promise))(function(o,a){function p(l){try{u(t.next(l))}catch(f){a(f)}}function h(l){try{u(t.throw(l))}catch(f){a(f)}}function u(l){l.done?o(l.value):function r(o){return o instanceof n?o:new n(function(a){a(o)})}(l.value).then(p,h)}u((t=t.apply(i,s||[])).next())})};function Ce(i,s){if(1&i){var n=e.EpF();e.TgZ(0,"span",4),e.NdJ("click",function(){var a=e.CHM(n).$implicit;return e.oxw(2).showDetails(a)}),e.TgZ(1,"span",5),e._uU(2," Request: "),e._UZ(3,"br"),e._uU(4),e.ALo(5,"date"),e._UZ(6,"br"),e._uU(7),e.ALo(8,"date"),e._UZ(9,"br"),e._uU(10),e.qZA(),e.qZA()}if(2&i){var t=s.$implicit;e.Udp("background",200===t.statusCode?"#7aea7a":"red"),e.xp6(4),e.hij(" ",e.xi3(5,5,t.date,"dd/MM/yyyy")," "),e.xp6(3),e.hij(" ",e.xi3(8,8,t.date,"HH:mm")," "),e.xp6(3),e.hij(" ",t.statusCode," ")}}function Ae(i,s){if(1&i&&(e.TgZ(0,"div",2),e.YNc(1,Ce,11,11,"span",3),e.qZA()),2&i){var n=e.oxw();e.xp6(1),e.Q6J("ngForOf",n.data)}}function Ze(i,s){if(1&i&&(e.TgZ(0,"span",7),e.TgZ(1,"span",5),e._uU(2," Request: "),e._UZ(3,"br"),e._uU(4),e.ALo(5,"date"),e._UZ(6,"br"),e._uU(7),e.qZA(),e.qZA()),2&i){var n=s.$implicit,t=e.oxw(2);e.Udp("background",t.getColor(n.percentSuccess)),e.xp6(4),e.hij(" ",e.xi3(5,4,n.date,"dd/MM/yyyy")," "),e.xp6(3),e.hij(" ",n.percentSuccess,"% Success ")}}function Ie(i,s){if(1&i&&(e.TgZ(0,"div",2),e.YNc(1,Ze,8,7,"span",6),e.qZA()),2&i){var n=e.oxw();e.xp6(1),e.Q6J("ngForOf",n.monthData)}}var ye=function(){var i=function(){function s(n){(0,A.Z)(this,s),this.apiRequestDetailsService=n,this.onLoadData=new e.vpe}return(0,C.Z)(s,[{key:"viewSelectedValue",get:function(){return this._viewSelectedValue},set:function(t){this._viewSelectedValue=t,this.onViewSelectedValueChange()}},{key:"onViewSelectedValueChange",value:function(){return F(this,void 0,void 0,c().mark(function t(){return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.LoadData();case 2:case"end":return o.stop()}},t,this)}))}},{key:"ngOnInit",value:function(){return F(this,void 0,void 0,c().mark(function t(){return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.LoadData();case 2:case"end":return o.stop()}},t,this)}))}},{key:"LoadData",value:function(){return F(this,void 0,void 0,c().mark(function t(){var r=this;return c().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(this.currentAPIEndPoint&&this.currentAPIEndPoint.id_original){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,this.apiRequestDetailsService.GetRequests(this.currentAPIEndPoint.id_original,this.viewSelectedValue).then(function(p){if(r.data=p,"month"==r.viewSelectedValue){var h=r.data.reduce(function(_,P){var k=new Date(P.date),d="".concat(k.getFullYear(),"-").concat(k.getMonth()+1,"-").concat(k.getDate());return _[d]||(_[d]={count:0,totalTime:0,successCount:0,details:[]}),_[d].totalTime+=P.time,_[d].count++,200===P.statusCode&&_[d].successCount++,_[d].details.push(P),_},{}),u=Object.keys(h).map(function(_){var P=h[_];return{date:_,avgTime:P.totalTime/P.count,percentSuccess:(P.successCount/P.count*100).toFixed(2),details:P.details}});r.monthData=u}var Y=(p.filter(function(_){return 200===_.statusCode}).length/p.length*100).toFixed(2);r.onLoadData.emit(Y)});case 4:case"end":return a.stop()}},t,this)}))}},{key:"getColor",value:function(t){return t>=90?"#7aea7a":t>=60?"yellow":"red"}},{key:"showDetails",value:function(t){this.requestSelected=t,this.APIViewerDetails.requestDetailsVisible=!0}}]),s}();return i.\u0275fac=function(n){return new(n||i)(e.Y36(R))},i.\u0275cmp=e.Xpm({type:i,selectors:[["api-viewer-line"]],viewQuery:function(n,t){var r;1&n&&e.Gf(V,5),2&n&&e.iGM(r=e.CRH())&&(t.APIViewerDetails=r.first)},inputs:{viewSelectedValue:"viewSelectedValue",currentAPIEndPoint:"currentAPIEndPoint"},outputs:{onLoadData:"onLoadData"},decls:3,vars:3,consts:[["style","display: flex; justify-content: space-around;",4,"ngIf"],[3,"request"],[2,"display","flex","justify-content","space-around"],["style","flex: 1 0 auto; height: 90px; border-radius: 9px; margin: 2px;","class","tooltip",3,"background","click",4,"ngFor","ngForOf"],[1,"tooltip",2,"flex","1 0 auto","height","90px","border-radius","9px","margin","2px",3,"click"],[1,"tooltiptext",2,"z-index","999","width","100px","position","absolute"],["style","flex: 1 0 auto; height: 90px; border-radius: 9px; margin: 2px;","class","tooltip",3,"background",4,"ngFor","ngForOf"],[1,"tooltip",2,"flex","1 0 auto","height","90px","border-radius","9px","margin","2px"]],template:function(n,t){1&n&&(e.YNc(0,Ae,2,1,"div",0),e.YNc(1,Ie,2,1,"div",0),e._UZ(2,"api-viewer-details",1)
1),2&n&&(e.Q6J("ngIf","month"!==t.viewSelectedValue),e.xp6(1),e.Q6J("ngIf","month"===t.viewSelectedValue),e.xp6(1),e.Q6J("request",t.requestSelected))},directives:[Z.O5,Z.sg,V],pipes:[Z.uU],styles:[".tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block;cursor:pointer}.tooltip[_ngcontent-%COMP%]   .tooltiptext[_ngcontent-%COMP%]{visibility:hidden;background-color:#fff;color:#555;text-align:center;padding:5px;margin-top:10px;border-radius:10px;position:absolute;z-index:1;top:20%;right:70%;transform:translateY(-50%);opacity:0;transition:opacity .3s}.tooltip[_ngcontent-%COMP%]:hover   .tooltiptext[_ngcontent-%COMP%]{visibility:visible;opacity:1}"]}),i}(),B=function(i,s,n,t){return new(n||(n=Promise))(function(o,a){function p(l){try{u(t.next(l))}catch(f){a(f)}}function h(l){try{u(t.throw(l))}catch(f){a(f)}}function u(l){l.done?o(l.value):function r(o){return o instanceof n?o:new n(function(a){a(o)})}(l.value).then(p,h)}u((t=t.apply(i,s||[])).next())})};function be(i,s){if(1&i){var n=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"p-chart",2),e.NdJ("onDataSelect",function(o){return e.CHM(n),e.oxw().selectData(o)}),e.qZA(),e.qZA()}if(2&i){var t=e.oxw();e.xp6(1),e.Q6J("height",t.height)("data",t.data)("options",t.chartOptions)}}var we=function(){var i=function(){function s(n){(0,A.Z)(this,s),this.apiRequestDetailsService=n,this.onLoadData=new e.vpe,this.height=10,this.dataLoaded=!1}return(0,C.Z)(s,[{key:"viewSelectedValue",get:function(){return this._viewSelectedValue},set:function(t){this._viewSelectedValue=t,this.onViewSelectedValueChange()}},{key:"onViewSelectedValueChange",value:function(){return B(this,void 0,void 0,c().mark(function t(){return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.LoadData();case 2:case"end":return o.stop()}},t,this)}))}},{key:"ngOnInit",value:function(){return B(this,void 0,void 0,c().mark(function t(){return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.chartOptions={scales:{x:{display:!1},y:{display:!1}},plugins:{legend:{display:!1}}},o.next=3,this.LoadData();case 3:case"end":return o.stop()}},t,this)}))}},{key:"LoadData",value:function(){return B(this,void 0,void 0,c().mark(function t(){var r=this;return c().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(this.currentAPIEndPoint){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,this.apiRequestDetailsService.GetRequests(this.currentAPIEndPoint.id_original,this.viewSelectedValue).then(function(p){r.APIData=p;var h=r.APIData.map(function(d){return{time:d.time,date:new Date(d.date)}});h.sort(function(d,m){return d.date.getTime()-m.date.getTime()});var u=h.map(function(d){var m=new Date(d.date);return"month"==r._viewSelectedValue?{time:d.time,date:m.toLocaleString("en-GB",{day:"2-digit",month:"2-digit",year:"numeric"})}:{time:d.time,date:m.toLocaleString("en-GB",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}}),l=u.map(function(d){return d.time}),f=u.map(function(d){return d.date}),_=(l.reduce(function(d,m){return d+m},0)/l.length).toFixed(2);if(r.onLoadData.emit(_),"month"==r._viewSelectedValue){var P=u.reduce(function(d,m){return d[m.date]||(d[m.date]={count:0,total:0,average:0}),d[m.date].total+=m.time,d[m.date].count++,d[m.date].average=d[m.date].total/d[m.date].count,d},{});u=Object.keys(P).map(function(d){return{date:d,time:P[d].average}})}l=u.map(function(d){return d.time}),f=u.map(function(d){return d.date}),r.data={labels:f,datasets:[{data:l,fill:!0,backgroundColor:"rgba(106, 90, 205,0.4)"}]},r.data&&r.data.datasets&&r.data.datasets.length>0&&r.data.datasets[0].data.length>0&&(r.height=100),r.dataLoaded=!0});case 4:case"end":return a.stop()}},t,this)}))}},{key:"selectData",value:function(t){"month"!=this._viewSelectedValue&&(this.requestSelected=this.APIData[t.element.index],this.APIViewerDetails.requestDetailsVisible=!0)}}]),s}();return i.\u0275fac=function(n){return new(n||i)(e.Y36(R))},i.\u0275cmp=e.Xpm({type:i,selectors:[["api-viewer-chart"]],viewQuery:function(n,t){var r;1&n&&e.Gf(V,5),2&n&&e.iGM(r=e.CRH())&&(t.APIViewerDetails=r.first)},inputs:{height:"height",viewSelectedValue:"viewSelectedValue",currentAPIEndPoint:"currentAPIEndPoint"},outputs:{onLoadData:"onLoadData"},decls:2,vars:2,consts:[[4,"ngIf"],[3,"request"],["type","line",3,"height","data","options","onDataSelect"]],template:function(n,t){1&n&&(e.YNc(0,be,2,3,"div",0),e._UZ(1,"api-viewer-details",1)
1),2&n&&(e.Q6J("ngIf",t.dataLoaded),e.xp6(1),e.Q6J("request",t.requestSelected))},directives:[Z.O5,z.C,V],styles:[""]}),i}();function Te(i,s){1&i&&e._UZ(0,"span",25)}function ke(i,s){1&i&&e._UZ(0,"span",26)}function xe(i,s){1&i&&e._UZ(0,"span",27)}function Ee(i,s){1&i&&(e.TgZ(0,"p",28),e._uU(1,"Working"),e.qZA())}function qe(i,s){1&i&&(e.TgZ(0,"p",29),e._uU(1,"Not Working"),e.qZA())}function Se(i,s){1&i&&(e.TgZ(0,"p",30),e._uU(1,"Pending..."),e.qZA())}function Ve(i,s){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){var n=e.oxw();e.xp6(1),e.hij("",n.uptime,"% Uptime ")}}function Me(i,s){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){var n=e.oxw();e.xp6(1),e.hij("",n.responseTime,"s Response Time ")}}function De(i,s){if(1&i){var n=e.EpF();e.TgZ(0,"api-viewer-line",31),e.NdJ("onLoadData",function(o){return e.CHM(n),e.oxw().UpdateUptime(o)}),e.qZA()}if(2&i){var t=e.oxw();e.Q6J("viewSelectedValue",t.viewSelectedValue)("currentAPIEndPoint",t.CurrentAPIEndPoint)}}function Oe(i,s){if(1&i){var n=e.EpF();e.TgZ(0,"api-viewer-chart",31),e.NdJ("onLoadData",function(o){return e.CHM(n),e.oxw().UpdateResponseTime(o)}),e.qZA()}if(2&i){var t=e.oxw();e.Q6J("viewSelectedValue",t.viewSelectedValue)("currentAPIEndPoint",t.CurrentAPIEndPoint)}}var Ue=function(){return{width:"35vw"}},Je=function(){return{"text-align":"end"}},Le=function(){var i=function(){function s(n){(0,A.Z)(this,s),this.apiEndPointService=n,this.onCloneClick=new e.vpe,this.onDeleteEndPoint=new e.vpe,this.uptime=0,this.responseTime=0,this.deleteEndPointConfirmation=!1}return(0,C.Z)(s,[{key:"CloneEndPoint",value:function(){this.onCloneClick.emit(this.CurrentAPIEndPoint)}},{key:"deleteEndPoint",value:function(){var t=this;this.apiEndPointService.delete(this.CurrentAPIEndPoint.id,{successMessage:"API EndPoint Deleted"}).then(function(){t.deleteEndPointConfirmation=!1,t.onDeleteEndPoint.emit()})}},{key:"UpdateUptime",value:function(t){this.uptime=t>0?t:0}},{key:"UpdateResponseTime",value:function(t){this.responseTime=t>0?t:0}}]),s}();return i.\u0275fac=function(n){return new(n||i)(e.Y36(E))},i.\u0275cmp=e.Xpm({type:i,selectors:[["api-endpoint"]],inputs:{selectedValue:"selectedValue",viewSelectedValue:"viewSelectedValue",CurrentAPIEndPoint:"CurrentAPIEndPoint"},outputs:{onCloneClick:"onCloneClick",onDeleteEndPoint:"onDeleteEndPoint"},decls:38,vars:24,consts:[[1,"card","endpointContainer"],[2,"display","flex","justify-content","space-between"],[1,"api-header-left"],[1,"apiURL"],["class","pi pi-check-circle","style","color: rgb(26, 158, 26);",4,"ngIf"],["class","pi pi-times-circle","style","color: red;",4,"ngIf"],["class","pi pi-spin pi-spinner","style","color: rgb(129, 129, 129);",4,"ngIf"],[1,"endPointActionBtn","pi","pi-info-circle",3,"click"],[1,"tooltip"],["class","endpointStatus","style","color: rgb(52, 212, 52);",4,"ngIf"],["class","endpointStatus","style","color: red;",4,"ngIf"],["class","endpointStatus","style","color: rgb(117, 117, 117);",4,"ngIf"],[1,"tooltiptext",2,"z-index","999","width","140px","position","absolute"],[1,"api-header-right"],[4,"ngIf"],[1,"endPointActionBtn","pi","pi-trash",3,"click"],[1,"api-status-viewer"],[3,"viewSelectedValue","currentAPIEndPoint","onLoadData",4,"ngIf"],["header","Delete Confirmation",3,"visible","modal","draggable","resizable","visibleChange"],[2,"font-weight","600"],[1,"mt-3"],["pButton","","pRipple","","type","button",1,"p-button",3,"click"],[1,"pi","pi-times",2,"margin-right","9px"],["pButton","","pRipple","","type","button",1,"p-button-danger",2,"margin-left","3px",3,"click"],[1,"pi","pi-check",2,"margin-right","9px"],[1,"pi","pi-check-circle",2,"color","rgb(26, 158, 26)"],[1,"pi","pi-times-circle",2,"color","red"],[1,"pi","pi-spin","pi-spinner",2,"color","rgb(129, 129, 129)"],[1,"endpointStatus",2,"color","rgb(52, 212, 52)"],[1,"endpointStatus",2,"color","red"],[1,"endpointStatus",2,"color","rgb(117, 117, 117)"],[3,"viewSelectedValue","currentAPIEndPoint","onLoadData"]],template:function(n,t){1&n&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"div"),e.TgZ(4,"p",3),e.YNc(5,Te,1,0,"span",4),e.YNc(6,ke,1,0,"span",5),e.YNc(7,xe,1,0,"span",6),e._uU(8),e.TgZ(9,"button",7),e.NdJ("click",function(){return t.CloneEndPoint()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",8),e.YNc(11,Ee,2,0,"p",9),e.YNc(12,qe,2,0,"p",10),e.YNc(13,Se,2,0,"p",11),e.TgZ(14,"span",12),e._uU(15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"div",13),e.TgZ(17,"div"),e.TgZ(18,"p"),e.YNc(19,Ve,2,1,"span",14),e.YNc(20,Me,2,1,"span",14),e.TgZ(21,"button",15),e.NdJ("click",function(){return t.deleteEndPointConfirmation=!0}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",16),e.YNc(23,De,1,2,"api-viewer-line",17),e.YNc(24,Oe,1,2,"api-viewer-chart",17),e.qZA(),e.qZA(),e.TgZ(25,"p-dialog",18),e.NdJ("visibleChange",function(o){return t.deleteEndPointConfirmation=o}),e.TgZ(26,"p"),e._uU(27,"Are you sure you want to delete the "),e.TgZ(28,"span",19),e._uU(29),e.qZA(),e._uU(30," EndPoint along with all its saved records?"),e.qZA(),e.TgZ(31,"div",20),e.TgZ(32,"button",21),e.NdJ("click",function(){return t.deleteEndPointConfirmation=!1}),e._UZ(33,"span",22),e._uU(34," No"),e.qZA(),e.TgZ(35,"button",23),e.NdJ("click",function(){return t.deleteEndPoint()}),e._UZ(36,"span",24),e._uU(37," Yes"),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.xp6(5),e.Q6J("ngIf",200===t.CurrentAPIEndPoint.currentStatus),e.xp6(1),e.Q6J("ngIf",200!==t.CurrentAPIEndPoint.currentStatus&&0!==t.CurrentAPIEndPoint.currentStatus),e.xp6(1),e.Q6J("ngIf",0===t.CurrentAPIEndPoint.currentStatus),e.xp6(1),e.AsE(" ",t.CurrentAPIEndPoint.client,": ",t.CurrentAPIEndPoint.url," "),e.xp6(3),e.Q6J("ngIf",200===t.CurrentAPIEndPoint.currentStatus),e.xp6(1),e.Q6J("ngIf",200!==t.CurrentAPIEndPoint.currentStatus&&0!==t.CurrentAPIEndPoint.currentStatus),e.xp6(1),e.Q6J("ngIf",0===t.CurrentAPIEndPoint.currentStatus),e.xp6(2),e.hij(" Status Code: ",t.CurrentAPIEndPoint.currentStatus," "),e.xp6(4),e.Q6J("ngIf","uptime"===t.selectedValue),e.xp6(1),e.Q6J("ngIf","performance"===t.selectedValue),e.xp6(3),e.Q6J("ngIf","uptime"===t.selectedValue),e.xp6(1),e.Q6J("ngIf","performance"===t.selectedValue),e.xp6(1),e.Akn(e.DdM(22,Ue)),e.Q6J("visible",t.deleteEndPointConfirmation)("modal",!0)("draggable",!1)("resizable",!1),e.xp6(4),e.Oqu(t.CurrentAPIEndPoint.url),e.xp6(2),e.Akn(e.DdM(23,Je)))},directives:[Z.O5,ye,we,L.V,G.Hq],styles:[".endpointContainer[_ngcontent-%COMP%]{background-color:#ececec;font-size:15px;font-weight:600}.endpointStatus[_ngcontent-%COMP%]{font-size:13px;margin-left:15px}.endPointActionBtn[_ngcontent-%COMP%]{cursor:pointer;border:none;color:gray}.endPointActionBtn[_ngcontent-%COMP%]:hover{color:#000}.api-header-right[_ngcontent-%COMP%]{font-weight:100}.api-status-viewer[_ngcontent-%COMP%]{margin-top:10px}.tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block;cursor:pointer}.tooltip[_ngcontent-%COMP%]   .tooltiptext[_ngcontent-%COMP%]{visibility:hidden;background-color:#fff;color:#555;text-align:center;padding:5px;margin-top:10px;border-radius:10px;position:absolute;z-index:1;top:10px;opacity:0;transition:opacity .3s}.tooltip[_ngcontent-%COMP%]:hover   .tooltiptext[_ngcontent-%COMP%]{visibility:visible;opacity:1}"]}
1),i}(),T=function(i,s,n,t){return new(n||(n=Promise))(function(o,a){function p(l){try{u(t.next(l))}catch(f){a(f)}}function h(l){try{u(t.throw(l))}catch(f){a(f)}}function u(l){l.done?o(l.value):function r(o){return o instanceof n?o:new n(function(a){a(o)})}(l.value).then(p,h)}u((t=t.apply(i,s||[])).next())})};function Ne(i,s){if(1&i){var n=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){return e.CHM(n),e.oxw().clearSearch()}),e._UZ(1,"span",17),e.qZA()}}function Ge(i,s){if(1&i){var n=e.EpF();e.ynx(0,18),e.TgZ(1,"api-endpoint",19),e.NdJ("onCloneClick",function(){var p=e.CHM(n).$implicit;return e.oxw().cloneEndPoint(p)})("onDeleteEndPoint",function(){return e.CHM(n),e.oxw().handleActionComplete()}),e.qZA(),e.BQk()}if(2&i){var t=s.$implicit,r=e.oxw();e.xp6(1),e.Q6J("CurrentAPIEndPoint",t)("selectedValue",r.currentInfoOption)("viewSelectedValue",r.currentViewOption)}}var Re=[{path:"",component:function(){var i=function(){function s(n,t){(0,A.Z)(this,s),this.apiEndPointService=n,this.apiCheckService=t,this.EndPoints=[],this.infoOptions=[{label:"Uptime",value:"uptime"},{label:"Performance",value:"performance"}],this.viewOptions=[{label:"Day",value:"day"},{label:"Week",value:"week"},{label:"Month",value:"month"}],this.currentInfoOption="uptime",this.currentViewOption="day",this.endPointSearchValue="",this.endPointsWorking=0,this.showClearSearch=!1}return(0,C.Z)(s,[{key:"ngOnInit",value:function(){return T(this,void 0,void 0,c().mark(function t(){return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.LoadEndPoints();case 2:case"end":return o.stop()}},t,this)}))}},{key:"LoadEndPoints",value:function(){return T(this,void 0,void 0,c().mark(function t(){var r=this;return c().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.apiEndPointService.GetAllEndPoints().then(function(p){r.EndPoints=p});case 2:return a.next=4,this.CheckAllEndPoints();case 4:case"end":return a.stop()}},t,this)}))}},{key:"CheckAllEndPoints",value:function(){return T(this,void 0,void 0,c().mark(function t(){return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:this.endPointsWorking=this.EndPoints.filter(function(a){return 200===a.currentStatus}).length;case 1:case"end":return o.stop()}},t,this)}))}},{key:"infoValueChange",value:function(t){this.currentInfoOption=t.value}},{key:"viewValueChange",value:function(t){this.currentViewOption=t.value}},{key:"addEndPoint",value:function(){this.APICraft.APIEndPoint=null,this.APICraft.visible=!0}},{key:"cloneEndPoint",value:function(t){this.APICraft.visible=!0,this.APICraft.APIEndPoint=t}},{key:"handleActionComplete",value:function(){return T(this,void 0,void 0,c().mark(function t(){return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:this.LoadEndPoints();case 1:case"end":return o.stop()}},t,this)}))}},{key:"searchEndPoints",value:function(){return T(this,void 0,void 0,c().mark(function t(){var r;return c().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!this.endPointSearchValue){a.next=7;break}return r=this.endPointSearchValue.toLowerCase(),this.EndPoints=this.EndPoints.filter(function(p){var h=p.url.toLowerCase(),u=p.client.toLowerCase();return h.includes(r)||u.includes(r)}),a.next=5,this.CheckAllEndPoints();case 5:a.next=9;break;case 7:return a.next=9,this.LoadEndPoints();case 9:case"end":return a.stop()}},t,this)}))}},{key:"onSearchChange",value:function(){this.showClearSearch=!!this.endPointSearchValue}},{key:"clearSearch",value:function(){this.endPointSearchValue="",this.showClearSearch=!1,this.LoadEndPoints()}},{key:"getIcon",value:function(){var t=this.endPointsWorking/this.EndPoints.length*100;return t>75?"pi pi-check-circle":t>=50&&t<=75?"pi pi-info-circle":"pi pi-times-circle"}},{key:"getIconColorClass",value:function(){var t=this.endPointsWorking/this.EndPoints.length*100;return t>75?"apiWorkingFine":t>=50&&t<=75?"apiWorkingRegular":"apiWorkingBad"}}]),s}();return i.\u0275fac=function(n){return new(n||i)(e.Y36(E),e.Y36(X))},i.\u0275cmp=e.Xpm({type:i,selectors:[["api-status"]],viewQuery:function(n,t){var r;1&n&&e.Gf(K,5),2&n&&e.iGM(r=e.CRH())&&(t.APICraft=r.first)},decls:24,vars:15,consts:[[1,"card"],[1,"header"],[1,"body"],[1,"AddEndPointContainer"],["pButton","","pRipple","",1,"p-button-success",3,"click"],[1,"pi","pi-plus",2,"margin-right","9px"],[1,"FeatureOptions",2,"display","flex","justify-content","space-between"],["optionLabel","label","optionValue","value",3,"options","ngModel","ngModelChange","onChange"],[2,"display","flex"],[1,"searchEndPoint","p-input-icon-left"],[1,"pi","pi-search"],["type","text","pInputText","",2,"border-radius","4px 0px 0px 4px","padding-right","40px",3,"ngModel","ngModelChange"],["class","clearSearchBtn",3,"click",4,"ngIf"],["pButton","","pRipple","",1,"p-button",2,"height","40px","border-radius","0px 4px 4px 0px",3,"click"],["class","apiEndpoints",4,"ngFor","ngForOf"],[3,"onActionComplete"],[1,"clearSearchBtn",3,"click"],[1,"clearSearchIcon","pi","pi-times"],[1,"apiEndpoints"],[3,"CurrentAPIEndPoint","selectedValue","viewSelectedValue","onCloneClick","onDeleteEndPoint"]],template:function(n,t){1&n&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"API Status"),e.qZA(),e.TgZ(4,"p"),e._UZ(5,"span"),e._uU(6),e.qZA(),e.qZA(),e.TgZ(7,"div",2),e.TgZ(8,"div",3),e.TgZ(9,"button",4),e.NdJ("click",function(){return t.addEndPoint()}),e._UZ(10,"span",5),e._uU(11," Add EndPoint"),e.qZA(),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"p-selectButton",7),e.NdJ("ngModelChange",function(o){return t.currentInfoOption=o})("onChange",function(o){return t.infoValueChange(o)}),e.qZA(),e.TgZ(14,"div",8),e.TgZ(15,"span",9),e._UZ(16,"i",10),e.TgZ(17,"input",11),e.NdJ("ngModelChange",function(o){return t.endPointSearchValue=o})("ngModelChange",function(){return t.onSearchChange()}),e.qZA(),e.YNc(18,Ne,2,0,"button",12),e.TgZ(19,"button",13),e.NdJ("click",function(){return t.searchEndPoints()}),e._uU(20,"Search"),e.qZA(),e.qZA(),e.TgZ(21,"p-selectButton",7),e.NdJ("ngModelChange",function(o){return t.currentViewOption=o})("onChange",function(o){return t.viewValueChange(o)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(22,Ge,2,3,"ng-container",14),e.qZA(),e.TgZ(23,"api-craft",15),e.NdJ("onActionComplete",function(){return t.handleActionComplete()}),e.qZA()),2&n&&(e.xp6(4),e.Gre("apisWorking ",t.getIconColorClass(),""),e.xp6(1),e.Tol(t.getIcon()),e.xp6(1),e.AsE(" ",t.endPointsWorking," of ",t.EndPoints.length," EndPoints Working "),e.xp6(7),e.Q6J("options",t.infoOptions)("ngModel",t.currentInfoOption),e.xp6(4),e.Q6J("ngModel",t.endPointSearchValue),e.xp6(1),e.Q6J("ngIf",t.showClearSearch),e.xp6(3),e.Q6J("options",t.viewOptions)("ngModel",t.currentViewOption),e.xp6(1),e.Q6J("ngForOf",t.EndPoints))},directives:[G.Hq,ve.UN,v.JJ,v.On,v.Fj,N.o,Z.O5,Z.sg,Le,K],styles:[".apisWorking[_ngcontent-%COMP%], .apisWorking[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px}.apiWorkingFine[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#00b300}
1.apiWorkingRegular[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#f90}.apiWorkingBad[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:red}.header[_ngcontent-%COMP%]{margin-bottom:42px}.AddEndPointContainer[_ngcontent-%COMP%]{margin-bottom:10px}.searchEndPoint[_ngcontent-%COMP%]{height:40px;margin-right:9px}.searchEndPoint[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:100%}.clearSearchBtn[_ngcontent-%COMP%]{position:absolute;right:75px;height:40px;width:40px;cursor:pointer;background:transparent;border:none}.clearSearchIcon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;height:40px;color:#7d7d7d}.clearSearchIcon[_ngcontent-%COMP%]:hover{color:#090909}.apiEndpoints[_ngcontent-%COMP%]{margin-top:20px}textarea[_ngcontent-%COMP%]{resize:vertical}.apiPropsTable[_ngcontent-%COMP%]{width:calc(100% - 90px);border:1px solid lightgray}.proprow[_ngcontent-%COMP%]{background-color:#fff}.removeProp[_ngcontent-%COMP%]{background:transparent;color:red;border:none;cursor:pointer}.removeProp[_ngcontent-%COMP%]:hover{color:#720000}"]}),i}(),data:{title:"API Status"}}],Fe=function(){var i=(0,C.Z)(function s(){(0,A.Z)(this,s)});return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({providers:[E,R,X],imports:[[Z.ez,v.u5,v.UX,te.g,z.S,x.zE,ne.iL,ie.f,ee.Bz.forChild(Re)]]}),i}()}}]);

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.