UNPKG

epic-designer-gold

Version:

基于vue3的设计器,可视化开发页面表单

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