k5web/assets/index.2541b16e.js
2024-07-24 11:01:29 +08:00

66 lines
20 KiB
JavaScript

import{O as ne,P as te,Q as ae,S as Ne,b as B,l as Fe,T as Te,U as ce,n as he,V as Be,W as Ee,d as $e,X as Ae,c as Le,f as _,i as we,w as Oe}from"./index.1c489121.js";import{d as R,c as h,f as j,g as Ce,w as E,b as _e,i as Ie,o as Pe,t as Se,n as ee,aI as C,a$ as De,b0 as Re,aV as ze}from"./arco.c29bba08.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function He(e,n){if(e==null)return{};var a={},t=Object.keys(e),l,d;for(d=0;d<t.length;d++)l=t[d],!(n.indexOf(l)>=0)&&(a[l]=e[l]);return a}function Ke(e,n){if(e==null)return{};var a=He(e,n),t,l;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);for(l=0;l<d.length;l++)t=d[l],!(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(l){return Object.getOwnPropertyDescriptor(e,l).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:l,style:d}=ne(t),s=h(()=>["t-icon","t-icon-browse-off",l.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 Xe=Ge;function fe(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).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 Je={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:l,style:d}=ne(t),s=h(()=>["t-icon","t-icon-browse",l.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(Je,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(l){return Object.getOwnPropertyDescriptor(e,l).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:l,style:d}=ne(t),s=h(()=>["t-icon","t-icon-close-circle-filled",l.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 l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"value",d=Ce(),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,l)||Object.prototype.hasOwnProperty.call(p,Ne(l));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(l),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,l=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){l(),s&&d(s)},{immediate:!0,flush:"post"}),_e(function(){l()})}}}/**
* 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=Ce(),a=h(function(){return n.props.disabled}),t=Ie("formDisabled",Object.create(null)),l=t.disabled;return h(function(){return a.value||(l==null?void 0:l.value)||(e==null?void 0:e.value)||!1})}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var wn=function(){var n=B();return h(function(){var a="".concat(n.value,"-form"),t="".concat(n.value,"-input"),l="".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(l,"-success"),successBorder:"".concat(a,"--success-border"),error:"".concat(l,"-error"),warning:"".concat(l,"-warning")}})},ln=function(e){return e.TO_BE_VALIDATED="not",e.SUCCESS="success",e.FAIL="fail",e}(ln||{}),On=Symbol("FormProvide"),on=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 Be(v,f);if(r){var i=ce(v,r);if(Ee(i))return i.characters}},a=h(function(){var s=e.value,v=s.maxlength,m=s.maxcharacter,p=s.value;if(Fe(p))return String(p);if(v&&m&&tn.warn("Input","Pick one of maxlength and maxcharacter please."),v){var f=p!=null&&p.length?Te(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=he(s,2),m=v[0],p=v[1];return Number(m)>Number(p)?"error":""}return""}),l=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),Pe(function(){t.value&&d()}),{tStatus:l,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=Se(e),t=a.value,l=a.modelValue,d=j(),s=j(!1),v=j(),m=j(null),p=j(),f=xe(),r=nn(t,l,e.defaultValue,e.onChange),i=he(r,2),c=i[0],w=i[1],b=j(!1),N=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;N.value=!0,(u=I.value)===null||u===void 0||u.focus()},G=function(){var u;N.value=!1,(u=I.value)===null||u===void 0||u.blur()},X=function(u){var o;b.value&&N.value||(d.value=c.value,!e.disabled&&(N.value=!0,(o=e.onFocus)===null||o===void 0||o.call(e,c.value,{e:u})))},J=function(u){var o,y=u.e,V=e.type==="number"?void 0:"";w(V,{e:y,trigger:"clear"}),(o=e.onClear)===null||o===void 0||o.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]:"",o=I.value;if(!!o){var y=String(u);!o.value||o.value!==y&&(o.value=y)}},k=function(u){var o,y=u.target,V=y.value;e.type!=="number"&&typeof c.value=="string"&&V.length>((o=c.value)===null||o===void 0?void 0:o.length)&&(V=A(V)),w(U(V,e.type),{e:u,trigger:"input"}),ee(function(){O(c.value)})},Z=function(u){var o=u.inputType&&u.inputType==="insertCompositionText",y=u.currentTarget.value;if(o||s.value){v.value=y;return}k(u)},M=function(){var u,o=p.value;if(!o||!o.tagName||!((u=m.value)!==null&&u!==void 0&&u.$el)||!["path","svg"].includes(o.tagName))return!1;for(;o;){var y;if(((y=m.value)===null||y===void 0?void 0:y.$el)===o)return!0;o=o.parentNode}return!1},T=Ie(on,void 0),Q=function(u){if(M())D();else{var o;e.format&&(d.value=typeof c.value=="number"||e.type==="number"?c.value:e.format(c.value)),N.value=!1,(o=e.onBlur)===null||o===void 0||o.call(e,c.value,{e:u}),T==null||T.handleBlur()}},q=function(u){var o;s.value=!1,v.value="",k(u),(o=e.onCompositionend)===null||o===void 0||o.call(e,String(c.value),{e:u})},Y=function(u){var o;s.value=!0;var y=u.currentTarget.value;v.value=y,(o=e.onCompositionstart)===null||o===void 0||o.call(e,String(c.value),{e:u})},x=function(u){var o,y;(o=I.value)===null||o===void 0||o.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 o=e.type==="number";u===void 0&&e.format&&typeof g!="number"&&!o?d.value=e.format(g):d.value=g;var y=typeof g=="number"?g:A(g);y!==g&&!o&&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:N,renderType:S,showClear:z,inputRef:I,clearIconRef:m,inputValue:d,isComposition:s,compositionValue:v,limitNumber:F,tStatus:L,emitFocus:X,formatAndEmitBlur:Q,onHandleCompositionend:q,onHandleCompositionstart:Y,onRootClick:x,emitPassword:K,handleInput:Z,emitClear:J,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})}},l=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:l,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=Se(e),l=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(){l.value&&(v.value=setTimeout(function(){m(),clearTimeout(v.value)},vn))}),_e(function(){clearTimeout(v.value)});var p=function(){E([a,d],function(){!l.value||ee(function(){m()})},{immediate:!0})};return Pe(function(){l.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(l){return Object.getOwnPropertyDescriptor(e,l).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,l=$e("input"),d=l.globalConfig,s=Ae({BrowseIcon:Qe,BrowseOffIcon:Xe,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=Le(),b=w.STATUS,N=w.SIZE,S=B(),I=we(),P=cn(n,t),$=P.isHover,F=P.tStatus,A=P.inputRef,L=P.renderType,z=P.showClear,D=P.focused,G=P.inputValue,X=P.isComposition,J=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"),o=I("suffixIcon"),y=I("passwordIcon"),V=I("label",{silent:!0}),re=I("suffix"),le=K.value&&n.showLimitNumber?C("div",{class:["".concat(S.value,"-input__limit-number"),_({},"".concat(S.value,"-is-disabled"),f.value)]},[K.value]):null,oe=V?C("div",{class:"".concat(r.value,"__prefix")},[V]):null,ue=re||le?C("div",{class:"".concat(r.value,"__suffix")},[re,le]):null;n.type==="password"&&(L.value==="password"?o=C(m,{class:"".concat(r.value,"__suffix-clear"),onClick:O.emitPassword},null):L.value==="text"&&(o=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):o=C(p,{ref:O.clearIconRef,class:"".concat(r.value,"__suffix-clear"),onClick:O.emitClear,onMousedown:O.onClearIconMousedown},null));var je=[r.value,n.inputClass,_(_(_(_(_(_(_(_(_({},N.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||oe),"".concat(r.value,"--suffix"),o||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 De(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,oe,C("input",ze({class:["".concat(r.value,"__inner"),_({},"".concat(r.value,"--soft-hidden"),!n.showInput)]},Q.value,Y,{ref:A,value:X.value?(x=J.value)!==null&&x!==void 0?x:"":(g=G.value)!==null&&g!==void 0?g:"",onInput:function(Ve){return O.handleInput(Ve)}}),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,o?C("span",{class:["".concat(r.value,"__suffix"),"".concat(r.value,"__suffix-icon"),_({},"".concat(r.value,"__clear"),z.value)]},[o]):null]),ie&&C("div",{class:Me},[ie])]),[[Re,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=we(),l=h(function(){return[a.value,_({},"".concat(a.value,"--separate"),n.separate)]});return function(){return C("div",{class:l.value},[t("default")])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Cn=Oe(mn);Oe(gn);export{Qe as B,en as C,On as F,Cn as I,ln as V,Ke as _,on as a,nn as b,an as c,xe as d,un as e,We as i,tn as l,wn as u};