PageSourceSearch

https://whop.com/_web/assets/gha-35971278800-1/AnimatePresence-PPyKX-5K.js

js whop.com collected 2026-09-24 08:33:18 UTC 3,623 bytes, 12 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]="a6a93403-41d2-5022-859f-1540de43c6a7")}catch(e){}}();
3import{o as e}from"./rolldown-runtime-CMxvf4Kt.js";import{Ca as t,Ta as n}from"./frosted-ui-IuunJNEA.js";import{F as r,I as i,L as a,P as o,R as s,z as c}from"./proxy-BIsypWPM.js";var l=t(),u=e(n(),1),d=class extends u.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=e instanceof HTMLElement&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}};function f({children:e,isPresent:t,anchorX:n}){let i=(0,u.useId)(),a=(0,u.useRef)(null),o=(0,u.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,u.useContext)(r);return(0,u.useInsertionEffect)(()=>{let{width:e,height:r,top:c,left:l,right:u}=o.current;if(t||!a.current||!e||!r)return;let d=n===`left`?`left: ${l}`:`right: ${u}`;a.current.dataset.motionPopId=i;let f=document.createElement(`style`);return s&&(f.nonce=s),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
4          [data-motion-pop-id="${i}"] {
5            position: absolute !important;
6            width: ${e}px !important;
7            height: ${r}px !important;
8            ${d}px !important;
9            top: ${c}px !important;
10          }
11        `),()=>{document.head.contains(f)&&document.head.removeChild(f)}},[t]),(0,l.jsx)(d,{isPresent:t,childRef:a,sizeRef:o,children:u.cloneElement(e,{ref:a})})}var p=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:c,anchorX:d})=>{let p=s(m),h=(0,u.useId)(),g=!0,_=(0,u.useMemo)(()=>(g=!1,{id:h,initial:t,isPresent:n,custom:a,onExitComplete:e=>{p.set(e,!0);for(let e of p.values())if(!e)return;r&&r()},register:e=>(p.set(e,!1),()=>p.delete(e))}),[n,p,r]);return o&&g&&(_={..._}),(0,u.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[n]),u.useEffect(()=>{!n&&!p.size&&r&&r()},[n]),c===`popLayout`&&(e=(0,l.jsx)(f,{isPresent:n,anchorX:d,children:e})),(0,l.jsx)(i.Provider,{value:_,children:e})};function m(){return new Map}var h=e=>e.key||``;function g(e){let t=[];return u.Children.forEach(e,e=>{(0,u.isValidElement)(e)&&t.push(e)}),t}var _=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:d=`sync`,propagate:f=!1,anchorX:m=`left`})=>{let[_,v]=o(f),y=(0,u.useMemo)(()=>g(e),[e]),b=f&&!_?[]:y.map(h),x=(0,u.useRef)(!0),S=(0,u.useRef)(y),C=s(()=>new Map),[w,T]=(0,u.useState)(y),[E,D]=(0,u.useState)(y);a(()=>{x.current=!1,S.current=y;for(let e=0;e<E.length;e++){let t=h(E[e]);b.includes(t)?C.delete(t):C.get(t)!==!0&&C.set(t,!1)}},[E,b.length,b.join(`-`)]);let O=[];if(y!==w){let e=[...y];for(let t=0;t<E.length;t++){let n=E[t],r=h(n);b.includes(r)||(e.splice(t,0,n),O.push(n))}return d===`wait`&&O.length&&(e=O),D(g(e)),T(y),null}let{forceRender:k}=(0,u.useContext)(c);return(0,l.jsx)(l.Fragment,{children:E.map(e=>{let a=h(e),o=f&&!_?!1:y===E||b.includes(a);return(0,l.jsx)(p,{isPresent:o,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:d,onExitComplete:o?void 0:()=>{if(C.has(a))C.set(a,!0);else return;let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(k?.(),D(S.current),f&&v?.(),r&&r())},anchorX:m,children:e},a)})})};export{_ as t};
12//# debugId=a6a93403-41d2-5022-859f-1540de43c6a7

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.