@netless/fastboard-ui 0.3.2-canary.4 → 0.3.2

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
@@ -5723,6 +5723,10 @@ var AppsInToolbar = class {
5723
5723
  this._data = this._data.filter((item) => !filter(item));
5724
5724
  this._listeners.forEach((fn) => fn(this._data));
5725
5725
  }
5726
+ clear() {
5727
+ this._data.length = 0;
5728
+ this._listeners.forEach((fn) => fn(this._data));
5729
+ }
5726
5730
  };
5727
5731
  var apps = new AppsInToolbar([
5728
5732
  {
@@ -6786,20 +6790,20 @@ var Shapes_default = Shapes;
6786
6790
  // src/components/Toolbar/components/Contents.svelte
6787
6791
  function get_each_context4(ctx, list, i) {
6788
6792
  const child_ctx = ctx.slice();
6789
- child_ctx[40] = list[i];
6790
- const constants_0 = child_ctx[40];
6791
- child_ctx[41] = constants_0.icon;
6792
- child_ctx[42] = constants_0.label;
6793
- child_ctx[43] = constants_0.kind;
6794
- child_ctx[44] = constants_0.onClick;
6795
- const constants_1 = child_ctx[19] && child_ctx[19][child_ctx[43]];
6796
- child_ctx[45] = constants_1;
6793
+ child_ctx[41] = list[i];
6794
+ const constants_0 = child_ctx[41];
6795
+ child_ctx[42] = constants_0.icon;
6796
+ child_ctx[43] = constants_0.label;
6797
+ child_ctx[44] = constants_0.kind;
6798
+ child_ctx[45] = constants_0.onClick;
6799
+ const constants_1 = child_ctx[20] && child_ctx[20][child_ctx[44]];
6800
+ child_ctx[46] = constants_1;
6797
6801
  return child_ctx;
6798
6802
  }
6799
- function create_if_block_7(ctx) {
6803
+ function create_if_block_8(ctx) {
6800
6804
  let button;
6801
6805
  let current;
6802
- const button_spread_levels = [{ class: "scroll-up" }, ctx[14]];
6806
+ const button_spread_levels = [{ class: "scroll-up" }, ctx[15]];
6803
6807
  let button_props = {
6804
6808
  $$slots: { default: [create_default_slot_9] },
6805
6809
  $$scope: { ctx }
@@ -6808,7 +6812,7 @@ function create_if_block_7(ctx) {
6808
6812
  button_props = assign(button_props, button_spread_levels[i]);
6809
6813
  }
6810
6814
  button = new Button_default({ props: button_props });
6811
- button.$on("click", ctx[21]);
6815
+ button.$on("click", ctx[22]);
6812
6816
  return {
6813
6817
  c() {
6814
6818
  create_component(button.$$.fragment);
@@ -6818,8 +6822,8 @@ function create_if_block_7(ctx) {
6818
6822
  current = true;
6819
6823
  },
6820
6824
  p(ctx2, dirty) {
6821
- const button_changes = dirty[0] & 16384 ? get_spread_update(button_spread_levels, [button_spread_levels[0], get_spread_object(ctx2[14])]) : {};
6822
- if (dirty[0] & 2 | dirty[1] & 131072) {
6825
+ const button_changes = dirty[0] & 32768 ? get_spread_update(button_spread_levels, [button_spread_levels[0], get_spread_object(ctx2[15])]) : {};
6826
+ if (dirty[0] & 2 | dirty[1] & 262144) {
6823
6827
  button_changes.$$scope = { dirty, ctx: ctx2 };
6824
6828
  }
6825
6829
  button.$set(button_changes);
@@ -6905,7 +6909,7 @@ function create_else_block_5(ctx) {
6905
6909
  }
6906
6910
  };
6907
6911
  }
6908
- function create_if_block_6(ctx) {
6912
+ function create_if_block_7(ctx) {
6909
6913
  let icons_clickfilled;
6910
6914
  let current;
6911
6915
  icons_clickfilled = new Icons_default.ClickFilled({
@@ -6945,10 +6949,10 @@ function create_default_slot_8(ctx) {
6945
6949
  let if_block;
6946
6950
  let if_block_anchor;
6947
6951
  let current;
6948
- const if_block_creators = [create_if_block_6, create_else_block_5];
6952
+ const if_block_creators = [create_if_block_7, create_else_block_5];
6949
6953
  const if_blocks = [];
6950
6954
  function select_block_type(ctx2, dirty) {
6951
- if (ctx2[7] === "clicker")
6955
+ if (ctx2[8] === "clicker")
6952
6956
  return 0;
6953
6957
  return 1;
6954
6958
  }
@@ -7036,7 +7040,7 @@ function create_else_block_4(ctx) {
7036
7040
  }
7037
7041
  };
7038
7042
  }
7039
- function create_if_block_5(ctx) {
7043
+ function create_if_block_6(ctx) {
7040
7044
  let icons_selectorfilled;
7041
7045
  let current;
7042
7046
  icons_selectorfilled = new Icons_default.SelectorFilled({
@@ -7076,10 +7080,10 @@ function create_default_slot_7(ctx) {
7076
7080
  let if_block;
7077
7081
  let if_block_anchor;
7078
7082
  let current;
7079
- const if_block_creators = [create_if_block_5, create_else_block_4];
7083
+ const if_block_creators = [create_if_block_6, create_else_block_4];
7080
7084
  const if_blocks = [];
7081
7085
  function select_block_type_1(ctx2, dirty) {
7082
- if (ctx2[7] === "selector")
7086
+ if (ctx2[8] === "selector")
7083
7087
  return 0;
7084
7088
  return 1;
7085
7089
  }
@@ -7167,7 +7171,7 @@ function create_else_block_3(ctx) {
7167
7171
  }
7168
7172
  };
7169
7173
  }
7170
- function create_if_block_4(ctx) {
7174
+ function create_if_block_5(ctx) {
7171
7175
  let icons_pencilfilled;
7172
7176
  let current;
7173
7177
  icons_pencilfilled = new Icons_default.PencilFilled({
@@ -7207,10 +7211,10 @@ function create_default_slot_6(ctx) {
7207
7211
  let if_block;
7208
7212
  let if_block_anchor;
7209
7213
  let current;
7210
- const if_block_creators = [create_if_block_4, create_else_block_3];
7214
+ const if_block_creators = [create_if_block_5, create_else_block_3];
7211
7215
  const if_blocks = [];
7212
7216
  function select_block_type_2(ctx2, dirty) {
7213
- if (ctx2[7] === "pencil")
7217
+ if (ctx2[8] === "pencil")
7214
7218
  return 0;
7215
7219
  return 1;
7216
7220
  }
@@ -7298,7 +7302,7 @@ function create_else_block_2(ctx) {
7298
7302
  }
7299
7303
  };
7300
7304
  }
7301
- function create_if_block_3(ctx) {
7305
+ function create_if_block_4(ctx) {
7302
7306
  let icons_textfilled;
7303
7307
  let current;
7304
7308
  icons_textfilled = new Icons_default.TextFilled({
@@ -7338,10 +7342,10 @@ function create_default_slot_53(ctx) {
7338
7342
  let if_block;
7339
7343
  let if_block_anchor;
7340
7344
  let current;
7341
- const if_block_creators = [create_if_block_3, create_else_block_2];
7345
+ const if_block_creators = [create_if_block_4, create_else_block_2];
7342
7346
  const if_blocks = [];
7343
7347
  function select_block_type_3(ctx2, dirty) {
7344
- if (ctx2[7] === "text")
7348
+ if (ctx2[8] === "text")
7345
7349
  return 0;
7346
7350
  return 1;
7347
7351
  }
@@ -7400,7 +7404,7 @@ function create_else_block_12(ctx) {
7400
7404
  let switch_instance;
7401
7405
  let switch_instance_anchor;
7402
7406
  let current;
7403
- var switch_value = shapesIcon[ctx[9]];
7407
+ var switch_value = shapesIcon[ctx[10]];
7404
7408
  function switch_props(ctx2) {
7405
7409
  return { props: { theme: ctx2[1] } };
7406
7410
  }
@@ -7424,7 +7428,7 @@ function create_else_block_12(ctx) {
7424
7428
  const switch_instance_changes = {};
7425
7429
  if (dirty[0] & 2)
7426
7430
  switch_instance_changes.theme = ctx2[1];
7427
- if (switch_value !== (switch_value = shapesIcon[ctx2[9]])) {
7431
+ if (switch_value !== (switch_value = shapesIcon[ctx2[10]])) {
7428
7432
  if (switch_instance) {
7429
7433
  group_outros();
7430
7434
  const old_component = switch_instance;
@@ -7465,11 +7469,11 @@ function create_else_block_12(ctx) {
7465
7469
  }
7466
7470
  };
7467
7471
  }
7468
- function create_if_block_2(ctx) {
7472
+ function create_if_block_3(ctx) {
7469
7473
  let switch_instance;
7470
7474
  let switch_instance_anchor;
7471
7475
  let current;
7472
- var switch_value = shapesIconActive[ctx[9]];
7476
+ var switch_value = shapesIconActive[ctx[10]];
7473
7477
  function switch_props(ctx2) {
7474
7478
  return {
7475
7479
  props: { theme: ctx2[1], active: true }
@@ -7495,7 +7499,7 @@ function create_if_block_2(ctx) {
7495
7499
  const switch_instance_changes = {};
7496
7500
  if (dirty[0] & 2)
7497
7501
  switch_instance_changes.theme = ctx2[1];
7498
- if (switch_value !== (switch_value = shapesIconActive[ctx2[9]])) {
7502
+ if (switch_value !== (switch_value = shapesIconActive[ctx2[10]])) {
7499
7503
  if (switch_instance) {
7500
7504
  group_outros();
7501
7505
  const old_component = switch_instance;
@@ -7541,10 +7545,10 @@ function create_default_slot_43(ctx) {
7541
7545
  let if_block;
7542
7546
  let if_block_anchor;
7543
7547
  let current;
7544
- const if_block_creators = [create_if_block_2, create_else_block_12];
7548
+ const if_block_creators = [create_if_block_3, create_else_block_12];
7545
7549
  const if_blocks = [];
7546
7550
  function select_block_type_4(ctx2, dirty) {
7547
- if (ctx2[7] === ctx2[9] || ctx2[7] === "shape" && ctx2[6] === ctx2[9])
7551
+ if (ctx2[8] === ctx2[10] || ctx2[8] === "shape" && ctx2[7] === ctx2[10])
7548
7552
  return 0;
7549
7553
  return 1;
7550
7554
  }
@@ -7632,7 +7636,7 @@ function create_else_block6(ctx) {
7632
7636
  }
7633
7637
  };
7634
7638
  }
7635
- function create_if_block_12(ctx) {
7639
+ function create_if_block_2(ctx) {
7636
7640
  let icons_eraserfilled;
7637
7641
  let current;
7638
7642
  icons_eraserfilled = new Icons_default.EraserFilled({
@@ -7672,10 +7676,10 @@ function create_default_slot_34(ctx) {
7672
7676
  let if_block;
7673
7677
  let if_block_anchor;
7674
7678
  let current;
7675
- const if_block_creators = [create_if_block_12, create_else_block6];
7679
+ const if_block_creators = [create_if_block_2, create_else_block6];
7676
7680
  const if_blocks = [];
7677
7681
  function select_block_type_5(ctx2, dirty) {
7678
- if (ctx2[7] === "eraser")
7682
+ if (ctx2[8] === "eraser")
7679
7683
  return 0;
7680
7684
  return 1;
7681
7685
  }
@@ -7763,6 +7767,60 @@ function create_default_slot_24(ctx) {
7763
7767
  }
7764
7768
  };
7765
7769
  }
7770
+ function create_if_block_12(ctx) {
7771
+ let button;
7772
+ let current;
7773
+ const button_spread_levels = [
7774
+ { class: "apps" },
7775
+ ctx[15],
7776
+ { content: ctx[9].apps },
7777
+ { menu: ctx[14] },
7778
+ { menu_placement: "right-end" }
7779
+ ];
7780
+ let button_props = {
7781
+ $$slots: { default: [create_default_slot_14] },
7782
+ $$scope: { ctx }
7783
+ };
7784
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
7785
+ button_props = assign(button_props, button_spread_levels[i]);
7786
+ }
7787
+ button = new Button_default({ props: button_props });
7788
+ return {
7789
+ c() {
7790
+ create_component(button.$$.fragment);
7791
+ },
7792
+ m(target, anchor) {
7793
+ mount_component(button, target, anchor);
7794
+ current = true;
7795
+ },
7796
+ p(ctx2, dirty) {
7797
+ const button_changes = dirty[0] & 49664 ? get_spread_update(button_spread_levels, [
7798
+ button_spread_levels[0],
7799
+ dirty[0] & 32768 && get_spread_object(ctx2[15]),
7800
+ dirty[0] & 512 && { content: ctx2[9].apps },
7801
+ dirty[0] & 16384 && { menu: ctx2[14] },
7802
+ button_spread_levels[4]
7803
+ ]) : {};
7804
+ if (dirty[0] & 2 | dirty[1] & 262144) {
7805
+ button_changes.$$scope = { dirty, ctx: ctx2 };
7806
+ }
7807
+ button.$set(button_changes);
7808
+ },
7809
+ i(local) {
7810
+ if (current)
7811
+ return;
7812
+ transition_in(button.$$.fragment, local);
7813
+ current = true;
7814
+ },
7815
+ o(local) {
7816
+ transition_out(button.$$.fragment, local);
7817
+ current = false;
7818
+ },
7819
+ d(detaching) {
7820
+ destroy_component(button, detaching);
7821
+ }
7822
+ };
7823
+ }
7766
7824
  function create_default_slot_14(ctx) {
7767
7825
  let icons_apps;
7768
7826
  let current;
@@ -7809,7 +7867,7 @@ function create_if_block6(ctx) {
7809
7867
  $$scope: { ctx }
7810
7868
  }
7811
7869
  });
7812
- button.$on("click", ctx[22]);
7870
+ button.$on("click", ctx[23]);
7813
7871
  return {
7814
7872
  c() {
7815
7873
  create_component(button.$$.fragment);
@@ -7824,7 +7882,7 @@ function create_if_block6(ctx) {
7824
7882
  button_changes.theme = ctx2[1];
7825
7883
  if (dirty[0] & 8)
7826
7884
  button_changes.disabled = ctx2[3];
7827
- if (dirty[0] & 2 | dirty[1] & 131072) {
7885
+ if (dirty[0] & 2 | dirty[1] & 262144) {
7828
7886
  button_changes.$$scope = { dirty, ctx: ctx2 };
7829
7887
  }
7830
7888
  button.$set(button_changes);
@@ -7886,7 +7944,7 @@ function create_each_block4(ctx) {
7886
7944
  let img_title_value;
7887
7945
  let t0;
7888
7946
  let span;
7889
- let t1_value = ctx[42] + "";
7947
+ let t1_value = ctx[43] + "";
7890
7948
  let t1;
7891
7949
  let span_class_value;
7892
7950
  let t2;
@@ -7905,17 +7963,17 @@ function create_each_block4(ctx) {
7905
7963
  t1 = text(t1_value);
7906
7964
  t2 = space();
7907
7965
  attr(img, "class", img_class_value = name5 + "-app-btn-icon " + ctx[1]);
7908
- if (!src_url_equal(img.src, img_src_value = ctx[41]))
7966
+ if (!src_url_equal(img.src, img_src_value = ctx[42]))
7909
7967
  attr(img, "src", img_src_value);
7910
- attr(img, "alt", img_alt_value = ctx[43]);
7911
- attr(img, "title", img_title_value = ctx[42]);
7968
+ attr(img, "alt", img_alt_value = ctx[44]);
7969
+ attr(img, "title", img_title_value = ctx[43]);
7912
7970
  attr(span, "class", span_class_value = name5 + "-app-btn-text " + ctx[1]);
7913
- attr(button, "class", button_class_value = name5 + "-app-btn " + ctx[43] + " " + ctx[1]);
7914
- attr(button, "title", button_title_value = ctx[42] + (ctx[45] && ctx[45].reason ? ": " + ctx[45].reason : ""));
7915
- attr(button, "data-app-kind", button_data_app_kind_value = ctx[40].kind);
7916
- button.disabled = button_disabled_value = ctx[45] && ctx[45].status !== "idle";
7917
- toggle_class(button, "is-loading", ctx[45] && ctx[45].status === "loading");
7918
- toggle_class(button, "is-failed", ctx[45] && ctx[45].status === "failed");
7971
+ attr(button, "class", button_class_value = name5 + "-app-btn " + ctx[44] + " " + ctx[1]);
7972
+ attr(button, "title", button_title_value = ctx[43] + (ctx[46] && ctx[46].reason ? ": " + ctx[46].reason : ""));
7973
+ attr(button, "data-app-kind", button_data_app_kind_value = ctx[41].kind);
7974
+ button.disabled = button_disabled_value = ctx[46] && ctx[46].status !== "idle";
7975
+ toggle_class(button, "is-loading", ctx[46] && ctx[46].status === "loading");
7976
+ toggle_class(button, "is-failed", ctx[46] && ctx[46].status === "failed");
7919
7977
  },
7920
7978
  m(target, anchor) {
7921
7979
  insert(target, button, anchor);
@@ -7926,8 +7984,8 @@ function create_each_block4(ctx) {
7926
7984
  append(button, t2);
7927
7985
  if (!mounted) {
7928
7986
  dispose = listen(button, "click", function() {
7929
- if (is_function(ctx[0] && ctx[44].bind(null, ctx[0])))
7930
- (ctx[0] && ctx[44].bind(null, ctx[0])).apply(this, arguments);
7987
+ if (is_function(ctx[0] && ctx[45].bind(null, ctx[0])))
7988
+ (ctx[0] && ctx[45].bind(null, ctx[0])).apply(this, arguments);
7931
7989
  });
7932
7990
  mounted = true;
7933
7991
  }
@@ -7937,37 +7995,37 @@ function create_each_block4(ctx) {
7937
7995
  if (dirty[0] & 2 && img_class_value !== (img_class_value = name5 + "-app-btn-icon " + ctx[1])) {
7938
7996
  attr(img, "class", img_class_value);
7939
7997
  }
7940
- if (dirty[0] & 262144 && !src_url_equal(img.src, img_src_value = ctx[41])) {
7998
+ if (dirty[0] & 524288 && !src_url_equal(img.src, img_src_value = ctx[42])) {
7941
7999
  attr(img, "src", img_src_value);
7942
8000
  }
7943
- if (dirty[0] & 262144 && img_alt_value !== (img_alt_value = ctx[43])) {
8001
+ if (dirty[0] & 524288 && img_alt_value !== (img_alt_value = ctx[44])) {
7944
8002
  attr(img, "alt", img_alt_value);
7945
8003
  }
7946
- if (dirty[0] & 262144 && img_title_value !== (img_title_value = ctx[42])) {
8004
+ if (dirty[0] & 524288 && img_title_value !== (img_title_value = ctx[43])) {
7947
8005
  attr(img, "title", img_title_value);
7948
8006
  }
7949
- if (dirty[0] & 262144 && t1_value !== (t1_value = ctx[42] + ""))
8007
+ if (dirty[0] & 524288 && t1_value !== (t1_value = ctx[43] + ""))
7950
8008
  set_data(t1, t1_value);
7951
8009
  if (dirty[0] & 2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + ctx[1])) {
7952
8010
  attr(span, "class", span_class_value);
7953
8011
  }
7954
- if (dirty[0] & 262146 && button_class_value !== (button_class_value = name5 + "-app-btn " + ctx[43] + " " + ctx[1])) {
8012
+ if (dirty[0] & 524290 && button_class_value !== (button_class_value = name5 + "-app-btn " + ctx[44] + " " + ctx[1])) {
7955
8013
  attr(button, "class", button_class_value);
7956
8014
  }
7957
- if (dirty[0] & 786432 && button_title_value !== (button_title_value = ctx[42] + (ctx[45] && ctx[45].reason ? ": " + ctx[45].reason : ""))) {
8015
+ if (dirty[0] & 1572864 && button_title_value !== (button_title_value = ctx[43] + (ctx[46] && ctx[46].reason ? ": " + ctx[46].reason : ""))) {
7958
8016
  attr(button, "title", button_title_value);
7959
8017
  }
7960
- if (dirty[0] & 262144 && button_data_app_kind_value !== (button_data_app_kind_value = ctx[40].kind)) {
8018
+ if (dirty[0] & 524288 && button_data_app_kind_value !== (button_data_app_kind_value = ctx[41].kind)) {
7961
8019
  attr(button, "data-app-kind", button_data_app_kind_value);
7962
8020
  }
7963
- if (dirty[0] & 786432 && button_disabled_value !== (button_disabled_value = ctx[45] && ctx[45].status !== "idle")) {
8021
+ if (dirty[0] & 1572864 && button_disabled_value !== (button_disabled_value = ctx[46] && ctx[46].status !== "idle")) {
7964
8022
  button.disabled = button_disabled_value;
7965
8023
  }
7966
- if (dirty[0] & 786434) {
7967
- toggle_class(button, "is-loading", ctx[45] && ctx[45].status === "loading");
8024
+ if (dirty[0] & 1572866) {
8025
+ toggle_class(button, "is-loading", ctx[46] && ctx[46].status === "loading");
7968
8026
  }
7969
- if (dirty[0] & 786434) {
7970
- toggle_class(button, "is-failed", ctx[45] && ctx[45].status === "failed");
8027
+ if (dirty[0] & 1572866) {
8028
+ toggle_class(button, "is-failed", ctx[46] && ctx[46].status === "failed");
7971
8029
  }
7972
8030
  },
7973
8031
  d(detaching) {
@@ -7995,7 +8053,6 @@ function create_fragment55(ctx) {
7995
8053
  let t6;
7996
8054
  let button6;
7997
8055
  let t7;
7998
- let button7;
7999
8056
  let div0_class_value;
8000
8057
  let scrollHeight_action;
8001
8058
  let scrollTop_action;
@@ -8035,11 +8092,11 @@ function create_fragment55(ctx) {
8035
8092
  let current;
8036
8093
  let mounted;
8037
8094
  let dispose;
8038
- let if_block0 = ctx[5] && create_if_block_7(ctx);
8095
+ let if_block0 = ctx[5] && create_if_block_8(ctx);
8039
8096
  const button0_spread_levels = [
8040
8097
  { class: "clicker" },
8041
- ctx[14],
8042
- { content: ctx[17].clicker }
8098
+ ctx[15],
8099
+ { content: ctx[18].clicker }
8043
8100
  ];
8044
8101
  let button0_props = {
8045
8102
  $$slots: { default: [create_default_slot_8] },
@@ -8049,11 +8106,11 @@ function create_fragment55(ctx) {
8049
8106
  button0_props = assign(button0_props, button0_spread_levels[i]);
8050
8107
  }
8051
8108
  button0 = new Button_default({ props: button0_props });
8052
- button0.$on("click", ctx[23]);
8109
+ button0.$on("click", ctx[24]);
8053
8110
  const button1_spread_levels = [
8054
8111
  { class: "selector" },
8055
- ctx[14],
8056
- { content: ctx[17].selector }
8112
+ ctx[15],
8113
+ { content: ctx[18].selector }
8057
8114
  ];
8058
8115
  let button1_props = {
8059
8116
  $$slots: { default: [create_default_slot_7] },
@@ -8063,12 +8120,12 @@ function create_fragment55(ctx) {
8063
8120
  button1_props = assign(button1_props, button1_spread_levels[i]);
8064
8121
  }
8065
8122
  button1 = new Button_default({ props: button1_props });
8066
- button1.$on("click", ctx[24]);
8123
+ button1.$on("click", ctx[25]);
8067
8124
  const button2_spread_levels = [
8068
8125
  { class: "pencil" },
8069
- ctx[14],
8070
- { content: ctx[17].pencil },
8071
- { menu: ctx[10] }
8126
+ ctx[15],
8127
+ { content: ctx[18].pencil },
8128
+ { menu: ctx[11] }
8072
8129
  ];
8073
8130
  let button2_props = {
8074
8131
  $$slots: { default: [create_default_slot_6] },
@@ -8078,12 +8135,12 @@ function create_fragment55(ctx) {
8078
8135
  button2_props = assign(button2_props, button2_spread_levels[i]);
8079
8136
  }
8080
8137
  button2 = new Button_default({ props: button2_props });
8081
- button2.$on("click", ctx[25]);
8138
+ button2.$on("click", ctx[26]);
8082
8139
  const button3_spread_levels = [
8083
8140
  { class: "text" },
8084
- ctx[14],
8085
- { content: ctx[17].text },
8086
- { menu: ctx[11] }
8141
+ ctx[15],
8142
+ { content: ctx[18].text },
8143
+ { menu: ctx[12] }
8087
8144
  ];
8088
8145
  let button3_props = {
8089
8146
  $$slots: { default: [create_default_slot_53] },
@@ -8093,12 +8150,12 @@ function create_fragment55(ctx) {
8093
8150
  button3_props = assign(button3_props, button3_spread_levels[i]);
8094
8151
  }
8095
8152
  button3 = new Button_default({ props: button3_props });
8096
- button3.$on("click", ctx[26]);
8153
+ button3.$on("click", ctx[27]);
8097
8154
  const button4_spread_levels = [
8098
8155
  { class: "shapes" },
8099
- ctx[14],
8100
- { content: ctx[8].shapes },
8101
- { menu: ctx[12] }
8156
+ ctx[15],
8157
+ { content: ctx[9].shapes },
8158
+ { menu: ctx[13] }
8102
8159
  ];
8103
8160
  let button4_props = {
8104
8161
  $$slots: { default: [create_default_slot_43] },
@@ -8108,8 +8165,8 @@ function create_fragment55(ctx) {
8108
8165
  button4_props = assign(button4_props, button4_spread_levels[i]);
8109
8166
  }
8110
8167
  button4 = new Button_default({ props: button4_props });
8111
- button4.$on("click", ctx[27]);
8112
- const button5_spread_levels = [{ class: "eraser" }, ctx[14], { content: ctx[17].eraser }];
8168
+ button4.$on("click", ctx[28]);
8169
+ const button5_spread_levels = [{ class: "eraser" }, ctx[15], { content: ctx[18].eraser }];
8113
8170
  let button5_props = {
8114
8171
  $$slots: { default: [create_default_slot_34] },
8115
8172
  $$scope: { ctx }
@@ -8118,8 +8175,8 @@ function create_fragment55(ctx) {
8118
8175
  button5_props = assign(button5_props, button5_spread_levels[i]);
8119
8176
  }
8120
8177
  button5 = new Button_default({ props: button5_props });
8121
- button5.$on("click", ctx[28]);
8122
- const button6_spread_levels = [{ class: "clear" }, ctx[14], { content: ctx[8].clear }];
8178
+ button5.$on("click", ctx[29]);
8179
+ const button6_spread_levels = [{ class: "clear" }, ctx[15], { content: ctx[9].clear }];
8123
8180
  let button6_props = {
8124
8181
  $$slots: { default: [create_default_slot_24] },
8125
8182
  $$scope: { ctx }
@@ -8128,23 +8185,9 @@ function create_fragment55(ctx) {
8128
8185
  button6_props = assign(button6_props, button6_spread_levels[i]);
8129
8186
  }
8130
8187
  button6 = new Button_default({ props: button6_props });
8131
- button6.$on("click", ctx[29]);
8132
- const button7_spread_levels = [
8133
- { class: "apps" },
8134
- ctx[14],
8135
- { content: ctx[8].apps },
8136
- { menu: ctx[13] },
8137
- { menu_placement: "right-end" }
8138
- ];
8139
- let button7_props = {
8140
- $$slots: { default: [create_default_slot_14] },
8141
- $$scope: { ctx }
8142
- };
8143
- for (let i = 0; i < button7_spread_levels.length; i += 1) {
8144
- button7_props = assign(button7_props, button7_spread_levels[i]);
8145
- }
8146
- button7 = new Button_default({ props: button7_props });
8147
- let if_block1 = ctx[5] && create_if_block6(ctx);
8188
+ button6.$on("click", ctx[30]);
8189
+ let if_block1 = !ctx[6] && create_if_block_12(ctx);
8190
+ let if_block2 = ctx[5] && create_if_block6(ctx);
8148
8191
  strokewidth0 = new StrokeWidth_default({
8149
8192
  props: {
8150
8193
  app: ctx[0],
@@ -8188,7 +8231,7 @@ function create_fragment55(ctx) {
8188
8231
  disabled: ctx[3]
8189
8232
  }
8190
8233
  });
8191
- let each_value = ctx[18];
8234
+ let each_value = ctx[19];
8192
8235
  let each_blocks = [];
8193
8236
  for (let i = 0; i < each_value.length; i += 1) {
8194
8237
  each_blocks[i] = create_each_block4(get_each_context4(ctx, each_value, i));
@@ -8213,10 +8256,11 @@ function create_fragment55(ctx) {
8213
8256
  t6 = space();
8214
8257
  create_component(button6.$$.fragment);
8215
8258
  t7 = space();
8216
- create_component(button7.$$.fragment);
8217
- t8 = space();
8218
8259
  if (if_block1)
8219
8260
  if_block1.c();
8261
+ t8 = space();
8262
+ if (if_block2)
8263
+ if_block2.c();
8220
8264
  t9 = space();
8221
8265
  div8 = element("div");
8222
8266
  div2 = element("div");
@@ -8253,7 +8297,7 @@ function create_fragment55(ctx) {
8253
8297
  attr(div5, "class", div5_class_value = name5 + "-panel-divider");
8254
8298
  attr(div6, "class", div6_class_value = name5 + "-panel shapes");
8255
8299
  attr(div7, "class", div7_class_value = name5 + "-panel apps");
8256
- set_style(div7, "--n", ctx[18].length);
8300
+ set_style(div7, "--n", ctx[19].length);
8257
8301
  attr(div8, "class", div8_class_value = name5 + "-panel-wrapper");
8258
8302
  set_style(div8, "display", "none");
8259
8303
  },
@@ -8276,10 +8320,11 @@ function create_fragment55(ctx) {
8276
8320
  append(div0, t6);
8277
8321
  mount_component(button6, div0, null);
8278
8322
  append(div0, t7);
8279
- mount_component(button7, div0, null);
8280
- insert(target, t8, anchor);
8281
8323
  if (if_block1)
8282
- if_block1.m(target, anchor);
8324
+ if_block1.m(div0, null);
8325
+ insert(target, t8, anchor);
8326
+ if (if_block2)
8327
+ if_block2.m(target, anchor);
8283
8328
  insert(target, t9, anchor);
8284
8329
  insert(target, div8, anchor);
8285
8330
  append(div8, div2);
@@ -8288,11 +8333,11 @@ function create_fragment55(ctx) {
8288
8333
  append(div2, div1);
8289
8334
  append(div2, t11);
8290
8335
  mount_component(strokecolor0, div2, null);
8291
- ctx[34](div2);
8336
+ ctx[35](div2);
8292
8337
  append(div8, t12);
8293
8338
  append(div8, div3);
8294
8339
  mount_component(textcolor, div3, null);
8295
- ctx[35](div3);
8340
+ ctx[36](div3);
8296
8341
  append(div8, t13);
8297
8342
  append(div8, div6);
8298
8343
  mount_component(shapes2, div6, null);
@@ -8304,18 +8349,18 @@ function create_fragment55(ctx) {
8304
8349
  append(div6, div5);
8305
8350
  append(div6, t17);
8306
8351
  mount_component(strokecolor1, div6, null);
8307
- ctx[36](div6);
8352
+ ctx[37](div6);
8308
8353
  append(div8, t18);
8309
8354
  append(div8, div7);
8310
8355
  for (let i = 0; i < each_blocks.length; i += 1) {
8311
8356
  each_blocks[i].m(div7, null);
8312
8357
  }
8313
- ctx[37](div7);
8358
+ ctx[38](div7);
8314
8359
  current = true;
8315
8360
  if (!mounted) {
8316
8361
  dispose = [
8317
8362
  action_destroyer(scrollHeight_action = scrollHeight.call(null, div0, ctx[4])),
8318
- action_destroyer(scrollTop_action = scrollTop.call(null, div0, ctx[20]))
8363
+ action_destroyer(scrollTop_action = scrollTop.call(null, div0, ctx[21]))
8319
8364
  ];
8320
8365
  mounted = true;
8321
8366
  }
@@ -8328,7 +8373,7 @@ function create_fragment55(ctx) {
8328
8373
  transition_in(if_block0, 1);
8329
8374
  }
8330
8375
  } else {
8331
- if_block0 = create_if_block_7(ctx2);
8376
+ if_block0 = create_if_block_8(ctx2);
8332
8377
  if_block0.c();
8333
8378
  transition_in(if_block0, 1);
8334
8379
  if_block0.m(t0.parentNode, t0);
@@ -8340,99 +8385,83 @@ function create_fragment55(ctx) {
8340
8385
  });
8341
8386
  check_outros();
8342
8387
  }
8343
- const button0_changes = dirty[0] & 147456 ? get_spread_update(button0_spread_levels, [
8388
+ const button0_changes = dirty[0] & 294912 ? get_spread_update(button0_spread_levels, [
8344
8389
  button0_spread_levels[0],
8345
- dirty[0] & 16384 && get_spread_object(ctx2[14]),
8346
- dirty[0] & 131072 && { content: ctx2[17].clicker }
8390
+ dirty[0] & 32768 && get_spread_object(ctx2[15]),
8391
+ dirty[0] & 262144 && { content: ctx2[18].clicker }
8347
8392
  ]) : {};
8348
- if (dirty[0] & 130 | dirty[1] & 131072) {
8393
+ if (dirty[0] & 258 | dirty[1] & 262144) {
8349
8394
  button0_changes.$$scope = { dirty, ctx: ctx2 };
8350
8395
  }
8351
8396
  button0.$set(button0_changes);
8352
- const button1_changes = dirty[0] & 147456 ? get_spread_update(button1_spread_levels, [
8397
+ const button1_changes = dirty[0] & 294912 ? get_spread_update(button1_spread_levels, [
8353
8398
  button1_spread_levels[0],
8354
- dirty[0] & 16384 && get_spread_object(ctx2[14]),
8355
- dirty[0] & 131072 && { content: ctx2[17].selector }
8399
+ dirty[0] & 32768 && get_spread_object(ctx2[15]),
8400
+ dirty[0] & 262144 && { content: ctx2[18].selector }
8356
8401
  ]) : {};
8357
- if (dirty[0] & 130 | dirty[1] & 131072) {
8402
+ if (dirty[0] & 258 | dirty[1] & 262144) {
8358
8403
  button1_changes.$$scope = { dirty, ctx: ctx2 };
8359
8404
  }
8360
8405
  button1.$set(button1_changes);
8361
- const button2_changes = dirty[0] & 148480 ? get_spread_update(button2_spread_levels, [
8406
+ const button2_changes = dirty[0] & 296960 ? get_spread_update(button2_spread_levels, [
8362
8407
  button2_spread_levels[0],
8363
- dirty[0] & 16384 && get_spread_object(ctx2[14]),
8364
- dirty[0] & 131072 && { content: ctx2[17].pencil },
8365
- dirty[0] & 1024 && { menu: ctx2[10] }
8408
+ dirty[0] & 32768 && get_spread_object(ctx2[15]),
8409
+ dirty[0] & 262144 && { content: ctx2[18].pencil },
8410
+ dirty[0] & 2048 && { menu: ctx2[11] }
8366
8411
  ]) : {};
8367
- if (dirty[0] & 130 | dirty[1] & 131072) {
8412
+ if (dirty[0] & 258 | dirty[1] & 262144) {
8368
8413
  button2_changes.$$scope = { dirty, ctx: ctx2 };
8369
8414
  }
8370
8415
  button2.$set(button2_changes);
8371
- const button3_changes = dirty[0] & 149504 ? get_spread_update(button3_spread_levels, [
8416
+ const button3_changes = dirty[0] & 299008 ? get_spread_update(button3_spread_levels, [
8372
8417
  button3_spread_levels[0],
8373
- dirty[0] & 16384 && get_spread_object(ctx2[14]),
8374
- dirty[0] & 131072 && { content: ctx2[17].text },
8375
- dirty[0] & 2048 && { menu: ctx2[11] }
8418
+ dirty[0] & 32768 && get_spread_object(ctx2[15]),
8419
+ dirty[0] & 262144 && { content: ctx2[18].text },
8420
+ dirty[0] & 4096 && { menu: ctx2[12] }
8376
8421
  ]) : {};
8377
- if (dirty[0] & 130 | dirty[1] & 131072) {
8422
+ if (dirty[0] & 258 | dirty[1] & 262144) {
8378
8423
  button3_changes.$$scope = { dirty, ctx: ctx2 };
8379
8424
  }
8380
8425
  button3.$set(button3_changes);
8381
- const button4_changes = dirty[0] & 20736 ? get_spread_update(button4_spread_levels, [
8426
+ const button4_changes = dirty[0] & 41472 ? get_spread_update(button4_spread_levels, [
8382
8427
  button4_spread_levels[0],
8383
- dirty[0] & 16384 && get_spread_object(ctx2[14]),
8384
- dirty[0] & 256 && { content: ctx2[8].shapes },
8385
- dirty[0] & 4096 && { menu: ctx2[12] }
8428
+ dirty[0] & 32768 && get_spread_object(ctx2[15]),
8429
+ dirty[0] & 512 && { content: ctx2[9].shapes },
8430
+ dirty[0] & 8192 && { menu: ctx2[13] }
8386
8431
  ]) : {};
8387
- if (dirty[0] & 706 | dirty[1] & 131072) {
8432
+ if (dirty[0] & 1410 | dirty[1] & 262144) {
8388
8433
  button4_changes.$$scope = { dirty, ctx: ctx2 };
8389
8434
  }
8390
8435
  button4.$set(button4_changes);
8391
- const button5_changes = dirty[0] & 147456 ? get_spread_update(button5_spread_levels, [
8436
+ const button5_changes = dirty[0] & 294912 ? get_spread_update(button5_spread_levels, [
8392
8437
  button5_spread_levels[0],
8393
- dirty[0] & 16384 && get_spread_object(ctx2[14]),
8394
- dirty[0] & 131072 && { content: ctx2[17].eraser }
8438
+ dirty[0] & 32768 && get_spread_object(ctx2[15]),
8439
+ dirty[0] & 262144 && { content: ctx2[18].eraser }
8395
8440
  ]) : {};
8396
- if (dirty[0] & 130 | dirty[1] & 131072) {
8441
+ if (dirty[0] & 258 | dirty[1] & 262144) {
8397
8442
  button5_changes.$$scope = { dirty, ctx: ctx2 };
8398
8443
  }
8399
8444
  button5.$set(button5_changes);
8400
- const button6_changes = dirty[0] & 16640 ? get_spread_update(button6_spread_levels, [
8445
+ const button6_changes = dirty[0] & 33280 ? get_spread_update(button6_spread_levels, [
8401
8446
  button6_spread_levels[0],
8402
- dirty[0] & 16384 && get_spread_object(ctx2[14]),
8403
- dirty[0] & 256 && { content: ctx2[8].clear }
8447
+ dirty[0] & 32768 && get_spread_object(ctx2[15]),
8448
+ dirty[0] & 512 && { content: ctx2[9].clear }
8404
8449
  ]) : {};
8405
- if (dirty[0] & 2 | dirty[1] & 131072) {
8450
+ if (dirty[0] & 2 | dirty[1] & 262144) {
8406
8451
  button6_changes.$$scope = { dirty, ctx: ctx2 };
8407
8452
  }
8408
8453
  button6.$set(button6_changes);
8409
- const button7_changes = dirty[0] & 24832 ? get_spread_update(button7_spread_levels, [
8410
- button7_spread_levels[0],
8411
- dirty[0] & 16384 && get_spread_object(ctx2[14]),
8412
- dirty[0] & 256 && { content: ctx2[8].apps },
8413
- dirty[0] & 8192 && { menu: ctx2[13] },
8414
- button7_spread_levels[4]
8415
- ]) : {};
8416
- if (dirty[0] & 2 | dirty[1] & 131072) {
8417
- button7_changes.$$scope = { dirty, ctx: ctx2 };
8418
- }
8419
- button7.$set(button7_changes);
8420
- if (scrollHeight_action && is_function(scrollHeight_action.update) && dirty[0] & 16)
8421
- scrollHeight_action.update.call(null, ctx2[4]);
8422
- if (dirty[0] & 32) {
8423
- toggle_class(div0, "scrollable", ctx2[5]);
8424
- }
8425
- if (ctx2[5]) {
8454
+ if (!ctx2[6]) {
8426
8455
  if (if_block1) {
8427
8456
  if_block1.p(ctx2, dirty);
8428
- if (dirty[0] & 32) {
8457
+ if (dirty[0] & 64) {
8429
8458
  transition_in(if_block1, 1);
8430
8459
  }
8431
8460
  } else {
8432
- if_block1 = create_if_block6(ctx2);
8461
+ if_block1 = create_if_block_12(ctx2);
8433
8462
  if_block1.c();
8434
8463
  transition_in(if_block1, 1);
8435
- if_block1.m(t9.parentNode, t9);
8464
+ if_block1.m(div0, null);
8436
8465
  }
8437
8466
  } else if (if_block1) {
8438
8467
  group_outros();
@@ -8441,6 +8470,30 @@ function create_fragment55(ctx) {
8441
8470
  });
8442
8471
  check_outros();
8443
8472
  }
8473
+ if (scrollHeight_action && is_function(scrollHeight_action.update) && dirty[0] & 16)
8474
+ scrollHeight_action.update.call(null, ctx2[4]);
8475
+ if (dirty[0] & 32) {
8476
+ toggle_class(div0, "scrollable", ctx2[5]);
8477
+ }
8478
+ if (ctx2[5]) {
8479
+ if (if_block2) {
8480
+ if_block2.p(ctx2, dirty);
8481
+ if (dirty[0] & 32) {
8482
+ transition_in(if_block2, 1);
8483
+ }
8484
+ } else {
8485
+ if_block2 = create_if_block6(ctx2);
8486
+ if_block2.c();
8487
+ transition_in(if_block2, 1);
8488
+ if_block2.m(t9.parentNode, t9);
8489
+ }
8490
+ } else if (if_block2) {
8491
+ group_outros();
8492
+ transition_out(if_block2, 1, 1, () => {
8493
+ if_block2 = null;
8494
+ });
8495
+ check_outros();
8496
+ }
8444
8497
  const strokewidth0_changes = {};
8445
8498
  if (dirty[0] & 1)
8446
8499
  strokewidth0_changes.app = ctx2[0];
@@ -8491,8 +8544,8 @@ function create_fragment55(ctx) {
8491
8544
  if (dirty[0] & 8)
8492
8545
  strokecolor1_changes.disabled = ctx2[3];
8493
8546
  strokecolor1.$set(strokecolor1_changes);
8494
- if (dirty[0] & 786435) {
8495
- each_value = ctx2[18];
8547
+ if (dirty[0] & 1572867) {
8548
+ each_value = ctx2[19];
8496
8549
  let i;
8497
8550
  for (i = 0; i < each_value.length; i += 1) {
8498
8551
  const child_ctx = get_each_context4(ctx2, each_value, i);
@@ -8509,8 +8562,8 @@ function create_fragment55(ctx) {
8509
8562
  }
8510
8563
  each_blocks.length = each_value.length;
8511
8564
  }
8512
- if (!current || dirty[0] & 262144) {
8513
- set_style(div7, "--n", ctx2[18].length);
8565
+ if (!current || dirty[0] & 524288) {
8566
+ set_style(div7, "--n", ctx2[19].length);
8514
8567
  }
8515
8568
  },
8516
8569
  i(local) {
@@ -8524,8 +8577,8 @@ function create_fragment55(ctx) {
8524
8577
  transition_in(button4.$$.fragment, local);
8525
8578
  transition_in(button5.$$.fragment, local);
8526
8579
  transition_in(button6.$$.fragment, local);
8527
- transition_in(button7.$$.fragment, local);
8528
8580
  transition_in(if_block1);
8581
+ transition_in(if_block2);
8529
8582
  transition_in(strokewidth0.$$.fragment, local);
8530
8583
  transition_in(strokecolor0.$$.fragment, local);
8531
8584
  transition_in(textcolor.$$.fragment, local);
@@ -8543,8 +8596,8 @@ function create_fragment55(ctx) {
8543
8596
  transition_out(button4.$$.fragment, local);
8544
8597
  transition_out(button5.$$.fragment, local);
8545
8598
  transition_out(button6.$$.fragment, local);
8546
- transition_out(button7.$$.fragment, local);
8547
8599
  transition_out(if_block1);
8600
+ transition_out(if_block2);
8548
8601
  transition_out(strokewidth0.$$.fragment, local);
8549
8602
  transition_out(strokecolor0.$$.fragment, local);
8550
8603
  transition_out(textcolor.$$.fragment, local);
@@ -8567,26 +8620,27 @@ function create_fragment55(ctx) {
8567
8620
  destroy_component(button4);
8568
8621
  destroy_component(button5);
8569
8622
  destroy_component(button6);
8570
- destroy_component(button7);
8623
+ if (if_block1)
8624
+ if_block1.d();
8571
8625
  if (detaching)
8572
8626
  detach(t8);
8573
- if (if_block1)
8574
- if_block1.d(detaching);
8627
+ if (if_block2)
8628
+ if_block2.d(detaching);
8575
8629
  if (detaching)
8576
8630
  detach(t9);
8577
8631
  if (detaching)
8578
8632
  detach(div8);
8579
8633
  destroy_component(strokewidth0);
8580
8634
  destroy_component(strokecolor0);
8581
- ctx[34](null);
8582
- destroy_component(textcolor);
8583
8635
  ctx[35](null);
8636
+ destroy_component(textcolor);
8637
+ ctx[36](null);
8584
8638
  destroy_component(shapes2);
8585
8639
  destroy_component(strokewidth1);
8586
8640
  destroy_component(strokecolor1);
8587
- ctx[36](null);
8588
- destroy_each(each_blocks, detaching);
8589
8641
  ctx[37](null);
8642
+ destroy_each(each_blocks, detaching);
8643
+ ctx[38](null);
8590
8644
  mounted = false;
8591
8645
  run_all(dispose);
8592
8646
  }
@@ -8603,11 +8657,11 @@ function instance55($$self, $$props, $$invalidate) {
8603
8657
  let status;
8604
8658
  let max_scroll;
8605
8659
  let $top;
8606
- let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(32, $scroll_height = $$value)), scroll_height);
8607
- let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(33, $memberState = $$value)), memberState);
8660
+ let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(33, $scroll_height = $$value)), scroll_height);
8661
+ let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(34, $memberState = $$value)), memberState);
8608
8662
  let $apps;
8609
- let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(19, $status = $$value)), status);
8610
- component_subscribe($$self, apps, ($$value) => $$invalidate(18, $apps = $$value));
8663
+ let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(20, $status = $$value)), status);
8664
+ component_subscribe($$self, apps, ($$value) => $$invalidate(19, $apps = $$value));
8611
8665
  $$self.$$.on_destroy.push(() => $$unsubscribe_scroll_height());
8612
8666
  $$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
8613
8667
  $$self.$$.on_destroy.push(() => $$unsubscribe_status());
@@ -8619,6 +8673,7 @@ function instance55($$self, $$props, $$invalidate) {
8619
8673
  $$subscribe_scroll_height();
8620
8674
  let { computed_height = 0 } = $$props;
8621
8675
  let { scrollable = false } = $$props;
8676
+ let { hide_apps = false } = $$props;
8622
8677
  let last_shape = "rectangle";
8623
8678
  let pencil_panel;
8624
8679
  let text_panel;
@@ -8626,7 +8681,7 @@ function instance55($$self, $$props, $$invalidate) {
8626
8681
  let apps_panel;
8627
8682
  let btn_props;
8628
8683
  let top = writable(0);
8629
- component_subscribe($$self, top, (value) => $$invalidate(39, $top = value));
8684
+ component_subscribe($$self, top, (value) => $$invalidate(40, $top = value));
8630
8685
  function scroll_up() {
8631
8686
  set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
8632
8687
  }
@@ -8661,25 +8716,25 @@ function instance55($$self, $$props, $$invalidate) {
8661
8716
  function div2_binding($$value) {
8662
8717
  binding_callbacks[$$value ? "unshift" : "push"](() => {
8663
8718
  pencil_panel = $$value;
8664
- $$invalidate(10, pencil_panel);
8719
+ $$invalidate(11, pencil_panel);
8665
8720
  });
8666
8721
  }
8667
8722
  function div3_binding($$value) {
8668
8723
  binding_callbacks[$$value ? "unshift" : "push"](() => {
8669
8724
  text_panel = $$value;
8670
- $$invalidate(11, text_panel);
8725
+ $$invalidate(12, text_panel);
8671
8726
  });
8672
8727
  }
8673
8728
  function div6_binding($$value) {
8674
8729
  binding_callbacks[$$value ? "unshift" : "push"](() => {
8675
8730
  shapes_panel = $$value;
8676
- $$invalidate(12, shapes_panel);
8731
+ $$invalidate(13, shapes_panel);
8677
8732
  });
8678
8733
  }
8679
8734
  function div7_binding($$value) {
8680
8735
  binding_callbacks[$$value ? "unshift" : "push"](() => {
8681
8736
  apps_panel = $$value;
8682
- $$invalidate(13, apps_panel);
8737
+ $$invalidate(14, apps_panel);
8683
8738
  });
8684
8739
  }
8685
8740
  $$self.$$set = ($$props2) => {
@@ -8694,14 +8749,16 @@ function instance55($$self, $$props, $$invalidate) {
8694
8749
  if ("scroll_height" in $$props2)
8695
8750
  $$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
8696
8751
  if ("computed_height" in $$props2)
8697
- $$invalidate(30, computed_height = $$props2.computed_height);
8752
+ $$invalidate(31, computed_height = $$props2.computed_height);
8698
8753
  if ("scrollable" in $$props2)
8699
8754
  $$invalidate(5, scrollable = $$props2.scrollable);
8755
+ if ("hide_apps" in $$props2)
8756
+ $$invalidate(6, hide_apps = $$props2.hide_apps);
8700
8757
  };
8701
8758
  $$self.$$.update = () => {
8702
8759
  if ($$self.$$.dirty[0] & 10) {
8703
8760
  $:
8704
- $$invalidate(14, btn_props = {
8761
+ $$invalidate(15, btn_props = {
8705
8762
  name: name5,
8706
8763
  theme,
8707
8764
  disabled,
@@ -8710,15 +8767,15 @@ function instance55($$self, $$props, $$invalidate) {
8710
8767
  }
8711
8768
  if ($$self.$$.dirty[0] & 4) {
8712
8769
  $:
8713
- $$invalidate(8, t = i18n4[language]);
8770
+ $$invalidate(9, t = i18n4[language]);
8714
8771
  }
8715
8772
  if ($$self.$$.dirty[0] & 1) {
8716
8773
  $:
8717
- $$invalidate(31, hotkeys = app == null ? void 0 : app.hotKeys);
8774
+ $$invalidate(32, hotkeys = app == null ? void 0 : app.hotKeys);
8718
8775
  }
8719
- if ($$self.$$.dirty[0] & 256 | $$self.$$.dirty[1] & 1) {
8776
+ if ($$self.$$.dirty[0] & 512 | $$self.$$.dirty[1] & 2) {
8720
8777
  $:
8721
- $$invalidate(17, c = {
8778
+ $$invalidate(18, c = {
8722
8779
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
8723
8780
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
8724
8781
  pencil: tooltip(t.pencil, hotkeys == null ? void 0 : hotkeys.changeToPencil),
@@ -8728,29 +8785,29 @@ function instance55($$self, $$props, $$invalidate) {
8728
8785
  }
8729
8786
  if ($$self.$$.dirty[0] & 1) {
8730
8787
  $:
8731
- $$subscribe_memberState($$invalidate(16, memberState = app == null ? void 0 : app.memberState));
8788
+ $$subscribe_memberState($$invalidate(17, memberState = app == null ? void 0 : app.memberState));
8732
8789
  }
8733
- if ($$self.$$.dirty[1] & 4) {
8790
+ if ($$self.$$.dirty[1] & 8) {
8734
8791
  $:
8735
- $$invalidate(7, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
8792
+ $$invalidate(8, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
8736
8793
  }
8737
- if ($$self.$$.dirty[1] & 4) {
8794
+ if ($$self.$$.dirty[1] & 8) {
8738
8795
  $:
8739
- $$invalidate(6, shape = $memberState == null ? void 0 : $memberState.shapeType);
8796
+ $$invalidate(7, shape = $memberState == null ? void 0 : $memberState.shapeType);
8740
8797
  }
8741
8798
  if ($$self.$$.dirty[0] & 1) {
8742
8799
  $:
8743
- $$subscribe_status($$invalidate(15, status = app == null ? void 0 : app.appsStatus));
8800
+ $$subscribe_status($$invalidate(16, status = app == null ? void 0 : app.appsStatus));
8744
8801
  }
8745
- if ($$self.$$.dirty[0] & 192) {
8802
+ if ($$self.$$.dirty[0] & 384) {
8746
8803
  $:
8747
8804
  if (applianceShapes.includes(appliance)) {
8748
- $$invalidate(9, last_shape = appliance);
8805
+ $$invalidate(10, last_shape = appliance);
8749
8806
  } else if (shape) {
8750
- $$invalidate(9, last_shape = shape);
8807
+ $$invalidate(10, last_shape = shape);
8751
8808
  }
8752
8809
  }
8753
- if ($$self.$$.dirty[0] & 1073741856 | $$self.$$.dirty[1] & 2) {
8810
+ if ($$self.$$.dirty[0] & 32 | $$self.$$.dirty[1] & 5) {
8754
8811
  $:
8755
8812
  max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
8756
8813
  }
@@ -8762,6 +8819,7 @@ function instance55($$self, $$props, $$invalidate) {
8762
8819
  disabled,
8763
8820
  scroll_height,
8764
8821
  scrollable,
8822
+ hide_apps,
8765
8823
  shape,
8766
8824
  appliance,
8767
8825
  t,
@@ -8805,8 +8863,9 @@ var Contents = class extends SvelteComponent {
8805
8863
  language: 2,
8806
8864
  disabled: 3,
8807
8865
  scroll_height: 4,
8808
- computed_height: 30,
8809
- scrollable: 5
8866
+ computed_height: 31,
8867
+ scrollable: 5,
8868
+ hide_apps: 6
8810
8869
  }, null, [-1, -1]);
8811
8870
  }
8812
8871
  };
@@ -8898,10 +8957,11 @@ function create_fragment56(ctx) {
8898
8957
  app: ctx[0],
8899
8958
  theme: ctx[1],
8900
8959
  language: ctx[2],
8901
- disabled: ctx[6],
8902
- scroll_height: ctx[9],
8903
- computed_height: ctx[5],
8904
- scrollable: ctx[4]
8960
+ disabled: ctx[7],
8961
+ scroll_height: ctx[10],
8962
+ computed_height: ctx[6],
8963
+ scrollable: ctx[5],
8964
+ hide_apps: ctx[4]
8905
8965
  }
8906
8966
  });
8907
8967
  function select_block_type(ctx2, dirty) {
@@ -8925,7 +8985,7 @@ function create_fragment56(ctx) {
8925
8985
  path1 = svg_element("path");
8926
8986
  if_block.c();
8927
8987
  attr(div0, "class", div0_class_value = name6 + "-contents " + ctx[1]);
8928
- set_style(div0, "height", ctx[4] ? ctx[5] + "px" : "auto", false);
8988
+ set_style(div0, "height", ctx[5] ? ctx[6] + "px" : "auto", false);
8929
8989
  attr(input, "type", "checkbox");
8930
8990
  attr(path0, "fill", "#fff");
8931
8991
  attr(path0, "stroke", "none");
@@ -8957,8 +9017,8 @@ function create_fragment56(ctx) {
8957
9017
  current = true;
8958
9018
  if (!mounted) {
8959
9019
  dispose = [
8960
- listen(input, "change", ctx[13]),
8961
- action_destroyer(height_action = height.call(null, div1, ctx[8]))
9020
+ listen(input, "change", ctx[15]),
9021
+ action_destroyer(height_action = height.call(null, div1, ctx[9]))
8962
9022
  ];
8963
9023
  mounted = true;
8964
9024
  }
@@ -8971,18 +9031,20 @@ function create_fragment56(ctx) {
8971
9031
  contents_changes.theme = ctx2[1];
8972
9032
  if (dirty & 4)
8973
9033
  contents_changes.language = ctx2[2];
9034
+ if (dirty & 128)
9035
+ contents_changes.disabled = ctx2[7];
8974
9036
  if (dirty & 64)
8975
- contents_changes.disabled = ctx2[6];
9037
+ contents_changes.computed_height = ctx2[6];
8976
9038
  if (dirty & 32)
8977
- contents_changes.computed_height = ctx2[5];
9039
+ contents_changes.scrollable = ctx2[5];
8978
9040
  if (dirty & 16)
8979
- contents_changes.scrollable = ctx2[4];
9041
+ contents_changes.hide_apps = ctx2[4];
8980
9042
  contents.$set(contents_changes);
8981
9043
  if (!current || dirty & 2 && div0_class_value !== (div0_class_value = name6 + "-contents " + ctx2[1])) {
8982
9044
  attr(div0, "class", div0_class_value);
8983
9045
  }
8984
- if (dirty & 48) {
8985
- set_style(div0, "height", ctx2[4] ? ctx2[5] + "px" : "auto", false);
9046
+ if (dirty & 96) {
9047
+ set_style(div0, "height", ctx2[5] ? ctx2[6] + "px" : "auto", false);
8986
9048
  }
8987
9049
  if (dirty & 8) {
8988
9050
  input.checked = ctx2[3];
@@ -9033,19 +9095,21 @@ function instance56($$self, $$props, $$invalidate) {
9033
9095
  let disabled;
9034
9096
  let computed_height;
9035
9097
  let scrollable;
9098
+ let hide_apps;
9036
9099
  let $container_height;
9037
9100
  let $scroll_height;
9038
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(12, $writable = $$value)), writable2);
9101
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(14, $writable = $$value)), writable2);
9039
9102
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
9040
9103
  let { app = null } = $$props;
9041
9104
  let { theme = "light" } = $$props;
9042
9105
  let { language = "en" } = $$props;
9106
+ let { config = {} } = $$props;
9043
9107
  const extra_height = (32 + 4 + 4) * 2;
9044
9108
  let collapsed = false;
9045
9109
  let container_height = writable(0);
9046
- component_subscribe($$self, container_height, (value) => $$invalidate(10, $container_height = value));
9110
+ component_subscribe($$self, container_height, (value) => $$invalidate(12, $container_height = value));
9047
9111
  let scroll_height = writable(0);
9048
- component_subscribe($$self, scroll_height, (value) => $$invalidate(11, $scroll_height = value));
9112
+ component_subscribe($$self, scroll_height, (value) => $$invalidate(13, $scroll_height = value));
9049
9113
  function input_change_handler() {
9050
9114
  collapsed = this.checked;
9051
9115
  $$invalidate(3, collapsed);
@@ -9057,23 +9121,30 @@ function instance56($$self, $$props, $$invalidate) {
9057
9121
  $$invalidate(1, theme = $$props2.theme);
9058
9122
  if ("language" in $$props2)
9059
9123
  $$invalidate(2, language = $$props2.language);
9124
+ if ("config" in $$props2)
9125
+ $$invalidate(11, config = $$props2.config);
9060
9126
  };
9061
9127
  $$self.$$.update = () => {
9128
+ var _a;
9062
9129
  if ($$self.$$.dirty & 1) {
9063
9130
  $:
9064
- $$subscribe_writable($$invalidate(7, writable2 = app == null ? void 0 : app.writable));
9131
+ $$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
9065
9132
  }
9066
- if ($$self.$$.dirty & 4096) {
9133
+ if ($$self.$$.dirty & 16384) {
9134
+ $:
9135
+ $$invalidate(7, disabled = !$writable);
9136
+ }
9137
+ if ($$self.$$.dirty & 12288) {
9067
9138
  $:
9068
- $$invalidate(6, disabled = !$writable);
9139
+ $$invalidate(6, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
9069
9140
  }
9070
- if ($$self.$$.dirty & 3072) {
9141
+ if ($$self.$$.dirty & 12288) {
9071
9142
  $:
9072
- $$invalidate(5, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
9143
+ $$invalidate(5, scrollable = $scroll_height + extra_height > $container_height);
9073
9144
  }
9074
- if ($$self.$$.dirty & 3072) {
9145
+ if ($$self.$$.dirty & 2048) {
9075
9146
  $:
9076
- $$invalidate(4, scrollable = $scroll_height + extra_height > $container_height);
9147
+ $$invalidate(4, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
9077
9148
  }
9078
9149
  };
9079
9150
  return [
@@ -9081,12 +9152,14 @@ function instance56($$self, $$props, $$invalidate) {
9081
9152
  theme,
9082
9153
  language,
9083
9154
  collapsed,
9155
+ hide_apps,
9084
9156
  scrollable,
9085
9157
  computed_height,
9086
9158
  disabled,
9087
9159
  writable2,
9088
9160
  container_height,
9089
9161
  scroll_height,
9162
+ config,
9090
9163
  $container_height,
9091
9164
  $scroll_height,
9092
9165
  $writable,
@@ -9096,7 +9169,12 @@ function instance56($$self, $$props, $$invalidate) {
9096
9169
  var Toolbar = class extends SvelteComponent {
9097
9170
  constructor(options) {
9098
9171
  super();
9099
- init(this, options, instance56, create_fragment56, safe_not_equal, { app: 0, theme: 1, language: 2 });
9172
+ init(this, options, instance56, create_fragment56, safe_not_equal, {
9173
+ app: 0,
9174
+ theme: 1,
9175
+ language: 2,
9176
+ config: 11
9177
+ });
9100
9178
  }
9101
9179
  };
9102
9180
  var Toolbar_default = Toolbar;
@@ -10170,7 +10248,8 @@ function create_if_block_32(ctx) {
10170
10248
  props: {
10171
10249
  app: ctx[0],
10172
10250
  theme: ctx[1],
10173
- language: ctx[2]
10251
+ language: ctx[2],
10252
+ config: ctx[3].toolbar
10174
10253
  }
10175
10254
  });
10176
10255
  return {
@@ -10189,6 +10268,8 @@ function create_if_block_32(ctx) {
10189
10268
  toolbar_changes.theme = ctx2[1];
10190
10269
  if (dirty & 4)
10191
10270
  toolbar_changes.language = ctx2[2];
10271
+ if (dirty & 8)
10272
+ toolbar_changes.config = ctx2[3].toolbar;
10192
10273
  toolbar.$set(toolbar_changes);
10193
10274
  },
10194
10275
  i(local) {