@lostgradient/cinder 0.12.1 → 0.14.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 (90) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/components.json +55 -5
  3. package/dist/components/chat/index.js +93 -93
  4. package/dist/components/chat-conversation-header/index.js +3 -3
  5. package/dist/components/diff-viewer/index.js +230 -130
  6. package/dist/components/json-schema-editor/index.js +258 -158
  7. package/dist/components/markdown-editor/index.js +224 -124
  8. package/dist/components/review-editor/index.js +364 -264
  9. package/dist/components/schedule-builder/index.js +205 -105
  10. package/dist/components/segment/index.js +119 -56
  11. package/dist/components/segment/segment.schema.d.ts +2 -2
  12. package/dist/components/segment/segment.schema.js +71 -33
  13. package/dist/components/segment/segment.svelte.d.ts +2 -1
  14. package/dist/components/segment/segment.types.d.ts +67 -10
  15. package/dist/components/segmented-control/index.js +193 -93
  16. package/dist/components/segmented-control/segmented-control-state.svelte.d.ts +4 -4
  17. package/dist/components/segmented-control/segmented-control.css +26 -6
  18. package/dist/components/segmented-control/segmented-control.schema.js +3 -3
  19. package/dist/components/segmented-control/segmented-control.svelte.d.ts +2 -1
  20. package/dist/components/segmented-control/segmented-control.types.d.ts +4 -4
  21. package/dist/components/selectable-row/index.d.ts +5 -0
  22. package/dist/components/selectable-row/index.js +288 -0
  23. package/dist/components/selectable-row/selectable-row.css +128 -0
  24. package/dist/components/selectable-row/selectable-row.css.d.ts +1 -0
  25. package/dist/components/selectable-row/selectable-row.schema.d.ts +3 -0
  26. package/dist/components/selectable-row/selectable-row.schema.js +155 -0
  27. package/dist/components/selectable-row/selectable-row.svelte.d.ts +24 -0
  28. package/dist/components/selectable-row/selectable-row.types.d.ts +84 -0
  29. package/dist/components/selectable-row/selectable-row.variables.d.ts +2 -0
  30. package/dist/components/selectable-row/selectable-row.variables.js +68 -0
  31. package/dist/components/sidebar/index.d.ts +1 -0
  32. package/dist/components/sidebar/index.js +9 -3
  33. package/dist/components/sidebar/sidebar.constants.d.ts +12 -0
  34. package/dist/index.d.ts +3 -1
  35. package/dist/index.js +4408 -4075
  36. package/dist/server/components/chat/index.js +2 -2
  37. package/dist/server/components/chat-conversation-header/index.js +2 -2
  38. package/dist/server/components/diff-viewer/index.js +4 -4
  39. package/dist/server/components/json-schema-editor/index.js +4 -4
  40. package/dist/server/components/markdown-editor/index.js +3 -3
  41. package/dist/server/components/review-editor/index.js +53 -53
  42. package/dist/server/components/schedule-builder/index.js +3 -3
  43. package/dist/server/components/segment/index.js +2 -2
  44. package/dist/server/components/segmented-control/index.js +3 -3
  45. package/dist/server/components/selectable-row/index.js +12 -0
  46. package/dist/server/components/side-navigation/index.js +2 -2
  47. package/dist/server/components/sidebar/index.js +7 -3
  48. package/dist/server/index.js +44 -33
  49. package/dist/server/{index.server-3w72dxz7.js → index.server-0jhra85x.js} +4 -4
  50. package/dist/server/index.server-1gzbrhhh.js +151 -0
  51. package/dist/server/{index.server-jgb8yh5k.js → index.server-2m1kenak.js} +1 -1
  52. package/dist/server/{index.server-jfrssta6.js → index.server-46cjwcqw.js} +1 -1
  53. package/dist/server/{index.server-2zdbz3rj.js → index.server-8rmtb8vx.js} +4 -4
  54. package/dist/server/{index.server-pag862vz.js → index.server-9ra3xv88.js} +28 -28
  55. package/dist/server/{index.server-sedjxt36.js → index.server-e89qfamd.js} +79 -35
  56. package/dist/server/{index.server-4x4hgvqe.js → index.server-f2me5abn.js} +114 -114
  57. package/dist/server/{index.server-2qj6s2mh.js → index.server-j570vb03.js} +7 -3
  58. package/dist/server/{index.server-xeqtpv61.js → index.server-mr68brd6.js} +49 -24
  59. package/dist/server/{index.server-2s5h1d05.js → index.server-nphtb2ey.js} +1 -1
  60. package/dist/server/{index.server-qbkxz7r2.js → index.server-nx9c2ep1.js} +2 -2
  61. package/dist/server/{index.server-jj76374p.js → index.server-t1x9h8cb.js} +1 -1
  62. package/dist/server/{index.server-5gzyqv78.js → index.server-vhyjjx9z.js} +34 -34
  63. package/dist/server/{index.server-85p4ydph.js → index.server-zzd5wpbw.js} +1 -1
  64. package/package.json +33 -1
  65. package/src/components/segment/segment.schema.json +34 -7
  66. package/src/components/segment/segment.schema.ts +5 -47
  67. package/src/components/segment/segment.svelte +58 -23
  68. package/src/components/segment/segment.types.ts +81 -11
  69. package/src/components/segmented-control/segmented-control.css +26 -6
  70. package/src/components/segmented-control/segmented-control.examples.json +6 -0
  71. package/src/components/segmented-control/segmented-control.schema.json +2 -2
  72. package/src/components/segmented-control/segmented-control.schema.ts +2 -2
  73. package/src/components/segmented-control/segmented-control.svelte +50 -23
  74. package/src/components/segmented-control/segmented-control.types.ts +4 -7
  75. package/src/components/selectable-row/index.ts +12 -0
  76. package/src/components/selectable-row/selectable-row.css +128 -0
  77. package/src/components/selectable-row/selectable-row.examples.json +13 -0
  78. package/src/components/selectable-row/selectable-row.schema.json +95 -0
  79. package/src/components/selectable-row/selectable-row.schema.ts +104 -0
  80. package/src/components/selectable-row/selectable-row.svelte +95 -0
  81. package/src/components/selectable-row/selectable-row.types.ts +97 -0
  82. package/src/components/selectable-row/selectable-row.variables.json +8 -0
  83. package/src/components/selectable-row/selectable-row.variables.ts +10 -0
  84. package/src/components/sidebar/index.ts +1 -0
  85. package/src/components/sidebar/sidebar.constants.ts +13 -0
  86. package/src/components/sidebar/sidebar.examples.json +6 -0
  87. package/src/components/sidebar/sidebar.svelte +4 -5
  88. package/src/index.ts +14 -1
  89. package/src/styles/components.css +1 -0
  90. 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);
