/* generated by Svelte vX.Y.Z */
import {
SvelteComponentDev ,
add _location ,
append _dev ,
detach _dev ,
dispatch _dev ,
element ,
init ,
insert _dev ,
noop ,
safe _not _equal ,
set _data _dev ,
space ,
text ,
validate _slots
} from "svelte/internal" ;
const file = undefined ;
function create _fragment ( ctx ) {
let h1 ;
let t0 ;
let t1 ;
let t2 ;
let t3 ;
const block = {
c : function create ( ) {
h1 = element ( "h1" ) ;
t0 = text ( "Hello " ) ;
t1 = text ( /*name*/ ctx [ 0 ] ) ;
t2 = text ( "!" ) ;
t3 = space ( ) ;
debugger ;
add _location ( h1 , file , 4 , 0 , 38 ) ;
} ,
l : function claim ( nodes ) {
throw new Error ( "options.hydrate only works if the component was compiled with the `hydratable: true` option" ) ;
} ,
m : function mount ( target , anchor ) {
insert _dev ( target , h1 , anchor ) ;
append _dev ( h1 , t0 ) ;
append _dev ( h1 , t1 ) ;
append _dev ( h1 , t2 ) ;
insert _dev ( target , t3 , anchor ) ;
} ,
p : function update ( ctx , [ dirty ] ) {
if ( dirty & /*name*/ 1 ) set _data _dev ( t1 , /*name*/ ctx [ 0 ] ) ;
debugger ;
} ,
i : noop ,
o : noop ,
d : function destroy ( detaching ) {
if ( detaching ) detach _dev ( h1 ) ;
if ( detaching ) detach _dev ( t3 ) ;
}
} ;
dispatch _dev ( "SvelteRegisterBlock" , {
block ,
id : create _fragment . name ,
type : "component" ,
source : "" ,
ctx
} ) ;
return block ;
}
function instance ( $$self , $$props , $$invalidate ) {
let { name } = $$props ;
const writable _props = [ "name" ] ;
Object . keys ( $$props ) . forEach ( key => {
if ( ! ~ writable _props . indexOf ( key ) && key . slice ( 0 , 2 ) !== "$$" ) console . warn ( ` <Component> was created with unknown prop ' ${ key } ' ` ) ;
} ) ;
let { $$slots = { } , $$scope } = $$props ;
validate _slots ( "Component" , $$slots , [ ] ) ;
$$self . $set = $$props => {
if ( "name" in $$props ) $$invalidate ( 0 , name = $$props . name ) ;
} ;
$$self . $capture _state = ( ) => ( { name } ) ;
$$self . $inject _state = $$props => {
if ( "name" in $$props ) $$invalidate ( 0 , name = $$props . name ) ;
} ;
if ( $$props && "$$inject" in $$props ) {
$$self . $inject _state ( $$props . $$inject ) ;
}
return [ name ] ;
}
class Component extends SvelteComponentDev {
constructor ( options ) {
super ( options ) ;
init ( this , options , instance , create _fragment , safe _not _equal , { name : 0 } ) ;
dispatch _dev ( "SvelteRegisterComponent" , {
component : this ,
tagName : "Component" ,
options ,
id : create _fragment . name
} ) ;
const { ctx } = this . $$ ;
const props = options . props || { } ;
if ( /*name*/ ctx [ 0 ] === undefined && ! ( "name" in props ) ) {
console . warn ( "<Component> was created without expected prop 'name'" ) ;
}
}
get name ( ) {
throw new Error ( "<Component>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'" ) ;
}
set name ( value ) {
throw new Error ( "<Component>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'" ) ;
}
}
export default Component ;