PageSourceSearch

https://clevertech-website.vercel.app/_nuxt/CAqycXS3.js

js clevertech-website.vercel.app collected 2026-10-03 05:16:39 UTC 2,375 bytes, 9 lines download raw bytes

1import{e as E,j as S,m as _,f as $,o as b,w as k,A,z as L,I as M,b7 as T,b8 as j}from"./DNgH9RDo.js";import{u as z,f as W,h as B,j as p,r as h,k as D}from"./Cp4cWvMY.js";function H(c){const t=new WeakMap,u=z();function f(o){if(c.mode!=="popLayout")return;const i=o.element,l=i.offsetParent,m=l instanceof HTMLElement&&l.offsetWidth||0,s={height:i.offsetHeight||0,width:i.offsetWidth||0,top:i.offsetTop,left:i.offsetLeft,right:0};s.right=m-s.width-s.left;const n=c.anchorX==="left"?`left: ${s.left}`:`right: ${s.right}`;o.element.dataset.motionPopId=o.id;const e=document.createElement("style");u.value.nonce&&(e.nonce=u.value.nonce),t.set(o,e),document.head.appendChild(e),e.sheet&&e.sheet.insertRule(`
2    [data-motion-pop-id="${o.id}"] {
3      position: absolute !important;
4      width: ${s.width}px !important;
5      height: ${s.height}px !important;
6      top: ${s.top}px !important;
7      ${n}px !important;
8      }
9      `)}function d(o){const i=t.get(o);i&&(t.delete(o),W.render(()=>{document.head.removeChild(i)}))}return{addPopStyle:f,removePopStyle:d,styles:t}}function P(c){return Promise.resolve().then(()=>{c()})}const U=E({name:"AnimatePresence",inheritAttrs:!0,__name:"AnimatePresence",props:{mode:{default:"sync"},initial:{type:Boolean,default:!0},as:{},custom:{},onExitComplete:{},anchorX:{default:"left"}},setup(c){const t=c;B(t);const{addPopStyle:u,removePopStyle:f,styles:d}=H(t);function o(n){let e=n;for(;e;){if(p.get(e))return e;e=e.firstElementChild}return null}function i(n){const e=p.get(n);e&&(f(e),e.isVShow=!0,h(n),P(()=>{e.setActive("exit",!1)}))}const l=new Map;S(()=>{l.clear()});function m(n,e){var v;const r=o(n),a=p.get(r);if(!r||!a){e(),l.size===0&&((v=t.onExitComplete)==null||v.call(t));return}l.set(r,!0),h(r),u(a);function g(w){var y,x;if((y=w?.detail)!=null&&y.isExit){const C=a.visualElement.projection;if(C?.animationProgress>0&&!a.isSafeToRemove&&!a.isVShow)return;h(r),l.delete(r),l.size===0&&((x=t.onExitComplete)==null||x.call(t)),d.has(a)?f(a):a.willUpdate("done"),e(),r.isConnected||a.unmount(!0)}}P(()=>{a.setActive("exit",!0),D.set(r,g),r.addEventListener("motioncomplete",g)})}const s=_(()=>t.mode!=="wait"?{tag:t.as}:{mode:t.mode==="wait"?"out-in":void 0});return(n,e)=>(b(),$(M(n.mode==="wait"?T:j),L({css:!1},s.value,{appear:"",onEnter:i,onLeave:m}),{default:k(()=>[A(n.$slots,"default")]),_:3},16))}});export{U as _};

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.