@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.
package/dist/index.mjs CHANGED
@@ -5179,7 +5179,7 @@ function create_default_slot_2(ctx) {
5179
5179
  ctx2[2]
5180
5180
  ];
5181
5181
  if (dirty & /*$$scope, theme*/
5182
- 131073) {
5182
+ 524289) {
5183
5183
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5184
5184
  }
5185
5185
  icon.$set(icon_changes);
@@ -5274,7 +5274,7 @@ function create_default_slot(ctx) {
5274
5274
  ctx2[2]
5275
5275
  ];
5276
5276
  if (dirty & /*$$scope, theme*/
5277
- 131073) {
5277
+ 524289) {
5278
5278
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5279
5279
  }
5280
5280
  icon.$set(icon_changes);
@@ -5324,7 +5324,7 @@ function create_fragment50(ctx) {
5324
5324
  button0.$on(
5325
5325
  "click",
5326
5326
  /*undo*/
5327
- ctx[9]
5327
+ ctx[10]
5328
5328
  );
5329
5329
  button1 = new Button_default({
5330
5330
  props: {
@@ -5349,7 +5349,7 @@ function create_fragment50(ctx) {
5349
5349
  button1.$on(
5350
5350
  "click",
5351
5351
  /*redo*/
5352
- ctx[10]
5352
+ ctx[11]
5353
5353
  );
5354
5354
  return {
5355
5355
  c() {
@@ -5382,7 +5382,7 @@ function create_fragment50(ctx) {
5382
5382
  button0_changes.content = /*t*/
5383
5383
  ctx2[7].undo;
5384
5384
  if (dirty & /*$$scope, icons, type, theme*/
5385
- 131079) {
5385
+ 524295) {
5386
5386
  button0_changes.$$scope = { dirty, ctx: ctx2 };
5387
5387
  }
5388
5388
  button0.$set(button0_changes);
@@ -5400,7 +5400,7 @@ function create_fragment50(ctx) {
5400
5400
  button1_changes.content = /*t*/
5401
5401
  ctx2[7].redo;
5402
5402
  if (dirty & /*$$scope, icons, type, theme*/
5403
- 131079) {
5403
+ 524295) {
5404
5404
  button1_changes.$$scope = { dirty, ctx: ctx2 };
5405
5405
  }
5406
5406
  button1.$set(button1_changes);
@@ -5440,17 +5440,20 @@ var i18n = {
5440
5440
  var name = "fastboard-redo-undo";
5441
5441
  function instance50($$self, $$props, $$invalidate) {
5442
5442
  let writable2;
5443
+ let phase;
5443
5444
  let disabled;
5444
5445
  let t;
5445
5446
  let undoSteps;
5446
5447
  let redoSteps;
5447
5448
  let undo_disabled;
5448
5449
  let redo_disabled;
5449
- let $redoSteps, $$unsubscribe_redoSteps = noop, $$subscribe_redoSteps = () => ($$unsubscribe_redoSteps(), $$unsubscribe_redoSteps = subscribe(redoSteps, ($$value) => $$invalidate(14, $redoSteps = $$value)), redoSteps);
5450
- let $undoSteps, $$unsubscribe_undoSteps = noop, $$subscribe_undoSteps = () => ($$unsubscribe_undoSteps(), $$unsubscribe_undoSteps = subscribe(undoSteps, ($$value) => $$invalidate(15, $undoSteps = $$value)), undoSteps);
5451
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(16, $writable = $$value)), writable2);
5450
+ let $redoSteps, $$unsubscribe_redoSteps = noop, $$subscribe_redoSteps = () => ($$unsubscribe_redoSteps(), $$unsubscribe_redoSteps = subscribe(redoSteps, ($$value) => $$invalidate(15, $redoSteps = $$value)), redoSteps);
5451
+ let $undoSteps, $$unsubscribe_undoSteps = noop, $$subscribe_undoSteps = () => ($$unsubscribe_undoSteps(), $$unsubscribe_undoSteps = subscribe(undoSteps, ($$value) => $$invalidate(16, $undoSteps = $$value)), undoSteps);
5452
+ let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(17, $phase = $$value)), phase);
5453
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(18, $writable = $$value)), writable2);
5452
5454
  $$self.$$.on_destroy.push(() => $$unsubscribe_redoSteps());
5453
5455
  $$self.$$.on_destroy.push(() => $$unsubscribe_undoSteps());
5456
+ $$self.$$.on_destroy.push(() => $$unsubscribe_phase());
5454
5457
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
5455
5458
  let { app = null } = $$props;
5456
5459
  let { theme = "light" } = $$props;
@@ -5465,45 +5468,49 @@ function instance50($$self, $$props, $$invalidate) {
5465
5468
  }
5466
5469
  $$self.$$set = ($$props2) => {
5467
5470
  if ("app" in $$props2)
5468
- $$invalidate(11, app = $$props2.app);
5471
+ $$invalidate(12, app = $$props2.app);
5469
5472
  if ("theme" in $$props2)
5470
5473
  $$invalidate(0, theme = $$props2.theme);
5471
5474
  if ("language" in $$props2)
5472
- $$invalidate(12, language = $$props2.language);
5475
+ $$invalidate(13, language = $$props2.language);
5473
5476
  if ("icons" in $$props2)
5474
5477
  $$invalidate(1, icons = $$props2.icons);
5475
5478
  };
5476
5479
  $$self.$$.update = () => {
5477
5480
  if ($$self.$$.dirty & /*app*/
5478
- 2048) {
5479
- $$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
5481
+ 4096) {
5482
+ $$subscribe_writable($$invalidate(9, writable2 = app == null ? void 0 : app.writable));
5480
5483
  }
5481
- if ($$self.$$.dirty & /*$writable*/
5482
- 65536) {
5483
- $$invalidate(13, disabled = !$writable);
5484
+ if ($$self.$$.dirty & /*app*/
5485
+ 4096) {
5486
+ $$subscribe_phase($$invalidate(8, phase = app == null ? void 0 : app.phase));
5487
+ }
5488
+ if ($$self.$$.dirty & /*$writable, $phase*/
5489
+ 393216) {
5490
+ $$invalidate(14, disabled = !($writable && $phase === "connected"));
5484
5491
  }
5485
5492
  if ($$self.$$.dirty & /*language*/
5486
- 4096) {
5493
+ 8192) {
5487
5494
  $$invalidate(7, t = i18n[language]);
5488
5495
  }
5489
5496
  if ($$self.$$.dirty & /*disabled*/
5490
- 8192) {
5497
+ 16384) {
5491
5498
  $$invalidate(2, type = disabled ? "disable" : "normal");
5492
5499
  }
5493
5500
  if ($$self.$$.dirty & /*app*/
5494
- 2048) {
5501
+ 4096) {
5495
5502
  $$subscribe_undoSteps($$invalidate(6, undoSteps = app == null ? void 0 : app.canUndoSteps));
5496
5503
  }
5497
5504
  if ($$self.$$.dirty & /*app*/
5498
- 2048) {
5505
+ 4096) {
5499
5506
  $$subscribe_redoSteps($$invalidate(5, redoSteps = app == null ? void 0 : app.canRedoSteps));
5500
5507
  }
5501
5508
  if ($$self.$$.dirty & /*disabled, $undoSteps*/
5502
- 40960) {
5509
+ 81920) {
5503
5510
  $$invalidate(4, undo_disabled = disabled || !$undoSteps);
5504
5511
  }
5505
5512
  if ($$self.$$.dirty & /*disabled, $redoSteps*/
5506
- 24576) {
5513
+ 49152) {
5507
5514
  $$invalidate(3, redo_disabled = disabled || !$redoSteps);
5508
5515
  }
5509
5516
  };
@@ -5516,6 +5523,7 @@ function instance50($$self, $$props, $$invalidate) {
5516
5523
  redoSteps,
5517
5524
  undoSteps,
5518
5525
  t,
5526
+ phase,
5519
5527
  writable2,
5520
5528
  undo,
5521
5529
  redo,
@@ -5524,6 +5532,7 @@ function instance50($$self, $$props, $$invalidate) {
5524
5532
  disabled,
5525
5533
  $redoSteps,
5526
5534
  $undoSteps,
5535
+ $phase,
5527
5536
  $writable
5528
5537
  ];
5529
5538
  }
@@ -5531,9 +5540,9 @@ var RedoUndo = class extends SvelteComponent {
5531
5540
  constructor(options) {
5532
5541
  super();
5533
5542
  init(this, options, instance50, create_fragment50, safe_not_equal, {
5534
- app: 11,
5543
+ app: 12,
5535
5544
  theme: 0,
5536
- language: 12,
5545
+ language: 13,
5537
5546
  icons: 1
5538
5547
  });
5539
5548
  }
@@ -5616,7 +5625,7 @@ function create_default_slot_4(ctx) {
5616
5625
  ctx2[5]
5617
5626
  ];
5618
5627
  if (dirty & /*$$scope, theme*/
5619
- 262145) {
5628
+ 1048577) {
5620
5629
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5621
5630
  }
5622
5631
  icon.$set(icon_changes);
@@ -5772,7 +5781,7 @@ function create_default_slot_22(ctx) {
5772
5781
  ctx2[5]
5773
5782
  ];
5774
5783
  if (dirty & /*$$scope, theme*/
5775
- 262145) {
5784
+ 1048577) {
5776
5785
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5777
5786
  }
5778
5787
  icon.$set(icon_changes);
@@ -5867,7 +5876,7 @@ function create_default_slot2(ctx) {
5867
5876
  ctx2[5]
5868
5877
  ];
5869
5878
  if (dirty & /*$$scope, theme*/
5870
- 262145) {
5879
+ 1048577) {
5871
5880
  icon_changes.$$scope = { dirty, ctx: ctx2 };
5872
5881
  }
5873
5882
  icon.$set(icon_changes);
@@ -5922,7 +5931,7 @@ function create_fragment51(ctx) {
5922
5931
  button0.$on(
5923
5932
  "click",
5924
5933
  /*prevPage*/
5925
- ctx[12]
5934
+ ctx[13]
5926
5935
  );
5927
5936
  function select_block_type(ctx2, dirty) {
5928
5937
  if (
@@ -5958,7 +5967,7 @@ function create_fragment51(ctx) {
5958
5967
  button1.$on(
5959
5968
  "click",
5960
5969
  /*nextPage*/
5961
- ctx[13]
5970
+ ctx[14]
5962
5971
  );
5963
5972
  button2 = new Button_default({
5964
5973
  props: {
@@ -5983,7 +5992,7 @@ function create_fragment51(ctx) {
5983
5992
  button2.$on(
5984
5993
  "click",
5985
5994
  /*addPage*/
5986
- ctx[14]
5995
+ ctx[15]
5987
5996
  );
5988
5997
  return {
5989
5998
  c() {
@@ -6028,7 +6037,7 @@ function create_fragment51(ctx) {
6028
6037
  button0_changes.content = /*t*/
6029
6038
  ctx2[10].prev;
6030
6039
  if (dirty & /*$$scope, icons, type, theme*/
6031
- 262179) {
6040
+ 1048611) {
6032
6041
  button0_changes.$$scope = { dirty, ctx: ctx2 };
6033
6042
  }
6034
6043
  button0.$set(button0_changes);
@@ -6061,7 +6070,7 @@ function create_fragment51(ctx) {
6061
6070
  button1_changes.content = /*t*/
6062
6071
  ctx2[10].next;
6063
6072
  if (dirty & /*$$scope, icons, type, theme*/
6064
- 262179) {
6073
+ 1048611) {
6065
6074
  button1_changes.$$scope = { dirty, ctx: ctx2 };
6066
6075
  }
6067
6076
  button1.$set(button1_changes);
@@ -6079,7 +6088,7 @@ function create_fragment51(ctx) {
6079
6088
  button2_changes.content = /*t*/
6080
6089
  ctx2[10].add;
6081
6090
  if (dirty & /*$$scope, icons, type, theme*/
6082
- 262179) {
6091
+ 1048611) {
6083
6092
  button2_changes.$$scope = { dirty, ctx: ctx2 };
6084
6093
  }
6085
6094
  button2.$set(button2_changes);
@@ -6128,6 +6137,7 @@ var i18n2 = {
6128
6137
  var name2 = "fastboard-page-control";
6129
6138
  function instance51($$self, $$props, $$invalidate) {
6130
6139
  let writable2;
6140
+ let phase;
6131
6141
  let disabled;
6132
6142
  let t;
6133
6143
  let index;
@@ -6136,9 +6146,11 @@ function instance51($$self, $$props, $$invalidate) {
6136
6146
  let next_disabled;
6137
6147
  let $length, $$unsubscribe_length = noop, $$subscribe_length = () => ($$unsubscribe_length(), $$unsubscribe_length = subscribe(length, ($$value) => $$invalidate(3, $length = $$value)), length);
6138
6148
  let $index, $$unsubscribe_index = noop, $$subscribe_index = () => ($$unsubscribe_index(), $$unsubscribe_index = subscribe(index, ($$value) => $$invalidate(4, $index = $$value)), index);
6139
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(17, $writable = $$value)), writable2);
6149
+ let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(18, $phase = $$value)), phase);
6150
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(19, $writable = $$value)), writable2);
6140
6151
  $$self.$$.on_destroy.push(() => $$unsubscribe_length());
6141
6152
  $$self.$$.on_destroy.push(() => $$unsubscribe_index());
6153
+ $$self.$$.on_destroy.push(() => $$unsubscribe_phase());
6142
6154
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
6143
6155
  let { app = null } = $$props;
6144
6156
  let { theme = "light" } = $$props;
@@ -6157,25 +6169,29 @@ function instance51($$self, $$props, $$invalidate) {
6157
6169
  }
6158
6170
  $$self.$$set = ($$props2) => {
6159
6171
  if ("app" in $$props2)
6160
- $$invalidate(15, app = $$props2.app);
6172
+ $$invalidate(16, app = $$props2.app);
6161
6173
  if ("theme" in $$props2)
6162
6174
  $$invalidate(0, theme = $$props2.theme);
6163
6175
  if ("language" in $$props2)
6164
- $$invalidate(16, language = $$props2.language);
6176
+ $$invalidate(17, language = $$props2.language);
6165
6177
  if ("icons" in $$props2)
6166
6178
  $$invalidate(1, icons = $$props2.icons);
6167
6179
  };
6168
6180
  $$self.$$.update = () => {
6169
6181
  if ($$self.$$.dirty & /*app*/
6170
- 32768) {
6171
- $$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
6182
+ 65536) {
6183
+ $$subscribe_writable($$invalidate(12, writable2 = app == null ? void 0 : app.writable));
6172
6184
  }
6173
- if ($$self.$$.dirty & /*$writable*/
6174
- 131072) {
6175
- $$invalidate(2, disabled = !$writable);
6185
+ if ($$self.$$.dirty & /*app*/
6186
+ 65536) {
6187
+ $$subscribe_phase($$invalidate(11, phase = app == null ? void 0 : app.phase));
6188
+ }
6189
+ if ($$self.$$.dirty & /*$writable, $phase*/
6190
+ 786432) {
6191
+ $$invalidate(2, disabled = !($writable && $phase === "connected"));
6176
6192
  }
6177
6193
  if ($$self.$$.dirty & /*language*/
6178
- 65536) {
6194
+ 131072) {
6179
6195
  $$invalidate(10, t = i18n2[language]);
6180
6196
  }
6181
6197
  if ($$self.$$.dirty & /*disabled*/
@@ -6183,11 +6199,11 @@ function instance51($$self, $$props, $$invalidate) {
6183
6199
  $$invalidate(5, type = disabled ? "disable" : "normal");
6184
6200
  }
6185
6201
  if ($$self.$$.dirty & /*app*/
6186
- 32768) {
6202
+ 65536) {
6187
6203
  $$subscribe_index($$invalidate(9, index = app == null ? void 0 : app.sceneIndex));
6188
6204
  }
6189
6205
  if ($$self.$$.dirty & /*app*/
6190
- 32768) {
6206
+ 65536) {
6191
6207
  $$subscribe_length($$invalidate(8, length = app == null ? void 0 : app.sceneLength));
6192
6208
  }
6193
6209
  if ($$self.$$.dirty & /*disabled, $index*/
@@ -6211,12 +6227,14 @@ function instance51($$self, $$props, $$invalidate) {
6211
6227
  length,
6212
6228
  index,
6213
6229
  t,
6230
+ phase,
6214
6231
  writable2,
6215
6232
  prevPage,
6216
6233
  nextPage,
6217
6234
  addPage,
6218
6235
  app,
6219
6236
  language,
6237
+ $phase,
6220
6238
  $writable
6221
6239
  ];
6222
6240
  }
@@ -6224,9 +6242,9 @@ var PageControl = class extends SvelteComponent {
6224
6242
  constructor(options) {
6225
6243
  super();
6226
6244
  init(this, options, instance51, create_fragment51, safe_not_equal, {
6227
- app: 15,
6245
+ app: 16,
6228
6246
  theme: 0,
6229
- language: 16,
6247
+ language: 17,
6230
6248
  icons: 1
6231
6249
  });
6232
6250
  }
@@ -6314,7 +6332,7 @@ function create_default_slot_42(ctx) {
6314
6332
  ctx2[5]
6315
6333
  ];
6316
6334
  if (dirty & /*$$scope, theme*/
6317
- 131073) {
6335
+ 524289) {
6318
6336
  icon_changes.$$scope = { dirty, ctx: ctx2 };
6319
6337
  }
6320
6338
  icon.$set(icon_changes);
@@ -6457,7 +6475,7 @@ function create_default_slot_23(ctx) {
6457
6475
  ctx2[5]
6458
6476
  ];
6459
6477
  if (dirty & /*$$scope, theme*/
6460
- 131073) {
6478
+ 524289) {
6461
6479
  icon_changes.$$scope = { dirty, ctx: ctx2 };
6462
6480
  }
6463
6481
  icon.$set(icon_changes);
@@ -6552,7 +6570,7 @@ function create_default_slot3(ctx) {
6552
6570
  ctx2[5]
6553
6571
  ];
6554
6572
  if (dirty & /*$$scope, theme*/
6555
- 131073) {
6573
+ 524289) {
6556
6574
  icon_changes.$$scope = { dirty, ctx: ctx2 };
6557
6575
  }
6558
6576
  icon.$set(icon_changes);
@@ -6607,7 +6625,7 @@ function create_fragment52(ctx) {
6607
6625
  button0.$on(
6608
6626
  "click",
6609
6627
  /*plus*/
6610
- ctx[11]
6628
+ ctx[12]
6611
6629
  );
6612
6630
  function select_block_type(ctx2, dirty) {
6613
6631
  if (
@@ -6642,7 +6660,7 @@ function create_fragment52(ctx) {
6642
6660
  button1.$on(
6643
6661
  "click",
6644
6662
  /*minus*/
6645
- ctx[12]
6663
+ ctx[13]
6646
6664
  );
6647
6665
  button2 = new Button_default({
6648
6666
  props: {
@@ -6667,7 +6685,7 @@ function create_fragment52(ctx) {
6667
6685
  button2.$on(
6668
6686
  "click",
6669
6687
  /*reset*/
6670
- ctx[13]
6688
+ ctx[14]
6671
6689
  );
6672
6690
  return {
6673
6691
  c() {
@@ -6712,7 +6730,7 @@ function create_fragment52(ctx) {
6712
6730
  button0_changes.content = /*t*/
6713
6731
  ctx2[9].plus;
6714
6732
  if (dirty & /*$$scope, icons, type, theme*/
6715
- 131107) {
6733
+ 524323) {
6716
6734
  button0_changes.$$scope = { dirty, ctx: ctx2 };
6717
6735
  }
6718
6736
  button0.$set(button0_changes);
@@ -6745,7 +6763,7 @@ function create_fragment52(ctx) {
6745
6763
  button1_changes.content = /*t*/
6746
6764
  ctx2[9].minus;
6747
6765
  if (dirty & /*$$scope, icons, type, theme*/
6748
- 131107) {
6766
+ 524323) {
6749
6767
  button1_changes.$$scope = { dirty, ctx: ctx2 };
6750
6768
  }
6751
6769
  button1.$set(button1_changes);
@@ -6763,7 +6781,7 @@ function create_fragment52(ctx) {
6763
6781
  button2_changes.content = /*t*/
6764
6782
  ctx2[9].reset;
6765
6783
  if (dirty & /*$$scope, icons, type, theme*/
6766
- 131107) {
6784
+ 524323) {
6767
6785
  button2_changes.$$scope = { dirty, ctx: ctx2 };
6768
6786
  }
6769
6787
  button2.$set(button2_changes);
@@ -6841,6 +6859,7 @@ function next_scale(scale, delta) {
6841
6859
  var name3 = "fastboard-zoom-control";
6842
6860
  function instance52($$self, $$props, $$invalidate) {
6843
6861
  let writable2;
6862
+ let phase;
6844
6863
  let disabled;
6845
6864
  let t;
6846
6865
  let camera;
@@ -6848,8 +6867,10 @@ function instance52($$self, $$props, $$invalidate) {
6848
6867
  let plus_disabled;
6849
6868
  let minus_disabled;
6850
6869
  let $camera, $$unsubscribe_camera = noop, $$subscribe_camera = () => ($$unsubscribe_camera(), $$unsubscribe_camera = subscribe(camera, ($$value) => $$invalidate(4, $camera = $$value)), camera);
6851
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(16, $writable = $$value)), writable2);
6870
+ let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(17, $phase = $$value)), phase);
6871
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(18, $writable = $$value)), writable2);
6852
6872
  $$self.$$.on_destroy.push(() => $$unsubscribe_camera());
6873
+ $$self.$$.on_destroy.push(() => $$unsubscribe_phase());
6853
6874
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
6854
6875
  let { app = null } = $$props;
6855
6876
  let { theme = "light" } = $$props;
@@ -6875,26 +6896,30 @@ function instance52($$self, $$props, $$invalidate) {
6875
6896
  }
6876
6897
  $$self.$$set = ($$props2) => {
6877
6898
  if ("app" in $$props2)
6878
- $$invalidate(14, app = $$props2.app);
6899
+ $$invalidate(15, app = $$props2.app);
6879
6900
  if ("theme" in $$props2)
6880
6901
  $$invalidate(0, theme = $$props2.theme);
6881
6902
  if ("language" in $$props2)
6882
- $$invalidate(15, language = $$props2.language);
6903
+ $$invalidate(16, language = $$props2.language);
6883
6904
  if ("icons" in $$props2)
6884
6905
  $$invalidate(1, icons = $$props2.icons);
6885
6906
  };
6886
6907
  $$self.$$.update = () => {
6887
6908
  var _a;
6888
6909
  if ($$self.$$.dirty & /*app*/
6889
- 16384) {
6890
- $$subscribe_writable($$invalidate(10, writable2 = app == null ? void 0 : app.writable));
6910
+ 32768) {
6911
+ $$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
6891
6912
  }
6892
- if ($$self.$$.dirty & /*$writable*/
6893
- 65536) {
6894
- $$invalidate(3, disabled = !$writable);
6913
+ if ($$self.$$.dirty & /*app*/
6914
+ 32768) {
6915
+ $$subscribe_phase($$invalidate(10, phase = app == null ? void 0 : app.phase));
6916
+ }
6917
+ if ($$self.$$.dirty & /*$writable, $phase*/
6918
+ 393216) {
6919
+ $$invalidate(3, disabled = !($writable && $phase === "connected"));
6895
6920
  }
6896
6921
  if ($$self.$$.dirty & /*language*/
6897
- 32768) {
6922
+ 65536) {
6898
6923
  $$invalidate(9, t = i18n3[language]);
6899
6924
  }
6900
6925
  if ($$self.$$.dirty & /*disabled*/
@@ -6902,7 +6927,7 @@ function instance52($$self, $$props, $$invalidate) {
6902
6927
  $$invalidate(5, type = disabled ? "disable" : "normal");
6903
6928
  }
6904
6929
  if ($$self.$$.dirty & /*app*/
6905
- 16384) {
6930
+ 32768) {
6906
6931
  $$subscribe_camera($$invalidate(8, camera = app == null ? void 0 : app.camera));
6907
6932
  }
6908
6933
  if ($$self.$$.dirty & /*$camera*/
@@ -6929,12 +6954,14 @@ function instance52($$self, $$props, $$invalidate) {
6929
6954
  plus_disabled,
6930
6955
  camera,
6931
6956
  t,
6957
+ phase,
6932
6958
  writable2,
6933
6959
  plus,
6934
6960
  minus,
6935
6961
  reset,
6936
6962
  app,
6937
6963
  language,
6964
+ $phase,
6938
6965
  $writable
6939
6966
  ];
6940
6967
  }
@@ -6942,9 +6969,9 @@ var ZoomControl = class extends SvelteComponent {
6942
6969
  constructor(options) {
6943
6970
  super();
6944
6971
  init(this, options, instance52, create_fragment52, safe_not_equal, {
6945
- app: 14,
6972
+ app: 15,
6946
6973
  theme: 0,
6947
- language: 15,
6974
+ language: 16,
6948
6975
  icons: 1
6949
6976
  });
6950
6977
  }
@@ -13073,7 +13100,7 @@ function create_fragment68(ctx) {
13073
13100
  ),
13074
13101
  scroll_height: (
13075
13102
  /*scroll_height*/
13076
- ctx[12]
13103
+ ctx[13]
13077
13104
  ),
13078
13105
  computed_height: (
13079
13106
  /*computed_height*/
@@ -13174,13 +13201,13 @@ function create_fragment68(ctx) {
13174
13201
  input,
13175
13202
  "change",
13176
13203
  /*input_change_handler*/
13177
- ctx[17]
13204
+ ctx[19]
13178
13205
  ),
13179
13206
  action_destroyer(height.call(
13180
13207
  null,
13181
13208
  div1,
13182
13209
  /*container_height*/
13183
- ctx[11]
13210
+ ctx[12]
13184
13211
  ))
13185
13212
  ];
13186
13213
  mounted = true;
@@ -13300,6 +13327,7 @@ function create_fragment68(ctx) {
13300
13327
  var name6 = "fastboard-toolbar";
13301
13328
  function instance68($$self, $$props, $$invalidate) {
13302
13329
  let writable2;
13330
+ let phase;
13303
13331
  let disabled;
13304
13332
  let computed_height;
13305
13333
  let scrollable;
@@ -13308,7 +13336,9 @@ function instance68($$self, $$props, $$invalidate) {
13308
13336
  let hide_apps;
13309
13337
  let $container_height;
13310
13338
  let $scroll_height;
13311
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(16, $writable = $$value)), writable2);
13339
+ let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(17, $phase = $$value)), phase);
13340
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(18, $writable = $$value)), writable2);
13341
+ $$self.$$.on_destroy.push(() => $$unsubscribe_phase());
13312
13342
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
13313
13343
  let { app = null } = $$props;
13314
13344
  let { theme = "light" } = $$props;
@@ -13317,9 +13347,9 @@ function instance68($$self, $$props, $$invalidate) {
13317
13347
  const extra_height = (32 + 4 + 4) * 2;
13318
13348
  let collapsed = false;
13319
13349
  let container_height = writable(0);
13320
- component_subscribe($$self, container_height, (value) => $$invalidate(14, $container_height = value));
13350
+ component_subscribe($$self, container_height, (value) => $$invalidate(15, $container_height = value));
13321
13351
  let scroll_height = writable(0);
13322
- component_subscribe($$self, scroll_height, (value) => $$invalidate(15, $scroll_height = value));
13352
+ component_subscribe($$self, scroll_height, (value) => $$invalidate(16, $scroll_height = value));
13323
13353
  function input_change_handler() {
13324
13354
  collapsed = this.checked;
13325
13355
  $$invalidate(3, collapsed);
@@ -13332,36 +13362,40 @@ function instance68($$self, $$props, $$invalidate) {
13332
13362
  if ("language" in $$props2)
13333
13363
  $$invalidate(2, language = $$props2.language);
13334
13364
  if ("config" in $$props2)
13335
- $$invalidate(13, config = $$props2.config);
13365
+ $$invalidate(14, config = $$props2.config);
13336
13366
  };
13337
13367
  $$self.$$.update = () => {
13338
13368
  var _a;
13339
13369
  if ($$self.$$.dirty & /*app*/
13340
13370
  1) {
13341
- $$subscribe_writable($$invalidate(10, writable2 = app == null ? void 0 : app.writable));
13371
+ $$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
13342
13372
  }
13343
- if ($$self.$$.dirty & /*$writable*/
13344
- 65536) {
13345
- $$invalidate(9, disabled = !$writable);
13373
+ if ($$self.$$.dirty & /*app*/
13374
+ 1) {
13375
+ $$subscribe_phase($$invalidate(10, phase = app == null ? void 0 : app.phase));
13376
+ }
13377
+ if ($$self.$$.dirty & /*$writable, $phase*/
13378
+ 393216) {
13379
+ $$invalidate(9, disabled = !($writable && $phase === "connected"));
13346
13380
  }
13347
13381
  if ($$self.$$.dirty & /*$container_height, $scroll_height*/
13348
- 49152) {
13382
+ 98304) {
13349
13383
  $$invalidate(8, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
13350
13384
  }
13351
13385
  if ($$self.$$.dirty & /*$scroll_height, $container_height*/
13352
- 49152) {
13386
+ 98304) {
13353
13387
  $$invalidate(7, scrollable = $scroll_height + extra_height > $container_height);
13354
13388
  }
13355
13389
  if ($$self.$$.dirty & /*config*/
13356
- 8192) {
13390
+ 16384) {
13357
13391
  $$invalidate(6, placement = config.placement || "left");
13358
13392
  }
13359
13393
  if ($$self.$$.dirty & /*config*/
13360
- 8192) {
13394
+ 16384) {
13361
13395
  $$invalidate(5, items = config.items || default_items);
13362
13396
  }
13363
13397
  if ($$self.$$.dirty & /*config*/
13364
- 8192) {
13398
+ 16384) {
13365
13399
  $$invalidate(4, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
13366
13400
  }
13367
13401
  };
@@ -13376,12 +13410,14 @@ function instance68($$self, $$props, $$invalidate) {
13376
13410
  scrollable,
13377
13411
  computed_height,
13378
13412
  disabled,
13413
+ phase,
13379
13414
  writable2,
13380
13415
  container_height,
13381
13416
  scroll_height,
13382
13417
  config,
13383
13418
  $container_height,
13384
13419
  $scroll_height,
13420
+ $phase,
13385
13421
  $writable,
13386
13422
  input_change_handler
13387
13423
  ];
@@ -13393,7 +13429,7 @@ var Toolbar = class extends SvelteComponent {
13393
13429
  app: 0,
13394
13430
  theme: 1,
13395
13431
  language: 2,
13396
- config: 13
13432
+ config: 14
13397
13433
  });
13398
13434
  }
13399
13435
  };