k5web/assets/index.3ce56434.js
2024-07-01 00:02:08 +08:00

66 lines
21 KiB
JavaScript

import{u as B,a as Ve,_}from"./useConfig.82d85255.js";import{d as R,c as h,f as j,g as he,w as E,b as we,i as Oe,o as Ce,t as _e,n as ee,aI as C,bg as Fe,bh as Te,bC as Be}from"./arco.7f845a67.js";import{u as ne,r as te,_ as ae,a as Ee}from"./useGlobalIcon.5d09fd23.js";import{F as $e,G as Ae,d as Le,c as Ie,w as Pe}from"./index.c495c8f7.js";import{i as De,a as Re,b as ce,_ as Se,l as ze}from"./helper.7839fdda.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function He(e,n){if(e==null)return{};var a={},t=Object.keys(e),o,d;for(d=0;d<t.length;d++)o=t[d],!(n.indexOf(o)>=0)&&(a[o]=e[o]);return a}function Ke(e,n){if(e==null)return{};var a=He(e,n),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);for(o=0;o<d.length;o++)t=d[o],!(n.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(a[t]=e[t]))}return a}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ke(e){return e===void 0}var We=ke;function se(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,t)}return a}function ve(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?se(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):se(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var Ue={tag:"svg",attrs:{fill:"none",viewBox:"0 0 26 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4 1.59l6.17 6.17 7.07 7.07L23.41 21 22 22.41l-2.97-2.96A12.5 12.5 0 011.08 12.3L1 12l.1-.3c.77-2.4 2.24-4.5 4.18-6.02L2.59 3 4 1.59zM6.7 7.1A10.53 10.53 0 003.1 12a10.5 10.5 0 0014.45 5.97l-1.8-1.8a5 5 0 01-6.93-6.93L6.7 7.11zm3.6 3.6a3 3 0 004 4l-4-4zM13 5c-.58 0-1.14.05-1.7.14l-.98.16L10 3.32l.99-.16A12.5 12.5 0 0124.9 11.7l.1.31-.1.3c-.41 1.3-1.03 2.5-1.82 3.58l-.59.8-1.61-1.18.59-.8c.6-.82 1.08-1.73 1.42-2.7A10.5 10.5 0 0013 5zm.51 1.93l.96.29a5 5 0 013.31 3.31l.3.96-1.92.58-.3-.95a3 3 0 00-1.98-1.99l-.95-.3.58-1.9z"}}]},Ge=R({name:"BrowseOffIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:o,style:d}=ne(t),s=h(()=>["t-icon","t-icon-browse-off",o.value]),v=h(()=>ve(ve({},d.value),a.style)),m=h(()=>({class:s.value,style:v.value,onClick:p=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:p})}}));return()=>te(Ue,m.value)}});const Je=Ge;function fe(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,t)}return a}function de(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?fe(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):fe(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var Xe={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"g",attrs:{clipPath:"url(#clip0_8726_7319)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.1 12a10.5 10.5 0 0019.8 0 10.5 10.5 0 00-19.8 0zm-2.01-.3a12.5 12.5 0 0123.82 0l.1.3-.1.3a12.5 12.5 0 01-23.82 0l-.1-.3.1-.3zM12 9a3 3 0 100 6 3 3 0 000-6zm-5 3a5 5 0 1110 0 5 5 0 01-10 0z"}}]}]},Ze=R({name:"BrowseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:o,style:d}=ne(t),s=h(()=>["t-icon","t-icon-browse",o.value]),v=h(()=>de(de({},d.value),a.style)),m=h(()=>({class:s.value,style:v.value,onClick:p=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:p})}}));return()=>te(Xe,m.value)}});const qe=Ze;function me(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,t)}return a}function pe(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?me(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):me(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var Qe={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 23a11 11 0 100-22 11 11 0 000 22zM8.82 7.4L12 10.6l3.18-3.19 1.42 1.42L13.4 12l3.19 3.18-1.42 1.42L12 13.4 8.82 16.6 7.4 15.18 10.6 12 7.4 8.82 8.82 7.4z"}}]},Ye=R({name:"CloseCircleFilledIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:o,style:d}=ne(t),s=h(()=>["t-icon","t-icon-close-circle-filled",o.value]),v=h(()=>pe(pe({},d.value),a.style)),m=h(()=>({class:s.value,style:v.value,onClick:p=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:p})}}));return()=>te(Qe,m.value)}});const en=Ye;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function nn(e,n,a,t){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"value",d=he(),s=d.emit,v=d.vnode,m=j(),p=v.props||{},f=Object.prototype.hasOwnProperty.call(p,"modelValue")||Object.prototype.hasOwnProperty.call(p,"model-value"),r=Object.prototype.hasOwnProperty.call(p,o)||Object.prototype.hasOwnProperty.call(p,$e(o));return f?[n,function(i){s("update:modelValue",i);for(var c=arguments.length,w=new Array(c>1?c-1:0),b=1;b<c;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[i].concat(w))}]:r?[e,function(i){s("update:".concat(o),i);for(var c=arguments.length,w=new Array(c>1?c-1:0),b=1;b<c;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[i].concat(w))}]:(m.value=a,[m,function(i){m.value=i;for(var c=arguments.length,w=new Array(c>1?c-1:0),b=1;b<c;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[i].concat(w))}])}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var W=new Set,tn={warn:function(n,a){console.warn("TDesign ".concat(n," Warn: ").concat(a))},warnOnce:function(n,a){var t="TDesign ".concat(n," Warn: ").concat(a);W.has(t)||(W.add(t),console.warn(t))},error:function(n,a){console.error("TDesign ".concat(n," Error: ").concat(a))},errorOnce:function(n,a){var t="TDesign ".concat(n," Error: ").concat(a);W.has(t)||(W.add(t),console.error(t))},info:function(n,a){console.info("TDesign ".concat(n," Info: ").concat(a))}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function an(e,n){if(!(typeof window>"u")){var a=window&&window.ResizeObserver;if(!!a){var t=null,o=function(){!t||!e.value||(t.unobserve(e.value),t.disconnect(),t=null)},d=function(v){t=new ResizeObserver(n),t.observe(v)};e&&E(e,function(s){o(),s&&d(s)},{immediate:!0,flush:"post"}),we(function(){o()})}}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var rn={align:{type:String,default:"left",validator:function(n){return n?["left","center","right"].includes(n):!0}},allowInputOverMax:Boolean,autoWidth:Boolean,autocomplete:{type:String,default:void 0},autofocus:Boolean,borderless:Boolean,clearable:Boolean,disabled:Boolean,format:{type:Function},inputClass:{type:[String,Object,Array]},label:{type:[String,Function]},maxcharacter:{type:Number},maxlength:{type:[String,Number]},name:{type:String,default:""},placeholder:{type:String,default:void 0},prefixIcon:{type:Function},readonly:Boolean,showClearIconOnEmpty:Boolean,showLimitNumber:Boolean,size:{type:String,default:"medium",validator:function(n){return n?["small","medium","large"].includes(n):!0}},status:{type:String,default:void 0,validator:function(n){return n?["default","success","warning","error"].includes(n):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tips:{type:[String,Function]},type:{type:String,default:"text",validator:function(n){return n?["text","number","url","tel","password","search","submit","hidden"].includes(n):!0}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onCompositionend:Function,onCompositionstart:Function,onEnter:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onValidate:Function,onWheel:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function xe(e){var n=he(),a=h(function(){return n.props.disabled}),t=Oe("formDisabled",Object.create(null)),o=t.disabled;return h(function(){return a.value||(o==null?void 0:o.value)||(e==null?void 0:e.value)||!1})}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var _n=function(){var n=B();return h(function(){var a="".concat(n.value,"-form"),t="".concat(n.value,"-input"),o="".concat(n.value,"-is");return{form:a,label:"".concat(a,"__label"),labelTop:"".concat(a,"__label--top"),inline:"".concat(a,"-inline"),formItem:"".concat(a,"__item"),formItemWithHelp:"".concat(a,"__item-with-help"),formItemWithExtra:"".concat(a,"__item-with-extra"),controls:"".concat(a,"__controls"),controlsContent:"".concat(a,"__controls-content"),status:"".concat(a,"__status"),extra:"".concat(t,"__extra"),help:"".concat(t,"__help"),success:"".concat(o,"-success"),successBorder:"".concat(a,"--success-border"),error:"".concat(o,"-error"),warning:"".concat(o,"-warning")}})},on=function(e){return e.TO_BE_VALIDATED="not",e.SUCCESS="success",e.FAIL="fail",e}(on||{}),In=Symbol("FormProvide"),ln=Symbol("FormItemProvide");/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function un(e){var n=function(v){var m=e.value,p=m.allowInputOverMax,f=m.maxlength,r=m.maxcharacter;if(!(f||r)||p||!v)return v;if(f)return ze(v,f);if(r){var i=ce(v,r);if(Ae(i))return i.characters}},a=h(function(){var s=e.value,v=s.maxlength,m=s.maxcharacter,p=s.value;if(De(p))return String(p);if(v&&m&&tn.warn("Input","Pick one of maxlength and maxcharacter please."),v){var f=p!=null&&p.length?Re(p):0;return"".concat(f,"/").concat(v)}return m?"".concat(ce(p||""),"/").concat(m):""}),t=h(function(){if(a.value){var s=a.value.split("/"),v=Se(s,2),m=v[0],p=v[1];return Number(m)>Number(p)?"error":""}return""}),o=h(function(){var s=e.value.status;return s||t.value}),d=function(){var v,m;(v=(m=e.value).onValidate)===null||v===void 0||v.call(m,{error:t.value?"exceed-maximum":void 0})};return E(t,d),Ce(function(){t.value&&d()}),{tStatus:o,limitNumber:a,getValueByLimitNumber:n}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function U(e,n){return n==="number"?e||e===0?Number(e):void 0:e}function cn(e,n){var a=_e(e),t=a.value,o=a.modelValue,d=j(),s=j(!1),v=j(),m=j(null),p=j(),f=xe(),r=nn(t,o,e.defaultValue,e.onChange),i=Se(r,2),c=i[0],w=i[1],b=j(!1),V=j(!1),S=j(e.type),I=j(null),P=h(function(){return{value:[void 0,null].includes(c.value)?void 0:String(c.value),status:e.status,maxlength:Number(e.maxlength),maxcharacter:e.maxcharacter,allowInputOverMax:e.allowInputOverMax,onValidate:e.onValidate}}),$=un(P),F=$.limitNumber,A=$.getValueByLimitNumber,L=$.tStatus,z=h(function(){return(c.value&&!f.value&&e.clearable&&!e.readonly||e.showClearIconOnEmpty)&&b.value}),D=function(){var u;V.value=!0,(u=I.value)===null||u===void 0||u.focus()},G=function(){var u;V.value=!1,(u=I.value)===null||u===void 0||u.blur()},J=function(u){var l;b.value&&V.value||(d.value=c.value,!e.disabled&&(V.value=!0,(l=e.onFocus)===null||l===void 0||l.call(e,c.value,{e:u})))},X=function(u){var l,y=u.e,N=e.type==="number"?void 0:"";w(N,{e:y,trigger:"clear"}),(l=e.onClear)===null||l===void 0||l.call(e,{e:y})},H=function(u){p.value=u.target},K=function(){var u=S.value==="password"?"text":"password";S.value=u},O=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=I.value;if(!!l){var y=String(u);!l.value||l.value!==y&&(l.value=y)}},k=function(u){var l,y=u.target,N=y.value;e.type!=="number"&&typeof c.value=="string"&&N.length>((l=c.value)===null||l===void 0?void 0:l.length)&&(N=A(N)),w(U(N,e.type),{e:u,trigger:"input"}),ee(function(){O(c.value)})},Z=function(u){var l=u.inputType&&u.inputType==="insertCompositionText",y=u.currentTarget.value;if(l||s.value){v.value=y;return}k(u)},M=function(){var u,l=p.value;if(!l||!l.tagName||!((u=m.value)!==null&&u!==void 0&&u.$el)||!["path","svg"].includes(l.tagName))return!1;for(;l;){var y;if(((y=m.value)===null||y===void 0?void 0:y.$el)===l)return!0;l=l.parentNode}return!1},T=Oe(ln,void 0),q=function(u){if(M())D();else{var l;e.format&&(d.value=typeof c.value=="number"||e.type==="number"?c.value:e.format(c.value)),V.value=!1,(l=e.onBlur)===null||l===void 0||l.call(e,c.value,{e:u}),T==null||T.handleBlur()}},Q=function(u){var l;s.value=!1,v.value="",k(u),(l=e.onCompositionend)===null||l===void 0||l.call(e,String(c.value),{e:u})},Y=function(u){var l;s.value=!0;var y=u.currentTarget.value;v.value=y,(l=e.onCompositionstart)===null||l===void 0||l.call(e,String(c.value),{e:u})},x=function(u){var l,y;(l=I.value)===null||l===void 0||l.focus(),(y=e.onClick)===null||y===void 0||y.call(e,{e:u})};return E(function(){return e.autofocus},function(g){g===!0&&ee(function(){var u;(u=I.value)===null||u===void 0||u.focus()})},{immediate:!0}),E(c,function(g,u){var l=e.type==="number";u===void 0&&e.format&&typeof g!="number"&&!l?d.value=e.format(g):d.value=g;var y=typeof g=="number"?g:A(g);y!==g&&!l&&w(y,{trigger:"initial"})},{immediate:!0}),E(function(){return e.type},function(g){S.value=g},{immediate:!0}),n({inputRef:I,focus:D,blur:G}),{isHover:b,focused:V,renderType:S,showClear:z,inputRef:I,clearIconRef:m,inputValue:d,isComposition:s,compositionValue:v,limitNumber:F,tStatus:L,emitFocus:J,formatAndEmitBlur:q,onHandleCompositionend:Q,onHandleCompositionstart:Y,onRootClick:x,emitPassword:K,handleInput:Z,emitClear:X,onClearIconMousedown:H,innerValue:c}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function sn(e,n){var a=function(r){if(!e.disabled){var i=r.code,c=U(r.currentTarget.value,e.type);if(/enter/i.test(i)||/enter/i.test(r.key)){var w;(w=e.onEnter)===null||w===void 0||w.call(e,c,{e:r})}else{var b;(b=e.onKeydown)===null||b===void 0||b.call(e,c,{e:r})}}},t=function(r){var i;if(!e.disabled){var c=U(r.currentTarget.value,e.type);(i=e.onKeyup)===null||i===void 0||i.call(e,c,{e:r})}},o=function(r){var i;if(!e.disabled){var c=U(r.currentTarget.value,e.type);(i=e.onKeypress)===null||i===void 0||i.call(e,c,{e:r})}},d=function(r){var i;if(!e.disabled){var c=r.clipboardData||window.clipboardData;(i=e.onPaste)===null||i===void 0||i.call(e,{e:r,pasteValue:c==null?void 0:c.getData("text/plain")})}},s=function(r){return n.value=r},v=function(r){var i;return(i=e.onWheel)===null||i===void 0?void 0:i.call(e,{e:r})},m=function(r){var i;s(!0),(i=e.onMouseenter)===null||i===void 0||i.call(e,{e:r})},p=function(r){var i;s(!1),(i=e.onMouseleave)===null||i===void 0||i.call(e,{e:r})};return{isHover:n,handleKeydown:a,handleKeyUp:t,handleKeypress:o,onHandlePaste:d,onHandleMousewheel:v,onInputMouseenter:m,onInputMouseleave:p}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var vn=100;function fn(e,n,a){var t=_e(e),o=t.autoWidth,d=t.placeholder,s=j(null),v=j(null),m=function(){if(!(!s.value||!n.value)){var r=s.value.getBoundingClientRect(),i=r.width;n.value.style.width="".concat(i||0,"px")}};an(n,function(){o.value&&(v.value=setTimeout(function(){m(),clearTimeout(v.value)},vn))}),we(function(){clearTimeout(v.value)});var p=function(){E([a,d],function(){!o.value||ee(function(){m()})},{immediate:!0})};return Ce(function(){o.value&&p()}),{inputPreRef:s}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var dn=["isHover","tStatus","inputRef","renderType","showClear","focused","inputValue","isComposition","compositionValue","innerValue","limitNumber"];function ge(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,t)}return a}function ye(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?ge(Object(a),!0).forEach(function(t){_(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ge(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function be(e){var n={};return Object.keys(e).forEach(function(a){We(e[a])||(n[a]=e[a])}),n}var mn=R({name:"TInput",props:ye(ye({},rn),{},{showInput:{type:Boolean,default:!0},keepWrapperWidth:{type:Boolean,default:!1}}),setup:function(n,a){var t=a.expose,o=Le("input"),d=o.globalConfig,s=Ee({BrowseIcon:qe,BrowseOffIcon:Je,CloseCircleFilledIcon:en}),v=s.BrowseIcon,m=s.BrowseOffIcon,p=s.CloseCircleFilledIcon,f=xe(),r=B("input"),i=B("input__wrap"),c=B("input__tips"),w=Ve(),b=w.STATUS,V=w.SIZE,S=B(),I=Ie(),P=cn(n,t),$=P.isHover,F=P.tStatus,A=P.inputRef,L=P.renderType,z=P.showClear,D=P.focused,G=P.inputValue,J=P.isComposition,X=P.compositionValue,H=P.innerValue,K=P.limitNumber,O=Ke(P,dn),k=fn(n,A,H),Z=k.inputPreRef,M=sn(n,$),T=h(function(){var x;return(x=n.placeholder)!==null&&x!==void 0?x:d.value.placeholder}),q=h(function(){var x;return be({autofocus:n.autofocus,disabled:f.value,readonly:n.readonly,placeholder:T.value,maxlength:!n.allowInputOverMax&&n.maxlength||void 0,name:n.name||void 0,type:L.value,autocomplete:(x=n.autocomplete)!==null&&x!==void 0?x:d.value.autocomplete||void 0,unselectable:n.readonly?"on":void 0})}),Q=h(function(){return[i.value,_({},"".concat(r.value,"--auto-width"),n.autoWidth&&!n.keepWrapperWidth)]}),Y=be({onFocus:O.emitFocus,onBlur:O.formatAndEmitBlur,onKeydown:M.handleKeydown,onKeyup:M.handleKeyUp,onKeypress:M.handleKeypress,onPaste:M.onHandlePaste,onCompositionend:O.onHandleCompositionend,onCompositionstart:O.onHandleCompositionstart});return function(){var x,g,u=I("prefixIcon"),l=I("suffixIcon"),y=I("passwordIcon"),N=I("label",{silent:!0}),re=I("suffix"),oe=K.value&&n.showLimitNumber?C("div",{class:["".concat(S.value,"-input__limit-number"),_({},"".concat(S.value,"-is-disabled"),f.value)]},[K.value]):null,le=N?C("div",{class:"".concat(r.value,"__prefix")},[N]):null,ue=re||oe?C("div",{class:"".concat(r.value,"__suffix")},[re,oe]):null;n.type==="password"&&(L.value==="password"?l=C(m,{class:"".concat(r.value,"__suffix-clear"),onClick:O.emitPassword},null):L.value==="text"&&(l=C(v,{class:"".concat(r.value,"__suffix-clear"),onClick:O.emitPassword},null))),z.value&&(n.type==="password"?y=C(p,{ref:O.clearIconRef,class:"".concat(r.value,"__suffix-clear"),onClick:O.emitClear,onMousedown:O.onClearIconMousedown},null):l=C(p,{ref:O.clearIconRef,class:"".concat(r.value,"__suffix-clear"),onClick:O.emitClear,onMousedown:O.onClearIconMousedown},null));var je=[r.value,n.inputClass,_(_(_(_(_(_(_(_(_({},V.value[n.size],n.size!=="medium"),b.value.disabled,f.value),b.value.focused,f.value?!1:D.value),"".concat(S.value,"-is-").concat(F.value),F.value&&F.value!=="default"),"".concat(S.value,"-align-").concat(n.align),n.align!=="left"),"".concat(S.value,"-is-readonly"),n.readonly),"".concat(r.value,"--prefix"),u||le),"".concat(r.value,"--suffix"),l||ue),"".concat(r.value,"--focused"),D.value)],ie=I("tips"),Me=[c.value,"".concat(S.value,"-tips"),"".concat(S.value,"-is-").concat(F.value||"default")];return Fe(C("div",{class:Q.value},[C("div",{class:je,onClick:O.onRootClick,onMouseenter:M.onInputMouseenter,onMouseleave:M.onInputMouseleave,onWheel:M.onHandleMousewheel},[u?C("span",{class:["".concat(r.value,"__prefix"),"".concat(r.value,"__prefix-icon")]},[u]):null,le,C("input",Be({class:["".concat(r.value,"__inner"),_({},"".concat(r.value,"--soft-hidden"),!n.showInput)]},q.value,Y,{ref:A,value:J.value?(x=X.value)!==null&&x!==void 0?x:"":(g=G.value)!==null&&g!==void 0?g:"",onInput:function(Ne){return O.handleInput(Ne)}}),null),n.autoWidth&&C("span",{ref:Z,class:"".concat(S.value,"-input__input-pre")},[H.value||T.value]),ue,y?C("span",{class:["".concat(r.value,"__suffix"),"".concat(r.value,"__suffix-icon"),"".concat(r.value,"__clear")]},[y]):null,l?C("span",{class:["".concat(r.value,"__suffix"),"".concat(r.value,"__suffix-icon"),_({},"".concat(r.value,"__clear"),z.value)]},[l]):null]),ie&&C("div",{class:Me},[ie])]),[[Te,n.type!=="hidden"]])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var pn={separate:Boolean};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var gn=R({name:"TInputGroup",props:pn,setup:function(n){var a=B("input-group"),t=Ie(),o=h(function(){return[a.value,_({},"".concat(a.value,"--separate"),n.separate)]});return function(){return C("div",{class:o.value},[t("default")])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Pn=Pe(mn);Pe(gn);export{qe as B,en as C,In as F,Pn as I,on as V,Ke as _,ln as a,nn as b,an as c,xe as d,un as e,We as i,tn as l,_n as u};