hazo_ui 6.12.0 → 6.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -112,8 +112,8 @@ var require_extends = __commonJS({
112
112
  function _extends11() {
113
113
  return module.exports = _extends11 = Object.assign ? Object.assign.bind() : function(n) {
114
114
  for (var e = 1; e < arguments.length; e++) {
115
- var t4 = arguments[e];
116
- for (var r in t4) ({}).hasOwnProperty.call(t4, r) && (n[r] = t4[r]);
115
+ var t14 = arguments[e];
116
+ for (var r in t14) ({}).hasOwnProperty.call(t14, r) && (n[r] = t14[r]);
117
117
  }
118
118
  return n;
119
119
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends11.apply(null, arguments);
@@ -127,12 +127,12 @@ var require_objectWithoutPropertiesLoose = __commonJS({
127
127
  "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
128
128
  function _objectWithoutPropertiesLoose10(r, e) {
129
129
  if (null == r) return {};
130
- var t4 = {};
130
+ var t14 = {};
131
131
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
132
132
  if (-1 !== e.indexOf(n)) continue;
133
- t4[n] = r[n];
133
+ t14[n] = r[n];
134
134
  }
135
- return t4;
135
+ return t14;
136
136
  }
137
137
  module.exports = _objectWithoutPropertiesLoose10, module.exports.__esModule = true, module.exports["default"] = module.exports;
138
138
  }
@@ -715,7 +715,39 @@ var en_default = {
715
715
  "filter.no_fields_available": "No fields available.",
716
716
  "filter.clear_all": "Clear all",
717
717
  "filter.cancel": "Cancel",
718
- "filter.apply": "Apply"
718
+ "filter.apply": "Apply",
719
+ "sort.title": "Sort",
720
+ "sort.description": "Add fields to sort by, drag to reorder, toggle ascending or descending.",
721
+ "sort.search_fields": "Search fields...",
722
+ "sort.open_dialog_aria": "Open sort dialog",
723
+ "sort.clear_all": "Clear all",
724
+ "sort.cancel": "Cancel",
725
+ "sort.apply": "Apply",
726
+ "canvas_toolbar.bold": "Bold",
727
+ "canvas_toolbar.italic": "Italic",
728
+ "canvas_toolbar.underline": "Underline",
729
+ "canvas_toolbar.align_left": "Align left",
730
+ "canvas_toolbar.align_center": "Align center",
731
+ "canvas_toolbar.align_right": "Align right",
732
+ "canvas_toolbar.text_color": "Text color",
733
+ "canvas_toolbar.font_family": "Font family",
734
+ "canvas_toolbar.align_top": "Align top",
735
+ "canvas_toolbar.align_middle": "Align middle",
736
+ "canvas_toolbar.align_bottom": "Align bottom",
737
+ "canvas_toolbar.bullet_list": "Bullet list",
738
+ "toast.permission_required": "Permission required",
739
+ "toast.permission_denied_message": "You do not have permission to perform this action.",
740
+ "error.something_went_wrong": "Something went wrong",
741
+ "error.dismiss": "Dismiss",
742
+ "loading.taking_longer": "This is taking longer than expected",
743
+ "notification.loading": "Loading notifications",
744
+ "notification.mark_all_read": "Mark all as read",
745
+ "notification.unread": "Unread",
746
+ "confirm.cancel": "Cancel",
747
+ "icon_picker.search_placeholder": "Search icons...",
748
+ "common.loading": "Loading...",
749
+ "common.cancel": "Cancel",
750
+ "common.search": "Search..."
719
751
  };
720
752
  var t = createPackageT("hazo_ui", en_default);
721
753
  function FilterFieldItem({
@@ -1164,6 +1196,7 @@ function HazoUiMultiFilterDialog({
1164
1196
  ] })
1165
1197
  ] });
1166
1198
  }
1199
+ var t2 = createPackageT("hazo_ui", en_default);
1167
1200
  function SortableSortFieldItem({
1168
1201
  sortConfig,
1169
1202
  fieldLabel,
@@ -1274,8 +1307,8 @@ function HazoUiMultiSortDialog({
1274
1307
  availableFields,
1275
1308
  onSortChange,
1276
1309
  initialSortFields = [],
1277
- title = "Sort",
1278
- description = "Add fields to sort by, drag to reorder, toggle ascending or descending.",
1310
+ title = t2("sort.title"),
1311
+ description = t2("sort.description"),
1279
1312
  headerBackgroundColor,
1280
1313
  headerTextColor,
1281
1314
  submitButtonBackgroundColor,
@@ -1393,7 +1426,7 @@ function HazoUiMultiSortDialog({
1393
1426
  variant: "outline",
1394
1427
  size: "sm",
1395
1428
  className: "cls_sort_button",
1396
- "aria-label": "Open sort dialog",
1429
+ "aria-label": t2("sort.open_dialog_aria"),
1397
1430
  children: [
1398
1431
  /* @__PURE__ */ jsx(
1399
1432
  ArrowUpDown,
@@ -1466,7 +1499,7 @@ function HazoUiMultiSortDialog({
1466
1499
  }
1467
1500
  ) }),
1468
1501
  /* @__PURE__ */ jsx(PopoverContent, { className: "cls_combobox_popover w-[var(--radix-popover-trigger-width)] p-0", align: "start", children: /* @__PURE__ */ jsxs(Command, { children: [
1469
- /* @__PURE__ */ jsx(CommandInput, { placeholder: "Search fields...", className: "cls_command_input" }),
1502
+ /* @__PURE__ */ jsx(CommandInput, { placeholder: t2("sort.search_fields"), className: "cls_command_input" }),
1470
1503
  /* @__PURE__ */ jsx(CommandList, { children: availableFieldsToAdd.length === 0 ? /* @__PURE__ */ jsx(CommandEmpty, { children: "No fields available." }) : /* @__PURE__ */ jsx(CommandGroup, { children: availableFieldsToAdd.map((field) => /* @__PURE__ */ jsx(
1471
1504
  CommandItem,
1472
1505
  {
@@ -1489,7 +1522,7 @@ function HazoUiMultiSortDialog({
1489
1522
  onClick: handleClearAll,
1490
1523
  className: "cls_clear_all_btn text-muted-foreground hover:text-foreground",
1491
1524
  style: clearButtonStyles,
1492
- children: "Clear all"
1525
+ children: t2("sort.clear_all")
1493
1526
  }
1494
1527
  ) }),
1495
1528
  /* @__PURE__ */ jsxs("div", { className: "cls_footer_right flex items-center gap-2", children: [
@@ -1501,7 +1534,7 @@ function HazoUiMultiSortDialog({
1501
1534
  onClick: handleCancel,
1502
1535
  className: "cls_cancel_btn",
1503
1536
  style: cancelButtonStyles,
1504
- children: "Cancel"
1537
+ children: t2("sort.cancel")
1505
1538
  }
1506
1539
  ),
1507
1540
  /* @__PURE__ */ jsx(
@@ -1511,7 +1544,7 @@ function HazoUiMultiSortDialog({
1511
1544
  onClick: handleApply,
1512
1545
  className: "cls_apply_btn",
1513
1546
  style: submitButtonStyles,
1514
- children: "Apply"
1547
+ children: t2("sort.apply")
1515
1548
  }
1516
1549
  )
1517
1550
  ] })
@@ -1930,6 +1963,7 @@ var TabsContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
1930
1963
  }
1931
1964
  ));
1932
1965
  TabsContent.displayName = TabsPrimitive.Content.displayName;
1966
+ var t3 = createPackageT("hazo_ui", en_default);
1933
1967
  function isLucideValue(value) {
1934
1968
  return value.startsWith("lucide:");
1935
1969
  }
@@ -2195,7 +2229,7 @@ function HazoUiIconPicker({
2195
2229
  type: "text",
2196
2230
  value: search,
2197
2231
  onChange: (e) => set_search(e.target.value),
2198
- placeholder: "Search icons...",
2232
+ placeholder: t3("icon_picker.search_placeholder"),
2199
2233
  className: cn(
2200
2234
  "cls_hazo_ui_icon_picker_search",
2201
2235
  "mb-2 flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm",
@@ -3641,10 +3675,10 @@ var BLOCK_TYPE_LABEL_KEYS = {
3641
3675
  "code-block": "rte.block_type.code_block",
3642
3676
  blockquote: "rte.block_type.blockquote"
3643
3677
  };
3644
- function get_translated_block_types(t4) {
3678
+ function get_translated_block_types(t14) {
3645
3679
  return BLOCK_TYPES.map((type) => ({
3646
3680
  ...type,
3647
- label: t4(BLOCK_TYPE_LABEL_KEYS[type.value])
3681
+ label: t14(BLOCK_TYPE_LABEL_KEYS[type.value])
3648
3682
  }));
3649
3683
  }
3650
3684
 
@@ -3691,7 +3725,7 @@ function get_file_extension(filename) {
3691
3725
  function is_image_file(mime_type) {
3692
3726
  return mime_type.startsWith("image/");
3693
3727
  }
3694
- var t2 = createPackageT("hazo_ui", en_default);
3728
+ var t4 = createPackageT("hazo_ui", en_default);
3695
3729
  var ALL_ON = {
3696
3730
  undo_redo: true,
3697
3731
  block_type: true,
@@ -3746,7 +3780,7 @@ var Toolbar = ({
3746
3780
  }
3747
3781
  const tb = { ...ALL_ON, ...toolbar };
3748
3782
  const font_family_options = font_families && font_families.length > 0 ? font_families : FONT_FAMILIES;
3749
- const block_type_options = get_translated_block_types(t2);
3783
+ const block_type_options = get_translated_block_types(t4);
3750
3784
  const get_current_font_size = () => {
3751
3785
  const attrs = editor.getAttributes("textStyle");
3752
3786
  return attrs.fontSize || FONT_SIZE_CONFIG.default;
@@ -3890,7 +3924,7 @@ var Toolbar = ({
3890
3924
  {
3891
3925
  onClick: () => editor.chain().focus().undo().run(),
3892
3926
  disabled: !editor.can().undo(),
3893
- tooltip: t2("rte.undo"),
3927
+ tooltip: t4("rte.undo"),
3894
3928
  children: /* @__PURE__ */ jsx(LuUndo2, { className: "h-4 w-4" })
3895
3929
  },
3896
3930
  "undo"
@@ -3900,7 +3934,7 @@ var Toolbar = ({
3900
3934
  {
3901
3935
  onClick: () => editor.chain().focus().redo().run(),
3902
3936
  disabled: !editor.can().redo(),
3903
- tooltip: t2("rte.redo"),
3937
+ tooltip: t4("rte.redo"),
3904
3938
  children: /* @__PURE__ */ jsx(LuRedo2, { className: "h-4 w-4" })
3905
3939
  },
3906
3940
  "redo"
@@ -3941,7 +3975,7 @@ var Toolbar = ({
3941
3975
  ToolbarButton,
3942
3976
  {
3943
3977
  onClick: () => handle_font_size_change(-2),
3944
- tooltip: t2("rte.decrease_font_size"),
3978
+ tooltip: t4("rte.decrease_font_size"),
3945
3979
  children: /* @__PURE__ */ jsx(LuMinus, { className: "h-3 w-3" })
3946
3980
  }
3947
3981
  ),
@@ -3950,7 +3984,7 @@ var Toolbar = ({
3950
3984
  ToolbarButton,
3951
3985
  {
3952
3986
  onClick: () => handle_font_size_change(FONT_SIZE_CONFIG.step),
3953
- tooltip: t2("rte.increase_font_size"),
3987
+ tooltip: t4("rte.increase_font_size"),
3954
3988
  children: /* @__PURE__ */ jsx(LuPlus, { className: "h-3 w-3" })
3955
3989
  }
3956
3990
  )
@@ -3968,7 +4002,7 @@ var Toolbar = ({
3968
4002
  {
3969
4003
  onClick: () => editor.chain().focus().toggleBold().run(),
3970
4004
  is_active: editor.isActive("bold"),
3971
- tooltip: t2("rte.bold"),
4005
+ tooltip: t4("rte.bold"),
3972
4006
  children: /* @__PURE__ */ jsx(LuBold, { className: "h-4 w-4" })
3973
4007
  },
3974
4008
  "bold"
@@ -3982,7 +4016,7 @@ var Toolbar = ({
3982
4016
  {
3983
4017
  onClick: () => editor.chain().focus().toggleItalic().run(),
3984
4018
  is_active: editor.isActive("italic"),
3985
- tooltip: t2("rte.italic"),
4019
+ tooltip: t4("rte.italic"),
3986
4020
  children: /* @__PURE__ */ jsx(LuItalic, { className: "h-4 w-4" })
3987
4021
  },
3988
4022
  "italic"
@@ -3996,7 +4030,7 @@ var Toolbar = ({
3996
4030
  {
3997
4031
  onClick: () => editor.chain().focus().toggleUnderline().run(),
3998
4032
  is_active: editor.isActive("underline"),
3999
- tooltip: t2("rte.underline"),
4033
+ tooltip: t4("rte.underline"),
4000
4034
  children: /* @__PURE__ */ jsx(LuUnderline, { className: "h-4 w-4" })
4001
4035
  },
4002
4036
  "underline"
@@ -4010,7 +4044,7 @@ var Toolbar = ({
4010
4044
  {
4011
4045
  onClick: () => editor.chain().focus().toggleStrike().run(),
4012
4046
  is_active: editor.isActive("strike"),
4013
- tooltip: t2("rte.strikethrough"),
4047
+ tooltip: t4("rte.strikethrough"),
4014
4048
  children: /* @__PURE__ */ jsx(LuStrikethrough, { className: "h-4 w-4" })
4015
4049
  },
4016
4050
  "strike"
@@ -4024,7 +4058,7 @@ var Toolbar = ({
4024
4058
  {
4025
4059
  onClick: () => editor.chain().focus().toggleSubscript().run(),
4026
4060
  is_active: editor.isActive("subscript"),
4027
- tooltip: t2("rte.subscript"),
4061
+ tooltip: t4("rte.subscript"),
4028
4062
  children: /* @__PURE__ */ jsx(LuSubscript, { className: "h-4 w-4" })
4029
4063
  },
4030
4064
  "sub"
@@ -4038,7 +4072,7 @@ var Toolbar = ({
4038
4072
  {
4039
4073
  onClick: () => editor.chain().focus().toggleSuperscript().run(),
4040
4074
  is_active: editor.isActive("superscript"),
4041
- tooltip: t2("rte.superscript"),
4075
+ tooltip: t4("rte.superscript"),
4042
4076
  children: /* @__PURE__ */ jsx(LuSuperscript, { className: "h-4 w-4" })
4043
4077
  },
4044
4078
  "super"
@@ -4052,7 +4086,7 @@ var Toolbar = ({
4052
4086
  if (tb.link) {
4053
4087
  items.push(
4054
4088
  /* @__PURE__ */ jsxs(Popover, { open: link_popover_open, onOpenChange: set_link_popover_open, children: [
4055
- /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(ToolbarButton, { is_active: editor.isActive("link"), tooltip: t2("rte.link"), children: /* @__PURE__ */ jsx(LuLink, { className: "h-4 w-4" }) }) }),
4089
+ /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(ToolbarButton, { is_active: editor.isActive("link"), tooltip: t4("rte.link"), children: /* @__PURE__ */ jsx(LuLink, { className: "h-4 w-4" }) }) }),
4056
4090
  /* @__PURE__ */ jsx(PopoverContent, { className: "w-80 p-3", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
4057
4091
  /* @__PURE__ */ jsx(
4058
4092
  Input,
@@ -4088,7 +4122,7 @@ var Toolbar = ({
4088
4122
  ToolbarButton,
4089
4123
  {
4090
4124
  onClick: () => editor.chain().focus().unsetAllMarks().clearNodes().run(),
4091
- tooltip: t2("rte.clear_formatting"),
4125
+ tooltip: t4("rte.clear_formatting"),
4092
4126
  children: /* @__PURE__ */ jsx(LuRemoveFormatting, { className: "h-4 w-4" })
4093
4127
  },
4094
4128
  "clear"
@@ -4102,7 +4136,7 @@ var Toolbar = ({
4102
4136
  if (tb.text_color) {
4103
4137
  items.push(
4104
4138
  /* @__PURE__ */ jsxs(Popover, { open: text_color_open, onOpenChange: set_text_color_open, children: [
4105
- /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(ToolbarButton, { tooltip: t2("rte.text_color"), children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
4139
+ /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(ToolbarButton, { tooltip: t4("rte.text_color"), children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
4106
4140
  /* @__PURE__ */ jsx(LuPalette, { className: "h-4 w-4" }),
4107
4141
  /* @__PURE__ */ jsx(
4108
4142
  "div",
@@ -4145,7 +4179,7 @@ var Toolbar = ({
4145
4179
  if (tb.highlight_color) {
4146
4180
  items.push(
4147
4181
  /* @__PURE__ */ jsxs(Popover, { open: highlight_color_open, onOpenChange: set_highlight_color_open, children: [
4148
- /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(ToolbarButton, { tooltip: t2("rte.highlight_color"), children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
4182
+ /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(ToolbarButton, { tooltip: t4("rte.highlight_color"), children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
4149
4183
  /* @__PURE__ */ jsx(LuHighlighter, { className: "h-4 w-4" }),
4150
4184
  /* @__PURE__ */ jsx(
4151
4185
  "div",
@@ -4188,7 +4222,7 @@ var Toolbar = ({
4188
4222
  {
4189
4223
  onClick: () => editor.chain().focus().setTextAlign("left").run(),
4190
4224
  is_active: editor.isActive({ textAlign: "left" }),
4191
- tooltip: t2("rte.align_left"),
4225
+ tooltip: t4("rte.align_left"),
4192
4226
  children: /* @__PURE__ */ jsx(LuAlignLeft, { className: "h-4 w-4" })
4193
4227
  },
4194
4228
  "align-left"
@@ -4198,7 +4232,7 @@ var Toolbar = ({
4198
4232
  {
4199
4233
  onClick: () => editor.chain().focus().setTextAlign("center").run(),
4200
4234
  is_active: editor.isActive({ textAlign: "center" }),
4201
- tooltip: t2("rte.align_center"),
4235
+ tooltip: t4("rte.align_center"),
4202
4236
  children: /* @__PURE__ */ jsx(LuAlignCenter, { className: "h-4 w-4" })
4203
4237
  },
4204
4238
  "align-center"
@@ -4208,7 +4242,7 @@ var Toolbar = ({
4208
4242
  {
4209
4243
  onClick: () => editor.chain().focus().setTextAlign("right").run(),
4210
4244
  is_active: editor.isActive({ textAlign: "right" }),
4211
- tooltip: t2("rte.align_right"),
4245
+ tooltip: t4("rte.align_right"),
4212
4246
  children: /* @__PURE__ */ jsx(LuAlignRight, { className: "h-4 w-4" })
4213
4247
  },
4214
4248
  "align-right"
@@ -4218,7 +4252,7 @@ var Toolbar = ({
4218
4252
  {
4219
4253
  onClick: () => editor.chain().focus().setTextAlign("justify").run(),
4220
4254
  is_active: editor.isActive({ textAlign: "justify" }),
4221
- tooltip: t2("rte.justify"),
4255
+ tooltip: t4("rte.justify"),
4222
4256
  children: /* @__PURE__ */ jsx(LuAlignJustify, { className: "h-4 w-4" })
4223
4257
  },
4224
4258
  "align-justify"
@@ -4234,7 +4268,7 @@ var Toolbar = ({
4234
4268
  {
4235
4269
  onClick: () => editor.chain().focus().toggleBulletList().run(),
4236
4270
  is_active: editor.isActive("bulletList"),
4237
- tooltip: t2("rte.bullet_list"),
4271
+ tooltip: t4("rte.bullet_list"),
4238
4272
  children: /* @__PURE__ */ jsx(LuList, { className: "h-4 w-4" })
4239
4273
  },
4240
4274
  "bullet"
@@ -4248,7 +4282,7 @@ var Toolbar = ({
4248
4282
  {
4249
4283
  onClick: () => editor.chain().focus().toggleOrderedList().run(),
4250
4284
  is_active: editor.isActive("orderedList"),
4251
- tooltip: t2("rte.ordered_list"),
4285
+ tooltip: t4("rte.ordered_list"),
4252
4286
  children: /* @__PURE__ */ jsx(LuListOrdered, { className: "h-4 w-4" })
4253
4287
  },
4254
4288
  "ordered"
@@ -4262,7 +4296,7 @@ var Toolbar = ({
4262
4296
  {
4263
4297
  onClick: () => editor.chain().focus().toggleTaskList().run(),
4264
4298
  is_active: editor.isActive("taskList"),
4265
- tooltip: t2("rte.checklist"),
4299
+ tooltip: t4("rte.checklist"),
4266
4300
  children: /* @__PURE__ */ jsx(LuListChecks, { className: "h-4 w-4" })
4267
4301
  },
4268
4302
  "task"
@@ -4284,7 +4318,7 @@ var Toolbar = ({
4284
4318
  }
4285
4319
  },
4286
4320
  disabled: !editor.can().liftListItem("listItem") && !editor.can().liftListItem("taskItem"),
4287
- tooltip: t2("rte.decrease_indent"),
4321
+ tooltip: t4("rte.decrease_indent"),
4288
4322
  children: /* @__PURE__ */ jsx(LuIndentDecrease, { className: "h-4 w-4" })
4289
4323
  },
4290
4324
  "indent-dec"
@@ -4300,7 +4334,7 @@ var Toolbar = ({
4300
4334
  }
4301
4335
  },
4302
4336
  disabled: !editor.can().sinkListItem("listItem") && !editor.can().sinkListItem("taskItem"),
4303
- tooltip: t2("rte.increase_indent"),
4337
+ tooltip: t4("rte.increase_indent"),
4304
4338
  children: /* @__PURE__ */ jsx(LuIndentIncrease, { className: "h-4 w-4" })
4305
4339
  },
4306
4340
  "indent-inc"
@@ -4311,7 +4345,7 @@ var Toolbar = ({
4311
4345
  const items = [];
4312
4346
  if (tb.horizontal_rule) {
4313
4347
  items.push(
4314
- /* @__PURE__ */ jsx(ToolbarButton, { onClick: handle_hr_insert, tooltip: t2("rte.horizontal_rule"), children: /* @__PURE__ */ jsx(RxDividerHorizontal, { className: "h-4 w-4" }) }, "hr")
4348
+ /* @__PURE__ */ jsx(ToolbarButton, { onClick: handle_hr_insert, tooltip: t4("rte.horizontal_rule"), children: /* @__PURE__ */ jsx(RxDividerHorizontal, { className: "h-4 w-4" }) }, "hr")
4315
4349
  );
4316
4350
  }
4317
4351
  if (tb.image) {
@@ -4320,7 +4354,7 @@ var Toolbar = ({
4320
4354
  ToolbarButton,
4321
4355
  {
4322
4356
  onClick: () => image_input_ref.current?.click(),
4323
- tooltip: t2("rte.insert_image"),
4357
+ tooltip: t4("rte.insert_image"),
4324
4358
  children: /* @__PURE__ */ jsx(LuImage, { className: "h-4 w-4" })
4325
4359
  },
4326
4360
  "image"
@@ -4334,7 +4368,7 @@ var Toolbar = ({
4334
4368
  ToolbarButton,
4335
4369
  {
4336
4370
  is_active: editor.isActive("table"),
4337
- tooltip: t2("rte.table"),
4371
+ tooltip: t4("rte.table"),
4338
4372
  children: /* @__PURE__ */ jsx(LuTable, { className: "h-4 w-4" })
4339
4373
  }
4340
4374
  ) }),
@@ -4506,7 +4540,7 @@ var Toolbar = ({
4506
4540
  if (tb.variables && variables.length > 0) {
4507
4541
  items.push(
4508
4542
  /* @__PURE__ */ jsxs(Popover, { open: variables_menu_open, onOpenChange: set_variables_menu_open, children: [
4509
- /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(ToolbarButton, { tooltip: t2("rte.insert_variable"), children: /* @__PURE__ */ jsx(LuVariable, { className: "h-4 w-4" }) }) }),
4543
+ /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(ToolbarButton, { tooltip: t4("rte.insert_variable"), children: /* @__PURE__ */ jsx(LuVariable, { className: "h-4 w-4" }) }) }),
4510
4544
  /* @__PURE__ */ jsx(PopoverContent, { className: "w-64 p-0", align: "start", children: /* @__PURE__ */ jsxs(Command, { children: [
4511
4545
  /* @__PURE__ */ jsx(CommandInput, { placeholder: "Search variables...", className: "h-8 text-xs" }),
4512
4546
  /* @__PURE__ */ jsxs(CommandList, { children: [
@@ -4535,7 +4569,7 @@ var Toolbar = ({
4535
4569
  ToolbarButton,
4536
4570
  {
4537
4571
  onClick: () => file_input_ref.current?.click(),
4538
- tooltip: t2("rte.attach_file"),
4572
+ tooltip: t4("rte.attach_file"),
4539
4573
  children: /* @__PURE__ */ jsx(LuPaperclip, { className: "h-4 w-4" })
4540
4574
  },
4541
4575
  "attach"
@@ -5056,6 +5090,7 @@ var HazoUiRte = ({
5056
5090
  );
5057
5091
  };
5058
5092
  HazoUiRte.displayName = "HazoUiRte";
5093
+ var t5 = createPackageT("hazo_ui", en_default);
5059
5094
  function CanvasTextToolbar({
5060
5095
  bold,
5061
5096
  italic,
@@ -5086,14 +5121,14 @@ function CanvasTextToolbar({
5086
5121
  ),
5087
5122
  style,
5088
5123
  children: [
5089
- /* @__PURE__ */ jsx(ToolbarButton, { is_active: bold, onClick: onBold, tooltip: "Bold", children: /* @__PURE__ */ jsx(LuBold, { className: "h-4 w-4" }) }),
5090
- /* @__PURE__ */ jsx(ToolbarButton, { is_active: italic, onClick: onItalic, tooltip: "Italic", children: /* @__PURE__ */ jsx(LuItalic, { className: "h-4 w-4" }) }),
5124
+ /* @__PURE__ */ jsx(ToolbarButton, { is_active: bold, onClick: onBold, tooltip: t5("canvas_toolbar.bold"), children: /* @__PURE__ */ jsx(LuBold, { className: "h-4 w-4" }) }),
5125
+ /* @__PURE__ */ jsx(ToolbarButton, { is_active: italic, onClick: onItalic, tooltip: t5("canvas_toolbar.italic"), children: /* @__PURE__ */ jsx(LuItalic, { className: "h-4 w-4" }) }),
5091
5126
  /* @__PURE__ */ jsx(
5092
5127
  ToolbarButton,
5093
5128
  {
5094
5129
  is_active: underline,
5095
5130
  onClick: onUnderline,
5096
- tooltip: "Underline",
5131
+ tooltip: t5("canvas_toolbar.underline"),
5097
5132
  children: /* @__PURE__ */ jsx(LuUnderline, { className: "h-4 w-4" })
5098
5133
  }
5099
5134
  ),
@@ -5103,7 +5138,7 @@ function CanvasTextToolbar({
5103
5138
  {
5104
5139
  is_active: align === "left",
5105
5140
  onClick: () => onAlign?.("left"),
5106
- tooltip: "Align left",
5141
+ tooltip: t5("canvas_toolbar.align_left"),
5107
5142
  children: /* @__PURE__ */ jsx(LuAlignLeft, { className: "h-4 w-4" })
5108
5143
  }
5109
5144
  ),
@@ -5112,7 +5147,7 @@ function CanvasTextToolbar({
5112
5147
  {
5113
5148
  is_active: align === "center",
5114
5149
  onClick: () => onAlign?.("center"),
5115
- tooltip: "Align center",
5150
+ tooltip: t5("canvas_toolbar.align_center"),
5116
5151
  children: /* @__PURE__ */ jsx(LuAlignCenter, { className: "h-4 w-4" })
5117
5152
  }
5118
5153
  ),
@@ -5121,7 +5156,7 @@ function CanvasTextToolbar({
5121
5156
  {
5122
5157
  is_active: align === "right",
5123
5158
  onClick: () => onAlign?.("right"),
5124
- tooltip: "Align right",
5159
+ tooltip: t5("canvas_toolbar.align_right"),
5125
5160
  children: /* @__PURE__ */ jsx(LuAlignRight, { className: "h-4 w-4" })
5126
5161
  }
5127
5162
  ),
@@ -5130,7 +5165,7 @@ function CanvasTextToolbar({
5130
5165
  "label",
5131
5166
  {
5132
5167
  className: "relative flex h-8 w-8 cursor-pointer items-center justify-center rounded-md hover:bg-accent",
5133
- title: "Text color",
5168
+ title: t5("canvas_toolbar.text_color"),
5134
5169
  children: [
5135
5170
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
5136
5171
  /* @__PURE__ */ jsx("span", { className: "text-xs font-bold text-muted-foreground", children: "A" }),
@@ -5160,7 +5195,7 @@ function CanvasTextToolbar({
5160
5195
  {
5161
5196
  is_active: verticalAlign === "top",
5162
5197
  onClick: () => onVerticalAlign?.("top"),
5163
- tooltip: "Align top",
5198
+ tooltip: t5("canvas_toolbar.align_top"),
5164
5199
  children: /* @__PURE__ */ jsx(LuAlignVerticalJustifyStart, { className: "h-4 w-4" })
5165
5200
  }
5166
5201
  ),
@@ -5169,7 +5204,7 @@ function CanvasTextToolbar({
5169
5204
  {
5170
5205
  is_active: verticalAlign === "middle",
5171
5206
  onClick: () => onVerticalAlign?.("middle"),
5172
- tooltip: "Align middle",
5207
+ tooltip: t5("canvas_toolbar.align_middle"),
5173
5208
  children: /* @__PURE__ */ jsx(LuAlignVerticalJustifyCenter, { className: "h-4 w-4" })
5174
5209
  }
5175
5210
  ),
@@ -5178,7 +5213,7 @@ function CanvasTextToolbar({
5178
5213
  {
5179
5214
  is_active: verticalAlign === "bottom",
5180
5215
  onClick: () => onVerticalAlign?.("bottom"),
5181
- tooltip: "Align bottom",
5216
+ tooltip: t5("canvas_toolbar.align_bottom"),
5182
5217
  children: /* @__PURE__ */ jsx(LuAlignVerticalJustifyEnd, { className: "h-4 w-4" })
5183
5218
  }
5184
5219
  ),
@@ -5189,7 +5224,7 @@ function CanvasTextToolbar({
5189
5224
  value: font,
5190
5225
  onChange: (e) => onFont?.(e.target.value),
5191
5226
  className: "h-8 text-xs rounded-md border border-border bg-background px-1 text-foreground focus:outline-none",
5192
- title: "Font family",
5227
+ title: t5("canvas_toolbar.font_family"),
5193
5228
  children: [
5194
5229
  /* @__PURE__ */ jsx("option", { value: "sans-serif", children: "Sans" }),
5195
5230
  /* @__PURE__ */ jsx("option", { value: "serif", children: "Serif" }),
@@ -5201,7 +5236,7 @@ function CanvasTextToolbar({
5201
5236
  }
5202
5237
  ),
5203
5238
  /* @__PURE__ */ jsx("div", { className: "mx-1 h-6 w-px bg-border" }),
5204
- /* @__PURE__ */ jsx(ToolbarButton, { is_active: bullet, onClick: onBullet, tooltip: "Bullet list", children: /* @__PURE__ */ jsx(LuList, { className: "h-4 w-4" }) })
5239
+ /* @__PURE__ */ jsx(ToolbarButton, { is_active: bullet, onClick: onBullet, tooltip: t5("canvas_toolbar.bullet_list"), children: /* @__PURE__ */ jsx(LuList, { className: "h-4 w-4" }) })
5205
5240
  ]
5206
5241
  }
5207
5242
  ) });
@@ -7579,6 +7614,7 @@ function HazoUiDialog({
7579
7614
  )
7580
7615
  ] }) });
7581
7616
  }
7617
+ var t6 = createPackageT("hazo_ui", en_default);
7582
7618
  function HazoUiConfirmDialog({
7583
7619
  open,
7584
7620
  onOpenChange,
@@ -7587,7 +7623,7 @@ function HazoUiConfirmDialog({
7587
7623
  children,
7588
7624
  variant = "default",
7589
7625
  confirmLabel,
7590
- cancelLabel = "Cancel",
7626
+ cancelLabel = t6("confirm.cancel"),
7591
7627
  showCancelButton = true,
7592
7628
  onConfirm,
7593
7629
  onCancel,
@@ -8492,6 +8528,7 @@ function EmptyState({
8492
8528
  }
8493
8529
  );
8494
8530
  }
8531
+ var t7 = createPackageT("hazo_ui", en_default);
8495
8532
  function ErrorBanner({
8496
8533
  severity = "error",
8497
8534
  title,
@@ -8526,7 +8563,7 @@ function ErrorBanner({
8526
8563
  {
8527
8564
  type: "button",
8528
8565
  onClick: onDismiss,
8529
- "aria-label": "Dismiss",
8566
+ "aria-label": t7("error.dismiss"),
8530
8567
  className: "flex-shrink-0 rounded p-1 hover:bg-black/5 focus:outline-none focus:ring-2 focus:ring-offset-2 dark:hover:bg-white/5",
8531
8568
  children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4", "aria-hidden": "true" })
8532
8569
  }
@@ -8535,8 +8572,9 @@ function ErrorBanner({
8535
8572
  }
8536
8573
  );
8537
8574
  }
8575
+ var t8 = createPackageT("hazo_ui", en_default);
8538
8576
  function ErrorPage({
8539
- title = "Something went wrong",
8577
+ title = t8("error.something_went_wrong"),
8540
8578
  description,
8541
8579
  errorCode,
8542
8580
  correlationId,
@@ -8567,6 +8605,7 @@ function ErrorPage({
8567
8605
  }
8568
8606
  );
8569
8607
  }
8608
+ var t9 = createPackageT("hazo_ui", en_default);
8570
8609
  function LoadingTimeout({
8571
8610
  active,
8572
8611
  children,
@@ -8576,7 +8615,7 @@ function LoadingTimeout({
8576
8615
  label = "content",
8577
8616
  className
8578
8617
  }) {
8579
- const t4 = {
8618
+ const timeouts = {
8580
8619
  gentle: thresholds?.gentle ?? 5e3,
8581
8620
  firm: thresholds?.firm ?? 15e3,
8582
8621
  expired: thresholds?.expired ?? 3e4
@@ -8588,15 +8627,15 @@ function LoadingTimeout({
8588
8627
  return;
8589
8628
  }
8590
8629
  setPhase("silent");
8591
- const gentleTimer = window.setTimeout(() => setPhase("gentle"), t4.gentle);
8592
- const firmTimer = window.setTimeout(() => setPhase("firm"), t4.firm);
8593
- const expiredTimer = window.setTimeout(() => setPhase("expired"), t4.expired);
8630
+ const gentleTimer = window.setTimeout(() => setPhase("gentle"), timeouts.gentle);
8631
+ const firmTimer = window.setTimeout(() => setPhase("firm"), timeouts.firm);
8632
+ const expiredTimer = window.setTimeout(() => setPhase("expired"), timeouts.expired);
8594
8633
  return () => {
8595
8634
  window.clearTimeout(gentleTimer);
8596
8635
  window.clearTimeout(firmTimer);
8597
8636
  window.clearTimeout(expiredTimer);
8598
8637
  };
8599
- }, [active, t4.gentle, t4.firm, t4.expired]);
8638
+ }, [active, timeouts.gentle, timeouts.firm, timeouts.expired]);
8600
8639
  if (!active) {
8601
8640
  return /* @__PURE__ */ jsx(Fragment$1, { children });
8602
8641
  }
@@ -8605,7 +8644,7 @@ function LoadingTimeout({
8605
8644
  ErrorBanner,
8606
8645
  {
8607
8646
  severity: "error",
8608
- title: "This is taking longer than expected",
8647
+ title: t9("loading.taking_longer"),
8609
8648
  message: `We're still trying to load the ${label}. The connection may be slow.`,
8610
8649
  action: onRetry ? /* @__PURE__ */ jsx(
8611
8650
  "button",
@@ -8707,6 +8746,7 @@ function NotificationCountBadge({
8707
8746
  }
8708
8747
  );
8709
8748
  }
8749
+ var t10 = createPackageT("hazo_ui", en_default);
8710
8750
  function NotificationItem({
8711
8751
  isRead,
8712
8752
  timestamp,
@@ -8737,7 +8777,7 @@ function NotificationItem({
8737
8777
  /* @__PURE__ */ jsx("div", { className: "cls_notification_item_dot_col flex-shrink-0 pt-1.5", children: !isRead ? /* @__PURE__ */ jsx(
8738
8778
  "span",
8739
8779
  {
8740
- "aria-label": "Unread",
8780
+ "aria-label": t10("notification.unread"),
8741
8781
  className: "cls_notification_item_dot block w-2 h-2 rounded-full bg-primary"
8742
8782
  }
8743
8783
  ) : /* @__PURE__ */ jsx("span", { className: "block w-2 h-2", "aria-hidden": "true" }) }),
@@ -8761,12 +8801,13 @@ function NotificationItem({
8761
8801
  }
8762
8802
  );
8763
8803
  }
8804
+ var t11 = createPackageT("hazo_ui", en_default);
8764
8805
  function LoadingSkeletons() {
8765
8806
  return /* @__PURE__ */ jsx(
8766
8807
  "div",
8767
8808
  {
8768
8809
  "aria-busy": "true",
8769
- "aria-label": "Loading notifications",
8810
+ "aria-label": t11("notification.loading"),
8770
8811
  className: "cls_notification_panel_loading space-y-0",
8771
8812
  children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxs(
8772
8813
  "div",
@@ -8825,6 +8866,7 @@ function NotificationPanel({
8825
8866
  }
8826
8867
  );
8827
8868
  }
8869
+ var t12 = createPackageT("hazo_ui", en_default);
8828
8870
  function HazoUiToaster({
8829
8871
  position = "bottom-right",
8830
8872
  closeButton = true,
@@ -8870,12 +8912,12 @@ function permissionToast({
8870
8912
  action,
8871
8913
  duration = 5e3
8872
8914
  }) {
8873
- const description = missingPermissions.length === 0 ? "You do not have permission to perform this action." : `Missing: ${missingPermissions.map((key) => {
8915
+ const description = missingPermissions.length === 0 ? t12("toast.permission_denied_message") : `Missing: ${missingPermissions.map((key) => {
8874
8916
  const label = descriptions?.[key];
8875
8917
  return label ? `\`${key}\` \u2014 ${label}` : `\`${key}\``;
8876
8918
  }).join("; ")}`;
8877
8919
  return errorToast({
8878
- title: "Permission required",
8920
+ title: t12("toast.permission_required"),
8879
8921
  description,
8880
8922
  action,
8881
8923
  duration
@@ -9070,41 +9112,55 @@ function useWakeLock() {
9070
9112
  }
9071
9113
  function useFullscreen(elementRef) {
9072
9114
  const [is_fullscreen, set_is_fullscreen] = useState(false);
9115
+ const supported = typeof document !== "undefined" && typeof document.documentElement.requestFullscreen === "function";
9073
9116
  useEffect(() => {
9074
- if (typeof document === "undefined") return;
9117
+ if (typeof document === "undefined" || !supported) return;
9075
9118
  const handle_change = () => {
9076
9119
  set_is_fullscreen(!!document.fullscreenElement);
9077
9120
  };
9078
9121
  document.addEventListener("fullscreenchange", handle_change);
9079
9122
  set_is_fullscreen(!!document.fullscreenElement);
9080
9123
  return () => document.removeEventListener("fullscreenchange", handle_change);
9081
- }, []);
9124
+ }, [supported]);
9082
9125
  const get_target = useCallback(() => {
9083
9126
  return elementRef?.current ?? document.documentElement;
9084
9127
  }, [elementRef]);
9085
9128
  const enter = useCallback(async () => {
9086
- if (typeof document === "undefined" || !document.documentElement.requestFullscreen) return;
9129
+ if (typeof document === "undefined") return;
9130
+ if (!supported) {
9131
+ set_is_fullscreen(true);
9132
+ return;
9133
+ }
9087
9134
  if (document.fullscreenElement) return;
9088
9135
  try {
9089
9136
  await get_target().requestFullscreen();
9090
9137
  } catch {
9091
9138
  }
9092
- }, [get_target]);
9139
+ }, [supported, get_target]);
9093
9140
  const exit = useCallback(async () => {
9094
9141
  if (typeof document === "undefined") return;
9142
+ if (!supported) {
9143
+ set_is_fullscreen(false);
9144
+ return;
9145
+ }
9095
9146
  if (!document.fullscreenElement) return;
9096
9147
  try {
9097
9148
  await document.exitFullscreen();
9098
9149
  } catch {
9099
9150
  }
9100
- }, []);
9151
+ }, [supported]);
9101
9152
  const toggle = useCallback(async () => {
9153
+ if (!supported) {
9154
+ if (is_fullscreen) await exit();
9155
+ else await enter();
9156
+ return;
9157
+ }
9102
9158
  if (document.fullscreenElement) {
9103
9159
  await exit();
9104
9160
  } else {
9105
9161
  await enter();
9106
9162
  }
9107
- }, [enter, exit]);
9163
+ }, [supported, is_fullscreen, enter, exit]);
9108
9164
  return { isFullscreen: is_fullscreen, enter, exit, toggle };
9109
9165
  }
9110
9166
  function use_wake_lock(active) {
@@ -10724,7 +10780,7 @@ function serializeFilter(filter) {
10724
10780
  const fields = (filter.fields ?? []).map((f) => `${f.field}:${f.operator ?? ""}:${String(f.value)}`).join(",");
10725
10781
  return `${filter.search ?? ""}|${fields}`;
10726
10782
  }
10727
- var t3 = createPackageT("hazo_ui", en_default);
10783
+ var t13 = createPackageT("hazo_ui", en_default);
10728
10784
  function HazoUiTable(props) {
10729
10785
  const state = useTableState(props);
10730
10786
  const { columns, rows, getRowKey, className, caption } = props;
@@ -10759,12 +10815,12 @@ function HazoUiTable(props) {
10759
10815
  ) }) : state.serverError != null ? /* @__PURE__ */ jsx("div", { className: "cls_hazo_ui_table_mobile_error py-6", children: renderErrorState(props.error, state.serverError) }) : state.displayed.length === 0 ? /* @__PURE__ */ jsx("div", { className: "cls_hazo_ui_table_mobile_empty py-6", children: noActiveFilters(state.filter) && rows.length === 0 ? typeof props.empty === "string" || props.empty === void 0 ? /* @__PURE__ */ jsx(
10760
10816
  EmptyState,
10761
10817
  {
10762
- title: typeof props.empty === "string" && props.empty || t3("table.empty")
10818
+ title: typeof props.empty === "string" && props.empty || t13("table.empty")
10763
10819
  }
10764
10820
  ) : props.empty : typeof props.noResults === "string" || props.noResults === void 0 ? /* @__PURE__ */ jsx(
10765
10821
  EmptyState,
10766
10822
  {
10767
- title: typeof props.noResults === "string" && props.noResults || t3("table.no_results")
10823
+ title: typeof props.noResults === "string" && props.noResults || t13("table.no_results")
10768
10824
  }
10769
10825
  ) : props.noResults }) : /* @__PURE__ */ jsx(
10770
10826
  TableMobileCards,
@@ -10787,7 +10843,7 @@ function HazoUiTable(props) {
10787
10843
  {
10788
10844
  type: "button",
10789
10845
  onClick: (e) => state.cycleHeaderSort(c.key, e.shiftKey),
10790
- title: t3("table.sort_tooltip"),
10846
+ title: t13("table.sort_tooltip"),
10791
10847
  className: "cls_hazo_ui_table_sort_btn inline-flex items-center gap-1 hover:text-foreground",
10792
10848
  children: [
10793
10849
  /* @__PURE__ */ jsx("span", { children: c.label }),
@@ -10819,12 +10875,12 @@ function HazoUiTable(props) {
10819
10875
  children: noActiveFilters(state.filter) && rows.length === 0 ? /* @__PURE__ */ jsx("div", { className: "cls_hazo_ui_table_empty_wrap py-6", children: typeof props.empty === "string" || props.empty === void 0 ? /* @__PURE__ */ jsx(
10820
10876
  EmptyState,
10821
10877
  {
10822
- title: typeof props.empty === "string" && props.empty || t3("table.empty")
10878
+ title: typeof props.empty === "string" && props.empty || t13("table.empty")
10823
10879
  }
10824
10880
  ) : props.empty }) : /* @__PURE__ */ jsx("div", { className: "cls_hazo_ui_table_no_results_wrap py-6", children: typeof props.noResults === "string" || props.noResults === void 0 ? /* @__PURE__ */ jsx(
10825
10881
  EmptyState,
10826
10882
  {
10827
- title: typeof props.noResults === "string" && props.noResults || t3("table.no_results")
10883
+ title: typeof props.noResults === "string" && props.noResults || t13("table.no_results")
10828
10884
  }
10829
10885
  ) : props.noResults })
10830
10886
  }
@@ -10938,7 +10994,7 @@ function PaginationFooter({
10938
10994
  const end = Math.min((page + 1) * pageSize, total);
10939
10995
  const lastPage = Math.max(0, Math.ceil(total / pageSize) - 1);
10940
10996
  return /* @__PURE__ */ jsxs("div", { className: "cls_hazo_ui_table_pagination flex items-center justify-between gap-3 pt-2 text-sm", children: [
10941
- /* @__PURE__ */ jsx("span", { className: "cls_hazo_ui_table_page_counter text-muted-foreground", children: t3("table.showing", {
10997
+ /* @__PURE__ */ jsx("span", { className: "cls_hazo_ui_table_page_counter text-muted-foreground", children: t13("table.showing", {
10942
10998
  start: String(start),
10943
10999
  end: String(end),
10944
11000
  total: String(total)
@@ -10951,8 +11007,8 @@ function PaginationFooter({
10951
11007
  size: "sm",
10952
11008
  onClick: () => onPageChange(Math.max(0, page - 1)),
10953
11009
  disabled: page === 0,
10954
- "aria-label": t3("table.prev_aria"),
10955
- children: t3("table.prev")
11010
+ "aria-label": t13("table.prev_aria"),
11011
+ children: t13("table.prev")
10956
11012
  }
10957
11013
  ),
10958
11014
  /* @__PURE__ */ jsx(
@@ -10962,8 +11018,8 @@ function PaginationFooter({
10962
11018
  size: "sm",
10963
11019
  onClick: () => onPageChange(Math.min(lastPage, page + 1)),
10964
11020
  disabled: page >= lastPage,
10965
- "aria-label": t3("table.next_aria"),
10966
- children: t3("table.next")
11021
+ "aria-label": t13("table.next_aria"),
11022
+ children: t13("table.next")
10967
11023
  }
10968
11024
  )
10969
11025
  ] })
@@ -11007,7 +11063,7 @@ function Toolbar2(props) {
11007
11063
  setSearchValue(v);
11008
11064
  onSearchChange(v);
11009
11065
  },
11010
- placeholder: searchPlaceholder ?? t3("table.search_placeholder"),
11066
+ placeholder: searchPlaceholder ?? t13("table.search_placeholder"),
11011
11067
  className: "cls_hazo_ui_table_search w-full sm:max-w-xs"
11012
11068
  }
11013
11069
  ) : /* @__PURE__ */ jsx("div", {}),
@@ -11055,8 +11111,8 @@ function renderErrorState(error, serverError) {
11055
11111
  return /* @__PURE__ */ jsx(
11056
11112
  EmptyState,
11057
11113
  {
11058
- title: t3("table.error_title"),
11059
- description: msg || t3("table.error_description")
11114
+ title: t13("table.error_title"),
11115
+ description: msg || t13("table.error_description")
11060
11116
  }
11061
11117
  );
11062
11118
  }
@@ -11842,8 +11898,8 @@ function computeEta(durationWindow, unitCount, concurrency = 1, fallbackUnitMs =
11842
11898
  }
11843
11899
  function easeToward(elapsed, eta, maxCap = 0.95) {
11844
11900
  if (eta <= 0 || elapsed <= 0) return 0;
11845
- const t4 = elapsed / eta;
11846
- return maxCap * (1 - Math.exp(-1.5 * t4));
11901
+ const t14 = elapsed / eta;
11902
+ return maxCap * (1 - Math.exp(-1.5 * t14));
11847
11903
  }
11848
11904
  function HazoUiProgressBar({
11849
11905
  value,
@@ -11874,7 +11930,7 @@ function HazoUiProgressBar({
11874
11930
  children: /* @__PURE__ */ jsx(
11875
11931
  "div",
11876
11932
  {
11877
- className: "h-full rounded-full bg-accent transition-[width] duration-200 ease-out motion-reduce:transition-none",
11933
+ className: "h-full rounded-full bg-primary transition-[width] duration-200 ease-out motion-reduce:transition-none",
11878
11934
  style: { width: `${pct}%` }
11879
11935
  }
11880
11936
  )
@@ -11961,6 +12017,8 @@ function HazoUiEtaProgress({
11961
12017
  fallbackUnitMs = 5e3,
11962
12018
  level = "global",
11963
12019
  label,
12020
+ showPercent,
12021
+ size,
11964
12022
  endpoint,
11965
12023
  handleRef,
11966
12024
  className
@@ -11995,6 +12053,8 @@ function HazoUiEtaProgress({
11995
12053
  {
11996
12054
  value: handle.value,
11997
12055
  label,
12056
+ showPercent,
12057
+ size,
11998
12058
  className
11999
12059
  }
12000
12060
  );