@lostgradient/cinder 0.12.1 → 0.13.0

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/components.json +7 -5
  3. package/dist/components/diff-viewer/index.js +201 -101
  4. package/dist/components/json-schema-editor/index.js +229 -129
  5. package/dist/components/markdown-editor/index.js +207 -107
  6. package/dist/components/review-editor/index.js +291 -191
  7. package/dist/components/schedule-builder/index.js +205 -105
  8. package/dist/components/segment/index.js +119 -56
  9. package/dist/components/segment/segment.schema.d.ts +2 -2
  10. package/dist/components/segment/segment.schema.js +71 -33
  11. package/dist/components/segment/segment.svelte.d.ts +2 -1
  12. package/dist/components/segment/segment.types.d.ts +67 -10
  13. package/dist/components/segmented-control/index.js +193 -93
  14. package/dist/components/segmented-control/segmented-control-state.svelte.d.ts +4 -4
  15. package/dist/components/segmented-control/segmented-control.css +26 -6
  16. package/dist/components/segmented-control/segmented-control.schema.js +3 -3
  17. package/dist/components/segmented-control/segmented-control.svelte.d.ts +2 -1
  18. package/dist/components/segmented-control/segmented-control.types.d.ts +4 -4
  19. package/dist/components/sidebar/index.d.ts +1 -0
  20. package/dist/components/sidebar/index.js +9 -3
  21. package/dist/components/sidebar/sidebar.constants.d.ts +12 -0
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +466 -358
  24. package/dist/server/components/diff-viewer/index.js +4 -4
  25. package/dist/server/components/json-schema-editor/index.js +4 -4
  26. package/dist/server/components/markdown-editor/index.js +3 -3
  27. package/dist/server/components/review-editor/index.js +4 -4
  28. package/dist/server/components/schedule-builder/index.js +3 -3
  29. package/dist/server/components/segment/index.js +2 -2
  30. package/dist/server/components/segmented-control/index.js +3 -3
  31. package/dist/server/components/sidebar/index.js +7 -3
  32. package/dist/server/index.js +16 -10
  33. package/dist/server/{index.server-jgb8yh5k.js → index.server-2m1kenak.js} +1 -1
  34. package/dist/server/{index.server-jfrssta6.js → index.server-ck3fwrab.js} +1 -1
  35. package/dist/server/{index.server-sedjxt36.js → index.server-e89qfamd.js} +79 -35
  36. package/dist/server/{index.server-pag862vz.js → index.server-grgv455a.js} +2 -2
  37. package/dist/server/{index.server-2qj6s2mh.js → index.server-j570vb03.js} +7 -3
  38. package/dist/server/{index.server-xeqtpv61.js → index.server-mr68brd6.js} +49 -24
  39. package/dist/server/{index.server-qbkxz7r2.js → index.server-nx9c2ep1.js} +2 -2
  40. package/dist/server/{index.server-jj76374p.js → index.server-p071e531.js} +1 -1
  41. package/dist/server/{index.server-5gzyqv78.js → index.server-v3arexq8.js} +2 -2
  42. package/dist/server/{index.server-85p4ydph.js → index.server-zzd5wpbw.js} +1 -1
  43. package/package.json +1 -1
  44. package/src/components/segment/segment.schema.json +34 -7
  45. package/src/components/segment/segment.schema.ts +5 -47
  46. package/src/components/segment/segment.svelte +58 -23
  47. package/src/components/segment/segment.types.ts +81 -11
  48. package/src/components/segmented-control/segmented-control.css +26 -6
  49. package/src/components/segmented-control/segmented-control.examples.json +6 -0
  50. package/src/components/segmented-control/segmented-control.schema.json +2 -2
  51. package/src/components/segmented-control/segmented-control.schema.ts +2 -2
  52. package/src/components/segmented-control/segmented-control.svelte +50 -23
  53. package/src/components/segmented-control/segmented-control.types.ts +4 -7
  54. package/src/components/sidebar/index.ts +1 -0
  55. package/src/components/sidebar/sidebar.constants.ts +13 -0
  56. package/src/components/sidebar/sidebar.examples.json +6 -0
  57. package/src/components/sidebar/sidebar.svelte +4 -5
  58. package/src/index.ts +5 -1
  59. package/src/styles/foundation.css +2 -1
@@ -2865,25 +2865,69 @@ var rest_excludes3 = new Set([
2865
2865
  "$$events",
2866
2866
  "$$legacy",
2867
2867
  "value",
2868
+ "href",
2869
+ "download",
2870
+ "target",
2871
+ "rel",
2872
+ "current",
2873
+ "currentToken",
2868
2874
  "disabled",
2869
2875
  "controls",
2870
2876
  "leading",
2871
2877
  "trailing",
2872
2878
  "children",
2873
- "class"
2879
+ "class",
2880
+ "onclick"
2874
2881
  ]);
2875
2882
  var root3 = $8.from_html(`<span class="cinder-segmented-control-option-icon" aria-hidden="true"><!></span>`);
2876
2883
  var root_1 = $8.from_html(`<span class="cinder-segmented-control-option-trailing" aria-hidden="true"><!></span>`);
