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