@netless/fastboard-ui 1.1.2-beta.1 → 1.1.2-beta.11

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
@@ -12169,39 +12169,39 @@ var EraserSize_default = EraserSize;
12169
12169
  // src/components/Toolbar/components/Contents.svelte
12170
12170
  function get_each_context4(ctx, list, i) {
12171
12171
  const child_ctx = ctx.slice();
12172
- child_ctx[57] = list[i];
12172
+ child_ctx[58] = list[i];
12173
12173
  const constants_0 = (
12174
12174
  /*netless_app*/
12175
- child_ctx[57]
12175
+ child_ctx[58]
12176
12176
  );
12177
- child_ctx[58] = constants_0.icon;
12178
- child_ctx[59] = constants_0.label;
12179
- child_ctx[60] = constants_0.kind;
12180
- child_ctx[61] = constants_0.onClick;
12177
+ child_ctx[59] = constants_0.icon;
12178
+ child_ctx[60] = constants_0.label;
12179
+ child_ctx[61] = constants_0.kind;
12180
+ child_ctx[62] = constants_0.onClick;
12181
12181
  const constants_1 = (
12182
12182
  /*$status*/
12183
- child_ctx[25] && /*$status*/
12184
- child_ctx[25][
12183
+ child_ctx[26] && /*$status*/
12184
+ child_ctx[26][
12185
12185
  /*kind*/
12186
- child_ctx[60]
12186
+ child_ctx[61]
12187
12187
  ]
12188
12188
  );
12189
- child_ctx[62] = constants_1;
12189
+ child_ctx[63] = constants_1;
12190
12190
  const constants_2 = function func() {
12191
12191
  return (
12192
12192
  /*func*/
12193
- ctx[53](
12193
+ ctx[54](
12194
12194
  /*onClick*/
12195
- child_ctx[61]
12195
+ child_ctx[62]
12196
12196
  )
12197
12197
  );
12198
12198
  };
12199
- child_ctx[63] = constants_2;
12199
+ child_ctx[64] = constants_2;
12200
12200
  return child_ctx;
12201
12201
  }
12202
12202
  function get_each_context_1(ctx, list, i) {
12203
12203
  const child_ctx = ctx.slice();
12204
- child_ctx[66] = list[i];
12204
+ child_ctx[67] = list[i];
12205
12205
  return child_ctx;
12206
12206
  }
12207
12207
  function create_if_block_23(ctx) {
@@ -12223,7 +12223,7 @@ function create_if_block_23(ctx) {
12223
12223
  button.$on(
12224
12224
  "click",
12225
12225
  /*scroll_up*/
12226
- ctx[27]
12226
+ ctx[28]
12227
12227
  );
12228
12228
  return {
12229
12229
  c() {
@@ -12241,7 +12241,7 @@ function create_if_block_23(ctx) {
12241
12241
  )]) : {};
12242
12242
  if (dirty[0] & /*theme*/
12243
12243
  2 | dirty[2] & /*$$scope*/
12244
- 128) {
12244
+ 256) {
12245
12245
  button_changes.$$scope = { dirty, ctx: ctx2 };
12246
12246
  }
12247
12247
  button.$set(button_changes);
@@ -12318,14 +12318,14 @@ function create_if_block_222(ctx) {
12318
12318
  ),
12319
12319
  content: (
12320
12320
  /*c*/
12321
- ctx[23].laserPointer
12321
+ ctx[24].laserPointer
12322
12322
  )
12323
12323
  }
12324
12324
  });
12325
12325
  laser.$on(
12326
12326
  "click",
12327
12327
  /*laserPointer*/
12328
- ctx[35]
12328
+ ctx[36]
12329
12329
  );
12330
12330
  return {
12331
12331
  c() {
@@ -12350,9 +12350,9 @@ function create_if_block_222(ctx) {
12350
12350
  laser_changes.btn_props = /*btn_props*/
12351
12351
  ctx2[17];
12352
12352
  if (dirty[0] & /*c*/
12353
- 8388608)
12353
+ 16777216)
12354
12354
  laser_changes.content = /*c*/
12355
- ctx2[23].laserPointer;
12355
+ ctx2[24].laserPointer;
12356
12356
  laser.$set(laser_changes);
12357
12357
  },
12358
12358
  i(local) {
@@ -12389,14 +12389,14 @@ function create_if_block_21(ctx) {
12389
12389
  ),
12390
12390
  content: (
12391
12391
  /*c*/
12392
- ctx[23].hand
12392
+ ctx[24].hand
12393
12393
  )
12394
12394
  }
12395
12395
  });
12396
12396
  hand_1.$on(
12397
12397
  "click",
12398
12398
  /*hand*/
12399
- ctx[34]
12399
+ ctx[35]
12400
12400
  );