2877
- var root_2 = $8.from_html(`<button><!> <!> <!></button>`);
2884
+ var root_2 = $8.from_html(`<!> <!> <!>`, 1);
2885
+ var root_3 = $8.from_html(`<a><!></a>`);
2886
+ var root_4 = $8.from_html(`<button><!></button>`);
2878
2887
  function Segment($$anchor, $$props) {
2879
2888
  $8.push($$props, true);
2880
- let disabled = $8.prop($$props, "disabled", 3, false), rest = $8.rest_props($$props, rest_excludes3);
2889
+ const content = ($$anchor2) => {
2890
+ var fragment = root_2();
2891
+ var node_1 = $8.first_child(fragment);
2892
+ {
2893
+ var consequent = ($$anchor3) => {
2894
+ var span = root3();
2895
+ var node_2 = $8.child(span);
2896
+ $8.snippet(node_2, () => $$props.leading);
2897
+ $8.reset(span);
2898
+ $8.append($$anchor3, span);
2899
+ };
2900
+ $8.if(node_1, ($$render) => {
2901
+ if ($$props.leading)
2902
+ $$render(consequent);
2903
+ });
2904
+ }
2905
+ var node_3 = $8.sibling(node_1, 2);
2906
+ $8.snippet(node_3, () => $$props.children ?? $8.noop);
2907
+ var node_4 = $8.sibling(node_3, 2);
2908
+ {
2909
+ var consequent_1 = ($$anchor3) => {
2910
+ var span_1 = root_1();
2911
+ var node_5 = $8.child(span_1);
2912
+ $8.snippet(node_5, () => $$props.trailing);
2913
+ $8.reset(span_1);
2914
+ $8.append($$anchor3, span_1);
2915
+ };
2916
+ $8.if(node_4, ($$render) => {
2917
+ if ($$props.trailing)
2918
+ $$render(consequent_1);
2919
+ });
2920
+ }
2921
+ $8.append($$anchor2, fragment);
2922
+ };
2923
+ let current = $8.prop($$props, "current", 3, false), currentToken = $8.prop($$props, "currentToken", 3, "page"), disabled = $8.prop($$props, "disabled", 3, false), rest = $8.rest_props($$props, rest_excludes3);
2881
2924
  const context = getSegmentedControlContext();
2925
+ const buttonValue = $8.derived(() => $$props.value ?? $$props.href ?? "");
2882
2926
  const registerSegment = (node) => {
2883
2927
  return untrack(() => context.register({
2884
2928
  node,
2885
2929
  get value() {
2886
- return $$props.value;
2930
+ return $8.get(buttonValue);
2887
2931
  },
2888
2932
  get disabled() {
2889
2933
  return disabled() || context.controlDisabled;
@@ -2893,64 +2937,83 @@ function Segment($$anchor, $$props) {
2893
2937
  }
2894
2938
  }));
2895
2939
  };
2896
- const isSelected = $8.derived(() => context.isSelected($$props.value));
2897
- const isFocusable = $8.derived(() => context.isFocusable($$props.value));
2940
+ const isSelected = $8.derived(() => context.isSelected($8.get(buttonValue)));
2941
+ const isFocusable = $8.derived(() => context.isFocusable($8.get(buttonValue)));
2898
2942
  const effectiveDisabled = $8.derived(() => disabled() || context.controlDisabled);
2943
+ const isNavigationItem = $8.derived(() => context.variant === "navigation");
2944
+ const anchorDisabled = $8.derived(() => $8.get(effectiveDisabled) || $$props.href === undefined);
2945
+ const elementAttributes = $8.derived(() => rest);
2946
+ const anchorTabindex = $8.derived(() => $8.get(anchorDisabled) ? -1 : $8.get(elementAttributes).tabindex);
2899
2947
  const role = $8.derived(() => context.selectionMode === "multiple" ? undefined : context.variant === "tablist" ? "tab" : "radio");
2900
- var button = root_2();
2901
- var event_handler = () => context.toggle($$props.value);
2902
- $8.attribute_effect(button, ($0) => ({
2903
- ...rest,
2904
- type: "button",
2905
- role: $8.get(role),
2906
- "data-cinder-segment-value": $$props.value,
2907
- "aria-checked": $8.get(role) === "radio" ? $8.get(isSelected) : undefined,
2908
- "aria-selected": $8.get(role) === "tab" ? $8.get(isSelected) : undefined,
2909
- "aria-pressed": context.selectionMode === "multiple" ? $8.get(isSelected) : undefined,
2910
- "aria-controls": $8.get(role) === "tab" ? $$props.controls : undefined,
2911
- "aria-disabled": $8.get(effectiveDisabled) ? "true" : undefined,
2912
- disabled: context.selectionMode === "multiple" ? $8.get(effectiveDisabled) : undefined,
2913
- tabindex: $8.get(isFocusable) ? 0 : -1,
2914
- class: $0,
2915
- "data-cinder-selected": $8.get(isSelected) ? "" : undefined,
2916
- "data-cinder-pressed": context.selectionMode === "multiple" && $8.get(isSelected) ? "" : undefined,
2917
- onclick: event_handler
2918
- }), [
2919
- () => classNames("cinder-segmented-control-option", $$props.class)
2920
- ]);
2921
- var node_1 = $8.child(button);
2922
- {
2923
- var consequent = ($$anchor2) => {
2924
- var span = root3();
2925
- var node_2 = $8.child(span);
2926
- $8.snippet(node_2, () => $$props.leading);
2927
- $8.reset(span);
2928
- $8.append($$anchor2, span);
2929
- };
2930
- $8.if(node_1, ($$render) => {
2931
- if ($$props.leading)
2932
- $$render(consequent);
2933
- });
2948
+ function handleAnchorClick(event) {
2949
+ if ($8.get(anchorDisabled)) {
2950
+ event.preventDefault();
2951
+ return;
2952
+ }
2953
+ $$props.onclick?.(event);
2934
2954
  }
2935
- var node_3 = $8.sibling(node_1, 2);
2936
- $8.snippet(node_3, () => $$props.children ?? $8.noop);
2937
- var node_4 = $8.sibling(node_3, 2);
2955
+ var fragment_1 = $8.comment();
2956
+ var node_6 = $8.first_child(fragment_1);
2938
2957
  {
2939
- var consequent_1 = ($$anchor2) => {
2940
- var span_1 = root_1();
2941
- var node_5 = $8.child(span_1);
2942
- $8.snippet(node_5, () => $$props.trailing);
2943
- $8.reset(span_1);
2944
- $8.append($$anchor2, span_1);
2958
+ var consequent_2 = ($$anchor2) => {
2959
+ var a = root_3();
2960
+ $8.attribute_effect(a, ($0) => ({
2961
+ ...$8.get(elementAttributes),
2962
+ href: $8.get(anchorDisabled) ? undefined : $$props.href,
2963
+ download: $$props.download,
2964
+ target: $$props.target,
2965
+ rel: $$props.rel,
2966
+ "data-cinder-segment-value": $8.get(buttonValue),
2967
+ "aria-current": current() ? currentToken() : undefined,
2968
+ "aria-disabled": $8.get(anchorDisabled) ? "true" : undefined,
2969
+ tabindex: $8.get(anchorTabindex),
2970
+ class: $0,
2971
+ "data-cinder-current": current() ? "" : undefined,
2972
+ onclick: handleAnchorClick
2973
+ }), [
2974
+ () => classNames("cinder-segmented-control-option", $$props.class)
2975
+ ]);
2976
+ var node_7 = $8.child(a);
2977
+ content(node_7);
2978
+ $8.reset(a);
2979
+ $8.append($$anchor2, a);
2945
2980
  };
2946
- $8.if(node_4, ($$render) => {
2947
- if ($$props.trailing)
2948
- $$render(consequent_1);
2981
+ var alternate = ($$anchor2) => {
2982
+ var button = root_4();
2983
+ var event_handler = () => context.toggle($8.get(buttonValue));
2984
+ $8.attribute_effect(button, ($0) => ({
2985
+ ...$8.get(elementAttributes),
2986
+ type: "button",
2987
+ role: $8.get(role),
2988
+ "data-cinder-segment-value": $8.get(buttonValue),
2989
+ "aria-checked": $8.get(role) === "radio" ? $8.get(isSelected) : undefined,
2990
+ "aria-selected": $8.get(role) === "tab" ? $8.get(isSelected) : undefined,
2991
+ "aria-pressed": context.selectionMode === "multiple" ? $8.get(isSelected) : undefined,
2992
+ "aria-controls": $8.get(role) === "tab" ? $$props.controls : undefined,
2993
+ "aria-disabled": $8.get(effectiveDisabled) ? "true" : undefined,
2994
+ disabled: context.selectionMode === "multiple" ? $8.get(effectiveDisabled) : undefined,
2995
+ tabindex: $8.get(isFocusable) ? 0 : -1,
2996
+ class: $0,
2997
+ "data-cinder-selected": $8.get(isSelected) ? "" : undefined,
2998
+ "data-cinder-pressed": context.selectionMode === "multiple" && $8.get(isSelected) ? "" : undefined,
2999
+ onclick: event_handler
3000
+ }), [
3001
+ () => classNames("cinder-segmented-control-option", $$props.class)
3002
+ ]);
3003
+ var node_8 = $8.child(button);
3004
+ content(node_8);
3005
+ $8.reset(button);
3006
+ $8.attach(button, () => registerSegment);
3007
+ $8.append($$anchor2, button);
3008
+ };
3009
+ $8.if(node_6, ($$render) => {
3010
+ if ($8.get(isNavigationItem))
3011
+ $$render(consequent_2);
3012
+ else
3013
+ $$render(alternate, -1);
2949
3014
  });
2950
3015
  }
2951
- $8.reset(button);
2952
- $8.attach(button, () => registerSegment);
2953
- $8.append($$anchor, button);
3016
+ $8.append($$anchor, fragment_1);
2954
3017
  $8.pop();
2955
3018
  }
2956
3019
 
@@ -2981,9 +3044,11 @@ var rest_excludes4 = new Set([
2981
3044
  "onchange",
2982
3045
  "children"
2983
3046
  ]);
2984
- var root4 = $9.from_html(`<input type="hidden"/>`);
2985
- var root_12 = $9.from_html(`<input type="hidden" disabled=""/> <!>`, 1);
2986
- var root_22 = $9.from_html(`<div class="cinder-segmented-control-container"><span> </span> <div><!></div> <!></div>`);
3047
+ var root4 = $9.from_html(`<nav><!></nav>`);
3048
+ var root_12 = $9.from_html(`<div><!></div>`);
3049
+ var root_22 = $9.from_html(`<input type="hidden"/>`);
3050
+ var root_32 = $9.from_html(`<input type="hidden" disabled=""/> <!>`, 1);
3051
+ var root_42 = $9.from_html(`<div class="cinder-segmented-control-container"><span> </span> <!> <!></div>`);
2987
3052
  function Segmented_control($$anchor, $$props) {
2988
3053
  $9.push($$props, true);
2989
3054
  let value = $9.prop($$props, "value", 15), hideLabel = $9.prop($$props, "hideLabel", 3, false), disabled = $9.prop($$props, "disabled", 3, false), size = $9.prop($$props, "size", 3, "md"), orientation = $9.prop($$props, "orientation", 3, "horizontal"), detached = $9.prop($$props, "detached", 3, false), fullWidth = $9.prop($$props, "fullWidth", 3, false), variant = $9.prop($$props, "variant", 3, "radiogroup"), selectionMode = $9.prop($$props, "selectionMode", 3, "single"), disallowEmptySelection = $9.prop($$props, "disallowEmptySelection", 3, true), rest = $9.rest_props($$props, rest_excludes4);
@@ -2991,9 +3056,11 @@ function Segmented_control($$anchor, $$props) {
2991
3056
  let resetSyncTimeout;
2992
3057
  const initialSingleValue = untrack2(() => typeof value() === "string" ? value() : undefined);
2993
3058
  const initialMultipleValues = untrack2(() => selectionMode() === "multiple" && value() instanceof SvelteSet ? Array.from(value()) : undefined);
3059
+ const effectiveVariant = $9.derived(() => selectionMode() === "multiple" && variant() !== "radiogroup" ? "radiogroup" : variant());
3060
+ const rendersNavigation = $9.derived(() => $9.get(effectiveVariant) === "navigation");
2994
3061
  const controller = new SegmentedControlController({
2995
3062
  selectionMode: () => selectionMode(),
2996
- variant: () => variant(),
3063
+ variant: () => $9.get(effectiveVariant),
2997
3064
  orientation: () => orientation(),
2998
3065
  controlDisabled: () => disabled(),
2999
3066
  disallowEmptySelection: () => disallowEmptySelection(),
@@ -3008,7 +3075,7 @@ function Segmented_control($$anchor, $$props) {
3008
3075
  return selectionMode();
3009
3076
  },
3010
3077
  get variant() {
3011
- return variant();
3078
+ return $9.get(effectiveVariant);
3012
3079
  },
3013
3080
  get controlDisabled() {
3014
3081
  return disabled();
@@ -3019,7 +3086,7 @@ function Segmented_control($$anchor, $$props) {
3019
3086
  toggle: (segmentValue) => controller.toggle(segmentValue)
3020
3087
  };
3021
3088
  setSegmentedControlContext(contextValue);
3022
- const groupRole = $9.derived(() => selectionMode() === "multiple" ? "group" : variant() === "tablist" ? "tablist" : "radiogroup");
3089
+ const groupRole = $9.derived(() => selectionMode() === "multiple" ? "group" : variant() === "navigation" ? undefined : variant() === "tablist" ? "tablist" : "radiogroup");
3023
3090
  const effectiveSize = $9.derived(() => $$props.density === "toolbar" ? "sm" : size());
3024
3091
  const selectedValues = $9.derived(() => selectionMode() === "multiple" ? value() instanceof SvelteSet ? Array.from(value()) : [] : typeof value() === "string" ? [value()] : []);
3025
3092
  function resetToInitialValue(event) {
@@ -3050,41 +3117,74 @@ function Segmented_control($$anchor, $$props) {
3050
3117
  }
3051
3118
  };
3052
3119
  });
3053
- var div = root_22();
3120
+ var div = root_42();
3054
3121
  var span = $9.child(div);
3055
3122
  var text = $9.child(span, true);
3056
3123
  $9.reset(span);
3057
- var div_1 = $9.sibling(span, 2);
3058
- var event_handler = (event) => controller.handleKeydown(event);
3059
- $9.attribute_effect(div_1, ($0) => ({
3060
- ...rest,
3061
- id: $$props.id,
3062
- role: $9.get(groupRole),
3063
- "aria-labelledby": `${$$props.id}-label`,
3064
- "aria-disabled": disabled() ? "true" : undefined,
3065
- "aria-orientation": selectionMode() === "single" ? orientation() : undefined,
3066
- "data-cinder-orientation": orientation(),
3067
- "data-cinder-size": $9.get(effectiveSize),
3068
- "data-cinder-density": $$props.density === "toolbar" ? "toolbar" : undefined,
3069
- "data-cinder-selection-mode": selectionMode(),
3070
- "data-cinder-detached": detached() ? "" : undefined,
3071
- "data-cinder-full-width": fullWidth() ? "" : undefined,
3072
- "data-cinder-variant": variant(),
3073
- class: $0,
3074
- onkeydown: event_handler
3075
- }), [() => classNames("cinder-segmented-control", $$props.class)]);
3076
- var node = $9.child(div_1);
3077
- $9.snippet(node, () => $$props.children);
3078
- $9.reset(div_1);
3079
- var node_1 = $9.sibling(div_1, 2);
3124
+ var node = $9.sibling(span, 2);
3080
3125
  {
3081
3126
  var consequent = ($$anchor2) => {
3082
- var fragment = root_12();
3127
+ var nav = root4();
3128
+ $9.attribute_effect(nav, ($0) => ({
3129
+ ...rest,
3130
+ id: $$props.id,
3131
+ role: "navigation",
3132
+ "aria-labelledby": `${$$props.id}-label`,
3133
+ "data-cinder-orientation": orientation(),
3134
+ "data-cinder-size": $9.get(effectiveSize),
3135
+ "data-cinder-density": $$props.density === "toolbar" ? "toolbar" : undefined,
3136
+ "data-cinder-selection-mode": selectionMode(),
3137
+ "data-cinder-detached": detached() ? "" : undefined,
3138
+ "data-cinder-full-width": fullWidth() ? "" : undefined,
3139
+ "data-cinder-variant": $9.get(effectiveVariant),
3140
+ class: $0
3141
+ }), [() => classNames("cinder-segmented-control", $$props.class)]);
3142
+ var node_1 = $9.child(nav);
3143
+ $9.snippet(node_1, () => $$props.children);
3144
+ $9.reset(nav);
3145
+ $9.append($$anchor2, nav);
3146
+ };
3147
+ var alternate = ($$anchor2) => {
3148
+ var div_1 = root_12();
3149
+ var event_handler = (event) => controller.handleKeydown(event);
3150
+ $9.attribute_effect(div_1, ($0) => ({
3151
+ ...rest,
3152
+ id: $$props.id,
3153
+ role: $9.get(groupRole),
3154
+ "aria-labelledby": `${$$props.id}-label`,
3155
+ "aria-disabled": disabled() ? "true" : undefined,
3156
+ "aria-orientation": selectionMode() === "single" ? orientation() : undefined,
3157
+ "data-cinder-orientation": orientation(),
3158
+ "data-cinder-size": $9.get(effectiveSize),
3159
+ "data-cinder-density": $$props.density === "toolbar" ? "toolbar" : undefined,
3160
+ "data-cinder-selection-mode": selectionMode(),
3161
+ "data-cinder-detached": detached() ? "" : undefined,
3162
+ "data-cinder-full-width": fullWidth() ? "" : undefined,
3163
+ "data-cinder-variant": $9.get(effectiveVariant),
3164
+ class: $0,
3165
+ onkeydown: event_handler
3166
+ }), [() => classNames("cinder-segmented-control", $$props.class)]);
3167
+ var node_2 = $9.child(div_1);
3168
+ $9.snippet(node_2, () => $$props.children);
3169
+ $9.reset(div_1);
3170
+ $9.append($$anchor2, div_1);
3171
+ };
3172
+ $9.if(node, ($$render) => {
3173
+ if ($9.get(rendersNavigation))
3174
+ $$render(consequent);
3175
+ else
3176
+ $$render(alternate, -1);
3177
+ });
3178
+ }
3179
+ var node_3 = $9.sibling(node, 2);
3180
+ {
3181
+ var consequent_1 = ($$anchor2) => {
3182
+ var fragment = root_32();
3083
3183
  var input_1 = $9.first_child(fragment);
3084
3184
  $9.bind_this(input_1, ($$value) => $9.set(resetInputElement, $$value), () => $9.get(resetInputElement));
3085
- var node_2 = $9.sibling(input_1, 2);
3086
- $9.each(node_2, 16, () => $9.get(selectedValues), (selectedValue) => selectedValue, ($$anchor3, selectedValue) => {
3087
- var input_2 = root4();
3185
+ var node_4 = $9.sibling(input_1, 2);
3186
+ $9.each(node_4, 16, () => $9.get(selectedValues), (selectedValue) => selectedValue, ($$anchor3, selectedValue) => {
3187
+ var input_2 = root_22();
3088
3188
  $9.remove_input_defaults(input_2);
3089
3189
  $9.template_effect(() => {
3090
3190
  $9.set_attribute(input_2, "name", $$props.name);
@@ -3095,9 +3195,9 @@ function Segmented_control($$anchor, $$props) {
3095
3195
  });
3096
3196
  $9.append($$anchor2, fragment);
3097
3197
  };
3098
- $9.if(node_1, ($$render) => {
3099
- if ($$props.name)
3100
- $$render(consequent);
3198
+ $9.if(node_3, ($$render) => {
3199
+ if ($$props.name && !$9.get(rendersNavigation))
3200
+ $$render(consequent_1);
3101
3201
  });
3102
3202
  }
3103
3203
  $9.reset(div);
@@ -4682,7 +4782,7 @@ var rest_excludes9 = new Set([
4682
4782
  var root11 = $33.from_html(`<div class="cinder-dropdown__menu" popover="auto" role="menu"><!></div>`);
4683
4783
  var root_14 = $33.from_html(`<div class="cinder-dropdown__menu" role="menu"><!></div>`);
4684
4784
  var root_23 = $33.from_html(`<div class="cinder-dropdown__trigger" role="presentation"><!></div> <!>`, 1);
4685
- var root_3 = $33.from_html(`<div><!></div>`);
4785
+ var root_33 = $33.from_html(`<div><!></div>`);
4686
4786
  function Dropdown($$anchor, $$props) {
4687
4787
  const generatedId = $33.props_id();
4688
4788
  $33.push($$props, true);
@@ -4794,7 +4894,7 @@ function Dropdown($$anchor, $$props) {
4794
4894
  const toggleEvent = event3;
4795
4895
  open(toggleEvent.newState === "open");
4796
4896
  }
4797
- var div = root_3();
4897
+ var div = root_33();
4798
4898
  $33.attribute_effect(div, ($0) => ({
4799
4899
  id: id(),
4800
4900
  class: $0,
@@ -6102,13 +6202,13 @@ var rest_excludes14 = new Set([
6102
6202
  var root17 = $39.from_html(`<span class="cinder-button__icon" aria-hidden="true"><!></span>`);
6103
6203
  var root_19 = $39.from_html(`<span class="cinder-sr-only"> </span>`);
6104
6204
  var root_25 = $39.from_html(`<!> <!>`, 1);
6105
- var root_32 = $39.from_html(`<!> <!> <!>`, 1);
6106
- var root_4 = $39.from_html(`<a><!></a>`);
6205
+ var root_34 = $39.from_html(`<!> <!> <!>`, 1);
6206
+ var root_43 = $39.from_html(`<a><!></a>`);
6107
6207
  var root_5 = $39.from_html(`<button><!></button>`);
6108
6208
  function Button($$anchor, $$props) {
6109
6209
  $39.push($$props, true);
6110
6210
  const buttonContent = ($$anchor2) => {
6111
- var fragment = root_32();
6211
+ var fragment = root_34();
6112
6212
  var node = $39.first_child(fragment);
6113
6213
  {
6114
6214
  var consequent = ($$anchor3) => {
@@ -6239,7 +6339,7 @@ function Button($$anchor, $$props) {
6239
6339
  var node_9 = $39.first_child(fragment_4);
6240
6340
  {
6241
6341
  var consequent_6 = ($$anchor2) => {
6242
- var a = root_4();
6342
+ var a = root_43();
6243
6343
  $39.attribute_effect(a, () => ({
6244
6344
  ...anchorAttributes,
6245
6345
  href: loading() ? undefined : $$props.href,
@@ -6381,8 +6481,8 @@ var rest_excludes15 = new Set([
6381
6481
  var root18 = $40.from_svg(`<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>`);
6382
6482
  var root_110 = $40.from_html(`<input/>`);
6383
6483
  var root_26 = $40.from_html(`<span class="cinder-_required-marker" aria-hidden="true">*</span>`);
6384
- var root_33 = $40.from_html(`<label> <!></label>`);
6385
- var root_42 = $40.from_html(`<span class="cinder-input-group__leading cinder-_truncate"><!></span>`);
6484
+ var root_35 = $40.from_html(`<label> <!></label>`);
6485
+ var root_44 = $40.from_html(`<span class="cinder-input-group__leading cinder-_truncate"><!></span>`);
6386
6486
  var root_52 = $40.from_html(`<span class="cinder-input-group__trailing cinder-_truncate"><!></span>`);
6387
6487
  var root_6 = $40.from_html(`<span class="cinder-input-group__trailing cinder-input-group__date-icon cinder-_truncate" aria-hidden="true"><!></span>`);
6388
6488
  var root_7 = $40.from_html(`<div class="cinder-input-group"><!> <!> <!></div>`);
@@ -6475,7 +6575,7 @@ function Input($$anchor, $$props) {
6475
6575
  var node = $40.child(div);
6476
6576
  {
6477
6577
  var consequent_1 = ($$anchor2) => {
6478
- var label_1 = root_33();
6578
+ var label_1 = root_35();
6479
6579
  var text2 = $40.child(label_1);
6480
6580
  var node_1 = $40.sibling(text2);
6481
6581
  {
@@ -6511,7 +6611,7 @@ function Input($$anchor, $$props) {
6511
6611
  var node_3 = $40.child(div_1);
6512
6612
  {
6513
6613
  var consequent_2 = ($$anchor3) => {
6514
- var span_1 = root_42();
6614
+ var span_1 = root_44();
6515
6615
  var node_4 = $40.child(span_1);
6516
6616
  $40.snippet(node_4, () => $$props.leading);
6517
6617
  $40.reset(span_1);
@@ -6944,8 +7044,8 @@ var rest_excludes16 = new Set([
6944
7044
  var root20 = $44.from_html(`<div class="toolbar-leading svelte-1mxvqjb"><!></div>`);
6945
7045
  var root_112 = $44.from_html(`<div class="toolbar-actions svelte-1mxvqjb"><!></div>`);
6946
7046
  var root_27 = $44.from_html(`<!> <!>`, 1);
6947
- var root_34 = $44.from_html(`<div class="toolbar-mode-toggle svelte-1mxvqjb"><!></div>`);
6948
- var root_43 = $44.from_html(`<div class="editor-toolbar-wrapper svelte-1mxvqjb"><!> <!> <!> <!></div>`);
7047
+ var root_36 = $44.from_html(`<div class="toolbar-mode-toggle svelte-1mxvqjb"><!></div>`);
7048
+ var root_45 = $44.from_html(`<div class="editor-toolbar-wrapper svelte-1mxvqjb"><!> <!> <!> <!></div>`);
6949
7049
  var root_53 = $44.from_html(`<div class="cinder-markdown-content markdown-editor surface svelte-1mxvqjb" role="application" tabindex="0"></div>`);
6950
7050
  var root_62 = $44.from_html(`<textarea class="markdown-editor surface source-mode svelte-1mxvqjb" aria-multiline="true"></textarea>`);
6951
7051
  var root_72 = $44.from_html(`<div><div class="markdown-editor-layout svelte-1mxvqjb"><!> <!></div> <!></div>`);
@@ -7370,7 +7470,7 @@ function Markdown_editor($$anchor, $$props) {
7370
7470
  $44.append($$anchor3, fragment_1);
7371
7471
  };
7372
7472
  var alternate = ($$anchor3) => {
7373
- var div_2 = root_43();
7473
+ var div_2 = root_45();
7374
7474
  var node_3 = $44.child(div_2);
7375
7475
  {
7376
7476
  var consequent_1 = ($$anchor4) => {
@@ -7439,7 +7539,7 @@ function Markdown_editor($$anchor, $$props) {
7439
7539
  var node_8 = $44.sibling(node_6, 2);
7440
7540
  {
7441
7541
  var consequent_3 = ($$anchor4) => {
7442
- var div_5 = root_34();
7542
+ var div_5 = root_36();
7443
7543
  var node_9 = $44.child(div_5);
7444
7544
  {
7445
7545
  let $0 = $44.derived(() => `${$$props.id}-mode-toggle`);
@@ -7722,8 +7822,8 @@ function Trash_2($$anchor, $$props) {
7722
7822
  var root21 = $47.from_html(`<span class="comment-edited svelte-11dydst">(edited)</span>`);
7723
7823
  var root_113 = $47.from_html(`<div class="comment-edit svelte-11dydst"><label class="sr-only svelte-11dydst">Edit comment</label> <textarea class="comment-edit-textarea svelte-11dydst"></textarea> <div class="comment-edit-actions svelte-11dydst"><!> <!></div></div>`);
7724
7824
  var root_28 = $47.from_html(`<div class="comment-body svelte-11dydst"> </div>`);
7725
- var root_35 = $47.from_html(`<button type="button" class="comment-action svelte-11dydst" aria-label="Edit comment" title="Edit comment"><!></button>`);
7726
- var root_44 = $47.from_html(`<button type="button" class="comment-action comment-action-danger svelte-11dydst" aria-label="Delete comment" title="Delete comment"><!></button>`);
7825
+ var root_37 = $47.from_html(`<button type="button" class="comment-action svelte-11dydst" aria-label="Edit comment" title="Edit comment"><!></button>`);
7826
+ var root_46 = $47.from_html(`<button type="button" class="comment-action comment-action-danger svelte-11dydst" aria-label="Delete comment" title="Delete comment"><!></button>`);
7727
7827
  var root_54 = $47.from_html(`<div class="comment-actions svelte-11dydst"><!> <!></div>`);
7728
7828
  var root_63 = $47.from_html(`<article class="comment svelte-11dydst"><header class="comment-header svelte-11dydst"><div class="comment-author svelte-11dydst"><div class="comment-avatar svelte-11dydst" aria-hidden="true"> </div> <span class="comment-author-name svelte-11dydst"> </span></div> <div class="comment-meta svelte-11dydst"><time class="comment-time svelte-11dydst"> </time> <!></div></header> <!> <!></article>`);
7729
7829
  var root_73 = $47.from_html(`<p class="comment-list-empty svelte-11dydst">No comments yet.</p>`);
@@ -7734,9 +7834,9 @@ function Comment_list($$anchor, $$props) {
7734
7834
  const visibleComments = $47.derived(() => $$props.comments.filter((c) => !("deletedAt" in c) || !c.deletedAt));
7735
7835
  let editingCommentId = $47.state(null);
7736
7836
  let editingBody = $47.state("");
7737
- function startEdit(comment29) {
7738
- $47.set(editingCommentId, comment29.id, true);
7739
- $47.set(editingBody, comment29.body, true);
7837
+ function startEdit(comment30) {
7838
+ $47.set(editingCommentId, comment30.id, true);
7839
+ $47.set(editingBody, comment30.body, true);
7740
7840
  }
7741
7841
  function cancelEdit() {
7742
7842
  $47.set(editingCommentId, null);
@@ -7756,15 +7856,15 @@ function Comment_list($$anchor, $$props) {
7756
7856
  saveEdit(commentId);
7757
7857
  }
7758
7858
  }
7759
- function canEditComment(comment29) {
7760
- return mode() !== "readonly" && comment29.authorId === $$props.currentUserId;
7859
+ function canEditComment(comment30) {
7860
+ return mode() !== "readonly" && comment30.authorId === $$props.currentUserId;
7761
7861
  }
7762
- function canDeleteComment(comment29) {
7763
- return mode() !== "readonly" && comment29.authorId === $$props.currentUserId;
7862
+ function canDeleteComment(comment30) {
7863
+ return mode() !== "readonly" && comment30.authorId === $$props.currentUserId;
7764
7864
  }
7765
7865
  var div = root_82();
7766
7866
  var node = $47.child(div);
7767
- $47.each(node, 17, () => $47.get(visibleComments), (comment29) => comment29.id, ($$anchor2, comment29) => {
7867
+ $47.each(node, 17, () => $47.get(visibleComments), (comment30) => comment30.id, ($$anchor2, comment30) => {
7768
7868
  var article = root_63();
7769
7869
  var header = $47.child(article);
7770
7870
  var div_1 = $47.child(header);
@@ -7783,11 +7883,11 @@ function Comment_list($$anchor, $$props) {
7783
7883
  {
7784
7884
  var consequent = ($$anchor3) => {
7785
7885
  var span_1 = root21();
7786
- $47.template_effect(() => $47.set_attribute(span_1, "title", `Edited ${$47.get(comment29).editedAt}`));
7886
+ $47.template_effect(() => $47.set_attribute(span_1, "title", `Edited ${$47.get(comment30).editedAt}`));
7787
7887
  $47.append($$anchor3, span_1);
7788
7888
  };
7789
7889
  $47.if(node_1, ($$render) => {
7790
- if ("editedAt" in $47.get(comment29) && $47.get(comment29).editedAt)
7890
+ if ("editedAt" in $47.get(comment30) && $47.get(comment30).editedAt)
7791
7891
  $$render(consequent);
7792
7892
  });
7793
7893
  }
@@ -7820,7 +7920,7 @@ function Comment_list($$anchor, $$props) {
7820
7920
  Button(node_4, {
7821
7921
  variant: "primary",
7822
7922
  size: "xs",
7823
- onclick: () => saveEdit($47.get(comment29).id),
7923
+ onclick: () => saveEdit($47.get(comment30).id),
7824
7924
  get disabled() {
7825
7925
  return $47.get($0);
7826
7926
  },
@@ -7835,10 +7935,10 @@ function Comment_list($$anchor, $$props) {
7835
7935
  $47.reset(div_5);
7836
7936
  $47.reset(div_4);
7837
7937
  $47.template_effect(() => {
7838
- $47.set_attribute(label, "for", `${$47.get(comment29).id ?? ""}-edit`);
7839
- $47.set_attribute(textarea, "id", `${$47.get(comment29).id ?? ""}-edit`);
7938
+ $47.set_attribute(label, "for", `${$47.get(comment30).id ?? ""}-edit`);
7939
+ $47.set_attribute(textarea, "id", `${$47.get(comment30).id ?? ""}-edit`);
7840
7940
  });
7841
- $47.delegated("keydown", textarea, (e) => handleEditKeyDown(e, $47.get(comment29).id));
7941
+ $47.delegated("keydown", textarea, (e) => handleEditKeyDown(e, $47.get(comment30).id));
7842
7942
  $47.bind_value(textarea, () => $47.get(editingBody), ($$value) => $47.set(editingBody, $$value));
7843
7943
  $47.append($$anchor3, div_4);
7844
7944
  };
@@ -7846,11 +7946,11 @@ function Comment_list($$anchor, $$props) {
7846
7946
  var div_6 = root_28();
7847
7947
  var text_5 = $47.child(div_6, true);
7848
7948
  $47.reset(div_6);
7849
- $47.template_effect(() => $47.set_text(text_5, $47.get(comment29).body));
7949
+ $47.template_effect(() => $47.set_text(text_5, $47.get(comment30).body));
7850
7950
  $47.append($$anchor3, div_6);
7851
7951
  };
7852
7952
  $47.if(node_2, ($$render) => {
7853
- if ($47.get(editingCommentId) === $47.get(comment29).id)
7953
+ if ($47.get(editingCommentId) === $47.get(comment30).id)
7854
7954
  $$render(consequent_1);
7855
7955
  else
7856
7956
  $$render(alternate, -1);
@@ -7863,14 +7963,14 @@ function Comment_list($$anchor, $$props) {
7863
7963
  var node_6 = $47.child(div_7);
7864
7964
  {
7865
7965
  var consequent_2 = ($$anchor4) => {
7866
- var button = root_35();
7966
+ var button = root_37();
7867
7967
  var node_7 = $47.child(button);
7868
7968
  Pencil(node_7, { class: "cinder-icon-sm" });
7869
7969
  $47.reset(button);
7870
- $47.delegated("click", button, () => startEdit($47.get(comment29)));
7970
+ $47.delegated("click", button, () => startEdit($47.get(comment30)));
7871
7971
  $47.append($$anchor4, button);
7872
7972
  };
7873
- var d = $47.derived(() => canEditComment($47.get(comment29)));
7973
+ var d = $47.derived(() => canEditComment($47.get(comment30)));
7874
7974
  $47.if(node_6, ($$render) => {
7875
7975
  if ($47.get(d))
7876
7976
  $$render(consequent_2);
@@ -7879,14 +7979,14 @@ function Comment_list($$anchor, $$props) {
7879
7979
  var node_8 = $47.sibling(node_6, 2);
7880
7980
  {
7881
7981
  var consequent_3 = ($$anchor4) => {
7882
- var button_1 = root_44();
7982
+ var button_1 = root_46();
7883
7983
  var node_9 = $47.child(button_1);
7884
7984
  Trash_2(node_9, { class: "cinder-icon-sm" });
7885
7985
  $47.reset(button_1);
7886
- $47.delegated("click", button_1, () => $$props.ondelete?.($47.get(comment29).id));
7986
+ $47.delegated("click", button_1, () => $$props.ondelete?.($47.get(comment30).id));
7887
7987
  $47.append($$anchor4, button_1);
7888
7988
  };
7889
- var d_1 = $47.derived(() => canDeleteComment($47.get(comment29)));
7989
+ var d_1 = $47.derived(() => canDeleteComment($47.get(comment30)));
7890
7990
  $47.if(node_8, ($$render) => {
7891
7991
  if ($47.get(d_1))
7892
7992
  $$render(consequent_3);
@@ -7896,21 +7996,21 @@ function Comment_list($$anchor, $$props) {
7896
7996
  $47.append($$anchor3, div_7);
7897
7997
  };
7898
7998
  $47.if(node_5, ($$render) => {
7899
- if (mode() !== "readonly" && $47.get(editingCommentId) !== $47.get(comment29).id)
7999
+ if (mode() !== "readonly" && $47.get(editingCommentId) !== $47.get(comment30).id)
7900
8000
  $$render(consequent_4);
7901
8001
  });
7902
8002
  }
7903
8003
  $47.reset(article);
7904
8004
  $47.template_effect(($0, $1) => {
7905
- $47.set_attribute(article, "data-comment-id", $47.get(comment29).id);
8005
+ $47.set_attribute(article, "data-comment-id", $47.get(comment30).id);
7906
8006
  $47.set_text(text5, $0);
7907
- $47.set_text(text_1, $47.get(comment29).authorId);
7908
- $47.set_attribute(time, "datetime", $47.get(comment29).createdAt);
7909
- $47.set_attribute(time, "title", $47.get(comment29).createdAt);
8007
+ $47.set_text(text_1, $47.get(comment30).authorId);
8008
+ $47.set_attribute(time, "datetime", $47.get(comment30).createdAt);
8009
+ $47.set_attribute(time, "title", $47.get(comment30).createdAt);
7910
8010
  $47.set_text(text_2, $1);
7911
8011
  }, [
7912
- () => $47.get(comment29).authorId.charAt(0).toUpperCase(),
7913
- () => formatRelativeTime($47.get(comment29).createdAt)
8012
+ () => $47.get(comment30).authorId.charAt(0).toUpperCase(),
8013
+ () => formatRelativeTime($47.get(comment30).createdAt)
7914
8014
  ]);
7915
8015
  $47.append($$anchor2, article);
7916
8016
  });
@@ -8164,7 +8264,7 @@ function File_text($$anchor, $$props) {
8164
8264
  var root23 = $50.from_html(`<span class="thread-popover-document-label svelte-jqotwh"><!> Document comment</span>`);
8165
8265
  var root_115 = $50.from_html(`<span class="thread-popover-quote svelte-jqotwh"> </span>`);
8166
8266
  var root_29 = $50.from_html(`<div class="thread-popover-composer svelte-jqotwh"><!></div>`);
8167
- var root_36 = $50.from_html(`<div role="dialog" aria-modal="true" tabindex="-1"><header class="thread-popover-header svelte-jqotwh"><div class="thread-popover-title-row svelte-jqotwh"><h2 class="thread-popover-title svelte-jqotwh"><!></h2> <div class="thread-popover-header-actions svelte-jqotwh"><!> <button type="button" class="thread-popover-close svelte-jqotwh" aria-label="Close"><!></button></div></div></header> <div class="thread-popover-content svelte-jqotwh"><!></div> <!></div>`);
8267
+ var root_38 = $50.from_html(`<div role="dialog" aria-modal="true" tabindex="-1"><header class="thread-popover-header svelte-jqotwh"><div class="thread-popover-title-row svelte-jqotwh"><h2 class="thread-popover-title svelte-jqotwh"><!></h2> <div class="thread-popover-header-actions svelte-jqotwh"><!> <button type="button" class="thread-popover-close svelte-jqotwh" aria-label="Close"><!></button></div></div></header> <div class="thread-popover-content svelte-jqotwh"><!></div> <!></div>`);
8168
8268
  function Thread_popover($$anchor, $$props) {
8169
8269
  $50.push($$props, true);
8170
8270
  let mode = $50.prop($$props, "mode", 3, "edit");
@@ -8220,7 +8320,7 @@ function Thread_popover($$anchor, $$props) {
8220
8320
  const quote = $$props.thread.anchor.quote;
8221
8321
  return quote.length > 30 ? `${quote.slice(0, 30)}...` : quote;
8222
8322
  });
8223
- var div = root_36();
8323
+ var div = root_38();
8224
8324
  var header = $50.child(div);
8225
8325
  var div_1 = $50.child(header);
8226
8326
  var h2 = $50.child(div_1);
@@ -8621,8 +8721,8 @@ function Message_square($$anchor, $$props) {
8621
8721
  var root25 = $57.from_html(`<!> <span class="cinder-sr-only">Copy</span>`, 1);
8622
8722
  var root_117 = $57.from_html(`<span class="copied-label svelte-1cj1bq5">Copied!</span>`);
8623
8723
  var root_210 = $57.from_html(`<!> <span> </span> <!>`, 1);
8624
- var root_37 = $57.from_html(`<!> <!> <!> <!> <!>`, 1);
8625
- var root_45 = $57.from_html(`<!> <!>`, 1);
8724
+ var root_39 = $57.from_html(`<!> <!> <!> <!> <!>`, 1);
8725
+ var root_47 = $57.from_html(`<!> <!>`, 1);
8626
8726
  var root_55 = $57.from_html(`<div><div class="cinder-sr-only" aria-live="polite" aria-atomic="true"><!></div> <!></div>`);
8627
8727
  function Export_actions($$anchor, $$props) {
8628
8728
  $57.push($$props, true);
@@ -8680,7 +8780,7 @@ function Export_actions($$anchor, $$props) {
8680
8780
  return $$props.id;
8681
8781
  },
8682
8782
  children: ($$anchor2, $$slotProps) => {
8683
- var fragment_1 = root_45();
8783
+ var fragment_1 = root_47();
8684
8784
  var node_2 = $57.first_child(fragment_1);
8685
8785
  Dropdown_trigger(node_2, {
8686
8786
  class: "export-trigger",
@@ -8698,7 +8798,7 @@ function Export_actions($$anchor, $$props) {
8698
8798
  var node_4 = $57.sibling(node_2, 2);
8699
8799
  Dropdown_menu(node_4, {
8700
8800
  children: ($$anchor3, $$slotProps2) => {
8701
- var fragment_3 = root_37();
8801
+ var fragment_3 = root_39();
8702
8802
  var node_5 = $57.first_child(fragment_3);
8703
8803
  {
8704
8804
  var consequent_3 = ($$anchor4) => {
@@ -8986,8 +9086,8 @@ import { getVisibleComments, isDocumentAnchor as isDocumentAnchor2 } from "@lost
8986
9086
  var root26 = $60.from_html(`<!> Clear all comments`, 1);
8987
9087
  var root_118 = $60.from_html(`<!> <!>`, 1);
8988
9088
  var root_211 = $60.from_html(`<div class="confirm-clear svelte-1g8l8sh" role="alertdialog"><p class="confirm-message svelte-1g8l8sh"> </p> <div class="confirm-actions svelte-1g8l8sh"><!> <!></div></div>`);
8989
- var root_38 = $60.from_html(`<div class="document-comment-composer svelte-1g8l8sh"><div class="document-comment-header svelte-1g8l8sh"><!> <span>Document comment</span></div> <!></div>`);
8990
- var root_46 = $60.from_html(`<div class="empty-state svelte-1g8l8sh"><p class="empty-message svelte-1g8l8sh">No comments yet</p> <p class="empty-hint svelte-1g8l8sh">Select text or click + to add a comment</p></div>`);
9089
+ var root_310 = $60.from_html(`<div class="document-comment-composer svelte-1g8l8sh"><div class="document-comment-header svelte-1g8l8sh"><!> <span>Document comment</span></div> <!></div>`);
9090
+ var root_48 = $60.from_html(`<div class="empty-state svelte-1g8l8sh"><p class="empty-message svelte-1g8l8sh">No comments yet</p> <p class="empty-hint svelte-1g8l8sh">Select text or click + to add a comment</p></div>`);
8991
9091
  var root_56 = $60.from_html(`<button type="button" class="thread-item svelte-1g8l8sh" data-document="true"><div class="thread-document-label svelte-1g8l8sh"><!> <span>Document comment</span></div> <p class="thread-preview svelte-1g8l8sh"> </p></button>`);
8992
9092
  var root_64 = $60.from_html(`<button type="button" class="thread-item svelte-1g8l8sh"><blockquote class="thread-quote svelte-1g8l8sh"> </blockquote> <p class="thread-preview svelte-1g8l8sh"> </p></button>`);
8993
9093
  var root_74 = $60.from_html(`<aside aria-label="Comment threads"><div class="sidebar-header svelte-1g8l8sh"><!> <h2 class="sidebar-title svelte-1g8l8sh">Comments</h2> <span class="thread-count svelte-1g8l8sh"> </span> <!> <!></div> <!> <!> <div class="thread-list svelte-1g8l8sh"><!></div></aside>`);
@@ -9188,7 +9288,7 @@ function Comment_sidebar($$anchor, $$props) {
9188
9288
  var node_10 = $60.sibling(node_7, 2);
9189
9289
  {
9190
9290
  var consequent_4 = ($$anchor2) => {
9191
- var div_3 = root_38();
9291
+ var div_3 = root_310();
9192
9292
  var div_4 = $60.child(div_3);
9193
9293
  var node_11 = $60.child(div_4);
9194
9294
  File_text(node_11, { class: "cinder-icon-xs" });
@@ -9215,7 +9315,7 @@ function Comment_sidebar($$anchor, $$props) {
9215
9315
  var node_13 = $60.child(div_5);
9216
9316
  {
9217
9317
  var consequent_5 = ($$anchor2) => {
9218
- var div_6 = root_46();
9318
+ var div_6 = root_48();
9219
9319
  $60.append($$anchor2, div_6);
9220
9320
  };
9221
9321
  var alternate_1 = ($$anchor2) => {
@@ -9314,8 +9414,8 @@ var rest_excludes18 = new Set([
9314
9414
  var root27 = $61.from_html(`<span class="cinder-_required-marker" aria-hidden="true">*</span>`);
9315
9415
  var root_119 = $61.from_html(`<label class="cinder-checkbox-field__label"> <!></label>`);
9316
9416
  var root_212 = $61.from_html(`<p class="cinder-checkbox-field__description"> </p>`);
9317
- var root_39 = $61.from_html(`<p class="cinder-checkbox-field__error" aria-live="polite"> </p>`);
9318
- var root_47 = $61.from_html(`<div><div class="cinder-checkbox-row"><span class="cinder-checkbox-field__control"><input/> <span class="cinder-checkbox-field__indicator" aria-hidden="true"></span></span> <!></div> <!> <!></div>`);
9417
+ var root_311 = $61.from_html(`<p class="cinder-checkbox-field__error" aria-live="polite"> </p>`);
9418
+ var root_49 = $61.from_html(`<div><div class="cinder-checkbox-row"><span class="cinder-checkbox-field__control"><input/> <span class="cinder-checkbox-field__indicator" aria-hidden="true"></span></span> <!></div> <!> <!></div>`);
9319
9419
  function Checkbox($$anchor, $$props) {
9320
9420
  const generatedId = $61.props_id();
9321
9421
  $61.push($$props, true);
@@ -9378,7 +9478,7 @@ function Checkbox($$anchor, $$props) {
9378
9478
  target.indeterminate = indeterminate() && !committed;
9379
9479
  $$props.onchange?.(event4);
9380
9480
  }
9381
- var div = root_47();
9481
+ var div = root_49();
9382
9482
  var div_1 = $61.child(div);
9383
9483
  var span = $61.child(div_1);
9384
9484
  var input = $61.child(span);
@@ -9447,7 +9547,7 @@ function Checkbox($$anchor, $$props) {
9447
9547
  var node_3 = $61.sibling(node_2, 2);
9448
9548
  {
9449
9549
  var consequent_3 = ($$anchor2) => {
9450
- var p_1 = root_39();
9550
+ var p_1 = root_311();
9451
9551
  var text_2 = $61.child(p_1, true);
9452
9552
  $61.reset(p_1);
9453
9553
  $61.template_effect(() => {
@@ -9510,8 +9610,8 @@ var rest_excludes19 = new Set([
9510
9610
  var root28 = $62.from_html(`<span class="cinder-_required-marker" aria-hidden="true">*</span>`);
9511
9611
  var root_120 = $62.from_html(`<label class="cinder-textarea-label"> <!></label>`);
9512
9612
  var root_213 = $62.from_html(`<p class="cinder-textarea-description"> </p>`);
9513
- var root_310 = $62.from_html(`<output class="cinder-textarea-count" aria-live="polite" aria-atomic="true"> </output>`);
9514
- var root_48 = $62.from_html(`<p class="cinder-textarea-error" aria-live="polite"> </p>`);
9613
+ var root_312 = $62.from_html(`<output class="cinder-textarea-count" aria-live="polite" aria-atomic="true"> </output>`);
9614
+ var root_410 = $62.from_html(`<p class="cinder-textarea-error" aria-live="polite"> </p>`);
9515
9615
  var root_57 = $62.from_html(`<div class="cinder-textarea-field"><!> <textarea></textarea> <!> <!> <!></div>`);
9516
9616
  function Textarea($$anchor, $$props) {
9517
9617
  $62.push($$props, true);
@@ -9599,7 +9699,7 @@ function Textarea($$anchor, $$props) {
9599
9699
  var node_3 = $62.sibling(node_2, 2);
9600
9700
  {
9601
9701
  var consequent_3 = ($$anchor2) => {
9602
- var output = root_310();
9702
+ var output = root_312();
9603
9703
  var text_2 = $62.child(output);
9604
9704
  $62.reset(output);
9605
9705
  $62.template_effect(() => {
@@ -9617,7 +9717,7 @@ function Textarea($$anchor, $$props) {
9617
9717
  var node_4 = $62.sibling(node_3, 2);
9618
9718
  {
9619
9719
  var consequent_4 = ($$anchor2) => {
9620
- var p_1 = root_48();
9720
+ var p_1 = root_410();
9621
9721
  var text_3 = $62.child(p_1, true);
9622
9722
  $62.reset(p_1);
9623
9723
  $62.template_effect(() => {
@@ -10094,7 +10194,7 @@ var rest_excludes20 = new Set([
10094
10194
  var root30 = $64.from_svg(`<path></path>`);
10095
10195
  var root_122 = $64.from_svg(`<svg class="cinder-icon-sm" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></svg>`);
10096
10196
  var root_215 = $64.from_html(`<!> <!>`, 1);
10097
- var root_311 = $64.from_html(`<span><!></span>`);
10197
+ var root_313 = $64.from_html(`<span><!></span>`);
10098
10198
  function Badge($$anchor, $$props) {
10099
10199
  $64.push($$props, true);
10100
10200
  const subscriptionStateConfigurations = {
@@ -10135,7 +10235,7 @@ function Badge($$anchor, $$props) {
10135
10235
  const subscriptionStateConfiguration = $64.derived(() => $$props.subscriptionState === undefined ? undefined : subscriptionStateConfigurations[$$props.subscriptionState]);
10136
10236
  const resolvedVariant = $64.derived(() => $64.get(subscriptionStateConfiguration)?.variant ?? variant());
10137
10237
  const resolvedSubscriptionIconPaths = $64.derived(() => $$props.subscriptionState === undefined ? undefined : subscriptionStateIconPaths[$$props.subscriptionState]);
10138
- var span = root_311();
10238
+ var span = root_313();
10139
10239
  $64.attribute_effect(span, ($0) => ({
10140
10240
  class: $0,
10141
10241
  "data-cinder-variant": $64.get(resolvedVariant),
@@ -10223,8 +10323,8 @@ var rest_excludes21 = new Set([
10223
10323
  var root31 = $65.from_html(`<span class="cinder-diff-statistics__label">added</span>`);
10224
10324
  var root_123 = $65.from_html(`<span class="cinder-diff-statistics__stat cinder-diff-statistics__stat--added"><span class="cinder-diff-statistics__prefix" aria-hidden="true">+</span> <span class="cinder-diff-statistics__value"> </span> <!></span>`);
10225
10325
  var root_216 = $65.from_html(`<span class="cinder-diff-statistics__label">removed</span>`);
10226
- var root_312 = $65.from_html(`<span class="cinder-diff-statistics__stat cinder-diff-statistics__stat--removed"><span class="cinder-diff-statistics__prefix" aria-hidden="true">-</span> <span class="cinder-diff-statistics__value"> </span> <!></span>`);
10227
- var root_49 = $65.from_html(`<span class="cinder-diff-statistics__label">modified</span>`);
10326
+ var root_314 = $65.from_html(`<span class="cinder-diff-statistics__stat cinder-diff-statistics__stat--removed"><span class="cinder-diff-statistics__prefix" aria-hidden="true">-</span> <span class="cinder-diff-statistics__value"> </span> <!></span>`);
10327
+ var root_411 = $65.from_html(`<span class="cinder-diff-statistics__label">modified</span>`);
10228
10328
  var root_58 = $65.from_html(`<span class="cinder-diff-statistics__stat cinder-diff-statistics__stat--modified"><span class="cinder-diff-statistics__prefix" aria-hidden="true">~</span> <span class="cinder-diff-statistics__value"> </span> <!></span>`);
10229
10329
  var root_65 = $65.from_html(`<!> <!> <!>`, 1);
10230
10330
  var root_75 = $65.from_html(`<span class="cinder-diff-statistics__stat cinder-diff-statistics__stat--none">No changes</span>`);
@@ -10290,7 +10390,7 @@ function Diff_statistics($$anchor, $$props) {
10290
10390
  var node_3 = $65.sibling(node_1, 2);
10291
10391
  {
10292
10392
  var consequent_3 = ($$anchor3) => {
10293
- var span_3 = root_312();
10393
+ var span_3 = root_314();
10294
10394
  var span_4 = $65.sibling($65.child(span_3), 2);
10295
10395
  var text_1 = $65.child(span_4, true);
10296
10396
  $65.reset(span_4);
@@ -10327,7 +10427,7 @@ function Diff_statistics($$anchor, $$props) {
10327
10427
  var node_6 = $65.sibling(span_7, 2);
10328
10428
  {
10329
10429
  var consequent_4 = ($$anchor4) => {
10330
- var span_8 = root_49();
10430
+ var span_8 = root_411();
10331
10431
  $65.append($$anchor4, span_8);
10332
10432
  };
10333
10433
  $65.if(node_6, ($$render) => {
@@ -10395,8 +10495,8 @@ function Rotate_ccw($$anchor, $$props) {
10395
10495
  var root32 = $67.from_html(`<!> <!>`, 1);
10396
10496
  var root_124 = $67.from_html(`<!> <!> <!>`, 1);
10397
10497
  var root_217 = $67.from_html(`<div class="controls-separator svelte-161pl7w" aria-hidden="true"></div> <!>`, 1);
10398
- var root_313 = $67.from_html(`<!> <span class="cinder-sr-only">Revert All</span>`, 1);
10399
- var root_410 = $67.from_html(`<div role="toolbar" aria-label="Review editor controls"><div class="controls-leading svelte-161pl7w"><!> <!> <!></div> <div class="controls-trailing svelte-161pl7w"><!> <div class="comments-toggle-wrapper svelte-161pl7w"><!></div> <!></div></div> <div role="status" aria-live="polite" aria-atomic="true" class="comments-count-announcer cinder-sr-only"> </div>`, 1);
10498
+ var root_315 = $67.from_html(`<!> <span class="cinder-sr-only">Revert All</span>`, 1);
10499
+ var root_412 = $67.from_html(`<div role="toolbar" aria-label="Review editor controls"><div class="controls-leading svelte-161pl7w"><!> <!> <!></div> <div class="controls-trailing svelte-161pl7w"><!> <div class="comments-toggle-wrapper svelte-161pl7w"><!></div> <!></div></div> <div role="status" aria-live="polite" aria-atomic="true" class="comments-count-announcer cinder-sr-only"> </div>`, 1);
10400
10500
  function Review_editor_controls($$anchor, $$props) {
10401
10501
  $67.push($$props, true);
10402
10502
  let showDiffTabs = $67.prop($$props, "showDiffTabs", 3, true), diffViewMode = $67.prop($$props, "diffViewMode", 15, "unified"), hasContentChanges = $67.prop($$props, "hasContentChanges", 3, false), readonly = $67.prop($$props, "readonly", 3, false), commentCount = $67.prop($$props, "commentCount", 3, 0), sidebarOpen = $67.prop($$props, "sidebarOpen", 3, false);
@@ -10416,7 +10516,7 @@ function Review_editor_controls($$anchor, $$props) {
10416
10516
  $67.set(liveAnnouncementText, `${commentCount()} ${commentCount() === 1 ? "comment" : "comments"}`);
10417
10517
  }
10418
10518
  });
10419
- var fragment = root_410();
10519
+ var fragment = root_412();
10420
10520
  var div = $67.first_child(fragment);
10421
10521
  var div_1 = $67.child(div);
10422
10522
  var node = $67.child(div_1);
@@ -10610,7 +10710,7 @@ function Review_editor_controls($$anchor, $$props) {
10610
10710
  "aria-label": "Revert all changes",
10611
10711
  title: "Revert all changes",
10612
10712
  children: ($$anchor3, $$slotProps) => {
10613
- var fragment_10 = root_313();
10713
+ var fragment_10 = root_315();
10614
10714
  var node_12 = $67.first_child(fragment_10);
10615
10715
  Rotate_ccw(node_12, { class: "cinder-icon-sm" });
10616
10716
  $67.next(2);
@@ -11091,8 +11191,8 @@ import * as $73 from "svelte/internal/client";
11091
11191
  var root35 = $73.from_html(`<div><span class="diff-gutter svelte-hc3elb"></span> <span class="diff-text svelte-hc3elb"> </span></div>`);
11092
11192
  var root_125 = $73.from_html(`<button type="button"><span class="diff-gutter svelte-hc3elb">+</span> <span class="diff-text svelte-hc3elb"> </span></button>`);
11093
11193
  var root_218 = $73.from_html(`<div><span class="diff-gutter svelte-hc3elb">+</span> <span class="diff-text svelte-hc3elb"> </span></div>`);
11094
- var root_314 = $73.from_html(`<del class="svelte-hc3elb"> </del>`);
11095
- var root_411 = $73.from_html(`<button type="button"><span class="diff-gutter svelte-hc3elb"> </span> <span class="diff-text svelte-hc3elb"><!></span></button>`);
11194
+ var root_316 = $73.from_html(`<del class="svelte-hc3elb"> </del>`);
11195
+ var root_413 = $73.from_html(`<button type="button"><span class="diff-gutter svelte-hc3elb"> </span> <span class="diff-text svelte-hc3elb"><!></span></button>`);
11096
11196
  var root_59 = $73.from_html(`<div><span class="diff-gutter svelte-hc3elb"> </span> <span class="diff-text svelte-hc3elb"><!></span></div>`);
11097
11197
  var root_66 = $73.from_html(`<span> </span>`);
11098
11198
  var root_76 = $73.from_html(`<del class="word-removed svelte-hc3elb"> </del>`);
@@ -11192,7 +11292,7 @@ function Diff_line($$anchor, $$props) {
11192
11292
  var node_3 = $73.first_child(fragment_3);
11193
11293
  {
11194
11294
  var consequent_4 = ($$anchor4) => {
11195
- var button_1 = root_411();
11295
+ var button_1 = root_413();
11196
11296
  var span_3 = $73.child(button_1);
11197
11297
  var text_4 = $73.child(span_3, true);
11198
11298
  $73.reset(span_3);
@@ -11200,7 +11300,7 @@ function Diff_line($$anchor, $$props) {
11200
11300
  var node_4 = $73.child(span_4);
11201
11301
  {
11202
11302
  var consequent_3 = ($$anchor5) => {
11203
- var del = root_314();
11303
+ var del = root_316();
11204
11304
  var text_5 = $73.child(del, true);
11205
11305
  $73.reset(del);
11206
11306
  $73.template_effect(() => $73.set_text(text_5, $$props.diff.text || " "));
@@ -11242,7 +11342,7 @@ function Diff_line($$anchor, $$props) {
11242
11342
  var node_5 = $73.child(span_6);
11243
11343
  {
11244
11344
  var consequent_5 = ($$anchor5) => {
11245
- var del_1 = root_314();
11345
+ var del_1 = root_316();
11246
11346
  var text_8 = $73.child(del_1, true);
11247
11347
  $73.reset(del_1);
11248
11348
  $73.template_effect(() => $73.set_text(text_8, $$props.diff.text || " "));
@@ -11718,8 +11818,8 @@ var rest_excludes27 = new Set([
11718
11818
  var root39 = $79.from_html(`<!> <!> <!>`, 1);
11719
11819
  var root_127 = $79.from_html(`<span class="no-changes svelte-1p8ursg">No changes</span>`);
11720
11820
  var root_219 = $79.from_html(`<!> Revert All`, 1);
11721
- var root_315 = $79.from_html(`<!> Compute Diff`, 1);
11722
- var root_412 = $79.from_html(`<div class="navigation svelte-1p8ursg"><!> <span class="change-counter svelte-1p8ursg"> </span> <!></div> <div class="shortcuts svelte-1p8ursg"><!> <!></div>`, 1);
11821
+ var root_317 = $79.from_html(`<!> Compute Diff`, 1);
11822
+ var root_414 = $79.from_html(`<div class="navigation svelte-1p8ursg"><!> <span class="change-counter svelte-1p8ursg"> </span> <!></div> <div class="shortcuts svelte-1p8ursg"><!> <!></div>`, 1);
11723
11823
  var root_510 = $79.from_html(`<span class="front-matter-only-hint svelte-1p8ursg">Front matter only</span>`);
11724
11824
  var root_67 = $79.from_html(`<div><div class="toolbar-left svelte-1p8ursg"><!> <div class="stats svelte-1p8ursg"><!> <!> <!> <!> <!> <!></div></div> <div class="toolbar-right svelte-1p8ursg"><!> <!> <!> <!></div></div>`);
11725
11825
  function Diff_toolbar($$anchor, $$props) {
@@ -11938,7 +12038,7 @@ function Diff_toolbar($$anchor, $$props) {
11938
12038
  return $79.get(isComputing);
11939
12039
  },
11940
12040
  children: ($$anchor3, $$slotProps) => {
11941
- var fragment_13 = root_315();
12041
+ var fragment_13 = root_317();
11942
12042
  var node_15 = $79.first_child(fragment_13);
11943
12043
  Refresh_cw(node_15, { class: "cinder-icon-sm" });
11944
12044
  $79.next();
@@ -11959,7 +12059,7 @@ function Diff_toolbar($$anchor, $$props) {
11959
12059
  var node_17 = $79.first_child(fragment_14);
11960
12060
  {
11961
12061
  var consequent_9 = ($$anchor3) => {
11962
- var fragment_15 = root_412();
12062
+ var fragment_15 = root_414();
11963
12063
  var div_4 = $79.first_child(fragment_15);
11964
12064
  var node_18 = $79.child(div_4);
11965
12065
  Button(node_18, {
@@ -12041,8 +12141,8 @@ function Diff_toolbar($$anchor, $$props) {
12041
12141
  var root40 = $80.from_html(`<span class="compute-time svelte-1fvc2en"> </span>`);
12042
12142
  var root_128 = $80.from_html(`<div class="diff-warning svelte-1fvc2en" role="status"> <!></div>`);
12043
12143
  var root_220 = $80.from_html(`<!> Revert`, 1);
12044
- var root_316 = $80.from_html(`<div class="hunk-header svelte-1fvc2en"><span class="hunk-range svelte-1fvc2en"> </span> <!></div>`);
12045
- var root_413 = $80.from_html(`<!> <!>`, 1);
12144
+ var root_318 = $80.from_html(`<div class="hunk-header svelte-1fvc2en"><span class="hunk-range svelte-1fvc2en"> </span> <!></div>`);
12145
+ var root_415 = $80.from_html(`<!> <!>`, 1);
12046
12146
  var root_511 = $80.from_html(`<!> <!> <div class="diff-content svelte-1fvc2en"><!> <!></div>`, 1);
12047
12147
  function Diff_viewer($$anchor, $$props) {
12048
12148
  const instanceId = $80.props_id();
@@ -12343,11 +12443,11 @@ ${match[1] ?? ""}
12343
12443
  $80.each(node_7, 17, () => $80.get(lineDiffs), $80.index, ($$anchor3, lineDiff, idx) => {
12344
12444
  const isSelected = $80.derived(() => $80.get(selectedLineIndex) === idx);
12345
12445
  const hunkAtLine = $80.derived(() => $80.get(hunkStartMap).get(idx));
12346
- var fragment_7 = root_413();
12446
+ var fragment_7 = root_415();
12347
12447
  var node_8 = $80.first_child(fragment_7);
12348
12448
  {
12349
12449
  var consequent_5 = ($$anchor4) => {
12350
- var div_2 = root_316();
12450
+ var div_2 = root_318();
12351
12451
  var span_1 = $80.child(div_2);
12352
12452
  var text_2 = $80.child(span_1);
12353
12453
  $80.reset(span_1);
@@ -12601,8 +12701,8 @@ import {
12601
12701
  var root42 = $82.from_html(`<input type="hidden" class="svelte-1rnat08"/> <input type="hidden" class="svelte-1rnat08"/> <input type="hidden" class="svelte-1rnat08"/> <input type="hidden" class="svelte-1rnat08"/> <input type="hidden" class="svelte-1rnat08"/>`, 1);
12602
12702
  var root_130 = $82.from_html(`<div class="review-editor-view-panel svelte-1rnat08" role="tabpanel" aria-label="Editor view"><!> <!></div>`);
12603
12703
  var root_222 = $82.from_html(`<div class="review-editor-view-panel svelte-1rnat08" role="tabpanel" aria-label="Diff view"><!></div>`);
12604
- var root_317 = $82.from_html(`<div class="summary-view svelte-1rnat08" role="region" aria-label="Review summary"><div class="summary-empty svelte-1rnat08"><p class="svelte-1rnat08">No changes or comments to summarize.</p> <p class="summary-hint svelte-1rnat08">Edit the document or add comments to generate a summary.</p></div></div>`);
12605
- var root_414 = $82.from_html(`<div class="review-editor-view-panel svelte-1rnat08" role="tabpanel" aria-label="Summary view"><!></div>`);
12704
+ var root_319 = $82.from_html(`<div class="summary-view svelte-1rnat08" role="region" aria-label="Review summary"><div class="summary-empty svelte-1rnat08"><p class="svelte-1rnat08">No changes or comments to summarize.</p> <p class="summary-hint svelte-1rnat08">Edit the document or add comments to generate a summary.</p></div></div>`);
12705
+ var root_416 = $82.from_html(`<div class="review-editor-view-panel svelte-1rnat08" role="tabpanel" aria-label="Summary view"><!></div>`);
12606
12706
  var root_512 = $82.from_html(`<div data-testid="review-editor"><!> <!> <!> <div class="review-editor-main svelte-1rnat08"><!></div> <!> <!> <!></div>`);
12607
12707
  function Review_editor_impl($$anchor, $$props) {
12608
12708
  $82.push($$props, true);
@@ -13320,8 +13420,8 @@ function Review_editor_impl($$anchor, $$props) {
13320
13420
  if (mode() === "readonly")
13321
13421
  return;
13322
13422
  const thread = threads().find((t) => t.id === threadId);
13323
- const comment51 = thread?.comments.find((c) => c.id === commentId);
13324
- if (!comment51 || comment51.deletedAt)
13423
+ const comment52 = thread?.comments.find((c) => c.id === commentId);
13424
+ if (!comment52 || comment52.deletedAt)
13325
13425
  return;
13326
13426
  const mentions = extractMentions(body);
13327
13427
  $$props.oncommentupdate?.({
@@ -13335,8 +13435,8 @@ function Review_editor_impl($$anchor, $$props) {
13335
13435
  if (mode() === "readonly")
13336
13436
  return;
13337
13437
  const thread = threads().find((t) => t.id === threadId);
13338
- const comment51 = thread?.comments.find((c) => c.id === commentId);
13339
- if (!comment51 || soft && comment51.deletedAt)
13438
+ const comment52 = thread?.comments.find((c) => c.id === commentId);
13439
+ if (!comment52 || soft && comment52.deletedAt)
13340
13440
  return;
13341
13441
  $$props.oncommentdelete?.({ threadId, commentId, soft });
13342
13442
  announce("Comment deleted");
@@ -13629,7 +13729,7 @@ function Review_editor_impl($$anchor, $$props) {
13629
13729
  $82.append($$anchor2, div_3);
13630
13730
  };
13631
13731
  var alternate_1 = ($$anchor2) => {
13632
- var div_4 = root_414();
13732
+ var div_4 = root_416();
13633
13733
  var node_8 = $82.child(div_4);
13634
13734
  {
13635
13735
  var consequent_4 = ($$anchor3) => {
@@ -13647,7 +13747,7 @@ function Review_editor_impl($$anchor, $$props) {
13647
13747
  });
13648
13748
  };
13649
13749
  var alternate = ($$anchor3) => {
13650
- var div_5 = root_317();
13750
+ var div_5 = root_319();
13651
13751
  $82.append($$anchor3, div_5);
13652
13752
  };
13653
13753
  $82.if(node_8, ($$render) => {
@@ -14155,8 +14255,8 @@ function createThreadManager(options) {
14155
14255
  if (getMode() === "readonly")
14156
14256
  return;
14157
14257
  const thread = getThreads().find((t) => t.id === threadId);
14158
- const comment51 = thread?.comments.find((c) => c.id === commentId);
14159
- if (!comment51 || comment51.deletedAt)
14258
+ const comment52 = thread?.comments.find((c) => c.id === commentId);
14259
+ if (!comment52 || comment52.deletedAt)
14160
14260
  return;
14161
14261
  const mentions = extractMentions2(body);
14162
14262
  oncommentupdate?.({
@@ -14170,8 +14270,8 @@ function createThreadManager(options) {
14170
14270
  if (getMode() === "readonly")
14171
14271
  return;
14172
14272
  const thread = getThreads().find((t) => t.id === threadId);
14173
- const comment51 = thread?.comments.find((c) => c.id === commentId);
14174
- if (!comment51 || soft && comment51.deletedAt)
14273
+ const comment52 = thread?.comments.find((c) => c.id === commentId);
14274
+ if (!comment52 || soft && comment52.deletedAt)
14175
14275
  return;
14176
14276
  oncommentdelete?.({ threadId, commentId, soft });
14177
14277
  announce("Comment deleted");
@@ -14645,4 +14745,4 @@ export {
14645
14745
  Comment_composer as CommentComposer
14646
14746
  };
14647
14747
 
14648
- //# debugId=8C5C90BCE8F473E764756E2164756E21
14748
+ //# debugId=CC64B0FC9403C68764756E2164756E21