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