import{computed as e,shallowRef as t}from"vue";var n=n=>{let r=t({width:0,height:0});function i(e){r.value={width:e.offsetWidth,height:e.offsetHeight}}return[e(()=>{let e={};if(n.value){let{width:t,height:i}=r.value;n.value.includes(`height`)&&i?e.height=`${i}px`:n.value.includes(`minHeight`)&&i&&(e.minHeight=`${i}px`),n.value.includes(`width`)&&t?e.width=`${t}px`:n.value.includes(`minWidth`)&&t&&(e.minWidth=`${t}px`)}return e}),i]};export{n as default};