1import{d as l}from"./swiper-vue.iPC35nDh.js";import{L as h}from"./entry.2ehg4ZD6.js";const d=l({name:"EntireIntersect",abstract:!0,props:{threshold:{type:Array,required:!1,default:()=>[0]},root:{type:typeof HTMLElement<"u"?HTMLElement:Object,required:!1,default:()=>null},rootMargin:{type:String,required:!1,default:()=>"0px 0px 0px 0px"},enabled:{type:Boolean,default:!0}},emits:{change(e){return e!=null},enter(e){return e!=null},leave(e){return e!=null}},watch:{enabled(e){e?this.$.vnode&&this.$.vnode.el&&this.observer.observe(this.$.vnode.el):this.observer.disconnect()}},mounted(){this.observer=new IntersectionObserver(e=>{e[0].isIntersecting?this.$emit("enter",e[0]):this.$emit("leave",e[0]),this.$emit("change",e[0])},{threshold:this.threshold,root:this.root,rootMargin:this.rootMargin}),this.$nextTick(()=>{this.enabled&&this.$.vnode&&this.$.vnode.el&&this.observer.observe(this.$.vnode.el)})},unmounted(){this.observer.disconnect()},render(){if(!(this.$slots.default&&this.$slots.default().length>1)){if(!this.$slots.default||this.$slots.default().length<1)return null}return this.$slots.default()[0]}}),f=d,a=l({name:"EntireResize",abstract:!0,props:{enabled:{type:Boolean,default:!0}},emits:{resize(e,t){return e!=null||t!=null}},data:()=>({disposer:null}),watch:{enabled(e){e?this.$.vnode&&this.$.vnode.el&&this.observer.observe(this.$.vnode.el):this.observer.disconnect()}},mounted(){try{this.observer=new ResizeObserver(e=>{this.onResize(e[0])})}catch{}this.disposer=h("resize",this.onResize),this.$nextTick(()=>{this.enabled&&this.$.vnode&&this.$.vnode.el&&(this.observer&&this.observer.observe(this.$.vnode.el),this.onResize())})},unmounted(){this.disposer&&(this.disposer(),this.disposer=null),this.observer&&this.observer.disconnect()},methods:{onResize(e){var t,i,o,n,r;try{const s=e&&(e.contentRect||e.borderBoxSize);this.enabled&&(s||(i=(t=this.$)==null?void 0:t.vnode)!=null&&i.el&&typeof this.$.vnode.el.getBoundingClientRect=="function")&&this.$emit("resize",s?((r=(n=(o=this.$)==null?void 0:o.vnode)==null?void 0:n.el)==null?void 0:r.getBoundingClientRect())||{left:e.contentRect.left,right:e.contentRect.right,top:e.contentRect.top,bottom:e.contentRect.bottom,x:e.contentRect.x,y:e.contentRect.y,width:e.borderBoxSize?e.borderBoxSize[0].inlineSize:e.contentRect.width,height:e.borderBoxSize?e.borderBoxSize[0].blockSize:e.contentRect.height}:this.$.vnode.el.getBoundingClientRect(),e)}catch{}}},render(){if(!(this.$slots.default&&this.$slots.default().length>1)){if(!this.$slots.default||this.$slots.default().length<1)return null}return this.$slots.default()[0]}}),v=a;export{v as _,f 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.