@netless/fastboard-ui 0.3.13 → 0.3.14

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.
@@ -4515,7 +4515,7 @@ function create_default_slot_2(ctx) {
4515
4515
  ctx2[2]
4516
4516
  ];
4517
4517
  if (dirty & /*$$scope, theme*/
4518
- 131073) {
4518
+ 524289) {
4519
4519
  icon_changes.$$scope = { dirty, ctx: ctx2 };
4520
4520
  }
4521
4521
  icon.$set(icon_changes);
@@ -4610,7 +4610,7 @@ function create_default_slot(ctx) {
4610
4610
  ctx2[2]
4611
4611
  ];
4612
4612
  if (dirty & /*$$scope, theme*/
4613
- 131073) {
4613
+ 524289) {
4614
4614
  icon_changes.$$scope = { dirty, ctx: ctx2 };
4615
4615
  }
4616
4616
  icon.$set(icon_changes);
@@ -4660,7 +4660,7 @@ function create_fragment50(ctx) {
4660
4660
  button0.$on(
4661
4661
  "click",
4662
4662
  /*undo*/
4663
- ctx[9]
4663
+ ctx[10]
4664
4664
  );
4665
4665
  button1 = new Button_default({
4666
4666
  props: {
@@ -4685,7 +4685,7 @@ function create_fragment50(ctx) {
4685
4685
  button1.$on(
4686
4686
  "click",
4687
4687
  /*redo*/
4688
- ctx[10]
4688
+ ctx[11]
4689
4689
  );
4690
4690
  return {
4691
4691
  c() {
@@ -4718,7 +4718,7 @@ function create_fragment50(ctx) {
4718
4718
  button0_changes.content = /*t*/
4719
4719
  ctx2[7].undo;
4720
4720
  if (dirty & /*$$scope, icons, type, theme*/
4721
- 131079) {
4721
+ 524295) {
4722
4722
  button0_changes.$$scope = { dirty, ctx: ctx2 };
4723
4723
  }
4724
4724
  button0.$set(button0_changes);
@@ -4736,7 +4736,7 @@ function create_fragment50(ctx) {
4736
4736
  button1_changes.content = /*t*/
4737
4737
  ctx2[7].redo;
4738
4738
  if (dirty & /*$$scope, icons, type, theme*/
4739
- 131079) {
4739
+ 524295) {
4740
4740
  button1_changes.$$scope = { dirty, ctx: ctx2 };
4741
4741
  }
4742
4742
  button1.$set(button1_changes);
@@ -4776,17 +4776,20 @@ var i18n = {
4776
4776
  var name = "fastboard-redo-undo";
4777
4777
  function instance50($$self, $$props, $$invalidate) {
4778
4778
  let writable2;
4779
+ let phase;
4779
4780
  let disabled;
4780
4781
  let t;
4781
4782
  let undoSteps;
4782
4783
  let redoSteps;
4783
4784
  let undo_disabled;
4784
4785
  let redo_disabled;
4785
- let $redoSteps, $$unsubscribe_redoSteps = noop, $$subscribe_redoSteps = () => ($$unsubscribe_redoSteps(), $$unsubscribe_redoSteps = subscribe(redoSteps, ($$value) => $$invalidate(14, $redoSteps = $$value)), redoSteps);
4786
- let $undoSteps, $$unsubscribe_undoSteps = noop, $$subscribe_undoSteps = () => ($$unsubscribe_undoSteps(), $$unsubscribe_undoSteps = subscribe(undoSteps, ($$value) => $$invalidate(15, $undoSteps = $$value)), undoSteps);
4787
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(16, $writable = $$value)), writable2);
4786
+ let $redoSteps, $$unsubscribe_redoSteps = noop, $$subscribe_redoSteps = () => ($$unsubscribe_redoSteps(), $$unsubscribe_redoSteps = subscribe(redoSteps, ($$value) => $$invalidate(15, $redoSteps = $$value)), redoSteps);
4787
+ let $undoSteps, $$unsubscribe_undoSteps = noop, $$subscribe_undoSteps = () => ($$unsubscribe_undoSteps(), $$unsubscribe_undoSteps = subscribe(undoSteps, ($$value) => $$invalidate(16, $undoSteps = $$value)), undoSteps);
4788
+ let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(17, $phase = $$value)), phase);
4789
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(18, $writable = $$value)), writable2);
4788
4790
  $$self.$$.on_destroy.push(() => $$unsubscribe_redoSteps());
4789
4791
  $$self.$$.on_destroy.push(() => $$unsubscribe_undoSteps());
4792
+ $$self.$$.on_destroy.push(() => $$unsubscribe_phase());
4790
4793
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
4791
4794
  let { app = null } = $$props;
4792
4795
  let { theme = "light" } = $$props;
@@ -4801,45 +4804,49 @@ function instance50($$self, $$props, $$invalidate) {
4801
4804
  }
4802
4805
  $$self.$$set = ($$props2) => {
4803
4806
  if ("app" in $$props2)
4804
- $$invalidate(11, app = $$props2.app);
4807
+ $$invalidate(12, app = $$props2.app);
4805
4808
  if ("theme" in $$props2)
4806
4809
  $$invalidate(0, theme = $$props2.theme);
4807
4810
  if ("language" in $$props2)
4808
- $$invalidate(12, language = $$props2.language);
4811
+ $$invalidate(13, language = $$props2.language);
4809
4812
  if ("icons" in $$props2)
4810
4813
  $$invalidate(1, icons = $$props2.icons);
4811
4814
  };
4812
4815
  $$self.$$.update = () => {
4813
4816
  if ($$self.$$.dirty & /*app*/
4814
- 2048) {
4815
- $$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
4817
+ 4096) {
4818
+ $$subscribe_writable($$invalidate(9, writable2 = app == null ? void 0 : app.writable));
4816
4819
  }
4817
- if ($$self.$$.dirty & /*$writable*/
4818
- 65536) {
4819
- $$invalidate(13, disabled = !$writable);
4820
+ if ($$self.$$.dirty & /*app*/
4821
+ 4096) {
4822
+ $$subscribe_phase($$invalidate(8, phase = app == null ? void 0 : app.phase));
4823
+ }
4824
+ if ($$self.$$.dirty & /*$writable, $phase*/
4825
+ 393216) {
4826
+ $$invalidate(14, disabled = !($writable && $phase === "connected"));
4820
4827
  }
4821
4828
  if ($$self.$$.dirty & /*language*/
4822
- 4096) {
4829
+ 8192) {
4823
4830
  $$invalidate(7, t = i18n[language]);
4824
4831
  }
4825
4832
  if ($$self.$$.dirty & /*disabled*/
4826
- 8192) {
4833
+ 16384) {
4827
4834
  $$invalidate(2, type = disabled ? "disable" : "normal");
4828
4835
  }
4829
4836
  if ($$self.$$.dirty & /*app*/
4830
- 2048) {
4837
+ 4096) {
4831
4838
  $$subscribe_undoSteps($$invalidate(6, undoSteps = app == null ? void 0 : app.canUndoSteps));
4832
4839
  }
4833
4840
  if ($$self.$$.dirty & /*app*/
4834
- 2048) {
4841
+ 4096) {
4835
4842
  $$subscribe_redoSteps($$invalidate(5, redoSteps = app == null ? void 0 : app.canRedoSteps));
4836
4843
  }
4837
4844
  if ($$self.$$.dirty & /*disabled, $undoSteps*/
4838
- 40960) {
4845
+ 81920) {
4839
4846
  $$invalidate(4, undo_disabled = disabled || !$undoSteps);
4840
4847
  }
4841
4848
  if ($$self.$$.dirty & /*disabled, $redoSteps*/
4842
- 24576) {
4849
+ 49152) {
4843
4850
  $$invalidate(3, redo_disabled = disabled || !$redoSteps);
4844
4851
  }
4845
4852
  };
@@ -4852,6 +4859,7 @@ function instance50($$self, $$props, $$invalidate) {
4852
4859
  redoSteps,
4853
4860
  undoSteps,
4854
4861
  t,
4862
+ phase,
4855
4863
  writable2,
4856
4864
  undo,
4857
4865
  redo,
@@ -4860,6 +4868,7 @@ function instance50($$self, $$props, $$invalidate) {
4860
4868
  disabled,
4861
4869
  $redoSteps,
4862
4870
  $undoSteps,
4871
+ $phase,
4863
4872
  $writable
4864
4873
  ];
4865
4874
  }
@@ -4867,9 +4876,9 @@ var RedoUndo = class extends SvelteComponent {
4867
4876
  constructor(options) {
4868
4877
  super();
4869
4878
  init(this, options, instance50, create_fragment50, safe_not_equal, {
4870
- app: 11,
4879
+ app: 12,
4871
4880
  theme: 0,
4872
- language: 12,
4881
+ language: 13,
4873
4882
  icons: 1
4874
4883
  });
4875
4884
  }
@@ -4950,7 +4959,7 @@ function create_default_slot_4(ctx) {
4950
4959
  ctx2[5]
4951
4960
  ];
4952
4961
  if (dirty & /*$$scope, theme*/
4953
- 262145) {
4962
+ 1048577) {
4954
4963
  icon_changes.$$scope = { dirty, ctx: ctx2 };
4955
4964
  }
4956
4965
  icon.$set(icon_changes);
@@ -5106,7 +5115,7 @@ function create_default_slot_22(ctx) {
5106
5115
  ctx2[5]
5107
5116
  ];
5108
5117
  if (dirty & /*$$scope, theme*/
5109
- 262145) {
5118
+ 1048577) {
5110
5119
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5111
5120
  }
5112
5121
  icon.$set(icon_changes);
@@ -5201,7 +5210,7 @@ function create_default_slot2(ctx) {
5201
5210
  ctx2[5]
5202
5211
  ];
5203
5212
  if (dirty & /*$$scope, theme*/
5204
- 262145) {
5213
+ 1048577) {
5205
5214
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5206
5215
  }
5207
5216
  icon.$set(icon_changes);
@@ -5256,7 +5265,7 @@ function create_fragment51(ctx) {
5256
5265
  button0.$on(
5257
5266
  "click",
5258
5267
  /*prevPage*/
5259
- ctx[12]
5268
+ ctx[13]
5260
5269
  );
5261
5270
  function select_block_type(ctx2, dirty) {
5262
5271
  if (
@@ -5292,7 +5301,7 @@ function create_fragment51(ctx) {
5292
5301
  button1.$on(
5293
5302
  "click",
5294
5303
  /*nextPage*/
5295
- ctx[13]
5304
+ ctx[14]
5296
5305
  );
5297
5306
  button2 = new Button_default({
5298
5307
  props: {
@@ -5317,7 +5326,7 @@ function create_fragment51(ctx) {
5317
5326
  button2.$on(
5318
5327
  "click",
5319
5328
  /*addPage*/
5320
- ctx[14]
5329
+ ctx[15]
5321
5330
  );
5322
5331
  return {
5323
5332
  c() {
@@ -5362,7 +5371,7 @@ function create_fragment51(ctx) {
5362
5371
  button0_changes.content = /*t*/
5363
5372
  ctx2[10].prev;
5364
5373
  if (dirty & /*$$scope, icons, type, theme*/
5365
- 262179) {
5374
+ 1048611) {
5366
5375
  button0_changes.$$scope = { dirty, ctx: ctx2 };
5367
5376
  }
5368
5377
  button0.$set(button0_changes);
@@ -5395,7 +5404,7 @@ function create_fragment51(ctx) {
5395
5404
  button1_changes.content = /*t*/
5396
5405
  ctx2[10].next;
5397
5406
  if (dirty & /*$$scope, icons, type, theme*/
5398
- 262179) {
5407
+ 1048611) {
5399
5408
  button1_changes.$$scope = { dirty, ctx: ctx2 };
5400
5409
  }
5401
5410
  button1.$set(button1_changes);
@@ -5413,7 +5422,7 @@ function create_fragment51(ctx) {
5413
5422
  button2_changes.content = /*t*/
5414
5423
  ctx2[10].add;
5415
5424
  if (dirty & /*$$scope, icons, type, theme*/
5416
- 262179) {
5425
+ 1048611) {
5417
5426
  button2_changes.$$scope = { dirty, ctx: ctx2 };
5418
5427
  }
5419
5428
  button2.$set(button2_changes);
@@ -5462,6 +5471,7 @@ var i18n2 = {
5462
5471
  var name2 = "fastboard-page-control";
5463
5472
  function instance51($$self, $$props, $$invalidate) {
5464
5473
  let writable2;
5474
+ let phase;
5465
5475
  let disabled;
5466
5476
  let t;
5467
5477
  let index;
@@ -5470,9 +5480,11 @@ function instance51($$self, $$props, $$invalidate) {
5470
5480
  let next_disabled;
5471
5481
  let $length, $$unsubscribe_length = noop, $$subscribe_length = () => ($$unsubscribe_length(), $$unsubscribe_length = subscribe(length, ($$value) => $$invalidate(3, $length = $$value)), length);
5472
5482
  let $index, $$unsubscribe_index = noop, $$subscribe_index = () => ($$unsubscribe_index(), $$unsubscribe_index = subscribe(index, ($$value) => $$invalidate(4, $index = $$value)), index);
5473
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(17, $writable = $$value)), writable2);
5483
+ let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(18, $phase = $$value)), phase);
5484
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(19, $writable = $$value)), writable2);
5474
5485
  $$self.$$.on_destroy.push(() => $$unsubscribe_length());
5475
5486
  $$self.$$.on_destroy.push(() => $$unsubscribe_index());
5487
+ $$self.$$.on_destroy.push(() => $$unsubscribe_phase());
5476
5488
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
5477
5489
  let { app = null } = $$props;
5478
5490
  let { theme = "light" } = $$props;
@@ -5491,25 +5503,29 @@ function instance51($$self, $$props, $$invalidate) {
5491
5503
  }
5492
5504
  $$self.$$set = ($$props2) => {
5493
5505
  if ("app" in $$props2)
5494
- $$invalidate(15, app = $$props2.app);
5506
+ $$invalidate(16, app = $$props2.app);
5495
5507
  if ("theme" in $$props2)
5496
5508
  $$invalidate(0, theme = $$props2.theme);
5497
5509
  if ("language" in $$props2)
5498
- $$invalidate(16, language = $$props2.language);
5510
+ $$invalidate(17, language = $$props2.language);
5499
5511
  if ("icons" in $$props2)
5500
5512
  $$invalidate(1, icons = $$props2.icons);
5501
5513
  };
5502
5514
  $$self.$$.update = () => {
5503
5515
  if ($$self.$$.dirty & /*app*/
5504
- 32768) {
5505
- $$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
5516
+ 65536) {
5517
+ $$subscribe_writable($$invalidate(12, writable2 = app == null ? void 0 : app.writable));
5506
5518
  }
5507
- if ($$self.$$.dirty & /*$writable*/
5508
- 131072) {
5509
- $$invalidate(2, disabled = !$writable);
5519
+ if ($$self.$$.dirty & /*app*/
5520
+ 65536) {
5521
+ $$subscribe_phase($$invalidate(11, phase = app == null ? void 0 : app.phase));
5522
+ }
5523
+ if ($$self.$$.dirty & /*$writable, $phase*/
5524
+ 786432) {
5525
+ $$invalidate(2, disabled = !($writable && $phase === "connected"));
5510
5526
  }
5511
5527
  if ($$self.$$.dirty & /*language*/
5512
- 65536) {
5528
+ 131072) {
5513
5529
  $$invalidate(10, t = i18n2[language]);
5514
5530
  }
5515
5531
  if ($$self.$$.dirty & /*disabled*/
@@ -5517,11 +5533,11 @@ function instance51($$self, $$props, $$invalidate) {
5517
5533
  $$invalidate(5, type = disabled ? "disable" : "normal");
5518
5534
  }
5519
5535
  if ($$self.$$.dirty & /*app*/
5520
- 32768) {
5536
+ 65536) {
5521
5537
  $$subscribe_index($$invalidate(9, index = app == null ? void 0 : app.sceneIndex));
5522
5538
  }
5523
5539
  if ($$self.$$.dirty & /*app*/
5524
- 32768) {
5540
+ 65536) {
5525
5541
  $$subscribe_length($$invalidate(8, length = app == null ? void 0 : app.sceneLength));
5526
5542
  }
5527
5543
  if ($$self.$$.dirty & /*disabled, $index*/
@@ -5545,12 +5561,14 @@ function instance51($$self, $$props, $$invalidate) {
5545
5561
  length,
5546
5562
  index,
5547
5563
  t,
5564
+ phase,
5548
5565
  writable2,
5549
5566
  prevPage,
5550
5567
  nextPage,
5551
5568
  addPage,
5552
5569
  app,
5553
5570
  language,
5571
+ $phase,
5554
5572
  $writable
5555
5573
  ];
5556
5574
  }
@@ -5558,9 +5576,9 @@ var PageControl = class extends SvelteComponent {
5558
5576
  constructor(options) {
5559
5577
  super();
5560
5578
  init(this, options, instance51, create_fragment51, safe_not_equal, {
5561
- app: 15,
5579
+ app: 16,
5562
5580
  theme: 0,
5563
- language: 16,
5581
+ language: 17,
5564
5582
  icons: 1
5565
5583
  });
5566
5584
  }
@@ -5648,7 +5666,7 @@ function create_default_slot_42(ctx) {
5648
5666
  ctx2[5]
5649
5667
  ];
5650
5668
  if (dirty & /*$$scope, theme*/
5651
- 131073) {
5669
+ 524289) {
5652
5670
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5653
5671
  }
5654
5672
  icon.$set(icon_changes);
@@ -5791,7 +5809,7 @@ function create_default_slot_23(ctx) {
5791
5809
  ctx2[5]
5792
5810
  ];
5793
5811
  if (dirty & /*$$scope, theme*/
5794
- 131073) {
5812
+ 524289) {
5795
5813
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5796
5814
  }
5797
5815
  icon.$set(icon_changes);
@@ -5886,7 +5904,7 @@ function create_default_slot3(ctx) {
5886
5904
  ctx2[5]
5887
5905
  ];
5888
5906
  if (dirty & /*$$scope, theme*/
5889
- 131073) {
5907
+ 524289) {
5890
5908
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5891
5909
  }
5892
5910
  icon.$set(icon_changes);
@@ -5941,7 +5959,7 @@ function create_fragment52(ctx) {
5941
5959
  button0.$on(
5942
5960
  "click",
5943
5961
  /*plus*/
5944
- ctx[11]
5962
+ ctx[12]
5945
5963
  );
5946
5964
  function select_block_type(ctx2, dirty) {
5947
5965
  if (
@@ -5976,7 +5994,7 @@ function create_fragment52(ctx) {
5976
5994
  button1.$on(
5977
5995
  "click",
5978
5996
  /*minus*/
5979
- ctx[12]
5997
+ ctx[13]
5980
5998
  );
5981
5999
  button2 = new Button_default({
5982
6000
  props: {
@@ -6001,7 +6019,7 @@ function create_fragment52(ctx) {
6001
6019
  button2.$on(
6002
6020
  "click",
6003
6021
  /*reset*/
6004
- ctx[13]
6022
+ ctx[14]
6005
6023
  );
6006
6024
  return {
6007
6025
  c() {
@@ -6046,7 +6064,7 @@ function create_fragment52(ctx) {
6046
6064
  button0_changes.content = /*t*/
6047
6065
  ctx2[9].plus;
6048
6066
  if (dirty & /*$$scope, icons, type, theme*/
6049
- 131107) {
6067
+ 524323) {
6050
6068
  button0_changes.$$scope = { dirty, ctx: ctx2 };
6051
6069
  }
6052
6070
  button0.$set(button0_changes);
@@ -6079,7 +6097,7 @@ function create_fragment52(ctx) {
6079
6097
  button1_changes.content = /*t*/
6080
6098
  ctx2[9].minus;
6081
6099
  if (dirty & /*$$scope, icons, type, theme*/
6082
- 131107) {
6100
+ 524323) {
6083
6101
  button1_changes.$$scope = { dirty, ctx: ctx2 };
6084
6102
  }
6085
6103
  button1.$set(button1_changes);
@@ -6097,7 +6115,7 @@ function create_fragment52(ctx) {
6097
6115
  button2_changes.content = /*t*/
6098
6116
  ctx2[9].reset;
6099
6117
  if (dirty & /*$$scope, icons, type, theme*/
6100
- 131107) {
6118
+ 524323) {
6101
6119
  button2_changes.$$scope = { dirty, ctx: ctx2 };
6102
6120
  }
6103
6121
  button2.$set(button2_changes);
@@ -6175,6 +6193,7 @@ function next_scale(scale, delta) {
6175
6193
  var name3 = "fastboard-zoom-control";
6176
6194
  function instance52($$self, $$props, $$invalidate) {
6177
6195
  let writable2;
6196
+ let phase;
6178
6197
  let disabled;
6179
6198
  let t;
6180
6199
  let camera;
@@ -6182,8 +6201,10 @@ function instance52($$self, $$props, $$invalidate) {
6182
6201
  let plus_disabled;
6183
6202
  let minus_disabled;
6184
6203
  let $camera, $$unsubscribe_camera = noop, $$subscribe_camera = () => ($$unsubscribe_camera(), $$unsubscribe_camera = subscribe(camera, ($$value) => $$invalidate(4, $camera = $$value)), camera);
6185
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(16, $writable = $$value)), writable2);
6204
+ let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(17, $phase = $$value)), phase);
6205
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(18, $writable = $$value)), writable2);
6186
6206
  $$self.$$.on_destroy.push(() => $$unsubscribe_camera());
6207
+ $$self.$$.on_destroy.push(() => $$unsubscribe_phase());
6187
6208
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
6188
6209
  let { app = null } = $$props;
6189
6210
  let { theme = "light" } = $$props;
@@ -6209,26 +6230,30 @@ function instance52($$self, $$props, $$invalidate) {
6209
6230
  }
6210
6231
  $$self.$$set = ($$props2) => {
6211
6232
  if ("app" in $$props2)
6212
- $$invalidate(14, app = $$props2.app);
6233
+ $$invalidate(15, app = $$props2.app);
6213
6234
  if ("theme" in $$props2)
6214
6235
  $$invalidate(0, theme = $$props2.theme);
6215
6236
  if ("language" in $$props2)
6216
- $$invalidate(15, language = $$props2.language);
6237
+ $$invalidate(16, language = $$props2.language);
6217
6238
  if ("icons" in $$props2)
6218
6239
  $$invalidate(1, icons = $$props2.icons);
6219
6240
  };
6220
6241
  $$self.$$.update = () => {
6221
6242
  var _a;
6222
6243
  if ($$self.$$.dirty & /*app*/
6223
- 16384) {
6224
- $$subscribe_writable($$invalidate(10, writable2 = app == null ? void 0 : app.writable));
6244
+ 32768) {
6245
+ $$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
6225
6246
  }
6226
- if ($$self.$$.dirty & /*$writable*/
6227
- 65536) {
6228
- $$invalidate(3, disabled = !$writable);
6247
+ if ($$self.$$.dirty & /*app*/
6248
+ 32768) {
6249
+ $$subscribe_phase($$invalidate(10, phase = app == null ? void 0 : app.phase));
6250
+ }
6251
+ if ($$self.$$.dirty & /*$writable, $phase*/
6252
+ 393216) {
6253
+ $$invalidate(3, disabled = !($writable && $phase === "connected"));
6229
6254
  }
6230
6255
  if ($$self.$$.dirty & /*language*/
6231
- 32768) {
6256
+ 65536) {
6232
6257
  $$invalidate(9, t = i18n3[language]);
6233
6258
  }
6234
6259
  if ($$self.$$.dirty & /*disabled*/
@@ -6236,7 +6261,7 @@ function instance52($$self, $$props, $$invalidate) {
6236
6261
  $$invalidate(5, type = disabled ? "disable" : "normal");
6237
6262
  }
6238
6263
  if ($$self.$$.dirty & /*app*/
6239
- 16384) {
6264
+ 32768) {
6240
6265
  $$subscribe_camera($$invalidate(8, camera = app == null ? void 0 : app.camera));
6241
6266
  }
6242
6267
  if ($$self.$$.dirty & /*$camera*/
@@ -6263,12 +6288,14 @@ function instance52($$self, $$props, $$invalidate) {
6263
6288
  plus_disabled,
6264
6289
  camera,
6265
6290
  t,
6291
+ phase,
6266
6292
  writable2,
6267
6293
  plus,
6268
6294
  minus,
6269
6295
  reset,
6270
6296
  app,
6271
6297
  language,
6298
+ $phase,
6272
6299
  $writable
6273
6300
  ];
6274
6301
  }
@@ -6276,9 +6303,9 @@ var ZoomControl = class extends SvelteComponent {
6276
6303
  constructor(options) {
6277
6304
  super();
6278
6305
  init(this, options, instance52, create_fragment52, safe_not_equal, {
6279
- app: 14,
6306
+ app: 15,
6280
6307
  theme: 0,
6281
- language: 15,
6308
+ language: 16,
6282
6309
  icons: 1
6283
6310
  });
6284
6311
  }
@@ -12335,7 +12362,7 @@ function create_fragment68(ctx) {
12335
12362
  ),
12336
12363
  scroll_height: (
12337
12364
  /*scroll_height*/
12338
- ctx[12]
12365
+ ctx[13]
12339
12366
  ),
12340
12367
  computed_height: (
12341
12368
  /*computed_height*/
@@ -12436,13 +12463,13 @@ function create_fragment68(ctx) {
12436
12463
  input,
12437
12464
  "change",
12438
12465
  /*input_change_handler*/
12439
- ctx[17]
12466
+ ctx[19]
12440
12467
  ),
12441
12468
  action_destroyer(height.call(
12442
12469
  null,
12443
12470
  div1,
12444
12471
  /*container_height*/
12445
- ctx[11]
12472
+ ctx[12]
12446
12473
  ))
12447
12474
  ];
12448
12475
  mounted = true;
@@ -12562,6 +12589,7 @@ function create_fragment68(ctx) {
12562
12589
  var name6 = "fastboard-toolbar";
12563
12590
  function instance68($$self, $$props, $$invalidate) {
12564
12591
  let writable2;
12592
+ let phase;
12565
12593
  let disabled;
12566
12594
  let computed_height;
12567
12595
  let scrollable;
@@ -12570,7 +12598,9 @@ function instance68($$self, $$props, $$invalidate) {
12570
12598
  let hide_apps;
12571
12599
  let $container_height;
12572
12600
  let $scroll_height;
12573
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(16, $writable = $$value)), writable2);
12601
+ let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(17, $phase = $$value)), phase);
12602
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(18, $writable = $$value)), writable2);
12603
+ $$self.$$.on_destroy.push(() => $$unsubscribe_phase());
12574
12604
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
12575
12605
  let { app = null } = $$props;
12576
12606
  let { theme = "light" } = $$props;
@@ -12579,9 +12609,9 @@ function instance68($$self, $$props, $$invalidate) {
12579
12609
  const extra_height = (32 + 4 + 4) * 2;
12580
12610
  let collapsed = false;
12581
12611
  let container_height = writable(0);
12582
- component_subscribe($$self, container_height, (value) => $$invalidate(14, $container_height = value));
12612
+ component_subscribe($$self, container_height, (value) => $$invalidate(15, $container_height = value));
12583
12613
  let scroll_height = writable(0);
12584
- component_subscribe($$self, scroll_height, (value) => $$invalidate(15, $scroll_height = value));
12614
+ component_subscribe($$self, scroll_height, (value) => $$invalidate(16, $scroll_height = value));
12585
12615
  function input_change_handler() {
12586
12616
  collapsed = this.checked;
12587
12617
  $$invalidate(3, collapsed);
@@ -12594,36 +12624,40 @@ function instance68($$self, $$props, $$invalidate) {
12594
12624
  if ("language" in $$props2)
12595
12625
  $$invalidate(2, language = $$props2.language);
12596
12626
  if ("config" in $$props2)
12597
- $$invalidate(13, config = $$props2.config);
12627
+ $$invalidate(14, config = $$props2.config);
12598
12628
  };
12599
12629
  $$self.$$.update = () => {
12600
12630
  var _a;
12601
12631
  if ($$self.$$.dirty & /*app*/
12602
12632
  1) {
12603
- $$subscribe_writable($$invalidate(10, writable2 = app == null ? void 0 : app.writable));
12633
+ $$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
12604
12634
  }
12605
- if ($$self.$$.dirty & /*$writable*/
12606
- 65536) {
12607
- $$invalidate(9, disabled = !$writable);
12635
+ if ($$self.$$.dirty & /*app*/
12636
+ 1) {
12637
+ $$subscribe_phase($$invalidate(10, phase = app == null ? void 0 : app.phase));
12638
+ }
12639
+ if ($$self.$$.dirty & /*$writable, $phase*/
12640
+ 393216) {
12641
+ $$invalidate(9, disabled = !($writable && $phase === "connected"));
12608
12642
  }
12609
12643
  if ($$self.$$.dirty & /*$container_height, $scroll_height*/
12610
- 49152) {
12644
+ 98304) {
12611
12645
  $$invalidate(8, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
12612
12646
  }
12613
12647
  if ($$self.$$.dirty & /*$scroll_height, $container_height*/
12614
- 49152) {
12648
+ 98304) {
12615
12649
  $$invalidate(7, scrollable = $scroll_height + extra_height > $container_height);
12616
12650
  }
12617
12651
  if ($$self.$$.dirty & /*config*/
12618
- 8192) {
12652
+ 16384) {
12619
12653
  $$invalidate(6, placement = config.placement || "left");
12620
12654
  }
12621
12655
  if ($$self.$$.dirty & /*config*/
12622
- 8192) {
12656
+ 16384) {
12623
12657
  $$invalidate(5, items = config.items || default_items);
12624
12658
  }
12625
12659
  if ($$self.$$.dirty & /*config*/
12626
- 8192) {
12660
+ 16384) {
12627
12661
  $$invalidate(4, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
12628
12662
  }
12629
12663
  };
@@ -12638,12 +12672,14 @@ function instance68($$self, $$props, $$invalidate) {
12638
12672
  scrollable,
12639
12673
  computed_height,
12640
12674
  disabled,
12675
+ phase,
12641
12676
  writable2,
12642
12677
  container_height,
12643
12678
  scroll_height,
12644
12679
  config,
12645
12680
  $container_height,
12646
12681
  $scroll_height,
12682
+ $phase,
12647
12683
  $writable,
12648
12684
  input_change_handler
12649
12685
  ];
@@ -12655,7 +12691,7 @@ var Toolbar = class extends SvelteComponent {
12655
12691
  app: 0,
12656
12692
  theme: 1,
12657
12693
  language: 2,
12658
- config: 13
12694
+ config: 14
12659
12695
  });
12660
12696
  }
12661
12697
  };