@@ -439,7 +439,6 @@ const Oe = {
439
439
ln ( Oe , { html : ee ( n ) } , null , 8 , [ "html" ] ) ,
440
440
( z ( ! 0 ) , He ( ke , null , un ( ee ( m ) . currentStack , ( h ) => ( z ( ) , Se ( Oe , {
441
441
key : `modal.${ h } ` ,
442
- class : "z-20" ,
443
442
type : l . value [ h ] . type ,
444
443
html : l . value [ h ] . html ,
445
444
stack : h ,
@@ -1562,7 +1561,7 @@ const Ii = {
1562
1561
mounted ( ) {
1563
1562
if ( this . remember ) {
1564
1563
let e = m . restore ( this . remember , this . localStorage ) ;
1565
- e || ( e = { } ) , this . values = Object . assign ( { } , { ...e } ) ;
1564
+ e || ( e = { } ) , this . values = Object . assign ( { } , { ...this . default , ... e } ) ;
1566
1565
} else
1567
1566
this . values = Object . assign ( { } , { ...this . default } ) ;
1568
1567
} ,
@@ -2119,7 +2118,9 @@ const ol = {
2119
2118
action : {
2120
2119
type : String ,
2121
2120
required : ! 1 ,
2122
- default : location . href
2121
+ default ( ) {
2122
+ return location ? location . href : "" ;
2123
+ }
2123
2124
} ,
2124
2125
method : {
2125
2126
type : String ,
@@ -2205,14 +2206,14 @@ const ol = {
2205
2206
} ) ;
2206
2207
} ,
2207
2208
request ( ) {
2208
- this . wasSuccessful = ! 1 , this . recentlySuccessful = ! 1 , clearTimeout ( this . recentlySuccessfulTimeoutId ) ;
2209
+ this . processing = ! 0 , this . wasSuccessful = ! 1 , this . recentlySuccessful = ! 1 , clearTimeout ( this . recentlySuccessfulTimeoutId ) ;
2209
2210
const e = this . forceFormData || ct ( this . values ) ? kr ( this . values ) : this . values ;
2210
2211
m . request ( this . action , this . method . toUpperCase ( ) , e , {
2211
2212
Accept : "application/json"
2212
2213
} ) . then ( ( t ) => {
2213
- this . $emit ( "success" , t ) , this . restoreOnSuccess && this . restore ( ) , this . resetOnSuccess && this . reset ( ) , this . wasSuccessful = ! 0 , this . recentlySuccessful = ! 0 , this . recentlySuccessfulTimeoutId = setTimeout ( ( ) => this . recentlySuccessful = ! 1 , 2e3 ) ;
2214
+ this . $emit ( "success" , t ) , this . restoreOnSuccess && this . restore ( ) , this . resetOnSuccess && this . reset ( ) , this . processing = ! 1 , this . wasSuccessful = ! 0 , this . recentlySuccessful = ! 0 , this . recentlySuccessfulTimeoutId = setTimeout ( ( ) => this . recentlySuccessful = ! 1 , 2e3 ) ;
2214
2215
} ) . catch ( ( t ) => {
2215
- this . $emit ( "error" , t ) ;
2216
+ this . processing = ! 1 , this . $emit ( "error" , t ) ;
2216
2217
} ) ;
2217
2218
}
2218
2219
} ,
@@ -2303,8 +2304,10 @@ const ol = {
2303
2304
] , 8 , il ) ) ;
2304
2305
}
2305
2306
} , ll = {
2306
- provide : {
2307
- stack : ( ) => globalThis . stack
2307
+ provide ( ) {
2308
+ return {
2309
+ stack : this . stack
2310
+ } ;
2308
2311
} ,
2309
2312
props : {
2310
2313
type : {
0 commit comments