1
+ /* generated by Svelte vX.Y.Z */
2
+ import {
3
+ SvelteComponentDev ,
4
+ add_location ,
5
+ append_dev ,
6
+ detach_dev ,
7
+ dispatch_dev ,
8
+ element ,
9
+ init ,
10
+ insert_dev ,
11
+ noop ,
12
+ safe_not_equal ,
13
+ set_data_dev ,
14
+ space ,
15
+ subscribe ,
16
+ text ,
17
+ validate_store
18
+ } from "svelte/internal" ;
19
+
20
+ const file = undefined ;
21
+
22
+ function create_fragment ( ctx ) {
23
+ let p ;
24
+ let t0 ;
25
+ let t1 ;
26
+ let t2 ;
27
+ let t3 ;
28
+ let t4 ;
29
+ let t5 ;
30
+ let t6 ;
31
+ let t7 ;
32
+ let t8 ;
33
+ let t9 ;
34
+ let t10 ;
35
+
36
+ const block = {
37
+ c : function create ( ) {
38
+ p = element ( "p" ) ;
39
+ t0 = text ( /*prop*/ ctx [ 0 ] ) ;
40
+ t1 = space ( ) ;
41
+ t2 = text ( /*realName*/ ctx [ 1 ] ) ;
42
+ t3 = space ( ) ;
43
+ t4 = text ( /*local*/ ctx [ 3 ] ) ;
44
+ t5 = space ( ) ;
45
+ t6 = text ( priv ) ;
46
+ t7 = space ( ) ;
47
+ t8 = text ( /*$prop*/ ctx [ 2 ] ) ;
48
+ t9 = space ( ) ;
49
+ t10 = text ( /*shadowedByModule*/ ctx [ 4 ] ) ;
50
+ add_location ( p , file , 22 , 0 , 430 ) ;
51
+ } ,
52
+ l : function claim ( nodes ) {
53
+ throw new Error ( "options.hydrate only works if the component was compiled with the `hydratable: true` option" ) ;
54
+ } ,
55
+ m : function mount ( target , anchor ) {
56
+ insert_dev ( target , p , anchor ) ;
57
+ append_dev ( p , t0 ) ;
58
+ append_dev ( p , t1 ) ;
59
+ append_dev ( p , t2 ) ;
60
+ append_dev ( p , t3 ) ;
61
+ append_dev ( p , t4 ) ;
62
+ append_dev ( p , t5 ) ;
63
+ append_dev ( p , t6 ) ;
64
+ append_dev ( p , t7 ) ;
65
+ append_dev ( p , t8 ) ;
66
+ append_dev ( p , t9 ) ;
67
+ append_dev ( p , t10 ) ;
68
+ } ,
69
+ p : function update ( ctx , [ dirty ] ) {
70
+ if ( dirty & /*prop*/ 1 ) set_data_dev ( t0 , /*prop*/ ctx [ 0 ] ) ;
71
+ if ( dirty & /*realName*/ 2 ) set_data_dev ( t2 , /*realName*/ ctx [ 1 ] ) ;
72
+ if ( dirty & /*$prop*/ 4 ) set_data_dev ( t8 , /*$prop*/ ctx [ 2 ] ) ;
73
+ } ,
74
+ i : noop ,
75
+ o : noop ,
76
+ d : function destroy ( detaching ) {
77
+ if ( detaching ) detach_dev ( p ) ;
78
+ }
79
+ } ;
80
+
81
+ dispatch_dev ( "SvelteRegisterBlock" , {
82
+ block,
83
+ id : create_fragment . name ,
84
+ type : "component" ,
85
+ source : "" ,
86
+ ctx
87
+ } ) ;
88
+
89
+ return block ;
90
+ }
91
+
92
+ let moduleLiveBinding ;
93
+ const moduleContantProps = 4 ;
94
+ let moduleLet ;
95
+ const moduleConst = 2 ;
96
+ let shadowedByModule ;
97
+ const priv = "priv" ;
98
+
99
+ function instance ( $$self , $$props , $$invalidate ) {
100
+ let $prop ,
101
+ $$unsubscribe_prop = noop ,
102
+ $$subscribe_prop = ( ) => ( $$unsubscribe_prop ( ) , $$unsubscribe_prop = subscribe ( prop , $$value => $$invalidate ( 2 , $prop = $$value ) ) , prop ) ;
103
+
104
+ $$self . $$ . on_destroy . push ( ( ) => $$unsubscribe_prop ( ) ) ;
105
+ let { prop } = $$props ;
106
+ validate_store ( prop , "prop" ) ;
107
+ $$subscribe_prop ( ) ;
108
+ let { alias : realName } = $$props ;
109
+ let local ;
110
+ let shadowedByModule ;
111
+ const writable_props = [ "prop" , "alias" ] ;
112
+
113
+ Object . keys ( $$props ) . forEach ( key => {
114
+ if ( ! ~ writable_props . indexOf ( key ) && key . slice ( 0 , 2 ) !== "$$" ) console . warn ( `<Component> was created with unknown prop '${ key } '` ) ;
115
+ } ) ;
116
+
117
+ $$self . $set = $$props => {
118
+ if ( "prop" in $$props ) $$subscribe_prop ( $$invalidate ( 0 , prop = $$props . prop ) ) ;
119
+ if ( "alias" in $$props ) $$invalidate ( 1 , realName = $$props . alias ) ;
120
+ } ;
121
+
122
+ $$self . $capture_state = ( ) => ( {
123
+ moduleLiveBinding,
124
+ moduleContantProps,
125
+ moduleLet,
126
+ moduleConst,
127
+ shadowedByModule,
128
+ prop,
129
+ realName,
130
+ local,
131
+ priv,
132
+ shadowedByModule,
133
+ computed,
134
+ $prop
135
+ } ) ;
136
+
137
+ $$self . $inject_state = $$props => {
138
+ if ( "prop" in $$props ) $$subscribe_prop ( $$invalidate ( 0 , prop = $$props . prop ) ) ;
139
+ if ( "realName" in $$props ) $$invalidate ( 1 , realName = $$props . realName ) ;
140
+ if ( "local" in $$props ) $$invalidate ( 3 , local = $$props . local ) ;
141
+ if ( "shadowedByModule" in $$props ) $$invalidate ( 4 , shadowedByModule = $$props . shadowedByModule ) ;
142
+ if ( "computed" in $$props ) computed = $$props . computed ;
143
+ } ;
144
+
145
+ let computed ;
146
+
147
+ if ( $$props && "$$inject" in $$props ) {
148
+ $$self . $inject_state ( $$props . $$inject ) ;
149
+ }
150
+
151
+ $: computed = local * 2 ;
152
+ return [ prop , realName , $prop , local , shadowedByModule ] ;
153
+ }
154
+
155
+ class Component extends SvelteComponentDev {
156
+ constructor ( options ) {
157
+ super ( options ) ;
158
+ init ( this , options , instance , create_fragment , safe_not_equal , { prop : 0 , alias : 1 } ) ;
159
+
160
+ dispatch_dev ( "SvelteRegisterComponent" , {
161
+ component : this ,
162
+ tagName : "Component" ,
163
+ options,
164
+ id : create_fragment . name
165
+ } ) ;
166
+
167
+ const { ctx } = this . $$ ;
168
+ const props = options . props || { } ;
169
+
170
+ if ( /*prop*/ ctx [ 0 ] === undefined && ! ( "prop" in props ) ) {
171
+ console . warn ( "<Component> was created without expected prop 'prop'" ) ;
172
+ }
173
+
174
+ if ( /*realName*/ ctx [ 1 ] === undefined && ! ( "alias" in props ) ) {
175
+ console . warn ( "<Component> was created without expected prop 'alias'" ) ;
176
+ }
177
+ }
178
+
179
+ get prop ( ) {
180
+ throw new Error ( "<Component>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'" ) ;
181
+ }
182
+
183
+ set prop ( value ) {
184
+ throw new Error ( "<Component>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'" ) ;
185
+ }
186
+
187
+ get alias ( ) {
188
+ throw new Error ( "<Component>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'" ) ;
189
+ }
190
+
191
+ set alias ( value ) {
192
+ throw new Error ( "<Component>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'" ) ;
193
+ }
194
+ }
195
+
196
+ export default Component ;
197
+ export { moduleLiveBinding , moduleContantProps } ;
0 commit comments