retrieve chat layout test

This commit is contained in:
simplonco
2023-01-03 20:06:41 +01:00
parent 30f4a68031
commit 61bd289981
4 changed files with 460 additions and 87 deletions

View File

@@ -1417,7 +1417,7 @@ var app = (function () {
return block;
}
function create_fragment$y(ctx) {
function create_fragment$z(ctx) {
let current_block_type_index;
let if_block;
let if_block_anchor;
@@ -1490,7 +1490,7 @@ var app = (function () {
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment$y.name,
id: create_fragment$z.name,
type: "component",
source: "",
ctx
@@ -1691,7 +1691,7 @@ var app = (function () {
window.location.hash = href;
}
function instance$y($$self, $$props, $$invalidate) {
function instance$z($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('Router', slots, []);
let { routes = {} } = $$props;
@@ -2106,7 +2106,7 @@ var app = (function () {
constructor(options) {
super(options);
init$2(this, options, instance$y, create_fragment$y, safe_not_equal, {
init$2(this, options, instance$z, create_fragment$z, safe_not_equal, {
routes: 3,
prefix: 4,
restoreScrollState: 5
@@ -2116,7 +2116,7 @@ var app = (function () {
component: this,
tagName: "Router",
options,
id: create_fragment$y.name
id: create_fragment$z.name
});
}
@@ -2146,9 +2146,9 @@ var app = (function () {
}
/* src/pages/NotFound.svelte generated by Svelte v3.53.1 */
const file$u = "src/pages/NotFound.svelte";
const file$v = "src/pages/NotFound.svelte";
function create_fragment$x(ctx) {
function create_fragment$y(ctx) {
let h1;
let t1;
let p0;
@@ -2174,12 +2174,12 @@ var app = (function () {
a = element("a");
h2 = element("h2");
h2.textContent = "Take me home →";
add_location(h1, file$u, 4, 0, 64);
add_location(p0, file$u, 5, 0, 87);
add_location(p1, file$u, 7, 0, 192);
add_location(h2, file$u, 9, 4, 247);
add_location(h1, file$v, 4, 0, 64);
add_location(p0, file$v, 5, 0, 87);
add_location(p1, file$v, 7, 0, 192);
add_location(h2, file$v, 9, 4, 247);
attr_dev(a, "href", "/");
add_location(a, file$u, 8, 0, 221);
add_location(a, file$v, 8, 0, 221);
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -2217,7 +2217,7 @@ var app = (function () {
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment$x.name,
id: create_fragment$y.name,
type: "component",
source: "",
ctx
@@ -2226,7 +2226,7 @@ var app = (function () {
return block;
}
function instance$x($$self, $$props, $$invalidate) {
function instance$y($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('NotFound', slots, []);
const writable_props = [];
@@ -2242,13 +2242,13 @@ var app = (function () {
class NotFound extends SvelteComponentDev {
constructor(options) {
super(options);
init$2(this, options, instance$x, create_fragment$x, safe_not_equal, {});
init$2(this, options, instance$y, create_fragment$y, safe_not_equal, {});
dispatch_dev("SvelteRegisterComponent", {
component: this,
tagName: "NotFound",
options,
id: create_fragment$x.name
id: create_fragment$y.name
});
}
}
@@ -2293,7 +2293,7 @@ var app = (function () {
/* src/pieces/Header.svelte generated by Svelte v3.53.1 */
const { console: console_1$8 } = globals;
const file$t = "src/pieces/Header.svelte";
const file$u = "src/pieces/Header.svelte";
// (27:39)
function create_if_block_1$5(ctx) {
@@ -2306,7 +2306,7 @@ var app = (function () {
button = element("button");
button.textContent = "Settings";
attr_dev(button, "class", "svelte-1aisfio");
add_location(button, file$t, 27, 6, 1147);
add_location(button, file$u, 27, 6, 1147);
},
m: function mount(target, anchor) {
insert_dev(target, button, anchor);
@@ -2346,7 +2346,7 @@ var app = (function () {
button = element("button");
button.textContent = "My Profile";
attr_dev(button, "class", "svelte-1aisfio");
add_location(button, file$t, 25, 6, 1037);
add_location(button, file$u, 25, 6, 1037);
},
m: function mount(target, anchor) {
insert_dev(target, button, anchor);
@@ -2375,7 +2375,7 @@ var app = (function () {
return block;
}
function create_fragment$w(ctx) {
function create_fragment$x(ctx) {
let header;
let img;
let img_src_value;
@@ -2437,25 +2437,25 @@ var app = (function () {
if (!src_url_equal(img.src, img_src_value = "/img/potato_logo.png")) attr_dev(img, "src", img_src_value);
attr_dev(img, "alt", "Potato Pong Logo");
attr_dev(img, "class", "svelte-1aisfio");
add_location(img, file$t, 18, 2, 697);
add_location(img, file$u, 18, 2, 697);
attr_dev(h1, "class", "svelte-1aisfio");
add_location(h1, file$t, 19, 2, 784);
add_location(h1, file$u, 19, 2, 784);
attr_dev(button0, "class", "svelte-1aisfio");
add_location(button0, file$t, 21, 1, 814);
add_location(button0, file$u, 21, 1, 814);
attr_dev(button1, "class", "svelte-1aisfio");
add_location(button1, file$t, 22, 1, 870);
add_location(button1, file$u, 22, 1, 870);
attr_dev(button2, "class", "svelte-1aisfio");
add_location(button2, file$t, 23, 1, 935);
add_location(button2, file$u, 23, 1, 935);
attr_dev(button3, "class", "svelte-1aisfio");
add_location(button3, file$t, 34, 4, 1391);
add_location(button3, file$u, 34, 4, 1391);
attr_dev(button4, "class", "svelte-1aisfio");
add_location(button4, file$t, 35, 4, 1464);
add_location(button4, file$u, 35, 4, 1464);
attr_dev(button5, "class", "svelte-1aisfio");
add_location(button5, file$t, 36, 4, 1523);
add_location(button5, file$u, 36, 4, 1523);
attr_dev(nav, "class", "svelte-1aisfio");
add_location(nav, file$t, 20, 2, 807);
add_location(nav, file$u, 20, 2, 807);
attr_dev(header, "class", "svelte-1aisfio");
add_location(header, file$t, 17, 0, 686);
add_location(header, file$u, 17, 0, 686);
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -2524,7 +2524,7 @@ var app = (function () {
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment$w.name,
id: create_fragment$x.name,
type: "component",
source: "",
ctx
@@ -2533,7 +2533,7 @@ var app = (function () {
return block;
}
function instance$w($$self, $$props, $$invalidate) {
function instance$x($$self, $$props, $$invalidate) {
let $location;
validate_store(location$2, 'location');
component_subscribe($$self, location$2, $$value => $$invalidate(0, $location = $$value));
@@ -2595,19 +2595,19 @@ var app = (function () {
class Header extends SvelteComponentDev {
constructor(options) {
super(options);
init$2(this, options, instance$w, create_fragment$w, safe_not_equal, {});
init$2(this, options, instance$x, create_fragment$x, safe_not_equal, {});
dispatch_dev("SvelteRegisterComponent", {
component: this,
tagName: "Header",
options,
id: create_fragment$w.name
id: create_fragment$x.name
});
}
}
/* src/pieces/GenerateUserDisplay.svelte generated by Svelte v3.53.1 */
const file$s = "src/pieces/GenerateUserDisplay.svelte";
const file$t = "src/pieces/GenerateUserDisplay.svelte";
// (58:2) {#if user !== undefined}
function create_if_block$b(ctx) {
@@ -2708,49 +2708,49 @@ var app = (function () {
attr_dev(img, "class", "avatar svelte-1tyjf3q");
if (!src_url_equal(img.src, img_src_value = /*avatar*/ ctx[2])) attr_dev(img, "src", img_src_value);
attr_dev(img, "alt", "default user icon");
add_location(img, file$s, 61, 4, 2001);
add_location(img, file$t, 61, 4, 2001);
attr_dev(div0, "class", "username svelte-1tyjf3q");
add_location(div0, file$s, 62, 4, 2065);
add_location(div0, file$t, 62, 4, 2065);
attr_dev(path0, "d", "M512 255.1c0 11.34-7.406 20.86-18.44 23.64l-171.3 42.78l-42.78 171.1C276.7 504.6 267.2 512 255.9 512s-20.84-7.406-23.62-18.44l-42.66-171.2L18.47 279.6C7.406 276.8 0 267.3 0 255.1c0-11.34 7.406-20.83 18.44-23.61l171.2-42.78l42.78-171.1C235.2 7.406 244.7 0 256 0s20.84 7.406 23.62 18.44l42.78 171.2l171.2 42.78C504.6 235.2 512 244.6 512 255.1z");
attr_dev(path0, "class", "svelte-1tyjf3q");
add_location(path0, file$s, 67, 10, 2271);
add_location(path0, file$t, 67, 10, 2271);
attr_dev(svg0, "viewBox", "0 0 512 512");
attr_dev(svg0, "class", "svelte-1tyjf3q");
add_location(svg0, file$s, 66, 10, 2233);
add_location(svg0, file$t, 66, 10, 2233);
attr_dev(span0, "class", "glitter-star svelte-1tyjf3q");
add_location(span0, file$s, 65, 8, 2174);
add_location(span0, file$t, 65, 8, 2174);
attr_dev(path1, "d", "M512 255.1c0 11.34-7.406 20.86-18.44 23.64l-171.3 42.78l-42.78 171.1C276.7 504.6 267.2 512 255.9 512s-20.84-7.406-23.62-18.44l-42.66-171.2L18.47 279.6C7.406 276.8 0 267.3 0 255.1c0-11.34 7.406-20.83 18.44-23.61l171.2-42.78l42.78-171.1C235.2 7.406 244.7 0 256 0s20.84 7.406 23.62 18.44l42.78 171.2l171.2 42.78C504.6 235.2 512 244.6 512 255.1z");
attr_dev(path1, "class", "svelte-1tyjf3q");
add_location(path1, file$s, 72, 10, 2764);
add_location(path1, file$t, 72, 10, 2764);
attr_dev(svg1, "viewBox", "0 0 512 512");
attr_dev(svg1, "class", "svelte-1tyjf3q");
add_location(svg1, file$s, 71, 10, 2726);
add_location(svg1, file$t, 71, 10, 2726);
attr_dev(span1, "class", "glitter-star svelte-1tyjf3q");
add_location(span1, file$s, 70, 8, 2667);
add_location(span1, file$t, 70, 8, 2667);
attr_dev(path2, "d", "M512 255.1c0 11.34-7.406 20.86-18.44 23.64l-171.3 42.78l-42.78 171.1C276.7 504.6 267.2 512 255.9 512s-20.84-7.406-23.62-18.44l-42.66-171.2L18.47 279.6C7.406 276.8 0 267.3 0 255.1c0-11.34 7.406-20.83 18.44-23.61l171.2-42.78l42.78-171.1C235.2 7.406 244.7 0 256 0s20.84 7.406 23.62 18.44l42.78 171.2l171.2 42.78C504.6 235.2 512 244.6 512 255.1z");
attr_dev(path2, "class", "svelte-1tyjf3q");
add_location(path2, file$s, 77, 10, 3257);
add_location(path2, file$t, 77, 10, 3257);
attr_dev(svg2, "viewBox", "0 0 512 512");
attr_dev(svg2, "class", "svelte-1tyjf3q");
add_location(svg2, file$s, 76, 10, 3219);
add_location(svg2, file$t, 76, 10, 3219);
attr_dev(span2, "class", "glitter-star svelte-1tyjf3q");
add_location(span2, file$s, 75, 8, 3160);
add_location(span2, file$t, 75, 8, 3160);
attr_dev(span3, "class", "glitter-text svelte-1tyjf3q");
add_location(span3, file$s, 80, 8, 3653);
add_location(span3, file$t, 80, 8, 3653);
attr_dev(span4, "class", "glitter svelte-1tyjf3q");
add_location(span4, file$s, 64, 6, 2143);
add_location(span4, file$t, 64, 6, 2143);
attr_dev(div1, "class", "rank svelte-1tyjf3q");
add_location(div1, file$s, 63, 4, 2113);
add_location(div1, file$t, 63, 4, 2113);
attr_dev(h4, "class", "svelte-1tyjf3q");
add_location(h4, file$s, 84, 6, 3758);
add_location(p0, file$s, 85, 6, 3790);
add_location(p1, file$s, 86, 6, 3833);
add_location(p2, file$s, 87, 6, 3878);
add_location(p3, file$s, 88, 6, 3921);
add_location(h4, file$t, 84, 6, 3758);
add_location(p0, file$t, 85, 6, 3790);
add_location(p1, file$t, 86, 6, 3833);
add_location(p2, file$t, 87, 6, 3878);
add_location(p3, file$t, 88, 6, 3921);
attr_dev(section, "class", "main-stats svelte-1tyjf3q");
add_location(section, file$s, 83, 4, 3723);
add_location(section, file$t, 83, 4, 3723);
attr_dev(main, "class", "svelte-1tyjf3q");
add_location(main, file$s, 58, 2, 1823);
add_location(main, file$t, 58, 2, 1823);
},
m: function mount(target, anchor) {
insert_dev(target, main, anchor);
@@ -2830,7 +2830,7 @@ var app = (function () {
return block;
}
function create_fragment$v(ctx) {
function create_fragment$w(ctx) {
let div;
let if_block = /*user*/ ctx[0] !== undefined && create_if_block$b(ctx);
@@ -2839,7 +2839,7 @@ var app = (function () {
div = element("div");
if (if_block) if_block.c();
attr_dev(div, "class", "outer svelte-1tyjf3q");
add_location(div, file$s, 56, 0, 1774);
add_location(div, file$t, 56, 0, 1774);
},
l: function claim(nodes) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -2872,7 +2872,7 @@ var app = (function () {
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment$v.name,
id: create_fragment$w.name,
type: "component",
source: "",
ctx
@@ -2881,7 +2881,7 @@ var app = (function () {
return block;
}
function instance$v($$self, $$props, $$invalidate) {
function instance$w($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('GenerateUserDisplay', slots, []);
let { user } = $$props;
@@ -3028,13 +3028,13 @@ var app = (function () {
class GenerateUserDisplay extends SvelteComponentDev {
constructor(options) {
super(options);
init$2(this, options, instance$v, create_fragment$v, safe_not_equal, { user: 0, primary: 4 });
init$2(this, options, instance$w, create_fragment$w, safe_not_equal, { user: 0, primary: 4 });
dispatch_dev("SvelteRegisterComponent", {
component: this,
tagName: "GenerateUserDisplay",
options,
id: create_fragment$v.name
id: create_fragment$w.name
});
}
@@ -3055,6 +3055,285 @@ var app = (function () {
}
}
/* src/pieces/chat/tmp_debug.svelte generated by Svelte v3.53.1 */
const file$s = "src/pieces/chat/tmp_debug.svelte";
function create_fragment$v(ctx) {
let div;
let p;
let t1;
let button0;
let t3;
let button1;
let t5;
let button2;
let t7;
let button3;
let t9;
let button4;
let t11;
let button5;
let t13;
let button6;
let t15;
let button7;
let t17;
let button8;
let t19;
let button9;
let t21;
let button10;
let mounted;
let dispose;
const block = {
c: function create() {
div = element("div");
p = element("p");
p.textContent = "temp, for testing :";
t1 = space();
button0 = element("button");
button0.textContent = "close";
t3 = space();
button1 = element("button");
button1.textContent = "home";
t5 = space();
button2 = element("button");
button2.textContent = "room";
t7 = space();
button3 = element("button");
button3.textContent = "new";
t9 = space();
button4 = element("button");
button4.textContent = "settings";
t11 = space();
button5 = element("button");
button5.textContent = "room_set";
t13 = space();
button6 = element("button");
button6.textContent = "protected";
t15 = space();
button7 = element("button");
button7.textContent = "create";
t17 = space();
button8 = element("button");
button8.textContent = "mute";
t19 = space();
button9 = element("button");
button9.textContent = "user from settings";
t21 = space();
button10 = element("button");
button10.textContent = "user from room_set";
add_location(p, file$s, 8, 1, 209);
add_location(button0, file$s, 9, 1, 237);
add_location(button1, file$s, 10, 1, 305);
add_location(button2, file$s, 11, 1, 372);
add_location(button3, file$s, 12, 1, 439);
add_location(button4, file$s, 13, 1, 505);
add_location(button5, file$s, 14, 1, 576);
add_location(button6, file$s, 15, 1, 647);
add_location(button7, file$s, 16, 1, 719);
add_location(button8, file$s, 17, 1, 788);
add_location(button9, file$s, 18, 1, 855);
add_location(button10, file$s, 22, 1, 975);
set_style(div, "display", "flex");
set_style(div, "flex-direction", "column");
set_style(div, "font-size", "12px");
set_style(div, "position", "fixed");
set_style(div, "top", "20px");
set_style(div, "left", "20px");
set_style(div, "background-color", "white");
add_location(div, file$s, 7, 0, 73);
},
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, div, anchor);
append_dev(div, p);
append_dev(div, t1);
append_dev(div, button0);
append_dev(div, t3);
append_dev(div, button1);
append_dev(div, t5);
append_dev(div, button2);
append_dev(div, t7);
append_dev(div, button3);
append_dev(div, t9);
append_dev(div, button4);
append_dev(div, t11);
append_dev(div, button5);
append_dev(div, t13);
append_dev(div, button6);
append_dev(div, t15);
append_dev(div, button7);
append_dev(div, t17);
append_dev(div, button8);
append_dev(div, t19);
append_dev(div, button9);
append_dev(div, t21);
append_dev(div, button10);
if (!mounted) {
dispose = [
listen_dev(button0, "click", /*click_handler*/ ctx[2], false, false, false),
listen_dev(button1, "click", /*click_handler_1*/ ctx[3], false, false, false),
listen_dev(button2, "click", /*click_handler_2*/ ctx[4], false, false, false),
listen_dev(button3, "click", /*click_handler_3*/ ctx[5], false, false, false),
listen_dev(button4, "click", /*click_handler_4*/ ctx[6], false, false, false),
listen_dev(button5, "click", /*click_handler_5*/ ctx[7], false, false, false),
listen_dev(button6, "click", /*click_handler_6*/ ctx[8], false, false, false),
listen_dev(button7, "click", /*click_handler_7*/ ctx[9], false, false, false),
listen_dev(button8, "click", /*click_handler_8*/ ctx[10], false, false, false),
listen_dev(button9, "click", /*click_handler_9*/ ctx[11], false, false, false),
listen_dev(button10, "click", /*click_handler_10*/ ctx[12], false, false, false)
];
mounted = true;
}
},
p: noop,
i: noop,
o: noop,
d: function destroy(detaching) {
if (detaching) detach_dev(div);
mounted = false;
run_all(dispose);
}
};
dispatch_dev("SvelteRegisterBlock", {
block,
id: create_fragment$v.name,
type: "component",
source: "",
ctx
});
return block;
}
function instance$v($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('Tmp_debug', slots, []);
let { layout = "" } = $$props;
let { layouts = [] } = $$props;
const writable_props = ['layout', 'layouts'];
Object.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<Tmp_debug> was created with unknown prop '${key}'`);
});
const click_handler = function () {
$$invalidate(0, layout = "close");
};
const click_handler_1 = function () {
$$invalidate(0, layout = "home");
};
const click_handler_2 = function () {
$$invalidate(0, layout = "room");
};
const click_handler_3 = function () {
$$invalidate(0, layout = "new");
};
const click_handler_4 = function () {
$$invalidate(0, layout = "settings");
};
const click_handler_5 = function () {
$$invalidate(0, layout = "room_set");
};
const click_handler_6 = function () {
$$invalidate(0, layout = "protected");
};
const click_handler_7 = function () {
$$invalidate(0, layout = "create");
};
const click_handler_8 = function () {
$$invalidate(0, layout = "mute");
};
const click_handler_9 = function () {
$$invalidate(1, layouts = ["settings", "settings"]);
$$invalidate(0, layout = "user");
};
const click_handler_10 = function () {
$$invalidate(1, layouts = ["room_set", "room_set"]);
$$invalidate(0, layout = "user");
};
$$self.$$set = $$props => {
if ('layout' in $$props) $$invalidate(0, layout = $$props.layout);
if ('layouts' in $$props) $$invalidate(1, layouts = $$props.layouts);
};
$$self.$capture_state = () => ({ layout, layouts });
$$self.$inject_state = $$props => {
if ('layout' in $$props) $$invalidate(0, layout = $$props.layout);
if ('layouts' in $$props) $$invalidate(1, layouts = $$props.layouts);
};
if ($$props && "$$inject" in $$props) {
$$self.$inject_state($$props.$$inject);
}
return [
layout,
layouts,
click_handler,
click_handler_1,
click_handler_2,
click_handler_3,
click_handler_4,
click_handler_5,
click_handler_6,
click_handler_7,
click_handler_8,
click_handler_9,
click_handler_10
];
}
class Tmp_debug extends SvelteComponentDev {
constructor(options) {
super(options);
init$2(this, options, instance$v, create_fragment$v, safe_not_equal, { layout: 0, layouts: 1 });
dispatch_dev("SvelteRegisterComponent", {
component: this,
tagName: "Tmp_debug",
options,
id: create_fragment$v.name
});
}
get layout() {
throw new Error("<Tmp_debug>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
}
set layout(value) {
throw new Error("<Tmp_debug>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
}
get layouts() {
throw new Error("<Tmp_debug>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
}
set layouts(value) {
throw new Error("<Tmp_debug>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
}
}
/* src/pieces/chat/Chat_box_css.svelte generated by Svelte v3.53.1 */
const file$r = "src/pieces/chat/Chat_box_css.svelte";
@@ -12569,7 +12848,7 @@ var app = (function () {
/* src/pieces/chat/Chat_layouts.svelte generated by Svelte v3.53.1 */
// (65:29)
// (66:29)
function create_if_block_9$1(ctx) {
let userlayout;
let updating_layout;
@@ -12626,14 +12905,14 @@ var app = (function () {
block,
id: create_if_block_9$1.name,
type: "if",
source: "(65:29) ",
source: "(66:29) ",
ctx
});
return block;
}
// (62:29)
// (63:29)
function create_if_block_8$1(ctx) {
let mutelayout;
let updating_layout;
@@ -12690,14 +12969,14 @@ var app = (function () {
block,
id: create_if_block_8$1.name,
type: "if",
source: "(62:29) ",
source: "(63:29) ",
ctx
});
return block;
}
// (59:31)
// (60:31)
function create_if_block_7$1(ctx) {
let createlayout;
let updating_layout;
@@ -12758,14 +13037,14 @@ var app = (function () {
block,
id: create_if_block_7$1.name,
type: "if",
source: "(59:31) ",
source: "(60:31) ",
ctx
});
return block;
}
// (56:34)
// (57:34)
function create_if_block_6$1(ctx) {
let protectedlayout;
let updating_layout;
@@ -12826,14 +13105,14 @@ var app = (function () {
block,
id: create_if_block_6$1.name,
type: "if",
source: "(56:34) ",
source: "(57:34) ",
ctx
});
return block;
}
// (53:33)
// (54:33)
function create_if_block_5$1(ctx) {
let roomsetlayout;
let updating_layout;
@@ -12894,14 +13173,14 @@ var app = (function () {
block,
id: create_if_block_5$1.name,
type: "if",
source: "(53:33) ",
source: "(54:33) ",
ctx
});
return block;
}
// (50:33)
// (51:33)
function create_if_block_4$1(ctx) {
let settingslayout;
let updating_layout;
@@ -12962,14 +13241,14 @@ var app = (function () {
block,
id: create_if_block_4$1.name,
type: "if",
source: "(50:33) ",
source: "(51:33) ",
ctx
});
return block;
}
// (47:28)
// (48:28)
function create_if_block_3$1(ctx) {
let newlayout;
let updating_layout;
@@ -13026,14 +13305,14 @@ var app = (function () {
block,
id: create_if_block_3$1.name,
type: "if",
source: "(47:28) ",
source: "(48:28) ",
ctx
});
return block;
}
// (44:29)
// (45:29)
function create_if_block_2$1(ctx) {
let roomlayout;
let updating_layout;
@@ -13090,14 +13369,14 @@ var app = (function () {
block,
id: create_if_block_2$1.name,
type: "if",
source: "(44:29) ",
source: "(45:29) ",
ctx
});
return block;
}
// (41:30)
// (42:30)
function create_if_block_1$3(ctx) {
let closelayout;
let updating_layout;
@@ -13153,14 +13432,14 @@ var app = (function () {
block,
id: create_if_block_1$3.name,
type: "if",
source: "(41:30) ",
source: "(42:30) ",
ctx
});
return block;
}
// (38:1) {#if layout === "home"}
// (39:1) {#if layout === "home"}
function create_if_block$9(ctx) {
let homelayout;
let updating_layout;
@@ -13216,14 +13495,14 @@ var app = (function () {
block,
id: create_if_block$9.name,
type: "if",
source: "(38:1) {#if layout === \\\"home\\\"}",
source: "(39:1) {#if layout === \\\"home\\\"}",
ctx
});
return block;
}
// (36:0) <ChatBox layout={layout} color={color}>
// (37:0) <ChatBox layout={layout} color={color}>
function create_default_slot$2(ctx) {
let current_block_type_index;
let if_block;
@@ -13334,7 +13613,7 @@ var app = (function () {
block,
id: create_default_slot$2.name,
type: "slot",
source: "(36:0) <ChatBox layout={layout} color={color}>",
source: "(37:0) <ChatBox layout={layout} color={color}>",
ctx
});
@@ -13343,6 +13622,10 @@ var app = (function () {
function create_fragment$h(ctx) {
let chatbox;
let t;
let debug_1;
let updating_layout;
let updating_layouts;
let current;
chatbox = new Chat_box_css({
@@ -13355,15 +13638,41 @@ var app = (function () {
$$inline: true
});
function debug_1_layout_binding(value) {
/*debug_1_layout_binding*/ ctx[13](value);
}
function debug_1_layouts_binding(value) {
/*debug_1_layouts_binding*/ ctx[14](value);
}
let debug_1_props = {};
if (/*layout*/ ctx[1] !== void 0) {
debug_1_props.layout = /*layout*/ ctx[1];
}
if (/*layouts*/ ctx[2] !== void 0) {
debug_1_props.layouts = /*layouts*/ ctx[2];
}
debug_1 = new Tmp_debug({ props: debug_1_props, $$inline: true });
binding_callbacks.push(() => bind(debug_1, 'layout', debug_1_layout_binding));
binding_callbacks.push(() => bind(debug_1, 'layouts', debug_1_layouts_binding));
const block = {
c: function create() {
create_component(chatbox.$$.fragment);
t = space();
create_component(debug_1.$$.fragment);
},
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) {
mount_component(chatbox, target, anchor);
insert_dev(target, t, anchor);
mount_component(debug_1, target, anchor);
current = true;
},
p: function update(ctx, [dirty]) {
@@ -13371,23 +13680,42 @@ var app = (function () {
if (dirty & /*layout*/ 2) chatbox_changes.layout = /*layout*/ ctx[1];
if (dirty & /*color*/ 1) chatbox_changes.color = /*color*/ ctx[0];
if (dirty & /*$$scope, layout, layouts*/ 65542) {
if (dirty & /*$$scope, layout, layouts*/ 262150) {
chatbox_changes.$$scope = { dirty, ctx };
}
chatbox.$set(chatbox_changes);
const debug_1_changes = {};
if (!updating_layout && dirty & /*layout*/ 2) {
updating_layout = true;
debug_1_changes.layout = /*layout*/ ctx[1];
add_flush_callback(() => updating_layout = false);
}
if (!updating_layouts && dirty & /*layouts*/ 4) {
updating_layouts = true;
debug_1_changes.layouts = /*layouts*/ ctx[2];
add_flush_callback(() => updating_layouts = false);
}
debug_1.$set(debug_1_changes);
},
i: function intro(local) {
if (current) return;
transition_in(chatbox.$$.fragment, local);
transition_in(debug_1.$$.fragment, local);
current = true;
},
o: function outro(local) {
transition_out(chatbox.$$.fragment, local);
transition_out(debug_1.$$.fragment, local);
current = false;
},
d: function destroy(detaching) {
destroy_component(chatbox, detaching);
if (detaching) detach_dev(t);
destroy_component(debug_1, detaching);
}
};
@@ -13481,11 +13809,22 @@ var app = (function () {
$$invalidate(1, layout);
}
function debug_1_layout_binding(value) {
layout = value;
$$invalidate(1, layout);
}
function debug_1_layouts_binding(value) {
layouts = value;
$$invalidate(2, layouts);
}
$$self.$$set = $$props => {
if ('color' in $$props) $$invalidate(0, color = $$props.color);
};
$$self.$capture_state = () => ({
Debug: Tmp_debug,
ChatBox: Chat_box_css,
CloseLayout: Layout_close,
HomeLayout: Layout_home,
@@ -13536,7 +13875,9 @@ var app = (function () {
protectedlayout_layout_binding,
createlayout_layout_binding,
mutelayout_layout_binding,
userlayout_layout_binding
userlayout_layout_binding,
debug_1_layout_binding,
debug_1_layouts_binding
];
}

File diff suppressed because one or more lines are too long