PageSourceSearch

https://valdex-energetica.com/_next/static/chunks/7988-9414c742671844c0.js

js valdex-energetica.com collected 2026-10-07 18:14:16 UTC 8,986 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7988],{86900:function(t,e,r){r.d(e,{z:function(){return c}});var s=r(87045),i=r(18238),n=r(21733),u=r(24112),a=r(16803),h=r(45345),c=class extends u.l{constructor(t,e){super(),this.options=e,this.#t=t,this.#e=null,this.#r=(0,a.O)(),this.options.experimental_prefetchInRender||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}#t;#s=void 0;#i=void 0;#n=void 0;#u;#a;#r;#e;#h;#c;#o;#l;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),o(this.#s,this.options)?this.#y():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return l(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return l(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#b(),this.#s.removeObserver(this)}setOptions(t,e){let r=this.options,s=this.#s;if(this.options=this.#t.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,h.Nc)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#Q(),this.#s.setOptions(this.options),r._defaulted&&!(0,h.VS)(this.options,r)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let i=this.hasListeners();i&&d(this.#s,s,this.options,r)&&this.#y(),this.updateResult(e),i&&(this.#s!==s||(0,h.Nc)(this.options.enabled,this.#s)!==(0,h.Nc)(r.enabled,this.#s)||(0,h.KC)(this.options.staleTime,this.#s)!==(0,h.KC)(r.staleTime,this.#s))&&this.#m();let n=this.#g();i&&(this.#s!==s||(0,h.Nc)(this.options.enabled,this.#s)!==(0,h.Nc)(r.enabled,this.#s)||n!==this.#p)&&this.#O(n)}getOptimisticResult(t){let e=this.#t.getQueryCache().build(this.#t,t),r=this.createResult(e,t);return(0,h.VS)(this.getCurrentResult(),r)||(this.#n=r,this.#a=this.options,this.#u=this.#s.state),r}getCurrentResult(){return this.#n}trackResult(t,e){let r={};return Object.keys(t).forEach(s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),e?.(s),t[s])})}),r}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#s}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#t.defaultQueryOptions(t),r=this.#t.getQueryCache().build(this.#t,e);return r.fetch().then(()=>this.createResult(r,e))}fetch(t){return this.#y({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#y(t){this.#Q();let e=this.#s.fetch(this.options,t);return t?.throwOnError||(e=e.catch(h.ZT)),e}#m(){this.#v();let t=(0,h.KC)(this.options.staleTime,this.#s);if(h.sk||this.#n.isStale||!(0,h.PN)(t))return;let e=(0,h.Kp)(this.#n.dataUpdatedAt,t);this.#l=setTimeout(()=>{this.#n.isStale||this.updateResult()},e+1)}#g(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#O(t){this.#b(),this.#p=t,!h.sk&&!1!==(0,h.Nc)(this.options.enabled,this.#s)&&(0,h.PN)(this.#p)&&0!==this.#p&&(this.#d=setInterval(()=>{(this.options.refetchIntervalInBackground||s.j.isFocused())&&this.#y()},this.#p))}#R(){this.#m(),this.#O(this.#g())}#v(){this.#l&&(clearTimeout(this.#l),this.#l=void 0)}#b(){this.#d&&(clearInterval(this.#d),this.#d=void 0)}createResult(t,e){let r;let s=this.#s,i=this.options,u=this.#n,c=this.#u,l=this.#a,f=t!==s?t.state:this.#i,{state:y}=t,R={...y},v=!1;if(e._optimisticResults){let r=this.hasListeners(),u=!r&&o(t,e),a=r&&d(t,s,e,i);(u||a)&&(R={...R,...(0,n.z)(y.data,t.options)}),"isRestoring"===e._optimisticResults&&(R.fetchStatus="idle")}let{error:b,errorUpdatedAt:Q,status:m}=R;if(e.select&&void 0!==R.data){if(u&&R.data===c?.data&&e.select===this.#h)r=this.#c;else try{this.#h=e.select,r=e.select(R.data),r=(0,h.oE)(u?.data,r,e),this.#c=r,this.#e=null}catch(t){this.#e=t}}else r=R.data;if(void 0!==e.placeholderData&&void 0===r&&"pending"===m){let t;if(u?.isPlaceholderData&&e.placeholderData===l?.placeholderData)t=u.data;else if(t="function"==typeof e.placeholderData?e.placeholderData(this.#o?.state.data,this.#o):e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.#e=null}catch(t){this.#e=t}void 0!==t&&(m="success",r=(0,h.oE)(u?.data,t,e),v=!0)}this.#e&&(b=this.#e,r=this.#c,Q=Date.now(),m="error");let g="fetching"===R.fetchStatus,O="pending"===m,I="error"===m,C=O&&g,S=void 0!==r,T={status:m,fetchStatus:R.fetchStatus,isPending:O,isSuccess:"success"===m,isError:I,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:R.dataUpdatedAt,error:b,errorUpdatedAt:Q,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdate
1Count:R.errorUpdateCount,isFetched:R.dataUpdateCount>0||R.errorUpdateCount>0,isFetchedAfterMount:R.dataUpdateCount>f.dataUpdateCount||R.errorUpdateCount>f.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:I&&!S,isPaused:"paused"===R.fetchStatus,isPlaceholderData:v,isRefetchError:I&&S,isStale:p(t,e),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){let e=t=>{"error"===T.status?t.reject(T.error):void 0!==T.data&&t.resolve(T.data)},r=()=>{e(this.#r=T.promise=(0,a.O)())},i=this.#r;switch(i.status){case"pending":t.queryHash===s.queryHash&&e(i);break;case"fulfilled":("error"===T.status||T.data!==i.value)&&r();break;case"rejected":("error"!==T.status||T.error!==i.reason)&&r()}}return T}updateResult(t){let e=this.#n,r=this.createResult(this.#s,this.options);if(this.#u=this.#s.state,this.#a=this.options,void 0!==this.#u.data&&(this.#o=this.#s),(0,h.VS)(r,e))return;this.#n=r;let s={};t?.listeners!==!1&&(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#n).some(t=>this.#n[t]!==e[t]&&s.has(t))})()&&(s.listeners=!0),this.#I({...s,...t})}#Q(){let t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#s)return;let e=this.#s;this.#s=t,this.#i=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}#I(t){i.V.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#t.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function o(t,e){return!1!==(0,h.Nc)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)||void 0!==t.state.data&&l(t,e,e.refetchOnMount)}function l(t,e,r){if(!1!==(0,h.Nc)(e.enabled,t)){let s="function"==typeof r?r(t):r;return"always"===s||!1!==s&&p(t,e)}return!1}function d(t,e,r,s){return(t!==e||!1===(0,h.Nc)(s.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&p(t,r)}function p(t,e){return!1!==(0,h.Nc)(e.enabled,t)&&t.isStaleByTime((0,h.KC)(e.staleTime,t))}},47217:function(t,e,r){let s;r.d(e,{r:function(){return m}});var i=r(2265),n=r(18238),u=r(45345),a=r(29827);r(57437);var h=i.createContext((s=!1,{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s})),c=()=>i.useContext(h);function o(){}var l=(t,e)=>{(t.suspense||t.throwOnError)&&!e.isReset()&&(t.retryOnMount=!1)},d=t=>{i.useEffect(()=>{t.clearReset()},[t])},p=t=>{var e;let{result:r,errorResetBoundary:s,throwOnError:i,query:n}=t;return r.isError&&!s.isReset()&&!r.isFetching&&n&&(e=[r.error,n],"function"==typeof i?i(...e):!!i)},f=i.createContext(!1),y=()=>i.useContext(f);f.Provider;var R=t=>{t.suspense&&(void 0===t.staleTime&&(t.staleTime=1e3),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3)))},v=(t,e)=>t.isLoading&&t.isFetching&&!e,b=(t,e)=>t?.suspense&&e.isPending,Q=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function m(t,e,r){var s,h,f,m,g;let O=(0,a.NL)(r),I=y(),C=c(),S=O.defaultQueryOptions(t);null===(h=O.getDefaultOptions().queries)||void 0===h||null===(s=h._experimental_beforeQuery)||void 0===s||s.call(h,S),S._optimisticResults=I?"isRestoring":"optimistic",R(S),l(S,C),d(C);let T=!O.getQueryCache().get(S.queryHash),[E]=i.useState(()=>new e(O,S)),k=E.getOptimisticResult(S);if(i.useSyncExternalStore(i.useCallback(t=>{let e=I?()=>void 0:E.subscribe(n.V.batchCalls(t));return E.updateResult(),e},[E,I]),()=>E.getCurrentResult(),()=>E.getCurrentResult()),i.useEffect(()=>{E.setOptions(S,{listeners:!1})},[S,E]),b(S,k))throw Q(S,E,C);if(p({result:k,errorResetBoundary:C,throwOnError:S.throwOnError,query:O.getQueryCache().get(S.queryHash)}))throw k.error;if(null===(m=O.getDefaultOptions().queries)||void 0===m||null===(f=m._experimental_afterQuery)||void 0===f||f.call(m,S,k),S.experimental_prefetchInRender&&!u.sk&&v(k,I)){let t=T?Q(S,E,C):null===(g=O.getQueryCache().get(S.queryHash))||void 0===g?void 0:g.promise;null==t||t.catch(o).finally(()=>{E.updateResult()})}return S.notifyOnChangeProps?k:E.trackResult(k)}}}]);

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.