2017-09-17 19:01:47 +02:00
|
|
|
/* generated by Svelte vX.Y.Z */
|
2017-08-05 20:44:24 +02:00
|
|
|
|
2017-09-16 21:09:38 +02:00
|
|
|
import { assign, init, noop, proto } from "svelte/shared.js";
|
2017-08-05 20:44:24 +02:00
|
|
|
|
2017-09-03 17:52:00 +02:00
|
|
|
var template = (function() {
|
2017-08-05 20:44:24 +02:00
|
|
|
return {
|
|
|
|
methods: {
|
|
|
|
foo ( bar ) {
|
|
|
|
console.log( bar );
|
|
|
|
}
|
|
|
|
},
|
2017-08-05 21:41:37 +02:00
|
|
|
setup: (Component) => {
|
|
|
|
Component.SOME_CONSTANT = 42;
|
|
|
|
Component.factory = function (target) {
|
|
|
|
return new Component({
|
|
|
|
target: target
|
|
|
|
});
|
|
|
|
}
|
|
|
|
Component.prototype.foo( 'baz' );
|
2017-08-05 20:44:24 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}());
|
|
|
|
|
2017-09-03 17:52:00 +02:00
|
|
|
function create_main_fragment(state, component) {
|
2017-08-05 20:44:24 +02:00
|
|
|
|
|
|
|
return {
|
2017-09-19 04:00:28 +02:00
|
|
|
c: noop,
|
2017-08-05 20:44:24 +02:00
|
|
|
|
2017-09-19 04:00:28 +02:00
|
|
|
m: noop,
|
2017-08-05 20:44:24 +02:00
|
|
|
|
2017-09-19 04:00:28 +02:00
|
|
|
p: noop,
|
2017-08-14 04:36:39 +02:00
|
|
|
|
2017-09-19 04:00:28 +02:00
|
|
|
u: noop,
|
2017-08-05 20:44:24 +02:00
|
|
|
|
2017-09-19 04:00:28 +02:00
|
|
|
d: noop
|
2017-08-05 20:44:24 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-09-03 17:52:00 +02:00
|
|
|
function SvelteComponent(options) {
|
2017-09-16 21:09:38 +02:00
|
|
|
init(this, options);
|
2017-08-05 20:44:24 +02:00
|
|
|
this._state = options.data || {};
|
|
|
|
|
2017-09-03 17:52:00 +02:00
|
|
|
this._fragment = create_main_fragment(this._state, this);
|
2017-08-05 20:44:24 +02:00
|
|
|
|
2017-09-03 17:52:00 +02:00
|
|
|
if (options.target) {
|
2017-09-19 04:00:28 +02:00
|
|
|
this._fragment.c();
|
|
|
|
this._fragment.m(options.target, options.anchor || null);
|
2017-08-05 20:44:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-16 17:08:41 +02:00
|
|
|
assign(SvelteComponent.prototype, template.methods, proto);
|
2017-08-05 20:44:24 +02:00
|
|
|
|
2017-09-03 17:52:00 +02:00
|
|
|
template.setup(SvelteComponent);
|
2017-08-05 20:44:24 +02:00
|
|
|
|
2017-08-06 04:16:47 +02:00
|
|
|
export default SvelteComponent;
|