BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([["9602"],{20013:function(e,r,t){t.d(r,{Z:()=>o});var l=t(58786);function o(e,r){return(0,l.YP)(e,e=>{void 0!==e&&(r.value=e)}),(0,l.Fl)(()=>void 0===e.value?r.value:e.value)}},64499:function(e,r,t){t.d(r,{Z:()=>h});var l=t(58786),o=t(27046),n=t(93950),a=t(96823),i=t(76128);let s=(0,t(144).f)("clear",()=>(0,l.h)("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,l.h)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,l.h)("g",{fill:"currentColor","fill-rule":"nonzero"},(0,l.h)("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})))));var u=t(28632),c=t(71309);let d=(0,c.cB)("base-clear",`
flex-shrink: 0;
height: 1em;
width: 1em;
position: relative;
`,[(0,c.c)(">",[(0,c.cE)("clear",`
font-size: var(--n-clear-size);
height: 1em;
width: 1em;
cursor: pointer;
color: var(--n-clear-color);
transition: color .3s var(--n-bezier);
display: flex;
`,[(0,c.c)("&:hover",`
color: var(--n-clear-color-hover)!important;
`),(0,c.c)("&:active",`
color: var(--n-clear-color-pressed)!important;
`)]),(0,c.cE)("placeholder",`
display: flex;
`),(0,c.cE)("clear, placeholder",`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
`,[(0,u.c)({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),h=(0,l.aZ)({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup:e=>((0,o.Z)("-base-clear",d,(0,l.Vh)(e,"clsPrefix")),{handleMouseDown(e){e.preventDefault()}}),render(){let{clsPrefix:e}=this;return(0,l.h)("div",{class:`${e}-base-clear`},(0,l.h)(i.Z,null,{default:()=>{var r,t;return this.show?(0,l.h)("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},(0,n.gI)(this.$slots.icon,()=>[(0,l.h)(a.Z,{clsPrefix:e},{default:()=>(0,l.h)(s,null)})])):(0,l.h)("div",{key:"icon",class:`${e}-base-clear__placeholder`},null==(t=(r=this.$slots).placeholder)?void 0:t.call(r))}}))}})},78740:function(e,r,t){t.d(r,{Z:()=>o});var l=t(58786);let o=(0,l.aZ)({name:"ChevronDown",render:()=>(0,l.h)("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.h)("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))})},81748:function(e,r,t){t.d(r,{Z:()=>o});var l=t(58786);let o=(0,l.aZ)({name:"Eye",render:()=>(0,l.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,l.h)("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"}),(0,l.h)("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))})},55760:function(e,r,t){t.d(r,{Z:()=>u});var l=t(58786),o=t(93950),n=t(64499),a=t(96823),i=t(78740),s=t(62594);let u=(0,l.aZ)({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup:(e,{slots:r})=>()=>{let{clsPrefix:t}=e;return(0,l.h)(s.Z,{clsPrefix:t,class:`${t}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?(0,l.h)(n.Z,{clsPrefix:t,show:e.showClear,onClear:e.onClear},{placeholder:()=>(0,l.h)(a.Z,{clsPrefix:t,class:`${t}-base-suffix__arrow`},{default:()=>(0,o.gI)(r.default,()=>[(0,l.h)(i.Z,null)])})}):null})}})},3616:function(e,r,t){t.d(r,{Z:()=>i});var l=t(58786),o=t(39741),n=t(38325),a=t(24924);function i(e){let{mergedLocaleRef:r,mergedDateLocaleRef:t}=(0,l.f3)(o.Y,null)||{},i=(0,l.Fl)(()=>{var t,l;return null!=(l=null==(t=null==r?void 0:r.value)?void 0:t[e])?l:n.Z[e]});return{dateLocaleRef:(0,l.Fl)(()=>{var e;return null!=(e=null==t?void 0:t.value)?e:a.Z}),localeRef:i}}},73084:function(e,r,t){t.d(r,{Z:()=>Z});var l=t(82518),o=t(65083),n=t(20013),a=t(61691),i=t(58786),s=t(70020),u=t(97756),c=t(64499),d=t(55760),h=t(96823),p=t(81748);let v=(0,i.aZ)({name:"EyeOff",render:()=>(0,i.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,i.h)("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"}),(0,i.h)("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"}),(0,i.h)("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"}),(0,i.h)("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"}),(0,i.h)("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"}))});var f=t(56946),g=t(54470),b=t(27046),w=t(3616),x=t(32196),y=t(53198),m=t(51048),C=t(44267),z=t(71309),B=t(93950),A=t(68293),E=t(34534);let $=(0,t(19050).U)("n-input"),k=(0,z.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,z.cE)("input, textarea",`
overflow: hidden;
flex-grow: 1;
position: relative;
`),(0,z.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,z.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,z.c)("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
width: 0;
height: 0;
display: none;
`),(0,z.c)("&::placeholder",`
color: #0000;
-webkit-text-fill-color: transparent !important;
`),(0,z.c)("&:-webkit-autofill ~",[(0,z.cE)("placeholder","display: none;")])]),(0,z.cM)("round",[(0,z.u4)("textarea","border-radius: calc(var(--n-height) / 2);")]),(0,z.cE)("placeholder",`
pointer-events: none;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: hidden;
color: var(--n-placeholder-color);
`,[(0,z.c)("span",`
width: 100%;
display: inline-block;
`)]),(0,z.cM)("textarea",[(0,z.cE)("placeholder","overflow: visible;")]),(0,z.u4)("autosize","width: 100%;"),(0,z.cM)("autosize",[(0,z.cE)("textarea-el, input-el",`
position: absolute;
top: 0;
left: 0;
height: 100%;
`)]),(0,z.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,z.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,z.cE)("input-el",`
padding: 0;
height: var(--n-height);
line-height: var(--n-height);
`,[(0,z.c)("&[type=password]::-ms-reveal","display: none;"),(0,z.c)("+",[(0,z.cE)("placeholder",`
display: flex;
align-items: center;
`)])]),(0,z.u4)("textarea",[(0,z.cE)("placeholder","white-space: nowrap;")]),(0,z.cE)("eye",`
display: flex;
align-items: center;
justify-content: center;
transition: color .3s var(--n-bezier);
`),(0,z.cM)("textarea","width: 100%;",[(0,z.cB)("input-word-count",`
position: absolute;
right: var(--n-padding-right);
bottom: var(--n-padding-vertical);
`),(0,z.cM)("resizable",[(0,z.cB)("input-wrapper",`
resize: vertical;
min-height: var(--n-height);
`)]),(0,z.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,z.cE)("textarea-mirror",`
width: 100%;
pointer-events: none;
overflow: hidden;
visibility: hidden;
position: static;
white-space: pre-wrap;
overflow-wrap: break-word;
`)]),(0,z.cM)("pair",[(0,z.cE)("input-el, placeholder","text-align: center;"),(0,z.cE)("separator",`
display: flex;
align-items: center;
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
white-space: nowrap;
`,[(0,z.cB)("icon",`
color: var(--n-icon-color);
`),(0,z.cB)("base-icon",`
color: var(--n-icon-color);
`)])]),(0,z.cM)("disabled",`
cursor: not-allowed;
background-color: var(--n-color-disabled);
`,[(0,z.cE)("border","border: var(--n-border-disabled);"),(0,z.cE)("input-el, textarea-el",`
cursor: not-allowed;
color: var(--n-text-color-disabled);
text-decoration-color: var(--n-text-color-disabled);
`),(0,z.cE)("placeholder","color: var(--n-placeholder-color-disabled);"),(0,z.cE)("separator","color: var(--n-text-color-disabled);",[(0,z.cB)("icon",`
color: var(--n-icon-color-disabled);
`),(0,z.cB)("base-icon",`
color: var(--n-icon-color-disabled);
`)]),(0,z.cB)("input-word-count",`
color: var(--n-count-text-color-disabled);
`),(0,z.cE)("suffix, prefix","color: var(--n-text-color-disabled);",[(0,z.cB)("icon",`
color: var(--n-icon-color-disabled);
`),(0,z.cB)("internal-icon",`
color: var(--n-icon-color-disabled);
`)])]),(0,z.u4)("disabled",[(0,z.cE)("eye",`
color: var(--n-icon-color);
cursor: pointer;
`,[(0,z.c)("&:hover",`
color: var(--n-icon-color-hover);
`),(0,z.c)("&:active",`
color: var(--n-icon-color-pressed);
`)]),(0,z.c)("&:hover",[(0,z.cE)("state-border","border: var(--n-border-hover);")]),(0,z.cM)("focus","background-color: var(--n-color-focus);",[(0,z.cE)("state-border",`
border: var(--n-border-focus);
box-shadow: var(--n-box-shadow-focus);
`)])]),(0,z.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,z.cE)("state-border",`
border-color: #0000;
z-index: 1;
`),(0,z.cE)("prefix","margin-right: 4px;"),(0,z.cE)("suffix",`
margin-left: 4px;
`),(0,z.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,z.cB)("base-loading",`
font-size: var(--n-icon-size);
margin: 0 2px;
color: var(--n-loading-color);
`),(0,z.cB)("base-clear",`
font-size: var(--n-icon-size);
`,[(0,z.cE)("placeholder",[(0,z.cB)("base-icon",`
transition: color .3s var(--n-bezier);
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)])]),(0,z.c)(">",[(0,z.cB)("icon",`
transition: color .3s var(--n-bezier);
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)]),(0,z.cB)("base-icon",`
font-size: var(--n-icon-size);
`)]),(0,z.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(e=>(0,z.cM)(`${e}-status`,[(0,z.u4)("disabled",[(0,z.cB)("base-loading",`
color: var(--n-loading-color-${e})
`),(0,z.cE)("input-el, textarea-el",`
caret-color: var(--n-caret-color-${e});
`),(0,z.cE)("state-border",`
border: var(--n-border-${e});
`),(0,z.c)("&:hover",[(0,z.cE)("state-border",`
border: var(--n-border-hover-${e});
`)]),(0,z.c)("&:focus",`
background-color: var(--n-color-focus-${e});
`,[(0,z.cE)("state-border",`
box-shadow: var(--n-box-shadow-focus-${e});
border: var(--n-border-focus-${e});
`)]),(0,z.cM)("focus",`
background-color: var(--n-color-focus-${e});
`,[(0,z.cE)("state-border",`
box-shadow: var(--n-box-shadow-focus-${e});
border: var(--n-border-focus-${e});
`)])])]))]),F=(0,z.cB)("input",[(0,z.cM)("disabled",[(0,z.cE)("input-el, textarea-el",`
-webkit-text-fill-color: var(--n-text-color-disabled);
`)])]);function P(e){return""===e||null==e}let S=(0,i.aZ)({name:"InputWordCount",setup(e,{slots:r}){let{mergedValueRef:t,maxlengthRef:l,mergedClsPrefixRef:o,countGraphemesRef:n}=(0,i.f3)($),a=(0,i.Fl)(()=>{let{value:e}=t;return null===e||Array.isArray(e)?0:(n.value||function(e){let r=0;for(let t of e)r++;return r})(e)});return()=>{let{value:e}=l,{value:n}=t;return(0,i.h)("span",{class:`${o.value}-input-word-count`},(0,B.q_)(r.default,{value:null===n||Array.isArray(n)?"":n},()=>[void 0===e?a.value:`${a.value} / ${e}`]))}}}),M=Object.assign(Object.assign({},f.Z.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}),Z=(0,i.aZ)({name:"Input",props:M,slots:Object,setup(e){let{mergedClsPrefixRef:r,mergedBorderedRef:t,inlineThemeDisabled:s,mergedRtlRef:u}=(0,g.ZP)(e),c=(0,f.Z)("Input","-input",k,E.Z,e,r);A.G6&&(0,b.Z)("-input-safari",F,r);let d=(0,i.iH)(null),h=(0,i.iH)(null),p=(0,i.iH)(null),v=(0,i.iH)(null),B=(0,i.iH)(null),S=(0,i.iH)(null),M=(0,i.iH)(null),Z=function(e){let r=(0,i.iH)(null);function t(){r.value=null}return(0,i.YP)(e,t),{recordCursor:function(){let{value:l}=e;if(!(null==l?void 0:l.focus))return void t();let{selectionStart:o,selectionEnd:n,value:a}=l;if(null==o||null==n)return void t();r.value={start:o,end:n,beforeText:a.slice(0,o),afterText:a.slice(n)}},restoreCursor:function(){var t;let{value:l}=r,{value:o}=e;if(!l||!o)return;let{value:n}=o,{start:a,beforeText:i,afterText:s}=l,u=n.length;if(n.endsWith(s))u=n.length-s.length;else if(n.startsWith(i))u=i.length;else{let e=i[a-1],r=n.indexOf(e,a-1);-1!==r&&(u=r+1)}null==(t=o.setSelectionRange)||t.call(o,u,u)}}}(M),_=(0,i.iH)(null),{localeRef:R}=(0,w.Z)("Input"),T=(0,i.iH)(e.defaultValue),L=(0,i.Vh)(e,"value"),I=(0,n.Z)(L,T),D=(0,x.Z)(e),{mergedSizeRef:H,mergedDisabledRef:V,mergedStatusRef:O}=D,W=(0,i.iH)(!1),K=(0,i.iH)(!1),N=(0,i.iH)(!1),Y=(0,i.iH)(!1),j=null,U=(0,i.Fl)(()=>{let{placeholder:r,pair:t}=e;return t?Array.isArray(r)?r:void 0===r?["",""]:[r,r]:void 0===r?[R.value.placeholder]:[r]}),X=(0,i.Fl)(()=>{let{value:e}=N,{value:r}=I,{value:t}=U;return!e&&(P(r)||Array.isArray(r)&&P(r[0]))&&t[0]}),G=(0,i.Fl)(()=>{let{value:e}=N,{value:r}=I,{value:t}=U;return!e&&t[1]&&(P(r)||Array.isArray(r)&&P(r[1]))}),q=(0,a.Z)(()=>e.internalForceFocus||W.value),J=(0,a.Z)(()=>{if(V.value||e.readonly||!e.clearable||!q.value&&!K.value)return!1;let{value:r}=I,{value:t}=q;return e.pair?!!(Array.isArray(r)&&(r[0]||r[1]))&&(K.value||t):!!r&&(K.value||t)}),Q=(0,i.Fl)(()=>{let{showPasswordOn:r}=e;return r||(e.showPasswordToggle?"click":void 0)}),ee=(0,i.iH)(!1),er=(0,i.Fl)(()=>{let{textDecoration:r}=e;return r?Array.isArray(r)?r.map(e=>({textDecoration:e})):[{textDecoration:r}]:["",""]}),et=(0,i.iH)(void 0),el=()=>{var r,t;if("textarea"===e.type){let{autosize:l}=e;if(l&&(et.value=null==(t=null==(r=_.value)?void 0:r.$el)?void 0:t.offsetWidth),!h.value||"boolean"==typeof l)return;let{paddingTop:o,paddingBottom:n,lineHeight:a}=window.getComputedStyle(h.value),i=Number(o.slice(0,-2)),s=Number(n.slice(0,-2)),u=Number(a.slice(0,-2)),{value:c}=p;if(!c)return;if(l.minRows){let e=Math.max(l.minRows,1),r=`${i+s+u*e}px`;c.style.minHeight=r}if(l.maxRows){let e=`${i+s+u*l.maxRows}px`;c.style.maxHeight=e}}},eo=(0,i.Fl)(()=>{let{maxlength:r}=e;return void 0===r?void 0:Number(r)});(0,i.bv)(()=>{let{value:e}=I;Array.isArray(e)||ep(e)});let en=(0,i.FN)().proxy;function ea(r,t){let{onUpdateValue:l,"onUpdate:value":o,onInput:n}=e,{nTriggerFormInput:a}=D;l&&(0,C.R)(l,r,t),o&&(0,C.R)(o,r,t),n&&(0,C.R)(n,r,t),T.value=r,a()}function ei(r,t){let{onChange:l}=e,{nTriggerFormChange:o}=D;l&&(0,C.R)(l,r,t),T.value=r,o()}function es(r,t=0,l="input"){let o=r.target.value;if(ep(o),r instanceof InputEvent&&!r.isComposing&&(N.value=!1),"textarea"===e.type){let{value:e}=_;e&&e.syncUnifiedContainer()}if(j=o,N.value)return;Z.recordCursor();let n=function(r){let{countGraphemes:t,maxlength:l,minlength:o}=e;if(t){let e;if(void 0!==l&&(void 0===e&&(e=t(r)),e>Number(l))||void 0!==o&&(void 0===e&&(e=t(r)),e<Number(l)))return!1}let{allowInput:n}=e;return"function"!=typeof n||n(r)}(o);if(n)if(e.pair){let{value:e}=I;(e=Array.isArray(e)?[e[0],e[1]]:["",""])[t]=o,"input"===l?ea(e,{source:t}):ei(e,{source:t})}else"input"===l?ea(o,{source:t}):ei(o,{source:t});en.$forceUpdate(),n||(0,i.Y3)(Z.restoreCursor)}function eu(r,t){if(null!==r.relatedTarget&&(r.relatedTarget===B.value||r.relatedTarget===S.value||r.relatedTarget===h.value||r.relatedTarget===d.value));else if("focus"===t){let{onFocus:t}=e,{nTriggerFormFocus:l}=D;t&&(0,C.R)(t,r),l(),W.value=!0}else if("blur"===t){let{onBlur:t}=e,{nTriggerFormBlur:l}=D;t&&(0,C.R)(t,r),l(),W.value=!1}}function ec(){e.pair?(ea(["",""],{source:"clear"}),ei(["",""],{source:"clear"})):(ea("",{source:"clear"}),ei("",{source:"clear"}))}function ed(){e.passivelyActivated&&(Y.value=!1,(0,i.Y3)(()=>{var e;null==(e=d.value)||e.focus()}))}function eh(){var r,t,l;V.value||(e.passivelyActivated?null==(r=d.value)||r.focus():(null==(t=h.value)||t.focus(),null==(l=B.value)||l.focus()))}function ep(r){let{type:t,pair:l,autosize:o}=e;if(!l&&o)if("textarea"===t){let{value:e}=p;e&&(e.textContent=`${null!=r?r:""}\r
`)}else{let{value:e}=v;e&&(r?e.textContent=r:e.innerHTML=" ")}}let ev=(0,i.iH)({top:"0"}),ef=null;(0,i.m0)(()=>{let{autosize:r,type:t}=e;r&&"textarea"===t?ef=(0,i.YP)(I,e=>{Array.isArray(e)||e===j||ep(e)}):null==ef||ef()});let eg=null;(0,i.m0)(()=>{"textarea"===e.type?eg=(0,i.YP)(I,e=>{var r;Array.isArray(e)||e===j||null==(r=_.value)||r.syncUnifiedContainer()}):null==eg||eg()}),(0,i.JJ)($,{mergedValueRef:I,maxlengthRef:eo,mergedClsPrefixRef:r,countGraphemesRef:(0,i.Vh)(e,"countGraphemes")});let eb=(0,m.V)("Input",u,r),ew=(0,i.Fl)(()=>{let{value:e}=H,{common:{cubicBezierEaseInOut:r},self:{color:t,borderRadius:l,textColor:n,caretColor:a,caretColorError:i,caretColorWarning:s,textDecorationColor:u,border:d,borderDisabled:h,borderHover:p,borderFocus:v,placeholderColor:f,placeholderColorDisabled:g,lineHeightTextarea:b,colorDisabled:w,colorFocus:x,textColorDisabled:y,boxShadowFocus:m,iconSize:C,colorFocusWarning:B,boxShadowFocusWarning:A,borderWarning:E,borderFocusWarning:$,borderHoverWarning:k,colorFocusError:F,boxShadowFocusError:P,borderError:S,borderFocusError:M,borderHoverError:Z,clearSize:_,clearColor:R,clearColorHover:T,clearColorPressed:L,iconColor:I,iconColorDisabled:D,suffixTextColor:V,countTextColor:O,countTextColorDisabled:W,iconColorHover:K,iconColorPressed:N,loadingColor:Y,loadingColorError:j,loadingColorWarning:U,fontWeight:X,[(0,z.Tl)("padding",e)]:G,[(0,z.Tl)("fontSize",e)]:q,[(0,z.Tl)("height",e)]:J}}=c.value,{left:Q,right:ee}=(0,o.tQ)(G);return{"--n-bezier":r,"--n-count-text-color":O,"--n-count-text-color-disabled":W,"--n-color":t,"--n-font-size":q,"--n-font-weight":X,"--n-border-radius":l,"--n-height":J,"--n-padding-left":Q,"--n-padding-right":ee,"--n-text-color":n,"--n-caret-color":a,"--n-text-decoration-color":u,"--n-border":d,"--n-border-disabled":h,"--n-border-hover":p,"--n-border-focus":v,"--n-placeholder-color":f,"--n-placeholder-color-disabled":g,"--n-icon-size":C,"--n-line-height-textarea":b,"--n-color-disabled":w,"--n-color-focus":x,"--n-text-color-disabled":y,"--n-box-shadow-focus":m,"--n-loading-color":Y,"--n-caret-color-warning":s,"--n-color-focus-warning":B,"--n-box-shadow-focus-warning":A,"--n-border-warning":E,"--n-border-focus-warning":$,"--n-border-hover-warning":k,"--n-loading-color-warning":U,"--n-caret-color-error":i,"--n-color-focus-error":F,"--n-box-shadow-focus-error":P,"--n-border-error":S,"--n-border-focus-error":M,"--n-border-hover-error":Z,"--n-loading-color-error":j,"--n-clear-color":R,"--n-clear-size":_,"--n-clear-color-hover":T,"--n-clear-color-pressed":L,"--n-icon-color":I,"--n-icon-color-hover":K,"--n-icon-color-pressed":N,"--n-icon-color-disabled":D,"--n-suffix-text-color":V}}),ex=s?(0,y.F)("input",(0,i.Fl)(()=>{let{value:e}=H;return e[0]}),ew,e):void 0;return Object.assign(Object.assign({},{wrapperElRef:d,inputElRef:B,textareaElRef:h,isCompositing:N,clear:ec,focus:eh,blur:function(){var e;(null==(e=d.value)?void 0:e.contains(document.activeElement))&&document.activeElement.blur()},select:function(){var e,r;null==(e=h.value)||e.select(),null==(r=B.value)||r.select()},deactivate:function(){let{value:e}=d;(null==e?void 0:e.contains(document.activeElement))&&e!==document.activeElement&&ed()},activate:function(){!V.value&&(h.value?h.value.focus():B.value&&B.value.focus())},scrollTo:function(r){if("textarea"===e.type){let{value:e}=h;null==e||e.scrollTo(r)}else{let{value:e}=B;null==e||e.scrollTo(r)}}}),{wrapperElRef:d,inputElRef:B,inputMirrorElRef:v,inputEl2Ref:S,textareaElRef:h,textareaMirrorElRef:p,textareaScrollbarInstRef:_,rtlEnabled:eb,uncontrolledValue:T,mergedValue:I,passwordVisible:ee,mergedPlaceholder:U,showPlaceholder1:X,showPlaceholder2:G,mergedFocus:q,isComposing:N,activated:Y,showClearButton:J,mergedSize:H,mergedDisabled:V,textDecorationStyle:er,mergedClsPrefix:r,mergedBordered:t,mergedShowPasswordOn:Q,placeholderStyle:ev,mergedStatus:O,textAreaScrollContainerWidth:et,handleTextAreaScroll:function(e){var r;let{scrollTop:t}=e.target;ev.value.top=`${-t}px`,null==(r=_.value)||r.syncUnifiedContainer()},handleCompositionStart:function(){N.value=!0},handleCompositionEnd:function(e){N.value=!1,e.target===S.value?es(e,1):es(e,0)},handleInput:es,handleInputBlur:function(r){let{onInputBlur:t}=e;t&&(0,C.R)(t,r),r.relatedTarget===d.value&&function(){let{onDeactivate:r}=e;r&&(0,C.R)(r)}(),(null===r.relatedTarget||r.relatedTarget!==B.value&&r.relatedTarget!==S.value&&r.relatedTarget!==h.value)&&(Y.value=!1),eu(r,"blur"),M.value=null},handleInputFocus:function(r,t){let{onInputFocus:l}=e;l&&(0,C.R)(l,r),W.value=!0,Y.value=!0;let{onActivate:o}=e;o&&(0,C.R)(o),eu(r,"focus"),0===t?M.value=B.value:1===t?M.value=S.value:2===t&&(M.value=h.value)},handleWrapperBlur:function(r){if(e.passivelyActivated){let{onWrapperBlur:t}=e;t&&(0,C.R)(t,r),eu(r,"blur")}},handleWrapperFocus:function(r){if(e.passivelyActivated){W.value=!0;let{onWrapperFocus:t}=e;t&&(0,C.R)(t,r),eu(r,"focus")}},handleMouseEnter:function(){var r;K.value=!0,"textarea"===e.type&&(null==(r=_.value)||r.handleMouseEnterWrapper())},handleMouseLeave:function(){var r;K.value=!1,"textarea"===e.type&&(null==(r=_.value)||r.handleMouseLeaveWrapper())},handleMouseDown:function(r){let{onMousedown:t}=e;t&&t(r);let{tagName:l}=r.target;if("INPUT"!==l&&"TEXTAREA"!==l){if(e.resizable){let{value:e}=d;if(e){let{left:t,top:l,width:o,height:n}=e.getBoundingClientRect();if(t+o-14<r.clientX&&r.clientX<t+o&&l+n-14<r.clientY&&r.clientY<l+n)return}}r.preventDefault(),W.value||eh()}},handleChange:function(e,r){es(e,r,"change")},handleClick:function(r){let{onClick:t}=e;t&&(0,C.R)(t,r)},handleClear:function(r){let{onClear:t}=e;t&&(0,C.R)(t,r),ec()},handlePasswordToggleClick:function(){V.value||"click"===Q.value&&(ee.value=!ee.value)},handlePasswordToggleMousedown:function(e){if(V.value)return;e.preventDefault();let r=e=>{e.preventDefault(),(0,l.S)("mouseup",document,r)};if((0,l.on)("mouseup",document,r),"mousedown"!==Q.value)return;ee.value=!0;let t=()=>{ee.value=!1,(0,l.S)("mouseup",document,t)};(0,l.on)("mouseup",document,t)},handleWrapperKeydown:function(r){switch(e.onKeydown&&(0,C.R)(e.onKeydown,r),r.key){case"Escape":ed();break;case"Enter":!function(r){var t,l;if(e.passivelyActivated){let{value:o}=Y;if(o){e.internalDeactivateOnEnter&&ed();return}r.preventDefault(),"textarea"===e.type?null==(t=h.value)||t.focus():null==(l=B.value)||l.focus()}}(r)}},handleWrapperKeyup:function(r){e.onKeyup&&(0,C.R)(e.onKeyup,r)},handleTextAreaMirrorResize:function(){el()},getTextareaScrollContainer:()=>h.value,mergedTheme:c,cssVars:s?void 0:ew,themeClass:null==ex?void 0:ex.themeClass,onRender:null==ex?void 0:ex.onRender})},render(){var e,r;let{mergedClsPrefix:t,mergedStatus:l,themeClass:o,type:n,countGraphemes:a,onRender:f}=this,g=this.$slots;return null==f||f(),(0,i.h)("div",{ref:"wrapperElRef",class:[`${t}-input`,o,l&&`${t}-input--${l}-status`,{[`${t}-input--rtl`]:this.rtlEnabled,[`${t}-input--disabled`]:this.mergedDisabled,[`${t}-input--textarea`]:"textarea"===n,[`${t}-input--resizable`]:this.resizable&&!this.autosize,[`${t}-input--autosize`]:this.autosize,[`${t}-input--round`]:this.round&&"textarea"!==n,[`${t}-input--pair`]:this.pair,[`${t}-input--focus`]:this.mergedFocus,[`${t}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:this.mergedDisabled||!this.passivelyActivated||this.activated?void 0: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,i.h)("div",{class:`${t}-input-wrapper`},(0,B.K9)(g.prefix,e=>e&&(0,i.h)("div",{class:`${t}-input__prefix`},e)),"textarea"===n?(0,i.h)(u.Z,{ref:"textareaScrollbarInstRef",class:`${t}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var e,r;let{textAreaScrollContainerWidth:l}=this,o={width:this.autosize&&l&&`${l}px`};return(0,i.h)(i.HY,null,(0,i.h)("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${t}-input__textarea-el`,null==(e=this.inputProps)?void 0:e.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],null==(r=this.inputProps)?void 0:r.style,o],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?(0,i.h)("div",{class:`${t}-input__placeholder`,style:[this.placeholderStyle,o],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?(0,i.h)(s.Z,{onResize:this.handleTextAreaMirrorResize},{default:()=>(0,i.h)("div",{ref:"textareaMirrorElRef",class:`${t}-input__textarea-mirror`,key:"mirror"})}):null)}}):(0,i.h)("div",{class:`${t}-input__input`},(0,i.h)("input",Object.assign({type:"password"===n&&this.mergedShowPasswordOn&&this.passwordVisible?"text":n},this.inputProps,{ref:"inputElRef",class:[`${t}-input__input-el`,null==(e=this.inputProps)?void 0:e.class],style:[this.textDecorationStyle[0],null==(r=this.inputProps)?void 0:r.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?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:e=>{this.handleInputFocus(e,0)},onInput:e=>{this.handleInput(e,0)},onChange:e=>{this.handleChange(e,0)}})),this.showPlaceholder1?(0,i.h)("div",{class:`${t}-input__placeholder`},(0,i.h)("span",null,this.mergedPlaceholder[0])):null,this.autosize?(0,i.h)("div",{class:`${t}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xa0"):null),!this.pair&&(0,B.K9)(g.suffix,e=>e||this.clearable||this.showCount||this.mergedShowPasswordOn||void 0!==this.loading?(0,i.h)("div",{class:`${t}-input__suffix`},[(0,B.K9)(g["clear-icon-placeholder"],e=>(this.clearable||e)&&(0,i.h)(c.Z,{clsPrefix:t,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>e,icon:()=>{var e,r;return null==(r=(e=this.$slots)["clear-icon"])?void 0:r.call(e)}})),this.internalLoadingBeforeSuffix?null:e,void 0!==this.loading?(0,i.h)(d.Z,{clsPrefix:t,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?e:null,this.showCount&&"textarea"!==this.type?(0,i.h)(S,null,{default:e=>{var r;let{renderCount:t}=this;return t?t(e):null==(r=g.count)?void 0:r.call(g,e)}}):null,this.mergedShowPasswordOn&&"password"===this.type?(0,i.h)("div",{class:`${t}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?(0,B.gI)(g["password-visible-icon"],()=>[(0,i.h)(h.Z,{clsPrefix:t},{default:()=>(0,i.h)(p.Z,null)})]):(0,B.gI)(g["password-invisible-icon"],()=>[(0,i.h)(h.Z,{clsPrefix:t},{default:()=>(0,i.h)(v,null)})])):null]):null)),this.pair?(0,i.h)("span",{class:`${t}-input__separator`},(0,B.gI)(g.separator,()=>[this.separator])):null,this.pair?(0,i.h)("div",{class:`${t}-input-wrapper`},(0,i.h)("div",{class:`${t}-input__input`},(0,i.h)("input",{ref:"inputEl2Ref",type:this.type,class:`${t}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?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:e=>{this.handleInputFocus(e,1)},onInput:e=>{this.handleInput(e,1)},onChange:e=>{this.handleChange(e,1)}}),this.showPlaceholder2?(0,i.h)("div",{class:`${t}-input__placeholder`},(0,i.h)("span",null,this.mergedPlaceholder[1])):null),(0,B.K9)(g.suffix,e=>(this.clearable||e)&&(0,i.h)("div",{class:`${t}-input__suffix`},[this.clearable&&(0,i.h)(c.Z,{clsPrefix:t,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var e;return null==(e=g["clear-icon"])?void 0:e.call(g)},placeholder:()=>{var e;return null==(e=g["clear-icon-placeholder"])?void 0:e.call(g)}}),e]))):null,this.mergedBordered?(0,i.h)("div",{class:`${t}-input__border`}):null,this.mergedBordered?(0,i.h)("div",{class:`${t}-input__state-border`}):null,this.showCount&&"textarea"===n?(0,i.h)(S,null,{default:e=>{var r;let{renderCount:t}=this;return t?t(e):null==(r=g.count)?void 0:r.call(g,e)}}):null)}})}}]);