This commit is contained in:
Aevann1 2021-09-17 13:49:42 +02:00
parent 8819759403
commit 9c51bf3dac

View file

@ -157,6 +157,12 @@
block.i(local);
}
}
const globals = (typeof window !== 'undefined'
? window
: typeof globalThis !== 'undefined'
? globalThis
: global);
function mount_component(component, target, anchor, customElement) {
const { fragment, on_mount, on_destroy, after_update } = component.$$;
fragment && fragment.m(target, anchor);
@ -356,6 +362,7 @@
/* src\App.svelte generated by Svelte v3.42.6 */
const { console: console_1 } = globals;
const file = "src\\App.svelte";
function get_each_context(ctx, list, i) {
@ -365,7 +372,7 @@
return child_ctx;
}
// (49:7) {#if award.owned < 1}
// (50:7) {#if award.owned < 1}
function create_if_block_2(ctx) {
let input;
let t0;
@ -404,20 +411,20 @@
attr_dev(input, "id", /*index*/ ctx[9]);
attr_dev(input, "class", "svelte-13ovg7j");
toggle_class(input, "disabled", /*award*/ ctx[7].owned < 1);
add_location(input, file, 49, 8, 1264);
add_location(input, file, 50, 8, 1286);
attr_dev(i, "class", "" + (/*award*/ ctx[7].icon + " " + /*award*/ ctx[7].color + " svelte-13ovg7j"));
add_location(i, file, 51, 9, 1442);
add_location(br, file, 51, 51, 1484);
add_location(i, file, 52, 9, 1464);
add_location(br, file, 52, 51, 1506);
attr_dev(span0, "class", "text-muted");
add_location(span0, file, 53, 9, 1602);
add_location(span0, file, 54, 9, 1624);
attr_dev(span1, "class", "d-block pt-2");
set_style(span1, "font-weight", "bold");
set_style(span1, "font-size", "14px");
add_location(span1, file, 52, 9, 1501);
add_location(span1, file, 53, 9, 1523);
attr_dev(label, "class", "card svelte-13ovg7j");
attr_dev(label, "for", /*index*/ ctx[9]);
toggle_class(label, "disabled", /*award*/ ctx[7].owned < 1);
add_location(label, file, 50, 8, 1362);
add_location(label, file, 51, 8, 1384);
},
m: function mount(target, anchor) {
insert_dev(target, input, anchor);
@ -458,14 +465,14 @@
block,
id: create_if_block_2.name,
type: "if",
source: "(49:7) {#if award.owned < 1}",
source: "(50:7) {#if award.owned < 1}",
ctx
});
return block;
}
// (48:6) {#each awards as award, index}
// (49:6) {#each awards as award, index}
function create_each_block(ctx) {
let if_block_anchor;
let if_block = /*award*/ ctx[7].owned < 1 && create_if_block_2(ctx);
@ -492,14 +499,14 @@
block,
id: create_each_block.name,
type: "each",
source: "(48:6) {#each awards as award, index}",
source: "(49:6) {#each awards as award, index}",
ctx
});
return block;
}
// (60:5) {#if picked != null}
// (61:5) {#if picked != null}
function create_if_block_1(ctx) {
let div2;
let div1;
@ -537,24 +544,24 @@
textarea = element("textarea");
set_style(i, "font-size", "35px");
attr_dev(i, "class", "" + (/*pickedAward*/ ctx[4].icon + " " + /*pickedAward*/ ctx[4].color + " svelte-13ovg7j"));
add_location(i, file, 62, 8, 1802);
add_location(strong, file, 64, 9, 1934);
add_location(br, file, 64, 51, 1976);
add_location(i, file, 63, 8, 1824);
add_location(strong, file, 65, 9, 1956);
add_location(br, file, 65, 51, 1998);
attr_dev(span, "class", "text-muted");
add_location(span, file, 65, 9, 1993);
add_location(span, file, 66, 9, 2015);
set_style(div0, "margin-left", "15px");
add_location(div0, file, 63, 8, 1891);
add_location(div0, file, 64, 8, 1913);
attr_dev(div1, "class", "award-desc p-3 svelte-13ovg7j");
add_location(div1, file, 61, 7, 1764);
add_location(div1, file, 62, 7, 1786);
attr_dev(label, "for", "note");
attr_dev(label, "class", "pt-4");
add_location(label, file, 68, 7, 2090);
add_location(label, file, 69, 7, 2112);
attr_dev(textarea, "id", "note");
attr_dev(textarea, "name", "note");
attr_dev(textarea, "class", "form-control");
attr_dev(textarea, "placeholder", "Note to include in award notification");
add_location(textarea, file, 69, 7, 2154);
add_location(div2, file, 60, 6, 1750);
add_location(textarea, file, 70, 7, 2176);
add_location(div2, file, 61, 6, 1772);
},
m: function mount(target, anchor) {
insert_dev(target, div2, anchor);
@ -593,14 +600,14 @@
block,
id: create_if_block_1.name,
type: "if",
source: "(60:5) {#if picked != null}",
source: "(61:5) {#if picked != null}",
ctx
});
return block;
}
// (82:3) {:else}
// (83:3) {:else}
function create_else_block(ctx) {
let button;
let mounted;
@ -614,7 +621,7 @@
attr_dev(button, "class", "btn btn-link");
attr_dev(button, "id", "awardButton");
toggle_class(button, "disabled", /*pickedAward*/ ctx[4] === null);
add_location(button, file, 82, 4, 2686);
add_location(button, file, 83, 4, 2708);
},
m: function mount(target, anchor) {
insert_dev(target, button, anchor);
@ -636,14 +643,14 @@
block,
id: create_else_block.name,
type: "else",
source: "(82:3) {:else}",
source: "(83:3) {:else}",
ctx
});
return block;
}
// (77:3) {#if pending}
// (78:3) {#if pending}
function create_if_block(ctx) {
let button;
let span;
@ -657,11 +664,11 @@
attr_dev(span, "class", "spinner-border spinner-border-sm");
attr_dev(span, "role", "status");
attr_dev(span, "aria-hidden", "true");
add_location(span, file, 78, 5, 2549);
add_location(span, file, 79, 5, 2571);
attr_dev(button, "class", "btn btn-warning");
attr_dev(button, "type", "button");
button.disabled = true;
add_location(button, file, 77, 4, 2487);
add_location(button, file, 78, 4, 2509);
},
m: function mount(target, anchor) {
insert_dev(target, button, anchor);
@ -678,7 +685,7 @@
block,
id: create_if_block.name,
type: "if",
source: "(77:3) {#if pending}",
source: "(78:3) {#if pending}",
ctx
});
@ -758,40 +765,40 @@
attr_dev(input, "type", "hidden");
attr_dev(input, "id", "awardTarget");
input.value = "";
add_location(input, file, 35, 0, 637);
add_location(input, file, 36, 0, 659);
attr_dev(h5, "class", "modal-title");
add_location(h5, file, 39, 4, 845);
add_location(h5, file, 40, 4, 867);
attr_dev(i, "class", "far fa-times");
add_location(i, file, 41, 30, 998);
add_location(i, file, 42, 30, 1020);
attr_dev(span, "aria-hidden", "true");
add_location(span, file, 41, 5, 973);
add_location(span, file, 42, 5, 995);
attr_dev(button0, "type", "button");
attr_dev(button0, "class", "close");
attr_dev(button0, "data-dismiss", "modal");
attr_dev(button0, "aria-label", "Close");
add_location(button0, file, 40, 4, 890);
add_location(button0, file, 41, 4, 912);
attr_dev(div0, "class", "modal-header");
add_location(div0, file, 38, 3, 813);
add_location(div0, file, 39, 3, 835);
attr_dev(div1, "class", "card-columns awards-wrapper svelte-13ovg7j");
add_location(div1, file, 46, 5, 1145);
add_location(div1, file, 47, 5, 1167);
attr_dev(form, "class", "pt-3 pb-0");
add_location(form, file, 45, 4, 1114);
add_location(form, file, 46, 4, 1136);
attr_dev(div2, "id", "awardModalBody");
attr_dev(div2, "class", "modal-body");
add_location(div2, file, 44, 3, 1064);
add_location(div2, file, 45, 3, 1086);
attr_dev(button1, "type", "button");
attr_dev(button1, "class", "btn btn-link text-muted");
attr_dev(button1, "data-dismiss", "modal");
add_location(button1, file, 75, 3, 2373);
add_location(button1, file, 76, 3, 2395);
attr_dev(div3, "class", "modal-footer");
add_location(div3, file, 74, 2, 2342);
add_location(div3, file, 75, 2, 2364);
attr_dev(div4, "class", "modal-content");
add_location(div4, file, 37, 2, 781);
add_location(div4, file, 38, 2, 803);
attr_dev(div5, "class", "modal-dialog modal-dialog-scrollable modal-dialog-centered");
attr_dev(div5, "role", "document");
add_location(div5, file, 36, 1, 689);
add_location(div5, file, 37, 1, 711);
attr_dev(div6, "id", "svelte-app2");
add_location(div6, file, 34, 0, 613);
add_location(div6, file, 35, 0, 635);
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@ -904,6 +911,7 @@
let note = "";
let picked = null;
const awards = document.getElementById("awards").value;
console.log(awards);
function pickedAward() {
if (picked !== null) {
@ -916,7 +924,7 @@
const writable_props = [];
Object.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<App> was created with unknown prop '${key}'`);
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1.warn(`<App> was created with unknown prop '${key}'`);
});
function input_change_handler() {