var f=Object.defineProperty;var n=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var c=(t,e,l)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[e]=l,a=(t,e)=>{for(var l in e||(e={}))w.call(e,l)&&c(t,l,e[l]);if(n)for(var l of n(e))W.call(e,l)&&c(t,l,e[l]);return t};import{f as g,u as d,aZ as L}from"./index-f4658ae7.js";function I(t,e){return g(()=>{const l=d(t),{labelCol:r={},wrapperCol:s={}}=l.itemProps||{},{labelWidth:i,disabledLabelWidth:u}=l,{labelWidth:b,labelCol:p,wrapperCol:C}=d(e);if(!b&&!i&&!p||u)return r.style={textAlign:"left"},{labelCol:r,wrapperCol:s};let o=i||b;const h=a(a({},p),r),m=a(a({},C),s);return o&&(o=L(o)?`${o}px`:o),{labelCol:a({style:{width:o}},h),wrapperCol:a({style:{width:`calc(100% - ${o})`}},m)}})}export{I as useItemLabelWidth};