@pie-players/pie-assessment-toolkit 0.3.58 → 0.3.59

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.
@@ -4316,6 +4316,11 @@ function create_custom_element(Component, props_definition, slots, exports, shad
4316
4316
  import { ContextConsumer } from "@pie-players/pie-context";
4317
4317
  import { createContext as createContext2 } from "@pie-players/pie-context";
4318
4318
  import { sanitizeSvgIcon } from "@pie-players/pie-players-shared/security";
4319
+ import {
4320
+ approximateZoomFromWidths,
4321
+ computeZoomCompensation,
4322
+ ICON_BUTTON_ZOOM_OPTIONS
4323
+ } from "@pie-players/pie-players-shared/ui/zoom-compensation";
4319
4324
  import {
4320
4325
  createFocusTrap,
4321
4326
  FOCUSABLE_SELECTOR,
@@ -8312,6 +8317,23 @@ function if_block2(node, fn, elseif = false) {
8312
8317
  }, flags22);
8313
8318
  }
8314
8319
  var NAN2 = Symbol("NaN");
8320
+ function key2(node, get_key, render_fn) {
8321
+ if (hydrating2) {
8322
+ hydrate_next2();
8323
+ }
8324
+ var branches = new BranchManager2(node);
8325
+ var legacy = !is_runes2();
8326
+ block2(() => {
8327
+ var key22 = get_key();
8328
+ if (key22 !== key22) {
8329
+ key22 = NAN2;
8330
+ }
8331
+ if (legacy && key22 !== null && typeof key22 === "object") {
8332
+ key22 = {};
8333
+ }
8334
+ branches.ensure(key22, render_fn);
8335
+ });
8336
+ }
8315
8337
  function pause_effects(state22, to_destroy, controlled_anchor) {
8316
8338
  var transitions = [];
8317
8339
  var length = to_destroy.length;
@@ -8359,8 +8381,8 @@ function destroy_effects(state22, to_destroy, remove_dom = true) {
8359
8381
  if (state22.pending.size > 0) {
8360
8382
  preserved_effects = new Set;
8361
8383
  for (const keys of state22.pending.values()) {
8362
- for (const key2 of keys) {
8363
- preserved_effects.add(state22.items.get(key2).e);
8384
+ for (const key22 of keys) {
8385
+ preserved_effects.add(state22.items.get(key22).e);
8364
8386
  }
8365
8387
  }
8366
8388
  }
@@ -8446,14 +8468,14 @@ function each2(node, flags22, get_collection, get_key, render_fn, fallback_fn =
8446
8468
  set_hydrating2(false);
8447
8469
  }
8448
8470
  var value = array[index2];
8449
- var key2 = get_key(value, index2);
8471
+ var key22 = get_key(value, index2);
8450
8472
  if (true_default2) {
8451
8473
  var key_again = get_key(value, index2);
8452
- if (key2 !== key_again) {
8453
- each_key_volatile2(String(index2), String(key2), String(key_again));
8474
+ if (key22 !== key_again) {
8475
+ each_key_volatile2(String(index2), String(key22), String(key_again));
8454
8476
  }
8455
8477
  }
8456
- var item = first_run ? null : items.get(key2);
8478
+ var item = first_run ? null : items.get(key22);
8457
8479
  if (item) {
8458
8480
  if (item.v)
8459
8481
  internal_set2(item.v, value);
@@ -8463,13 +8485,13 @@ function each2(node, flags22, get_collection, get_key, render_fn, fallback_fn =
8463
8485
  batch.unskip_effect(item.e);
8464
8486
  }
8465
8487
  } else {
8466
- item = create_item(items, first_run ? anchor : offscreen_anchor ??= create_text2(), value, key2, index2, render_fn, flags22, get_collection);
8488
+ item = create_item(items, first_run ? anchor : offscreen_anchor ??= create_text2(), value, key22, index2, render_fn, flags22, get_collection);
8467
8489
  if (!first_run) {
8468
8490
  item.e.f |= EFFECT_OFFSCREEN2;
8469
8491
  }
8470
- items.set(key2, item);
8492
+ items.set(key22, item);
8471
8493
  }
8472
- keys.add(key2);
8494
+ keys.add(key22);
8473
8495
  }
8474
8496
  if (length === 0 && fallback_fn && !fallback2) {
8475
8497
  if (first_run) {
@@ -8492,8 +8514,8 @@ function each2(node, flags22, get_collection, get_key, render_fn, fallback_fn =
8492
8514
  if (!first_run) {
8493
8515
  pending3.set(batch, keys);
8494
8516
  if (defer) {
8495
- for (const [key22, item2] of items) {
8496
- if (!keys.has(key22)) {
8517
+ for (const [key3, item2] of items) {
8518
+ if (!keys.has(key3)) {
8497
8519
  batch.skip_effect(item2.e);
8498
8520
  }
8499
8521
  }
@@ -8531,14 +8553,14 @@ function reconcile(state22, array, anchor, flags22, get_key) {
8531
8553
  var matched = [];
8532
8554
  var stashed = [];
8533
8555
  var value;
8534
- var key2;
8556
+ var key22;
8535
8557
  var effect22;
8536
8558
  var i;
8537
8559
  if (is_animated) {
8538
8560
  for (i = 0;i < length; i += 1) {
8539
8561
  value = array[i];
8540
- key2 = get_key(value, i);
8541
- effect22 = items.get(key2).e;
8562
+ key22 = get_key(value, i);
8563
+ effect22 = items.get(key22).e;
8542
8564
  if ((effect22.f & EFFECT_OFFSCREEN2) === 0) {
8543
8565
  effect22.nodes?.a?.measure();
8544
8566
  (to_animate ??= new Set).add(effect22);
@@ -8547,8 +8569,8 @@ function reconcile(state22, array, anchor, flags22, get_key) {
8547
8569
  }
8548
8570
  for (i = 0;i < length; i += 1) {
8549
8571
  value = array[i];
8550
- key2 = get_key(value, i);
8551
- effect22 = items.get(key2).e;
8572
+ key22 = get_key(value, i);
8573
+ effect22 = items.get(key22).e;
8552
8574
  if (state22.outrogroups !== null) {
8553
8575
  for (const group of state22.outrogroups) {
8554
8576
  group.pending.delete(effect22);
@@ -8684,7 +8706,7 @@ function reconcile(state22, array, anchor, flags22, get_key) {
8684
8706
  });
8685
8707
  }
8686
8708
  }
8687
- function create_item(items, anchor, value, key2, index2, render_fn, flags22, get_collection) {
8709
+ function create_item(items, anchor, value, key22, index2, render_fn, flags22, get_collection) {
8688
8710
  var v = (flags22 & EACH_ITEM_REACTIVE2) !== 0 ? (flags22 & EACH_ITEM_IMMUTABLE2) === 0 ? mutable_source2(value, false, false) : source2(value) : null;
8689
8711
  var i = (flags22 & EACH_INDEX_REACTIVE2) !== 0 ? source2(index2) : null;
8690
8712
  if (true_default2 && v) {
@@ -8698,7 +8720,7 @@ function create_item(items, anchor, value, key2, index2, render_fn, flags22, get
8698
8720
  e: branch2(() => {
8699
8721
  render_fn(anchor, v ?? value, i ?? index2, get_collection);
8700
8722
  return () => {
8701
- items.delete(key2);
8723
+ items.delete(key22);
8702
8724
  };
8703
8725
  })
8704
8726
  };
@@ -8734,16 +8756,16 @@ function validate_each_keys(array, key_fn) {
8734
8756
  const keys = new Map;
8735
8757
  const length = array.length;
8736
8758
  for (let i = 0;i < length; i++) {
8737
- const key2 = key_fn(array[i], i);
8738
- if (keys.has(key2)) {
8739
- const a = String(keys.get(key2));
8759
+ const key22 = key_fn(array[i], i);
8760
+ if (keys.has(key22)) {
8761
+ const a = String(keys.get(key22));
8740
8762
  const b = String(i);
8741
- let k = String(key2);
8763
+ let k = String(key22);
8742
8764
  if (k.startsWith("[object "))
8743
8765
  k = null;
8744
8766
  each_key_duplicate2(a, b, k);
8745
8767
  }
8746
- keys.set(key2, i);
8768
+ keys.set(key22, i);
8747
8769
  }
8748
8770
  }
8749
8771
  function check_hash(element2, server_hash, value) {
@@ -8877,13 +8899,13 @@ function to_class2(value, hash22, directives) {
8877
8899
  classname = classname ? classname + " " + hash22 : hash22;
8878
8900
  }
8879
8901
  if (directives) {
8880
- for (var key2 of Object.keys(directives)) {
8881
- if (directives[key2]) {
8882
- classname = classname ? classname + " " + key2 : key2;
8902
+ for (var key22 of Object.keys(directives)) {
8903
+ if (directives[key22]) {
8904
+ classname = classname ? classname + " " + key22 : key22;
8883
8905
  } else if (classname.length) {
8884
- var len = key2.length;
8906
+ var len = key22.length;
8885
8907
  var a = 0;
8886
- while ((a = classname.indexOf(key2, a)) >= 0) {
8908
+ while ((a = classname.indexOf(key22, a)) >= 0) {
8887
8909
  var b = a + len;
8888
8910
  if ((a === 0 || whitespace2.includes(classname[a - 1])) && (b === classname.length || whitespace2.includes(classname[b]))) {
8889
8911
  classname = (a === 0 ? "" : classname.substring(0, a)) + classname.substring(b + 1);
@@ -8896,6 +8918,99 @@ function to_class2(value, hash22, directives) {
8896
8918
  }
8897
8919
  return classname === "" ? null : classname;
8898
8920
  }
8921
+ function append_styles22(styles, important = false) {
8922
+ var separator = important ? " !important;" : ";";
8923
+ var css = "";
8924
+ for (var key22 of Object.keys(styles)) {
8925
+ var value = styles[key22];
8926
+ if (value != null && value !== "") {
8927
+ css += " " + key22 + ": " + value + separator;
8928
+ }
8929
+ }
8930
+ return css;
8931
+ }
8932
+ function to_css_name(name) {
8933
+ if (name[0] !== "-" || name[1] !== "-") {
8934
+ return name.toLowerCase();
8935
+ }
8936
+ return name;
8937
+ }
8938
+ function to_style2(value, styles) {
8939
+ if (styles) {
8940
+ var new_style = "";
8941
+ var normal_styles;
8942
+ var important_styles;
8943
+ if (Array.isArray(styles)) {
8944
+ normal_styles = styles[0];
8945
+ important_styles = styles[1];
8946
+ } else {
8947
+ normal_styles = styles;
8948
+ }
8949
+ if (value) {
8950
+ value = String(value).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
8951
+ var in_str = false;
8952
+ var in_apo = 0;
8953
+ var in_comment = false;
8954
+ var reserved_names = [];
8955
+ if (normal_styles) {
8956
+ reserved_names.push(...Object.keys(normal_styles).map(to_css_name));
8957
+ }
8958
+ if (important_styles) {
8959
+ reserved_names.push(...Object.keys(important_styles).map(to_css_name));
8960
+ }
8961
+ var start_index = 0;
8962
+ var name_index = -1;
8963
+ const len = value.length;
8964
+ for (var i = 0;i < len; i++) {
8965
+ var c = value[i];
8966
+ if (in_comment) {
8967
+ if (c === "/" && value[i - 1] === "*") {
8968
+ in_comment = false;
8969
+ }
8970
+ } else if (in_str) {
8971
+ if (in_str === c) {
8972
+ in_str = false;
8973
+ }
8974
+ } else if (c === "/" && value[i + 1] === "*") {
8975
+ in_comment = true;
8976
+ } else if (c === '"' || c === "'") {
8977
+ in_str = c;
8978
+ } else if (c === "(") {
8979
+ in_apo++;
8980
+ } else if (c === ")") {
8981
+ in_apo--;
8982
+ }
8983
+ if (!in_comment && in_str === false && in_apo === 0) {
8984
+ if (c === ":" && name_index === -1) {
8985
+ name_index = i;
8986
+ } else if (c === ";" || i === len - 1) {
8987
+ if (name_index !== -1) {
8988
+ var name = to_css_name(value.substring(start_index, name_index).trim());
8989
+ if (!reserved_names.includes(name)) {
8990
+ if (c !== ";") {
8991
+ i++;
8992
+ }
8993
+ var property = value.substring(start_index, i).trim();
8994
+ new_style += " " + property + ";";
8995
+ }
8996
+ }
8997
+ start_index = i + 1;
8998
+ name_index = -1;
8999
+ }
9000
+ }
9001
+ }
9002
+ }
9003
+ if (normal_styles) {
9004
+ new_style += append_styles22(normal_styles);
9005
+ }
9006
+ if (important_styles) {
9007
+ new_style += append_styles22(important_styles, true);
9008
+ }
9009
+ new_style = new_style.trim();
9010
+ return new_style === "" ? null : new_style;
9011
+ }
9012
+ return value == null ? null : String(value);
9013
+ }
8899
9014
  function set_class2(dom, is_html, value, hash22, prev_classes, next_classes) {
8900
9015
  var prev = dom[CLASS_CACHE2];
8901
9016
  if (hydrating2 || prev !== value || prev === undefined) {
@@ -8911,15 +9026,49 @@ function set_class2(dom, is_html, value, hash22, prev_classes, next_classes) {
8911
9026
  }
8912
9027
  dom[CLASS_CACHE2] = value;
8913
9028
  } else if (next_classes && prev_classes !== next_classes) {
8914
- for (var key2 in next_classes) {
8915
- var is_present = !!next_classes[key2];
8916
- if (prev_classes == null || is_present !== !!prev_classes[key2]) {
8917
- dom.classList.toggle(key2, is_present);
9029
+ for (var key22 in next_classes) {
9030
+ var is_present = !!next_classes[key22];
9031
+ if (prev_classes == null || is_present !== !!prev_classes[key22]) {
9032
+ dom.classList.toggle(key22, is_present);
8918
9033
  }
8919
9034
  }
8920
9035
  }
8921
9036
  return next_classes;
8922
9037
  }
9038
+ function update_styles(dom, prev = {}, next22, priority) {
9039
+ for (var key22 in next22) {
9040
+ var value = next22[key22];
9041
+ if (prev[key22] !== value) {
9042
+ if (next22[key22] == null) {
9043
+ dom.style.removeProperty(key22);
9044
+ } else {
9045
+ dom.style.setProperty(key22, value, priority);
9046
+ }
9047
+ }
9048
+ }
9049
+ }
9050
+ function set_style2(dom, value, prev_styles, next_styles) {
9051
+ var prev = dom[STYLE_CACHE2];
9052
+ if (hydrating2 || prev !== value) {
9053
+ var next_style_attr = to_style2(value, next_styles);
9054
+ if (!hydrating2 || next_style_attr !== dom.getAttribute("style")) {
9055
+ if (next_style_attr == null) {
9056
+ dom.removeAttribute("style");
9057
+ } else {
9058
+ dom.style.cssText = next_style_attr;
9059
+ }
9060
+ }
9061
+ dom[STYLE_CACHE2] = value;
9062
+ } else if (next_styles) {
9063
+ if (Array.isArray(next_styles)) {
9064
+ update_styles(dom, prev_styles?.[0], next_styles[0]);
9065
+ update_styles(dom, prev_styles?.[1], next_styles[1], "important");
9066
+ } else {
9067
+ update_styles(dom, prev_styles, next_styles);
9068
+ }
9069
+ }
9070
+ return next_styles;
9071
+ }
8923
9072
  var CLASS2 = Symbol("class");
8924
9073
  var STYLE2 = Symbol("style");
8925
9074
  var IS_CUSTOM_ELEMENT2 = Symbol("is custom element");
@@ -8990,9 +9139,9 @@ function get_setters2(element2) {
8990
9139
  var element_proto = Element.prototype;
8991
9140
  while (element_proto !== proto) {
8992
9141
  descriptors = get_descriptors2(proto);
8993
- for (var key2 in descriptors) {
8994
- if (descriptors[key2].set && key2 !== "innerHTML" && key2 !== "textContent" && key2 !== "innerText") {
8995
- setters.push(key2);
9142
+ for (var key22 in descriptors) {
9143
+ if (descriptors[key22].set && key22 !== "innerHTML" && key22 !== "textContent" && key22 !== "innerText") {
9144
+ setters.push(key22);
8996
9145
  }
8997
9146
  }
8998
9147
  proto = get_prototype_of2(proto);
@@ -9096,7 +9245,7 @@ function bind_this2(element_or_component = {}, update2, get_value, get_parts) {
9096
9245
  });
9097
9246
  return element_or_component;
9098
9247
  }
9099
- function prop2(props, key2, flags22, fallback2) {
9248
+ function prop2(props, key22, flags22, fallback2) {
9100
9249
  var runes = !legacy_mode_flag2 || (flags22 & PROPS_IS_RUNES2) !== 0;
9101
9250
  var bindable = (flags22 & PROPS_IS_BINDABLE2) !== 0;
9102
9251
  var lazy = (flags22 & PROPS_IS_LAZY_INITIAL2) !== 0;
@@ -9117,27 +9266,27 @@ function prop2(props, key2, flags22, fallback2) {
9117
9266
  let setter;
9118
9267
  if (bindable) {
9119
9268
  var is_entry_props = STATE_SYMBOL2 in props || LEGACY_PROPS2 in props;
9120
- setter = get_descriptor2(props, key2)?.set ?? (is_entry_props && key2 in props ? (v) => props[key2] = v : undefined);
9269
+ setter = get_descriptor2(props, key22)?.set ?? (is_entry_props && key22 in props ? (v) => props[key22] = v : undefined);
9121
9270
  }
9122
9271
  var initial_value;
9123
9272
  var is_store_sub = false;
9124
9273
  if (bindable) {
9125
- [initial_value, is_store_sub] = capture_store_binding2(() => props[key2]);
9274
+ [initial_value, is_store_sub] = capture_store_binding2(() => props[key22]);
9126
9275
  } else {
9127
- initial_value = props[key2];
9276
+ initial_value = props[key22];
9128
9277
  }
9129
9278
  if (initial_value === undefined && fallback2 !== undefined) {
9130
9279
  initial_value = get_fallback();
9131
9280
  if (setter) {
9132
9281
  if (runes)
9133
- props_invalid_value2(key2);
9282
+ props_invalid_value2(key22);
9134
9283
  setter(initial_value);
9135
9284
  }
9136
9285
  }
9137
9286
  var getter;
9138
9287
  if (runes) {
9139
9288
  getter = () => {
9140
- var value = props[key2];
9289
+ var value = props[key22];
9141
9290
  if (value === undefined)
9142
9291
  return get_fallback();
9143
9292
  fallback_dirty = true;
@@ -9145,7 +9294,7 @@ function prop2(props, key2, flags22, fallback2) {
9145
9294
  };
9146
9295
  } else {
9147
9296
  getter = () => {
9148
- var value = props[key2];
9297
+ var value = props[key22];
9149
9298
  if (value !== undefined) {
9150
9299
  fallback_value = undefined;
9151
9300
  }
@@ -9173,7 +9322,7 @@ function prop2(props, key2, flags22, fallback2) {
9173
9322
  return getter();
9174
9323
  });
9175
9324
  if (true_default2) {
9176
- d.label = key2;
9325
+ d.label = key22;
9177
9326
  }
9178
9327
  if (bindable)
9179
9328
  get22(d);
@@ -9203,9 +9352,9 @@ class Svelte4Component2 {
9203
9352
  #instance;
9204
9353
  constructor(options) {
9205
9354
  var sources = new Map;
9206
- var add_source = (key2, value) => {
9355
+ var add_source = (key22, value) => {
9207
9356
  var s = mutable_source2(value, false, false);
9208
- sources.set(key2, s);
9357
+ sources.set(key22, s);
9209
9358
  return s;
9210
9359
  };
9211
9360
  const props = new Proxy({ ...options.props || {}, $$events: {} }, {
@@ -9236,15 +9385,15 @@ class Svelte4Component2 {
9236
9385
  flushSync2();
9237
9386
  }
9238
9387
  this.#events = props.$$events;
9239
- for (const key2 of Object.keys(this.#instance)) {
9240
- if (key2 === "$set" || key2 === "$destroy" || key2 === "$on")
9388
+ for (const key22 of Object.keys(this.#instance)) {
9389
+ if (key22 === "$set" || key22 === "$destroy" || key22 === "$on")
9241
9390
  continue;
9242
- define_property2(this, key2, {
9391
+ define_property2(this, key22, {
9243
9392
  get() {
9244
- return this.#instance[key2];
9393
+ return this.#instance[key22];
9245
9394
  },
9246
9395
  set(value) {
9247
- this.#instance[key2] = value;
9396
+ this.#instance[key22] = value;
9248
9397
  },
9249
9398
  enumerable: true
9250
9399
  });
@@ -9345,10 +9494,10 @@ if (typeof HTMLElement === "function") {
9345
9494
  this.$$d[name] = get_custom_element_value2(name, attribute.value, this.$$p_d, "toProp");
9346
9495
  }
9347
9496
  }
9348
- for (const key2 in this.$$p_d) {
9349
- if (!(key2 in this.$$d) && this[key2] !== undefined) {
9350
- this.$$d[key2] = this[key2];
9351
- delete this[key2];
9497
+ for (const key22 in this.$$p_d) {
9498
+ if (!(key22 in this.$$d) && this[key22] !== undefined) {
9499
+ this.$$d[key22] = this[key22];
9500
+ delete this[key22];
9352
9501
  }
9353
9502
  }
9354
9503
  this.$$c = createClassComponent2({
@@ -9363,15 +9512,15 @@ if (typeof HTMLElement === "function") {
9363
9512
  this.$$me = effect_root2(() => {
9364
9513
  render_effect2(() => {
9365
9514
  this.$$r = true;
9366
- for (const key2 of object_keys2(this.$$c)) {
9367
- if (!this.$$p_d[key2]?.reflect)
9515
+ for (const key22 of object_keys2(this.$$c)) {
9516
+ if (!this.$$p_d[key22]?.reflect)
9368
9517
  continue;
9369
- this.$$d[key2] = this.$$c[key2];
9370
- const attribute_value = get_custom_element_value2(key2, this.$$d[key2], this.$$p_d, "toAttribute");
9518
+ this.$$d[key22] = this.$$c[key22];
9519
+ const attribute_value = get_custom_element_value2(key22, this.$$d[key22], this.$$p_d, "toAttribute");
9371
9520
  if (attribute_value == null) {
9372
- this.removeAttribute(this.$$p_d[key2].attribute || key2);
9521
+ this.removeAttribute(this.$$p_d[key22].attribute || key22);
9373
9522
  } else {
9374
- this.setAttribute(this.$$p_d[key2].attribute || key2, attribute_value);
9523
+ this.setAttribute(this.$$p_d[key22].attribute || key22, attribute_value);
9375
9524
  }
9376
9525
  }
9377
9526
  this.$$r = false;
@@ -9404,7 +9553,7 @@ if (typeof HTMLElement === "function") {
9404
9553
  });
9405
9554
  }
9406
9555
  $$g_p(attribute_name) {
9407
- return object_keys2(this.$$p_d).find((key2) => this.$$p_d[key2].attribute === attribute_name || !this.$$p_d[key2].attribute && key2.toLowerCase() === attribute_name) || attribute_name;
9556
+ return object_keys2(this.$$p_d).find((key22) => this.$$p_d[key22].attribute === attribute_name || !this.$$p_d[key22].attribute && key22.toLowerCase() === attribute_name) || attribute_name;
9408
9557
  }
9409
9558
  };
9410
9559
  }
@@ -9453,7 +9602,7 @@ function create_custom_element2(Component, props_definition, slots, exports, sha
9453
9602
  this.$$p_d = props_definition;
9454
9603
  }
9455
9604
  static get observedAttributes() {
9456
- return object_keys2(props_definition).map((key2) => (props_definition[key2].attribute || key2).toLowerCase());
9605
+ return object_keys2(props_definition).map((key22) => (props_definition[key22].attribute || key22).toLowerCase());
9457
9606
  }
9458
9607
  };
9459
9608
  object_keys2(props_definition).forEach((prop22) => {
@@ -12010,7 +12159,7 @@ var __pieDefineSafely = (tagName, ctor) => {
12010
12159
  }
12011
12160
  };
12012
12161
  var root_1 = from_html2(`<span class="item-toolbar__element-host svelte-rnx3ie"></span>`);
12013
- var root_2 = from_html2(`<nds-icon-button></nds-icon-button>`, 2);
12162
+ var root_2 = from_html2(`<span class="item-toolbar__nds-button-zoom svelte-rnx3ie"><nds-icon-button></nds-icon-button></span>`, 2);
12014
12163
  var root_3 = from_html2(`<span aria-hidden="true"></span>`);
12015
12164
  var root_4 = from_html2(`<img class="item-toolbar__icon-image svelte-rnx3ie" alt=""/>`);
12016
12165
  var root_5 = from_html2(`<i aria-hidden="true"></i>`);
@@ -12021,7 +12170,10 @@ var root_9 = from_html2(`<div></div>`);
12021
12170
  var root_10 = from_html2(`<div><div class="item-toolbar__tools-row svelte-rnx3ie"><!> <!> <!></div> <!></div>`);
12022
12171
  var $$css = {
12023
12172
  hash: "svelte-rnx3ie",
12024
- code: `.item-toolbar.svelte-rnx3ie {display:flex;flex-direction:column;align-items:flex-end;gap:0;--pie-toolbar-tools-row-height: 2rem;--pie-tts-controls-row-height: 2.875rem;}.item-toolbar__tools-row.svelte-rnx3ie {display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:0.5rem;min-height:var(--pie-toolbar-tools-row-height);}.item-toolbar__controls-row.svelte-rnx3ie {display:flex;align-items:center;justify-content:flex-end;width:100%;min-height:0;height:auto;}.item-toolbar__controls-row--reserve.svelte-rnx3ie {min-height:var(--pie-tts-controls-row-height);height:var(--pie-tts-controls-row-height);}.item-toolbar__controls-row--active.svelte-rnx3ie {min-height:var(--pie-tts-controls-row-height);height:var(--pie-tts-controls-row-height);}.item-toolbar__controls-row--align-start.svelte-rnx3ie {justify-content:flex-start;}.item-toolbar__controls-host.svelte-rnx3ie {display:inline-flex;align-items:center;justify-content:flex-end;width:100%;}.item-toolbar--top.svelte-rnx3ie,
12173
+ code: `.item-toolbar.svelte-rnx3ie {display:flex;flex-direction:column;align-items:flex-end;gap:0;--pie-toolbar-tools-row-height: 2rem;--pie-tts-controls-row-height: 2.875rem;}.item-toolbar__tools-row.svelte-rnx3ie {display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;
12174
+ /* Cap the gap between toolbar items (e.g. TTS play ↔ calculator) at its
12175
+ 200%-zoom size with the same factor the buttons use, so the spacing
12176
+ doesn't keep growing past 200% while the buttons themselves freeze. */gap:calc(0.5rem * var(--pie-toolbar-zoom-comp, 1));min-height:var(--pie-toolbar-tools-row-height);}.item-toolbar__controls-row.svelte-rnx3ie {display:flex;align-items:center;justify-content:flex-end;width:100%;min-height:0;height:auto;}.item-toolbar__controls-row--reserve.svelte-rnx3ie {min-height:var(--pie-tts-controls-row-height);height:var(--pie-tts-controls-row-height);}.item-toolbar__controls-row--active.svelte-rnx3ie {min-height:var(--pie-tts-controls-row-height);height:var(--pie-tts-controls-row-height);}.item-toolbar__controls-row--align-start.svelte-rnx3ie {justify-content:flex-start;}.item-toolbar__controls-host.svelte-rnx3ie {display:inline-flex;align-items:center;justify-content:flex-end;width:100%;}.item-toolbar--top.svelte-rnx3ie,
12025
12177
  .item-toolbar--bottom.svelte-rnx3ie {align-items:flex-end;}.item-toolbar--left.svelte-rnx3ie,
12026
12178
  .item-toolbar--right.svelte-rnx3ie {align-items:stretch;}.item-toolbar--left.svelte-rnx3ie .item-toolbar__tools-row:where(.svelte-rnx3ie),
12027
12179
  .item-toolbar--right.svelte-rnx3ie .item-toolbar__tools-row:where(.svelte-rnx3ie) {flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap;}.item-toolbar--left.svelte-rnx3ie .item-toolbar__controls-row:where(.svelte-rnx3ie),
@@ -12031,7 +12183,9 @@ var $$css = {
12031
12183
  custom property so its light-DOM inner button matches the toolbar's
12032
12184
  md/sm/lg dimensions (32 / 44 / 40 px) without a layout shift. The glyph
12033
12185
  keeps the NDS-native icon size (we render size="small"), so it isn't
12034
- oversized. */.item-toolbar.svelte-rnx3ie nds-icon-button:where(.svelte-rnx3ie) {
12186
+ oversized. */
12187
+ /* Freeze the calculator's header open/close button at its 200%-zoom size
12188
+ (factor is 1 at zoom <= 200%). Zoom on this wrapper, not the host. */.item-toolbar__nds-button-zoom.svelte-rnx3ie {display:inline-flex;zoom:var(--pie-toolbar-zoom-comp, 1);}.item-toolbar.svelte-rnx3ie nds-icon-button:where(.svelte-rnx3ie) {
12035
12189
  /* Host-settable button size per toolbar size (drives the NDS outer button
12036
12190
  via its own --height-32). */--height-32: var(--pie-calculator-button-size, 2rem);
12037
12191
  /* Host-settable accent for the calculator button: the NDS tertiary glyph
@@ -12129,7 +12283,24 @@ function ItemToolBar($$anchor, $$props) {
12129
12283
  let activeToolState = state2(proxy2({}));
12130
12284
  let level = prop2($$props, "level", 7, "item"), scopeId = prop2($$props, "scopeId", 7, ""), itemId = prop2($$props, "itemId", 7, ""), sectionId = prop2($$props, "sectionId", 7, ""), catalogId = prop2($$props, "catalogId", 7, ""), tools = prop2($$props, "tools", 7, "calculator,textToSpeech,answerEliminator"), contentKind = prop2($$props, "contentKind", 7, "assessment-item"), position = prop2($$props, "position", 7, "bottom"), scopeElement = prop2($$props, "scopeElement", 7, null), toolRegistry = prop2($$props, "toolRegistry", 7, null), item = prop2($$props, "item", 7, null), hostButtons = prop2($$props, "hostButtons", 23, () => []), className = prop2($$props, "class", 7, ""), size = prop2($$props, "size", 7, "md"), language = prop2($$props, "language", 7, "en-US");
12131
12285
  let toolbarRootElement = state2(null);
12286
+ function currentCalculatorZoomCompensation() {
12287
+ if (typeof window === "undefined")
12288
+ return 1;
12289
+ return computeZoomCompensation(approximateZoomFromWidths(window.outerWidth, window.innerWidth), ICON_BUTTON_ZOOM_OPTIONS.maxZoom, ICON_BUTTON_ZOOM_OPTIONS.minCompensation);
12290
+ }
12291
+ let calculatorButtonZoomComp = state2(1);
12292
+ user_effect2(() => {
12293
+ if (typeof window === "undefined")
12294
+ return;
12295
+ const update2 = () => {
12296
+ set2(calculatorButtonZoomComp, currentCalculatorZoomCompensation(), true);
12297
+ };
12298
+ update2();
12299
+ window.addEventListener("resize", update2);
12300
+ return () => window.removeEventListener("resize", update2);
12301
+ });
12132
12302
  let runtimeContext = state2(null);
12303
+ const useNdsIcons = user_derived2(() => get22(runtimeContext)?.ndsIcons === true);
12133
12304
  let shellContext = state2(null);
12134
12305
  let moduleLoadVersion = state2(0);
12135
12306
  let policyChangeVersion = state2(0);
@@ -12945,6 +13116,7 @@ function ItemToolBar($$anchor, $$props) {
12945
13116
  shellEl.style.width = `${width}px`;
12946
13117
  shellEl.style.height = `${height}px`;
12947
13118
  shellEl.style.display = currentArgs.active ? "flex" : "none";
13119
+ shellEl.style.setProperty("--pie-tool-shell-zoom-comp", String(currentCalculatorZoomCompensation()));
12948
13120
  };
12949
13121
  const mountContent = () => {
12950
13122
  if (!contentEl)
@@ -13261,7 +13433,8 @@ function ItemToolBar($$anchor, $$props) {
13261
13433
  };
13262
13434
  if (isBrowser && currentArgs.mounted.entry.shell) {
13263
13435
  const isCalculatorShell = currentArgs.mounted.toolId === "calculator";
13264
- if (isCalculatorShell)
13436
+ const useNdsShellIcons = isCalculatorShell && get22(useNdsIcons);
13437
+ if (useNdsShellIcons)
13265
13438
  ensureNdsAssets();
13266
13439
  shellEl = document.createElement("div");
13267
13440
  shellEl.className = "pie-tool-shell";
@@ -13320,7 +13493,7 @@ function ItemToolBar($$anchor, $$props) {
13320
13493
  const appendControl = (label, glyph, iconName, onActivate, faVariant = "fa-regular") => {
13321
13494
  if (!controlsEl)
13322
13495
  return;
13323
- controlsEl.appendChild(isCalculatorShell ? createShellIconButton(label, iconName, onActivate, faVariant) : createShellControlButton(label, glyph, onActivate));
13496
+ controlsEl.appendChild(useNdsShellIcons ? createShellIconButton(label, iconName, onActivate, faVariant) : createShellControlButton(label, glyph, onActivate));
13324
13497
  };
13325
13498
  if (shellConfig?.draggable !== false) {
13326
13499
  appendControl("Move tool left", "←", "chevron-left", () => moveBy(-24, 0));
@@ -13342,12 +13515,13 @@ function ItemToolBar($$anchor, $$props) {
13342
13515
  rightClusterEl.style.display = "inline-flex";
13343
13516
  rightClusterEl.style.alignItems = "center";
13344
13517
  rightClusterEl.style.gap = "6px";
13518
+ rightClusterEl.style.setProperty("zoom", "var(--pie-tool-shell-zoom-comp, 1)");
13345
13519
  rightClusterEl.appendChild(controlsEl);
13346
13520
  headerEl.appendChild(rightClusterEl);
13347
13521
  } else {
13348
13522
  headerEl.appendChild(controlsEl);
13349
13523
  }
13350
- if (isCalculatorShell) {
13524
+ if (useNdsShellIcons) {
13351
13525
  closeButtonEl = createShellIconButton("Close tool", "xmark", closeShell, "fa-regular");
13352
13526
  closeButtonEl.style.display = currentArgs.mounted.entry.shell.closeable === false ? "none" : "inline-block";
13353
13527
  } else {
@@ -13381,7 +13555,7 @@ function ItemToolBar($$anchor, $$props) {
13381
13555
  closeButton.style.cursor = "pointer";
13382
13556
  closeButton.style.display = "inline-flex";
13383
13557
  closeButton.style.alignItems = "center";
13384
- closeButton.style.justifyContent = "center";
13558
+ closeButton.style.justifyItems = "center";
13385
13559
  closeButton.style.width = "28px";
13386
13560
  closeButton.style.height = "28px";
13387
13561
  closeButton.style.padding = "0";
@@ -13738,12 +13912,17 @@ function ItemToolBar($$anchor, $$props) {
13738
13912
  var node_3 = first_child2(fragment_1);
13739
13913
  {
13740
13914
  var consequent = ($$anchor4) => {
13741
- var span = root_1();
13742
- action2(span, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
13743
- mounted: get22(mounted),
13744
- active: get22(renderedToolActiveById)[get22(mounted).toolId] ?? false
13745
- }));
13746
- append2($$anchor4, span);
13915
+ var fragment_2 = comment2();
13916
+ var node_4 = first_child2(fragment_2);
13917
+ key2(node_4, () => get22(useNdsIcons), ($$anchor5) => {
13918
+ var span = root_1();
13919
+ action2(span, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
13920
+ mounted: get22(mounted),
13921
+ active: get22(renderedToolActiveById)[get22(mounted).toolId] ?? false
13922
+ }));
13923
+ append2($$anchor5, span);
13924
+ });
13925
+ append2($$anchor4, fragment_2);
13747
13926
  };
13748
13927
  var alternate = ($$anchor4) => {
13749
13928
  var span_1 = root_1();
@@ -13759,14 +13938,15 @@ function ItemToolBar($$anchor, $$props) {
13759
13938
  }
13760
13939
  append2($$anchor3, fragment_1);
13761
13940
  });
13762
- var node_4 = sibling2(node_2, 2);
13763
- each2(node_4, 17, () => get22(toolbarItems), (item2) => item2.id, ($$anchor3, item2, $$index_1, $$array) => {
13764
- const faIconName = user_derived2(() => isToolbarLinkItem(get22(item2)) ? null : resolveFaIconName(get22(item2)));
13765
- var fragment_2 = comment2();
13766
- var node_5 = first_child2(fragment_2);
13941
+ var node_5 = sibling2(node_2, 2);
13942
+ each2(node_5, 17, () => get22(toolbarItems), (item2) => item2.id, ($$anchor3, item2, $$index_1, $$array) => {
13943
+ const faIconName = user_derived2(() => get22(useNdsIcons) && !isToolbarLinkItem(get22(item2)) ? resolveFaIconName(get22(item2)) : null);
13944
+ var fragment_3 = comment2();
13945
+ var node_6 = first_child2(fragment_3);
13767
13946
  {
13768
13947
  var consequent_1 = ($$anchor4) => {
13769
- var nds_icon_button = root_2();
13948
+ var span_2 = root_2();
13949
+ var nds_icon_button = child2(span_2);
13770
13950
  set_class2(nds_icon_button, 1, "item-toolbar__nds-button svelte-rnx3ie");
13771
13951
  set_custom_element_data2(nds_icon_button, "type", "circle");
13772
13952
  set_custom_element_data2(nds_icon_button, "size", "small");
@@ -13777,25 +13957,26 @@ function ItemToolBar($$anchor, $$props) {
13777
13957
  template_effect2(() => set_custom_element_data2(nds_icon_button, "disabled", get22(item2).disabled));
13778
13958
  action2(nds_icon_button, ($$node) => ndsIconButtonAction?.($$node));
13779
13959
  action2(nds_icon_button, ($$node, $$action_arg) => reflectToggleState?.($$node, $$action_arg), () => isToolbarItemActive(get22(item2)));
13960
+ reset2(span_2);
13780
13961
  delegated2("click", nds_icon_button, function(...$$args) {
13781
13962
  get22(item2).onClick?.apply(this, $$args);
13782
13963
  });
13783
- append2($$anchor4, nds_icon_button);
13964
+ append2($$anchor4, span_2);
13784
13965
  };
13785
13966
  var consequent_6 = ($$anchor4) => {
13786
13967
  var a = root_6();
13787
13968
  let classes_1;
13788
- var node_6 = child2(a);
13969
+ var node_7 = child2(a);
13789
13970
  {
13790
13971
  var consequent_5 = ($$anchor5) => {
13791
- var fragment_3 = comment2();
13792
- var node_7 = first_child2(fragment_3);
13972
+ var fragment_4 = comment2();
13973
+ var node_8 = first_child2(fragment_4);
13793
13974
  {
13794
13975
  var consequent_2 = ($$anchor6) => {
13795
- var span_2 = root_3();
13796
- html2(span_2, () => sanitizeSvgIcon(get22(item2).icon), true);
13797
- reset2(span_2);
13798
- append2($$anchor6, span_2);
13976
+ var span_3 = root_3();
13977
+ html2(span_3, () => sanitizeSvgIcon(get22(item2).icon), true);
13978
+ reset2(span_3);
13979
+ append2($$anchor6, span_3);
13799
13980
  };
13800
13981
  var d = user_derived2(() => isInlineSvgIcon(get22(item2).icon));
13801
13982
  var consequent_3 = ($$anchor6) => {
@@ -13806,30 +13987,30 @@ function ItemToolBar($$anchor, $$props) {
13806
13987
  var d_1 = user_derived2(() => isExternalIconUrl(get22(item2).icon));
13807
13988
  var alternate_2 = ($$anchor6) => {
13808
13989
  const fallbackIcon = user_derived2(() => getFallbackIconSvg(get22(item2).icon));
13809
- var fragment_4 = comment2();
13810
- var node_8 = first_child2(fragment_4);
13990
+ var fragment_5 = comment2();
13991
+ var node_9 = first_child2(fragment_5);
13811
13992
  {
13812
13993
  var consequent_4 = ($$anchor7) => {
13813
- var span_3 = root_3();
13814
- html2(span_3, () => sanitizeSvgIcon(get22(fallbackIcon)), true);
13815
- reset2(span_3);
13816
- append2($$anchor7, span_3);
13994
+ var span_4 = root_3();
13995
+ html2(span_4, () => sanitizeSvgIcon(get22(fallbackIcon)), true);
13996
+ reset2(span_4);
13997
+ append2($$anchor7, span_4);
13817
13998
  };
13818
13999
  var alternate_1 = ($$anchor7) => {
13819
14000
  var i_1 = root_5();
13820
14001
  template_effect2(() => set_class2(i_1, 1, `icon icon-${get22(item2).icon}`, "svelte-rnx3ie"));
13821
14002
  append2($$anchor7, i_1);
13822
14003
  };
13823
- if_block2(node_8, ($$render) => {
14004
+ if_block2(node_9, ($$render) => {
13824
14005
  if (get22(fallbackIcon))
13825
14006
  $$render(consequent_4);
13826
14007
  else
13827
14008
  $$render(alternate_1, -1);
13828
14009
  });
13829
14010
  }
13830
- append2($$anchor6, fragment_4);
14011
+ append2($$anchor6, fragment_5);
13831
14012
  };
13832
- if_block2(node_7, ($$render) => {
14013
+ if_block2(node_8, ($$render) => {
13833
14014
  if (get22(d))
13834
14015
  $$render(consequent_2);
13835
14016
  else if (get22(d_1))
@@ -13838,9 +14019,9 @@ function ItemToolBar($$anchor, $$props) {
13838
14019
  $$render(alternate_2, -1);
13839
14020
  });
13840
14021
  }
13841
- append2($$anchor5, fragment_3);
14022
+ append2($$anchor5, fragment_4);
13842
14023
  };
13843
- if_block2(node_6, ($$render) => {
14024
+ if_block2(node_7, ($$render) => {
13844
14025
  if (get22(item2).icon)
13845
14026
  $$render(consequent_5);
13846
14027
  });
@@ -13870,17 +14051,17 @@ function ItemToolBar($$anchor, $$props) {
13870
14051
  var alternate_5 = ($$anchor4) => {
13871
14052
  var button_1 = root_7();
13872
14053
  let classes_2;
13873
- var node_9 = child2(button_1);
14054
+ var node_10 = child2(button_1);
13874
14055
  {
13875
14056
  var consequent_10 = ($$anchor5) => {
13876
- var fragment_5 = comment2();
13877
- var node_10 = first_child2(fragment_5);
14057
+ var fragment_6 = comment2();
14058
+ var node_11 = first_child2(fragment_6);
13878
14059
  {
13879
14060
  var consequent_7 = ($$anchor6) => {
13880
- var span_4 = root_3();
13881
- html2(span_4, () => sanitizeSvgIcon(get22(item2).icon), true);
13882
- reset2(span_4);
13883
- append2($$anchor6, span_4);
14061
+ var span_5 = root_3();
14062
+ html2(span_5, () => sanitizeSvgIcon(get22(item2).icon), true);
14063
+ reset2(span_5);
14064
+ append2($$anchor6, span_5);
13884
14065
  };
13885
14066
  var d_3 = user_derived2(() => isInlineSvgIcon(get22(item2).icon));
13886
14067
  var consequent_8 = ($$anchor6) => {
@@ -13891,30 +14072,30 @@ function ItemToolBar($$anchor, $$props) {
13891
14072
  var d_4 = user_derived2(() => isExternalIconUrl(get22(item2).icon));
13892
14073
  var alternate_4 = ($$anchor6) => {
13893
14074
  const fallbackIcon = user_derived2(() => getFallbackIconSvg(get22(item2).icon));
13894
- var fragment_6 = comment2();
13895
- var node_11 = first_child2(fragment_6);
14075
+ var fragment_7 = comment2();
14076
+ var node_12 = first_child2(fragment_7);
13896
14077
  {
13897
14078
  var consequent_9 = ($$anchor7) => {
13898
- var span_5 = root_3();
13899
- html2(span_5, () => sanitizeSvgIcon(get22(fallbackIcon)), true);
13900
- reset2(span_5);
13901
- append2($$anchor7, span_5);
14079
+ var span_6 = root_3();
14080
+ html2(span_6, () => sanitizeSvgIcon(get22(fallbackIcon)), true);
14081
+ reset2(span_6);
14082
+ append2($$anchor7, span_6);
13902
14083
  };
13903
14084
  var alternate_3 = ($$anchor7) => {
13904
14085
  var i_2 = root_5();
13905
14086
  template_effect2(() => set_class2(i_2, 1, `icon icon-${get22(item2).icon}`, "svelte-rnx3ie"));
13906
14087
  append2($$anchor7, i_2);
13907
14088
  };
13908
- if_block2(node_11, ($$render) => {
14089
+ if_block2(node_12, ($$render) => {
13909
14090
  if (get22(fallbackIcon))
13910
14091
  $$render(consequent_9);
13911
14092
  else
13912
14093
  $$render(alternate_3, -1);
13913
14094
  });
13914
14095
  }
13915
- append2($$anchor6, fragment_6);
14096
+ append2($$anchor6, fragment_7);
13916
14097
  };
13917
- if_block2(node_10, ($$render) => {
14098
+ if_block2(node_11, ($$render) => {
13918
14099
  if (get22(d_3))
13919
14100
  $$render(consequent_7);
13920
14101
  else if (get22(d_4))
@@ -13923,9 +14104,9 @@ function ItemToolBar($$anchor, $$props) {
13923
14104
  $$render(alternate_4, -1);
13924
14105
  });
13925
14106
  }
13926
- append2($$anchor5, fragment_5);
14107
+ append2($$anchor5, fragment_6);
13927
14108
  };
13928
- if_block2(node_9, ($$render) => {
14109
+ if_block2(node_10, ($$render) => {
13929
14110
  if (get22(item2).icon)
13930
14111
  $$render(consequent_10);
13931
14112
  });
@@ -13948,7 +14129,7 @@ function ItemToolBar($$anchor, $$props) {
13948
14129
  });
13949
14130
  append2($$anchor4, button_1);
13950
14131
  };
13951
- if_block2(node_5, ($$render) => {
14132
+ if_block2(node_6, ($$render) => {
13952
14133
  if (get22(faIconName))
13953
14134
  $$render(consequent_1);
13954
14135
  else if (get22(d_2))
@@ -13957,66 +14138,76 @@ function ItemToolBar($$anchor, $$props) {
13957
14138
  $$render(alternate_5, -1);
13958
14139
  });
13959
14140
  }
13960
- append2($$anchor3, fragment_2);
14141
+ append2($$anchor3, fragment_3);
13961
14142
  });
13962
- var node_12 = sibling2(node_4, 2);
13963
- each2(node_12, 17, () => get22(mountedElementsAfterButtons), (mounted) => mounted.key, ($$anchor3, mounted) => {
13964
- var fragment_7 = comment2();
13965
- var node_13 = first_child2(fragment_7);
14143
+ var node_13 = sibling2(node_5, 2);
14144
+ each2(node_13, 17, () => get22(mountedElementsAfterButtons), (mounted) => mounted.key, ($$anchor3, mounted) => {
14145
+ var fragment_8 = comment2();
14146
+ var node_14 = first_child2(fragment_8);
13966
14147
  {
13967
14148
  var consequent_11 = ($$anchor4) => {
13968
- var span_6 = root_1();
13969
- action2(span_6, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
13970
- mounted: get22(mounted),
13971
- active: get22(renderedToolActiveById)[get22(mounted).toolId] ?? false
13972
- }));
13973
- append2($$anchor4, span_6);
14149
+ var fragment_9 = comment2();
14150
+ var node_15 = first_child2(fragment_9);
14151
+ key2(node_15, () => get22(useNdsIcons), ($$anchor5) => {
14152
+ var span_7 = root_1();
14153
+ action2(span_7, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
14154
+ mounted: get22(mounted),
14155
+ active: get22(renderedToolActiveById)[get22(mounted).toolId] ?? false
14156
+ }));
14157
+ append2($$anchor5, span_7);
14158
+ });
14159
+ append2($$anchor4, fragment_9);
13974
14160
  };
13975
14161
  var alternate_6 = ($$anchor4) => {
13976
- var span_7 = root_1();
13977
- action2(span_7, ($$node, $$action_arg) => mountElement?.($$node, $$action_arg), () => get22(mounted).entry.element);
13978
- append2($$anchor4, span_7);
14162
+ var span_8 = root_1();
14163
+ action2(span_8, ($$node, $$action_arg) => mountElement?.($$node, $$action_arg), () => get22(mounted).entry.element);
14164
+ append2($$anchor4, span_8);
13979
14165
  };
13980
- if_block2(node_13, ($$render) => {
14166
+ if_block2(node_14, ($$render) => {
13981
14167
  if (get22(mounted).entry.shell)
13982
14168
  $$render(consequent_11);
13983
14169
  else
13984
14170
  $$render(alternate_6, -1);
13985
14171
  });
13986
14172
  }
13987
- append2($$anchor3, fragment_7);
14173
+ append2($$anchor3, fragment_8);
13988
14174
  });
13989
14175
  reset2(div_1);
13990
- var node_14 = sibling2(div_1, 2);
14176
+ var node_16 = sibling2(div_1, 2);
13991
14177
  {
13992
14178
  var consequent_13 = ($$anchor3) => {
13993
14179
  var div_2 = root_9();
13994
14180
  let classes_3;
13995
14181
  each2(div_2, 21, () => get22(mountedElementsControlsRow), (mounted) => mounted.key, ($$anchor4, mounted) => {
13996
- var fragment_8 = comment2();
13997
- var node_15 = first_child2(fragment_8);
14182
+ var fragment_10 = comment2();
14183
+ var node_17 = first_child2(fragment_10);
13998
14184
  {
13999
14185
  var consequent_12 = ($$anchor5) => {
14000
- var span_8 = root_8();
14001
- action2(span_8, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
14002
- mounted: get22(mounted),
14003
- active: get22(renderedToolActiveById)[get22(mounted).toolId] ?? false
14004
- }));
14005
- append2($$anchor5, span_8);
14186
+ var fragment_11 = comment2();
14187
+ var node_18 = first_child2(fragment_11);
14188
+ key2(node_18, () => get22(useNdsIcons), ($$anchor6) => {
14189
+ var span_9 = root_8();
14190
+ action2(span_9, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
14191
+ mounted: get22(mounted),
14192
+ active: get22(renderedToolActiveById)[get22(mounted).toolId] ?? false
14193
+ }));
14194
+ append2($$anchor6, span_9);
14195
+ });
14196
+ append2($$anchor5, fragment_11);
14006
14197
  };
14007
14198
  var alternate_7 = ($$anchor5) => {
14008
- var span_9 = root_8();
14009
- action2(span_9, ($$node, $$action_arg) => mountElement?.($$node, $$action_arg), () => get22(mounted).entry.element);
14010
- append2($$anchor5, span_9);
14199
+ var span_10 = root_8();
14200
+ action2(span_10, ($$node, $$action_arg) => mountElement?.($$node, $$action_arg), () => get22(mounted).entry.element);
14201
+ append2($$anchor5, span_10);
14011
14202
  };
14012
- if_block2(node_15, ($$render) => {
14203
+ if_block2(node_17, ($$render) => {
14013
14204
  if (get22(mounted).entry.shell)
14014
14205
  $$render(consequent_12);
14015
14206
  else
14016
14207
  $$render(alternate_7, -1);
14017
14208
  });
14018
14209
  }
14019
- append2($$anchor4, fragment_8);
14210
+ append2($$anchor4, fragment_10);
14020
14211
  });
14021
14212
  reset2(div_2);
14022
14213
  template_effect2(() => classes_3 = set_class2(div_2, 1, "item-toolbar__controls-row svelte-rnx3ie", null, classes_3, {
@@ -14026,7 +14217,7 @@ function ItemToolBar($$anchor, $$props) {
14026
14217
  }));
14027
14218
  append2($$anchor3, div_2);
14028
14219
  };
14029
- if_block2(node_14, ($$render) => {
14220
+ if_block2(node_16, ($$render) => {
14030
14221
  if (get22(shouldRenderControlsRow))
14031
14222
  $$render(consequent_13);
14032
14223
  });
@@ -14043,6 +14234,7 @@ function ItemToolBar($$anchor, $$props) {
14043
14234
  });
14044
14235
  set_attribute22(div, "data-content-kind", get22(effectiveContentKind));
14045
14236
  set_attribute22(div, "data-level", get22(effectiveLevel));
14237
+ set_style2(div, `--pie-toolbar-zoom-comp: ${get22(calculatorButtonZoomComp)};`);
14046
14238
  });
14047
14239
  append2($$anchor2, div);
14048
14240
  };