ode-explorer 1.4.17 → 1.4.18-develop-integration.202409201731

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
@@ -38,7 +38,7 @@ var __privateMethod = (obj, member, method) => {
38
38
  __accessCheck(obj, member, "access private method");
39
39
  return method;
40
40
  };
41
- import { odeServices, LAYER_NAME, SnipletsService, DocumentHelper, StringUtils as StringUtils$1, ERROR_CODE, FOLDER, SORT_ORDER, ACTION } from "/assets/js/edifice-ts-client/index.js?v=b01d8aa9";
41
+ import { odeServices, LAYER_NAME, SnipletsService, DocumentHelper, StringUtils as StringUtils$1, ERROR_CODE, FOLDER, SORT_ORDER, ACTION } from "/assets/js/edifice-ts-client/index.js?v=115dfc1c";
42
42
  var require_index = __commonJS({
43
43
  "index.js"(exports, module) {
44
44
  var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _promise, _retryer, _observers, _defaultOptions, _abortSignalConsumed, _setOptions, setOptions_fn, _dispatch, dispatch_fn, _d, _queries, _e2, _observers2, _defaultOptions2, _mutationCache, _retryer2, _dispatch2, dispatch_fn2, _f, _mutations, _mutationId, _resuming, _g, _queryCache, _mutationCache2, _defaultOptions3, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _client, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _executeFetch, executeFetch_fn, _updateStaleTimeout, updateStaleTimeout_fn, _computeRefetchInterval, computeRefetchInterval_fn, _updateRefetchInterval, updateRefetchInterval_fn, _updateTimers, updateTimers_fn, _clearStaleTimeout, clearStaleTimeout_fn, _clearRefetchInterval, clearRefetchInterval_fn, _updateQuery, updateQuery_fn, _notify, notify_fn, _i, _client2, _currentResult2, _currentMutation, _mutateOptions, _updateResult, updateResult_fn, _notify2, notify_fn2, _j;
@@ -19391,10 +19391,9 @@ to {
19391
19391
  crossAxis: 0,
19392
19392
  alignmentAxis: null
19393
19393
  } : {
19394
- mainAxis: 0,
19395
- crossAxis: 0,
19396
- alignmentAxis: null,
19397
- ...rawValue
19394
+ mainAxis: rawValue.mainAxis || 0,
19395
+ crossAxis: rawValue.crossAxis || 0,
19396
+ alignmentAxis: rawValue.alignmentAxis
19398
19397
  };
19399
19398
  if (alignment && typeof alignmentAxis === "number") {
19400
19399
  crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
@@ -19445,6 +19444,7 @@ to {
19445
19444
  name: "size",
19446
19445
  options,
19447
19446
  async fn(state) {
19447
+ var _state$middlewareData, _state$middlewareData2;
19448
19448
  const {
19449
19449
  placement,
19450
19450
  rects,
@@ -19480,10 +19480,11 @@ to {
19480
19480
  const noShift = !state.middlewareData.shift;
19481
19481
  let availableHeight = overflowAvailableHeight;
19482
19482
  let availableWidth = overflowAvailableWidth;
19483
- if (isYAxis) {
19484
- availableWidth = alignment || noShift ? min$1(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
19485
- } else {
19486
- availableHeight = alignment || noShift ? min$1(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
19483
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
19484
+ availableWidth = maximumClippingWidth;
19485
+ }
19486
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
19487
+ availableHeight = maximumClippingHeight;
19487
19488
  }
19488
19489
  if (noShift && !alignment) {
19489
19490
  const xMin = max$2(overflow.left, 0);
@@ -19513,6 +19514,9 @@ to {
19513
19514
  }
19514
19515
  };
19515
19516
  };
19517
+ function hasWindow() {
19518
+ return typeof window !== "undefined";
19519
+ }
19516
19520
  function getNodeName$1(node2) {
19517
19521
  if (isNode$1(node2)) {
19518
19522
  return (node2.nodeName || "").toLowerCase();
@@ -19528,16 +19532,25 @@ to {
19528
19532
  return (_ref = (isNode$1(node2) ? node2.ownerDocument : node2.document) || window.document) == null ? void 0 : _ref.documentElement;
19529
19533
  }
19530
19534
  function isNode$1(value) {
19535
+ if (!hasWindow()) {
19536
+ return false;
19537
+ }
19531
19538
  return value instanceof Node || value instanceof getWindow$2(value).Node;
19532
19539
  }
19533
19540
  function isElement$2(value) {
19541
+ if (!hasWindow()) {
19542
+ return false;
19543
+ }
19534
19544
  return value instanceof Element || value instanceof getWindow$2(value).Element;
19535
19545
  }
19536
19546
  function isHTMLElement$1(value) {
19547
+ if (!hasWindow()) {
19548
+ return false;
19549
+ }
19537
19550
  return value instanceof HTMLElement || value instanceof getWindow$2(value).HTMLElement;
19538
19551
  }
19539
19552
  function isShadowRoot$1(value) {
19540
- if (typeof ShadowRoot === "undefined") {
19553
+ if (!hasWindow() || typeof ShadowRoot === "undefined") {
19541
19554
  return false;
19542
19555
  }
19543
19556
  return value instanceof ShadowRoot || value instanceof getWindow$2(value).ShadowRoot;
@@ -19804,8 +19817,12 @@ to {
19804
19817
  function getClientRects(element) {
19805
19818
  return Array.from(element.getClientRects());
19806
19819
  }
19807
- function getWindowScrollBarX$1(element) {
19808
- return getBoundingClientRect$1(getDocumentElement$1(element)).left + getNodeScroll$1(element).scrollLeft;
19820
+ function getWindowScrollBarX$1(element, rect) {
19821
+ const leftScroll = getNodeScroll$1(element).scrollLeft;
19822
+ if (!rect) {
19823
+ return getBoundingClientRect$1(getDocumentElement$1(element)).left + leftScroll;
19824
+ }
19825
+ return rect.left + leftScroll;
19809
19826
  }
19810
19827
  function getDocumentRect$1(element) {
19811
19828
  const html = getDocumentElement$1(element);
@@ -19973,8 +19990,16 @@ to {
19973
19990
  offsets.x = getWindowScrollBarX$1(documentElement);
19974
19991
  }
19975
19992
  }
19976
- const x2 = rect.left + scroll.scrollLeft - offsets.x;
19977
- const y2 = rect.top + scroll.scrollTop - offsets.y;
19993
+ let htmlX = 0;
19994
+ let htmlY = 0;
19995
+ if (documentElement && !isOffsetParentAnElement && !isFixed) {
19996
+ const htmlRect = documentElement.getBoundingClientRect();
19997
+ htmlY = htmlRect.top + scroll.scrollTop;
19998
+ htmlX = htmlRect.left + scroll.scrollLeft - // RTL <body> scrollbar.
19999
+ getWindowScrollBarX$1(documentElement, htmlRect);
20000
+ }
20001
+ const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlX;
20002
+ const y2 = rect.top + scroll.scrollTop - offsets.y - htmlY;
19978
20003
  return {
19979
20004
  x: x2,
19980
20005
  y: y2,
@@ -19992,7 +20017,11 @@ to {
19992
20017
  if (polyfill) {
19993
20018
  return polyfill(element);
19994
20019
  }
19995
- return element.offsetParent;
20020
+ let rawOffsetParent = element.offsetParent;
20021
+ if (getDocumentElement$1(element) === rawOffsetParent) {
20022
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
20023
+ }
20024
+ return rawOffsetParent;
19996
20025
  }
19997
20026
  function getOffsetParent$1(element, polyfill) {
19998
20027
  const win = getWindow$2(element);
@@ -20321,6 +20350,7 @@ to {
20321
20350
  const hasWhileElementsMounted = whileElementsMounted != null;
20322
20351
  const whileElementsMountedRef = useLatestRef$1(whileElementsMounted);
20323
20352
  const platformRef = useLatestRef$1(platform2);
20353
+ const openRef = useLatestRef$1(open);
20324
20354
  const update2 = reactExports.useCallback(() => {
20325
20355
  if (!referenceRef.current || !floatingRef.current) {
20326
20356
  return;
@@ -20336,7 +20366,11 @@ to {
20336
20366
  computePosition(referenceRef.current, floatingRef.current, config2).then((data2) => {
20337
20367
  const fullData = {
20338
20368
  ...data2,
20339
- isPositioned: true
20369
+ // The floating element's position may be recomputed while it's closed
20370
+ // but still mounted (such as when transitioning out). To ensure
20371
+ // `isPositioned` will be `false` initially on the next open, avoid
20372
+ // setting it to `true` when `open === false` (must be specified).
20373
+ isPositioned: openRef.current !== false
20340
20374
  };
20341
20375
  if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
20342
20376
  dataRef.current = fullData;
@@ -20345,7 +20379,7 @@ to {
20345
20379
  });
20346
20380
  }
20347
20381
  });
20348
- }, [latestMiddleware, placement, strategy, platformRef]);
20382
+ }, [latestMiddleware, placement, strategy, platformRef, openRef]);
20349
20383
  index$1(() => {
20350
20384
  if (open === false && dataRef.current.isPositioned) {
20351
20385
  dataRef.current.isPositioned = false;
@@ -62739,6 +62773,658 @@ void main()
62739
62773
  })));
62740
62774
  });
62741
62775
  SwiperSlide.displayName = "SwiperSlide";
62776
+ const defaults = Object.freeze({
62777
+ ignoreUnknown: false,
62778
+ respectType: false,
62779
+ respectFunctionNames: false,
62780
+ respectFunctionProperties: false,
62781
+ unorderedObjects: true,
62782
+ unorderedArrays: false,
62783
+ unorderedSets: false,
62784
+ excludeKeys: void 0,
62785
+ excludeValues: void 0,
62786
+ replacer: void 0
62787
+ });
62788
+ function objectHash(object, options) {
62789
+ if (options) {
62790
+ options = { ...defaults, ...options };
62791
+ } else {
62792
+ options = defaults;
62793
+ }
62794
+ const hasher = createHasher(options);
62795
+ hasher.dispatch(object);
62796
+ return hasher.toString();
62797
+ }
62798
+ const defaultPrototypesKeys = Object.freeze([
62799
+ "prototype",
62800
+ "__proto__",
62801
+ "constructor"
62802
+ ]);
62803
+ function createHasher(options) {
62804
+ let buff = "";
62805
+ let context2 = /* @__PURE__ */ new Map();
62806
+ const write2 = (str) => {
62807
+ buff += str;
62808
+ };
62809
+ return {
62810
+ toString() {
62811
+ return buff;
62812
+ },
62813
+ getContext() {
62814
+ return context2;
62815
+ },
62816
+ dispatch(value) {
62817
+ if (options.replacer) {
62818
+ value = options.replacer(value);
62819
+ }
62820
+ const type2 = value === null ? "null" : typeof value;
62821
+ return this[type2](value);
62822
+ },
62823
+ object(object) {
62824
+ if (object && typeof object.toJSON === "function") {
62825
+ return this.object(object.toJSON());
62826
+ }
62827
+ const objString = Object.prototype.toString.call(object);
62828
+ let objType = "";
62829
+ const objectLength = objString.length;
62830
+ if (objectLength < 10) {
62831
+ objType = "unknown:[" + objString + "]";
62832
+ } else {
62833
+ objType = objString.slice(8, objectLength - 1);
62834
+ }
62835
+ objType = objType.toLowerCase();
62836
+ let objectNumber = null;
62837
+ if ((objectNumber = context2.get(object)) === void 0) {
62838
+ context2.set(object, context2.size);
62839
+ } else {
62840
+ return this.dispatch("[CIRCULAR:" + objectNumber + "]");
62841
+ }
62842
+ if (typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(object)) {
62843
+ write2("buffer:");
62844
+ return write2(object.toString("utf8"));
62845
+ }
62846
+ if (objType !== "object" && objType !== "function" && objType !== "asyncfunction") {
62847
+ if (this[objType]) {
62848
+ this[objType](object);
62849
+ } else if (!options.ignoreUnknown) {
62850
+ this.unkown(object, objType);
62851
+ }
62852
+ } else {
62853
+ let keys = Object.keys(object);
62854
+ if (options.unorderedObjects) {
62855
+ keys = keys.sort();
62856
+ }
62857
+ let extraKeys = [];
62858
+ if (options.respectType !== false && !isNativeFunction(object)) {
62859
+ extraKeys = defaultPrototypesKeys;
62860
+ }
62861
+ if (options.excludeKeys) {
62862
+ keys = keys.filter((key) => {
62863
+ return !options.excludeKeys(key);
62864
+ });
62865
+ extraKeys = extraKeys.filter((key) => {
62866
+ return !options.excludeKeys(key);
62867
+ });
62868
+ }
62869
+ write2("object:" + (keys.length + extraKeys.length) + ":");
62870
+ const dispatchForKey = (key) => {
62871
+ this.dispatch(key);
62872
+ write2(":");
62873
+ if (!options.excludeValues) {
62874
+ this.dispatch(object[key]);
62875
+ }
62876
+ write2(",");
62877
+ };
62878
+ for (const key of keys) {
62879
+ dispatchForKey(key);
62880
+ }
62881
+ for (const key of extraKeys) {
62882
+ dispatchForKey(key);
62883
+ }
62884
+ }
62885
+ },
62886
+ array(arr2, unordered) {
62887
+ unordered = unordered === void 0 ? options.unorderedArrays !== false : unordered;
62888
+ write2("array:" + arr2.length + ":");
62889
+ if (!unordered || arr2.length <= 1) {
62890
+ for (const entry of arr2) {
62891
+ this.dispatch(entry);
62892
+ }
62893
+ return;
62894
+ }
62895
+ const contextAdditions = /* @__PURE__ */ new Map();
62896
+ const entries = arr2.map((entry) => {
62897
+ const hasher = createHasher(options);
62898
+ hasher.dispatch(entry);
62899
+ for (const [key, value] of hasher.getContext()) {
62900
+ contextAdditions.set(key, value);
62901
+ }
62902
+ return hasher.toString();
62903
+ });
62904
+ context2 = contextAdditions;
62905
+ entries.sort();
62906
+ return this.array(entries, false);
62907
+ },
62908
+ date(date) {
62909
+ return write2("date:" + date.toJSON());
62910
+ },
62911
+ symbol(sym) {
62912
+ return write2("symbol:" + sym.toString());
62913
+ },
62914
+ unkown(value, type2) {
62915
+ write2(type2);
62916
+ if (!value) {
62917
+ return;
62918
+ }
62919
+ write2(":");
62920
+ if (value && typeof value.entries === "function") {
62921
+ return this.array(
62922
+ Array.from(value.entries()),
62923
+ true
62924
+ /* ordered */
62925
+ );
62926
+ }
62927
+ },
62928
+ error(err) {
62929
+ return write2("error:" + err.toString());
62930
+ },
62931
+ boolean(bool) {
62932
+ return write2("bool:" + bool);
62933
+ },
62934
+ string(string) {
62935
+ write2("string:" + string.length + ":");
62936
+ write2(string);
62937
+ },
62938
+ function(fn2) {
62939
+ write2("fn:");
62940
+ if (isNativeFunction(fn2)) {
62941
+ this.dispatch("[native]");
62942
+ } else {
62943
+ this.dispatch(fn2.toString());
62944
+ }
62945
+ if (options.respectFunctionNames !== false) {
62946
+ this.dispatch("function-name:" + String(fn2.name));
62947
+ }
62948
+ if (options.respectFunctionProperties) {
62949
+ this.object(fn2);
62950
+ }
62951
+ },
62952
+ number(number) {
62953
+ return write2("number:" + number);
62954
+ },
62955
+ xml(xml) {
62956
+ return write2("xml:" + xml.toString());
62957
+ },
62958
+ null() {
62959
+ return write2("Null");
62960
+ },
62961
+ undefined() {
62962
+ return write2("Undefined");
62963
+ },
62964
+ regexp(regex) {
62965
+ return write2("regex:" + regex.toString());
62966
+ },
62967
+ uint8array(arr2) {
62968
+ write2("uint8array:");
62969
+ return this.dispatch(Array.prototype.slice.call(arr2));
62970
+ },
62971
+ uint8clampedarray(arr2) {
62972
+ write2("uint8clampedarray:");
62973
+ return this.dispatch(Array.prototype.slice.call(arr2));
62974
+ },
62975
+ int8array(arr2) {
62976
+ write2("int8array:");
62977
+ return this.dispatch(Array.prototype.slice.call(arr2));
62978
+ },
62979
+ uint16array(arr2) {
62980
+ write2("uint16array:");
62981
+ return this.dispatch(Array.prototype.slice.call(arr2));
62982
+ },
62983
+ int16array(arr2) {
62984
+ write2("int16array:");
62985
+ return this.dispatch(Array.prototype.slice.call(arr2));
62986
+ },
62987
+ uint32array(arr2) {
62988
+ write2("uint32array:");
62989
+ return this.dispatch(Array.prototype.slice.call(arr2));
62990
+ },
62991
+ int32array(arr2) {
62992
+ write2("int32array:");
62993
+ return this.dispatch(Array.prototype.slice.call(arr2));
62994
+ },
62995
+ float32array(arr2) {
62996
+ write2("float32array:");
62997
+ return this.dispatch(Array.prototype.slice.call(arr2));
62998
+ },
62999
+ float64array(arr2) {
63000
+ write2("float64array:");
63001
+ return this.dispatch(Array.prototype.slice.call(arr2));
63002
+ },
63003
+ arraybuffer(arr2) {
63004
+ write2("arraybuffer:");
63005
+ return this.dispatch(new Uint8Array(arr2));
63006
+ },
63007
+ url(url) {
63008
+ return write2("url:" + url.toString());
63009
+ },
63010
+ map(map2) {
63011
+ write2("map:");
63012
+ const arr2 = [...map2];
63013
+ return this.array(arr2, options.unorderedSets !== false);
63014
+ },
63015
+ set(set2) {
63016
+ write2("set:");
63017
+ const arr2 = [...set2];
63018
+ return this.array(arr2, options.unorderedSets !== false);
63019
+ },
63020
+ file(file) {
63021
+ write2("file:");
63022
+ return this.dispatch([file.name, file.size, file.type, file.lastModfied]);
63023
+ },
63024
+ blob() {
63025
+ if (options.ignoreUnknown) {
63026
+ return write2("[blob]");
63027
+ }
63028
+ throw new Error(
63029
+ 'Hashing Blob objects is currently not supported\nUse "options.replacer" or "options.ignoreUnknown"\n'
63030
+ );
63031
+ },
63032
+ domwindow() {
63033
+ return write2("domwindow");
63034
+ },
63035
+ bigint(number) {
63036
+ return write2("bigint:" + number.toString());
63037
+ },
63038
+ /* Node.js standard native objects */
63039
+ process() {
63040
+ return write2("process");
63041
+ },
63042
+ timer() {
63043
+ return write2("timer");
63044
+ },
63045
+ pipe() {
63046
+ return write2("pipe");
63047
+ },
63048
+ tcp() {
63049
+ return write2("tcp");
63050
+ },
63051
+ udp() {
63052
+ return write2("udp");
63053
+ },
63054
+ tty() {
63055
+ return write2("tty");
63056
+ },
63057
+ statwatcher() {
63058
+ return write2("statwatcher");
63059
+ },
63060
+ securecontext() {
63061
+ return write2("securecontext");
63062
+ },
63063
+ connection() {
63064
+ return write2("connection");
63065
+ },
63066
+ zlib() {
63067
+ return write2("zlib");
63068
+ },
63069
+ context() {
63070
+ return write2("context");
63071
+ },
63072
+ nodescript() {
63073
+ return write2("nodescript");
63074
+ },
63075
+ httpparser() {
63076
+ return write2("httpparser");
63077
+ },
63078
+ dataview() {
63079
+ return write2("dataview");
63080
+ },
63081
+ signal() {
63082
+ return write2("signal");
63083
+ },
63084
+ fsevent() {
63085
+ return write2("fsevent");
63086
+ },
63087
+ tlswrap() {
63088
+ return write2("tlswrap");
63089
+ }
63090
+ };
63091
+ }
63092
+ const nativeFunc = "[native code] }";
63093
+ const nativeFuncLength = nativeFunc.length;
63094
+ function isNativeFunction(f2) {
63095
+ if (typeof f2 !== "function") {
63096
+ return false;
63097
+ }
63098
+ return Function.prototype.toString.call(f2).slice(-nativeFuncLength) === nativeFunc;
63099
+ }
63100
+ class WordArray {
63101
+ constructor(words, sigBytes) {
63102
+ words = this.words = words || [];
63103
+ this.sigBytes = sigBytes === void 0 ? words.length * 4 : sigBytes;
63104
+ }
63105
+ toString(encoder) {
63106
+ return (encoder || Hex).stringify(this);
63107
+ }
63108
+ concat(wordArray) {
63109
+ this.clamp();
63110
+ if (this.sigBytes % 4) {
63111
+ for (let i2 = 0; i2 < wordArray.sigBytes; i2++) {
63112
+ const thatByte = wordArray.words[i2 >>> 2] >>> 24 - i2 % 4 * 8 & 255;
63113
+ this.words[this.sigBytes + i2 >>> 2] |= thatByte << 24 - (this.sigBytes + i2) % 4 * 8;
63114
+ }
63115
+ } else {
63116
+ for (let j2 = 0; j2 < wordArray.sigBytes; j2 += 4) {
63117
+ this.words[this.sigBytes + j2 >>> 2] = wordArray.words[j2 >>> 2];
63118
+ }
63119
+ }
63120
+ this.sigBytes += wordArray.sigBytes;
63121
+ return this;
63122
+ }
63123
+ clamp() {
63124
+ this.words[this.sigBytes >>> 2] &= 4294967295 << 32 - this.sigBytes % 4 * 8;
63125
+ this.words.length = Math.ceil(this.sigBytes / 4);
63126
+ }
63127
+ clone() {
63128
+ return new WordArray([...this.words]);
63129
+ }
63130
+ }
63131
+ const Hex = {
63132
+ stringify(wordArray) {
63133
+ const hexChars = [];
63134
+ for (let i2 = 0; i2 < wordArray.sigBytes; i2++) {
63135
+ const bite = wordArray.words[i2 >>> 2] >>> 24 - i2 % 4 * 8 & 255;
63136
+ hexChars.push((bite >>> 4).toString(16), (bite & 15).toString(16));
63137
+ }
63138
+ return hexChars.join("");
63139
+ }
63140
+ };
63141
+ const Base64 = {
63142
+ stringify(wordArray) {
63143
+ const keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
63144
+ const base64Chars = [];
63145
+ for (let i2 = 0; i2 < wordArray.sigBytes; i2 += 3) {
63146
+ const byte1 = wordArray.words[i2 >>> 2] >>> 24 - i2 % 4 * 8 & 255;
63147
+ const byte2 = wordArray.words[i2 + 1 >>> 2] >>> 24 - (i2 + 1) % 4 * 8 & 255;
63148
+ const byte3 = wordArray.words[i2 + 2 >>> 2] >>> 24 - (i2 + 2) % 4 * 8 & 255;
63149
+ const triplet = byte1 << 16 | byte2 << 8 | byte3;
63150
+ for (let j2 = 0; j2 < 4 && i2 * 8 + j2 * 6 < wordArray.sigBytes * 8; j2++) {
63151
+ base64Chars.push(keyStr.charAt(triplet >>> 6 * (3 - j2) & 63));
63152
+ }
63153
+ }
63154
+ return base64Chars.join("");
63155
+ }
63156
+ };
63157
+ const Latin1 = {
63158
+ parse(latin1Str) {
63159
+ const latin1StrLength = latin1Str.length;
63160
+ const words = [];
63161
+ for (let i2 = 0; i2 < latin1StrLength; i2++) {
63162
+ words[i2 >>> 2] |= (latin1Str.charCodeAt(i2) & 255) << 24 - i2 % 4 * 8;
63163
+ }
63164
+ return new WordArray(words, latin1StrLength);
63165
+ }
63166
+ };
63167
+ const Utf8 = {
63168
+ parse(utf8Str) {
63169
+ return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
63170
+ }
63171
+ };
63172
+ class BufferedBlockAlgorithm {
63173
+ constructor() {
63174
+ this._data = new WordArray();
63175
+ this._nDataBytes = 0;
63176
+ this._minBufferSize = 0;
63177
+ this.blockSize = 512 / 32;
63178
+ }
63179
+ reset() {
63180
+ this._data = new WordArray();
63181
+ this._nDataBytes = 0;
63182
+ }
63183
+ _append(data) {
63184
+ if (typeof data === "string") {
63185
+ data = Utf8.parse(data);
63186
+ }
63187
+ this._data.concat(data);
63188
+ this._nDataBytes += data.sigBytes;
63189
+ }
63190
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
63191
+ _doProcessBlock(_dataWords, _offset) {
63192
+ }
63193
+ _process(doFlush) {
63194
+ let processedWords;
63195
+ let nBlocksReady = this._data.sigBytes / (this.blockSize * 4);
63196
+ if (doFlush) {
63197
+ nBlocksReady = Math.ceil(nBlocksReady);
63198
+ } else {
63199
+ nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);
63200
+ }
63201
+ const nWordsReady = nBlocksReady * this.blockSize;
63202
+ const nBytesReady = Math.min(nWordsReady * 4, this._data.sigBytes);
63203
+ if (nWordsReady) {
63204
+ for (let offset2 = 0; offset2 < nWordsReady; offset2 += this.blockSize) {
63205
+ this._doProcessBlock(this._data.words, offset2);
63206
+ }
63207
+ processedWords = this._data.words.splice(0, nWordsReady);
63208
+ this._data.sigBytes -= nBytesReady;
63209
+ }
63210
+ return new WordArray(processedWords, nBytesReady);
63211
+ }
63212
+ }
63213
+ class Hasher extends BufferedBlockAlgorithm {
63214
+ update(messageUpdate) {
63215
+ this._append(messageUpdate);
63216
+ this._process();
63217
+ return this;
63218
+ }
63219
+ finalize(messageUpdate) {
63220
+ if (messageUpdate) {
63221
+ this._append(messageUpdate);
63222
+ }
63223
+ }
63224
+ }
63225
+ const H = [
63226
+ 1779033703,
63227
+ -1150833019,
63228
+ 1013904242,
63229
+ -1521486534,
63230
+ 1359893119,
63231
+ -1694144372,
63232
+ 528734635,
63233
+ 1541459225
63234
+ ];
63235
+ const K = [
63236
+ 1116352408,
63237
+ 1899447441,
63238
+ -1245643825,
63239
+ -373957723,
63240
+ 961987163,
63241
+ 1508970993,
63242
+ -1841331548,
63243
+ -1424204075,
63244
+ -670586216,
63245
+ 310598401,
63246
+ 607225278,
63247
+ 1426881987,
63248
+ 1925078388,
63249
+ -2132889090,
63250
+ -1680079193,
63251
+ -1046744716,
63252
+ -459576895,
63253
+ -272742522,
63254
+ 264347078,
63255
+ 604807628,
63256
+ 770255983,
63257
+ 1249150122,
63258
+ 1555081692,
63259
+ 1996064986,
63260
+ -1740746414,
63261
+ -1473132947,
63262
+ -1341970488,
63263
+ -1084653625,
63264
+ -958395405,
63265
+ -710438585,
63266
+ 113926993,
63267
+ 338241895,
63268
+ 666307205,
63269
+ 773529912,
63270
+ 1294757372,
63271
+ 1396182291,
63272
+ 1695183700,
63273
+ 1986661051,
63274
+ -2117940946,
63275
+ -1838011259,
63276
+ -1564481375,
63277
+ -1474664885,
63278
+ -1035236496,
63279
+ -949202525,
63280
+ -778901479,
63281
+ -694614492,
63282
+ -200395387,
63283
+ 275423344,
63284
+ 430227734,
63285
+ 506948616,
63286
+ 659060556,
63287
+ 883997877,
63288
+ 958139571,
63289
+ 1322822218,
63290
+ 1537002063,
63291
+ 1747873779,
63292
+ 1955562222,
63293
+ 2024104815,
63294
+ -2067236844,
63295
+ -1933114872,
63296
+ -1866530822,
63297
+ -1538233109,
63298
+ -1090935817,
63299
+ -965641998
63300
+ ];
63301
+ const W = [];
63302
+ class SHA256 extends Hasher {
63303
+ constructor() {
63304
+ super(...arguments);
63305
+ this._hash = new WordArray([...H]);
63306
+ }
63307
+ reset() {
63308
+ super.reset();
63309
+ this._hash = new WordArray([...H]);
63310
+ }
63311
+ _doProcessBlock(M2, offset2) {
63312
+ const H2 = this._hash.words;
63313
+ let a2 = H2[0];
63314
+ let b2 = H2[1];
63315
+ let c6 = H2[2];
63316
+ let d2 = H2[3];
63317
+ let e2 = H2[4];
63318
+ let f2 = H2[5];
63319
+ let g2 = H2[6];
63320
+ let h2 = H2[7];
63321
+ for (let i2 = 0; i2 < 64; i2++) {
63322
+ if (i2 < 16) {
63323
+ W[i2] = M2[offset2 + i2] | 0;
63324
+ } else {
63325
+ const gamma0x = W[i2 - 15];
63326
+ const gamma0 = (gamma0x << 25 | gamma0x >>> 7) ^ (gamma0x << 14 | gamma0x >>> 18) ^ gamma0x >>> 3;
63327
+ const gamma1x = W[i2 - 2];
63328
+ const gamma1 = (gamma1x << 15 | gamma1x >>> 17) ^ (gamma1x << 13 | gamma1x >>> 19) ^ gamma1x >>> 10;
63329
+ W[i2] = gamma0 + W[i2 - 7] + gamma1 + W[i2 - 16];
63330
+ }
63331
+ const ch2 = e2 & f2 ^ ~e2 & g2;
63332
+ const maj = a2 & b2 ^ a2 & c6 ^ b2 & c6;
63333
+ const sigma0 = (a2 << 30 | a2 >>> 2) ^ (a2 << 19 | a2 >>> 13) ^ (a2 << 10 | a2 >>> 22);
63334
+ const sigma1 = (e2 << 26 | e2 >>> 6) ^ (e2 << 21 | e2 >>> 11) ^ (e2 << 7 | e2 >>> 25);
63335
+ const t1 = h2 + sigma1 + ch2 + K[i2] + W[i2];
63336
+ const t2 = sigma0 + maj;
63337
+ h2 = g2;
63338
+ g2 = f2;
63339
+ f2 = e2;
63340
+ e2 = d2 + t1 | 0;
63341
+ d2 = c6;
63342
+ c6 = b2;
63343
+ b2 = a2;
63344
+ a2 = t1 + t2 | 0;
63345
+ }
63346
+ H2[0] = H2[0] + a2 | 0;
63347
+ H2[1] = H2[1] + b2 | 0;
63348
+ H2[2] = H2[2] + c6 | 0;
63349
+ H2[3] = H2[3] + d2 | 0;
63350
+ H2[4] = H2[4] + e2 | 0;
63351
+ H2[5] = H2[5] + f2 | 0;
63352
+ H2[6] = H2[6] + g2 | 0;
63353
+ H2[7] = H2[7] + h2 | 0;
63354
+ }
63355
+ finalize(messageUpdate) {
63356
+ super.finalize(messageUpdate);
63357
+ const nBitsTotal = this._nDataBytes * 8;
63358
+ const nBitsLeft = this._data.sigBytes * 8;
63359
+ this._data.words[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32;
63360
+ this._data.words[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math.floor(
63361
+ nBitsTotal / 4294967296
63362
+ );
63363
+ this._data.words[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal;
63364
+ this._data.sigBytes = this._data.words.length * 4;
63365
+ this._process();
63366
+ return this._hash;
63367
+ }
63368
+ }
63369
+ function sha256base64(message) {
63370
+ return new SHA256().finalize(message).toString(Base64);
63371
+ }
63372
+ function hash(object, options = {}) {
63373
+ const hashed = typeof object === "string" ? object : objectHash(object, options);
63374
+ return sha256base64(hashed).slice(0, 10);
63375
+ }
63376
+ var slugify$1 = {};
63377
+ Object.defineProperty(slugify$1, "__esModule", { value: true });
63378
+ const stripAccents = (input) => {
63379
+ const accents = "ÀÁÂÃÄÅĄĀàáâãäåąāÒÓÔÕÕÖØòóôõöøÈÉÊËĘĒèéêëðęēÇĆČçćčÐÌÍÎÏĪìíîïīÙÚÛÜŪùúûüūÑŅñņŠŚšśŸÿýŽŹŻžźżŁĻłļŃŅńņàáãảạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệđùúủũụưừứửữựòóỏõọôồốổỗộơờớởỡợìíỉĩịäëïîüûñçýỳỹỵỷğışĞİŞĢģĶķ";
63380
+ const fixes = "AAAAAAAAaaaaaaaaOOOOOOOooooooEEEEEEeeeeeeeCCCcccDIIIIIiiiiiUUUUUuuuuuNNnnSSssYyyZZZzzzLLllNNnnaaaaaaaaaaaaaaaaaeeeeeeeeeeeduuuuuuuuuuuoooooooooooooooooiiiiiaeiiuuncyyyyygisGISGgKk";
63381
+ const split = accents.split("").join("|");
63382
+ const reg = new RegExp(`(${split})`, "g");
63383
+ function replacement(a2) {
63384
+ return fixes[accents.indexOf(a2)] || "";
63385
+ }
63386
+ return input.replace(reg, replacement);
63387
+ };
63388
+ const getSafeRegexpString = (input) => input.split("").map((char) => `\\${char}`).join("");
63389
+ const harmonize = (input, delimiter, ignoreInvalid = false) => {
63390
+ const harmonized = stripAccents(input).trim().toLowerCase();
63391
+ const safeDelimiter = getSafeRegexpString(delimiter);
63392
+ if (ignoreInvalid) {
63393
+ return harmonized.replace(/\s+/g, delimiter);
63394
+ }
63395
+ return harmonized.replace(new RegExp(`[^a-z0-9${safeDelimiter}]+`, "g"), delimiter).replace(new RegExp(`${safeDelimiter}+`, "g"), delimiter).replace(new RegExp(`^${safeDelimiter}`, "g"), "").replace(new RegExp(`${safeDelimiter}$`, "g"), "");
63396
+ };
63397
+ const slugify = (node2, options = { delimiter: "-", prefix: "" }) => {
63398
+ if (!options.delimiter)
63399
+ options.delimiter = "-";
63400
+ if (!options.prefix)
63401
+ options.prefix = "";
63402
+ if (!node2 || typeof node2 === "boolean") {
63403
+ return "";
63404
+ }
63405
+ const { delimiter, prefix: prefix2 } = options;
63406
+ if (typeof node2 === "boolean") {
63407
+ return "";
63408
+ }
63409
+ if (typeof node2 === "string" || typeof node2 === "number") {
63410
+ const harmonizedPrefix = harmonize(prefix2, delimiter, true);
63411
+ const harmonizedNode = harmonize(String(node2), delimiter);
63412
+ if (harmonizedPrefix) {
63413
+ return `${harmonizedPrefix}${delimiter}${harmonizedNode}`;
63414
+ }
63415
+ return harmonizedNode;
63416
+ }
63417
+ if ("children" in node2) {
63418
+ return slugify(node2.children);
63419
+ }
63420
+ if ("type" in node2)
63421
+ return slugify(node2.props.children, options);
63422
+ if (Symbol.iterator in node2) {
63423
+ return slugify(Array.from(node2).map((subNode) => slugify(subNode, { delimiter })).join(delimiter), options);
63424
+ }
63425
+ return "";
63426
+ };
63427
+ var _default = slugify$1.default = slugify;
62742
63428
  var lib$2 = {};
62743
63429
  var lib$1 = {};
62744
63430
  (function(exports2) {
@@ -66845,6 +67531,18 @@ void main()
66845
67531
  })();
66846
67532
  }, [hasSupportWorkflow]), null;
66847
67533
  }
67534
+ function useCantoo() {
67535
+ const hasWorkflow = useHasWorkflow("org.entcore.portal.controllers.PortalController|optionalFeatureCantoo");
67536
+ return reactExports.useEffect(() => {
67537
+ hasWorkflow && !document.getElementById("cantoo-edifice-script") && (async () => {
67538
+ const cantooResponse = await odeServices.http().get("/optionalFeature/cantoo");
67539
+ if (cantooResponse && cantooResponse.scriptPath) {
67540
+ const script = document.createElement("script");
67541
+ script.id = "cantoo-edifice-script", script.src = cantooResponse.scriptPath, script.async = true, document.body.appendChild(script);
67542
+ }
67543
+ })();
67544
+ }, [hasWorkflow]), null;
67545
+ }
66848
67546
  const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
66849
67547
  src,
66850
67548
  alt,
@@ -69230,7 +69928,7 @@ void main()
69230
69928
  setResult
69231
69929
  } = useMediaLibraryContext();
69232
69930
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Embed$1, { onSuccess: (ressource) => {
69233
- setResult(ressource);
69931
+ ressource = ressource == null ? void 0 : ressource.replace(/<p /g, "<div ").replace(/\/p>/g, "/div>"), setResult(ressource);
69234
69932
  } });
69235
69933
  }, LinkerCard = ({
69236
69934
  doc: doc2,
@@ -71299,474 +71997,7 @@ void main()
71299
71997
  }) => useMutation({
71300
71998
  mutationFn: async (params) => await odeServices.resource(application).update(params),
71301
71999
  ...options
71302
- }), useUpdateMutation$1 = useUpdateMutation, defaults = Object.freeze({
71303
- ignoreUnknown: false,
71304
- respectType: false,
71305
- respectFunctionNames: false,
71306
- respectFunctionProperties: false,
71307
- unorderedObjects: true,
71308
- unorderedArrays: false,
71309
- unorderedSets: false,
71310
- excludeKeys: void 0,
71311
- excludeValues: void 0,
71312
- replacer: void 0
71313
- });
71314
- function objectHash(object, options) {
71315
- options ? options = { ...defaults, ...options } : options = defaults;
71316
- const hasher = createHasher(options);
71317
- return hasher.dispatch(object), hasher.toString();
71318
- }
71319
- const defaultPrototypesKeys = Object.freeze([
71320
- "prototype",
71321
- "__proto__",
71322
- "constructor"
71323
- ]);
71324
- function createHasher(options) {
71325
- let buff = "", context2 = /* @__PURE__ */ new Map();
71326
- const write2 = (str) => {
71327
- buff += str;
71328
- };
71329
- return {
71330
- toString() {
71331
- return buff;
71332
- },
71333
- getContext() {
71334
- return context2;
71335
- },
71336
- dispatch(value) {
71337
- return options.replacer && (value = options.replacer(value)), this[value === null ? "null" : typeof value](value);
71338
- },
71339
- object(object) {
71340
- if (object && typeof object.toJSON == "function")
71341
- return this.object(object.toJSON());
71342
- const objString = Object.prototype.toString.call(object);
71343
- let objType = "";
71344
- const objectLength = objString.length;
71345
- objectLength < 10 ? objType = "unknown:[" + objString + "]" : objType = objString.slice(8, objectLength - 1), objType = objType.toLowerCase();
71346
- let objectNumber = null;
71347
- if ((objectNumber = context2.get(object)) === void 0)
71348
- context2.set(object, context2.size);
71349
- else
71350
- return this.dispatch("[CIRCULAR:" + objectNumber + "]");
71351
- if (typeof Buffer < "u" && Buffer.isBuffer && Buffer.isBuffer(object))
71352
- return write2("buffer:"), write2(object.toString("utf8"));
71353
- if (objType !== "object" && objType !== "function" && objType !== "asyncfunction")
71354
- this[objType] ? this[objType](object) : options.ignoreUnknown || this.unkown(object, objType);
71355
- else {
71356
- let keys = Object.keys(object);
71357
- options.unorderedObjects && (keys = keys.sort());
71358
- let extraKeys = [];
71359
- options.respectType !== false && !isNativeFunction(object) && (extraKeys = defaultPrototypesKeys), options.excludeKeys && (keys = keys.filter((key) => !options.excludeKeys(key)), extraKeys = extraKeys.filter((key) => !options.excludeKeys(key))), write2("object:" + (keys.length + extraKeys.length) + ":");
71360
- const dispatchForKey = (key) => {
71361
- this.dispatch(key), write2(":"), options.excludeValues || this.dispatch(object[key]), write2(",");
71362
- };
71363
- for (const key of keys)
71364
- dispatchForKey(key);
71365
- for (const key of extraKeys)
71366
- dispatchForKey(key);
71367
- }
71368
- },
71369
- array(arr2, unordered) {
71370
- if (unordered = unordered === void 0 ? options.unorderedArrays !== false : unordered, write2("array:" + arr2.length + ":"), !unordered || arr2.length <= 1) {
71371
- for (const entry of arr2)
71372
- this.dispatch(entry);
71373
- return;
71374
- }
71375
- const contextAdditions = /* @__PURE__ */ new Map(), entries = arr2.map((entry) => {
71376
- const hasher = createHasher(options);
71377
- hasher.dispatch(entry);
71378
- for (const [key, value] of hasher.getContext())
71379
- contextAdditions.set(key, value);
71380
- return hasher.toString();
71381
- });
71382
- return context2 = contextAdditions, entries.sort(), this.array(entries, false);
71383
- },
71384
- date(date) {
71385
- return write2("date:" + date.toJSON());
71386
- },
71387
- symbol(sym) {
71388
- return write2("symbol:" + sym.toString());
71389
- },
71390
- unkown(value, type2) {
71391
- if (write2(type2), !!value && (write2(":"), value && typeof value.entries == "function"))
71392
- return this.array(
71393
- Array.from(value.entries()),
71394
- true
71395
- /* ordered */
71396
- );
71397
- },
71398
- error(err) {
71399
- return write2("error:" + err.toString());
71400
- },
71401
- boolean(bool) {
71402
- return write2("bool:" + bool);
71403
- },
71404
- string(string) {
71405
- write2("string:" + string.length + ":"), write2(string);
71406
- },
71407
- function(fn2) {
71408
- write2("fn:"), isNativeFunction(fn2) ? this.dispatch("[native]") : this.dispatch(fn2.toString()), options.respectFunctionNames !== false && this.dispatch("function-name:" + String(fn2.name)), options.respectFunctionProperties && this.object(fn2);
71409
- },
71410
- number(number) {
71411
- return write2("number:" + number);
71412
- },
71413
- xml(xml) {
71414
- return write2("xml:" + xml.toString());
71415
- },
71416
- null() {
71417
- return write2("Null");
71418
- },
71419
- undefined() {
71420
- return write2("Undefined");
71421
- },
71422
- regexp(regex) {
71423
- return write2("regex:" + regex.toString());
71424
- },
71425
- uint8array(arr2) {
71426
- return write2("uint8array:"), this.dispatch(Array.prototype.slice.call(arr2));
71427
- },
71428
- uint8clampedarray(arr2) {
71429
- return write2("uint8clampedarray:"), this.dispatch(Array.prototype.slice.call(arr2));
71430
- },
71431
- int8array(arr2) {
71432
- return write2("int8array:"), this.dispatch(Array.prototype.slice.call(arr2));
71433
- },
71434
- uint16array(arr2) {
71435
- return write2("uint16array:"), this.dispatch(Array.prototype.slice.call(arr2));
71436
- },
71437
- int16array(arr2) {
71438
- return write2("int16array:"), this.dispatch(Array.prototype.slice.call(arr2));
71439
- },
71440
- uint32array(arr2) {
71441
- return write2("uint32array:"), this.dispatch(Array.prototype.slice.call(arr2));
71442
- },
71443
- int32array(arr2) {
71444
- return write2("int32array:"), this.dispatch(Array.prototype.slice.call(arr2));
71445
- },
71446
- float32array(arr2) {
71447
- return write2("float32array:"), this.dispatch(Array.prototype.slice.call(arr2));
71448
- },
71449
- float64array(arr2) {
71450
- return write2("float64array:"), this.dispatch(Array.prototype.slice.call(arr2));
71451
- },
71452
- arraybuffer(arr2) {
71453
- return write2("arraybuffer:"), this.dispatch(new Uint8Array(arr2));
71454
- },
71455
- url(url) {
71456
- return write2("url:" + url.toString());
71457
- },
71458
- map(map2) {
71459
- write2("map:");
71460
- const arr2 = [...map2];
71461
- return this.array(arr2, options.unorderedSets !== false);
71462
- },
71463
- set(set2) {
71464
- write2("set:");
71465
- const arr2 = [...set2];
71466
- return this.array(arr2, options.unorderedSets !== false);
71467
- },
71468
- file(file) {
71469
- return write2("file:"), this.dispatch([file.name, file.size, file.type, file.lastModfied]);
71470
- },
71471
- blob() {
71472
- if (options.ignoreUnknown)
71473
- return write2("[blob]");
71474
- throw new Error(
71475
- `Hashing Blob objects is currently not supported
71476
- Use "options.replacer" or "options.ignoreUnknown"
71477
- `
71478
- );
71479
- },
71480
- domwindow() {
71481
- return write2("domwindow");
71482
- },
71483
- bigint(number) {
71484
- return write2("bigint:" + number.toString());
71485
- },
71486
- /* Node.js standard native objects */
71487
- process() {
71488
- return write2("process");
71489
- },
71490
- timer() {
71491
- return write2("timer");
71492
- },
71493
- pipe() {
71494
- return write2("pipe");
71495
- },
71496
- tcp() {
71497
- return write2("tcp");
71498
- },
71499
- udp() {
71500
- return write2("udp");
71501
- },
71502
- tty() {
71503
- return write2("tty");
71504
- },
71505
- statwatcher() {
71506
- return write2("statwatcher");
71507
- },
71508
- securecontext() {
71509
- return write2("securecontext");
71510
- },
71511
- connection() {
71512
- return write2("connection");
71513
- },
71514
- zlib() {
71515
- return write2("zlib");
71516
- },
71517
- context() {
71518
- return write2("context");
71519
- },
71520
- nodescript() {
71521
- return write2("nodescript");
71522
- },
71523
- httpparser() {
71524
- return write2("httpparser");
71525
- },
71526
- dataview() {
71527
- return write2("dataview");
71528
- },
71529
- signal() {
71530
- return write2("signal");
71531
- },
71532
- fsevent() {
71533
- return write2("fsevent");
71534
- },
71535
- tlswrap() {
71536
- return write2("tlswrap");
71537
- }
71538
- };
71539
- }
71540
- const nativeFunc = "[native code] }", nativeFuncLength = nativeFunc.length;
71541
- function isNativeFunction(f2) {
71542
- return typeof f2 != "function" ? false : Function.prototype.toString.call(f2).slice(-nativeFuncLength) === nativeFunc;
71543
- }
71544
- class WordArray {
71545
- constructor(words, sigBytes) {
71546
- words = this.words = words || [], this.sigBytes = sigBytes === void 0 ? words.length * 4 : sigBytes;
71547
- }
71548
- toString(encoder) {
71549
- return (encoder || Hex).stringify(this);
71550
- }
71551
- concat(wordArray) {
71552
- if (this.clamp(), this.sigBytes % 4)
71553
- for (let i2 = 0; i2 < wordArray.sigBytes; i2++) {
71554
- const thatByte = wordArray.words[i2 >>> 2] >>> 24 - i2 % 4 * 8 & 255;
71555
- this.words[this.sigBytes + i2 >>> 2] |= thatByte << 24 - (this.sigBytes + i2) % 4 * 8;
71556
- }
71557
- else
71558
- for (let j2 = 0; j2 < wordArray.sigBytes; j2 += 4)
71559
- this.words[this.sigBytes + j2 >>> 2] = wordArray.words[j2 >>> 2];
71560
- return this.sigBytes += wordArray.sigBytes, this;
71561
- }
71562
- clamp() {
71563
- this.words[this.sigBytes >>> 2] &= 4294967295 << 32 - this.sigBytes % 4 * 8, this.words.length = Math.ceil(this.sigBytes / 4);
71564
- }
71565
- clone() {
71566
- return new WordArray([...this.words]);
71567
- }
71568
- }
71569
- const Hex = {
71570
- stringify(wordArray) {
71571
- const hexChars = [];
71572
- for (let i2 = 0; i2 < wordArray.sigBytes; i2++) {
71573
- const bite = wordArray.words[i2 >>> 2] >>> 24 - i2 % 4 * 8 & 255;
71574
- hexChars.push((bite >>> 4).toString(16), (bite & 15).toString(16));
71575
- }
71576
- return hexChars.join("");
71577
- }
71578
- }, Base64 = {
71579
- stringify(wordArray) {
71580
- const keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", base64Chars = [];
71581
- for (let i2 = 0; i2 < wordArray.sigBytes; i2 += 3) {
71582
- const byte1 = wordArray.words[i2 >>> 2] >>> 24 - i2 % 4 * 8 & 255, byte2 = wordArray.words[i2 + 1 >>> 2] >>> 24 - (i2 + 1) % 4 * 8 & 255, byte3 = wordArray.words[i2 + 2 >>> 2] >>> 24 - (i2 + 2) % 4 * 8 & 255, triplet = byte1 << 16 | byte2 << 8 | byte3;
71583
- for (let j2 = 0; j2 < 4 && i2 * 8 + j2 * 6 < wordArray.sigBytes * 8; j2++)
71584
- base64Chars.push(keyStr.charAt(triplet >>> 6 * (3 - j2) & 63));
71585
- }
71586
- return base64Chars.join("");
71587
- }
71588
- }, Latin1 = {
71589
- parse(latin1Str) {
71590
- const latin1StrLength = latin1Str.length, words = [];
71591
- for (let i2 = 0; i2 < latin1StrLength; i2++)
71592
- words[i2 >>> 2] |= (latin1Str.charCodeAt(i2) & 255) << 24 - i2 % 4 * 8;
71593
- return new WordArray(words, latin1StrLength);
71594
- }
71595
- }, Utf8 = {
71596
- parse(utf8Str) {
71597
- return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
71598
- }
71599
- };
71600
- class BufferedBlockAlgorithm {
71601
- constructor() {
71602
- this._data = new WordArray(), this._nDataBytes = 0, this._minBufferSize = 0, this.blockSize = 512 / 32;
71603
- }
71604
- reset() {
71605
- this._data = new WordArray(), this._nDataBytes = 0;
71606
- }
71607
- _append(data) {
71608
- typeof data == "string" && (data = Utf8.parse(data)), this._data.concat(data), this._nDataBytes += data.sigBytes;
71609
- }
71610
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
71611
- _doProcessBlock(_dataWords, _offset) {
71612
- }
71613
- _process(doFlush) {
71614
- let processedWords, nBlocksReady = this._data.sigBytes / (this.blockSize * 4);
71615
- doFlush ? nBlocksReady = Math.ceil(nBlocksReady) : nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);
71616
- const nWordsReady = nBlocksReady * this.blockSize, nBytesReady = Math.min(nWordsReady * 4, this._data.sigBytes);
71617
- if (nWordsReady) {
71618
- for (let offset2 = 0; offset2 < nWordsReady; offset2 += this.blockSize)
71619
- this._doProcessBlock(this._data.words, offset2);
71620
- processedWords = this._data.words.splice(0, nWordsReady), this._data.sigBytes -= nBytesReady;
71621
- }
71622
- return new WordArray(processedWords, nBytesReady);
71623
- }
71624
- }
71625
- class Hasher extends BufferedBlockAlgorithm {
71626
- update(messageUpdate) {
71627
- return this._append(messageUpdate), this._process(), this;
71628
- }
71629
- finalize(messageUpdate) {
71630
- messageUpdate && this._append(messageUpdate);
71631
- }
71632
- }
71633
- const H = [
71634
- 1779033703,
71635
- -1150833019,
71636
- 1013904242,
71637
- -1521486534,
71638
- 1359893119,
71639
- -1694144372,
71640
- 528734635,
71641
- 1541459225
71642
- ], K = [
71643
- 1116352408,
71644
- 1899447441,
71645
- -1245643825,
71646
- -373957723,
71647
- 961987163,
71648
- 1508970993,
71649
- -1841331548,
71650
- -1424204075,
71651
- -670586216,
71652
- 310598401,
71653
- 607225278,
71654
- 1426881987,
71655
- 1925078388,
71656
- -2132889090,
71657
- -1680079193,
71658
- -1046744716,
71659
- -459576895,
71660
- -272742522,
71661
- 264347078,
71662
- 604807628,
71663
- 770255983,
71664
- 1249150122,
71665
- 1555081692,
71666
- 1996064986,
71667
- -1740746414,
71668
- -1473132947,
71669
- -1341970488,
71670
- -1084653625,
71671
- -958395405,
71672
- -710438585,
71673
- 113926993,
71674
- 338241895,
71675
- 666307205,
71676
- 773529912,
71677
- 1294757372,
71678
- 1396182291,
71679
- 1695183700,
71680
- 1986661051,
71681
- -2117940946,
71682
- -1838011259,
71683
- -1564481375,
71684
- -1474664885,
71685
- -1035236496,
71686
- -949202525,
71687
- -778901479,
71688
- -694614492,
71689
- -200395387,
71690
- 275423344,
71691
- 430227734,
71692
- 506948616,
71693
- 659060556,
71694
- 883997877,
71695
- 958139571,
71696
- 1322822218,
71697
- 1537002063,
71698
- 1747873779,
71699
- 1955562222,
71700
- 2024104815,
71701
- -2067236844,
71702
- -1933114872,
71703
- -1866530822,
71704
- -1538233109,
71705
- -1090935817,
71706
- -965641998
71707
- ], W = [];
71708
- class SHA256 extends Hasher {
71709
- constructor() {
71710
- super(...arguments), this._hash = new WordArray([...H]);
71711
- }
71712
- reset() {
71713
- super.reset(), this._hash = new WordArray([...H]);
71714
- }
71715
- _doProcessBlock(M2, offset2) {
71716
- const H2 = this._hash.words;
71717
- let a2 = H2[0], b2 = H2[1], c6 = H2[2], d2 = H2[3], e2 = H2[4], f2 = H2[5], g2 = H2[6], h2 = H2[7];
71718
- for (let i2 = 0; i2 < 64; i2++) {
71719
- if (i2 < 16)
71720
- W[i2] = M2[offset2 + i2] | 0;
71721
- else {
71722
- const gamma0x = W[i2 - 15], gamma0 = (gamma0x << 25 | gamma0x >>> 7) ^ (gamma0x << 14 | gamma0x >>> 18) ^ gamma0x >>> 3, gamma1x = W[i2 - 2], gamma1 = (gamma1x << 15 | gamma1x >>> 17) ^ (gamma1x << 13 | gamma1x >>> 19) ^ gamma1x >>> 10;
71723
- W[i2] = gamma0 + W[i2 - 7] + gamma1 + W[i2 - 16];
71724
- }
71725
- const ch2 = e2 & f2 ^ ~e2 & g2, maj = a2 & b2 ^ a2 & c6 ^ b2 & c6, sigma0 = (a2 << 30 | a2 >>> 2) ^ (a2 << 19 | a2 >>> 13) ^ (a2 << 10 | a2 >>> 22), sigma1 = (e2 << 26 | e2 >>> 6) ^ (e2 << 21 | e2 >>> 11) ^ (e2 << 7 | e2 >>> 25), t1 = h2 + sigma1 + ch2 + K[i2] + W[i2], t2 = sigma0 + maj;
71726
- h2 = g2, g2 = f2, f2 = e2, e2 = d2 + t1 | 0, d2 = c6, c6 = b2, b2 = a2, a2 = t1 + t2 | 0;
71727
- }
71728
- H2[0] = H2[0] + a2 | 0, H2[1] = H2[1] + b2 | 0, H2[2] = H2[2] + c6 | 0, H2[3] = H2[3] + d2 | 0, H2[4] = H2[4] + e2 | 0, H2[5] = H2[5] + f2 | 0, H2[6] = H2[6] + g2 | 0, H2[7] = H2[7] + h2 | 0;
71729
- }
71730
- finalize(messageUpdate) {
71731
- super.finalize(messageUpdate);
71732
- const nBitsTotal = this._nDataBytes * 8, nBitsLeft = this._data.sigBytes * 8;
71733
- return this._data.words[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32, this._data.words[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math.floor(
71734
- nBitsTotal / 4294967296
71735
- ), this._data.words[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal, this._data.sigBytes = this._data.words.length * 4, this._process(), this._hash;
71736
- }
71737
- }
71738
- function sha256base64(message) {
71739
- return new SHA256().finalize(message).toString(Base64);
71740
- }
71741
- function hash(object, options = {}) {
71742
- const hashed = typeof object == "string" ? object : objectHash(object, options);
71743
- return sha256base64(hashed).slice(0, 10);
71744
- }
71745
- var slugify$1 = {};
71746
- Object.defineProperty(slugify$1, "__esModule", { value: true });
71747
- const stripAccents = (input) => {
71748
- const accents = "ÀÁÂÃÄÅĄĀàáâãäåąāÒÓÔÕÕÖØòóôõöøÈÉÊËĘĒèéêëðęēÇĆČçćčÐÌÍÎÏĪìíîïīÙÚÛÜŪùúûüūÑŅñņŠŚšśŸÿýŽŹŻžźżŁĻłļŃŅńņàáãảạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệđùúủũụưừứửữựòóỏõọôồốổỗộơờớởỡợìíỉĩịäëïîüûñçýỳỹỵỷğışĞİŞĢģĶķ", fixes = "AAAAAAAAaaaaaaaaOOOOOOOooooooEEEEEEeeeeeeeCCCcccDIIIIIiiiiiUUUUUuuuuuNNnnSSssYyyZZZzzzLLllNNnnaaaaaaaaaaaaaaaaaeeeeeeeeeeeduuuuuuuuuuuoooooooooooooooooiiiiiaeiiuuncyyyyygisGISGgKk", split = accents.split("").join("|"), reg = new RegExp(`(${split})`, "g");
71749
- function replacement(a2) {
71750
- return fixes[accents.indexOf(a2)] || "";
71751
- }
71752
- return input.replace(reg, replacement);
71753
- }, getSafeRegexpString = (input) => input.split("").map((char) => `\\${char}`).join(""), harmonize = (input, delimiter, ignoreInvalid = false) => {
71754
- const harmonized = stripAccents(input).trim().toLowerCase(), safeDelimiter = getSafeRegexpString(delimiter);
71755
- return ignoreInvalid ? harmonized.replace(/\s+/g, delimiter) : harmonized.replace(new RegExp(`[^a-z0-9${safeDelimiter}]+`, "g"), delimiter).replace(new RegExp(`${safeDelimiter}+`, "g"), delimiter).replace(new RegExp(`^${safeDelimiter}`, "g"), "").replace(new RegExp(`${safeDelimiter}$`, "g"), "");
71756
- }, slugify = (node2, options = { delimiter: "-", prefix: "" }) => {
71757
- if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !node2 || typeof node2 == "boolean")
71758
- return "";
71759
- const { delimiter, prefix: prefix2 } = options;
71760
- if (typeof node2 == "boolean")
71761
- return "";
71762
- if (typeof node2 == "string" || typeof node2 == "number") {
71763
- const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(node2), delimiter);
71764
- return harmonizedPrefix ? `${harmonizedPrefix}${delimiter}${harmonizedNode}` : harmonizedNode;
71765
- }
71766
- return "children" in node2 ? slugify(node2.children) : "type" in node2 ? slugify(node2.props.children, options) : Symbol.iterator in node2 ? slugify(Array.from(node2).map((subNode) => slugify(subNode, { delimiter })).join(delimiter), options) : "";
71767
- };
71768
- var _default = slugify$1.default = slugify;
71769
- const useSlug = ({
72000
+ }), useUpdateMutation$1 = useUpdateMutation, useSlug = ({
71770
72001
  watch,
71771
72002
  setValue,
71772
72003
  selectedResource
@@ -72411,21 +72642,22 @@ Use "options.replacer" or "options.ignoreUnknown"
72411
72642
  appCode
72412
72643
  } = useOdeClient(), {
72413
72644
  t: t2
72414
- } = useTranslation(appCode), resource = useResource$1("blog", resourceId), publishType = resource && resource["publish-type"], [radioPublicationValue, setRadioPublicationValue] = reactExports.useState(publishType ?? "RESTRAINT"), handleRadioPublicationChange = async (event) => {
72415
- const value = event.target.value;
72416
- (async () => {
72417
- const params = {
72418
- description: resource.description || "",
72419
- entId: resource.assetId,
72420
- name: resource.name,
72421
- public: !!resource.public,
72422
- slug: resource.slug || "",
72423
- thumbnail: resource.thumbnail,
72424
- trashed: resource.trashed,
72425
- "publish-type": value
72426
- };
72427
- updateResource ? await updateResource.mutateAsync(params) : await odeServices.resource("blog").update(params), setRadioPublicationValue(value);
72428
- })();
72645
+ } = useTranslation(appCode), resource = useResource$1("blog", resourceId), publishType = resource && resource["publish-type"], [radioPublicationValue, setRadioPublicationValue] = reactExports.useState(publishType ?? "RESTRAINT");
72646
+ reactExports.useEffect(() => {
72647
+ publishType && setRadioPublicationValue(publishType);
72648
+ }, [publishType]);
72649
+ const handleRadioPublicationChange = async (event) => {
72650
+ const value = event.target.value, params = {
72651
+ description: resource.description || "",
72652
+ entId: resource.assetId,
72653
+ name: resource.name,
72654
+ public: !!resource.public,
72655
+ slug: resource.slug || "",
72656
+ thumbnail: resource.thumbnail,
72657
+ trashed: resource.trashed,
72658
+ "publish-type": value
72659
+ };
72660
+ updateResource ? await updateResource.mutateAsync(params) : await odeServices.resource("blog").update(params), setRadioPublicationValue(value);
72429
72661
  };
72430
72662
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
72431
72663
  /* @__PURE__ */ jsxRuntimeExports.jsx("hr", {}),
@@ -72802,7 +73034,7 @@ Use "options.replacer" or "options.ignoreUnknown"
72802
73034
  handleConsultCookies,
72803
73035
  handleCloseCookiesConsent
72804
73036
  } = useCookiesConsent();
72805
- useZendeskGuide();
73037
+ useZendeskGuide(), useCantoo();
72806
73038
  const classes2 = clsx("d-flex flex-column bg-white", {
72807
73039
  "container-fluid": !headless,
72808
73040
  "rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,