PageSourceSearch

https://costofconcrete.com/_nuxt/BfsoAu2r.js

js costofconcrete.com collected 2026-10-03 18:23:34 UTC 3,336 bytes, 3 lines download raw bytes

1import{c as g}from"./YHF-borY.js";import{ak as C,r as f,h as y,P as I,q as w,Z as O,d as S,a0 as P,Y as U,ae as b}from"./Dy3ebqae.js";import{r as x}from"./C0ACQUUT.js";import{e as _,i as $,a as D}from"./D87vS9zS.js";const[V]=g("ConfigProvider");function Y(a,e="reka"){return a||`${e}-${C?.()}`}function F(a,e){const r=f(a);function l(s){return e[r.value][s]??r.value}return{state:r,dispatch:s=>{r.value=l(s)}}}function L(a,e){const r=f({}),l=f("none"),v=f(a),s=a.value?"mounted":"unmounted";let u;const c=e.value?.ownerDocument.defaultView??_,{state:m,dispatch:i}=F(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),n=t=>{if($){const o=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.value?.dispatchEvent(o)}};y(a,async(t,o)=>{const h=o!==t;if(await O(),h){const A=l.value,d=N(e.value);t?(i("MOUNT"),n("enter"),d==="none"&&n("after-enter")):d==="none"||d==="undefined"||r.value?.display==="none"?(i("UNMOUNT"),n("leave"),n("after-leave")):o&&A!==d?(i("ANIMATION_OUT"),n("leave")):(i("UNMOUNT"),n("after-leave"))}},{immediate:!0});const p=t=>{const o=N(e.value),h=o.includes(CSS.escape(t.animationName)),A=m.value==="mounted"?"enter":"leave";if(t.target===e.value&&h&&(n(`after-${A}`),i("ANIMATION_END"),!v.value)){const d=e.value.style.animationFillMode;e.value.style.animationFillMode="forwards",u=c?.setTimeout(()=>{e.value?.style.animationFillMode==="forwards"&&(e.value.style.animationFillMode=d)})}t.target===e.value&&o==="none"&&i("ANIMATION_END")},M=t=>{t.target===e.value&&(l.value=N(e.value))},E=y(e,(t,o)=>{t?(r.value=getComputedStyle(t),t.addEventListener("animationstart",M),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p)):(i("ANIMATION_END"),u!==void 0&&c?.clearTimeout(u),o?.removeEventListener("animationstart",M),o?.removeEventListener("animationcancel",p),o?.removeEventListener("animationend",p))},{immediate:!0}),T=y(m,()=>{const t=N(e.value);l.value=m.value==="mounted"?t:"none"});return I(()=>{E(),T()}),{isPresent:w(()=>["mounted","unmountSuspended"].includes(m.value))}}function N(a){return a&&getComputedStyle(a).animationName||"none"}var Z=S({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(a,{slots:e,expose:r}){const{present:l,forceMount:v}=P(a),s=f(),{isPresent:u}=L(l,s);r({present:u});let c=e.default({present:u.value});c=x(c||[]);const m=U();if(c&&c?.length>1){const i=m?.parent?.type.name?`<${m.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${i}\` for  \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(n=>`  - ${n}`).join(`
2`)].join(`
3`))}return()=>v.value||l.value||u.value?b(e.default({present:u.value})[0],{ref:i=>{const n=D(i);return typeof n?.hasAttribute>"u"||(n?.hasAttribute("data-reka-popper-content-wrapper")?s.value=n.firstElementChild:s.value=n),n}}):null}});export{Z as P,F as a,V as i,Y as u};

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.