2024-10-01 16:35:45 +00:00
import { P as ie , Q as ue , S as ce , n as Ce , b as he , e as ba , f as V , W as ut , p as Me , al as Ta , aW as Oa , c as wa , i as de , w as xe , d as ze , a3 as Fe , m as Se , an as _a , aA as Ra , k as Pa , aX as Ca , aY as Na , ax as et , ac as Re , h as Ge , Z as ke , aZ as Va , am as Aa , a _ as Ha , $ as tt , a0 as We , g as oe , O as Oe , Y as ct , l as Ka } from "./index.a0309a28.js" ; import { d as Y , c as g , j as K , w as ve , t as we , i as qa , n as Xe , o as Ye , aI as r , aV as ne , aY as Xa , aK as je , aW as Fa , a _ as Za , a$ as Ga , b0 as Wa , aZ as Ya , b as Ja , aU as at , h as Qa } from "./arco.b087a425.js" ; import { l as Pe , b as nt , a as en , e as tn , i as an , C as nn , B as Sa } from "./index.e1e291ce.js" ; import { o as ln , e as rn , v as on , w as un , T as Je , x as cn , f as sn , n as vn , y as dn , l as fn , u as gn , z as mn , r as pn } from "./dep-71c4f289.8a8673b4.js" ; import { a as hn } from "./slot.ff9cd5b8.js" ; import { L as lt } from "./index.0cdd9cfb.js" ; import { S as st } from "./index.e8fb17a9.js" ; import { _ as vt , r as Ae } from "./form-model.7bb64fbd.js" ; import { D as yn } from "./index.9bcc2d7d.js" ; function dt ( t , e ) { var a = Object . keys ( t ) ; if ( Object . getOwnPropertySymbols ) { var n = Object . getOwnPropertySymbols ( t ) ; e && ( n = n . filter ( function ( l ) { return Object . getOwnPropertyDescriptor ( t , l ) . enumerable } ) ) , a . push . apply ( a , n ) } return a } function ft ( t ) { for ( var e = 1 ; e < arguments . length ; e ++ ) { var a = arguments [ e ] != null ? arguments [ e ] : { } ; e % 2 ? dt ( Object ( a ) , ! 0 ) . forEach ( function ( n ) { ce ( t , n , a [ n ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( t , Object . getOwnPropertyDescriptors ( a ) ) : dt ( Object ( a ) ) . forEach ( function ( n ) { Object . defineProperty ( t , n , Object . getOwnPropertyDescriptor ( a , n ) ) } ) } return t } var bn = { 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" } } ] } , On = Y ( { name : "DeleteIcon" , props : { size : { type : String } , onClick : { type : Function } } , setup ( t , e ) { var { attrs : a } = e , n = g ( ( ) => t . size ) , { className : l , style : o } = ie ( n ) , s = g ( ( ) => [ "t-icon" , "t-icon-delete" , l . value ] ) , c = g ( ( ) => ft ( ft ( { } , o . value ) , a . style ) ) , i = g ( ( ) => ( { 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 ( bn , i . value ) } } ) ; const ja = On ; function gt ( t , e ) { var a = Object . keys ( t ) ; if ( Object . getOwnPropertySymbols ) { var n = Object . getOwnPropertySymbols ( t ) ; e && ( n = n . filter ( function ( l ) { return Object . getOwnPropertyDescriptor ( t , l ) . enumerable } ) ) , a . push . apply ( a , n ) } return a } function mt ( t ) { for ( var e = 1 ; e < arguments . length ; e ++ ) { var a = arguments [ e ] != null ? arguments [ e ] : { } ; e % 2 ? gt ( Object ( a ) , ! 0 ) . forEach ( function ( n ) { ce ( t , n , a [ n ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( t , Object . getOwnPropertyDescriptors ( a ) ) : gt ( 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 : "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" } } ] } , _n = Y ( { name : "DownloadIcon" , props : { size : { type : String } , onClick : { type : Function } } , setup ( t , e ) { var { attrs : a } = e , n = g ( ( ) => t . size ) , { className : l , style : o } = ie ( n ) , s = g ( ( ) => [ "t-icon" , "t-icon-download" , l . value ] ) , c = g ( ( ) => mt ( mt ( { } , o . value ) , a . style ) ) , i = g ( ( ) => ( { 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 Pn = _n ; function pt ( t , e ) { var a = Object . keys ( t ) ; if ( Object . getOwnPropertySymbols ) { var n = Object . getOwnPropertySymbols ( t ) ; e && ( n = n . filter ( function ( l ) { return Object . getOwnPropertyDescriptor ( t , l ) . 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 ? pt ( Object ( a ) , ! 0 ) . forEach ( function ( n ) { ce ( t , n , a [ n ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( t , Object . getOwnPropertyDescriptors ( a ) ) : pt ( Object ( a ) ) . forEach ( function ( n ) { Object . defineProperty ( t , n , Object . getOwnPropertyDescriptor ( a , n ) ) } ) } return t } var Cn = { tag : "svg" , attrs : { fill : "none" , viewBox : "0 0 24 24" , width : "1em" , height : "1em" } , children : [ { tag : "path" , attrs : { fill : " currentCol
2024-09-02 02:23:47 +00:00
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var vl=/ ( . png | . jpg | . jpeg | . jpe | . webp | . avif | . svg | . gif | . bmp ) / i , dl = /(.png|.jpg|.jpeg|.jpe|.webp|.avif|.svg|.gif|.bmp|.dwg|.dxf|.svf|.tif|.tiff|.arw)/i , fl = /(.pdf)/i , gl = /(.xlsx|.xls|.csv|.xlc|.xlm|.xlt|.xlw)/i , ml = /(.dox|docx|.document|.wps|.wdb|.msword)/i , pl = /(.ppt|.pptx|.key)/i , Ea = /(.avi|.mp4|.wmv|.mpg|.mpeg|.mov|.rm|.ram|.swf|.flv|.rmvb|.flash|.mid|.3gp)/i , hl = /(.mp2|.mp3|.mp4|.ogg|.3gpp|.ac3|.au)/i , qt = { "audio/*" : hl , "video/*" : Ea , "image/*" : dl , ".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 } , be = { B : 1 , KB : 1024 , MB : 1048576 , GB : 1073741824 } ; function yl ( t ) { return t < be . KB ? "" . concat ( t , " Bytes" ) : t >= be . KB && t < be . MB ? "" . concat ( ( t / be . KB ) . toFixed ( 1 ) , " KB" ) : t >= be . MB && t < be . GB ? "" . concat ( ( t / be . MB ) . toFixed ( 1 ) , " MB" ) : t >= be . GB ? "" . concat ( ( t / be . GB ) . toFixed ( 1 ) , " GB" ) : "" } function Ua ( ) { 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 ( ) ) , l = "" . concat ( e . getHours ( ) , ":" ) . concat ( e . getMinutes ( ) , ":" ) . concat ( e . getSeconds ( ) ) ; return t ? [ n , l ] . join ( " " ) : n } function Ue ( 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 , l = 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 && l < e ? i ? l += 1 : l += 2 : s > s - a && o < a && ( i ? o += 1 : o += 2 ) } return n . replace ( new RegExp ( "^(.{" . concat ( l , "})(.+)(.{" ) . concat ( o , "})$" ) ) , "$1\u2026$3" ) } function bl ( 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 Ol ( t , e , a ) { var n = [ "B" , "KB" , "MB" , "GB" ] , l = 1 , o = n . indexOf ( a ) ; o === - 1 && ( Pe . warn ( "Upload" , "`sizeLimit.unit` can only be one of " . concat ( n . join ( ) ) ) , o = l ) ; var s = be [ a ] ; return t > e * s } function wl ( t ) { return new Promise ( function ( e ) { if ( ! t ) { e ( "" ) ; return } var a = new FileReader ; a . readAsDataURL ( t ) , a . onload = function ( n ) { var l ; e ( ( l = n . target ) === null || l === void 0 ? void 0 : l . result ) } } ) } function _l ( t , e , a ) { var n = e || a ; if ( ! t ) return ! 0 ; if ( ! n ) return ! 1 ; for ( var l = t . split ( "," ) . map ( function ( v ) { return v . trim ( ) } ) , o = 0 , s = l . length ; o < s ; o ++ ) { var c = l [ o ] ; if ( qt [ c ] && qt [ c ] . test ( n ) ) return ! 0 ; var i = new RegExp ( c , "i" ) ; if ( i . test ( n ) ) return ! 0 } return ! 1 } function za ( t ) { for ( var e = arguments . length > 1 && arguments [ 1 ] !== void 0 ? arguments [ 1 ] : "" , a = [ ] , n = 0 ; n < t . length ; n ++ ) _l ( e , t [ n ] . type , t [ n ] . name ) && a . push ( t [ n ] ) ; return a } / * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /function Ze(t){var e=K("");return ve([t],function(a,n){var l=Ce(a,1),o=l[0],s=Ce(n,1),c=s[0];if(c!==o){if(typeof o=="string"){e.value=o;return}wl(o).then(function(i){e.value=i})}},{immediate:!0}),{previewUrl:e}}/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* / v a r p e , P l = `
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
` ,Cl=["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 Fl(t){if(!(typeof window>"u"||!t)){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")),l=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width")),o=Cl.map(function(s){return"".concat(s,":").concat(e.getPropertyValue(s))}).join(";");return{sizingStyle:o,paddingSize:n,borderSize:l,boxSizing:a}}}function Xt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;pe||(pe=document.createElement("textarea"),document.body.appendChild(pe));var n=Fl(t),l=n.paddingSize,o=n.borderSize,s=n.boxSizing,c=n.sizingStyle;pe.setAttribute("style","".concat(c,";").concat(Pl)),pe.value=t.value||t.placeholder||"";var i=pe.scrollHeight,v={};s==="border-box"?i+=o:s==="content-box"&&(i-=l),pe.value="";var u=pe.scrollHeight-l;if(e!==null){var h=u*e;s==="border-box"&&(h=h+l+o),i=Math.max(h,i),v.minHeight="".concat(h,"px")}if(a!==null){var _=u*a;s==="border-box"&&(_=_+l+o),i=Math.min(_,i)}return v.height="".concat(i,"px"),pe.parentNode&&pe.parentNode.removeChild(pe),pe=null,v}/**
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Sl={allowInputOverMax:{type:Boolean,default:!1},autofocus:Boolean,autosize:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:void 0},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.9
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n Z 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 ( l ) { 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 , l ) . 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 j 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 ? Z 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 ) { V ( 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 ) ) : Z 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 G 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 ) { a n ( t [ a ] ) | | ( e [ a ] = t [ a ] ) } ) , e } v a r x l = Y ( { 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 : j l ( { } , S l ) , 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 , l = a . e x p o s e , o = h e ( ) , s = h e ( " t e x t a r e a " ) , c = g ( 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 = g ( 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 = w e ( e ) , u = v . v a l u e , h = v . m o d e l V a l u e , _ = n t ( u , h , e . d e f a u l t V a l u e , e . o n C h a n g e ) , p = C e ( _ , 2 ) , S = p [ 0 ] , N = p [ 1 ] , P = b a ( ) , $ = K ( { } ) , U = K ( ) , j = K ( ! 1 ) , M = K ( ! 1 ) , D = f u n c t i o n ( ) { v a r f ; r e t u r n ( f = U . v a l u e ) = = = n u l l | | f = = = v o i d 0 ? v o i d 0 : f . f o c u s ( ) } , w = f u n c t i o n ( ) { v a r f ; r e t u r n ( f = U . v a l u e ) = = = n u l l | | f = = = v o i d 0 ? v o i d 0 : f . b l u r ( ) } , x = f u n c t i o n ( ) { v a r f ; i f ( e . a u t o s i z e = = = ! 0 ) $ . v a l u e = X t ( U . 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 F = e . a u t o s i z e , E = F . m i n R o w s , R = F . m a x R o w s ; $ . v a l u e = X t ( U . v a l u e , E , R ) } e l s e n . r o w s ? $ . 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 & & ( f = U . v a l u e ) ! = = n u l l & & f ! = = v o i d 0 & & ( f = f . s t y l e ) ! = = n u l l & & f ! = = v o i d 0 & & f . h e i g h t & & ( $ . v a l u e = { h e i g h t : U . v a l u e . s t y l e . h e i g h t } ) } , I = f u n c t i o n ( ) { v a r f = 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 ] : " " , F = U . v a l u e , E = S t r i n g ( f ) ; ! F | | F . v a l u e ! = = E & & ( F . v a l u e = E , S . v a l u e = E ) } , O = f u n c t i o n ( f ) { v a r F = f . t a r g e t , E = F . 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 R = u t ( E , e . m a x c h a r a c t e r ) ; E = M e ( R ) = = = " o b j e c t " & & R . c h a r a c t e r s } ! M . v a l u e & & N ( E , { e : f } ) , X e ( f u n c t i o n ( ) { r e t u r n I ( E ) } ) , x ( ) } , m = f u n c t i o n ( f ) { O ( f ) } , C = f u n c t i o n ( ) { M . v a l u e = ! 0 } , q = f u n c t i o n ( f ) { M . v a l u e = ! 1 , O ( f ) } , H = f u n c t i o n ( f , F ) { v a r E ; i f ( ! P . v a l u e ) { v a r R = " o n " . c o n c a t ( f [ 0 ] . t o U p p e r C a s e ( ) ) . c o n c a t ( f . s l i c e ( 1 ) ) ; ( E = e [ R ] ) = = = n u l l | | E = = = v o i d 0 | | E . c a l l ( e , S . v a l u e , { e : F } ) } } , G = f u n c t i o n ( f ) { H ( " k e y d o w n " , f ) } , L = f u n c t i o n ( f ) { H ( " k e y u p " , f ) } , T = f u n c t i o n ( f ) { H ( " k e y p r e s s " , f ) } , z = f u n c t i o n ( f ) { v a r F ; x ( ) , ! P . v a l u e & & ( j . v a l u e = ! 0 , ( F = e . o n F o c u s ) = = = n u l l | | F = = = v o i d 0 | | F . c a l l ( e , S . v a l u e , { e : f } ) ) } , A = q a ( e n , v o i d 0 ) , W = f u n c t i o n ( f ) { v a r F ; x ( ) , j . v a l u e = ! 1 , ( F = e . o n B l u r ) = = = n u l l | | F = = = v o i d 0 | | F . c a l l ( e , S . v a l u e , { e : f } ) , A = = n u l l | | A . h a n d l e B l u r ( ) } , Q = g ( f u n c t i o n ( ) { r e t u r n [ s . v a l u e , V ( V ( { } , " " . c o n c a t ( o . v a l u e , " - i s - d i s a b l e d " ) , P . 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 ) ] } ) , t e = g ( f u n c t i o n ( ) { r e t u r n G 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 : P . 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 } ) } ) , l e = g ( f u n c t i o n ( ) { v a r b = u t ( S t r i n g ( S . v a l u e | | " " ) ) ; r e t u r n M e ( b ) = = = " o b j e c t " ? b . l e n g t h : b } ) , a e = g ( 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 ( S . v a l u e ) ? v o i d 0 : S t r i n g ( S . 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 } } ) , k = t n ( a e ) , d = k . t S t a t u s ; v e ( f u n c t i o n ( ) { r e t u r n S . v a l u e } , f u n c t i o n ( ) { r e t u r n x ( ) } ) , v e ( U , f u n c t i o n ( b ) { ! b | | x ( ) } ) , v 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 ( b ) { b & & U . v a l u e . f o c u s ( ) } ) , v e ( $ , f u n c t i o n ( b ) { v a r f = n . s t y l e ; T a ( U . v a l u e , O a ( f , b ) ) } ) , v e ( S , f u n c t i o n ( ) { X e ( f u n c t i o n ( ) { r e t u r n x ( ) } ) } ) , v e ( f u n c t i o n ( ) { r e t u r n e . a u t o s i z e } , x , { d e e p : ! 0 } ) , l ( { f o c u s : D , b l u r : w } ) , Y e ( f u n c t i o n ( ) { x ( ) } ) ; v a r y = d e ( ) ; r e t u r n f u n c t i o n ( ) { v a r b , f = G t ( { o n F o c u s : z , o n B l u r : W , o n K e y d o w n : G , o n K e y u p : L , o n K e y p r e s s : T } ) , F = w a ( ) , E = F . S T A T U S , R = g ( 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 " ) , V ( V ( V ( V ( { } , " " . c o n c a t ( o . v a l u e , " - i s - " ) . c o n c a t ( d . v a l u e ) , d . v a l u e ) , E . v a l u e . d i s a b l e d , P . v a l u e ) , E . v a l u e . f o c u s e d , j . 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 " ] } ) , B = y ( " t i p s " ) , X = B & & r ( " 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 " ) } , [ B ] ) , e e = e . m a x c h a r a c t e r & & r ( " s p a n " , { c l a s s : i . v a l u e } , [ " " . c o n c a t ( l e . 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 & & r ( " s p a n " , { c l a s s : i . v a l u e } , [ " " . c o n c a t ( S . v a l u e ? ( b = S t r i n g ( S . v a l u e ) ) = = = n u l l | | b = = = v o i d 0 ? v o i d 0 : b . l e n g t h : 0 , " / " ) . c o n c a t (
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var $r=xe(xl);/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Il={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.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Dl=Y({name:"TImage",props:Il,setup:function(e){var a=K(null),n=K(null),l=null,o=we(e),s=o.src,c=de();Ye(function(){var L;if((L=n.value)!==null&&L!==void 0&&L.complete&&!e.lazy&&U(),!(!e.lazy||!a.value)){var T=rn(a.value,null,N,0);l=T}}),Xa(function(){a.value&&l&&l.unobserve(a.value)});var i=ze("image"),v=i.classPrefix,u=i.globalConfig,h=K(s.value);ve([s,u],function(L){var T=Ce(L,2),z=T[0],A=T[1],W=A||{},Q=W.replaceImageSrc,te=Fe(Q)?Q(e):z;te===h.value&&h.value||(h.value=te)},{immediate:!0});var _=Ze(h),p=_.previewUrl;ve([p],function(){j.value=!1,P.value=!1});var S=K(!e.lazy),N=function(){S.value=!0},P=K(!1),$=function(T){var z;P.value=!0,(z=e.onLoad)===null||z===void 0||z.call(e,{e:T})},U=function(){var T=new Event("load");Object.defineProperty(T,"target",{value:n.value,enumerable:!0}),$(T)},j=K(!1),M=function(T){var z;j.value=!0,(z=e.onError)===null||z===void 0||z.call(e,{e:T}),e.fallback&&(h.value=e.fallback,j.value=!1)},D=g(function(){return e.overlayTrigger==="hover"}),w=g(function(){return["".concat(v.value,"-image"),"".concat(v.value,"-image--fit-").concat(e.fit),"".concat(v.value,"-image--position-").concat(e.position)]}),x=K(!D.value),I=function(){D.value&&(x.value=!x.value)},O=function(){var T=c("placeholder");return T?r("div",{class:"".concat(v.value,"-image__placeholder")},[T]):null},m=function(){return e.gallery?r("div",{class:"".concat(v.value,"-image__gallery-shadow")},null):null},C=function(){var T=G("overlayContent");return T?r("div",{class:["".concat(v.value,"-image__overlay-content"),!x.value&&"".concat(v.value,"-image__overlay-content--hidden")]},[T]):null};function q(){return r("picture",null,[Object.entries(e.srcset).map(function(L){var T=Ce(L,2),z=T[0],A=T[1];return r("source",{type:z,srcset:A},null)}),H()])}function H(){var L=Se(h.value)?h.value:p.value;return r("img",{ref:n,src:L,onError:M,onLoad:$,class:w.value,alt:e.alt,referrerpolicy:e.referrerpolicy},null)}var G=Ra();return function(){return r("div",ne({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"),D.value&&"".concat(v.value,"-image__wrapper--need-hover")],onMouseenter:I,onMouseleave:I},_a(e,["src","alt","fit","position","shape","placeholder","loading","error","overlayTrigger","overlayContent","lazy","gallery","onLoad","onError"])),[O(),m(),(j.value||!S.value)&&r("div",{class:"".concat(v.value,"-image")},null),!(j.value||!S.value)&&(e.srcset&&Object.keys(e.srcset).length?q():H()),!(j.value||!S.value)&&!P.value&&r("div",{class:"".concat(v.value,"-image__loading")},[c("loading")||r(st,{direction:"vertical",size:8,align:"center"},{default:function(){return[r(Ia,{size:"24px"},null),Se(e.loading)?e.loading:u.value.loadingText]}})]),j.value&&r("div",{class:"".concat(v.value,"-image__error")},[G("error",{defaultNode:r(st,{direction:"vertical",size:8,align:"center"},{default:function(){return[r(xa,{size:"24px"},null),Se(e.error)?e.error:u.value.errorText]}})})]),C()])}}});/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Te=xe(Dl);/ * *
* tdesign v1 . 9.9
* ( 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(l){return Object.getOwnPropertyDescriptor(t,l).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?Wt(Object(a),!0).forEach(function(n){V(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 Ul(t){var e=K(t),a=function(o){var s=o.pageX,c=o.pageY,i=e.value,v=i.translateX,u=i.translateY,h=function(S){var N=S.pageX,P=S.pageY;e.value={translateX:v+N-s,translateY:u+P-c}},_=function(){document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",h),document.addEventListener("mouseup",_)},n=function(){e.value=El({},t)};return{transform:e,mouseDownHandler:a,resetTransform:n}}function zl(){var t=K(1),e=function(){t.value*=-1},a=function(){t.value=1};return{mirror:t,onMirror:e,resetMirror:a}}function kl(){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,l=t.defaultScale,o=K(l!=null?l:1),s=function(){var h=on(o.value,n);v(h)},c=function(){var h=un(o.value,n);v(h)},i=function(){o.value=l!=null?l:1},v=function(h){var _=h;h<a&&(_=a),h>e&&(_=e),o.value=_};return ve(function(){return t},function(){return i()}),{scale:o,onZoomIn:s,onZoomOut:c,resetScale:i}}function Ll(){var t=K(0),e=90,a=function(){t.value+=e},n=function(){t.value=0};return{rotate:t,onRotate:a,resetRotate:n}}/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var ka=Y({name:"TImageItem",props:{rotate:Number,scale:Number,mirror:Number,src:[String,Object],placementSrc:[String,Object],isSvg:Boolean},setup:function(e){var a=we(e),n=a.src,l=a.placementSrc,o=a.isSvg,s=he(),c=K(!1),i=K(!1),v=Ul({translateX:0,translateY:0}),u=v.transform,h=v.mouseDownHandler,_=ze("imageViewer"),p=_.globalConfig,S=p.value.errorText,N=K(),P=g(function(){return{transform:"rotate(".concat(e.rotate,"deg) scale(").concat(e.scale,")"),display:!e.placementSrc||i.value?"block":"none"}}),$=g(function(){return{transform:"rotate(".concat(e.rotate,"deg) scale(").concat(e.scale,")"),display:i.value?"none":"block"}}),U=g(function(){var O=u.value,m=O.translateX,C=O.translateY;return{transform:"translate(".concat(m,"px, ").concat(C,"px) scale(").concat(e.mirror,", 1)")}}),j=function(){c.value=!1,i.value=!1,o.value&&M(w.value)},M=function(){var O=vt(Ae.mark(function m(C){var q,H,G,L,T,z,A,W,Q,te,le,ae,k;return Ae.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,fetch(C);case 2:if(H=y.sent,H.ok){y.next=6;break}throw c.value=!0,new Error("Failed to fetch SVG: ".concat(H.statusText));case 6:return y.next=8,H.text();case 8:G=y.sent,L=N.value,L.innerHTML="",(q=L.classList)===null||q===void 0||q.add("".concat(s.value,"-image-viewer__modal-image-svg")),T=L.attachShadow({mode:"closed"}),z=document.createElement("div"),z.style.background="transparent",z.innerHTML=G,T.appendChild(z),A=z.querySelector("svg"),A&&(W=A.getAttribute("viewBox"),W?(Q=W.split(/ [ \ s \ , ] / ) . filter ( function ( b ) { return b } ) . map ( parseFloat ) , te = Q [ 2 ] , le = Q [ 3 ] , z . style . width = "" . concat ( te , "px" ) , z . style . height = "" . concat ( le , "px" ) ) : ( ae = A . getBBox ( ) , k = "" . concat ( ae . x , " " ) . concat ( ae . y , " " ) . concat ( ae . width , " " ) . concat ( ae . height ) , A . setAttribute ( "viewBox" , k ) , z . style . width = "" . concat ( ae . width , "px" ) , z . style . height = "" . concat ( ae . height , "px" ) ) ) , i . value = ! 0 ; case 20 : case "end" : return y . stop ( ) } } , m ) } ) ) ; return function ( C ) { return O . apply ( this , arguments ) } } ( ) , D = Ze ( n ) , w = D . previewUrl , x = Ze ( l ) , I = x . previewUrl ; return ve ( [ w , I ] , function ( ) { j ( ) } ) , Ye ( vt ( Ae . mark ( function O ( ) { return Ae . wrap ( function ( C ) { for ( ; ; ) switch ( C . prev = C . next ) { case 0 : if ( ! o . value ) { C . next = 3 ; break } return C . next = 3 , M ( w . value ) ; case 3 : case "end" : return C . stop ( ) } } , O ) } ) ) ) , function ( ) { return r ( "div" , { class : "" . concat ( s . value , "-image-viewer__modal-pic" ) } , [ r ( "div" , { class : "" . concat ( s . value , "-image-viewer__modal-box" ) , style : U . value } , [ c . value && r ( "div" , { class : "" . concat ( s . value , "-image-viewer__img-error" ) } , [ r ( "div" , { class : "" . concat ( s . value , "-image-viewer__img-error-content" ) } , [ r ( xa , { size : "4em" } , null ) , r ( "div" , { class : "" . concat ( s . value , "-image-viewer__img-error-text" ) } , [ S ] ) ] ) ] ) , ! c . value && ! ! e . placementSrc && I . value && r ( "img" , { class : "" . concat ( s . value , "-image-viewer__modal-image" ) , onMousedown : function ( m ) { m . stopPropagation ( ) , h ( m ) } , src : I . value , style : $ . value , alt : "image" , draggable : "false" } , null ) , ! c . value && w . value && ! o . value && r ( "img" , { class : "" . concat ( s . value , "-image-viewer__modal-image" ) , onMousedown : function ( m ) { m . stopPropagation ( ) , h ( m ) } , src : w . value , onLoad : function ( ) { return i . value = ! 0 } , onError : function ( ) { return c . value = ! 0 } , style : P . value , alt : "image" , draggable : "false" } , null ) , ! c . value && w . value && o . value && r ( "div" , { ref : N , class : "" . concat ( s . value , "-image-viewer__modal-image" ) , onMousedown : function ( m ) { m . stopPropagation ( ) , h ( m ) } , "data-alt" : "svg" , style : P . value , draggable : "false" } , null ) ] ) ] ) } } } ) ; / * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var _e=Y({name:"TImageModalIcon",props:{disabled:Boolean,onClick:Function,label:String,icon:Function},setup:function(e){var a=he(),n=de(),l=g(function(){return["".concat(a.value,"-image-viewer__modal-icon"),V({},"".concat(a.value,"-is-disabled"),e.disabled)]});return function(){return r("div",{class:l.value,onClick:e.onClick},[n("icon"),e.label&&r("span",{class:"".concat(a.value,"-image-viewer__modal-icon-label")},[e.label])])}}});/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var $e={attach:{type:[String,Function],default:"body"},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.9
* ( c ) 2024 tdesign
* @ license MIT
* /function Yt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),a.push.apply(a,n)}return a}function Bl(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Yt(Object(a),!0).forEach(function(n){V(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Yt(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var Ml=function(e){var a,n,l,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||(l=n.split)===null||l===void 0?void 0:l.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),h=document.createElement(" a ");h.download=s,h.href=u,h.click(),h.remove(),URL.revokeObjectURL(u)})},o.src=e},$l=function(e){return!!e&&!Se(e)&&!(e instanceof File)},Tl=function(e){return Pa(e)?e.map(function(a){return $l(a)?Bl({download:!0,thumbnail:a.mainImage},a):{mainImage:a,thumbnail:a,download:!0}}):[]},Rl=function(e){return e.showOverlay!==void 0?e.showOverlay:e.mode===" modal " } ; / * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var La=Y({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=he(),n=g(function(){return e.currentImage.mainImage}),l=Ze(n),o=l.previewUrl,s=ze("imageViewer"),c=s.globalConfig;return function(){return r("div",{class:"".concat(a.value,"-image-viewer__utils")},[r("div",{class:"".concat(a.value,"-image-viewer__utils-content")},[r(Je,{overlayClassName:"".concat(a.value,"-image-viewer__utils--tip"),content:c.value.mirrorTipText,destroyOnClose:!0,placement:"top",showArrow:!0,theme:"default"},{default:function(){return[r(_e,{onClick:e.onMirror,icon:function(){return r(Kn,{size:"medium"},null)}},null)]}}),r(Je,{overlayClassName:"".concat(a.value,"-image-viewer__utils--tip"),content:c.value.rotateTipText,destroyOnClose:!0,placement:"top",showArrow:!0,theme:"default"},{default:function(){return[r(_e,{onClick:e.onRotate,icon:function(){return r(Wn,{size:"medium"},null)}},null)]}}),r(_e,{icon:function(){return r(sl,{size:"medium"},null)},onClick:e.onZoomOut},null),r(_e,{class:"".concat(a.value,"-image-viewer__utils-scale"),size:"medium",label:"".concat(cn(String(e.scale*100)),"%")},null),r(_e,{icon:function(){return r(il,{size:"medium"},null)},onClick:e.onZoomIn},null),r(Je,{overlayClassName:"".concat(a.value,"-image-viewer__utils--tip"),content:c.value.originalSizeTipText,destroyOnClose:!0,placement:"top",showArrow:!0,theme:"default"},{default:function(){return[r("div",{class:"".concat(a.value,"-image-viewer__modal-icon")},[r(_e,{icon:function(){return r(Ia,{size:"medium"},null)},onClick:e.onReset},null)])]}}),e.currentImage.download&&r(_e,{icon:function(){return r(Pn,{size:"medium"},null)},onClick:function(){Ml(o.value)}},null)])])}}});/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Nl=Y({name:"TImageViewerModal",props:{zIndex:Number,visible:Boolean,index:Number,images:$e.images,scale:Number,rotate:Number,mirror:Number,title:$e.title,currentImage:{type:Object,default:function(){return{}}},onRotate:Function,onZoomIn:Function,onZoomOut:Function,onMirror:Function,onReset:Function,onClose:$e.onClose,draggable:{type:Boolean,default:!0},viewerScale:{type:Object,default:function(){return{}}},showOverlay:Boolean,closeBtn:$e.closeBtn},setup:function(e){var a=he(),n=de(),l=g(function(){return{minWidth:e.viewerScale.minWidth,minHeight:e.viewerScale.minHeight}});return function(){return r(yn,{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 r("div",{class:"".concat(a.value,"-image-viewer-mini__footer")},[r(La,{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[r("div",{class:"".concat(a.value,"-image-viewer-mini__content"),style:l.value},[r(ka,{rotate:e.rotate,scale:e.scale,mirror:e.mirror,src:e.currentImage.mainImage,placementSrc:e.currentImage.thumbnail,isSvg:e.currentImage.isSvg},null)])]}})}}});/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Ee=function(t){return t.left="ArrowLeft",t.up="ArrowUp",t.right="ArrowRight",t.down="ArrowDown",t.esc="Escape",t}(Ee||{});/ * *
* tdesign v1 . 9.9
* ( 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(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),a.push.apply(a,n)}return a}function Vl(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){V(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 Al=Y({name:"TImageViewer",props:Vl({},$e),setup:function(e){var a,n=he(),l=he("image-viewer"),o=de(),s=K(!0),c=g(function(){return Rl(e)}),i=we(e),v=i.index,u=i.visible,h=i.modelValue,_=sn(v,(a=e.defaultIndex)!==null&&a!==void 0?a:0,e.onIndexChange,"index"),p=Ce(_,2),S=p[0],N=p[1],P=nt(u,h,e.defaultVisible,function(){},"visible"),$=Ce(P,2),U=$[0],j=$[1],M=K(!0),D=K(),w=Ca(function(){return e.attach}),x=g(function(){return[l.value,"".concat(l.value,"-preview-image"),V({},"".concat(n.value,"-is-hide"),!U.value)]}),I=g(function(){return["".concat(n.value,"-image-viewer__modal-header"),V({},"".concat(n.value,"-is-show"),s.value)]}),O=g(function(){var J;return(J=e.zIndex)!==null&&J!==void 0?J:2600}),m=function(){s.value=!s.value},C=zl(),q=C.mirror,H=C.onMirror,G=C.resetMirror,L=kl(e.imageScale),T=L.scale,z=L.onZoomIn,A=L.onZoomOut,W=L.resetScale,Q=Ll(),te=Q.rotate,le=Q.onRotate,ae=Q.resetRotate,k=function(){G(),W(),ae()},d=g(function(){return Tl(e.images)}),y=g(function(){var J;return(J=d.value[S.value])!==null&&J!==void 0?J:{mainImage:""}}),b=Na("dialog",{visible:U}),f=b.isLastDialog,F=function(){var Z=S.value-1;k(),N(Z<0?0:Z,{trigger:"prev"})},E=function(){var Z=S.value+1;k(),N(Z>=d.value.length?S.value:Z,{trigger:"next"})},R=function(Z){N(Z,{trigger:"current"})},B=function(){j(!0)},X=function(Z){var re;j(!1),(re=e.onClose)===null||re===void 0||re.call(e,Z)},ee=function(Z){X({e:Z,trigger:"close-btn"})},fe=function(Z){e.closeOnOverlay&&X({e:Z,trigger:"overlay"})},ge=function(Z){switch(Z.stopPropagation(),Z.code){case Ee.left:F();break;case Ee.right:E();break;case Ee.up:z();break;case Ee.down:A();break;case Ee.esc:e.closeOnEscKeydown&&f()&&X({e:Z,trigger:"esc"});break}},me=K();ve(function(){return U.value},function(J){clearTimeout(D.value),J?(M.value=!1,Xe().then(function(){var Z,re;(Z=me.value)===null||Z===void 0||(re=Z.focus)===null||re===void 0||re.call(Z)}),k()):D.value=setTimeout(function(){M.value=!0},200)});var ye=function(Z){Z.preventDefault();var re=Z.deltaY;re>0?A():z()},Le=g(function(){return{transform:"translateX(calc(-".concat(S.value," * (40px / 9 * 16 + 4 px ) ) ) ")}}),Be=function(){return r(" div ",{class:I.value},[r(_e,{icon:function(){return r(vn,null,null)},class:" ".concat(l.value," _ _header - pre - bt "),onClick:m},null),r(" div ",{class:" ".concat(l.value," _ _header - prev ")},[r(" div ",{class:" ".concat(l.value," _ _header - trans "),style:Le.value},[d.value.map(function(Z,re){return r(" div ",{key:re,class:[" ".concat(l.value," _ _header - box "),V({}," ".concat(n.value," - is - active "),re===S.value)]},[r(Te,{src:Z.thumbnail||Z.mainImage,error:" ",className:" ".concat(l.value," _ _header - img "),onClick:function(){return R(re)}},null)])})])])])},Ie=function(Z){var re=Z===" prev "?0:180,De=o(" navigationArrow ",r(dn,{style:{transform:" rotate ( ".concat(re," deg ) ")},size:" 24 px "},null));return r(_e,{class:" ".concat(l.value," _ _modal - ").concat(Z," - bt "),onClick:Z===" prev "?F:E,icon:function(){return De}},null)},Ve=function(){if(e.closeBtn!==!1)return r(" div ",{class:[" ".concat(l.value," _ _modal - icon ")," ".concat(l.value," _ _modal - close - bt ")],onClick:ee},[o(" closeBtn ",r(et,{size:" 24 px "},null))])};return function(){return e.mode===" modeless "?r(je,null,[o(" trigger ",{params:{open:B}}),r(Nl,{zIndex:O.value,visible:U.value,index:S.value,images:d.value,scale:T.value,rotate:te.value,mirror:q.value,currentImage:y.value,onRotate:le,onZoomIn:z,onZoomOut:A,onMirror:H,onReset:k,onClose:X,draggable:e.draggable,showOverlay:c.value,title:e.title},null)]):r(je,null,[o(" trigger " , { params : { open : B } } ) , r ( Fa , { disabled
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var rt=xe(Al);/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Ba={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.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Ma=Y({name:"TListItem",props:Ba,setup:function(){var e=he("list-item"),a=de();return function(){var n=a("content"),l=a("default"),o=a("action");return r("li",{class:e.value},[r("div",{class:"".concat(e.value,"-main")},[l||n,o&&r("li",{class:"".concat(e.value,"__action")},[o])])])}}});/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Qt="load-more",Hl="loading";/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n e 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 ( l ) { 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 , l ) . 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 t 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 ? e 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 ) { V ( 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 ) ) : e 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 K l ( 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 = q l ( 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 , l = f u n c t i o n ( ) { } ; r e t u r n { s : l , 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 : l } } 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,s=!0,c=!1;return{s:function(){a=a.call(t)},n:function(){var v=a.next();return s=v.done,v},e:function(v){c=!0,o=v},f:function(){try{s||a.return==null||a.return()}finally{if(c)throw o}}}}function ql(t,e){if(t){if(typeof t=="string")return aa(t,e);var a={}.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(a)?aa(t,e):void 0}}function aa(t,e){(e==null||e>t.length)&&(e=t.length);for(var a=0,n=Array(e);a<e;a++)n[a]=t[a];return n}var Xl=function(){var e=hn(),a=g(function(){var n=[],l=e("ListItem");if(Pa(l)){var o=Kl(l),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;n.push(ta(ta({},c.props),{},{slots:c.children}))}}catch(i){o.e(i)}finally{o.f()}}return n});return{listItems:a}};/**
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Zl=function(e,a,n){var l=g(function(){return{data:n.value,scroll:e}}),o=fn(a,l),s=g(function(){return o.isVirtualScroll.value}),c=-1,i=function(_){var p=_.target||_.srcElement,S=p.scrollTop;c!==S?o.isVirtualScroll.value&&o.handleScroll():c=-1,c=S},v=g(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=g(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.9
* ( c ) 2024 tdesign
* @ license MIT
* /function na(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),a.push.apply(a,n)}return a}function Gl(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?na(Object(a),!0).forEach(function(n){V(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):na(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var Wl=Y({name:"TList",props:Gl({},Ba),setup:function(e){var a=K(),n=ze("list"),l=n.globalConfig,o=he("list"),s=wa(),c=s.SIZE,i=de(),v=Xl(),u=v.listItems,h=Zl(e.scroll,a,u),_=h.virtualConfig,p=h.cursorStyle,S=h.listStyle,N=h.isVirtualScroll,P=h.onInnerVirtualScroll,$=g(function(){return["".concat(o.value),c.value[e.size],V(V(V({},"".concat(o.value,"--split"),e.split),"".concat(o.value,"--stripe"),e.stripe),"".concat(o.value,"--vertical-action"),e.layout==="vertical")]}),U=function(){var I=i("header"),O=i("footer"),m=_.isVirtualScroll.value;return r(je,null,[I?r("div",{class:"".concat(o.value,"__header")},[I]):null,m?r(je,null,[r("div",{style:p.value},null),r("ul",{class:"".concat(o.value,"__inner"),style:S.value},[_.visibleData.value.map(function(C){return r(je,null,[r(Ma,_a(C,"slots"),C.slots)])})])]):r("ul",{class:"".concat(o.value,"__inner")},[i("default")]),O?r("div",{class:"".concat(o.value,"__footer")},[O]):null])},j=function(I){var O,m=I.target,C=m.scrollTop,q=m.scrollHeight,H=m.clientHeight;N.value&&P(I),(O=e.onScroll)===null||O===void 0||O.call(e,{e:I,scrollTop:C,scrollBottom:q-H-C})},M=g(function(){return Se(e.asyncLoading)&&["loading","load-more"].includes(e.asyncLoading)?"".concat(o.value,"__load ").concat(o.value,"__load--").concat(e.asyncLoading):"".concat(o.value,"__load")}),D=function(){if(e.asyncLoading&&Se(e.asyncLoading)){if(e.asyncLoading===Hl)return r("div",null,[r(Re,null,null),r("span",null,[l.value.loadingText])]);if(e.asyncLoading===Qt)return r("span",null,[l.value.loadingMoreText])}return i("asyncLoading")},w=function(I){var O;Se(e.asyncLoading)&&e.asyncLoading!==Qt||(O=e.onLoadMore)===null||O===void 0||O.call(e,{e:I})};return{COMPONENT_NAME:o,listClass:$,loadingClass:M,renderLoading:D,renderContent:U,handleScroll:j,handleLoadMore:w,listRef:a,isVirtualScroll:N}},render:function(){var e=this.renderContent();return e=[e,r("div",{class:this.loadingClass,onClick:this.handleLoadMore},[this.renderLoading()])],r("div",{class:this.listClass,onScroll:this.handleScroll,ref:"listRef",style:this.isVirtualScroll?"position:relative":void 0},[e])}});/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Yl={avatar:{type:[String,Function]},description:{type:[String,Function]},image:{type:[String,Function]},title:{type:[String,Function]}};/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Jl=Y({name:"TListItemMeta",props:Yl,setup:function(e,a){var n=he("list-item__meta"),l=Ge(),o=de(),s=function(){(e.avatar||a.slots.avatar)&&console.warn("`avatar` is going to be deprecated, please use `image` instead");var i=l("avatar","image");if(!!i)return Se(i)?r("div",{class:"".concat(n.value,"-avatar")},[r("img",{src:i},null)]):r("div",{class:"".concat(n.value,"-avatar")},[i])};return function(){var c=o("title"),i=o("description"),v=[s(),r("div",{class:"".concat(n.value,"-content")},[c&&r("h3",{class:"".concat(n.value,"-title")},[c]),i&&r("p",{class:"".concat(n.value,"-description")},[i])])];return r("div",{class:n.value},[v])}}});/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Tr=xe(Wl),Rr=xe(Ma);xe(Jl);/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Ql={attach:{type:[String,Function]},body:{type:[String,Function]},cancelBtn:{type:[String,Object,Function]},closeBtn:{type:[String,Boolean,Function]},closeOnEscKeydown:{type:Boolean,default:void 0},closeOnOverlayClick:{type:Boolean,default:void 0},confirmBtn:{type:[String,Object,Function]},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:{type:[Boolean,Object],default:!1},visible:Boolean,zIndex:{type:Number},onCancel:Function,onClose:Function,onCloseBtnClick:Function,onConfirm:Function,onEscKeydown:Function,onOverlayClick:Function,onSizeDragEnd:Function};/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /function er(t,e){return typeof t=="boolean"?{allowSizeDraggable:t,max:e.max,min:e.min}:{allowSizeDraggable:!0,max:t.max,min:t.min}}function He(t,e,a){return Math.min(Math.max(t,e),a)}function tr(t,e){var a=e.x,n=e.y,l=e.max,o=e.min,s=e.maxWidth,c=e.maxHeight,i;switch(t){case"right":i=He(s-a,o,l);break;case"left":i=He(a,o,l);break;case"top":i=He(n,o,l);break;case"bottom":i=He(c-n,o,l);break;default:return i}return i}/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var ar=function(e){var a=K(!1),n=K(null),l=function(){document.addEventListener("mouseup",o,!0),document.addEventListener("mousemove",s,!0),a.value=!0},o=function(){document.removeEventListener("mouseup",o,!0),document.removeEventListener("mousemove",s,!0),a.value=!1},s=function(v){var u,h=v.x,_=v.y,p=document.documentElement.clientHeight,S=document.documentElement.clientWidth,N=8,P=8,$=e.placement==="left"||e.placement==="right"?S:p,U=e.placement==="left"||e.placement==="right"?P:N,j=er(e.sizeDraggable,{max:$,min:U}),M=j.allowSizeDraggable,D=j.max,w=j.min;if(!(!M||!a.value)){var x=tr(e.placement,{x:h,y:_,maxWidth:S,maxHeight:p,max:D,min:w});typeof x>"u"||(n.value="".concat(x,"px"),(u=e.onSizeDragEnd)===null||u===void 0||u.call(e,{e:v,size:x}))}},c=g(function(){var i=["right","left"].includes(e.placement),v={left:"right",right:"left",top:"bottom",bottom:"top"};return V(V(V(V({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:l,draggableLineStyles:c}};/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* / v a r n r = 1 , l r = Y ( { 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 : Q 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 = K ( ! 1 ) , l = K ( ! 1 ) , o = K ( ) , s = K ( ) , c = z e ( " d r a w e r " ) , i = c . g l o b a l C o n f i g , v = k e ( { C l o s e I c o n : e t } ) , u = v . C l o s e I c o n , h = d e ( ) , _ = G e ( ) , p = h e ( " d r a w e r " ) , S = a r ( e ) , N = S . d r a g g e d S i z e V a l u e , P = S . e n a b l e D r a g , $ = S . d r a g g a b l e L i n e S t y l e s , U = C a ( f u n c t i o n ( ) { r e t u r n e . a t t a c h } ) , j = f u n c t i o n ( d ) { v a r y ; ( y = e . o n C o n f i r m ) = = = n u l l | | y = = = v o i d 0 | | y . c a l l ( e , { e : d } ) } , M = f u n c t i o n ( d ) { v a r y ; ( y = e . o n C a n c e l ) = = = n u l l | | y = = = v o i d 0 | | y . c a l l ( e , { e : d } ) , a e ( { t r i g g e r : " c a n c e l " , e : d } ) } , D = V a ( { c o n f i r m B t n A c t i o n : j , c a n c e l B t n A c t i o n : M } ) , w = D . g e t C o n f i r m B t n , x = D . g e t C a n c e l B t n , I = K ( n u l l ) , O = g ( f u n c t i o n ( ) { r e t u r n [ p . v a l u e , " " . c o n c a t ( p . v a l u e , " - - " ) . c o n c a t ( e . p l a c e m e n t ) , V ( V ( V ( { } , " " . c o n c a t ( p . v a l u e , " - - o p e n " ) , l . v a l u e ) , " " . c o n c a t ( p . 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 ( p . 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 ) ] } ) , m = g ( f u n c t i o n ( ) { v a r k ; i f ( N . v a l u e ) r e t u r n N . v a l u e ; v a r d = ( k = e . s i z e ) ! = = n u l l & & k ! = = v o i d 0 ? k : i . v a l u e . s i z e , y = i s N a N ( N u m b e r ( d ) ) ? d : " " . c o n c a t ( d , " 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 " } [ d ] | | y } ) , C = g ( f u n c t i o n ( ) { r e t u r n { t r a n s f o r m : l . 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 ) ? m . 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 ) ? m . v a l u e : " " } } ) , q = g ( f u n c t i o n ( ) { r e t u r n [ " " . c o n c a t ( p . 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 ( p . 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 ) ] } ) , H = g ( f u n c t i o n ( ) { r e t u r n I . v a l u e & & I . v a l u e . p a r e n t N o d e } ) , G = g ( 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 ( ) } ) , L = g ( 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 " } } ) , T = f u n c t i o n ( d ) { v a r y ; i f ( ( ( y = e . c l o s e O n E s c K e y d o w n ) ! = = n u l l & & y ! = = v o i d 0 ? y : i . v a l u e . c l o s e O n E s c K e y d o w n ) & & d . k e y = = = " E s c a p e " & & l . v a l u e ) { v a r b ; ( b = e . o n E s c K e y d o w n ) = = = n u l l | | b = = = v o i d 0 | | b . c a l l ( e , { e : d } ) , a e ( { t r i g g e r : " e s c " , e : d } ) } } , z = 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 d , y ; ( d = o . v a l u e ) = = = n u l l | | d = = = v o i d 0 | | ( d = d . p a r e n t N o d e ) = = = n u l l | | d = = = v o i d 0 | | ( y = d . r e m o v e C h i l d ) = = = n u l l | | y = = = v o i d 0 | | y . c a l l ( d , 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 " & & X e ( f u n c t i o n ( ) { ! H . v a l u e | | ( H . 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 ; " ) } ) } , W = f u n c t i o n ( ) { i f ( ! ! H . v a l u e & & ! ( e . m o d e ! = = " p u s h " | | ! H . v a l u e ) ) { v a r d = { l e f t : " m a r g i n : 0 0 0 " . c o n c a t ( m . 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 ( m . v a l u e ) , t o p : " m a r g i n : " . c o n c a t ( m . 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 ( m . v a l u e , " 0 0 0 " ) } [ e . p l a c e m e n t ] ; l . v a l u e ? H . v a l u e . s t y l e . c s s T e x t + = d : H . v a l u e . s t y l e . c s s T e x t = H . 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 : . + ; / , " " ) } } , Q = f u n c t i o n ( ) { v a r d = w ( { 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 ( p . v a l u e , " _ _ c o n f i r m " ) } ) , y = x ( { 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 ( p . v a l u e , " _ _ c a n c e l " ) } ) ; r e t u r n r ( " d i v " , { s t y l e : L . v a l u e } , [ e . p l a c e m e n t = = = " r i g h t " ? d : n u l l , y , e . p l a c e m e n t ! = = " r i g h t " ? d : n u l l ] ) } ; v e ( G , f u n c t i o n ( ) { A ( ) } , { i m m e d i a t e : ! 0 } ) , v 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 ( k ) { A a | | ( k ? ! 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 ) : z ( ) , e . d e s t r o y O n C l o s e ? k ? ( 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 ( ) { l . v a l u e = ! 0 } ) ) : ( l . 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 & & k ? ( 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 ( ) { l . v a l u e = ! 0 } ) ) : l . v a l u e = k ) } , { i m m e d i a t e : ! 0 } ) ; v a r t e = f u n c t i o n ( d ) { v a r y ; ( y = e . o n C l o s e B t n C l i c k ) = = = n u l l | | y = = = v o i d 0 | | y . c a l l ( e , { e : d } ) , a e ( { t r i g g e r : " c l o s e - b t n " , e : d } ) } , l e = f u n c t i o n ( d ) { v a r y , b ; ( y = e . o n O v e r l a y C l i c k ) = = = n u l l | | y = = = v o i d 0 | | y . c a l l ( e , { e : d } ) , ( ( b = e . c l o s e O n O v e r l a y C l i c k ) ! = = n u l l & & b ! = = v o i d 0 ? b : 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 ) & & a e ( { t r i g g e r : " o v e r l a y " , e : d } ) } , a e = f u n c t i o n ( d ) { v a r y ; ( y = e . o n C l o s e ) = = = n u l l | | y = = = v o i d 0 | | y . c a l l ( e , d ) , 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 Y a ( f u n c t i o n ( ) { W ( ) } ) , Y e ( f u n c t i o n ( ) { v a r k = 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 , d = k ? H 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 ( n r + = 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(d,"px);"), `
}
` ),l.value&&!e.showInAttachedElement&&e.preventScrollThrough&&document.head.appendChild(o.value),window.addEventListener("keydown",T)}),Ja(function(){z(),window.removeEventListener("keydown",T)}),function(){if(!n.value){var k=_("body","default"),d=h("header"),y=Q();return r(Fa,{disabled:!e.attach||!U.value,to:U.value},{default:function(){return[r("div",ne({ref:I,class:O.value,style:{zIndex:e.zIndex},onKeydown:T,tabindex:0},a.attrs),[e.showOverlay&&r("div",{class:"".concat(p.value,"__mask"),onClick:le},null),r("div",{class:q.value,style:C.value},[d&&r("div",{class:"".concat(p.value,"__header")},[d]),e.closeBtn&&r("div",{class:"".concat(p.value,"__close-btn"),onClick:te},[h("closeBtn",r(u,null,null))]),r("div",{class:["".concat(p.value,"__body"),"narrow-scrollbar"]},[k]),e.footer&&r("div",{class:"".concat(p.value,"__footer")},[h("footer",y)]),e.sizeDraggable&&r("div",{style: $ .value,onMousedown:P},null)])])]}})}}}});/**
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var Nr=xe(lr);/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /var rr={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,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},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.9
* ( 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.9
* ( 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 ( l ) { 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 , l ) . 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 o 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 ? 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 ) { V ( 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 i r ( 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 ] " & & ! a t ( t ) } v a r u r = Y ( { 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 : o r ( { 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 , l = w e ( e ) , o = l . t h e m e , s = l . d i s a b l e d , c = l . c l a s s P r e f i x , i = g ( f u n c t i o n ( ) { r e t u r n e . l o c a l e } ) , v = k e ( { C l o s e I c o n : e t , T i m e F i l l e d I c o n : D a , C h e c k C i r c l e F i l l e d I c o n : t t , E r r o r C i r c l e F i l l e d I c o n : W e , C l o s e C i r c l e F i l l e d I c o n : n n } ) , u = v . C l o s e I c o n , h = v . T i m e F i l l e d I c o n , _ = v . C h e c k C i r c l e F i l l e d I c o n , p = v . E r r o r C i r c l e F i l l e d I c o n , S = v . C l o s e C i r c l e F i l l e d I c o n , N = d e ( ) , P = " " . c o n c a t ( c . v a l u e , " - u p l o a d " ) , $ = f u n c t i o n ( D ) { r e t u r n r ( " d i v " , { c l a s s : " " . c o n c a t ( P , " _ _ s i n g l e - p r o g r e s s " ) } , [ r ( 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 & & r ( " s p a n " , { c l a s s : " " . c o n c a t ( P , " _ _ s i n g l e - p e r c e n t " ) } , [ D | | 0 , " % " ] ) ] ) } , U = f u n c t i o n ( D ) { v a r w ; 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 & & ( ( w = D [ 0 ] ) = = = n u l l | | w = = = v o i d 0 ? v o i d 0 : w . 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 : D . m a p ( f u n c t i o n ( x , I ) { v a r O = e . a b r i d g e N a m e & & x . n a m e ? U e . a p p l y ( v o i d 0 , [ x . n a m e ] . c o n c a t ( o e ( e . a b r i d g e N a m e ) ) ) : x . n a m e ; r e t u r n r ( " d i v " , { c l a s s : " " . c o n c a t ( P , " _ _ s i n g l e - d i s p l a y - t e x t " ) . c o n c a t ( P , " _ _ d i s p l a y - t e x t - - m a r g i n " ) , k e y : x . n a m e + I + x . p e r c e n t + x . s t a t u s } , [ x . u r l ? r ( l t , { h r e f : x . 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 ( P , " _ _ s i n g l e - n a m e " ) } , i r ( O ) ? O : { d e f a u l t : f u n c t i o n ( ) { r e t u r n [ O ] } } ) : r ( " s p a n " , { c l a s s : " " . c o n c a t ( P , " _ _ s i n g l e - n a m e " ) } , [ O ] ) , x . s t a t u s = = = " f a i l " & & r ( " d i v " , { c l a s s : " " . c o n c a t ( P , " _ _ f l o w - s t a t u s " ) . c o n c a t ( P , " _ _ f i l e - f a i l " ) } , [ r ( p , n u l l , n u l l ) ] ) , x . s t a t u s = = = " w a i t i n g " & & r ( " d i v " , { c l a s s : " " . c o n c a t ( P , " _ _ f l o w - s t a t u s " ) . c o n c a t ( P , " _ _ f i l e - w a i t i n g " ) } , [ r ( h , n u l l , n u l l ) ] ) , x . s t a t u s = = = " p r o g r e s s " & & $ ( x . p e r c e n t ) , ! s . v a l u e & & x . s t a t u s ! = = " p r o g r e s s " & & r ( u , { c l a s s : " " . c o n c a t ( P , " _ _ 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 ( C ) { v a r q = C . e ; r e t u r n e . o n R e m o v e ( { e : q , f i l e : x , i n d e x : I } ) } } , n u l l ) ] ) } ) } , j = f u n c t i o n ( ) { v a r D ; i f ( o . v a l u e = = = " f i l e - i n p u t " ) { v a r w = e . d i s p l a y F i l e s [ 0 ] | | [ ] , x = [ " " . c o n c a t ( c . v a l u e , " - i n p u t _ _ i n n e r " ) , V ( { } , " " . c o n c a t ( P , " _ _ 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 ] ) ] , I = 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 " ) : " " , O = ( D = e . a b r i d g e N a m e ) ! = = n u l l & & D ! = = v o i d 0 & & D . l e n g t h & & w ! = = n u l l & & w ! = = v o i d 0 & & w . n a m e ? U e . a p p l y ( v o i d 0 , [ w . n a m e ] . c o n c a t ( o e ( e . a b r i d g e N a m e ) ) ) : w = = n u l l ? v o i d 0 : w . n a m e ; r e t u r n r ( " d i v " , { c l a s s : " " . c o n c a t ( P , " _ _ 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 ( I ) } , [ r ( " d i v " , { c l a s s : x } , [ r ( " s p a n " , { c l a s s : [ " " . c o n c a t ( P , " _ _ s i n g l e - i n p u t - t e x t " ) , V ( { } , 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 & & ! ( w ! = n u l l & & w . n a m e ) ) ] } , [ w ! = n u l l & & w . n a m e ? O : e . p l a c e h o l d e r ] ) , ( w = = n u l l ? v o i d 0 : w . s t a t u s ) = = = " p r o g r e s s " & & $ ( w . p e r c e n t ) , ( w = = n u l l ? v o i d 0 : w . s t a t u s ) = = = " w a i t i n g " & & r ( h , { c l a s s : " " . c o n c a t ( P , " _ _ s t a t u s - i c o n " ) . c o n c a t ( P , " _ _ f i l e - w a i t i n g " ) } , n u l l ) , w . s t a t u s = = = " s u c c e s s " & & r ( _ , { c l a s s : " " . c o n c a t ( P , " _ _ s t a t u s - i c o n " ) } , n u l l ) , ( w = = n u l l ? v o i d 0 : w . n a m e ) & & w . s t a t u s = = = " f a i l " & & r ( p , { c l a s s : " " . c o n c a t ( P , " _ _ s t a t u s - i c o n " ) . c o n c a t ( P , " _ _ 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 & & w . n a m e ) & & r ( S , { c l a s s : " " . c o n c a t ( P , " _ _ 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 ( C ) { v a r q = C . e ; r e t u r n e . o n R e m o v e ( { e : q , f i l e : w , 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 M , D , w , x = [ " " . c o n c a t ( P , " _ _ s i n g l e " ) , " " . c o n c a t ( P , " _ _ s i n g l e - " ) . c o n c a t ( o . v a l u e ) ] , I = 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 | | I = = = n u l l ) & & ( I = n u l l ) ; v a r O = e . d i s p l a y F i l e s ; r e t u r n r ( " d i v " , { c l a s s : x } , [ o . v a l u e = = = " f i l e - i n p u t " & & j ( ) , ( M = n . d e f a u l t ) = = = n u l l | | M = = = v o i d 0 ? v o i d 0 : M . 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 & & ! O [ 0 ] & & r ( " 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 ] ) , I = = = n u l l ? n u l l : I | | U ( O ) , ! e . m u l t i p l e & & ( ( D = O [ 0 ] ) = = = n u l l | | D = = = v o i d 0 ? v o i d 0 : D . s t a t u s ) = = = " f a i l " & & o . v a l u e = = = " f i l e " ? r ( " s m a l l " , { c l a s s : [ e . e r r o r C l a
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /function ot(t,e){var a=K(null),n=K(!1),l=function(v){var u;v.preventDefault(),n.value=!1;var h=v.dataTransfer.files,_=za(h,e.value);if((u=t.onDrop)===null||u===void 0||u.call(t,{e:v}),_!=null&&_.length){var p;(p=t.onDragFileChange)===null||p===void 0||p.call(t,_)}},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:l,handleDragenter:o,handleDragleave:s,handleDragover:c}}/ * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n r 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 ( l ) { 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 , l ) . 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 o 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 ? r 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 ) { V ( 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 ) ) : r 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 c r = Y ( { 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 : o a ( o 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 , l = w e ( e ) , o = l . d i s p l a y F i l e s , s = l . d i s a b l e d , c = l . a c c e p t , i = g ( f u n c t i o n ( ) { r e t u r n e . l o c a l e } ) , v = d e ( ) , u = g n ( ) , h = u . s i z e C l a s s N a m e s , _ = " " . c o n c a t ( e . c l a s s P r e f i x , " - u p l o a d " ) , p = o t ( e . d r a g E v e n t s , c ) , S = p . d r a g A c t i v e , N = K ( ) , P = g ( f u n c t i o n ( ) { v a r O ; r e t u r n [ " " . c o n c a t ( _ , " _ _ d r a g g e r " ) , V ( { } , " " . c o n c a t ( _ , " _ _ d r a g g e r - c e n t e r " ) , ! o . v a l u e [ 0 ] ) , V ( { } , " " . c o n c a t ( _ , " _ _ d r a g g e r - e r r o r " ) , ( ( O = o . v a l u e [ 0 ] ) = = = n u l l | | O = = = v o i d 0 ? v o i d 0 : O . s t a t u s ) = = = " f a i l " ) ] } ) , $ = k e ( { C h e c k C i r c l e F i l l e d I c o n : t t , E r r o r C i r c l e F i l l e d I c o n : W e } ) , U = $ . C h e c k C i r c l e F i l l e d I c o n , j = $ . E r r o r C i r c l e F i l l e d I c o n , M = f u n c t i o n ( ) { v a r m ; i f ( ! ! e . d i s p l a y F i l e s . l e n g t h ) { v a r C = o . v a l u e [ 0 ] ; i f ( ! C ) r e t u r n n u l l ; v a r q = ( C = = n u l l ? v o i d 0 : C . u r l ) | | ( C = = n u l l | | ( m = C . r e s p o n s e ) = = = n u l l | | m = = = v o i d 0 ? v o i d 0 : m . u r l ) ; r e t u r n r ( " d i v " , { c l a s s : " " . c o n c a t ( _ , " _ _ d r a g g e r - i m g - w r a p " ) } , [ r ( r t , n e ( { i m a g e s : [ q ] , t r i g g e r : f u n c t i o n ( G , L ) { v a r T = L . o p e n ; r e t u r n r ( T e , { s r c : q | | C . r a w , o n C l i c k : T , 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 ) ] ) } } , D = 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 m = o . v a l u e [ 0 ] ; i f ( ! m ) r e t u r n n u l l ; i f ( ( m = = n u l l ? v o i d 0 : m . s t a t u s ) = = = " p r o g r e s s " ) r e t u r n r ( " 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 " ) } , [ r ( 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 & & r ( " 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 " ) } , [ m . p e r c e n t , " % " ] ) ] ) } } , w = f u n c t i o n ( ) { v a r m , C = o . v a l u e [ 0 ] , q = e . a b r i d g e N a m e ? U e . a p p l y ( v o i d 0 , [ C . n a m e ] . c o n c a t ( o e ( e . a b r i d g e N a m e ) ) ) : C . n a m e , H = [ r ( " d i v " , { c l a s s : " " . c o n c a t ( _ , " _ _ d r a g g e r - t e x t " ) , k e y : " i n f o " } , [ r ( " 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 " ) } , [ q ] ) , C . s t a t u s = = = " p r o g r e s s " & & D ( ) , C . s t a t u s = = = " s u c c e s s " & & r ( U , n u l l , n u l l ) , C . s t a t u s = = = " f a i l " & & r ( j , n u l l , n u l l ) ] ) , r ( " s m a l l " , { c l a s s : " " . c o n c a t ( h . 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 " , b l ( C . s i z e ) ] ) , r ( " s m a l l " , { c l a s s : " " . c o n c a t ( h . 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 " , C . u p l o a d T i m e | | " - " ] ) ] ; r e t u r n r ( " d i v " , { c l a s s : " " . c o n c a t ( _ , " _ _ 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 " & & M ( ) , r ( " d i v " , { c l a s s : " " . c o n c a t ( _ , " _ _ 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 } } ) | | H , r ( " d i v " , { c l a s s : " " . c o n c a t ( _ , " _ _ 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 ( C . s t a t u s ) & & ! s . v a l u e & & r ( O 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 ( _ , " _ _ 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 ( L ) { v a r T ; r e t u r n ( T = e . c a n c e l U p l o a d ) = = = n u l l | | T = = = v o i d 0 ? v o i d 0 : T . c a l l ( e , { e : L , 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 [ ( m = i . v a l u e ) = = = n u l l | | m = = = v o i d 0 ? v o i d 0 : m . 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 & & C . s t a t u s = = = " w a i t i n g " & & r ( O 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 L ; r e t u r n ( L = e . u p l o a d F i l e s ) = = = n u l l | | L = = = v o i d 0 ? v o i d 0 : L . c a l l ( e ) } , c l a s s : " " . c o n c a t ( _ , " _ _ 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 ( C = = n u l l ? v o i d 0 : C . s t a t u s ) & & ! s . v a l u e & & r ( " d i v " , { c l a s s : " " . c o n c a t ( _ , " _ _ d r a g g e r - b t n s " ) } , [ r ( O 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 ( _ , " _ _ 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 ] } } ) , r ( O 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 ( _ , " _ _ 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 ( L ) { r e t u r n e . o n R e m o v e ( { e : L , i n d e x : 0 , f i l e : C } ) } } , { 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 ] } } ) ] ) ] ) ] ) } , x = f u n c t i o n ( ) { v a r m , C = r ( " d i v " , n u l l , [ r ( " s p a n " , { c l a s s : " " . c o n c a t ( _ , " - - h i g h l i g h t " ) } , [ ( m = 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 | | m = = = v o i d 0 ? v o i d 0 : m . n o r m a l ] ) , r ( " 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.9
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n i 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 ( l ) { 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 , l ) . 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 u 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 ? i 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 ) { V ( 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 ) ) : i 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 r ( 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 ] " & & ! a t ( t ) } v a r v r = Y ( { n a m e : " U p l o a d I m a g e C a r d " , p r o p s : u a ( u 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 = w e ( e ) , n = a . d i s p l a y F i l e s , l = 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 = g ( f u n c t i o n ( ) { r e t u r n e . l o c a l e } ) , i = k e ( { A d d I c o n : m n , B r o w s e I c o n : S a , D e l e t e I c o n : j a , E r r o r C i r c l e F i l l e d I c o n : W 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 , h = i . A d d I c o n , _ = i . E r r o r C i r c l e F i l l e d I c o n , p = d e ( ) , S = g ( f u n c t i o n ( ) { v a r U ; 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 : ! ( ( U = n . v a l u e ) ! = = n u l l & & U ! = = v o i d 0 & & U [ 0 ] ) } ) , N = f u n c t i o n ( j , M ) { r e t u r n r ( " d i v " , { c l a s s : " " . c o n c a t ( l . 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 ( l . v a l u e , " - u p l o a d _ _ c a r d - b o x " ) } , [ r ( T e , { c l a s s : " " . c o n c a t ( l . v a l u e , " - u p l o a d _ _ c a r d - i m a g e " ) , s r c : j . u r l | | j . r a w , e r r o r : " " } , n u l l ) , r ( " d i v " , { c l a s s : " " . c o n c a t ( l . v a l u e , " - u p l o a d _ _ c a r d - m a s k " ) } , [ r ( " s p a n " , { c l a s s : " " . c o n c a t ( l . 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 ( w ) { r e t u r n w . s t o p P r o p a g a t i o n ( ) } } , [ r ( r t , n e ( { i m a g e s : n . v a l u e . m a p ( f u n c t i o n ( D ) { r e t u r n D . u r l | | D . r a w } ) , d e f a u l t I n d e x : M , t r i g g e r : f u n c t i o n ( w , x ) { v a r I = x . o p e n ; r e t u r n r ( v , { o n C l i c k : f u n c t i o n ( m ) { v a r C , q = m . e ; ( C = e . o n P r e v i e w ) = = = n u l l | | C = = = v o i d 0 | | C . c a l l ( e , { f i l e : j , i n d e x : M , e : q } ) , I ( ) } } , 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 & & r ( j e , n u l l , [ r ( " s p a n " , { c l a s s : " " . c o n c a t ( l . 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 ) , r ( " s p a n " , { c l a s s : " " . c o n c a t ( l . 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 ( w ) { r e t u r n w . s t o p P r o p a g a t i o n ( ) } } , [ r ( u , { o n C l i c k : f u n c t i o n ( w ) { v a r x , I = w . e ; r e t u r n e = = n u l l | | ( x = e . o n R e m o v e ) = = = n u l l | | x = = = v o i d 0 ? v o i d 0 : x . c a l l ( e , { e : I , f i l e : j , i n d e x : M } ) } } , n u l l ) ] ) ] ) ] ) ] ) } , P = f u n c t i o n ( j , M ) { v a r D ; r e t u r n r ( " d i v " , { c l a s s : [ M , " " . c o n c a t ( l . 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 ( j . s t a t u s ) ] } , [ r ( R e , { l o a d i n g : ! 0 , s i z e : " m e d i u m " } , n u l l ) , r ( " p " , n u l l , [ ( D = c . v a l u e ) = = = n u l l | | D = = = v o i d 0 | | ( D = D . p r o g r e s s ) = = = n u l l | | D = = = v o i d 0 ? v o i d 0 : D . 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 ( j . p e r c e n t , " % " ) : " " ] ) ] ) } , $ = f u n c t i o n ( j , M , D ) { v a r w , x ; r e t u r n r ( " d i v " , { c l a s s : D } , [ r ( _ , n u l l , n u l l ) , r ( " p " , n u l l , [ ( ( w = j . r e s p o n s e ) = = = n u l l | | w = = = v o i d 0 ? v o i d 0 : w . e r r o r ) | | ( ( x = c . v a l u e ) = = = n u l l | | x = = = v o i d 0 | | ( x = x . p r o g r e s s ) = = = n u l l | | x = = = v o i d 0 ? v o i d 0 : x . f a i l T e x t ) ] ) , r ( " d i v " , { c l a s s : " " . c o n c a t ( l . v a l u e , " - u p l o a d _ _ c a r d - m a s k " ) } , [ r ( " s p a n " , { c l a s s : " " . c o n c a t ( l . 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 ( O ) { r e t u r n O . s t o p P r o p a g a t i o n ( ) } } , [ r ( u , { o n C l i c k : f u n c t i o n ( O ) { v a r m , C = O . e ; r e t u r n e = = n u l l | | ( m = e . o n R e m o v e ) = = = n u l l | | m = = = v o i d 0 ? v o i d 0 : m . c a l l ( e , { e : C , f i l e : j , i n d e x : M } ) } } , n u l l ) ] ) ] ) ] ) } ; r e t u r n f u n c t i o n ( ) { v a r U , j , M = p ( " 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 ( M ) r e t u r n M ; v a r D = " " . c o n c a t ( l . 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 ( l . v a l u e , " - i s - b a c k g r o u n d " ) ; r e t u r n r ( " d i v " , n u l l , [ r ( " u l " , { c l a s s : " " . c o n c a t ( l . v a l u e , " - u p l o a d _ _ c a r d " ) } , [ ( U = n . v a l u e ) = = = n u l l | | U = = = v o i d 0 ? v o i d 0 : U . m a p ( f u n c t i o n ( w , x ) { v a r I = " " . c o n c a t ( l . v a l u e , " - u p l o a d _ _ c a r d - n a m e " ) , O = " " . c o n c a t ( l . 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 ( l . v a l u e , " - u p l o a d _ _ c a r d - b o x " ) , m = e . a b r i d g e N a m e ? U e . a p p l y ( v o i d 0 , [ w . n a m e ] . c o n c a t ( o e ( e . a b r i d g e N a m e ) ) ) : w . n a m e ; r e t u r n r ( " l i " , { c l a s s : D , k e y : x } , [ w . s t a t u s = = = " p r o g r e s s " & & P ( w , O ) , w . s t a t u s = = = " f a i l " & & $ ( w , x , O ) , ! [ " p r o g r e s s " , " f a i l " ] . i n c l u d e s ( w . s t a t u s ) & & N ( w , x ) , B o o l e a n ( m & & e . s h o w I m a g e F i l e N a m e ) & & ( w . u r l ? r ( l t , { h r e f : w . u r l , c l a s s : I , 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 " } , s
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n c 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 ( l ) { 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 , l ) . 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 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 ? c 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 ) { V ( 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 ) ) : c 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 d r ( 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 ] " & & ! a t ( t ) } v a r f r = Y ( { 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 : s a ( s 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 , l = w e ( e ) , o = l . u p l o a d i n g , s = l . d i s a b l e d , c = l . d i s p l a y F i l e s , i = l . c l a s s P r e f i x , v = l . a c c e p t , u = g ( 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 " ) } ) , h = g ( f u n c t i o n ( ) { r e t u r n e . l o c a l e } ) , _ = d e ( ) , p = k e ( { B r o w s e I c o n : S a , D e l e t e I c o n : j a , C h e c k C i r c l e F i l l e d I c o n : t t , E r r o r C i r c l e F i l l e d I c o n : W e , T i m e F i l l e d I c o n : D a , F i l e E x c e l I c o n : S n , F i l e P d f I c o n : I n , F i l e W o r d I c o n : L n , F i l e P o w e r p o i n t I c o n : U n , F i l e I c o n : $ n , V i d e o I c o n : l l } ) , S = p . B r o w s e I c o n , N = p . D e l e t e I c o n , P = p . C h e c k C i r c l e F i l l e d I c o n , $ = p . E r r o r C i r c l e F i l l e d I c o n , U = p . T i m e F i l l e d I c o n , j = p . F i l e E x c e l I c o n , M = p . F i l e P d f I c o n , D = p . F i l e W o r d I c o n , w = p . F i l e P o w e r p o i n t I c o n , x = p . F i l e I c o n , I = p . V i d e o I c o n , O = o t ( e . d r a g E v e n t s , v ) , m = K ( [ ] ) , C = K ( 0 ) , q = g ( 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 ( h . 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 ) : h . 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 } ) , H = g ( f u n c t i o n ( ) { v a r k = 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 k ? { o n D r o p : O . h a n d l e D r o p , o n D r a g e n t e r : O . 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 : O . 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 : O . h a n d l e D r a g l e a v e } : { } } ) , G = f u n c t i o n ( ) { v a r d = { s u c c e s s : r ( P , n u l l , n u l l ) , f a i l : r ( $ , n u l l , n u l l ) , p r o g r e s s : r ( R e , n u l l , n u l l ) , w a i t i n g : r ( U , n u l l , n u l l ) } , y = h . v a l u e . p r o g r e s s , b = { s u c c e s s : y = = n u l l ? v o i d 0 : y . s u c c e s s T e x t , f a i l : y = = n u l l ? v o i d 0 : y . f a i l T e x t , p r o g r e s s : y = = n u l l ? v o i d 0 : y . u p l o a d i n g T e x t , w a i t i n g : y = = n u l l ? v o i d 0 : y . w a i t i n g T e x t } ; r e t u r n { i c o n M a p : d , t e x t M a p : b } } , L = f u n c t i o n ( ) { r e t u r n r ( " 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 " ) } , [ O . d r a g A c t i v e . v a l u e ? h . v a l u e . d r a g g e r . d r a g D r o p T e x t : h . 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 ] ) } , T = f u n c t i o n ( d , y ) { v a r b = G ( ) , f = b . i c o n M a p , F = b . t e x t M a p , E = e . a b r i d g e N a m e & & d . n a m e ? U 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 ; r e t u r n r ( " 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 : d . n a m e + y + d . p e r c e n t + d . s t a t u s | | " 0 " } , [ r ( " 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 " ) , V ( { } , " " . c o n c a t ( i . v a l u e , " - i s - b o r d e r e d " ) , d . 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 ( d . s t a t u s ) & & r ( " 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 ( d . s t a t u s ) } , [ f [ d . s t a t u s ] , r ( " p " , n u l l , [ F [ d . 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 & & d . s t a t u s = = = " p r o g r e s s " ? " " . c o n c a t ( d . 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 ( d . s t a t u s ) | | ! d . s t a t u s & & d . u r l ) & & r ( T 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 : d . u r l | | d . r a w , e r r o r : " " , l o a d i n g : " " } , n u l l ) , r ( " 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 " ) } , [ ( d . u r l | | d . r a w ) & & ! [ " p r o g r e s s " , " f a i l " ] . i n c l u d e s ( d . s t a t u s ) & & r ( " 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 " ) } , [ r ( S , { o n C l i c k : f u n c t i o n ( B ) { v a r X , e e = B . e ; C . v a l u e = y , m . v a l u e = c . v a l u e , ( X = e . o n P r e v i e w ) = = = n u l l | | X = = = v o i d 0 | | X . c a l l ( e , { f i l e : d , i n d e x : y , e : e e } ) } } , n u l l ) , r ( " 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 & & r ( " 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 ( B ) { r e t u r n e . o n R e m o v e ( { e : B , i n d e x : y , f i l e : d } ) } } , [ r ( 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 & & r ( " 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 ( d . s t a t u s ) & & f [ d . s t a t u s ] , E ] ) ] ) } , z = f u n c t i o n ( d ) { v a r y , b , f = G ( ) , F = f . i c o n M a p , E = f . t e x t M a p ; r e t u r n r ( " 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 " ) } , [ F [ d . s t a t u s ] , r ( " 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 ( d . s t a t u s ) } , [ ( y = d . r e s p o n s e ) ! = = n u l l & & y ! = = v o i d 0 & & y . e r r o
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* /function va(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),a.push.apply(a,n)}return a}function da(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?va(Object(a),!0).forEach(function(n){V(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):va(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var gr=Y({name:"UploadCustomFile",props:da(da({},Ne),{},{dragEvents:Object,draggable:Boolean,dragContent:Function,trigger:Function,triggerUpload:Function,childrenNode:[String,Function]}),setup:function(e,a){var n=a.slots,l=we(e),o=l.classPrefix,s=l.displayFiles,c=l.accept,i=ot(e.dragEvents,c),v=i.dragActive,u=Ge(),h=function(){var p,S={dragActive:v.value||!1,files:s.value};return r("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},[r("div",{class:"".concat(o.value,"-upload__trigger")},[u("dragContent","trigger",{params:S})||((p=e.childrenNode)===null||p===void 0?void 0:p.call(e,S))])])};return function(){var _,p;return r(je,null,[e.draggable?h():r("div",{class:"".concat(o.value,"-upload__trigger"),onClick:e.triggerUpload},[((_=e.childrenNode)===null||_===void 0?void 0:_.call(e,{files:s.value}))||((p=n.default)===null||p===void 0?void 0:p.call(n))])])}}});/ * *
* tdesign v1 . 9.9
* ( 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 ( l ) { 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 , l ) . 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 K 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 ) { V ( 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 m r ( 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 , l = 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 , h = t . f i l e , _ = t . f i l e s , p = _ = = = v o i d 0 ? [ ] : _ , S = t . n a m e , N = S = = = v o i d 0 ? " f i l e " : S , P = t . u s e M o c k P r o g r e s s , $ = P = = = v o i d 0 ? ! 0 : P , U = t . m o c k P r o g r e s s D u r a t i o n , j = U = = = v o i d 0 ? 3 0 0 : U , M = t . f o r m a t R e q u e s t , D = t . o n E r r o r , w = t . o n P r o g r e s s , x = t . o n S u c c e s s , I = p | | [ ] , O = 0 , m = n e w X M L H t t p R e q u e s t ; s & & ( m . w i t h C r e d e n t i a l s = ! 0 ) ; v a r C , q ; i f ( $ & & ( ( e = p [ 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 H = s e t T i m e o u t ( f u n c t i o n ( ) { C = s e t I n t e r v a l ( f u n c t i o n ( ) { O + 1 0 < 1 0 0 ? ( O = M a t h . m a x ( O + 1 0 , O ) , p [ 0 ] & & O ! = = p [ 0 ] . p e r c e n t & & ( p [ 0 ] . p e r c e n t = O , w ( { p e r c e n t : O , f i l e : h | | I [ 0 ] , f i l e s : I . m a p ( f u n c t i o n ( z ) { r e t u r n K e ( K e ( { } , z ) , { } , { p e r c e n t : O } ) } ) , t y p e : " m o c k " , X M L H t t p R e q u e s t : m } ) ) ) : c l e a r I n t e r v a l ( C ) } , j ) , c l e a r T i m e o u t ( H ) } , j ) ; v a r G = { } ; i f ( u ) { v a r L = F e ( u ) ? u ( I ) : u ; O b j e c t . a s s i g n ( G , L ) } I . f o r E a c h ( f u n c t i o n ( z , A ) { v a r W = I . l e n g t h > 1 ? " " . c o n c a t ( N , " [ " ) . c o n c a t ( A , " ] " ) : N ; G [ W ] = z . r a w } ) , I . l e n g t h = = = 1 ? G [ N ] = I [ 0 ] . r a w : G [ N ] = I . m a p ( f u n c t i o n ( z ) { r e t u r n z . r a w } ) , G . l e n g t h = I . l e n g t h , M & & ( G = M ( G ) ) ; v a r T = 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 ( G ) . f o r E a c h ( f u n c t i o n ( z ) { T . a p p e n d ( z , G [ z ] ) } ) , m . o p e n ( n , l , ! 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 ( z ) { m . s e t R e q u e s t H e a d e r ( z , i [ z ] ) } ) , m . o n e r r o r = f u n c t i o n ( z ) { D ( { e v e n t : z , f i l e : h , f i l e s : I , X M L H t t p R e q u e s t : m } ) , c l e a r I n t e r v a l ( C ) , c l e a r T i m e o u t ( q ) } , m . o n t i m e o u t = f u n c t i o n ( z ) { D ( { e v e n t : z , f i l e : h , f i l e s : I , X M L H t t p R e q u e s t : m } ) } , m . u p l o a d & & ( m . u p l o a d . o n p r o g r e s s = f u n c t i o n ( z ) { v a r A , W = 0 ; i f ( z . t o t a l > 0 & & ( W = M a t h . r o u n d ( z . l o a d e d / z . t o t a l * 1 0 0 ) ) , O = M a t h . m a x ( W , O ) , O ! = = W & & ( ( A = I [ 0 ] ) = = = n u l l | | A = = = v o i d 0 ? v o i d 0 : A . p e r c e n t ) ! = = O ) { v a r Q = I . m a p ( f u n c t i o n ( t e ) { r e t u r n K e ( K e ( { } , t e ) , { } , { p e r c e n t : O } ) } ) ; w ( { e v e n t : z , p e r c e n t : O , f i l e : h | | Q [ 0 ] , f i l e s : Q , t y p e : " r e a l " , X M L H t t p R e q u e s t : m } ) } } ) , m . o n l o a d = f u n c t i o n ( z ) { v a r A = { } ; A . X M L H t t p R e q u e s t = m ; v a r W = m . s t a t u s < 2 0 0 | | m . s t a t u s > = 3 0 0 ; i f ( W ) r e t u r n D ( { e v e n t : z , f i l e : h , f i l e s : I , r e s p o n s e : A , X M L H t t p R e q u e s t : m } ) ; v a r Q = m . r e s p o n s e T e x t | | m . r e s p o n s e ; t r y { A = J S O N . p a r s e ( Q ) } c a t c h { A = Q , P 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 ( C ) , c l e a r T i m e o u t ( q ) , I . f o r E a c h ( f u n c t i o n ( t e ) { v a r l e ; t e . p e r c e n t = 1 0 0 , t e . s t a t u s = " s u c c e s s " , t e . u p l o a d T i m e = ( ( l e = A ) = = = n u l l | | l e = = = v o i d 0 ? v o i d 0 : l e . u p l o a d T i m e ) | | U 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 = m ) , x ( { e v e n t : z , f i l e : h | | I [ 0 ] , f i l e s : o e ( I ) , X M L H t t p R e q u e s t : m , r e s p o n s e : A } ) } , m . s e n d ( T ) , m . u p l o a d . r e q u e s t P a r a m s = G , m . u p l o a d . r e q u e s t H e a d e r s = i , m } / * *
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n g 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 ( l ) { 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 , l ) . 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 ? g 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 ) { V ( 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 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 p r ( 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 , l = 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 = K a ( a ) ? { s i z e : a , u n i t : " K B " } : a , h = O l ( t . s i z e , u . s i z e , u . u n i t ) ; h & & ( v = u ) } i ( v ) } ) , o = [ l , v o i d 0 ] ; i f ( F 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 m 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 , l = 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 F 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 : l } } f u n c t i o n h r ( 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 , l = 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 & & P 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 : l } } f u n c t i o n y r ( 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 ) & & P 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 ) : ( P 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 ) : ( P 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 ) : ( P 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 p 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 ( l ) { i f ( ! e & & ! n ) { P 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 . " ) , l ( { } ) ; r e t u r n } i f ( ! a | | ! a . l e n g t h ) { P 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 " ) , l ( { } ) ; 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 ( ! y r ( c ) ) { l ( { } ) ; r e t u r n } v a r i = c . r e s p o n s e | | { } ; F 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 ( p ) { v a r S = a . f i n d ( f u n c t i o n ( N ) { r e t u r n p . n a m e & & N . n a m e = = = p . n a m e | | p . r a w & & N . r a w = = = p . r a w } ) ; r e t u r n s e ( s e ( s e ( { } , S ) , p ) , { } , { 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 ( p ) { v a r S ; p . s t a t u s = c . s t a t u s , p . r e s p o n s e = i , p . u r l = i . u r l , p . 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 , p . u p l o a d T i m e = ( ( S = i ) = = = n u l l | | S = = = v o i d 0 ? v o i d 0 : S . u p l o a d T i m e ) | | U 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 h ; ( h = t . o n R e s p o n s e S u c c e s s ) = = = n u l l | | h = = = v o i d 0 | | h . 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 _ ; ( _ = t . o n R e s p o n s e E r r o r ) = = = n u l l | | _ = = = v o i d 0 | | _ . c a l l ( t , u ) } l ( { 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 = m r ( { 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 = m 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 ) , l ( { 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 ( F 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 h , _ = m a ( s e ( s e ( { } , i ) , { } , { r e s p o n s e : u } ) ) ; ( h = t . o n R e s p o n s e E r r o r ) = = = n u l l | | h = = = v o i d 0 | | h . c a l l ( t , _ ) , l ( { s t a t u s : " f a i l " , d a t a : _ } ) } e l s e { v a r p ; 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 S = h r ( s e ( s e ( { } , i ) , { } , { r e s p o n s e : u } ) ) ; ( p = t . o n R e s p o n s e S u c c e s s ) = = = n u l l | | p = = = v o i d 0 | | p . c a l l ( t , S ) , l ( { s t a t u s : " s u c c e s s " , d a t a : S } ) } } , 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.9
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n h 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 ( l ) { 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 , l ) . 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 q 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 ? h 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 ) { V ( 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 ) ) : h 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 r ( t ) { v a r e = K ( ) , a = w e ( t ) , n = a . d i s a b l e d , l = 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 = z e ( " u p l o a d " ) , h = u . g l o b a l C o n f i g , _ = u . t , p = u . c l a s s P r e f i x , S = 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 = C e ( S , 2 ) , P = N [ 0 ] , $ = N [ 1 ] , U = K ( [ ] ) , j = K ( [ ] ) , M = K ( " " ) , D = g ( f u n c t i o n ( ) { r e t u r n O a ( { } , h . v a l u e , t . l o c a l e ) } ) , w = " " . c o n c a t ( p . v a l u e , " - u p l o a d _ _ t i p s " ) . c o n c a t ( p . v a l u e , " - s i z e - s " ) , x = [ w ] . c o n c a t ( " " . c o n c a t ( p . v a l u e , " - u p l o a d _ _ t i p s - e r r o r " ) ) , I = " " . c o n c a t ( p . v a l u e , " - u p l o a d _ _ p l a c e h o l d e r " ) , O = g ( f u n c t i o n ( ) { v a r b , f = P r ( { 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 : ( b = P . v a l u e ) = = = n u l l | | b = = = v o i d 0 | | ( b = b [ 0 ] ) = = = n u l l | | b = = = v o i d 0 ? v o i d 0 : b . s t a t u s , a u t o U p l o a d : l . v a l u e } ) ; r e t u r n D . v a l u e . t r i g g e r U p l o a d T e x t [ f ] } ) , m = K ( ! 1 ) , C = g ( f u n c t i o n ( ) { r e t u r n C r ( { 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 : j . v a l u e , u p l o a d V a l u e : P . v a l u e , a u t o U p l o a d : l . v a l u e , i s B a t c h U p l o a d : o . v a l u e } ) } ) , q = f u n c t i o n ( f ) { v a r F = f . f i l e , E = f . p e r c e n t , R = l . v a l u e ? j : P , B = R . v a l u e . f i n d I n d e x ( f u n c t i o n ( X ) { r e t u r n F . r a w = = = X . r a w } ) ; R . v a l u e [ B ] = q e ( q e ( { } , R . v a l u e [ B ] ) , { } , { p e r c e n t : E } ) } , H = f u n c t i o n ( ) { t . a u t o U p l o a d & & ( j . v a l u e = o e ( j . v a l u e ) ) } , G = f u n c t i o n ( f ) { v a r F ; i f ( ! ( ! f | | ! f . f i l e s | | ! f . f i l e s [ 0 ] ) ) { v a r E = f . r e s p o n s e , R = f . e v e n t , B = f . f i l e s ; H ( ) , ( F = t . o n O n e F i l e F a i l ) = = = n u l l | | F = = = v o i d 0 | | F . c a l l ( t , { e : R , f i l e : B = = n u l l ? v o i d 0 : B [ 0 ] , c u r r e n t F i l e s : B , f a i l e d F i l e s : B , r e s p o n s e : E } ) , ( ! t . m u l t i p l e | | t . i s B a t c h U p l o a d ) & & $ ( [ ] , { t r i g g e r : " p r o g r e s s - f a i l " , e : f . e v e n t , f i l e : f . f i l e s [ 0 ] } ) } } , L = f u n c t i o n ( f ) { v a r F ; H ( ) , ( F = t . o n P r o g r e s s ) = = = n u l l | | F = = = v o i d 0 | | F . c a l l ( t , { e : f . e v e n t , f i l e : f . f i l e , c u r r e n t F i l e s : f . f i l e s , p e r c e n t : f . p e r c e n t , t y p e : f . t y p e , X M L H t t p R e q u e s t : f . X M L H t t p R e q u e s t } ) } , T = f u n c t i o n ( f ) { 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 F ; H ( ) , ( F = t . o n O n e F i l e S u c c e s s ) = = = n u l l | | F = = = v o i d 0 | | F . c a l l ( t , { e : f . e v e n t , f i l e : f . f i l e s [ 0 ] , r e s p o n s e : f . r e s p o n s e } ) } } ; f u n c t i o n z ( b ) { v a r f = b ; r e t u r n f . m e s s a g e ? _ ( f . m e s s a g e , { s i z e L i m i t : f . s i z e } ) : " " . c o n c a t ( _ ( D . 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 : f . s i z e } ) , " " ) . c o n c a t ( f . u n i t ) } v a r A = f u n c t i o n ( f ) { v a r F = t . m u l t i p l e & & ! o . v a l u e ? P . v a l u e . c o n c a t ( f ) : f ; ! F . l e n g t h | | ( $ ( F , { t r i g g e r : " a d d " , i n d e x : P . v a l u e . l e n g t h , f i l e : f [ 0 ] , f i l e s : f } ) , j . v a l u e = [ ] ) } , W = f u n c t i o n ( f ) { v a r F ; i f ( ! n . v a l u e ) { v a r E = { c u r r e n t S e l e c t e d F i l e s : Q e ( o e ( f ) , t . f o r m a t ) } ; ( F = t . o n S e l e c t C h a n g e ) = = = n u l l | | F = = = v o i d 0 | | F . c a l l ( t , o e ( f ) , E ) , w r ( { u p l o a d V a l u e : P . v a l u e , f i l e s : o e ( f ) , 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 : l . 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 ( R ) { v a r B ; i f ( ( ( B = R . v a l i d a t e R e s u l t ) = = = n u l l | | B = = = v o i d 0 ? v o i d 0 : B . 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 X , e 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 : R . f i l e s } ; ( X = t . o n V a l i d a t e ) = = = n u l l | | X = = = v o i d 0 | | X . c a l l ( t , e e ) ; r e t u r n } i f ( R . l e n g t h O v e r L i m i t ) { v a r f e , g 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 : R . f i l e s } ; i f ( ( f e = t . o n V a l i d a t e ) = = = n u l l | | f e = = = v o i d 0 | | f e . c a l l ( t , g e ) , ! R . f i l e s . l e n g t h ) r e t u r n } i f ( R . h a s S a m e N a m e F i l e ) { v a r m e , y 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 : R . f i l e s } ; ( m e = t . o n V a l i d a t e ) = = = n u l l | | m e = = = v o i d 0 | | m e . c a l l ( t , y e ) } i f ( R . 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 L e , B e = _ r ( R . f i l e V a l i d a t e L i s t , z ) , I e = B e . s i z e L i m i t E r r o r s , V e = B e . b e f o r e U p l o a d E r r o r F i l e s , J = B e . t o F i l e s , Z = l . v a l u e ? J : j . v a l u e . c o n c a t ( J ) ; i f ( j . v a l u e = Z , ( L 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 | | L e = = = v o i d 0 | | L e . c a l l ( t , { f i l e s : Z , t r i g g e r : " v a l i d a t e " } ) , I e [ 0 ] ) { v a r r e ; M . v a l u e = I e [ 0 ] . f i l e . r e s p o n s e . e r r o r , ( r e = t . o n V a l i d a t e ) = = = n u l l | | r e = = = v o i d 0 | | r 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 : I 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 ( M . v a l u e = " " , V e . l e n g t h ) { v a r D e , i t = { 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 : V e } ; ( 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 , i t ) } l . v a l u e ? a e ( Z ) : A ( Z ) } } ) , e . v a
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* / f u n c t i o n y 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 ( l ) { 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 , l ) . 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 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 ? y 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 ) { V ( 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 ) ) : y 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 j r = Y ( { n a m e : " T U p l o a d " , p r o p s : r r , 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 , l = a . e x p o s e , o = G e ( ) , s = d e ( ) , c = F r ( 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 , h = c . t o U p l o a d F i l e s , _ = c . d i s p l a y F i l e s , p = c . u p l o a d V a l u e , S = 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 , P = c . t i p s C l a s s e s , $ = c . e r r o r C l a s s e s , U = c . p l a c e h o l d e r C l a s s , j = c . i n p u t R e f , M = c . o n I n n e r R e m o v e , D = c . u p l o a d F i l e s , w = c . o n N o r m a l F i l e C h a n g e , x = c . o n D r a g F i l e C h a n g e , I = c . o n P a s t e F i l e C h a n g e , O = c . t r i g g e r U p l o a d , m = c . c a n c e l U p l o a d , C = c . u p l o a d F i l e P e r c e n t , q = b a ( ) , H = k e ( { U p l o a d I c o n : t l } ) , G = H . U p l o a d I c o n , L = g ( f u n c t i o n ( ) { v a r d , y ; r e t u r n ( ( d = e . t r i g g e r B u t t o n P r o p s ) = = = n u l l | | d = = = v o i d 0 ? v o i d 0 : d . d e f a u l t ) | | ( ( y = e . t r i g g e r B u t t o n P r o p s ) = = = n u l l | | y = = = v o i d 0 ? v o i d 0 : y . c o n t e n t ) | | u . v a l u e } ) ; l ( { u p l o a d : j . 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 : O , u p l o a d F i l e s : D , c a n c e l U p l o a d : m , u p l o a d F i l e P e r c e n t : C } ) ; v a r T = f u n c t i o n ( ) { v a r y = 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 " ? r ( O e , n e ( { d i s a b l e d : q . 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 [ L . v a l u e ] } } ) : r ( O e , n e ( { d i s a b l e d : q . 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 r ( G , 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 [ L . 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 : p . v a l u e } } ) | | y ( ) } , z = g ( 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 : p . v a l u e , t o U p l o a d F i l e s : h . v a l u e , d i s p l a y F i l e s : _ . 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 : q . 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 : S . 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 : P , e r r o r C l a s s e s : $ , p l a c e h o l d e r C l a s s : U , 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 : M , 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 : I , 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 } } ) , A = { o n D r a g F i l e C h a n g e : x , 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 } , W = g ( 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 " ) , V ( { } , " " . 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 " ) ] } ) , Q = f u n c t i o n ( ) { r e t u r n r ( u r , n e ( z . 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 [ r ( " 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 : O } , [ T ( ) ] ) ] } , 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 " ] } ) } , t e = f u n c t i o n ( ) { r e t u r n r ( c r , n e ( z . v a l u e , { d r a g E v e n t s : A , 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 : m , t r i g g e r U p l o a d : O , u p l o a d F i l e s : D , 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 " ] } ) } , l e = f u n c t i o n ( ) { r e t u r n r ( v r , n e ( z . 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 : O , u p l o a d F i l e s : D , c a n c e l U p l o a d : m , 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 " ] } ) } , a e = f u n c t i o n ( ) { r e t u r n r ( f r , n e ( z . 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 : A , u p l o a d F i l e s : D , c a n c e l U p l o a d : m , 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 [ r ( " 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 : O } , [ ! e . d r a g g a b l e & & T ( ) ] ) ] } , 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 " ] } ) } , k = f u n c t i o n ( ) { r e t u r n r ( g r , n e ( z . 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 : A , t r i g g e r U p l o a d : O , 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 [ T
* tdesign v1 . 9.9
* ( c ) 2024 tdesign
* @ license MIT
* / v a r V r = x e ( j r ) ; e x p o r t { N r a s D , R r a s L , M r a s R , $ r a s T , V r a s U , T r a s a } ;