PageSourceSearch

https://whop.com/_web/assets/gha-36830342614-1/src-DsN78mkc.js

js whop.com collected 2026-10-01 08:51:09 UTC 3,063 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2098b0e1-6299-51de-8fa8-0b6671088fef")}catch(e){}}();
3import{o as e}from"./rolldown-runtime-CMxvf4Kt.js";import{wa as t}from"./frosted-ui-C-IlupeO.js";import{m as n,t as r}from"./useQuery-BjchxOEi.js";import{t as i}from"./useInfiniteQuery-RusuxgrH.js";import{t as a}from"./useMutation-Cgwsu9sD.js";import{t as o}from"./Client-B1d-tcm5.js";var s=Symbol(`whop.sdk.path`),c=Symbol(`whop.sdk.args`),l=Symbol(`whop.sdk.invoke`);function u(e,t,n){let r=()=>n(...t);return{[s]:e,[c]:t,[l]:n,run:r,then:(e,t)=>Promise.resolve(r()).then(e,t)}}var d=e=>[...e[s],...e[c]];function f(e,t){return u(e,[],()=>Promise.resolve(t))}var p=e(t(),1);function m(){return typeof window>`u`?new o({baseUrl:`http://server-render.invalid/api/v1`,auth:!1,headers:{"Whop-Private-Schema":`true`},maxRetries:0,fetch:()=>{throw Error(`@whop/sdk-react: the cookie-authed browser client cannot fetch during server render. Mount <WhopSdkProvider> with a server-authed client, or use useSdkQuery (fetches only on the client) instead of useSdkSuspenseQuery.`)}}):new o({baseUrl:`${window.location.origin}/api/v1`,auth:!1,headers:{"Whop-Private-Schema":`true`}})}function h(e){return typeof e==`object`&&!!e&&`response`in e&&typeof e.getNextPage==`function`}function g(e){return h(e)?{...e.response,data:e.data}:e}function _(e,t=[]){return new Proxy(e,{get(e,n,r){if(typeof n==`symbol`)return Reflect.get(e,n,r);let i=Reflect.get(e,n,r);if(typeof i==`function`){let r=[...t,n],a=i,o=(...t)=>a.apply(e,t),c=(...e)=>u(r,e,o);return Object.defineProperty(c,s,{value:r,enumerable:!1}),c}return i&&typeof i==`object`?_(i,[...t,n]):i}})}var v=(0,p.createContext)(null);v.displayName=`WhopSdkContext`;function y({client:e,children:t}){return(0,p.createElement)(v.Provider,{value:e},t)}function b(){let e=(0,p.useContext)(v);return(0,p.useMemo)(()=>_(e??m()),[e])}function x(){let e=(0,p.useContext)(v);return(0,p.useMemo)(()=>e??m(),[e])}function S(e,t=m()){let n=e(_(t));return{queryKey:d(n),queryFn:()=>n.run().then(g)}}function C(e,t){let{scope:n,...i}=t??{},a=e(b());return r({queryKey:[...d(a),...n??[]],queryFn:()=>a.run().then(g),...i})}function w(e,t){let{scope:n,...r}=t??{},a=e(b()),o=a[c],s=o.findIndex(e=>typeof e!=`string`),u=s===-1?o.length:s,f=o[u]??{};return i({queryKey:[...d(a),{infinite:!0},...n??[]],queryFn:({pageParam:e})=>a[l](...o.slice(0,u),{...f,after:e},...o.slice(u+1)).then(g),initialPageParam:void 0,getNextPageParam:e=>e.page_info?.has_next_page===!1?void 0:e.page_info?.end_cursor??void 0,...r})}function T(e,t){let r=e(b()),i=n();return a({mutationFn:e=>r(...e).run().then(g),...t,onSuccess:(...e)=>{let n=r[s].slice(0,-1);return n.length&&i.invalidateQueries({queryKey:n}),t?.onSuccess?.(...e)}})}export{w as a,d as c,x as i,f as l,S as n,T as o,b as r,C as s,y as t};
4//# debugId=2098b0e1-6299-51de-8fa8-0b6671088fef

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.