物管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

234 lines
29 KiB

  1. import{i as ar}from"./browser-DLIXj5nt.js";import{u as ir}from"./use-rtl-CRyak7TN.js";import{c as lr}from"./context-KbjOeZY_.js";import{d as Z,G as a,s as w,t as ue,i as sr,c as F,O as ge,v as cr,R as ur,E as be,P as dr,F as fr,Q as me}from"./index-bVOhw2NF.js";import{b as hr,r as q,a as se}from"./resolve-slot-Dzko3qih.js";import{c as b,a as l,b as C,d as z,e as K,u as vr,f as Ae,g as ce,h as pr}from"./light-Cua7cqmF.js";import{i as gr}from"./light-MOj96jwO.js";import{u as br}from"./use-style-qLHIyj3D.js";import{u as mr}from"./use-locale-CFjRjALw.js";import{u as xr}from"./use-merged-state-CzrzZJbg.js";import{u as wr}from"./use-form-item-CNgNT5jP.js";import{u as xe}from"./use-memo-BgHp9YyU.js";import{g as yr}from"./index-C-nsH7mf.js";import{N as we,a as Cr}from"./Suffix-BqBRFVnL.js";import{S as zr}from"./Scrollbar-DVK2lT9w.js";import{V as Sr}from"./VResizeObserver-Tzd5ds8d.js";import{o as ye,a as Ce}from"./delegate-CI_DDEu_.js";import{c as y}from"./call-f2ri57Kd.js";import{N as ze}from"./Icon-Ck7Ij_E6.js";const Ar=Z({name:"Eye",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),a("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),_r=Z({name:"EyeOff",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),a("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),a("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),a("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),a("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),_e=lr("n-input");function Rr(r){let m=0;for(const n of r)m++;return m}function J(r){return r===""||r==null}function Fr(r){const m=w(null);function n(){const{value:g}=r;if(!(g!=null&&g.focus)){_();return}const{selectionStart:f,selectionEnd:s,value:u}=g;if(f==null||s==null){_();return}m.value={start:f,end:s,beforeText:u.slice(0,f),afterText:u.slice(s)}}function A(){var g;const{value:f}=m,{value:s}=r;if(!f||!s)return;const{value:u}=s,{start:c,beforeText:i,afterText:p}=f;let x=u.length;if(u.endsWith(p))x=u.length-p.length;else if(u.startsWith(i))x=i.length;else{const T=i[c-1],S=u.indexOf(T,c-1);S!==-1&&(x=S+1)}(g=s.setSelectionRange)===null||g===void 0||g.call(s,x,x)}function _(){m.value=null}return ue(r,_),{recordCursor:n,restoreCursor:A}}const Se=Z({name:"InputWordCount",setup(r,{slots:m}){const{mergedValueRef:n,maxlengthRef:A,mergedClsPrefixRef:_,countGraphemesRef:g}=sr(_e),f=F(()=>{const{value:s}=n;return s===null||Array.isArray(s)?0:(g.value||Rr)(s)});return()=>{const{value:s}=A,{value:u}=n;return a("span",{class:`${_.value}-input-word-count`},hr(m.default,{value:u===null||Array.isArray(u)?"":u},()=>[s===void 0?f.value:`${f.value} /
  2. max-width: 100%;
  3. cursor: text;
  4. line-height: 1.5;
  5. z-index: auto;
  6. outline: none;
  7. box-sizing: border-box;
  8. position: relative;
  9. display: inline-flex;
  10. border-radius: var(--n-border-radius);
  11. background-color: var(--n-color);
  12. transition: background-color .3s var(--n-bezier);
  13. font-size: var(--n-font-size);
  14. --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
  15. `,[l("input, textarea",`
  16. overflow: hidden;
  17. flex-grow: 1;
  18. position: relative;
  19. `),l("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
  20. box-sizing: border-box;
  21. font-size: inherit;
  22. line-height: 1.5;
  23. font-family: inherit;
  24. border: none;
  25. outline: none;
  26. background-color: #0000;
  27. text-align: inherit;
  28. transition:
  29. -webkit-text-fill-color .3s var(--n-bezier),
  30. caret-color .3s var(--n-bezier),
  31. color .3s var(--n-bezier),
  32. text-decoration-color .3s var(--n-bezier);
  33. `),l("input-el, textarea-el",`
  34. -webkit-appearance: none;
  35. scrollbar-width: none;
  36. width: 100%;
  37. min-width: 0;
  38. text-decoration-color: var(--n-text-decoration-color);
  39. color: var(--n-text-color);
  40. caret-color: var(--n-caret-color);
  41. background-color: transparent;
  42. `,[C("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
  43. width: 0;
  44. height: 0;
  45. display: none;
  46. `),C("&::placeholder",`
  47. color: #0000;
  48. -webkit-text-fill-color: transparent !important;
  49. `),C("&:-webkit-autofill ~",[l("placeholder","display: none;")])]),z("round",[K("textarea","border-radius: calc(var(--n-height) / 2);")]),l("placeholder",`
  50. pointer-events: none;
  51. position: absolute;
  52. left: 0;
  53. right: 0;
  54. top: 0;
  55. bottom: 0;
  56. overflow: hidden;
  57. color: var(--n-placeholder-color);
  58. `,[C("span",`
  59. width: 100%;
  60. display: inline-block;
  61. `)]),z("textarea",[l("placeholder","overflow: visible;")]),K("autosize","width: 100%;"),z("autosize",[l("textarea-el, input-el",`
  62. position: absolute;
  63. top: 0;
  64. left: 0;
  65. height: 100%;
  66. `)]),b("input-wrapper",`
  67. overflow: hidden;
  68. display: inline-flex;
  69. flex-grow: 1;
  70. position: relative;
  71. padding-left: var(--n-padding-left);
  72. padding-right: var(--n-padding-right);
  73. `),l("input-mirror",`
  74. padding: 0;
  75. height: var(--n-height);
  76. line-height: var(--n-height);
  77. overflow: hidden;
  78. visibility: hidden;
  79. position: static;
  80. white-space: pre;
  81. pointer-events: none;
  82. `),l("input-el",`
  83. padding: 0;
  84. height: var(--n-height);
  85. line-height: var(--n-height);
  86. `,[C("&[type=password]::-ms-reveal","display: none;"),C("+",[l("placeholder",`
  87. display: flex;
  88. align-items: center;
  89. `)])]),K("textarea",[l("placeholder","white-space: nowrap;")]),l("eye",`
  90. display: flex;
  91. align-items: center;
  92. justify-content: center;
  93. transition: color .3s var(--n-bezier);
  94. `),z("textarea","width: 100%;",[b("input-word-count",`
  95. position: absolute;
  96. right: var(--n-padding-right);
  97. bottom: var(--n-padding-vertical);
  98. `),z("resizable",[b("input-wrapper",`
  99. resize: vertical;
  100. min-height: var(--n-height);
  101. `)]),l("textarea-el, textarea-mirror, placeholder",`
  102. height: 100%;
  103. padding-left: 0;
  104. padding-right: 0;
  105. padding-top: var(--n-padding-vertical);
  106. padding-bottom: var(--n-padding-vertical);
  107. word-break: break-word;
  108. display: inline-block;
  109. vertical-align: bottom;
  110. box-sizing: border-box;
  111. line-height: var(--n-line-height-textarea);
  112. margin: 0;
  113. resize: none;
  114. white-space: pre-wrap;
  115. scroll-padding-block-end: var(--n-padding-vertical);
  116. `),l("textarea-mirror",`
  117. width: 100%;
  118. pointer-events: none;
  119. overflow: hidden;
  120. visibility: hidden;
  121. position: static;
  122. white-space: pre-wrap;
  123. overflow-wrap: break-word;
  124. `)]),z("pair",[l("input-el, placeholder","text-align: center;"),l("separator",`
  125. display: flex;
  126. align-items: center;
  127. transition: color .3s var(--n-bezier);
  128. color: var(--n-text-color);
  129. white-space: nowrap;
  130. `,[b("icon",`
  131. color: var(--n-icon-color);
  132. `),b("base-icon",`
  133. color: var(--n-icon-color);
  134. `)])]),z("disabled",`
  135. cursor: not-allowed;
  136. background-color: var(--n-color-disabled);
  137. `,[l("border","border: var(--n-border-disabled);"),l("input-el, textarea-el",`
  138. cursor: not-allowed;
  139. color: var(--n-text-color-disabled);
  140. text-decoration-color: var(--n-text-color-disabled);
  141. `),l("placeholder","color: var(--n-placeholder-color-disabled);"),l("separator","color: var(--n-text-color-disabled);",[b("icon",`
  142. color: var(--n-icon-color-disabled);
  143. `),b("base-icon",`
  144. color: var(--n-icon-color-disabled);
  145. `)]),b("input-word-count",`
  146. color: var(--n-count-text-color-disabled);
  147. `),l("suffix, prefix","color: var(--n-text-color-disabled);",[b("icon",`
  148. color: var(--n-icon-color-disabled);
  149. `),b("internal-icon",`
  150. color: var(--n-icon-color-disabled);
  151. `)])]),K("disabled",[l("eye",`
  152. color: var(--n-icon-color);
  153. cursor: pointer;
  154. `,[C("&:hover",`
  155. color: var(--n-icon-color-hover);
  156. `),C("&:active",`
  157. color: var(--n-icon-color-pressed);
  158. `)]),C("&:hover",[l("state-border","border: var(--n-border-hover);")]),z("focus","background-color: var(--n-color-focus);",[l("state-border",`
  159. border: var(--n-border-focus);
  160. box-shadow: var(--n-box-shadow-focus);
  161. `)])]),l("border, state-border",`
  162. box-sizing: border-box;
  163. position: absolute;
  164. left: 0;
  165. right: 0;
  166. top: 0;
  167. bottom: 0;
  168. pointer-events: none;
  169. border-radius: inherit;
  170. border: var(--n-border);
  171. transition:
  172. box-shadow .3s var(--n-bezier),
  173. border-color .3s var(--n-bezier);
  174. `),l("state-border",`
  175. border-color: #0000;
  176. z-index: 1;
  177. `),l("prefix","margin-right: 4px;"),l("suffix",`
  178. margin-left: 4px;
  179. `),l("suffix, prefix",`
  180. transition: color .3s var(--n-bezier);
  181. flex-wrap: nowrap;
  182. flex-shrink: 0;
  183. line-height: var(--n-height);
  184. white-space: nowrap;
  185. display: inline-flex;
  186. align-items: center;
  187. justify-content: center;
  188. color: var(--n-suffix-text-color);
  189. `,[b("base-loading",`
  190. font-size: var(--n-icon-size);
  191. margin: 0 2px;
  192. color: var(--n-loading-color);
  193. `),b("base-clear",`
  194. font-size: var(--n-icon-size);
  195. `,[l("placeholder",[b("base-icon",`
  196. transition: color .3s var(--n-bezier);
  197. color: var(--n-icon-color);
  198. font-size: var(--n-icon-size);
  199. `)])]),C(">",[b("icon",`
  200. transition: color .3s var(--n-bezier);
  201. color: var(--n-icon-color);
  202. font-size: var(--n-icon-size);
  203. `)]),b("base-icon",`
  204. font-size: var(--n-icon-size);
  205. `)]),b("input-word-count",`
  206. pointer-events: none;
  207. line-height: 1.5;
  208. font-size: .85em;
  209. color: var(--n-count-text-color);
  210. transition: color .3s var(--n-bezier);
  211. margin-left: 4px;
  212. font-variant: tabular-nums;
  213. `),["warning","error"].map(r=>z(`${r}-status`,[K("disabled",[b("base-loading",`
  214. color: var(--n-loading-color-${r})
  215. `),l("input-el, textarea-el",`
  216. caret-color: var(--n-caret-color-${r});
  217. `),l("state-border",`
  218. border: var(--n-border-${r});
  219. `),C("&:hover",[l("state-border",`
  220. border: var(--n-border-hover-${r});
  221. `)]),C("&:focus",`
  222. background-color: var(--n-color-focus-${r});
  223. `,[l("state-border",`
  224. box-shadow: var(--n-box-shadow-focus-${r});
  225. border: var(--n-border-focus-${r});
  226. `)]),z("focus",`
  227. background-color: var(--n-color-focus-${r});
  228. `,[l("state-border",`
  229. box-shadow: var(--n-box-shadow-focus-${r});
  230. border: var(--n-border-focus-${r});
  231. `)])])]))]),Er=b("input",[z("disabled",[l("input-el, textarea-el",`
  232. -webkit-text-fill-color: var(--n-text-color-disabled);
  233. `)])]),Pr=Object.assign(Object.assign({},Ae.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}),qr=Z({name:"Input",props:Pr,setup(r){const{mergedClsPrefixRef:m,mergedBorderedRef:n,inlineThemeDisabled:A,mergedRtlRef:_}=vr(r),g=Ae("Input","-input",Br,gr,r,m);ar&&br("-input-safari",Er,m);const f=w(null),s=w(null),u=w(null),c=w(null),i=w(null),p=w(null),x=w(null),T=Fr(x),S=w(null),{localeRef:Re}=mr("Input"),j=w(r.defaultValue),Fe=ge(r,"value"),R=xr(Fe,j),V=wr(r),{mergedSizeRef:ee,mergedDisabledRef:I,mergedStatusRef:Be}=V,k=w(!1),W=w(!1),B=w(!1),D=w(!1);let oe=null;const re=F(()=>{const{placeholder:e,pair:o}=r;return o?Array.isArray(e)?e:e===void 0?["",""]:[e,e]:e===void 0?[Re.value.placeholder]:[e]}),Ee=F(()=>{const{value:e}=B,{value:o}=R,{value:t}=re;return!e&&(J(o)||Array.isArray(o)&&J(o[0]))&&t[0]}),Pe=F(()=>{const{value:e}=B,{value:o}=R,{value:t}=re;return!e&&t[1]&&(J(o)||Array.isArray(o)&&J(o[1]))}),te=xe(()=>r.internalForceFocus||k.value),$e=xe(()=>{if(I.value||r.readonly||!r.clearable||!te.value&&!W.value)return!1;const{value:e}=R,{value:o}=te;return r.pair?!!(Array.isArray(e)&&(e[0]||e[1]))&&(W.value||o):!!e&&(W.value||o)}),ne=F(()=>{const{showPasswordOn:e}=r;if(e)return e;if(r.showPasswordToggle)return"click"}),O=w(!1),Te=F(()=>{const{textDecoration:e}=r;return e?Array.isArray(e)?e.map(o=>({textDecoration:o})):[{textDecoration:e}]:["",""]}),de=w(void 0),Ie=()=>{var e,o;if(r.type==="textarea"){const{autosize:t}=r;if(t&&(de.value=(o=(e=S.value)===null||e===void 0?void 0:e.$el)===null||o===void 0?void 0:o.offsetWidth),!s.value||typeof t=="boolean")return;const{paddingTop:h,paddingBottom:v,lineHeight:d}=window.getComputedStyle(s.value),E=Number(h.slice(0,-2)),P=Number(v.slice(0,-2)),$=Number(d.slice(0,-2)),{value:N}=u;if(!N)return;if(t.minRows){const H=Math.max(t.minRows,1),le=`${E+P+$*H}px`;N.style.minHeight=le}if(t.maxRows){const H=`${E+P+$*t.maxRows}px`;N.style.maxHeight=H}}},ke=F(()=>{const{maxlength:e}=r;return e===void 0?void 0:Number(e)});cr(()=>{const{value:e}=R;Array.isArray(e)||ie(e)});const Me=ur().proxy;function U(e,o){const{onUpdateValue:t,"onUpdate:value":h,onInput:v}=r,{nTriggerFormInput:d}=V;t&&y(t,e,o),h&&y(h,e,o),v&&y(v,e,o),j.value=e,d()}function L(e,o){const{onChange:t}=r,{nTriggerFormChange:h}=V;t&&y(t,e,o),j.value=e,h()}function Ve(e){const{onBlur:o}=r,{nTriggerFormBlur:t}=V;o&&y(o,e),t()}function We(e){const{onFocus:o}=r,{nTriggerFormFocus:t}=V;o&&y(o,e),t()}function De(e){const{onClear:o}=r;o&&y(o,e)}function Oe(e){const{onInputBlur:o}=r;o&&y(o,e)}function Ne(e){const{onInputFocus:o}=r;o&&y(o,e)}function He(){const{onDeactivate:e}=r;e&&y(e)}function Ke(){const{onActivate:e}=r;e&&y(e)}function je(e){const{onClick:o}=r;o&&y(o,e)}function Ue(e){cons
  234. `)}else{const{value:v}=c;v&&(e?v.textContent=e:v.innerHTML=" ")}}function bo(){Ie()}const ve=w({top:"0"});function mo(e){var o;const{scrollTop:t}=e.target;ve.value.top=`${-t}px`,(o=S.value)===null||o===void 0||o.syncUnifiedContainer()}let Y=null;be(()=>{const{autosize:e,type:o}=r;e&&o==="textarea"?Y=ue(R,t=>{!Array.isArray(t)&&t!==oe&&ie(t)}):Y==null||Y()});let Q=null;be(()=>{r.type==="textarea"?Q=ue(R,e=>{var o;!Array.isArray(e)&&e!==oe&&((o=S.value)===null||o===void 0||o.syncUnifiedContainer())}):Q==null||Q()}),dr(_e,{mergedValueRef:R,maxlengthRef:ke,mergedClsPrefixRef:m,countGraphemesRef:ge(r,"countGraphemes")});const xo={wrapperElRef:f,inputElRef:i,textareaElRef:s,isCompositing:B,clear:fe,focus:he,blur:fo,select:ho,deactivate:po,activate:vo,scrollTo:go},wo=ir("Input",_,m),pe=F(()=>{const{value:e}=ee,{common:{cubicBezierEaseInOut:o},self:{color:t,borderRadius:h,textColor:v,caretColor:d,caretColorError:E,caretColorWarning:P,textDecorationColor:$,border:N,borderDisabled:H,borderHover:le,borderFocus:yo,placeholderColor:Co,placeholderColorDisabled:zo,lineHeightTextarea:So,colorDisabled:Ao,colorFocus:_o,textColorDisabled:Ro,boxShadowFocus:Fo,iconSize:Bo,colorFocusWarning:Eo,boxShadowFocusWarning:Po,borderWarning:$o,borderFocusWarning:To,borderHoverWarning:Io,colorFocusError:ko,boxShadowFocusError:Mo,borderError:Vo,borderFocusError:Wo,borderHoverError:Do,clearSize:Oo,clearColor:No,clearColorHover:Ho,clearColorPressed:Ko,iconColor:jo,iconColorDisabled:Uo,suffixTextColor:Lo,countTextColor:Go,countTextColorDisabled:Xo,iconColorHover:Yo,iconColorPressed:Qo,loadingColor:qo,loadingColorError:Jo,loadingColorWarning:Zo,[ce("padding",e)]:er,[ce("fontSize",e)]:or,[ce("height",e)]:rr}}=g.value,{left:tr,right:nr}=yr(er);return{"--n-bezier":o,"--n-count-text-color":Go,"--n-count-text-color-disabled":Xo,"--n-color":t,"--n-font-size":or,"--n-border-radius":h,"--n-height":rr,"--n-padding-left":tr,"--n-padding-right":nr,"--n-text-color":v,"--n-caret-color":d,"--n-text-decoration-color":$,"--n-border":N,"--n-border-disabled":H,"--n-border-hover":le,"--n-border-focus":yo,"--n-placeholder-color":Co,"--n-placeholder-color-disabled":zo,"--n-icon-size":Bo,"--n-line-height-textarea":So,"--n-color-disabled":Ao,"--n-color-focus":_o,"--n-text-color-disabled":Ro,"--n-box-shadow-focus":Fo,"--n-loading-color":qo,"--n-caret-color-warning":P,"--n-color-focus-warning":Eo,"--n-box-shadow-focus-warning":Po,"--n-border-warning":$o,"--n-border-focus-warning":To,"--n-border-hover-warning":Io,"--n-loading-color-warning":Zo,"--n-caret-color-error":E,"--n-color-focus-error":ko,"--n-box-shadow-focus-error":Mo,"--n-border-error":Vo,"--n-border-focus-error":Wo,"--n-border-hover-error":Do,"--n-loading-color-error":Jo,"--n-clear-color":No,"--n-clear-size":Oo,"--n-clear-color-hover":Ho,"--n-clear-color-pressed":Ko,"--n-icon-color":jo,"--n-icon-color-hover":Yo,"--n-icon-color-pressed":Qo,"--n-icon-color-disabled":Uo,"--n-suffix-text-color":Lo}}),M=A?pr("input",F(()=>{const{value:e}=ee;return e[0]}),pe,r):void 0;return Object.assign(Object.assign({},xo),{wrapperElRef:f,inputElRef:i,inputMirrorElRef:c,inputEl2Ref:p,textareaElRef:s,textareaMirrorElRef:u,textareaScrollbarInstRef:S,rtlEnabled:wo,uncontrolledValue:j,mergedValue:R,passwordVisible:O,mergedPlaceholder:re,showPlaceholder1:Ee,showPlaceholder2:Pe,mergedFocus:te,isComposing:B,activated:D,showClearButton:$e,mergedSize:ee,mergedDisabled:I,textDecorationStyle:Te,mergedClsPrefix:m,mergedBordered:n,mergedShowPasswordOn:ne,placeholderStyle:ve,mergedStatus:Be,textAreaScrollContainerWidth:de,handleTextAreaScroll:mo,handleCompositionStart:Ge,handleCompositionEnd:Xe,handleInput:G,handleInputBlur:Qe,handleInputFocus:qe,handleWrapperBlur:Je,handleWrapperFocus:Ze,handleMouseEnter:no,handleMouseLeave:ao,handleMouseDown:to,handleChange:eo,handleClick:oo,handleClear:ro,handlePasswordToggleClick:io,handlePasswordToggleMousedown:lo,handleWrapperKeydown:co,handleWrapperKeyup:so,handleTextAreaMirrorResize:bo,getTextareaScrollContainer:()=>s.value,mergedTheme:g,cssVars:A?void 0:pe,themeClass:M==null?void 0:M.themeClass,onRender:M==