PageSourceSearch

https://www.astratex.ro/Js/WebApiService.min.js?v=23

js astratex.ro collected 2026-09-26 15:04:02 UTC 4,574 bytes, 1 lines download raw bytes

1var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},__assign.apply(this,arguments)},__awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n(function(e){e(t)})}return new(n||(n=Promise))(function(n,s){function o(t){try{c(r.next(t))}catch(t){s(t)}}function a(t){try{c(r.throw(t))}catch(t){s(t)}}function c(t){t.done?n(t.value):i(t.value).then(o,a)}c((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function n(t){return function(e){return r([t,e])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,n[0]&&(c=0)),c;)try{if(i=1,s&&(o=2&n[0]?s.return:n[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,n[1])).done)return o;switch(s=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return c.label++,{value:n[1],done:!1};case 5:c.label++,s=n[1],n=[0];continue;case 7:n=c.ops.pop(),c.trys.pop();continue;default:if(o=c.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){c=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){c.label=n[1];break}if(6===n[0]&&c.label<o[1]){c.label=o[1],o=n;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(n);break}o[2]&&c.ops.pop(),c.trys.pop();continue}n=e.call(t,c)}catch(t){n=[6,t],s=0}finally{i=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,s,o,a,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a},ApiResponse=function(){function t(t,e,n){this.status=t,this.success=e,this.data=n}return t}(),WebApiService=function(){function t(){this.DEFAULT_WEB_API_OPTIONS={headers:{"Content-Type":"application/json","X-Application":"Catalog",Authorization:"Bearer ".concat(_webApiScrt)},credentials:"include",redirect:"follow"}}return t.IsWebApiAvailable=function(){return"undefined"!=typeof _webApiScrt&&"undefined"!=typeof _webApiUrl},Object.defineProperty(t.prototype,"webApiUrl",{get:function(){return(_webApiUrl.startsWith("https://")?_webApiUrl:"https://"+_webApiUrl)+"/webapi"},enumerable:!1,configurable:!0}),t.prototype.prepareUrl=function(t){return t.startsWith("/")||(t="/".concat(t)),"".concat(this.webApiUrl).concat(t)},t.prototype.handleResponse=function(t){return __awaiter(this,void 0,void 0,function(){var e,n,r;return __generator(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,t.json()];case 1:return e=i.sent(),[3,3];case 2:return n=i.sent(),e=null,[3,3];case 3:return r=new ApiResponse(t.status,t.status<400,e),[2,r]}})})},t.prototype.postAsync=function(t,e){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){switch(r.label){case 0:return[4,fetch(this.prepareUrl(t),__assign(__assign({},this.DEFAULT_WEB_API_OPTIONS),{method:"POST",body:void 0!==e?JSON.stringify(e):void 0}))];case 1:return n=r.sent(),[4,this.handleResponse(n)];case 2:return[2,r.sent()]}})})},t.prototype.putAsync=function(t,e){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){switch(r.label){case 0:return[4,fetch(this.prepareUrl(t),__assign(__assign({},this.DEFAULT_WEB_API_OPTIONS),{method:"PUT",body:void 0!==e?JSON.stringify(e):void 0}))];case 1:return n=r.sent(),[4,this.handleResponse(n)];case 2:return[2,r.sent()]}})})},t.prototype.patchAsync=function(t,e){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){switch(r.label){case 0:return[4,fetch(this.prepareUrl(t),__assign(__assign({},this.DEFAULT_WEB_API_OPTIONS),{method:"PATCH",body:void 0!==e?JSON.stringify(e):void 0}))];case 1:return n=r.sent(),[4,this.handleResponse(n)];case 2:return[2,r.sent()]}})})},t.prototype.getAsync=function(t){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(n){switch(n.label){case 0:return[4,fetch(this.prepareUrl(t),__assign(__assign({},this.DEFAULT_WEB_API_OPTIONS),{method:"GET"}))];case 1:return e=n.sent(),[4,this.handleResponse(e)];case 2:return[2,n.sent()]}})})},t.prototype.deleteAsync=function(t){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(n){switch(n.label){case 0:return[4,fetch(this.prepareUrl(t),__assign(__assign({},this.DEFAULT_WEB_API_OPTIONS),{method:"DELETE"}))];case 1:return e=n.sent(),[4,this.handleResponse(e)];case 2:return[2,n.sent()]}})})},t}();

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.