PageSourceSearch

https://app.airbridge.io/assets/AnimatePresence-Dl9PMzrj.js

js airbridge.io collected 2026-09-24 09:01:49 UTC 3,840 bytes, 10 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`8f37aac82226aa1d29e1cf5ba62d7b85593ea8dc`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`dd0c92a7-1593-4467-8bd2-6423b691ac8f`,e._sentryDebugIdIdentifier=`sentry-dbid-dd0c92a7-1593-4467-8bd2-6423b691ac8f`)}catch{}})();import{a as e}from"./rolldown-runtime-CNrMwlX4.js";import{d as t}from"./recoil-DqwIhqnz.js";import{b as n}from"./emotion-react-jsx-runtime.browser.esm-CLkFQghC.js";import{d as r,f as i,l as a,m as o,p as s,u as c}from"./proxy-Dci4ze1G.js";import{d as l}from"./motion-CRg7DNWs.js";var u=e(n(),1),d=e(t(),1),f=class extends d.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=l(e)&&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 p({children:e,isPresent:t,anchorX:n,root:r}){let i=(0,d.useId)(),a=(0,d.useRef)(null),o=(0,d.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,d.useContext)(c);return(0,d.useInsertionEffect)(()=>{let{width:e,height:c,top:l,left:u,right:d}=o.current;if(t||!a.current||!e||!c)return;let f=n===`left`?`left: ${u}`:`right: ${d}`;a.current.dataset.motionPopId=i;let p=document.createElement(`style`);s&&(p.nonce=s);let m=r??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`
2          [data-motion-pop-id="${i}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${c}px !important;
6            ${f}px !important;
7            top: ${l}px !important;
8          }
9        `),()=>{m.contains(p)&&m.removeChild(p)}},[t]),(0,u.jsx)(f,{isPresent:t,childRef:a,sizeRef:o,children:d.cloneElement(e,{ref:a})})}var m=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:o,mode:c,anchorX:l,root:f})=>{let m=s(h),g=(0,d.useId)(),_=!0,v=(0,d.useMemo)(()=>(_=!1,{id:g,initial:t,isPresent:n,custom:a,onExitComplete:e=>{m.set(e,!0);for(let e of m.values())if(!e)return;i&&i()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[n,m,i]);return o&&_&&(v={...v}),(0,d.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[n]),d.useEffect(()=>{!n&&!m.size&&i&&i()},[n]),c===`popLayout`&&(e=(0,u.jsx)(p,{isPresent:n,anchorX:l,root:f,children:e})),(0,u.jsx)(r.Provider,{value:v,children:e})};function h(){return new Map}var g=e=>e.key||``;function _(e){let t=[];return d.Children.forEach(e,e=>{(0,d.isValidElement)(e)&&t.push(e)}),t}var v=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:l=`sync`,propagate:f=!1,anchorX:p=`left`,root:h})=>{let[v,y]=a(f),b=(0,d.useMemo)(()=>_(e),[e]),x=f&&!v?[]:b.map(g),S=(0,d.useRef)(!0),C=(0,d.useRef)(b),w=s(()=>new Map),[T,E]=(0,d.useState)(b),[D,O]=(0,d.useState)(b);i(()=>{S.current=!1,C.current=b;for(let e=0;e<D.length;e++){let t=g(D[e]);x.includes(t)?w.delete(t):w.get(t)!==!0&&w.set(t,!1)}}
9,[D,x.length,x.join(`-`)]);let k=[];if(b!==T){let e=[...b];for(let t=0;t<D.length;t++){let n=D[t],r=g(n);x.includes(r)||(e.splice(t,0,n),k.push(n))}return l===`wait`&&k.length&&(e=k),O(_(e)),E(b),null}let{forceRender:A}=(0,d.useContext)(o);return(0,u.jsx)(u.Fragment,{children:D.map(e=>{let i=g(e),a=f&&!v?!1:b===D||x.includes(i);return(0,u.jsx)(m,{isPresent:a,initial:!S.current||n?void 0:!1,custom:t,presenceAffectsLayout:c,mode:l,root:h,onExitComplete:a?void 0:()=>{if(w.has(i))w.set(i,!0);else return;let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(A?.(),O(C.current),f&&y?.(),r&&r())},anchorX:p,children:e},i)})})};export{v as t};
10//# sourceMappingURL=AnimatePresence-Dl9PMzrj.js.map

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.