ode-explorer 1.4.2-develop-pedago.202405171443 → 1.4.2-develop-pedago.202406041347

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
@@ -96,8 +96,8 @@ function _mergeNamespaces(n2, m2) {
96
96
  fetch(link.href, fetchOpts);
97
97
  }
98
98
  })();
99
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
100
- function getDefaultExportFromCjs(x2) {
99
+ var commonjsGlobal$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
100
+ function getDefaultExportFromCjs$1(x2) {
101
101
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
102
102
  }
103
103
  function getAugmentedNamespace(n2) {
@@ -415,7 +415,7 @@ react_production_min.version = "18.2.0";
415
415
  react.exports = react_production_min;
416
416
  }
417
417
  var reactExports = react.exports;
418
- const React$2 = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
418
+ const React$2 = /* @__PURE__ */ getDefaultExportFromCjs$1(reactExports);
419
419
  const React$3 = /* @__PURE__ */ _mergeNamespaces({
420
420
  __proto__: null,
421
421
  default: React$2
@@ -2993,7 +2993,7 @@ function requireBrowserPonyfill() {
2993
2993
  return browserPonyfill.exports;
2994
2994
  hasRequiredBrowserPonyfill = 1;
2995
2995
  (function(module, exports) {
2996
- var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof commonjsGlobal !== "undefined" && commonjsGlobal;
2996
+ var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof commonjsGlobal$1 !== "undefined" && commonjsGlobal$1;
2997
2997
  var __globalThis__ = function() {
2998
2998
  function F2() {
2999
2999
  this.fetch = false;
@@ -3514,8 +3514,8 @@ function requireBrowserPonyfill() {
3514
3514
  (function(module, exports) {
3515
3515
  var fetchApi2;
3516
3516
  if (typeof fetch === "function") {
3517
- if (typeof commonjsGlobal !== "undefined" && commonjsGlobal.fetch) {
3518
- fetchApi2 = commonjsGlobal.fetch;
3517
+ if (typeof commonjsGlobal$1 !== "undefined" && commonjsGlobal$1.fetch) {
3518
+ fetchApi2 = commonjsGlobal$1.fetch;
3519
3519
  } else if (typeof window !== "undefined" && window.fetch) {
3520
3520
  fetchApi2 = window.fetch;
3521
3521
  } else {
@@ -3531,7 +3531,7 @@ function requireBrowserPonyfill() {
3531
3531
  }
3532
3532
  })(getFetch$1, getFetch$1.exports);
3533
3533
  var getFetchExports = getFetch$1.exports;
3534
- const getFetch = /* @__PURE__ */ getDefaultExportFromCjs(getFetchExports);
3534
+ const getFetch = /* @__PURE__ */ getDefaultExportFromCjs$1(getFetchExports);
3535
3535
  const fetchNode = /* @__PURE__ */ _mergeNamespaces({
3536
3536
  __proto__: null,
3537
3537
  default: getFetch
@@ -6661,7 +6661,7 @@ var dayjs_min = { exports: {} };
6661
6661
  (function(module, exports) {
6662
6662
  !function(t2, e2) {
6663
6663
  module.exports = e2();
6664
- }(commonjsGlobal, function() {
6664
+ }(commonjsGlobal$1, function() {
6665
6665
  var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c6 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
6666
6666
  var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
6667
6667
  return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
@@ -6948,12 +6948,12 @@ var dayjs_min = { exports: {} };
6948
6948
  });
6949
6949
  })(dayjs_min);
6950
6950
  var dayjs_minExports = dayjs_min.exports;
6951
- const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
6951
+ const dayjs = /* @__PURE__ */ getDefaultExportFromCjs$1(dayjs_minExports);
6952
6952
  var customParseFormat$1 = { exports: {} };
6953
6953
  (function(module, exports) {
6954
6954
  !function(e2, t2) {
6955
6955
  module.exports = t2();
6956
- }(commonjsGlobal, function() {
6956
+ }(commonjsGlobal$1, function() {
6957
6957
  var e2 = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t2 = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n2 = /\d\d/, r2 = /\d\d?/, i2 = /\d*[^-_:/,()\s\d]+/, o2 = {}, s2 = function(e3) {
6958
6958
  return (e3 = +e3) + (e3 > 68 ? 1900 : 2e3);
6959
6959
  };
@@ -7083,12 +7083,12 @@ var customParseFormat$1 = { exports: {} };
7083
7083
  });
7084
7084
  })(customParseFormat$1);
7085
7085
  var customParseFormatExports = customParseFormat$1.exports;
7086
- const customParseFormat = /* @__PURE__ */ getDefaultExportFromCjs(customParseFormatExports);
7086
+ const customParseFormat = /* @__PURE__ */ getDefaultExportFromCjs$1(customParseFormatExports);
7087
7087
  var relativeTime$1 = { exports: {} };
7088
7088
  (function(module, exports) {
7089
7089
  !function(r2, e2) {
7090
7090
  module.exports = e2();
7091
- }(commonjsGlobal, function() {
7091
+ }(commonjsGlobal$1, function() {
7092
7092
  return function(r2, e2, t2) {
7093
7093
  r2 = r2 || {};
7094
7094
  var n2 = e2.prototype, o2 = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
@@ -7128,12 +7128,12 @@ var relativeTime$1 = { exports: {} };
7128
7128
  });
7129
7129
  })(relativeTime$1);
7130
7130
  var relativeTimeExports = relativeTime$1.exports;
7131
- const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
7131
+ const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs$1(relativeTimeExports);
7132
7132
  var de$2 = { exports: {} };
7133
7133
  (function(module, exports) {
7134
7134
  !function(e2, n2) {
7135
7135
  module.exports = n2(dayjs_minExports);
7136
- }(commonjsGlobal, function(e2) {
7136
+ }(commonjsGlobal$1, function(e2) {
7137
7137
  function n2(e3) {
7138
7138
  return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
7139
7139
  }
@@ -7152,7 +7152,7 @@ var es = { exports: {} };
7152
7152
  (function(module, exports) {
7153
7153
  !function(e2, o2) {
7154
7154
  module.exports = o2(dayjs_minExports);
7155
- }(commonjsGlobal, function(e2) {
7155
+ }(commonjsGlobal$1, function(e2) {
7156
7156
  function o2(e3) {
7157
7157
  return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
7158
7158
  }
@@ -7162,25 +7162,11 @@ var es = { exports: {} };
7162
7162
  return s2.default.locale(d2, null, true), d2;
7163
7163
  });
7164
7164
  })(es);
7165
- var pt = { exports: {} };
7166
- (function(module, exports) {
7167
- !function(e2, a2) {
7168
- module.exports = a2(dayjs_minExports);
7169
- }(commonjsGlobal, function(e2) {
7170
- function a2(e3) {
7171
- return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
7172
- }
7173
- var o2 = a2(e2), t2 = { name: "pt", weekdays: "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"), weekdaysShort: "dom_seg_ter_qua_qui_sex_sab".split("_"), weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"), months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), ordinal: function(e3) {
7174
- return e3 + "º";
7175
- }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, relativeTime: { future: "em %s", past: "há %s", s: "alguns segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" } };
7176
- return o2.default.locale(t2, null, true), t2;
7177
- });
7178
- })(pt);
7179
7165
  var fr = { exports: {} };
7180
7166
  (function(module, exports) {
7181
7167
  !function(e2, n2) {
7182
7168
  module.exports = n2(dayjs_minExports);
7183
- }(commonjsGlobal, function(e2) {
7169
+ }(commonjsGlobal$1, function(e2) {
7184
7170
  function n2(e3) {
7185
7171
  return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
7186
7172
  }
@@ -7194,7 +7180,7 @@ var it = { exports: {} };
7194
7180
  (function(module, exports) {
7195
7181
  !function(e2, o2) {
7196
7182
  module.exports = o2(dayjs_minExports);
7197
- }(commonjsGlobal, function(e2) {
7183
+ }(commonjsGlobal$1, function(e2) {
7198
7184
  function o2(e3) {
7199
7185
  return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
7200
7186
  }
@@ -7204,6 +7190,20 @@ var it = { exports: {} };
7204
7190
  return t2.default.locale(n2, null, true), n2;
7205
7191
  });
7206
7192
  })(it);
7193
+ var pt = { exports: {} };
7194
+ (function(module, exports) {
7195
+ !function(e2, a2) {
7196
+ module.exports = a2(dayjs_minExports);
7197
+ }(commonjsGlobal$1, function(e2) {
7198
+ function a2(e3) {
7199
+ return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
7200
+ }
7201
+ var o2 = a2(e2), t2 = { name: "pt", weekdays: "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"), weekdaysShort: "dom_seg_ter_qua_qui_sex_sab".split("_"), weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"), months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), ordinal: function(e3) {
7202
+ return e3 + "º";
7203
+ }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, relativeTime: { future: "em %s", past: "há %s", s: "alguns segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" } };
7204
+ return o2.default.locale(t2, null, true), t2;
7205
+ });
7206
+ })(pt);
7207
7207
  var uaParser = { exports: {} };
7208
7208
  (function(module, exports) {
7209
7209
  (function(window2, undefined$12) {
@@ -8443,7 +8443,7 @@ var uaParser = { exports: {} };
8443
8443
  }
8444
8444
  };
8445
8445
  }
8446
- })(typeof window === "object" ? window : commonjsGlobal);
8446
+ })(typeof window === "object" ? window : commonjsGlobal$1);
8447
8447
  })(uaParser, uaParser.exports);
8448
8448
  let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.querySelector("#_goober") : window._goober) || Object.assign((t2 || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t2 || e$2, l$2 = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, a$1 = /\/\*[^]*?\*\/| +/g, n$4 = /\n+/g, o$1 = (e2, t2) => {
8449
8449
  let r2 = "", l2 = "", a2 = "";
@@ -17071,7 +17071,7 @@ function useController(props) {
17071
17071
  field: {
17072
17072
  name,
17073
17073
  value,
17074
- ...isBoolean$1(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {},
17074
+ ...isBoolean$1(disabled) || isBoolean$1(formState.disabled) ? { disabled: formState.disabled || disabled } : {},
17075
17075
  onChange: React$2.useCallback((event) => _registerProps.current.onChange({
17076
17076
  target: {
17077
17077
  value: getEventValue(event),
@@ -17585,7 +17585,7 @@ function createFormControl(props = {}, flushRootRender) {
17585
17585
  touchedFields: {},
17586
17586
  dirtyFields: {},
17587
17587
  errors: _options.errors || {},
17588
- disabled: _options.disabled || false
17588
+ disabled: false
17589
17589
  };
17590
17590
  let _fields = {};
17591
17591
  let _defaultValues = isObject$3(_options.defaultValues) || isObject$3(_options.values) ? cloneObject(_options.defaultValues || _options.values) || {} : {};
@@ -17616,6 +17616,7 @@ function createFormControl(props = {}, flushRootRender) {
17616
17616
  array: createSubject(),
17617
17617
  state: createSubject()
17618
17618
  };
17619
+ const shouldCaptureDirtyFields = props.resetOptions && props.resetOptions.keepDirtyValues;
17619
17620
  const validationModeBeforeSubmit = getValidationModes(_options.mode);
17620
17621
  const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);
17621
17622
  const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;
@@ -18143,17 +18144,17 @@ function createFormControl(props = {}, flushRootRender) {
18143
18144
  const resetField = (name, options = {}) => {
18144
18145
  if (get(_fields, name)) {
18145
18146
  if (isUndefined(options.defaultValue)) {
18146
- setValue(name, cloneObject(get(_defaultValues, name)));
18147
+ setValue(name, get(_defaultValues, name));
18147
18148
  } else {
18148
18149
  setValue(name, options.defaultValue);
18149
- set(_defaultValues, name, cloneObject(options.defaultValue));
18150
+ set(_defaultValues, name, options.defaultValue);
18150
18151
  }
18151
18152
  if (!options.keepTouched) {
18152
18153
  unset(_formState.touchedFields, name);
18153
18154
  }
18154
18155
  if (!options.keepDirty) {
18155
18156
  unset(_formState.dirtyFields, name);
18156
- _formState.isDirty = options.defaultValue ? _getDirty(name, cloneObject(get(_defaultValues, name))) : _getDirty();
18157
+ _formState.isDirty = options.defaultValue ? _getDirty(name, get(_defaultValues, name)) : _getDirty();
18157
18158
  }
18158
18159
  if (!options.keepError) {
18159
18160
  unset(_formState.errors, name);
@@ -18170,7 +18171,7 @@ function createFormControl(props = {}, flushRootRender) {
18170
18171
  _defaultValues = updatedValues;
18171
18172
  }
18172
18173
  if (!keepStateOptions.keepValues) {
18173
- if (keepStateOptions.keepDirtyValues) {
18174
+ if (keepStateOptions.keepDirtyValues || shouldCaptureDirtyFields) {
18174
18175
  for (const fieldName of _names.mount) {
18175
18176
  get(_formState.dirtyFields, fieldName) ? set(values, fieldName, get(_formValues, fieldName)) : setValue(fieldName, get(values, fieldName));
18176
18177
  }
@@ -18335,7 +18336,7 @@ function useForm(props = {}) {
18335
18336
  dirtyFields: {},
18336
18337
  touchedFields: {},
18337
18338
  errors: props.errors || {},
18338
- disabled: props.disabled || false,
18339
+ disabled: false,
18339
18340
  defaultValues: isFunction(props.defaultValues) ? void 0 : props.defaultValues
18340
18341
  });
18341
18342
  if (!_formControl.current) {
@@ -18720,7 +18721,7 @@ async function detectOverflow$1(state, options) {
18720
18721
  right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
18721
18722
  };
18722
18723
  }
18723
- const flip$3 = function(options) {
18724
+ const flip$4 = function(options) {
18724
18725
  if (options === void 0) {
18725
18726
  options = {};
18726
18727
  }
@@ -18852,7 +18853,7 @@ async function convertValueToCoords(state, options) {
18852
18853
  y: crossAxis * crossAxisMulti
18853
18854
  };
18854
18855
  }
18855
- const offset$3 = function(options) {
18856
+ const offset$4 = function(options) {
18856
18857
  if (options === void 0) {
18857
18858
  options = 0;
18858
18859
  }
@@ -18882,7 +18883,7 @@ const offset$3 = function(options) {
18882
18883
  }
18883
18884
  };
18884
18885
  };
18885
- const size$1 = function(options) {
18886
+ const size$2 = function(options) {
18886
18887
  if (options === void 0) {
18887
18888
  options = {};
18888
18889
  }
@@ -19625,9 +19626,9 @@ function autoUpdate(reference2, floating, update2, options) {
19625
19626
  }
19626
19627
  };
19627
19628
  }
19628
- const offset$2 = offset$3;
19629
- const flip$2 = flip$3;
19630
- const size = size$1;
19629
+ const offset$3 = offset$4;
19630
+ const flip$3 = flip$4;
19631
+ const size$1 = size$2;
19631
19632
  const computePosition = (reference2, floating, options) => {
19632
19633
  const cache = /* @__PURE__ */ new Map();
19633
19634
  const mergedOptions = {
@@ -19858,6 +19859,18 @@ function useFloating$1(options) {
19858
19859
  floatingStyles
19859
19860
  }), [data, update2, refs, elements, floatingStyles]);
19860
19861
  }
19862
+ const offset$2 = (options, deps) => ({
19863
+ ...offset$3(options),
19864
+ options: [options, deps]
19865
+ });
19866
+ const flip$2 = (options, deps) => ({
19867
+ ...flip$3(options),
19868
+ options: [options, deps]
19869
+ });
19870
+ const size = (options, deps) => ({
19871
+ ...size$1(options),
19872
+ options: [options, deps]
19873
+ });
19861
19874
  var index = typeof document !== "undefined" ? reactExports.useLayoutEffect : reactExports.useEffect;
19862
19875
  let serverHandoffComplete = false;
19863
19876
  let count = 0;
@@ -25071,7 +25084,7 @@ var reactFastCompare = function isEqual(a2, b2) {
25071
25084
  throw error;
25072
25085
  }
25073
25086
  };
25074
- const isEqual2 = /* @__PURE__ */ getDefaultExportFromCjs(reactFastCompare);
25087
+ const isEqual2 = /* @__PURE__ */ getDefaultExportFromCjs$1(reactFastCompare);
25075
25088
  var EMPTY_MODIFIERS = [];
25076
25089
  var usePopper = function usePopper2(referenceElement, popperElement, options) {
25077
25090
  if (options === void 0) {
@@ -30702,7 +30715,7 @@ var lib$2 = {};
30702
30715
  exports.Doctype = ElementType.Doctype;
30703
30716
  })(lib$2);
30704
30717
  var node = {};
30705
- var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ function() {
30718
+ var __extends = commonjsGlobal$1 && commonjsGlobal$1.__extends || /* @__PURE__ */ function() {
30706
30719
  var extendStatics = function(d2, b2) {
30707
30720
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
30708
30721
  d3.__proto__ = b3;
@@ -30723,7 +30736,7 @@ var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ fu
30723
30736
  d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
30724
30737
  };
30725
30738
  }();
30726
- var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
30739
+ var __assign = commonjsGlobal$1 && commonjsGlobal$1.__assign || function() {
30727
30740
  __assign = Object.assign || function(t2) {
30728
30741
  for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
30729
30742
  s2 = arguments[i2];
@@ -31133,7 +31146,7 @@ function cloneChildren(childs) {
31133
31146
  return children;
31134
31147
  }
31135
31148
  (function(exports) {
31136
- var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
31149
+ var __createBinding = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
31137
31150
  if (k22 === void 0)
31138
31151
  k22 = k2;
31139
31152
  var desc = Object.getOwnPropertyDescriptor(m2, k2);
@@ -31148,7 +31161,7 @@ function cloneChildren(childs) {
31148
31161
  k22 = k2;
31149
31162
  o2[k22] = m2[k2];
31150
31163
  });
31151
- var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m2, exports2) {
31164
+ var __exportStar = commonjsGlobal$1 && commonjsGlobal$1.__exportStar || function(m2, exports2) {
31152
31165
  for (var p2 in m2)
31153
31166
  if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2))
31154
31167
  __createBinding(exports2, m2, p2);
@@ -32701,7 +32714,7 @@ var camelCase = function(property, options) {
32701
32714
  };
32702
32715
  utilities$3.camelCase = camelCase;
32703
32716
  (function(exports) {
32704
- var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
32717
+ var __importDefault = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod) {
32705
32718
  return mod && mod.__esModule ? mod : { "default": mod };
32706
32719
  };
32707
32720
  exports.__esModule = true;
@@ -32966,7 +32979,7 @@ HTMLReactParser.ProcessingInstruction = domhandler.ProcessingInstruction;
32966
32979
  HTMLReactParser.Text = domhandler.Text;
32967
32980
  var htmlReactParser = HTMLReactParser;
32968
32981
  HTMLReactParser.default = HTMLReactParser;
32969
- const HTMLReactParser$1 = /* @__PURE__ */ getDefaultExportFromCjs(htmlReactParser);
32982
+ const HTMLReactParser$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(htmlReactParser);
32970
32983
  var domToReact = HTMLReactParser$1.domToReact;
32971
32984
  HTMLReactParser$1.htmlToDOM;
32972
32985
  var attributesToProps2 = HTMLReactParser$1.attributesToProps;
@@ -37415,7 +37428,7 @@ var eventemitter3 = { exports: {} };
37415
37428
  }
37416
37429
  })(eventemitter3);
37417
37430
  var eventemitter3Exports = eventemitter3.exports;
37418
- const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs(eventemitter3Exports);
37431
+ const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs$1(eventemitter3Exports);
37419
37432
  var earcut$2 = { exports: {} };
37420
37433
  earcut$2.exports = earcut;
37421
37434
  earcut$2.exports.default = earcut;
@@ -37877,7 +37890,7 @@ earcut.flatten = function(data) {
37877
37890
  return result;
37878
37891
  };
37879
37892
  var earcutExports = earcut$2.exports;
37880
- const earcut$1 = /* @__PURE__ */ getDefaultExportFromCjs(earcutExports);
37893
+ const earcut$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(earcutExports);
37881
37894
  var punycode$1 = { exports: {} };
37882
37895
  /*! https://mths.be/punycode v1.4.1 by @mathias */
37883
37896
  punycode$1.exports;
@@ -37885,7 +37898,7 @@ punycode$1.exports;
37885
37898
  (function(root2) {
37886
37899
  var freeExports = exports && !exports.nodeType && exports;
37887
37900
  var freeModule = module && !module.nodeType && module;
37888
- var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal;
37901
+ var freeGlobal = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1;
37889
37902
  if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) {
37890
37903
  root2 = freeGlobal;
37891
37904
  }
@@ -38117,7 +38130,7 @@ punycode$1.exports;
38117
38130
  } else {
38118
38131
  root2.punycode = punycode2;
38119
38132
  }
38120
- })(commonjsGlobal);
38133
+ })(commonjsGlobal$1);
38121
38134
  })(punycode$1, punycode$1.exports);
38122
38135
  var punycodeExports = punycode$1.exports;
38123
38136
  var esErrors = Error;
@@ -38972,7 +38985,7 @@ var objectInspect = function inspect_(obj, options, depth, seen2) {
38972
38985
  if (typeof window !== "undefined" && obj === window) {
38973
38986
  return "{ [object Window] }";
38974
38987
  }
38975
- if (obj === commonjsGlobal) {
38988
+ if (obj === commonjsGlobal$1) {
38976
38989
  return "{ [object globalThis] }";
38977
38990
  }
38978
38991
  if (!isDate(obj) && !isRegExp$1(obj)) {
@@ -62529,7 +62542,18 @@ function useBookmark() {
62529
62542
  return set2.add(el2.displayName), !duplicate;
62530
62543
  });
62531
62544
  }
62532
- const MockedDataContext = /* @__PURE__ */ reactExports.createContext(null);
62545
+ const isActionAvailable = (workflow, actions) => {
62546
+ const found = actions == null ? void 0 : actions.filter((action) => action.id === workflow && action.available);
62547
+ return found && found.length > 0;
62548
+ }, libraryMaps = {
62549
+ blog: "Blog",
62550
+ mindmap: "MindMap",
62551
+ scrapbook: "ScrapBook",
62552
+ collaborativewall: "CollaborativeWall",
62553
+ timelinegenerator: "TimelineGenerator",
62554
+ wiki: "Wiki",
62555
+ exercizer: "Exercizer"
62556
+ }, MockedDataContext = /* @__PURE__ */ reactExports.createContext(null);
62533
62557
  function useMockedData() {
62534
62558
  return reactExports.useContext(MockedDataContext);
62535
62559
  }
@@ -62543,18 +62567,6 @@ function setRef(val, ...refs) {
62543
62567
  typeof ref2 == "function" ? ref2(val) : ref2 != null && (ref2.current = val);
62544
62568
  });
62545
62569
  }
62546
- const isActionAvailable = (workflow, actions) => {
62547
- const found = actions == null ? void 0 : actions.filter((action) => action.id === workflow && action.available);
62548
- return found && found.length > 0;
62549
- }, libraryMaps = {
62550
- blog: "Blog",
62551
- mindmap: "MindMap",
62552
- scrapbook: "ScrapBook",
62553
- collaborativewall: "CollaborativeWall",
62554
- timelinegenerator: "TimelineGenerator",
62555
- wiki: "Wiki",
62556
- exercizer: "Exercizer"
62557
- };
62558
62570
  function useHasWorkflow(workflow) {
62559
62571
  const mock = useMockedData(), [state, setState] = reactExports.useState();
62560
62572
  return reactExports.useEffect(() => {
@@ -62608,40 +62620,83 @@ const useConversation = () => {
62608
62620
  zimbraWorkflow
62609
62621
  };
62610
62622
  }, useConversation$1 = useConversation;
62623
+ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
62624
+ function getDefaultExportFromCjs(x2) {
62625
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2.default : x2;
62626
+ }
62627
+ var localizedFormat$1 = { exports: {} };
62628
+ (function(module, exports) {
62629
+ (function(e2, t2) {
62630
+ module.exports = t2();
62631
+ })(commonjsGlobal, function() {
62632
+ var e2 = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
62633
+ return function(t2, o2, n2) {
62634
+ var r2 = o2.prototype, i2 = r2.format;
62635
+ n2.en.formats = e2, r2.format = function(t22) {
62636
+ t22 === void 0 && (t22 = "YYYY-MM-DDTHH:mm:ssZ");
62637
+ var o22 = this.$locale().formats, n22 = function(t3, o3) {
62638
+ return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t4, n3, r22) {
62639
+ var i22 = r22 && r22.toUpperCase();
62640
+ return n3 || o3[r22] || e2[r22] || o3[i22].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e22, t5, o4) {
62641
+ return t5 || o4.slice(1);
62642
+ });
62643
+ });
62644
+ }(t22, o22 === void 0 ? {} : o22);
62645
+ return i2.call(this, n22);
62646
+ };
62647
+ };
62648
+ });
62649
+ })(localizedFormat$1);
62650
+ var localizedFormatExports = localizedFormat$1.exports;
62651
+ const localizedFormat = /* @__PURE__ */ getDefaultExportFromCjs(localizedFormatExports);
62611
62652
  dayjs.extend(relativeTime);
62612
62653
  dayjs.extend(customParseFormat);
62654
+ dayjs.extend(localizedFormat);
62613
62655
  function useDate() {
62614
- const [lang, setLang] = reactExports.useState("fr"), sessionQuery = useSession();
62615
- function parseDate(date, lang2) {
62656
+ const {
62657
+ currentLanguage
62658
+ } = useOdeClient(), parseDate = reactExports.useCallback((date, lang) => {
62616
62659
  if (date.length < 11)
62617
- return dayjs(date, ["YYYY-MM-DD"], lang2);
62660
+ return dayjs(date, ["YYYY-MM-DD"], lang);
62618
62661
  if (date.split("").findIndex((char) => "0" > char || char > "9") < 0)
62619
- return dayjs(Number.parseInt(date));
62662
+ return dayjs(Number.parseInt(date)).locale(currentLanguage);
62620
62663
  {
62621
- let day = dayjs(date);
62622
- return day.isValid() || (day = dayjs(date, ["YYYY-MM-DD HH:mm:ss.SSS"])), day;
62664
+ let day = dayjs(date).locale(currentLanguage);
62665
+ return day.isValid() || (day = dayjs(date, ["YYYY-MM-DD HH:mm:ss.SSS"]).locale(currentLanguage)), day;
62623
62666
  }
62624
- }
62625
- const fromNow = reactExports.useCallback((date) => {
62667
+ }, [currentLanguage]), fromNow = reactExports.useCallback((date) => {
62626
62668
  let computedDate = dayjs();
62627
62669
  try {
62628
- return typeof date > "u" ? "" : (typeof date == "string" ? computedDate = parseDate(date, lang) : typeof date.$date == "number" ? computedDate = dayjs(new Date(date.$date)) : typeof date.$date == "string" && (computedDate = parseDate(date.$date, lang)), computedDate.isValid() ? computedDate.fromNow() : "");
62670
+ return typeof date > "u" ? "" : (typeof date == "string" ? computedDate = parseDate(date) : typeof date == "number" ? computedDate = dayjs(date).locale(currentLanguage) : typeof date.$date == "number" ? computedDate = dayjs(new Date(date.$date)).locale(currentLanguage) : typeof date.$date == "string" && (computedDate = parseDate(date.$date)), computedDate.isValid() ? computedDate.fromNow() : "");
62629
62671
  } catch {
62630
62672
  return "";
62631
62673
  }
62632
- }, [lang]), formatDate = reactExports.useCallback((date, format) => {
62674
+ }, [currentLanguage, parseDate]), formatDate = reactExports.useCallback((date, format = "short") => {
62633
62675
  let computedDate = dayjs();
62634
62676
  try {
62635
- return typeof date > "u" ? "" : (typeof date == "string" ? computedDate = parseDate(date, lang) : typeof date.$date == "number" ? computedDate = dayjs(new Date(date.$date)) : typeof date.$date == "string" && (computedDate = parseDate(date.$date, lang)), computedDate.isValid() ? computedDate.locale(lang).format(format || "D MMMM YYYY HH:mm:ss") : "");
62677
+ if (typeof date > "u")
62678
+ return "";
62679
+ typeof date == "string" ? computedDate = parseDate(date) : typeof date.$date == "number" ? computedDate = dayjs(new Date(date.$date)).locale(currentLanguage) : typeof date.$date == "string" && (computedDate = parseDate(date.$date));
62680
+ let dayjsFormat = "";
62681
+ switch (format) {
62682
+ case "short":
62683
+ dayjsFormat = "L";
62684
+ break;
62685
+ case "long":
62686
+ dayjsFormat = "LL";
62687
+ break;
62688
+ case "abbr":
62689
+ dayjsFormat = "ll";
62690
+ break;
62691
+ default:
62692
+ dayjsFormat = format;
62693
+ }
62694
+ return computedDate.isValid() ? computedDate.locale(currentLanguage).format(dayjsFormat) : "";
62636
62695
  } catch {
62637
62696
  return "";
62638
62697
  }
62639
- }, [lang]);
62640
- return reactExports.useEffect(() => {
62641
- var _a2;
62642
- const lang2 = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.currentLanguage) || "fr";
62643
- setLang(lang2), dayjs.locale(lang2);
62644
- }, [sessionQuery == null ? void 0 : sessionQuery.data, setLang]), {
62698
+ }, [currentLanguage, parseDate]);
62699
+ return {
62645
62700
  fromNow,
62646
62701
  formatDate
62647
62702
  };
@@ -64046,8 +64101,7 @@ const TextArea = /* @__PURE__ */ reactExports.forwardRef(({
64046
64101
  className,
64047
64102
  ...restProps
64048
64103
  }, ref2) => {
64049
- var _a2, _b2;
64050
- const [content, setContent] = reactExports.useState(((_a2 = restProps.defaultValue) == null ? void 0 : _a2.toString()) || ((_b2 = restProps.value) == null ? void 0 : _b2.toString())), {
64104
+ const {
64051
64105
  id: id2,
64052
64106
  isRequired,
64053
64107
  isReadOnly,
@@ -64064,22 +64118,13 @@ const TextArea = /* @__PURE__ */ reactExports.forwardRef(({
64064
64118
  "form-control-plaintext": isReadOnly,
64065
64119
  "no-validation-icon": noValidationIcon
64066
64120
  }, className);
64067
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
64068
- /* @__PURE__ */ jsxRuntimeExports.jsx("textarea", { ref: ref2, id: id2, className: classes2, placeholder, required: isRequired, readOnly: isReadOnly, ...restProps, value: content, onChange: (event) => {
64069
- setContent(event.target.value);
64070
- } }),
64071
- restProps.maxLength && content && /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "small text-gray-700 p-2 text-end", children: [
64072
- content.length,
64073
- " / ",
64074
- restProps.maxLength
64075
- ] })
64076
- ] });
64121
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("textarea", { ref: ref2, id: id2, className: classes2, placeholder, required: isRequired, readOnly: isReadOnly, ...restProps }) });
64077
64122
  }), TextArea$1 = TextArea;
64078
64123
  function useTreeItemEvents(nodeId, label, expanded, setExpanded, onItemSelect, onItemFold, onItemUnfold, onItemFocus, onItemBlur) {
64079
64124
  const handleItemClick = (event) => {
64080
- event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), event.stopPropagation();
64125
+ event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), itemFoldUnfold(), event.stopPropagation();
64081
64126
  }, handleItemKeyDown = (event) => {
64082
- (event.code === "Enter" || event.code === "Space") && (event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), event.stopPropagation());
64127
+ (event.code === "Enter" || event.code === "Space") && (event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), itemFoldUnfold(), event.stopPropagation());
64083
64128
  }, itemFoldUnfold = () => {
64084
64129
  setExpanded(!expanded), expanded ? onItemFold == null || onItemFold(nodeId) : onItemUnfold == null || onItemUnfold(nodeId);
64085
64130
  };
@@ -64133,8 +64178,8 @@ const TreeItem = (props) => {
64133
64178
  const rafterSize = section ? 16 : 12, renderItem = () => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { id: `listitem_${nodeId}`, role: "treeitem", "aria-selected": selected, "aria-expanded": expanded, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
64134
64179
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "action-container d-flex align-items-center gap-8 px-2", children: [
64135
64180
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `py-8 ${Array.isArray(children) ? null : "invisible"}`, tabIndex: 0, role: "button", onClick: handleItemFoldUnfoldClick, onKeyDown: handleItemFoldUnfoldKeyDown, "aria-label": t2("foldUnfold"), children: [
64136
- Array.isArray(children) && !expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterRight$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
64137
- Array.isArray(children) && expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterDown$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
64181
+ Array.isArray(children) && !!children.length && !expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterRight$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
64182
+ Array.isArray(children) && !!children.length && expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterDown$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
64138
64183
  !Array.isArray(children) && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterRight$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize, "aria-hidden": "true" })
64139
64184
  ] }),
64140
64185
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { tabIndex: 0, role: "button", className: "flex-fill d-flex align-items-center text-truncate gap-8 py-8", onClick: handleItemClick, onKeyDown: handleItemKeyDown, onFocus: handleItemFocus, onBlur: handleItemBlur, children: [
@@ -64738,7 +64783,10 @@ function PublishModal$2({
64738
64783
  ] })
64739
64784
  ] }), document.getElementById("portal")) : /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingScreen$1, {});
64740
64785
  }
64741
- const useThumb = ({
64786
+ const TextareaCounter = ({
64787
+ content,
64788
+ maxLength
64789
+ }) => /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "small text-gray-700 p-2 text-end", children: content ? `${content.length} / ${maxLength}` : "" }), useThumb = ({
64742
64790
  isUpdating,
64743
64791
  selectedResource
64744
64792
  }) => {
@@ -64750,11 +64798,13 @@ const useThumb = ({
64750
64798
  handleDeleteImage: () => setThumbnail(""),
64751
64799
  handleUploadImage: (file) => setThumbnail(file)
64752
64800
  };
64753
- }, ResourceModal$1 = ({
64801
+ }, DEFAULT_INPUT_MAX_LENGTH = 60, DEFAULT_TEXTAREA_MAX_LENGTH = 400, ResourceModal$1 = ({
64754
64802
  isOpen,
64755
64803
  onCancel,
64756
64804
  onSuccess,
64757
64805
  children,
64806
+ inputMaxLength = DEFAULT_INPUT_MAX_LENGTH,
64807
+ textareaMaxLength = DEFAULT_TEXTAREA_MAX_LENGTH,
64758
64808
  ...props
64759
64809
  }) => {
64760
64810
  const {
@@ -64788,7 +64838,7 @@ const useThumb = ({
64788
64838
  } = useThumb({
64789
64839
  isUpdating,
64790
64840
  selectedResource: isUpdating ? resource : void 0
64791
- }), onSubmit = async function(formData) {
64841
+ }), watchedDescription = watch("description"), onSubmit = async function(formData) {
64792
64842
  var _a2, _b2;
64793
64843
  try {
64794
64844
  const data = {
@@ -64846,19 +64896,20 @@ const useThumb = ({
64846
64896
  /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { children: t2("title") }),
64847
64897
  /* @__PURE__ */ jsxRuntimeExports.jsx(Input$1, { type: "text", defaultValue: isUpdating ? resource == null ? void 0 : resource.name : "", ...register("title", {
64848
64898
  required: true,
64849
- maxLength: 60,
64899
+ maxLength: inputMaxLength,
64850
64900
  pattern: {
64851
64901
  value: /[^ ]/,
64852
64902
  message: "invalid title"
64853
64903
  }
64854
- }), placeholder: t2("explorer.resource.editModal.title.placeholder"), size: "md", "aria-required": true, maxLength: 60 })
64904
+ }), placeholder: t2("explorer.resource.editModal.title.placeholder"), size: "md", "aria-required": true, maxLength: inputMaxLength })
64855
64905
  ] }),
64856
64906
  /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "description", isOptional: true, children: [
64857
64907
  /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { children: t2("description") }),
64858
- /* @__PURE__ */ jsxRuntimeExports.jsx(TextArea$1, { value: resource == null ? void 0 : resource.description, ...register("description", {
64908
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TextArea$1, { defaultValue: (resource == null ? void 0 : resource.description) || "", ...register("description", {
64859
64909
  required: false,
64860
- maxLength: 400
64861
- }), placeholder: t2("explorer.resource.editModal.description.placeholder"), size: "md", maxLength: 400 })
64910
+ maxLength: textareaMaxLength
64911
+ }), placeholder: t2("explorer.resource.editModal.description.placeholder"), size: "md", maxLength: textareaMaxLength }),
64912
+ watchedDescription && /* @__PURE__ */ jsxRuntimeExports.jsx(TextareaCounter, { content: watchedDescription, maxLength: textareaMaxLength })
64862
64913
  ] })
64863
64914
  ] })
64864
64915
  ] }),
@@ -66354,31 +66405,8 @@ const SearchEngine = () => {
66354
66405
  "container-fluid": !headless,
66355
66406
  "rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
66356
66407
  "mt-24": (theme == null ? void 0 : theme.is1d) && !headless
66357
- }), renderHeader = headless ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Header$2, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderCookies = showCookiesConsent && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "info", className: "m-12", isConfirm: true, position: "bottom-right", button: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { color: "tertiary", variant: "ghost", onClick: handleConsultCookies, children: t2("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t2("rgpd.cookies.banner.text1") }), renderToaster = /* @__PURE__ */ jsxRuntimeExports.jsx(Ie$1, { containerStyle: {
66358
- zIndex: 0
66359
- }, toastOptions: {
66360
- position: "top-right",
66361
- style: {},
66362
- success: {
66363
- style: {
66364
- zIndex: 9999
66365
- }
66366
- },
66367
- error: {
66368
- style: {
66369
- zIndex: 9999
66370
- }
66371
- },
66372
- loading: {
66373
- style: {
66374
- zIndex: 9999
66375
- }
66376
- },
66377
- custom: {
66378
- style: {
66379
- zIndex: 9999
66380
- }
66381
- }
66408
+ }), renderHeader = headless ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Header$2, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderCookies = showCookiesConsent && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "info", className: "m-12", isConfirm: true, position: "bottom-right", button: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { color: "tertiary", variant: "ghost", onClick: handleConsultCookies, children: t2("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t2("rgpd.cookies.banner.text1") }), renderToaster = /* @__PURE__ */ jsxRuntimeExports.jsx(Ie$1, { containerClassName: "toaster-container", toastOptions: {
66409
+ position: "top-right"
66382
66410
  } });
66383
66411
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
66384
66412
  renderHeader,
@@ -66610,7 +66638,7 @@ withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2,
66610
66638
  withSelector.exports = withSelector_production_min;
66611
66639
  }
66612
66640
  var withSelectorExports = withSelector.exports;
66613
- const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs(withSelectorExports);
66641
+ const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs$1(withSelectorExports);
66614
66642
  var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
66615
66643
  const { useDebugValue } = React$2;
66616
66644
  const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
@@ -68246,7 +68274,7 @@ const SearchForm = () => {
68246
68274
  "form",
68247
68275
  {
68248
68276
  noValidate: true,
68249
- className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",
68277
+ className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8",
68250
68278
  ref: formRef,
68251
68279
  children: [
68252
68280
  /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "search", className: "input-group", children: [
@@ -69140,10 +69168,12 @@ const AppAction$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
69140
69168
  default: AppAction
69141
69169
  }, Symbol.toStringTag, { value: "Module" }));
69142
69170
  const Library = () => {
69143
- const { t: t2 } = useTranslation();
69171
+ const { t: t2, i18n } = useTranslation();
69144
69172
  const { theme } = useOdeTheme();
69145
69173
  const libraryUrl = useLibraryUrl$1();
69146
69174
  const [imagePath] = usePaths();
69175
+ const imageFilename = i18n.resolvedLanguage === "fr" ? "image-library-year-end.gif" : "image-library.svg";
69176
+ const imageFullURL = `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/${imageFilename}`;
69147
69177
  return libraryUrl && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-16", children: [
69148
69178
  /* @__PURE__ */ jsxRuntimeExports.jsx(
69149
69179
  Image$2,
@@ -69152,7 +69182,7 @@ const Library = () => {
69152
69182
  height: "140",
69153
69183
  loading: "lazy",
69154
69184
  className: "rounded",
69155
- src: `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/image-library.svg`,
69185
+ src: imageFullURL,
69156
69186
  alt: t2("explorer.libray.img.alt")
69157
69187
  }
69158
69188
  ),
@@ -69530,8 +69560,8 @@ function ActionBarContainer() {
69530
69560
  return isActionBarOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
69531
69561
  animated.div,
69532
69562
  {
69533
- className: "position-fixed bottom-0 start-0 end-0 z-3",
69534
- style,
69563
+ className: "position-fixed bottom-0 start-0 end-0",
69564
+ style: { ...style, zIndex: 4 },
69535
69565
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(ActionBar$1$1, { children: actions == null ? void 0 : actions.filter(
69536
69566
  (action) => action.available && action.target === "actionbar"
69537
69567
  ).map((action) => {
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 17/05/2024 14:43:54
1
+ ode-explorer=1.0-b2school-SNAPSHOT 04/06/2024 13:48:19
@@ -4,7 +4,7 @@ import { useUser as pe, Button as W, useOdeClient as he, ActionBar as fe, Loadin
4
4
  import { useTransition as Oe, animated as ye } from "@react-spring/web";
5
5
  import { useTranslation as ee } from "react-i18next";
6
6
  import { odeServices as D, ACTION as c } from "edifice-ts-client";
7
- import { e as X, f as be, b as ve, h as Ae, i as se, j as Ie, k as Me, l as ge, m as Pe, d as we, n as Fe, u as te, a as xe, o as Te, p as Be, q as De } from "./index2.js";
7
+ import { e as X, f as be, b as ve, h as Ae, i as se, j as Ie, k as Me, l as ge, m as Pe, d as we, n as xe, u as te, a as Fe, o as Te, p as Be, q as De } from "./index2.js";
8
8
  import "@edifice-ui/icons";
9
9
  import "i18next";
10
10
  import "zustand";
@@ -66,15 +66,15 @@ function Le({
66
66
  };
67
67
  }
68
68
  function oe() {
69
- const [n, o] = L(!1), [s, d] = L("void"), [t, S] = L(), h = be((e) => e.config), R = ve(), p = Ae(), f = se(), l = Ie(), r = Me(), m = X(), b = ge(), v = Pe(), g = we(), _ = Fe(), {
69
+ const [n, o] = L(!1), [s, d] = L("void"), [t, S] = L(), h = be((e) => e.config), R = ve(), p = Ae(), f = se(), l = Ie(), r = Me(), m = X(), b = ge(), v = Pe(), g = we(), _ = xe(), {
70
70
  openResource: N,
71
71
  printSelectedResource: P,
72
72
  openFolder: k,
73
73
  clearSelectedItems: w,
74
- clearSelectedIds: F
74
+ clearSelectedIds: x
75
75
  } = te(), {
76
76
  data: H
77
- } = xe();
77
+ } = Fe();
78
78
  Z(() => {
79
79
  if (p.length === 0 && r.length === 0) {
80
80
  o(!1);
@@ -103,7 +103,7 @@ function oe() {
103
103
  case c.DELETE:
104
104
  return d("delete");
105
105
  case c.RESTORE:
106
- return await x();
106
+ return await F();
107
107
  case c.PUBLISH:
108
108
  return d("publish");
109
109
  case c.UPD_PROPS:
@@ -143,7 +143,7 @@ function oe() {
143
143
  }
144
144
  }
145
145
  const j = () => !0;
146
- async function x() {
146
+ async function F() {
147
147
  try {
148
148
  if (m)
149
149
  await b.mutate();
@@ -159,12 +159,12 @@ function oe() {
159
159
  d("void"), t != null && t.id && ((e = document.getElementById(t == null ? void 0 : t.id)) == null || e.focus());
160
160
  }
161
161
  const i = (e) => () => {
162
- s === e && (A(), w(), F());
162
+ s === e && (A(), w(), x());
163
163
  }, J = i("move"), E = i("move"), z = i("delete"), T = i("delete"), V = i("publish"), I = i("publish"), M = i("edit_folder"), u = i("edit_folder"), $ = i("edit_resource"), q = i("edit_resource"), ne = i("share"), re = i("share"), ce = i("export"), ae = i("export");
164
164
  async function ie() {
165
165
  if (f && f.length > 0) {
166
166
  const e = f[0];
167
- await _.mutate(e), w(), F();
167
+ await _.mutate(e), w(), x();
168
168
  }
169
169
  }
170
170
  function le() {
@@ -181,7 +181,7 @@ function oe() {
181
181
  return e.id === "edit" && r.length > 0 ? "explorer.rename" : `explorer.actions.${e.id}`;
182
182
  }
183
183
  return {
184
- onRestore: x,
184
+ onRestore: F,
185
185
  actions: m ? h == null ? void 0 : h.trashActions : H,
186
186
  selectedElement: [...f, ...l],
187
187
  currentFolderId: R == null ? void 0 : R.id,
@@ -263,12 +263,12 @@ function es() {
263
263
  isExportModalOpen: P,
264
264
  onExportCancel: k,
265
265
  onExportSuccess: w,
266
- onMoveCancel: F,
266
+ onMoveCancel: x,
267
267
  onMoveSuccess: H,
268
268
  onDeleteCancel: U,
269
269
  onDeleteSuccess: Y,
270
270
  onPublishCancel: j,
271
- onPublishSuccess: x,
271
+ onPublishSuccess: F,
272
272
  isActivable: A,
273
273
  handleClick: i
274
274
  } = oe(), E = se()[0], z = Be(n), T = De(n), V = Oe(R, {
@@ -286,13 +286,16 @@ function es() {
286
286
  }
287
287
  });
288
288
  return /* @__PURE__ */ Q(G, { children: [
289
- V((I, M) => M && /* @__PURE__ */ a(ye.div, { className: "position-fixed bottom-0 start-0 end-0 z-3", style: I, children: /* @__PURE__ */ a(fe, { children: s == null ? void 0 : s.filter((u) => u.available && u.target === "actionbar").map((u) => A(u) && /* @__PURE__ */ a(_e, { resourceRights: d, roleExpected: u.right, action: u, children: /* @__PURE__ */ a(W, { id: u.id, type: "button", color: "primary", variant: "filled", onClick: () => {
289
+ V((I, M) => M && /* @__PURE__ */ a(ye.div, { className: "position-fixed bottom-0 start-0 end-0", style: {
290
+ ...I,
291
+ zIndex: 4
292
+ }, children: /* @__PURE__ */ a(fe, { children: s == null ? void 0 : s.filter((u) => u.available && u.target === "actionbar").map((u) => A(u) && /* @__PURE__ */ a(_e, { resourceRights: d, roleExpected: u.right, action: u, children: /* @__PURE__ */ a(W, { id: u.id, type: "button", color: "primary", variant: "filled", onClick: () => {
290
293
  i(u);
291
294
  }, children: o(f(u)) }, u.id) }, u.id)) }) })),
292
295
  /* @__PURE__ */ Q(de, { fallback: /* @__PURE__ */ a(me, {}), children: [
293
- t && /* @__PURE__ */ a(Ue, { isOpen: t, onCancel: F, onSuccess: H }),
296
+ t && /* @__PURE__ */ a(Ue, { isOpen: t, onCancel: x, onSuccess: H }),
294
297
  S && /* @__PURE__ */ a(He, { isOpen: S, onCancel: U, onSuccess: Y }),
295
- h && E && /* @__PURE__ */ a(Ne, { isOpen: h, resourceId: E.assetId, onCancel: j, onSuccess: x }),
298
+ h && E && /* @__PURE__ */ a(Ne, { isOpen: h, resourceId: E.assetId, onCancel: j, onSuccess: F }),
296
299
  p && /* @__PURE__ */ a(Ye, { edit: !0, isOpen: p, onCancel: l, onSuccess: r }),
297
300
  m && E && /* @__PURE__ */ a(ke, { mode: "update", isOpen: m, resourceId: E.assetId, updateResource: T, onCancel: b, onSuccess: v, children: (I, M, u, $, q) => n === "blog" && Re("createPublic", s) && /* @__PURE__ */ a(Se, { appCode: n, isUpdating: M, resource: I, watch: u, setValue: $, register: q }) }),
298
301
  g && E && /* @__PURE__ */ a(Ee, { isOpen: g, resourceId: E.assetId, shareResource: z, onCancel: _, onSuccess: N, children: n === "blog" ? /* @__PURE__ */ a(Ce, { resource: E, updateResource: T }) : null }),
package/lib/Library.js CHANGED
@@ -1,22 +1,23 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { ArrowRight as s } from "@edifice-ui/icons";
3
- import { useOdeTheme as o, useLibraryUrl as n, usePaths as m, Image as p } from "@edifice-ui/react";
4
- import { useTranslation as c } from "react-i18next";
5
- const y = () => {
1
+ import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
+ import { ArrowRight as m } from "@edifice-ui/icons";
3
+ import { useOdeTheme as g, useLibraryUrl as c, usePaths as p, Image as d } from "@edifice-ui/react";
4
+ import { useTranslation as b } from "react-i18next";
5
+ const x = () => {
6
6
  const {
7
- t: e
8
- } = c(), {
7
+ t: e,
8
+ i18n: t
9
+ } = b(), {
9
10
  theme: a
10
- } = o(), t = n(), [l] = m();
11
- return t && /* @__PURE__ */ i("div", { className: "p-16", children: [
12
- /* @__PURE__ */ r(p, { width: "270", height: "140", loading: "lazy", className: "rounded", src: `${l}/${a == null ? void 0 : a.bootstrapVersion}/image-library.svg`, alt: e("explorer.libray.img.alt") }),
11
+ } = g(), i = c(), [s] = p(), n = t.resolvedLanguage === "fr" ? "image-library-year-end.gif" : "image-library.svg", o = `${s}/${a == null ? void 0 : a.bootstrapVersion}/${n}`;
12
+ return i && /* @__PURE__ */ l("div", { className: "p-16", children: [
13
+ /* @__PURE__ */ r(d, { width: "270", height: "140", loading: "lazy", className: "rounded", src: o, alt: e("explorer.libray.img.alt") }),
13
14
  /* @__PURE__ */ r("p", { className: "m-8", children: e("explorer.libray.title") }),
14
- /* @__PURE__ */ i("a", { href: t, target: "_blank", rel: "noreferrer", className: "d-inline-flex align-items-center gap-4 btn btn-ghost-primary py-0 p-0 pe-8", children: [
15
+ /* @__PURE__ */ l("a", { href: i, target: "_blank", rel: "noreferrer", className: "d-inline-flex align-items-center gap-4 btn btn-ghost-primary py-0 p-0 pe-8", children: [
15
16
  /* @__PURE__ */ r("span", { children: e("explorer.libray.btn") }),
16
- /* @__PURE__ */ r(s, {})
17
+ /* @__PURE__ */ r(m, {})
17
18
  ] })
18
19
  ] });
19
20
  };
20
21
  export {
21
- y as default
22
+ x as default
22
23
  };
package/lib/index2.js CHANGED
@@ -1294,7 +1294,7 @@ const ft = () => {
1294
1294
  handleKeyPress: f,
1295
1295
  handleSearchSubmit: d
1296
1296
  } = me(), u = t.length > 0 ? t.length : void 0;
1297
- return /* @__PURE__ */ N("form", { noValidate: !0, className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8", ref: a, children: [
1297
+ return /* @__PURE__ */ N("form", { noValidate: !0, className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8", ref: a, children: [
1298
1298
  /* @__PURE__ */ N(Te, { id: "search", className: "input-group", children: [
1299
1299
  /* @__PURE__ */ c(Fe, { type: "search", placeholder: s("explorer.label.search", {
1300
1300
  ns: e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.2-develop-pedago.202405171443",
3
+ "version": "1.4.2-develop-pedago.202406041347",
4
4
  "description": "Edifice Explorer",
5
5
  "homepage": "https://github.com/edificeio/explorer#readme",
6
6
  "bugs": {
@@ -47,7 +47,7 @@
47
47
  "react": "18.2.0",
48
48
  "react-dom": "18.2.0",
49
49
  "react-error-boundary": "4.0.12",
50
- "react-hook-form": "7.49.3",
50
+ "react-hook-form": "7.49.2",
51
51
  "react-i18next": "14.1.0",
52
52
  "react-intersection-observer": "9.5.3",
53
53
  "zustand": "4.5.0"
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@axe-core/react": "4.8.4",
57
57
  "@babel/plugin-transform-react-pure-annotations": "7.23.3",
58
- "@tanstack/react-query-devtools": "5.28.8",
58
+ "@tanstack/react-query-devtools": "5.8.4",
59
59
  "@types/node": "20.11.10",
60
60
  "@types/react": "18.2.48",
61
61
  "@types/react-dom": "18.2.18",