@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.js CHANGED
@@ -54,7 +54,7 @@ __export(src_exports, {
54
54
  });
55
55
  module.exports = __toCommonJS(src_exports);
56
56
 
57
- // ../../node_modules/.pnpm/svelte@3.48.0/node_modules/svelte/internal/index.mjs
57
+ // ../../node_modules/.pnpm/svelte@3.49.0/node_modules/svelte/internal/index.mjs
58
58
  function noop() {
59
59
  }
60
60
  function assign(tar, src) {
@@ -346,6 +346,8 @@ function transition_out(block, local, detach2, callback) {
346
346
  }
347
347
  });
348
348
  block.o(local);
349
+ } else if (callback) {
350
+ callback();
349
351
  }
350
352
  }
351
353
  function destroy_block(block, lookup) {
@@ -4870,7 +4872,7 @@ function create_default_slot_42(ctx) {
4870
4872
  let current;
4871
4873
  icon = new Icon_default({
4872
4874
  props: {
4873
- src: (_a = ctx[1]) == null ? void 0 : _a.plus[ctx[5]],
4875
+ src: (_a = ctx[1]) == null ? void 0 : _a.plus[ctx[4]],
4874
4876
  alt: "[plus]",
4875
4877
  $$slots: { default: [create_default_slot_52] },
4876
4878
  $$scope: { ctx }
@@ -4887,9 +4889,9 @@ function create_default_slot_42(ctx) {
4887
4889
  p(ctx2, dirty) {
4888
4890
  var _a2;
4889
4891
  const icon_changes = {};
4890
- if (dirty & 34)
4891
- icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.plus[ctx2[5]];
4892
- if (dirty & 131073) {
4892
+ if (dirty & 18)
4893
+ icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.plus[ctx2[4]];
4894
+ if (dirty & 262145) {
4893
4895
  icon_changes.$$scope = { dirty, ctx: ctx2 };
4894
4896
  }
4895
4897
  icon.$set(icon_changes);
@@ -4910,12 +4912,11 @@ function create_default_slot_42(ctx) {
4910
4912
  };
4911
4913
  }
4912
4914
  function create_else_block4(ctx) {
4913
- let t0_value = Math.ceil(ctx[2] * 100) + "";
4914
4915
  let t0;
4915
4916
  let t1;
4916
4917
  return {
4917
4918
  c() {
4918
- t0 = text(t0_value);
4919
+ t0 = text(ctx[5]);
4919
4920
  t1 = text("%");
4920
4921
  },
4921
4922
  m(target, anchor) {
@@ -4923,8 +4924,8 @@ function create_else_block4(ctx) {
4923
4924
  insert(target, t1, anchor);
4924
4925
  },
4925
4926
  p(ctx2, dirty) {
4926
- if (dirty & 4 && t0_value !== (t0_value = Math.ceil(ctx2[2] * 100) + ""))
4927
- set_data(t0, t0_value);
4927
+ if (dirty & 32)
4928
+ set_data(t0, ctx2[5]);
4928
4929
  },
4929
4930
  d(detaching) {
4930
4931
  if (detaching)
@@ -4989,7 +4990,7 @@ function create_default_slot_23(ctx) {
4989
4990
  let current;
4990
4991
  icon = new Icon_default({
4991
4992
  props: {
4992
- src: (_a = ctx[1]) == null ? void 0 : _a.minus[ctx[5]],
4993
+ src: (_a = ctx[1]) == null ? void 0 : _a.minus[ctx[4]],
4993
4994
  alt: "[minus]",
4994
4995
  $$slots: { default: [create_default_slot_33] },
4995
4996
  $$scope: { ctx }
@@ -5006,9 +5007,9 @@ function create_default_slot_23(ctx) {
5006
5007
  p(ctx2, dirty) {
5007
5008
  var _a2;
5008
5009
  const icon_changes = {};
5009
- if (dirty & 34)
5010
- icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.minus[ctx2[5]];
5011
- if (dirty & 131073) {
5010
+ if (dirty & 18)
5011
+ icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.minus[ctx2[4]];
5012
+ if (dirty & 262145) {
5012
5013
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5013
5014
  }
5014
5015
  icon.$set(icon_changes);
@@ -5067,7 +5068,7 @@ function create_default_slot3(ctx) {
5067
5068
  let current;
5068
5069
  icon = new Icon_default({
5069
5070
  props: {
5070
- src: (_a = ctx[1]) == null ? void 0 : _a.reset[ctx[5]],
5071
+ src: (_a = ctx[1]) == null ? void 0 : _a.reset[ctx[4]],
5071
5072
  alt: "[reset]",
5072
5073
  $$slots: { default: [create_default_slot_13] },
5073
5074
  $$scope: { ctx }
@@ -5084,9 +5085,9 @@ function create_default_slot3(ctx) {
5084
5085
  p(ctx2, dirty) {
5085
5086
  var _a2;
5086
5087
  const icon_changes = {};
5087
- if (dirty & 34)
5088
- icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.reset[ctx2[5]];
5089
- if (dirty & 131073) {
5088
+ if (dirty & 18)
5089
+ icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.reset[ctx2[4]];
5090
+ if (dirty & 262145) {
5090
5091
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5091
5092
  }
5092
5093
  icon.$set(icon_changes);
@@ -5131,7 +5132,7 @@ function create_fragment48(ctx) {
5131
5132
  });
5132
5133
  button0.$on("click", ctx[11]);
5133
5134
  function select_block_type(ctx2, dirty) {
5134
- if (ctx2[4] == null)
5135
+ if (ctx2[3] == null)
5135
5136
  return create_if_block4;
5136
5137
  return create_else_block4;
5137
5138
  }
@@ -5154,7 +5155,7 @@ function create_fragment48(ctx) {
5154
5155
  class: "reset",
5155
5156
  name: name3,
5156
5157
  theme: ctx[0],
5157
- disabled: ctx[3],
5158
+ disabled: ctx[2],
5158
5159
  content: ctx[9].reset,
5159
5160
  $$slots: { default: [create_default_slot3] },
5160
5161
  $$scope: { ctx }
@@ -5195,7 +5196,7 @@ function create_fragment48(ctx) {
5195
5196
  button0_changes.disabled = ctx2[7];
5196
5197
  if (dirty & 512)
5197
5198
  button0_changes.content = ctx2[9].plus;
5198
- if (dirty & 131107) {
5199
+ if (dirty & 262163) {
5199
5200
  button0_changes.$$scope = { dirty, ctx: ctx2 };
5200
5201
  }
5201
5202
  button0.$set(button0_changes);
@@ -5219,18 +5220,18 @@ function create_fragment48(ctx) {
5219
5220
  button1_changes.disabled = ctx2[6];
5220
5221
  if (dirty & 512)
5221
5222
  button1_changes.content = ctx2[9].minus;
5222
- if (dirty & 131107) {
5223
+ if (dirty & 262163) {
5223
5224
  button1_changes.$$scope = { dirty, ctx: ctx2 };
5224
5225
  }
5225
5226
  button1.$set(button1_changes);
5226
5227
  const button2_changes = {};
5227
5228
  if (dirty & 1)
5228
5229
  button2_changes.theme = ctx2[0];
5229
- if (dirty & 8)
5230
- button2_changes.disabled = ctx2[3];
5230
+ if (dirty & 4)
5231
+ button2_changes.disabled = ctx2[2];
5231
5232
  if (dirty & 512)
5232
5233
  button2_changes.content = ctx2[9].reset;
5233
- if (dirty & 131107) {
5234
+ if (dirty & 262163) {
5234
5235
  button2_changes.$$scope = { dirty, ctx: ctx2 };
5235
5236
  }
5236
5237
  button2.$set(button2_changes);
@@ -5312,8 +5313,9 @@ function instance48($$self, $$props, $$invalidate) {
5312
5313
  let scale;
5313
5314
  let plus_disabled;
5314
5315
  let minus_disabled;
5315
- let $camera, $$unsubscribe_camera = noop, $$subscribe_camera = () => ($$unsubscribe_camera(), $$unsubscribe_camera = subscribe(camera, ($$value) => $$invalidate(4, $camera = $$value)), camera);
5316
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(16, $writable = $$value)), writable2);
5316
+ let display_scale;
5317
+ let $camera, $$unsubscribe_camera = noop, $$subscribe_camera = () => ($$unsubscribe_camera(), $$unsubscribe_camera = subscribe(camera, ($$value) => $$invalidate(3, $camera = $$value)), camera);
5318
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(17, $writable = $$value)), writable2);
5317
5319
  $$self.$$.on_destroy.push(() => $$unsubscribe_camera());
5318
5320
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
5319
5321
  let { app = null } = $$props;
@@ -5353,35 +5355,38 @@ function instance48($$self, $$props, $$invalidate) {
5353
5355
  if ($$self.$$.dirty & 16384) {
5354
5356
  $$subscribe_writable($$invalidate(10, writable2 = app == null ? void 0 : app.writable));
5355
5357
  }
5356
- if ($$self.$$.dirty & 65536) {
5357
- $$invalidate(3, disabled = !$writable);
5358
+ if ($$self.$$.dirty & 131072) {
5359
+ $$invalidate(2, disabled = !$writable);
5358
5360
  }
5359
5361
  if ($$self.$$.dirty & 32768) {
5360
5362
  $$invalidate(9, t = i18n3[language]);
5361
5363
  }
5362
- if ($$self.$$.dirty & 8) {
5363
- $$invalidate(5, type = disabled ? "disable" : "normal");
5364
+ if ($$self.$$.dirty & 4) {
5365
+ $$invalidate(4, type = disabled ? "disable" : "normal");
5364
5366
  }
5365
5367
  if ($$self.$$.dirty & 16384) {
5366
5368
  $$subscribe_camera($$invalidate(8, camera = app == null ? void 0 : app.camera));
5367
5369
  }
5368
- if ($$self.$$.dirty & 16) {
5369
- $$invalidate(2, scale = (_a = $camera == null ? void 0 : $camera.scale) != null ? _a : 1);
5370
+ if ($$self.$$.dirty & 8) {
5371
+ $$invalidate(16, scale = (_a = $camera == null ? void 0 : $camera.scale) != null ? _a : 1);
5370
5372
  }
5371
- if ($$self.$$.dirty & 12) {
5372
- $$invalidate(7, plus_disabled = disabled || next_scale(scale, 1) === scale);
5373
+ if ($$self.$$.dirty & 65540) {
5374
+ $$invalidate(7, plus_disabled = disabled || next_scale(scale, 1) <= scale);
5373
5375
  }
5374
- if ($$self.$$.dirty & 12) {
5375
- $$invalidate(6, minus_disabled = disabled || next_scale(scale, -1) === scale);
5376
+ if ($$self.$$.dirty & 65540) {
5377
+ $$invalidate(6, minus_disabled = disabled || next_scale(scale, -1) >= scale);
5378
+ }
5379
+ if ($$self.$$.dirty & 65536) {
5380
+ $$invalidate(5, display_scale = clamp(Math.round(scale * 100), 30, 300));
5376
5381
  }
5377
5382
  };
5378
5383
  return [
5379
5384
  theme,
5380
5385
  icons,
5381
- scale,
5382
5386
  disabled,
5383
5387
  $camera,
5384
5388
  type,
5389
+ display_scale,
5385
5390
  minus_disabled,
5386
5391
  plus_disabled,
5387
5392
  camera,
@@ -5392,6 +5397,7 @@ function instance48($$self, $$props, $$invalidate) {
5392
5397
  reset,
5393
5398
  app,
5394
5399
  language,
5400
+ scale,
5395
5401
  $writable
5396
5402
  ];
5397
5403
  }
@@ -5408,7 +5414,7 @@ var ZoomControl = class extends SvelteComponent {
5408
5414
  };
5409
5415
  var ZoomControl_default = ZoomControl;
5410
5416
 
5411
- // ../../node_modules/.pnpm/svelte@3.48.0/node_modules/svelte/store/index.mjs
5417
+ // ../../node_modules/.pnpm/svelte@3.49.0/node_modules/svelte/store/index.mjs
5412
5418
  var subscriber_queue = [];
5413
5419
  function writable(value, start = noop) {
5414
5420
  let stop;
@@ -5575,15 +5581,6 @@ var scrollTop = function(node, value) {
5575
5581
  };
5576
5582
  };
5577
5583
 
5578
- // src/behaviors/icons/visual-studio-code.svg
5579
- var visual_studio_code_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMS4wMWVtIiBoZWlnaHQ9IjFlbSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDI1NiAyNTQiIHN0eWxlPSItbXMtdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTsgLXdlYmtpdC10cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOyB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJJY29uaWZ5SWQtMTdmODcyMTU1YmUtY2M3NjZlLTU0MzkiIHgxPSI1MCUiIHgyPSI1MCUiIHkxPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNGRkYiLz48c3RvcCBvZmZzZXQ9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S0xLjQyNy0yLjE2N2EuNS41IDAgMSAxIC45MjUtLjM4Yy4yOC42ODEuNjkyIDEuMzE0IDEuMjE2IDEuODQ2Yy45NzIuOTkgMi4zMzYgMS42NDMgNC4wMDEgMS42NDNjMy40NCAwIDUuNjUtMi44MTUgNS42NS01LjY1Wk03IDEwVjVoMXY1SDdaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjwvcGF0aD48L3N2Zz4=";
5586
-
5587
5584
  // src/behaviors/apps.ts
5588
5585
  var AppsInToolbar = class {
5589
5586
  constructor(_data) {
@@ -5620,41 +5617,7 @@ var AppsInToolbar = class {
5620
5617
  this._listeners.forEach((fn) => fn(this._data));
5621
5618
  }
5622
5619
  };
5623
- var apps = new AppsInToolbar([
5624
- {
5625
- kind: "Monaco",
5626
- icon: visual_studio_code_default,
5627
- label: "Code Editor",
5628
- onClick(app) {
5629
- app.manager.addApp({
5630
- kind: "Monaco",
5631
- options: { title: "Code Editor" }
5632
- });
5633
- }
5634
- },
5635
- {
5636
- kind: "GeoGebra",
5637
- icon: geogebra_default,
5638
- label: "GeoGebra",
5639
- onClick(app) {
5640
- app.manager.addApp({
5641
- kind: "GeoGebra",
5642
- options: { title: "GeoGebra" }
5643
- });
5644
- }
5645
- },
5646
- {
5647
- kind: "Countdown",
5648
- icon: countdown_default,
5649
- label: "Countdown",
5650
- onClick(app) {
5651
- app.manager.addApp({
5652
- kind: "Countdown",
5653
- options: { title: "Countdown" }
5654
- });
5655
- }
5656
- }
5657
- ]);
5620
+ var apps = new AppsInToolbar([]);
5658
5621
 
5659
5622
  // src/components/Toolbar/components/helper.ts
5660
5623
  function tooltip(text2, hotkey) {
@@ -9967,13 +9930,13 @@ function create_fragment57(ctx) {
9967
9930
  m(target, anchor) {
9968
9931
  insert(target, div2, anchor);
9969
9932
  append(div2, div0);
9970
- ctx[6](div0);
9933
+ ctx[7](div0);
9971
9934
  append(div2, t);
9972
9935
  append(div2, div1);
9973
9936
  mount_component(playercontrol, div1, null);
9974
9937
  current = true;
9975
9938
  if (!mounted) {
9976
- dispose = listen(div0, "touchstart", tippy_hide_all, { passive: true, capture: true });
9939
+ dispose = listen(div0, "touchstart", ctx[4], { passive: true, capture: true });
9977
9940
  mounted = true;
9978
9941
  }
9979
9942
  },
@@ -10003,7 +9966,7 @@ function create_fragment57(ctx) {
10003
9966
  d(detaching) {
10004
9967
  if (detaching)
10005
9968
  detach(div2);
10006
- ctx[6](null);
9969
+ ctx[7](null);
10007
9970
  destroy_component(playercontrol);
10008
9971
  mounted = false;
10009
9972
  dispose();
@@ -10027,6 +9990,11 @@ function instance57($$self, $$props, $$invalidate) {
10027
9990
  };
10028
9991
  }
10029
9992
  });
9993
+ function focus_me() {
9994
+ tippy_hide_all();
9995
+ let a = document.activeElement;
9996
+ a && a.blur && a.blur();
9997
+ }
10030
9998
  function div0_binding($$value) {
10031
9999
  binding_callbacks[$$value ? "unshift" : "push"](() => {
10032
10000
  container = $$value;
@@ -10041,27 +10009,36 @@ function instance57($$self, $$props, $$invalidate) {
10041
10009
  if ("language" in $$props2)
10042
10010
  $$invalidate(2, language = $$props2.language);
10043
10011
  if ("containerRef" in $$props2)
10044
- $$invalidate(4, containerRef = $$props2.containerRef);
10012
+ $$invalidate(5, containerRef = $$props2.containerRef);
10045
10013
  };
10046
10014
  $$self.$$.update = () => {
10047
10015
  if ($$self.$$.dirty & 9) {
10048
10016
  try {
10049
10017
  if (player && container) {
10050
10018
  player.bindContainer(container);
10051
- $$invalidate(5, mounted = true);
10019
+ $$invalidate(6, mounted = true);
10052
10020
  }
10053
10021
  } catch (err) {
10054
10022
  console.error("[fastboard] An error occurred while binding container");
10055
10023
  console.error(err);
10056
10024
  }
10057
10025
  }
10058
- if ($$self.$$.dirty & 35) {
10026
+ if ($$self.$$.dirty & 67) {
10059
10027
  if (player && theme && mounted) {
10060
10028
  player.manager.setPrefersColorScheme(theme);
10061
10029
  }
10062
10030
  }
10063
10031
  };
10064
- return [player, theme, language, container, containerRef, mounted, div0_binding];
10032
+ return [
10033
+ player,
10034
+ theme,
10035
+ language,
10036
+ container,
10037
+ focus_me,
10038
+ containerRef,
10039
+ mounted,
10040
+ div0_binding
10041
+ ];
10065
10042
  }
10066
10043
  var ReplayFastboard = class extends SvelteComponent {
10067
10044
  constructor(options) {
@@ -10070,7 +10047,7 @@ var ReplayFastboard = class extends SvelteComponent {
10070
10047
  player: 0,
10071
10048
  theme: 1,
10072
10049
  language: 2,
10073
- containerRef: 4
10050
+ containerRef: 5
10074
10051
  });
10075
10052
  }
10076
10053
  };
@@ -10302,7 +10279,7 @@ function create_fragment58(ctx) {
10302
10279
  m(target, anchor) {
10303
10280
  insert(target, div4, anchor);
10304
10281
  append(div4, div0);
10305
- ctx[14](div0);
10282
+ ctx[15](div0);
10306
10283
  append(div4, t0);
10307
10284
  append(div4, div1);
10308
10285
  if (if_block0)
@@ -10320,7 +10297,7 @@ function create_fragment58(ctx) {
10320
10297
  if_block3.m(div3, null);
10321
10298
  current = true;
10322
10299
  if (!mounted) {
10323
- dispose = listen(div0, "touchstart", tippy_hide_all, { passive: true, capture: true });
10300
+ dispose = listen(div0, "touchstart", ctx[9], { passive: true, capture: true });
10324
10301
  mounted = true;
10325
10302
  }
10326
10303
  },
@@ -10434,7 +10411,7 @@ function create_fragment58(ctx) {
10434
10411
  d(detaching) {
10435
10412
  if (detaching)
10436
10413
  detach(div4);
10437
- ctx[14](null);
10414
+ ctx[15](null);
10438
10415
  if (if_block0)
10439
10416
  if_block0.d();
10440
10417
  if (if_block1)
@@ -10453,9 +10430,9 @@ function instance58($$self, $$props, $$invalidate) {
10453
10430
  let writable2;
10454
10431
  let boxState;
10455
10432
  let focusedApp;
10456
- let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(11, $focusedApp = $$value)), focusedApp);
10457
- let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(12, $boxState = $$value)), boxState);
10458
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(13, $writable = $$value)), writable2);
10433
+ let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(12, $focusedApp = $$value)), focusedApp);
10434
+ let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(13, $boxState = $$value)), boxState);
10435
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(14, $writable = $$value)), writable2);
10459
10436
  $$self.$$.on_destroy.push(() => $$unsubscribe_focusedApp());
10460
10437
  $$self.$$.on_destroy.push(() => $$unsubscribe_boxState());
10461
10438
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
@@ -10477,6 +10454,11 @@ function instance58($$self, $$props, $$invalidate) {
10477
10454
  };
10478
10455
  }
10479
10456
  });
10457
+ function focus_me() {
10458
+ tippy_hide_all();
10459
+ let a = document.activeElement;
10460
+ a && a.blur && a.blur();
10461
+ }
10480
10462
  function div0_binding($$value) {
10481
10463
  binding_callbacks[$$value ? "unshift" : "push"](() => {
10482
10464
  container = $$value;
@@ -10491,7 +10473,7 @@ function instance58($$self, $$props, $$invalidate) {
10491
10473
  if ("language" in $$props2)
10492
10474
  $$invalidate(2, language = $$props2.language);
10493
10475
  if ("containerRef" in $$props2)
10494
- $$invalidate(9, containerRef = $$props2.containerRef);
10476
+ $$invalidate(10, containerRef = $$props2.containerRef);
10495
10477
  if ("config" in $$props2)
10496
10478
  $$invalidate(3, config = $$props2.config);
10497
10479
  };
@@ -10505,7 +10487,7 @@ function instance58($$self, $$props, $$invalidate) {
10505
10487
  if ($$self.$$.dirty & 1) {
10506
10488
  $$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
10507
10489
  }
10508
- if ($$self.$$.dirty & 14336) {
10490
+ if ($$self.$$.dirty & 28672) {
10509
10491
  if (!$writable) {
10510
10492
  $$invalidate(5, layout = "hidden");
10511
10493
  } else if ($boxState === "maximized") {
@@ -10522,14 +10504,14 @@ function instance58($$self, $$props, $$invalidate) {
10522
10504
  try {
10523
10505
  if (app && container) {
10524
10506
  app.bindContainer(container);
10525
- $$invalidate(10, mounted = true);
10507
+ $$invalidate(11, mounted = true);
10526
10508
  }
10527
10509
  } catch (err) {
10528
10510
  console.error("[fastboard] An error occurred while binding container");
10529
10511
  console.error(err);
10530
10512
  }
10531
10513
  }
10532
- if ($$self.$$.dirty & 1027) {
10514
+ if ($$self.$$.dirty & 2051) {
10533
10515
  if (app && theme && mounted) {
10534
10516
  app.manager.setPrefersColorScheme(theme);
10535
10517
  }
@@ -10545,6 +10527,7 @@ function instance58($$self, $$props, $$invalidate) {
10545
10527
  focusedApp,
10546
10528
  boxState,
10547
10529
  writable2,
10530
+ focus_me,
10548
10531
  containerRef,
10549
10532
  mounted,
10550
10533
  $focusedApp,
@@ -10560,7 +10543,7 @@ var Fastboard = class extends SvelteComponent {
10560
10543
  app: 0,
10561
10544
  theme: 1,
10562
10545
  language: 2,
10563
- containerRef: 9,
10546
+ containerRef: 10,
10564
10547
  config: 3
10565
10548
  });
10566
10549
  }