PageSourceSearch

https://trychannel3.com/assets/index-DBNNMq21.js

js trychannel3.com collected 2026-09-24 22:55:36 UTC 2,846 bytes, 1 lines download raw bytes

1import{r as a}from"./chunk-62JRHF6Z-CzwNv35r.js";import{u as M}from"./index-C_PiomxH.js";var y=Object.defineProperty,c=(n,e)=>y(n,"name",{value:e,configurable:!0});function O(n,e){return a.useReducer((r,t)=>e[r][t]??r,n)}c(O,"useStateMachine");var I=c(n=>{const{present:e,children:r}=n,t=E(e),o=typeof r=="function"?r({present:t.isPresent}):a.Children.only(r),u=v(t.ref,P(o));return typeof r=="function"||t.isPresent?a.cloneElement(o,{ref:u}):null},"Presence");function E(n){const[e,r]=a.useState(),t=a.useRef(null),o=a.useRef(n),u=a.useRef("none"),i=a.useRef(void 0),d=n?"mounted":"unmounted",[g,f]=O(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{g==="mounted"?(u.current=i.current??p(t.current),i.current=void 0):u.current="none"},[g]),M(()=>{const s=t.current,m=o.current;if(m!==n){const A=u.current,l=p(s);n?(i.current=l,f("MOUNT")):l==="none"||(s==null?void 0:s.display)==="none"?f("UNMOUNT"):f(m&&A!==l?"ANIMATION_OUT":"UNMOUNT"),o.current=n}},[n,f]),M(()=>{if(e){let s;const m=e.ownerDocument.defaultView??window,N=c(l=>{const h=p(t.current).includes(CSS.escape(l.animationName));if(l.target===e&&h&&(f("ANIMATION_END"),!o.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",s=m.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},"handleAnimationEnd"),A=c(l=>{l.target===e&&(u.current=p(t.current))},"handleAnimationStart");return e.addEventListener("animationstart",A),e.addEventListener("animationcancel",N),e.addEventListener("animationend",N),()=>{m.clearTimeout(s),e.removeEventListener("animationstart",A),e.removeEventListener("animationcancel",N),e.removeEventListener("animationend",N)}}else f("ANIMATION_END")},[e,f]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:a.useCallback(s=>{if(s){const m=getComputedStyle(s);t.current=m,i.current=p(m)}else t.current=null;r(s)},[])}}c(E,"usePresence");function R(n,e){if(typeof n=="function")return n(e);n!=null&&(n.current=e)}c(R,"setRef");function v(...n){const e=a.useRef(n);return e.current=n,a.useCallback(r=>{const t=e.current;let o=!1;const u=t.map(i=>{const d=R(i,r);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let i=0;i<u.length;i++){const d=u[i];typeof d=="function"?d():R(t[i],null)}}},[])}c(v,"useStableComposedRefs");function p(n){return(n==null?void 0:n.animationName)||"none"}c(p,"getAnimationName");function P(n){var t,o;let e=(t=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:t.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?n.ref:(e=(o=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}c(P,"getElementRef");export{I as P};

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.