site-libsoc/Server/public/js/components/landing-component.js

81 lines
2.0 KiB
JavaScript
Raw Normal View History

2023-06-15 01:41:54 +07:00
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
2023-06-24 04:39:41 +07:00
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, d as dispatch_dev, v as validate_slots, o as onMount, n as noop } from './index-bc9d3868.js';
2023-06-15 01:41:54 +07:00
/* src\landing-component.svelte generated by Svelte v3.52.0 */
function create_fragment(ctx) {
const block = {
c: function create() {
this.c = noop;
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
2023-06-24 04:39:41 +07:00
m: noop,
2023-06-15 01:41:54 +07:00
p: noop,
i: noop,
o: noop,
2023-06-24 04:39:41 +07:00
d: noop
2023-06-15 01:41:54 +07:00
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment.name,
type: "component",
source: "",
ctx
});
return block;
}
2023-06-24 04:39:41 +07:00
function instance($$self, $$props, $$invalidate) {
2023-06-15 01:41:54 +07:00
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('landing-component', slots, []);
onMount(() => {
});
const writable_props = [];
Object.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<landing-component> was created with unknown prop '${key}'`);
});
2023-06-24 04:39:41 +07:00
$$self.$capture_state = () => ({ onMount });
2023-06-15 01:41:54 +07:00
return [];
}
class Landing_component extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';</style>`;
init(
this,
{
target: this.shadowRoot,
props: attribute_to_object(this.attributes),
customElement: true
},
instance,
create_fragment,
safe_not_equal,
{},
null
);
if (options) {
if (options.target) {
insert_dev(options.target, this, options.anchor);
}
}
}
}
customElements.define("landing-component", Landing_component);
export { Landing_component as default };