@@ -3116,8 +3216,8 @@ function Segmented_control($$anchor, $$props) {
3116
3216
  import"svelte/internal/disclose-version";
3117
3217
  import * as $10 from "svelte/internal/client";
3118
3218
  var rest_excludes5 = new Set(["$$slots", "$$events", "$$legacy", "lines", "class"]);
3119
- var root5 = $10.from_html(`<div class="skeleton-line svelte-1h3fabh"></div>`);
3120
- var root_13 = $10.from_html(`<div><span class="sr-only svelte-1h3fabh">Loading editor...</span> <div class="skeleton-content svelte-1h3fabh"></div></div>`);
3219
+ var root5 = $10.from_html(`<div class="skeleton-line svelte-11clpuf"></div>`);
3220
+ var root_13 = $10.from_html(`<div><span class="sr-only svelte-11clpuf">Loading editor...</span> <div class="skeleton-content svelte-11clpuf"></div></div>`);
3121
3221
  function Editor_skeleton($$anchor, $$props) {
3122
3222
  $10.push($$props, true);
3123
3223
  let lines = $10.prop($$props, "lines", 3, 8), rest = $10.rest_props($$props, rest_excludes5);
@@ -3137,7 +3237,7 @@ function Editor_skeleton($$anchor, $$props) {
3137
3237
  ...rest
3138
3238
  }), [
3139
3239
  () => classNames("editor-skeleton", "surface", $$props.class)
3140
- ], undefined, undefined, "svelte-1h3fabh");
3240
+ ], undefined, undefined, "svelte-11clpuf");
3141
3241
  var div_1 = $10.sibling($10.child(div), 2);
3142
3242
  $10.each(div_1, 21, () => $10.get(lineWidths), $10.index, ($$anchor2, width) => {
3143
3243
  var div_2 = root5();
@@ -4486,7 +4586,7 @@ function Toolbar_button($$anchor, $$props) {
4486
4586
  disabled: disabled(),
4487
4587
  onclick: $$props.onclick,
4488
4588
  ...rest
4489
- }), [() => classNames("toolbar-button", $$props.class)], undefined, undefined, "svelte-143lto0");
4589
+ }), [() => classNames("toolbar-button", $$props.class)], undefined, undefined, "svelte-1gc0ze2");
4490
4590
  var node = $30.child(button);
4491
4591
  $30.component(node, () => $$props.icon, ($$anchor3, Icon_1) => {
4492
4592
  Icon_1($$anchor3, { class: "cinder-icon-sm" });
@@ -4514,7 +4614,7 @@ function Toolbar_separator($$anchor, $$props) {
4514
4614
  "aria-orientation": "vertical",
4515
4615
  "aria-hidden": "true",
4516
4616
  ...rest
4517
- }), [() => classNames("toolbar-separator", $$props.class)], undefined, undefined, "svelte-1v2jo71");
4617
+ }), [() => classNames("toolbar-separator", $$props.class)], undefined, undefined, "svelte-1e24hcn");
4518
4618
  $31.append($$anchor, div);
4519
4619
  $31.pop();
4520
4620
  }
@@ -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,
@@ -5553,8 +5653,8 @@ function Dropdown_item($$anchor, $$props) {
5553
5653
  }
5554
5654
 
5555
5655
  // src/components/markdown-editor/editor-toolbar/toolbar-dropdown.svelte
5556
- var root15 = $37.from_html(`<!> <span class="toolbar-dropdown-label svelte-1v28aut"> </span>`, 1);
5557
- var root_17 = $37.from_html(`<!> <span class="dropdown-item-label svelte-1v28aut"> </span> <!>`, 1);
5656
+ var root15 = $37.from_html(`<!> <span class="toolbar-dropdown-label svelte-zab6u7"> </span>`, 1);
5657
+ var root_17 = $37.from_html(`<!> <span class="dropdown-item-label svelte-zab6u7"> </span> <!>`, 1);
5558
5658
  var root_24 = $37.from_html(`<!> <!>`, 1);