12401
12401
  return {
12402
12402
  c() {
@@ -12421,9 +12421,9 @@ function create_if_block_21(ctx) {
12421
12421
  hand_1_changes.btn_props = /*btn_props*/
12422
12422
  ctx2[17];
12423
12423
  if (dirty[0] & /*c*/
12424
- 8388608)
12424
+ 16777216)
12425
12425
  hand_1_changes.content = /*c*/
12426
- ctx2[23].hand;
12426
+ ctx2[24].hand;
12427
12427
  hand_1.$set(hand_1_changes);
12428
12428
  },
12429
12429
  i(local) {
@@ -12463,7 +12463,7 @@ function create_if_block_20(ctx) {
12463
12463
  clear_1.$on(
12464
12464
  "click",
12465
12465
  /*clear*/
12466
- ctx[36]
12466
+ ctx[37]
12467
12467
  );
12468
12468
  return {
12469
12469
  c() {
@@ -12527,7 +12527,7 @@ function create_if_block_19(ctx) {
12527
12527
  ),
12528
12528
  content: (
12529
12529
  /*c*/
12530
- ctx[23].eraser
12530
+ ctx[24].eraser
12531
12531
  ),
12532
12532
  menu: (
12533
12533
  /*hasAppliancePlugin*/
@@ -12541,7 +12541,7 @@ function create_if_block_19(ctx) {
12541
12541
  eraser_1.$on(
12542
12542
  "click",
12543
12543
  /*eraser*/
12544
- ctx[33]
12544
+ ctx[34]
12545
12545
  );
12546
12546
  return {
12547
12547
  c() {
@@ -12570,9 +12570,9 @@ function create_if_block_19(ctx) {
12570
12570
  eraser_1_changes.btn_props = /*btn_props*/
12571
12571
  ctx2[17];
12572
12572
  if (dirty[0] & /*c*/
12573
- 8388608)
12573
+ 16777216)
12574
12574
  eraser_1_changes.content = /*c*/
12575
- ctx2[23].eraser;
12575
+ ctx2[24].eraser;
12576
12576
  if (dirty[0] & /*hasAppliancePlugin, eraser_panel*/
12577
12577
  66560)
12578
12578
  eraser_1_changes.menu = /*hasAppliancePlugin*/
@@ -12698,7 +12698,7 @@ function create_if_block_17(ctx) {
12698
12698
  ),
12699
12699
  content: (
12700
12700
  /*c*/
12701
- ctx[23].text
12701
+ ctx[24].text
12702
12702
  ),
12703
12703
  menu: (
12704
12704
  /*text_panel*/
@@ -12709,7 +12709,7 @@ function create_if_block_17(ctx) {
12709
12709
  text_1.$on(
12710
12710
  "click",
12711
12711
  /*text*/
12712
- ctx[32]
12712
+ ctx[33]
12713
12713
  );
12714
12714
  return {
12715
12715
  c() {
@@ -12734,9 +12734,9 @@ function create_if_block_17(ctx) {
12734
12734
  text_1_changes.btn_props = /*btn_props*/
12735
12735
  ctx2[17];
12736
12736
  if (dirty[0] & /*c*/
12737
- 8388608)
12737
+ 16777216)
12738
12738
  text_1_changes.content = /*c*/
12739
- ctx2[23].text;
12739
+ ctx2[24].text;
12740
12740
  if (dirty[0] & /*text_panel*/
12741
12741
  8192)
12742
12742
  text_1_changes.menu = /*text_panel*/
@@ -12781,7 +12781,7 @@ function create_if_block_16(ctx) {
12781
12781
  ),
12782
12782
  content: (
12783
12783
  /*c*/
12784
- ctx[23].pencil
12784
+ ctx[24].pencil
12785
12785
  ),
12786
12786
  menu: (
12787
12787
  /*pencil_panel*/
@@ -12792,7 +12792,7 @@ function create_if_block_16(ctx) {
12792
12792
  pencil_1.$on(
12793
12793
  "click",
12794
12794
  /*pencil*/
12795
- ctx[31]
12795
+ ctx[32]
12796
12796
  );
12797
12797
  return {
12798
12798
  c() {
@@ -12821,9 +12821,9 @@ function create_if_block_16(ctx) {
12821
12821
  pencil_1_changes.btn_props = /*btn_props*/
12822
12822
  ctx2[17];
12823
12823
  if (dirty[0] & /*c*/
12824
- 8388608)
12824
+ 16777216)
12825
12825
  pencil_1_changes.content = /*c*/
12826
- ctx2[23].pencil;
12826
+ ctx2[24].pencil;
12827
12827
  if (dirty[0] & /*pencil_panel*/
12828
12828
  4096)
12829
12829
  pencil_1_changes.menu = /*pencil_panel*/
@@ -12864,14 +12864,14 @@ function create_if_block_15(ctx) {
12864
12864
  ),
12865
12865
  content: (
12866
12866
  /*c*/
12867
- ctx[23].selector
12867
+ ctx[24].selector
12868
12868
  )
12869
12869
  }
12870
12870
  });
12871
12871
  selector_1.$on(
12872
12872
  "click",
12873
12873
  /*selector*/
12874
- ctx[30]
12874
+ ctx[31]
12875
12875
  );
12876
12876
  return {
12877
12877
  c() {
@@ -12896,9 +12896,9 @@ function create_if_block_15(ctx) {
12896
12896
  selector_1_changes.btn_props = /*btn_props*/
12897
12897
  ctx2[17];
12898
12898
  if (dirty[0] & /*c*/
12899
- 8388608)
12899
+ 16777216)
12900
12900
  selector_1_changes.content = /*c*/
12901
- ctx2[23].selector;
12901
+ ctx2[24].selector;
12902
12902
  selector_1.$set(selector_1_changes);
12903
12903
  },
12904
12904
  i(local) {
@@ -12935,14 +12935,14 @@ function create_if_block_14(ctx) {
12935
12935
  ),
12936
12936
  content: (
12937
12937
  /*c*/
12938
- ctx[23].clicker
12938
+ ctx[24].clicker
12939
12939
  )
12940
12940
  }
12941
12941
  });
12942
12942
  clicker_1.$on(
12943
12943
  "click",
12944
12944
  /*clicker*/
12945
- ctx[29]
12945
+ ctx[30]
12946
12946
  );
12947
12947
  return {
12948
12948
  c() {
@@ -12967,9 +12967,9 @@ function create_if_block_14(ctx) {
12967
12967
  clicker_1_changes.btn_props = /*btn_props*/
12968
12968
  ctx2[17];
12969
12969
  if (dirty[0] & /*c*/
12970
- 8388608)
12970
+ 16777216)
12971
12971
  clicker_1_changes.content = /*c*/
12972
- ctx2[23].clicker;
12972
+ ctx2[24].clicker;
12973
12973
  clicker_1.$set(clicker_1_changes);
12974
12974
  },
12975
12975
  i(local) {
@@ -13007,47 +13007,47 @@ function create_each_block_1(ctx) {
13007
13007
  function select_block_type(ctx2, dirty) {
13008
13008
  if (
13009
13009
  /*item*/
13010
- ctx2[66] === "clicker"
13010
+ ctx2[67] === "clicker"
13011
13011
  )
13012
13012
  return 0;
13013
13013
  if (
13014
13014
  /*item*/
13015
- ctx2[66] === "selector"
13015
+ ctx2[67] === "selector"
13016
13016
  )
13017
13017
  return 1;
13018
13018
  if (
13019
13019
  /*item*/
13020
- ctx2[66] === "pencil"
13020
+ ctx2[67] === "pencil"
13021
13021
  )
13022
13022
  return 2;
13023
13023
  if (
13024
13024
  /*item*/
13025
- ctx2[66] === "text"
13025
+ ctx2[67] === "text"
13026
13026
  )
13027
13027
  return 3;
13028
13028
  if (
13029
13029
  /*item*/
13030
- ctx2[66] === "shapes"
13030
+ ctx2[67] === "shapes"
13031
13031
  )
13032
13032
  return 4;
13033
13033
  if (
13034
13034
  /*item*/
13035
- ctx2[66] === "eraser"
13035
+ ctx2[67] === "eraser"
13036
13036
  )
13037
13037
  return 5;
13038
13038
  if (
13039
13039
  /*item*/
13040
- ctx2[66] === "clear"
13040
+ ctx2[67] === "clear"
13041
13041
  )
13042
13042
  return 6;
13043
13043
  if (
13044
13044
  /*item*/
13045
- ctx2[66] === "hand"
13045
+ ctx2[67] === "hand"
13046
13046
  )
13047
13047
  return 7;
13048
13048
  if (
13049
13049
  /*item*/
13050
- ctx2[66] === "laserPointer"
13050
+ ctx2[67] === "laserPointer"
13051
13051
  )
13052
13052
  return 8;
13053
13053
  return -1;
@@ -13184,7 +13184,7 @@ function create_if_block_132(ctx) {
13184
13184
  ]) : {};
13185
13185
  if (dirty[0] & /*theme*/
13186
13186
  2 | dirty[2] & /*$$scope*/
13187
- 128) {
13187
+ 256) {
13188
13188
  button_changes.$$scope = { dirty, ctx: ctx2 };
13189
13189
  }
13190
13190
  button.$set(button_changes);
@@ -13264,7 +13264,7 @@ function create_if_block_122(ctx) {
13264
13264
  button.$on(
13265
13265
  "click",
13266
13266
  /*scroll_down*/
13267
- ctx[28]
13267
+ ctx[29]
13268
13268
  );
13269
13269
  return {
13270
13270
  c() {
@@ -13286,7 +13286,7 @@ function create_if_block_122(ctx) {
13286
13286
  ctx2[3];
13287
13287
  if (dirty[0] & /*theme*/
13288
13288
  2 | dirty[2] & /*$$scope*/
13289
- 128) {
13289
+ 256) {
13290
13290
  button_changes.$$scope = { dirty, ctx: ctx2 };
13291
13291
  }
13292
13292
  button.$set(button_changes);
@@ -13377,12 +13377,14 @@ function create_if_block_52(ctx) {
13377
13377
  const if_blocks_1 = [];
13378
13378
  function select_block_type_2(ctx2, dirty) {
13379
13379
  if (
13380
- /*pencilType*/
13380
+ /*showLaserPen*/
13381
+ ctx2[21] && /*pencilType*/
13381
13382
  ctx2[20] === "laser"
13382
13383
  )
13383
13384
  return 0;
13384
13385
  if (
13385
- /*pencilType*/
13386
+ /*showLaserPen*/
13387
+ ctx2[21] && /*pencilType*/
13386
13388
  ctx2[20] !== "laser"
13387
13389
  )
13388
13390
  return 1;
@@ -13592,7 +13594,7 @@ function create_if_block_11(ctx) {
13592
13594
  ]) : {};
13593
13595
  if (dirty[0] & /*theme*/
13594
13596
  2 | dirty[2] & /*$$scope*/
13595
- 128) {
13597
+ 256) {
13596
13598
  button_changes.$$scope = { dirty, ctx: ctx2 };
13597
13599
  }
13598
13600
  button.$set(button_changes);
@@ -13631,7 +13633,7 @@ function create_if_block_10(ctx) {
13631
13633
  button.$on(
13632
13634
  "click",
13633
13635
  /*usePencil*/
13634
- ctx[37]
13636
+ ctx[38]
13635
13637
  );
13636
13638
  return {
13637
13639
  c() {
@@ -13654,7 +13656,7 @@ function create_if_block_10(ctx) {
13654
13656
  ]) : {};
13655
13657
  if (dirty[0] & /*theme*/
13656
13658
  2 | dirty[2] & /*$$scope*/
13657
- 128) {
13659
+ 256) {
13658
13660
  button_changes.$$scope = { dirty, ctx: ctx2 };
13659
13661
  }
13660
13662
  button.$set(button_changes);
@@ -13771,7 +13773,7 @@ function create_if_block_9(ctx) {
13771
13773
  button.$on(
13772
13774
  "click",
13773
13775
  /*useLaserPen*/
13774
- ctx[38]
13776
+ ctx[39]
13775
13777
  );
13776
13778
  return {
13777
13779
  c() {
@@ -13794,7 +13796,7 @@ function create_if_block_9(ctx) {
13794
13796
  ]) : {};
13795
13797
  if (dirty[0] & /*theme*/
13796
13798
  2 | dirty[2] & /*$$scope*/
13797
- 128) {
13799
+ 256) {
13798
13800
  button_changes.$$scope = { dirty, ctx: ctx2 };
13799
13801
  }
13800
13802
  button.$set(button_changes);
@@ -13851,7 +13853,7 @@ function create_if_block_8(ctx) {
13851
13853
  ]) : {};
13852
13854
  if (dirty[0] & /*theme*/
13853
13855
  2 | dirty[2] & /*$$scope*/
13854
- 128) {
13856
+ 256) {
13855
13857
  button_changes.$$scope = { dirty, ctx: ctx2 };
13856
13858
  }
13857
13859
  button.$set(button_changes);
@@ -13968,7 +13970,7 @@ function create_if_block_7(ctx) {
13968
13970
  button.$on(
13969
13971
  "click",
13970
13972
  /*useMarkPen*/
13971
- ctx[39]
13973
+ ctx[40]
13972
13974
  );
13973
13975
  return {
13974
13976
  c() {
@@ -13991,7 +13993,7 @@ function create_if_block_7(ctx) {
13991
13993
  ]) : {};
13992
13994
  if (dirty[0] & /*theme*/
13993
13995
  2 | dirty[2] & /*$$scope*/
13994
- 128) {
13996
+ 256) {
13995
13997
  button_changes.$$scope = { dirty, ctx: ctx2 };
13996
13998
  }
13997
13999
  button.$set(button_changes);
@@ -14048,7 +14050,7 @@ function create_if_block_6(ctx) {
14048
14050
  ]) : {};
14049
14051
  if (dirty[0] & /*theme*/
14050
14052
  2 | dirty[2] & /*$$scope*/
14051
- 128) {
14053
+ 256) {
14052
14054
  button_changes.$$scope = { dirty, ctx: ctx2 };
14053
14055
  }
14054
14056
  button.$set(button_changes);
@@ -14331,7 +14333,7 @@ function create_if_block_42(ctx) {
14331
14333
  ]) : {};
14332
14334
  if (dirty[0] & /*theme*/
14333
14335
  2 | dirty[2] & /*$$scope*/
14334
- 128) {
14336
+ 256) {
14335
14337
  button_changes.$$scope = { dirty, ctx: ctx2 };
14336
14338
  }
14337
14339
  button.$set(button_changes);
@@ -14370,7 +14372,7 @@ function create_if_block_33(ctx) {
14370
14372
  button.$on(
14371
14373
  "click",
14372
14374
  /*useEraser*/
14373
- ctx[40]
14375
+ ctx[41]
14374
14376
  );
14375
14377
  return {
14376
14378
  c() {
@@ -14393,7 +14395,7 @@ function create_if_block_33(ctx) {
14393
14395
  ]) : {};
14394
14396
  if (dirty[0] & /*theme*/
14395
14397
  2 | dirty[2] & /*$$scope*/
14396
- 128) {
14398
+ 256) {
14397
14399
  button_changes.$$scope = { dirty, ctx: ctx2 };
14398
14400
  }
14399
14401
  button.$set(button_changes);
@@ -14510,7 +14512,7 @@ function create_if_block_24(ctx) {
14510
14512
  button.$on(
14511
14513
  "click",
14512
14514
  /*useEraserBitmap*/
14513
- ctx[41]
14515
+ ctx[42]
14514
14516
  );
14515
14517
  return {
14516
14518
  c() {
@@ -14533,7 +14535,7 @@ function create_if_block_24(ctx) {
14533
14535
  ]) : {};
14534
14536
  if (dirty[0] & /*theme*/
14535
14537
  2 | dirty[2] & /*$$scope*/
14536
- 128) {
14538
+ 256) {
14537
14539
  button_changes.$$scope = { dirty, ctx: ctx2 };
14538
14540
  }
14539
14541
  button.$set(button_changes);
@@ -14590,7 +14592,7 @@ function create_if_block_110(ctx) {
14590
14592
  ]) : {};
14591
14593
  if (dirty[0] & /*theme*/
14592
14594
  2 | dirty[2] & /*$$scope*/
14593
- 128) {
14595
+ 256) {
14594
14596
  button_changes.$$scope = { dirty, ctx: ctx2 };
14595
14597
  }
14596
14598
  button.$set(button_changes);
@@ -14699,7 +14701,7 @@ function create_each_block4(ctx) {
14699
14701
  let span;
14700
14702
  let t1_value = (
14701
14703
  /*label*/
14702
- ctx[59] + ""
14704
+ ctx[60] + ""
14703
14705
  );
14704
14706
  let t1;
14705
14707
  let span_class_value;
@@ -14721,40 +14723,40 @@ function create_each_block4(ctx) {
14721
14723
  attr(img, "class", img_class_value = name5 + "-app-btn-icon " + /*theme*/
14722
14724
  ctx[1]);
14723
14725
  if (!src_url_equal(img.src, img_src_value = /*icon*/
14724
- ctx[58]))
14726
+ ctx[59]))
14725
14727
  attr(img, "src", img_src_value);
14726
14728
  attr(img, "alt", img_alt_value = /*kind*/
14727
- ctx[60]);
14729
+ ctx[61]);
14728
14730
  attr(img, "title", img_title_value = /*label*/
14729
- ctx[59]);
14731
+ ctx[60]);
14730
14732
  attr(span, "class", span_class_value = name5 + "-app-btn-text " + /*theme*/
14731
14733
  ctx[1]);
14732
14734
  attr(button, "class", button_class_value = name5 + "-app-btn " + /*kind*/
14733
- ctx[60] + " " + /*theme*/
14735
+ ctx[61] + " " + /*theme*/
14734
14736
  ctx[1]);
14735
14737
  attr(button, "title", button_title_value = /*label*/
14736
- ctx[59] + /*state*/
14737
- (ctx[62] && /*state*/
14738
- ctx[62].reason ? ": " + /*state*/
14739
- ctx[62].reason : ""));
14738
+ ctx[60] + /*state*/
14739
+ (ctx[63] && /*state*/
14740
+ ctx[63].reason ? ": " + /*state*/
14741
+ ctx[63].reason : ""));
14740
14742
  attr(button, "data-app-kind", button_data_app_kind_value = /*netless_app*/
14741
- ctx[57].kind);
14743
+ ctx[58].kind);
14742
14744
  button.disabled = button_disabled_value = /*state*/
14743
- ctx[62] && /*state*/
14744
- ctx[62].status !== "idle";
14745
+ ctx[63] && /*state*/
14746
+ ctx[63].status !== "idle";
14745
14747
  toggle_class(
14746
14748
  button,
14747
14749
  "is-loading",
14748
14750
  /*state*/
14749
- ctx[62] && /*state*/
14750
- ctx[62].status === "loading"
14751
+ ctx[63] && /*state*/
14752
+ ctx[63].status === "loading"
14751
14753
  );
14752
14754
  toggle_class(
14753
14755
  button,
14754
14756
  "is-failed",
14755
14757
  /*state*/
14756
- ctx[62] && /*state*/
14757
- ctx[62].status === "failed"
14758
+ ctx[63] && /*state*/
14759
+ ctx[63].status === "failed"
14758
14760
  );
14759
14761
  },
14760
14762
  m(target, anchor) {
@@ -14768,9 +14770,9 @@ function create_each_block4(ctx) {
14768
14770
  dispose = listen(button, "click", function() {
14769
14771
  if (is_function(
14770
14772
  /*on_click*/
14771
- ctx[63]
14773
+ ctx[64]
14772
14774
  ))
14773
- ctx[63].apply(this, arguments);
14775
+ ctx[64].apply(this, arguments);
14774
14776
  });
14775
14777
  mounted = true;
14776
14778
  }
@@ -14783,23 +14785,23 @@ function create_each_block4(ctx) {
14783
14785
  attr(img, "class", img_class_value);
14784
14786
  }
14785
14787
  if (dirty[0] & /*$apps*/
14786
- 16777216 && !src_url_equal(img.src, img_src_value = /*icon*/
14787
- ctx[58])) {
14788
+ 33554432 && !src_url_equal(img.src, img_src_value = /*icon*/
14789
+ ctx[59])) {
14788
14790
  attr(img, "src", img_src_value);
14789
14791
  }
14790
14792
  if (dirty[0] & /*$apps*/
14791
- 16777216 && img_alt_value !== (img_alt_value = /*kind*/
14792
- ctx[60])) {
14793
+ 33554432 && img_alt_value !== (img_alt_value = /*kind*/
14794
+ ctx[61])) {
14793
14795
  attr(img, "alt", img_alt_value);
14794
14796
  }
14795
14797
  if (dirty[0] & /*$apps*/
14796
- 16777216 && img_title_value !== (img_title_value = /*label*/
14797
- ctx[59])) {
14798
+ 33554432 && img_title_value !== (img_title_value = /*label*/
14799
+ ctx[60])) {
14798
14800
  attr(img, "title", img_title_value);
14799
14801
  }
14800
14802
  if (dirty[0] & /*$apps*/
14801
- 16777216 && t1_value !== (t1_value = /*label*/
14802
- ctx[59] + ""))
14803
+ 33554432 && t1_value !== (t1_value = /*label*/
14804
+ ctx[60] + ""))
14803
14805
  set_data(t1, t1_value);
14804
14806
  if (dirty[0] & /*theme*/
14805
14807
  2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + /*theme*/
@@ -14807,48 +14809,48 @@ function create_each_block4(ctx) {
14807
14809
  attr(span, "class", span_class_value);
14808
14810
  }
14809
14811
  if (dirty[0] & /*$apps, theme*/
14810
- 16777218 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
14811
- ctx[60] + " " + /*theme*/
14812
+ 33554434 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
14813
+ ctx[61] + " " + /*theme*/
14812
14814
  ctx[1])) {
14813
14815
  attr(button, "class", button_class_value);
14814
14816
  }
14815
14817
  if (dirty[0] & /*$apps, $status*/
14816
- 50331648 && button_title_value !== (button_title_value = /*label*/
14817
- ctx[59] + /*state*/
14818
- (ctx[62] && /*state*/
14819
- ctx[62].reason ? ": " + /*state*/
14820
- ctx[62].reason : ""))) {
14818
+ 100663296 && button_title_value !== (button_title_value = /*label*/
14819
+ ctx[60] + /*state*/
14820
+ (ctx[63] && /*state*/
14821
+ ctx[63].reason ? ": " + /*state*/
14822
+ ctx[63].reason : ""))) {
14821
14823
  attr(button, "title", button_title_value);
14822
14824
  }
14823
14825
  if (dirty[0] & /*$apps*/
14824
- 16777216 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
14825
- ctx[57].kind)) {
14826
+ 33554432 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
14827
+ ctx[58].kind)) {
14826
14828
  attr(button, "data-app-kind", button_data_app_kind_value);
14827
14829
  }
14828
14830
  if (dirty[0] & /*$status, $apps*/
14829
- 50331648 && button_disabled_value !== (button_disabled_value = /*state*/
14830
- ctx[62] && /*state*/
14831
- ctx[62].status !== "idle")) {
14831
+ 100663296 && button_disabled_value !== (button_disabled_value = /*state*/
14832
+ ctx[63] && /*state*/
14833
+ ctx[63].status !== "idle")) {
14832
14834
  button.disabled = button_disabled_value;
14833
14835
  }
14834
14836
  if (dirty[0] & /*$apps, theme, $status, $apps*/
14835
- 50331650) {
14837
+ 100663298) {
14836
14838
  toggle_class(
14837
14839
  button,
14838
14840
  "is-loading",
14839
14841
  /*state*/
14840
- ctx[62] && /*state*/
14841
- ctx[62].status === "loading"
14842
+ ctx[63] && /*state*/
14843
+ ctx[63].status === "loading"
14842
14844
  );
14843
14845
  }
14844
14846
  if (dirty[0] & /*$apps, theme, $status, $apps*/
14845
- 50331650) {
14847
+ 100663298) {
14846
14848
  toggle_class(
14847
14849
  button,
14848
14850
  "is-failed",
14849
14851
  /*state*/
14850
- ctx[62] && /*state*/
14851
- ctx[62].status === "failed"
14852
+ ctx[63] && /*state*/
14853
+ ctx[63].status === "failed"
14852
14854
  );
14853
14855
  }
14854
14856
  },
@@ -15056,7 +15058,7 @@ function create_fragment74(ctx) {
15056
15058
  });
15057
15059
  let each_value = (
15058
15060
  /*$apps*/
15059
- ctx[24]
15061
+ ctx[25]
15060
15062
  );
15061
15063
  let each_blocks = [];
15062
15064
  for (let i = 0; i < each_value.length; i += 1) {
@@ -15136,7 +15138,7 @@ function create_fragment74(ctx) {
15136
15138
  div10,
15137
15139
  "--n",
15138
15140
  /*$apps*/
15139
- ctx[24].length
15141
+ ctx[25].length
15140
15142
  );
15141
15143
  attr(div11, "class", name5 + "-panel-wrapper");
15142
15144
  set_style(div11, "display", "none");
@@ -15169,11 +15171,11 @@ function create_fragment74(ctx) {
15169
15171
  append(div3, div2);
15170
15172
  append(div3, t6);
15171
15173
  mount_component(strokecolor0, div3, null);
15172
- ctx[49](div3);
15174
+ ctx[50](div3);
15173
15175
  append(div11, t7);
15174
15176
  append(div11, div4);
15175
15177
  mount_component(textcolor, div4, null);
15176
- ctx[50](div4);
15178
+ ctx[51](div4);
15177
15179
  append(div11, t8);
15178
15180
  append(div11, div7);
15179
15181
  mount_component(selectshapes, div7, null);
@@ -15185,7 +15187,7 @@ function create_fragment74(ctx) {
15185
15187
  append(div7, div6);
15186
15188
  append(div7, t12);
15187
15189
  mount_component(strokecolor1, div7, null);
15188
- ctx[51](div7);
15190
+ ctx[52](div7);
15189
15191
  append(div11, t13);
15190
15192
  append(div11, div9);
15191
15193
  append(div9, div8);
@@ -15193,7 +15195,7 @@ function create_fragment74(ctx) {
15193
15195
  if_block4.m(div8, null);
15194
15196
  append(div9, t14);
15195
15197
  mount_component(erasersize, div9, null);
15196
- ctx[52](div9);
15198
+ ctx[53](div9);
15197
15199
  append(div11, t15);
15198
15200
  append(div11, div10);
15199
15201
  for (let i = 0; i < each_blocks.length; i += 1) {
@@ -15201,7 +15203,7 @@ function create_fragment74(ctx) {
15201
15203
  each_blocks[i].m(div10, null);
15202
15204
  }
15203
15205
  }
15204
- ctx[54](div10);
15206
+ ctx[55](div10);
15205
15207
  current = true;
15206
15208
  if (!mounted) {
15207
15209
  dispose = [
@@ -15215,7 +15217,7 @@ function create_fragment74(ctx) {
15215
15217
  null,
15216
15218
  div0,
15217
15219
  /*top*/
15218
- ctx[26]
15220
+ ctx[27]
15219
15221
  ))
15220
15222
  ];
15221
15223
  mounted = true;
@@ -15246,9 +15248,9 @@ function create_fragment74(ctx) {
15246
15248
  });
15247
15249
  check_outros();
15248
15250
  }
15249
- if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, selector, pencilType, pencil_panel, text_panel, app, t, shapes_panel, eraserType, hasAppliancePlugin, eraser_panel*/
15250
- 1621064835 | dirty[1] & /*pencil, text, eraser, clear, hand, laserPointer*/
15251
- 63) {
15251
+ if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, pencilType, pencil_panel, text_panel, app, t, shapes_panel, eraserType, hasAppliancePlugin, eraser_panel*/
15252
+ 1092582531 | dirty[1] & /*selector, pencil, text, eraser, clear, hand, laserPointer*/
15253
+ 127) {
15252
15254
  each_value_1 = /*items*/
15253
15255
  ctx2[7];
15254
15256
  let i;
@@ -15487,9 +15489,9 @@ function create_fragment74(ctx) {
15487
15489
  ctx2[3];
15488
15490
  erasersize.$set(erasersize_changes);
15489
15491
  if (dirty[0] & /*$apps, theme, $status, app*/
15490
- 50331651) {
15492
+ 100663299) {
15491
15493
  each_value = /*$apps*/
15492
- ctx2[24];
15494
+ ctx2[25];
15493
15495
  let i;
15494
15496
  for (i = 0; i < each_value.length; i += 1) {
15495
15497
  const child_ctx = get_each_context4(ctx2, each_value, i);
@@ -15507,12 +15509,12 @@ function create_fragment74(ctx) {
15507
15509
  each_blocks.length = each_value.length;
15508
15510
  }
15509
15511
  if (!current || dirty[0] & /*$apps*/
15510
- 16777216) {
15512
+ 33554432) {
15511
15513
  set_style(
15512
15514
  div10,
15513
15515
  "--n",
15514
15516
  /*$apps*/
15515
- ctx2[24].length
15517
+ ctx2[25].length
15516
15518
  );
15517
15519
  }
15518
15520
  },
@@ -15577,19 +15579,19 @@ function create_fragment74(ctx) {
15577
15579
  if_block3.d();
15578
15580
  destroy_component(strokewidth0);
15579
15581
  destroy_component(strokecolor0);
15580
- ctx[49](null);
15581
- destroy_component(textcolor);
15582
15582
  ctx[50](null);
15583
+ destroy_component(textcolor);
15584
+ ctx[51](null);
15583
15585
  destroy_component(selectshapes);
15584
15586
  destroy_component(strokewidth1);
15585
15587
  destroy_component(strokecolor1);
15586
- ctx[51](null);
15588
+ ctx[52](null);
15587
15589
  if (if_block4)
15588
15590
  if_block4.d();
15589
15591
  destroy_component(erasersize);
15590
- ctx[52](null);
15592
+ ctx[53](null);
15591
15593
  destroy_each(each_blocks, detaching);
15592
- ctx[54](null);
15594
+ ctx[55](null);
15593
15595
  mounted = false;
15594
15596
  run_all(dispose);
15595
15597
  }
@@ -15605,17 +15607,18 @@ function instance74($$self, $$props, $$invalidate) {
15605
15607
  let status;
15606
15608
  let max_scroll;
15607
15609
  let hasAppliancePlugin;
15610
+ let showLaserPen;
15608
15611
  let hasUseLaserPen;
15609
15612
  let hasUseMarkPen;
15610
15613
  let pencilType;
15611
15614
  let hasUseEraserBitmap;
15612
15615
  let eraserType;
15613
15616
  let $top;
15614
- let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(47, $memberState = $$value)), memberState);
15615
- let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(48, $scroll_height = $$value)), scroll_height);
15617
+ let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(48, $memberState = $$value)), memberState);
15618
+ let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(49, $scroll_height = $$value)), scroll_height);
15616
15619
  let $apps;
15617
- let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(25, $status = $$value)), status);
15618
- component_subscribe($$self, apps, ($$value) => $$invalidate(24, $apps = $$value));
15620
+ let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(26, $status = $$value)), status);
15621
+ component_subscribe($$self, apps, ($$value) => $$invalidate(25, $apps = $$value));
15619
15622
  $$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
15620
15623
  $$self.$$.on_destroy.push(() => $$unsubscribe_scroll_height());
15621
15624
  $$self.$$.on_destroy.push(() => $$unsubscribe_status());
@@ -15638,7 +15641,7 @@ function instance74($$self, $$props, $$invalidate) {
15638
15641
  let eraser_panel;
15639
15642
  let btn_props;
15640
15643
  let top = writable(0);
15641
- component_subscribe($$self, top, (value) => $$invalidate(56, $top = value));
15644
+ component_subscribe($$self, top, (value) => $$invalidate(57, $top = value));
15642
15645
  function scroll_up() {
15643
15646
  set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
15644
15647
  }
@@ -15784,7 +15787,7 @@ function instance74($$self, $$props, $$invalidate) {
15784
15787
  if ("scroll_height" in $$props2)
15785
15788
  $$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
15786
15789
  if ("computed_height" in $$props2)
15787
- $$invalidate(42, computed_height = $$props2.computed_height);
15790
+ $$invalidate(43, computed_height = $$props2.computed_height);
15788
15791
  if ("scrollable" in $$props2)
15789
15792
  $$invalidate(5, scrollable = $$props2.scrollable);
15790
15793
  if ("placement" in $$props2)
@@ -15797,6 +15800,7 @@ function instance74($$self, $$props, $$invalidate) {
15797
15800
  $$invalidate(9, colors2 = $$props2.colors);
15798
15801
  };
15799
15802
  $$self.$$.update = () => {
15803
+ var _a;
15800
15804
  if ($$self.$$.dirty[0] & /*theme, disabled, placement*/
15801
15805
  74) {
15802
15806
  $$invalidate(17, btn_props = {
@@ -15813,12 +15817,12 @@ function instance74($$self, $$props, $$invalidate) {
15813
15817
  }
15814
15818
  if ($$self.$$.dirty[0] & /*app*/
15815
15819
  1) {
15816
- $$invalidate(46, hotkeys = app == null ? void 0 : app.hotKeys);
15820
+ $$invalidate(47, hotkeys = app == null ? void 0 : app.hotKeys);
15817
15821
  }
15818
15822
  if ($$self.$$.dirty[0] & /*t*/
15819
15823
  2048 | $$self.$$.dirty[1] & /*hotkeys*/
15820
- 32768) {
15821
- $$invalidate(23, c = {
15824
+ 65536) {
15825
+ $$invalidate(24, c = {
15822
15826
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
15823
15827
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
15824
15828
  pencil: tooltip(t.pencil, hotkeys == null ? void 0 : hotkeys.changeToPencil),
@@ -15830,46 +15834,50 @@ function instance74($$self, $$props, $$invalidate) {
15830
15834
  }
15831
15835
  if ($$self.$$.dirty[0] & /*app*/
15832
15836
  1) {
15833
- $$subscribe_memberState($$invalidate(22, memberState = app == null ? void 0 : app.memberState));
15837
+ $$subscribe_memberState($$invalidate(23, memberState = app == null ? void 0 : app.memberState));
15834
15838
  }
15835
15839
  if ($$self.$$.dirty[1] & /*$memberState*/
15836
- 65536) {
15840
+ 131072) {
15837
15841
  $$invalidate(19, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
15838
15842
  }
15839
15843
  if ($$self.$$.dirty[0] & /*app*/
15840
15844
  1) {
15841
- $$subscribe_status($$invalidate(21, status = app == null ? void 0 : app.appsStatus));
15845
+ $$subscribe_status($$invalidate(22, status = app == null ? void 0 : app.appsStatus));
15842
15846
  }
15843
15847
  if ($$self.$$.dirty[0] & /*scrollable*/
15844
15848
  32 | $$self.$$.dirty[1] & /*$scroll_height, computed_height*/
15845
- 133120) {
15849
+ 266240) {
15846
15850
  max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
15847
15851
  }
15848
15852
  if ($$self.$$.dirty[0] & /*app*/
15849
15853
  1) {
15850
15854
  $$invalidate(10, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
15851
15855
  }
15856
+ if ($$self.$$.dirty[0] & /*app*/
15857
+ 1) {
15858
+ $$invalidate(21, showLaserPen = (app == null ? void 0 : app.appliancePlugin) && !((_a = app == null ? void 0 : app.appliancePlugin.currentManager) == null ? void 0 : _a.pluginOptions.extras.useSimple) || false);
15859
+ }
15852
15860
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15853
15861
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15854
- 65536) {
15855
- $$invalidate(45, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
15862
+ 131072) {
15863
+ $$invalidate(46, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
15856
15864
  }
15857
15865
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15858
15866
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15859
- 65536) {
15860
- $$invalidate(44, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
15867
+ 131072) {
15868
+ $$invalidate(45, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
15861
15869
  }
15862
15870
  if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen*/
15863
- 24576) {
15871
+ 49152) {
15864
15872
  $$invalidate(20, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : "pencil");
15865
15873
  }
15866
15874
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15867
15875
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15868
- 65536) {
15869
- $$invalidate(43, hasUseEraserBitmap = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.isLine) === false);
15876
+ 131072) {
15877
+ $$invalidate(44, hasUseEraserBitmap = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.isLine) === false);
15870
15878
  }
15871
15879
  if ($$self.$$.dirty[1] & /*hasUseEraserBitmap*/
15872
- 4096) {
15880
+ 8192) {
15873
15881
  $$invalidate(18, eraserType = hasUseEraserBitmap ? "pencilEraser" : "eraser");
15874
15882
  }
15875
15883
  };
@@ -15895,6 +15903,7 @@ function instance74($$self, $$props, $$invalidate) {
15895
15903
  eraserType,
15896
15904
  appliance,
15897
15905
  pencilType,
15906
+ showLaserPen,
15898
15907
  status,
15899
15908
  memberState,
15900
15909
  c,
@@ -15946,7 +15955,7 @@ var Contents = class extends SvelteComponent {
15946
15955
  language: 2,
15947
15956
  disabled: 3,
15948
15957
  scroll_height: 4,
15949
- computed_height: 42,
15958
+ computed_height: 43,
15950
15959
  scrollable: 5,
15951
15960
  placement: 6,
15952
15961
  items: 7,