const e=require("../_util/classNames.js"),t=require("../vc-resize-observer/index.js"),n=require("../_util/vue-types/index.js");let r=require("vue");var i=void 0,a=(0,r.defineComponent)({compatConfig:{MODE:3},name:`Item`,props:{prefixCls:String,item:n.default.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:n.default.any,invalidate:Boolean},setup(n,{slots:a,expose:o}){let s=(0,r.computed)(()=>n.responsive&&!n.display),c=(0,r.ref)();o({itemNodeRef:c});function l(e){n.registerSize(n.itemKey,e)}return(0,r.onUnmounted)(()=>{l(null)}),()=>{let{prefixCls:o,invalidate:u,item:d,renderItem:f,responsive:p,registerSize:m,itemKey:h,display:g,order:_,component:v=`div`,...y}=n,b=a.default?.(),x=f&&d!==i?f(d):b,S;u||(S={opacity:+!s.value,height:s.value?0:i,overflowY:s.value?`hidden`:i,order:p?_:i,pointerEvents:s.value?`none`:i,position:s.value?`absolute`:i});let C={};return s.value&&(C[`aria-hidden`]=!0),(0,r.createVNode)(t.default,{disabled:!p,onResize:({offsetWidth:e})=>{l(e)}},{default:()=>(0,r.createVNode)(v,{class:e.default(!u&&o),style:S,...C,...y,ref:c},{default:()=>[x]})})}}});exports.default=a;