@netless/fastboard-ui 0.3.7 → 0.3.8-alpha.0
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 +13 -13
- package/dist/index.js +349 -161
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +321 -148
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +3355 -2266
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +4 -4
- /package/src/components/Fastboard/{Fastboard.svelte.ts → Fastboard.svelte.d.ts} +0 -0
- /package/src/components/Fastboard/{ReplayFastboard.svelte.ts → ReplayFastboard.svelte.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var Tippy = require('tippy.js');
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
5
3
|
var __defProp = Object.defineProperty;
|
|
6
4
|
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
6
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
11
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
12
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -21,11 +22,44 @@ var __spreadValues = (a, b) => {
|
|
|
21
22
|
return a;
|
|
22
23
|
};
|
|
23
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __export = (target, all) => {
|
|
26
|
+
for (var name10 in all)
|
|
27
|
+
__defProp(target, name10, { get: all[name10], enumerable: true });
|
|
28
|
+
};
|
|
29
|
+
var __copyProps = (to, from, except, desc) => {
|
|
30
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
31
|
+
for (let key of __getOwnPropNames(from))
|
|
32
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
33
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
34
|
+
}
|
|
35
|
+
return to;
|
|
36
|
+
};
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
38
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
39
|
+
mod
|
|
40
|
+
));
|
|
41
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
42
|
var __publicField = (obj, key, value) => {
|
|
25
43
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
26
44
|
return value;
|
|
27
45
|
};
|
|
28
46
|
|
|
47
|
+
// src/index.ts
|
|
48
|
+
var src_exports = {};
|
|
49
|
+
__export(src_exports, {
|
|
50
|
+
Fastboard: () => Fastboard_default,
|
|
51
|
+
PageControl: () => PageControl_default,
|
|
52
|
+
PlayerControl: () => PlayerControl_default,
|
|
53
|
+
RedoUndo: () => RedoUndo_default,
|
|
54
|
+
ReplayFastboard: () => ReplayFastboard_default,
|
|
55
|
+
Toolbar: () => Toolbar_default,
|
|
56
|
+
ZoomControl: () => ZoomControl_default,
|
|
57
|
+
apps: () => apps,
|
|
58
|
+
createReplayUI: () => createReplayUI,
|
|
59
|
+
createUI: () => createUI
|
|
60
|
+
});
|
|
61
|
+
module.exports = __toCommonJS(src_exports);
|
|
62
|
+
|
|
29
63
|
// inline-sass-helper:inline-sass-style-helper.js
|
|
30
64
|
function injectStyle(text2) {
|
|
31
65
|
if (typeof document !== "undefined") {
|
|
@@ -42,7 +76,7 @@ var style_default = '.tippy-box[data-animation=fade][data-state=hidden]{opacity:
|
|
|
42
76
|
// inline-sass-stub:./src/style.scss
|
|
43
77
|
injectStyle(style_default);
|
|
44
78
|
|
|
45
|
-
// ../../node_modules/.pnpm/svelte@3.
|
|
79
|
+
// ../../node_modules/.pnpm/svelte@3.55.0/node_modules/svelte/internal/index.mjs
|
|
46
80
|
function noop() {
|
|
47
81
|
}
|
|
48
82
|
function assign(tar, src) {
|
|
@@ -141,6 +175,13 @@ function action_destroyer(action_result) {
|
|
|
141
175
|
return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;
|
|
142
176
|
}
|
|
143
177
|
var is_client = typeof window !== "undefined";
|
|
178
|
+
var is_hydrating = false;
|
|
179
|
+
function start_hydrating() {
|
|
180
|
+
is_hydrating = true;
|
|
181
|
+
}
|
|
182
|
+
function end_hydrating() {
|
|
183
|
+
is_hydrating = false;
|
|
184
|
+
}
|
|
144
185
|
function append(target, node) {
|
|
145
186
|
target.appendChild(node);
|
|
146
187
|
}
|
|
@@ -343,6 +384,7 @@ function transition_out(block, local, detach2, callback) {
|
|
|
343
384
|
callback();
|
|
344
385
|
}
|
|
345
386
|
}
|
|
387
|
+
var globals = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : global;
|
|
346
388
|
function destroy_block(block, lookup) {
|
|
347
389
|
block.d(1);
|
|
348
390
|
lookup.delete(block.key);
|
|
@@ -529,6 +571,7 @@ function init(component, options, instance59, create_fragment59, not_equal2, pro
|
|
|
529
571
|
$$.fragment = create_fragment59 ? create_fragment59($$.ctx) : false;
|
|
530
572
|
if (options.target) {
|
|
531
573
|
if (options.hydrate) {
|
|
574
|
+
start_hydrating();
|
|
532
575
|
const nodes = children(options.target);
|
|
533
576
|
$$.fragment && $$.fragment.l(nodes);
|
|
534
577
|
nodes.forEach(detach);
|
|
@@ -538,10 +581,56 @@ function init(component, options, instance59, create_fragment59, not_equal2, pro
|
|
|
538
581
|
if (options.intro)
|
|
539
582
|
transition_in(component.$$.fragment);
|
|
540
583
|
mount_component(component, options.target, options.anchor, options.customElement);
|
|
584
|
+
end_hydrating();
|
|
541
585
|
flush();
|
|
542
586
|
}
|
|
543
587
|
set_current_component(parent_component);
|
|
544
588
|
}
|
|
589
|
+
var SvelteElement;
|
|
590
|
+
if (typeof HTMLElement === "function") {
|
|
591
|
+
SvelteElement = class extends HTMLElement {
|
|
592
|
+
constructor() {
|
|
593
|
+
super();
|
|
594
|
+
this.attachShadow({ mode: "open" });
|
|
595
|
+
}
|
|
596
|
+
connectedCallback() {
|
|
597
|
+
const { on_mount } = this.$$;
|
|
598
|
+
this.$$.on_disconnect = on_mount.map(run).filter(is_function);
|
|
599
|
+
for (const key in this.$$.slotted) {
|
|
600
|
+
this.appendChild(this.$$.slotted[key]);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
attributeChangedCallback(attr2, _oldValue, newValue) {
|
|
604
|
+
this[attr2] = newValue;
|
|
605
|
+
}
|
|
606
|
+
disconnectedCallback() {
|
|
607
|
+
run_all(this.$$.on_disconnect);
|
|
608
|
+
}
|
|
609
|
+
$destroy() {
|
|
610
|
+
destroy_component(this, 1);
|
|
611
|
+
this.$destroy = noop;
|
|
612
|
+
}
|
|
613
|
+
$on(type, callback) {
|
|
614
|
+
if (!is_function(callback)) {
|
|
615
|
+
return noop;
|
|
616
|
+
}
|
|
617
|
+
const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);
|
|
618
|
+
callbacks.push(callback);
|
|
619
|
+
return () => {
|
|
620
|
+
const index = callbacks.indexOf(callback);
|
|
621
|
+
if (index !== -1)
|
|
622
|
+
callbacks.splice(index, 1);
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
$set($$props) {
|
|
626
|
+
if (this.$$set && !is_empty($$props)) {
|
|
627
|
+
this.$$.skip_bound = true;
|
|
628
|
+
this.$$set($$props);
|
|
629
|
+
this.$$.skip_bound = false;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
}
|
|
545
634
|
var SvelteComponent = class {
|
|
546
635
|
$destroy() {
|
|
547
636
|
destroy_component(this, 1);
|
|
@@ -660,7 +749,7 @@ function create_fragment(ctx) {
|
|
|
660
749
|
return 0;
|
|
661
750
|
return 1;
|
|
662
751
|
}
|
|
663
|
-
current_block_type_index = select_block_type(ctx);
|
|
752
|
+
current_block_type_index = select_block_type(ctx, -1);
|
|
664
753
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
665
754
|
return {
|
|
666
755
|
c() {
|
|
@@ -674,7 +763,7 @@ function create_fragment(ctx) {
|
|
|
674
763
|
},
|
|
675
764
|
p(ctx2, [dirty]) {
|
|
676
765
|
let previous_block_index = current_block_type_index;
|
|
677
|
-
current_block_type_index = select_block_type(ctx2);
|
|
766
|
+
current_block_type_index = select_block_type(ctx2, dirty);
|
|
678
767
|
if (current_block_type_index === previous_block_index) {
|
|
679
768
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
680
769
|
} else {
|
|
@@ -3419,8 +3508,11 @@ var Icons = {
|
|
|
3419
3508
|
Loading: Loading_default
|
|
3420
3509
|
};
|
|
3421
3510
|
var Icons_default = Icons;
|
|
3511
|
+
|
|
3512
|
+
// src/actions/tippy.ts
|
|
3513
|
+
var import_tippy = __toESM(require("tippy.js"));
|
|
3422
3514
|
if (is_client) {
|
|
3423
|
-
|
|
3515
|
+
import_tippy.default.setDefaultProps({
|
|
3424
3516
|
delay: [1e3, 400],
|
|
3425
3517
|
duration: 300,
|
|
3426
3518
|
offset: [0, 11],
|
|
@@ -3455,7 +3547,7 @@ if (is_client) {
|
|
|
3455
3547
|
});
|
|
3456
3548
|
}
|
|
3457
3549
|
var tippy = function(node, props) {
|
|
3458
|
-
const instance59 =
|
|
3550
|
+
const instance59 = (0, import_tippy.default)(node, props);
|
|
3459
3551
|
return {
|
|
3460
3552
|
update(props2) {
|
|
3461
3553
|
instance59.setProps(props2);
|
|
@@ -3560,7 +3652,7 @@ function create_if_block2(ctx) {
|
|
|
3560
3652
|
return 0;
|
|
3561
3653
|
return 1;
|
|
3562
3654
|
}
|
|
3563
|
-
current_block_type_index = select_block_type_1(ctx);
|
|
3655
|
+
current_block_type_index = select_block_type_1(ctx, -1);
|
|
3564
3656
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
3565
3657
|
return {
|
|
3566
3658
|
c() {
|
|
@@ -3574,7 +3666,7 @@ function create_if_block2(ctx) {
|
|
|
3574
3666
|
},
|
|
3575
3667
|
p(ctx2, dirty) {
|
|
3576
3668
|
let previous_block_index = current_block_type_index;
|
|
3577
|
-
current_block_type_index = select_block_type_1(ctx2);
|
|
3669
|
+
current_block_type_index = select_block_type_1(ctx2, dirty);
|
|
3578
3670
|
if (current_block_type_index === previous_block_index) {
|
|
3579
3671
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
3580
3672
|
} else {
|
|
@@ -3822,7 +3914,7 @@ function create_fragment45(ctx) {
|
|
|
3822
3914
|
return 0;
|
|
3823
3915
|
return 1;
|
|
3824
3916
|
}
|
|
3825
|
-
current_block_type_index = select_block_type(ctx);
|
|
3917
|
+
current_block_type_index = select_block_type(ctx, -1);
|
|
3826
3918
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
3827
3919
|
return {
|
|
3828
3920
|
c() {
|
|
@@ -3836,7 +3928,7 @@ function create_fragment45(ctx) {
|
|
|
3836
3928
|
},
|
|
3837
3929
|
p(ctx2, [dirty]) {
|
|
3838
3930
|
let previous_block_index = current_block_type_index;
|
|
3839
|
-
current_block_type_index = select_block_type(ctx2);
|
|
3931
|
+
current_block_type_index = select_block_type(ctx2, dirty);
|
|
3840
3932
|
if (current_block_type_index === previous_block_index) {
|
|
3841
3933
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
3842
3934
|
} else {
|
|
@@ -4240,28 +4332,36 @@ function instance46($$self, $$props, $$invalidate) {
|
|
|
4240
4332
|
};
|
|
4241
4333
|
$$self.$$.update = () => {
|
|
4242
4334
|
if ($$self.$$.dirty & 2048) {
|
|
4243
|
-
|
|
4335
|
+
$:
|
|
4336
|
+
$$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
|
|
4244
4337
|
}
|
|
4245
4338
|
if ($$self.$$.dirty & 65536) {
|
|
4246
|
-
|
|
4339
|
+
$:
|
|
4340
|
+
$$invalidate(13, disabled = !$writable);
|
|
4247
4341
|
}
|
|
4248
4342
|
if ($$self.$$.dirty & 4096) {
|
|
4249
|
-
|
|
4343
|
+
$:
|
|
4344
|
+
$$invalidate(7, t = i18n[language]);
|
|
4250
4345
|
}
|
|
4251
4346
|
if ($$self.$$.dirty & 8192) {
|
|
4252
|
-
|
|
4347
|
+
$:
|
|
4348
|
+
$$invalidate(2, type = disabled ? "disable" : "normal");
|
|
4253
4349
|
}
|
|
4254
4350
|
if ($$self.$$.dirty & 2048) {
|
|
4255
|
-
|
|
4351
|
+
$:
|
|
4352
|
+
$$subscribe_undoSteps($$invalidate(6, undoSteps = app == null ? void 0 : app.canUndoSteps));
|
|
4256
4353
|
}
|
|
4257
4354
|
if ($$self.$$.dirty & 2048) {
|
|
4258
|
-
|
|
4355
|
+
$:
|
|
4356
|
+
$$subscribe_redoSteps($$invalidate(5, redoSteps = app == null ? void 0 : app.canRedoSteps));
|
|
4259
4357
|
}
|
|
4260
4358
|
if ($$self.$$.dirty & 40960) {
|
|
4261
|
-
|
|
4359
|
+
$:
|
|
4360
|
+
$$invalidate(4, undo_disabled = disabled || !$undoSteps);
|
|
4262
4361
|
}
|
|
4263
4362
|
if ($$self.$$.dirty & 24576) {
|
|
4264
|
-
|
|
4363
|
+
$:
|
|
4364
|
+
$$invalidate(3, redo_disabled = disabled || !$redoSteps);
|
|
4265
4365
|
}
|
|
4266
4366
|
};
|
|
4267
4367
|
return [
|
|
@@ -4609,7 +4709,7 @@ function create_fragment47(ctx) {
|
|
|
4609
4709
|
return create_if_block3;
|
|
4610
4710
|
return create_else_block3;
|
|
4611
4711
|
}
|
|
4612
|
-
let current_block_type = select_block_type(ctx);
|
|
4712
|
+
let current_block_type = select_block_type(ctx, -1);
|
|
4613
4713
|
let if_block = current_block_type(ctx);
|
|
4614
4714
|
button1 = new Button_default({
|
|
4615
4715
|
props: {
|
|
@@ -4673,7 +4773,7 @@ function create_fragment47(ctx) {
|
|
|
4673
4773
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
4674
4774
|
}
|
|
4675
4775
|
button0.$set(button0_changes);
|
|
4676
|
-
if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
|
|
4776
|
+
if (current_block_type === (current_block_type = select_block_type(ctx2, dirty)) && if_block) {
|
|
4677
4777
|
if_block.p(ctx2, dirty);
|
|
4678
4778
|
} else {
|
|
4679
4779
|
if_block.d(1);
|
|
@@ -4790,28 +4890,36 @@ function instance47($$self, $$props, $$invalidate) {
|
|
|
4790
4890
|
};
|
|
4791
4891
|
$$self.$$.update = () => {
|
|
4792
4892
|
if ($$self.$$.dirty & 32768) {
|
|
4793
|
-
|
|
4893
|
+
$:
|
|
4894
|
+
$$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
|
|
4794
4895
|
}
|
|
4795
4896
|
if ($$self.$$.dirty & 131072) {
|
|
4796
|
-
|
|
4897
|
+
$:
|
|
4898
|
+
$$invalidate(2, disabled = !$writable);
|
|
4797
4899
|
}
|
|
4798
4900
|
if ($$self.$$.dirty & 65536) {
|
|
4799
|
-
|
|
4901
|
+
$:
|
|
4902
|
+
$$invalidate(10, t = i18n2[language]);
|
|
4800
4903
|
}
|
|
4801
4904
|
if ($$self.$$.dirty & 4) {
|
|
4802
|
-
|
|
4905
|
+
$:
|
|
4906
|
+
$$invalidate(5, type = disabled ? "disable" : "normal");
|
|
4803
4907
|
}
|
|
4804
4908
|
if ($$self.$$.dirty & 32768) {
|
|
4805
|
-
|
|
4909
|
+
$:
|
|
4910
|
+
$$subscribe_index($$invalidate(9, index = app == null ? void 0 : app.sceneIndex));
|
|
4806
4911
|
}
|
|
4807
4912
|
if ($$self.$$.dirty & 32768) {
|
|
4808
|
-
|
|
4913
|
+
$:
|
|
4914
|
+
$$subscribe_length($$invalidate(8, length = app == null ? void 0 : app.sceneLength));
|
|
4809
4915
|
}
|
|
4810
4916
|
if ($$self.$$.dirty & 20) {
|
|
4811
|
-
|
|
4917
|
+
$:
|
|
4918
|
+
$$invalidate(7, prev_disabled = disabled || !$index);
|
|
4812
4919
|
}
|
|
4813
4920
|
if ($$self.$$.dirty & 28) {
|
|
4814
|
-
|
|
4921
|
+
$:
|
|
4922
|
+
$$invalidate(6, next_disabled = disabled || $length == null || $index === $length - 1);
|
|
4815
4923
|
}
|
|
4816
4924
|
};
|
|
4817
4925
|
return [
|
|
@@ -5158,7 +5266,7 @@ function create_fragment48(ctx) {
|
|
|
5158
5266
|
return create_if_block4;
|
|
5159
5267
|
return create_else_block4;
|
|
5160
5268
|
}
|
|
5161
|
-
let current_block_type = select_block_type(ctx);
|
|
5269
|
+
let current_block_type = select_block_type(ctx, -1);
|
|
5162
5270
|
let if_block = current_block_type(ctx);
|
|
5163
5271
|
button1 = new Button_default({
|
|
5164
5272
|
props: {
|
|
@@ -5222,7 +5330,7 @@ function create_fragment48(ctx) {
|
|
|
5222
5330
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
5223
5331
|
}
|
|
5224
5332
|
button0.$set(button0_changes);
|
|
5225
|
-
if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
|
|
5333
|
+
if (current_block_type === (current_block_type = select_block_type(ctx2, dirty)) && if_block) {
|
|
5226
5334
|
if_block.p(ctx2, dirty);
|
|
5227
5335
|
} else {
|
|
5228
5336
|
if_block.d(1);
|
|
@@ -5374,28 +5482,36 @@ function instance48($$self, $$props, $$invalidate) {
|
|
|
5374
5482
|
$$self.$$.update = () => {
|
|
5375
5483
|
var _a;
|
|
5376
5484
|
if ($$self.$$.dirty & 16384) {
|
|
5377
|
-
|
|
5485
|
+
$:
|
|
5486
|
+
$$subscribe_writable($$invalidate(10, writable2 = app == null ? void 0 : app.writable));
|
|
5378
5487
|
}
|
|
5379
5488
|
if ($$self.$$.dirty & 65536) {
|
|
5380
|
-
|
|
5489
|
+
$:
|
|
5490
|
+
$$invalidate(3, disabled = !$writable);
|
|
5381
5491
|
}
|
|
5382
5492
|
if ($$self.$$.dirty & 32768) {
|
|
5383
|
-
|
|
5493
|
+
$:
|
|
5494
|
+
$$invalidate(9, t = i18n3[language]);
|
|
5384
5495
|
}
|
|
5385
5496
|
if ($$self.$$.dirty & 8) {
|
|
5386
|
-
|
|
5497
|
+
$:
|
|
5498
|
+
$$invalidate(5, type = disabled ? "disable" : "normal");
|
|
5387
5499
|
}
|
|
5388
5500
|
if ($$self.$$.dirty & 16384) {
|
|
5389
|
-
|
|
5501
|
+
$:
|
|
5502
|
+
$$subscribe_camera($$invalidate(8, camera = app == null ? void 0 : app.camera));
|
|
5390
5503
|
}
|
|
5391
5504
|
if ($$self.$$.dirty & 16) {
|
|
5392
|
-
|
|
5505
|
+
$:
|
|
5506
|
+
$$invalidate(2, scale = (_a = $camera == null ? void 0 : $camera.scale) != null ? _a : 1);
|
|
5393
5507
|
}
|
|
5394
5508
|
if ($$self.$$.dirty & 12) {
|
|
5395
|
-
|
|
5509
|
+
$:
|
|
5510
|
+
$$invalidate(7, plus_disabled = disabled || next_scale(scale, 1) === scale);
|
|
5396
5511
|
}
|
|
5397
5512
|
if ($$self.$$.dirty & 12) {
|
|
5398
|
-
|
|
5513
|
+
$:
|
|
5514
|
+
$$invalidate(6, minus_disabled = disabled || next_scale(scale, -1) === scale);
|
|
5399
5515
|
}
|
|
5400
5516
|
};
|
|
5401
5517
|
return [
|
|
@@ -5431,7 +5547,7 @@ var ZoomControl = class extends SvelteComponent {
|
|
|
5431
5547
|
};
|
|
5432
5548
|
var ZoomControl_default = ZoomControl;
|
|
5433
5549
|
|
|
5434
|
-
// ../../node_modules/.pnpm/svelte@3.
|
|
5550
|
+
// ../../node_modules/.pnpm/svelte@3.55.0/node_modules/svelte/store/index.mjs
|
|
5435
5551
|
var subscriber_queue = [];
|
|
5436
5552
|
function writable(value, start = noop) {
|
|
5437
5553
|
let stop;
|
|
@@ -5599,13 +5715,13 @@ var scrollTop = function(node, value) {
|
|
|
5599
5715
|
};
|
|
5600
5716
|
|
|
5601
5717
|
// src/behaviors/icons/visual-studio-code.svg
|
|
5602
|
-
var visual_studio_code_default =
|
|
5718
|
+
var visual_studio_code_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1.01em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 254" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);"><defs><linearGradient id="IconifyId-17f872155be-cc766e-5439" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="%23FFF"/><stop offset="100%" stop-color="%23FFF" stop-opacity="0"/></linearGradient><path id="IconifyId-17f872155be-cc766e-5440" d="M180.828 252.605a15.872 15.872 0 0 0 12.65-.486l52.501-25.262a15.94 15.94 0 0 0 9.025-14.364V41.197a15.939 15.939 0 0 0-9.025-14.363l-52.5-25.263a15.877 15.877 0 0 0-18.115 3.084L74.857 96.35l-43.78-33.232a10.614 10.614 0 0 0-13.56.603L3.476 76.494c-4.63 4.211-4.635 11.495-.012 15.713l37.967 34.638l-37.967 34.637c-4.623 4.219-4.618 11.502.012 15.714l14.041 12.772a10.614 10.614 0 0 0 13.56.604l43.78-33.233l100.507 91.695a15.853 15.853 0 0 0 5.464 3.571Zm10.464-183.649l-76.262 57.889l76.262 57.888V68.956Z"/></defs><mask id="IconifyId-17f872155be-cc766e-5441" fill="%23fff"><use href="%23IconifyId-17f872155be-cc766e-5440"/></mask><path fill="%230065A9" d="M246.135 26.873L193.593 1.575a15.885 15.885 0 0 0-18.123 3.08L3.466 161.482c-4.626 4.219-4.62 11.502.012 15.714l14.05 12.772a10.625 10.625 0 0 0 13.569.604L238.229 33.436c6.949-5.271 16.93-.315 16.93 8.407v-.61a15.938 15.938 0 0 0-9.024-14.36Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/><path fill="%23007ACC" d="m246.135 226.816l-52.542 25.298a15.887 15.887 0 0 1-18.123-3.08L3.466 92.207c-4.626-4.218-4.62-11.502.012-15.713l14.05-12.773a10.625 10.625 0 0 1 13.569-.603l207.132 157.135c6.949 5.271 16.93.315 16.93-8.408v.611a15.939 15.939 0 0 1-9.024 14.36Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/><path fill="%231F9CF0" d="M193.428 252.134a15.892 15.892 0 0 1-18.125-3.083c5.881 5.88 15.938 1.715 15.938-6.603V11.273c0-8.318-10.057-12.483-15.938-6.602a15.892 15.892 0 0 1 18.125-3.084l52.533 25.263a15.937 15.937 0 0 1 9.03 14.363V212.51c0 6.125-3.51 11.709-9.03 14.363l-52.533 25.262Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/><path fill="url(%23IconifyId-17f872155be-cc766e-5439)" fill-opacity=".25" d="M180.828 252.605a15.874 15.874 0 0 0 12.65-.486l52.5-25.263a15.938 15.938 0 0 0 9.026-14.363V41.197a15.939 15.939 0 0 0-9.025-14.363L193.477 1.57a15.877 15.877 0 0 0-18.114 3.084L74.857 96.35l-43.78-33.232a10.614 10.614 0 0 0-13.56.603L3.476 76.494c-4.63 4.211-4.635 11.495-.012 15.713l37.967 34.638l-37.967 34.637c-4.623 4.219-4.618 11.502.012 15.714l14.041 12.772a10.614 10.614 0 0 0 13.56.604l43.78-33.233l100.506 91.695a15.857 15.857 0 0 0 5.465 3.571Zm10.464-183.65l-76.262 57.89l76.262 57.888V68.956Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/></svg>';
|
|
5603
5719
|
|
|
5604
5720
|
// src/behaviors/icons/geogebra.svg
|
|
5605
|
-
var geogebra_default =
|
|
5721
|
+
var geogebra_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--arcticons" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 48 48"><path fill="none" stroke="%236557d2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M24 3a4.77 4.77 0 1 0 4.77 4.77A4.78 4.78 0 0 0 24 3ZM7.69 14.86a4.77 4.77 0 1 0 4.76 4.77a4.76 4.76 0 0 0-4.76-4.77Zm32.64 0a4.77 4.77 0 1 0 4.77 4.77a4.77 4.77 0 0 0-4.77-4.77ZM13.92 34.05a4.77 4.77 0 1 0 4.77 4.77a4.76 4.76 0 0 0-4.77-4.77Zm20.18 0a4.77 4.77 0 1 0 4.76 4.77a4.76 4.76 0 0 0-4.76-4.77Z"></path><path fill="none" stroke="%236557d2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M19.27 8.35a17.24 17.24 0 0 0-9.73 6.87m28.51.22a17.28 17.28 0 0 0-9.34-6.94m8.7 26.89A17.09 17.09 0 0 0 40.93 25v-.61M18 41.22a17.23 17.23 0 0 0 5.68 1a17 17 0 0 0 6.2-1.22M6.53 24.25v.72a17.16 17.16 0 0 0 3.77 10.76"></path></svg>';
|
|
5606
5722
|
|
|
5607
5723
|
// src/behaviors/icons/countdown.svg
|
|
5608
|
-
var countdown_default =
|
|
5724
|
+
var countdown_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--radix-icons" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 15 15"><path fill="grey" fill-rule="evenodd" d="M13.15 7.5c0-2.835-2.21-5.65-5.65-5.65c-2.778 0-4.151 2.056-4.737 3.15H4.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 1 0v1.813C2.705 3.071 4.334.85 7.5.85c4.063 0 6.65 3.335 6.65 6.65c0 3.315-2.587 6.65-6.65 6.65c-1.944 0-3.562-.77-4.715-1.942a6.772 6.772 0 0 1-1.427-2.167a.5.5 0 1 1 .925-.38c.28.681.692 1.314 1.216 1.846c.972.99 2.336 1.643 4.001 1.643c3.44 0 5.65-2.815 5.65-5.65ZM7 10V5h1v5H7Z" clip-rule="evenodd"></path></svg>';
|
|
5609
5725
|
|
|
5610
5726
|
// src/behaviors/apps.ts
|
|
5611
5727
|
var AppsInToolbar = class {
|
|
@@ -5826,12 +5942,14 @@ function instance49($$self, $$props, $$invalidate) {
|
|
|
5826
5942
|
};
|
|
5827
5943
|
$$self.$$.update = () => {
|
|
5828
5944
|
if ($$self.$$.dirty & 385) {
|
|
5829
|
-
|
|
5945
|
+
$:
|
|
5946
|
+
if (value !== real_value && !grabbing) {
|
|
5830
5947
|
$$invalidate(7, real_value = value);
|
|
5831
5948
|
}
|
|
5832
5949
|
}
|
|
5833
5950
|
if ($$self.$$.dirty & 152) {
|
|
5834
|
-
|
|
5951
|
+
$:
|
|
5952
|
+
$$invalidate(9, percent = 100 * (real_value - min) / (max - min));
|
|
5835
5953
|
}
|
|
5836
5954
|
};
|
|
5837
5955
|
return [
|
|
@@ -5937,13 +6055,16 @@ function instance50($$self, $$props, $$invalidate) {
|
|
|
5937
6055
|
$$self.$$.update = () => {
|
|
5938
6056
|
var _a;
|
|
5939
6057
|
if ($$self.$$.dirty & 8) {
|
|
5940
|
-
|
|
6058
|
+
$:
|
|
6059
|
+
$$subscribe_memberState($$invalidate(1, memberState = app == null ? void 0 : app.memberState));
|
|
5941
6060
|
}
|
|
5942
6061
|
if ($$self.$$.dirty & 128) {
|
|
5943
|
-
|
|
6062
|
+
$:
|
|
6063
|
+
$$invalidate(6, value = (_a = $memberState == null ? void 0 : $memberState.strokeWidth) != null ? _a : 1);
|
|
5944
6064
|
}
|
|
5945
6065
|
if ($$self.$$.dirty & 112) {
|
|
5946
|
-
|
|
6066
|
+
$:
|
|
6067
|
+
$$invalidate(0, props = { value, theme, disabled });
|
|
5947
6068
|
}
|
|
5948
6069
|
};
|
|
5949
6070
|
return [
|
|
@@ -5976,6 +6097,7 @@ function create_each_block(key_1, ctx) {
|
|
|
5976
6097
|
let span;
|
|
5977
6098
|
let t;
|
|
5978
6099
|
let button_class_value;
|
|
6100
|
+
let button_data_color_key_value;
|
|
5979
6101
|
return {
|
|
5980
6102
|
key: key_1,
|
|
5981
6103
|
first: null,
|
|
@@ -5986,7 +6108,7 @@ function create_each_block(key_1, ctx) {
|
|
|
5986
6108
|
attr(span, "class", "fastboard-toolbar-color-item");
|
|
5987
6109
|
set_style(span, "background-color", ctx[7]);
|
|
5988
6110
|
attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0]);
|
|
5989
|
-
attr(button, "data-color-key", ctx[7]);
|
|
6111
|
+
attr(button, "data-color-key", button_data_color_key_value = ctx[7]);
|
|
5990
6112
|
button.disabled = ctx[1];
|
|
5991
6113
|
toggle_class(button, "is-active", is_equal_color(ctx[2], colors[ctx[7]]));
|
|
5992
6114
|
this.first = button;
|
|
@@ -6098,10 +6220,12 @@ function instance51($$self, $$props, $$invalidate) {
|
|
|
6098
6220
|
};
|
|
6099
6221
|
$$self.$$.update = () => {
|
|
6100
6222
|
if ($$self.$$.dirty & 32) {
|
|
6101
|
-
|
|
6223
|
+
$:
|
|
6224
|
+
$$subscribe_memberState($$invalidate(3, memberState = app == null ? void 0 : app.memberState));
|
|
6102
6225
|
}
|
|
6103
6226
|
if ($$self.$$.dirty & 64) {
|
|
6104
|
-
|
|
6227
|
+
$:
|
|
6228
|
+
$$invalidate(2, strokeColor = $memberState == null ? void 0 : $memberState.strokeColor);
|
|
6105
6229
|
}
|
|
6106
6230
|
};
|
|
6107
6231
|
return [theme, disabled, strokeColor, memberState, set_stroke_color, app, $memberState];
|
|
@@ -6125,6 +6249,7 @@ function create_each_block2(key_1, ctx) {
|
|
|
6125
6249
|
let span;
|
|
6126
6250
|
let t;
|
|
6127
6251
|
let button_class_value;
|
|
6252
|
+
let button_data_color_key_value;
|
|
6128
6253
|
return {
|
|
6129
6254
|
key: key_1,
|
|
6130
6255
|
first: null,
|
|
@@ -6135,7 +6260,7 @@ function create_each_block2(key_1, ctx) {
|
|
|
6135
6260
|
attr(span, "class", "fastboard-toolbar-color-item");
|
|
6136
6261
|
set_style(span, "background-color", ctx[7]);
|
|
6137
6262
|
attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0]);
|
|
6138
|
-
attr(button, "data-color-key", ctx[7]);
|
|
6263
|
+
attr(button, "data-color-key", button_data_color_key_value = ctx[7]);
|
|
6139
6264
|
button.disabled = ctx[1];
|
|
6140
6265
|
toggle_class(button, "is-active", is_equal_color2(ctx[2], colors[ctx[7]]));
|
|
6141
6266
|
this.first = button;
|
|
@@ -6247,10 +6372,12 @@ function instance52($$self, $$props, $$invalidate) {
|
|
|
6247
6372
|
};
|
|
6248
6373
|
$$self.$$.update = () => {
|
|
6249
6374
|
if ($$self.$$.dirty & 32) {
|
|
6250
|
-
|
|
6375
|
+
$:
|
|
6376
|
+
$$subscribe_memberState($$invalidate(3, memberState = app == null ? void 0 : app.memberState));
|
|
6251
6377
|
}
|
|
6252
6378
|
if ($$self.$$.dirty & 64) {
|
|
6253
|
-
|
|
6379
|
+
$:
|
|
6380
|
+
$$invalidate(2, textColor = $memberState == null ? void 0 : $memberState.textColor);
|
|
6254
6381
|
}
|
|
6255
6382
|
};
|
|
6256
6383
|
return [theme, disabled, textColor, memberState, set_stroke_color, app, $memberState];
|
|
@@ -6415,6 +6542,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
6415
6542
|
let if_block;
|
|
6416
6543
|
let t_1;
|
|
6417
6544
|
let button_class_value;
|
|
6545
|
+
let button_data_shape_key_value;
|
|
6418
6546
|
let tippy_action;
|
|
6419
6547
|
let current;
|
|
6420
6548
|
let mounted;
|
|
@@ -6426,7 +6554,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
6426
6554
|
return 0;
|
|
6427
6555
|
return 1;
|
|
6428
6556
|
}
|
|
6429
|
-
current_block_type_index = select_block_type(ctx);
|
|
6557
|
+
current_block_type_index = select_block_type(ctx, -1);
|
|
6430
6558
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
6431
6559
|
return {
|
|
6432
6560
|
key: key_1,
|
|
@@ -6436,7 +6564,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
6436
6564
|
if_block.c();
|
|
6437
6565
|
t_1 = space();
|
|
6438
6566
|
attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-shape-btn " + ctx[0] + " " + ctx[12]);
|
|
6439
|
-
attr(button, "data-shape-key", ctx[12]);
|
|
6567
|
+
attr(button, "data-shape-key", button_data_shape_key_value = ctx[12]);
|
|
6440
6568
|
button.disabled = ctx[1];
|
|
6441
6569
|
toggle_class(button, "is-active", ctx[13]);
|
|
6442
6570
|
this.first = button;
|
|
@@ -6457,7 +6585,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
6457
6585
|
p(new_ctx, dirty) {
|
|
6458
6586
|
ctx = new_ctx;
|
|
6459
6587
|
let previous_block_index = current_block_type_index;
|
|
6460
|
-
current_block_type_index = select_block_type(ctx);
|
|
6588
|
+
current_block_type_index = select_block_type(ctx, dirty);
|
|
6461
6589
|
if (current_block_type_index === previous_block_index) {
|
|
6462
6590
|
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
6463
6591
|
} else {
|
|
@@ -6640,22 +6768,28 @@ function instance53($$self, $$props, $$invalidate) {
|
|
|
6640
6768
|
};
|
|
6641
6769
|
$$self.$$.update = () => {
|
|
6642
6770
|
if ($$self.$$.dirty & 512) {
|
|
6643
|
-
|
|
6771
|
+
$:
|
|
6772
|
+
$$invalidate(6, t = i18n5[language]);
|
|
6644
6773
|
}
|
|
6645
6774
|
if ($$self.$$.dirty & 256) {
|
|
6646
|
-
|
|
6775
|
+
$:
|
|
6776
|
+
$$subscribe_memberState($$invalidate(5, memberState = app == null ? void 0 : app.memberState));
|
|
6647
6777
|
}
|
|
6648
6778
|
if ($$self.$$.dirty & 2048) {
|
|
6649
|
-
|
|
6779
|
+
$:
|
|
6780
|
+
$$invalidate(4, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
|
|
6650
6781
|
}
|
|
6651
6782
|
if ($$self.$$.dirty & 2048) {
|
|
6652
|
-
|
|
6783
|
+
$:
|
|
6784
|
+
$$invalidate(3, shape = $memberState == null ? void 0 : $memberState.shapeType);
|
|
6653
6785
|
}
|
|
6654
6786
|
if ($$self.$$.dirty & 256) {
|
|
6655
|
-
|
|
6787
|
+
$:
|
|
6788
|
+
$$invalidate(10, hotkeys = app == null ? void 0 : app.hotKeys);
|
|
6656
6789
|
}
|
|
6657
6790
|
if ($$self.$$.dirty & 1024) {
|
|
6658
|
-
|
|
6791
|
+
$:
|
|
6792
|
+
$$invalidate(2, c = {
|
|
6659
6793
|
rectangle: hotkeys == null ? void 0 : hotkeys.changeToRectangle,
|
|
6660
6794
|
ellipse: hotkeys == null ? void 0 : hotkeys.changeToEllipse,
|
|
6661
6795
|
straight: hotkeys == null ? void 0 : hotkeys.changeToStraight,
|
|
@@ -6864,7 +6998,7 @@ function create_default_slot_8(ctx) {
|
|
|
6864
6998
|
return 0;
|
|
6865
6999
|
return 1;
|
|
6866
7000
|
}
|
|
6867
|
-
current_block_type_index = select_block_type(ctx);
|
|
7001
|
+
current_block_type_index = select_block_type(ctx, [-1, -1]);
|
|
6868
7002
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
6869
7003
|
return {
|
|
6870
7004
|
c() {
|
|
@@ -6878,7 +7012,7 @@ function create_default_slot_8(ctx) {
|
|
|
6878
7012
|
},
|
|
6879
7013
|
p(ctx2, dirty) {
|
|
6880
7014
|
let previous_block_index = current_block_type_index;
|
|
6881
|
-
current_block_type_index = select_block_type(ctx2);
|
|
7015
|
+
current_block_type_index = select_block_type(ctx2, dirty);
|
|
6882
7016
|
if (current_block_type_index === previous_block_index) {
|
|
6883
7017
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
6884
7018
|
} else {
|
|
@@ -6995,7 +7129,7 @@ function create_default_slot_7(ctx) {
|
|
|
6995
7129
|
return 0;
|
|
6996
7130
|
return 1;
|
|
6997
7131
|
}
|
|
6998
|
-
current_block_type_index = select_block_type_1(ctx);
|
|
7132
|
+
current_block_type_index = select_block_type_1(ctx, [-1, -1]);
|
|
6999
7133
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7000
7134
|
return {
|
|
7001
7135
|
c() {
|
|
@@ -7009,7 +7143,7 @@ function create_default_slot_7(ctx) {
|
|
|
7009
7143
|
},
|
|
7010
7144
|
p(ctx2, dirty) {
|
|
7011
7145
|
let previous_block_index = current_block_type_index;
|
|
7012
|
-
current_block_type_index = select_block_type_1(ctx2);
|
|
7146
|
+
current_block_type_index = select_block_type_1(ctx2, dirty);
|
|
7013
7147
|
if (current_block_type_index === previous_block_index) {
|
|
7014
7148
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
7015
7149
|
} else {
|
|
@@ -7126,7 +7260,7 @@ function create_default_slot_6(ctx) {
|
|
|
7126
7260
|
return 0;
|
|
7127
7261
|
return 1;
|
|
7128
7262
|
}
|
|
7129
|
-
current_block_type_index = select_block_type_2(ctx);
|
|
7263
|
+
current_block_type_index = select_block_type_2(ctx, [-1, -1]);
|
|
7130
7264
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7131
7265
|
return {
|
|
7132
7266
|
c() {
|
|
@@ -7140,7 +7274,7 @@ function create_default_slot_6(ctx) {
|
|
|
7140
7274
|
},
|
|
7141
7275
|
p(ctx2, dirty) {
|
|
7142
7276
|
let previous_block_index = current_block_type_index;
|
|
7143
|
-
current_block_type_index = select_block_type_2(ctx2);
|
|
7277
|
+
current_block_type_index = select_block_type_2(ctx2, dirty);
|
|
7144
7278
|
if (current_block_type_index === previous_block_index) {
|
|
7145
7279
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
7146
7280
|
} else {
|
|
@@ -7257,7 +7391,7 @@ function create_default_slot_53(ctx) {
|
|
|
7257
7391
|
return 0;
|
|
7258
7392
|
return 1;
|
|
7259
7393
|
}
|
|
7260
|
-
current_block_type_index = select_block_type_3(ctx);
|
|
7394
|
+
current_block_type_index = select_block_type_3(ctx, [-1, -1]);
|
|
7261
7395
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7262
7396
|
return {
|
|
7263
7397
|
c() {
|
|
@@ -7271,7 +7405,7 @@ function create_default_slot_53(ctx) {
|
|
|
7271
7405
|
},
|
|
7272
7406
|
p(ctx2, dirty) {
|
|
7273
7407
|
let previous_block_index = current_block_type_index;
|
|
7274
|
-
current_block_type_index = select_block_type_3(ctx2);
|
|
7408
|
+
current_block_type_index = select_block_type_3(ctx2, dirty);
|
|
7275
7409
|
if (current_block_type_index === previous_block_index) {
|
|
7276
7410
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
7277
7411
|
} else {
|
|
@@ -7458,7 +7592,7 @@ function create_default_slot_43(ctx) {
|
|
|
7458
7592
|
return 0;
|
|
7459
7593
|
return 1;
|
|
7460
7594
|
}
|
|
7461
|
-
current_block_type_index = select_block_type_4(ctx);
|
|
7595
|
+
current_block_type_index = select_block_type_4(ctx, [-1, -1]);
|
|
7462
7596
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7463
7597
|
return {
|
|
7464
7598
|
c() {
|
|
@@ -7472,7 +7606,7 @@ function create_default_slot_43(ctx) {
|
|
|
7472
7606
|
},
|
|
7473
7607
|
p(ctx2, dirty) {
|
|
7474
7608
|
let previous_block_index = current_block_type_index;
|
|
7475
|
-
current_block_type_index = select_block_type_4(ctx2);
|
|
7609
|
+
current_block_type_index = select_block_type_4(ctx2, dirty);
|
|
7476
7610
|
if (current_block_type_index === previous_block_index) {
|
|
7477
7611
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
7478
7612
|
} else {
|
|
@@ -7589,7 +7723,7 @@ function create_default_slot_34(ctx) {
|
|
|
7589
7723
|
return 0;
|
|
7590
7724
|
return 1;
|
|
7591
7725
|
}
|
|
7592
|
-
current_block_type_index = select_block_type_5(ctx);
|
|
7726
|
+
current_block_type_index = select_block_type_5(ctx, [-1, -1]);
|
|
7593
7727
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7594
7728
|
return {
|
|
7595
7729
|
c() {
|
|
@@ -7603,7 +7737,7 @@ function create_default_slot_34(ctx) {
|
|
|
7603
7737
|
},
|
|
7604
7738
|
p(ctx2, dirty) {
|
|
7605
7739
|
let previous_block_index = current_block_type_index;
|
|
7606
|
-
current_block_type_index = select_block_type_5(ctx2);
|
|
7740
|
+
current_block_type_index = select_block_type_5(ctx2, dirty);
|
|
7607
7741
|
if (current_block_type_index === previous_block_index) {
|
|
7608
7742
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
7609
7743
|
} else {
|
|
@@ -7959,7 +8093,9 @@ function create_fragment54(ctx) {
|
|
|
7959
8093
|
let t6;
|
|
7960
8094
|
let button6;
|
|
7961
8095
|
let t7;
|
|
8096
|
+
let div0_class_value;
|
|
7962
8097
|
let scrollHeight_action;
|
|
8098
|
+
let scrollTop_action;
|
|
7963
8099
|
let t8;
|
|
7964
8100
|
let t9;
|
|
7965
8101
|
let div8;
|
|
@@ -7967,24 +8103,32 @@ function create_fragment54(ctx) {
|
|
|
7967
8103
|
let strokewidth0;
|
|
7968
8104
|
let t10;
|
|
7969
8105
|
let div1;
|
|
8106
|
+
let div1_class_value;
|
|
7970
8107
|
let t11;
|
|
7971
8108
|
let strokecolor0;
|
|
8109
|
+
let div2_class_value;
|
|
7972
8110
|
let t12;
|
|
7973
8111
|
let div3;
|
|
7974
8112
|
let textcolor;
|
|
8113
|
+
let div3_class_value;
|
|
7975
8114
|
let t13;
|
|
7976
8115
|
let div6;
|
|
7977
8116
|
let shapes2;
|
|
7978
8117
|
let t14;
|
|
7979
8118
|
let div4;
|
|
8119
|
+
let div4_class_value;
|
|
7980
8120
|
let t15;
|
|
7981
8121
|
let strokewidth1;
|
|
7982
8122
|
let t16;
|
|
7983
8123
|
let div5;
|
|
8124
|
+
let div5_class_value;
|
|
7984
8125
|
let t17;
|
|
7985
8126
|
let strokecolor1;
|
|
8127
|
+
let div6_class_value;
|
|
7986
8128
|
let t18;
|
|
7987
8129
|
let div7;
|
|
8130
|
+
let div7_class_value;
|
|
8131
|
+
let div8_class_value;
|
|
7988
8132
|
let current;
|
|
7989
8133
|
let mounted;
|
|
7990
8134
|
let dispose;
|
|
@@ -8184,17 +8328,17 @@ function create_fragment54(ctx) {
|
|
|
8184
8328
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
8185
8329
|
each_blocks[i].c();
|
|
8186
8330
|
}
|
|
8187
|
-
attr(div0, "class", name5 + "-scrollable");
|
|
8331
|
+
attr(div0, "class", div0_class_value = name5 + "-scrollable");
|
|
8188
8332
|
toggle_class(div0, "scrollable", ctx[5]);
|
|
8189
|
-
attr(div1, "class", name5 + "-panel-divider");
|
|
8190
|
-
attr(div2, "class", name5 + "-panel pencil");
|
|
8191
|
-
attr(div3, "class", name5 + "-panel text");
|
|
8192
|
-
attr(div4, "class", name5 + "-panel-divider");
|
|
8193
|
-
attr(div5, "class", name5 + "-panel-divider");
|
|
8194
|
-
attr(div6, "class", name5 + "-panel shapes");
|
|
8195
|
-
attr(div7, "class", name5 + "-panel apps");
|
|
8333
|
+
attr(div1, "class", div1_class_value = name5 + "-panel-divider");
|
|
8334
|
+
attr(div2, "class", div2_class_value = name5 + "-panel pencil");
|
|
8335
|
+
attr(div3, "class", div3_class_value = name5 + "-panel text");
|
|
8336
|
+
attr(div4, "class", div4_class_value = name5 + "-panel-divider");
|
|
8337
|
+
attr(div5, "class", div5_class_value = name5 + "-panel-divider");
|
|
8338
|
+
attr(div6, "class", div6_class_value = name5 + "-panel shapes");
|
|
8339
|
+
attr(div7, "class", div7_class_value = name5 + "-panel apps");
|
|
8196
8340
|
set_style(div7, "--n", ctx[19].length);
|
|
8197
|
-
attr(div8, "class", name5 + "-panel-wrapper");
|
|
8341
|
+
attr(div8, "class", div8_class_value = name5 + "-panel-wrapper");
|
|
8198
8342
|
set_style(div8, "display", "none");
|
|
8199
8343
|
},
|
|
8200
8344
|
m(target, anchor) {
|
|
@@ -8256,7 +8400,7 @@ function create_fragment54(ctx) {
|
|
|
8256
8400
|
if (!mounted) {
|
|
8257
8401
|
dispose = [
|
|
8258
8402
|
action_destroyer(scrollHeight_action = scrollHeight.call(null, div0, ctx[4])),
|
|
8259
|
-
action_destroyer(scrollTop.call(null, div0, ctx[21]))
|
|
8403
|
+
action_destroyer(scrollTop_action = scrollTop.call(null, div0, ctx[21]))
|
|
8260
8404
|
];
|
|
8261
8405
|
mounted = true;
|
|
8262
8406
|
}
|
|
@@ -8657,7 +8801,8 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8657
8801
|
};
|
|
8658
8802
|
$$self.$$.update = () => {
|
|
8659
8803
|
if ($$self.$$.dirty[0] & 10) {
|
|
8660
|
-
|
|
8804
|
+
$:
|
|
8805
|
+
$$invalidate(15, btn_props = {
|
|
8661
8806
|
name: name5,
|
|
8662
8807
|
theme,
|
|
8663
8808
|
disabled,
|
|
@@ -8665,13 +8810,16 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8665
8810
|
});
|
|
8666
8811
|
}
|
|
8667
8812
|
if ($$self.$$.dirty[0] & 4) {
|
|
8668
|
-
|
|
8813
|
+
$:
|
|
8814
|
+
$$invalidate(9, t = i18n4[language]);
|
|
8669
8815
|
}
|
|
8670
8816
|
if ($$self.$$.dirty[0] & 1) {
|
|
8671
|
-
|
|
8817
|
+
$:
|
|
8818
|
+
$$invalidate(32, hotkeys = app == null ? void 0 : app.hotKeys);
|
|
8672
8819
|
}
|
|
8673
8820
|
if ($$self.$$.dirty[0] & 512 | $$self.$$.dirty[1] & 2) {
|
|
8674
|
-
|
|
8821
|
+
$:
|
|
8822
|
+
$$invalidate(18, c = {
|
|
8675
8823
|
clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
|
|
8676
8824
|
selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
|
|
8677
8825
|
pencil: tooltip(t.pencil, hotkeys == null ? void 0 : hotkeys.changeToPencil),
|
|
@@ -8680,26 +8828,32 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8680
8828
|
});
|
|
8681
8829
|
}
|
|
8682
8830
|
if ($$self.$$.dirty[0] & 1) {
|
|
8683
|
-
|
|
8831
|
+
$:
|
|
8832
|
+
$$subscribe_memberState($$invalidate(17, memberState = app == null ? void 0 : app.memberState));
|
|
8684
8833
|
}
|
|
8685
8834
|
if ($$self.$$.dirty[1] & 8) {
|
|
8686
|
-
|
|
8835
|
+
$:
|
|
8836
|
+
$$invalidate(8, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
|
|
8687
8837
|
}
|
|
8688
8838
|
if ($$self.$$.dirty[1] & 8) {
|
|
8689
|
-
|
|
8839
|
+
$:
|
|
8840
|
+
$$invalidate(7, shape = $memberState == null ? void 0 : $memberState.shapeType);
|
|
8690
8841
|
}
|
|
8691
8842
|
if ($$self.$$.dirty[0] & 1) {
|
|
8692
|
-
|
|
8843
|
+
$:
|
|
8844
|
+
$$subscribe_status($$invalidate(16, status = app == null ? void 0 : app.appsStatus));
|
|
8693
8845
|
}
|
|
8694
8846
|
if ($$self.$$.dirty[0] & 384) {
|
|
8695
|
-
|
|
8847
|
+
$:
|
|
8848
|
+
if (applianceShapes.includes(appliance)) {
|
|
8696
8849
|
$$invalidate(10, last_shape = appliance);
|
|
8697
8850
|
} else if (shape) {
|
|
8698
8851
|
$$invalidate(10, last_shape = shape);
|
|
8699
8852
|
}
|
|
8700
8853
|
}
|
|
8701
8854
|
if ($$self.$$.dirty[0] & 32 | $$self.$$.dirty[1] & 5) {
|
|
8702
|
-
|
|
8855
|
+
$:
|
|
8856
|
+
max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
|
|
8703
8857
|
}
|
|
8704
8858
|
};
|
|
8705
8859
|
return [
|
|
@@ -8774,18 +8928,20 @@ var Contents_default = Contents;
|
|
|
8774
8928
|
// src/components/Toolbar/Toolbar.svelte
|
|
8775
8929
|
function create_else_block7(ctx) {
|
|
8776
8930
|
let path0;
|
|
8931
|
+
let path0_class_value;
|
|
8777
8932
|
let path1;
|
|
8933
|
+
let path1_class_value;
|
|
8778
8934
|
return {
|
|
8779
8935
|
c() {
|
|
8780
8936
|
path0 = svg_element("path");
|
|
8781
8937
|
path1 = svg_element("path");
|
|
8782
8938
|
attr(path0, "stroke", "#000");
|
|
8783
8939
|
attr(path0, "d", "M20 52v16");
|
|
8784
|
-
attr(path0, "class", name6 + "-handler-image-stroke-color");
|
|
8940
|
+
attr(path0, "class", path0_class_value = name6 + "-handler-image-stroke-color");
|
|
8785
8941
|
attr(path1, "fill", "#000");
|
|
8786
8942
|
attr(path1, "stroke", "none");
|
|
8787
8943
|
attr(path1, "d", "M16 52v16l-8-8z");
|
|
8788
|
-
attr(path1, "class", name6 + "-handler-image-fill-color");
|
|
8944
|
+
attr(path1, "class", path1_class_value = name6 + "-handler-image-fill-color");
|
|
8789
8945
|
},
|
|
8790
8946
|
m(target, anchor) {
|
|
8791
8947
|
insert(target, path0, anchor);
|
|
@@ -8802,18 +8958,20 @@ function create_else_block7(ctx) {
|
|
|
8802
8958
|
}
|
|
8803
8959
|
function create_if_block7(ctx) {
|
|
8804
8960
|
let path0;
|
|
8961
|
+
let path0_class_value;
|
|
8805
8962
|
let path1;
|
|
8963
|
+
let path1_class_value;
|
|
8806
8964
|
return {
|
|
8807
8965
|
c() {
|
|
8808
8966
|
path0 = svg_element("path");
|
|
8809
8967
|
path1 = svg_element("path");
|
|
8810
8968
|
attr(path0, "stroke", "#000");
|
|
8811
8969
|
attr(path0, "d", "M10 52v16");
|
|
8812
|
-
attr(path0, "class", name6 + "-handler-image-stroke-color");
|
|
8970
|
+
attr(path0, "class", path0_class_value = name6 + "-handler-image-stroke-color");
|
|
8813
8971
|
attr(path1, "fill", "#000");
|
|
8814
8972
|
attr(path1, "stroke", "none");
|
|
8815
8973
|
attr(path1, "d", "M14 52v16l8-8z");
|
|
8816
|
-
attr(path1, "class", name6 + "-handler-image-fill-color");
|
|
8974
|
+
attr(path1, "class", path1_class_value = name6 + "-handler-image-fill-color");
|
|
8817
8975
|
},
|
|
8818
8976
|
m(target, anchor) {
|
|
8819
8977
|
insert(target, path0, anchor);
|
|
@@ -8839,9 +8997,12 @@ function create_fragment55(ctx) {
|
|
|
8839
8997
|
let t1;
|
|
8840
8998
|
let svg;
|
|
8841
8999
|
let path0;
|
|
9000
|
+
let path0_class_value;
|
|
8842
9001
|
let path1;
|
|
9002
|
+
let path1_class_value;
|
|
8843
9003
|
let label_class_value;
|
|
8844
9004
|
let div1_class_value;
|
|
9005
|
+
let height_action;
|
|
8845
9006
|
let current;
|
|
8846
9007
|
let mounted;
|
|
8847
9008
|
let dispose;
|
|
@@ -8862,7 +9023,7 @@ function create_fragment55(ctx) {
|
|
|
8862
9023
|
return create_if_block7;
|
|
8863
9024
|
return create_else_block7;
|
|
8864
9025
|
}
|
|
8865
|
-
let current_block_type = select_block_type(ctx);
|
|
9026
|
+
let current_block_type = select_block_type(ctx, -1);
|
|
8866
9027
|
let if_block = current_block_type(ctx);
|
|
8867
9028
|
return {
|
|
8868
9029
|
c() {
|
|
@@ -8883,10 +9044,10 @@ function create_fragment55(ctx) {
|
|
|
8883
9044
|
attr(path0, "fill", "#fff");
|
|
8884
9045
|
attr(path0, "stroke", "none");
|
|
8885
9046
|
attr(path0, "d", "m0 0 24 16q6 4 6 14v60q0 10-6 14L0 120");
|
|
8886
|
-
attr(path0, "class", name6 + "-handler-bg-color");
|
|
9047
|
+
attr(path0, "class", path0_class_value = name6 + "-handler-bg-color");
|
|
8887
9048
|
attr(path1, "stroke", "#000");
|
|
8888
9049
|
attr(path1, "d", "m0 0 24 16q6 4 6 14v60q0 10-6 14L0 120");
|
|
8889
|
-
attr(path1, "class", name6 + "-handler-border-color");
|
|
9050
|
+
attr(path1, "class", path1_class_value = name6 + "-handler-border-color");
|
|
8890
9051
|
attr(svg, "fill", "none");
|
|
8891
9052
|
attr(svg, "stroke-width", "2");
|
|
8892
9053
|
attr(svg, "viewBox", "0 0 32 120");
|
|
@@ -8911,7 +9072,7 @@ function create_fragment55(ctx) {
|
|
|
8911
9072
|
if (!mounted) {
|
|
8912
9073
|
dispose = [
|
|
8913
9074
|
listen(input, "change", ctx[15]),
|
|
8914
|
-
action_destroyer(height.call(null, div1, ctx[9]))
|
|
9075
|
+
action_destroyer(height_action = height.call(null, div1, ctx[9]))
|
|
8915
9076
|
];
|
|
8916
9077
|
mounted = true;
|
|
8917
9078
|
}
|
|
@@ -8942,7 +9103,7 @@ function create_fragment55(ctx) {
|
|
|
8942
9103
|
if (dirty & 8) {
|
|
8943
9104
|
input.checked = ctx2[3];
|
|
8944
9105
|
}
|
|
8945
|
-
if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
|
|
9106
|
+
if (current_block_type === (current_block_type = select_block_type(ctx2, dirty)) && if_block) {
|
|
8946
9107
|
if_block.p(ctx2, dirty);
|
|
8947
9108
|
} else {
|
|
8948
9109
|
if_block.d(1);
|
|
@@ -9020,19 +9181,24 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
9020
9181
|
$$self.$$.update = () => {
|
|
9021
9182
|
var _a;
|
|
9022
9183
|
if ($$self.$$.dirty & 1) {
|
|
9023
|
-
|
|
9184
|
+
$:
|
|
9185
|
+
$$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
|
|
9024
9186
|
}
|
|
9025
9187
|
if ($$self.$$.dirty & 16384) {
|
|
9026
|
-
|
|
9188
|
+
$:
|
|
9189
|
+
$$invalidate(7, disabled = !$writable);
|
|
9027
9190
|
}
|
|
9028
9191
|
if ($$self.$$.dirty & 12288) {
|
|
9029
|
-
|
|
9192
|
+
$:
|
|
9193
|
+
$$invalidate(6, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
|
|
9030
9194
|
}
|
|
9031
9195
|
if ($$self.$$.dirty & 12288) {
|
|
9032
|
-
|
|
9196
|
+
$:
|
|
9197
|
+
$$invalidate(5, scrollable = $scroll_height + extra_height > $container_height);
|
|
9033
9198
|
}
|
|
9034
9199
|
if ($$self.$$.dirty & 2048) {
|
|
9035
|
-
|
|
9200
|
+
$:
|
|
9201
|
+
$$invalidate(4, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
|
|
9036
9202
|
}
|
|
9037
9203
|
};
|
|
9038
9204
|
return [
|
|
@@ -9321,7 +9487,7 @@ function create_default_slot_25(ctx) {
|
|
|
9321
9487
|
return 1;
|
|
9322
9488
|
return 2;
|
|
9323
9489
|
}
|
|
9324
|
-
current_block_type_index = select_block_type(ctx);
|
|
9490
|
+
current_block_type_index = select_block_type(ctx, -1);
|
|
9325
9491
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
9326
9492
|
return {
|
|
9327
9493
|
c() {
|
|
@@ -9335,7 +9501,7 @@ function create_default_slot_25(ctx) {
|
|
|
9335
9501
|
},
|
|
9336
9502
|
p(ctx2, dirty) {
|
|
9337
9503
|
let previous_block_index = current_block_type_index;
|
|
9338
|
-
current_block_type_index = select_block_type(ctx2);
|
|
9504
|
+
current_block_type_index = select_block_type(ctx2, dirty);
|
|
9339
9505
|
if (current_block_type_index === previous_block_index) {
|
|
9340
9506
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
9341
9507
|
} else {
|
|
@@ -9379,13 +9545,17 @@ function create_else_block8(ctx) {
|
|
|
9379
9545
|
let span0;
|
|
9380
9546
|
let t1_value = format(ctx[13]) + "";
|
|
9381
9547
|
let t1;
|
|
9548
|
+
let span0_class_value;
|
|
9382
9549
|
let t2;
|
|
9383
9550
|
let span1;
|
|
9384
9551
|
let t3;
|
|
9552
|
+
let span1_class_value;
|
|
9385
9553
|
let t4;
|
|
9386
9554
|
let span2;
|
|
9387
9555
|
let t5_value = format(ctx[14]) + "";
|
|
9388
9556
|
let t5;
|
|
9557
|
+
let span2_class_value;
|
|
9558
|
+
let span3_class_value;
|
|
9389
9559
|
let current;
|
|
9390
9560
|
slider = new Slider_default({
|
|
9391
9561
|
props: {
|
|
@@ -9410,10 +9580,10 @@ function create_else_block8(ctx) {
|
|
|
9410
9580
|
t4 = space();
|
|
9411
9581
|
span2 = element("span");
|
|
9412
9582
|
t5 = text(t5_value);
|
|
9413
|
-
attr(span0, "class", name7 + "-current");
|
|
9414
|
-
attr(span1, "class", name7 + "-slash");
|
|
9415
|
-
attr(span2, "class", name7 + "-duration");
|
|
9416
|
-
attr(span3, "class", name7 + "-progress");
|
|
9583
|
+
attr(span0, "class", span0_class_value = name7 + "-current");
|
|
9584
|
+
attr(span1, "class", span1_class_value = name7 + "-slash");
|
|
9585
|
+
attr(span2, "class", span2_class_value = name7 + "-duration");
|
|
9586
|
+
attr(span3, "class", span3_class_value = name7 + "-progress");
|
|
9417
9587
|
},
|
|
9418
9588
|
m(target, anchor) {
|
|
9419
9589
|
mount_component(slider, target, anchor);
|
|
@@ -9467,6 +9637,7 @@ function create_if_block8(ctx) {
|
|
|
9467
9637
|
let t0;
|
|
9468
9638
|
let span;
|
|
9469
9639
|
let t1;
|
|
9640
|
+
let span_class_value;
|
|
9470
9641
|
let current;
|
|
9471
9642
|
slider = new Slider_default({
|
|
9472
9643
|
props: {
|
|
@@ -9480,7 +9651,7 @@ function create_if_block8(ctx) {
|
|
|
9480
9651
|
t0 = space();
|
|
9481
9652
|
span = element("span");
|
|
9482
9653
|
t1 = text("\u2026/\u2026");
|
|
9483
|
-
attr(span, "class", name7 + "-progress loading");
|
|
9654
|
+
attr(span, "class", span_class_value = name7 + "-progress loading");
|
|
9484
9655
|
},
|
|
9485
9656
|
m(target, anchor) {
|
|
9486
9657
|
mount_component(slider, target, anchor);
|
|
@@ -9514,12 +9685,13 @@ function create_default_slot_15(ctx) {
|
|
|
9514
9685
|
let t0_value = (ctx[15] || 1) + "";
|
|
9515
9686
|
let t0;
|
|
9516
9687
|
let t1;
|
|
9688
|
+
let span_class_value;
|
|
9517
9689
|
return {
|
|
9518
9690
|
c() {
|
|
9519
9691
|
span = element("span");
|
|
9520
9692
|
t0 = text(t0_value);
|
|
9521
9693
|
t1 = text("x");
|
|
9522
|
-
attr(span, "class", name7 + "-speed-text");
|
|
9694
|
+
attr(span, "class", span_class_value = name7 + "-speed-text");
|
|
9523
9695
|
},
|
|
9524
9696
|
m(target, anchor) {
|
|
9525
9697
|
insert(target, span, anchor);
|
|
@@ -9634,6 +9806,7 @@ function create_fragment56(ctx) {
|
|
|
9634
9806
|
let div1;
|
|
9635
9807
|
let each_blocks = [];
|
|
9636
9808
|
let each_1_lookup = /* @__PURE__ */ new Map();
|
|
9809
|
+
let div1_class_value;
|
|
9637
9810
|
let current;
|
|
9638
9811
|
button0 = new Button_default({
|
|
9639
9812
|
props: {
|
|
@@ -9654,7 +9827,7 @@ function create_fragment56(ctx) {
|
|
|
9654
9827
|
return 0;
|
|
9655
9828
|
return 1;
|
|
9656
9829
|
}
|
|
9657
|
-
current_block_type_index = select_block_type_1(ctx);
|
|
9830
|
+
current_block_type_index = select_block_type_1(ctx, -1);
|
|
9658
9831
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
9659
9832
|
button1 = new Button_default({
|
|
9660
9833
|
props: {
|
|
@@ -9691,7 +9864,7 @@ function create_fragment56(ctx) {
|
|
|
9691
9864
|
each_blocks[i].c();
|
|
9692
9865
|
}
|
|
9693
9866
|
attr(div0, "class", div0_class_value = name7 + " " + ctx[0]);
|
|
9694
|
-
attr(div1, "class", name7 + "-panel speed");
|
|
9867
|
+
attr(div1, "class", div1_class_value = name7 + "-panel speed");
|
|
9695
9868
|
set_style(div2, "display", "none");
|
|
9696
9869
|
},
|
|
9697
9870
|
m(target, anchor) {
|
|
@@ -9725,7 +9898,7 @@ function create_fragment56(ctx) {
|
|
|
9725
9898
|
}
|
|
9726
9899
|
button0.$set(button0_changes);
|
|
9727
9900
|
let previous_block_index = current_block_type_index;
|
|
9728
|
-
current_block_type_index = select_block_type_1(ctx2);
|
|
9901
|
+
current_block_type_index = select_block_type_1(ctx2, dirty);
|
|
9729
9902
|
if (current_block_type_index === previous_block_index) {
|
|
9730
9903
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
9731
9904
|
} else {
|
|
@@ -9893,37 +10066,48 @@ function instance56($$self, $$props, $$invalidate) {
|
|
|
9893
10066
|
};
|
|
9894
10067
|
$$self.$$.update = () => {
|
|
9895
10068
|
if ($$self.$$.dirty & 1048576) {
|
|
9896
|
-
|
|
10069
|
+
$:
|
|
10070
|
+
$$invalidate(12, t = i18n6[language]);
|
|
9897
10071
|
}
|
|
9898
10072
|
if ($$self.$$.dirty & 524288) {
|
|
9899
|
-
|
|
10073
|
+
$:
|
|
10074
|
+
$$invalidate(21, canPlay = player == null ? void 0 : player.canplay);
|
|
9900
10075
|
}
|
|
9901
10076
|
if ($$self.$$.dirty & 2097152) {
|
|
9902
|
-
|
|
10077
|
+
$:
|
|
10078
|
+
$$invalidate(4, disabled = !canPlay);
|
|
9903
10079
|
}
|
|
9904
10080
|
if ($$self.$$.dirty & 16) {
|
|
9905
|
-
|
|
10081
|
+
$:
|
|
10082
|
+
$$invalidate(5, type = disabled ? "disable" : "normal");
|
|
9906
10083
|
}
|
|
9907
10084
|
if ($$self.$$.dirty & 524288) {
|
|
9908
|
-
|
|
10085
|
+
$:
|
|
10086
|
+
$$subscribe_duration($$invalidate(11, duration = player == null ? void 0 : player.duration));
|
|
9909
10087
|
}
|
|
9910
10088
|
if ($$self.$$.dirty & 524288) {
|
|
9911
|
-
|
|
10089
|
+
$:
|
|
10090
|
+
$$subscribe_current($$invalidate(10, current = player == null ? void 0 : player.currentTime));
|
|
9912
10091
|
}
|
|
9913
10092
|
if ($$self.$$.dirty & 524288) {
|
|
9914
|
-
|
|
10093
|
+
$:
|
|
10094
|
+
$$subscribe_playbackRate($$invalidate(9, playbackRate = player == null ? void 0 : player.playbackRate));
|
|
9915
10095
|
}
|
|
9916
10096
|
if ($$self.$$.dirty & 524288) {
|
|
9917
|
-
|
|
10097
|
+
$:
|
|
10098
|
+
$$subscribe_phase($$invalidate(8, phase = player == null ? void 0 : player.phase));
|
|
9918
10099
|
}
|
|
9919
10100
|
if ($$self.$$.dirty & 4194304) {
|
|
9920
|
-
|
|
10101
|
+
$:
|
|
10102
|
+
$$invalidate(3, loading = $phase === "waitingFirstFrame" || $phase === "buffering");
|
|
9921
10103
|
}
|
|
9922
10104
|
if ($$self.$$.dirty & 4194304) {
|
|
9923
|
-
|
|
10105
|
+
$:
|
|
10106
|
+
$$invalidate(2, playing = $phase === "playing");
|
|
9924
10107
|
}
|
|
9925
10108
|
if ($$self.$$.dirty & 12) {
|
|
9926
|
-
|
|
10109
|
+
$:
|
|
10110
|
+
$$invalidate(7, className = [loading ? "loading" : "", playing ? "pause" : "play"].filter(Boolean).join(" "));
|
|
9927
10111
|
}
|
|
9928
10112
|
};
|
|
9929
10113
|
return [
|
|
@@ -9971,9 +10155,12 @@ var PlayerControl_default = PlayerControl;
|
|
|
9971
10155
|
function create_fragment57(ctx) {
|
|
9972
10156
|
let div2;
|
|
9973
10157
|
let div0;
|
|
10158
|
+
let div0_class_value;
|
|
9974
10159
|
let t;
|
|
9975
10160
|
let div1;
|
|
9976
10161
|
let playercontrol;
|
|
10162
|
+
let div1_class_value;
|
|
10163
|
+
let div2_class_value;
|
|
9977
10164
|
let current;
|
|
9978
10165
|
let mounted;
|
|
9979
10166
|
let dispose;
|
|
@@ -9991,9 +10178,9 @@ function create_fragment57(ctx) {
|
|
|
9991
10178
|
t = space();
|
|
9992
10179
|
div1 = element("div");
|
|
9993
10180
|
create_component(playercontrol.$$.fragment);
|
|
9994
|
-
attr(div0, "class", name8 + "-view");
|
|
9995
|
-
attr(div1, "class", name8 + "-bottom");
|
|
9996
|
-
attr(div2, "class", name8 + "-root");
|
|
10181
|
+
attr(div0, "class", div0_class_value = name8 + "-view");
|
|
10182
|
+
attr(div1, "class", div1_class_value = name8 + "-bottom");
|
|
10183
|
+
attr(div2, "class", div2_class_value = name8 + "-root");
|
|
9997
10184
|
toggle_class(div2, "loading", !ctx[0]);
|
|
9998
10185
|
},
|
|
9999
10186
|
m(target, anchor) {
|
|
@@ -10082,7 +10269,8 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10082
10269
|
};
|
|
10083
10270
|
$$self.$$.update = () => {
|
|
10084
10271
|
if ($$self.$$.dirty & 9) {
|
|
10085
|
-
|
|
10272
|
+
$:
|
|
10273
|
+
try {
|
|
10086
10274
|
if (player && container) {
|
|
10087
10275
|
player.bindContainer(container);
|
|
10088
10276
|
$$invalidate(6, mounted = true);
|
|
@@ -10093,7 +10281,8 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10093
10281
|
}
|
|
10094
10282
|
}
|
|
10095
10283
|
if ($$self.$$.dirty & 67) {
|
|
10096
|
-
|
|
10284
|
+
$:
|
|
10285
|
+
if (player && theme && mounted) {
|
|
10097
10286
|
player.manager.setPrefersColorScheme(theme);
|
|
10098
10287
|
}
|
|
10099
10288
|
}
|
|
@@ -10302,13 +10491,18 @@ function create_fragment58(ctx) {
|
|
|
10302
10491
|
var _a, _b, _c, _d;
|
|
10303
10492
|
let div4;
|
|
10304
10493
|
let div0;
|
|
10494
|
+
let div0_class_value;
|
|
10305
10495
|
let t0;
|
|
10306
10496
|
let div1;
|
|
10497
|
+
let div1_class_value;
|
|
10307
10498
|
let t1;
|
|
10308
10499
|
let div2;
|
|
10309
10500
|
let t2;
|
|
10501
|
+
let div2_class_value;
|
|
10310
10502
|
let t3;
|
|
10311
10503
|
let div3;
|
|
10504
|
+
let div3_class_value;
|
|
10505
|
+
let div4_class_value;
|
|
10312
10506
|
let current;
|
|
10313
10507
|
let mounted;
|
|
10314
10508
|
let dispose;
|
|
@@ -10335,14 +10529,14 @@ function create_fragment58(ctx) {
|
|
|
10335
10529
|
div3 = element("div");
|
|
10336
10530
|
if (if_block3)
|
|
10337
10531
|
if_block3.c();
|
|
10338
|
-
attr(div0, "class", name9 + "-view");
|
|
10339
|
-
attr(div1, "class", name9 + "-left");
|
|
10532
|
+
attr(div0, "class", div0_class_value = name9 + "-view");
|
|
10533
|
+
attr(div1, "class", div1_class_value = name9 + "-left");
|
|
10340
10534
|
toggle_class(div1, "hidden", !(ctx[5] === "visible" || ctx[5] === "toolbar-only"));
|
|
10341
|
-
attr(div2, "class", name9 + "-bottom-left");
|
|
10535
|
+
attr(div2, "class", div2_class_value = name9 + "-bottom-left");
|
|
10342
10536
|
toggle_class(div2, "hidden", ctx[5] !== "visible");
|
|
10343
|
-
attr(div3, "class", name9 + "-bottom-right");
|
|
10537
|
+
attr(div3, "class", div3_class_value = name9 + "-bottom-right");
|
|
10344
10538
|
toggle_class(div3, "hidden", ctx[5] !== "visible");
|
|
10345
|
-
attr(div4, "class", name9 + "-root");
|
|
10539
|
+
attr(div4, "class", div4_class_value = name9 + "-root");
|
|
10346
10540
|
toggle_class(div4, "loading", !ctx[0]);
|
|
10347
10541
|
},
|
|
10348
10542
|
m(target, anchor) {
|
|
@@ -10548,16 +10742,20 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10548
10742
|
};
|
|
10549
10743
|
$$self.$$.update = () => {
|
|
10550
10744
|
if ($$self.$$.dirty & 1) {
|
|
10551
|
-
|
|
10745
|
+
$:
|
|
10746
|
+
$$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
|
|
10552
10747
|
}
|
|
10553
10748
|
if ($$self.$$.dirty & 1) {
|
|
10554
|
-
|
|
10749
|
+
$:
|
|
10750
|
+
$$subscribe_boxState($$invalidate(7, boxState = app == null ? void 0 : app.boxState));
|
|
10555
10751
|
}
|
|
10556
10752
|
if ($$self.$$.dirty & 1) {
|
|
10557
|
-
|
|
10753
|
+
$:
|
|
10754
|
+
$$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
|
|
10558
10755
|
}
|
|
10559
10756
|
if ($$self.$$.dirty & 28672) {
|
|
10560
|
-
|
|
10757
|
+
$:
|
|
10758
|
+
if (!$writable) {
|
|
10561
10759
|
$$invalidate(5, layout = "hidden");
|
|
10562
10760
|
} else if ($boxState === "maximized") {
|
|
10563
10761
|
if ($focusedApp && AppsShowToolbar.some((kind) => ($focusedApp || "").includes(kind))) {
|
|
@@ -10570,7 +10768,8 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10570
10768
|
}
|
|
10571
10769
|
}
|
|
10572
10770
|
if ($$self.$$.dirty & 17) {
|
|
10573
|
-
|
|
10771
|
+
$:
|
|
10772
|
+
try {
|
|
10574
10773
|
if (app && container) {
|
|
10575
10774
|
app.bindContainer(container);
|
|
10576
10775
|
$$invalidate(11, mounted = true);
|
|
@@ -10581,7 +10780,8 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10581
10780
|
}
|
|
10582
10781
|
}
|
|
10583
10782
|
if ($$self.$$.dirty & 2051) {
|
|
10584
|
-
|
|
10783
|
+
$:
|
|
10784
|
+
if (app && theme && mounted) {
|
|
10585
10785
|
app.manager.setPrefersColorScheme(theme);
|
|
10586
10786
|
}
|
|
10587
10787
|
}
|
|
@@ -10674,16 +10874,4 @@ function createReplayUI(player, div) {
|
|
|
10674
10874
|
}
|
|
10675
10875
|
return ui;
|
|
10676
10876
|
}
|
|
10677
|
-
|
|
10678
|
-
exports.Fastboard = Fastboard_default;
|
|
10679
|
-
exports.PageControl = PageControl_default;
|
|
10680
|
-
exports.PlayerControl = PlayerControl_default;
|
|
10681
|
-
exports.RedoUndo = RedoUndo_default;
|
|
10682
|
-
exports.ReplayFastboard = ReplayFastboard_default;
|
|
10683
|
-
exports.Toolbar = Toolbar_default;
|
|
10684
|
-
exports.ZoomControl = ZoomControl_default;
|
|
10685
|
-
exports.apps = apps;
|
|
10686
|
-
exports.createReplayUI = createReplayUI;
|
|
10687
|
-
exports.createUI = createUI;
|
|
10688
|
-
//# sourceMappingURL=out.js.map
|
|
10689
10877
|
//# sourceMappingURL=index.js.map
|