"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/index.js");const r=require("../config-provider/hooks/use-namespace.js"),i=e.defineComponent({name:"InternalSplitterPanel",__name:"Panel",props:{className:{},prefixCls:{},supportMotion:{type:Boolean},style:{default:()=>({})},min:{},max:{},size:{},collapsible:{type:[Boolean,Object]},resizable:{type:Boolean},defaultSize:{},destroyOnHidden:{type:Boolean}},setup(s){const t=s,{b:o}=r.useNamespace("splitter-panel"),l=e.computed(()=>t.size===0||typeof t.size=="string"&&Number.parseFloat(t.size)===0),a=e.computed(()=>{const n=t.size!==void 0;return{...t.style,flexBasis:n?`${t.size}px`:"auto",flexGrow:n?0:1}});return(n,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o)(),{[e.unref(o)("hidden")]:s.size===0,[e.unref(o)("transition")]:s.supportMotion},s.className]),style:e.normalizeStyle(a.value)},[s.destroyOnHidden&&l.value?e.createCommentVNode("",!0):e.renderSlot(n.$slots,"default",{key:0})],6))}});exports.default=i;
