@@ -11,37 +11,30 @@ import {
11
11
init ,
12
12
insert ,
13
13
safe_not_equal ,
14
- space
14
+ space ,
15
+ transition_in ,
16
+ transition_out
15
17
} from "svelte/internal" ;
16
18
17
- const get_slot1_slot_changes = ( { } ) => ( { } ) ;
18
- const get_slot1_slot_context = ( { } ) => ( { } ) ;
19
+ const get_slot1_slot_changes = dirty => ( { } ) ;
20
+ const get_slot1_slot_context = ctx => ( { } ) ;
19
21
20
22
function create_fragment ( ctx ) {
21
- var div , t , current ;
22
-
23
- const default_slot_1 = ctx . $$slots . default ;
24
- const default_slot = create_slot ( default_slot_1 , ctx , null ) ;
25
-
26
- const slot1_slot_1 = ctx . $$slots . slot1 ;
27
- const slot1_slot = create_slot ( slot1_slot_1 , ctx , get_slot1_slot_context ) ;
23
+ let div ;
24
+ let t ;
25
+ let current ;
26
+ const default_slot_template = /*$$slots*/ ctx [ 1 ] . default ;
27
+ const default_slot = create_slot ( default_slot_template , ctx , /*$$scope*/ ctx [ 0 ] , null ) ;
28
+ const slot1_slot_template = /* $$slots*/ ctx [ 1 ] . slot1 ;
29
+ const slot1_slot = create_slot ( slot1_slot_template , ctx , /*$$scope*/ ctx [ 0 ] , get_slot1_slot_context ) ;
28
30
29
31
return {
30
32
c ( ) {
31
33
div = element ( "div" ) ;
32
-
33
34
if ( default_slot ) default_slot . c ( ) ;
34
35
t = space ( ) ;
35
-
36
36
if ( slot1_slot ) slot1_slot . c ( ) ;
37
37
} ,
38
-
39
- l ( nodes ) {
40
- if ( default_slot ) default_slot . l ( div_nodes ) ;
41
-
42
- if ( slot1_slot ) slot1_slot . l ( div_nodes ) ;
43
- } ,
44
-
45
38
m ( target , anchor ) {
46
39
insert ( target , div , anchor ) ;
47
40
@@ -57,37 +50,29 @@ function create_fragment(ctx) {
57
50
58
51
current = true ;
59
52
} ,
60
-
61
- p ( changed , ctx ) {
62
- if ( default_slot && default_slot . p && changed . $$scope ) {
63
- default_slot . p ( get_slot_changes ( default_slot_1 , ctx , changed , ) , get_slot_context ( default_slot_1 , ctx , null ) ) ;
53
+ p ( ctx , [ dirty ] ) {
54
+ if ( default_slot && default_slot . p && dirty & /*$$scope*/ 1 ) {
55
+ default_slot . p ( get_slot_context ( default_slot_template , ctx , /*$$scope*/ ctx [ 0 ] , null ) , get_slot_changes ( default_slot_template , /*$$scope*/ ctx [ 0 ] , dirty , null ) ) ;
64
56
}
65
57
66
- if ( slot1_slot && slot1_slot . p && changed . $$scope ) {
67
- slot1_slot . p ( get_slot_changes ( slot1_slot_1 , ctx , changed , get_slot1_slot_changes ) , get_slot_context ( slot1_slot_1 , ctx , get_slot1_slot_context ) ) ;
58
+ if ( slot1_slot && slot1_slot . p && dirty & /* $$scope*/ 1 ) {
59
+ slot1_slot . p ( get_slot_context ( slot1_slot_template , ctx , /*$$scope*/ ctx [ 0 ] , get_slot1_slot_context ) , get_slot_changes ( slot1_slot_template , /*$$scope*/ ctx [ 0 ] , dirty , get_slot1_slot_changes ) ) ;
68
60
}
69
61
} ,
70
-
71
62
i ( local ) {
72
63
if ( current ) return ;
73
- if ( default_slot && default_slot . i ) default_slot . i ( local ) ;
74
- if ( slot1_slot && slot1_slot . i ) slot1_slot . i ( local ) ;
64
+ transition_in ( default_slot , local ) ;
65
+ transition_in ( slot1_slot , local ) ;
75
66
current = true ;
76
67
} ,
77
-
78
68
o ( local ) {
79
- if ( default_slot && default_slot . o ) default_slot . o ( local ) ;
80
- if ( slot1_slot && slot1_slot . o ) slot1_slot . o ( local ) ;
69
+ transition_out ( default_slot , local ) ;
70
+ transition_out ( slot1_slot , local ) ;
81
71
current = false ;
82
72
} ,
83
-
84
73
d ( detaching ) {
85
- if ( detaching ) {
86
- detach ( div ) ;
87
- }
88
-
74
+ if ( detaching ) detach ( div ) ;
89
75
if ( default_slot ) default_slot . d ( detaching ) ;
90
-
91
76
if ( slot1_slot ) slot1_slot . d ( detaching ) ;
92
77
}
93
78
} ;
@@ -97,22 +82,24 @@ function instance($$self, $$props, $$invalidate) {
97
82
let { $$slots = { } , $$scope } = $$props ;
98
83
99
84
$$self . $set = $$props => {
100
- if ( ' $$scope' in $$props ) $$invalidate ( '$$scope' , $$scope = $$props . $$scope ) ;
85
+ if ( " $$scope" in $$props ) $$invalidate ( 0 , $$scope = $$props . $$scope ) ;
101
86
} ;
102
87
103
- return { $$slots , $$scope } ;
88
+ return [ $$scope , $$slots ] ;
104
89
}
105
90
106
91
class Component extends SvelteComponent {
107
92
constructor ( options ) {
108
93
super ( ) ;
94
+
109
95
if ( options . slots ) {
110
- options . props = options . props || { } ;
96
+ options . props = options . props || ( { } ) ;
111
97
options . props . $$scope = { } ;
112
98
options . props . $$slots = create_root_component_slots ( options . slots ) ;
113
99
}
114
- init ( this , options , instance , create_fragment , safe_not_equal , [ ] ) ;
100
+
101
+ init ( this , options , instance , create_fragment , safe_not_equal , { } ) ;
115
102
}
116
103
}
117
104
118
- export default Component ;
105
+ export default Component ;
0 commit comments