5559
5659
  function Toolbar_dropdown($$anchor, $$props) {
5560
5660
  $37.push($$props, true);
@@ -5685,8 +5785,8 @@ var rest_excludes13 = new Set([
5685
5785
  "class",
5686
5786
  "aria-label"
5687
5787
  ]);
5688
- var root16 = $38.from_html(`<div class="toolbar-spacer svelte-1m9m099"></div> <!>`, 1);
5689
- var root_18 = $38.from_html(`<div class="toolbar-group svelte-1m9m099" role="group" aria-label="History"><!> <!></div> <!> <div class="toolbar-group svelte-1m9m099" role="group" aria-label="Block type"><!></div> <!> <div class="toolbar-group svelte-1m9m099" role="group" aria-label="Text formatting"><!> <!> <!> <!></div> <!> <div class="toolbar-group svelte-1m9m099" role="group" aria-label="Links"><!></div> <!> <div class="toolbar-group svelte-1m9m099" role="group" aria-label="Lists"><!> <!></div> <!> <div class="toolbar-group svelte-1m9m099" role="group" aria-label="Block operations"><!></div> <!>`, 1);
5788
+ var root16 = $38.from_html(`<div class="toolbar-spacer svelte-1o0hobr"></div> <!>`, 1);
5789
+ var root_18 = $38.from_html(`<div class="toolbar-group svelte-1o0hobr" role="group" aria-label="History"><!> <!></div> <!> <div class="toolbar-group svelte-1o0hobr" role="group" aria-label="Block type"><!></div> <!> <div class="toolbar-group svelte-1o0hobr" role="group" aria-label="Text formatting"><!> <!> <!> <!></div> <!> <div class="toolbar-group svelte-1o0hobr" role="group" aria-label="Links"><!></div> <!> <div class="toolbar-group svelte-1o0hobr" role="group" aria-label="Lists"><!> <!></div> <!> <div class="toolbar-group svelte-1o0hobr" role="group" aria-label="Block operations"><!></div> <!>`, 1);
5690
5790
  function Editor_toolbar($$anchor, $$props) {
5691
5791
  $38.push($$props, true);
5692
5792
  let canUndo = $38.prop($$props, "canUndo", 3, false), canRedo = $38.prop($$props, "canRedo", 3, false), disabled = $38.prop($$props, "disabled", 3, false), linkPopoverOpen = $38.prop($$props, "linkPopoverOpen", 3, false), rest = $38.rest_props($$props, rest_excludes13);
@@ -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);
@@ -6670,7 +6770,7 @@ function X($$anchor, $$props) {
6670
6770
  }
6671
6771
  // src/components/markdown-editor/editor-toolbar/link-popover.svelte
6672
6772
  var root19 = $43.from_html(`<!> Remove`, 1);
6673
- var root_111 = $43.from_html(`<div role="dialog" aria-modal="true" tabindex="-1"><header class="link-popover-header svelte-13b14j2"><h2 class="link-popover-title svelte-13b14j2"><!> </h2> <button type="button" class="link-popover-close svelte-13b14j2" aria-label="Close"><!></button></header> <div class="link-popover-content svelte-13b14j2"><!> <!></div> <footer class="link-popover-footer svelte-13b14j2"><div class="link-popover-actions svelte-13b14j2"><!></div> <div class="link-popover-primary-actions svelte-13b14j2"><!> <!></div></footer></div>`);
6773
+ var root_111 = $43.from_html(`<div role="dialog" aria-modal="true" tabindex="-1"><header class="link-popover-header svelte-iyoii8"><h2 class="link-popover-title svelte-iyoii8"><!> </h2> <button type="button" class="link-popover-close svelte-iyoii8" aria-label="Close"><!></button></header> <div class="link-popover-content svelte-iyoii8"><!> <!></div> <footer class="link-popover-footer svelte-iyoii8"><div class="link-popover-actions svelte-iyoii8"><!></div> <div class="link-popover-primary-actions svelte-iyoii8"><!> <!></div></footer></div>`);
6674
6774
  function Link_popover($$anchor, $$props) {
6675
6775
  $43.push($$props, true);
6676
6776
  let mode = $43.prop($$props, "mode", 3, "insert"), initialUrl = $43.prop($$props, "initialUrl", 3, ""), initialText = $43.prop($$props, "initialText", 3, ""), hasSelection = $43.prop($$props, "hasSelection", 3, false), anchorElement = $43.prop($$props, "anchorElement", 3, null);
@@ -6897,7 +6997,7 @@ function Link_popover($$anchor, $$props) {
6897
6997
  $43.template_effect(($0) => {
6898
6998
  $43.set_attribute(div, "id", $$props.id);
6899
6999
  $43.set_attribute(div, "aria-labelledby", `${$$props.id}-title`);
6900
- $43.set_class(div, 1, $0, "svelte-13b14j2");
7000
+ $43.set_class(div, 1, $0, "svelte-iyoii8");
6901
7001
  $43.set_style(div, anchorElement() ? anchoredOverlay.positionStyle : undefined);
6902
7002
  $43.set_attribute(div, "data-position-ready", anchorElement() ? anchoredOverlay.positionReady : undefined);
6903
7003
  div.inert = anchorElement() && !anchoredOverlay.positionReady ? true : undefined;
@@ -6941,14 +7041,14 @@ var rest_excludes16 = new Set([
6941
7041
  "snapshotMode",
6942
7042
  "aria-describedby"
6943
7043
  ]);
6944
- var root20 = $44.from_html(`<div class="toolbar-leading svelte-1mxvqjb"><!></div>`);
6945
- var root_112 = $44.from_html(`<div class="toolbar-actions svelte-1mxvqjb"><!></div>`);
7044
+ var root20 = $44.from_html(`<div class="toolbar-leading svelte-1i6d4x"><!></div>`);
7045
+ var root_112 = $44.from_html(`<div class="toolbar-actions svelte-1i6d4x"><!></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>`);
6949
- var root_53 = $44.from_html(`<div class="cinder-markdown-content markdown-editor surface svelte-1mxvqjb" role="application" tabindex="0"></div>`);
6950
- var root_62 = $44.from_html(`<textarea class="markdown-editor surface source-mode svelte-1mxvqjb" aria-multiline="true"></textarea>`);
6951
- var root_72 = $44.from_html(`<div><div class="markdown-editor-layout svelte-1mxvqjb"><!> <!></div> <!></div>`);
7047
+ var root_36 = $44.from_html(`<div class="toolbar-mode-toggle svelte-1i6d4x"><!></div>`);
7048
+ var root_45 = $44.from_html(`<div class="editor-toolbar-wrapper svelte-1i6d4x"><!> <!> <!> <!></div>`);
7049
+ var root_53 = $44.from_html(`<div class="cinder-markdown-content markdown-editor surface svelte-1i6d4x" role="application" tabindex="0"></div>`);
7050
+ var root_62 = $44.from_html(`<textarea class="markdown-editor surface source-mode svelte-1i6d4x" aria-multiline="true"></textarea>`);
7051
+ var root_72 = $44.from_html(`<div><div class="markdown-editor-layout svelte-1i6d4x"><!> <!></div> <!></div>`);
6952
7052
  function Markdown_editor($$anchor, $$props) {
6953
7053
  $44.push($$props, true);
6954
7054
  let label = $44.prop($$props, "label", 3, "Markdown editor"), value = $44.prop($$props, "value", 15, ""), mode = $44.prop($$props, "mode", 15, "wysiwyg"), showModeToggle = $44.prop($$props, "showModeToggle", 3, false), modeLabel = $44.prop($$props, "modeLabel", 3, "Editor mode"), readonly = $44.prop($$props, "readonly", 3, false), placeholder = $44.prop($$props, "placeholder", 3, "Start writing..."), showToolbar = $44.prop($$props, "showToolbar", 3, true), plugins = $44.prop($$props, "plugins", 19, () => []), snapshotMode = $44.prop($$props, "snapshotMode", 3, false), rest = $44.rest_props($$props, rest_excludes16);
@@ -7355,7 +7455,7 @@ function Markdown_editor($$anchor, $$props) {
7355
7455
  "data-has-toolbar": $44.get(toolbarVisible) || undefined,
7356
7456
  "data-snapshot-mode": snapshotMode() || undefined,
7357
7457
  ...rest
7358
- }), [() => classNames("markdown-editor-wrapper", $$props.class)], undefined, undefined, "svelte-1mxvqjb");
7458
+ }), [() => classNames("markdown-editor-wrapper", $$props.class)], undefined, undefined, "svelte-1i6d4x");
7359
7459
  var div_1 = $44.child(div);
7360
7460
  var node = $44.child(div_1);
7361
7461
  {
@@ -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`);
@@ -7719,14 +7819,14 @@ function Trash_2($$anchor, $$props) {
7719
7819
  }));
7720
7820
  }
7721
7821
  // src/components/review-editor/comment-list.svelte
7722
- var root21 = $47.from_html(`<span class="comment-edited svelte-11dydst">(edited)</span>`);
7723
- 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
- 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>`);
7727
- var root_54 = $47.from_html(`<div class="comment-actions svelte-11dydst"><!> <!></div>`);
7728
- 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
- var root_73 = $47.from_html(`<p class="comment-list-empty svelte-11dydst">No comments yet.</p>`);
7822
+ var root21 = $47.from_html(`<span class="comment-edited svelte-kwc73r">(edited)</span>`);
7823
+ var root_113 = $47.from_html(`<div class="comment-edit svelte-kwc73r"><label class="sr-only svelte-kwc73r">Edit comment</label> <textarea class="comment-edit-textarea svelte-kwc73r"></textarea> <div class="comment-edit-actions svelte-kwc73r"><!> <!></div></div>`);
7824
+ var root_28 = $47.from_html(`<div class="comment-body svelte-kwc73r"> </div>`);
7825
+ var root_37 = $47.from_html(`<button type="button" class="comment-action svelte-kwc73r" 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-kwc73r" aria-label="Delete comment" title="Delete comment"><!></button>`);
7827
+ var root_54 = $47.from_html(`<div class="comment-actions svelte-kwc73r"><!> <!></div>`);
7828
+ var root_63 = $47.from_html(`<article class="comment svelte-kwc73r"><header class="comment-header svelte-kwc73r"><div class="comment-author svelte-kwc73r"><div class="comment-avatar svelte-kwc73r" aria-hidden="true"> </div> <span class="comment-author-name svelte-kwc73r"> </span></div> <div class="comment-meta svelte-kwc73r"><time class="comment-time svelte-kwc73r"> </time> <!></div></header> <!> <!></article>`);
7829
+ var root_73 = $47.from_html(`<p class="comment-list-empty svelte-kwc73r">No comments yet.</p>`);
7730
7830
  var root_82 = $47.from_html(`<div><!> <!></div>`);
7731
7831
  function Comment_list($$anchor, $$props) {
7732
7832
  $47.push($$props, true);
@@ -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
  });
