@netless/fastboard-ui 1.0.0-canary.0 → 1.0.0-canary.1

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.mjs CHANGED
@@ -20,7 +20,7 @@ var __spreadValues = (a, b) => {
20
20
  };
21
21
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
22
 
23
- // ../../node_modules/.pnpm/svelte@3.48.0/node_modules/svelte/internal/index.mjs
23
+ // ../../node_modules/.pnpm/svelte@3.49.0/node_modules/svelte/internal/index.mjs
24
24
  function noop() {
25
25
  }
26
26
  function assign(tar, src) {
@@ -312,6 +312,8 @@ function transition_out(block, local, detach2, callback) {
312
312
  }
313
313
  });
314
314
  block.o(local);
315
+ } else if (callback) {
316
+ callback();
315
317
  }
316
318
  }
317
319
  function destroy_block(block, lookup) {
@@ -4833,7 +4835,7 @@ function create_default_slot_42(ctx) {
4833
4835
  let current;
4834
4836
  icon = new Icon_default({
4835
4837
  props: {
4836
- src: (_a = ctx[1]) == null ? void 0 : _a.plus[ctx[5]],
4838
+ src: (_a = ctx[1]) == null ? void 0 : _a.plus[ctx[4]],
4837
4839
  alt: "[plus]",
4838
4840
  $$slots: { default: [create_default_slot_52] },
4839
4841
  $$scope: { ctx }
@@ -4850,9 +4852,9 @@ function create_default_slot_42(ctx) {
4850
4852
  p(ctx2, dirty) {
4851
4853
  var _a2;
4852
4854
  const icon_changes = {};
4853
- if (dirty & 34)
4854
- icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.plus[ctx2[5]];
4855
- if (dirty & 131073) {
4855
+ if (dirty & 18)
4856
+ icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.plus[ctx2[4]];
4857
+ if (dirty & 262145) {
4856
4858
  icon_changes.$$scope = { dirty, ctx: ctx2 };
4857
4859
  }
4858
4860
  icon.$set(icon_changes);
@@ -4873,12 +4875,11 @@ function create_default_slot_42(ctx) {
4873
4875
  };
4874
4876
  }
4875
4877
  function create_else_block4(ctx) {
4876
- let t0_value = Math.ceil(ctx[2] * 100) + "";
4877
4878
  let t0;
4878
4879
  let t1;
4879
4880
  return {
4880
4881
  c() {
4881
- t0 = text(t0_value);
4882
+ t0 = text(ctx[5]);
4882
4883
  t1 = text("%");
4883
4884
  },
4884
4885
  m(target, anchor) {
@@ -4886,8 +4887,8 @@ function create_else_block4(ctx) {
4886
4887
  insert(target, t1, anchor);
4887
4888
  },
4888
4889
  p(ctx2, dirty) {
4889
- if (dirty & 4 && t0_value !== (t0_value = Math.ceil(ctx2[2] * 100) + ""))
4890
- set_data(t0, t0_value);
4890
+ if (dirty & 32)
4891
+ set_data(t0, ctx2[5]);
4891
4892
  },
4892
4893
  d(detaching) {
4893
4894
  if (detaching)
@@ -4952,7 +4953,7 @@ function create_default_slot_23(ctx) {
4952
4953
  let current;
4953
4954
  icon = new Icon_default({
4954
4955
  props: {
4955
- src: (_a = ctx[1]) == null ? void 0 : _a.minus[ctx[5]],
4956
+ src: (_a = ctx[1]) == null ? void 0 : _a.minus[ctx[4]],
4956
4957
  alt: "[minus]",
4957
4958
  $$slots: { default: [create_default_slot_33] },
4958
4959
  $$scope: { ctx }
@@ -4969,9 +4970,9 @@ function create_default_slot_23(ctx) {
4969
4970
  p(ctx2, dirty) {
4970
4971
  var _a2;
4971
4972
  const icon_changes = {};
4972
- if (dirty & 34)
4973
- icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.minus[ctx2[5]];
4974
- if (dirty & 131073) {
4973
+ if (dirty & 18)
4974
+ icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.minus[ctx2[4]];
4975
+ if (dirty & 262145) {
4975
4976
  icon_changes.$$scope = { dirty, ctx: ctx2 };
4976
4977
  }
4977
4978
  icon.$set(icon_changes);
@@ -5030,7 +5031,7 @@ function create_default_slot3(ctx) {
5030
5031
  let current;
5031
5032
  icon = new Icon_default({
5032
5033
  props: {
5033
- src: (_a = ctx[1]) == null ? void 0 : _a.reset[ctx[5]],
5034
+ src: (_a = ctx[1]) == null ? void 0 : _a.reset[ctx[4]],
5034
5035
  alt: "[reset]",
5035
5036
  $$slots: { default: [create_default_slot_13] },
5036
5037
  $$scope: { ctx }
@@ -5047,9 +5048,9 @@ function create_default_slot3(ctx) {
5047
5048
  p(ctx2, dirty) {
5048
5049
  var _a2;
5049
5050
  const icon_changes = {};
5050
- if (dirty & 34)
5051
- icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.reset[ctx2[5]];
5052
- if (dirty & 131073) {
5051
+ if (dirty & 18)
5052
+ icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.reset[ctx2[4]];
5053
+ if (dirty & 262145) {
5053
5054
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5054
5055
  }
5055
5056
  icon.$set(icon_changes);
@@ -5094,7 +5095,7 @@ function create_fragment48(ctx) {
5094
5095
  });
5095
5096
  button0.$on("click", ctx[11]);
5096
5097
  function select_block_type(ctx2, dirty) {
5097
- if (ctx2[4] == null)
5098
+ if (ctx2[3] == null)
5098
5099
  return create_if_block4;
5099
5100
  return create_else_block4;
5100
5101
  }
@@ -5117,7 +5118,7 @@ function create_fragment48(ctx) {
5117
5118
  class: "reset",
5118
5119
  name: name3,
5119
5120
  theme: ctx[0],
5120
- disabled: ctx[3],
5121
+ disabled: ctx[2],
5121
5122
  content: ctx[9].reset,
5122
5123
  $$slots: { default: [create_default_slot3] },
5123
5124
  $$scope: { ctx }
@@ -5158,7 +5159,7 @@ function create_fragment48(ctx) {
5158
5159
  button0_changes.disabled = ctx2[7];
5159
5160
  if (dirty & 512)
5160
5161
  button0_changes.content = ctx2[9].plus;
5161
- if (dirty & 131107) {
5162
+ if (dirty & 262163) {
5162
5163
  button0_changes.$$scope = { dirty, ctx: ctx2 };
5163
5164
  }
5164
5165
  button0.$set(button0_changes);
@@ -5182,18 +5183,18 @@ function create_fragment48(ctx) {
5182
5183
  button1_changes.disabled = ctx2[6];
5183
5184
  if (dirty & 512)
5184
5185
  button1_changes.content = ctx2[9].minus;
5185
- if (dirty & 131107) {
5186
+ if (dirty & 262163) {
5186
5187
  button1_changes.$$scope = { dirty, ctx: ctx2 };
5187
5188
  }
5188
5189
  button1.$set(button1_changes);
5189
5190
  const button2_changes = {};
5190
5191
  if (dirty & 1)
5191
5192
  button2_changes.theme = ctx2[0];
5192
- if (dirty & 8)
5193
- button2_changes.disabled = ctx2[3];
5193
+ if (dirty & 4)
5194
+ button2_changes.disabled = ctx2[2];
5194
5195
  if (dirty & 512)
5195
5196
  button2_changes.content = ctx2[9].reset;
5196
- if (dirty & 131107) {
5197
+ if (dirty & 262163) {
5197
5198
  button2_changes.$$scope = { dirty, ctx: ctx2 };
5198
5199
  }
5199
5200
  button2.$set(button2_changes);
@@ -5275,8 +5276,9 @@ function instance48($$self, $$props, $$invalidate) {
5275
5276
  let scale;
5276
5277
  let plus_disabled;
5277
5278
  let minus_disabled;
5278
- let $camera, $$unsubscribe_camera = noop, $$subscribe_camera = () => ($$unsubscribe_camera(), $$unsubscribe_camera = subscribe(camera, ($$value) => $$invalidate(4, $camera = $$value)), camera);
5279
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(16, $writable = $$value)), writable2);
5279
+ let display_scale;
5280
+ let $camera, $$unsubscribe_camera = noop, $$subscribe_camera = () => ($$unsubscribe_camera(), $$unsubscribe_camera = subscribe(camera, ($$value) => $$invalidate(3, $camera = $$value)), camera);
5281
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(17, $writable = $$value)), writable2);
5280
5282
  $$self.$$.on_destroy.push(() => $$unsubscribe_camera());
5281
5283
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
5282
5284
  let { app = null } = $$props;
@@ -5316,35 +5318,38 @@ function instance48($$self, $$props, $$invalidate) {
5316
5318
  if ($$self.$$.dirty & 16384) {
5317
5319
  $$subscribe_writable($$invalidate(10, writable2 = app == null ? void 0 : app.writable));
5318
5320
  }
5319
- if ($$self.$$.dirty & 65536) {
5320
- $$invalidate(3, disabled = !$writable);
5321
+ if ($$self.$$.dirty & 131072) {
5322
+ $$invalidate(2, disabled = !$writable);
5321
5323
  }
5322
5324
  if ($$self.$$.dirty & 32768) {
5323
5325
  $$invalidate(9, t = i18n3[language]);
5324
5326
  }
5325
- if ($$self.$$.dirty & 8) {
5326
- $$invalidate(5, type = disabled ? "disable" : "normal");
5327
+ if ($$self.$$.dirty & 4) {
5328
+ $$invalidate(4, type = disabled ? "disable" : "normal");
5327
5329
  }
5328
5330
  if ($$self.$$.dirty & 16384) {
5329
5331
  $$subscribe_camera($$invalidate(8, camera = app == null ? void 0 : app.camera));
5330
5332
  }
5331
- if ($$self.$$.dirty & 16) {
5332
- $$invalidate(2, scale = (_a = $camera == null ? void 0 : $camera.scale) != null ? _a : 1);
5333
+ if ($$self.$$.dirty & 8) {
5334
+ $$invalidate(16, scale = (_a = $camera == null ? void 0 : $camera.scale) != null ? _a : 1);
5333
5335
  }
5334
- if ($$self.$$.dirty & 12) {
5335
- $$invalidate(7, plus_disabled = disabled || next_scale(scale, 1) === scale);
5336
+ if ($$self.$$.dirty & 65540) {
5337
+ $$invalidate(7, plus_disabled = disabled || next_scale(scale, 1) <= scale);
5336
5338
  }
5337
- if ($$self.$$.dirty & 12) {
5338
- $$invalidate(6, minus_disabled = disabled || next_scale(scale, -1) === scale);
5339
+ if ($$self.$$.dirty & 65540) {
5340
+ $$invalidate(6, minus_disabled = disabled || next_scale(scale, -1) >= scale);
5341
+ }
5342
+ if ($$self.$$.dirty & 65536) {
5343
+ $$invalidate(5, display_scale = clamp(Math.round(scale * 100), 30, 300));
5339
5344
  }
5340
5345
  };
5341
5346
  return [
5342
5347
  theme,
5343
5348
  icons,
5344
- scale,
5345
5349
  disabled,
5346
5350
  $camera,
5347
5351
  type,
5352
+ display_scale,
5348
5353
  minus_disabled,
5349
5354
  plus_disabled,
5350
5355
  camera,
@@ -5355,6 +5360,7 @@ function instance48($$self, $$props, $$invalidate) {
5355
5360
  reset,
5356
5361
  app,
5357
5362
  language,
5363
+ scale,
5358
5364
  $writable
5359
5365
  ];
5360
5366
  }
@@ -5371,7 +5377,7 @@ var ZoomControl = class extends SvelteComponent {
5371
5377
  };
5372
5378
  var ZoomControl_default = ZoomControl;
5373
5379
 
5374
- // ../../node_modules/.pnpm/svelte@3.48.0/node_modules/svelte/store/index.mjs
5380
+ // ../../node_modules/.pnpm/svelte@3.49.0/node_modules/svelte/store/index.mjs
5375
5381
  var subscriber_queue = [];
5376
5382
  function writable(value, start = noop) {
5377
5383
  let stop;
@@ -5538,15 +5544,6 @@ var scrollTop = function(node, value) {
5538
5544
  };
5539
5545
  };
5540
5546
 
5541
- // src/behaviors/icons/visual-studio-code.svg
5542
- var visual_studio_code_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMS4wMWVtIiBoZWlnaHQ9IjFlbSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDI1NiAyNTQiIHN0eWxlPSItbXMtdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTsgLXdlYmtpdC10cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOyB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJJY29uaWZ5SWQtMTdmODcyMTU1YmUtY2M3NjZlLTU0MzkiIHgxPSI1MCUiIHgyPSI1MCUiIHkxPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNG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2Ljc3MiA2Ljc3MiAwIDAgMS0xLjQyNy0yLjE2N2EuNS41IDAgMSAxIC45MjUtLjM4Yy4yOC42ODEuNjkyIDEuMzE0IDEuMjE2IDEuODQ2Yy45NzIuOTkgMi4zMzYgMS42NDMgNC4wMDEgMS42NDNjMy40NCAwIDUuNjUtMi44MTUgNS42NS01LjY1Wk03IDEwVjVoMXY1SDdaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjwvcGF0aD48L3N2Zz4=";
5549
-
5550
5547
  // src/behaviors/apps.ts
5551
5548
  var AppsInToolbar = class {
5552
5549
  constructor(_data) {
@@ -5583,41 +5580,7 @@ var AppsInToolbar = class {
5583
5580
  this._listeners.forEach((fn) => fn(this._data));
5584
5581
  }
5585
5582
  };
5586
- var apps = new AppsInToolbar([
5587
- {
5588
- kind: "Monaco",
5589
- icon: visual_studio_code_default,
5590
- label: "Code Editor",
5591
- onClick(app) {
5592
- app.manager.addApp({
5593
- kind: "Monaco",
5594
- options: { title: "Code Editor" }
5595
- });
5596
- }
5597
- },
5598
- {
5599
- kind: "GeoGebra",
5600
- icon: geogebra_default,
5601
- label: "GeoGebra",
5602
- onClick(app) {
5603
- app.manager.addApp({
5604
- kind: "GeoGebra",
5605
- options: { title: "GeoGebra" }
5606
- });
5607
- }
5608
- },
5609
- {
5610
- kind: "Countdown",
5611
- icon: countdown_default,
5612
- label: "Countdown",
5613
- onClick(app) {
5614
- app.manager.addApp({
5615
- kind: "Countdown",
5616
- options: { title: "Countdown" }
5617
- });
5618
- }
5619
- }
5620
- ]);
5583
+ var apps = new AppsInToolbar([]);
5621
5584
 
5622
5585
  // src/components/Toolbar/components/helper.ts
5623
5586
  function tooltip(text2, hotkey) {
@@ -9930,13 +9893,13 @@ function create_fragment57(ctx) {
9930
9893
  m(target, anchor) {
9931
9894
  insert(target, div2, anchor);
9932
9895
  append(div2, div0);
9933
- ctx[6](div0);
9896
+ ctx[7](div0);
9934
9897
  append(div2, t);
9935
9898
  append(div2, div1);
9936
9899
  mount_component(playercontrol, div1, null);
9937
9900
  current = true;
9938
9901
  if (!mounted) {
9939
- dispose = listen(div0, "touchstart", tippy_hide_all, { passive: true, capture: true });
9902
+ dispose = listen(div0, "touchstart", ctx[4], { passive: true, capture: true });
9940
9903
  mounted = true;
9941
9904
  }
9942
9905
  },
@@ -9966,7 +9929,7 @@ function create_fragment57(ctx) {
9966
9929
  d(detaching) {
9967
9930
  if (detaching)
9968
9931
  detach(div2);
9969
- ctx[6](null);
9932
+ ctx[7](null);
9970
9933
  destroy_component(playercontrol);
9971
9934
  mounted = false;
9972
9935
  dispose();
@@ -9990,6 +9953,11 @@ function instance57($$self, $$props, $$invalidate) {
9990
9953
  };
9991
9954
  }
9992
9955
  });
9956
+ function focus_me() {
9957
+ tippy_hide_all();
9958
+ let a = document.activeElement;
9959
+ a && a.blur && a.blur();
9960
+ }
9993
9961
  function div0_binding($$value) {
9994
9962
  binding_callbacks[$$value ? "unshift" : "push"](() => {
9995
9963
  container = $$value;
@@ -10004,27 +9972,36 @@ function instance57($$self, $$props, $$invalidate) {
10004
9972
  if ("language" in $$props2)
10005
9973
  $$invalidate(2, language = $$props2.language);
10006
9974
  if ("containerRef" in $$props2)
10007
- $$invalidate(4, containerRef = $$props2.containerRef);
9975
+ $$invalidate(5, containerRef = $$props2.containerRef);
10008
9976
  };
10009
9977
  $$self.$$.update = () => {
10010
9978
  if ($$self.$$.dirty & 9) {
10011
9979
  try {
10012
9980
  if (player && container) {
10013
9981
  player.bindContainer(container);
10014
- $$invalidate(5, mounted = true);
9982
+ $$invalidate(6, mounted = true);
10015
9983
  }
10016
9984
  } catch (err) {
10017
9985
  console.error("[fastboard] An error occurred while binding container");
10018
9986
  console.error(err);
10019
9987
  }
10020
9988
  }
10021
- if ($$self.$$.dirty & 35) {
9989
+ if ($$self.$$.dirty & 67) {
10022
9990
  if (player && theme && mounted) {
10023
9991
  player.manager.setPrefersColorScheme(theme);
10024
9992
  }
10025
9993
  }
10026
9994
  };
10027
- return [player, theme, language, container, containerRef, mounted, div0_binding];
9995
+ return [
9996
+ player,
9997
+ theme,
9998
+ language,
9999
+ container,
10000
+ focus_me,
10001
+ containerRef,
10002
+ mounted,
10003
+ div0_binding
10004
+ ];
10028
10005
  }
10029
10006
  var ReplayFastboard = class extends SvelteComponent {
10030
10007
  constructor(options) {
@@ -10033,7 +10010,7 @@ var ReplayFastboard = class extends SvelteComponent {
10033
10010
  player: 0,
10034
10011
  theme: 1,
10035
10012
  language: 2,
10036
- containerRef: 4
10013
+ containerRef: 5
10037
10014
  });
10038
10015
  }
10039
10016
  };
@@ -10265,7 +10242,7 @@ function create_fragment58(ctx) {
10265
10242
  m(target, anchor) {
10266
10243
  insert(target, div4, anchor);
10267
10244
  append(div4, div0);
10268
- ctx[14](div0);
10245
+ ctx[15](div0);
10269
10246
  append(div4, t0);
10270
10247
  append(div4, div1);
10271
10248
  if (if_block0)
@@ -10283,7 +10260,7 @@ function create_fragment58(ctx) {
10283
10260
  if_block3.m(div3, null);
10284
10261
  current = true;
10285
10262
  if (!mounted) {
10286
- dispose = listen(div0, "touchstart", tippy_hide_all, { passive: true, capture: true });
10263
+ dispose = listen(div0, "touchstart", ctx[9], { passive: true, capture: true });
10287
10264
  mounted = true;
10288
10265
  }
10289
10266
  },
@@ -10397,7 +10374,7 @@ function create_fragment58(ctx) {
10397
10374
  d(detaching) {
10398
10375
  if (detaching)
10399
10376
  detach(div4);
10400
- ctx[14](null);
10377
+ ctx[15](null);
10401
10378
  if (if_block0)
10402
10379
  if_block0.d();
10403
10380
  if (if_block1)
@@ -10416,9 +10393,9 @@ function instance58($$self, $$props, $$invalidate) {
10416
10393
  let writable2;
10417
10394
  let boxState;
10418
10395
  let focusedApp;
10419
- let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(11, $focusedApp = $$value)), focusedApp);
10420
- let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(12, $boxState = $$value)), boxState);
10421
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(13, $writable = $$value)), writable2);
10396
+ let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(12, $focusedApp = $$value)), focusedApp);
10397
+ let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(13, $boxState = $$value)), boxState);
10398
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(14, $writable = $$value)), writable2);
10422
10399
  $$self.$$.on_destroy.push(() => $$unsubscribe_focusedApp());
10423
10400
  $$self.$$.on_destroy.push(() => $$unsubscribe_boxState());
10424
10401
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
@@ -10440,6 +10417,11 @@ function instance58($$self, $$props, $$invalidate) {
10440
10417
  };
10441
10418
  }
10442
10419
  });
10420
+ function focus_me() {
10421
+ tippy_hide_all();
10422
+ let a = document.activeElement;
10423
+ a && a.blur && a.blur();
10424
+ }
10443
10425
  function div0_binding($$value) {
10444
10426
  binding_callbacks[$$value ? "unshift" : "push"](() => {
10445
10427
  container = $$value;
@@ -10454,7 +10436,7 @@ function instance58($$self, $$props, $$invalidate) {
10454
10436
  if ("language" in $$props2)
10455
10437
  $$invalidate(2, language = $$props2.language);
10456
10438
  if ("containerRef" in $$props2)
10457
- $$invalidate(9, containerRef = $$props2.containerRef);
10439
+ $$invalidate(10, containerRef = $$props2.containerRef);
10458
10440
  if ("config" in $$props2)
10459
10441
  $$invalidate(3, config = $$props2.config);
10460
10442
  };
@@ -10468,7 +10450,7 @@ function instance58($$self, $$props, $$invalidate) {
10468
10450
  if ($$self.$$.dirty & 1) {
10469
10451
  $$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
10470
10452
  }
10471
- if ($$self.$$.dirty & 14336) {
10453
+ if ($$self.$$.dirty & 28672) {
10472
10454
  if (!$writable) {
10473
10455
  $$invalidate(5, layout = "hidden");
10474
10456
  } else if ($boxState === "maximized") {
@@ -10485,14 +10467,14 @@ function instance58($$self, $$props, $$invalidate) {
10485
10467
  try {
10486
10468
  if (app && container) {
10487
10469
  app.bindContainer(container);
10488
- $$invalidate(10, mounted = true);
10470
+ $$invalidate(11, mounted = true);
10489
10471
  }
10490
10472
  } catch (err) {
10491
10473
  console.error("[fastboard] An error occurred while binding container");
10492
10474
  console.error(err);
10493
10475
  }
10494
10476
  }
10495
- if ($$self.$$.dirty & 1027) {
10477
+ if ($$self.$$.dirty & 2051) {
10496
10478
  if (app && theme && mounted) {
10497
10479
  app.manager.setPrefersColorScheme(theme);
10498
10480
  }
@@ -10508,6 +10490,7 @@ function instance58($$self, $$props, $$invalidate) {
10508
10490
  focusedApp,
10509
10491
  boxState,
10510
10492
  writable2,
10493
+ focus_me,
10511
10494
  containerRef,
10512
10495
  mounted,
10513
10496
  $focusedApp,
@@ -10523,7 +10506,7 @@ var Fastboard = class extends SvelteComponent {
10523
10506
  app: 0,
10524
10507
  theme: 1,
10525
10508
  language: 2,
10526
- containerRef: 9,
10509
+ containerRef: 10,
10527
10510
  config: 3
10528
10511
  });
10529
10512
  }