epic-designer-gold
Version:
基于vue3的设计器,可视化开发页面表单
326 lines (325 loc) • 43.3 kB
JavaScript
;const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),se=require("./_vue_commonjs-external-BbihI59z.cjs"),S=require("./index-4PPmJYKt.cjs"),Ne=require("./index-jx5A2kt8.cjs");function zo(t,s){for(var v=0;v<s.length;v++){const h=s[v];if(typeof h!="string"&&!Array.isArray(h)){for(const p in h)if(p!=="default"&&!(p in t)){const r=Object.getOwnPropertyDescriptor(h,p);r&&Object.defineProperty(t,p,r.get?r:{enumerable:!0,get:()=>h[p]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Fe={},Ue={},je={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isSafari=t.isFirefox=t.isChrome=void 0;const s=S.isBrowser;t.isChrome=s.isBrowser&&"chrome"in window,t.isFirefox=s.isBrowser&&navigator.userAgent.includes("Firefox"),t.isSafari=s.isBrowser&&navigator.userAgent.includes("Safari")&&!t.isChrome})(je);var ye={},De={},we={};Object.defineProperty(we,"__esModule",{value:!0});we.default={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};var Mo=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});const ee=S.require$$1,Ro=S.common,Fo=Mo(we),jo={name:"Input",common:Ro.commonDark,self(t){const{textColor2:s,textColor3:v,textColorDisabled:h,primaryColor:p,primaryColorHover:r,inputColor:x,inputColorDisabled:u,warningColor:b,warningColorHover:C,errorColor:B,errorColorHover:D,borderRadius:I,lineHeight:z,fontSizeTiny:F,fontSizeSmall:f,fontSizeMedium:H,fontSizeLarge:N,heightTiny:W,heightSmall:V,heightMedium:k,heightLarge:n,clearColor:g,clearColorHover:l,clearColorPressed:j,placeholderColor:T,placeholderColorDisabled:A,iconColor:M,iconColorDisabled:E,iconColorHover:w,iconColorPressed:c}=t;return Object.assign(Object.assign({},Fo.default),{countTextColorDisabled:h,countTextColor:v,heightTiny:W,heightSmall:V,heightMedium:k,heightLarge:n,fontSizeTiny:F,fontSizeSmall:f,fontSizeMedium:H,fontSizeLarge:N,lineHeight:z,lineHeightTextarea:z,borderRadius:I,iconSize:"16px",groupLabelColor:x,textColor:s,textColorDisabled:h,textDecorationColor:s,groupLabelTextColor:s,caretColor:p,placeholderColor:T,placeholderColorDisabled:A,color:x,colorDisabled:u,colorFocus:(0,ee.changeColor)(p,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${r}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${r}`,boxShadowFocus:`0 0 8px 0 ${(0,ee.changeColor)(p,{alpha:.3})}`,loadingColor:p,loadingColorWarning:b,borderWarning:`1px solid ${b}`,borderHoverWarning:`1px solid ${C}`,colorFocusWarning:(0,ee.changeColor)(b,{alpha:.1}),borderFocusWarning:`1px solid ${C}`,boxShadowFocusWarning:`0 0 8px 0 ${(0,ee.changeColor)(b,{alpha:.3})}`,caretColorWarning:b,loadingColorError:B,borderError:`1px solid ${B}`,borderHoverError:`1px solid ${D}`,colorFocusError:(0,ee.changeColor)(B,{alpha:.1}),borderFocusError:`1px solid ${D}`,boxShadowFocusError:`0 0 8px 0 ${(0,ee.changeColor)(B,{alpha:.3})}`,caretColorError:B,clearColor:g,clearColorHover:l,clearColorPressed:j,iconColor:M,iconColorDisabled:E,iconColorHover:w,iconColorPressed:c,suffixTextColor:s})}};De.default=jo;var Ie={},Do=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ie,"__esModule",{value:!0});const Re=S.require$$1,Io=S.common,To=Do(we);function Ao(t){const{textColor2:s,textColor3:v,textColorDisabled:h,primaryColor:p,primaryColorHover:r,inputColor:x,inputColorDisabled:u,borderColor:b,warningColor:C,warningColorHover:B,errorColor:D,errorColorHover:I,borderRadius:z,lineHeight:F,fontSizeTiny:f,fontSizeSmall:H,fontSizeMedium:N,fontSizeLarge:W,heightTiny:V,heightSmall:k,heightMedium:n,heightLarge:g,actionColor:l,clearColor:j,clearColorHover:T,clearColorPressed:A,placeholderColor:M,placeholderColorDisabled:E,iconColor:w,iconColorDisabled:c,iconColorHover:d,iconColorPressed:R}=t;return Object.assign(Object.assign({},To.default),{countTextColorDisabled:h,countTextColor:v,heightTiny:V,heightSmall:k,heightMedium:n,heightLarge:g,fontSizeTiny:f,fontSizeSmall:H,fontSizeMedium:N,fontSizeLarge:W,lineHeight:F,lineHeightTextarea:F,borderRadius:z,iconSize:"16px",groupLabelColor:l,groupLabelTextColor:s,textColor:s,textColorDisabled:h,textDecorationColor:s,caretColor:p,placeholderColor:M,placeholderColorDisabled:E,color:x,colorDisabled:u,colorFocus:x,groupLabelBorder:`1px solid ${b}`,border:`1px solid ${b}`,borderHover:`1px solid ${r}`,borderDisabled:`1px solid ${b}`,borderFocus:`1px solid ${r}`,boxShadowFocus:`0 0 0 2px ${(0,Re.changeColor)(p,{alpha:.2})}`,loadingColor:p,loadingColorWarning:C,borderWarning:`1px solid ${C}`,borderHoverWarning:`1px solid ${B}`,colorFocusWarning:x,borderFocusWarning:`1px solid ${B}`,boxShadowFocusWarning:`0 0 0 2px ${(0,Re.changeColor)(C,{alpha:.2})}`,caretColorWarning:C,loadingColorError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${I}`,colorFocusError:x,borderFocusError:`1px solid ${I}`,boxShadowFocusError:`0 0 0 2px ${(0,Re.changeColor)(D,{alpha:.2})}`,caretColorError:D,clearColor:j,clearColorHover:T,clearColorPressed:A,iconColor:w,iconColorDisabled:c,iconColorHover:d,iconColorPressed:R,suffixTextColor:s})}const Oo={name:"Input",common:Io.commonLight,self:Ao};Ie.default=Oo;var ue={},Te={};Object.defineProperty(Te,"__esModule",{value:!0});const Y=S.cssr;Te.default=(0,Y.cB)("input",[(0,Y.cM)("rtl",`
direction: rtl;
`,[(0,Y.cE)("prefix",{marginRight:0,marginLeft:"4px"}),(0,Y.cE)("suffix",{marginRight:"4px",marginLeft:0}),(0,Y.cM)("textarea","width: 100%;",[(0,Y.cB)("input-word-count",`
left: var(--n-padding-right);
right: unset;
`)]),(0,Y.cB)("input-word-count",`
margin-left: 0;
margin-right: 4px;
`)])]);var Wo=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ue,"__esModule",{value:!0});ue.inputRtl=void 0;const Go=Wo(Te);ue.inputRtl={name:"Input",style:Go.default};(function(t){var s=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputRtl=t.inputLight=t.inputDark=void 0;var v=De;Object.defineProperty(t,"inputDark",{enumerable:!0,get:function(){return s(v).default}});var h=Ie;Object.defineProperty(t,"inputLight",{enumerable:!0,get:function(){return s(h).default}});var p=ue;Object.defineProperty(t,"inputRtl",{enumerable:!0,get:function(){return p.inputRtl}})})(ye);var ce={};Object.defineProperty(ce,"__esModule",{value:!0});ce.inputInjectionKey=void 0;const Vo=S._utils;ce.inputInjectionKey=(0,Vo.createInjectionKey)("n-input");var re={};Object.defineProperty(re,"__esModule",{value:!0});re.len=ko;re.isEmptyInputValue=Lo;re.useCursor=Ho;const Ke=se.require$$0;function ko(t){let s=0;for(const v of t)s++;return s}function Lo(t){return t===""||t==null}function Ho(t){const s=(0,Ke.ref)(null);function v(){const{value:r}=t;if(!(r!=null&&r.focus)){p();return}const{selectionStart:x,selectionEnd:u,value:b}=r;if(x==null||u==null){p();return}s.value={start:x,end:u,beforeText:b.slice(0,x),afterText:b.slice(u)}}function h(){var r;const{value:x}=s,{value:u}=t;if(!x||!u)return;const{value:b}=u,{start:C,beforeText:B,afterText:D}=x;let I=b.length;if(b.endsWith(D))I=b.length-D.length;else if(b.startsWith(B))I=B.length;else{const z=B[C-1],F=b.indexOf(z,C-1);F!==-1&&(I=F+1)}(r=u.setSelectionRange)===null||r===void 0||r.call(u,I,I)}function p(){s.value=null}return(0,Ke.watch)(t,p),{recordCursor:v,restoreCursor:h}}var Ae={};Object.defineProperty(Ae,"__esModule",{value:!0});const _e=se.require$$0,No=S._utils,Ko=ce,qo=re;Ae.default=(0,_e.defineComponent)({name:"InputWordCount",setup(t,{slots:s}){const{mergedValueRef:v,maxlengthRef:h,mergedClsPrefixRef:p,countGraphemesRef:r}=(0,_e.inject)(Ko.inputInjectionKey),x=(0,_e.computed)(()=>{const{value:u}=v;return u===null||Array.isArray(u)?0:(r.value||qo.len)(u)});return()=>{const{value:u}=h,{value:b}=v;return(0,_e.h)("span",{class:`${p.value}-input-word-count`},(0,No.resolveSlotWithProps)(s.default,{value:b===null||Array.isArray(b)?"":b},()=>[u===void 0?x.value:`${x.value} / ${u}`]))}}});var de={};Object.defineProperty(de,"__esModule",{value:!0});de.safariStyle=void 0;const i=S.cssr;de.default=(0,i.cB)("input",`
max-width: 100%;
cursor: text;
line-height: 1.5;
z-index: auto;
outline: none;
box-sizing: border-box;
position: relative;
display: inline-flex;
border-radius: var(--n-border-radius);
background-color: var(--n-color);
transition: background-color .3s var(--n-bezier);
font-size: var(--n-font-size);
--n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
`,[(0,i.cE)("input, textarea",`
overflow: hidden;
flex-grow: 1;
position: relative;
`),(0,i.cE)("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
box-sizing: border-box;
font-size: inherit;
line-height: 1.5;
font-family: inherit;
border: none;
outline: none;
background-color: #0000;
text-align: inherit;
transition:
-webkit-text-fill-color .3s var(--n-bezier),
caret-color .3s var(--n-bezier),
color .3s var(--n-bezier),
text-decoration-color .3s var(--n-bezier);
`),(0,i.cE)("input-el, textarea-el",`
-webkit-appearance: none;
scrollbar-width: none;
width: 100%;
min-width: 0;
text-decoration-color: var(--n-text-decoration-color);
color: var(--n-text-color);
caret-color: var(--n-caret-color);
background-color: transparent;
`,[(0,i.c)("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
width: 0;
height: 0;
display: none;
`),(0,i.c)("&::placeholder",`
color: #0000;
-webkit-text-fill-color: transparent !important;
`),(0,i.c)("&:-webkit-autofill ~",[(0,i.cE)("placeholder","display: none;")])]),(0,i.cM)("round",[(0,i.cNotM)("textarea","border-radius: calc(var(--n-height) / 2);")]),(0,i.cE)("placeholder",`
pointer-events: none;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: hidden;
color: var(--n-placeholder-color);
`,[(0,i.c)("span",`
width: 100%;
display: inline-block;
`)]),(0,i.cM)("textarea",[(0,i.cE)("placeholder","overflow: visible;")]),(0,i.cNotM)("autosize","width: 100%;"),(0,i.cM)("autosize",[(0,i.cE)("textarea-el, input-el",`
position: absolute;
top: 0;
left: 0;
height: 100%;
`)]),(0,i.cB)("input-wrapper",`
overflow: hidden;
display: inline-flex;
flex-grow: 1;
position: relative;
padding-left: var(--n-padding-left);
padding-right: var(--n-padding-right);
`),(0,i.cE)("input-mirror",`
padding: 0;
height: var(--n-height);
line-height: var(--n-height);
overflow: hidden;
visibility: hidden;
position: static;
white-space: pre;
pointer-events: none;
`),(0,i.cE)("input-el",`
padding: 0;
height: var(--n-height);
line-height: var(--n-height);
`,[(0,i.c)("&[type=password]::-ms-reveal","display: none;"),(0,i.c)("+",[(0,i.cE)("placeholder",`
display: flex;
align-items: center;
`)])]),(0,i.cNotM)("textarea",[(0,i.cE)("placeholder","white-space: nowrap;")]),(0,i.cE)("eye",`
display: flex;
align-items: center;
justify-content: center;
transition: color .3s var(--n-bezier);
`),(0,i.cM)("textarea","width: 100%;",[(0,i.cB)("input-word-count",`
position: absolute;
right: var(--n-padding-right);
bottom: var(--n-padding-vertical);
`),(0,i.cM)("resizable",[(0,i.cB)("input-wrapper",`
resize: vertical;
min-height: var(--n-height);
`)]),(0,i.cE)("textarea-el, textarea-mirror, placeholder",`
height: 100%;
padding-left: 0;
padding-right: 0;
padding-top: var(--n-padding-vertical);
padding-bottom: var(--n-padding-vertical);
word-break: break-word;
display: inline-block;
vertical-align: bottom;
box-sizing: border-box;
line-height: var(--n-line-height-textarea);
margin: 0;
resize: none;
white-space: pre-wrap;
scroll-padding-block-end: var(--n-padding-vertical);
`),(0,i.cE)("textarea-mirror",`
width: 100%;
pointer-events: none;
overflow: hidden;
visibility: hidden;
position: static;
white-space: pre-wrap;
overflow-wrap: break-word;
`)]),(0,i.cM)("pair",[(0,i.cE)("input-el, placeholder","text-align: center;"),(0,i.cE)("separator",`
display: flex;
align-items: center;
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
white-space: nowrap;
`,[(0,i.cB)("icon",`
color: var(--n-icon-color);
`),(0,i.cB)("base-icon",`
color: var(--n-icon-color);
`)])]),(0,i.cM)("disabled",`
cursor: not-allowed;
background-color: var(--n-color-disabled);
`,[(0,i.cE)("border","border: var(--n-border-disabled);"),(0,i.cE)("input-el, textarea-el",`
cursor: not-allowed;
color: var(--n-text-color-disabled);
text-decoration-color: var(--n-text-color-disabled);
`),(0,i.cE)("placeholder","color: var(--n-placeholder-color-disabled);"),(0,i.cE)("separator","color: var(--n-text-color-disabled);",[(0,i.cB)("icon",`
color: var(--n-icon-color-disabled);
`),(0,i.cB)("base-icon",`
color: var(--n-icon-color-disabled);
`)]),(0,i.cB)("input-word-count",`
color: var(--n-count-text-color-disabled);
`),(0,i.cE)("suffix, prefix","color: var(--n-text-color-disabled);",[(0,i.cB)("icon",`
color: var(--n-icon-color-disabled);
`),(0,i.cB)("internal-icon",`
color: var(--n-icon-color-disabled);
`)])]),(0,i.cNotM)("disabled",[(0,i.cE)("eye",`
color: var(--n-icon-color);
cursor: pointer;
`,[(0,i.c)("&:hover",`
color: var(--n-icon-color-hover);
`),(0,i.c)("&:active",`
color: var(--n-icon-color-pressed);
`)]),(0,i.c)("&:hover",[(0,i.cE)("state-border","border: var(--n-border-hover);")]),(0,i.cM)("focus","background-color: var(--n-color-focus);",[(0,i.cE)("state-border",`
border: var(--n-border-focus);
box-shadow: var(--n-box-shadow-focus);
`)])]),(0,i.cE)("border, state-border",`
box-sizing: border-box;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
pointer-events: none;
border-radius: inherit;
border: var(--n-border);
transition:
box-shadow .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`),(0,i.cE)("state-border",`
border-color: #0000;
z-index: 1;
`),(0,i.cE)("prefix","margin-right: 4px;"),(0,i.cE)("suffix",`
margin-left: 4px;
`),(0,i.cE)("suffix, prefix",`
transition: color .3s var(--n-bezier);
flex-wrap: nowrap;
flex-shrink: 0;
line-height: var(--n-height);
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--n-suffix-text-color);
`,[(0,i.cB)("base-loading",`
font-size: var(--n-icon-size);
margin: 0 2px;
color: var(--n-loading-color);
`),(0,i.cB)("base-clear",`
font-size: var(--n-icon-size);
`,[(0,i.cE)("placeholder",[(0,i.cB)("base-icon",`
transition: color .3s var(--n-bezier);
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)])]),(0,i.c)(">",[(0,i.cB)("icon",`
transition: color .3s var(--n-bezier);
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)]),(0,i.cB)("base-icon",`
font-size: var(--n-icon-size);
`)]),(0,i.cB)("input-word-count",`
pointer-events: none;
line-height: 1.5;
font-size: .85em;
color: var(--n-count-text-color);
transition: color .3s var(--n-bezier);
margin-left: 4px;
font-variant: tabular-nums;
`),["warning","error"].map(t=>(0,i.cM)(`${t}-status`,[(0,i.cNotM)("disabled",[(0,i.cB)("base-loading",`
color: var(--n-loading-color-${t})
`),(0,i.cE)("input-el, textarea-el",`
caret-color: var(--n-caret-color-${t});
`),(0,i.cE)("state-border",`
border: var(--n-border-${t});
`),(0,i.c)("&:hover",[(0,i.cE)("state-border",`
border: var(--n-border-hover-${t});
`)]),(0,i.c)("&:focus",`
background-color: var(--n-color-focus-${t});
`,[(0,i.cE)("state-border",`
box-shadow: var(--n-box-shadow-focus-${t});
border: var(--n-border-focus-${t});
`)]),(0,i.cM)("focus",`
background-color: var(--n-color-focus-${t});
`,[(0,i.cE)("state-border",`
box-shadow: var(--n-box-shadow-focus-${t});
border: var(--n-border-focus-${t});
`)])])]))]);de.safariStyle=(0,i.cB)("input",[(0,i.cM)("disabled",[(0,i.cE)("input-el, textarea-el",`
-webkit-text-fill-color: var(--n-text-color-disabled);
`)])]);(function(t){var s=P.commonjsGlobal&&P.commonjsGlobal.__createBinding||(Object.create?function(n,g,l,j){j===void 0&&(j=l);var T=Object.getOwnPropertyDescriptor(g,l);(!T||("get"in T?!g.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return g[l]}}),Object.defineProperty(n,j,T)}:function(n,g,l,j){j===void 0&&(j=l),n[j]=g[l]}),v=P.commonjsGlobal&&P.commonjsGlobal.__setModuleDefault||(Object.create?function(n,g){Object.defineProperty(n,"default",{enumerable:!0,value:g})}:function(n,g){n.default=g}),h=P.commonjsGlobal&&P.commonjsGlobal.__importStar||function(n){if(n&&n.__esModule)return n;var g={};if(n!=null)for(var l in n)l!=="default"&&Object.prototype.hasOwnProperty.call(n,l)&&s(g,n,l);return v(g,n),g},p=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputProps=void 0;const r=se.require$$0,x=S.require$$2,u=S.require$$1,b=S.require$$1$1,C=S.require$$3,B=je,D=Ne.icons,I=S.useRtl,z=Ne._internal,F=S._mixins,f=S._utils,H=ye,N=ce,W=re,V=p(Ae),k=h(de);t.inputProps=Object.assign(Object.assign({},F.useTheme.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),t.default=(0,r.defineComponent)({name:"Input",props:t.inputProps,setup(n){process.env.NODE_ENV!=="production"&&(0,r.watchEffect)(()=>{n.showPasswordToggle&&(0,f.warnOnce)("input",'`show-password-toggle` is deprecated, please use `showPasswordOn="click"` instead')});const{mergedClsPrefixRef:g,mergedBorderedRef:l,inlineThemeDisabled:j,mergedRtlRef:T}=(0,F.useConfig)(n),A=(0,F.useTheme)("Input","-input",k.default,H.inputLight,n,g);B.isSafari&&(0,F.useStyle)("-input-safari",k.safariStyle,g);const M=(0,r.ref)(null),E=(0,r.ref)(null),w=(0,r.ref)(null),c=(0,r.ref)(null),d=(0,r.ref)(null),R=(0,r.ref)(null),O=(0,r.ref)(null),fe=(0,W.useCursor)(O),K=(0,r.ref)(null),{localeRef:Je}=(0,F.useLocale)("Input"),pe=(0,r.ref)(n.defaultValue),Qe=(0,r.toRef)(n,"value"),G=(0,x.useMergedState)(Qe,pe),oe=(0,F.useFormItem)(n),{mergedSizeRef:Ce,mergedDisabledRef:J,mergedStatusRef:Ze}=oe,Q=(0,r.ref)(!1),te=(0,r.ref)(!1),L=(0,r.ref)(!1),ne=(0,r.ref)(!1);let Ee=null;const $e=(0,r.computed)(()=>{const{placeholder:e,pair:o}=n;return o?Array.isArray(e)?e:e===void 0?["",""]:[e,e]:e===void 0?[Je.value.placeholder]:[e]}),er=(0,r.computed)(()=>{const{value:e}=L,{value:o}=G,{value:a}=$e;return!e&&((0,W.isEmptyInputValue)(o)||Array.isArray(o)&&(0,W.isEmptyInputValue)(o[0]))&&a[0]}),rr=(0,r.computed)(()=>{const{value:e}=L,{value:o}=G,{value:a}=$e;return!e&&a[1]&&((0,W.isEmptyInputValue)(o)||Array.isArray(o)&&(0,W.isEmptyInputValue)(o[1]))}),Pe=(0,x.useMemo)(()=>n.internalForceFocus||Q.value),or=(0,x.useMemo)(()=>{if(J.value||n.readonly||!n.clearable||!Pe.value&&!te.value)return!1;const{value:e}=G,{value:o}=Pe;return n.pair?!!(Array.isArray(e)&&(e[0]||e[1]))&&(te.value||o):!!e&&(te.value||o)}),Se=(0,r.computed)(()=>{const{showPasswordOn:e}=n;if(e)return e;if(n.showPasswordToggle)return"click"}),ie=(0,r.ref)(!1),tr=(0,r.computed)(()=>{const{textDecoration:e}=n;return e?Array.isArray(e)?e.map(o=>({textDecoration:o})):[{textDecoration:e}]:["",""]}),Ge=(0,r.ref)(void 0),nr=()=>{var e,o;if(n.type==="textarea"){const{autosize:a}=n;if(a&&(Ge.value=(o=(e=K.value)===null||e===void 0?void 0:e.$el)===null||o===void 0?void 0:o.offsetWidth),!E.value||typeof a=="boolean")return;const{paddingTop:_,paddingBottom:$,lineHeight:m}=window.getComputedStyle(E.value),q=Number(_.slice(0,-2)),U=Number($.slice(0,-2)),X=Number(m.slice(0,-2)),{value:le}=w;if(!le)return;if(a.minRows){const ae=Math.max(a.minRows,1),Me=`${q+U+X*ae}px`;le.style.minHeight=Me}if(a.maxRows){const ae=`${q+U+X*a.maxRows}px`;le.style.maxHeight=ae}}},ir=(0,r.computed)(()=>{const{maxlength:e}=n;return e===void 0?void 0:Number(e)});(0,r.onMounted)(()=>{const{value:e}=G;Array.isArray(e)||ze(e)});const lr=(0,r.getCurrentInstance)().proxy;function he(e,o){const{onUpdateValue:a,"onUpdate:value":_,onInput:$}=n,{nTriggerFormInput:m}=oe;a&&(0,f.call)(a,e,o),_&&(0,f.call)(_,e,o),$&&(0,f.call)($,e,o),pe.value=e,m()}function ve(e,o){const{onChange:a}=n,{nTriggerFormChange:_}=oe;a&&(0,f.call)(a,e,o),pe.value=e,_()}function ar(e){const{onBlur:o}=n,{nTriggerFormBlur:a}=oe;o&&(0,f.call)(o,e),a()}function sr(e){const{onFocus:o}=n,{nTriggerFormFocus:a}=oe;o&&(0,f.call)(o,e),a()}function ur(e){const{onClear:o}=n;o&&(0,f.call)(o,e)}function cr(e){const{onInputBlur:o}=n;o&&(0,f.call)(o,e)}function dr(e){const{onInputFocus:o}=n;o&&(0,f.call)(o,e)}function fr(){const{onDeactivate:e}=n;e&&(0,f.call)(e)}function pr(){const{onActivate:e}=n;e&&(0,f.call)(e)}function hr(e){const{onClick:o}=n;o&&(0,f.call)(o,e)}function vr(e){const{onWrapperFocus:o}=n;o&&(0,f.call)(o,e)}function br(e){const{onWrapperBlur:o}=n;o&&(0,f.call)(o,e)}function gr(){L.value=!0}function mr(e){L.value=!1,e.target===R.value?be(e,1):be(e,0)}function be(e,o=0,a="input"){const _=e.target.value;if(ze(_),e instanceof InputEvent&&!e.isComposing&&(L.value=!1),n.type==="textarea"){const{value:m}=K;m&&m.syncUnifiedContainer()}if(Ee=_,L.value)return;fe.recordCursor();const $=xr(_);if($)if(!n.pair)a==="input"?he(_,{source:o}):ve(_,{source:o});else{let{value:m}=G;Array.isArray(m)?m=[m[0],m[1]]:m=["",""],m[o]=_,a==="input"?he(m,{source:o}):ve(m,{source:o})}lr.$forceUpdate(),$||(0,r.nextTick)(fe.restoreCursor)}function xr(e){const{countGraphemes:o,maxlength:a,minlength:_}=n;if(o){let m;if(a!==void 0&&(m===void 0&&(m=o(e)),m>Number(a))||_!==void 0&&(m===void 0&&(m=o(e)),m<Number(a)))return!1}const{allowInput:$}=n;return typeof $=="function"?$(e):!0}function _r(e){cr(e),e.relatedTarget===M.value&&fr(),e.relatedTarget!==null&&(e.relatedTarget===d.value||e.relatedTarget===R.value||e.relatedTarget===E.value)||(ne.value=!1),ge(e,"blur"),O.value=null}function yr(e,o){dr(e),Q.value=!0,ne.value=!0,pr(),ge(e,"focus"),o===0?O.value=d.value:o===1?O.value=R.value:o===2&&(O.value=E.value)}function wr(e){n.passivelyActivated&&(br(e),ge(e,"blur"))}function Cr(e){n.passivelyActivated&&(Q.value=!0,vr(e),ge(e,"focus"))}function ge(e,o){e.relatedTarget!==null&&(e.relatedTarget===d.value||e.relatedTarget===R.value||e.relatedTarget===E.value||e.relatedTarget===M.value)||(o==="focus"?(sr(e),Q.value=!0):o==="blur"&&(ar(e),Q.value=!1))}function Er(e,o){be(e,o,"change")}function $r(e){hr(e)}function Pr(e){ur(e),Ve()}function Ve(){n.pair?(he(["",""],{source:"clear"}),ve(["",""],{source:"clear"})):(he("",{source:"clear"}),ve("",{source:"clear"}))}function Sr(e){const{onMousedown:o}=n;o&&o(e);const{tagName:a}=e.target;if(a!=="INPUT"&&a!=="TEXTAREA"){if(n.resizable){const{value:_}=M;if(_){const{left:$,top:m,width:q,height:U}=_.getBoundingClientRect(),X=14;if($+q-X<e.clientX&&e.clientX<$+q&&m+U-X<e.clientY&&e.clientY<m+U)return}}e.preventDefault(),Q.value||ke()}}function Br(){var e;te.value=!0,n.type==="textarea"&&((e=K.value)===null||e===void 0||e.handleMouseEnterWrapper())}function zr(){var e;te.value=!1,n.type==="textarea"&&((e=K.value)===null||e===void 0||e.handleMouseLeaveWrapper())}function Mr(){J.value||Se.value==="click"&&(ie.value=!ie.value)}function Rr(e){if(J.value)return;e.preventDefault();const o=_=>{_.preventDefault(),(0,C.off)("mouseup",document,o)};if((0,C.on)("mouseup",document,o),Se.value!=="mousedown")return;ie.value=!0;const a=()=>{ie.value=!1,(0,C.off)("mouseup",document,a)};(0,C.on)("mouseup",document,a)}function Fr(e){n.onKeyup&&(0,f.call)(n.onKeyup,e)}function jr(e){switch(n.onKeydown&&(0,f.call)(n.onKeydown,e),e.key){case"Escape":Be();break;case"Enter":Dr(e);break}}function Dr(e){var o,a;if(n.passivelyActivated){const{value:_}=ne;if(_){n.internalDeactivateOnEnter&&Be();return}e.preventDefault(),n.type==="textarea"?(o=E.value)===null||o===void 0||o.focus():(a=d.value)===null||a===void 0||a.focus()}}function Be(){n.passivelyActivated&&(ne.value=!1,(0,r.nextTick)(()=>{var e;(e=M.value)===null||e===void 0||e.focus()}))}function ke(){var e,o,a;J.value||(n.passivelyActivated?(e=M.value)===null||e===void 0||e.focus():((o=E.value)===null||o===void 0||o.focus(),(a=d.value)===null||a===void 0||a.focus()))}function Ir(){var e;!((e=M.value)===null||e===void 0)&&e.contains(document.activeElement)&&document.activeElement.blur()}function Tr(){var e,o;(e=E.value)===null||e===void 0||e.select(),(o=d.value)===null||o===void 0||o.select()}function Ar(){J.value||(E.value?E.value.focus():d.value&&d.value.focus())}function Or(){const{value:e}=M;e!=null&&e.contains(document.activeElement)&&e!==document.activeElement&&Be()}function Wr(e){if(n.type==="textarea"){const{value:o}=E;o==null||o.scrollTo(e)}else{const{value:o}=d;o==null||o.scrollTo(e)}}function ze(e){const{type:o,pair:a,autosize:_}=n;if(!a&&_)if(o==="textarea"){const{value:$}=w;$&&($.textContent=`${e??""}\r
`)}else{const{value:$}=c;$&&(e?$.textContent=e:$.innerHTML=" ")}}function Gr(){nr()}const Le=(0,r.ref)({top:"0"});function Vr(e){var o;const{scrollTop:a}=e.target;Le.value.top=`${-a}px`,(o=K.value)===null||o===void 0||o.syncUnifiedContainer()}let me=null;(0,r.watchEffect)(()=>{const{autosize:e,type:o}=n;e&&o==="textarea"?me=(0,r.watch)(G,a=>{!Array.isArray(a)&&a!==Ee&&ze(a)}):me==null||me()});let xe=null;(0,r.watchEffect)(()=>{n.type==="textarea"?xe=(0,r.watch)(G,e=>{var o;!Array.isArray(e)&&e!==Ee&&((o=K.value)===null||o===void 0||o.syncUnifiedContainer())}):xe==null||xe()}),(0,r.provide)(N.inputInjectionKey,{mergedValueRef:G,maxlengthRef:ir,mergedClsPrefixRef:g,countGraphemesRef:(0,r.toRef)(n,"countGraphemes")});const kr={wrapperElRef:M,inputElRef:d,textareaElRef:E,isCompositing:L,clear:Ve,focus:ke,blur:Ir,select:Tr,deactivate:Or,activate:Ar,scrollTo:Wr},Lr=(0,I.useRtl)("Input",T,g),He=(0,r.computed)(()=>{const{value:e}=Ce,{common:{cubicBezierEaseInOut:o},self:{color:a,borderRadius:_,textColor:$,caretColor:m,caretColorError:q,caretColorWarning:U,textDecorationColor:X,border:le,borderDisabled:ae,borderHover:Me,borderFocus:Hr,placeholderColor:Nr,placeholderColorDisabled:Kr,lineHeightTextarea:qr,colorDisabled:Ur,colorFocus:Xr,textColorDisabled:Yr,boxShadowFocus:Jr,iconSize:Qr,colorFocusWarning:Zr,boxShadowFocusWarning:eo,borderWarning:ro,borderFocusWarning:oo,borderHoverWarning:to,colorFocusError:no,boxShadowFocusError:io,borderError:lo,borderFocusError:ao,borderHoverError:so,clearSize:uo,clearColor:co,clearColorHover:fo,clearColorPressed:po,iconColor:ho,iconColorDisabled:vo,suffixTextColor:bo,countTextColor:go,countTextColorDisabled:mo,iconColorHover:xo,iconColorPressed:_o,loadingColor:yo,loadingColorError:wo,loadingColorWarning:Co,[(0,f.createKey)("padding",e)]:Eo,[(0,f.createKey)("fontSize",e)]:$o,[(0,f.createKey)("height",e)]:Po}}=A.value,{left:So,right:Bo}=(0,u.getPadding)(Eo);return{"--n-bezier":o,"--n-count-text-color":go,"--n-count-text-color-disabled":mo,"--n-color":a,"--n-font-size":$o,"--n-border-radius":_,"--n-height":Po,"--n-padding-left":So,"--n-padding-right":Bo,"--n-text-color":$,"--n-caret-color":m,"--n-text-decoration-color":X,"--n-border":le,"--n-border-disabled":ae,"--n-border-hover":Me,"--n-border-focus":Hr,"--n-placeholder-color":Nr,"--n-placeholder-color-disabled":Kr,"--n-icon-size":Qr,"--n-line-height-textarea":qr,"--n-color-disabled":Ur,"--n-color-focus":Xr,"--n-text-color-disabled":Yr,"--n-box-shadow-focus":Jr,"--n-loading-color":yo,"--n-caret-color-warning":U,"--n-color-focus-warning":Zr,"--n-box-shadow-focus-warning":eo,"--n-border-warning":ro,"--n-border-focus-warning":oo,"--n-border-hover-warning":to,"--n-loading-color-warning":Co,"--n-caret-color-error":q,"--n-color-focus-error":no,"--n-box-shadow-focus-error":io,"--n-border-error":lo,"--n-border-focus-error":ao,"--n-border-hover-error":so,"--n-loading-color-error":wo,"--n-clear-color":co,"--n-clear-size":uo,"--n-clear-color-hover":fo,"--n-clear-color-pressed":po,"--n-icon-color":ho,"--n-icon-color-hover":xo,"--n-icon-color-pressed":_o,"--n-icon-color-disabled":vo,"--n-suffix-text-color":bo}}),Z=j?(0,F.useThemeClass)("input",(0,r.computed)(()=>{const{value:e}=Ce;return e[0]}),He,n):void 0;return Object.assign(Object.assign({},kr),{wrapperElRef:M,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:R,textareaElRef:E,textareaMirrorElRef:w,textareaScrollbarInstRef:K,rtlEnabled:Lr,uncontrolledValue:pe,mergedValue:G,passwordVisible:ie,mergedPlaceholder:$e,showPlaceholder1:er,showPlaceholder2:rr,mergedFocus:Pe,isComposing:L,activated:ne,showClearButton:or,mergedSize:Ce,mergedDisabled:J,textDecorationStyle:tr,mergedClsPrefix:g,mergedBordered:l,mergedShowPasswordOn:Se,placeholderStyle:Le,mergedStatus:Ze,textAreaScrollContainerWidth:Ge,handleTextAreaScroll:Vr,handleCompositionStart:gr,handleCompositionEnd:mr,handleInput:be,handleInputBlur:_r,handleInputFocus:yr,handleWrapperBlur:wr,handleWrapperFocus:Cr,handleMouseEnter:Br,handleMouseLeave:zr,handleMouseDown:Sr,handleChange:Er,handleClick:$r,handleClear:Pr,handlePasswordToggleClick:Mr,handlePasswordToggleMousedown:Rr,handleWrapperKeydown:jr,handleWrapperKeyup:Fr,handleTextAreaMirrorResize:Gr,getTextareaScrollContainer:()=>E.value,mergedTheme:A,cssVars:j?void 0:He,themeClass:Z==null?void 0:Z.themeClass,onRender:Z==null?void 0:Z.onRender})},render(){var n,g;const{mergedClsPrefix:l,mergedStatus:j,themeClass:T,type:A,countGraphemes:M,onRender:E}=this,w=this.$slots;return E==null||E(),(0,r.h)("div",{ref:"wrapperElRef",class:[`${l}-input`,T,j&&`${l}-input--${j}-status`,{[`${l}-input--rtl`]:this.rtlEnabled,[`${l}-input--disabled`]:this.mergedDisabled,[`${l}-input--textarea`]:A==="textarea",[`${l}-input--resizable`]:this.resizable&&!this.autosize,[`${l}-input--autosize`]:this.autosize,[`${l}-input--round`]:this.round&&A!=="textarea",[`${l}-input--pair`]:this.pair,[`${l}-input--focus`]:this.mergedFocus,[`${l}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},(0,r.h)("div",{class:`${l}-input-wrapper`},(0,f.resolveWrappedSlot)(w.prefix,c=>c&&(0,r.h)("div",{class:`${l}-input__prefix`},c)),A==="textarea"?(0,r.h)(z.NScrollbar,{ref:"textareaScrollbarInstRef",class:`${l}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:R}=this,O={width:this.autosize&&R&&`${R}px`};return(0,r.h)(r.Fragment,null,(0,r.h)("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${l}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:M?void 0:this.maxlength,minlength:M?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,O],onBlur:this.handleInputBlur,onFocus:fe=>{this.handleInputFocus(fe,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?(0,r.h)("div",{class:`${l}-input__placeholder`,style:[this.placeholderStyle,O],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?(0,r.h)(b.VResizeObserver,{onResize:this.handleTextAreaMirrorResize},{default:()=>(0,r.h)("div",{ref:"textareaMirrorElRef",class:`${l}-input__textarea-mirror`,key:"mirror"})}):null)}}):(0,r.h)("div",{class:`${l}-input__input`},(0,r.h)("input",Object.assign({type:A==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":A},this.inputProps,{ref:"inputElRef",class:[`${l}-input__input-el`,(n=this.inputProps)===null||n===void 0?void 0:n.class],style:[this.textDecorationStyle[0],(g=this.inputProps)===null||g===void 0?void 0:g.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:M?void 0:this.maxlength,minlength:M?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?(0,r.h)("div",{class:`${l}-input__placeholder`},(0,r.h)("span",null,this.mergedPlaceholder[0])):null,this.autosize?(0,r.h)("div",{class:`${l}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&(0,f.resolveWrappedSlot)(w.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?(0,r.h)("div",{class:`${l}-input__suffix`},[(0,f.resolveWrappedSlot)(w["clear-icon-placeholder"],d=>(this.clearable||d)&&(0,r.h)(z.NBaseClear,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var R,O;return(O=(R=this.$slots)["clear-icon"])===null||O===void 0?void 0:O.call(R)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?(0,r.h)(z.NBaseSuffix,{clsPrefix:l,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?(0,r.h)(V.default,null,{default:d=>{var R;return(R=w.count)===null||R===void 0?void 0:R.call(w,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?(0,r.h)("div",{class:`${l}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?(0,f.resolveSlot)(w["password-visible-icon"],()=>[(0,r.h)(z.NBaseIcon,{clsPrefix:l},{default:()=>(0,r.h)(D.EyeIcon,null)})]):(0,f.resolveSlot)(w["password-invisible-icon"],()=>[(0,r.h)(z.NBaseIcon,{clsPrefix:l},{default:()=>(0,r.h)(D.EyeOffIcon,null)})])):null]):null)),this.pair?(0,r.h)("span",{class:`${l}-input__separator`},(0,f.resolveSlot)(w.separator,()=>[this.separator])):null,this.pair?(0,r.h)("div",{class:`${l}-input-wrapper`},(0,r.h)("div",{class:`${l}-input__input`},(0,r.h)("input",{ref:"inputEl2Ref",type:this.type,class:`${l}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:M?void 0:this.maxlength,minlength:M?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?(0,r.h)("div",{class:`${l}-input__placeholder`},(0,r.h)("span",null,this.mergedPlaceholder[1])):null),(0,f.resolveWrappedSlot)(w.suffix,c=>(this.clearable||c)&&(0,r.h)("div",{class:`${l}-input__suffix`},[this.clearable&&(0,r.h)(z.NBaseClear,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=w["clear-icon"])===null||d===void 0?void 0:d.call(w)},placeholder:()=>{var d;return(d=w["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(w)}}),c]))):null,this.mergedBordered?(0,r.h)("div",{class:`${l}-input__border`}):null,this.mergedBordered?(0,r.h)("div",{class:`${l}-input__state-border`}):null,this.showCount&&A==="textarea"?(0,r.h)(V.default,null,{default:c=>{var d;const{renderCount:R}=this;return R?R(c):(d=w.count)===null||d===void 0?void 0:d.call(w,c)}}):null)}})})(Ue);var Xe={},Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});const y=S.cssr;Oe.default=(0,y.cB)("input-group",`
display: inline-flex;
width: 100%;
flex-wrap: nowrap;
vertical-align: bottom;
`,[(0,y.c)(">",[(0,y.cB)("input",[(0,y.c)("&:not(:last-child)",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),(0,y.c)("&:not(:first-child)",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
margin-left: -1px!important;
`)]),(0,y.cB)("button",[(0,y.c)("&:not(:last-child)",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`,[(0,y.cE)("state-border, border",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`)]),(0,y.c)("&:not(:first-child)",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`,[(0,y.cE)("state-border, border",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`)])]),(0,y.c)("*",[(0,y.c)("&:not(:last-child)",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`,[(0,y.c)(">",[(0,y.cB)("input",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),(0,y.cB)("base-selection",[(0,y.cB)("base-selection-label",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),(0,y.cB)("base-selection-tags",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),(0,y.cE)("box-shadow, border, state-border",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`)])])]),(0,y.c)("&:not(:first-child)",`
margin-left: -1px!important;
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`,[(0,y.c)(">",[(0,y.cB)("input",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),(0,y.cB)("base-selection",[(0,y.cB)("base-selection-label",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),(0,y.cB)("base-selection-tags",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),(0,y.cE)("box-shadow, border, state-border",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`)])])])])])]);(function(t){var s=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputGroupProps=void 0;const v=se.require$$0,h=S._mixins,p=s(Oe);t.inputGroupProps={},t.default=(0,v.defineComponent)({name:"InputGroup",props:t.inputGroupProps,setup(r){const{mergedClsPrefixRef:x}=(0,h.useConfig)(r);return(0,h.useStyle)("-input-group",p.default,x),{mergedClsPrefix:x}},render(){const{mergedClsPrefix:r}=this;return(0,v.h)("div",{class:`${r}-input-group`},this.$slots)}})})(Xe);var Ye={},We={};Object.defineProperty(We,"__esModule",{value:!0});const qe=S.cssr;We.default=(0,qe.cB)("input-group-label",`
position: relative;
user-select: none;
-webkit-user-select: none;
box-sizing: border-box;
padding: 0 12px;
display: inline-block;
border-radius: var(--n-border-radius);
background-color: var(--n-group-label-color);
color: var(--n-group-label-text-color);
font-size: var(--n-font-size);
line-height: var(--n-height);
height: var(--n-height);
flex-shrink: 0;
white-space: nowrap;
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
`,[(0,qe.cE)("border",`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border-radius: inherit;
border: var(--n-group-label-border);
transition: border-color .3s var(--n-bezier);
`)]);(function(t){var s=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputGroupLabelProps=void 0;const v=se.require$$0,h=S._mixins,p=S._utils,r=ye,x=s(We);t.inputGroupLabelProps=Object.assign(Object.assign({},h.useTheme.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),t.default=(0,v.defineComponent)({name:"InputGroupLabel",props:t.inputGroupLabelProps,setup(u){const{mergedBorderedRef:b,mergedClsPrefixRef:C,inlineThemeDisabled:B}=(0,h.useConfig)(u),D=(0,h.useTheme)("Input","-input-group-label",x.default,r.inputLight,u,C),I=(0,v.computed)(()=>{const{size:F}=u,{common:{cubicBezierEaseInOut:f},self:{groupLabelColor:H,borderRadius:N,groupLabelTextColor:W,lineHeight:V,groupLabelBorder:k,[(0,p.createKey)("fontSize",F)]:n,[(0,p.createKey)("height",F)]:g}}=D.value;return{"--n-bezier":f,"--n-group-label-color":H,"--n-group-label-border":k,"--n-border-radius":N,"--n-group-label-text-color":W,"--n-font-size":n,"--n-line-height":V,"--n-height":g}}),z=B?(0,h.useThemeClass)("input-group-label",(0,v.computed)(()=>u.size[0]),I,u):void 0;return{mergedClsPrefix:C,mergedBordered:b,cssVars:B?void 0:I,themeClass:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.onRender}},render(){var u,b,C;const{mergedClsPrefix:B}=this;return(u=this.onRender)===null||u===void 0||u.call(this),(0,v.h)("div",{class:[`${B}-input-group-label`,this.themeClass],style:this.cssVars},(C=(b=this.$slots).default)===null||C===void 0?void 0:C.call(b),this.mergedBordered?(0,v.h)("div",{class:`${B}-input-group-label__border`}):null)}})})(Ye);(function(t){var s=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputGroupLabelProps=t.NInputGroupLabel=t.inputGroupProps=t.NInputGroup=t.inputProps=t.NInput=void 0;var v=Ue;Object.defineProperty(t,"NInput",{enumerable:!0,get:function(){return s(v).default}}),Object.defineProperty(t,"inputProps",{enumerable:!0,get:function(){return v.inputProps}});var h=Xe;Object.defineProperty(t,"NInputGroup",{enumerable:!0,get:function(){return s(h).default}}),Object.defineProperty(t,"inputGroupProps",{enumerable:!0,get:function(){return h.inputGroupProps}});var p=Ye;Object.defineProperty(t,"NInputGroupLabel",{enumerable:!0,get:function(){return s(p).default}}),Object.defineProperty(t,"inputGroupLabelProps",{enumerable:!0,get:function(){return p.inputGroupLabelProps}})})(Fe);const Uo=zo({__proto__:null},[Fe]);exports.browser=je;exports.index=Uo;exports.input=Fe;exports.rtl=ue;exports.styles=ye;