first commit
This commit is contained in:
commit
b4e8cbe182
10213 files changed
+3125839
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
/**
|
||||
* This file is generated by Webpack, do not edit it directly.
|
||||
*/
|
||||
return [
|
||||
'handle' => 'elementor-v2-query',
|
||||
'deps' => [
|
||||
'react',
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,2 @@
|
||||
/*! For license information please see query.js.LICENSE.txt */
|
||||
!function(){"use strict";var e={react:function(e){e.exports=window.React},"./node_modules/@tanstack/query-core/build/modern/focusManager.js":function(e,t,r){r.r(t),r.d(t,{FocusManager:function(){return i},focusManager:function(){return o}});var s=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),n=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),i=class extends s.Subscribable{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!n.isServer&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){this.listeners.forEach((e=>{e()}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},o=new i},"./node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js":function(e,t,r){r.r(t),r.d(t,{hasNextPage:function(){return u},hasPreviousPage:function(){return a},infiniteQueryBehavior:function(){return n}});var s=r("./node_modules/@tanstack/query-core/build/modern/utils.js");function n(e){return{onFetch:(t,r)=>{const n=async()=>{const r=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,u=t.state.data?.pages||[],a=t.state.data?.pageParams||[],c={pages:[],pageParams:[]};let h=!1;const d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),l=async(e,r,n)=>{if(h)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const i={queryKey:t.queryKey,pageParam:r,direction:n?"backward":"forward",meta:t.options.meta};var o;o=i,Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",(()=>{h=!0})),t.signal)});const u=await d(i),{maxPages:a}=t.options,c=n?s.addToStart:s.addToEnd;return{pages:c(e.pages,u,a),pageParams:c(e.pageParams,r,a)}};let f;if(n&&u.length){const e="backward"===n,t={pages:u,pageParams:a},s=(e?o:i)(r,t);f=await l(t,s,e)}else{f=await l(c,a[0]??r.initialPageParam);const t=e??u.length;for(let e=1;e<t;e++){const e=i(r,f);f=await l(f,e)}}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=n}}}function i(e,{pages:t,pageParams:r}){const s=t.length-1;return e.getNextPageParam(t[s],t,r[s],r)}function o(e,{pages:t,pageParams:r}){return e.getPreviousPageParam?.(t[0],t,r[0],r)}function u(e,t){return!!t&&null!=i(e,t)}function a(e,t){return!(!t||!e.getPreviousPageParam)&&null!=o(e,t)}},"./node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js":function(e,t,r){r.r(t),r.d(t,{InfiniteQueryObserver:function(){return i}});var s=r("./node_modules/@tanstack/query-core/build/modern/queryObserver.js"),n=r("./node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js"),i=class extends s.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,n.infiniteQueryBehavior)()},t)}getOptimisticResult(e){return e.behavior=(0,n.infiniteQueryBehavior)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,s=super.createResult(e,t),{isFetching:i,isRefetching:o}=s,u=i&&"forward"===r.fetchMeta?.fetchMore?.direction,a=i&&"backward"===r.fetchMeta?.fetchMore?.direction;return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.hasNextPage)(t,r.data),hasPreviousPage:(0,n.hasPreviousPage)(t,r.data),isFetchingNextPage:u,isFetchingPreviousPage:a,isRefetching:o&&!u&&!a}}}},"./node_modules/@tanstack/query-core/build/modern/mutation.js":function(e,t,r){r.r(t),r.d(t,{Mutation:function(){return o},getDefaultState:function(){return u}});var s=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),n=r("./node_modules/@tanstack/query-core/build/modern/removable.js"),i=r("./node_modules/@tanstack/query-core/build/modern/retryer.js"),o=class extends n.Removable{constructor(e){super(),this.mutationId=e.mutationId,this.#s=e.defaultOptions,this.#n=e.mutationCache,this.#i=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}#i;#s;#n;#o;setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#i.includes(e)||(this.#i.push(e),tLine truncated
|
||||
@@ -0,0 +1,155 @@
|
||||
/*! ./QueryClientProvider.js */
|
||||
|
||||
/*! ./QueryErrorResetBoundary.js */
|
||||
|
||||
/*! ./errorBoundaryUtils.js */
|
||||
|
||||
/*! ./focusManager.js */
|
||||
|
||||
/*! ./infiniteQueryBehavior.js */
|
||||
|
||||
/*! ./isRestoring.js */
|
||||
|
||||
/*! ./mutation.js */
|
||||
|
||||
/*! ./mutationCache.js */
|
||||
|
||||
/*! ./notifyManager.js */
|
||||
|
||||
/*! ./onlineManager.js */
|
||||
|
||||
/*! ./query.js */
|
||||
|
||||
/*! ./queryCache.js */
|
||||
|
||||
/*! ./queryObserver.js */
|
||||
|
||||
/*! ./removable.js */
|
||||
|
||||
/*! ./retryer.js */
|
||||
|
||||
/*! ./subscribable.js */
|
||||
|
||||
/*! ./suspense.js */
|
||||
|
||||
/*! ./useBaseQuery.js */
|
||||
|
||||
/*! ./utils.js */
|
||||
|
||||
/*! @tanstack/query-core */
|
||||
|
||||
/*! @tanstack/react-query */
|
||||
|
||||
/*! react */
|
||||
|
||||
/*!**************************!*\
|
||||
!*** external ["React"] ***!
|
||||
\**************************/
|
||||
|
||||
/*!******************************************************!*\
|
||||
!*** ./node_modules/@elementor/query/dist/index.mjs ***!
|
||||
\******************************************************/
|
||||
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/query.js ***!
|
||||
\*****************************************************************/
|
||||
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/utils.js ***!
|
||||
\*****************************************************************/
|
||||
|
||||
/*!******************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/react-query/build/modern/utils.js ***!
|
||||
\******************************************************************/
|
||||
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/retryer.js ***!
|
||||
\*******************************************************************/
|
||||
|
||||
/*!********************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/mutation.js ***!
|
||||
\********************************************************************/
|
||||
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/removable.js ***!
|
||||
\*********************************************************************/
|
||||
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/react-query/build/modern/suspense.js ***!
|
||||
\*********************************************************************/
|
||||
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/react-query/build/modern/useQuery.js ***!
|
||||
\*********************************************************************/
|
||||
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/queryCache.js ***!
|
||||
\**********************************************************************/
|
||||
|
||||
/*!***********************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/queryClient.js ***!
|
||||
\***********************************************************************/
|
||||
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/focusManager.js ***!
|
||||
\************************************************************************/
|
||||
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/subscribable.js ***!
|
||||
\************************************************************************/
|
||||
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/react-query/build/modern/isRestoring.js ***!
|
||||
\************************************************************************/
|
||||
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/react-query/build/modern/useMutation.js ***!
|
||||
\************************************************************************/
|
||||
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/mutationCache.js ***!
|
||||
\*************************************************************************/
|
||||
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/notifyManager.js ***!
|
||||
\*************************************************************************/
|
||||
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/onlineManager.js ***!
|
||||
\*************************************************************************/
|
||||
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/queryObserver.js ***!
|
||||
\*************************************************************************/
|
||||
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/react-query/build/modern/useBaseQuery.js ***!
|
||||
\*************************************************************************/
|
||||
|
||||
/*!****************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/mutationObserver.js ***!
|
||||
\****************************************************************************/
|
||||
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js ***!
|
||||
\*****************************************************************************/
|
||||
|
||||
/*!*******************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js ***!
|
||||
\*******************************************************************************/
|
||||
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js ***!
|
||||
\********************************************************************************/
|
||||
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js ***!
|
||||
\*********************************************************************************/
|
||||
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js ***!
|
||||
\*********************************************************************************/
|
||||
|
||||
/*!************************************************************************************!*\
|
||||
!*** ./node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js ***!
|
||||
\************************************************************************************/
|
||||
@@ -0,0 +1 @@
|
||||
!function(){"use strict";var t={d:function(e,s){for(var i in s)t.o(s,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{QueryClient:function(){return j},QueryClientProvider:function(){return _},createQueryClient:function(){return pt},useInfiniteQuery:function(){return ct},useMutation:function(){return lt},useQuery:function(){return ft},useQueryClient:function(){return N}});var s="undefined"==typeof window||"Deno"in window;function i(){}function r(t){return"number"==typeof t&&t>=0&&t!==1/0}function n(t,e){return Math.max(t+(e||0)-Date.now(),0)}function a(t,e){const{type:s="all",exact:i,fetchStatus:r,predicate:n,queryKey:a,stale:o}=t;if(a)if(i){if(e.queryHash!==u(a,e.options))return!1}else if(!h(e.queryKey,a))return!1;if("all"!==s){const t=e.isActive();if("active"===s&&!t)return!1;if("inactive"===s&&t)return!1}return!("boolean"==typeof o&&e.isStale()!==o||void 0!==r&&r!==e.state.fetchStatus||n&&!n(e))}function o(t,e){const{exact:s,status:i,predicate:r,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(s){if(c(e.options.mutationKey)!==c(n))return!1}else if(!h(e.options.mutationKey,n))return!1}return!(i&&e.state.status!==i||r&&!r(e))}function u(t,e){return(e?.queryKeyHashFn||c)(t)}function c(t){return JSON.stringify(t,((t,e)=>p(e)?Object.keys(e).sort().reduce(((t,s)=>(t[s]=e[s],t)),{}):e))}function h(t,e){return t===e||typeof t==typeof e&&!(!t||!e||"object"!=typeof t||"object"!=typeof e)&&!Object.keys(e).some((s=>!h(t[s],e[s])))}function l(t,e){if(t===e)return t;const s=f(t)&&f(e);if(s||p(t)&&p(e)){const i=s?t.length:Object.keys(t).length,r=s?e:Object.keys(e),n=r.length,a=s?[]:{};let o=0;for(let i=0;i<n;i++){const n=s?i:r[i];a[n]=l(t[n],e[n]),a[n]===t[n]&&o++}return i===n&&o===i?t:a}return e}function d(t,e){if(t&&!e||e&&!t)return!1;for(const s in t)if(t[s]!==e[s])return!1;return!0}function f(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function p(t){if(!y(t))return!1;const e=t.constructor;if(void 0===e)return!0;const s=e.prototype;return!!y(s)&&!!s.hasOwnProperty("isPrototypeOf")}function y(t){return"[object Object]"===Object.prototype.toString.call(t)}function m(t){return new Promise((e=>{setTimeout(e,t)}))}function v(t){m(0).then(t)}function b(t,e,s){return"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?l(t,e):e}function g(t,e,s=0){const i=[...t,e];return s&&i.length>s?i.slice(1):i}function O(t,e,s=0){const i=[e,...t];return s&&i.length>s?i.slice(0,-1):i}var R=function(){let t=[],e=0,s=t=>{t()},i=t=>{t()};const r=i=>{e?t.push(i):v((()=>{s(i)}))};return{batch:r=>{let n;e++;try{n=r()}finally{e--,e||(()=>{const e=t;t=[],e.length&&v((()=>{i((()=>{e.forEach((t=>{s(t)}))}))}))})()}return n},batchCalls:t=>(...e)=>{r((()=>{t(...e)}))},schedule:r,setNotifyFunction:t=>{s=t},setBatchNotifyFunction:t=>{i=t}}}(),C=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},w=new class extends C{#t;#e;#s;constructor(){super(),this.#s=t=>{if(!s&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#s=t,this.#e?.(),this.#e=t((t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()}))}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){this.listeners.forEach((t=>{t()}))}isFocused(){return"boolean"==typeof this.#t?this.#t:"hidden"!==globalThis.document?.visibilityState}},P=new class extends C{#i=!0;#e;#s;constructor(){super(),this.#s=t=>{if(!s&&window.addEventListener){const e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#s=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#i!==t&&(this.#i=t,this.listeners.forEach((e=>{e(t)})))}isOnline(){return this.#i}};function S(t){return Math.min(1e3*2**t,3e4)}function q(t){return"online"!==(t??"online")||P.isOnline()}var Q=class{constructor(t){this.revert=t?.revert,this.silent=t?.silent}};function F(t){return t instanceof Q}function E(t){let e,i,r,n=!1,a=0,o=!1;const u=new Promise(((t,e)=>{i=t,r=e})),c=()=>!w.isFocused()||"always"!==t.networkMode&&!P.isOnline(),h=s=>{o||(o=!0,Line truncated
|
||||
Whitespace-only changes.
Reference in new issue
Block a user