PageSourceSearch

https://merchshoot.ai/_next/static/chunks/8214-fdd4adcf121cc088.js?dpl=dpl_7JRC56KWtUw33dkdjKxPuxrqWTYC

js merchshoot.ai collected 2026-10-05 14:26:24 UTC 8,666 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8214],{98214:function(t,e,r){let s;r.d(e,{a:function(){return useQuery}});var i=r(18515),n=r(19333),u=r(17424),h=r(18056),o=r(20395),a=class extends h.l{constructor(t,e){super(),this.options=e,this.#t=t,this.#e=null,this.bindMethods(),this.setOptions(e)}#t;#r=void 0;#s=void 0;#i=void 0;#n;#u;#e;#h;#o;#a;#c;#l;#d;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#r.addObserver(this),shouldFetchOnMount(this.#r,this.options)?this.#f():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.#r,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.#r,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#R(),this.#Q(),this.#r.removeObserver(this)}setOptions(t,e){let r=this.options,s=this.#r;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,i.Nc)(this.options.enabled,this.#r))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#v(),this.#r.setOptions(this.options),r._defaulted&&!(0,i.VS)(this.options,r)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#r,observer:this});let n=this.hasListeners();n&&shouldFetchOptionally(this.#r,s,this.options,r)&&this.#f(),this.updateResult(e),n&&(this.#r!==s||(0,i.Nc)(this.options.enabled,this.#r)!==(0,i.Nc)(r.enabled,this.#r)||(0,i.KC)(this.options.staleTime,this.#r)!==(0,i.KC)(r.staleTime,this.#r))&&this.#b();let u=this.#O();n&&(this.#r!==s||(0,i.Nc)(this.options.enabled,this.#r)!==(0,i.Nc)(r.enabled,this.#r)||u!==this.#d)&&this.#m(u)}getOptimisticResult(t){let e=this.#t.getQueryCache().build(this.#t,t),r=this.createResult(e,t);return(0,i.VS)(this.getCurrentResult(),r)||(this.#i=r,this.#u=this.options,this.#n=this.#r.state),r}getCurrentResult(){return this.#i}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.#p.add(t)}getCurrentQuery(){return this.#r}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#t.defaultQueryOptions(t),r=this.#t.getQueryCache().build(this.#t,e);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,e))}fetch(t){return this.#f({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(t){this.#v();let e=this.#r.fetch(this.options,t);return t?.throwOnError||(e=e.catch(i.ZT)),e}#b(){this.#R();let t=(0,i.KC)(this.options.staleTime,this.#r);if(i.sk||this.#i.isStale||!(0,i.PN)(t))return;let e=(0,i.Kp)(this.#i.dataUpdatedAt,t);this.#c=setTimeout(()=>{this.#i.isStale||this.updateResult()},e+1)}#O(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#r):this.options.refetchInterval)??!1}#m(t){this.#Q(),this.#d=t,!i.sk&&!1!==(0,i.Nc)(this.options.enabled,this.#r)&&(0,i.PN)(this.#d)&&0!==this.#d&&(this.#l=setInterval(()=>{(this.options.refetchIntervalInBackground||u.j.isFocused())&&this.#f()},this.#d))}#y(){this.#b(),this.#m(this.#O())}#R(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#Q(){this.#l&&(clearInterval(this.#l),this.#l=void 0)}createResult(t,e){let r;let s=this.#r,n=this.options,u=this.#i,h=this.#n,a=this.#u,c=t!==s,l=c?t.state:this.#s,{state:d}=t,p={...d},f=!1;if(e._optimisticResults){let r=this.hasListeners(),i=!r&&shouldFetchOnMount(t,e),u=r&&shouldFetchOptionally(t,s,e,n);(i||u)&&(p={...p,...(0,o.z)(d.data,t.options)}),"isRestoring"===e._optimisticResults&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:R,status:Q}=p;if(e.select&&void 0!==p.data){if(u&&p.data===h?.data&&e.select===this.#h)r=this.#o;else try{this.#h=e.select,r=e.select(p.data),r=(0,i.oE)(u?.data,r,e),this.#o=r,this.#e=null}catch(t){this.#e=t}}else r=p.data;if(void 0!==e.placeholderData&&void 0===r&&"pending"===Q){let t;if(u?.isPlaceholderData&&e.placeholderData===a?.placeholderData)t=u.data;else if(t="function"==typeof e.placeholderData?e.placeholderData(this.#a?.state.data,this.#a):e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.#e=null}catch(t){this.#e=t}void 0!==t&&(Q="success",r=(0,i.oE)(u?.data,t,e),f=!0)}this.#e&&(y=this.#e,r=this.#o,R=Date.now(),Q="error");let v="fetching"===p.fetchStatus,b="pending"===Q,O="error"===Q,m=b&&v,g=void 0!==r,S={status:Q,fetchStatus:p.fetchStatus,isPending:b,isSuccess:"success"===Q,isError:O,isInitialLoading:m,isLoading:m,data:r,dataUpdatedAt:p.dataUpdatedAt,error:y,errorUpdatedAt:R,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdate
1Count:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!b,isLoadingError:O&&!g,isPaused:"paused"===p.fetchStatus,isPlaceholderData:f,isRefetchError:O&&g,isStale:isStale(t,e),refetch:this.refetch};return S}updateResult(t){let e=this.#i,r=this.createResult(this.#r,this.options);if(this.#n=this.#r.state,this.#u=this.options,void 0!==this.#n.data&&(this.#a=this.#r),(0,i.VS)(r,e))return;this.#i=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.#p.size)return!0;let s=new Set(r??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(t=>{let r=this.#i[t]!==e[t];return r&&s.has(t)})})()&&(s.listeners=!0),this.#g({...s,...t})}#v(){let t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#r)return;let e=this.#r;this.#r=t,this.#s=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#g(t){n.V.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#t.getQueryCache().notify({query:this.#r,type:"observerResultsUpdated"})})}};function shouldFetchOnMount(t,e){return!1!==(0,i.Nc)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)||void 0!==t.state.data&&shouldFetchOn(t,e,e.refetchOnMount)}function shouldFetchOn(t,e,r){if(!1!==(0,i.Nc)(e.enabled,t)){let s="function"==typeof r?r(t):r;return"always"===s||!1!==s&&isStale(t,e)}return!1}function shouldFetchOptionally(t,e,r,s){return(t!==e||!1===(0,i.Nc)(s.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&isStale(t,r)}function isStale(t,e){return!1!==(0,i.Nc)(e.enabled,t)&&t.isStaleByTime((0,i.KC)(e.staleTime,t))}var c=r(77455);r(98365);var l=c.createContext((s=!1,{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s})),useQueryErrorResetBoundary=()=>c.useContext(l),d=r(56089),p=c.createContext(!1),useIsRestoring=()=>c.useContext(p);p.Provider;var f=r(31060),ensurePreventErrorBoundaryRetry=(t,e)=>{(t.suspense||t.throwOnError)&&!e.isReset()&&(t.retryOnMount=!1)},useClearResetErrorBoundary=t=>{c.useEffect(()=>{t.clearReset()},[t])},getHasError=({result:t,errorResetBoundary:e,throwOnError:r,query:s})=>t.isError&&!e.isReset()&&!t.isFetching&&s&&(0,f.L)(r,[t.error,s]),ensureSuspenseTimers=t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3)))},shouldSuspend=(t,e)=>t?.suspense&&e.isPending,fetchOptimistic=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function useQuery(t,e){return function(t,e,r){let s=(0,d.NL)(r),i=useIsRestoring(),u=useQueryErrorResetBoundary(),h=s.defaultQueryOptions(t);s.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=i?"isRestoring":"optimistic",ensureSuspenseTimers(h),ensurePreventErrorBoundaryRetry(h,u),useClearResetErrorBoundary(u);let[o]=c.useState(()=>new e(s,h)),a=o.getOptimisticResult(h);if(c.useSyncExternalStore(c.useCallback(t=>{let e=i?()=>void 0:o.subscribe(n.V.batchCalls(t));return o.updateResult(),e},[o,i]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c.useEffect(()=>{o.setOptions(h,{listeners:!1})},[h,o]),shouldSuspend(h,a))throw fetchOptimistic(h,o,u);if(getHasError({result:a,errorResetBoundary:u,throwOnError:h.throwOnError,query:s.getQueryCache().get(h.queryHash)}))throw a.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(h,a),h.notifyOnChangeProps?a:o.trackResult(a)}(t,a,e)}},31060:function(t,e,r){function shouldThrowError(t,e){return"function"==typeof t?t(...e):!!t}function noop(){}r.d(e,{L:function(){return shouldThrowError},Z:function(){return noop}})}}]);

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.