PageSourceSearch

https://www.inspiraenergia.com/js/dx.aspnet.data.js

js inspiraenergia.com collected 2026-10-02 01:32:30 UTC 4,717 bytes, 1 lines download raw bytes

1(function(n){"use strict";function t(n){return n&&n.__esModule&&n.default?n.default:n}typeof define=="function"&&define.amd?define(function(i,r,u){u.exports=n(t(i("devextreme/core/utils/ajax")),i("jquery").Deferred,i("jquery").extend,t(i("devextreme/data/custom_store")),t(i("devextreme/data/utils")))}):typeof module=="object"&&module.exports?module.exports=n(t(require("devextreme/core/utils/ajax")),require("jquery").Deferred,require("jquery").extend,t(require("devextreme/data/custom_store")),t(require("devextreme/data/utils"))):DevExpress.data.AspNet=n(DevExpress.utils.ajax||{sendRequest:jQuery.ajax},jQuery.Deferred,jQuery.extend,DevExpress.data.CustomStore,DevExpress.data.utils)})(function(n,t,i,r,u){"use strict";function l(r){function s(i,r,u,f){function c(){n.sendRequest(u).then(function(n,t,i){f?f(e,n,i):e.resolve()},function(n,t){var i=w(n),r;tt&&(r={xhr:n,error:i},tt(r),i=r.error);i?e.reject(i):e.reject(n,t)})}var e=t(),s,o;return r&&!h?e.reject(new Error("Primary key is not specified (operation: '"+i+"', url: '"+u.url+"')")):(i==="load"?(u.cache=!1,u.dataType="json"):u.dataType="text",nt&&(o=nt(i,u),o&&typeof o.then=="function"&&(s=o)),s?s.then(c,function(n){e.reject(n)}):c()),e.promise()}function ft(n){return Array.isArray(h)?h.map(function(t){return[t,n[t]]}):[h,n]}function y(n,t){var r={};if(t&&(r.isCountQuery=t),n){["skip","take","requireTotalCount","requireGroupCount"].forEach(function(t){n[t]!==undefined&&(r[t]=n[t])});var h=u.normalizeSortingInfo,f=n.group,e=n.filter,s=n.select;n.sort&&(r.sort=JSON.stringify(h(n.sort)));f&&(p(f)||(f=h(f)),r.group=JSON.stringify(f));Array.isArray(e)&&(e=i(!0,[],e),o(e),r.filter=JSON.stringify(e));n.totalSummary&&(r.totalSummary=JSON.stringify(n.totalSummary));n.groupSummary&&(r.groupSummary=JSON.stringify(n.groupSummary));s&&(Array.isArray(s)||(s=[s]),r.select=JSON.stringify(s))}return i(r,ut),r}function it(n,t,i){var r=i.getResponseHeader("Content-Type"),u=r&&r.indexOf("application/json")>-1;n.resolve(u?JSON.parse(t):t)}var h=r.key,l=r.loadUrl,a=r.loadMethod||"GET",ut=r.loadParams,b=r.loadMode==="raw",k=r.updateUrl,d=r.insertUrl,g=r.deleteUrl,nt=r.onBeforeSend,tt=r.onAjaxError,rt={key:h,useDefaultSearch:!0,load:function(n){return s("load",!1,{url:l,method:a,data:y(n)},function(n,t){f(n,t,function(n){return[n.data,v(n)]})})},totalCount:!b&&function(n){return s("load",!1,{url:l,method:a,data:y(n,!0)},function(n,t){f(n,t,function(n){return[n.totalCount]})})},byKey:!b&&function(n){return s("load",!0,{url:l,method:a,data:y({filter:ft(n)})},function(n,t){f(n,t,function(n){return[n.data[0]]})})},update:k&&function(n,t){return s("update",!0,{url:k,method:r.updateMethod||"PUT",data:{key:e(n),values:JSON.stringify(t)}},it)},insert:d&&function(n){return s("insert",!0,{url:d,method:r.insertMethod||"POST",data:{values:JSON.stringify(n)}},it)},remove:g&&function(n){return s("delete",!0,{url:g,method:r.deleteMethod||"DELETE",data:{key:e(n)}})}};return c.forEach(function(n){var t=r[n];t!==undefined&&(rt[n]=t)}),rt}function f(n,t,i){t=a(t);t&&typeof t=="object"?n.resolve.apply(n,i(t)):n.reject(new Error("Unexpected response received"))}function a(n){return Array.isArray(n)?{data:n}:typeof n=="number"?{totalCount:n}:n}function v(n){return{totalCount:"totalCount"in n?n.totalCount:-1,groupCount:"groupCount"in n?n.groupCount:-1,summary:n.summary||null}}function e(n){return typeof n=="object"?JSON.stringify(n):n}function y(n){function t(n,t){for(n=String(n);n.length<t;)n="0"+n;return n}var i=[1+n.getMonth(),"/",n.getDate(),"/",n.getFullYear()],r=n.getHours(),u=n.getMinutes(),f=n.getSeconds(),e=n.getMilliseconds();return r+u+f+e>0&&i.push(" ",t(r,2),":",t(u,2),":",t(f,2),".",t(e,3)),i.join("")}function o(n){n.forEach(function(t,i){Array.isArray(t)?o(t):Object.prototype.toString.call(t)==="[object Date]"&&(n[i]=y(t))})}function p(n){if(!Array.isArray(n))return!1;for(var t=0;t<n.length;t++)if("groupInterval"in n[t]||"isExpanded"in n[t])return!0;return!1}function w(n){var u=n.getResponseHeader("Content-Type"),i=n.responseText,f,t,r;if(!u)return null;if(u.indexOf("text/plain")===0)return i;if(u.indexOf("application/json")===0){if(t=s(i),typeof t=="string")return t;
1if(typeof t=="object")for(f in t)if(typeof t[f]=="string")return t[f];return i}return u.indexOf("application/problem+json")===0?(t=s(i),typeof t=="object"&&((r=t.title,h(r))||(r=t.detail,h(r))))?r:i:null}function s(n){try{return JSON.parse(n)}catch(t){return null}}function h(n){return typeof n=="string"&&n.length>0}var c=["onLoading","onLoaded","onInserting","onInserted","onUpdating","onUpdated","onRemoving","onRemoved","onModifying","onModified","onPush","loadMode","cacheRawData","errorHandler"];return{createStore:function(n){return new r(l(n))}}})

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.