@netless/fastboard-ui 0.3.2-canary.3 → 0.3.2-canary.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -2
- package/dist/index.js +535 -302
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +535 -302
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +954 -703
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/behaviors/apps.ts +4 -0
- package/src/components/Fastboard/Fastboard.svelte +1 -1
- package/src/components/Toolbar/Toolbar.svelte +14 -2
- package/src/components/Toolbar/Toolbar.svelte.d.ts +2 -1
- package/src/components/Toolbar/components/Contents.svelte +8 -4
- package/src/components/Toolbar/components/TextColor.svelte +39 -0
- package/src/typings.ts +7 -1
package/dist/index.svelte.mjs
CHANGED
|
@@ -3512,12 +3512,12 @@ if (is_client) {
|
|
|
3512
3512
|
{
|
|
3513
3513
|
name: "className",
|
|
3514
3514
|
defaultValue: "",
|
|
3515
|
-
fn(
|
|
3515
|
+
fn(instance60) {
|
|
3516
3516
|
function add() {
|
|
3517
|
-
const el =
|
|
3517
|
+
const el = instance60.popper.firstElementChild;
|
|
3518
3518
|
if (el) {
|
|
3519
3519
|
el.classList.add("fastboard-tip");
|
|
3520
|
-
const extra = (
|
|
3520
|
+
const extra = (instance60.props.className || "").trim();
|
|
3521
3521
|
if (extra) {
|
|
3522
3522
|
el.classList.add(extra);
|
|
3523
3523
|
}
|
|
@@ -3525,7 +3525,7 @@ if (is_client) {
|
|
|
3525
3525
|
}
|
|
3526
3526
|
function remove() {
|
|
3527
3527
|
var _a;
|
|
3528
|
-
(_a =
|
|
3528
|
+
(_a = instance60.popper.firstElementChild) == null ? void 0 : _a.classList.remove("fastboard-tip");
|
|
3529
3529
|
}
|
|
3530
3530
|
return {
|
|
3531
3531
|
onCreate: add,
|
|
@@ -3538,21 +3538,21 @@ if (is_client) {
|
|
|
3538
3538
|
});
|
|
3539
3539
|
}
|
|
3540
3540
|
var tippy = function(node, props) {
|
|
3541
|
-
const
|
|
3541
|
+
const instance60 = Tippy(node, props);
|
|
3542
3542
|
return {
|
|
3543
3543
|
update(props2) {
|
|
3544
|
-
|
|
3544
|
+
instance60.setProps(props2);
|
|
3545
3545
|
},
|
|
3546
3546
|
destroy() {
|
|
3547
|
-
|
|
3547
|
+
instance60.destroy();
|
|
3548
3548
|
}
|
|
3549
3549
|
};
|
|
3550
3550
|
};
|
|
3551
3551
|
function tippy_hide_all() {
|
|
3552
3552
|
document.querySelectorAll("[data-tippy-root]").forEach((el) => {
|
|
3553
|
-
const
|
|
3554
|
-
if (
|
|
3555
|
-
|
|
3553
|
+
const instance60 = el._tippy;
|
|
3554
|
+
if (instance60)
|
|
3555
|
+
instance60.hide();
|
|
3556
3556
|
});
|
|
3557
3557
|
}
|
|
3558
3558
|
var tippy_menu = {
|
|
@@ -5561,27 +5561,27 @@ var ZoomControl_default = ZoomControl;
|
|
|
5561
5561
|
|
|
5562
5562
|
// src/components/Toolbar/Toolbar.svelte
|
|
5563
5563
|
import {
|
|
5564
|
-
SvelteComponent as
|
|
5564
|
+
SvelteComponent as SvelteComponent56,
|
|
5565
5565
|
action_destroyer as action_destroyer4,
|
|
5566
|
-
append as
|
|
5567
|
-
attr as
|
|
5566
|
+
append as append55,
|
|
5567
|
+
attr as attr56,
|
|
5568
5568
|
component_subscribe as component_subscribe2,
|
|
5569
5569
|
create_component as create_component7,
|
|
5570
5570
|
destroy_component as destroy_component7,
|
|
5571
|
-
detach as
|
|
5572
|
-
element as
|
|
5573
|
-
init as
|
|
5574
|
-
insert as
|
|
5575
|
-
listen as
|
|
5571
|
+
detach as detach55,
|
|
5572
|
+
element as element12,
|
|
5573
|
+
init as init56,
|
|
5574
|
+
insert as insert55,
|
|
5575
|
+
listen as listen7,
|
|
5576
5576
|
mount_component as mount_component7,
|
|
5577
|
-
noop as
|
|
5577
|
+
noop as noop55,
|
|
5578
5578
|
run_all as run_all4,
|
|
5579
|
-
safe_not_equal as
|
|
5580
|
-
set_style as
|
|
5581
|
-
space as
|
|
5582
|
-
subscribe as
|
|
5579
|
+
safe_not_equal as safe_not_equal56,
|
|
5580
|
+
set_style as set_style5,
|
|
5581
|
+
space as space9,
|
|
5582
|
+
subscribe as subscribe9,
|
|
5583
5583
|
svg_element as svg_element45,
|
|
5584
|
-
toggle_class as
|
|
5584
|
+
toggle_class as toggle_class50,
|
|
5585
5585
|
transition_in as transition_in9,
|
|
5586
5586
|
transition_out as transition_out9
|
|
5587
5587
|
} from "svelte/internal";
|
|
@@ -5621,39 +5621,39 @@ var scrollHeight = function(node, height2) {
|
|
|
5621
5621
|
|
|
5622
5622
|
// src/components/Toolbar/components/Contents.svelte
|
|
5623
5623
|
import {
|
|
5624
|
-
SvelteComponent as
|
|
5624
|
+
SvelteComponent as SvelteComponent55,
|
|
5625
5625
|
action_destroyer as action_destroyer3,
|
|
5626
|
-
append as
|
|
5626
|
+
append as append54,
|
|
5627
5627
|
assign as assign2,
|
|
5628
|
-
attr as
|
|
5628
|
+
attr as attr55,
|
|
5629
5629
|
binding_callbacks,
|
|
5630
5630
|
check_outros as check_outros4,
|
|
5631
5631
|
component_subscribe,
|
|
5632
5632
|
create_component as create_component6,
|
|
5633
5633
|
destroy_component as destroy_component6,
|
|
5634
5634
|
destroy_each,
|
|
5635
|
-
detach as
|
|
5636
|
-
element as
|
|
5635
|
+
detach as detach54,
|
|
5636
|
+
element as element11,
|
|
5637
5637
|
empty as empty4,
|
|
5638
5638
|
get_spread_object as get_spread_object2,
|
|
5639
5639
|
get_spread_update as get_spread_update2,
|
|
5640
5640
|
group_outros as group_outros4,
|
|
5641
|
-
init as
|
|
5642
|
-
insert as
|
|
5641
|
+
init as init55,
|
|
5642
|
+
insert as insert54,
|
|
5643
5643
|
is_function as is_function3,
|
|
5644
|
-
listen as
|
|
5644
|
+
listen as listen6,
|
|
5645
5645
|
mount_component as mount_component6,
|
|
5646
|
-
noop as
|
|
5646
|
+
noop as noop54,
|
|
5647
5647
|
run_all as run_all3,
|
|
5648
|
-
safe_not_equal as
|
|
5648
|
+
safe_not_equal as safe_not_equal55,
|
|
5649
5649
|
set_data as set_data3,
|
|
5650
5650
|
set_store_value,
|
|
5651
|
-
set_style as
|
|
5652
|
-
space as
|
|
5651
|
+
set_style as set_style4,
|
|
5652
|
+
space as space8,
|
|
5653
5653
|
src_url_equal as src_url_equal2,
|
|
5654
|
-
subscribe as
|
|
5654
|
+
subscribe as subscribe8,
|
|
5655
5655
|
text as text_1,
|
|
5656
|
-
toggle_class as
|
|
5656
|
+
toggle_class as toggle_class49,
|
|
5657
5657
|
transition_in as transition_in8,
|
|
5658
5658
|
transition_out as transition_out8
|
|
5659
5659
|
} from "svelte/internal";
|
|
@@ -5792,6 +5792,10 @@ var AppsInToolbar = class {
|
|
|
5792
5792
|
this._data = this._data.filter((item) => !filter(item));
|
|
5793
5793
|
this._listeners.forEach((fn) => fn(this._data));
|
|
5794
5794
|
}
|
|
5795
|
+
clear() {
|
|
5796
|
+
this._data.length = 0;
|
|
5797
|
+
this._listeners.forEach((fn) => fn(this._data));
|
|
5798
|
+
}
|
|
5795
5799
|
};
|
|
5796
5800
|
var apps = new AppsInToolbar([
|
|
5797
5801
|
{
|
|
@@ -6317,35 +6321,205 @@ var StrokeColor = class extends SvelteComponent52 {
|
|
|
6317
6321
|
};
|
|
6318
6322
|
var StrokeColor_default = StrokeColor;
|
|
6319
6323
|
|
|
6320
|
-
// src/components/Toolbar/components/
|
|
6324
|
+
// src/components/Toolbar/components/TextColor.svelte
|
|
6321
6325
|
import {
|
|
6322
6326
|
SvelteComponent as SvelteComponent53,
|
|
6323
|
-
action_destroyer as action_destroyer2,
|
|
6324
6327
|
append as append52,
|
|
6325
6328
|
attr as attr53,
|
|
6326
|
-
|
|
6327
|
-
create_component as create_component5,
|
|
6328
|
-
destroy_component as destroy_component5,
|
|
6329
|
+
destroy_block as destroy_block2,
|
|
6329
6330
|
detach as detach52,
|
|
6330
6331
|
element as element9,
|
|
6331
|
-
empty as empty3,
|
|
6332
|
-
group_outros as group_outros3,
|
|
6333
6332
|
init as init53,
|
|
6334
6333
|
insert as insert52,
|
|
6335
|
-
is_function as is_function2,
|
|
6336
6334
|
listen as listen4,
|
|
6337
|
-
mount_component as mount_component5,
|
|
6338
6335
|
noop as noop52,
|
|
6339
|
-
outro_and_destroy_block,
|
|
6340
6336
|
safe_not_equal as safe_not_equal53,
|
|
6337
|
+
set_style as set_style3,
|
|
6341
6338
|
space as space6,
|
|
6342
6339
|
subscribe as subscribe6,
|
|
6343
6340
|
toggle_class as toggle_class47,
|
|
6344
|
-
transition_in as transition_in7,
|
|
6345
|
-
transition_out as transition_out7,
|
|
6346
6341
|
update_keyed_each as update_keyed_each2
|
|
6347
6342
|
} from "svelte/internal";
|
|
6348
6343
|
function get_each_context2(ctx, list, i) {
|
|
6344
|
+
const child_ctx = ctx.slice();
|
|
6345
|
+
child_ctx[7] = list[i];
|
|
6346
|
+
return child_ctx;
|
|
6347
|
+
}
|
|
6348
|
+
function create_each_block2(key_1, ctx) {
|
|
6349
|
+
let button;
|
|
6350
|
+
let span;
|
|
6351
|
+
let t;
|
|
6352
|
+
let button_class_value;
|
|
6353
|
+
let button_data_color_key_value;
|
|
6354
|
+
return {
|
|
6355
|
+
key: key_1,
|
|
6356
|
+
first: null,
|
|
6357
|
+
c() {
|
|
6358
|
+
button = element9("button");
|
|
6359
|
+
span = element9("span");
|
|
6360
|
+
t = space6();
|
|
6361
|
+
attr53(span, "class", "fastboard-toolbar-color-item");
|
|
6362
|
+
set_style3(span, "background-color", ctx[7], false);
|
|
6363
|
+
attr53(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0]);
|
|
6364
|
+
attr53(button, "data-color-key", button_data_color_key_value = ctx[7]);
|
|
6365
|
+
button.disabled = ctx[1];
|
|
6366
|
+
toggle_class47(button, "is-active", is_equal_color2(ctx[2], colors[ctx[7]]));
|
|
6367
|
+
this.first = button;
|
|
6368
|
+
},
|
|
6369
|
+
m(target, anchor) {
|
|
6370
|
+
insert52(target, button, anchor);
|
|
6371
|
+
append52(button, span);
|
|
6372
|
+
append52(button, t);
|
|
6373
|
+
},
|
|
6374
|
+
p(new_ctx, dirty) {
|
|
6375
|
+
ctx = new_ctx;
|
|
6376
|
+
if (dirty & 1 && button_class_value !== (button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0])) {
|
|
6377
|
+
attr53(button, "class", button_class_value);
|
|
6378
|
+
}
|
|
6379
|
+
if (dirty & 2) {
|
|
6380
|
+
button.disabled = ctx[1];
|
|
6381
|
+
}
|
|
6382
|
+
if (dirty & 5) {
|
|
6383
|
+
toggle_class47(button, "is-active", is_equal_color2(ctx[2], colors[ctx[7]]));
|
|
6384
|
+
}
|
|
6385
|
+
},
|
|
6386
|
+
d(detaching) {
|
|
6387
|
+
if (detaching)
|
|
6388
|
+
detach52(button);
|
|
6389
|
+
}
|
|
6390
|
+
};
|
|
6391
|
+
}
|
|
6392
|
+
function create_fragment53(ctx) {
|
|
6393
|
+
let div;
|
|
6394
|
+
let each_blocks = [];
|
|
6395
|
+
let each_1_lookup = /* @__PURE__ */ new Map();
|
|
6396
|
+
let div_class_value;
|
|
6397
|
+
let mounted;
|
|
6398
|
+
let dispose;
|
|
6399
|
+
let each_value = colorKeys;
|
|
6400
|
+
const get_key = (ctx2) => ctx2[7];
|
|
6401
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
6402
|
+
let child_ctx = get_each_context2(ctx, each_value, i);
|
|
6403
|
+
let key = get_key(child_ctx);
|
|
6404
|
+
each_1_lookup.set(key, each_blocks[i] = create_each_block2(key, child_ctx));
|
|
6405
|
+
}
|
|
6406
|
+
return {
|
|
6407
|
+
c() {
|
|
6408
|
+
div = element9("div");
|
|
6409
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6410
|
+
each_blocks[i].c();
|
|
6411
|
+
}
|
|
6412
|
+
attr53(div, "class", div_class_value = "fastboard-toolbar-colors " + ctx[0]);
|
|
6413
|
+
},
|
|
6414
|
+
m(target, anchor) {
|
|
6415
|
+
insert52(target, div, anchor);
|
|
6416
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6417
|
+
each_blocks[i].m(div, null);
|
|
6418
|
+
}
|
|
6419
|
+
if (!mounted) {
|
|
6420
|
+
dispose = listen4(div, "click", ctx[4]);
|
|
6421
|
+
mounted = true;
|
|
6422
|
+
}
|
|
6423
|
+
},
|
|
6424
|
+
p(ctx2, [dirty]) {
|
|
6425
|
+
if (dirty & 7) {
|
|
6426
|
+
each_value = colorKeys;
|
|
6427
|
+
each_blocks = update_keyed_each2(each_blocks, dirty, get_key, 1, ctx2, each_value, each_1_lookup, div, destroy_block2, create_each_block2, null, get_each_context2);
|
|
6428
|
+
}
|
|
6429
|
+
if (dirty & 1 && div_class_value !== (div_class_value = "fastboard-toolbar-colors " + ctx2[0])) {
|
|
6430
|
+
attr53(div, "class", div_class_value);
|
|
6431
|
+
}
|
|
6432
|
+
},
|
|
6433
|
+
i: noop52,
|
|
6434
|
+
o: noop52,
|
|
6435
|
+
d(detaching) {
|
|
6436
|
+
if (detaching)
|
|
6437
|
+
detach52(div);
|
|
6438
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6439
|
+
each_blocks[i].d();
|
|
6440
|
+
}
|
|
6441
|
+
mounted = false;
|
|
6442
|
+
dispose();
|
|
6443
|
+
}
|
|
6444
|
+
};
|
|
6445
|
+
}
|
|
6446
|
+
function is_equal_color2(a, b) {
|
|
6447
|
+
return a && b && a.every((v, i) => v === b[i]);
|
|
6448
|
+
}
|
|
6449
|
+
function instance53($$self, $$props, $$invalidate) {
|
|
6450
|
+
let memberState;
|
|
6451
|
+
let textColor;
|
|
6452
|
+
let $memberState, $$unsubscribe_memberState = noop52, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe6(memberState, ($$value) => $$invalidate(6, $memberState = $$value)), memberState);
|
|
6453
|
+
$$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
|
|
6454
|
+
let { app = null } = $$props;
|
|
6455
|
+
let { theme = "light" } = $$props;
|
|
6456
|
+
let { disabled = false } = $$props;
|
|
6457
|
+
function set_stroke_color(ev) {
|
|
6458
|
+
let button = ev.target;
|
|
6459
|
+
if (button && button.dataset.colorKey) {
|
|
6460
|
+
let color = colors[button.dataset.colorKey];
|
|
6461
|
+
if (color && app) {
|
|
6462
|
+
app.setTextColor(color);
|
|
6463
|
+
}
|
|
6464
|
+
}
|
|
6465
|
+
}
|
|
6466
|
+
$$self.$$set = ($$props2) => {
|
|
6467
|
+
if ("app" in $$props2)
|
|
6468
|
+
$$invalidate(5, app = $$props2.app);
|
|
6469
|
+
if ("theme" in $$props2)
|
|
6470
|
+
$$invalidate(0, theme = $$props2.theme);
|
|
6471
|
+
if ("disabled" in $$props2)
|
|
6472
|
+
$$invalidate(1, disabled = $$props2.disabled);
|
|
6473
|
+
};
|
|
6474
|
+
$$self.$$.update = () => {
|
|
6475
|
+
if ($$self.$$.dirty & 32) {
|
|
6476
|
+
$:
|
|
6477
|
+
$$subscribe_memberState($$invalidate(3, memberState = app == null ? void 0 : app.memberState));
|
|
6478
|
+
}
|
|
6479
|
+
if ($$self.$$.dirty & 64) {
|
|
6480
|
+
$:
|
|
6481
|
+
$$invalidate(2, textColor = $memberState == null ? void 0 : $memberState.textColor);
|
|
6482
|
+
}
|
|
6483
|
+
};
|
|
6484
|
+
return [theme, disabled, textColor, memberState, set_stroke_color, app, $memberState];
|
|
6485
|
+
}
|
|
6486
|
+
var TextColor = class extends SvelteComponent53 {
|
|
6487
|
+
constructor(options) {
|
|
6488
|
+
super();
|
|
6489
|
+
init53(this, options, instance53, create_fragment53, safe_not_equal53, { app: 5, theme: 0, disabled: 1 });
|
|
6490
|
+
}
|
|
6491
|
+
};
|
|
6492
|
+
var TextColor_default = TextColor;
|
|
6493
|
+
|
|
6494
|
+
// src/components/Toolbar/components/Shapes.svelte
|
|
6495
|
+
import {
|
|
6496
|
+
SvelteComponent as SvelteComponent54,
|
|
6497
|
+
action_destroyer as action_destroyer2,
|
|
6498
|
+
append as append53,
|
|
6499
|
+
attr as attr54,
|
|
6500
|
+
check_outros as check_outros3,
|
|
6501
|
+
create_component as create_component5,
|
|
6502
|
+
destroy_component as destroy_component5,
|
|
6503
|
+
detach as detach53,
|
|
6504
|
+
element as element10,
|
|
6505
|
+
empty as empty3,
|
|
6506
|
+
group_outros as group_outros3,
|
|
6507
|
+
init as init54,
|
|
6508
|
+
insert as insert53,
|
|
6509
|
+
is_function as is_function2,
|
|
6510
|
+
listen as listen5,
|
|
6511
|
+
mount_component as mount_component5,
|
|
6512
|
+
noop as noop53,
|
|
6513
|
+
outro_and_destroy_block,
|
|
6514
|
+
safe_not_equal as safe_not_equal54,
|
|
6515
|
+
space as space7,
|
|
6516
|
+
subscribe as subscribe7,
|
|
6517
|
+
toggle_class as toggle_class48,
|
|
6518
|
+
transition_in as transition_in7,
|
|
6519
|
+
transition_out as transition_out7,
|
|
6520
|
+
update_keyed_each as update_keyed_each3
|
|
6521
|
+
} from "svelte/internal";
|
|
6522
|
+
function get_each_context3(ctx, list, i) {
|
|
6349
6523
|
const child_ctx = ctx.slice();
|
|
6350
6524
|
child_ctx[12] = list[i];
|
|
6351
6525
|
const constants_0 = child_ctx[4] === "shape" ? child_ctx[3] === child_ctx[12] : child_ctx[4] === child_ctx[12];
|
|
@@ -6373,7 +6547,7 @@ function create_else_block5(ctx) {
|
|
|
6373
6547
|
if (switch_instance) {
|
|
6374
6548
|
mount_component5(switch_instance, target, anchor);
|
|
6375
6549
|
}
|
|
6376
|
-
|
|
6550
|
+
insert53(target, switch_instance_anchor, anchor);
|
|
6377
6551
|
current = true;
|
|
6378
6552
|
},
|
|
6379
6553
|
p(ctx2, dirty) {
|
|
@@ -6415,7 +6589,7 @@ function create_else_block5(ctx) {
|
|
|
6415
6589
|
},
|
|
6416
6590
|
d(detaching) {
|
|
6417
6591
|
if (detaching)
|
|
6418
|
-
|
|
6592
|
+
detach53(switch_instance_anchor);
|
|
6419
6593
|
if (switch_instance)
|
|
6420
6594
|
destroy_component5(switch_instance, detaching);
|
|
6421
6595
|
}
|
|
@@ -6444,7 +6618,7 @@ function create_if_block5(ctx) {
|
|
|
6444
6618
|
if (switch_instance) {
|
|
6445
6619
|
mount_component5(switch_instance, target, anchor);
|
|
6446
6620
|
}
|
|
6447
|
-
|
|
6621
|
+
insert53(target, switch_instance_anchor, anchor);
|
|
6448
6622
|
current = true;
|
|
6449
6623
|
},
|
|
6450
6624
|
p(ctx2, dirty) {
|
|
@@ -6486,13 +6660,13 @@ function create_if_block5(ctx) {
|
|
|
6486
6660
|
},
|
|
6487
6661
|
d(detaching) {
|
|
6488
6662
|
if (detaching)
|
|
6489
|
-
|
|
6663
|
+
detach53(switch_instance_anchor);
|
|
6490
6664
|
if (switch_instance)
|
|
6491
6665
|
destroy_component5(switch_instance, detaching);
|
|
6492
6666
|
}
|
|
6493
6667
|
};
|
|
6494
6668
|
}
|
|
6495
|
-
function
|
|
6669
|
+
function create_each_block3(key_1, ctx) {
|
|
6496
6670
|
let button;
|
|
6497
6671
|
let current_block_type_index;
|
|
6498
6672
|
let if_block;
|
|
@@ -6516,19 +6690,19 @@ function create_each_block2(key_1, ctx) {
|
|
|
6516
6690
|
key: key_1,
|
|
6517
6691
|
first: null,
|
|
6518
6692
|
c() {
|
|
6519
|
-
button =
|
|
6693
|
+
button = element10("button");
|
|
6520
6694
|
if_block.c();
|
|
6521
|
-
t_1 =
|
|
6522
|
-
|
|
6523
|
-
|
|
6695
|
+
t_1 = space7();
|
|
6696
|
+
attr54(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-shape-btn " + ctx[0] + " " + ctx[12]);
|
|
6697
|
+
attr54(button, "data-shape-key", button_data_shape_key_value = ctx[12]);
|
|
6524
6698
|
button.disabled = ctx[1];
|
|
6525
|
-
|
|
6699
|
+
toggle_class48(button, "is-active", ctx[13]);
|
|
6526
6700
|
this.first = button;
|
|
6527
6701
|
},
|
|
6528
6702
|
m(target, anchor) {
|
|
6529
|
-
|
|
6703
|
+
insert53(target, button, anchor);
|
|
6530
6704
|
if_blocks[current_block_type_index].m(button, null);
|
|
6531
|
-
|
|
6705
|
+
append53(button, t_1);
|
|
6532
6706
|
current = true;
|
|
6533
6707
|
if (!mounted) {
|
|
6534
6708
|
dispose = action_destroyer2(tippy_action = tippy.call(null, button, {
|
|
@@ -6561,7 +6735,7 @@ function create_each_block2(key_1, ctx) {
|
|
|
6561
6735
|
if_block.m(button, t_1);
|
|
6562
6736
|
}
|
|
6563
6737
|
if (!current || dirty & 1 && button_class_value !== (button_class_value = "fastboard-toolbar-btn fastboard-toolbar-shape-btn " + ctx[0] + " " + ctx[12])) {
|
|
6564
|
-
|
|
6738
|
+
attr54(button, "class", button_class_value);
|
|
6565
6739
|
}
|
|
6566
6740
|
if (!current || dirty & 2) {
|
|
6567
6741
|
button.disabled = ctx[1];
|
|
@@ -6572,7 +6746,7 @@ function create_each_block2(key_1, ctx) {
|
|
|
6572
6746
|
placement: "top"
|
|
6573
6747
|
});
|
|
6574
6748
|
if (dirty & 25) {
|
|
6575
|
-
|
|
6749
|
+
toggle_class48(button, "is-active", ctx[13]);
|
|
6576
6750
|
}
|
|
6577
6751
|
},
|
|
6578
6752
|
i(local) {
|
|
@@ -6587,14 +6761,14 @@ function create_each_block2(key_1, ctx) {
|
|
|
6587
6761
|
},
|
|
6588
6762
|
d(detaching) {
|
|
6589
6763
|
if (detaching)
|
|
6590
|
-
|
|
6764
|
+
detach53(button);
|
|
6591
6765
|
if_blocks[current_block_type_index].d();
|
|
6592
6766
|
mounted = false;
|
|
6593
6767
|
dispose();
|
|
6594
6768
|
}
|
|
6595
6769
|
};
|
|
6596
6770
|
}
|
|
6597
|
-
function
|
|
6771
|
+
function create_fragment54(ctx) {
|
|
6598
6772
|
let div;
|
|
6599
6773
|
let each_blocks = [];
|
|
6600
6774
|
let each_1_lookup = /* @__PURE__ */ new Map();
|
|
@@ -6605,26 +6779,26 @@ function create_fragment53(ctx) {
|
|
|
6605
6779
|
let each_value = shapes;
|
|
6606
6780
|
const get_key = (ctx2) => ctx2[12];
|
|
6607
6781
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
6608
|
-
let child_ctx =
|
|
6782
|
+
let child_ctx = get_each_context3(ctx, each_value, i);
|
|
6609
6783
|
let key = get_key(child_ctx);
|
|
6610
|
-
each_1_lookup.set(key, each_blocks[i] =
|
|
6784
|
+
each_1_lookup.set(key, each_blocks[i] = create_each_block3(key, child_ctx));
|
|
6611
6785
|
}
|
|
6612
6786
|
return {
|
|
6613
6787
|
c() {
|
|
6614
|
-
div =
|
|
6788
|
+
div = element10("div");
|
|
6615
6789
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6616
6790
|
each_blocks[i].c();
|
|
6617
6791
|
}
|
|
6618
|
-
|
|
6792
|
+
attr54(div, "class", div_class_value = "fastboard-toolbar-shapes " + ctx[0]);
|
|
6619
6793
|
},
|
|
6620
6794
|
m(target, anchor) {
|
|
6621
|
-
|
|
6795
|
+
insert53(target, div, anchor);
|
|
6622
6796
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6623
6797
|
each_blocks[i].m(div, null);
|
|
6624
6798
|
}
|
|
6625
6799
|
current = true;
|
|
6626
6800
|
if (!mounted) {
|
|
6627
|
-
dispose =
|
|
6801
|
+
dispose = listen5(div, "click", ctx[7]);
|
|
6628
6802
|
mounted = true;
|
|
6629
6803
|
}
|
|
6630
6804
|
},
|
|
@@ -6632,11 +6806,11 @@ function create_fragment53(ctx) {
|
|
|
6632
6806
|
if (dirty & 95) {
|
|
6633
6807
|
each_value = shapes;
|
|
6634
6808
|
group_outros3();
|
|
6635
|
-
each_blocks =
|
|
6809
|
+
each_blocks = update_keyed_each3(each_blocks, dirty, get_key, 1, ctx2, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block3, null, get_each_context3);
|
|
6636
6810
|
check_outros3();
|
|
6637
6811
|
}
|
|
6638
6812
|
if (!current || dirty & 1 && div_class_value !== (div_class_value = "fastboard-toolbar-shapes " + ctx2[0])) {
|
|
6639
|
-
|
|
6813
|
+
attr54(div, "class", div_class_value);
|
|
6640
6814
|
}
|
|
6641
6815
|
},
|
|
6642
6816
|
i(local) {
|
|
@@ -6655,7 +6829,7 @@ function create_fragment53(ctx) {
|
|
|
6655
6829
|
},
|
|
6656
6830
|
d(detaching) {
|
|
6657
6831
|
if (detaching)
|
|
6658
|
-
|
|
6832
|
+
detach53(div);
|
|
6659
6833
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6660
6834
|
each_blocks[i].d();
|
|
6661
6835
|
}
|
|
@@ -6686,13 +6860,13 @@ var i18n5 = {
|
|
|
6686
6860
|
speechBalloon: "\u6C14\u6CE1"
|
|
6687
6861
|
}
|
|
6688
6862
|
};
|
|
6689
|
-
function
|
|
6863
|
+
function instance54($$self, $$props, $$invalidate) {
|
|
6690
6864
|
let t;
|
|
6691
6865
|
let memberState;
|
|
6692
6866
|
let appliance;
|
|
6693
6867
|
let shape;
|
|
6694
6868
|
let hotkeys;
|
|
6695
|
-
let $memberState, $$unsubscribe_memberState =
|
|
6869
|
+
let $memberState, $$unsubscribe_memberState = noop53, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe7(memberState, ($$value) => $$invalidate(11, $memberState = $$value)), memberState);
|
|
6696
6870
|
$$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
|
|
6697
6871
|
let { app = null } = $$props;
|
|
6698
6872
|
let { theme = "light" } = $$props;
|
|
@@ -6768,10 +6942,10 @@ function instance53($$self, $$props, $$invalidate) {
|
|
|
6768
6942
|
$memberState
|
|
6769
6943
|
];
|
|
6770
6944
|
}
|
|
6771
|
-
var Shapes = class extends
|
|
6945
|
+
var Shapes = class extends SvelteComponent54 {
|
|
6772
6946
|
constructor(options) {
|
|
6773
6947
|
super();
|
|
6774
|
-
|
|
6948
|
+
init54(this, options, instance54, create_fragment54, safe_not_equal54, {
|
|
6775
6949
|
app: 8,
|
|
6776
6950
|
theme: 0,
|
|
6777
6951
|
language: 9,
|
|
@@ -6782,22 +6956,22 @@ var Shapes = class extends SvelteComponent53 {
|
|
|
6782
6956
|
var Shapes_default = Shapes;
|
|
6783
6957
|
|
|
6784
6958
|
// src/components/Toolbar/components/Contents.svelte
|
|
6785
|
-
function
|
|
6959
|
+
function get_each_context4(ctx, list, i) {
|
|
6786
6960
|
const child_ctx = ctx.slice();
|
|
6787
|
-
child_ctx[
|
|
6788
|
-
const constants_0 = child_ctx[
|
|
6789
|
-
child_ctx[
|
|
6790
|
-
child_ctx[
|
|
6791
|
-
child_ctx[
|
|
6792
|
-
child_ctx[
|
|
6793
|
-
const constants_1 = child_ctx[
|
|
6794
|
-
child_ctx[
|
|
6961
|
+
child_ctx[41] = list[i];
|
|
6962
|
+
const constants_0 = child_ctx[41];
|
|
6963
|
+
child_ctx[42] = constants_0.icon;
|
|
6964
|
+
child_ctx[43] = constants_0.label;
|
|
6965
|
+
child_ctx[44] = constants_0.kind;
|
|
6966
|
+
child_ctx[45] = constants_0.onClick;
|
|
6967
|
+
const constants_1 = child_ctx[20] && child_ctx[20][child_ctx[44]];
|
|
6968
|
+
child_ctx[46] = constants_1;
|
|
6795
6969
|
return child_ctx;
|
|
6796
6970
|
}
|
|
6797
|
-
function
|
|
6971
|
+
function create_if_block_8(ctx) {
|
|
6798
6972
|
let button;
|
|
6799
6973
|
let current;
|
|
6800
|
-
const button_spread_levels = [{ class: "scroll-up" }, ctx[
|
|
6974
|
+
const button_spread_levels = [{ class: "scroll-up" }, ctx[15]];
|
|
6801
6975
|
let button_props = {
|
|
6802
6976
|
$$slots: { default: [create_default_slot_9] },
|
|
6803
6977
|
$$scope: { ctx }
|
|
@@ -6806,7 +6980,7 @@ function create_if_block_7(ctx) {
|
|
|
6806
6980
|
button_props = assign2(button_props, button_spread_levels[i]);
|
|
6807
6981
|
}
|
|
6808
6982
|
button = new Button_default({ props: button_props });
|
|
6809
|
-
button.$on("click", ctx[
|
|
6983
|
+
button.$on("click", ctx[22]);
|
|
6810
6984
|
return {
|
|
6811
6985
|
c() {
|
|
6812
6986
|
create_component6(button.$$.fragment);
|
|
@@ -6816,8 +6990,8 @@ function create_if_block_7(ctx) {
|
|
|
6816
6990
|
current = true;
|
|
6817
6991
|
},
|
|
6818
6992
|
p(ctx2, dirty) {
|
|
6819
|
-
const button_changes = dirty[0] &
|
|
6820
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
6993
|
+
const button_changes = dirty[0] & 32768 ? get_spread_update2(button_spread_levels, [button_spread_levels[0], get_spread_object2(ctx2[15])]) : {};
|
|
6994
|
+
if (dirty[0] & 2 | dirty[1] & 262144) {
|
|
6821
6995
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6822
6996
|
}
|
|
6823
6997
|
button.$set(button_changes);
|
|
@@ -6903,7 +7077,7 @@ function create_else_block_5(ctx) {
|
|
|
6903
7077
|
}
|
|
6904
7078
|
};
|
|
6905
7079
|
}
|
|
6906
|
-
function
|
|
7080
|
+
function create_if_block_7(ctx) {
|
|
6907
7081
|
let icons_clickfilled;
|
|
6908
7082
|
let current;
|
|
6909
7083
|
icons_clickfilled = new Icons_default.ClickFilled({
|
|
@@ -6943,10 +7117,10 @@ function create_default_slot_8(ctx) {
|
|
|
6943
7117
|
let if_block;
|
|
6944
7118
|
let if_block_anchor;
|
|
6945
7119
|
let current;
|
|
6946
|
-
const if_block_creators = [
|
|
7120
|
+
const if_block_creators = [create_if_block_7, create_else_block_5];
|
|
6947
7121
|
const if_blocks = [];
|
|
6948
7122
|
function select_block_type(ctx2, dirty) {
|
|
6949
|
-
if (ctx2[
|
|
7123
|
+
if (ctx2[8] === "clicker")
|
|
6950
7124
|
return 0;
|
|
6951
7125
|
return 1;
|
|
6952
7126
|
}
|
|
@@ -6959,7 +7133,7 @@ function create_default_slot_8(ctx) {
|
|
|
6959
7133
|
},
|
|
6960
7134
|
m(target, anchor) {
|
|
6961
7135
|
if_blocks[current_block_type_index].m(target, anchor);
|
|
6962
|
-
|
|
7136
|
+
insert54(target, if_block_anchor, anchor);
|
|
6963
7137
|
current = true;
|
|
6964
7138
|
},
|
|
6965
7139
|
p(ctx2, dirty) {
|
|
@@ -6997,7 +7171,7 @@ function create_default_slot_8(ctx) {
|
|
|
6997
7171
|
d(detaching) {
|
|
6998
7172
|
if_blocks[current_block_type_index].d(detaching);
|
|
6999
7173
|
if (detaching)
|
|
7000
|
-
|
|
7174
|
+
detach54(if_block_anchor);
|
|
7001
7175
|
}
|
|
7002
7176
|
};
|
|
7003
7177
|
}
|
|
@@ -7034,7 +7208,7 @@ function create_else_block_4(ctx) {
|
|
|
7034
7208
|
}
|
|
7035
7209
|
};
|
|
7036
7210
|
}
|
|
7037
|
-
function
|
|
7211
|
+
function create_if_block_6(ctx) {
|
|
7038
7212
|
let icons_selectorfilled;
|
|
7039
7213
|
let current;
|
|
7040
7214
|
icons_selectorfilled = new Icons_default.SelectorFilled({
|
|
@@ -7074,10 +7248,10 @@ function create_default_slot_7(ctx) {
|
|
|
7074
7248
|
let if_block;
|
|
7075
7249
|
let if_block_anchor;
|
|
7076
7250
|
let current;
|
|
7077
|
-
const if_block_creators = [
|
|
7251
|
+
const if_block_creators = [create_if_block_6, create_else_block_4];
|
|
7078
7252
|
const if_blocks = [];
|
|
7079
7253
|
function select_block_type_1(ctx2, dirty) {
|
|
7080
|
-
if (ctx2[
|
|
7254
|
+
if (ctx2[8] === "selector")
|
|
7081
7255
|
return 0;
|
|
7082
7256
|
return 1;
|
|
7083
7257
|
}
|
|
@@ -7090,7 +7264,7 @@ function create_default_slot_7(ctx) {
|
|
|
7090
7264
|
},
|
|
7091
7265
|
m(target, anchor) {
|
|
7092
7266
|
if_blocks[current_block_type_index].m(target, anchor);
|
|
7093
|
-
|
|
7267
|
+
insert54(target, if_block_anchor, anchor);
|
|
7094
7268
|
current = true;
|
|
7095
7269
|
},
|
|
7096
7270
|
p(ctx2, dirty) {
|
|
@@ -7128,7 +7302,7 @@ function create_default_slot_7(ctx) {
|
|
|
7128
7302
|
d(detaching) {
|
|
7129
7303
|
if_blocks[current_block_type_index].d(detaching);
|
|
7130
7304
|
if (detaching)
|
|
7131
|
-
|
|
7305
|
+
detach54(if_block_anchor);
|
|
7132
7306
|
}
|
|
7133
7307
|
};
|
|
7134
7308
|
}
|
|
@@ -7165,7 +7339,7 @@ function create_else_block_3(ctx) {
|
|
|
7165
7339
|
}
|
|
7166
7340
|
};
|
|
7167
7341
|
}
|
|
7168
|
-
function
|
|
7342
|
+
function create_if_block_5(ctx) {
|
|
7169
7343
|
let icons_pencilfilled;
|
|
7170
7344
|
let current;
|
|
7171
7345
|
icons_pencilfilled = new Icons_default.PencilFilled({
|
|
@@ -7205,10 +7379,10 @@ function create_default_slot_6(ctx) {
|
|
|
7205
7379
|
let if_block;
|
|
7206
7380
|
let if_block_anchor;
|
|
7207
7381
|
let current;
|
|
7208
|
-
const if_block_creators = [
|
|
7382
|
+
const if_block_creators = [create_if_block_5, create_else_block_3];
|
|
7209
7383
|
const if_blocks = [];
|
|
7210
7384
|
function select_block_type_2(ctx2, dirty) {
|
|
7211
|
-
if (ctx2[
|
|
7385
|
+
if (ctx2[8] === "pencil")
|
|
7212
7386
|
return 0;
|
|
7213
7387
|
return 1;
|
|
7214
7388
|
}
|
|
@@ -7221,7 +7395,7 @@ function create_default_slot_6(ctx) {
|
|
|
7221
7395
|
},
|
|
7222
7396
|
m(target, anchor) {
|
|
7223
7397
|
if_blocks[current_block_type_index].m(target, anchor);
|
|
7224
|
-
|
|
7398
|
+
insert54(target, if_block_anchor, anchor);
|
|
7225
7399
|
current = true;
|
|
7226
7400
|
},
|
|
7227
7401
|
p(ctx2, dirty) {
|
|
@@ -7259,7 +7433,7 @@ function create_default_slot_6(ctx) {
|
|
|
7259
7433
|
d(detaching) {
|
|
7260
7434
|
if_blocks[current_block_type_index].d(detaching);
|
|
7261
7435
|
if (detaching)
|
|
7262
|
-
|
|
7436
|
+
detach54(if_block_anchor);
|
|
7263
7437
|
}
|
|
7264
7438
|
};
|
|
7265
7439
|
}
|
|
@@ -7296,7 +7470,7 @@ function create_else_block_2(ctx) {
|
|
|
7296
7470
|
}
|
|
7297
7471
|
};
|
|
7298
7472
|
}
|
|
7299
|
-
function
|
|
7473
|
+
function create_if_block_4(ctx) {
|
|
7300
7474
|
let icons_textfilled;
|
|
7301
7475
|
let current;
|
|
7302
7476
|
icons_textfilled = new Icons_default.TextFilled({
|
|
@@ -7336,10 +7510,10 @@ function create_default_slot_53(ctx) {
|
|
|
7336
7510
|
let if_block;
|
|
7337
7511
|
let if_block_anchor;
|
|
7338
7512
|
let current;
|
|
7339
|
-
const if_block_creators = [
|
|
7513
|
+
const if_block_creators = [create_if_block_4, create_else_block_2];
|
|
7340
7514
|
const if_blocks = [];
|
|
7341
7515
|
function select_block_type_3(ctx2, dirty) {
|
|
7342
|
-
if (ctx2[
|
|
7516
|
+
if (ctx2[8] === "text")
|
|
7343
7517
|
return 0;
|
|
7344
7518
|
return 1;
|
|
7345
7519
|
}
|
|
@@ -7352,7 +7526,7 @@ function create_default_slot_53(ctx) {
|
|
|
7352
7526
|
},
|
|
7353
7527
|
m(target, anchor) {
|
|
7354
7528
|
if_blocks[current_block_type_index].m(target, anchor);
|
|
7355
|
-
|
|
7529
|
+
insert54(target, if_block_anchor, anchor);
|
|
7356
7530
|
current = true;
|
|
7357
7531
|
},
|
|
7358
7532
|
p(ctx2, dirty) {
|
|
@@ -7390,7 +7564,7 @@ function create_default_slot_53(ctx) {
|
|
|
7390
7564
|
d(detaching) {
|
|
7391
7565
|
if_blocks[current_block_type_index].d(detaching);
|
|
7392
7566
|
if (detaching)
|
|
7393
|
-
|
|
7567
|
+
detach54(if_block_anchor);
|
|
7394
7568
|
}
|
|
7395
7569
|
};
|
|
7396
7570
|
}
|
|
@@ -7398,7 +7572,7 @@ function create_else_block_12(ctx) {
|
|
|
7398
7572
|
let switch_instance;
|
|
7399
7573
|
let switch_instance_anchor;
|
|
7400
7574
|
let current;
|
|
7401
|
-
var switch_value = shapesIcon[ctx[
|
|
7575
|
+
var switch_value = shapesIcon[ctx[10]];
|
|
7402
7576
|
function switch_props(ctx2) {
|
|
7403
7577
|
return { props: { theme: ctx2[1] } };
|
|
7404
7578
|
}
|
|
@@ -7415,14 +7589,14 @@ function create_else_block_12(ctx) {
|
|
|
7415
7589
|
if (switch_instance) {
|
|
7416
7590
|
mount_component6(switch_instance, target, anchor);
|
|
7417
7591
|
}
|
|
7418
|
-
|
|
7592
|
+
insert54(target, switch_instance_anchor, anchor);
|
|
7419
7593
|
current = true;
|
|
7420
7594
|
},
|
|
7421
7595
|
p(ctx2, dirty) {
|
|
7422
7596
|
const switch_instance_changes = {};
|
|
7423
7597
|
if (dirty[0] & 2)
|
|
7424
7598
|
switch_instance_changes.theme = ctx2[1];
|
|
7425
|
-
if (switch_value !== (switch_value = shapesIcon[ctx2[
|
|
7599
|
+
if (switch_value !== (switch_value = shapesIcon[ctx2[10]])) {
|
|
7426
7600
|
if (switch_instance) {
|
|
7427
7601
|
group_outros4();
|
|
7428
7602
|
const old_component = switch_instance;
|
|
@@ -7457,17 +7631,17 @@ function create_else_block_12(ctx) {
|
|
|
7457
7631
|
},
|
|
7458
7632
|
d(detaching) {
|
|
7459
7633
|
if (detaching)
|
|
7460
|
-
|
|
7634
|
+
detach54(switch_instance_anchor);
|
|
7461
7635
|
if (switch_instance)
|
|
7462
7636
|
destroy_component6(switch_instance, detaching);
|
|
7463
7637
|
}
|
|
7464
7638
|
};
|
|
7465
7639
|
}
|
|
7466
|
-
function
|
|
7640
|
+
function create_if_block_3(ctx) {
|
|
7467
7641
|
let switch_instance;
|
|
7468
7642
|
let switch_instance_anchor;
|
|
7469
7643
|
let current;
|
|
7470
|
-
var switch_value = shapesIconActive[ctx[
|
|
7644
|
+
var switch_value = shapesIconActive[ctx[10]];
|
|
7471
7645
|
function switch_props(ctx2) {
|
|
7472
7646
|
return {
|
|
7473
7647
|
props: { theme: ctx2[1], active: true }
|
|
@@ -7486,14 +7660,14 @@ function create_if_block_2(ctx) {
|
|
|
7486
7660
|
if (switch_instance) {
|
|
7487
7661
|
mount_component6(switch_instance, target, anchor);
|
|
7488
7662
|
}
|
|
7489
|
-
|
|
7663
|
+
insert54(target, switch_instance_anchor, anchor);
|
|
7490
7664
|
current = true;
|
|
7491
7665
|
},
|
|
7492
7666
|
p(ctx2, dirty) {
|
|
7493
7667
|
const switch_instance_changes = {};
|
|
7494
7668
|
if (dirty[0] & 2)
|
|
7495
7669
|
switch_instance_changes.theme = ctx2[1];
|
|
7496
|
-
if (switch_value !== (switch_value = shapesIconActive[ctx2[
|
|
7670
|
+
if (switch_value !== (switch_value = shapesIconActive[ctx2[10]])) {
|
|
7497
7671
|
if (switch_instance) {
|
|
7498
7672
|
group_outros4();
|
|
7499
7673
|
const old_component = switch_instance;
|
|
@@ -7528,7 +7702,7 @@ function create_if_block_2(ctx) {
|
|
|
7528
7702
|
},
|
|
7529
7703
|
d(detaching) {
|
|
7530
7704
|
if (detaching)
|
|
7531
|
-
|
|
7705
|
+
detach54(switch_instance_anchor);
|
|
7532
7706
|
if (switch_instance)
|
|
7533
7707
|
destroy_component6(switch_instance, detaching);
|
|
7534
7708
|
}
|
|
@@ -7539,10 +7713,10 @@ function create_default_slot_43(ctx) {
|
|
|
7539
7713
|
let if_block;
|
|
7540
7714
|
let if_block_anchor;
|
|
7541
7715
|
let current;
|
|
7542
|
-
const if_block_creators = [
|
|
7716
|
+
const if_block_creators = [create_if_block_3, create_else_block_12];
|
|
7543
7717
|
const if_blocks = [];
|
|
7544
7718
|
function select_block_type_4(ctx2, dirty) {
|
|
7545
|
-
if (ctx2[
|
|
7719
|
+
if (ctx2[8] === ctx2[10] || ctx2[8] === "shape" && ctx2[7] === ctx2[10])
|
|
7546
7720
|
return 0;
|
|
7547
7721
|
return 1;
|
|
7548
7722
|
}
|
|
@@ -7555,7 +7729,7 @@ function create_default_slot_43(ctx) {
|
|
|
7555
7729
|
},
|
|
7556
7730
|
m(target, anchor) {
|
|
7557
7731
|
if_blocks[current_block_type_index].m(target, anchor);
|
|
7558
|
-
|
|
7732
|
+
insert54(target, if_block_anchor, anchor);
|
|
7559
7733
|
current = true;
|
|
7560
7734
|
},
|
|
7561
7735
|
p(ctx2, dirty) {
|
|
@@ -7593,7 +7767,7 @@ function create_default_slot_43(ctx) {
|
|
|
7593
7767
|
d(detaching) {
|
|
7594
7768
|
if_blocks[current_block_type_index].d(detaching);
|
|
7595
7769
|
if (detaching)
|
|
7596
|
-
|
|
7770
|
+
detach54(if_block_anchor);
|
|
7597
7771
|
}
|
|
7598
7772
|
};
|
|
7599
7773
|
}
|
|
@@ -7630,7 +7804,7 @@ function create_else_block6(ctx) {
|
|
|
7630
7804
|
}
|
|
7631
7805
|
};
|
|
7632
7806
|
}
|
|
7633
|
-
function
|
|
7807
|
+
function create_if_block_2(ctx) {
|
|
7634
7808
|
let icons_eraserfilled;
|
|
7635
7809
|
let current;
|
|
7636
7810
|
icons_eraserfilled = new Icons_default.EraserFilled({
|
|
@@ -7670,10 +7844,10 @@ function create_default_slot_34(ctx) {
|
|
|
7670
7844
|
let if_block;
|
|
7671
7845
|
let if_block_anchor;
|
|
7672
7846
|
let current;
|
|
7673
|
-
const if_block_creators = [
|
|
7847
|
+
const if_block_creators = [create_if_block_2, create_else_block6];
|
|
7674
7848
|
const if_blocks = [];
|
|
7675
7849
|
function select_block_type_5(ctx2, dirty) {
|
|
7676
|
-
if (ctx2[
|
|
7850
|
+
if (ctx2[8] === "eraser")
|
|
7677
7851
|
return 0;
|
|
7678
7852
|
return 1;
|
|
7679
7853
|
}
|
|
@@ -7686,7 +7860,7 @@ function create_default_slot_34(ctx) {
|
|
|
7686
7860
|
},
|
|
7687
7861
|
m(target, anchor) {
|
|
7688
7862
|
if_blocks[current_block_type_index].m(target, anchor);
|
|
7689
|
-
|
|
7863
|
+
insert54(target, if_block_anchor, anchor);
|
|
7690
7864
|
current = true;
|
|
7691
7865
|
},
|
|
7692
7866
|
p(ctx2, dirty) {
|
|
@@ -7724,7 +7898,7 @@ function create_default_slot_34(ctx) {
|
|
|
7724
7898
|
d(detaching) {
|
|
7725
7899
|
if_blocks[current_block_type_index].d(detaching);
|
|
7726
7900
|
if (detaching)
|
|
7727
|
-
|
|
7901
|
+
detach54(if_block_anchor);
|
|
7728
7902
|
}
|
|
7729
7903
|
};
|
|
7730
7904
|
}
|
|
@@ -7734,30 +7908,84 @@ function create_default_slot_24(ctx) {
|
|
|
7734
7908
|
icons_clear = new Icons_default.Clear({ props: { theme: ctx[1] } });
|
|
7735
7909
|
return {
|
|
7736
7910
|
c() {
|
|
7737
|
-
create_component6(icons_clear.$$.fragment);
|
|
7911
|
+
create_component6(icons_clear.$$.fragment);
|
|
7912
|
+
},
|
|
7913
|
+
m(target, anchor) {
|
|
7914
|
+
mount_component6(icons_clear, target, anchor);
|
|
7915
|
+
current = true;
|
|
7916
|
+
},
|
|
7917
|
+
p(ctx2, dirty) {
|
|
7918
|
+
const icons_clear_changes = {};
|
|
7919
|
+
if (dirty[0] & 2)
|
|
7920
|
+
icons_clear_changes.theme = ctx2[1];
|
|
7921
|
+
icons_clear.$set(icons_clear_changes);
|
|
7922
|
+
},
|
|
7923
|
+
i(local) {
|
|
7924
|
+
if (current)
|
|
7925
|
+
return;
|
|
7926
|
+
transition_in8(icons_clear.$$.fragment, local);
|
|
7927
|
+
current = true;
|
|
7928
|
+
},
|
|
7929
|
+
o(local) {
|
|
7930
|
+
transition_out8(icons_clear.$$.fragment, local);
|
|
7931
|
+
current = false;
|
|
7932
|
+
},
|
|
7933
|
+
d(detaching) {
|
|
7934
|
+
destroy_component6(icons_clear, detaching);
|
|
7935
|
+
}
|
|
7936
|
+
};
|
|
7937
|
+
}
|
|
7938
|
+
function create_if_block_12(ctx) {
|
|
7939
|
+
let button;
|
|
7940
|
+
let current;
|
|
7941
|
+
const button_spread_levels = [
|
|
7942
|
+
{ class: "apps" },
|
|
7943
|
+
ctx[15],
|
|
7944
|
+
{ content: ctx[9].apps },
|
|
7945
|
+
{ menu: ctx[14] },
|
|
7946
|
+
{ menu_placement: "right-end" }
|
|
7947
|
+
];
|
|
7948
|
+
let button_props = {
|
|
7949
|
+
$$slots: { default: [create_default_slot_14] },
|
|
7950
|
+
$$scope: { ctx }
|
|
7951
|
+
};
|
|
7952
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
7953
|
+
button_props = assign2(button_props, button_spread_levels[i]);
|
|
7954
|
+
}
|
|
7955
|
+
button = new Button_default({ props: button_props });
|
|
7956
|
+
return {
|
|
7957
|
+
c() {
|
|
7958
|
+
create_component6(button.$$.fragment);
|
|
7738
7959
|
},
|
|
7739
7960
|
m(target, anchor) {
|
|
7740
|
-
mount_component6(
|
|
7961
|
+
mount_component6(button, target, anchor);
|
|
7741
7962
|
current = true;
|
|
7742
7963
|
},
|
|
7743
7964
|
p(ctx2, dirty) {
|
|
7744
|
-
const
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7965
|
+
const button_changes = dirty[0] & 49664 ? get_spread_update2(button_spread_levels, [
|
|
7966
|
+
button_spread_levels[0],
|
|
7967
|
+
dirty[0] & 32768 && get_spread_object2(ctx2[15]),
|
|
7968
|
+
dirty[0] & 512 && { content: ctx2[9].apps },
|
|
7969
|
+
dirty[0] & 16384 && { menu: ctx2[14] },
|
|
7970
|
+
button_spread_levels[4]
|
|
7971
|
+
]) : {};
|
|
7972
|
+
if (dirty[0] & 2 | dirty[1] & 262144) {
|
|
7973
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7974
|
+
}
|
|
7975
|
+
button.$set(button_changes);
|
|
7748
7976
|
},
|
|
7749
7977
|
i(local) {
|
|
7750
7978
|
if (current)
|
|
7751
7979
|
return;
|
|
7752
|
-
transition_in8(
|
|
7980
|
+
transition_in8(button.$$.fragment, local);
|
|
7753
7981
|
current = true;
|
|
7754
7982
|
},
|
|
7755
7983
|
o(local) {
|
|
7756
|
-
transition_out8(
|
|
7984
|
+
transition_out8(button.$$.fragment, local);
|
|
7757
7985
|
current = false;
|
|
7758
7986
|
},
|
|
7759
7987
|
d(detaching) {
|
|
7760
|
-
destroy_component6(
|
|
7988
|
+
destroy_component6(button, detaching);
|
|
7761
7989
|
}
|
|
7762
7990
|
};
|
|
7763
7991
|
}
|
|
@@ -7807,7 +8035,7 @@ function create_if_block6(ctx) {
|
|
|
7807
8035
|
$$scope: { ctx }
|
|
7808
8036
|
}
|
|
7809
8037
|
});
|
|
7810
|
-
button.$on("click", ctx[
|
|
8038
|
+
button.$on("click", ctx[23]);
|
|
7811
8039
|
return {
|
|
7812
8040
|
c() {
|
|
7813
8041
|
create_component6(button.$$.fragment);
|
|
@@ -7822,7 +8050,7 @@ function create_if_block6(ctx) {
|
|
|
7822
8050
|
button_changes.theme = ctx2[1];
|
|
7823
8051
|
if (dirty[0] & 8)
|
|
7824
8052
|
button_changes.disabled = ctx2[3];
|
|
7825
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
8053
|
+
if (dirty[0] & 2 | dirty[1] & 262144) {
|
|
7826
8054
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7827
8055
|
}
|
|
7828
8056
|
button.$set(button_changes);
|
|
@@ -7875,7 +8103,7 @@ function create_default_slot4(ctx) {
|
|
|
7875
8103
|
}
|
|
7876
8104
|
};
|
|
7877
8105
|
}
|
|
7878
|
-
function
|
|
8106
|
+
function create_each_block4(ctx) {
|
|
7879
8107
|
let button;
|
|
7880
8108
|
let img;
|
|
7881
8109
|
let img_class_value;
|
|
@@ -7884,7 +8112,7 @@ function create_each_block3(ctx) {
|
|
|
7884
8112
|
let img_title_value;
|
|
7885
8113
|
let t0;
|
|
7886
8114
|
let span;
|
|
7887
|
-
let t1_value = ctx[
|
|
8115
|
+
let t1_value = ctx[43] + "";
|
|
7888
8116
|
let t1;
|
|
7889
8117
|
let span_class_value;
|
|
7890
8118
|
let t2;
|
|
@@ -7896,36 +8124,36 @@ function create_each_block3(ctx) {
|
|
|
7896
8124
|
let dispose;
|
|
7897
8125
|
return {
|
|
7898
8126
|
c() {
|
|
7899
|
-
button =
|
|
7900
|
-
img =
|
|
7901
|
-
t0 =
|
|
7902
|
-
span =
|
|
8127
|
+
button = element11("button");
|
|
8128
|
+
img = element11("img");
|
|
8129
|
+
t0 = space8();
|
|
8130
|
+
span = element11("span");
|
|
7903
8131
|
t1 = text_1(t1_value);
|
|
7904
|
-
t2 =
|
|
7905
|
-
|
|
7906
|
-
if (!src_url_equal2(img.src, img_src_value = ctx[
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
button.disabled = button_disabled_value = ctx[
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
},
|
|
7918
|
-
m(target, anchor) {
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
8132
|
+
t2 = space8();
|
|
8133
|
+
attr55(img, "class", img_class_value = name5 + "-app-btn-icon " + ctx[1]);
|
|
8134
|
+
if (!src_url_equal2(img.src, img_src_value = ctx[42]))
|
|
8135
|
+
attr55(img, "src", img_src_value);
|
|
8136
|
+
attr55(img, "alt", img_alt_value = ctx[44]);
|
|
8137
|
+
attr55(img, "title", img_title_value = ctx[43]);
|
|
8138
|
+
attr55(span, "class", span_class_value = name5 + "-app-btn-text " + ctx[1]);
|
|
8139
|
+
attr55(button, "class", button_class_value = name5 + "-app-btn " + ctx[44] + " " + ctx[1]);
|
|
8140
|
+
attr55(button, "title", button_title_value = ctx[43] + (ctx[46] && ctx[46].reason ? ": " + ctx[46].reason : ""));
|
|
8141
|
+
attr55(button, "data-app-kind", button_data_app_kind_value = ctx[41].kind);
|
|
8142
|
+
button.disabled = button_disabled_value = ctx[46] && ctx[46].status !== "idle";
|
|
8143
|
+
toggle_class49(button, "is-loading", ctx[46] && ctx[46].status === "loading");
|
|
8144
|
+
toggle_class49(button, "is-failed", ctx[46] && ctx[46].status === "failed");
|
|
8145
|
+
},
|
|
8146
|
+
m(target, anchor) {
|
|
8147
|
+
insert54(target, button, anchor);
|
|
8148
|
+
append54(button, img);
|
|
8149
|
+
append54(button, t0);
|
|
8150
|
+
append54(button, span);
|
|
8151
|
+
append54(span, t1);
|
|
8152
|
+
append54(button, t2);
|
|
7925
8153
|
if (!mounted) {
|
|
7926
|
-
dispose =
|
|
7927
|
-
if (is_function3(ctx[0] && ctx[
|
|
7928
|
-
(ctx[0] && ctx[
|
|
8154
|
+
dispose = listen6(button, "click", function() {
|
|
8155
|
+
if (is_function3(ctx[0] && ctx[45].bind(null, ctx[0])))
|
|
8156
|
+
(ctx[0] && ctx[45].bind(null, ctx[0])).apply(this, arguments);
|
|
7929
8157
|
});
|
|
7930
8158
|
mounted = true;
|
|
7931
8159
|
}
|
|
@@ -7933,50 +8161,50 @@ function create_each_block3(ctx) {
|
|
|
7933
8161
|
p(new_ctx, dirty) {
|
|
7934
8162
|
ctx = new_ctx;
|
|
7935
8163
|
if (dirty[0] & 2 && img_class_value !== (img_class_value = name5 + "-app-btn-icon " + ctx[1])) {
|
|
7936
|
-
|
|
8164
|
+
attr55(img, "class", img_class_value);
|
|
7937
8165
|
}
|
|
7938
|
-
if (dirty[0] &
|
|
7939
|
-
|
|
8166
|
+
if (dirty[0] & 524288 && !src_url_equal2(img.src, img_src_value = ctx[42])) {
|
|
8167
|
+
attr55(img, "src", img_src_value);
|
|
7940
8168
|
}
|
|
7941
|
-
if (dirty[0] &
|
|
7942
|
-
|
|
8169
|
+
if (dirty[0] & 524288 && img_alt_value !== (img_alt_value = ctx[44])) {
|
|
8170
|
+
attr55(img, "alt", img_alt_value);
|
|
7943
8171
|
}
|
|
7944
|
-
if (dirty[0] &
|
|
7945
|
-
|
|
8172
|
+
if (dirty[0] & 524288 && img_title_value !== (img_title_value = ctx[43])) {
|
|
8173
|
+
attr55(img, "title", img_title_value);
|
|
7946
8174
|
}
|
|
7947
|
-
if (dirty[0] &
|
|
8175
|
+
if (dirty[0] & 524288 && t1_value !== (t1_value = ctx[43] + ""))
|
|
7948
8176
|
set_data3(t1, t1_value);
|
|
7949
8177
|
if (dirty[0] & 2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + ctx[1])) {
|
|
7950
|
-
|
|
8178
|
+
attr55(span, "class", span_class_value);
|
|
7951
8179
|
}
|
|
7952
|
-
if (dirty[0] &
|
|
7953
|
-
|
|
8180
|
+
if (dirty[0] & 524290 && button_class_value !== (button_class_value = name5 + "-app-btn " + ctx[44] + " " + ctx[1])) {
|
|
8181
|
+
attr55(button, "class", button_class_value);
|
|
7954
8182
|
}
|
|
7955
|
-
if (dirty[0] &
|
|
7956
|
-
|
|
8183
|
+
if (dirty[0] & 1572864 && button_title_value !== (button_title_value = ctx[43] + (ctx[46] && ctx[46].reason ? ": " + ctx[46].reason : ""))) {
|
|
8184
|
+
attr55(button, "title", button_title_value);
|
|
7957
8185
|
}
|
|
7958
|
-
if (dirty[0] &
|
|
7959
|
-
|
|
8186
|
+
if (dirty[0] & 524288 && button_data_app_kind_value !== (button_data_app_kind_value = ctx[41].kind)) {
|
|
8187
|
+
attr55(button, "data-app-kind", button_data_app_kind_value);
|
|
7960
8188
|
}
|
|
7961
|
-
if (dirty[0] &
|
|
8189
|
+
if (dirty[0] & 1572864 && button_disabled_value !== (button_disabled_value = ctx[46] && ctx[46].status !== "idle")) {
|
|
7962
8190
|
button.disabled = button_disabled_value;
|
|
7963
8191
|
}
|
|
7964
|
-
if (dirty[0] &
|
|
7965
|
-
|
|
8192
|
+
if (dirty[0] & 1572866) {
|
|
8193
|
+
toggle_class49(button, "is-loading", ctx[46] && ctx[46].status === "loading");
|
|
7966
8194
|
}
|
|
7967
|
-
if (dirty[0] &
|
|
7968
|
-
|
|
8195
|
+
if (dirty[0] & 1572866) {
|
|
8196
|
+
toggle_class49(button, "is-failed", ctx[46] && ctx[46].status === "failed");
|
|
7969
8197
|
}
|
|
7970
8198
|
},
|
|
7971
8199
|
d(detaching) {
|
|
7972
8200
|
if (detaching)
|
|
7973
|
-
|
|
8201
|
+
detach54(button);
|
|
7974
8202
|
mounted = false;
|
|
7975
8203
|
dispose();
|
|
7976
8204
|
}
|
|
7977
8205
|
};
|
|
7978
8206
|
}
|
|
7979
|
-
function
|
|
8207
|
+
function create_fragment55(ctx) {
|
|
7980
8208
|
let t0;
|
|
7981
8209
|
let div0;
|
|
7982
8210
|
let button0;
|
|
@@ -7993,7 +8221,6 @@ function create_fragment54(ctx) {
|
|
|
7993
8221
|
let t6;
|
|
7994
8222
|
let button6;
|
|
7995
8223
|
let t7;
|
|
7996
|
-
let button7;
|
|
7997
8224
|
let div0_class_value;
|
|
7998
8225
|
let scrollHeight_action;
|
|
7999
8226
|
let scrollTop_action;
|
|
@@ -8010,7 +8237,7 @@ function create_fragment54(ctx) {
|
|
|
8010
8237
|
let div2_class_value;
|
|
8011
8238
|
let t12;
|
|
8012
8239
|
let div3;
|
|
8013
|
-
let
|
|
8240
|
+
let textcolor;
|
|
8014
8241
|
let div3_class_value;
|
|
8015
8242
|
let t13;
|
|
8016
8243
|
let div6;
|
|
@@ -8024,7 +8251,7 @@ function create_fragment54(ctx) {
|
|
|
8024
8251
|
let div5;
|
|
8025
8252
|
let div5_class_value;
|
|
8026
8253
|
let t17;
|
|
8027
|
-
let
|
|
8254
|
+
let strokecolor1;
|
|
8028
8255
|
let div6_class_value;
|
|
8029
8256
|
let t18;
|
|
8030
8257
|
let div7;
|
|
@@ -8033,11 +8260,11 @@ function create_fragment54(ctx) {
|
|
|
8033
8260
|
let current;
|
|
8034
8261
|
let mounted;
|
|
8035
8262
|
let dispose;
|
|
8036
|
-
let if_block0 = ctx[5] &&
|
|
8263
|
+
let if_block0 = ctx[5] && create_if_block_8(ctx);
|
|
8037
8264
|
const button0_spread_levels = [
|
|
8038
8265
|
{ class: "clicker" },
|
|
8039
|
-
ctx[
|
|
8040
|
-
{ content: ctx[
|
|
8266
|
+
ctx[15],
|
|
8267
|
+
{ content: ctx[18].clicker }
|
|
8041
8268
|
];
|
|
8042
8269
|
let button0_props = {
|
|
8043
8270
|
$$slots: { default: [create_default_slot_8] },
|
|
@@ -8047,11 +8274,11 @@ function create_fragment54(ctx) {
|
|
|
8047
8274
|
button0_props = assign2(button0_props, button0_spread_levels[i]);
|
|
8048
8275
|
}
|
|
8049
8276
|
button0 = new Button_default({ props: button0_props });
|
|
8050
|
-
button0.$on("click", ctx[
|
|
8277
|
+
button0.$on("click", ctx[24]);
|
|
8051
8278
|
const button1_spread_levels = [
|
|
8052
8279
|
{ class: "selector" },
|
|
8053
|
-
ctx[
|
|
8054
|
-
{ content: ctx[
|
|
8280
|
+
ctx[15],
|
|
8281
|
+
{ content: ctx[18].selector }
|
|
8055
8282
|
];
|
|
8056
8283
|
let button1_props = {
|
|
8057
8284
|
$$slots: { default: [create_default_slot_7] },
|
|
@@ -8061,12 +8288,12 @@ function create_fragment54(ctx) {
|
|
|
8061
8288
|
button1_props = assign2(button1_props, button1_spread_levels[i]);
|
|
8062
8289
|
}
|
|
8063
8290
|
button1 = new Button_default({ props: button1_props });
|
|
8064
|
-
button1.$on("click", ctx[
|
|
8291
|
+
button1.$on("click", ctx[25]);
|
|
8065
8292
|
const button2_spread_levels = [
|
|
8066
8293
|
{ class: "pencil" },
|
|
8067
|
-
ctx[
|
|
8068
|
-
{ content: ctx[
|
|
8069
|
-
{ menu: ctx[
|
|
8294
|
+
ctx[15],
|
|
8295
|
+
{ content: ctx[18].pencil },
|
|
8296
|
+
{ menu: ctx[11] }
|
|
8070
8297
|
];
|
|
8071
8298
|
let button2_props = {
|
|
8072
8299
|
$$slots: { default: [create_default_slot_6] },
|
|
@@ -8076,12 +8303,12 @@ function create_fragment54(ctx) {
|
|
|
8076
8303
|
button2_props = assign2(button2_props, button2_spread_levels[i]);
|
|
8077
8304
|
}
|
|
8078
8305
|
button2 = new Button_default({ props: button2_props });
|
|
8079
|
-
button2.$on("click", ctx[
|
|
8306
|
+
button2.$on("click", ctx[26]);
|
|
8080
8307
|
const button3_spread_levels = [
|
|
8081
8308
|
{ class: "text" },
|
|
8082
|
-
ctx[
|
|
8083
|
-
{ content: ctx[
|
|
8084
|
-
{ menu: ctx[
|
|
8309
|
+
ctx[15],
|
|
8310
|
+
{ content: ctx[18].text },
|
|
8311
|
+
{ menu: ctx[12] }
|
|
8085
8312
|
];
|
|
8086
8313
|
let button3_props = {
|
|
8087
8314
|
$$slots: { default: [create_default_slot_53] },
|
|
@@ -8091,12 +8318,12 @@ function create_fragment54(ctx) {
|
|
|
8091
8318
|
button3_props = assign2(button3_props, button3_spread_levels[i]);
|
|
8092
8319
|
}
|
|
8093
8320
|
button3 = new Button_default({ props: button3_props });
|
|
8094
|
-
button3.$on("click", ctx[
|
|
8321
|
+
button3.$on("click", ctx[27]);
|
|
8095
8322
|
const button4_spread_levels = [
|
|
8096
8323
|
{ class: "shapes" },
|
|
8097
|
-
ctx[
|
|
8098
|
-
{ content: ctx[
|
|
8099
|
-
{ menu: ctx[
|
|
8324
|
+
ctx[15],
|
|
8325
|
+
{ content: ctx[9].shapes },
|
|
8326
|
+
{ menu: ctx[13] }
|
|
8100
8327
|
];
|
|
8101
8328
|
let button4_props = {
|
|
8102
8329
|
$$slots: { default: [create_default_slot_43] },
|
|
@@ -8106,8 +8333,8 @@ function create_fragment54(ctx) {
|
|
|
8106
8333
|
button4_props = assign2(button4_props, button4_spread_levels[i]);
|
|
8107
8334
|
}
|
|
8108
8335
|
button4 = new Button_default({ props: button4_props });
|
|
8109
|
-
button4.$on("click", ctx[
|
|
8110
|
-
const button5_spread_levels = [{ class: "eraser" }, ctx[
|
|
8336
|
+
button4.$on("click", ctx[28]);
|
|
8337
|
+
const button5_spread_levels = [{ class: "eraser" }, ctx[15], { content: ctx[18].eraser }];
|
|
8111
8338
|
let button5_props = {
|
|
8112
8339
|
$$slots: { default: [create_default_slot_34] },
|
|
8113
8340
|
$$scope: { ctx }
|
|
@@ -8116,8 +8343,8 @@ function create_fragment54(ctx) {
|
|
|
8116
8343
|
button5_props = assign2(button5_props, button5_spread_levels[i]);
|
|
8117
8344
|
}
|
|
8118
8345
|
button5 = new Button_default({ props: button5_props });
|
|
8119
|
-
button5.$on("click", ctx[
|
|
8120
|
-
const button6_spread_levels = [{ class: "clear" }, ctx[
|
|
8346
|
+
button5.$on("click", ctx[29]);
|
|
8347
|
+
const button6_spread_levels = [{ class: "clear" }, ctx[15], { content: ctx[9].clear }];
|
|
8121
8348
|
let button6_props = {
|
|
8122
8349
|
$$slots: { default: [create_default_slot_24] },
|
|
8123
8350
|
$$scope: { ctx }
|
|
@@ -8126,23 +8353,9 @@ function create_fragment54(ctx) {
|
|
|
8126
8353
|
button6_props = assign2(button6_props, button6_spread_levels[i]);
|
|
8127
8354
|
}
|
|
8128
8355
|
button6 = new Button_default({ props: button6_props });
|
|
8129
|
-
button6.$on("click", ctx[
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
ctx[14],
|
|
8133
|
-
{ content: ctx[8].apps },
|
|
8134
|
-
{ menu: ctx[13] },
|
|
8135
|
-
{ menu_placement: "right-end" }
|
|
8136
|
-
];
|
|
8137
|
-
let button7_props = {
|
|
8138
|
-
$$slots: { default: [create_default_slot_14] },
|
|
8139
|
-
$$scope: { ctx }
|
|
8140
|
-
};
|
|
8141
|
-
for (let i = 0; i < button7_spread_levels.length; i += 1) {
|
|
8142
|
-
button7_props = assign2(button7_props, button7_spread_levels[i]);
|
|
8143
|
-
}
|
|
8144
|
-
button7 = new Button_default({ props: button7_props });
|
|
8145
|
-
let if_block1 = ctx[5] && create_if_block6(ctx);
|
|
8356
|
+
button6.$on("click", ctx[30]);
|
|
8357
|
+
let if_block1 = !ctx[6] && create_if_block_12(ctx);
|
|
8358
|
+
let if_block2 = ctx[5] && create_if_block6(ctx);
|
|
8146
8359
|
strokewidth0 = new StrokeWidth_default({
|
|
8147
8360
|
props: {
|
|
8148
8361
|
app: ctx[0],
|
|
@@ -8157,7 +8370,7 @@ function create_fragment54(ctx) {
|
|
|
8157
8370
|
disabled: ctx[3]
|
|
8158
8371
|
}
|
|
8159
8372
|
});
|
|
8160
|
-
|
|
8373
|
+
textcolor = new TextColor_default({
|
|
8161
8374
|
props: {
|
|
8162
8375
|
app: ctx[0],
|
|
8163
8376
|
theme: ctx[1],
|
|
@@ -8179,141 +8392,143 @@ function create_fragment54(ctx) {
|
|
|
8179
8392
|
disabled: ctx[3]
|
|
8180
8393
|
}
|
|
8181
8394
|
});
|
|
8182
|
-
|
|
8395
|
+
strokecolor1 = new StrokeColor_default({
|
|
8183
8396
|
props: {
|
|
8184
8397
|
app: ctx[0],
|
|
8185
8398
|
theme: ctx[1],
|
|
8186
8399
|
disabled: ctx[3]
|
|
8187
8400
|
}
|
|
8188
8401
|
});
|
|
8189
|
-
let each_value = ctx[
|
|
8402
|
+
let each_value = ctx[19];
|
|
8190
8403
|
let each_blocks = [];
|
|
8191
8404
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
8192
|
-
each_blocks[i] =
|
|
8405
|
+
each_blocks[i] = create_each_block4(get_each_context4(ctx, each_value, i));
|
|
8193
8406
|
}
|
|
8194
8407
|
return {
|
|
8195
8408
|
c() {
|
|
8196
8409
|
if (if_block0)
|
|
8197
8410
|
if_block0.c();
|
|
8198
|
-
t0 =
|
|
8199
|
-
div0 =
|
|
8411
|
+
t0 = space8();
|
|
8412
|
+
div0 = element11("div");
|
|
8200
8413
|
create_component6(button0.$$.fragment);
|
|
8201
|
-
t1 =
|
|
8414
|
+
t1 = space8();
|
|
8202
8415
|
create_component6(button1.$$.fragment);
|
|
8203
|
-
t2 =
|
|
8416
|
+
t2 = space8();
|
|
8204
8417
|
create_component6(button2.$$.fragment);
|
|
8205
|
-
t3 =
|
|
8418
|
+
t3 = space8();
|
|
8206
8419
|
create_component6(button3.$$.fragment);
|
|
8207
|
-
t4 =
|
|
8420
|
+
t4 = space8();
|
|
8208
8421
|
create_component6(button4.$$.fragment);
|
|
8209
|
-
t5 =
|
|
8422
|
+
t5 = space8();
|
|
8210
8423
|
create_component6(button5.$$.fragment);
|
|
8211
|
-
t6 =
|
|
8424
|
+
t6 = space8();
|
|
8212
8425
|
create_component6(button6.$$.fragment);
|
|
8213
|
-
t7 =
|
|
8214
|
-
create_component6(button7.$$.fragment);
|
|
8215
|
-
t8 = space7();
|
|
8426
|
+
t7 = space8();
|
|
8216
8427
|
if (if_block1)
|
|
8217
8428
|
if_block1.c();
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8429
|
+
t8 = space8();
|
|
8430
|
+
if (if_block2)
|
|
8431
|
+
if_block2.c();
|
|
8432
|
+
t9 = space8();
|
|
8433
|
+
div8 = element11("div");
|
|
8434
|
+
div2 = element11("div");
|
|
8221
8435
|
create_component6(strokewidth0.$$.fragment);
|
|
8222
|
-
t10 =
|
|
8223
|
-
div1 =
|
|
8224
|
-
t11 =
|
|
8436
|
+
t10 = space8();
|
|
8437
|
+
div1 = element11("div");
|
|
8438
|
+
t11 = space8();
|
|
8225
8439
|
create_component6(strokecolor0.$$.fragment);
|
|
8226
|
-
t12 =
|
|
8227
|
-
div3 =
|
|
8228
|
-
create_component6(
|
|
8229
|
-
t13 =
|
|
8230
|
-
div6 =
|
|
8440
|
+
t12 = space8();
|
|
8441
|
+
div3 = element11("div");
|
|
8442
|
+
create_component6(textcolor.$$.fragment);
|
|
8443
|
+
t13 = space8();
|
|
8444
|
+
div6 = element11("div");
|
|
8231
8445
|
create_component6(shapes2.$$.fragment);
|
|
8232
|
-
t14 =
|
|
8233
|
-
div4 =
|
|
8234
|
-
t15 =
|
|
8446
|
+
t14 = space8();
|
|
8447
|
+
div4 = element11("div");
|
|
8448
|
+
t15 = space8();
|
|
8235
8449
|
create_component6(strokewidth1.$$.fragment);
|
|
8236
|
-
t16 =
|
|
8237
|
-
div5 =
|
|
8238
|
-
t17 =
|
|
8239
|
-
create_component6(
|
|
8240
|
-
t18 =
|
|
8241
|
-
div7 =
|
|
8450
|
+
t16 = space8();
|
|
8451
|
+
div5 = element11("div");
|
|
8452
|
+
t17 = space8();
|
|
8453
|
+
create_component6(strokecolor1.$$.fragment);
|
|
8454
|
+
t18 = space8();
|
|
8455
|
+
div7 = element11("div");
|
|
8242
8456
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
8243
8457
|
each_blocks[i].c();
|
|
8244
8458
|
}
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8459
|
+
attr55(div0, "class", div0_class_value = name5 + "-scrollable");
|
|
8460
|
+
toggle_class49(div0, "scrollable", ctx[5]);
|
|
8461
|
+
attr55(div1, "class", div1_class_value = name5 + "-panel-divider");
|
|
8462
|
+
attr55(div2, "class", div2_class_value = name5 + "-panel pencil");
|
|
8463
|
+
attr55(div3, "class", div3_class_value = name5 + "-panel text");
|
|
8464
|
+
attr55(div4, "class", div4_class_value = name5 + "-panel-divider");
|
|
8465
|
+
attr55(div5, "class", div5_class_value = name5 + "-panel-divider");
|
|
8466
|
+
attr55(div6, "class", div6_class_value = name5 + "-panel shapes");
|
|
8467
|
+
attr55(div7, "class", div7_class_value = name5 + "-panel apps");
|
|
8468
|
+
set_style4(div7, "--n", ctx[19].length);
|
|
8469
|
+
attr55(div8, "class", div8_class_value = name5 + "-panel-wrapper");
|
|
8470
|
+
set_style4(div8, "display", "none");
|
|
8257
8471
|
},
|
|
8258
8472
|
m(target, anchor) {
|
|
8259
8473
|
if (if_block0)
|
|
8260
8474
|
if_block0.m(target, anchor);
|
|
8261
|
-
|
|
8262
|
-
|
|
8475
|
+
insert54(target, t0, anchor);
|
|
8476
|
+
insert54(target, div0, anchor);
|
|
8263
8477
|
mount_component6(button0, div0, null);
|
|
8264
|
-
|
|
8478
|
+
append54(div0, t1);
|
|
8265
8479
|
mount_component6(button1, div0, null);
|
|
8266
|
-
|
|
8480
|
+
append54(div0, t2);
|
|
8267
8481
|
mount_component6(button2, div0, null);
|
|
8268
|
-
|
|
8482
|
+
append54(div0, t3);
|
|
8269
8483
|
mount_component6(button3, div0, null);
|
|
8270
|
-
|
|
8484
|
+
append54(div0, t4);
|
|
8271
8485
|
mount_component6(button4, div0, null);
|
|
8272
|
-
|
|
8486
|
+
append54(div0, t5);
|
|
8273
8487
|
mount_component6(button5, div0, null);
|
|
8274
|
-
|
|
8488
|
+
append54(div0, t6);
|
|
8275
8489
|
mount_component6(button6, div0, null);
|
|
8276
|
-
|
|
8277
|
-
mount_component6(button7, div0, null);
|
|
8278
|
-
insert53(target, t8, anchor);
|
|
8490
|
+
append54(div0, t7);
|
|
8279
8491
|
if (if_block1)
|
|
8280
|
-
if_block1.m(
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8492
|
+
if_block1.m(div0, null);
|
|
8493
|
+
insert54(target, t8, anchor);
|
|
8494
|
+
if (if_block2)
|
|
8495
|
+
if_block2.m(target, anchor);
|
|
8496
|
+
insert54(target, t9, anchor);
|
|
8497
|
+
insert54(target, div8, anchor);
|
|
8498
|
+
append54(div8, div2);
|
|
8284
8499
|
mount_component6(strokewidth0, div2, null);
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8500
|
+
append54(div2, t10);
|
|
8501
|
+
append54(div2, div1);
|
|
8502
|
+
append54(div2, t11);
|
|
8288
8503
|
mount_component6(strokecolor0, div2, null);
|
|
8289
|
-
ctx[
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
mount_component6(
|
|
8293
|
-
ctx[
|
|
8294
|
-
|
|
8295
|
-
|
|
8504
|
+
ctx[35](div2);
|
|
8505
|
+
append54(div8, t12);
|
|
8506
|
+
append54(div8, div3);
|
|
8507
|
+
mount_component6(textcolor, div3, null);
|
|
8508
|
+
ctx[36](div3);
|
|
8509
|
+
append54(div8, t13);
|
|
8510
|
+
append54(div8, div6);
|
|
8296
8511
|
mount_component6(shapes2, div6, null);
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8512
|
+
append54(div6, t14);
|
|
8513
|
+
append54(div6, div4);
|
|
8514
|
+
append54(div6, t15);
|
|
8300
8515
|
mount_component6(strokewidth1, div6, null);
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
mount_component6(
|
|
8305
|
-
ctx[
|
|
8306
|
-
|
|
8307
|
-
|
|
8516
|
+
append54(div6, t16);
|
|
8517
|
+
append54(div6, div5);
|
|
8518
|
+
append54(div6, t17);
|
|
8519
|
+
mount_component6(strokecolor1, div6, null);
|
|
8520
|
+
ctx[37](div6);
|
|
8521
|
+
append54(div8, t18);
|
|
8522
|
+
append54(div8, div7);
|
|
8308
8523
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
8309
8524
|
each_blocks[i].m(div7, null);
|
|
8310
8525
|
}
|
|
8311
|
-
ctx[
|
|
8526
|
+
ctx[38](div7);
|
|
8312
8527
|
current = true;
|
|
8313
8528
|
if (!mounted) {
|
|
8314
8529
|
dispose = [
|
|
8315
8530
|
action_destroyer3(scrollHeight_action = scrollHeight.call(null, div0, ctx[4])),
|
|
8316
|
-
action_destroyer3(scrollTop_action = scrollTop.call(null, div0, ctx[
|
|
8531
|
+
action_destroyer3(scrollTop_action = scrollTop.call(null, div0, ctx[21]))
|
|
8317
8532
|
];
|
|
8318
8533
|
mounted = true;
|
|
8319
8534
|
}
|
|
@@ -8326,7 +8541,7 @@ function create_fragment54(ctx) {
|
|
|
8326
8541
|
transition_in8(if_block0, 1);
|
|
8327
8542
|
}
|
|
8328
8543
|
} else {
|
|
8329
|
-
if_block0 =
|
|
8544
|
+
if_block0 = create_if_block_8(ctx2);
|
|
8330
8545
|
if_block0.c();
|
|
8331
8546
|
transition_in8(if_block0, 1);
|
|
8332
8547
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -8338,99 +8553,83 @@ function create_fragment54(ctx) {
|
|
|
8338
8553
|
});
|
|
8339
8554
|
check_outros4();
|
|
8340
8555
|
}
|
|
8341
|
-
const button0_changes = dirty[0] &
|
|
8556
|
+
const button0_changes = dirty[0] & 294912 ? get_spread_update2(button0_spread_levels, [
|
|
8342
8557
|
button0_spread_levels[0],
|
|
8343
|
-
dirty[0] &
|
|
8344
|
-
dirty[0] &
|
|
8558
|
+
dirty[0] & 32768 && get_spread_object2(ctx2[15]),
|
|
8559
|
+
dirty[0] & 262144 && { content: ctx2[18].clicker }
|
|
8345
8560
|
]) : {};
|
|
8346
|
-
if (dirty[0] &
|
|
8561
|
+
if (dirty[0] & 258 | dirty[1] & 262144) {
|
|
8347
8562
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8348
8563
|
}
|
|
8349
8564
|
button0.$set(button0_changes);
|
|
8350
|
-
const button1_changes = dirty[0] &
|
|
8565
|
+
const button1_changes = dirty[0] & 294912 ? get_spread_update2(button1_spread_levels, [
|
|
8351
8566
|
button1_spread_levels[0],
|
|
8352
|
-
dirty[0] &
|
|
8353
|
-
dirty[0] &
|
|
8567
|
+
dirty[0] & 32768 && get_spread_object2(ctx2[15]),
|
|
8568
|
+
dirty[0] & 262144 && { content: ctx2[18].selector }
|
|
8354
8569
|
]) : {};
|
|
8355
|
-
if (dirty[0] &
|
|
8570
|
+
if (dirty[0] & 258 | dirty[1] & 262144) {
|
|
8356
8571
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8357
8572
|
}
|
|
8358
8573
|
button1.$set(button1_changes);
|
|
8359
|
-
const button2_changes = dirty[0] &
|
|
8574
|
+
const button2_changes = dirty[0] & 296960 ? get_spread_update2(button2_spread_levels, [
|
|
8360
8575
|
button2_spread_levels[0],
|
|
8361
|
-
dirty[0] &
|
|
8362
|
-
dirty[0] &
|
|
8363
|
-
dirty[0] &
|
|
8576
|
+
dirty[0] & 32768 && get_spread_object2(ctx2[15]),
|
|
8577
|
+
dirty[0] & 262144 && { content: ctx2[18].pencil },
|
|
8578
|
+
dirty[0] & 2048 && { menu: ctx2[11] }
|
|
8364
8579
|
]) : {};
|
|
8365
|
-
if (dirty[0] &
|
|
8580
|
+
if (dirty[0] & 258 | dirty[1] & 262144) {
|
|
8366
8581
|
button2_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8367
8582
|
}
|
|
8368
8583
|
button2.$set(button2_changes);
|
|
8369
|
-
const button3_changes = dirty[0] &
|
|
8584
|
+
const button3_changes = dirty[0] & 299008 ? get_spread_update2(button3_spread_levels, [
|
|
8370
8585
|
button3_spread_levels[0],
|
|
8371
|
-
dirty[0] &
|
|
8372
|
-
dirty[0] &
|
|
8373
|
-
dirty[0] &
|
|
8586
|
+
dirty[0] & 32768 && get_spread_object2(ctx2[15]),
|
|
8587
|
+
dirty[0] & 262144 && { content: ctx2[18].text },
|
|
8588
|
+
dirty[0] & 4096 && { menu: ctx2[12] }
|
|
8374
8589
|
]) : {};
|
|
8375
|
-
if (dirty[0] &
|
|
8590
|
+
if (dirty[0] & 258 | dirty[1] & 262144) {
|
|
8376
8591
|
button3_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8377
8592
|
}
|
|
8378
8593
|
button3.$set(button3_changes);
|
|
8379
|
-
const button4_changes = dirty[0] &
|
|
8594
|
+
const button4_changes = dirty[0] & 41472 ? get_spread_update2(button4_spread_levels, [
|
|
8380
8595
|
button4_spread_levels[0],
|
|
8381
|
-
dirty[0] &
|
|
8382
|
-
dirty[0] &
|
|
8383
|
-
dirty[0] &
|
|
8596
|
+
dirty[0] & 32768 && get_spread_object2(ctx2[15]),
|
|
8597
|
+
dirty[0] & 512 && { content: ctx2[9].shapes },
|
|
8598
|
+
dirty[0] & 8192 && { menu: ctx2[13] }
|
|
8384
8599
|
]) : {};
|
|
8385
|
-
if (dirty[0] &
|
|
8600
|
+
if (dirty[0] & 1410 | dirty[1] & 262144) {
|
|
8386
8601
|
button4_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8387
8602
|
}
|
|
8388
8603
|
button4.$set(button4_changes);
|
|
8389
|
-
const button5_changes = dirty[0] &
|
|
8604
|
+
const button5_changes = dirty[0] & 294912 ? get_spread_update2(button5_spread_levels, [
|
|
8390
8605
|
button5_spread_levels[0],
|
|
8391
|
-
dirty[0] &
|
|
8392
|
-
dirty[0] &
|
|
8606
|
+
dirty[0] & 32768 && get_spread_object2(ctx2[15]),
|
|
8607
|
+
dirty[0] & 262144 && { content: ctx2[18].eraser }
|
|
8393
8608
|
]) : {};
|
|
8394
|
-
if (dirty[0] &
|
|
8609
|
+
if (dirty[0] & 258 | dirty[1] & 262144) {
|
|
8395
8610
|
button5_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8396
8611
|
}
|
|
8397
8612
|
button5.$set(button5_changes);
|
|
8398
|
-
const button6_changes = dirty[0] &
|
|
8613
|
+
const button6_changes = dirty[0] & 33280 ? get_spread_update2(button6_spread_levels, [
|
|
8399
8614
|
button6_spread_levels[0],
|
|
8400
|
-
dirty[0] &
|
|
8401
|
-
dirty[0] &
|
|
8615
|
+
dirty[0] & 32768 && get_spread_object2(ctx2[15]),
|
|
8616
|
+
dirty[0] & 512 && { content: ctx2[9].clear }
|
|
8402
8617
|
]) : {};
|
|
8403
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
8618
|
+
if (dirty[0] & 2 | dirty[1] & 262144) {
|
|
8404
8619
|
button6_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8405
8620
|
}
|
|
8406
8621
|
button6.$set(button6_changes);
|
|
8407
|
-
|
|
8408
|
-
button7_spread_levels[0],
|
|
8409
|
-
dirty[0] & 16384 && get_spread_object2(ctx2[14]),
|
|
8410
|
-
dirty[0] & 256 && { content: ctx2[8].apps },
|
|
8411
|
-
dirty[0] & 8192 && { menu: ctx2[13] },
|
|
8412
|
-
button7_spread_levels[4]
|
|
8413
|
-
]) : {};
|
|
8414
|
-
if (dirty[0] & 2 | dirty[1] & 131072) {
|
|
8415
|
-
button7_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8416
|
-
}
|
|
8417
|
-
button7.$set(button7_changes);
|
|
8418
|
-
if (scrollHeight_action && is_function3(scrollHeight_action.update) && dirty[0] & 16)
|
|
8419
|
-
scrollHeight_action.update.call(null, ctx2[4]);
|
|
8420
|
-
if (dirty[0] & 32) {
|
|
8421
|
-
toggle_class48(div0, "scrollable", ctx2[5]);
|
|
8422
|
-
}
|
|
8423
|
-
if (ctx2[5]) {
|
|
8622
|
+
if (!ctx2[6]) {
|
|
8424
8623
|
if (if_block1) {
|
|
8425
8624
|
if_block1.p(ctx2, dirty);
|
|
8426
|
-
if (dirty[0] &
|
|
8625
|
+
if (dirty[0] & 64) {
|
|
8427
8626
|
transition_in8(if_block1, 1);
|
|
8428
8627
|
}
|
|
8429
8628
|
} else {
|
|
8430
|
-
if_block1 =
|
|
8629
|
+
if_block1 = create_if_block_12(ctx2);
|
|
8431
8630
|
if_block1.c();
|
|
8432
8631
|
transition_in8(if_block1, 1);
|
|
8433
|
-
if_block1.m(
|
|
8632
|
+
if_block1.m(div0, null);
|
|
8434
8633
|
}
|
|
8435
8634
|
} else if (if_block1) {
|
|
8436
8635
|
group_outros4();
|
|
@@ -8439,6 +8638,30 @@ function create_fragment54(ctx) {
|
|
|
8439
8638
|
});
|
|
8440
8639
|
check_outros4();
|
|
8441
8640
|
}
|
|
8641
|
+
if (scrollHeight_action && is_function3(scrollHeight_action.update) && dirty[0] & 16)
|
|
8642
|
+
scrollHeight_action.update.call(null, ctx2[4]);
|
|
8643
|
+
if (dirty[0] & 32) {
|
|
8644
|
+
toggle_class49(div0, "scrollable", ctx2[5]);
|
|
8645
|
+
}
|
|
8646
|
+
if (ctx2[5]) {
|
|
8647
|
+
if (if_block2) {
|
|
8648
|
+
if_block2.p(ctx2, dirty);
|
|
8649
|
+
if (dirty[0] & 32) {
|
|
8650
|
+
transition_in8(if_block2, 1);
|
|
8651
|
+
}
|
|
8652
|
+
} else {
|
|
8653
|
+
if_block2 = create_if_block6(ctx2);
|
|
8654
|
+
if_block2.c();
|
|
8655
|
+
transition_in8(if_block2, 1);
|
|
8656
|
+
if_block2.m(t9.parentNode, t9);
|
|
8657
|
+
}
|
|
8658
|
+
} else if (if_block2) {
|
|
8659
|
+
group_outros4();
|
|
8660
|
+
transition_out8(if_block2, 1, 1, () => {
|
|
8661
|
+
if_block2 = null;
|
|
8662
|
+
});
|
|
8663
|
+
check_outros4();
|
|
8664
|
+
}
|
|
8442
8665
|
const strokewidth0_changes = {};
|
|
8443
8666
|
if (dirty[0] & 1)
|
|
8444
8667
|
strokewidth0_changes.app = ctx2[0];
|
|
@@ -8455,14 +8678,14 @@ function create_fragment54(ctx) {
|
|
|
8455
8678
|
if (dirty[0] & 8)
|
|
8456
8679
|
strokecolor0_changes.disabled = ctx2[3];
|
|
8457
8680
|
strokecolor0.$set(strokecolor0_changes);
|
|
8458
|
-
const
|
|
8681
|
+
const textcolor_changes = {};
|
|
8459
8682
|
if (dirty[0] & 1)
|
|
8460
|
-
|
|
8683
|
+
textcolor_changes.app = ctx2[0];
|
|
8461
8684
|
if (dirty[0] & 2)
|
|
8462
|
-
|
|
8685
|
+
textcolor_changes.theme = ctx2[1];
|
|
8463
8686
|
if (dirty[0] & 8)
|
|
8464
|
-
|
|
8465
|
-
|
|
8687
|
+
textcolor_changes.disabled = ctx2[3];
|
|
8688
|
+
textcolor.$set(textcolor_changes);
|
|
8466
8689
|
const shapes_changes = {};
|
|
8467
8690
|
if (dirty[0] & 1)
|
|
8468
8691
|
shapes_changes.app = ctx2[0];
|
|
@@ -8481,23 +8704,23 @@ function create_fragment54(ctx) {
|
|
|
8481
8704
|
if (dirty[0] & 8)
|
|
8482
8705
|
strokewidth1_changes.disabled = ctx2[3];
|
|
8483
8706
|
strokewidth1.$set(strokewidth1_changes);
|
|
8484
|
-
const
|
|
8707
|
+
const strokecolor1_changes = {};
|
|
8485
8708
|
if (dirty[0] & 1)
|
|
8486
|
-
|
|
8709
|
+
strokecolor1_changes.app = ctx2[0];
|
|
8487
8710
|
if (dirty[0] & 2)
|
|
8488
|
-
|
|
8711
|
+
strokecolor1_changes.theme = ctx2[1];
|
|
8489
8712
|
if (dirty[0] & 8)
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
if (dirty[0] &
|
|
8493
|
-
each_value = ctx2[
|
|
8713
|
+
strokecolor1_changes.disabled = ctx2[3];
|
|
8714
|
+
strokecolor1.$set(strokecolor1_changes);
|
|
8715
|
+
if (dirty[0] & 1572867) {
|
|
8716
|
+
each_value = ctx2[19];
|
|
8494
8717
|
let i;
|
|
8495
8718
|
for (i = 0; i < each_value.length; i += 1) {
|
|
8496
|
-
const child_ctx =
|
|
8719
|
+
const child_ctx = get_each_context4(ctx2, each_value, i);
|
|
8497
8720
|
if (each_blocks[i]) {
|
|
8498
8721
|
each_blocks[i].p(child_ctx, dirty);
|
|
8499
8722
|
} else {
|
|
8500
|
-
each_blocks[i] =
|
|
8723
|
+
each_blocks[i] = create_each_block4(child_ctx);
|
|
8501
8724
|
each_blocks[i].c();
|
|
8502
8725
|
each_blocks[i].m(div7, null);
|
|
8503
8726
|
}
|
|
@@ -8507,8 +8730,8 @@ function create_fragment54(ctx) {
|
|
|
8507
8730
|
}
|
|
8508
8731
|
each_blocks.length = each_value.length;
|
|
8509
8732
|
}
|
|
8510
|
-
if (!current || dirty[0] &
|
|
8511
|
-
|
|
8733
|
+
if (!current || dirty[0] & 524288) {
|
|
8734
|
+
set_style4(div7, "--n", ctx2[19].length);
|
|
8512
8735
|
}
|
|
8513
8736
|
},
|
|
8514
8737
|
i(local) {
|
|
@@ -8522,14 +8745,14 @@ function create_fragment54(ctx) {
|
|
|
8522
8745
|
transition_in8(button4.$$.fragment, local);
|
|
8523
8746
|
transition_in8(button5.$$.fragment, local);
|
|
8524
8747
|
transition_in8(button6.$$.fragment, local);
|
|
8525
|
-
transition_in8(button7.$$.fragment, local);
|
|
8526
8748
|
transition_in8(if_block1);
|
|
8749
|
+
transition_in8(if_block2);
|
|
8527
8750
|
transition_in8(strokewidth0.$$.fragment, local);
|
|
8528
8751
|
transition_in8(strokecolor0.$$.fragment, local);
|
|
8529
|
-
transition_in8(
|
|
8752
|
+
transition_in8(textcolor.$$.fragment, local);
|
|
8530
8753
|
transition_in8(shapes2.$$.fragment, local);
|
|
8531
8754
|
transition_in8(strokewidth1.$$.fragment, local);
|
|
8532
|
-
transition_in8(
|
|
8755
|
+
transition_in8(strokecolor1.$$.fragment, local);
|
|
8533
8756
|
current = true;
|
|
8534
8757
|
},
|
|
8535
8758
|
o(local) {
|
|
@@ -8541,23 +8764,23 @@ function create_fragment54(ctx) {
|
|
|
8541
8764
|
transition_out8(button4.$$.fragment, local);
|
|
8542
8765
|
transition_out8(button5.$$.fragment, local);
|
|
8543
8766
|
transition_out8(button6.$$.fragment, local);
|
|
8544
|
-
transition_out8(button7.$$.fragment, local);
|
|
8545
8767
|
transition_out8(if_block1);
|
|
8768
|
+
transition_out8(if_block2);
|
|
8546
8769
|
transition_out8(strokewidth0.$$.fragment, local);
|
|
8547
8770
|
transition_out8(strokecolor0.$$.fragment, local);
|
|
8548
|
-
transition_out8(
|
|
8771
|
+
transition_out8(textcolor.$$.fragment, local);
|
|
8549
8772
|
transition_out8(shapes2.$$.fragment, local);
|
|
8550
8773
|
transition_out8(strokewidth1.$$.fragment, local);
|
|
8551
|
-
transition_out8(
|
|
8774
|
+
transition_out8(strokecolor1.$$.fragment, local);
|
|
8552
8775
|
current = false;
|
|
8553
8776
|
},
|
|
8554
8777
|
d(detaching) {
|
|
8555
8778
|
if (if_block0)
|
|
8556
8779
|
if_block0.d(detaching);
|
|
8557
8780
|
if (detaching)
|
|
8558
|
-
|
|
8781
|
+
detach54(t0);
|
|
8559
8782
|
if (detaching)
|
|
8560
|
-
|
|
8783
|
+
detach54(div0);
|
|
8561
8784
|
destroy_component6(button0);
|
|
8562
8785
|
destroy_component6(button1);
|
|
8563
8786
|
destroy_component6(button2);
|
|
@@ -8565,33 +8788,34 @@ function create_fragment54(ctx) {
|
|
|
8565
8788
|
destroy_component6(button4);
|
|
8566
8789
|
destroy_component6(button5);
|
|
8567
8790
|
destroy_component6(button6);
|
|
8568
|
-
destroy_component6(button7);
|
|
8569
|
-
if (detaching)
|
|
8570
|
-
detach53(t8);
|
|
8571
8791
|
if (if_block1)
|
|
8572
|
-
if_block1.d(
|
|
8792
|
+
if_block1.d();
|
|
8793
|
+
if (detaching)
|
|
8794
|
+
detach54(t8);
|
|
8795
|
+
if (if_block2)
|
|
8796
|
+
if_block2.d(detaching);
|
|
8573
8797
|
if (detaching)
|
|
8574
|
-
|
|
8798
|
+
detach54(t9);
|
|
8575
8799
|
if (detaching)
|
|
8576
|
-
|
|
8800
|
+
detach54(div8);
|
|
8577
8801
|
destroy_component6(strokewidth0);
|
|
8578
8802
|
destroy_component6(strokecolor0);
|
|
8579
|
-
ctx[34](null);
|
|
8580
|
-
destroy_component6(strokecolor1);
|
|
8581
8803
|
ctx[35](null);
|
|
8804
|
+
destroy_component6(textcolor);
|
|
8805
|
+
ctx[36](null);
|
|
8582
8806
|
destroy_component6(shapes2);
|
|
8583
8807
|
destroy_component6(strokewidth1);
|
|
8584
|
-
destroy_component6(
|
|
8585
|
-
ctx[36](null);
|
|
8586
|
-
destroy_each(each_blocks, detaching);
|
|
8808
|
+
destroy_component6(strokecolor1);
|
|
8587
8809
|
ctx[37](null);
|
|
8810
|
+
destroy_each(each_blocks, detaching);
|
|
8811
|
+
ctx[38](null);
|
|
8588
8812
|
mounted = false;
|
|
8589
8813
|
run_all3(dispose);
|
|
8590
8814
|
}
|
|
8591
8815
|
};
|
|
8592
8816
|
}
|
|
8593
8817
|
var name5 = "fastboard-toolbar";
|
|
8594
|
-
function
|
|
8818
|
+
function instance55($$self, $$props, $$invalidate) {
|
|
8595
8819
|
let t;
|
|
8596
8820
|
let hotkeys;
|
|
8597
8821
|
let c;
|
|
@@ -8601,11 +8825,11 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8601
8825
|
let status;
|
|
8602
8826
|
let max_scroll;
|
|
8603
8827
|
let $top;
|
|
8604
|
-
let $scroll_height, $$unsubscribe_scroll_height =
|
|
8605
|
-
let $memberState, $$unsubscribe_memberState =
|
|
8828
|
+
let $scroll_height, $$unsubscribe_scroll_height = noop54, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe8(scroll_height, ($$value) => $$invalidate(33, $scroll_height = $$value)), scroll_height);
|
|
8829
|
+
let $memberState, $$unsubscribe_memberState = noop54, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe8(memberState, ($$value) => $$invalidate(34, $memberState = $$value)), memberState);
|
|
8606
8830
|
let $apps;
|
|
8607
|
-
let $status, $$unsubscribe_status =
|
|
8608
|
-
component_subscribe($$self, apps, ($$value) => $$invalidate(
|
|
8831
|
+
let $status, $$unsubscribe_status = noop54, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe8(status, ($$value) => $$invalidate(20, $status = $$value)), status);
|
|
8832
|
+
component_subscribe($$self, apps, ($$value) => $$invalidate(19, $apps = $$value));
|
|
8609
8833
|
$$self.$$.on_destroy.push(() => $$unsubscribe_scroll_height());
|
|
8610
8834
|
$$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
|
|
8611
8835
|
$$self.$$.on_destroy.push(() => $$unsubscribe_status());
|
|
@@ -8617,6 +8841,7 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8617
8841
|
$$subscribe_scroll_height();
|
|
8618
8842
|
let { computed_height = 0 } = $$props;
|
|
8619
8843
|
let { scrollable = false } = $$props;
|
|
8844
|
+
let { hide_apps = false } = $$props;
|
|
8620
8845
|
let last_shape = "rectangle";
|
|
8621
8846
|
let pencil_panel;
|
|
8622
8847
|
let text_panel;
|
|
@@ -8624,7 +8849,7 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8624
8849
|
let apps_panel;
|
|
8625
8850
|
let btn_props;
|
|
8626
8851
|
let top = writable(0);
|
|
8627
|
-
component_subscribe($$self, top, (value) => $$invalidate(
|
|
8852
|
+
component_subscribe($$self, top, (value) => $$invalidate(40, $top = value));
|
|
8628
8853
|
function scroll_up() {
|
|
8629
8854
|
set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
|
|
8630
8855
|
}
|
|
@@ -8659,25 +8884,25 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8659
8884
|
function div2_binding($$value) {
|
|
8660
8885
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
8661
8886
|
pencil_panel = $$value;
|
|
8662
|
-
$$invalidate(
|
|
8887
|
+
$$invalidate(11, pencil_panel);
|
|
8663
8888
|
});
|
|
8664
8889
|
}
|
|
8665
8890
|
function div3_binding($$value) {
|
|
8666
8891
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
8667
8892
|
text_panel = $$value;
|
|
8668
|
-
$$invalidate(
|
|
8893
|
+
$$invalidate(12, text_panel);
|
|
8669
8894
|
});
|
|
8670
8895
|
}
|
|
8671
8896
|
function div6_binding($$value) {
|
|
8672
8897
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
8673
8898
|
shapes_panel = $$value;
|
|
8674
|
-
$$invalidate(
|
|
8899
|
+
$$invalidate(13, shapes_panel);
|
|
8675
8900
|
});
|
|
8676
8901
|
}
|
|
8677
8902
|
function div7_binding($$value) {
|
|
8678
8903
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
8679
8904
|
apps_panel = $$value;
|
|
8680
|
-
$$invalidate(
|
|
8905
|
+
$$invalidate(14, apps_panel);
|
|
8681
8906
|
});
|
|
8682
8907
|
}
|
|
8683
8908
|
$$self.$$set = ($$props2) => {
|
|
@@ -8692,14 +8917,16 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8692
8917
|
if ("scroll_height" in $$props2)
|
|
8693
8918
|
$$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
|
|
8694
8919
|
if ("computed_height" in $$props2)
|
|
8695
|
-
$$invalidate(
|
|
8920
|
+
$$invalidate(31, computed_height = $$props2.computed_height);
|
|
8696
8921
|
if ("scrollable" in $$props2)
|
|
8697
8922
|
$$invalidate(5, scrollable = $$props2.scrollable);
|
|
8923
|
+
if ("hide_apps" in $$props2)
|
|
8924
|
+
$$invalidate(6, hide_apps = $$props2.hide_apps);
|
|
8698
8925
|
};
|
|
8699
8926
|
$$self.$$.update = () => {
|
|
8700
8927
|
if ($$self.$$.dirty[0] & 10) {
|
|
8701
8928
|
$:
|
|
8702
|
-
$$invalidate(
|
|
8929
|
+
$$invalidate(15, btn_props = {
|
|
8703
8930
|
name: name5,
|
|
8704
8931
|
theme,
|
|
8705
8932
|
disabled,
|
|
@@ -8708,15 +8935,15 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8708
8935
|
}
|
|
8709
8936
|
if ($$self.$$.dirty[0] & 4) {
|
|
8710
8937
|
$:
|
|
8711
|
-
$$invalidate(
|
|
8938
|
+
$$invalidate(9, t = i18n4[language]);
|
|
8712
8939
|
}
|
|
8713
8940
|
if ($$self.$$.dirty[0] & 1) {
|
|
8714
8941
|
$:
|
|
8715
|
-
$$invalidate(
|
|
8942
|
+
$$invalidate(32, hotkeys = app == null ? void 0 : app.hotKeys);
|
|
8716
8943
|
}
|
|
8717
|
-
if ($$self.$$.dirty[0] &
|
|
8944
|
+
if ($$self.$$.dirty[0] & 512 | $$self.$$.dirty[1] & 2) {
|
|
8718
8945
|
$:
|
|
8719
|
-
$$invalidate(
|
|
8946
|
+
$$invalidate(18, c = {
|
|
8720
8947
|
clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
|
|
8721
8948
|
selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
|
|
8722
8949
|
pencil: tooltip(t.pencil, hotkeys == null ? void 0 : hotkeys.changeToPencil),
|
|
@@ -8726,29 +8953,29 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8726
8953
|
}
|
|
8727
8954
|
if ($$self.$$.dirty[0] & 1) {
|
|
8728
8955
|
$:
|
|
8729
|
-
$$subscribe_memberState($$invalidate(
|
|
8956
|
+
$$subscribe_memberState($$invalidate(17, memberState = app == null ? void 0 : app.memberState));
|
|
8730
8957
|
}
|
|
8731
|
-
if ($$self.$$.dirty[1] &
|
|
8958
|
+
if ($$self.$$.dirty[1] & 8) {
|
|
8732
8959
|
$:
|
|
8733
|
-
$$invalidate(
|
|
8960
|
+
$$invalidate(8, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
|
|
8734
8961
|
}
|
|
8735
|
-
if ($$self.$$.dirty[1] &
|
|
8962
|
+
if ($$self.$$.dirty[1] & 8) {
|
|
8736
8963
|
$:
|
|
8737
|
-
$$invalidate(
|
|
8964
|
+
$$invalidate(7, shape = $memberState == null ? void 0 : $memberState.shapeType);
|
|
8738
8965
|
}
|
|
8739
8966
|
if ($$self.$$.dirty[0] & 1) {
|
|
8740
8967
|
$:
|
|
8741
|
-
$$subscribe_status($$invalidate(
|
|
8968
|
+
$$subscribe_status($$invalidate(16, status = app == null ? void 0 : app.appsStatus));
|
|
8742
8969
|
}
|
|
8743
|
-
if ($$self.$$.dirty[0] &
|
|
8970
|
+
if ($$self.$$.dirty[0] & 384) {
|
|
8744
8971
|
$:
|
|
8745
8972
|
if (applianceShapes.includes(appliance)) {
|
|
8746
|
-
$$invalidate(
|
|
8973
|
+
$$invalidate(10, last_shape = appliance);
|
|
8747
8974
|
} else if (shape) {
|
|
8748
|
-
$$invalidate(
|
|
8975
|
+
$$invalidate(10, last_shape = shape);
|
|
8749
8976
|
}
|
|
8750
8977
|
}
|
|
8751
|
-
if ($$self.$$.dirty[0] &
|
|
8978
|
+
if ($$self.$$.dirty[0] & 32 | $$self.$$.dirty[1] & 5) {
|
|
8752
8979
|
$:
|
|
8753
8980
|
max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
|
|
8754
8981
|
}
|
|
@@ -8760,6 +8987,7 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8760
8987
|
disabled,
|
|
8761
8988
|
scroll_height,
|
|
8762
8989
|
scrollable,
|
|
8990
|
+
hide_apps,
|
|
8763
8991
|
shape,
|
|
8764
8992
|
appliance,
|
|
8765
8993
|
t,
|
|
@@ -8794,17 +9022,18 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8794
9022
|
div7_binding
|
|
8795
9023
|
];
|
|
8796
9024
|
}
|
|
8797
|
-
var Contents = class extends
|
|
9025
|
+
var Contents = class extends SvelteComponent55 {
|
|
8798
9026
|
constructor(options) {
|
|
8799
9027
|
super();
|
|
8800
|
-
|
|
9028
|
+
init55(this, options, instance55, create_fragment55, safe_not_equal55, {
|
|
8801
9029
|
app: 0,
|
|
8802
9030
|
theme: 1,
|
|
8803
9031
|
language: 2,
|
|
8804
9032
|
disabled: 3,
|
|
8805
9033
|
scroll_height: 4,
|
|
8806
|
-
computed_height:
|
|
8807
|
-
scrollable: 5
|
|
9034
|
+
computed_height: 31,
|
|
9035
|
+
scrollable: 5,
|
|
9036
|
+
hide_apps: 6
|
|
8808
9037
|
}, null, [-1, -1]);
|
|
8809
9038
|
}
|
|
8810
9039
|
};
|
|
@@ -8820,24 +9049,24 @@ function create_else_block7(ctx) {
|
|
|
8820
9049
|
c() {
|
|
8821
9050
|
path0 = svg_element45("path");
|
|
8822
9051
|
path1 = svg_element45("path");
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
|
|
9052
|
+
attr56(path0, "stroke", "#000");
|
|
9053
|
+
attr56(path0, "d", "M20 52v16");
|
|
9054
|
+
attr56(path0, "class", path0_class_value = name6 + "-handler-image-stroke-color");
|
|
9055
|
+
attr56(path1, "fill", "#000");
|
|
9056
|
+
attr56(path1, "stroke", "none");
|
|
9057
|
+
attr56(path1, "d", "M16 52v16l-8-8z");
|
|
9058
|
+
attr56(path1, "class", path1_class_value = name6 + "-handler-image-fill-color");
|
|
8830
9059
|
},
|
|
8831
9060
|
m(target, anchor) {
|
|
8832
|
-
|
|
8833
|
-
|
|
9061
|
+
insert55(target, path0, anchor);
|
|
9062
|
+
insert55(target, path1, anchor);
|
|
8834
9063
|
},
|
|
8835
|
-
p:
|
|
9064
|
+
p: noop55,
|
|
8836
9065
|
d(detaching) {
|
|
8837
9066
|
if (detaching)
|
|
8838
|
-
|
|
9067
|
+
detach55(path0);
|
|
8839
9068
|
if (detaching)
|
|
8840
|
-
|
|
9069
|
+
detach55(path1);
|
|
8841
9070
|
}
|
|
8842
9071
|
};
|
|
8843
9072
|
}
|
|
@@ -8850,28 +9079,28 @@ function create_if_block7(ctx) {
|
|
|
8850
9079
|
c() {
|
|
8851
9080
|
path0 = svg_element45("path");
|
|
8852
9081
|
path1 = svg_element45("path");
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
9082
|
+
attr56(path0, "stroke", "#000");
|
|
9083
|
+
attr56(path0, "d", "M10 52v16");
|
|
9084
|
+
attr56(path0, "class", path0_class_value = name6 + "-handler-image-stroke-color");
|
|
9085
|
+
attr56(path1, "fill", "#000");
|
|
9086
|
+
attr56(path1, "stroke", "none");
|
|
9087
|
+
attr56(path1, "d", "M14 52v16l8-8z");
|
|
9088
|
+
attr56(path1, "class", path1_class_value = name6 + "-handler-image-fill-color");
|
|
8860
9089
|
},
|
|
8861
9090
|
m(target, anchor) {
|
|
8862
|
-
|
|
8863
|
-
|
|
9091
|
+
insert55(target, path0, anchor);
|
|
9092
|
+
insert55(target, path1, anchor);
|
|
8864
9093
|
},
|
|
8865
|
-
p:
|
|
9094
|
+
p: noop55,
|
|
8866
9095
|
d(detaching) {
|
|
8867
9096
|
if (detaching)
|
|
8868
|
-
|
|
9097
|
+
detach55(path0);
|
|
8869
9098
|
if (detaching)
|
|
8870
|
-
|
|
9099
|
+
detach55(path1);
|
|
8871
9100
|
}
|
|
8872
9101
|
};
|
|
8873
9102
|
}
|
|
8874
|
-
function
|
|
9103
|
+
function create_fragment56(ctx) {
|
|
8875
9104
|
let div1;
|
|
8876
9105
|
let div0;
|
|
8877
9106
|
let contents;
|
|
@@ -8896,10 +9125,11 @@ function create_fragment55(ctx) {
|
|
|
8896
9125
|
app: ctx[0],
|
|
8897
9126
|
theme: ctx[1],
|
|
8898
9127
|
language: ctx[2],
|
|
8899
|
-
disabled: ctx[
|
|
8900
|
-
scroll_height: ctx[
|
|
8901
|
-
computed_height: ctx[
|
|
8902
|
-
scrollable: ctx[
|
|
9128
|
+
disabled: ctx[7],
|
|
9129
|
+
scroll_height: ctx[10],
|
|
9130
|
+
computed_height: ctx[6],
|
|
9131
|
+
scrollable: ctx[5],
|
|
9132
|
+
hide_apps: ctx[4]
|
|
8903
9133
|
}
|
|
8904
9134
|
});
|
|
8905
9135
|
function select_block_type(ctx2, dirty) {
|
|
@@ -8911,52 +9141,52 @@ function create_fragment55(ctx) {
|
|
|
8911
9141
|
let if_block = current_block_type(ctx);
|
|
8912
9142
|
return {
|
|
8913
9143
|
c() {
|
|
8914
|
-
div1 =
|
|
8915
|
-
div0 =
|
|
9144
|
+
div1 = element12("div");
|
|
9145
|
+
div0 = element12("div");
|
|
8916
9146
|
create_component7(contents.$$.fragment);
|
|
8917
|
-
t0 =
|
|
8918
|
-
label =
|
|
8919
|
-
input =
|
|
8920
|
-
t1 =
|
|
9147
|
+
t0 = space9();
|
|
9148
|
+
label = element12("label");
|
|
9149
|
+
input = element12("input");
|
|
9150
|
+
t1 = space9();
|
|
8921
9151
|
svg = svg_element45("svg");
|
|
8922
9152
|
path0 = svg_element45("path");
|
|
8923
9153
|
path1 = svg_element45("path");
|
|
8924
9154
|
if_block.c();
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
},
|
|
8942
|
-
m(target, anchor) {
|
|
8943
|
-
|
|
8944
|
-
|
|
9155
|
+
attr56(div0, "class", div0_class_value = name6 + "-contents " + ctx[1]);
|
|
9156
|
+
set_style5(div0, "height", ctx[5] ? ctx[6] + "px" : "auto", false);
|
|
9157
|
+
attr56(input, "type", "checkbox");
|
|
9158
|
+
attr56(path0, "fill", "#fff");
|
|
9159
|
+
attr56(path0, "stroke", "none");
|
|
9160
|
+
attr56(path0, "d", "m0 0 24 16q6 4 6 14v60q0 10-6 14L0 120");
|
|
9161
|
+
attr56(path0, "class", path0_class_value = name6 + "-handler-bg-color");
|
|
9162
|
+
attr56(path1, "stroke", "#000");
|
|
9163
|
+
attr56(path1, "d", "m0 0 24 16q6 4 6 14v60q0 10-6 14L0 120");
|
|
9164
|
+
attr56(path1, "class", path1_class_value = name6 + "-handler-border-color");
|
|
9165
|
+
attr56(svg, "fill", "none");
|
|
9166
|
+
attr56(svg, "stroke-width", "2");
|
|
9167
|
+
attr56(svg, "viewBox", "0 0 32 120");
|
|
9168
|
+
attr56(label, "class", label_class_value = name6 + "-handler " + ctx[1]);
|
|
9169
|
+
attr56(div1, "class", div1_class_value = name6 + " " + ctx[1]);
|
|
9170
|
+
toggle_class50(div1, "collapsed", ctx[3]);
|
|
9171
|
+
},
|
|
9172
|
+
m(target, anchor) {
|
|
9173
|
+
insert55(target, div1, anchor);
|
|
9174
|
+
append55(div1, div0);
|
|
8945
9175
|
mount_component7(contents, div0, null);
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
9176
|
+
append55(div1, t0);
|
|
9177
|
+
append55(div1, label);
|
|
9178
|
+
append55(label, input);
|
|
8949
9179
|
input.checked = ctx[3];
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
9180
|
+
append55(label, t1);
|
|
9181
|
+
append55(label, svg);
|
|
9182
|
+
append55(svg, path0);
|
|
9183
|
+
append55(svg, path1);
|
|
8954
9184
|
if_block.m(svg, null);
|
|
8955
9185
|
current = true;
|
|
8956
9186
|
if (!mounted) {
|
|
8957
9187
|
dispose = [
|
|
8958
|
-
|
|
8959
|
-
action_destroyer4(height_action = height.call(null, div1, ctx[
|
|
9188
|
+
listen7(input, "change", ctx[15]),
|
|
9189
|
+
action_destroyer4(height_action = height.call(null, div1, ctx[9]))
|
|
8960
9190
|
];
|
|
8961
9191
|
mounted = true;
|
|
8962
9192
|
}
|
|
@@ -8969,18 +9199,20 @@ function create_fragment55(ctx) {
|
|
|
8969
9199
|
contents_changes.theme = ctx2[1];
|
|
8970
9200
|
if (dirty & 4)
|
|
8971
9201
|
contents_changes.language = ctx2[2];
|
|
9202
|
+
if (dirty & 128)
|
|
9203
|
+
contents_changes.disabled = ctx2[7];
|
|
8972
9204
|
if (dirty & 64)
|
|
8973
|
-
contents_changes.
|
|
9205
|
+
contents_changes.computed_height = ctx2[6];
|
|
8974
9206
|
if (dirty & 32)
|
|
8975
|
-
contents_changes.
|
|
9207
|
+
contents_changes.scrollable = ctx2[5];
|
|
8976
9208
|
if (dirty & 16)
|
|
8977
|
-
contents_changes.
|
|
9209
|
+
contents_changes.hide_apps = ctx2[4];
|
|
8978
9210
|
contents.$set(contents_changes);
|
|
8979
9211
|
if (!current || dirty & 2 && div0_class_value !== (div0_class_value = name6 + "-contents " + ctx2[1])) {
|
|
8980
|
-
|
|
9212
|
+
attr56(div0, "class", div0_class_value);
|
|
8981
9213
|
}
|
|
8982
|
-
if (dirty &
|
|
8983
|
-
|
|
9214
|
+
if (dirty & 96) {
|
|
9215
|
+
set_style5(div0, "height", ctx2[5] ? ctx2[6] + "px" : "auto", false);
|
|
8984
9216
|
}
|
|
8985
9217
|
if (dirty & 8) {
|
|
8986
9218
|
input.checked = ctx2[3];
|
|
@@ -8996,13 +9228,13 @@ function create_fragment55(ctx) {
|
|
|
8996
9228
|
}
|
|
8997
9229
|
}
|
|
8998
9230
|
if (!current || dirty & 2 && label_class_value !== (label_class_value = name6 + "-handler " + ctx2[1])) {
|
|
8999
|
-
|
|
9231
|
+
attr56(label, "class", label_class_value);
|
|
9000
9232
|
}
|
|
9001
9233
|
if (!current || dirty & 2 && div1_class_value !== (div1_class_value = name6 + " " + ctx2[1])) {
|
|
9002
|
-
|
|
9234
|
+
attr56(div1, "class", div1_class_value);
|
|
9003
9235
|
}
|
|
9004
9236
|
if (dirty & 10) {
|
|
9005
|
-
|
|
9237
|
+
toggle_class50(div1, "collapsed", ctx2[3]);
|
|
9006
9238
|
}
|
|
9007
9239
|
},
|
|
9008
9240
|
i(local) {
|
|
@@ -9017,7 +9249,7 @@ function create_fragment55(ctx) {
|
|
|
9017
9249
|
},
|
|
9018
9250
|
d(detaching) {
|
|
9019
9251
|
if (detaching)
|
|
9020
|
-
|
|
9252
|
+
detach55(div1);
|
|
9021
9253
|
destroy_component7(contents);
|
|
9022
9254
|
if_block.d();
|
|
9023
9255
|
mounted = false;
|
|
@@ -9026,24 +9258,26 @@ function create_fragment55(ctx) {
|
|
|
9026
9258
|
};
|
|
9027
9259
|
}
|
|
9028
9260
|
var name6 = "fastboard-toolbar";
|
|
9029
|
-
function
|
|
9261
|
+
function instance56($$self, $$props, $$invalidate) {
|
|
9030
9262
|
let writable2;
|
|
9031
9263
|
let disabled;
|
|
9032
9264
|
let computed_height;
|
|
9033
9265
|
let scrollable;
|
|
9266
|
+
let hide_apps;
|
|
9034
9267
|
let $container_height;
|
|
9035
9268
|
let $scroll_height;
|
|
9036
|
-
let $writable, $$unsubscribe_writable =
|
|
9269
|
+
let $writable, $$unsubscribe_writable = noop55, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe9(writable2, ($$value) => $$invalidate(14, $writable = $$value)), writable2);
|
|
9037
9270
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
9038
9271
|
let { app = null } = $$props;
|
|
9039
9272
|
let { theme = "light" } = $$props;
|
|
9040
9273
|
let { language = "en" } = $$props;
|
|
9274
|
+
let { config = {} } = $$props;
|
|
9041
9275
|
const extra_height = (32 + 4 + 4) * 2;
|
|
9042
9276
|
let collapsed = false;
|
|
9043
9277
|
let container_height = svelte_writable(0);
|
|
9044
|
-
component_subscribe2($$self, container_height, (value) => $$invalidate(
|
|
9278
|
+
component_subscribe2($$self, container_height, (value) => $$invalidate(12, $container_height = value));
|
|
9045
9279
|
let scroll_height = svelte_writable(0);
|
|
9046
|
-
component_subscribe2($$self, scroll_height, (value) => $$invalidate(
|
|
9280
|
+
component_subscribe2($$self, scroll_height, (value) => $$invalidate(13, $scroll_height = value));
|
|
9047
9281
|
function input_change_handler() {
|
|
9048
9282
|
collapsed = this.checked;
|
|
9049
9283
|
$$invalidate(3, collapsed);
|
|
@@ -9055,23 +9289,30 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
9055
9289
|
$$invalidate(1, theme = $$props2.theme);
|
|
9056
9290
|
if ("language" in $$props2)
|
|
9057
9291
|
$$invalidate(2, language = $$props2.language);
|
|
9292
|
+
if ("config" in $$props2)
|
|
9293
|
+
$$invalidate(11, config = $$props2.config);
|
|
9058
9294
|
};
|
|
9059
9295
|
$$self.$$.update = () => {
|
|
9296
|
+
var _a;
|
|
9060
9297
|
if ($$self.$$.dirty & 1) {
|
|
9061
9298
|
$:
|
|
9062
|
-
$$subscribe_writable($$invalidate(
|
|
9299
|
+
$$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
|
|
9063
9300
|
}
|
|
9064
|
-
if ($$self.$$.dirty &
|
|
9301
|
+
if ($$self.$$.dirty & 16384) {
|
|
9065
9302
|
$:
|
|
9066
|
-
$$invalidate(
|
|
9303
|
+
$$invalidate(7, disabled = !$writable);
|
|
9067
9304
|
}
|
|
9068
|
-
if ($$self.$$.dirty &
|
|
9305
|
+
if ($$self.$$.dirty & 12288) {
|
|
9069
9306
|
$:
|
|
9070
|
-
$$invalidate(
|
|
9307
|
+
$$invalidate(6, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
|
|
9071
9308
|
}
|
|
9072
|
-
if ($$self.$$.dirty &
|
|
9309
|
+
if ($$self.$$.dirty & 12288) {
|
|
9073
9310
|
$:
|
|
9074
|
-
$$invalidate(
|
|
9311
|
+
$$invalidate(5, scrollable = $scroll_height + extra_height > $container_height);
|
|
9312
|
+
}
|
|
9313
|
+
if ($$self.$$.dirty & 2048) {
|
|
9314
|
+
$:
|
|
9315
|
+
$$invalidate(4, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
|
|
9075
9316
|
}
|
|
9076
9317
|
};
|
|
9077
9318
|
return [
|
|
@@ -9079,55 +9320,62 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
9079
9320
|
theme,
|
|
9080
9321
|
language,
|
|
9081
9322
|
collapsed,
|
|
9323
|
+
hide_apps,
|
|
9082
9324
|
scrollable,
|
|
9083
9325
|
computed_height,
|
|
9084
9326
|
disabled,
|
|
9085
9327
|
writable2,
|
|
9086
9328
|
container_height,
|
|
9087
9329
|
scroll_height,
|
|
9330
|
+
config,
|
|
9088
9331
|
$container_height,
|
|
9089
9332
|
$scroll_height,
|
|
9090
9333
|
$writable,
|
|
9091
9334
|
input_change_handler
|
|
9092
9335
|
];
|
|
9093
9336
|
}
|
|
9094
|
-
var Toolbar = class extends
|
|
9337
|
+
var Toolbar = class extends SvelteComponent56 {
|
|
9095
9338
|
constructor(options) {
|
|
9096
9339
|
super();
|
|
9097
|
-
|
|
9340
|
+
init56(this, options, instance56, create_fragment56, safe_not_equal56, {
|
|
9341
|
+
app: 0,
|
|
9342
|
+
theme: 1,
|
|
9343
|
+
language: 2,
|
|
9344
|
+
config: 11
|
|
9345
|
+
});
|
|
9098
9346
|
}
|
|
9099
9347
|
};
|
|
9100
9348
|
var Toolbar_default = Toolbar;
|
|
9101
9349
|
|
|
9102
9350
|
// src/components/PlayerControl/PlayerControl.svelte
|
|
9103
9351
|
import {
|
|
9104
|
-
SvelteComponent as
|
|
9105
|
-
append as
|
|
9106
|
-
attr as
|
|
9352
|
+
SvelteComponent as SvelteComponent57,
|
|
9353
|
+
append as append56,
|
|
9354
|
+
attr as attr57,
|
|
9107
9355
|
binding_callbacks as binding_callbacks2,
|
|
9108
9356
|
check_outros as check_outros5,
|
|
9109
9357
|
create_component as create_component8,
|
|
9110
9358
|
destroy_component as destroy_component8,
|
|
9111
|
-
detach as
|
|
9112
|
-
element as
|
|
9359
|
+
detach as detach56,
|
|
9360
|
+
element as element13,
|
|
9113
9361
|
empty as empty5,
|
|
9114
9362
|
group_outros as group_outros5,
|
|
9115
|
-
init as
|
|
9116
|
-
insert as
|
|
9363
|
+
init as init57,
|
|
9364
|
+
insert as insert56,
|
|
9117
9365
|
mount_component as mount_component8,
|
|
9118
|
-
noop as
|
|
9366
|
+
noop as noop56,
|
|
9119
9367
|
outro_and_destroy_block as outro_and_destroy_block2,
|
|
9120
|
-
safe_not_equal as
|
|
9368
|
+
safe_not_equal as safe_not_equal57,
|
|
9121
9369
|
set_data as set_data4,
|
|
9122
|
-
set_style as
|
|
9123
|
-
space as
|
|
9124
|
-
subscribe as
|
|
9370
|
+
set_style as set_style6,
|
|
9371
|
+
space as space10,
|
|
9372
|
+
subscribe as subscribe10,
|
|
9125
9373
|
text as text3,
|
|
9126
9374
|
transition_in as transition_in10,
|
|
9127
9375
|
transition_out as transition_out10,
|
|
9128
|
-
update_keyed_each as
|
|
9376
|
+
update_keyed_each as update_keyed_each4
|
|
9129
9377
|
} from "svelte/internal";
|
|
9130
|
-
function
|
|
9378
|
+
function get_each_context5(ctx, list, i) {
|
|
9131
9379
|
const child_ctx = ctx.slice();
|
|
9132
9380
|
child_ctx[25] = list[i];
|
|
9133
9381
|
return child_ctx;
|
|
@@ -9389,7 +9637,7 @@ function create_default_slot_25(ctx) {
|
|
|
9389
9637
|
},
|
|
9390
9638
|
m(target, anchor) {
|
|
9391
9639
|
if_blocks[current_block_type_index].m(target, anchor);
|
|
9392
|
-
|
|
9640
|
+
insert56(target, if_block_anchor, anchor);
|
|
9393
9641
|
current = true;
|
|
9394
9642
|
},
|
|
9395
9643
|
p(ctx2, dirty) {
|
|
@@ -9427,7 +9675,7 @@ function create_default_slot_25(ctx) {
|
|
|
9427
9675
|
d(detaching) {
|
|
9428
9676
|
if_blocks[current_block_type_index].d(detaching);
|
|
9429
9677
|
if (detaching)
|
|
9430
|
-
|
|
9678
|
+
detach56(if_block_anchor);
|
|
9431
9679
|
}
|
|
9432
9680
|
};
|
|
9433
9681
|
}
|
|
@@ -9463,33 +9711,33 @@ function create_else_block8(ctx) {
|
|
|
9463
9711
|
return {
|
|
9464
9712
|
c() {
|
|
9465
9713
|
create_component8(slider.$$.fragment);
|
|
9466
|
-
t0 =
|
|
9467
|
-
span3 =
|
|
9468
|
-
span0 =
|
|
9714
|
+
t0 = space10();
|
|
9715
|
+
span3 = element13("span");
|
|
9716
|
+
span0 = element13("span");
|
|
9469
9717
|
t1 = text3(t1_value);
|
|
9470
|
-
t2 =
|
|
9471
|
-
span1 =
|
|
9718
|
+
t2 = space10();
|
|
9719
|
+
span1 = element13("span");
|
|
9472
9720
|
t3 = text3("/");
|
|
9473
|
-
t4 =
|
|
9474
|
-
span2 =
|
|
9721
|
+
t4 = space10();
|
|
9722
|
+
span2 = element13("span");
|
|
9475
9723
|
t5 = text3(t5_value);
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9724
|
+
attr57(span0, "class", span0_class_value = name7 + "-current");
|
|
9725
|
+
attr57(span1, "class", span1_class_value = name7 + "-slash");
|
|
9726
|
+
attr57(span2, "class", span2_class_value = name7 + "-duration");
|
|
9727
|
+
attr57(span3, "class", span3_class_value = name7 + "-progress");
|
|
9480
9728
|
},
|
|
9481
9729
|
m(target, anchor) {
|
|
9482
9730
|
mount_component8(slider, target, anchor);
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9731
|
+
insert56(target, t0, anchor);
|
|
9732
|
+
insert56(target, span3, anchor);
|
|
9733
|
+
append56(span3, span0);
|
|
9734
|
+
append56(span0, t1);
|
|
9735
|
+
append56(span3, t2);
|
|
9736
|
+
append56(span3, span1);
|
|
9737
|
+
append56(span1, t3);
|
|
9738
|
+
append56(span3, t4);
|
|
9739
|
+
append56(span3, span2);
|
|
9740
|
+
append56(span2, t5);
|
|
9493
9741
|
current = true;
|
|
9494
9742
|
},
|
|
9495
9743
|
p(ctx2, dirty) {
|
|
@@ -9519,9 +9767,9 @@ function create_else_block8(ctx) {
|
|
|
9519
9767
|
d(detaching) {
|
|
9520
9768
|
destroy_component8(slider, detaching);
|
|
9521
9769
|
if (detaching)
|
|
9522
|
-
|
|
9770
|
+
detach56(t0);
|
|
9523
9771
|
if (detaching)
|
|
9524
|
-
|
|
9772
|
+
detach56(span3);
|
|
9525
9773
|
}
|
|
9526
9774
|
};
|
|
9527
9775
|
}
|
|
@@ -9541,19 +9789,19 @@ function create_if_block8(ctx) {
|
|
|
9541
9789
|
return {
|
|
9542
9790
|
c() {
|
|
9543
9791
|
create_component8(slider.$$.fragment);
|
|
9544
|
-
t0 =
|
|
9545
|
-
span =
|
|
9792
|
+
t0 = space10();
|
|
9793
|
+
span = element13("span");
|
|
9546
9794
|
t1 = text3("\u2026/\u2026");
|
|
9547
|
-
|
|
9795
|
+
attr57(span, "class", span_class_value = name7 + "-progress loading");
|
|
9548
9796
|
},
|
|
9549
9797
|
m(target, anchor) {
|
|
9550
9798
|
mount_component8(slider, target, anchor);
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9799
|
+
insert56(target, t0, anchor);
|
|
9800
|
+
insert56(target, span, anchor);
|
|
9801
|
+
append56(span, t1);
|
|
9554
9802
|
current = true;
|
|
9555
9803
|
},
|
|
9556
|
-
p:
|
|
9804
|
+
p: noop56,
|
|
9557
9805
|
i(local) {
|
|
9558
9806
|
if (current)
|
|
9559
9807
|
return;
|
|
@@ -9567,9 +9815,9 @@ function create_if_block8(ctx) {
|
|
|
9567
9815
|
d(detaching) {
|
|
9568
9816
|
destroy_component8(slider, detaching);
|
|
9569
9817
|
if (detaching)
|
|
9570
|
-
|
|
9818
|
+
detach56(t0);
|
|
9571
9819
|
if (detaching)
|
|
9572
|
-
|
|
9820
|
+
detach56(span);
|
|
9573
9821
|
}
|
|
9574
9822
|
};
|
|
9575
9823
|
}
|
|
@@ -9581,15 +9829,15 @@ function create_default_slot_15(ctx) {
|
|
|
9581
9829
|
let span_class_value;
|
|
9582
9830
|
return {
|
|
9583
9831
|
c() {
|
|
9584
|
-
span =
|
|
9832
|
+
span = element13("span");
|
|
9585
9833
|
t0 = text3(t0_value);
|
|
9586
9834
|
t1 = text3("x");
|
|
9587
|
-
|
|
9835
|
+
attr57(span, "class", span_class_value = name7 + "-speed-text");
|
|
9588
9836
|
},
|
|
9589
9837
|
m(target, anchor) {
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9838
|
+
insert56(target, span, anchor);
|
|
9839
|
+
append56(span, t0);
|
|
9840
|
+
append56(span, t1);
|
|
9593
9841
|
},
|
|
9594
9842
|
p(ctx2, dirty) {
|
|
9595
9843
|
if (dirty & 32768 && t0_value !== (t0_value = (ctx2[15] || 1) + ""))
|
|
@@ -9597,7 +9845,7 @@ function create_default_slot_15(ctx) {
|
|
|
9597
9845
|
},
|
|
9598
9846
|
d(detaching) {
|
|
9599
9847
|
if (detaching)
|
|
9600
|
-
|
|
9848
|
+
detach56(span);
|
|
9601
9849
|
}
|
|
9602
9850
|
};
|
|
9603
9851
|
}
|
|
@@ -9611,19 +9859,19 @@ function create_default_slot5(ctx) {
|
|
|
9611
9859
|
t1 = text3("x\n ");
|
|
9612
9860
|
},
|
|
9613
9861
|
m(target, anchor) {
|
|
9614
|
-
|
|
9615
|
-
|
|
9862
|
+
insert56(target, t0, anchor);
|
|
9863
|
+
insert56(target, t1, anchor);
|
|
9616
9864
|
},
|
|
9617
|
-
p:
|
|
9865
|
+
p: noop56,
|
|
9618
9866
|
d(detaching) {
|
|
9619
9867
|
if (detaching)
|
|
9620
|
-
|
|
9868
|
+
detach56(t0);
|
|
9621
9869
|
if (detaching)
|
|
9622
|
-
|
|
9870
|
+
detach56(t1);
|
|
9623
9871
|
}
|
|
9624
9872
|
};
|
|
9625
9873
|
}
|
|
9626
|
-
function
|
|
9874
|
+
function create_each_block5(key_1, ctx) {
|
|
9627
9875
|
let first;
|
|
9628
9876
|
let button;
|
|
9629
9877
|
let current;
|
|
@@ -9650,7 +9898,7 @@ function create_each_block4(key_1, ctx) {
|
|
|
9650
9898
|
this.first = first;
|
|
9651
9899
|
},
|
|
9652
9900
|
m(target, anchor) {
|
|
9653
|
-
|
|
9901
|
+
insert56(target, first, anchor);
|
|
9654
9902
|
mount_component8(button, target, anchor);
|
|
9655
9903
|
current = true;
|
|
9656
9904
|
},
|
|
@@ -9680,12 +9928,12 @@ function create_each_block4(key_1, ctx) {
|
|
|
9680
9928
|
},
|
|
9681
9929
|
d(detaching) {
|
|
9682
9930
|
if (detaching)
|
|
9683
|
-
|
|
9931
|
+
detach56(first);
|
|
9684
9932
|
destroy_component8(button, detaching);
|
|
9685
9933
|
}
|
|
9686
9934
|
};
|
|
9687
9935
|
}
|
|
9688
|
-
function
|
|
9936
|
+
function create_fragment57(ctx) {
|
|
9689
9937
|
let div0;
|
|
9690
9938
|
let button0;
|
|
9691
9939
|
let t0;
|
|
@@ -9738,38 +9986,38 @@ function create_fragment56(ctx) {
|
|
|
9738
9986
|
let each_value = speeds;
|
|
9739
9987
|
const get_key = (ctx2) => ctx2[25];
|
|
9740
9988
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
9741
|
-
let child_ctx =
|
|
9989
|
+
let child_ctx = get_each_context5(ctx, each_value, i);
|
|
9742
9990
|
let key = get_key(child_ctx);
|
|
9743
|
-
each_1_lookup.set(key, each_blocks[i] =
|
|
9991
|
+
each_1_lookup.set(key, each_blocks[i] = create_each_block5(key, child_ctx));
|
|
9744
9992
|
}
|
|
9745
9993
|
return {
|
|
9746
9994
|
c() {
|
|
9747
|
-
div0 =
|
|
9995
|
+
div0 = element13("div");
|
|
9748
9996
|
create_component8(button0.$$.fragment);
|
|
9749
|
-
t0 =
|
|
9997
|
+
t0 = space10();
|
|
9750
9998
|
if_block.c();
|
|
9751
|
-
t1 =
|
|
9999
|
+
t1 = space10();
|
|
9752
10000
|
create_component8(button1.$$.fragment);
|
|
9753
|
-
t2 =
|
|
9754
|
-
div2 =
|
|
9755
|
-
div1 =
|
|
10001
|
+
t2 = space10();
|
|
10002
|
+
div2 = element13("div");
|
|
10003
|
+
div1 = element13("div");
|
|
9756
10004
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
9757
10005
|
each_blocks[i].c();
|
|
9758
10006
|
}
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
10007
|
+
attr57(div0, "class", div0_class_value = name7 + " " + ctx[0]);
|
|
10008
|
+
attr57(div1, "class", div1_class_value = name7 + "-panel speed");
|
|
10009
|
+
set_style6(div2, "display", "none");
|
|
9762
10010
|
},
|
|
9763
10011
|
m(target, anchor) {
|
|
9764
|
-
|
|
10012
|
+
insert56(target, div0, anchor);
|
|
9765
10013
|
mount_component8(button0, div0, null);
|
|
9766
|
-
|
|
10014
|
+
append56(div0, t0);
|
|
9767
10015
|
if_blocks[current_block_type_index].m(div0, null);
|
|
9768
|
-
|
|
10016
|
+
append56(div0, t1);
|
|
9769
10017
|
mount_component8(button1, div0, null);
|
|
9770
|
-
|
|
9771
|
-
|
|
9772
|
-
|
|
10018
|
+
insert56(target, t2, anchor);
|
|
10019
|
+
insert56(target, div2, anchor);
|
|
10020
|
+
append56(div2, div1);
|
|
9773
10021
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
9774
10022
|
each_blocks[i].m(div1, null);
|
|
9775
10023
|
}
|
|
@@ -9824,12 +10072,12 @@ function create_fragment56(ctx) {
|
|
|
9824
10072
|
}
|
|
9825
10073
|
button1.$set(button1_changes);
|
|
9826
10074
|
if (!current || dirty & 1 && div0_class_value !== (div0_class_value = name7 + " " + ctx2[0])) {
|
|
9827
|
-
|
|
10075
|
+
attr57(div0, "class", div0_class_value);
|
|
9828
10076
|
}
|
|
9829
10077
|
if (dirty & 294929) {
|
|
9830
10078
|
each_value = speeds;
|
|
9831
10079
|
group_outros5();
|
|
9832
|
-
each_blocks =
|
|
10080
|
+
each_blocks = update_keyed_each4(each_blocks, dirty, get_key, 1, ctx2, each_value, each_1_lookup, div1, outro_and_destroy_block2, create_each_block5, null, get_each_context5);
|
|
9833
10081
|
check_outros5();
|
|
9834
10082
|
}
|
|
9835
10083
|
},
|
|
@@ -9855,14 +10103,14 @@ function create_fragment56(ctx) {
|
|
|
9855
10103
|
},
|
|
9856
10104
|
d(detaching) {
|
|
9857
10105
|
if (detaching)
|
|
9858
|
-
|
|
10106
|
+
detach56(div0);
|
|
9859
10107
|
destroy_component8(button0);
|
|
9860
10108
|
if_blocks[current_block_type_index].d();
|
|
9861
10109
|
destroy_component8(button1);
|
|
9862
10110
|
if (detaching)
|
|
9863
|
-
|
|
10111
|
+
detach56(t2);
|
|
9864
10112
|
if (detaching)
|
|
9865
|
-
|
|
10113
|
+
detach56(div2);
|
|
9866
10114
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
9867
10115
|
each_blocks[i].d();
|
|
9868
10116
|
}
|
|
@@ -9889,7 +10137,7 @@ function format(ms) {
|
|
|
9889
10137
|
return String(m).padStart(2, "0") + ":" + String(s % 60).padStart(2, "0");
|
|
9890
10138
|
}
|
|
9891
10139
|
var name7 = "fastboard-player-control";
|
|
9892
|
-
function
|
|
10140
|
+
function instance57($$self, $$props, $$invalidate) {
|
|
9893
10141
|
let t;
|
|
9894
10142
|
let canPlay;
|
|
9895
10143
|
let disabled;
|
|
@@ -9900,10 +10148,10 @@ function instance56($$self, $$props, $$invalidate) {
|
|
|
9900
10148
|
let loading;
|
|
9901
10149
|
let playing;
|
|
9902
10150
|
let className;
|
|
9903
|
-
let $phase, $$unsubscribe_phase =
|
|
9904
|
-
let $current, $$unsubscribe_current =
|
|
9905
|
-
let $duration, $$unsubscribe_duration =
|
|
9906
|
-
let $playbackRate, $$unsubscribe_playbackRate =
|
|
10151
|
+
let $phase, $$unsubscribe_phase = noop56, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe10(phase, ($$value) => $$invalidate(22, $phase = $$value)), phase);
|
|
10152
|
+
let $current, $$unsubscribe_current = noop56, $$subscribe_current = () => ($$unsubscribe_current(), $$unsubscribe_current = subscribe10(current, ($$value) => $$invalidate(13, $current = $$value)), current);
|
|
10153
|
+
let $duration, $$unsubscribe_duration = noop56, $$subscribe_duration = () => ($$unsubscribe_duration(), $$unsubscribe_duration = subscribe10(duration, ($$value) => $$invalidate(14, $duration = $$value)), duration);
|
|
10154
|
+
let $playbackRate, $$unsubscribe_playbackRate = noop56, $$subscribe_playbackRate = () => ($$unsubscribe_playbackRate(), $$unsubscribe_playbackRate = subscribe10(playbackRate, ($$value) => $$invalidate(15, $playbackRate = $$value)), playbackRate);
|
|
9907
10155
|
$$self.$$.on_destroy.push(() => $$unsubscribe_phase());
|
|
9908
10156
|
$$self.$$.on_destroy.push(() => $$unsubscribe_current());
|
|
9909
10157
|
$$self.$$.on_destroy.push(() => $$unsubscribe_duration());
|
|
@@ -10031,10 +10279,10 @@ function instance56($$self, $$props, $$invalidate) {
|
|
|
10031
10279
|
div1_binding
|
|
10032
10280
|
];
|
|
10033
10281
|
}
|
|
10034
|
-
var PlayerControl = class extends
|
|
10282
|
+
var PlayerControl = class extends SvelteComponent57 {
|
|
10035
10283
|
constructor(options) {
|
|
10036
10284
|
super();
|
|
10037
|
-
|
|
10285
|
+
init57(this, options, instance57, create_fragment57, safe_not_equal57, {
|
|
10038
10286
|
player: 19,
|
|
10039
10287
|
theme: 0,
|
|
10040
10288
|
language: 20,
|
|
@@ -10046,26 +10294,26 @@ var PlayerControl_default = PlayerControl;
|
|
|
10046
10294
|
|
|
10047
10295
|
// src/components/Fastboard/ReplayFastboard.svelte
|
|
10048
10296
|
import {
|
|
10049
|
-
SvelteComponent as
|
|
10050
|
-
append as
|
|
10051
|
-
attr as
|
|
10297
|
+
SvelteComponent as SvelteComponent58,
|
|
10298
|
+
append as append57,
|
|
10299
|
+
attr as attr58,
|
|
10052
10300
|
binding_callbacks as binding_callbacks3,
|
|
10053
10301
|
create_component as create_component9,
|
|
10054
10302
|
destroy_component as destroy_component9,
|
|
10055
|
-
detach as
|
|
10056
|
-
element as
|
|
10057
|
-
init as
|
|
10058
|
-
insert as
|
|
10059
|
-
listen as
|
|
10303
|
+
detach as detach57,
|
|
10304
|
+
element as element14,
|
|
10305
|
+
init as init58,
|
|
10306
|
+
insert as insert57,
|
|
10307
|
+
listen as listen8,
|
|
10060
10308
|
mount_component as mount_component9,
|
|
10061
|
-
safe_not_equal as
|
|
10062
|
-
space as
|
|
10063
|
-
toggle_class as
|
|
10309
|
+
safe_not_equal as safe_not_equal58,
|
|
10310
|
+
space as space11,
|
|
10311
|
+
toggle_class as toggle_class51,
|
|
10064
10312
|
transition_in as transition_in11,
|
|
10065
10313
|
transition_out as transition_out11
|
|
10066
10314
|
} from "svelte/internal";
|
|
10067
10315
|
import { onMount } from "svelte";
|
|
10068
|
-
function
|
|
10316
|
+
function create_fragment58(ctx) {
|
|
10069
10317
|
let div2;
|
|
10070
10318
|
let div0;
|
|
10071
10319
|
let div0_class_value;
|
|
@@ -10086,26 +10334,26 @@ function create_fragment57(ctx) {
|
|
|
10086
10334
|
});
|
|
10087
10335
|
return {
|
|
10088
10336
|
c() {
|
|
10089
|
-
div2 =
|
|
10090
|
-
div0 =
|
|
10091
|
-
t =
|
|
10092
|
-
div1 =
|
|
10337
|
+
div2 = element14("div");
|
|
10338
|
+
div0 = element14("div");
|
|
10339
|
+
t = space11();
|
|
10340
|
+
div1 = element14("div");
|
|
10093
10341
|
create_component9(playercontrol.$$.fragment);
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10342
|
+
attr58(div0, "class", div0_class_value = name8 + "-view");
|
|
10343
|
+
attr58(div1, "class", div1_class_value = name8 + "-bottom");
|
|
10344
|
+
attr58(div2, "class", div2_class_value = name8 + "-root");
|
|
10345
|
+
toggle_class51(div2, "loading", !ctx[0]);
|
|
10098
10346
|
},
|
|
10099
10347
|
m(target, anchor) {
|
|
10100
|
-
|
|
10101
|
-
|
|
10348
|
+
insert57(target, div2, anchor);
|
|
10349
|
+
append57(div2, div0);
|
|
10102
10350
|
ctx[5](div0);
|
|
10103
|
-
|
|
10104
|
-
|
|
10351
|
+
append57(div2, t);
|
|
10352
|
+
append57(div2, div1);
|
|
10105
10353
|
mount_component9(playercontrol, div1, null);
|
|
10106
10354
|
current = true;
|
|
10107
10355
|
if (!mounted) {
|
|
10108
|
-
dispose =
|
|
10356
|
+
dispose = listen8(div0, "touchstart", tippy_hide_all, true);
|
|
10109
10357
|
mounted = true;
|
|
10110
10358
|
}
|
|
10111
10359
|
},
|
|
@@ -10119,7 +10367,7 @@ function create_fragment57(ctx) {
|
|
|
10119
10367
|
playercontrol_changes.language = ctx2[2];
|
|
10120
10368
|
playercontrol.$set(playercontrol_changes);
|
|
10121
10369
|
if (dirty & 1) {
|
|
10122
|
-
|
|
10370
|
+
toggle_class51(div2, "loading", !ctx2[0]);
|
|
10123
10371
|
}
|
|
10124
10372
|
},
|
|
10125
10373
|
i(local) {
|
|
@@ -10134,7 +10382,7 @@ function create_fragment57(ctx) {
|
|
|
10134
10382
|
},
|
|
10135
10383
|
d(detaching) {
|
|
10136
10384
|
if (detaching)
|
|
10137
|
-
|
|
10385
|
+
detach57(div2);
|
|
10138
10386
|
ctx[5](null);
|
|
10139
10387
|
destroy_component9(playercontrol);
|
|
10140
10388
|
mounted = false;
|
|
@@ -10143,7 +10391,7 @@ function create_fragment57(ctx) {
|
|
|
10143
10391
|
};
|
|
10144
10392
|
}
|
|
10145
10393
|
var name8 = "fastboard";
|
|
10146
|
-
function
|
|
10394
|
+
function instance58($$self, $$props, $$invalidate) {
|
|
10147
10395
|
let { player = null } = $$props;
|
|
10148
10396
|
let { theme = "light" } = $$props;
|
|
10149
10397
|
let { language = "en" } = $$props;
|
|
@@ -10194,10 +10442,10 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10194
10442
|
};
|
|
10195
10443
|
return [player, theme, language, container, containerRef, div0_binding];
|
|
10196
10444
|
}
|
|
10197
|
-
var ReplayFastboard = class extends
|
|
10445
|
+
var ReplayFastboard = class extends SvelteComponent58 {
|
|
10198
10446
|
constructor(options) {
|
|
10199
10447
|
super();
|
|
10200
|
-
|
|
10448
|
+
init58(this, options, instance58, create_fragment58, safe_not_equal58, {
|
|
10201
10449
|
player: 0,
|
|
10202
10450
|
theme: 1,
|
|
10203
10451
|
language: 2,
|
|
@@ -10209,25 +10457,25 @@ var ReplayFastboard_default = ReplayFastboard;
|
|
|
10209
10457
|
|
|
10210
10458
|
// src/components/Fastboard/Fastboard.svelte
|
|
10211
10459
|
import {
|
|
10212
|
-
SvelteComponent as
|
|
10213
|
-
append as
|
|
10214
|
-
attr as
|
|
10460
|
+
SvelteComponent as SvelteComponent59,
|
|
10461
|
+
append as append58,
|
|
10462
|
+
attr as attr59,
|
|
10215
10463
|
binding_callbacks as binding_callbacks4,
|
|
10216
10464
|
check_outros as check_outros6,
|
|
10217
10465
|
create_component as create_component10,
|
|
10218
10466
|
destroy_component as destroy_component10,
|
|
10219
|
-
detach as
|
|
10220
|
-
element as
|
|
10467
|
+
detach as detach58,
|
|
10468
|
+
element as element15,
|
|
10221
10469
|
group_outros as group_outros6,
|
|
10222
|
-
init as
|
|
10223
|
-
insert as
|
|
10224
|
-
listen as
|
|
10470
|
+
init as init59,
|
|
10471
|
+
insert as insert58,
|
|
10472
|
+
listen as listen9,
|
|
10225
10473
|
mount_component as mount_component10,
|
|
10226
|
-
noop as
|
|
10227
|
-
safe_not_equal as
|
|
10228
|
-
space as
|
|
10229
|
-
subscribe as
|
|
10230
|
-
toggle_class as
|
|
10474
|
+
noop as noop57,
|
|
10475
|
+
safe_not_equal as safe_not_equal59,
|
|
10476
|
+
space as space12,
|
|
10477
|
+
subscribe as subscribe11,
|
|
10478
|
+
toggle_class as toggle_class52,
|
|
10231
10479
|
transition_in as transition_in12,
|
|
10232
10480
|
transition_out as transition_out12
|
|
10233
10481
|
} from "svelte/internal";
|
|
@@ -10239,7 +10487,8 @@ function create_if_block_32(ctx) {
|
|
|
10239
10487
|
props: {
|
|
10240
10488
|
app: ctx[0],
|
|
10241
10489
|
theme: ctx[1],
|
|
10242
|
-
language: ctx[2]
|
|
10490
|
+
language: ctx[2],
|
|
10491
|
+
config: ctx[3].toolbar
|
|
10243
10492
|
}
|
|
10244
10493
|
});
|
|
10245
10494
|
return {
|
|
@@ -10258,6 +10507,8 @@ function create_if_block_32(ctx) {
|
|
|
10258
10507
|
toolbar_changes.theme = ctx2[1];
|
|
10259
10508
|
if (dirty & 4)
|
|
10260
10509
|
toolbar_changes.language = ctx2[2];
|
|
10510
|
+
if (dirty & 8)
|
|
10511
|
+
toolbar_changes.config = ctx2[3].toolbar;
|
|
10261
10512
|
toolbar.$set(toolbar_changes);
|
|
10262
10513
|
},
|
|
10263
10514
|
i(local) {
|
|
@@ -10404,7 +10655,7 @@ function create_if_block9(ctx) {
|
|
|
10404
10655
|
}
|
|
10405
10656
|
};
|
|
10406
10657
|
}
|
|
10407
|
-
function
|
|
10658
|
+
function create_fragment59(ctx) {
|
|
10408
10659
|
var _a, _b, _c, _d;
|
|
10409
10660
|
let div4;
|
|
10410
10661
|
let div0;
|
|
@@ -10429,55 +10680,55 @@ function create_fragment58(ctx) {
|
|
|
10429
10680
|
let if_block3 = ((_d = ctx[3].page_control) == null ? void 0 : _d.enable) !== false && create_if_block9(ctx);
|
|
10430
10681
|
return {
|
|
10431
10682
|
c() {
|
|
10432
|
-
div4 =
|
|
10433
|
-
div0 =
|
|
10434
|
-
t0 =
|
|
10435
|
-
div1 =
|
|
10683
|
+
div4 = element15("div");
|
|
10684
|
+
div0 = element15("div");
|
|
10685
|
+
t0 = space12();
|
|
10686
|
+
div1 = element15("div");
|
|
10436
10687
|
if (if_block0)
|
|
10437
10688
|
if_block0.c();
|
|
10438
|
-
t1 =
|
|
10439
|
-
div2 =
|
|
10689
|
+
t1 = space12();
|
|
10690
|
+
div2 = element15("div");
|
|
10440
10691
|
if (if_block1)
|
|
10441
10692
|
if_block1.c();
|
|
10442
|
-
t2 =
|
|
10693
|
+
t2 = space12();
|
|
10443
10694
|
if (if_block2)
|
|
10444
10695
|
if_block2.c();
|
|
10445
|
-
t3 =
|
|
10446
|
-
div3 =
|
|
10696
|
+
t3 = space12();
|
|
10697
|
+
div3 = element15("div");
|
|
10447
10698
|
if (if_block3)
|
|
10448
10699
|
if_block3.c();
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
},
|
|
10459
|
-
m(target, anchor) {
|
|
10460
|
-
|
|
10461
|
-
|
|
10700
|
+
attr59(div0, "class", div0_class_value = name9 + "-view");
|
|
10701
|
+
attr59(div1, "class", div1_class_value = name9 + "-left");
|
|
10702
|
+
toggle_class52(div1, "hidden", !(ctx[5] === "visible" || ctx[5] === "toolbar-only"));
|
|
10703
|
+
attr59(div2, "class", div2_class_value = name9 + "-bottom-left");
|
|
10704
|
+
toggle_class52(div2, "hidden", ctx[5] !== "visible");
|
|
10705
|
+
attr59(div3, "class", div3_class_value = name9 + "-bottom-right");
|
|
10706
|
+
toggle_class52(div3, "hidden", ctx[5] !== "visible");
|
|
10707
|
+
attr59(div4, "class", div4_class_value = name9 + "-root");
|
|
10708
|
+
toggle_class52(div4, "loading", !ctx[0]);
|
|
10709
|
+
},
|
|
10710
|
+
m(target, anchor) {
|
|
10711
|
+
insert58(target, div4, anchor);
|
|
10712
|
+
append58(div4, div0);
|
|
10462
10713
|
ctx[13](div0);
|
|
10463
|
-
|
|
10464
|
-
|
|
10714
|
+
append58(div4, t0);
|
|
10715
|
+
append58(div4, div1);
|
|
10465
10716
|
if (if_block0)
|
|
10466
10717
|
if_block0.m(div1, null);
|
|
10467
|
-
|
|
10468
|
-
|
|
10718
|
+
append58(div4, t1);
|
|
10719
|
+
append58(div4, div2);
|
|
10469
10720
|
if (if_block1)
|
|
10470
10721
|
if_block1.m(div2, null);
|
|
10471
|
-
|
|
10722
|
+
append58(div2, t2);
|
|
10472
10723
|
if (if_block2)
|
|
10473
10724
|
if_block2.m(div2, null);
|
|
10474
|
-
|
|
10475
|
-
|
|
10725
|
+
append58(div4, t3);
|
|
10726
|
+
append58(div4, div3);
|
|
10476
10727
|
if (if_block3)
|
|
10477
10728
|
if_block3.m(div3, null);
|
|
10478
10729
|
current = true;
|
|
10479
10730
|
if (!mounted) {
|
|
10480
|
-
dispose =
|
|
10731
|
+
dispose = listen9(div0, "touchstart", tippy_hide_all, true);
|
|
10481
10732
|
mounted = true;
|
|
10482
10733
|
}
|
|
10483
10734
|
},
|
|
@@ -10503,7 +10754,7 @@ function create_fragment58(ctx) {
|
|
|
10503
10754
|
check_outros6();
|
|
10504
10755
|
}
|
|
10505
10756
|
if (dirty & 32) {
|
|
10506
|
-
|
|
10757
|
+
toggle_class52(div1, "hidden", !(ctx2[5] === "visible" || ctx2[5] === "toolbar-only"));
|
|
10507
10758
|
}
|
|
10508
10759
|
if (((_b2 = ctx2[3].redo_undo) == null ? void 0 : _b2.enable) !== false) {
|
|
10509
10760
|
if (if_block1) {
|
|
@@ -10544,7 +10795,7 @@ function create_fragment58(ctx) {
|
|
|
10544
10795
|
check_outros6();
|
|
10545
10796
|
}
|
|
10546
10797
|
if (dirty & 32) {
|
|
10547
|
-
|
|
10798
|
+
toggle_class52(div2, "hidden", ctx2[5] !== "visible");
|
|
10548
10799
|
}
|
|
10549
10800
|
if (((_d2 = ctx2[3].page_control) == null ? void 0 : _d2.enable) !== false) {
|
|
10550
10801
|
if (if_block3) {
|
|
@@ -10566,10 +10817,10 @@ function create_fragment58(ctx) {
|
|
|
10566
10817
|
check_outros6();
|
|
10567
10818
|
}
|
|
10568
10819
|
if (dirty & 32) {
|
|
10569
|
-
|
|
10820
|
+
toggle_class52(div3, "hidden", ctx2[5] !== "visible");
|
|
10570
10821
|
}
|
|
10571
10822
|
if (dirty & 1) {
|
|
10572
|
-
|
|
10823
|
+
toggle_class52(div4, "loading", !ctx2[0]);
|
|
10573
10824
|
}
|
|
10574
10825
|
},
|
|
10575
10826
|
i(local) {
|
|
@@ -10590,7 +10841,7 @@ function create_fragment58(ctx) {
|
|
|
10590
10841
|
},
|
|
10591
10842
|
d(detaching) {
|
|
10592
10843
|
if (detaching)
|
|
10593
|
-
|
|
10844
|
+
detach58(div4);
|
|
10594
10845
|
ctx[13](null);
|
|
10595
10846
|
if (if_block0)
|
|
10596
10847
|
if_block0.d();
|
|
@@ -10606,13 +10857,13 @@ function create_fragment58(ctx) {
|
|
|
10606
10857
|
};
|
|
10607
10858
|
}
|
|
10608
10859
|
var name9 = "fastboard";
|
|
10609
|
-
function
|
|
10860
|
+
function instance59($$self, $$props, $$invalidate) {
|
|
10610
10861
|
let writable2;
|
|
10611
10862
|
let boxState;
|
|
10612
10863
|
let focusedApp;
|
|
10613
|
-
let $focusedApp, $$unsubscribe_focusedApp =
|
|
10614
|
-
let $boxState, $$unsubscribe_boxState =
|
|
10615
|
-
let $writable, $$unsubscribe_writable =
|
|
10864
|
+
let $focusedApp, $$unsubscribe_focusedApp = noop57, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe11(focusedApp, ($$value) => $$invalidate(10, $focusedApp = $$value)), focusedApp);
|
|
10865
|
+
let $boxState, $$unsubscribe_boxState = noop57, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe11(boxState, ($$value) => $$invalidate(11, $boxState = $$value)), boxState);
|
|
10866
|
+
let $writable, $$unsubscribe_writable = noop57, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe11(writable2, ($$value) => $$invalidate(12, $writable = $$value)), writable2);
|
|
10616
10867
|
$$self.$$.on_destroy.push(() => $$unsubscribe_focusedApp());
|
|
10617
10868
|
$$self.$$.on_destroy.push(() => $$unsubscribe_boxState());
|
|
10618
10869
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
@@ -10712,10 +10963,10 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10712
10963
|
div0_binding
|
|
10713
10964
|
];
|
|
10714
10965
|
}
|
|
10715
|
-
var Fastboard = class extends
|
|
10966
|
+
var Fastboard = class extends SvelteComponent59 {
|
|
10716
10967
|
constructor(options) {
|
|
10717
10968
|
super();
|
|
10718
|
-
|
|
10969
|
+
init59(this, options, instance59, create_fragment59, safe_not_equal59, {
|
|
10719
10970
|
app: 0,
|
|
10720
10971
|
theme: 1,
|
|
10721
10972
|
language: 2,
|
|
@@ -10737,7 +10988,7 @@ function injectStyle(text4) {
|
|
|
10737
10988
|
}
|
|
10738
10989
|
|
|
10739
10990
|
// inline-sass-content:./src/style.scss
|
|
10740
|
-
var style_default = '.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.fastboard-icon.light .fastboard-icon-stroke-color{stroke:var(--fastboard-color, #5d6066)}.fastboard-icon.light .fastboard-icon-fill-color{fill:var(--fastboard-color, #5d6066)}.fastboard-icon.light.is-active .fastboard-icon-stroke-color{stroke:var(--fastboard-active-color, #3381ff)}.fastboard-icon.light.is-active .fastboard-icon-fill-color{fill:var(--fastboard-active-color, #3381ff)}.fastboard-icon.dark .fastboard-icon-stroke-color{stroke:var(--fastboard-color, #7b7e84)}.fastboard-icon.dark .fastboard-icon-fill-color{fill:var(--fastboard-color, #7b7e84)}.fastboard-icon.dark.is-active .fastboard-icon-stroke-color{stroke:var(--fastboard-active-color, #2867cc)}.fastboard-icon.dark.is-active .fastboard-icon-fill-color{fill:var(--fastboard-active-color, #2867cc)}.fastboard-redo-undo{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-redo-undo *{box-sizing:inherit}.fastboard-redo-undo.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-redo-undo.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-redo-undo-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:transparent;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-redo-undo-btn svg,.fastboard-redo-undo-btn img{width:100%;height:100%;pointer-events:none}.fastboard-redo-undo-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-redo-undo-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-redo-undo-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-zoom-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-zoom-control *{box-sizing:inherit}.fastboard-zoom-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-zoom-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-zoom-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:transparent;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-zoom-control-btn svg,.fastboard-zoom-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-zoom-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-zoom-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-zoom-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-zoom-control-text{font-variant-numeric:tabular-nums}.fastboard-page-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-page-control *{box-sizing:inherit}.fastboard-page-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-page-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-page-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:transparent;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-page-control-btn svg,.fastboard-page-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-page-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-page-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-page-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-page-control-text{font-variant-numeric:tabular-nums}.fastboard-player-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);width:100%}.fastboard-player-control *{box-sizing:inherit}.fastboard-player-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-player-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-player-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:transparent;border-radius:4px;font-size:0;line-height:1;flex-shrink:0;display:inline}.fastboard-player-control-btn svg,.fastboard-player-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-player-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-player-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-player-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-player-control-btn.loading svg,.fastboard-player-control-btn.loading img{animation:fastboard-player-control-rotate .5s linear infinite}@keyframes fastboard-player-control-rotate{to{transform:rotate(360deg)}}.fastboard-player-control-btn.speed{width:auto;padding:4px;text-align:right;font-size:14px;font-variant-numeric:tabular-nums}.fastboard-player-control-btn.is-active.light{color:var(--fastboard-active-color, #3381ff)}.fastboard-player-control-btn.is-active.dark{color:var(--fastboard-active-color, #2867cc)}.fastboard-player-control-speed-text,.fastboard-player-control-progress{font-size:14px;font-variant-numeric:tabular-nums;line-height:16px}.fastboard-player-control-progress{display:inline-flex;align-items:center}.fastboard-player-control-panel.speed{display:flex;flex-direction:column}.fastboard-toolbar{height:100%;display:flex;align-items:center;position:relative;transform:translate(0);transition:transform .5s cubic-bezier(.34,1.56,.64,1);pointer-events:none}.fastboard-toolbar.collapsed{transform:translate(-100%)}.fastboard-toolbar-handler{position:absolute;left:100%;width:17px;font-size:0;border-radius:3px;cursor:pointer;pointer-events:auto}.fastboard-toolbar-handler:focus-within{outline:2px solid -webkit-focus-ring-color}.fastboard-toolbar-handler input[type=checkbox]{position:absolute;top:0;left:0;appearance:none;margin:0;width:100%;height:100%;cursor:pointer;opacity:0;z-index:-1}.fastboard-toolbar-handler svg{opacity:0;transition:opacity .5s 1s;pointer-events:none}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-bg-color{fill:var(--fastboard-bg-color, rgba(255, 255, 255, .9))}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-border-color{stroke:var(--fastboard-border-color, #e5e8f0)}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-image-stroke-color{stroke:var(--fastboard-color, #5d6066)}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-image-fill-color{fill:var(--fastboard-color, #5d6066)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-bg-color{fill:var(--fastboard-bg-color, rgba(20, 24, 30, .9))}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-border-color{stroke:var(--fastboard-border-color, #383b42)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-image-stroke-color{stroke:var(--fastboard-color, #7b7e84)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-image-fill-color{fill:var(--fastboard-color, #7b7e84)}.fastboard-toolbar:hover .fastboard-toolbar-handler svg,.fastboard-toolbar.collapsed .fastboard-toolbar-handler svg{opacity:1;transition:opacity .2s}.fastboard-toolbar-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:4px;width:32px;height:32px;background-color:transparent;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-toolbar-btn svg,.fastboard-toolbar-btn img{width:100%;height:100%;pointer-events:none}.fastboard-toolbar-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-toolbar-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-toolbar-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-slider{box-sizing:border-box;position:relative;width:100%;height:100%;display:flex;align-items:center}.fastboard-slider *{box-sizing:inherit}.fastboard-slider-track{appearance:none;background:transparent;border:0;border-radius:26px;flex:1;display:block;height:19px;margin:0;width:0;min-width:0;padding:0;transition:box-shadow .3s ease;cursor:pointer;touch-action:manipulation}.fastboard-slider-track::-webkit-slider-runnable-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none;background-image:linear-gradient(to right,currentColor var(--value, 0%),transparent var(--value, 0%))}.fastboard-slider-track::-webkit-slider-thumb{background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab;appearance:none;margin-top:-4px}.fastboard-slider-track::-moz-range-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none}.fastboard-slider-track::-moz-range-thumb{appearance:none;background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab}.fastboard-slider-track::-moz-range-progress{background:currentColor;border-radius:2.5px;height:5px}.fastboard-slider-track::-ms-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none;color:transparent}.fastboard-slider-track::-ms-thumb{appearance:none;background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab;margin-top:0}.fastboard-slider-track::-ms-tooltip{display:none}.fastboard-slider-track::-moz-focus-outer{border:0}.fastboard-slider-track.grabbing::-webkit-slider-thumb{cursor:grabbing}.fastboard-slider-track.light{color:var(--fastboard-active-color, #3381ff)}.fastboard-slider-track.dark{color:var(--fastboard-active-color, #2867cc)}.fastboard-toolbar-contents{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);padding:2px 0;gap:0;flex-direction:column}.fastboard-toolbar-contents *{box-sizing:inherit}.fastboard-toolbar-contents.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-toolbar-contents.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-toolbar-contents>.fastboard-toolbar-btn{margin:2px 4px}.fastboard-toolbar-btn-interactive{position:relative}.fastboard-toolbar-triangle{width:0px;height:0px;border-bottom:4px solid;border-left:4px solid transparent;position:absolute;bottom:0;right:0}.fastboard-toolbar-btn:focus+.fastboard-toolbar-triangle{opacity:0}.fastboard-toolbar-scrollable{padding:2px 4px;overflow:hidden;display:flex;flex-direction:column;gap:4px}.fastboard-toolbar-tooltip{display:inline-flex;align-items:center;gap:4px}.fastboard-toolbar-hotkey{display:inline-flex;margin-right:-4px;width:24px;height:24px;align-items:center;justify-content:center;background-color:#ffffff1a;border-radius:4px}.fastboard-toolbar-panel-wrapper{display:none}.fastboard-toolbar-panel{display:flex;flex-direction:column}.fastboard-toolbar-panel-divider{height:.5px;width:100%;margin:4px 0;background-color:#ffffff26}.fastboard-toolbar-colors,.fastboard-toolbar-shapes{display:grid;align-self:center;grid-template:repeat(2,1fr)/repeat(4,1fr);align-items:center;justify-items:center;gap:4px}.fastboard-toolbar-shape-btn,.fastboard-toolbar-color-btn{width:24px;height:24px;padding:0;display:inline-flex;align-items:center;justify-content:center}.fastboard-toolbar-color-btn{border:1px solid transparent}.fastboard-toolbar-color-btn.light.is-active{border-color:var(--fastboard-active-color, #3381ff)}.fastboard-toolbar-color-btn.dark.is-active{border-color:var(--fastboard-active-color, #2867cc)}.fastboard-toolbar-color-item{display:inline-block;width:16px;height:16px;border-radius:4px;pointer-events:none}.fastboard-toolbar-panel.apps{display:grid;grid-template-columns:repeat(min(var(--n, 3),3),minmax(max-content,1fr));gap:4px}.fastboard-toolbar-app-btn{margin:0;border:0;border-radius:2px;padding:4px 6px;background-color:transparent;display:inline-flex;flex-direction:column;align-items:center;gap:4px;font-size:0}.fastboard-toolbar-app-btn:disabled{opacity:.8}.fastboard-toolbar-app-btn-icon{width:32px;height:32px;pointer-events:none}.fastboard-toolbar-app-btn-text{font-size:14px;line-height:1;max-width:100%;overflow:hidden;text-overflow:ellipsis}.fastboard-toolbar-app-btn.is-loading{cursor:progress}.fastboard-toolbar-app-btn.is-failed{cursor:not-allowed;opacity:.5}.fastboard-toolbar-app-btn:not(:disabled,.is-loading,.is-failed):hover.light{cursor:pointer;background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-toolbar-app-btn-text.light{color:var(--fastboard-color, #5d6066)}.fastboard-toolbar-app-btn:not(:disabled,.is-loading,.is-failed):hover.dark{cursor:pointer;background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-toolbar-app-btn-text.dark{color:var(--fastboard-color, #7b7e84)}.fastboard-root{position:relative;width:100%;height:100%;overflow:hidden}.fastboard-view{position:absolute;top:0;left:0;width:100%;height:100%}.fastboard-left{display:flex;align-items:center;position:absolute;bottom:62px;top:8px;left:0;z-index:200;pointer-events:none}.fastboard-left .fastboard-toolbar{padding-left:16px}.fastboard-bottom-left,.fastboard-bottom,.fastboard-bottom-right{display:flex;gap:10px;position:absolute;bottom:8px;left:8px;padding:8px;z-index:200;pointer-events:none}.fastboard-bottom-right{left:auto;right:8px}.fastboard-bottom{right:8px}.fastboard-left.hidden *,.fastboard-bottom.hidden *,.fastboard-bottom-left.hidden *,.fastboard-bottom-right.hidden *{opacity:0;pointer-events:none}.fastboard-tip{font-family:inherit;color:#d5d9e0;background-color:#03060d}.fastboard-tip[data-placement^=right]>.tippy-arrow:before{top:4px;border-width:4px;border-right-color:#03060d}.fastboard-tip[data-placement^=top]>.tippy-arrow:before{left:4px;border-width:4px;border-top-color:#03060d}.fastboard-panel .tippy-content{padding:8px}';
|
|
10991
|
+
var style_default = '.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.fastboard-icon.light .fastboard-icon-stroke-color{stroke:var(--fastboard-color, #5d6066)}.fastboard-icon.light .fastboard-icon-fill-color{fill:var(--fastboard-color, #5d6066)}.fastboard-icon.light.is-active .fastboard-icon-stroke-color{stroke:var(--fastboard-active-color, #3381ff)}.fastboard-icon.light.is-active .fastboard-icon-fill-color{fill:var(--fastboard-active-color, #3381ff)}.fastboard-icon.dark .fastboard-icon-stroke-color{stroke:var(--fastboard-color, #7b7e84)}.fastboard-icon.dark .fastboard-icon-fill-color{fill:var(--fastboard-color, #7b7e84)}.fastboard-icon.dark.is-active .fastboard-icon-stroke-color{stroke:var(--fastboard-active-color, #2867cc)}.fastboard-icon.dark.is-active .fastboard-icon-fill-color{fill:var(--fastboard-active-color, #2867cc)}.fastboard-redo-undo{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-redo-undo *{box-sizing:inherit}.fastboard-redo-undo.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-redo-undo.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-redo-undo-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-redo-undo-btn svg,.fastboard-redo-undo-btn img{width:100%;height:100%;pointer-events:none}.fastboard-redo-undo-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-redo-undo-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-redo-undo-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-zoom-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-zoom-control *{box-sizing:inherit}.fastboard-zoom-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-zoom-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-zoom-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-zoom-control-btn svg,.fastboard-zoom-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-zoom-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-zoom-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-zoom-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-zoom-control-text{font-variant-numeric:tabular-nums}.fastboard-page-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-page-control *{box-sizing:inherit}.fastboard-page-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-page-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-page-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-page-control-btn svg,.fastboard-page-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-page-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-page-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-page-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-page-control-text{font-variant-numeric:tabular-nums}.fastboard-player-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);width:100%}.fastboard-player-control *{box-sizing:inherit}.fastboard-player-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-player-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-player-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0;display:inline}.fastboard-player-control-btn svg,.fastboard-player-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-player-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-player-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-player-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-player-control-btn.loading svg,.fastboard-player-control-btn.loading img{animation:fastboard-player-control-rotate .5s linear infinite}@keyframes fastboard-player-control-rotate{to{transform:rotate(360deg)}}.fastboard-player-control-btn.speed{width:auto;padding:4px;text-align:right;font-size:14px;font-variant-numeric:tabular-nums}.fastboard-player-control-btn.is-active.light{color:var(--fastboard-active-color, #3381ff)}.fastboard-player-control-btn.is-active.dark{color:var(--fastboard-active-color, #2867cc)}.fastboard-player-control-speed-text,.fastboard-player-control-progress{font-size:14px;font-variant-numeric:tabular-nums;line-height:16px}.fastboard-player-control-progress{display:inline-flex;align-items:center}.fastboard-player-control-panel.speed{display:flex;flex-direction:column}.fastboard-toolbar{height:100%;display:flex;align-items:center;position:relative;transform:translate(0);transition:transform .5s cubic-bezier(.34,1.56,.64,1);pointer-events:none}.fastboard-toolbar.collapsed{transform:translate(-100%)}.fastboard-toolbar-handler{position:absolute;left:100%;width:17px;font-size:0;border-radius:3px;cursor:pointer;pointer-events:auto}.fastboard-toolbar-handler:focus-within{outline:2px solid -webkit-focus-ring-color}.fastboard-toolbar-handler input[type=checkbox]{position:absolute;top:0;left:0;appearance:none;margin:0;width:100%;height:100%;cursor:pointer;opacity:0;z-index:-1}.fastboard-toolbar-handler svg{opacity:0;transition:opacity .5s 1s;pointer-events:none}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-bg-color{fill:var(--fastboard-bg-color, rgba(255, 255, 255, .9))}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-border-color{stroke:var(--fastboard-border-color, #e5e8f0)}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-image-stroke-color{stroke:var(--fastboard-color, #5d6066)}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-image-fill-color{fill:var(--fastboard-color, #5d6066)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-bg-color{fill:var(--fastboard-bg-color, rgba(20, 24, 30, .9))}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-border-color{stroke:var(--fastboard-border-color, #383b42)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-image-stroke-color{stroke:var(--fastboard-color, #7b7e84)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-image-fill-color{fill:var(--fastboard-color, #7b7e84)}.fastboard-toolbar:hover .fastboard-toolbar-handler svg,.fastboard-toolbar.collapsed .fastboard-toolbar-handler svg{opacity:1;transition:opacity .2s}.fastboard-toolbar-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:4px;width:32px;height:32px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-toolbar-btn svg,.fastboard-toolbar-btn img{width:100%;height:100%;pointer-events:none}.fastboard-toolbar-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-toolbar-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-toolbar-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-slider{box-sizing:border-box;position:relative;width:100%;height:100%;display:flex;align-items:center}.fastboard-slider *{box-sizing:inherit}.fastboard-slider-track{appearance:none;background:rgba(0,0,0,0);border:0;border-radius:26px;flex:1;display:block;height:19px;margin:0;width:0;min-width:0;padding:0;transition:box-shadow .3s ease;cursor:pointer;touch-action:manipulation}.fastboard-slider-track::-webkit-slider-runnable-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none;background-image:linear-gradient(to right,currentColor var(--value, 0%),transparent var(--value, 0%))}.fastboard-slider-track::-webkit-slider-thumb{background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab;appearance:none;margin-top:-4px}.fastboard-slider-track::-moz-range-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none}.fastboard-slider-track::-moz-range-thumb{appearance:none;background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab}.fastboard-slider-track::-moz-range-progress{background:currentColor;border-radius:2.5px;height:5px}.fastboard-slider-track::-ms-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none;color:#0000}.fastboard-slider-track::-ms-thumb{appearance:none;background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab;margin-top:0}.fastboard-slider-track::-ms-tooltip{display:none}.fastboard-slider-track::-moz-focus-outer{border:0}.fastboard-slider-track.grabbing::-webkit-slider-thumb{cursor:grabbing}.fastboard-slider-track.light{color:var(--fastboard-active-color, #3381ff)}.fastboard-slider-track.dark{color:var(--fastboard-active-color, #2867cc)}.fastboard-toolbar-contents{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);padding:2px 0;gap:0;flex-direction:column}.fastboard-toolbar-contents *{box-sizing:inherit}.fastboard-toolbar-contents.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-toolbar-contents.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-toolbar-contents>.fastboard-toolbar-btn{margin:2px 4px}.fastboard-toolbar-btn-interactive{position:relative}.fastboard-toolbar-triangle{width:0px;height:0px;border-bottom:4px solid;border-left:4px solid rgba(0,0,0,0);position:absolute;bottom:0;right:0}.fastboard-toolbar-btn:focus+.fastboard-toolbar-triangle{opacity:0}.fastboard-toolbar-scrollable{padding:2px 4px;overflow:hidden;display:flex;flex-direction:column;gap:4px}.fastboard-toolbar-tooltip{display:inline-flex;align-items:center;gap:4px}.fastboard-toolbar-hotkey{display:inline-flex;margin-right:-4px;width:24px;height:24px;align-items:center;justify-content:center;background-color:#ffffff1a;border-radius:4px}.fastboard-toolbar-panel-wrapper{display:none}.fastboard-toolbar-panel{display:flex;flex-direction:column}.fastboard-toolbar-panel-divider{height:.5px;width:100%;margin:4px 0;background-color:#ffffff26}.fastboard-toolbar-colors,.fastboard-toolbar-shapes{display:grid;align-self:center;grid-template:repeat(2,1fr)/repeat(4,1fr);align-items:center;justify-items:center;gap:4px}.fastboard-toolbar-shape-btn,.fastboard-toolbar-color-btn{width:24px;height:24px;padding:0;display:inline-flex;align-items:center;justify-content:center}.fastboard-toolbar-color-btn{border:1px solid rgba(0,0,0,0)}.fastboard-toolbar-color-btn.light.is-active{border-color:var(--fastboard-active-color, #3381ff)}.fastboard-toolbar-color-btn.dark.is-active{border-color:var(--fastboard-active-color, #2867cc)}.fastboard-toolbar-color-item{display:inline-block;width:16px;height:16px;border-radius:4px;pointer-events:none}.fastboard-toolbar-panel.apps{display:grid;grid-template-columns:repeat(min(var(--n, 3),3),minmax(max-content,1fr));gap:4px}.fastboard-toolbar-app-btn{margin:0;border:0;border-radius:2px;padding:4px 6px;background-color:#0000;display:inline-flex;flex-direction:column;align-items:center;gap:4px;font-size:0}.fastboard-toolbar-app-btn:disabled{opacity:.8}.fastboard-toolbar-app-btn-icon{width:32px;height:32px;pointer-events:none}.fastboard-toolbar-app-btn-text{font-size:14px;line-height:1;max-width:100%;overflow:hidden;text-overflow:ellipsis}.fastboard-toolbar-app-btn.is-loading{cursor:progress}.fastboard-toolbar-app-btn.is-failed{cursor:not-allowed;opacity:.5}.fastboard-toolbar-app-btn:not(:disabled,.is-loading,.is-failed):hover.light{cursor:pointer;background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-toolbar-app-btn-text.light{color:var(--fastboard-color, #5d6066)}.fastboard-toolbar-app-btn:not(:disabled,.is-loading,.is-failed):hover.dark{cursor:pointer;background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-toolbar-app-btn-text.dark{color:var(--fastboard-color, #7b7e84)}.fastboard-root{position:relative;width:100%;height:100%;overflow:hidden}.fastboard-view{position:absolute;top:0;left:0;width:100%;height:100%}.fastboard-left{display:flex;align-items:center;position:absolute;bottom:62px;top:8px;left:0;z-index:200;pointer-events:none}.fastboard-left .fastboard-toolbar{padding-left:16px}.fastboard-bottom-left,.fastboard-bottom,.fastboard-bottom-right{display:flex;gap:10px;position:absolute;bottom:8px;left:8px;padding:8px;z-index:200;pointer-events:none}.fastboard-bottom-right{left:auto;right:8px}.fastboard-bottom{right:8px}.fastboard-left.hidden *,.fastboard-bottom.hidden *,.fastboard-bottom-left.hidden *,.fastboard-bottom-right.hidden *{opacity:0;pointer-events:none}.fastboard-tip{font-family:inherit;color:#d5d9e0;background-color:#03060d}.fastboard-tip[data-placement^=right]>.tippy-arrow:before{top:4px;border-width:4px;border-right-color:#03060d}.fastboard-tip[data-placement^=top]>.tippy-arrow:before{left:4px;border-width:4px;border-top-color:#03060d}.fastboard-panel .tippy-content{padding:8px}';
|
|
10741
10992
|
|
|
10742
10993
|
// inline-sass-stub:./src/style.scss
|
|
10743
10994
|
injectStyle(style_default);
|