UNPKG

ai-form-designer

Version:

vue3+adv的设计器,可视化开发页面表单

327 lines (326 loc) 43.5 kB
"use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),B=require("./index-l4ZjSaVt.cjs"),se=require("./_vue_commonjs-external-CccDNqHl.cjs"),Ne=require("./index-BHY6EyIp.cjs");function Mo(t,u){for(var b=0;b<u.length;b++){const v=u[b];if(typeof v!="string"&&!Array.isArray(v)){for(const h in v)if(h!=="default"&&!(h in t)){const s=Object.getOwnPropertyDescriptor(v,h);s&&Object.defineProperty(t,h,s.get?s:{enumerable:!0,get:()=>v[h]})}}}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 u=B.isBrowser;t.isChrome=u.isBrowser&&"chrome"in window,t.isFirefox=u.isBrowser&&navigator.userAgent.includes("Firefox"),t.isSafari=u.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 Ro=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});const ee=B.require$$0,Fo=B.common,jo=Ro(we),Do={name:"Input",common:Fo.commonDark,self(t){const{textColor2:u,textColor3:b,textColorDisabled:v,primaryColor:h,primaryColorHover:s,inputColor:w,inputColorDisabled:c,warningColor:o,warningColorHover:R,errorColor:_,errorColorHover:D,borderRadius:S,lineHeight:I,fontSizeTiny:d,fontSizeSmall:L,fontSizeMedium:H,fontSizeLarge:N,heightTiny:G,heightSmall:O,heightMedium:V,heightLarge:n,clearColor:g,clearColorHover:l,clearColorPressed:F,placeholderColor:T,placeholderColorDisabled:A,iconColor:z,iconColorDisabled:E,iconColorHover:C,iconColorPressed:p,fontWeight:f}=t;return Object.assign(Object.assign({},jo.default),{fontWeight:f,countTextColorDisabled:v,countTextColor:b,heightTiny:G,heightSmall:O,heightMedium:V,heightLarge:n,fontSizeTiny:d,fontSizeSmall:L,fontSizeMedium:H,fontSizeLarge:N,lineHeight:I,lineHeightTextarea:I,borderRadius:S,iconSize:"16px",groupLabelColor:w,textColor:u,textColorDisabled:v,textDecorationColor:u,groupLabelTextColor:u,caretColor:h,placeholderColor:T,placeholderColorDisabled:A,color:w,colorDisabled:c,colorFocus:(0,ee.changeColor)(h,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${s}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 8px 0 ${(0,ee.changeColor)(h,{alpha:.3})}`,loadingColor:h,loadingColorWarning:o,borderWarning:`1px solid ${o}`,borderHoverWarning:`1px solid ${R}`,colorFocusWarning:(0,ee.changeColor)(o,{alpha:.1}),borderFocusWarning:`1px solid ${R}`,boxShadowFocusWarning:`0 0 8px 0 ${(0,ee.changeColor)(o,{alpha:.3})}`,caretColorWarning:o,loadingColorError:_,borderError:`1px solid ${_}`,borderHoverError:`1px solid ${D}`,colorFocusError:(0,ee.changeColor)(_,{alpha:.1}),borderFocusError:`1px solid ${D}`,boxShadowFocusError:`0 0 8px 0 ${(0,ee.changeColor)(_,{alpha:.3})}`,caretColorError:_,clearColor:g,clearColorHover:l,clearColorPressed:F,iconColor:z,iconColorDisabled:E,iconColorHover:C,iconColorPressed:p,suffixTextColor:u})}};De.default=Do;var Ie={},Io=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ie,"__esModule",{value:!0});const Re=B.require$$0,To=B.common,Ao=Io(we);function Oo(t){const{textColor2:u,textColor3:b,textColorDisabled:v,primaryColor:h,primaryColorHover:s,inputColor:w,inputColorDisabled:c,borderColor:o,warningColor:R,warningColorHover:_,errorColor:D,errorColorHover:S,borderRadius:I,lineHeight:d,fontSizeTiny:L,fontSizeSmall:H,fontSizeMedium:N,fontSizeLarge:G,heightTiny:O,heightSmall:V,heightMedium:n,heightLarge:g,actionColor:l,clearColor:F,clearColorHover:T,clearColorPressed:A,placeholderColor:z,placeholderColorDisabled:E,iconColor:C,iconColorDisabled:p,iconColorHover:f,iconColorPressed:M,fontWeight:j}=t;return Object.assign(Object.assign({},Ao.default),{fontWeight:j,countTextColorDisabled:v,countTextColor:b,heightTiny:O,heightSmall:V,heightMedium:n,heightLarge:g,fontSizeTiny:L,fontSizeSmall:H,fontSizeMedium:N,fontSizeLarge:G,lineHeight:d,lineHeightTextarea:d,borderRadius:I,iconSize:"16px",groupLabelColor:l,groupLabelTextColor:u,textColor:u,textColorDisabled:v,textDecorationColor:u,caretColor:h,placeholderColor:z,placeholderColorDisabled:E,color:w,colorDisabled:c,colorFocus:w,groupLabelBorder:`1px solid ${o}`,border:`1px solid ${o}`,borderHover:`1px solid ${s}`,borderDisabled:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${(0,Re.changeColor)(h,{alpha:.2})}`,loadingColor:h,loadingColorWarning:R,borderWarning:`1px solid ${R}`,borderHoverWarning:`1px solid ${_}`,colorFocusWarning:w,borderFocusWarning:`1px solid ${_}`,boxShadowFocusWarning:`0 0 0 2px ${(0,Re.changeColor)(R,{alpha:.2})}`,caretColorWarning:R,loadingColorError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${S}`,colorFocusError:w,borderFocusError:`1px solid ${S}`,boxShadowFocusError:`0 0 0 2px ${(0,Re.changeColor)(D,{alpha:.2})}`,caretColorError:D,clearColor:F,clearColorHover:T,clearColorPressed:A,iconColor:C,iconColorDisabled:p,iconColorHover:f,iconColorPressed:M,suffixTextColor:u})}const Wo={name:"Input",common:To.commonLight,self:Oo};Ie.default=Wo;var ue={},Te={};Object.defineProperty(Te,"__esModule",{value:!0});const Y=B.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 Go=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 Vo=Go(Te);ue.inputRtl={name:"Input",style:Vo.default};(function(t){var u=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputRtl=t.inputLight=t.inputDark=void 0;var b=De;Object.defineProperty(t,"inputDark",{enumerable:!0,get:function(){return u(b).default}});var v=Ie;Object.defineProperty(t,"inputLight",{enumerable:!0,get:function(){return u(v).default}});var h=ue;Object.defineProperty(t,"inputRtl",{enumerable:!0,get:function(){return h.inputRtl}})})(ye);var ce={};Object.defineProperty(ce,"__esModule",{value:!0});ce.inputInjectionKey=void 0;const ko=B._utils;ce.inputInjectionKey=(0,ko.createInjectionKey)("n-input");var de={};Object.defineProperty(de,"__esModule",{value:!0});de.safariStyle=void 0;const i=B.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); font-weight: var(--n-font-weight); --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); `)])]);var re={};Object.defineProperty(re,"__esModule",{value:!0});re.len=Lo;re.isEmptyInputValue=Ho;re.useCursor=No;const Ke=se.require$$2;function Lo(t){let u=0;for(const b of t)u++;return u}function Ho(t){return t===""||t==null}function No(t){const u=(0,Ke.ref)(null);function b(){const{value:s}=t;if(!(s!=null&&s.focus)){h();return}const{selectionStart:w,selectionEnd:c,value:o}=s;if(w==null||c==null){h();return}u.value={start:w,end:c,beforeText:o.slice(0,w),afterText:o.slice(c)}}function v(){var s;const{value:w}=u,{value:c}=t;if(!w||!c)return;const{value:o}=c,{start:R,beforeText:_,afterText:D}=w;let S=o.length;if(o.endsWith(D))S=o.length-D.length;else if(o.startsWith(_))S=_.length;else{const I=_[R-1],d=o.indexOf(I,R-1);d!==-1&&(S=d+1)}(s=c.setSelectionRange)===null||s===void 0||s.call(c,S,S)}function h(){u.value=null}return(0,Ke.watch)(t,h),{recordCursor:b,restoreCursor:v}}var Ae={};Object.defineProperty(Ae,"__esModule",{value:!0});const _e=se.require$$2,Ko=B._utils,qo=ce,Uo=re;Ae.default=(0,_e.defineComponent)({name:"InputWordCount",setup(t,{slots:u}){const{mergedValueRef:b,maxlengthRef:v,mergedClsPrefixRef:h,countGraphemesRef:s}=(0,_e.inject)(qo.inputInjectionKey),w=(0,_e.computed)(()=>{const{value:c}=b;return c===null||Array.isArray(c)?0:(s.value||Uo.len)(c)});return()=>{const{value:c}=v,{value:o}=b;return(0,_e.h)("span",{class:`${h.value}-input-word-count`},(0,Ko.resolveSlotWithTypedProps)(u.default,{value:o===null||Array.isArray(o)?"":o},()=>[c===void 0?w.value:`${w.value} / ${c}`]))}}});(function(t){var u=P.commonjsGlobal&&P.commonjsGlobal.__createBinding||(Object.create?function(n,g,l,F){F===void 0&&(F=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,F,T)}:function(n,g,l,F){F===void 0&&(F=l),n[F]=g[l]}),b=P.commonjsGlobal&&P.commonjsGlobal.__setModuleDefault||(Object.create?function(n,g){Object.defineProperty(n,"default",{enumerable:!0,value:g})}:function(n,g){n.default=g}),v=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)&&u(g,n,l);return b(g,n),g},h=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 s=B.require$$0$1,w=B.require$$0,c=B.require$$1,o=se.require$$2,R=B.require$$4,_=Ne._internal,D=Ne.icons,S=B._mixins,I=B.useRtl,d=B._utils,L=je,H=ye,N=ce,G=v(de),O=re,V=h(Ae);t.inputProps=Object.assign(Object.assign({},S.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,o.defineComponent)({name:"Input",props:t.inputProps,slots:Object,setup(n){process.env.NODE_ENV!=="production"&&(0,o.watchEffect)(()=>{n.showPasswordToggle&&(0,d.warnOnce)("input",'`show-password-toggle` is deprecated, please use `showPasswordOn="click"` instead')});const{mergedClsPrefixRef:g,mergedBorderedRef:l,inlineThemeDisabled:F,mergedRtlRef:T}=(0,S.useConfig)(n),A=(0,S.useTheme)("Input","-input",G.default,H.inputLight,n,g);L.isSafari&&(0,S.useStyle)("-input-safari",G.safariStyle,g);const z=(0,o.ref)(null),E=(0,o.ref)(null),C=(0,o.ref)(null),p=(0,o.ref)(null),f=(0,o.ref)(null),M=(0,o.ref)(null),j=(0,o.ref)(null),fe=(0,O.useCursor)(j),K=(0,o.ref)(null),{localeRef:Je}=(0,S.useLocale)("Input"),pe=(0,o.ref)(n.defaultValue),Qe=(0,o.toRef)(n,"value"),W=(0,c.useMergedState)(Qe,pe),oe=(0,S.useFormItem)(n),{mergedSizeRef:Ce,mergedDisabledRef:J,mergedStatusRef:Ze}=oe,Q=(0,o.ref)(!1),te=(0,o.ref)(!1),k=(0,o.ref)(!1),ne=(0,o.ref)(!1);let Ee=null;const $e=(0,o.computed)(()=>{const{placeholder:e,pair:r}=n;return r?Array.isArray(e)?e:e===void 0?["",""]:[e,e]:e===void 0?[Je.value.placeholder]:[e]}),er=(0,o.computed)(()=>{const{value:e}=k,{value:r}=W,{value:a}=$e;return!e&&((0,O.isEmptyInputValue)(r)||Array.isArray(r)&&(0,O.isEmptyInputValue)(r[0]))&&a[0]}),rr=(0,o.computed)(()=>{const{value:e}=k,{value:r}=W,{value:a}=$e;return!e&&a[1]&&((0,O.isEmptyInputValue)(r)||Array.isArray(r)&&(0,O.isEmptyInputValue)(r[1]))}),Pe=(0,c.useMemo)(()=>n.internalForceFocus||Q.value),or=(0,c.useMemo)(()=>{if(J.value||n.readonly||!n.clearable||!Pe.value&&!te.value)return!1;const{value:e}=W,{value:r}=Pe;return n.pair?!!(Array.isArray(e)&&(e[0]||e[1]))&&(te.value||r):!!e&&(te.value||r)}),Se=(0,o.computed)(()=>{const{showPasswordOn:e}=n;if(e)return e;if(n.showPasswordToggle)return"click"}),ie=(0,o.ref)(!1),tr=(0,o.computed)(()=>{const{textDecoration:e}=n;return e?Array.isArray(e)?e.map(r=>({textDecoration:r})):[{textDecoration:e}]:["",""]}),Ge=(0,o.ref)(void 0),nr=()=>{var e,r;if(n.type==="textarea"){const{autosize:a}=n;if(a&&(Ge.value=(r=(e=K.value)===null||e===void 0?void 0:e.$el)===null||r===void 0?void 0:r.offsetWidth),!E.value||typeof a=="boolean")return;const{paddingTop:x,paddingBottom:$,lineHeight:m}=window.getComputedStyle(E.value),q=Number(x.slice(0,-2)),U=Number($.slice(0,-2)),X=Number(m.slice(0,-2)),{value:le}=C;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,o.computed)(()=>{const{maxlength:e}=n;return e===void 0?void 0:Number(e)});(0,o.onMounted)(()=>{const{value:e}=W;Array.isArray(e)||ze(e)});const lr=(0,o.getCurrentInstance)().proxy;function he(e,r){const{onUpdateValue:a,"onUpdate:value":x,onInput:$}=n,{nTriggerFormInput:m}=oe;a&&(0,d.call)(a,e,r),x&&(0,d.call)(x,e,r),$&&(0,d.call)($,e,r),pe.value=e,m()}function ve(e,r){const{onChange:a}=n,{nTriggerFormChange:x}=oe;a&&(0,d.call)(a,e,r),pe.value=e,x()}function ar(e){const{onBlur:r}=n,{nTriggerFormBlur:a}=oe;r&&(0,d.call)(r,e),a()}function sr(e){const{onFocus:r}=n,{nTriggerFormFocus:a}=oe;r&&(0,d.call)(r,e),a()}function ur(e){const{onClear:r}=n;r&&(0,d.call)(r,e)}function cr(e){const{onInputBlur:r}=n;r&&(0,d.call)(r,e)}function dr(e){const{onInputFocus:r}=n;r&&(0,d.call)(r,e)}function fr(){const{onDeactivate:e}=n;e&&(0,d.call)(e)}function pr(){const{onActivate:e}=n;e&&(0,d.call)(e)}function hr(e){const{onClick:r}=n;r&&(0,d.call)(r,e)}function vr(e){const{onWrapperFocus:r}=n;r&&(0,d.call)(r,e)}function br(e){const{onWrapperBlur:r}=n;r&&(0,d.call)(r,e)}function gr(){k.value=!0}function mr(e){k.value=!1,e.target===M.value?be(e,1):be(e,0)}function be(e,r=0,a="input"){const x=e.target.value;if(ze(x),e instanceof InputEvent&&!e.isComposing&&(k.value=!1),n.type==="textarea"){const{value:m}=K;m&&m.syncUnifiedContainer()}if(Ee=x,k.value)return;fe.recordCursor();const $=xr(x);if($)if(!n.pair)a==="input"?he(x,{source:r}):ve(x,{source:r});else{let{value:m}=W;Array.isArray(m)?m=[m[0],m[1]]:m=["",""],m[r]=x,a==="input"?he(m,{source:r}):ve(m,{source:r})}lr.$forceUpdate(),$||(0,o.nextTick)(fe.restoreCursor)}function xr(e){const{countGraphemes:r,maxlength:a,minlength:x}=n;if(r){let m;if(a!==void 0&&(m===void 0&&(m=r(e)),m>Number(a))||x!==void 0&&(m===void 0&&(m=r(e)),m<Number(a)))return!1}const{allowInput:$}=n;return typeof $=="function"?$(e):!0}function _r(e){cr(e),e.relatedTarget===z.value&&fr(),e.relatedTarget!==null&&(e.relatedTarget===f.value||e.relatedTarget===M.value||e.relatedTarget===E.value)||(ne.value=!1),ge(e,"blur"),j.value=null}function yr(e,r){dr(e),Q.value=!0,ne.value=!0,pr(),ge(e,"focus"),r===0?j.value=f.value:r===1?j.value=M.value:r===2&&(j.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,r){e.relatedTarget!==null&&(e.relatedTarget===f.value||e.relatedTarget===M.value||e.relatedTarget===E.value||e.relatedTarget===z.value)||(r==="focus"?(sr(e),Q.value=!0):r==="blur"&&(ar(e),Q.value=!1))}function Er(e,r){be(e,r,"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:r}=n;r&&r(e);const{tagName:a}=e.target;if(a!=="INPUT"&&a!=="TEXTAREA"){if(n.resizable){const{value:x}=z;if(x){const{left:$,top:m,width:q,height:U}=x.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 r=x=>{x.preventDefault(),(0,s.off)("mouseup",document,r)};if((0,s.on)("mouseup",document,r),Se.value!=="mousedown")return;ie.value=!0;const a=()=>{ie.value=!1,(0,s.off)("mouseup",document,a)};(0,s.on)("mouseup",document,a)}function Fr(e){n.onKeyup&&(0,d.call)(n.onKeyup,e)}function jr(e){switch(n.onKeydown&&(0,d.call)(n.onKeydown,e),e.key){case"Escape":Be();break;case"Enter":Dr(e);break}}function Dr(e){var r,a;if(n.passivelyActivated){const{value:x}=ne;if(x){n.internalDeactivateOnEnter&&Be();return}e.preventDefault(),n.type==="textarea"?(r=E.value)===null||r===void 0||r.focus():(a=f.value)===null||a===void 0||a.focus()}}function Be(){n.passivelyActivated&&(ne.value=!1,(0,o.nextTick)(()=>{var e;(e=z.value)===null||e===void 0||e.focus()}))}function ke(){var e,r,a;J.value||(n.passivelyActivated?(e=z.value)===null||e===void 0||e.focus():((r=E.value)===null||r===void 0||r.focus(),(a=f.value)===null||a===void 0||a.focus()))}function Ir(){var e;!((e=z.value)===null||e===void 0)&&e.contains(document.activeElement)&&document.activeElement.blur()}function Tr(){var e,r;(e=E.value)===null||e===void 0||e.select(),(r=f.value)===null||r===void 0||r.select()}function Ar(){J.value||(E.value?E.value.focus():f.value&&f.value.focus())}function Or(){const{value:e}=z;e!=null&&e.contains(document.activeElement)&&e!==document.activeElement&&Be()}function Wr(e){if(n.type==="textarea"){const{value:r}=E;r==null||r.scrollTo(e)}else{const{value:r}=f;r==null||r.scrollTo(e)}}function ze(e){const{type:r,pair:a,autosize:x}=n;if(!a&&x)if(r==="textarea"){const{value:$}=C;$&&($.textContent=`${e??""}\r `)}else{const{value:$}=p;$&&(e?$.textContent=e:$.innerHTML="&nbsp;")}}function Gr(){nr()}const Le=(0,o.ref)({top:"0"});function Vr(e){var r;const{scrollTop:a}=e.target;Le.value.top=`${-a}px`,(r=K.value)===null||r===void 0||r.syncUnifiedContainer()}let me=null;(0,o.watchEffect)(()=>{const{autosize:e,type:r}=n;e&&r==="textarea"?me=(0,o.watch)(W,a=>{!Array.isArray(a)&&a!==Ee&&ze(a)}):me==null||me()});let xe=null;(0,o.watchEffect)(()=>{n.type==="textarea"?xe=(0,o.watch)(W,e=>{var r;!Array.isArray(e)&&e!==Ee&&((r=K.value)===null||r===void 0||r.syncUnifiedContainer())}):xe==null||xe()}),(0,o.provide)(N.inputInjectionKey,{mergedValueRef:W,maxlengthRef:ir,mergedClsPrefixRef:g,countGraphemesRef:(0,o.toRef)(n,"countGraphemes")});const kr={wrapperElRef:z,inputElRef:f,textareaElRef:E,isCompositing:k,clear:Ve,focus:ke,blur:Ir,select:Tr,deactivate:Or,activate:Ar,scrollTo:Wr},Lr=(0,I.useRtl)("Input",T,g),He=(0,o.computed)(()=>{const{value:e}=Ce,{common:{cubicBezierEaseInOut:r},self:{color:a,borderRadius:x,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,fontWeight:Eo,[(0,d.createKey)("padding",e)]:$o,[(0,d.createKey)("fontSize",e)]:Po,[(0,d.createKey)("height",e)]:So}}=A.value,{left:Bo,right:zo}=(0,w.getPadding)($o);return{"--n-bezier":r,"--n-count-text-color":go,"--n-count-text-color-disabled":mo,"--n-color":a,"--n-font-size":Po,"--n-font-weight":Eo,"--n-border-radius":x,"--n-height":So,"--n-padding-left":Bo,"--n-padding-right":zo,"--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=F?(0,S.useThemeClass)("input",(0,o.computed)(()=>{const{value:e}=Ce;return e[0]}),He,n):void 0;return Object.assign(Object.assign({},kr),{wrapperElRef:z,inputElRef:f,inputMirrorElRef:p,inputEl2Ref:M,textareaElRef:E,textareaMirrorElRef:C,textareaScrollbarInstRef:K,rtlEnabled:Lr,uncontrolledValue:pe,mergedValue:W,passwordVisible:ie,mergedPlaceholder:$e,showPlaceholder1:er,showPlaceholder2:rr,mergedFocus:Pe,isComposing:k,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:F?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:F,themeClass:T,type:A,countGraphemes:z,onRender:E}=this,C=this.$slots;return E==null||E(),(0,o.h)("div",{ref:"wrapperElRef",class:[`${l}-input`,T,F&&`${l}-input--${F}-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,o.h)("div",{class:`${l}-input-wrapper`},(0,d.resolveWrappedSlot)(C.prefix,p=>p&&(0,o.h)("div",{class:`${l}-input__prefix`},p)),A==="textarea"?(0,o.h)(_.NScrollbar,{ref:"textareaScrollbarInstRef",class:`${l}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var p,f;const{textAreaScrollContainerWidth:M}=this,j={width:this.autosize&&M&&`${M}px`};return(0,o.h)(o.Fragment,null,(0,o.h)("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${l}-input__textarea-el`,(p=this.inputProps)===null||p===void 0?void 0:p.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:z?void 0:this.maxlength,minlength:z?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(f=this.inputProps)===null||f===void 0?void 0:f.style,j],onBlur:this.handleInputBlur,onFocus:fe=>{this.handleInputFocus(fe,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?(0,o.h)("div",{class:`${l}-input__placeholder`,style:[this.placeholderStyle,j],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?(0,o.h)(R.VResizeObserver,{onResize:this.handleTextAreaMirrorResize},{default:()=>(0,o.h)("div",{ref:"textareaMirrorElRef",class:`${l}-input__textarea-mirror`,key:"mirror"})}):null)}}):(0,o.h)("div",{class:`${l}-input__input`},(0,o.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:z?void 0:this.maxlength,minlength:z?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:p=>{this.handleInputFocus(p,0)},onInput:p=>{this.handleInput(p,0)},onChange:p=>{this.handleChange(p,0)}})),this.showPlaceholder1?(0,o.h)("div",{class:`${l}-input__placeholder`},(0,o.h)("span",null,this.mergedPlaceholder[0])):null,this.autosize?(0,o.h)("div",{class:`${l}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&(0,d.resolveWrappedSlot)(C.suffix,p=>p||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?(0,o.h)("div",{class:`${l}-input__suffix`},[(0,d.resolveWrappedSlot)(C["clear-icon-placeholder"],f=>(this.clearable||f)&&(0,o.h)(_.NBaseClear,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>f,icon:()=>{var M,j;return(j=(M=this.$slots)["clear-icon"])===null||j===void 0?void 0:j.call(M)}})),this.internalLoadingBeforeSuffix?null:p,this.loading!==void 0?(0,o.h)(_.NBaseSuffix,{clsPrefix:l,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?p:null,this.showCount&&this.type!=="textarea"?(0,o.h)(V.default,null,{default:f=>{var M;const{renderCount:j}=this;return j?j(f):(M=C.count)===null||M===void 0?void 0:M.call(C,f)}}):null,this.mergedShowPasswordOn&&this.type==="password"?(0,o.h)("div",{class:`${l}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?(0,d.resolveSlot)(C["password-visible-icon"],()=>[(0,o.h)(_.NBaseIcon,{clsPrefix:l},{default:()=>(0,o.h)(D.EyeIcon,null)})]):(0,d.resolveSlot)(C["password-invisible-icon"],()=>[(0,o.h)(_.NBaseIcon,{clsPrefix:l},{default:()=>(0,o.h)(D.EyeOffIcon,null)})])):null]):null)),this.pair?(0,o.h)("span",{class:`${l}-input__separator`},(0,d.resolveSlot)(C.separator,()=>[this.separator])):null,this.pair?(0,o.h)("div",{class:`${l}-input-wrapper`},(0,o.h)("div",{class:`${l}-input__input`},(0,o.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:z?void 0:this.maxlength,minlength:z?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:p=>{this.handleInputFocus(p,1)},onInput:p=>{this.handleInput(p,1)},onChange:p=>{this.handleChange(p,1)}}),this.showPlaceholder2?(0,o.h)("div",{class:`${l}-input__placeholder`},(0,o.h)("span",null,this.mergedPlaceholder[1])):null),(0,d.resolveWrappedSlot)(C.suffix,p=>(this.clearable||p)&&(0,o.h)("div",{class:`${l}-input__suffix`},[this.clearable&&(0,o.h)(_.NBaseClear,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var f;return(f=C["clear-icon"])===null||f===void 0?void 0:f.call(C)},placeholder:()=>{var f;return(f=C["clear-icon-placeholder"])===null||f===void 0?void 0:f.call(C)}}),p]))):null,this.mergedBordered?(0,o.h)("div",{class:`${l}-input__border`}):null,this.mergedBordered?(0,o.h)("div",{class:`${l}-input__state-border`}):null,this.showCount&&A==="textarea"?(0,o.h)(V.default,null,{default:p=>{var f;const{renderCount:M}=this;return M?M(p):(f=C.count)===null||f===void 0?void 0:f.call(C,p)}}):null)}})})(Ue);var Xe={},Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});const y=B.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 u=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputGroupProps=void 0;const b=se.require$$2,v=B._mixins,h=u(Oe);t.inputGroupProps={},t.default=(0,b.defineComponent)({name:"InputGroup",props:t.inputGroupProps,setup(s){const{mergedClsPrefixRef:w}=(0,v.useConfig)(s);return(0,v.useStyle)("-input-group",h.default,w),{mergedClsPrefix:w}},render(){const{mergedClsPrefix:s}=this;return(0,b.h)("div",{class:`${s}-input-group`},this.$slots)}})})(Xe);var Ye={},We={};Object.defineProperty(We,"__esModule",{value:!0});const qe=B.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 u=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputGroupLabelProps=void 0;const b=se.require$$2,v=B._mixins,h=B._utils,s=ye,w=u(We);t.inputGroupLabelProps=Object.assign(Object.assign({},v.useTheme.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),t.default=(0,b.defineComponent)({name:"InputGroupLabel",props:t.inputGroupLabelProps,setup(c){const{mergedBorderedRef:o,mergedClsPrefixRef:R,inlineThemeDisabled:_}=(0,v.useConfig)(c),D=(0,v.useTheme)("Input","-input-group-label",w.default,s.inputLight,c,R),S=(0,b.computed)(()=>{const{size:d}=c,{common:{cubicBezierEaseInOut:L},self:{groupLabelColor:H,borderRadius:N,groupLabelTextColor:G,lineHeight:O,groupLabelBorder:V,[(0,h.createKey)("fontSize",d)]:n,[(0,h.createKey)("height",d)]:g}}=D.value;return{"--n-bezier":L,"--n-group-label-color":H,"--n-group-label-border":V,"--n-border-radius":N,"--n-group-label-text-color":G,"--n-font-size":n,"--n-line-height":O,"--n-height":g}}),I=_?(0,v.useThemeClass)("input-group-label",(0,b.computed)(()=>c.size[0]),S,c):void 0;return{mergedClsPrefix:R,mergedBordered:o,cssVars:_?void 0:S,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){var c,o,R;const{mergedClsPrefix:_}=this;return(c=this.onRender)===null||c===void 0||c.call(this),(0,b.h)("div",{class:[`${_}-input-group-label`,this.themeClass],style:this.cssVars},(R=(o=this.$slots).default)===null||R===void 0?void 0:R.call(o),this.mergedBordered?(0,b.h)("div",{class:`${_}-input-group-label__border`}):null)}})})(Ye);(function(t){var u=P.commonjsGlobal&&P.commonjsGlobal.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0}),t.NInputGroupLabel=t.inputGroupLabelProps=t.NInputGroup=t.inputGroupProps=t.NInput=t.inputProps=void 0;var b=Ue;Object.defineProperty(t,"inputProps",{enumerable:!0,get:function(){return b.inputProps}}),Object.defineProperty(t,"NInput",{enumerable:!0,get:function(){return u(b).default}});var v=Xe;Object.defineProperty(t,"inputGroupProps",{enumerable:!0,get:function(){return v.inputGroupProps}}),Object.defineProperty(t,"NInputGroup",{enumerable:!0,get:function(){return u(v).default}});var h=Ye;Object.defineProperty(t,"inputGroupLabelProps",{enumerable:!0,get:function(){return h.inputGroupLabelProps}}),Object.defineProperty(t,"NInputGroupLabel",{enumerable:!0,get:function(){return u(h).default}})})(Fe);const Xo=Mo({__proto__:null},[Fe]);exports.browser=je;exports.index=Xo;exports.input=Fe;exports.rtl=ue;exports.styles=ye;