PageSourceSearch

https://convertex.ai/assets/index-ChAGvo2U.js

js convertex.ai collected 2026-09-24 14:29:28 UTC 3,987 bytes, 1 lines download raw bytes

1import{r as e,j as t}from"./index-CTUgqakz.js";import{M as n,G as o,a as r,P as s,I as i,u as c,L as u}from"./proxy--AF1RYhV.js";function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...t){return e.useCallback(function(...e){return t=>{let n=!1;const o=e.map(e=>{const o=l(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){const n=o[t];"function"==typeof n?n():l(e[t],null)}}}}(...t),t)}class p extends e.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(o(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){const e=t.offsetParent,n=o(e)&&e.offsetWidth||0,r=o(e)&&e.offsetHeight||0,s=getComputedStyle(t),i=this.props.sizeRef.current;i.height=parseFloat(s.height),i.width=parseFloat(s.width),i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left,i.bottom=r-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:o,isPresent:r,anchorX:s,anchorY:i,root:c,pop:u}){var l;const f=e.useId(),h=e.useRef(null),d=e.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=e.useContext(n),g=(null==(l=o.props)?void 0:l.ref)??(null==o?void 0:o.ref),x=a(h,g);return e.useInsertionEffect(()=>{const{width:e,height:t,top:n,left:o,right:l,bottom:a}=d.current;if(r||!1===u||!h.current||!e||!t)return;const p="left"===s?`left: ${o}`:`right: ${l}`,g="bottom"===i?`bottom: ${a}`:`top: ${n}`;h.current.dataset.motionPopId=f;const x=document.createElement("style");m&&(x.nonce=m);const y=c??document.head;return y.appendChild(x),x.sheet&&x.sheet.insertRule(`\n          [data-motion-pop-id="${f}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${t}px !important;\n            ${p}px !important;\n            ${g}px !important;\n          }\n        `),()=>{var e;null==(e=h.current)||e.removeAttribute("data-motion-pop-id"),y.contains(x)&&y.removeChild(x)}},[r]),t.jsx(p,{isPresent:r,childRef:h,sizeRef:d,pop:u,children:!1===u?o:e.cloneElement(o,{ref:x})})}const h=({children:n,initial:o,isPresent:i,onExitComplete:c,custom:u,presenceAffectsLayout:l,mode:a,anchorX:p,anchorY:h,root:m})=>{const g=r(d),x=e.useId();let y=!0,C=e.useMemo(()=>(y=!1,{id:x,initial:o,isPresent:i,custom:u,onExitComplete:e=>{g.set(e,!0);for(const t of g.values())if(!t)return;c&&c()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[i,g,c]);return l&&y&&(C={...C}),e.useMemo(()=>{g.forEach((e,t)=>g.set(t,!1))},[i]),e.useEffect(()=>{!i&&!g.size&&c&&c()},[i]),n=t.jsx(f,{pop:"popLayout"===a,isPresent:i,anchorX:p,anchorY:h,root:m,children:n}),t.jsx(s.Provider,{value:C,children:n})};function d(){return new Map}const m=e=>e.key||"";function g(t){const n=[];return e.Children.forEach(t,t=>{e.isValidElement(t)&&n.push(t)}),n}const x=({children:n,custom:o,initial:s=!0,onExitComplete:l,presenceAffectsLayout:a=!0,mode:p="sync",propagate:f=!1,anchorX:d="left",anchorY:x="top",root:y})=>{const[C,E]=i(f),P=e.useMemo(()=>g(n),[n]),v=f&&!C?[]:P.map(m),R=e.useRef(!0),w=e.useRef(P),j=r(()=>new Map),$=e.useRef(new Set),[b,L]=e.useState(P),[M,A]=e.useState(P);c(()=>{R.current=!1,w.current=P;for(let e=0;e<M.length;e++){const t=m(M[e]);v.includes(t)?(j.delete(t),$.current.delete(t)):!0!==j.get(t)&&j.set(t,!1)}},[M,v.length,v.join("-")]);const I=[];if(P!==b){let e=[...P];for(let t=0;t<M.length;t++){const n=M[t],o=m(n);v.includes(o)||(e.splice(t,0,n),I.push(n))}return"wait"===p&&I.length&&(e=I),A(g(e)),L(P),null}const{forceRender:S}=e.useContext(u);return t.jsx(t.Fragment,{children:M.map(e=>{const n=m(e),r=!(f&&!C)&&(P===M||v.includes(n));return t.jsx(h,{isPresent:r,initial:!(R.current&&!s)&&void 0,custom:o,presenceAffectsLayout:a,mode:p,root:y,onExitComplete:r?void 0:()=>{if($.current.has(n))return;if(!j.has(n))return;$.current.add(n),j.set(n,!0);let e=!0;j.forEach(t=>{t||(e=!1)}),e&&(null==S||S(),A(w.current),f&&(null==E||E()),l&&l())},anchorX:d,anchorY:x,children:e},n)})})};export{x as A};

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.