@@ -7926,7 +8026,7 @@ function Comment_list($$anchor, $$props) {
7926
8026
  });
7927
8027
  }
7928
8028
  $47.reset(div);
7929
- $47.template_effect(($0) => $47.set_class(div, 1, $0, "svelte-11dydst"), [() => $47.clsx(classNames("comment-list", $$props.class))]);
8029
+ $47.template_effect(($0) => $47.set_class(div, 1, $0, "svelte-kwc73r"), [() => $47.clsx(classNames("comment-list", $$props.class))]);
7930
8030
  $47.append($$anchor, div);
7931
8031
  $47.pop();
7932
8032
  }
@@ -7953,8 +8053,8 @@ var rest_excludes17 = new Set([
7953
8053
  "oncancel",
7954
8054
  "actions"
7955
8055
  ]);
7956
- var root22 = $48.from_html(`<p class="comment-composer-error svelte-uu92gn" role="alert"> </p>`);
7957
- var root_114 = $48.from_html(`<form><label class="sr-only svelte-uu92gn">Comment</label> <div class="comment-composer-textarea-container svelte-uu92gn"><textarea></textarea> <div class="comment-composer-inline-submit svelte-uu92gn"><!></div></div> <!> <div class="comment-composer-footer svelte-uu92gn"><span class="comment-composer-hint svelte-uu92gn"><kbd class="svelte-uu92gn"> </kbd><kbd class="svelte-uu92gn">↵</kbd> to submit</span> <div class="comment-composer-actions svelte-uu92gn"><!></div></div></form>`);
8056
+ var root22 = $48.from_html(`<p class="comment-composer-error svelte-61uhb5" role="alert"> </p>`);
8057
+ var root_114 = $48.from_html(`<form><label class="sr-only svelte-61uhb5">Comment</label> <div class="comment-composer-textarea-container svelte-61uhb5"><textarea></textarea> <div class="comment-composer-inline-submit svelte-61uhb5"><!></div></div> <!> <div class="comment-composer-footer svelte-61uhb5"><span class="comment-composer-hint svelte-61uhb5"><kbd class="svelte-61uhb5"> </kbd><kbd class="svelte-61uhb5">↵</kbd> to submit</span> <div class="comment-composer-actions svelte-61uhb5"><!></div></div></form>`);
7958
8058
  function Comment_composer($$anchor, $$props) {
7959
8059
  $48.push($$props, true);
7960
8060
  let value = $48.prop($$props, "value", 15, ""), placeholder = $48.prop($$props, "placeholder", 3, "Write a comment..."), disabled = $48.prop($$props, "disabled", 3, false), loading = $48.prop($$props, "loading", 3, false), minRows = $48.prop($$props, "minRows", 3, 3), autoExpand = $48.prop($$props, "autoExpand", 3, true), rest = $48.rest_props($$props, rest_excludes17);
@@ -8030,7 +8130,7 @@ function Comment_composer($$anchor, $$props) {
8030
8130
  "aria-describedby": $$props.error ? $48.get(errorId2) : undefined,
8031
8131
  "aria-busy": loading() ? "true" : undefined,
8032
8132
  ...rest
8033
- }), undefined, undefined, undefined, "svelte-uu92gn");
8133
+ }), undefined, undefined, undefined, "svelte-61uhb5");
8034
8134
  $48.bind_this(textarea, ($$value) => $48.set(textareaElement, $$value), () => $48.get(textareaElement));
8035
8135
  var div_1 = $48.sibling(textarea, 2);
8036
8136
  var node = $48.child(div_1);
@@ -8119,7 +8219,7 @@ function Comment_composer($$anchor, $$props) {
8119
8219
  $48.reset(div_2);
8120
8220
  $48.reset(form);
8121
8221
  $48.template_effect(($0) => {
8122
- $48.set_class(form, 1, $0, "svelte-uu92gn");
8222
+ $48.set_class(form, 1, $0, "svelte-61uhb5");
8123
8223
  $48.set_attribute(label, "for", $$props.id);
8124
8224
  $48.set_text(text_2, $48.get(isMac) ? "⌘" : "Ctrl");
8125
8225
  }, [() => $48.clsx(classNames("comment-composer", $$props.class))]);
@@ -8161,10 +8261,10 @@ function File_text($$anchor, $$props) {
8161
8261
  }));
