import{aE as e,aH as r,aM as n,aN as o,aP as i,bG as s,aT as l}from"./index.js?v=1723125373998";import{l as a,k as t,p as d}from"./vue.js?v=1723125373998";const u=e("input-group-label","\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n box-sizing: border-box;\n padding: 0 12px;\n display: inline-block;\n border-radius: var(--n-border-radius);\n background-color: var(--n-group-label-color);\n color: var(--n-group-label-text-color);\n font-size: var(--n-font-size);\n line-height: var(--n-height);\n height: var(--n-height);\n flex-shrink: 0;\n white-space: nowrap;\n transition: \n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n",[r("border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n border: var(--n-group-label-border);\n transition: border-color .3s var(--n-bezier);\n ")]),b=a({name:"InputGroupLabel",props:Object.assign(Object.assign({},o.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),setup(e){const{mergedBorderedRef:r,mergedClsPrefixRef:a,inlineThemeDisabled:d}=n(e),b=o("Input","-input-group-label",u,s,e,a),p=t((()=>{const{size:r}=e,{common:{cubicBezierEaseInOut:n},self:{groupLabelColor:o,borderRadius:i,groupLabelTextColor:s,lineHeight:a,groupLabelBorder:t,[l("fontSize",r)]:d,[l("height",r)]:u}}=b.value;return{"--n-bezier":n,"--n-group-label-color":o,"--n-group-label-border":t,"--n-border-radius":i,"--n-group-label-text-color":s,"--n-font-size":d,"--n-line-height":a,"--n-height":u}})),g=d?i("input-group-label",t((()=>e.size[0])),p,e):void 0;return{mergedClsPrefix:a,mergedBordered:r,cssVars:d?void 0:p,themeClass:null==g?void 0:g.themeClass,onRender:null==g?void 0:g.onRender}},render(){var e,r,n;const{mergedClsPrefix:o}=this;return null===(e=this.onRender)||void 0===e||e.call(this),d("div",{class:["".concat(o,"-input-group-label"),this.themeClass],style:this.cssVars},null===(n=(r=this.$slots).default)||void 0===n?void 0:n.call(r),this.mergedBordered?d("div",{class:"".concat(o,"-input-group-label__border")}):null)}});export{b as _};
