2017-11-16 10:39:58 +01:00
|
|
|
/* generated by Svelte vX.Y.Z */
|
|
|
|
import { assign, createElement, createText, detachNode, init, insertNode, noop, proto, setAttribute } from "svelte/shared.js";
|
|
|
|
|
2018-04-28 19:41:30 +02:00
|
|
|
function create_main_fragment(component, ctx) {
|
2017-11-16 10:39:58 +01:00
|
|
|
var div, text, div_1;
|
|
|
|
|
|
|
|
return {
|
2018-04-30 02:07:24 +02:00
|
|
|
c() {
|
2017-11-16 10:39:58 +01:00
|
|
|
div = createElement("div");
|
|
|
|
text = createText("\n");
|
|
|
|
div_1 = createElement("div");
|
|
|
|
setAttribute(div, "data-foo", "bar");
|
2018-04-28 19:41:30 +02:00
|
|
|
setAttribute(div_1, "data-foo", ctx.bar);
|
2017-11-16 10:39:58 +01:00
|
|
|
},
|
|
|
|
|
2018-04-30 02:07:24 +02:00
|
|
|
m(target, anchor) {
|
2017-11-16 10:39:58 +01:00
|
|
|
insertNode(div, target, anchor);
|
|
|
|
insertNode(text, target, anchor);
|
|
|
|
insertNode(div_1, target, anchor);
|
|
|
|
},
|
|
|
|
|
2018-04-30 02:07:24 +02:00
|
|
|
p(changed, ctx) {
|
2017-11-16 10:39:58 +01:00
|
|
|
if (changed.bar) {
|
2018-04-28 19:41:30 +02:00
|
|
|
setAttribute(div_1, "data-foo", ctx.bar);
|
2017-11-16 10:39:58 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-04-30 02:07:24 +02:00
|
|
|
u() {
|
2017-11-16 10:39:58 +01:00
|
|
|
detachNode(div);
|
|
|
|
detachNode(text);
|
|
|
|
detachNode(div_1);
|
|
|
|
},
|
|
|
|
|
|
|
|
d: noop
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
function SvelteComponent(options) {
|
|
|
|
init(this, options);
|
|
|
|
this._state = assign({}, options.data);
|
|
|
|
|
2018-02-11 14:24:55 +01:00
|
|
|
this._fragment = create_main_fragment(this, this._state);
|
2017-11-16 10:39:58 +01:00
|
|
|
|
|
|
|
if (options.target) {
|
|
|
|
this._fragment.c();
|
2018-03-06 19:49:49 +01:00
|
|
|
this._mount(options.target, options.anchor);
|
2017-11-16 10:39:58 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
assign(SvelteComponent.prototype, proto);
|
2017-11-18 19:45:10 +01:00
|
|
|
export default SvelteComponent;
|