8162
8262
  }
8163
8263
  // src/components/review-editor/thread-popover.svelte
8164
- var root23 = $50.from_html(`<span class="thread-popover-document-label svelte-jqotwh"><!> Document comment</span>`);
8165
- var root_115 = $50.from_html(`<span class="thread-popover-quote svelte-jqotwh"> </span>`);
8166
- 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>`);
8264
+ var root23 = $50.from_html(`<span class="thread-popover-document-label svelte-1oqgxyr"><!> Document comment</span>`);
8265
+ var root_115 = $50.from_html(`<span class="thread-popover-quote svelte-1oqgxyr"> </span>`);
8266
+ var root_29 = $50.from_html(`<div class="thread-popover-composer svelte-1oqgxyr"><!></div>`);
8267
+ var root_38 = $50.from_html(`<div role="dialog" aria-modal="true" tabindex="-1"><header class="thread-popover-header svelte-1oqgxyr"><div class="thread-popover-title-row svelte-1oqgxyr"><h2 class="thread-popover-title svelte-1oqgxyr"><!></h2> <div class="thread-popover-header-actions svelte-1oqgxyr"><!> <button type="button" class="thread-popover-close svelte-1oqgxyr" aria-label="Close"><!></button></div></div></header> <div class="thread-popover-content svelte-1oqgxyr"><!></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);
@@ -8328,7 +8428,7 @@ function Thread_popover($$anchor, $$props) {
8328
8428
  $50.template_effect(($0) => {
8329
8429
  $50.set_attribute(div, "id", $$props.id);
8330
8430
  $50.set_attribute(div, "aria-labelledby", `${$$props.id ?? ""}-title`);
8331
- $50.set_class(div, 1, $0, "svelte-jqotwh");
8431
+ $50.set_class(div, 1, $0, "svelte-1oqgxyr");
8332
8432
  $50.set_style(div, anchoredOverlay.positionStyle);
8333
8433
  $50.set_attribute(div, "data-position-ready", anchoredOverlay.positionReady);
8334
8434
  div.inert = !anchoredOverlay.positionReady ? true : undefined;
@@ -8619,10 +8719,10 @@ function Message_square($$anchor, $$props) {
8619
8719
  }
8620
8720
  // src/components/review-editor/export-actions.svelte
8621
8721
  var root25 = $57.from_html(`<!> <span class="cinder-sr-only">Copy</span>`, 1);
8622
- var root_117 = $57.from_html(`<span class="copied-label svelte-1cj1bq5">Copied!</span>`);
8722
+ var root_117 = $57.from_html(`<span class="copied-label svelte-1sq414n">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) => {
@@ -8919,7 +9019,7 @@ function Export_actions($$anchor, $$props) {
8919
9019
  $$slots: { default: true }
8920
9020
  });
8921
9021
  $57.reset(div);
8922
- $57.template_effect(($0) => $57.set_class(div, 1, $0, "svelte-1cj1bq5"), [() => $57.clsx(classNames("export-actions", $$props.class))]);
9022
+ $57.template_effect(($0) => $57.set_class(div, 1, $0, "svelte-1sq414n"), [() => $57.clsx(classNames("export-actions", $$props.class))]);
8923
9023
  $57.append($$anchor, div);
8924
9024
  $57.pop();
8925
9025
  }
@@ -8985,12 +9085,12 @@ function Plus($$anchor, $$props) {
8985
9085
  import { getVisibleComments, isDocumentAnchor as isDocumentAnchor2 } from "@lostgradient/cinder/commentary/comments";
8986
9086
  var root26 = $60.from_html(`<!> Clear all comments`, 1);
8987
9087
  var root_118 = $60.from_html(`<!> <!>`, 1);
8988
- 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>`);
8991
- 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
- 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
- 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>`);
9088
+ var root_211 = $60.from_html(`<div class="confirm-clear svelte-1ep4c43" role="alertdialog"><p class="confirm-message svelte-1ep4c43"> </p> <div class="confirm-actions svelte-1ep4c43"><!> <!></div></div>`);
9089
+ var root_310 = $60.from_html(`<div class="document-comment-composer svelte-1ep4c43"><div class="document-comment-header svelte-1ep4c43"><!> <span>Document comment</span></div> <!></div>`);
9090
+ var root_48 = $60.from_html(`<div class="empty-state svelte-1ep4c43"><p class="empty-message svelte-1ep4c43">No comments yet</p> <p class="empty-hint svelte-1ep4c43">Select text or click + to add a comment</p></div>`);
9091
+ var root_56 = $60.from_html(`<button type="button" class="thread-item svelte-1ep4c43" data-document="true"><div class="thread-document-label svelte-1ep4c43"><!> <span>Document comment</span></div> <p class="thread-preview svelte-1ep4c43"> </p></button>`);
9092
+ var root_64 = $60.from_html(`<button type="button" class="thread-item svelte-1ep4c43"><blockquote class="thread-quote svelte-1ep4c43"> </blockquote> <p class="thread-preview svelte-1ep4c43"> </p></button>`);
9093
+ var root_74 = $60.from_html(`<aside aria-label="Comment threads"><div class="sidebar-header svelte-1ep4c43"><!> <h2 class="sidebar-title svelte-1ep4c43">Comments</h2> <span class="thread-count svelte-1ep4c43"> </span> <!> <!></div> <!> <!> <div class="thread-list svelte-1ep4c43"><!></div></aside>`);
8994
9094
  function Comment_sidebar($$anchor, $$props) {
8995
9095
  $60.push($$props, true);
8996
9096
  let activeThreadId = $60.prop($$props, "activeThreadId", 3, null), readonly = $60.prop($$props, "readonly", 3, false);
@@ -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) => {
@@ -9275,7 +9375,7 @@ function Comment_sidebar($$anchor, $$props) {
9275
9375
  $60.reset(aside);
9276
9376
  $60.template_effect(($0) => {
9277
9377
  $60.set_attribute(aside, "id", $$props.id);
9278
- $60.set_class(aside, 1, $0, "svelte-1g8l8sh");
9378
+ $60.set_class(aside, 1, $0, "svelte-1ep4c43");
9279
9379
  $60.set_text(text8, $60.get(visibleThreads).length);
9280
9380
  }, [() => $60.clsx(classNames("comment-sidebar", $$props.class))]);
9281
9381
  $60.append($$anchor, aside);
@@ -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) => {
@@ -10394,9 +10494,9 @@ function Rotate_ccw($$anchor, $$props) {
10394
10494
  // src/components/review-editor/review-editor-controls.svelte
10395
10495
  var root32 = $67.from_html(`<!> <!>`, 1);
10396
10496
  var root_124 = $67.from_html(`<!> <!> <!>`, 1);
10397
- 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);
10497
+ var root_217 = $67.from_html(`<div class="controls-separator svelte-25a3se" aria-hidden="true"></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-25a3se"><!> <!> <!></div> <div class="controls-trailing svelte-25a3se"><!> <div class="comments-toggle-wrapper svelte-25a3se"><!></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);
@@ -10689,7 +10789,7 @@ function Review_editor_controls($$anchor, $$props) {
10689
10789
  $67.reset(div_4);
10690
10790
  $67.template_effect(($0) => {
10691
10791
  $67.set_attribute(div, "id", $$props.id);
10692
- $67.set_class(div, 1, $0, "svelte-161pl7w");
10792
+ $67.set_class(div, 1, $0, "svelte-25a3se");
10693
10793
  $67.set_text(text_7, $67.get(liveAnnouncementText));
10694
10794
  }, [
10695
10795
  () => $67.clsx(classNames("review-editor-controls", $$props.class))
@@ -11003,7 +11103,7 @@ var rest_excludes23 = new Set([
11003
11103
  "variant",
11004
11104
  "class"
11005
11105
  ]);
11006
- var root34 = $72.from_html(`<button><span class="front-matter-icon svelte-1rp9so4"><!></span> <!> <span class="front-matter-label svelte-1rp9so4"> </span> <!></button>`);
11106
+ var root34 = $72.from_html(`<button><span class="front-matter-icon svelte-pqsa46"><!></span> <!> <span class="front-matter-label svelte-pqsa46"> </span> <!></button>`);
11007
11107
  function Front_matter_header($$anchor, $$props) {
11008
11108
  $72.push($$props, true);
11009
11109
  let label = $72.prop($$props, "label", 3, "Front Matter"), expanded = $72.prop($$props, "expanded", 15, true), badgeVariant = $72.prop($$props, "badgeVariant", 3, "neutral"), badgeSize = $72.prop($$props, "badgeSize", 3, "xs"), variant = $72.prop($$props, "variant", 3, "panel"), rest = $72.rest_props($$props, rest_excludes23);
@@ -11032,7 +11132,7 @@ function Front_matter_header($$anchor, $$props) {
11032
11132
  onclick: toggleExpanded,
11033
11133
  onkeydown: handleKeydown,
11034
11134
  ...rest
11035
- }), [() => classNames("front-matter-header", $$props.class)], undefined, undefined, "svelte-1rp9so4");
11135
+ }), [() => classNames("front-matter-header", $$props.class)], undefined, undefined, "svelte-pqsa46");
11036
11136
  var span = $72.child(button);
11037
11137
  var node = $72.child(span);
11038
11138
  {
@@ -11088,18 +11188,18 @@ function Front_matter_header($$anchor, $$props) {
11088
11188
  // src/components/diff-viewer/diff-line.svelte
11089
11189
  import"svelte/internal/disclose-version";
11090
11190
  import * as $73 from "svelte/internal/client";
11091
- var root35 = $73.from_html(`<div><span class="diff-gutter svelte-hc3elb"></span> <span class="diff-text svelte-hc3elb"> </span></div>`);
11092
- 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
- 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>`);
11096
- var root_59 = $73.from_html(`<div><span class="diff-gutter svelte-hc3elb"> </span> <span class="diff-text svelte-hc3elb"><!></span></div>`);
11191
+ var root35 = $73.from_html(`<div><span class="diff-gutter svelte-wbfs3d"></span> <span class="diff-text svelte-wbfs3d"> </span></div>`);
11192
+ var root_125 = $73.from_html(`<button type="button"><span class="diff-gutter svelte-wbfs3d">+</span> <span class="diff-text svelte-wbfs3d"> </span></button>`);
11193
+ var root_218 = $73.from_html(`<div><span class="diff-gutter svelte-wbfs3d">+</span> <span class="diff-text svelte-wbfs3d"> </span></div>`);
11194
+ var root_316 = $73.from_html(`<del class="svelte-wbfs3d"> </del>`);
11195
+ var root_413 = $73.from_html(`<button type="button"><span class="diff-gutter svelte-wbfs3d"> </span> <span class="diff-text svelte-wbfs3d"><!></span></button>`);
11196
+ var root_59 = $73.from_html(`<div><span class="diff-gutter svelte-wbfs3d"> </span> <span class="diff-text svelte-wbfs3d"><!></span></div>`);
11097
11197
  var root_66 = $73.from_html(`<span> </span>`);
11098
- var root_76 = $73.from_html(`<del class="word-removed svelte-hc3elb"> </del>`);
11099
- var root_84 = $73.from_html(`<ins class="word-added svelte-hc3elb"> </ins>`);
11100
- var root_92 = $73.from_html(`<span class="word-changes svelte-hc3elb"></span>`);
11101
- var root_102 = $73.from_html(`<button type="button"><span class="diff-gutter svelte-hc3elb">~</span> <span class="diff-text svelte-hc3elb"><!></span></button>`);
11102
- var root_11 = $73.from_html(`<div><span class="diff-gutter svelte-hc3elb">~</span> <span class="diff-text svelte-hc3elb"><!></span></div>`);
11198
+ var root_76 = $73.from_html(`<del class="word-removed svelte-wbfs3d"> </del>`);
11199
+ var root_84 = $73.from_html(`<ins class="word-added svelte-wbfs3d"> </ins>`);
11200
+ var root_92 = $73.from_html(`<span class="word-changes svelte-wbfs3d"></span>`);
11201
+ var root_102 = $73.from_html(`<button type="button"><span class="diff-gutter svelte-wbfs3d">~</span> <span class="diff-text svelte-wbfs3d"><!></span></button>`);
11202
+ var root_11 = $73.from_html(`<div><span class="diff-gutter svelte-wbfs3d">~</span> <span class="diff-text svelte-wbfs3d"><!></span></div>`);
11103
11203
  function Diff_line($$anchor, $$props) {
11104
11204
  $73.push($$props, true);
11105
11205
  let selected = $73.prop($$props, "selected", 3, false);
@@ -11134,7 +11234,7 @@ function Diff_line($$anchor, $$props) {
11134
11234
  $73.reset(span);
11135
11235
  $73.reset(div);
11136
11236
  $73.template_effect(($0) => {
11137
- $73.set_class(div, 1, $0, "svelte-hc3elb");
11237
+ $73.set_class(div, 1, $0, "svelte-wbfs3d");
11138
11238
  $73.set_text(text_1, $$props.diff.text || " ");
11139
11239
  }, [() => $73.clsx(classNames("diff-line", $$props.class))]);
11140
11240
  $73.append($$anchor3, div);
@@ -11150,7 +11250,7 @@ function Diff_line($$anchor, $$props) {
11150
11250
  $73.reset(span_1);
11151
11251
  $73.reset(button);
11152
11252
  $73.template_effect(($0) => {
11153
- $73.set_class(button, 1, $0, "svelte-hc3elb");
11253
+ $73.set_class(button, 1, $0, "svelte-wbfs3d");
11154
11254
  $73.set_attribute(button, "data-selected", selected());
11155
11255
  $73.set_attribute(button, "aria-label", $73.get(accessibleLineLabel));
11156
11256
  $73.set_text(text_2, $$props.diff.text || " ");
@@ -11169,7 +11269,7 @@ function Diff_line($$anchor, $$props) {
11169
11269
  $73.reset(span_2);
11170
11270
  $73.reset(div_1);
11171
11271
  $73.template_effect(($0) => {
11172
- $73.set_class(div_1, 1, $0, "svelte-hc3elb");
11272
+ $73.set_class(div_1, 1, $0, "svelte-wbfs3d");
11173
11273
  $73.set_attribute(div_1, "data-selected", selected());
11174
11274
  $73.set_text(text_3, $$props.diff.text || " ");
11175
11275
  }, [
@@ -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 || " "));
@@ -11221,7 +11321,7 @@ function Diff_line($$anchor, $$props) {
11221
11321
  $73.reset(span_4);
11222
11322
  $73.reset(button_1);
11223
11323
  $73.template_effect(($0) => {
11224
- $73.set_class(button_1, 1, $0, "svelte-hc3elb");
11324
+ $73.set_class(button_1, 1, $0, "svelte-wbfs3d");
11225
11325
  $73.set_attribute(button_1, "data-selected", selected());
11226
11326
  $73.set_attribute(button_1, "aria-label", $73.get(accessibleLineLabel));
11227
11327
  $73.set_text(text_4, $73.get(showStrikethrough) ? "-" : "");
@@ -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 || " "));
@@ -11263,7 +11363,7 @@ function Diff_line($$anchor, $$props) {
11263
11363
  $73.reset(span_6);
11264
11364
  $73.reset(div_2);
11265
11365
  $73.template_effect(($0) => {
11266
- $73.set_class(div_2, 1, $0, "svelte-hc3elb");
11366
+ $73.set_class(div_2, 1, $0, "svelte-wbfs3d");
11267
11367
  $73.set_attribute(div_2, "data-selected", selected());
11268
11368
  $73.set_text(text_7, $73.get(showStrikethrough) ? "-" : "");
11269
11369
  }, [
@@ -11366,7 +11466,7 @@ function Diff_line($$anchor, $$props) {
11366
11466
  $73.reset(span_7);
11367
11467
  $73.reset(button_2);
11368
11468
  $73.template_effect(($0) => {
11369
- $73.set_class(button_2, 1, $0, "svelte-hc3elb");
11469
+ $73.set_class(button_2, 1, $0, "svelte-wbfs3d");
11370
11470
  $73.set_attribute(button_2, "data-selected", selected());
11371
11471
  $73.set_attribute(button_2, "aria-label", $73.get(accessibleLineLabel));
11372
11472
  }, [
@@ -11457,7 +11557,7 @@ function Diff_line($$anchor, $$props) {
11457
11557
  $73.reset(span_10);
11458
11558
  $73.reset(div_3);
11459
11559
  $73.template_effect(($0) => {
11460
- $73.set_class(div_3, 1, $0, "svelte-hc3elb");
11560
+ $73.set_class(div_3, 1, $0, "svelte-wbfs3d");
11461
11561
  $73.set_attribute(div_3, "data-selected", selected());
11462
11562
  }, [
11463
11563
  () => $73.clsx(classNames("diff-line", $73.get(lineClass), $$props.class))
@@ -11510,7 +11610,7 @@ var rest_excludes24 = new Set([
11510
11610
  "wordChangeRenderer",
11511
11611
  "class"
11512
11612
  ]);
11513
- var root36 = $74.from_html(`<div class="front-matter-content svelte-113383m"></div>`);
11613
+ var root36 = $74.from_html(`<div class="front-matter-content svelte-11npjyk"></div>`);
11514
11614
  var root_126 = $74.from_html(`<div><!> <!></div>`);
11515
11615
  function Diff_front_matter($$anchor, $$props) {
11516
11616
  $74.push($$props, true);
@@ -11519,7 +11619,7 @@ function Diff_front_matter($$anchor, $$props) {
11519
11619
  const toggleId = $74.derived(() => `${id()}-toggle`);
11520
11620
  const contentId = $74.derived(() => `${id()}-content`);
11521
11621
  var div = root_126();
11522
- $74.attribute_effect(div, ($0) => ({ class: $0, "data-has-changes": $74.get(hasChanges), ...rest }), [() => classNames("front-matter-section", $$props.class)], undefined, undefined, "svelte-113383m");
11622
+ $74.attribute_effect(div, ($0) => ({ class: $0, "data-has-changes": $74.get(hasChanges), ...rest }), [() => classNames("front-matter-section", $$props.class)], undefined, undefined, "svelte-11npjyk");
11523
11623
  var node = $74.child(div);
11524
11624
  Front_matter_header(node, {
11525
11625
  get id() {
@@ -11716,12 +11816,12 @@ var rest_excludes27 = new Set([
11716
11816
  "class"
11717
11817
  ]);
11718
11818
  var root39 = $79.from_html(`<!> <!> <!>`, 1);
11719
- var root_127 = $79.from_html(`<span class="no-changes svelte-1p8ursg">No changes</span>`);
11819
+ var root_127 = $79.from_html(`<span class="no-changes svelte-19i0siy">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);
11723
- var root_510 = $79.from_html(`<span class="front-matter-only-hint svelte-1p8ursg">Front matter only</span>`);
11724
- 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>`);
11821
+ var root_317 = $79.from_html(`<!> Compute Diff`, 1);
11822
+ var root_414 = $79.from_html(`<div class="navigation svelte-19i0siy"><!> <span class="change-counter svelte-19i0siy"> </span> <!></div> <div class="shortcuts svelte-19i0siy"><!> <!></div>`, 1);
11823
+ var root_510 = $79.from_html(`<span class="front-matter-only-hint svelte-19i0siy">Front matter only</span>`);
11824
+ var root_67 = $79.from_html(`<div><div class="toolbar-left svelte-19i0siy"><!> <div class="stats svelte-19i0siy"><!> <!> <!> <!> <!> <!></div></div> <div class="toolbar-right svelte-19i0siy"><!> <!> <!> <!></div></div>`);
11725
11825
  function Diff_toolbar($$anchor, $$props) {
11726
11826
  $79.push($$props, true);
11727
11827
  let viewMode = $79.prop($$props, "viewMode", 15, "unified"), readonly = $79.prop($$props, "readonly", 3, false), rest = $79.rest_props($$props, rest_excludes27);
@@ -11729,7 +11829,7 @@ function Diff_toolbar($$anchor, $$props) {
11729
11829
  const isStale = $79.derived(() => $$props.diffState?.isStale ?? false);
11730
11830
  const isComputing = $79.derived(() => $$props.diffState?.isComputing ?? false);
11731
11831
  var div = root_67();
11732
- $79.attribute_effect(div, ($0) => ({ class: $0, ...rest }), [() => classNames("diff-toolbar", $$props.class)], undefined, undefined, "svelte-1p8ursg");
11832
+ $79.attribute_effect(div, ($0) => ({ class: $0, ...rest }), [() => classNames("diff-toolbar", $$props.class)], undefined, undefined, "svelte-19i0siy");
11733
11833
  var div_1 = $79.child(div);
11734
11834
  var node = $79.child(div_1);
11735
11835
  Segmented_control(node, {
@@ -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, {
@@ -12038,12 +12138,12 @@ function Diff_toolbar($$anchor, $$props) {
12038
12138
  }
12039
12139
 
12040
12140
  // src/components/diff-viewer/diff-viewer.svelte
12041
- var root40 = $80.from_html(`<span class="compute-time svelte-1fvc2en"> </span>`);
12042
- var root_128 = $80.from_html(`<div class="diff-warning svelte-1fvc2en" role="status"> <!></div>`);
12141
+ var root40 = $80.from_html(`<span class="compute-time svelte-1ac03bd"> </span>`);
12142
+ var root_128 = $80.from_html(`<div class="diff-warning svelte-1ac03bd" 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);
12046
- var root_511 = $80.from_html(`<!> <!> <div class="diff-content svelte-1fvc2en"><!> <!></div>`, 1);
12144
+ var root_318 = $80.from_html(`<div class="hunk-header svelte-1ac03bd"><span class="hunk-range svelte-1ac03bd"> </span> <!></div>`);
12145
+ var root_415 = $80.from_html(`<!> <!>`, 1);
12146
+ var root_511 = $80.from_html(`<!> <!> <div class="diff-content svelte-1ac03bd"><!> <!></div>`, 1);
12047
12147
  function Diff_viewer($$anchor, $$props) {
12048
12148
  const instanceId = $80.props_id();
12049
12149
  $80.push($$props, true);
@@ -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);
@@ -12598,12 +12698,12 @@ import {
12598
12698
  generateUnifiedDiff,
12599
12699
  generateCommentsExport
12600
12700
  } from "@lostgradient/cinder/commentary/export";
12601
- 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
- var root_130 = $82.from_html(`<div class="review-editor-view-panel svelte-1rnat08" role="tabpanel" aria-label="Editor view"><!> <!></div>`);
12603
- 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>`);
12606
- var root_512 = $82.from_html(`<div data-testid="review-editor"><!> <!> <!> <div class="review-editor-main svelte-1rnat08"><!></div> <!> <!> <!></div>`);
12701
+ var root42 = $82.from_html(`<input type="hidden" class="svelte-1myg0v6"/> <input type="hidden" class="svelte-1myg0v6"/> <input type="hidden" class="svelte-1myg0v6"/> <input type="hidden" class="svelte-1myg0v6"/> <input type="hidden" class="svelte-1myg0v6"/>`, 1);
12702
+ var root_130 = $82.from_html(`<div class="review-editor-view-panel svelte-1myg0v6" role="tabpanel" aria-label="Editor view"><!> <!></div>`);
12703
+ var root_222 = $82.from_html(`<div class="review-editor-view-panel svelte-1myg0v6" role="tabpanel" aria-label="Diff view"><!></div>`);
12704
+ var root_319 = $82.from_html(`<div class="summary-view svelte-1myg0v6" role="region" aria-label="Review summary"><div class="summary-empty svelte-1myg0v6"><p class="svelte-1myg0v6">No changes or comments to summarize.</p> <p class="summary-hint svelte-1myg0v6">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-1myg0v6" role="tabpanel" aria-label="Summary view"><!></div>`);
12706
+ var root_512 = $82.from_html(`<div data-testid="review-editor"><!> <!> <!> <div class="review-editor-main svelte-1myg0v6"><!></div> <!> <!> <!></div>`);
12607
12707
  function Review_editor_impl($$anchor, $$props) {
12608
12708
  $82.push($$props, true);
12609
12709
  const exportActionsSnippet = ($$anchor2) => {
@@ -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) => {
@@ -13755,7 +13855,7 @@ function Review_editor_impl($$anchor, $$props) {
13755
13855
  $82.reset(div);
13756
13856
  $82.bind_this(div, ($$value) => $82.set(containerElement, $$value), () => $82.get(containerElement));
13757
13857
  $82.template_effect(($0) => {
13758
- $82.set_class(div, 1, $0, "svelte-1rnat08");
13858
+ $82.set_class(div, 1, $0, "svelte-1myg0v6");
13759
13859
  $82.set_attribute(div, "data-mode", mode());
13760
13860
  $82.set_attribute(div, "data-view", $82.get(activeView));
13761
13861
  $82.set_attribute(div, "data-ready", $82.get(editorViewReady) && !$82.get(pendingState) ? true : undefined);
@@ -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=23925939FF21ADAA64756E2164756E21