PageSourceSearch

https://app.gildedfinancial.com/assets/transition-BRd0OapD.js

js gildedfinancial.com collected 2026-10-09 22:18:30 UTC 5,685 bytes, 2 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:{},t=new e.Error().stack;t&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[t]=`c77d34fc-f35a-44ba-bd50-e4414ac08091`)}catch{}})();import{$ as e,X as t}from"./components-BsGekp3o.js";import{a as n,c as r,f as i,h as a,l as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p}from"./render-B6VV0mEz.js";import{n as m}from"./use-sync-refs-C4OJuCs2.js";import{a as h,c as g,d as _,f as v,s as y,u as b}from"./portal-Bv6AjK-Y.js";var x=e(t(),1);function S(){let e=(0,x.useRef)(!1);return s(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function C(e){return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!l(e.as??A)||x.Children.count(e.children)===1}var w=(0,x.createContext)(null);w.displayName=`TransitionContext`;var T=(e=>(e.Visible=`visible`,e.Hidden=`hidden`,e))(T||{});function ee(){let e=(0,x.useContext)(w);if(e===null)throw Error(`A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.`);return e}function E(){let e=(0,x.useContext)(D);if(e===null)throw Error(`A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.`);return e}var D=(0,x.createContext)(null);D.displayName=`NestingContext`;function O(e){return`children`in e?O(e.children):e.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e===`visible`).length>0}function k(e,t){let n=u(e),o=(0,x.useRef)([]),s=S(),l=a(),d=i((e,t=c.Hidden)=>{let i=o.current.findIndex(({el:t})=>t===e);i!==-1&&(r(t,{[c.Unmount](){o.current.splice(i,1)},[c.Hidden](){o.current[i].state=`hidden`}}),l.microTask(()=>{var e;!O(o)&&s.current&&((e=n.current)==null||e.call(n))}))}),f=i(e=>{let t=o.current.find(({el:t})=>t===e);return t?t.state!==`visible`&&(t.state=`visible`):o.current.push({el:e,state:`visible`}),()=>d(e,c.Unmount)}),p=(0,x.useRef)([]),m=(0,x.useRef)(Promise.resolve()),h=(0,x.useRef)({enter:[],leave:[]}),g=i((e,n,r)=>{p.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),t?.chains.current[n].push([e,new Promise(e=>{p.current.push(e)})]),t?.chains.current[n].push([e,new Promise(e=>{Promise.all(h.current[n].map(([e,t])=>t)).then(()=>e())})]),n===`enter`?m.current=m.current.then(()=>t?.wait.current).then(()=>r(n)):r(n)}),_=i((e,t,n)=>{Promise.all(h.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;(e=p.current.shift())==null||e()}).then(()=>n(t))});return(0,x.useMemo)(()=>({children:o,register:f,unregister:d,onStart:g,onStop:_,wait:m,chains:h}),[f,d,o,g,_,h,m])}var A=x.Fragment,te=p.RenderStrategy;function j(e,t){var n;let{transition:a=!0,beforeEnter:l,afterEnter:u,beforeLeave:p,afterLeave:b,enter:S,enterFrom:w,enterTo:T,entered:j,leave:M,leaveFrom:N,leaveTo:P,...F}=e,[I,L]=(0,x.useState)(null),R=(0,x.useRef)(null),z=C(e),ne=m(...z?[R,t,L]:t===null?[]:[t]),B=(n=F.unmount)==null||n?c.Unmount:c.Hidden,{show:V,appear:re,initial:ie}=ee(),[H,U]=(0,x.useState)(V?`visible`:`hidden`),W=E(),{register:G,unregister:K}=W;s(()=>G(R),[G,R]),s(()=>{if(B===c.Hidden&&R.current){if(V&&H!==`visible`){U(`visible`);return}return r(H,{hidden:()=>K(R),visible:()=>G(R)})}},[H,R,G,K,V,B]);let q=h();s(()=>{if(z&&q&&H===`visible`&&R.current===null)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[R,H,q,z]);let ae=ie&&!re,J=re&&V&&ie,Y=(0,x.useRef)(!1),X=k(()=>{Y.current||(U(`hidden`),K(R))},W),Z=i(e=>{Y.current=!0;let t=e?`enter`:`leave`;X.onStart(R,t,e=>{e===`enter`?l?.():e===`leave`&&p?.()})}),oe=i(e=>{let t=e?`enter`:`leave`;Y.current=!1,X.onStop(R,t,e=>{e===`enter`?u?.():e===`leave`&&b?.()}),t===`leave`&&!O(X)&&(U(`hidden`),K(R))});(0,x.useEffect)(()=>{z&&a||(Z(V),oe(V))},[V,z,a]);let[,Q]=_(!(!a||!z||!q||ae),I,V,{start:Z,end:oe}),se=f({ref:ne,className:o(F.className,J&&S,J&&w,Q.enter&&S,Q.enter&&Q.closed&&w,Q.enter&&!Q.closed&&T,Q.leave&&M,Q.leave&&!Q.closed&&N,Q.leave&&Q.closed&&P,!Q.transition&&V&&j)?.trim()||void 0,...v(Q)}),$=0;H===`visible`&&($|=g.Open),H===`hidden`&&($|=g.Closed),V&&H===`hidden`&&($|=g.Opening),!V&&H===`visible`&&($|=g.Closing);let ce=d();return x.createElement(D.Provider,{value:X},x.createElement(y,{value:$},ce({ourProps:se,theirProps:F,defaultTag:A,features:te,visible:H===`visible`,name:`Transition.Child`})))}function M(e,t){let{show:n,appear:r=!1,unmount:a=!0,...o}=e,c=(0,x.useRef)(null),l=C(e),u=m(...l?[c,t]:t===null?[]:[t]);h();let f=b();if(n===void 0&&f!==null&&(n=(f&g.Open)===g.Open),n===void 0)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,_]=(0,x.useState)(n?`visible`:`hidden`),v=k(()=>{n||_(`hidden`)}),[y,S]=(0,x.useState)(!0),T=(0,x.useRef)([n]);s(()=>{y!==!1&&T.current[T.current.length-1]!==n&&(T.current.push(n),S(!1))},[T,n]);let ee=(0,x.useMemo)(()=>({show:n,appear:r,initial:y}),[n,r,y]);s(()=>{n?_(`visible`):!O(v)&&c.current!==null&&_(`hidden`)},[n,v]);let E={unmount:a},A=i(()=>{var t;y&&S(!1),(t=e.beforeEnter)==null||t.call(e)}),j=i(()=>{var t;y&&S(!1),(t=e.beforeLeave)==null||t.call(e)}),M=d();return x.createElement(D.Provider,{value:v},x.createElement(w.Provider,{value:ee},M({ourProps:{...E,as:x.Fragment,children:x.createElement(F,{ref:u,...E,...o,beforeEnter:A,beforeLeave:j})},theirProps:{},defaultTag:x.Fragment,features:te,visible:p===`visible`,name:`Transition`})))}function N(e,t){let n=(0,x.useContext)(w)!==null,r=b()!==null;return x.createElement(x.Fragment,null,!n&&r?x.createElement(P,{ref:t,...e}):x.createElement(F,{ref:t,...e}))}var P=n(M),F=n(j),I=n(N),L=Object.assign(P,{Child:I,Root:P});export{I as n,S as r,L as t};
2//# chunkId=c77d34fc-f35a-44ba-bd50-e4414ac08091

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.