|
|
|
@ -66381,105 +66381,11 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* src\Settings.svelte generated by Svelte v3.12.1 */ |
|
|
|
|
|
|
|
const file$N = "src\\Settings.svelte"; |
|
|
|
|
|
|
|
function create_fragment$M(ctx) { |
|
|
|
var div1, div0, h1, t1, label, input, t2, dispose; |
|
|
|
|
|
|
|
const block = { |
|
|
|
c: function create() { |
|
|
|
div1 = element("div"); |
|
|
|
div0 = element("div"); |
|
|
|
h1 = element("h1"); |
|
|
|
h1.textContent = "Settings"; |
|
|
|
t1 = space(); |
|
|
|
label = element("label"); |
|
|
|
input = element("input"); |
|
|
|
t2 = text("\n Send analytics"); |
|
|
|
add_location(h1, file$N, 12, 8, 298); |
|
|
|
attr_dev(input, "type", "checkbox"); |
|
|
|
attr_dev(input, "class", "uk-checkbox"); |
|
|
|
add_location(input, file$N, 15, 12, 345); |
|
|
|
add_location(label, file$N, 14, 8, 325); |
|
|
|
attr_dev(div0, "class", "content uk-container"); |
|
|
|
add_location(div0, file$N, 10, 4, 254); |
|
|
|
attr_dev(div1, "class", "root"); |
|
|
|
add_location(div1, file$N, 9, 0, 231); |
|
|
|
dispose = listen_dev(input, "change", ctx.input_change_handler); |
|
|
|
}, |
|
|
|
|
|
|
|
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, div1, anchor); |
|
|
|
append_dev(div1, div0); |
|
|
|
append_dev(div0, h1); |
|
|
|
append_dev(div0, t1); |
|
|
|
append_dev(div0, label); |
|
|
|
append_dev(label, input); |
|
|
|
|
|
|
|
input.checked = ctx.$store.useAnalytics; |
|
|
|
|
|
|
|
append_dev(label, t2); |
|
|
|
}, |
|
|
|
|
|
|
|
p: function update(changed, ctx) { |
|
|
|
if (changed.$store) input.checked = ctx.$store.useAnalytics; |
|
|
|
}, |
|
|
|
|
|
|
|
i: noop, |
|
|
|
o: noop, |
|
|
|
|
|
|
|
d: function destroy(detaching) { |
|
|
|
if (detaching) { |
|
|
|
detach_dev(div1); |
|
|
|
} |
|
|
|
|
|
|
|
dispose(); |
|
|
|
} |
|
|
|
}; |
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_fragment$M.name, type: "component", source: "", ctx }); |
|
|
|
return block; |
|
|
|
} |
|
|
|
|
|
|
|
function instance$M($$self, $$props, $$invalidate) { |
|
|
|
let $store; |
|
|
|
|
|
|
|
validate_store(store, 'store'); |
|
|
|
component_subscribe($$self, store, $$value => { $store = $$value; $$invalidate('$store', $store); }); |
|
|
|
|
|
|
|
function input_change_handler() { |
|
|
|
store.update($$value => ($$value.useAnalytics = this.checked, $$value)); |
|
|
|
} |
|
|
|
|
|
|
|
$$self.$capture_state = () => { |
|
|
|
return {}; |
|
|
|
}; |
|
|
|
|
|
|
|
$$self.$inject_state = $$props => { |
|
|
|
if ('$store' in $$props) store.set($store); |
|
|
|
}; |
|
|
|
|
|
|
|
return { $store, input_change_handler }; |
|
|
|
} |
|
|
|
|
|
|
|
class Settings extends SvelteComponentDev { |
|
|
|
constructor(options) { |
|
|
|
super(options); |
|
|
|
init(this, options, instance$M, create_fragment$M, safe_not_equal, []); |
|
|
|
dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "Settings", options, id: create_fragment$M.name }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* src\App.svelte generated by Svelte v3.12.1 */ |
|
|
|
|
|
|
|
const file$O = "src\\App.svelte"; |
|
|
|
const file$N = "src\\App.svelte"; |
|
|
|
|
|
|
|
// (33:1) {:catch err}
|
|
|
|
// (31:1) {:catch err}
|
|
|
|
function create_catch_block(ctx) { |
|
|
|
var h1, t_value = ctx.err + "", t; |
|
|
|
|
|
|
|
@ -66488,7 +66394,7 @@ |
|
|
|
h1 = element("h1"); |
|
|
|
t = text(t_value); |
|
|
|
set_style(h1, "color", "red"); |
|
|
|
add_location(h1, file$O, 33, 2, 555); |
|
|
|
add_location(h1, file$N, 31, 2, 490); |
|
|
|
}, |
|
|
|
|
|
|
|
m: function mount(target, anchor) { |
|
|
|
@ -66506,7 +66412,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_catch_block.name, type: "catch", source: "(33:1) {:catch err}", ctx }); |
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_catch_block.name, type: "catch", source: "(31:1) {:catch err}", ctx }); |
|
|
|
return block; |
|
|
|
} |
|
|
|
|
|
|
|
@ -66515,17 +66421,15 @@ |
|
|
|
var current_block_type_index, if_block, if_block_anchor, current; |
|
|
|
|
|
|
|
var if_block_creators = [ |
|
|
|
create_if_block_1$f, |
|
|
|
create_if_block_2$9, |
|
|
|
create_if_block$m, |
|
|
|
create_else_block$d |
|
|
|
]; |
|
|
|
|
|
|
|
var if_blocks = []; |
|
|
|
|
|
|
|
function select_block_type(changed, ctx) { |
|
|
|
if (ctx.$store.showSettings) return 0; |
|
|
|
if (ctx.$store.hasAppPackage) return 1; |
|
|
|
return 2; |
|
|
|
if (ctx.$store.hasAppPackage) return 0; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
current_block_type_index = select_block_type(null, ctx); |
|
|
|
@ -66586,7 +66490,7 @@ |
|
|
|
return block; |
|
|
|
} |
|
|
|
|
|
|
|
// (27:3) {:else}
|
|
|
|
// (25:2) {:else}
|
|
|
|
function create_else_block$d(ctx) { |
|
|
|
var current; |
|
|
|
|
|
|
|
@ -66618,12 +66522,12 @@ |
|
|
|
destroy_component(nopackage, detaching); |
|
|
|
} |
|
|
|
}; |
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_else_block$d.name, type: "else", source: "(27:3) {:else}", ctx }); |
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_else_block$d.name, type: "else", source: "(25:2) {:else}", ctx }); |
|
|
|
return block; |
|
|
|
} |
|
|
|
|
|
|
|
// (24:3) {#if $store.hasAppPackage}
|
|
|
|
function create_if_block_2$9(ctx) { |
|
|
|
// (22:2) {#if $store.hasAppPackage}
|
|
|
|
function create_if_block$m(ctx) { |
|
|
|
var current; |
|
|
|
|
|
|
|
var packageroot = new PackageRoot({ $$inline: true }); |
|
|
|
@ -66654,43 +66558,7 @@ |
|
|
|
destroy_component(packageroot, detaching); |
|
|
|
} |
|
|
|
}; |
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_if_block_2$9.name, type: "if", source: "(24:3) {#if $store.hasAppPackage}", ctx }); |
|
|
|
return block; |
|
|
|
} |
|
|
|
|
|
|
|
// (21:2) {#if $store.showSettings}
|
|
|
|
function create_if_block_1$f(ctx) { |
|
|
|
var current; |
|
|
|
|
|
|
|
var settings = new Settings({ $$inline: true }); |
|
|
|
|
|
|
|
const block = { |
|
|
|
c: function create() { |
|
|
|
settings.$$.fragment.c(); |
|
|
|
}, |
|
|
|
|
|
|
|
m: function mount(target, anchor) { |
|
|
|
mount_component(settings, target, anchor); |
|
|
|
current = true; |
|
|
|
}, |
|
|
|
|
|
|
|
i: function intro(local) { |
|
|
|
if (current) return; |
|
|
|
transition_in(settings.$$.fragment, local); |
|
|
|
|
|
|
|
current = true; |
|
|
|
}, |
|
|
|
|
|
|
|
o: function outro(local) { |
|
|
|
transition_out(settings.$$.fragment, local); |
|
|
|
current = false; |
|
|
|
}, |
|
|
|
|
|
|
|
d: function destroy(detaching) { |
|
|
|
destroy_component(settings, detaching); |
|
|
|
} |
|
|
|
}; |
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_if_block_1$f.name, type: "if", source: "(21:2) {#if $store.showSettings}", ctx }); |
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_if_block$m.name, type: "if", source: "(22:2) {#if $store.hasAppPackage}", ctx }); |
|
|
|
return block; |
|
|
|
} |
|
|
|
|
|
|
|
@ -66702,7 +66570,7 @@ |
|
|
|
c: function create() { |
|
|
|
h1 = element("h1"); |
|
|
|
h1.textContent = "loading"; |
|
|
|
add_location(h1, file$O, 17, 2, 354); |
|
|
|
add_location(h1, file$N, 17, 2, 354); |
|
|
|
}, |
|
|
|
|
|
|
|
m: function mount(target, anchor) { |
|
|
|
@ -66723,37 +66591,8 @@ |
|
|
|
return block; |
|
|
|
} |
|
|
|
|
|
|
|
// (42:1) {#if $store.useAnalytics}
|
|
|
|
function create_if_block$m(ctx) { |
|
|
|
var iframe; |
|
|
|
|
|
|
|
const block = { |
|
|
|
c: function create() { |
|
|
|
iframe = element("iframe"); |
|
|
|
attr_dev(iframe, "src", "https://marblekirby.github.io/bb-analytics.html"); |
|
|
|
attr_dev(iframe, "width", "0"); |
|
|
|
attr_dev(iframe, "height", "0"); |
|
|
|
set_style(iframe, "visibility", "hidden"); |
|
|
|
set_style(iframe, "display", "none"); |
|
|
|
add_location(iframe, file$O, 42, 2, 739); |
|
|
|
}, |
|
|
|
|
|
|
|
m: function mount(target, anchor) { |
|
|
|
insert_dev(target, iframe, anchor); |
|
|
|
}, |
|
|
|
|
|
|
|
d: function destroy(detaching) { |
|
|
|
if (detaching) { |
|
|
|
detach_dev(iframe); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_if_block$m.name, type: "if", source: "(42:1) {#if $store.useAnalytics}", ctx }); |
|
|
|
return block; |
|
|
|
} |
|
|
|
|
|
|
|
function create_fragment$N(ctx) { |
|
|
|
var main, promise, t0, div, t1, current; |
|
|
|
function create_fragment$M(ctx) { |
|
|
|
var main, promise, current; |
|
|
|
|
|
|
|
let info = { |
|
|
|
ctx, |
|
|
|
@ -66769,29 +66608,13 @@ |
|
|
|
|
|
|
|
handle_promise(promise = ctx.init, info); |
|
|
|
|
|
|
|
var iconbutton = new IconButton({ |
|
|
|
props: { icon: "settings" }, |
|
|
|
$$inline: true |
|
|
|
}); |
|
|
|
iconbutton.$on("click", store.showSettings); |
|
|
|
|
|
|
|
var if_block = (ctx.$store.useAnalytics) && create_if_block$m(ctx); |
|
|
|
|
|
|
|
const block = { |
|
|
|
c: function create() { |
|
|
|
main = element("main"); |
|
|
|
|
|
|
|
info.block.c(); |
|
|
|
|
|
|
|
t0 = space(); |
|
|
|
div = element("div"); |
|
|
|
iconbutton.$$.fragment.c(); |
|
|
|
t1 = space(); |
|
|
|
if (if_block) if_block.c(); |
|
|
|
attr_dev(div, "class", "settings svelte-15fmzor"); |
|
|
|
add_location(div, file$O, 36, 1, 600); |
|
|
|
attr_dev(main, "class", "svelte-15fmzor"); |
|
|
|
add_location(main, file$O, 13, 0, 327); |
|
|
|
add_location(main, file$N, 13, 0, 327); |
|
|
|
}, |
|
|
|
|
|
|
|
l: function claim(nodes) { |
|
|
|
@ -66803,38 +66626,19 @@ |
|
|
|
|
|
|
|
info.block.m(main, info.anchor = null); |
|
|
|
info.mount = () => main; |
|
|
|
info.anchor = t0; |
|
|
|
info.anchor = null; |
|
|
|
|
|
|
|
append_dev(main, t0); |
|
|
|
append_dev(main, div); |
|
|
|
mount_component(iconbutton, div, null); |
|
|
|
append_dev(main, t1); |
|
|
|
if (if_block) if_block.m(main, null); |
|
|
|
current = true; |
|
|
|
}, |
|
|
|
|
|
|
|
p: function update(changed, new_ctx) { |
|
|
|
ctx = new_ctx; |
|
|
|
info.block.p(changed, assign(assign({}, ctx), info.resolved)); |
|
|
|
|
|
|
|
if (ctx.$store.useAnalytics) { |
|
|
|
if (!if_block) { |
|
|
|
if_block = create_if_block$m(ctx); |
|
|
|
if_block.c(); |
|
|
|
if_block.m(main, null); |
|
|
|
} |
|
|
|
} else if (if_block) { |
|
|
|
if_block.d(1); |
|
|
|
if_block = null; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
i: function intro(local) { |
|
|
|
if (current) return; |
|
|
|
transition_in(info.block); |
|
|
|
|
|
|
|
transition_in(iconbutton.$$.fragment, local); |
|
|
|
|
|
|
|
current = true; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -66844,7 +66648,6 @@ |
|
|
|
transition_out(block); |
|
|
|
} |
|
|
|
|
|
|
|
transition_out(iconbutton.$$.fragment, local); |
|
|
|
current = false; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -66856,17 +66659,13 @@ |
|
|
|
info.block.d(); |
|
|
|
info.token = null; |
|
|
|
info = null; |
|
|
|
|
|
|
|
destroy_component(iconbutton); |
|
|
|
|
|
|
|
if (if_block) if_block.d(); |
|
|
|
} |
|
|
|
}; |
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_fragment$N.name, type: "component", source: "", ctx }); |
|
|
|
dispatch_dev("SvelteRegisterBlock", { block, id: create_fragment$M.name, type: "component", source: "", ctx }); |
|
|
|
return block; |
|
|
|
} |
|
|
|
|
|
|
|
function instance$N($$self, $$props, $$invalidate) { |
|
|
|
function instance$M($$self, $$props, $$invalidate) { |
|
|
|
let $store; |
|
|
|
|
|
|
|
validate_store(store, 'store'); |
|
|
|
@ -66891,8 +66690,8 @@ |
|
|
|
class App extends SvelteComponentDev { |
|
|
|
constructor(options) { |
|
|
|
super(options); |
|
|
|
init(this, options, instance$N, create_fragment$N, safe_not_equal, []); |
|
|
|
dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "App", options, id: create_fragment$N.name }); |
|
|
|
init(this, options, instance$M, create_fragment$M, safe_not_equal, []); |
|
|
|
dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "App", options, id: create_fragment$M.name }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|