|
|
|
@ -2,15 +2,16 @@
|
|
|
|
|
import {
|
|
|
|
|
SvelteComponentDev,
|
|
|
|
|
add_location,
|
|
|
|
|
append,
|
|
|
|
|
append_dev,
|
|
|
|
|
destroy_each,
|
|
|
|
|
detach,
|
|
|
|
|
detach_dev,
|
|
|
|
|
dispatch_dev,
|
|
|
|
|
element,
|
|
|
|
|
init,
|
|
|
|
|
insert,
|
|
|
|
|
insert_dev,
|
|
|
|
|
noop,
|
|
|
|
|
safe_not_equal,
|
|
|
|
|
set_data,
|
|
|
|
|
set_data_dev,
|
|
|
|
|
space,
|
|
|
|
|
text
|
|
|
|
|
} from "svelte/internal";
|
|
|
|
@ -27,7 +28,7 @@ function get_each_context(ctx, list, i) {
|
|
|
|
|
function create_each_block(ctx) {
|
|
|
|
|
var span, t0_value = ctx.thing.name, t0, t1;
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
const block = {
|
|
|
|
|
c: function create() {
|
|
|
|
|
span = element("span");
|
|
|
|
|
t0 = text(t0_value);
|
|
|
|
@ -42,14 +43,14 @@ function create_each_block(ctx) {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
m: function mount(target, anchor) {
|
|
|
|
|
insert(target, span, anchor);
|
|
|
|
|
append(span, t0);
|
|
|
|
|
insert(target, t1, anchor);
|
|
|
|
|
insert_dev(target, span, anchor);
|
|
|
|
|
append_dev(span, t0);
|
|
|
|
|
insert_dev(target, t1, anchor);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
p: function update(changed, ctx) {
|
|
|
|
|
if ((changed.things) && t0_value !== (t0_value = ctx.thing.name)) {
|
|
|
|
|
set_data(t0, t0_value);
|
|
|
|
|
set_data_dev(t0, t0_value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (changed.foo || changed.bar || changed.baz || changed.things) {
|
|
|
|
@ -61,11 +62,13 @@ function create_each_block(ctx) {
|
|
|
|
|
|
|
|
|
|
d: function destroy(detaching) {
|
|
|
|
|
if (detaching) {
|
|
|
|
|
detach(span);
|
|
|
|
|
detach(t1);
|
|
|
|
|
detach_dev(span);
|
|
|
|
|
detach_dev(t1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_each_block.name, type: "each", source: "(8:0) {#each things as thing}", ctx });
|
|
|
|
|
return block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function create_fragment(ctx) {
|
|
|
|
@ -79,7 +82,7 @@ function create_fragment(ctx) {
|
|
|
|
|
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
const block = {
|
|
|
|
|
c: function create() {
|
|
|
|
|
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
|
|
|
each_blocks[i].c();
|
|
|
|
@ -101,10 +104,10 @@ function create_fragment(ctx) {
|
|
|
|
|
each_blocks[i].m(target, anchor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
insert(target, t0, anchor);
|
|
|
|
|
insert(target, p, anchor);
|
|
|
|
|
append(p, t1);
|
|
|
|
|
append(p, t2);
|
|
|
|
|
insert_dev(target, t0, anchor);
|
|
|
|
|
insert_dev(target, p, anchor);
|
|
|
|
|
append_dev(p, t1);
|
|
|
|
|
append_dev(p, t2);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
p: function update(changed, ctx) {
|
|
|
|
@ -130,7 +133,7 @@ function create_fragment(ctx) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (changed.foo) {
|
|
|
|
|
set_data(t2, ctx.foo);
|
|
|
|
|
set_data_dev(t2, ctx.foo);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -141,11 +144,13 @@ function create_fragment(ctx) {
|
|
|
|
|
destroy_each(each_blocks, detaching);
|
|
|
|
|
|
|
|
|
|
if (detaching) {
|
|
|
|
|
detach(t0);
|
|
|
|
|
detach(p);
|
|
|
|
|
detach_dev(t0);
|
|
|
|
|
detach_dev(p);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_fragment.name, type: "component", source: "", ctx });
|
|
|
|
|
return block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function instance($$self, $$props, $$invalidate) {
|
|
|
|
@ -163,6 +168,13 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
|
|
if ('baz' in $$props) $$invalidate('baz', baz = $$props.baz);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$$self.$unsafe_set = $$values => {
|
|
|
|
|
if ('things' in $$values) $$invalidate('things', things = $$values.things);
|
|
|
|
|
if ('foo' in $$values) $$invalidate('foo', foo = $$values.foo);
|
|
|
|
|
if ('bar' in $$values) $$invalidate('bar', bar = $$values.bar);
|
|
|
|
|
if ('baz' in $$values) $$invalidate('baz', baz = $$values.baz);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return { things, foo, bar, baz };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -170,6 +182,7 @@ class Component extends SvelteComponentDev {
|
|
|
|
|
constructor(options) {
|
|
|
|
|
super(options);
|
|
|
|
|
init(this, options, instance, create_fragment, safe_not_equal, ["things", "foo", "bar", "baz"]);
|
|
|
|
|
dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "Component", id: create_fragment.name });
|
|
|
|
|
|
|
|
|
|
const { ctx } = this.$$;
|
|
|
|
|
const props = options.props || {};
|
|
|
|
@ -220,4 +233,4 @@ class Component extends SvelteComponentDev {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Component;
|
|
|
|
|
export default Component;
|
|
|
|
|