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