2024-06-02 05:14:46 +00:00
import { u as ie , r as ue , _ as ce , o as Oa , i as Ta , h as We , a as Te , j as Ra , k as Na , C as Qe , E as Xe } from "./dialog.ca99411f.js" ; import { d as J , c as d , aI as l , aK as Pe , f as Z , w as de , t as ye , i as Va , n as Ke , o as et , bB as re , bs as Aa , bD as wa , bx as Ha , bn as Ka , bo as qa , bC as Xa , b as Za , aU as tt , h as Ga } from "./arco.f43727df.js" ; import { J as at , K as xe , A as ve , B as Fe , w as Me , af as _a , z as Ue , M as Ce , al as Ya , G as Ze , y as it } from "./index.b8b6f641.js" ; import { I as Ja , u as fe , i as Ye , _ as he , c as T , a as ut , C as Wa , b as Pa , L as Re , m as Qa , y as en , f as oe } from "./index.86360840.js" ; import { l as _e , c as nt , d as Ca , a as tn , h as an , b as nn , C as rn , B as Fa } from "./form-model.bddde933.js" ; import { v as ln , o as on , b as un , T as Ge , w as cn , x as sn , y as vn , c as dn , m as fn , z as gn , B as mn , i as pn , u as hn , D as yn , q as bn } from "./dep-6deb4e3a.b70d8bce.js" ; import { L as rt } from "./index.bed99926.js" ; import { B as pe } from "./index.823048b7.js" ; import { D as On } from "./index.9352d28a.js" ; function ct ( t , e ) { var a = Object . keys ( t ) ; if ( Object . getOwnPropertySymbols ) { var n = Object . getOwnPropertySymbols ( t ) ; e && ( n = n . filter ( function ( r ) { return Object . getOwnPropertyDescriptor ( t , r ) . enumerable } ) ) , a . push . apply ( a , n ) } return a } function st ( t ) { for ( var e = 1 ; e < arguments . length ; e ++ ) { var a = arguments [ e ] != null ? arguments [ e ] : { } ; e % 2 ? ct ( Object ( a ) , ! 0 ) . forEach ( function ( n ) { ce ( t , n , a [ n ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( t , Object . getOwnPropertyDescriptors ( a ) ) : ct ( Object ( a ) ) . forEach ( function ( n ) { Object . defineProperty ( t , n , Object . getOwnPropertyDescriptor ( a , n ) ) } ) } return t } var wn = { tag : "svg" , attrs : { fill : "none" , viewBox : "0 0 24 24" , width : "1em" , height : "1em" } , children : [ { tag : "path" , attrs : { fill : "currentColor" , d : "M7.5 1h9v3H22v2h-2.03l-.5 17H4.53l-.5-17H2V4h5.5V1zm2 3h5V3h-5v1zM6.03 6l.44 15h11.06l.44-15H6.03zM13 8v11h-2V8h2z" } } ] } , _n = J ( { name : "DeleteIcon" , props : { size : { type : String } , onClick : { type : Function } } , setup ( t , e ) { var { attrs : a } = e , n = d ( ( ) => t . size ) , { className : r , style : o } = ie ( n ) , s = d ( ( ) => [ "t-icon" , "t-icon-delete" , r . value ] ) , c = d ( ( ) => st ( st ( { } , o . value ) , a . style ) ) , i = d ( ( ) => ( { class : s . value , style : c . value , onClick : v => { var u ; return ( u = t . onClick ) === null || u === void 0 ? void 0 : u . call ( t , { e : v } ) } } ) ) ; return ( ) => ue ( wn , i . value ) } } ) ; const Sa = _n ; function vt ( t , e ) { var a = Object . keys ( t ) ; if ( Object . getOwnPropertySymbols ) { var n = Object . getOwnPropertySymbols ( t ) ; e && ( n = n . filter ( function ( r ) { return Object . getOwnPropertyDescriptor ( t , r ) . enumerable } ) ) , a . push . apply ( a , n ) } return a } function dt ( t ) { for ( var e = 1 ; e < arguments . length ; e ++ ) { var a = arguments [ e ] != null ? arguments [ e ] : { } ; e % 2 ? vt ( Object ( a ) , ! 0 ) . forEach ( function ( n ) { ce ( t , n , a [ n ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( t , Object . getOwnPropertyDescriptors ( a ) ) : vt ( Object ( a ) ) . forEach ( function ( n ) { Object . defineProperty ( t , n , Object . getOwnPropertyDescriptor ( a , n ) ) } ) } return t } var Pn = { tag : "svg" , attrs : { fill : "none" , viewBox : "0 0 24 24" , width : "1em" , height : "1em" } , children : [ { tag : "path" , attrs : { fill : "currentColor" , d : "M13 3v9.59l3.5-3.5 1.41 1.41L12 16.41 6.09 10.5 7.5 9.09l3.5 3.5V3h2zM4.5 14v5h15v-5h2v7h-19v-7h2z" } } ] } , Cn = J ( { name : "DownloadIcon" , props : { size : { type : String } , onClick : { type : Function } } , setup ( t , e ) { var { attrs : a } = e , n = d ( ( ) => t . size ) , { className : r , style : o } = ie ( n ) , s = d ( ( ) => [ "t-icon" , "t-icon-download" , r . value ] ) , c = d ( ( ) => dt ( dt ( { } , o . value ) , a . style ) ) , i = d ( ( ) => ( { class : s . value , style : c . value , onClick : v => { var u ; return ( u = t . onClick ) === null || u === void 0 ? void 0 : u . call ( t , { e : v } ) } } ) ) ; return ( ) => ue ( Pn , i . value ) } } ) ; const Fn = Cn ; function ft ( t , e ) { var a = Object . keys ( t ) ; if ( Object . getOwnPropertySymbols ) { var n = Object . getOwnPropertySymbols ( t ) ; e && ( n = n . filter ( function ( r ) { return Object . getOwnPropertyDescriptor ( t , r ) . enumerable } ) ) , a . push . apply ( a , n ) } return a } function gt ( t ) { for ( var e = 1 ; e < arguments . length ; e ++ ) { var a = arguments [ e ] != null ? arguments [ e ] : { } ; e % 2 ? ft ( Object ( a ) , ! 0 ) . forEach ( function ( n ) { ce ( t , n , a [ n ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( t , Object . getOwnPropertyDescriptors ( a ) ) : ft ( Object ( a ) ) . forEach ( function ( n ) { Object . defineProperty ( t , n , Object . getOwnPropertyDescriptor ( a , n ) ) } ) } return t } var Sn = { tag : "svg" , attrs : { fill : "none" , viewBox : "0 0 24 24" , width : "1em" , height : "1em" } , children : [ { tag : "path" , attrs : { fill : "currentColor" , d : " M3 1 h12 . 41
2024-05-26 17:09:50 +00:00
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var fr={align:{type:String,validator:function(e){return e?["start","end","center","baseline"].includes(e):!0}},breakLine:Boolean,direction:{type:String,default:"horizontal",validator:function(e){return e?["vertical","horizontal"].includes(e):!0}},separator:{type:[String,Function]},size:{type:[String,Number,Array],default:"medium"}};/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /function At(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function Ht(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?At(Object(a),!0).forEach(function(n){T(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):At(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var Kt={small:"8px",medium:"16px",large:"24px"},gr=Ja(),mr=J({name:"TSpace",props:Ht(Ht({},fr),{},{forceFlexGapPolyfill:Boolean}),setup:function(e){var a=fe("space"),n=ve(),r=ln(),o=d(function(){return e.forceFlexGapPolyfill||gr}),s=d(function(){var i="";at(e.size)?i=e.size.map(function(w){return Ye(w)?"".concat(w,"px"):xe(w)&&Kt[w]||w}).join(" "):xe(e.size)?i=Kt[e.size]||e.size:Ye(e.size)&&(i="".concat(e.size,"px"));var v={};if(o.value){var u=i.split(" "),f=he(u,2),y=f[0],m=f[1];v["--td-space-column-gap"]=y,v["--td-space-row-gap"]=m||y}else v.gap=i;return v});function c(){var i=r(),v=n("separator");return i.map(function(u,f){var y=f+1!==i.length&&v;return l(Pe,null,[l("div",{class:"".concat(a.value,"-item")},[u]),y&&l("div",{class:"".concat(a.value,"-item-separator")},[v])])})}return function(){var i=["".concat(a.value),T(T(T(T({},"".concat(a.value,"-align-").concat(e.align),e.align),"".concat(a.value,"-").concat(e.direction),e.direction),"".concat(a.value,"--break-line"),e.breakLine),"".concat(a.value,"--polyfill"),o.value)];return l("div",{class:i,style:s.value},[c()])}}});/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var qt=Fe(mr);/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var pr=/ ( . png | . jpg | . jpeg | . jpe | . webp | . avif | . svg | . gif | . bmp ) / i , hr = /(.png|.jpg|.jpeg|.jpe|.webp|.avif|.svg|.gif|.bmp|.dwg|.dxf|.svf|.tif|.tiff|.arw)/i , yr = /(.pdf)/i , br = /(.xlsx|.xls|.csv|.xlc|.xlm|.xlt|.xlw)/i , Or = /(.dox|docx|.document|.wps|.wdb|.msword)/i , wr = /(.ppt|.pptx|.key)/i , Da = /(.avi|.mp4|.wmv|.mpg|.mpeg|.mov|.rm|.ram|.swf|.flv|.rmvb|.flash|.mid|.3gp)/i , _r = /(.mp2|.mp3|.mp4|.ogg|.3gpp|.ac3|.au)/i , Xt = { "audio/*" : _r , "video/*" : Da , "image/*" : hr , ".ico" : /image\/vnd.microsoft.icon/i , ".doc" : /application\/msword/i , ".docx" : /application\/vnd.openxmlformats-officedocument.wordprocessingml.document/i , ".xls" : /application\/vnd.ms-excel/i , ".xlsx" : /application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet/i , ".ppt" : /application\/vnd.ms-powerpoint/i , ".pptx" : /application\/vnd.openxmlformats-officedocument.presentationml.presentation/i , ".vsd" : /application\/vnd.visio/i , ".txt" : /text\/plain/i , ".abw" : /application\/x-abiword/i , ".avi" : /video\/x-msvideo/i , ".azw" : /application\/vnd.amazon.ebook/i , ".bin" : /application\/octet-stream/i , ".cda" : /application\/x-cdf/i , ".mpkg" : /application\/vnd.apple.installer+xml/i , ".odp" : /application\/vnd.oasis.opendocument.presentation/i , ".ods" : /application\/vnd.oasis.opendocument.spreadsheet/i , ".odt" : /application\/vnd.oasis.opendocument.text/i , ".oga" : /audio\/ogg/i , ".ogv" : /video\/ogg/i , ".ogx" : /application\/ogg/i } , me = { B : 1 , KB : 1024 , MB : 1048576 , GB : 1073741824 } ; function Pr ( t ) { return t < me . KB ? "" . concat ( t , " Bytes" ) : t >= me . KB && t < me . MB ? "" . concat ( ( t / me . KB ) . toFixed ( 1 ) , " KB" ) : t >= me . MB && t < me . GB ? "" . concat ( ( t / me . MB ) . toFixed ( 1 ) , " MB" ) : t >= me . GB ? "" . concat ( ( t / me . GB ) . toFixed ( 1 ) , " GB" ) : "" } function za ( ) { var t = arguments . length > 0 && arguments [ 0 ] !== void 0 ? arguments [ 0 ] : ! 1 , e = new Date , a = e . getMonth ( ) + 1 ; a = a < 10 ? "0" . concat ( a ) : a ; var n = "" . concat ( e . getFullYear ( ) , "-" ) . concat ( a , "-" ) . concat ( e . getDate ( ) ) , r = "" . concat ( e . getHours ( ) , ":" ) . concat ( e . getMinutes ( ) , ":" ) . concat ( e . getSeconds ( ) ) ; return t ? [ n , r ] . join ( " " ) : n } function Ee ( t ) { var e = arguments . length > 1 && arguments [ 1 ] !== void 0 ? arguments [ 1 ] : 5 , a = arguments . length > 2 && arguments [ 2 ] !== void 0 ? arguments [ 2 ] : 7 , n = t , r = 0 , o = 0 ; if ( ! n ) return "" ; for ( var s = 0 ; s < n . length ; s ++ ) { var c = n [ s ] , i = escape ( c ) . indexOf ( "%u" ) === 0 ; s < e * 2 && r < e ? i ? r += 1 : r += 2 : s > s - a && o < a && ( i ? o += 1 : o += 2 ) } return n . replace ( new RegExp ( "^(.{" . concat ( r , "})(.+)(.{" ) . concat ( o , "})$" ) ) , "$1\u2026$3" ) } function Cr ( t ) { return t < 1024 ? "" . concat ( t , " Bytes" ) : t >= 1024 && t < 1048576 ? "" . concat ( ( t / 1024 ) . toFixed ( 1 ) , " KB" ) : t >= 1048576 ? "" . concat ( ( t / 1048576 ) . toFixed ( 1 ) , " MB" ) : "" } function Fr ( t , e , a ) { var n = [ "B" , "KB" , "MB" , "GB" ] , r = 1 , o = n . indexOf ( a ) ; o === - 1 && ( _e . warn ( "Upload" , "`sizeLimit.unit` can only be one of " . concat ( n . join ( ) ) ) , o = r ) ; var s = me [ a ] ; return t > e * s } function Sr ( t ) { return new Promise ( function ( e ) { if ( ! t ) { e ( "" ) ; return } var a = new FileReader ; a . readAsDataURL ( t ) , a . onload = function ( n ) { var r ; e ( ( r = n . target ) === null || r === void 0 ? void 0 : r . result ) } } ) } function jr ( t , e , a ) { var n = e || a ; if ( ! t ) return ! 0 ; if ( ! n ) return ! 1 ; for ( var r = t . split ( "," ) . map ( function ( v ) { return v . trim ( ) } ) , o = 0 , s = r . length ; o < s ; o ++ ) { var c = r [ o ] ; if ( Xt [ c ] && Xt [ c ] . test ( n ) ) return ! 0 ; var i = new RegExp ( c , "i" ) ; if ( i . test ( n ) ) return ! 0 } return ! 1 } function Ea ( t ) { for ( var e = arguments . length > 1 && arguments [ 1 ] !== void 0 ? arguments [ 1 ] : "" , a = [ ] , n = 0 ; n < t . length ; n ++ ) jr ( e , t [ n ] . type , t [ n ] . name ) && a . push ( t [ n ] ) ; return a } / * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /function qe(t){var e=Z("");return de([t],function(a,n){var r=he(a,1),o=r[0],s=he(n,1),c=s[0];if(c!==o){if(typeof o=="string"){e.value=o;return}Sr(o).then(function(i){e.value=i})}},{immediate:!0}),{previewUrl:e}}/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / v a r g e , x r = `
min - height : 0 ! important ;
max - height : none ! important ;
height : 0 ! important ;
visibility : hidden ! important ;
overflow - y : hidden ! important ;
position : absolute ! important ;
z - index : - 1000 ! important ;
top : 0 ! important ;
right : 0 ! important
` ,Ir=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Dr(t){if(!(typeof window>"u")){var e=window.getComputedStyle(t),a=e.getPropertyValue("box-sizing")||e.getPropertyValue("-moz-box-sizing")||e.getPropertyValue("-webkit-box-sizing"),n=parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),r=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width")),o=Ir.map(function(s){return"".concat(s,":").concat(e.getPropertyValue(s))}).join(";");return{sizingStyle:o,paddingSize:n,borderSize:r,boxSizing:a}}}function Zt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;ge||(ge=document.createElement("textarea"),document.body.appendChild(ge));var n=Dr(t),r=n.paddingSize,o=n.borderSize,s=n.boxSizing,c=n.sizingStyle;ge.setAttribute("style","".concat(c,";").concat(xr)),ge.value=t.value||t.placeholder||"";var i=ge.scrollHeight,v={};s==="border-box"?i+=o:s==="content-box"&&(i-=r),ge.value="";var u=ge.scrollHeight-r;if(e!==null){var f=u*e;s==="border-box"&&(f=f+r+o),i=Math.max(f,i),v.minHeight="".concat(f,"px")}if(a!==null){var y=u*a;s==="border-box"&&(y=y+r+o),i=Math.min(y,i)}return v.height="".concat(i,"px"),ge.parentNode&&ge.parentNode.removeChild(ge),ge=null,v}/**
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var zr={allowInputOverMax:{type:Boolean,default:!1},autofocus:Boolean,autosize:{type:[Boolean,Object],default:!1},disabled:Boolean,maxcharacter:{type:Number},maxlength:{type:[Number,String]},name:{type:String,default:""},placeholder:{type:String,default:void 0},readonly:Boolean,status:{type:String,validator:function(e){return["default","success","warning","error"].includes(e)}},tips:{type:[String,Function]},value:{type:[String,Number]},modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onValidate:Function};/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n G t ( t , e ) { v a r a = O b j e c t . k e y s ( t ) ; i f ( O b j e c t . g e t O w n P r o p e r t y S y m b o l s ) { v a r n = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( t ) ; e & & ( n = n . f i l t e r ( f u n c t i o n ( r ) { r e t u r n O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , r ) . e n u m e r a b l e } ) ) , a . p u s h . a p p l y ( a , n ) } r e t u r n a } f u n c t i o n E r ( t ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r a = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? G t ( O b j e c t ( a ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( n ) { T ( t , n , a [ n ] ) } ) : O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ? O b j e c t . d e f i n e P r o p e r t i e s ( t , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ( a ) ) : G t ( O b j e c t ( a ) ) . f o r E a c h ( f u n c t i o n ( n ) { O b j e c t . d e f i n e P r o p e r t y ( t , n , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( a , n ) ) } ) } r e t u r n t } f u n c t i o n Y t ( t ) { v a r e = { } ; r e t u r n O b j e c t . k e y s ( t ) . f o r E a c h ( f u n c t i o n ( a ) { n n ( t [ a ] ) | | ( e [ a ] = t [ a ] ) } ) , e } v a r U r = J ( { n a m e : " T T e x t a r e a " , i n h e r i t A t t r s : ! 1 , p r o p s : E r ( { } , z r ) , s e t u p : f u n c t i o n ( e , a ) { v a r n = a . a t t r s , r = a . e x p o s e , o = f e ( ) , s = f e ( " t e x t a r e a " ) , c = d ( f u n c t i o n ( ) { r e t u r n " " . c o n c a t ( s . v a l u e , " _ _ t i p s " ) } ) , i = d ( f u n c t i o n ( ) { r e t u r n " " . c o n c a t ( s . v a l u e , " _ _ l i m i t " ) } ) , v = y e ( e ) , u = v . v a l u e , f = v . m o d e l V a l u e , y = n t ( u , f , e . d e f a u l t V a l u e , e . o n C h a n g e ) , m = h e ( y , 2 ) , w = m [ 0 ] , N = m [ 1 ] , _ = C a ( ) , M = Z ( { } ) , I = Z ( ) , P = Z ( ! 1 ) , k = Z ( ! 1 ) , S = f u n c t i o n ( ) { v a r g ; r e t u r n ( g = I . v a l u e ) = = = n u l l | | g = = = v o i d 0 ? v o i d 0 : g . f o c u s ( ) } , b = f u n c t i o n ( ) { v a r g ; r e t u r n ( g = I . v a l u e ) = = = n u l l | | g = = = v o i d 0 ? v o i d 0 : g . b l u r ( ) } , F = f u n c t i o n ( ) { v a r g ; i f ( e . a u t o s i z e = = = ! 0 ) M . v a l u e = Z t ( I . v a l u e ) ; e l s e i f ( e . a u t o s i z e & & M e ( e . a u t o s i z e ) = = = " o b j e c t " ) { v a r x = e . a u t o s i z e , H = x . m i n R o w s , K = x . m a x R o w s ; M . v a l u e = Z t ( I . v a l u e , H , K ) } e l s e n . r o w s ? M . v a l u e = { h e i g h t : " a u t o " , m i n H e i g h t : " a u t o " } : n . s t y l e & & ( g = I . v a l u e ) ! = = n u l l & & g ! = = v o i d 0 & & ( g = g . s t y l e ) ! = = n u l l & & g ! = = v o i d 0 & & g . h e i g h t & & ( M . v a l u e = { h e i g h t : I . v a l u e . s t y l e . h e i g h t } ) } , j = f u n c t i o n ( ) { v a r g = a r g u m e n t s . l e n g t h > 0 & & a r g u m e n t s [ 0 ] ! = = v o i d 0 ? a r g u m e n t s [ 0 ] : " " , x = I . v a l u e , H = S t r i n g ( g ) ; ! x | | x . v a l u e ! = = H & & ( x . v a l u e = H , w . v a l u e = H ) } , C = f u n c t i o n ( g ) { v a r x = g . t a r g e t , H = x . v a l u e ; i f ( e . m a x c h a r a c t e r & & e . m a x c h a r a c t e r > = 0 ) { v a r K = u t ( H , e . m a x c h a r a c t e r ) ; H = M e ( K ) = = = " o b j e c t " & & K . c h a r a c t e r s } ! k . v a l u e & & N ( H , { e : g } ) , K e ( f u n c t i o n ( ) { r e t u r n j ( H ) } ) , F ( ) } , h = f u n c t i o n ( g ) { C ( g ) } , D = f u n c t i o n ( ) { k . v a l u e = ! 0 } , Y = f u n c t i o n ( g ) { k . v a l u e = ! 1 , C ( g ) } , e e = f u n c t i o n ( g , x ) { v a r H ; i f ( ! _ . v a l u e ) { v a r K = " o n " . c o n c a t ( g [ 0 ] . t o U p p e r C a s e ( ) ) . c o n c a t ( g . s l i c e ( 1 ) ) ; ( H = e [ K ] ) = = = n u l l | | H = = = v o i d 0 | | H . c a l l ( e , w . v a l u e , { e : x } ) } } , X = f u n c t i o n ( g ) { e e ( " k e y d o w n " , g ) } , R = f u n c t i o n ( g ) { e e ( " k e y u p " , g ) } , V = f u n c t i o n ( g ) { e e ( " k e y p r e s s " , g ) } , B = f u n c t i o n ( g ) { v a r x ; F ( ) , ! _ . v a l u e & & ( P . v a l u e = ! 0 , ( x = e . o n F o c u s ) = = = n u l l | | x = = = v o i d 0 | | x . c a l l ( e , w . v a l u e , { e : g } ) ) } , A = V a ( t n , v o i d 0 ) , p = f u n c t i o n ( g ) { v a r x ; F ( ) , P . v a l u e = ! 1 , ( x = e . o n B l u r ) = = = n u l l | | x = = = v o i d 0 | | x . c a l l ( e , w . v a l u e , { e : g } ) , A = = n u l l | | A . h a n d l e B l u r ( ) } , z = d ( f u n c t i o n ( ) { r e t u r n [ s . v a l u e , T ( T ( { } , " " . c o n c a t ( o . v a l u e , " - i s - d i s a b l e d " ) , _ . v a l u e ) , " " . c o n c a t ( o . v a l u e , " - i s - r e a d o n l y " ) , e . r e a d o n l y ) ] } ) , $ = d ( f u n c t i o n ( ) { r e t u r n Y t ( { a u t o f o c u s : e . a u t o f o c u s , d i s a b l e d : _ . v a l u e , r e a d o n l y : e . r e a d o n l y , p l a c e h o l d e r : e . p l a c e h o l d e r , m a x l e n g t h : ! e . a l l o w I n p u t O v e r M a x & & e . m a x l e n g t h | | v o i d 0 , n a m e : e . n a m e | | v o i d 0 } ) } ) , W = d ( f u n c t i o n ( ) { v a r O = u t ( S t r i n g ( w . v a l u e | | " " ) ) ; r e t u r n M e ( O ) = = = " o b j e c t " ? O . l e n g t h : O } ) , Q = d ( f u n c t i o n ( ) { r e t u r n { v a l u e : [ v o i d 0 , n u l l ] . i n c l u d e s ( w . v a l u e ) ? v o i d 0 : S t r i n g ( w . v a l u e ) , s t a t u s : e . s t a t u s , m a x l e n g t h : N u m b e r ( e . m a x l e n g t h ) , m a x c h a r a c t e r : e . m a x c h a r a c t e r , a l l o w I n p u t O v e r M a x : e . a l l o w I n p u t O v e r M a x , o n V a l i d a t e : e . o n V a l i d a t e } } ) , E = a n ( Q ) , U = E . t S t a t u s ; d e ( f u n c t i o n ( ) { r e t u r n w . v a l u e } , f u n c t i o n ( ) { r e t u r n F ( ) } ) , d e ( I , f u n c t i o n ( O ) { ! O | | F ( ) } ) , d e ( f u n c t i o n ( ) { r e t u r n e . a u t o f o c u s } , f u n c t i o n ( O ) { O & & I . v a l u e . f o c u s ( ) } ) , d e ( M , f u n c t i o n ( O ) { v a r g = n . s t y l e ; W a ( I . v a l u e , _ a ( g , O ) ) } ) , d e ( w , f u n c t i o n ( ) { K e ( f u n c t i o n ( ) { r e t u r n F ( ) } ) } ) , d e ( f u n c t i o n ( ) { r e t u r n e . a u t o s i z e } , F , { d e e p : ! 0 } ) , r ( { f o c u s : S , b l u r : b } ) , e t ( f u n c t i o n ( ) { F ( ) } ) ; v a r L = v e ( ) ; r e t u r n f u n c t i o n ( ) { v a r O , g = Y t ( { o n F o c u s : B , o n B l u r : p , o n K e y d o w n : X , o n K e y u p : R , o n K e y p r e s s : V } ) , x = P a ( ) , H = x . S T A T U S , K = d ( f u n c t i o n ( ) { r e t u r n [ " " . c o n c a t ( s . v a l u e , " _ _ i n n e r " ) , T ( T ( T ( T ( { } , " " . c o n c a t ( o . v a l u e , " - i s - " ) . c o n c a t ( U . v a l u e ) , U . v a l u e ) , H . v a l u e . d i s a b l e d , _ . v a l u e ) , H . v a l u e . f o c u s e d , P . v a l u e ) , " " . c o n c a t ( o . v a l u e , " - r e s i z e - n o n e " ) , M e ( e . a u t o s i z e ) = = = " o b j e c t " ) , " n a r r o w - s c r o l l b a r " ] } ) , q = L ( " t i p s " ) , a e = q & & l ( " d i v " , { c l a s s : " " . c o n c a t ( c . v a l u e , " " ) . c o n c a t ( s . v a l u e , " _ _ t i p s - - " ) . c o n c a t ( e . s t a t u s | | " n o r m a l " ) } , [ q ] ) , l e = e . m a x c h a r a c t e r & & l ( " s p a n " , { c l a s s : i . v a l u e } , [ " " . c o n c a t ( W . v a l u e , " / " ) . c o n c a t ( e . m a x c h a r a c t e r ) ] ) | | ! e . m a x c h a r a c t e r & & e . m a x l e n g t h & & l ( " s p a n " , { c l a s s : i . v a l u e } , [ " " . c o n c a t ( w . v a l u e ? ( O = S t r i n g ( w . v a l u e ) ) = = = n u l l | | O = = = v o i d 0 ? v o i d 0 : O . l e n g t h : 0 , " / " ) . c o n c a t (
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var Nl=Fe(Ur);/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var kr={alt:{type:String,default:""},error:{type:[String,Function]},fallback:{type:String,default:""},fit:{type:String,default:"fill",validator:function(e){return e?["contain","cover","fill","none","scale-down"].includes(e):!0}},gallery:Boolean,lazy:Boolean,loading:{type:[String,Function]},overlayContent:{type:[String,Function]},overlayTrigger:{type:String,default:"always",validator:function(e){return e?["always","hover"].includes(e):!0}},placeholder:{type:[String,Function]},position:{type:String,default:"center"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin",validator:function(e){return e?["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"].includes(e):!0}},shape:{type:String,default:"square",validator:function(e){return e?["circle","round","square"].includes(e):!0}},src:{type:[String,Object]},srcset:{type:Object},onError:Function,onLoad:Function};/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var Lr=J({name:"TImage",props:kr,setup:function(e){var a=Z(null),n=Z(null),r=null,o=ye(e),s=o.src,c=ve();et(function(){var R;if((R=n.value)!==null&&R!==void 0&&R.complete&&!e.lazy&&I(),!(!e.lazy||!a.value)){var V=un(a.value,null,N,0);r=V}}),Aa(function(){a.value&&r&&r.unobserve(a.value)});var i=Ue("image"),v=i.classPrefix,u=i.globalConfig,f=Z(s.value);de([s,u],function(R){var V=he(R,2),B=V[0],A=V[1],p=A||{},z=p.replaceImageSrc,$=Ce(z)?z(e):B;$===f.value&&f.value||(f.value=$)},{immediate:!0});var y=qe(f),m=y.previewUrl;de([m],function(){P.value=!1,_.value=!1});var w=Z(!e.lazy),N=function(){w.value=!0},_=Z(!1),M=function(V){var B;_.value=!0,(B=e.onLoad)===null||B===void 0||B.call(e,{e:V})},I=function(){var V=new Event("load");Object.defineProperty(V,"target",{value:n.value,enumerable:!0}),M(V)},P=Z(!1),k=function(V){var B;P.value=!0,(B=e.onError)===null||B===void 0||B.call(e,{e:V}),e.fallback&&(f.value=e.fallback,P.value=!1)},S=d(function(){return e.overlayTrigger==="hover"}),b=d(function(){return["".concat(v.value,"-image"),"".concat(v.value,"-image--fit-").concat(e.fit),"".concat(v.value,"-image--position-").concat(e.position)]}),F=Z(!S.value),j=function(){S.value&&(F.value=!F.value)},C=function(){var V=c("placeholder");return V?l("div",{class:"".concat(v.value,"-image__placeholder")},[V]):null},h=function(){return e.gallery?l("div",{class:"".concat(v.value,"-image__gallery-shadow")},null):null},D=function(){var V=X("overlayContent");return V?l("div",{class:["".concat(v.value,"-image__overlay-content"),!F.value&&"".concat(v.value,"-image__overlay-content--hidden")]},[V]):null};function Y(){return l("picture",null,[Object.entries(e.srcset).map(function(R){var V=he(R,2),B=V[0],A=V[1];return l("source",{type:B,srcset:A},null)}),ee()])}function ee(){var R=typeof f.value=="string"?f.value:m.value;return l("img",{ref:n,src:R,onError:k,onLoad:M,class:b.value,alt:e.alt,referrerpolicy:e.referrerpolicy},null)}var X=Ya();return function(){return l("div",re({ref:a,class:["".concat(v.value,"-image__wrapper"),"".concat(v.value,"-image__wrapper--shape-").concat(e.shape),e.gallery&&"".concat(v.value,"-image__wrapper--gallery"),S.value&&"".concat(v.value,"-image__wrapper--need-hover")],onMouseenter:j,onMouseleave:j},Oa(e,["src","alt","fit","position","shape","placeholder","loading","error","overlayTrigger","overlayContent","lazy","gallery","onLoad","onError"])),[C(),h(),(P.value||!w.value)&&l("div",{class:"".concat(v.value,"-image")},null),!(P.value||!w.value)&&(e.srcset&&Object.keys(e.srcset).length?Y():ee()),!(P.value||!w.value)&&!_.value&&l("div",{class:"".concat(v.value,"-image__loading")},[c("loading")||l(qt,{direction:"vertical",size:8,align:"center"},{default:function(){return[l(xa,{size:"24px"},null),typeof e.loading=="string"?e.loading:u.value.loadingText]}})]),P.value&&l("div",{class:"".concat(v.value,"-image__error")},[X("error",{defaultNode:l(qt,{direction:"vertical",size:8,align:"center"},{default:function(){return[l(ja,{size:"24px"},null),typeof e.error=="string"?e.error:u.value.errorText]}})})]),D()])}}});/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var $e=Fe(Lr);/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var Be={closeBtn:{type:[Boolean,Function],default:!0},closeOnEscKeydown:{type:Boolean,default:!0},closeOnOverlay:Boolean,draggable:{type:Boolean,default:void 0},imageScale:{type:Object},images:{type:Array,default:function(){return[]}},index:{type:Number,default:void 0},defaultIndex:{type:Number,default:0},mode:{type:String,default:"modal",validator:function(e){return e?["modal","modeless"].includes(e):!0}},navigationArrow:{type:[Boolean,Function],default:!0},showOverlay:{type:Boolean,default:void 0},title:{type:[String,Function]},trigger:{type:[String,Function]},viewerScale:{type:Object},visible:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultVisible:Boolean,zIndex:{type:Number},onClose:Function,onIndexChange:Function};/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var we=J({name:"TImageModalIcon",props:{disabled:Boolean,onClick:Function,label:String,icon:Function},setup:function(e){var a=fe(),n=ve(),r=d(function(){return["".concat(a.value,"-image-viewer__modal-icon"),T({},"".concat(a.value,"-is-disabled"),e.disabled)]});return function(){return l("div",{class:r.value,onClick:e.onClick},[n("icon"),e.label&&l("span",{class:"".concat(a.value,"-image-viewer__modal-icon-label")},[e.label])])}}});/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /function Jt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function Mr(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Jt(Object(a),!0).forEach(function(n){T(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Jt(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var Br=function(e){var a,n,r,o=new Image,s=(e==null||(a=e.split)===null||a===void 0||(a=a.call(e,"?"))===null||a===void 0||(a=a[0])===null||a===void 0||(n=a.split)===null||n===void 0||(n=n.call(a,"#"))===null||n===void 0||(n=n[0])===null||n===void 0||(r=n.split)===null||r===void 0?void 0:r.call(n,"/ ").pop())||Math.random().toString(32).slice(2);o.setAttribute(" crossOrigin "," anonymous "),o.onload=function(){var c=document.createElement(" canvas ");c.width=o.width,c.height=o.height;var i=c.getContext(" 2 d ");i.drawImage(o,0,0,o.width,o.height),c.toBlob(function(v){var u=URL.createObjectURL(v),f=document.createElement(" a ");f.download=s,f.href=u,f.click(),f.remove(),URL.revokeObjectURL(u)})},o.src=e},$r=function(e){return!!e&&!xe(e)&&!(e instanceof File)},Tr=function(e){return at(e)?e.map(function(a){return $r(a)?Mr({download:!0,thumbnail:a.mainImage},a):{mainImage:a,thumbnail:a,download:!0}}):[]},Rr=function(e){return e.showOverlay!==void 0?e.showOverlay:e.mode===" modal " } ; / * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var Ua=J({name:"TImageViewerUtils",props:{scale:Number,onRotate:Function,onZoomIn:Function,onZoomOut:Function,onMirror:Function,onReset:Function,currentImage:{type:Object,default:function(){return{}}}},setup:function(e){var a=fe(),n=d(function(){return e.currentImage.mainImage}),r=qe(n),o=r.previewUrl,s=Ue("imageViewer"),c=s.globalConfig;return function(){return l("div",{class:"".concat(a.value,"-image-viewer__utils")},[l("div",{class:"".concat(a.value,"-image-viewer__utils-content")},[l(Ge,{overlayClassName:"".concat(a.value,"-image-viewer__utils--tip"),content:c.value.mirrorTipText,destroyOnClose:!0,placement:"top",showArrow:!0,theme:"default"},{default:function(){return[l(we,{onClick:e.onMirror,icon:function(){return l(Xn,{size:"medium"},null)}},null)]}}),l(Ge,{overlayClassName:"".concat(a.value,"-image-viewer__utils--tip"),content:c.value.rotateTipText,destroyOnClose:!0,placement:"top",showArrow:!0,theme:"default"},{default:function(){return[l(we,{onClick:e.onRotate,icon:function(){return l(Wn,{size:"medium"},null)}},null)]}}),l(we,{icon:function(){return l(dr,{size:"medium"},null)},onClick:e.onZoomOut},null),l(we,{class:"".concat(a.value,"-image-viewer__utils-scale"),size:"medium",label:"".concat(cn(String(e.scale*100)),"%")},null),l(we,{icon:function(){return l(cr,{size:"medium"},null)},onClick:e.onZoomIn},null),l(Ge,{overlayClassName:"".concat(a.value,"-image-viewer__utils--tip"),content:c.value.originalSizeTipText,destroyOnClose:!0,placement:"top",showArrow:!0,theme:"default"},{default:function(){return[l("div",{class:"".concat(a.value,"-image-viewer__modal-icon")},[l(we,{icon:function(){return l(xa,{size:"medium"},null)},onClick:e.onReset},null)])]}}),e.currentImage.download&&l(we,{icon:function(){return l(Fn,{size:"medium"},null)},onClick:function(){Br(o.value)}},null)])])}}});/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /function Wt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function Nr(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Wt(Object(a),!0).forEach(function(n){T(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Wt(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}function Vr(t){var e=Z(t),a=function(o){var s=o.pageX,c=o.pageY,i=e.value,v=i.translateX,u=i.translateY,f=function(w){var N=w.pageX,_=w.pageY;e.value={translateX:v+N-s,translateY:u+_-c}},y=function m(){document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",m)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",y)},n=function(){e.value=Nr({},t)};return{transform:e,mouseDownHandler:a,resetTransform:n}}function Ar(){var t=Z(1),e=function(){t.value*=-1},a=function(){t.value=1};return{mirror:t,onMirror:e,resetMirror:a}}function Hr(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{max:2,min:.5,step:.5},e=t.max,a=t.min,n=t.step,r=t.defaultScale,o=Z(r!=null?r:1),s=function(){var f=sn(o.value,n);v(f)},c=function(){var f=vn(o.value,n);v(f)},i=function(){o.value=r!=null?r:1},v=function(f){var y=f;f<a&&(y=a),f>e&&(y=e),o.value=y};return de(function(){return t},function(){return i()}),{scale:o,onZoomIn:s,onZoomOut:c,resetScale:i}}function Kr(){var t=Z(0),e=90,a=function(){t.value+=e},n=function(){t.value=0};return{rotate:t,onRotate:a,resetRotate:n}}/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var ka=J({name:"TImageItem",props:{rotate:Number,scale:Number,mirror:Number,src:[String,Object],placementSrc:[String,Object]},setup:function(e){var a=ye(e),n=a.src,r=a.placementSrc,o=fe(),s=Z(!1),c=Z(!1),i=Vr({translateX:0,translateY:0}),v=i.transform,u=i.mouseDownHandler,f=Ue("imageViewer"),y=f.globalConfig,m=y.value.errorText,w=d(function(){return{transform:"rotate(".concat(e.rotate,"deg) scale(").concat(e.scale,")"),display:!e.placementSrc||c.value?"block":"none"}}),N=d(function(){return{transform:"rotate(".concat(e.rotate,"deg) scale(").concat(e.scale,")"),display:c.value?"none":"block"}}),_=d(function(){var b=v.value,F=b.translateX,j=b.translateY;return{transform:"translate(".concat(F,"px, ").concat(j,"px) scale(").concat(e.mirror,", 1)")}}),M=function(){s.value=!1,c.value=!1},I=qe(n),P=I.previewUrl,k=qe(r),S=k.previewUrl;return de([P,S],function(){M()}),function(){return l("div",{class:"".concat(o.value,"-image-viewer__modal-pic")},[l("div",{class:"".concat(o.value,"-image-viewer__modal-box"),style:_.value},[s.value&&l("div",{class:"".concat(o.value,"-image-viewer__img-error")},[l("div",{class:"".concat(o.value,"-image-viewer__img-error-content")},[l(ja,{size:"4em"},null),l("div",{class:"".concat(o.value,"-image-viewer__img-error-text")},[m])])]),!s.value&&!!e.placementSrc&&S.value&&l("img",{class:"".concat(o.value,"-image-viewer__modal-image"),onMousedown:function(F){F.stopPropagation(),u(F)},src:S.value,style:N.value,alt:"image",draggable:"false"},null),!s.value&&P.value&&l("img",{class:"".concat(o.value,"-image-viewer__modal-image"),onMousedown:function(F){F.stopPropagation(),u(F)},src:P.value,onLoad:function(){return c.value=!0},onError:function(){return s.value=!0},style:w.value,alt:"image",draggable:"false"},null)])])}}});/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var qr=J({name:"TImageViewerModal",props:{zIndex:Number,visible:Boolean,index:Number,images:Be.images,scale:Number,rotate:Number,mirror:Number,title:Be.title,currentImage:{type:Object,default:function(){return{}}},onRotate:Function,onZoomIn:Function,onZoomOut:Function,onMirror:Function,onReset:Function,onClose:Be.onClose,draggable:{type:Boolean,default:!0},viewerScale:{type:Object,default:function(){return{}}},showOverlay:Boolean,closeBtn:Be.closeBtn},setup:function(e){var a=fe(),n=ve(),r=d(function(){return{minWidth:e.viewerScale.minWidth,minHeight:e.viewerScale.minHeight}});return function(){return l(On,{destroyOnClose:!0,attach:"body",onClose:e.onClose,visible:e.visible,placement:"center",mode:"modeless",width:1e3,cancelBtn:null,confirmBtn:null,draggable:e.draggable,zIndex:e.zIndex,showOverlay:e.showOverlay,class:"".concat(a.value,"-image-viewer__dialog"),header:n("title",""),footer:function(){return l("div",{class:"".concat(a.value,"-image-viewer-mini__footer")},[l(Ua,{onZoomIn:e.onZoomIn,onZoomOut:e.onZoomOut,scale:e.scale,currentImage:e.currentImage,onRotate:e.onRotate,onMirror:e.onMirror,onReset:e.onReset},null)])}},{default:function(){return[l("div",{class:"".concat(a.value,"-image-viewer-mini__content"),style:r.value},[l(ka,{rotate:e.rotate,scale:e.scale,mirror:e.mirror,src:e.currentImage.mainImage,placementSrc:e.currentImage.thumbnail},null)])]}})}}});/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var ze=function(t){return t.left="ArrowLeft",t.up="ArrowUp",t.right="ArrowRight",t.down="ArrowDown",t.esc="Escape",t}(ze||{});/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /function Qt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function Xr(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Qt(Object(a),!0).forEach(function(n){T(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Qt(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var Zr=J({name:"TImageViewer",props:Xr({},Be),setup:function(e){var a,n=fe(),r=fe("image-viewer"),o=ve(),s=Z(!0),c=d(function(){return Rr(e)}),i=ye(e),v=i.index,u=i.visible,f=i.modelValue,y=dn(v,(a=e.defaultIndex)!==null&&a!==void 0?a:0,e.onIndexChange,"index"),m=he(y,2),w=m[0],N=m[1],_=nt(u,f,e.defaultVisible,function(){},"visible"),M=he(_,2),I=M[0],P=M[1],k=Z(!0),S=Z(),b=d(function(){return[r.value,"".concat(r.value,"-preview-image"),T({},"".concat(n.value,"-is-hide"),!I.value)]}),F=d(function(){return["".concat(n.value,"-image-viewer__modal-header"),T({},"".concat(n.value,"-is-show"),s.value)]}),j=d(function(){var te;return(te=e.zIndex)!==null&&te!==void 0?te:2600}),C=function(){s.value=!s.value},h=Ar(),D=h.mirror,Y=h.onMirror,ee=h.resetMirror,X=Hr(e.imageScale),R=X.scale,V=X.onZoomIn,B=X.onZoomOut,A=X.resetScale,p=Kr(),z=p.rotate,$=p.onRotate,W=p.resetRotate,Q=function(){ee(),A(),W()},E=d(function(){return Tr(e.images)}),U=d(function(){var te;return(te=E.value[w.value])!==null&&te!==void 0?te:{mainImage:""}}),L=Ta("dialog",{visible:I}),O=L.isLastDialog,g=function(){var G=w.value-1;Q(),N(G<0?0:G,{trigger:"prev"})},x=function(){var G=w.value+1;Q(),N(G>=E.value.length?w.value:G,{trigger:"next"})},H=function(G){N(G,{trigger:"current"})},K=function(){P(!0)},q=function(G){var ne;P(!1),(ne=e.onClose)===null||ne===void 0||ne.call(e,G)},ae=function(G){q({e:G,trigger:"close-btn"})},le=function(G){e.closeOnOverlay&&q({e:G,trigger:"overlay"})},be=function(G){switch(G.stopPropagation(),G.code){case ze.left:g();break;case ze.right:x();break;case ze.up:V();break;case ze.down:B();break;case ze.esc:e.closeOnEscKeydown&&O()&&q({e:G,trigger:"esc"});break}},Se=Z();de(function(){return I.value},function(te){clearTimeout(S.value),te?(k.value=!1,Ke().then(function(){var G,ne;(G=Se.value)===null||G===void 0||(ne=G.focus)===null||ne===void 0||ne.call(G)}),Q()):S.value=setTimeout(function(){k.value=!0},200)});var Oe=function(G){G.preventDefault();var ne=G.deltaY;ne>0?B():V()},je=d(function(){return{transform:"translateX(calc(-".concat(w.value," * (40px / 9 * 16 + 4 px ) ) ) ")}}),ke=function(){return l(" div ",{class:F.value},[l(we,{icon:function(){return l(fn,null,null)},class:" ".concat(r.value," _ _header - pre - bt "),onClick:C},null),l(" div ",{class:" ".concat(r.value," _ _header - prev ")},[l(" div ",{class:" ".concat(r.value," _ _header - trans "),style:je.value},[E.value.map(function(G,ne){return l(" div ",{key:ne,class:[" ".concat(r.value," _ _header - box "),T({}," ".concat(n.value," - is - active "),ne===w.value)]},[l($e,{src:G.thumbnail||G.mainImage,error:" ",className:" ".concat(r.value," _ _header - img "),onClick:function(){return H(ne)}},null)])})])])])},Ie=function(G){var ne=G===" prev "?0:180,De=o(" navigationArrow ",l(gn,{style:{transform:" rotate ( ".concat(ne," deg ) ")},size:" 24 px "},null));return l(we,{class:" ".concat(r.value," _ _modal - ").concat(G," - bt "),onClick:G===" prev "?g:x,icon:function(){return De}},null)},Le=function(){if(e.closeBtn!==!1)return l(" div ",{class:[" ".concat(r.value," _ _modal - icon ")," ".concat(r.value," _ _modal - close - bt ")],onClick:ae},[o(" closeBtn ",l(We,{size:" 24 px "},null))])};return function(){return e.mode===" modeless "?l(Pe,null,[o(" trigger ",{params:{open:K}}),l(qr,{zIndex:j.value,visible:I.value,index:w.value,images:E.value,scale:R.value,rotate:z.value,mirror:D.value,currentImage:U.value,onRotate:$,onZoomIn:V,onZoomOut:B,onMirror:Y,onReset:Q,onClose:q,draggable:e.draggable,showOverlay:c.value,title:e.title},null)]):l(Pe,null,[o(" trigger ",{params:{open:K}}),l(wa,{to:" body " } , { default : function ( ) { retur
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var lt=Fe(Zr);/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var La={asyncLoading:{type:[String,Function]},footer:{type:[String,Function]},header:{type:[String,Function]},layout:{type:String,default:"horizontal",validator:function(e){return e?["horizontal","vertical"].includes(e):!0}},scroll:{type:Object},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},split:Boolean,stripe:Boolean,onLoadMore:Function,onScroll:Function};/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var Ma=J({name:"TListItem",props:La,setup:function(){var e=fe("list-item"),a=ve();return function(){var n=a("content"),r=a("default"),o=a("action");return l("li",{class:e.value},[l("div",{class:"".concat(e.value,"-main")},[r||n,o&&l("li",{class:"".concat(e.value,"__action")},[o])])])}}});/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var ea="load-more",Gr="loading";/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n t a ( t , e ) { v a r a = O b j e c t . k e y s ( t ) ; i f ( O b j e c t . g e t O w n P r o p e r t y S y m b o l s ) { v a r n = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( t ) ; e & & ( n = n . f i l t e r ( f u n c t i o n ( r ) { r e t u r n O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , r ) . e n u m e r a b l e } ) ) , a . p u s h . a p p l y ( a , n ) } r e t u r n a } f u n c t i o n a a ( t ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r a = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? t a ( O b j e c t ( a ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( n ) { T ( t , n , a [ n ] ) } ) : O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ? O b j e c t . d e f i n e P r o p e r t i e s ( t , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ( a ) ) : t a ( O b j e c t ( a ) ) . f o r E a c h ( f u n c t i o n ( n ) { O b j e c t . d e f i n e P r o p e r t y ( t , n , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( a , n ) ) } ) } r e t u r n t } f u n c t i o n Y r ( t , e ) { v a r a = t y p e o f S y m b o l < " u " & & t [ S y m b o l . i t e r a t o r ] | | t [ " @ @ i t e r a t o r " ] ; i f ( ! a ) { i f ( A r r a y . i s A r r a y ( t ) | | ( a = J r ( t ) ) | | e & & t & & t y p e o f t . l e n g t h = = " n u m b e r " ) { a & & ( t = a ) ; v a r n = 0 , r = f u n c t i o n ( ) { } ; r e t u r n { s : r , n : f u n c t i o n ( ) { r e t u r n n > = t . l e n g t h ? { d o n e : ! 0 } : { d o n e : ! 1 , v a l u e : t [ n + + ] } } , e : f u n c t i o n ( v ) { t h r o w v } , f : r } } t h r o w n e w T y p e E r r o r ( ` I n v a l i d a t t e m p t t o i t e r a t e n o n - i t e r a b l e i n s t a n c e .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var o=!0,s=!1,c;return{s:function(){a=a.call(t)},n:function(){var v=a.next();return o=v.done,v},e:function(v){s=!0,c=v},f:function(){try{!o&&a.return!=null&&a.return()}finally{if(s)throw c}}}}function Jr(t,e){if(!!t){if(typeof t=="string")return na(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(a))return na(t,e)}}function na(t,e){(e==null||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}var Wr=function(){var e=mn(),a=d(function(){var n=[],r=e("ListItem");if(at(r)){var o=Yr(r),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;n.push(aa(aa({},c.props),{},{slots:c.children}))}}catch(i){o.e(i)}finally{o.f()}}return n});return{listItems:a}};/**
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var Qr=function(e,a,n){var r=d(function(){return{data:n.value,scroll:e}}),o=pn(a,r),s=d(function(){return o.isVirtualScroll.value}),c=-1,i=function(y){var m=y.target||y.srcElement,w=m.scrollTop;c!==w?o.isVirtualScroll.value&&o.handleScroll():c=-1,c=w},v=d(function(){return{position:"absolute",width:"1px",height:"1px",transition:"transform 0.2s",transform:"translate(0, ".concat(o.scrollHeight.value,"px)"),"-ms-transform":"translate(0, ".concat(o.scrollHeight.value,"px)"),"-moz-transform":"translate(0, ".concat(o.scrollHeight.value,"px)"),"-webkit-transform":"translate(0, ".concat(o.scrollHeight.value,"px)")}}),u=d(function(){return{transform:"translate(0, ".concat(o.translateY.value,"px)"),"-ms-transform":"translate(0, ".concat(o.translateY.value,"px)"),"-moz-transform":"translate(0, ".concat(o.translateY.value,"px)"),"-webkit-transform":"translate(0, ".concat(o.translateY.value,"px)")}});return{virtualConfig:o,cursorStyle:v,listStyle:u,isVirtualScroll:s,onInnerVirtualScroll:i}};/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /function ra(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function el(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?ra(Object(a),!0).forEach(function(n){T(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ra(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var tl=J({name:"TList",props:el({},La),setup:function(e){var a=Z(),n=Ue("list"),r=n.globalConfig,o=fe("list"),s=Pa(),c=s.SIZE,i=ve(),v=Wr(),u=v.listItems,f=Qr(e.scroll,a,u),y=f.virtualConfig,m=f.cursorStyle,w=f.listStyle,N=f.isVirtualScroll,_=f.onInnerVirtualScroll,M=d(function(){return["".concat(o.value),c.value[e.size],T(T(T({},"".concat(o.value,"--split"),e.split),"".concat(o.value,"--stripe"),e.stripe),"".concat(o.value,"--vertical-action"),e.layout==="vertical")]}),I=function(){var j=i("header"),C=i("footer"),h=y.isVirtualScroll.value;return l(Pe,null,[j?l("div",{class:"".concat(o.value,"__header")},[j]):null,h?l(Pe,null,[l("div",{style:m.value},null),l("ul",{class:"".concat(o.value,"__inner"),style:w.value},[y.visibleData.value.map(function(D){return l(Pe,null,[l(Ma,Oa(D,"slots"),D.slots)])})])]):l("ul",{class:"".concat(o.value,"__inner")},[i("default")]),C?l("div",{class:"".concat(o.value,"__footer")},[C]):null])},P=function(j){var C,h=j.target,D=h.scrollTop,Y=h.scrollHeight,ee=h.clientHeight;N.value&&_(j),(C=e.onScroll)===null||C===void 0||C.call(e,{e:j,scrollTop:D,scrollBottom:Y-ee-D})},k=d(function(){return xe(e.asyncLoading)&&["loading","load-more"].includes(e.asyncLoading)?"".concat(o.value,"__load ").concat(o.value,"__load--").concat(e.asyncLoading):"".concat(o.value,"__load")}),S=function(){if(e.asyncLoading&&xe(e.asyncLoading)){if(e.asyncLoading===Gr)return l("div",null,[l(Re,null,null),l("span",null,[r.value.loadingText])]);if(e.asyncLoading===ea)return l("span",null,[r.value.loadingMoreText])}return i("asyncLoading")},b=function(j){var C;xe(e.asyncLoading)&&e.asyncLoading!==ea||(C=e.onLoadMore)===null||C===void 0||C.call(e,{e:j})};return{COMPONENT_NAME:o,listClass:M,loadingClass:k,renderLoading:S,renderContent:I,handleScroll:P,handleLoadMore:b,listRef:a,isVirtualScroll:N}},render:function(){var e=this.renderContent();return e=[e,l("div",{class:this.loadingClass,onClick:this.handleLoadMore},[this.renderLoading()])],l("div",{class:this.listClass,onScroll:this.handleScroll,ref:"listRef"},[e])}});/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var al={avatar:{type:[String,Function]},description:{type:[String,Function]},image:{type:[String,Function]},title:{type:[String,Function]}};/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var nl=J({name:"TListItemMeta",props:al,setup:function(e,a){var n=fe("list-item__meta"),r=Ze(),o=ve(),s=function(){(e.avatar||a.slots.avatar)&&console.warn("`avatar` is going to be deprecated, please use `image` instead");var i=r("avatar","image");if(!!i)return xe(i)?l("div",{class:"".concat(n.value,"-avatar")},[l("img",{src:i},null)]):l("div",{class:"".concat(n.value,"-avatar")},[i])};return function(){var c=o("title"),i=o("description"),v=[s(),l("div",{class:"".concat(n.value,"-content")},[c&&l("h3",{class:"".concat(n.value,"-title")},[c]),i&&l("p",{class:"".concat(n.value,"-description")},[i])])];return l("div",{class:n.value},[v])}}});/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var Vl=Fe(tl),Al=Fe(Ma);Fe(nl);/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var rl={attach:{type:[String,Function],default:""},body:{type:[String,Function]},cancelBtn:{type:[String,Object,Function],default:""},closeBtn:{type:[Boolean,String,Function]},closeOnEscKeydown:{type:Boolean,default:void 0},closeOnOverlayClick:{type:Boolean,default:void 0},confirmBtn:{type:[String,Object,Function],default:""},default:{type:[String,Function]},destroyOnClose:Boolean,footer:{type:[Boolean,Function],default:!0},header:{type:[String,Boolean,Function],default:!0},mode:{type:String,default:"overlay",validator:function(e){return e?["overlay","push"].includes(e):!0}},placement:{type:String,default:"right",validator:function(e){return e?["left","right","top","bottom"].includes(e):!0}},preventScrollThrough:{type:Boolean,default:!0},showInAttachedElement:Boolean,showOverlay:{type:Boolean,default:!0},size:{type:String,default:void 0},sizeDraggable:Boolean,visible:Boolean,zIndex:{type:Number},onCancel:Function,onClose:Function,onCloseBtnClick:Function,onConfirm:Function,onEscKeydown:Function,onOverlayClick:Function};/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var ll=function(e){var a=Z(!1),n=Z(null),r=function(){document.addEventListener("mouseup",o,!0),document.addEventListener("mousemove",s,!0),a.value=!0},o=function i(){document.removeEventListener("mouseup",i,!0),document.removeEventListener("mousemove",s,!0),a.value=!1},s=function(v){var u=v.x,f=v.y,y=document.documentElement.clientHeight,m=document.documentElement.clientWidth,w=8,N=8;if(a.value&&e.sizeDraggable){if(e.placement==="right"){var _=Math.min(Math.max(m-u+N,N),m);n.value="".concat(_,"px")}if(e.placement==="left"){var M=Math.min(Math.max(u+N,N),m);n.value="".concat(M,"px")}if(e.placement==="top"){var I=Math.min(Math.max(f+w,w),y);n.value="".concat(I,"px")}if(e.placement==="bottom"){var P=Math.min(Math.max(y-f+w,w),y);n.value="".concat(P,"px")}}},c=d(function(){var i=["right","left"].includes(e.placement),v={left:"right",right:"left",top:"bottom",bottom:"top"};return T(T(T(T({zIndex:1,position:"absolute",background:"transparent"},v[e.placement],0),"width",i?"16px":"100%"),"height",i?"100%":"16px"),"cursor",i?"col-resize":"row-resize")});return{draggedSizeValue:n,enableDrag:r,draggableLineStyles:c}};/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / v a r o l = 1 , i l = J ( { n a m e : " T D r a w e r " , i n h e r i t A t t r s : ! 1 , p r o p s : r l , e m i t s : [ " u p d a t e : v i s i b l e " ] , s e t u p : f u n c t i o n ( e , a ) { v a r n = Z ( ! 1 ) , r = Z ( ! 1 ) , o = Z ( ) , s = Z ( ) , c = U e ( " d r a w e r " ) , i = c . g l o b a l C o n f i g , v = T e ( { C l o s e I c o n : W e } ) , u = v . C l o s e I c o n , f = v e ( ) , y = Z e ( ) , m = f e ( " d r a w e r " ) , w = l l ( e ) , N = w . d r a g g e d S i z e V a l u e , _ = w . e n a b l e D r a g , M = w . d r a g g a b l e L i n e S t y l e s , I = Q a ( f u n c t i o n ( ) { r e t u r n e . a t t a c h } ) , P = f u n c t i o n ( U ) { v a r L ; ( L = e . o n C o n f i r m ) = = = n u l l | | L = = = v o i d 0 | | L . c a l l ( e , { e : U } ) } , k = f u n c t i o n ( U ) { v a r L ; ( L = e . o n C a n c e l ) = = = n u l l | | L = = = v o i d 0 | | L . c a l l ( e , { e : U } ) , Q ( { t r i g g e r : " c a n c e l " , e : U } ) } , S = R a ( { c o n f i r m B t n A c t i o n : P , c a n c e l B t n A c t i o n : k } ) , b = S . g e t C o n f i r m B t n , F = S . g e t C a n c e l B t n , j = Z ( n u l l ) , C = d ( f u n c t i o n ( ) { r e t u r n [ m . v a l u e , " " . c o n c a t ( m . v a l u e , " - - " ) . c o n c a t ( e . p l a c e m e n t ) , T ( T ( T ( { } , " " . c o n c a t ( m . v a l u e , " - - o p e n " ) , r . v a l u e ) , " " . c o n c a t ( m . v a l u e , " - - a t t a c h " ) , e . s h o w I n A t t a c h e d E l e m e n t ) , " " . c o n c a t ( m . v a l u e , " - - w i t h o u t - m a s k " ) , ! e . s h o w O v e r l a y ) ] } ) , h = d ( f u n c t i o n ( ) { v a r E ; i f ( N . v a l u e ) r e t u r n N . v a l u e ; v a r U = ( E = e . s i z e ) ! = = n u l l & & E ! = = v o i d 0 ? E : i . v a l u e . s i z e , L = i s N a N ( N u m b e r ( U ) ) ? U : " " . c o n c a t ( U , " p x " ) ; r e t u r n { s m a l l : " 3 0 0 p x " , m e d i u m : " 5 0 0 p x " , l a r g e : " 7 6 0 p x " } [ U ] | | L } ) , D = d ( f u n c t i o n ( ) { r e t u r n { t r a n s f o r m : r . v a l u e ? " t r a n s l a t e X ( 0 ) " : v o i d 0 , w i d t h : [ " l e f t " , " r i g h t " ] . i n c l u d e s ( e . p l a c e m e n t ) ? h . v a l u e : " " , h e i g h t : [ " t o p " , " b o t t o m " ] . i n c l u d e s ( e . p l a c e m e n t ) ? h . v a l u e : " " } } ) , Y = d ( f u n c t i o n ( ) { r e t u r n [ " " . c o n c a t ( m . v a l u e , " _ _ c o n t e n t - w r a p p e r " ) , " " . c o n c a t ( m . v a l u e , " _ _ c o n t e n t - w r a p p e r - - " ) . c o n c a t ( e . p l a c e m e n t ) ] } ) , e e = d ( f u n c t i o n ( ) { r e t u r n j . v a l u e & & j . v a l u e . p a r e n t N o d e } ) , X = d ( f u n c t i o n ( ) { r e t u r n [ e . m o d e , e . p l a c e m e n t ] . j o i n ( ) } ) , R = d ( f u n c t i o n ( ) { r e t u r n { d i s p l a y : " f l e x " , j u s t i f y C o n t e n t : e . p l a c e m e n t = = = " r i g h t " ? " f l e x - s t a r t " : " f l e x - e n d " } } ) , V = f u n c t i o n ( U ) { v a r L ; i f ( ( ( L = e . c l o s e O n E s c K e y d o w n ) ! = = n u l l & & L ! = = v o i d 0 ? L : i . v a l u e . c l o s e O n E s c K e y d o w n ) & & U . k e y = = = " E s c a p e " & & r . v a l u e ) { v a r O ; ( O = e . o n E s c K e y d o w n ) = = = n u l l | | O = = = v o i d 0 | | O . c a l l ( e , { e : U } ) , Q ( { t r i g g e r : " e s c " , e : U } ) } } , B = f u n c t i o n ( ) { c l e a r T i m e o u t ( s . v a l u e ) , s . v a l u e = s e t T i m e o u t ( f u n c t i o n ( ) { v a r U , L ; ( U = o . v a l u e ) = = = n u l l | | U = = = v o i d 0 | | ( U = U . p a r e n t N o d e ) = = = n u l l | | U = = = v o i d 0 | | ( L = U . r e m o v e C h i l d ) = = = n u l l | | L = = = v o i d 0 | | L . c a l l ( U , o . v a l u e ) } , 1 5 0 ) } , A = f u n c t i o n ( ) { e . m o d e = = = " p u s h " & & K e ( f u n c t i o n ( ) { ! e e . v a l u e | | ( e e . v a l u e . s t y l e . c s s T e x t = " t r a n s i t i o n : m a r g i n 3 0 0 m s c u b i c - b e z i e r ( 0 . 7 , 0 . 3 , 0 . 1 , 1 ) 0 s ; " ) } ) } , p = f u n c t i o n ( ) { i f ( ! ! e e . v a l u e & & ! ( e . m o d e ! = = " p u s h " | | ! e e . v a l u e ) ) { v a r U = { l e f t : " m a r g i n : 0 0 0 " . c o n c a t ( h . v a l u e ) , r i g h t : " m a r g i n : 0 0 0 - " . c o n c a t ( h . v a l u e ) , t o p : " m a r g i n : " . c o n c a t ( h . v a l u e , " 0 0 0 " ) , b o t t o m : " m a r g i n : - " . c o n c a t ( h . v a l u e , " 0 0 0 " ) } [ e . p l a c e m e n t ] ; r . v a l u e ? e e . v a l u e . s t y l e . c s s T e x t + = U : e e . v a l u e . s t y l e . c s s T e x t = e e . v a l u e . s t y l e . c s s T e x t . r e p l a c e ( / m a r g i n : . + ; / , " " ) } } , z = f u n c t i o n ( ) { v a r U = b ( { c o n f i r m B t n : e . c o n f i r m B t n , g l o b a l C o n f i r m : i . v a l u e . c o n f i r m , c l a s s N a m e : " " . c o n c a t ( m . v a l u e , " _ _ c o n f i r m " ) } ) , L = F ( { c a n c e l B t n : e . c a n c e l B t n , g l o b a l C a n c e l : i . v a l u e . c a n c e l , c l a s s N a m e : " " . c o n c a t ( m . v a l u e , " _ _ c a n c e l " ) } ) ; r e t u r n l ( " d i v " , { s t y l e : R . v a l u e } , [ e . p l a c e m e n t = = = " r i g h t " ? U : n u l l , L , e . p l a c e m e n t ! = = " r i g h t " ? U : n u l l ] ) } ; d e ( X , f u n c t i o n ( ) { A ( ) } , { i m m e d i a t e : ! 0 } ) , d e ( f u n c t i o n ( ) { r e t u r n e . v i s i b l e } , f u n c t i o n ( E ) { e n | | ( E ? ! e . s h o w I n A t t a c h e d E l e m e n t & & e . p r e v e n t S c r o l l T h r o u g h & & o . v a l u e & & d o c u m e n t . h e a d . a p p e n d C h i l d ( o . v a l u e ) : B ( ) , e . d e s t r o y O n C l o s e ? E ? ( n . v a l u e = ! 1 , s e t T i m e o u t ( f u n c t i o n ( ) { r . v a l u e = ! 0 } ) ) : ( r . v a l u e = ! 1 , s e t T i m e o u t ( f u n c t i o n ( ) { n . v a l u e = ! 0 } , 2 0 0 ) ) : n . v a l u e = = = ! 0 & & E ? ( n . v a l u e = ! 1 , s e t T i m e o u t ( f u n c t i o n ( ) { r . v a l u e = ! 0 } ) ) : r . v a l u e = E ) } , { i m m e d i a t e : ! 0 } ) ; v a r $ = f u n c t i o n ( U ) { v a r L ; ( L = e . o n C l o s e B t n C l i c k ) = = = n u l l | | L = = = v o i d 0 | | L . c a l l ( e , { e : U } ) , Q ( { t r i g g e r : " c l o s e - b t n " , e : U } ) } , W = f u n c t i o n ( U ) { v a r L , O ; ( L = e . o n O v e r l a y C l i c k ) = = = n u l l | | L = = = v o i d 0 | | L . c a l l ( e , { e : U } ) , ( ( O = e . c l o s e O n O v e r l a y C l i c k ) ! = = n u l l & & O ! = = v o i d 0 ? O : i . v a l u e . c l o s e O n O v e r l a y C l i c k ) & & Q ( { t r i g g e r : " o v e r l a y " , e : U } ) } , Q = f u n c t i o n ( U ) { v a r L ; ( L = e . o n C l o s e ) = = = n u l l | | L = = = v o i d 0 | | L . c a l l ( e , U ) , a . e m i t ( " u p d a t e : v i s i b l e " , ! 1 ) } ; r e t u r n X a ( f u n c t i o n ( ) { p ( ) } ) , e t ( f u n c t i o n ( ) { v a r E = d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l H e i g h t > d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t , U = E ? N a ( ) : 0 ; o . v a l u e = d o c u m e n t . c r e a t e E l e m e n t ( " s t y l e " ) , o . v a l u e . d a t a s e t . i d = " t d _ d r a w e r _ " . c o n c a t ( + n e w D a t e , " _ " ) . c o n c a t ( o l + = 1 ) , o . v a l u e . i n n e r H T M L = `
html body {
overflow - y : hidden ;
transition : margin 300 ms cubic - bezier ( 0.7 , 0.3 , 0.1 , 1 ) 0 s ;
` .concat(e.mode==="push"?"":"width: calc(100% - ".concat(U,"px);"), `
}
` ),r.value&&!e.showInAttachedElement&&e.preventScrollThrough&&document.head.appendChild(o.value),window.addEventListener("keydown",V)}),Za(function(){B(),window.removeEventListener("keydown",V)}),function(){if(!n.value){var E=y("body","default"),U=f("header"),L=z();return l(wa,{disabled:!e.attach||!I.value,to:I.value},{default:function(){return[l("div",re({ref:j,class:C.value,style:{zIndex:e.zIndex},onKeydown:V,tabindex:0},a.attrs),[e.showOverlay&&l("div",{class:"".concat(m.value,"__mask"),onClick:W},null),l("div",{class:Y.value,style:D.value},[U&&l("div",{class:"".concat(m.value,"__header")},[U]),e.closeBtn&&l("div",{class:"".concat(m.value,"__close-btn"),onClick: $ },[f("closeBtn",l(u,null,null))]),l("div",{class:["".concat(m.value,"__body"),"narrow-scrollbar"]},[E]),e.footer&&l("div",{class:"".concat(m.value,"__footer")},[f("footer",L)]),e.sizeDraggable&&l("div",{style:M.value,onMousedown:_},null)])])]}})}}}});/**
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var Hl=Fe(il);/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var ul={abridgeName:{type:Array},accept:{type:String,default:""},action:{type:String,default:""},allowUploadDuplicateFile:Boolean,autoUpload:{type:Boolean,default:!0},beforeAllFilesUpload:{type:Function},beforeUpload:{type:Function},cancelUploadButton:{type:[Object,Function]},data:{type:Object},default:{type:[String,Function]},disabled:Boolean,dragContent:{type:[String,Function]},draggable:{type:Boolean,default:void 0},fileListDisplay:{type:Function},files:{type:Array,default:void 0},defaultFiles:{type:Array,default:function(){return[]}},format:{type:Function},formatRequest:{type:Function},formatResponse:{type:Function},headers:{type:Object},imageViewerProps:{type:Object},inputAttributes:{type:Object},isBatchUpload:Boolean,locale:{type:Object},max:{type:Number,default:0},method:{type:String,default:"POST",validator:function(e){return e?["POST","GET","PUT","OPTION","PATCH","post","get","put","option","patch"].includes(e):!0}},mockProgressDuration:{type:Number},multiple:Boolean,name:{type:String,default:"file"},placeholder:{type:String,default:""},requestMethod:{type:Function},showImageFileName:{type:Boolean,default:!0},showThumbnail:Boolean,showUploadProgress:{type:Boolean,default:!0},sizeLimit:{type:[Number,Object]},status:{type:String,validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},theme:{type:String,default:"file",validator:function(e){return e?["custom","file","file-input","file-flow","image","image-flow"].includes(e):!0}},tips:{type:[String,Function]},trigger:{type:Function},triggerButtonProps:{type:Object},uploadAllFilesInOneRequest:Boolean,uploadButton:{type:[Object,Function]},uploadPastedFiles:{type:Boolean,default:!0},useMockProgress:{type:Boolean,default:!0},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},withCredentials:Boolean,onCancelUpload:Function,onChange:Function,onDragenter:Function,onDragleave:Function,onDrop:Function,onFail:Function,onOneFileFail:Function,onOneFileSuccess:Function,onPreview:Function,onProgress:Function,onRemove:Function,onSelectChange:Function,onSuccess:Function,onValidate:Function,onWaitingUploadFilesChange:Function};/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /var Ne={accept:String,files:Array,toUploadFiles:Array,displayFiles:Array,theme:String,abridgeName:Array,placeholder:String,classPrefix:String,tips:[String,Function],status:String,locale:Object,sizeOverLimitMessage:String,autoUpload:Boolean,uploadPastedFiles:Boolean,onPasteFileChange:Function,disabled:Boolean,uploading:Boolean,tipsClasses:[String,Array,Object],errorClasses:[String,Array,Object],placeholderClass:[String,Array,Object],showUploadProgress:Boolean,default:Function,fileListDisplay:Function,onRemove:Function,imageViewerProps:Object};/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n l a ( t , e ) { v a r a = O b j e c t . k e y s ( t ) ; i f ( O b j e c t . g e t O w n P r o p e r t y S y m b o l s ) { v a r n = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( t ) ; e & & ( n = n . f i l t e r ( f u n c t i o n ( r ) { r e t u r n O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , r ) . e n u m e r a b l e } ) ) , a . p u s h . a p p l y ( a , n ) } r e t u r n a } f u n c t i o n c l ( t ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r a = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? l a ( O b j e c t ( a ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( n ) { T ( t , n , a [ n ] ) } ) : O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ? O b j e c t . d e f i n e P r o p e r t i e s ( t , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ( a ) ) : l a ( O b j e c t ( a ) ) . f o r E a c h ( f u n c t i o n ( n ) { O b j e c t . d e f i n e P r o p e r t y ( t , n , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( a , n ) ) } ) } r e t u r n t } f u n c t i o n s l ( t ) { r e t u r n t y p e o f t = = " f u n c t i o n " | | O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( t ) = = = " [ o b j e c t O b j e c t ] " & & ! t t ( t ) } v a r v l = J ( { n a m e : " U p l o a d N o r m a l F i l e " , p r o p s : c l ( { m u l t i p l e : B o o l e a n } , N e ) , s e t u p : f u n c t i o n ( e , a ) { v a r n = a . s l o t s , r = y e ( e ) , o = r . t h e m e , s = r . d i s a b l e d , c = r . c l a s s P r e f i x , i = d ( f u n c t i o n ( ) { r e t u r n e . l o c a l e } ) , v = T e ( { C l o s e I c o n : W e , T i m e F i l l e d I c o n : I a , C h e c k C i r c l e F i l l e d I c o n : Q e , E r r o r C i r c l e F i l l e d I c o n : X e , C l o s e C i r c l e F i l l e d I c o n : r n } ) , u = v . C l o s e I c o n , f = v . T i m e F i l l e d I c o n , y = v . C h e c k C i r c l e F i l l e d I c o n , m = v . E r r o r C i r c l e F i l l e d I c o n , w = v . C l o s e C i r c l e F i l l e d I c o n , N = v e ( ) , _ = " " . c o n c a t ( c . v a l u e , " - u p l o a d " ) , M = f u n c t i o n ( S ) { r e t u r n l ( " d i v " , { c l a s s : " " . c o n c a t ( _ , " _ _ s i n g l e - p r o g r e s s " ) } , [ l ( R e , n u l l , n u l l ) , e . s h o w U p l o a d P r o g r e s s & & l ( " s p a n " , { c l a s s : " " . c o n c a t ( _ , " _ _ s i n g l e - p e r c e n t " ) } , [ S | | 0 , " % " ] ) ] ) } , I = f u n c t i o n ( S ) { v a r b ; r e t u r n o . v a l u e ! = = " f i l e " | | ! e . m u l t i p l e & & ( ( b = S [ 0 ] ) = = = n u l l | | b = = = v o i d 0 ? v o i d 0 : b . s t a t u s ) = = = " f a i l " & & e . a u t o U p l o a d ? n u l l : S . m a p ( f u n c t i o n ( F , j ) { v a r C = e . a b r i d g e N a m e & & F . n a m e ? E e . a p p l y ( v o i d 0 , [ F . n a m e ] . c o n c a t ( o e ( e . a b r i d g e N a m e ) ) ) : F . n a m e ; r e t u r n l ( " d i v " , { c l a s s : " " . c o n c a t ( _ , " _ _ s i n g l e - d i s p l a y - t e x t " ) . c o n c a t ( _ , " _ _ d i s p l a y - t e x t - - m a r g i n " ) , k e y : F . n a m e + j + F . p e r c e n t + F . s t a t u s } , [ F . u r l ? l ( r t , { h r e f : F . u r l , t a r g e t : " _ b l a n k " , h o v e r : " c o l o r " , s i z e : " s m a l l " , c l a s s : " " . c o n c a t ( _ , " _ _ s i n g l e - n a m e " ) } , s l ( C ) ? C : { d e f a u l t : f u n c t i o n ( ) { r e t u r n [ C ] } } ) : l ( " s p a n " , { c l a s s : " " . c o n c a t ( _ , " _ _ s i n g l e - n a m e " ) } , [ C ] ) , F . s t a t u s = = = " f a i l " & & l ( " d i v " , { c l a s s : " " . c o n c a t ( _ , " _ _ f l o w - s t a t u s " ) . c o n c a t ( _ , " _ _ f i l e - f a i l " ) } , [ l ( m , n u l l , n u l l ) ] ) , F . s t a t u s = = = " w a i t i n g " & & l ( " d i v " , { c l a s s : " " . c o n c a t ( _ , " _ _ f l o w - s t a t u s " ) . c o n c a t ( _ , " _ _ f i l e - w a i t i n g " ) } , [ l ( f , n u l l , n u l l ) ] ) , F . s t a t u s = = = " p r o g r e s s " & & M ( F . p e r c e n t ) , ! s . v a l u e & & F . s t a t u s ! = = " p r o g r e s s " & & l ( u , { c l a s s : " " . c o n c a t ( _ , " _ _ i c o n - d e l e t e " ) , o n C l i c k : f u n c t i o n ( D ) { v a r Y = D . e ; r e t u r n e . o n R e m o v e ( { e : Y , f i l e : F , i n d e x : j } ) } } , n u l l ) ] ) } ) } , P = f u n c t i o n ( ) { v a r S ; i f ( o . v a l u e = = = " f i l e - i n p u t " ) { v a r b = e . d i s p l a y F i l e s [ 0 ] | | [ ] , F = [ " " . c o n c a t ( c . v a l u e , " - i n p u t _ _ i n n e r " ) , T ( { } , " " . c o n c a t ( _ , " _ _ p l a c e h o l d e r " ) , ! e . d i s p l a y F i l e s [ 0 ] ) ] , j = s . v a l u e ? " " . c o n c a t ( c . v a l u e , " - i s - d i s a b l e d " ) : " " , C = ( S = e . a b r i d g e N a m e ) ! = = n u l l & & S ! = = v o i d 0 & & S . l e n g t h & & b ! = = n u l l & & b ! = = v o i d 0 & & b . n a m e ? E e . a p p l y ( v o i d 0 , [ b . n a m e ] . c o n c a t ( o e ( e . a b r i d g e N a m e ) ) ) : b = = n u l l ? v o i d 0 : b . n a m e ; r e t u r n l ( " d i v " , { c l a s s : " " . c o n c a t ( _ , " _ _ s i n g l e - i n p u t - p r e v i e w " ) . c o n c a t ( c . v a l u e , " - i n p u t " ) . c o n c a t ( j ) } , [ l ( " d i v " , { c l a s s : F } , [ l ( " s p a n " , { c l a s s : [ " " . c o n c a t ( _ , " _ _ s i n g l e - i n p u t - t e x t " ) , T ( { } , e . p l a c e h o l d e r C l a s s , e . p l a c e h o l d e r & & ! ( b ! = n u l l & & b . n a m e ) ) ] } , [ b ! = n u l l & & b . n a m e ? C : e . p l a c e h o l d e r ] ) , ( b = = n u l l ? v o i d 0 : b . s t a t u s ) = = = " p r o g r e s s " & & M ( b . p e r c e n t ) , ( b = = n u l l ? v o i d 0 : b . s t a t u s ) = = = " w a i t i n g " & & l ( f , { c l a s s : " " . c o n c a t ( _ , " _ _ s t a t u s - i c o n " ) . c o n c a t ( _ , " _ _ f i l e - w a i t i n g " ) } , n u l l ) , b . s t a t u s = = = " s u c c e s s " & & l ( y , { c l a s s : " " . c o n c a t ( _ , " _ _ s t a t u s - i c o n " ) } , n u l l ) , ( b = = n u l l ? v o i d 0 : b . n a m e ) & & b . s t a t u s = = = " f a i l " & & l ( m , { c l a s s : " " . c o n c a t ( _ , " _ _ s t a t u s - i c o n " ) . c o n c a t ( _ , " _ _ f i l e - f a i l " ) } , n u l l ) , B o o l e a n ( ! s . v a l u e & & b . n a m e ) & & l ( w , { c l a s s : " " . c o n c a t ( _ , " _ _ s i n g l e - i n p u t - c l e a r " ) , o n C l i c k : f u n c t i o n ( D ) { v a r Y = D . e ; r e t u r n e . o n R e m o v e ( { e : Y , f i l e : b , i n d e x : 0 } ) } } , n u l l ) ] ) ] ) } } ; r e t u r n f u n c t i o n ( ) { v a r k , S , b , F = [ " " . c o n c a t ( _ , " _ _ s i n g l e " ) , " " . c o n c a t ( _ , " _ _ s i n g l e - " ) . c o n c a t ( o . v a l u e ) ] , j = N ( " f i l e L i s t D i s p l a y " , { p a r a m s : { o n R e m o v e : e . o n R e m o v e , t o U p l o a d F i l e s : e . t o U p l o a d F i l e s , s i z e O v e r L i m i t M e s s a g e : e . s i z e O v e r L i m i t M e s s a g e , l o c a l e : e . l o c a l e , f i l e s : e . d i s p l a y F i l e s } } ) ; ( e . f i l e L i s t D i s p l a y = = = n u l l | | j = = = n u l l ) & & ( j = n u l l ) ; v a r C = e . d i s p l a y F i l e s ; r e t u r n l ( " d i v " , { c l a s s : F } , [ o . v a l u e = = = " f i l e - i n p u t " & & P ( ) , ( k = n . d e f a u l t ) = = = n u l l | | k = = = v o i d 0 ? v o i d 0 : k . c a l l ( n ) , o . v a l u e = = = " f i l e " & & e . p l a c e h o l d e r & & ! C [ 0 ] & & l ( " s m a l l " , { c l a s s : [ e . t i p s C l a s s e s , e . p l a c e h o l d e r C l a s s ] } , [ e . p l a c e h o l d e r ] ) , j = = = n u l l ? n u l l : j | | I ( C ) , ! e . m u l t i p l e & & ( ( S = C [ 0 ] ) = = = n u l l | | S = = = v o i d 0 ? v o i d 0 : S . s t a t u s ) = = = " f a i l " & & o . v a l u e = = = " f i l e " ? l ( " s m a l l " , { c l a s s : [ e . e r r o r C l a
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /function ot(t,e){var a=Z(null),n=Z(!1),r=function(v){var u;v.preventDefault(),n.value=!1;var f=v.dataTransfer.files,y=Ea(f,e.value);if((u=t.onDrop)===null||u===void 0||u.call(t,{e:v}),y!=null&&y.length){var m;(m=t.onDragFileChange)===null||m===void 0||m.call(t,y)}},o=function(v){var u;v.preventDefault(),a.value=v.target,(u=t.onDragenter)===null||u===void 0||u.call(t,{e:v}),n.value=!0},s=function(v){var u;v.target===a.value&&(v.preventDefault(),(u=t.onDragleave)===null||u===void 0||u.call(t,{e:v}),n.value=!1)},c=function(v){v.preventDefault()};return{target:a,dragActive:n,handleDrop:r,handleDragenter:o,handleDragleave:s,handleDragover:c}}/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n o a ( t , e ) { v a r a = O b j e c t . k e y s ( t ) ; i f ( O b j e c t . g e t O w n P r o p e r t y S y m b o l s ) { v a r n = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( t ) ; e & & ( n = n . f i l t e r ( f u n c t i o n ( r ) { r e t u r n O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , r ) . e n u m e r a b l e } ) ) , a . p u s h . a p p l y ( a , n ) } r e t u r n a } f u n c t i o n i a ( t ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r a = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? o a ( O b j e c t ( a ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( n ) { T ( t , n , a [ n ] ) } ) : O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ? O b j e c t . d e f i n e P r o p e r t i e s ( t , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ( a ) ) : o a ( O b j e c t ( a ) ) . f o r E a c h ( f u n c t i o n ( n ) { O b j e c t . d e f i n e P r o p e r t y ( t , n , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( a , n ) ) } ) } r e t u r n t } v a r d l = J ( { n a m e : " U p l o a d D r a g g e r F i l e " , p r o p s : i a ( i a ( { } , N e ) , { } , { t r i g g e r : F u n c t i o n , t r i g g e r U p l o a d : F u n c t i o n , u p l o a d F i l e s : F u n c t i o n , c a n c e l U p l o a d : F u n c t i o n , d r a g E v e n t s : O b j e c t } ) , s e t u p : f u n c t i o n ( e , a ) { v a r n = a . s l o t s , r = y e ( e ) , o = r . d i s p l a y F i l e s , s = r . d i s a b l e d , c = r . a c c e p t , i = d ( f u n c t i o n ( ) { r e t u r n e . l o c a l e } ) , v = v e ( ) , u = h n ( ) , f = u . s i z e C l a s s N a m e s , y = " " . c o n c a t ( e . c l a s s P r e f i x , " - u p l o a d " ) , m = o t ( e . d r a g E v e n t s , c ) , w = m . d r a g A c t i v e , N = Z ( ) , _ = d ( f u n c t i o n ( ) { v a r C ; r e t u r n [ " " . c o n c a t ( y , " _ _ d r a g g e r " ) , T ( { } , " " . c o n c a t ( y , " _ _ d r a g g e r - c e n t e r " ) , ! o . v a l u e [ 0 ] ) , T ( { } , " " . c o n c a t ( y , " _ _ d r a g g e r - e r r o r " ) , ( ( C = o . v a l u e [ 0 ] ) = = = n u l l | | C = = = v o i d 0 ? v o i d 0 : C . s t a t u s ) = = = " f a i l " ) ] } ) , M = T e ( { C h e c k C i r c l e F i l l e d I c o n : Q e , E r r o r C i r c l e F i l l e d I c o n : X e } ) , I = M . C h e c k C i r c l e F i l l e d I c o n , P = M . E r r o r C i r c l e F i l l e d I c o n , k = f u n c t i o n ( ) { v a r h ; i f ( ! ! e . d i s p l a y F i l e s . l e n g t h ) { v a r D = o . v a l u e [ 0 ] ; i f ( ! D ) r e t u r n n u l l ; v a r Y = ( D = = n u l l ? v o i d 0 : D . u r l ) | | ( D = = n u l l | | ( h = D . r e s p o n s e ) = = = n u l l | | h = = = v o i d 0 ? v o i d 0 : h . u r l ) ; r e t u r n l ( " d i v " , { c l a s s : " " . c o n c a t ( y , " _ _ d r a g g e r - i m g - w r a p " ) } , [ l ( l t , r e ( { i m a g e s : [ Y ] , t r i g g e r : f u n c t i o n ( X , R ) { v a r V = R . o p e n ; r e t u r n l ( $ e , { s r c : Y | | D . r a w , o n C l i c k : V , e r r o r : " " , l o a d i n g : " " } , n u l l ) } } , e . i m a g e V i e w e r P r o p s ) , n u l l ) ] ) } } , S = f u n c t i o n ( ) { i f ( ! ! e . d i s p l a y F i l e s . l e n g t h ) { v a r h = o . v a l u e [ 0 ] ; i f ( ! h ) r e t u r n n u l l ; i f ( ( h = = n u l l ? v o i d 0 : h . s t a t u s ) = = = " p r o g r e s s " ) r e t u r n l ( " d i v " , { c l a s s : " " . c o n c a t ( y , " _ _ s i n g l e - p r o g r e s s " ) } , [ l ( R e , n u l l , n u l l ) , e . s h o w U p l o a d P r o g r e s s & & l ( " s p a n " , { c l a s s : " " . c o n c a t ( y , " _ _ s i n g l e - p e r c e n t " ) } , [ h . p e r c e n t , " % " ] ) ] ) } } , b = f u n c t i o n ( ) { v a r h , D = o . v a l u e [ 0 ] , Y = e . a b r i d g e N a m e ? E e . a p p l y ( v o i d 0 , [ D . n a m e ] . c o n c a t ( o e ( e . a b r i d g e N a m e ) ) ) : D . n a m e , e e = [ l ( " d i v " , { c l a s s : " " . c o n c a t ( y , " _ _ d r a g g e r - t e x t " ) , k e y : " i n f o " } , [ l ( " s p a n " , { c l a s s : " " . c o n c a t ( y , " _ _ s i n g l e - n a m e " ) } , [ Y ] ) , D . s t a t u s = = = " p r o g r e s s " & & S ( ) , D . s t a t u s = = = " s u c c e s s " & & l ( I , n u l l , n u l l ) , D . s t a t u s = = = " f a i l " & & l ( P , n u l l , n u l l ) ] ) , l ( " s m a l l " , { c l a s s : " " . c o n c a t ( f . s m a l l ) , k e y : " s i z e " } , [ i . v a l u e . f i l e . f i l e S i z e T e x t , " \ u F F 1 A " , C r ( D . s i z e ) ] ) , l ( " s m a l l " , { c l a s s : " " . c o n c a t ( f . s m a l l ) , k e y : " t i m e " } , [ i . v a l u e . f i l e . f i l e O p e r a t i o n D a t e T e x t , " \ u F F 1 A " , D . u p l o a d T i m e | | " - " ] ) ] ; r e t u r n l ( " d i v " , { c l a s s : " " . c o n c a t ( y , " _ _ d r a g g e r - p r o g r e s s " ) } , [ e . t h e m e = = = " i m a g e " & & k ( ) , l ( " d i v " , { c l a s s : " " . c o n c a t ( y , " _ _ d r a g g e r - p r o g r e s s - i n f o " ) } , [ v ( " f i l e L i s t D i s p l a y " , { p a r a m s : { f i l e s : e . d i s p l a y F i l e s } } ) | | e e , l ( " d i v " , { c l a s s : " " . c o n c a t ( y , " _ _ d r a g g e r - b t n s " ) } , [ [ " p r o g r e s s " , " w a i t i n g " ] . i n c l u d e s ( D . s t a t u s ) & & ! s . v a l u e & & l ( p e , { t h e m e : " p r i m a r y " , v a r i a n t : " t e x t " , c l a s s : " " . c o n c a t ( y , " _ _ d r a g g e r - p r o g r e s s - c a n c e l " ) , o n C l i c k : f u n c t i o n ( R ) { v a r V ; r e t u r n ( V = e . c a n c e l U p l o a d ) = = = n u l l | | V = = = v o i d 0 ? v o i d 0 : V . c a l l ( e , { e : R , f i l e : e . t o U p l o a d F i l e s [ 0 ] | | e . f i l e s [ 0 ] } ) } } , { d e f a u l t : f u n c t i o n ( ) { r e t u r n [ ( h = i . v a l u e ) = = = n u l l | | h = = = v o i d 0 ? v o i d 0 : h . c a n c e l U p l o a d T e x t ] } } ) , ! e . a u t o U p l o a d & & D . s t a t u s = = = " w a i t i n g " & & l ( p e , { t h e m e : " p r i m a r y " , v a r i a n t : " t e x t " , d i s a b l e d : s . v a l u e , o n C l i c k : f u n c t i o n ( ) { v a r R ; r e t u r n ( R = e . u p l o a d F i l e s ) = = = n u l l | | R = = = v o i d 0 ? v o i d 0 : R . c a l l ( e ) } , c l a s s : " " . c o n c a t ( y , " _ _ d r a g g e r - u p l o a d - b t n " ) } , { d e f a u l t : f u n c t i o n ( ) { r e t u r n [ i . v a l u e . t r i g g e r U p l o a d T e x t . n o r m a l ] } } ) ] ) , [ " f a i l " , " s u c c e s s " ] . i n c l u d e s ( D = = n u l l ? v o i d 0 : D . s t a t u s ) & & ! s . v a l u e & & l ( " d i v " , { c l a s s : " " . c o n c a t ( y , " _ _ d r a g g e r - b t n s " ) } , [ l ( p e , { t h e m e : " p r i m a r y " , v a r i a n t : " t e x t " , d i s a b l e d : s . v a l u e , c l a s s : " " . c o n c a t ( y , " _ _ d r a g g e r - p r o g r e s s - c a n c e l " ) , o n C l i c k : e . t r i g g e r U p l o a d } , { d e f a u l t : f u n c t i o n ( ) { r e t u r n [ i . v a l u e . t r i g g e r U p l o a d T e x t . r e u p l o a d ] } } ) , l ( p e , { t h e m e : " d a n g e r " , v a r i a n t : " t e x t " , d i s a b l e d : s . v a l u e , c l a s s : " " . c o n c a t ( y , " _ _ d r a g g e r - d e l e t e - b t n " ) , o n C l i c k : f u n c t i o n ( R ) { r e t u r n e . o n R e m o v e ( { e : R , i n d e x : 0 , f i l e : D } ) } } , { d e f a u l t : f u n c t i o n ( ) { r e t u r n [ i . v a l u e . t r i g g e r U p l o a d T e x t . d e l e t e ] } } ) ] ) ] ) ] ) } , F = f u n c t i o n ( ) { v a r h , D = l ( " d i v " , n u l l , [ l ( " s p a n " , { c l a s s : " " . c o n c a t ( y , " - - h i g h l i g h t " ) } , [ ( h = i . v a l u e . t r i g g e r U p l o a d T e x t ) = = = n u l l | | h = = = v o i d 0 ? v o i d 0 : h . n o r m a l ] ) , l ( " s p a n " , n u l l , [ " \ x A 0 \ x A 0 / \ x A 0 \ x A 0 " , i . v a l u e . d r a g g e r . d r a g g i n g T e x t
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n u a ( t , e ) { v a r a = O b j e c t . k e y s ( t ) ; i f ( O b j e c t . g e t O w n P r o p e r t y S y m b o l s ) { v a r n = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( t ) ; e & & ( n = n . f i l t e r ( f u n c t i o n ( r ) { r e t u r n O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , r ) . e n u m e r a b l e } ) ) , a . p u s h . a p p l y ( a , n ) } r e t u r n a } f u n c t i o n c a ( t ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r a = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? u a ( O b j e c t ( a ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( n ) { T ( t , n , a [ n ] ) } ) : O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ? O b j e c t . d e f i n e P r o p e r t i e s ( t , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ( a ) ) : u a ( O b j e c t ( a ) ) . f o r E a c h ( f u n c t i o n ( n ) { O b j e c t . d e f i n e P r o p e r t y ( t , n , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( a , n ) ) } ) } r e t u r n t } f u n c t i o n f l ( t ) { r e t u r n t y p e o f t = = " f u n c t i o n " | | O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( t ) = = = " [ o b j e c t O b j e c t ] " & & ! t t ( t ) } v a r g l = J ( { n a m e : " U p l o a d I m a g e C a r d " , p r o p s : c a ( c a ( { } , N e ) , { } , { m u l t i p l e : B o o l e a n , m a x : N u m b e r , d i s a b l e d : B o o l e a n , s h o w U p l o a d P r o g r e s s : B o o l e a n , t r i g g e r U p l o a d : F u n c t i o n , u p l o a d F i l e s : F u n c t i o n , c a n c e l U p l o a d : F u n c t i o n , o n P r e v i e w : F u n c t i o n , s h o w I m a g e F i l e N a m e : B o o l e a n } ) , s e t u p : f u n c t i o n ( e ) { v a r a = y e ( e ) , n = a . d i s p l a y F i l e s , r = a . c l a s s P r e f i x , o = a . m u l t i p l e , s = a . m a x , c = d ( f u n c t i o n ( ) { r e t u r n e . l o c a l e } ) , i = T e ( { A d d I c o n : y n , B r o w s e I c o n : F a , D e l e t e I c o n : S a , E r r o r C i r c l e F i l l e d I c o n : X e } ) , v = i . B r o w s e I c o n , u = i . D e l e t e I c o n , f = i . A d d I c o n , y = i . E r r o r C i r c l e F i l l e d I c o n , m = v e ( ) , w = d ( f u n c t i o n ( ) { v a r I ; r e t u r n o . v a l u e ? ! s . v a l u e | | n . v a l u e . l e n g t h < s . v a l u e : ! ( ( I = n . v a l u e ) ! = = n u l l & & I ! = = v o i d 0 & & I [ 0 ] ) } ) , N = f u n c t i o n ( P , k ) { r e t u r n l ( " d i v " , { c l a s s : " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - c o n t e n t " ) . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - b o x " ) } , [ l ( $ e , { c l a s s : " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - i m a g e " ) , s r c : P . u r l | | P . r a w , e r r o r : " " } , n u l l ) , l ( " d i v " , { c l a s s : " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - m a s k " ) } , [ l ( " s p a n " , { c l a s s : " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - m a s k - i t e m " ) , o n C l i c k : f u n c t i o n ( b ) { r e t u r n b . s t o p P r o p a g a t i o n ( ) } } , [ l ( l t , r e ( { i m a g e s : n . v a l u e . m a p ( f u n c t i o n ( S ) { r e t u r n S . u r l | | S . r a w } ) , d e f a u l t I n d e x : k , t r i g g e r : f u n c t i o n ( b , F ) { v a r j = F . o p e n ; r e t u r n l ( v , { o n C l i c k : f u n c t i o n ( h ) { v a r D , Y = h . e ; ( D = e . o n P r e v i e w ) = = = n u l l | | D = = = v o i d 0 | | D . c a l l ( e , { f i l e : P , i n d e x : k , e : Y } ) , j ( ) } } , n u l l ) } } , e . i m a g e V i e w e r P r o p s ) , n u l l ) ] ) , ! e . d i s a b l e d & & l ( P e , n u l l , [ l ( " s p a n " , { c l a s s : " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - m a s k - i t e m - d i v i d e r " ) } , n u l l ) , l ( " s p a n " , { c l a s s : " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - m a s k - i t e m " ) , o n C l i c k : f u n c t i o n ( b ) { r e t u r n b . s t o p P r o p a g a t i o n ( ) } } , [ l ( u , { o n C l i c k : f u n c t i o n ( b ) { v a r F , j = b . e ; r e t u r n e = = n u l l | | ( F = e . o n R e m o v e ) = = = n u l l | | F = = = v o i d 0 ? v o i d 0 : F . c a l l ( e , { e : j , f i l e : P , i n d e x : k } ) } } , n u l l ) ] ) ] ) ] ) ] ) } , _ = f u n c t i o n ( P , k ) { v a r S ; r e t u r n l ( " d i v " , { c l a s s : [ k , " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ " ) . c o n c a t ( e . t h e m e , " - " ) . c o n c a t ( P . s t a t u s ) ] } , [ l ( R e , { l o a d i n g : ! 0 , s i z e : " m e d i u m " } , n u l l ) , l ( " p " , n u l l , [ ( S = c . v a l u e ) = = = n u l l | | S = = = v o i d 0 | | ( S = S . p r o g r e s s ) = = = n u l l | | S = = = v o i d 0 ? v o i d 0 : S . u p l o a d i n g T e x t , e . s h o w U p l o a d P r o g r e s s ? " " . c o n c a t ( P . p e r c e n t , " % " ) : " " ] ) ] ) } , M = f u n c t i o n ( P , k , S ) { v a r b , F ; r e t u r n l ( " d i v " , { c l a s s : S } , [ l ( y , n u l l , n u l l ) , l ( " p " , n u l l , [ ( ( b = P . r e s p o n s e ) = = = n u l l | | b = = = v o i d 0 ? v o i d 0 : b . e r r o r ) | | ( ( F = c . v a l u e ) = = = n u l l | | F = = = v o i d 0 | | ( F = F . p r o g r e s s ) = = = n u l l | | F = = = v o i d 0 ? v o i d 0 : F . f a i l T e x t ) ] ) , l ( " d i v " , { c l a s s : " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - m a s k " ) } , [ l ( " s p a n " , { c l a s s : " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - m a s k - i t e m " ) , o n C l i c k : f u n c t i o n ( C ) { r e t u r n C . s t o p P r o p a g a t i o n ( ) } } , [ l ( u , { o n C l i c k : f u n c t i o n ( C ) { v a r h , D = C . e ; r e t u r n e = = n u l l | | ( h = e . o n R e m o v e ) = = = n u l l | | h = = = v o i d 0 ? v o i d 0 : h . c a l l ( e , { e : D , f i l e : P , i n d e x : k } ) } } , n u l l ) ] ) ] ) ] ) } ; r e t u r n f u n c t i o n ( ) { v a r I , P , k = m ( " f i l e L i s t D i s p l a y " , { p a r a m s : { t r i g g e r U p l o a d : e . t r i g g e r U p l o a d , u p l o a d F i l e s : e . u p l o a d F i l e s , c a n c e l U p l o a d : e . c a n c e l U p l o a d , o n P r e v i e w : e . o n P r e v i e w , o n R e m o v e : e . o n R e m o v e , t o U p l o a d F i l e s : e . t o U p l o a d F i l e s , s i z e O v e r L i m i t M e s s a g e : e . s i z e O v e r L i m i t M e s s a g e , l o c a l e : e . l o c a l e , f i l e s : n . v a l u e } } ) ; i f ( k ) r e t u r n k ; v a r S = " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - i t e m " ) . c o n c a t ( r . v a l u e , " - i s - b a c k g r o u n d " ) ; r e t u r n l ( " d i v " , n u l l , [ l ( " u l " , { c l a s s : " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d " ) } , [ ( I = n . v a l u e ) = = = n u l l | | I = = = v o i d 0 ? v o i d 0 : I . m a p ( f u n c t i o n ( b , F ) { v a r j = " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - n a m e " ) , C = " " . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - c o n t a i n e r " ) . c o n c a t ( r . v a l u e , " - u p l o a d _ _ c a r d - b o x " ) , h = e . a b r i d g e N a m e ? E e . a p p l y ( v o i d 0 , [ b . n a m e ] . c o n c a t ( o e ( e . a b r i d g e N a m e ) ) ) : b . n a m e ; r e t u r n l ( " l i " , { c l a s s : S , k e y : F } , [ b . s t a t u s = = = " p r o g r e s s " & & _ ( b , C ) , b . s t a t u s = = = " f a i l " & & M ( b , F , C ) , ! [ " p r o g r e s s " , " f a i l " ] . i n c l u d e s ( b . s t a t u s ) & & N ( b , F ) , B o o l e a n ( h & & e . s h o w I m a g e F i l e N a m e ) & & ( b . u r l ? l ( r t , { h r e f : b . u r l , c l a s s : j , t a r g e t : " _ b l a n k " , h o v e r : " c o l o r " , s i z e : " s m a l l " } , f
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n s a ( t , e ) { v a r a = O b j e c t . k e y s ( t ) ; i f ( O b j e c t . g e t O w n P r o p e r t y S y m b o l s ) { v a r n = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( t ) ; e & & ( n = n . f i l t e r ( f u n c t i o n ( r ) { r e t u r n O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , r ) . e n u m e r a b l e } ) ) , a . p u s h . a p p l y ( a , n ) } r e t u r n a } f u n c t i o n v a ( t ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r a = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? s a ( O b j e c t ( a ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( n ) { T ( t , n , a [ n ] ) } ) : O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ? O b j e c t . d e f i n e P r o p e r t i e s ( t , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ( a ) ) : s a ( O b j e c t ( a ) ) . f o r E a c h ( f u n c t i o n ( n ) { O b j e c t . d e f i n e P r o p e r t y ( t , n , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( a , n ) ) } ) } r e t u r n t } f u n c t i o n m l ( t ) { r e t u r n t y p e o f t = = " f u n c t i o n " | | O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( t ) = = = " [ o b j e c t O b j e c t ] " & & ! t t ( t ) } v a r p l = J ( { n a m e : " U p l o a d M u l t i p l e F l o w L i s t " , p r o p s : v a ( v a ( { } , N e ) , { } , { s h o w T h u m b n a i l : B o o l e a n , u p l o a d F i l e s : F u n c t i o n , c a n c e l U p l o a d : F u n c t i o n , d r a g E v e n t s : O b j e c t , d i s a b l e d : B o o l e a n , i s B a t c h U p l o a d : B o o l e a n , d r a g g a b l e : B o o l e a n , s h o w I m a g e F i l e N a m e : B o o l e a n , u p l o a d B u t t o n : O b j e c t , c a n c e l U p l o a d B u t t o n : O b j e c t , o n P r e v i e w : F u n c t i o n } ) , s e t u p : f u n c t i o n ( e , a ) { v a r n = a . s l o t s , r = y e ( e ) , o = r . u p l o a d i n g , s = r . d i s a b l e d , c = r . d i s p l a y F i l e s , i = r . c l a s s P r e f i x , v = r . a c c e p t , u = d ( f u n c t i o n ( ) { r e t u r n " " . c o n c a t ( i . v a l u e , " - u p l o a d " ) } ) , f = d ( f u n c t i o n ( ) { r e t u r n e . l o c a l e } ) , y = v e ( ) , m = T e ( { B r o w s e I c o n : F a , D e l e t e I c o n : S a , C h e c k C i r c l e F i l l e d I c o n : Q e , E r r o r C i r c l e F i l l e d I c o n : X e , T i m e F i l l e d I c o n : I a } ) , w = m . B r o w s e I c o n , N = m . D e l e t e I c o n , _ = m . C h e c k C i r c l e F i l l e d I c o n , M = m . E r r o r C i r c l e F i l l e d I c o n , I = m . T i m e F i l l e d I c o n , P = o t ( e . d r a g E v e n t s , v ) , k = Z ( [ ] ) , S = Z ( 0 ) , b = d ( f u n c t i o n ( ) { r e t u r n o . v a l u e ? " " . c o n c a t ( f . v a l u e . p r o g r e s s . u p l o a d i n g T e x t ) : f . v a l u e . t r i g g e r U p l o a d T e x t . n o r m a l } ) , F = d ( f u n c t i o n ( ) { v a r A = e . d r a g g a b l e = = = v o i d 0 ? ! 0 : e . d r a g g a b l e ; r e t u r n A ? { o n D r o p : P . h a n d l e D r o p , o n D r a g e n t e r : P . h a n d l e D r a g e n t e r , o n D r a g o v e r : P . h a n d l e D r a g o v e r , o n D r a g l e a v e : P . h a n d l e D r a g l e a v e } : { } } ) , j = f u n c t i o n ( ) { v a r p = { s u c c e s s : l ( _ , n u l l , n u l l ) , f a i l : l ( M , n u l l , n u l l ) , p r o g r e s s : l ( R e , n u l l , n u l l ) , w a i t i n g : l ( I , n u l l , n u l l ) } , z = f . v a l u e . p r o g r e s s , $ = { s u c c e s s : z = = n u l l ? v o i d 0 : z . s u c c e s s T e x t , f a i l : z = = n u l l ? v o i d 0 : z . f a i l T e x t , p r o g r e s s : z = = n u l l ? v o i d 0 : z . u p l o a d i n g T e x t , w a i t i n g : z = = n u l l ? v o i d 0 : z . w a i t i n g T e x t } ; r e t u r n { i c o n M a p : p , t e x t M a p : $ } } , C = f u n c t i o n ( ) { r e t u r n l ( " d i v " , { c l a s s : " " . c o n c a t ( u . v a l u e , " _ _ f l o w - e m p t y " ) } , [ P . d r a g A c t i v e . v a l u e ? f . v a l u e . d r a g g e r . d r a g D r o p T e x t : f . v a l u e . d r a g g e r . c l i c k A n d D r a g T e x t ] ) } , h = f u n c t i o n ( p , z ) { v a r $ = j ( ) , W = $ . i c o n M a p , Q = $ . t e x t M a p , E = e . a b r i d g e N a m e & & p . n a m e ? E e . a p p l y ( v o i d 0 , [ p . n a m e ] . c o n c a t ( o e ( e . a b r i d g e N a m e ) ) ) : p . n a m e ; r e t u r n l ( " l i " , { c l a s s : " " . c o n c a t ( u . v a l u e , " _ _ c a r d - i t e m " ) , k e y : p . n a m e + z + p . p e r c e n t + p . s t a t u s | | " 0 " } , [ l ( " d i v " , { c l a s s : [ " " . c o n c a t ( u . v a l u e , " _ _ c a r d - c o n t e n t " ) , T ( { } , " " . c o n c a t ( i . v a l u e , " - i s - b o r d e r e d " ) , p . s t a t u s ! = = " w a i t i n g " ) ] } , [ [ " f a i l " , " p r o g r e s s " ] . i n c l u d e s ( p . s t a t u s ) & & l ( " d i v " , { c l a s s : " " . c o n c a t ( u . v a l u e , " _ _ c a r d - s t a t u s - w r a p " ) . c o n c a t ( u . v a l u e , " _ _ " ) . c o n c a t ( e . t h e m e , " - " ) . c o n c a t ( p . s t a t u s ) } , [ W [ p . s t a t u s ] , l ( " p " , n u l l , [ Q [ p . s t a t u s ] , e . s h o w U p l o a d P r o g r e s s & & p . s t a t u s = = = " p r o g r e s s " ? " " . c o n c a t ( p . p e r c e n t , " % " ) : " " ] ) ] ) , ( [ " w a i t i n g " , " s u c c e s s " ] . i n c l u d e s ( p . s t a t u s ) | | ! p . s t a t u s & & p . u r l ) & & l ( $ e , { c l a s s : " " . c o n c a t ( u . v a l u e , " _ _ c a r d - i m a g e " ) , s r c : p . u r l | | p . r a w , e r r o r : " " , l o a d i n g : " " } , n u l l ) , l ( " d i v " , { c l a s s : " " . c o n c a t ( u . v a l u e , " _ _ c a r d - m a s k " ) } , [ ( p . u r l | | p . r a w ) & & ! [ " p r o g r e s s " , " f a i l " ] . i n c l u d e s ( p . s t a t u s ) & & l ( " s p a n " , { c l a s s : " " . c o n c a t ( u . v a l u e , " _ _ c a r d - m a s k - i t e m " ) } , [ l ( w , { o n C l i c k : f u n c t i o n ( L ) { v a r O , g = L . e ; S . v a l u e = z , k . v a l u e = c . v a l u e , ( O = e . o n P r e v i e w ) = = = n u l l | | O = = = v o i d 0 | | O . c a l l ( e , { f i l e : p , i n d e x : z , e : g } ) } } , n u l l ) , l ( " s p a n " , { c l a s s : " " . c o n c a t ( u . v a l u e , " _ _ c a r d - m a s k - i t e m - d i v i d e r " ) } , n u l l ) ] ) , ! s . v a l u e & & l ( " s p a n " , { c l a s s : " " . c o n c a t ( u . v a l u e , " _ _ c a r d - m a s k - i t e m " ) . c o n c a t ( u . v a l u e , " _ _ d e l e t e " ) , o n C l i c k : f u n c t i o n ( L ) { r e t u r n e . o n R e m o v e ( { e : L , i n d e x : z , f i l e : p } ) } } , [ l ( N , n u l l , n u l l ) ] ) ] ) ] ) , e . s h o w I m a g e F i l e N a m e & & l ( " p " , { c l a s s : [ " " . c o n c a t ( u . v a l u e , " _ _ c a r d - n a m e " ) , " " . c o n c a t ( u . v a l u e , " _ _ f l o w - s t a t u s " ) ] } , [ [ " s u c c e s s " , " w a i t i n g " ] . i n c l u d e s ( p . s t a t u s ) & & W [ p . s t a t u s ] , E ] ) ] ) } , D = f u n c t i o n ( p ) { v a r z , $ , W = j ( ) , Q = W . i c o n M a p , E = W . t e x t M a p ; r e t u r n l ( " d i v " , { c l a s s : " " . c o n c a t ( u . v a l u e , " _ _ f l o w - s t a t u s " ) } , [ Q [ p . s t a t u s ] , l ( " s p a n " , { c l a s s : " " . c o n c a t ( u . v a l u e , " _ _ " ) . c o n c a t ( e . t h e m e , " - " ) . c o n c a t ( p . s t a t u s ) } , [ ( z = p . r e s p o n s e ) ! = = n u l l & & z ! = = v o i d 0 & & z . e r r o r & & ( ( $ = p . r e s p o n s e ) = = = n u l l | | $ = = = v o i d 0 ? v o i d 0 : $ . e r r o r ) | | E [ p . s t a t u s ] , e . s h o w U p l o a d P r o g r e s s & & p . s t a t u s = = = " p r o g r e s s " ? " " . c o n c a t ( p . p e r c e n t | | 0 , " % " ) : " " ] ) ] ) } , Y = f u n c t i o n ( p , z ) { v a r $ ; r e t u r n l ( " t d " , n u l l , [ l ( p e , { t h
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n d a ( t , e ) { v a r a = O b j e c t . k e y s ( t ) ; i f ( O b j e c t . g e t O w n P r o p e r t y S y m b o l s ) { v a r n = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( t ) ; e & & ( n = n . f i l t e r ( f u n c t i o n ( r ) { r e t u r n O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , r ) . e n u m e r a b l e } ) ) , a . p u s h . a p p l y ( a , n ) } r e t u r n a } f u n c t i o n A e ( t ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r a = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? d a ( O b j e c t ( a ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( n ) { T ( t , n , a [ n ] ) } ) : O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ? O b j e c t . d e f i n e P r o p e r t i e s ( t , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ( a ) ) : d a ( O b j e c t ( a ) ) . f o r E a c h ( f u n c t i o n ( n ) { O b j e c t . d e f i n e P r o p e r t y ( t , n , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( a , n ) ) } ) } r e t u r n t } f u n c t i o n h l ( t ) { v a r e , a = t . m e t h o d , n = a = = = v o i d 0 ? " P O S T " : a , r = t . a c t i o n , o = t . w i t h C r e d e n t i a l s , s = o = = = v o i d 0 ? ! 1 : o , c = t . h e a d e r s , i = c = = = v o i d 0 ? { } : c , v = t . d a t a , u = v = = = v o i d 0 ? { } : v , f = t . f i l e , y = t . f i l e s , m = y = = = v o i d 0 ? [ ] : y , w = t . n a m e , N = w = = = v o i d 0 ? " f i l e " : w , _ = t . u s e M o c k P r o g r e s s , M = _ = = = v o i d 0 ? ! 0 : _ , I = t . m o c k P r o g r e s s D u r a t i o n , P = I = = = v o i d 0 ? 3 0 0 : I , k = t . f o r m a t R e q u e s t , S = t . o n E r r o r , b = t . o n P r o g r e s s , F = t . o n S u c c e s s , j = m | | [ ] , C = 0 , h = n e w X M L H t t p R e q u e s t ; s & & ( h . w i t h C r e d e n t i a l s = ! 0 ) ; v a r D , Y ; i f ( M & & ( ( e = m [ 0 ] ) = = = n u l l | | e = = = v o i d 0 ? v o i d 0 : e . s t a t u s ) = = = " p r o g r e s s " ) v a r e e = s e t T i m e o u t ( f u n c t i o n ( ) { D = s e t I n t e r v a l ( f u n c t i o n ( ) { C + 1 0 < 1 0 0 ? ( C = M a t h . m a x ( C + 1 0 , C ) , m [ 0 ] & & C ! = = m [ 0 ] . p e r c e n t & & ( m [ 0 ] . p e r c e n t = C , b ( { p e r c e n t : C , f i l e : f | | j [ 0 ] , f i l e s : j . m a p ( f u n c t i o n ( B ) { r e t u r n A e ( A e ( { } , B ) , { } , { p e r c e n t : C } ) } ) , t y p e : " m o c k " , X M L H t t p R e q u e s t : h } ) ) ) : c l e a r I n t e r v a l ( D ) } , P ) , c l e a r T i m e o u t ( e e ) } , P ) ; v a r X = { } ; i f ( u ) { v a r R = C e ( u ) ? u ( j ) : u ; O b j e c t . a s s i g n ( X , R ) } j . f o r E a c h ( f u n c t i o n ( B , A ) { v a r p = j . l e n g t h > 1 ? " " . c o n c a t ( N , " [ " ) . c o n c a t ( A , " ] " ) : N ; X [ p ] = B . r a w } ) , j . l e n g t h = = = 1 ? X [ N ] = j [ 0 ] . r a w : X [ N ] = j . m a p ( f u n c t i o n ( B ) { r e t u r n B . r a w } ) , X . l e n g t h = j . l e n g t h , k & & ( X = k ( X ) ) ; v a r V = n e w F o r m D a t a ; r e t u r n O b j e c t . k e y s ( X ) . f o r E a c h ( f u n c t i o n ( B ) { V . a p p e n d ( B , X [ B ] ) } ) , h . o p e n ( n , r , ! 0 ) , O b j e c t . k e y s ( i ) . f o r E a c h ( f u n c t i o n ( B ) { h . s e t R e q u e s t H e a d e r ( B , i [ B ] ) } ) , h . o n e r r o r = f u n c t i o n ( B ) { S ( { e v e n t : B , f i l e : f , f i l e s : j , X M L H t t p R e q u e s t : h } ) , c l e a r I n t e r v a l ( D ) , c l e a r T i m e o u t ( Y ) } , h . o n t i m e o u t = f u n c t i o n ( B ) { S ( { e v e n t : B , f i l e : f , f i l e s : j , X M L H t t p R e q u e s t : h } ) } , h . u p l o a d & & ( h . u p l o a d . o n p r o g r e s s = f u n c t i o n ( B ) { v a r A , p = 0 ; i f ( B . t o t a l > 0 & & ( p = M a t h . r o u n d ( B . l o a d e d / B . t o t a l * 1 0 0 ) ) , C = M a t h . m a x ( p , C ) , C ! = = p & & ( ( A = j [ 0 ] ) = = = n u l l | | A = = = v o i d 0 ? v o i d 0 : A . p e r c e n t ) ! = = C ) { v a r z = j . m a p ( f u n c t i o n ( $ ) { r e t u r n A e ( A e ( { } , $ ) , { } , { p e r c e n t : C } ) } ) ; b ( { e v e n t : B , p e r c e n t : C , f i l e : f | | z [ 0 ] , f i l e s : z , t y p e : " r e a l " , X M L H t t p R e q u e s t : h } ) } } ) , h . o n l o a d = f u n c t i o n ( B ) { v a r A = { } ; A . X M L H t t p R e q u e s t = h ; v a r p = h . s t a t u s < 2 0 0 | | h . s t a t u s > = 3 0 0 ; i f ( p ) r e t u r n S ( { e v e n t : B , f i l e : f , f i l e s : j , r e s p o n s e : A , X M L H t t p R e q u e s t : h } ) ; v a r z = h . r e s p o n s e T e x t | | h . r e s p o n s e ; t r y { A = J S O N . p a r s e ( z ) } c a t c h { A = z , _ e . e r r o r ( " U p l o a d " , " r e s p o n s e d o e s n o t a v a l i d j s o n " ) } c l e a r I n t e r v a l ( D ) , c l e a r T i m e o u t ( Y ) , j . f o r E a c h ( f u n c t i o n ( $ ) { v a r W ; $ . p e r c e n t = 1 0 0 , $ . s t a t u s = " s u c c e s s " , $ . u p l o a d T i m e = ( ( W = A ) = = = n u l l | | W = = = v o i d 0 ? v o i d 0 : W . u p l o a d T i m e ) | | z a ( ) } ) , M e ( A ) = = = " o b j e c t " & & ( A . X M L H t t p R e q u e s t = h ) , F ( { e v e n t : B , f i l e : f | | j [ 0 ] , f i l e s : o e ( j ) , X M L H t t p R e q u e s t : h , r e s p o n s e : A } ) } , h . s e n d ( V ) , h . u p l o a d . r e q u e s t P a r a m s = X , h . u p l o a d . r e q u e s t H e a d e r s = i , h } / * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n f a ( t , e ) { v a r a = O b j e c t . k e y s ( t ) ; i f ( O b j e c t . g e t O w n P r o p e r t y S y m b o l s ) { v a r n = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( t ) ; e & & ( n = n . f i l t e r ( f u n c t i o n ( r ) { r e t u r n O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , r ) . e n u m e r a b l e } ) ) , a . p u s h . a p p l y ( a , n ) } r e t u r n a } f u n c t i o n s e ( t ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r a = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? f a ( O b j e c t ( a ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( n ) { T ( t , n , a [ n ] ) } ) : O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ? O b j e c t . d e f i n e P r o p e r t i e s ( t , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ( a ) ) : f a ( O b j e c t ( a ) ) . f o r E a c h ( f u n c t i o n ( n ) { O b j e c t . d e f i n e P r o p e r t y ( t , n , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( a , n ) ) } ) } r e t u r n t } f u n c t i o n y l ( t , e ) { v a r a = e . s i z e L i m i t , n = e . b e f o r e U p l o a d , r = n e w P r o m i s e ( f u n c t i o n ( i ) { v a r v = n u l l ; i f ( a ) { v a r u = Y e ( a ) ? { s i z e : a , u n i t : " K B " } : a , f = F r ( t . s i z e , u . s i z e , u . u n i t ) ; f & & ( v = u ) } i ( v ) } ) , o = [ r , v o i d 0 ] ; i f ( C e ( n ) ) { v a r s = n ( t ) , c = s i n s t a n c e o f P r o m i s e ? s : n e w P r o m i s e ( f u n c t i o n ( i ) { r e t u r n i ( s ) } ) ; o [ 1 ] = c } r e t u r n n e w P r o m i s e ( f u n c t i o n ( i ) { P r o m i s e . a l l ( o ) . t h e n ( f u n c t i o n ( v ) { i ( v ) } ) } ) } f u n c t i o n g a ( t ) { v a r e = t . e v e n t , a = t . f i l e s , n = t . r e s p o n s e , r = t . X M L H t t p R e q u e s t , o = t . f o r m a t R e s p o n s e , s = n ; r e t u r n C e ( o ) & & ( s = o ( n , { f i l e : a [ 0 ] , c u r r e n t F i l e s : a } ) ) , a . f o r E a c h ( f u n c t i o n ( c ) { c . s t a t u s = " f a i l " , c . r e s p o n s e = s } ) , { r e s p o n s e : s , e v e n t : e , f i l e s : a , X M L H t t p R e q u e s t : r } } f u n c t i o n b l ( t ) { v a r e = t . e v e n t , a = t . f i l e s , n = t . r e s p o n s e , r = t . X M L H t t p R e q u e s t ; ( a = = n u l l ? v o i d 0 : a . l e n g t h ) < = 0 & & _ e . e r r o r ( " U p l o a d " , " E m p t y F i l e i n S u c c e s s C a l l b a c k " ) , a . f o r E a c h ( f u n c t i o n ( s ) { v a r c ; s . p e r c e n t = 1 0 0 , s . s t a t u s = " s u c c e s s " , ( c = s . r e s p o n s e ) = = = n u l l | | c = = = v o i d 0 | | d e l e t e c . e r r o r } ) ; v a r o = n ; r e t u r n a [ 0 ] . u r l = o . u r l | | a [ 0 ] . u r l , { r e s p o n s e : o , e v e n t : e , f i l e s : a , X M L H t t p R e q u e s t : r } } f u n c t i o n O l ( t ) { r e t u r n t ? t . s t a t u s ? [ " s u c c e s s " , " f a i l " ] . i n c l u d e s ( t . s t a t u s ) ? ( t . s t a t u s = = = " s u c c e s s " & & ( ! t . r e s p o n s e | | ! t . r e s p o n s e . u r l & & ! t . r e s p o n s e . f i l e s ) & & _ e . w a r n ( " U p l o a d " , " ` r e q u e s t M e t h o d R e s p o n s e . r e s p o n s e . u r l ` o r ` r e q u e s t M e t h o d R e s p o n s e . r e s p o n s e . f i l e s ` i s r e q u i r e d i f ` s t a t u s ` i s ` s u c c e s s ` " ) , ! 0 ) : ( _ e . e r r o r ( " U p l o a d " , " ` r e q u e s t M e t h o d R e s p o n s e . s t a t u s ` m u s t b e ` s u c c e s s ` o r ` f a i l ` , e x a m p l e s ` { s t a t u s : ' s u c c e s s ' , r e s p o n s e : { u r l : ' ' } } ` " ) , ! 1 ) : ( _ e . e r r o r ( " U p l o a d " , " ` r e q u e s t M e t h o d R e s p o n s e . s t a t u s ` i s m i s s i n g , w h i c h v a l u e o n l y c a n b e ` s u c c e s s ` o r ` f a i l ` " ) , ! 1 ) : ( _ e . e r r o r ( " U p l o a d " , " ` r e q u e s t M e t h o d R e s p o n s e ` i s r e q u i r e d . " ) , ! 1 ) } f u n c t i o n m a ( t ) { v a r e = t . a c t i o n , a = t . t o U p l o a d F i l e s , n = t . r e q u e s t M e t h o d ; r e t u r n n e w P r o m i s e ( f u n c t i o n ( r ) { i f ( ! e & & ! n ) { _ e . e r r o r ( " U p l o a d " , " o n e o f a c t i o n a n d r e q u e s t M e t h o d m u s t b e e x i s t . " ) , r ( { } ) ; r e t u r n } i f ( ! a | | ! a . l e n g t h ) { _ e . w a r n ( " U p l o a d " , " N o f i l e s n e e d t o b e u p l o a d e d " ) , r ( { } ) ; r e t u r n } i f ( a . f o r E a c h ( f u n c t i o n ( c ) { c . s t a t u s = " p r o g r e s s " } ) , n ) n ( t . m u l t i p l e ? a : a [ 0 ] ) . t h e n ( f u n c t i o n ( c ) { i f ( ! O l ( c ) ) { r ( { } ) ; r e t u r n } v a r i = c . r e s p o n s e | | { } ; C e ( t . f o r m a t R e s p o n s e ) & & ( i = t . f o r m a t R e s p o n s e ( i , { f i l e : a [ 0 ] , c u r r e n t F i l e s : a } ) ) , c . s t a t u s = = = " f a i l " & & ( i . e r r o r = c . e r r o r | | i . e r r o r ) ; v a r v = [ ] ; c . s t a t u s = = = " s u c c e s s " & & i . f i l e s ? v = i . f i l e s . m a p ( f u n c t i o n ( m ) { v a r w = a . f i n d ( f u n c t i o n ( N ) { r e t u r n m . n a m e & & N . n a m e = = = m . n a m e | | m . r a w & & N . r a w = = = m . r a w } ) ; r e t u r n s e ( s e ( s e ( { } , w ) , m ) , { } , { s t a t u s : c . s t a t u s , r e s p o n s e : i } ) } ) : ( a . f o r E a c h ( f u n c t i o n ( m ) { v a r w ; m . s t a t u s = c . s t a t u s , m . r e s p o n s e = i , m . u r l = i . u r l , m . p e r c e n t = c . s t a t u s = = = " s u c c e s s " ? 1 0 0 : 0 , m . u p l o a d T i m e = ( ( w = i ) = = = n u l l | | w = = = v o i d 0 ? v o i d 0 : w . u p l o a d T i m e ) | | z a ( ) } ) , v = a ) ; v a r u = { r e s p o n s e : i , f i l e : v [ 0 ] , f i l e s : v } ; i f ( c . s t a t u s = = = " s u c c e s s " ) { v a r f ; ( f = t . o n R e s p o n s e S u c c e s s ) = = = n u l l | | f = = = v o i d 0 | | f . c a l l ( t , u ) } e l s e i f ( c . s t a t u s = = = " f a i l " ) { v a r y ; ( y = t . o n R e s p o n s e E r r o r ) = = = n u l l | | y = = = v o i d 0 | | y . c a l l ( t , u ) } r ( { s t a t u s : c . s t a t u s , d a t a : u } ) } ) ; e l s e { v a r o , s = h l ( { a c t i o n : t . a c t i o n , f i l e s : t . t o U p l o a d F i l e s , u s e M o c k P r o g r e s s : t . u s e M o c k P r o g r e s s , m o c k P r o g r e s s D u r a t i o n : t . m o c k P r o g r e s s D u r a t i o n , o n E r r o r : f u n c t i o n ( i ) { v a r v , u = g a ( s e ( s e ( { } , i ) , { } , { f o r m a t R e s p o n s e : t . f o r m a t R e s p o n s e } ) ) ; ( v = t . o n R e s p o n s e E r r o r ) = = = n u l l | | v = = = v o i d 0 | | v . c a l l ( t , u ) , r ( { s t a t u s : " f a i l " , d a t a : u } ) } , o n P r o g r e s s : t . o n R e s p o n s e P r o g r e s s , o n S u c c e s s : f u n c t i o n ( i ) { v a r v = t . f o r m a t R e s p o n s e , u = i . r e s p o n s e ; i f ( C e ( v ) & & ( u = v ( i . r e s p o n s e , { f i l e : i . f i l e , c u r r e n t F i l e s : i . f i l e s } ) ) , u . e r r o r ) { v a r f , y = g a ( s e ( s e ( { } , i ) , { } , { r e s p o n s e : u } ) ) ; ( f = t . o n R e s p o n s e E r r o r ) = = = n u l l | | f = = = v o i d 0 | | f . c a l l ( t , y ) , r ( { s t a t u s : " f a i l " , d a t a : y } ) } e l s e { v a r m ; i . f i l e . r e s p o n s e = u , i . f i l e s [ 0 ] . r e s p o n s e = u ; v a r w = b l ( s e ( s e ( { } , i ) , { } , { r e s p o n s e : u } ) ) ; ( m = t . o n R e s p o n s e S u c c e s s ) = = = n u l l | | m = = = v o i d 0 | | m . c a l l ( t , w ) , r ( { s t a t u s : " s u c c e s s " , d a t a : w } ) } } , f o r m a t R e q u e s t : t . f o r m a t R e q u e s t , d a t a : t . d a t a , n a m e : t . n a m e , h e a d e r s : t . h e a d e r
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n p a ( t , e ) { v a r a = O b j e c t . k e y s ( t ) ; i f ( O b j e c t . g e t O w n P r o p e r t y S y m b o l s ) { v a r n = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( t ) ; e & & ( n = n . f i l t e r ( f u n c t i o n ( r ) { r e t u r n O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , r ) . e n u m e r a b l e } ) ) , a . p u s h . a p p l y ( a , n ) } r e t u r n a } f u n c t i o n H e ( t ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r a = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? p a ( O b j e c t ( a ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( n ) { T ( t , n , a [ n ] ) } ) : O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ? O b j e c t . d e f i n e P r o p e r t i e s ( t , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ( a ) ) : p a ( O b j e c t ( a ) ) . f o r E a c h ( f u n c t i o n ( n ) { O b j e c t . d e f i n e P r o p e r t y ( t , n , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( a , n ) ) } ) } r e t u r n t } f u n c t i o n j l ( t ) { v a r e = Z ( ) , a = y e ( t ) , n = a . d i s a b l e d , r = a . a u t o U p l o a d , o = a . i s B a t c h U p l o a d , s = a . m u l t i p l e , c = a . f i l e s , i = a . m o d e l V a l u e , v = a . d e f a u l t F i l e s , u = U e ( " u p l o a d " ) , f = u . g l o b a l C o n f i g , y = u . t , m = u . c l a s s P r e f i x , w = n t ( c , i , v . v a l u e , t . o n C h a n g e , " f i l e s " ) , N = h e ( w , 2 ) , _ = N [ 0 ] , M = N [ 1 ] , I = Z ( [ ] ) , P = Z ( [ ] ) , k = Z ( " " ) , S = d ( f u n c t i o n ( ) { r e t u r n _ a ( { } , f . v a l u e , t . l o c a l e ) } ) , b = " " . c o n c a t ( m . v a l u e , " - u p l o a d _ _ t i p s " ) . c o n c a t ( m . v a l u e , " - s i z e - s " ) , F = [ b ] . c o n c a t ( " " . c o n c a t ( m . v a l u e , " - u p l o a d _ _ t i p s - e r r o r " ) ) , j = " " . c o n c a t ( m . v a l u e , " - u p l o a d _ _ p l a c e h o l d e r " ) , C = d ( f u n c t i o n ( ) { v a r O , g = F l ( { i s B a t c h U p l o a d : o . v a l u e , m u l t i p l e : s . v a l u e , s t a t u s : ( O = _ . v a l u e ) = = = n u l l | | O = = = v o i d 0 | | ( O = O [ 0 ] ) = = = n u l l | | O = = = v o i d 0 ? v o i d 0 : O . s t a t u s , a u t o U p l o a d : r . v a l u e } ) ; r e t u r n S . v a l u e . t r i g g e r U p l o a d T e x t [ g ] } ) , h = Z ( ! 1 ) , D = d ( f u n c t i o n ( ) { r e t u r n S l ( { m u l t i p l e : t . m u l t i p l e , t o U p l o a d F i l e s : P . v a l u e , u p l o a d V a l u e : _ . v a l u e , a u t o U p l o a d : r . v a l u e , i s B a t c h U p l o a d : o . v a l u e } ) } ) , Y = f u n c t i o n ( g ) { v a r x = g . f i l e , H = g . p e r c e n t , K = r . v a l u e ? P : _ , q = K . v a l u e . f i n d I n d e x ( f u n c t i o n ( a e ) { r e t u r n x . r a w = = = a e . r a w } ) ; K . v a l u e [ q ] = H e ( H e ( { } , K . v a l u e [ q ] ) , { } , { p e r c e n t : H } ) } , e e = f u n c t i o n ( ) { t . a u t o U p l o a d & & ( P . v a l u e = o e ( P . v a l u e ) ) } , X = f u n c t i o n ( g ) { v a r x ; i f ( ! ( ! g | | ! g . f i l e s | | ! g . f i l e s [ 0 ] ) ) { v a r H = g . r e s p o n s e , K = g . e v e n t , q = g . f i l e s ; e e ( ) , ( x = t . o n O n e F i l e F a i l ) = = = n u l l | | x = = = v o i d 0 | | x . c a l l ( t , { e : K , f i l e : q = = n u l l ? v o i d 0 : q [ 0 ] , c u r r e n t F i l e s : q , f a i l e d F i l e s : q , r e s p o n s e : H } ) , ( ! t . m u l t i p l e | | t . i s B a t c h U p l o a d ) & & M ( [ ] , { t r i g g e r : " p r o g r e s s - f a i l " , e : g . e v e n t , f i l e : g . f i l e s [ 0 ] } ) } } , R = f u n c t i o n ( g ) { v a r x ; e e ( ) , ( x = t . o n P r o g r e s s ) = = = n u l l | | x = = = v o i d 0 | | x . c a l l ( t , { e : g . e v e n t , f i l e : g . f i l e , c u r r e n t F i l e s : g . f i l e s , p e r c e n t : g . p e r c e n t , t y p e : g . t y p e , X M L H t t p R e q u e s t : g . X M L H t t p R e q u e s t } ) } , V = f u n c t i o n ( g ) { i f ( t . m u l t i p l e & & ! t . u p l o a d A l l F i l e s I n O n e R e q u e s t ) { v a r x ; e e ( ) , ( x = t . o n O n e F i l e S u c c e s s ) = = = n u l l | | x = = = v o i d 0 | | x . c a l l ( t , { e : g . e v e n t , f i l e : g . f i l e s [ 0 ] , r e s p o n s e : g . r e s p o n s e } ) } } ; f u n c t i o n B ( O ) { v a r g = O ; r e t u r n g . m e s s a g e ? y ( g . m e s s a g e , { s i z e L i m i t : g . s i z e } ) : " " . c o n c a t ( y ( S . v a l u e . s i z e L i m i t M e s s a g e , { s i z e L i m i t : g . s i z e } ) , " " ) . c o n c a t ( g . u n i t ) } v a r A = f u n c t i o n ( g ) { v a r x = t . m u l t i p l e & & ! o . v a l u e ? _ . v a l u e . c o n c a t ( g ) : g ; ! x . l e n g t h | | ( M ( x , { t r i g g e r : " a d d " , i n d e x : _ . v a l u e . l e n g t h , f i l e : g [ 0 ] , f i l e s : g } ) , P . v a l u e = [ ] ) } , p = f u n c t i o n ( g ) { v a r x ; i f ( ! n . v a l u e ) { v a r H = { c u r r e n t S e l e c t e d F i l e s : J e ( o e ( g ) , t . f o r m a t ) } ; ( x = t . o n S e l e c t C h a n g e ) = = = n u l l | | x = = = v o i d 0 | | x . c a l l ( t , o e ( g ) , H ) , P l ( { u p l o a d V a l u e : _ . v a l u e , f i l e s : o e ( g ) , a l l o w U p l o a d D u p l i c a t e F i l e : t . a l l o w U p l o a d D u p l i c a t e F i l e , m a x : t . m u l t i p l e ? t . m a x : 0 , s i z e L i m i t : t . s i z e L i m i t , i s B a t c h U p l o a d : o . v a l u e , a u t o U p l o a d : r . v a l u e , f o r m a t : t . f o r m a t , b e f o r e U p l o a d : t . b e f o r e U p l o a d , b e f o r e A l l F i l e s U p l o a d : t . b e f o r e A l l F i l e s U p l o a d } ) . t h e n ( f u n c t i o n ( K ) { v a r q ; i f ( ( ( q = K . v a l i d a t e R e s u l t ) = = = n u l l | | q = = = v o i d 0 ? v o i d 0 : q . t y p e ) = = = " B E F O R E _ A L L _ F I L E S _ U P L O A D " ) { v a r a e , l e = { t y p e : " B E F O R E _ A L L _ F I L E S _ U P L O A D " , f i l e s : K . f i l e s } ; ( a e = t . o n V a l i d a t e ) = = = n u l l | | a e = = = v o i d 0 | | a e . c a l l ( t , l e ) ; r e t u r n } i f ( K . l e n g t h O v e r L i m i t ) { v a r b e , S e = { t y p e : " F I L E S _ O V E R _ L E N G T H _ L I M I T " , f i l e s : K . f i l e s } ; i f ( ( b e = t . o n V a l i d a t e ) = = = n u l l | | b e = = = v o i d 0 | | b e . c a l l ( t , S e ) , ! K . f i l e s . l e n g t h ) r e t u r n } i f ( K . h a s S a m e N a m e F i l e ) { v a r O e , j e = { t y p e : " F I L T E R _ F I L E _ S A M E _ N A M E " , f i l e s : K . f i l e s } ; ( O e = t . o n V a l i d a t e ) = = = n u l l | | O e = = = v o i d 0 | | O e . c a l l ( t , j e ) } i f ( K . f i l e V a l i d a t e L i s t i n s t a n c e o f A r r a y ) { v a r k e , I e = C l ( K . f i l e V a l i d a t e L i s t , B ) , L e = I e . s i z e L i m i t E r r o r s , t e = I e . b e f o r e U p l o a d E r r o r F i l e s , G = I e . t o F i l e s , n e = r . v a l u e ? G : P . v a l u e . c o n c a t ( G ) ; i f ( P . v a l u e = n e , ( k e = t . o n W a i t i n g U p l o a d F i l e s C h a n g e ) = = = n u l l | | k e = = = v o i d 0 | | k e . c a l l ( t , { f i l e s : n e , t r i g g e r : " v a l i d a t e " } ) , L e [ 0 ] ) { v a r D e ; k . v a l u e = L e [ 0 ] . f i l e . r e s p o n s e . e r r o r , ( D e = t . o n V a l i d a t e ) = = = n u l l | | D e = = = v o i d 0 | | D e . c a l l ( t , { t y p e : " F I L E _ O V E R _ S I Z E _ L I M I T " , f i l e s : L e . m a p ( f u n c t i o n ( $ a ) { r e t u r n $ a . f i l e } ) } ) } e l s e i f ( k . v a l u e = " " , t e . l e n g t h ) { v a r V e , B a = { t y p e : " C U S T O M _ B E F O R E _ U P L O A D " , f i l e s : t e } ; ( V e = t . o n V a l i d a t e ) = = = n u l l | | V e = = = v o i d 0 | | V e . c a l l ( t , B a ) } r . v a l u e ? Q ( n e )
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* /function ha(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function ya(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?ha(Object(a),!0).forEach(function(n){T(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ha(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var xl=J({name:"UploadCustomFile",props:ya(ya({},Ne),{},{dragEvents:Object,draggable:Boolean,dragContent:Function,trigger:Function,triggerUpload:Function,childrenNode:[String,Function]}),setup:function(e,a){var n=a.slots,r=ye(e),o=r.classPrefix,s=r.displayFiles,c=r.accept,i=ot(e.dragEvents,c),v=i.dragActive,u=Ze(),f=function(){var m,w={dragActive:v.value||!1,files:s.value};return l("div",{class:"".concat(o.value,"-upload__dragger ").concat(o.value,"-upload__dragger-center"),onDrop:i.handleDrop,onDragenter:i.handleDragenter,onDragover:i.handleDragover,onDragleave:i.handleDragleave,onClick:e.triggerUpload},[l("div",{class:"".concat(o.value,"-upload__trigger")},[u("dragContent","trigger",{params:w})||((m=e.childrenNode)===null||m===void 0?void 0:m.call(e,w))])])};return function(){var y,m;return l(Pe,null,[e.draggable?f():l("div",{class:"".concat(o.value,"-upload__trigger"),onClick:e.triggerUpload},[((y=e.childrenNode)===null||y===void 0?void 0:y.call(e,{files:s.value}))||((m=n.default)===null||m===void 0?void 0:m.call(n))])])}}});/ * *
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n b a ( t , e ) { v a r a = O b j e c t . k e y s ( t ) ; i f ( O b j e c t . g e t O w n P r o p e r t y S y m b o l s ) { v a r n = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( t ) ; e & & ( n = n . f i l t e r ( f u n c t i o n ( r ) { r e t u r n O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , r ) . e n u m e r a b l e } ) ) , a . p u s h . a p p l y ( a , n ) } r e t u r n a } f u n c t i o n I l ( t ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r a = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? b a ( O b j e c t ( a ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( n ) { T ( t , n , a [ n ] ) } ) : O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ? O b j e c t . d e f i n e P r o p e r t i e s ( t , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r s ( a ) ) : b a ( O b j e c t ( a ) ) . f o r E a c h ( f u n c t i o n ( n ) { O b j e c t . d e f i n e P r o p e r t y ( t , n , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( a , n ) ) } ) } r e t u r n t } v a r D l = J ( { n a m e : " T U p l o a d " , p r o p s : u l , s e t u p : f u n c t i o n ( e , a ) { v a r n = a . s l o t s , r = a . e x p o s e , o = Z e ( ) , s = v e ( ) , c = j l ( e ) , i = c . l o c a l e , v = c . c l a s s P r e f i x , u = c . t r i g g e r U p l o a d T e x t , f = c . t o U p l o a d F i l e s , y = c . d i s p l a y F i l e s , m = c . u p l o a d V a l u e , w = c . s i z e O v e r L i m i t M e s s a g e , N = c . u p l o a d i n g , _ = c . t i p s C l a s s e s , M = c . e r r o r C l a s s e s , I = c . p l a c e h o l d e r C l a s s , P = c . i n p u t R e f , k = c . o n I n n e r R e m o v e , S = c . u p l o a d F i l e s , b = c . o n N o r m a l F i l e C h a n g e , F = c . o n D r a g F i l e C h a n g e , j = c . o n P a s t e F i l e C h a n g e , C = c . t r i g g e r U p l o a d , h = c . c a n c e l U p l o a d , D = c . u p l o a d F i l e P e r c e n t , Y = C a ( ) ; r ( { u p l o a d : P . v a l u e , u p l o a d i n g : N , t r i g g e r U p l o a d : C , u p l o a d F i l e s : S , c a n c e l U p l o a d : h , u p l o a d F i l e P e r c e n t : D } ) ; v a r e e = f u n c t i o n ( ) { v a r Q = f u n c t i o n ( ) { r e t u r n e . t h e m e = = = " f i l e - i n p u t " ? l ( p e , r e ( { d i s a b l e d : Y . v a l u e , v a r i a n t : " o u t l i n e " } , e . t r i g g e r B u t t o n P r o p s ) , { d e f a u l t : f u n c t i o n ( ) { r e t u r n [ u . v a l u e ] } } ) : l ( p e , r e ( { d i s a b l e d : Y . v a l u e , v a r i a n t : " o u t l i n e " , i c o n : f u n c t i o n ( ) { r e t u r n l ( n r , n u l l , n u l l ) } } , e . t r i g g e r B u t t o n P r o p s ) , { d e f a u l t : f u n c t i o n ( ) { r e t u r n [ u . v a l u e ] } } ) } ; r e t u r n o ( " d e f a u l t " , " t r i g g e r " , { p a r a m s : { d r a g A c t i v e : ! 1 , f i l e s : m . v a l u e } } ) | | Q ( ) } , X = d ( f u n c t i o n ( ) { r e t u r n { a c c e p t : e . a c c e p t , f i l e s : m . v a l u e , t o U p l o a d F i l e s : f . v a l u e , d i s p l a y F i l e s : y . v a l u e , t h e m e : e . t h e m e , p l a c e h o l d e r : e . p l a c e h o l d e r , d i s a b l e d : Y . v a l u e , t i p s : e . t i p s , s t a t u s : e . s t a t u s , s i z e O v e r L i m i t M e s s a g e : w . v a l u e , u p l o a d i n g : N . v a l u e , c l a s s P r e f i x : v . v a l u e , t i p s C l a s s e s : _ , e r r o r C l a s s e s : M , p l a c e h o l d e r C l a s s : I , l o c a l e : i . v a l u e , a u t o U p l o a d : e . a u t o U p l o a d , a b r i d g e N a m e : e . a b r i d g e N a m e , s h o w U p l o a d P r o g r e s s : e . s h o w U p l o a d P r o g r e s s , f i l e L i s t D i s p l a y : e . f i l e L i s t D i s p l a y , o n R e m o v e : k , u p l o a d P a s t e d F i l e s : e . u p l o a d P a s t e d F i l e s , o n P a s t e F i l e C h a n g e : j , i m a g e V i e w e r P r o p s : e . i m a g e V i e w e r P r o p s } } ) , R = { o n D r a g F i l e C h a n g e : F , o n D r a g e n t e r : e . o n D r a g e n t e r , o n D r a g l e a v e : e . o n D r a g l e a v e , o n D r o p : e . o n D r o p } , V = d ( f u n c t i o n ( ) { r e t u r n [ " " . c o n c a t ( v . v a l u e , " - u p l o a d " ) , T ( { } , " " . c o n c a t ( v . v a l u e , " - u p l o a d - - t h e m e - " ) . c o n c a t ( e . t h e m e ) , e . t h e m e = = = " f i l e - i n p u t " ) ] } ) , B = f u n c t i o n ( ) { r e t u r n l ( v l , r e ( X . v a l u e , { m u l t i p l e : e . m u l t i p l e } ) , { d e f a u l t : f u n c t i o n ( ) { r e t u r n [ l ( " d i v " , { c l a s s : " " . c o n c a t ( v . v a l u e , " - u p l o a d _ _ t r i g g e r " ) , o n C l i c k : C } , [ e e ( ) ] ) ] } , f i l e L i s t D i s p l a y : n . f i l e L i s t D i s p l a y , " f i l e - l i s t - d i s p l a y " : n [ " f i l e - l i s t - d i s p l a y " ] } ) } , A = f u n c t i o n ( ) { r e t u r n l ( d l , r e ( X . v a l u e , { d r a g E v e n t s : R , t r i g g e r : e . t r i g g e r , c a n c e l U p l o a d : h , t r i g g e r U p l o a d : C , u p l o a d F i l e s : S , o n C a n c e l U p l o a d : e . o n C a n c e l U p l o a d } ) , { f i l e L i s t D i s p l a y : n . f i l e L i s t D i s p l a y , " f i l e - l i s t - d i s p l a y " : n [ " f i l e - l i s t - d i s p l a y " ] } ) } , p = f u n c t i o n ( ) { r e t u r n l ( g l , r e ( X . v a l u e , { m u l t i p l e : e . m u l t i p l e , m a x : e . m a x , s h o w U p l o a d P r o g r e s s : e . s h o w U p l o a d P r o g r e s s , t r i g g e r U p l o a d : C , u p l o a d F i l e s : S , c a n c e l U p l o a d : h , o n P r e v i e w : e . o n P r e v i e w , s h o w I m a g e F i l e N a m e : e . s h o w I m a g e F i l e N a m e } ) , { f i l e L i s t D i s p l a y : n . f i l e L i s t D i s p l a y , " f i l e - l i s t - d i s p l a y " : n [ " f i l e - l i s t - d i s p l a y " ] } ) } , z = f u n c t i o n ( ) { r e t u r n l ( p l , r e ( X . v a l u e , { i s B a t c h U p l o a d : e . i s B a t c h U p l o a d , d r a g g a b l e : e . d r a g g a b l e , d r a g E v e n t s : R , u p l o a d F i l e s : S , c a n c e l U p l o a d : h , o n P r e v i e w : e . o n P r e v i e w , s h o w I m a g e F i l e N a m e : e . s h o w I m a g e F i l e N a m e , s h o w T h u m b n a i l : e . s h o w T h u m b n a i l , u p l o a d B u t t o n : e . u p l o a d B u t t o n , c a n c e l U p l o a d B u t t o n : e . c a n c e l U p l o a d B u t t o n } ) , { d e f a u l t : f u n c t i o n ( ) { r e t u r n [ l ( " d i v " , { c l a s s : " " . c o n c a t ( v . v a l u e , " - u p l o a d _ _ t r i g g e r " ) , o n C l i c k : C } , [ ! e . d r a g g a b l e & & e e ( ) ] ) ] } , f i l e L i s t D i s p l a y : n . f i l e L i s t D i s p l a y , " f i l e - l i s t - d i s p l a y " : n [ " f i l e - l i s t - d i s p l a y " ] , u p l o a d B u t t o n : n . u p l o a d B u t t o n , " u p l o a d - b u t t o n " : n [ " u p l o a d - b u t t o n " ] , c a n c e l U p l o a d B u t t o n : n . c a n c e l U p l o a d B u t t o n , " c a n c e l - u p l o a d - b u t t o n " : n [ " c a n c e l - u p l o a d - b u t t o n " ] } ) } , $ = f u n c t i o n ( ) { r e t u r n l ( x l , r e ( X . v a l u e , { d r a g g a b l e : e . d r a g g a b l e , d r a g C o n t e n t : e . d r a g C o n t e n t , d r a g E v e n t s : R , t r i g g e r U p l o a d : C , t r i g g e r : e . t r i g g e r , c h i l d r e n N o d e : n . d e f a u l t } ) , { d e f a u l t : f u n c t i o n ( ) { r e t u r n [ e e ( ) ] } , d r a g C o n t e n t : n . d r a g C o n t e n t , " d r a g - c o n t e n t " : n [ " d r a g - c o n t e n t " ] , t r i g g e r : n . t r i g g e r } ) } ; r e t u r n f u n c t i o n ( ) { r e t u r n l ( " d i v " , { c l a s s : V . v a l u e , o n P a s t e : e . u p l o a d P a s t e d F i l e s ? j : v o i d 0 } , [ l ( " i n p u t " , r e ( { r e f : P , t y p e : " f i l e
* tdesign v1 . 9.4
* ( c ) 2024 tdesign
* @ license MIT
* / v a r K l = F e ( D l ) ; e x p o r t { H l a s D , A l a s L , R l a s R , N l a s T , K l a s U , V l a s a } ;