jamespot-react-components 1.3.57 → 1.3.58

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.
@@ -1,6 +1,6 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('.react-reset{visibility:visible}.react-reset input[type=text]{box-shadow:none}.react-reset *{align-content:stretch;align-items:stretch;align-self:auto;animation-delay:0s;animation-direction:normal;animation-duration:0s;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;azimuth:center;backface-visibility:visible;background-attachment:scroll;background-blend-mode:normal;background-clip:border-box;background-color:transparent;background-image:none;background-origin:padding-box;background-position:0% 0%;background-repeat:repeat;background-size:auto auto;border-block-end-color:currentcolor;border-block-end-style:none;border-block-end-width:medium;border-block-start-color:currentcolor;border-block-start-style:none;border-block-start-width:medium;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image-outset:0s;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-inline-end-color:currentcolor;border-inline-end-style:none;border-inline-end-width:medium;border-inline-start-color:currentcolor;border-inline-start-style:none;border-inline-start-width:medium;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;border-right-color:currentcolor;border-right-style:none;border-right-width:medium;border-spacing:0;border-top-color:currentcolor;border-top-style:none;border-top-width:medium;-webkit-box-decoration-break:slice;box-decoration-break:slice;box-sizing:border-box;break-after:auto;break-before:auto;break-inside:auto;caption-side:top;caret-color:auto;clear:none;clip:auto;color:inherit;column-count:auto;column-fill:balance;column-gap:normal;column-rule-color:currentcolor;column-rule-style:none;column-rule-width:medium;column-span:none;column-width:auto;content:normal;counter-increment:none;counter-reset:none;empty-cells:show;flex-basis:auto;flex-direction:row;flex-grow:0;flex-shrink:1;flex-wrap:nowrap;float:none;font-feature-settings:normal;font-kerning:auto;font-language-override:normal;font-stretch:normal;font-synthesis:weight style;font-variant:normal;font-variant-alternates:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-position:normal;grid-auto-columns:auto;grid-auto-flow:row;grid-auto-rows:auto;grid-column-end:auto;grid-column-gap:0;grid-column-start:auto;grid-row-end:auto;grid-row-gap:0;grid-row-start:auto;grid-template-areas:none;grid-template-columns:none;grid-template-rows:none;-webkit-hyphens:manual;hyphens:manual;image-orientation:0deg;image-rendering:auto;image-resolution:1dppx;ime-mode:auto;isolation:auto;justify-content:flex-start;inset:auto;letter-spacing:inherit;line-break:auto;list-style-image:none;list-style-position:outside;margin-block-end:0;margin-block-start:0;margin-inline-end:0;margin-inline-start:0;margin:0;mask-clip:border-box;-webkit-mask-composite:source-over;mask-composite:add;-webkit-mask-image:none;mask-image:none;mask-mode:match-source;-webkit-mask-origin:border-box;mask-origin:border-box;-webkit-mask-position:0% 0%;mask-position:0% 0%;-webkit-mask-repeat:repeat;mask-repeat:repeat;-webkit-mask-size:auto;mask-size:auto;mask-type:luminance;max-height:none;max-width:none;min-height:none;min-inline-size:none;min-width:none;mix-blend-mode:normal;object-fit:fill;object-position:50% 50%;offset-block-end:auto;offset-block-start:auto;offset-inline-end:auto;offset-inline-start:auto;opacity:1;order:0;orphans:2;outline-color:initial;outline-offset:0;outline-style:none;outline-width:medium;padding-block-end:0;padding-block-start:0;padding-inline-end:0;padding-inline-start:0;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:initial;resize:none;ruby-align:space-around;ruby-merge:separate;ruby-position:over;scroll-behavior:auto;scroll-snap-coordinate:none;scroll-snap-destination:0px 0px;scroll-snap-points-x:none;scroll-snap-points-y:none;scroll-snap-type:none;shape-image-threshold:0;shape-margin:0;shape-outside:none;tab-size:8;table-layout:auto;text-align:initial;text-align-last:auto;text-combine-upright:none;text-emphasis-color:currentcolor;text-emphasis-position:over right;text-emphasis-style:none;text-indent:0;text-justify:auto;text-orientation:mixed;text-overflow:clip;text-rendering:auto;text-shadow:none;text-transform:none;text-underline-position:auto;touch-action:auto;transform-box:border-box;transform-origin:50% 50% 0;transform-style:flat;transition-delay:0s;transition-duration:0s;transition-property:all;transition-timing-function:ease;vertical-align:baseline;visibility:inherit;widows:2;will-change:auto;word-break:normal;word-spacing:normal;word-wrap:normal;writing-mode:horizontal-tb;z-index:unset}.react-reset:not(svg),.react-reset:not(g){border-radius:0;transform:none;box-shadow:none;-webkit-box-shadow:none;filter:none;clip-path:none}:root{--rt-transition-show-delay: 0 !important;--rt-transition-closing-delay: 0 !important}.react-icon[class^=icon-],.react-icon[class*=" icon-"]{speak:none;font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.react-icon[class^=icon-fs-],.react-icon[class*=" icon-fs-"]{font-family:fontSpot!important;speak:none;font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.react-reset,.react-reset input,.react-reset input::placeholder,.react-reset textarea::placeholder,.react-reset button,.react-reset select,.react-reset textarea{font-family:var(--font-family);font-size:14px;line-height:1.5;font-weight:400}.react-reset{width:100%}.r-grid{width:100%;display:grid;--pageColWidthLeft: 230px;--pageColWidthRight: 270px}.r-grid.page-1-cols{grid-template-columns:1fr;-ms-grid-columns:1fr;grid-template-rows:auto 1fr;-ms-grid-template-rows:auto 1fr}.r-grid.page-1-cols #r-main{grid-row:2;grid-column:1;-ms-grid-row:2;-ms-grid-column:1}.r-grid.page-2-cols{grid-template-columns:var(--pageColWidthLeft) 1fr;-ms-grid-columns:var(--pageColWidthLeft) 1fr;grid-template-rows:auto 1fr;-ms-grid-template-rows:auto 1fr}.r-grid.page-2-cols #r-left{grid-row:2;grid-column:1;-ms-grid-row:2;-ms-grid-column:1}.r-grid.page-2-cols #r-main{margin-left:30px;grid-row:2;grid-column:2;-ms-grid-row:2;-ms-grid-column:2}.r-grid.page-3-cols{grid-template-columns:var(--pageColWidthLeft) 1fr var(--pageColWidthRight);-ms-grid-columns:var(--pageColWidthLeft) 1fr var(--pageColWidthRight);grid-template-rows:auto 1fr;-ms-grid-template-rows:auto 1fr}.r-grid.page-3-cols #r-left{grid-row:2;grid-column:1;-ms-grid-row:2;-ms-grid-column:1}.r-grid.page-3-cols #r-main{margin:0 30px;grid-row:2;grid-column:2;-ms-grid-row:2;-ms-grid-column:2}.r-grid.page-3-cols #r-right{grid-row:2;grid-column:3;-ms-grid-row:2;-ms-grid-column:3}#r-left,#r-right{display:flex;flex-direction:column;justify-content:flex-end}#r-right:focus,#r-right:focus-visible{outline:2px solid #4A4A52;outline-offset:2px}#r-left .sticky,#r-right .sticky{position:-webkit-sticky;position:sticky;z-index:1;bottom:var(--template-padding);min-height:var(--body-container-height)}#r-left .sticky .fixed,#r-right .sticky .fixed{position:fixed}.react-reset{--scrollbarTrack: white;--scrollbarThumb: #bebed1}.react-reset *{scrollbar-width:thin;scrollbar-color:var(--scrollbarThumb) var(--scrollbarTrack);scroll-behavior:smooth}.react-reset *::-webkit-scrollbar-track{background:var(--scrollbarTrack)}.react-reset *::-webkit-scrollbar-thumb{background-color:var(--scrollbarThumb)}.react-reset *::-webkit-scrollbar{width:8px}.wiggle{animation:.25s ease-in-out 0s 4 wiggle}@keyframes wiggle{0%{transform:rotate(0)}25%{transform:rotate(10deg) scale(1.1)}75%{transform:rotate(-10deg) scale(1.1)}to{transform:rotate(0)}}.scale-left{animation:scale var(--timeout, 1s) linear 0s 1}@keyframes scale{0%{width:0}to{width:100%}}.slide-right{animation:slide-right 1s}@keyframes slide-right{0%{opacity:0;transform:translate(75px)}to{opacity:1;transform:translate(0)}}@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}:root{--rc-drag-handle-size: 12px;--rc-drag-handle-mobile-size: 24px;--rc-drag-handle-bg-colour: rgba(0, 0, 0, .2);--rc-drag-bar-size: 6px;--rc-border-color: rgba(255, 255, 255, .7);--rc-focus-color: #0088ff}.ReactCrop{position:relative;display:inline-block;cursor:crosshair;max-width:100%}.ReactCrop *,.ReactCrop *:before,.ReactCrop *:after{box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{overflow:hidden;max-height:inherit}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{display:block;max-width:100%;max-height:inherit}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video{touch-action:none}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{touch-action:none}.ReactCrop__crop-mask{position:absolute;inset:0;pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px)}.ReactCrop__crop-selection{position:absolute;top:0;left:0;transform:translateZ(0);cursor:move}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";position:absolute;inset:-1px;border:1px solid var(--rc-border-color);opacity:.3}.ReactCrop--no-animate .ReactCrop__crop-selection{outline:1px dashed white}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection){animation:marching-ants 1s;background-image:linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%);background-size:10px 1px,10px 1px,1px 10px,1px 10px;background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;color:#fff;animation-play-state:running;animation-timing-function:linear;animation-iteration-count:infinite}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{content:"";display:block;position:absolute;background-color:#fff6}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333333333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6666666667%}.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333333333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6666666667%}.ReactCrop__drag-handle{position:absolute;width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color)}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{top:0;left:0;transform:translate(-50%,-50%);cursor:nw-resize}.ReactCrop .ord-n{top:0;left:50%;transform:translate(-50%,-50%);cursor:n-resize}.ReactCrop .ord-ne{top:0;right:0;transform:translate(50%,-50%);cursor:ne-resize}.ReactCrop .ord-e{top:50%;right:0;transform:translate(50%,-50%);cursor:e-resize}.ReactCrop .ord-se{bottom:0;right:0;transform:translate(50%,50%);cursor:se-resize}.ReactCrop .ord-s{bottom:0;left:50%;transform:translate(-50%,50%);cursor:s-resize}.ReactCrop .ord-sw{bottom:0;left:0;transform:translate(-50%,50%);cursor:sw-resize}.ReactCrop .ord-w{top:50%;left:0;transform:translate(-50%,-50%);cursor:w-resize}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{top:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{right:0;top:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(50%)}.ReactCrop__drag-bar.ord-s{bottom:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{top:0;left:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(-50%)}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media(pointer:coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}')),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
2
  import * as Ai from "react";
3
- import Ae, { useState as E, useEffect as j, useRef as ae, useMemo as $, useContext as wc, forwardRef as Xe, createContext as Eg, useCallback as M, useImperativeHandle as Dg, useLayoutEffect as lo, createElement as Es, Fragment as An, PureComponent as Qb, createRef as Ds, Component as y1, Suspense as C1, memo as Sg, Children as Hb } from "react";
3
+ import Ae, { useState as E, useEffect as j, useRef as ae, useMemo as $, useContext as wc, forwardRef as Xe, createContext as Eg, useCallback as L, useImperativeHandle as Dg, useLayoutEffect as lo, createElement as Es, Fragment as An, PureComponent as Qb, createRef as Ds, Component as y1, Suspense as C1, memo as Sg, Children as Hb } from "react";
4
4
  import { DndProvider as Ig, useDrop as Co, useDrag as Xs } from "react-dnd";
5
5
  import { HTML5Backend as Og } from "react-dnd-html5-backend";
6
6
  import p, { ThemeContext as E1, css as _e, useTheme as lt, keyframes as Gs, ThemeProvider as Pp } from "styled-components";
@@ -363,12 +363,12 @@ var No = {};
363
363
  var Mp;
364
364
  function V1() {
365
365
  return Mp || (Mp = 1, process.env.NODE_ENV !== "production" && (function() {
366
- function e(D) {
367
- if (D == null) return null;
368
- if (typeof D == "function")
369
- return D.$$typeof === k ? null : D.displayName || D.name || null;
370
- if (typeof D == "string") return D;
371
- switch (D) {
366
+ function e(S) {
367
+ if (S == null) return null;
368
+ if (typeof S == "function")
369
+ return S.$$typeof === k ? null : S.displayName || S.name || null;
370
+ if (typeof S == "string") return S;
371
+ switch (S) {
372
372
  case v:
373
373
  return "Fragment";
374
374
  case x:
@@ -377,136 +377,136 @@ function V1() {
377
377
  return "StrictMode";
378
378
  case C:
379
379
  return "Suspense";
380
- case S:
380
+ case D:
381
381
  return "SuspenseList";
382
382
  case F:
383
383
  return "Activity";
384
384
  }
385
- if (typeof D == "object")
386
- switch (typeof D.tag == "number" && console.error(
385
+ if (typeof S == "object")
386
+ switch (typeof S.tag == "number" && console.error(
387
387
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
388
- ), D.$$typeof) {
388
+ ), S.$$typeof) {
389
389
  case m:
390
390
  return "Portal";
391
391
  case B:
392
- return D.displayName || "Context";
392
+ return S.displayName || "Context";
393
393
  case b:
394
- return (D._context.displayName || "Context") + ".Consumer";
394
+ return (S._context.displayName || "Context") + ".Consumer";
395
395
  case y:
396
- var N = D.render;
397
- return D = D.displayName, D || (D = N.displayName || N.name || "", D = D !== "" ? "ForwardRef(" + D + ")" : "ForwardRef"), D;
396
+ var N = S.render;
397
+ return S = S.displayName, S || (S = N.displayName || N.name || "", S = S !== "" ? "ForwardRef(" + S + ")" : "ForwardRef"), S;
398
398
  case I:
399
- return N = D.displayName || null, N !== null ? N : e(D.type) || "Memo";
399
+ return N = S.displayName || null, N !== null ? N : e(S.type) || "Memo";
400
400
  case O:
401
- N = D._payload, D = D._init;
401
+ N = S._payload, S = S._init;
402
402
  try {
403
- return e(D(N));
403
+ return e(S(N));
404
404
  } catch {
405
405
  }
406
406
  }
407
407
  return null;
408
408
  }
409
- function t(D) {
410
- return "" + D;
409
+ function t(S) {
410
+ return "" + S;
411
411
  }
412
- function A(D) {
412
+ function A(S) {
413
413
  try {
414
- t(D);
414
+ t(S);
415
415
  var N = !1;
416
416
  } catch {
417
417
  N = !0;
418
418
  }
419
419
  if (N) {
420
420
  N = console;
421
- var Z = N.error, U = typeof Symbol == "function" && Symbol.toStringTag && D[Symbol.toStringTag] || D.constructor.name || "Object";
421
+ var Z = N.error, U = typeof Symbol == "function" && Symbol.toStringTag && S[Symbol.toStringTag] || S.constructor.name || "Object";
422
422
  return Z.call(
423
423
  N,
424
424
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
425
425
  U
426
- ), t(D);
426
+ ), t(S);
427
427
  }
428
428
  }
429
- function n(D) {
430
- if (D === v) return "<>";
431
- if (typeof D == "object" && D !== null && D.$$typeof === O)
429
+ function n(S) {
430
+ if (S === v) return "<>";
431
+ if (typeof S == "object" && S !== null && S.$$typeof === O)
432
432
  return "<...>";
433
433
  try {
434
- var N = e(D);
434
+ var N = e(S);
435
435
  return N ? "<" + N + ">" : "<...>";
436
436
  } catch {
437
437
  return "<...>";
438
438
  }
439
439
  }
440
440
  function r() {
441
- var D = z.A;
442
- return D === null ? null : D.getOwner();
441
+ var S = z.A;
442
+ return S === null ? null : S.getOwner();
443
443
  }
444
444
  function i() {
445
445
  return Error("react-stack-top-frame");
446
446
  }
447
- function o(D) {
448
- if (W.call(D, "key")) {
449
- var N = Object.getOwnPropertyDescriptor(D, "key").get;
447
+ function o(S) {
448
+ if (W.call(S, "key")) {
449
+ var N = Object.getOwnPropertyDescriptor(S, "key").get;
450
450
  if (N && N.isReactWarning) return !1;
451
451
  }
452
- return D.key !== void 0;
452
+ return S.key !== void 0;
453
453
  }
454
- function a(D, N) {
454
+ function a(S, N) {
455
455
  function Z() {
456
456
  te || (te = !0, console.error(
457
457
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
458
458
  N
459
459
  ));
460
460
  }
461
- Z.isReactWarning = !0, Object.defineProperty(D, "key", {
461
+ Z.isReactWarning = !0, Object.defineProperty(S, "key", {
462
462
  get: Z,
463
463
  configurable: !0
464
464
  });
465
465
  }
466
466
  function l() {
467
- var D = e(this.type);
468
- return G[D] || (G[D] = !0, console.error(
467
+ var S = e(this.type);
468
+ return G[S] || (G[S] = !0, console.error(
469
469
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
470
- )), D = this.props.ref, D !== void 0 ? D : null;
470
+ )), S = this.props.ref, S !== void 0 ? S : null;
471
471
  }
472
- function c(D, N, Z, U, R, J) {
472
+ function c(S, N, Z, U, R, J) {
473
473
  var Y = Z.ref;
474
- return D = {
474
+ return S = {
475
475
  $$typeof: h,
476
- type: D,
476
+ type: S,
477
477
  key: N,
478
478
  props: Z,
479
479
  _owner: U
480
- }, (Y !== void 0 ? Y : null) !== null ? Object.defineProperty(D, "ref", {
480
+ }, (Y !== void 0 ? Y : null) !== null ? Object.defineProperty(S, "ref", {
481
481
  enumerable: !1,
482
482
  get: l
483
- }) : Object.defineProperty(D, "ref", { enumerable: !1, value: null }), D._store = {}, Object.defineProperty(D._store, "validated", {
483
+ }) : Object.defineProperty(S, "ref", { enumerable: !1, value: null }), S._store = {}, Object.defineProperty(S._store, "validated", {
484
484
  configurable: !1,
485
485
  enumerable: !1,
486
486
  writable: !0,
487
487
  value: 0
488
- }), Object.defineProperty(D, "_debugInfo", {
488
+ }), Object.defineProperty(S, "_debugInfo", {
489
489
  configurable: !1,
490
490
  enumerable: !1,
491
491
  writable: !0,
492
492
  value: null
493
- }), Object.defineProperty(D, "_debugStack", {
493
+ }), Object.defineProperty(S, "_debugStack", {
494
494
  configurable: !1,
495
495
  enumerable: !1,
496
496
  writable: !0,
497
497
  value: R
498
- }), Object.defineProperty(D, "_debugTask", {
498
+ }), Object.defineProperty(S, "_debugTask", {
499
499
  configurable: !1,
500
500
  enumerable: !1,
501
501
  writable: !0,
502
502
  value: J
503
- }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
503
+ }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
504
504
  }
505
- function d(D, N, Z, U, R, J) {
505
+ function d(S, N, Z, U, R, J) {
506
506
  var Y = N.children;
507
507
  if (Y !== void 0)
508
508
  if (U)
509
- if (L(Y)) {
509
+ if (M(Y)) {
510
510
  for (U = 0; U < Y.length; U++)
511
511
  u(Y[U]);
512
512
  Object.freeze && Object.freeze(Y);
@@ -516,7 +516,7 @@ function V1() {
516
516
  );
517
517
  else u(Y);
518
518
  if (W.call(N, "key")) {
519
- Y = e(D);
519
+ Y = e(S);
520
520
  var H = Object.keys(N).filter(function(le) {
521
521
  return le !== "key";
522
522
  });
@@ -540,9 +540,9 @@ React keys must be passed directly to JSX without using spread:
540
540
  } else Z = N;
541
541
  return Y && a(
542
542
  Z,
543
- typeof D == "function" ? D.displayName || D.name || "Unknown" : D
543
+ typeof S == "function" ? S.displayName || S.name || "Unknown" : S
544
544
  ), c(
545
- D,
545
+ S,
546
546
  Y,
547
547
  Z,
548
548
  r(),
@@ -550,43 +550,43 @@ React keys must be passed directly to JSX without using spread:
550
550
  J
551
551
  );
552
552
  }
553
- function u(D) {
554
- f(D) ? D._store && (D._store.validated = 1) : typeof D == "object" && D !== null && D.$$typeof === O && (D._payload.status === "fulfilled" ? f(D._payload.value) && D._payload.value._store && (D._payload.value._store.validated = 1) : D._store && (D._store.validated = 1));
553
+ function u(S) {
554
+ f(S) ? S._store && (S._store.validated = 1) : typeof S == "object" && S !== null && S.$$typeof === O && (S._payload.status === "fulfilled" ? f(S._payload.value) && S._payload.value._store && (S._payload.value._store.validated = 1) : S._store && (S._store.validated = 1));
555
555
  }
556
- function f(D) {
557
- return typeof D == "object" && D !== null && D.$$typeof === h;
556
+ function f(S) {
557
+ return typeof S == "object" && S !== null && S.$$typeof === h;
558
558
  }
559
- var g = Ae, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), m = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.consumer"), B = /* @__PURE__ */ Symbol.for("react.context"), y = /* @__PURE__ */ Symbol.for("react.forward_ref"), C = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), I = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), k = /* @__PURE__ */ Symbol.for("react.client.reference"), z = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, L = Array.isArray, X = console.createTask ? console.createTask : function() {
559
+ var g = Ae, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), m = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.consumer"), B = /* @__PURE__ */ Symbol.for("react.context"), y = /* @__PURE__ */ Symbol.for("react.forward_ref"), C = /* @__PURE__ */ Symbol.for("react.suspense"), D = /* @__PURE__ */ Symbol.for("react.suspense_list"), I = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), k = /* @__PURE__ */ Symbol.for("react.client.reference"), z = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, M = Array.isArray, X = console.createTask ? console.createTask : function() {
560
560
  return null;
561
561
  };
562
562
  g = {
563
- react_stack_bottom_frame: function(D) {
564
- return D();
563
+ react_stack_bottom_frame: function(S) {
564
+ return S();
565
565
  }
566
566
  };
567
567
  var te, G = {}, _ = g.react_stack_bottom_frame.bind(
568
568
  g,
569
569
  i
570
570
  )(), V = X(n(i)), Q = {};
571
- No.Fragment = v, No.jsx = function(D, N, Z) {
571
+ No.Fragment = v, No.jsx = function(S, N, Z) {
572
572
  var U = 1e4 > z.recentlyCreatedOwnerStacks++;
573
573
  return d(
574
- D,
574
+ S,
575
575
  N,
576
576
  Z,
577
577
  !1,
578
578
  U ? Error("react-stack-top-frame") : _,
579
- U ? X(n(D)) : V
579
+ U ? X(n(S)) : V
580
580
  );
581
- }, No.jsxs = function(D, N, Z) {
581
+ }, No.jsxs = function(S, N, Z) {
582
582
  var U = 1e4 > z.recentlyCreatedOwnerStacks++;
583
583
  return d(
584
- D,
584
+ S,
585
585
  N,
586
586
  Z,
587
587
  !0,
588
588
  U ? Error("react-stack-top-frame") : _,
589
- U ? X(n(D)) : V
589
+ U ? X(n(S)) : V
590
590
  );
591
591
  };
592
592
  })()), No;
@@ -1651,14 +1651,14 @@ const ES = (e) => ({
1651
1651
  x: A,
1652
1652
  y: n
1653
1653
  }, g = Fg(r), h = Hg(g), m = await o.getDimensions(c), v = g === "y", w = v ? "top" : "left", x = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", B = i.reference[h] + i.reference[g] - f[g] - i.floating[h], y = f[g] - i.reference[g], C = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
1654
- let S = C ? C[b] : 0;
1655
- (!S || !await (o.isElement == null ? void 0 : o.isElement(C))) && (S = a.floating[b] || i.floating[h]);
1656
- const I = B / 2 - y / 2, O = S / 2 - m[h] / 2 - 1, F = uo(u[w], O), k = uo(u[x], O), z = F, W = S - m[h] - k, L = S / 2 - m[h] / 2 + I, X = cf(z, L, W), te = !l.arrow && Ks(r) != null && L !== X && i.reference[h] / 2 - (L < z ? F : k) - m[h] / 2 < 0, G = te ? L < z ? L - z : L - W : 0;
1654
+ let D = C ? C[b] : 0;
1655
+ (!D || !await (o.isElement == null ? void 0 : o.isElement(C))) && (D = a.floating[b] || i.floating[h]);
1656
+ const I = B / 2 - y / 2, O = D / 2 - m[h] / 2 - 1, F = uo(u[w], O), k = uo(u[x], O), z = F, W = D - m[h] - k, M = D / 2 - m[h] / 2 + I, X = cf(z, M, W), te = !l.arrow && Ks(r) != null && M !== X && i.reference[h] / 2 - (M < z ? F : k) - m[h] / 2 < 0, G = te ? M < z ? M - z : M - W : 0;
1657
1657
  return {
1658
1658
  [g]: f[g] + G,
1659
1659
  data: {
1660
1660
  [g]: X,
1661
- centerOffset: L - X - G,
1661
+ centerOffset: M - X - G,
1662
1662
  ...te && {
1663
1663
  alignmentOffset: G
1664
1664
  }
@@ -1692,24 +1692,24 @@ const ES = (e) => ({
1692
1692
  return {};
1693
1693
  const w = ui(r), x = Cr(a), b = ui(a) === a, B = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), y = f || (b || !m ? [Ol(a)] : vS(a)), C = h !== "none";
1694
1694
  !f && C && y.push(...BS(a, m, h, B));
1695
- const S = [a, ...y], I = await eB(t, v), O = [];
1695
+ const D = [a, ...y], I = await eB(t, v), O = [];
1696
1696
  let F = ((n = i.flip) == null ? void 0 : n.overflows) || [];
1697
1697
  if (d && O.push(I[w]), u) {
1698
- const L = mS(r, o, B);
1699
- O.push(I[L[0]], I[L[1]]);
1698
+ const M = mS(r, o, B);
1699
+ O.push(I[M[0]], I[M[1]]);
1700
1700
  }
1701
1701
  if (F = [...F, {
1702
1702
  placement: r,
1703
1703
  overflows: O
1704
- }], !O.every((L) => L <= 0)) {
1704
+ }], !O.every((M) => M <= 0)) {
1705
1705
  var k, z;
1706
- const L = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, X = S[L];
1706
+ const M = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, X = D[M];
1707
1707
  if (X && (!(u === "alignment" ? x !== Cr(X) : !1) || // We leave the current main axis only if every placement on that axis
1708
1708
  // overflows the main axis.
1709
1709
  F.every((_) => Cr(_.placement) === x ? _.overflows[0] > 0 : !0)))
1710
1710
  return {
1711
1711
  data: {
1712
- index: L,
1712
+ index: M,
1713
1713
  overflows: F
1714
1714
  },
1715
1715
  reset: {
@@ -2282,15 +2282,15 @@ function tI(e, t) {
2282
2282
  };
2283
2283
  let B = !0;
2284
2284
  function y(C) {
2285
- const S = C[0].intersectionRatio;
2286
- if (S !== l) {
2285
+ const D = C[0].intersectionRatio;
2286
+ if (D !== l) {
2287
2287
  if (!B)
2288
2288
  return o();
2289
- S ? o(!1, S) : n = setTimeout(() => {
2289
+ D ? o(!1, D) : n = setTimeout(() => {
2290
2290
  o(!1, 1e-7);
2291
2291
  }, 1e3);
2292
2292
  }
2293
- S === 1 && !aB(c, e.getBoundingClientRect()) && o(), B = !1;
2293
+ D === 1 && !aB(c, e.getBoundingClientRect()) && o(), B = !1;
2294
2294
  }
2295
2295
  try {
2296
2296
  A = new IntersectionObserver(y, {
@@ -2457,10 +2457,10 @@ function lB(e = fI) {
2457
2457
  return wc(hI).getTooltipData(e);
2458
2458
  }
2459
2459
  var Ii = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, xd = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
2460
- const pI = ({ forwardRef: e, id: t, className: A, classNameArrow: n, variant: r = "dark", anchorId: i, anchorSelect: o, place: a = "top", offset: l = 10, events: c = ["hover"], openOnClick: d = !1, positionStrategy: u = "absolute", middlewares: f, wrapper: g, delayShow: h = 0, delayHide: m = 0, float: v = !1, hidden: w = !1, noArrow: x = !1, clickable: b = !1, closeOnEsc: B = !1, closeOnScroll: y = !1, closeOnResize: C = !1, openEvents: S, closeEvents: I, globalCloseEvents: O, imperativeModeOnly: F, style: k, position: z, afterShow: W, afterHide: L, disableTooltip: X, content: te, contentWrapperRef: G, isOpen: _, defaultIsOpen: V = !1, setIsOpen: Q, previousActiveAnchor: D, activeAnchor: N, setActiveAnchor: Z, border: U, opacity: R, arrowColor: J, arrowSize: Y = 8, role: H = "tooltip" }) => {
2460
+ const pI = ({ forwardRef: e, id: t, className: A, classNameArrow: n, variant: r = "dark", anchorId: i, anchorSelect: o, place: a = "top", offset: l = 10, events: c = ["hover"], openOnClick: d = !1, positionStrategy: u = "absolute", middlewares: f, wrapper: g, delayShow: h = 0, delayHide: m = 0, float: v = !1, hidden: w = !1, noArrow: x = !1, clickable: b = !1, closeOnEsc: B = !1, closeOnScroll: y = !1, closeOnResize: C = !1, openEvents: D, closeEvents: I, globalCloseEvents: O, imperativeModeOnly: F, style: k, position: z, afterShow: W, afterHide: M, disableTooltip: X, content: te, contentWrapperRef: G, isOpen: _, defaultIsOpen: V = !1, setIsOpen: Q, previousActiveAnchor: S, activeAnchor: N, setActiveAnchor: Z, border: U, opacity: R, arrowColor: J, arrowSize: Y = 8, role: H = "tooltip" }) => {
2461
2461
  var ce;
2462
- const le = ae(null), ke = ae(null), oe = ae(null), re = ae(null), De = ae(null), [Re, Oe] = E({ tooltipStyles: {}, tooltipArrowStyles: {}, place: a }), [Pe, ht] = E(!1), [de, je] = E(!1), [ge, yt] = E(null), an = ae(!1), vA = ae(null), { anchorRefs: wA, setActiveAnchor: xA } = lB(t), Wt = ae(!1), [bA, Qn] = E([]), zA = ae(!1), WA = d || c.includes("click"), _n = WA || S?.click || S?.dblclick || S?.mousedown, XA = S ? { ...S } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
2463
- !S && WA && Object.assign(XA, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
2462
+ const le = ae(null), ke = ae(null), oe = ae(null), re = ae(null), De = ae(null), [Re, Oe] = E({ tooltipStyles: {}, tooltipArrowStyles: {}, place: a }), [Pe, ht] = E(!1), [de, je] = E(!1), [ge, yt] = E(null), an = ae(!1), vA = ae(null), { anchorRefs: wA, setActiveAnchor: xA } = lB(t), Wt = ae(!1), [bA, Qn] = E([]), zA = ae(!1), WA = d || c.includes("click"), _n = WA || D?.click || D?.dblclick || D?.mousedown, XA = D ? { ...D } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
2463
+ !D && WA && Object.assign(XA, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
2464
2464
  const BA = I ? { ...I } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
2465
2465
  !I && WA && Object.assign(BA, { mouseleave: !1, blur: !1, mouseout: !1 });
2466
2466
  const rt = O ? { ...O } : { escape: B || !1, scroll: y || !1, resize: C || !1, clickOutsideAnchor: _n || !1 };
@@ -2475,12 +2475,12 @@ const pI = ({ forwardRef: e, id: t, className: A, classNameArrow: n, variant: r
2475
2475
  j((() => {
2476
2476
  if (t) {
2477
2477
  if (Pe) {
2478
- ye(D);
2478
+ ye(S);
2479
2479
  const pe = ue(N), Ke = [.../* @__PURE__ */ new Set([...pe, t])].filter(Boolean).join(" ");
2480
2480
  N?.setAttribute("aria-describedby", Ke);
2481
2481
  } else ye(N);
2482
2482
  return () => {
2483
- ye(N), ye(D);
2483
+ ye(N), ye(S);
2484
2484
  };
2485
2485
  }
2486
2486
  function ue(pe) {
@@ -2491,7 +2491,7 @@ const pI = ({ forwardRef: e, id: t, className: A, classNameArrow: n, variant: r
2491
2491
  const Ke = ue(pe).filter(((Qt) => Qt !== t));
2492
2492
  Ke.length ? pe?.setAttribute("aria-describedby", Ke.join(" ")) : pe?.removeAttribute("aria-describedby");
2493
2493
  }
2494
- }), [N, Pe, t, D]), j((() => {
2494
+ }), [N, Pe, t, S]), j((() => {
2495
2495
  if (_ === void 0) return () => null;
2496
2496
  _ && je(!0);
2497
2497
  const ue = setTimeout((() => {
@@ -2510,7 +2510,7 @@ const pI = ({ forwardRef: e, id: t, className: A, classNameArrow: n, variant: r
2510
2510
  return Number(Ke) * (Qt === "ms" ? 1 : 1e3);
2511
2511
  })(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
2512
2512
  De.current = setTimeout((() => {
2513
- je(!1), yt(null), L?.();
2513
+ je(!1), yt(null), M?.();
2514
2514
  }), ue + 25);
2515
2515
  }
2516
2516
  }), [Pe]);
@@ -2551,7 +2551,7 @@ const pI = ({ forwardRef: e, id: t, className: A, classNameArrow: n, variant: r
2551
2551
  Ne.cancel(), pr(ue);
2552
2552
  }, Be = () => {
2553
2553
  pr.cancel(), Ne();
2554
- }, ze = M((() => {
2554
+ }, ze = L((() => {
2555
2555
  var ue, ye;
2556
2556
  const pe = (ue = ge?.position) !== null && ue !== void 0 ? ue : z;
2557
2557
  pe ? We(pe) : v ? vA.current && We(vA.current) : N?.isConnected && Zp({ place: (ye = ge?.place) !== null && ye !== void 0 ? ye : a, offset: l, elementReference: N, tooltipReference: le.current, tooltipArrowReference: ke.current, strategy: u, middlewares: f, border: U, arrowSize: Y }).then(((Ke) => {
@@ -2605,7 +2605,7 @@ const pI = ({ forwardRef: e, id: t, className: A, classNameArrow: n, variant: r
2605
2605
  }));
2606
2606
  }));
2607
2607
  };
2608
- }), [N, ze, de, wA, bA, S, I, O, WA, h, m]), j((() => {
2608
+ }), [N, ze, de, wA, bA, D, I, O, WA, h, m]), j((() => {
2609
2609
  var ue, ye;
2610
2610
  let pe = (ye = (ue = ge?.anchorSelect) !== null && ue !== void 0 ? ue : o) !== null && ye !== void 0 ? ye : "";
2611
2611
  !pe && t && (pe = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`);
@@ -2674,9 +2674,9 @@ const pI = ({ forwardRef: e, id: t, className: A, classNameArrow: n, variant: r
2674
2674
  }, close: (ue) => {
2675
2675
  ue?.delay ? Ie(ue.delay) : Ct(!1);
2676
2676
  }, activeAnchor: N, place: Re.place, isOpen: !!(de && !w && Jt && Hn) }))), de && !w && Jt ? Ae.createElement(g, { id: t, role: H, className: Ql("react-tooltip", Ii.tooltip, xd.tooltip, xd[r], A, `react-tooltip__place-${Re.place}`, Ii[Hn ? "show" : "closing"], Hn ? "react-tooltip__show" : "react-tooltip__closing", u === "fixed" && Ii.fixed, b && Ii.clickable), onTransitionEnd: (ue) => {
2677
- KA(De), Pe || ue.propertyName !== "opacity" || (je(!1), yt(null), L?.());
2677
+ KA(De), Pe || ue.propertyName !== "opacity" || (je(!1), yt(null), M?.());
2678
2678
  }, style: { ...k, ...Re.tooltipStyles, opacity: R !== void 0 && Hn ? R : void 0 }, ref: le }, Jt, Ae.createElement(g, { className: Ql("react-tooltip-arrow", Ii.arrow, xd.arrow, n, x && Ii.noArrow), style: { ...Re.tooltipArrowStyles, background: J ? `linear-gradient(to right bottom, transparent 50%, ${J} 50%)` : void 0, "--rt-arrow-size": `${Y}px` }, ref: ke })) : null;
2679
- }, mI = ({ content: e }) => Ae.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), vI = Ae.forwardRef((({ id: e, anchorId: t, anchorSelect: A, content: n, html: r, render: i, className: o, classNameArrow: a, variant: l = "dark", place: c = "top", offset: d = 10, wrapper: u = "div", children: f = null, events: g = ["hover"], openOnClick: h = !1, positionStrategy: m = "absolute", middlewares: v, delayShow: w = 0, delayHide: x = 0, float: b = !1, hidden: B = !1, noArrow: y = !1, clickable: C = !1, closeOnEsc: S = !1, closeOnScroll: I = !1, closeOnResize: O = !1, openEvents: F, closeEvents: k, globalCloseEvents: z, imperativeModeOnly: W = !1, style: L, position: X, isOpen: te, defaultIsOpen: G = !1, disableStyleInjection: _ = !1, border: V, opacity: Q, arrowColor: D, arrowSize: N, setIsOpen: Z, afterShow: U, afterHide: R, disableTooltip: J, role: Y = "tooltip" }, H) => {
2679
+ }, mI = ({ content: e }) => Ae.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), vI = Ae.forwardRef((({ id: e, anchorId: t, anchorSelect: A, content: n, html: r, render: i, className: o, classNameArrow: a, variant: l = "dark", place: c = "top", offset: d = 10, wrapper: u = "div", children: f = null, events: g = ["hover"], openOnClick: h = !1, positionStrategy: m = "absolute", middlewares: v, delayShow: w = 0, delayHide: x = 0, float: b = !1, hidden: B = !1, noArrow: y = !1, clickable: C = !1, closeOnEsc: D = !1, closeOnScroll: I = !1, closeOnResize: O = !1, openEvents: F, closeEvents: k, globalCloseEvents: z, imperativeModeOnly: W = !1, style: M, position: X, isOpen: te, defaultIsOpen: G = !1, disableStyleInjection: _ = !1, border: V, opacity: Q, arrowColor: S, arrowSize: N, setIsOpen: Z, afterShow: U, afterHide: R, disableTooltip: J, role: Y = "tooltip" }, H) => {
2680
2680
  const [ce, le] = E(n), [ke, oe] = E(r), [re, De] = E(c), [Re, Oe] = E(l), [Pe, ht] = E(d), [de, je] = E(w), [ge, yt] = E(x), [an, vA] = E(b), [wA, xA] = E(B), [Wt, bA] = E(u), [Qn, zA] = E(g), [WA, _n] = E(m), [XA, BA] = E(null), [rt, Ct] = E(null), GA = ae(null), ln = ae(_), { anchorRefs: Ie, activeAnchor: Ue } = lB(e), ve = (Ne) => Ne?.getAttributeNames().reduce(((mt, Be) => {
2681
2681
  var ze;
2682
2682
  return Be.startsWith("data-tooltip-") && (mt[Be.replace(/^data-tooltip-/, "")] = (ze = Ne?.getAttribute(Be)) !== null && ze !== void 0 ? ze : null), mt;
@@ -2771,7 +2771,7 @@ const pI = ({ forwardRef: e, id: t, className: A, classNameArrow: n, variant: r
2771
2771
  Hn.disconnect();
2772
2772
  };
2773
2773
  }), [Ie, Ue, rt, t, A]), j((() => {
2774
- L?.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), V && !_p("border", `${V}`) && console.warn(`[react-tooltip] "${V}" is not a valid \`border\`.`), L?.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), Q && !_p("opacity", `${Q}`) && console.warn(`[react-tooltip] "${Q}" is not a valid \`opacity\`.`);
2774
+ M?.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), V && !_p("border", `${V}`) && console.warn(`[react-tooltip] "${V}" is not a valid \`border\`.`), M?.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), Q && !_p("opacity", `${Q}`) && console.warn(`[react-tooltip] "${Q}" is not a valid \`opacity\`.`);
2775
2775
  }), []);
2776
2776
  let ut = f;
2777
2777
  const Me = ae(null);
@@ -2780,7 +2780,7 @@ const pI = ({ forwardRef: e, id: t, className: A, classNameArrow: n, variant: r
2780
2780
  ut = Ne ? Ae.createElement("div", { ref: Me, className: "react-tooltip-content-wrapper" }, Ne) : null;
2781
2781
  } else ce && (ut = ce);
2782
2782
  ke && (ut = Ae.createElement(mI, { content: ke }));
2783
- const pr = { forwardRef: H, id: e, anchorId: t, anchorSelect: A, className: Ql(o, XA), classNameArrow: a, content: ut, contentWrapperRef: Me, place: re, variant: Re, offset: Pe, wrapper: Wt, events: Qn, openOnClick: h, positionStrategy: WA, middlewares: v, delayShow: de, delayHide: ge, float: an, hidden: wA, noArrow: y, clickable: C, closeOnEsc: S, closeOnScroll: I, closeOnResize: O, openEvents: F, closeEvents: k, globalCloseEvents: z, imperativeModeOnly: W, style: L, position: X, isOpen: te, defaultIsOpen: G, border: V, opacity: Q, arrowColor: D, arrowSize: N, setIsOpen: Z, afterShow: U, afterHide: R, disableTooltip: J, activeAnchor: rt, previousActiveAnchor: GA.current, setActiveAnchor: (Ne) => {
2783
+ const pr = { forwardRef: H, id: e, anchorId: t, anchorSelect: A, className: Ql(o, XA), classNameArrow: a, content: ut, contentWrapperRef: Me, place: re, variant: Re, offset: Pe, wrapper: Wt, events: Qn, openOnClick: h, positionStrategy: WA, middlewares: v, delayShow: de, delayHide: ge, float: an, hidden: wA, noArrow: y, clickable: C, closeOnEsc: D, closeOnScroll: I, closeOnResize: O, openEvents: F, closeEvents: k, globalCloseEvents: z, imperativeModeOnly: W, style: M, position: X, isOpen: te, defaultIsOpen: G, border: V, opacity: Q, arrowColor: S, arrowSize: N, setIsOpen: Z, afterShow: U, afterHide: R, disableTooltip: J, activeAnchor: rt, previousActiveAnchor: GA.current, setActiveAnchor: (Ne) => {
2784
2784
  Ct(((mt) => (Ne?.isSameNode(mt) || (GA.current = mt), Ne)));
2785
2785
  }, role: Y };
2786
2786
  return Ae.createElement(pI, { ...pr });
@@ -3350,7 +3350,7 @@ function xB() {
3350
3350
  let B, y = "";
3351
3351
  const {
3352
3352
  implementation: C,
3353
- createNodeIterator: S,
3353
+ createNodeIterator: D,
3354
3354
  createDocumentFragment: I,
3355
3355
  getElementsByTagName: O
3356
3356
  } = A, {
@@ -3361,7 +3361,7 @@ function xB() {
3361
3361
  const {
3362
3362
  MUSTACHE_EXPR: z,
3363
3363
  ERB_EXPR: W,
3364
- TMPLIT_EXPR: L,
3364
+ TMPLIT_EXPR: M,
3365
3365
  DATA_ATTR: X,
3366
3366
  ARIA_ATTR: te,
3367
3367
  IS_SCRIPT_OR_DATA: G,
@@ -3370,7 +3370,7 @@ function xB() {
3370
3370
  } = dm;
3371
3371
  let {
3372
3372
  IS_ALLOWED_URI: Q
3373
- } = dm, D = null;
3373
+ } = dm, S = null;
3374
3374
  const N = Ve({}, [...sm, ...Cd, ...Ed, ...Dd, ...am]);
3375
3375
  let Z = null;
3376
3376
  const U = Ve({}, [...lm, ...Sd, ...cm, ...xa]);
@@ -3429,7 +3429,7 @@ function xB() {
3429
3429
  let P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3430
3430
  if (!(mt && mt === P)) {
3431
3431
  if ((!P || typeof P != "object") && (P = {}), P = jn(P), ut = // eslint-disable-next-line unicorn/prefer-includes
3432
- Me.indexOf(P.PARSER_MEDIA_TYPE) === -1 ? pr : P.PARSER_MEDIA_TYPE, Ne = ut === "application/xhtml+xml" ? Bd : cl, D = hn(P, "ALLOWED_TAGS") ? Ve({}, P.ALLOWED_TAGS, Ne) : N, Z = hn(P, "ALLOWED_ATTR") ? Ve({}, P.ALLOWED_ATTR, Ne) : U, ln = hn(P, "ALLOWED_NAMESPACES") ? Ve({}, P.ALLOWED_NAMESPACES, Bd) : Ie, WA = hn(P, "ADD_URI_SAFE_ATTR") ? Ve(jn(_n), P.ADD_URI_SAFE_ATTR, Ne) : _n, Qn = hn(P, "ADD_DATA_URI_TAGS") ? Ve(jn(zA), P.ADD_DATA_URI_TAGS, Ne) : zA, Wt = hn(P, "FORBID_CONTENTS") ? Ve({}, P.FORBID_CONTENTS, Ne) : bA, J = hn(P, "FORBID_TAGS") ? Ve({}, P.FORBID_TAGS, Ne) : jn({}), Y = hn(P, "FORBID_ATTR") ? Ve({}, P.FORBID_ATTR, Ne) : jn({}), xA = hn(P, "USE_PROFILES") ? P.USE_PROFILES : !1, ce = P.ALLOW_ARIA_ATTR !== !1, le = P.ALLOW_DATA_ATTR !== !1, ke = P.ALLOW_UNKNOWN_PROTOCOLS || !1, oe = P.ALLOW_SELF_CLOSE_IN_ATTR !== !1, re = P.SAFE_FOR_TEMPLATES || !1, De = P.SAFE_FOR_XML !== !1, Re = P.WHOLE_DOCUMENT || !1, ht = P.RETURN_DOM || !1, de = P.RETURN_DOM_FRAGMENT || !1, je = P.RETURN_TRUSTED_TYPE || !1, Pe = P.FORCE_BODY || !1, ge = P.SANITIZE_DOM !== !1, yt = P.SANITIZE_NAMED_PROPS || !1, vA = P.KEEP_CONTENT !== !1, wA = P.IN_PLACE || !1, Q = P.ALLOWED_URI_REGEXP || vB, Ct = P.NAMESPACE || rt, Ue = P.MATHML_TEXT_INTEGRATION_POINTS || Ue, ve = P.HTML_INTEGRATION_POINTS || ve, R = P.CUSTOM_ELEMENT_HANDLING || {}, P.CUSTOM_ELEMENT_HANDLING && ze(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = P.CUSTOM_ELEMENT_HANDLING.tagNameCheck), P.CUSTOM_ELEMENT_HANDLING && ze(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), P.CUSTOM_ELEMENT_HANDLING && typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), re && (le = !1), de && (ht = !0), xA && (D = Ve({}, am), Z = [], xA.html === !0 && (Ve(D, sm), Ve(Z, lm)), xA.svg === !0 && (Ve(D, Cd), Ve(Z, Sd), Ve(Z, xa)), xA.svgFilters === !0 && (Ve(D, Ed), Ve(Z, Sd), Ve(Z, xa)), xA.mathMl === !0 && (Ve(D, Dd), Ve(Z, cm), Ve(Z, xa))), P.ADD_TAGS && (typeof P.ADD_TAGS == "function" ? H.tagCheck = P.ADD_TAGS : (D === N && (D = jn(D)), Ve(D, P.ADD_TAGS, Ne))), P.ADD_ATTR && (typeof P.ADD_ATTR == "function" ? H.attributeCheck = P.ADD_ATTR : (Z === U && (Z = jn(Z)), Ve(Z, P.ADD_ATTR, Ne))), P.ADD_URI_SAFE_ATTR && Ve(WA, P.ADD_URI_SAFE_ATTR, Ne), P.FORBID_CONTENTS && (Wt === bA && (Wt = jn(Wt)), Ve(Wt, P.FORBID_CONTENTS, Ne)), P.ADD_FORBID_CONTENTS && (Wt === bA && (Wt = jn(Wt)), Ve(Wt, P.ADD_FORBID_CONTENTS, Ne)), vA && (D["#text"] = !0), Re && Ve(D, ["html", "head", "body"]), D.table && (Ve(D, ["tbody"]), delete J.tbody), P.TRUSTED_TYPES_POLICY) {
3432
+ Me.indexOf(P.PARSER_MEDIA_TYPE) === -1 ? pr : P.PARSER_MEDIA_TYPE, Ne = ut === "application/xhtml+xml" ? Bd : cl, S = hn(P, "ALLOWED_TAGS") ? Ve({}, P.ALLOWED_TAGS, Ne) : N, Z = hn(P, "ALLOWED_ATTR") ? Ve({}, P.ALLOWED_ATTR, Ne) : U, ln = hn(P, "ALLOWED_NAMESPACES") ? Ve({}, P.ALLOWED_NAMESPACES, Bd) : Ie, WA = hn(P, "ADD_URI_SAFE_ATTR") ? Ve(jn(_n), P.ADD_URI_SAFE_ATTR, Ne) : _n, Qn = hn(P, "ADD_DATA_URI_TAGS") ? Ve(jn(zA), P.ADD_DATA_URI_TAGS, Ne) : zA, Wt = hn(P, "FORBID_CONTENTS") ? Ve({}, P.FORBID_CONTENTS, Ne) : bA, J = hn(P, "FORBID_TAGS") ? Ve({}, P.FORBID_TAGS, Ne) : jn({}), Y = hn(P, "FORBID_ATTR") ? Ve({}, P.FORBID_ATTR, Ne) : jn({}), xA = hn(P, "USE_PROFILES") ? P.USE_PROFILES : !1, ce = P.ALLOW_ARIA_ATTR !== !1, le = P.ALLOW_DATA_ATTR !== !1, ke = P.ALLOW_UNKNOWN_PROTOCOLS || !1, oe = P.ALLOW_SELF_CLOSE_IN_ATTR !== !1, re = P.SAFE_FOR_TEMPLATES || !1, De = P.SAFE_FOR_XML !== !1, Re = P.WHOLE_DOCUMENT || !1, ht = P.RETURN_DOM || !1, de = P.RETURN_DOM_FRAGMENT || !1, je = P.RETURN_TRUSTED_TYPE || !1, Pe = P.FORCE_BODY || !1, ge = P.SANITIZE_DOM !== !1, yt = P.SANITIZE_NAMED_PROPS || !1, vA = P.KEEP_CONTENT !== !1, wA = P.IN_PLACE || !1, Q = P.ALLOWED_URI_REGEXP || vB, Ct = P.NAMESPACE || rt, Ue = P.MATHML_TEXT_INTEGRATION_POINTS || Ue, ve = P.HTML_INTEGRATION_POINTS || ve, R = P.CUSTOM_ELEMENT_HANDLING || {}, P.CUSTOM_ELEMENT_HANDLING && ze(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = P.CUSTOM_ELEMENT_HANDLING.tagNameCheck), P.CUSTOM_ELEMENT_HANDLING && ze(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), P.CUSTOM_ELEMENT_HANDLING && typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), re && (le = !1), de && (ht = !0), xA && (S = Ve({}, am), Z = [], xA.html === !0 && (Ve(S, sm), Ve(Z, lm)), xA.svg === !0 && (Ve(S, Cd), Ve(Z, Sd), Ve(Z, xa)), xA.svgFilters === !0 && (Ve(S, Ed), Ve(Z, Sd), Ve(Z, xa)), xA.mathMl === !0 && (Ve(S, Dd), Ve(Z, cm), Ve(Z, xa))), P.ADD_TAGS && (typeof P.ADD_TAGS == "function" ? H.tagCheck = P.ADD_TAGS : (S === N && (S = jn(S)), Ve(S, P.ADD_TAGS, Ne))), P.ADD_ATTR && (typeof P.ADD_ATTR == "function" ? H.attributeCheck = P.ADD_ATTR : (Z === U && (Z = jn(Z)), Ve(Z, P.ADD_ATTR, Ne))), P.ADD_URI_SAFE_ATTR && Ve(WA, P.ADD_URI_SAFE_ATTR, Ne), P.FORBID_CONTENTS && (Wt === bA && (Wt = jn(Wt)), Ve(Wt, P.FORBID_CONTENTS, Ne)), P.ADD_FORBID_CONTENTS && (Wt === bA && (Wt = jn(Wt)), Ve(Wt, P.ADD_FORBID_CONTENTS, Ne)), vA && (S["#text"] = !0), Re && Ve(S, ["html", "head", "body"]), S.table && (Ve(S, ["tbody"]), delete J.tbody), P.TRUSTED_TYPES_POLICY) {
3433
3433
  if (typeof P.TRUSTED_TYPES_POLICY.createHTML != "function")
3434
3434
  throw zo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
3435
3435
  if (typeof P.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -3504,7 +3504,7 @@ function xB() {
3504
3504
  const ft = se.body || se.documentElement;
3505
3505
  return P && me && ft.insertBefore(A.createTextNode(me), ft.childNodes[0] || null), Ct === rt ? O.call(se, Re ? "html" : "body")[0] : Re ? se.documentElement : ft;
3506
3506
  }, QA = function(P) {
3507
- return S.call(
3507
+ return D.call(
3508
3508
  P.ownerDocument || P,
3509
3509
  P,
3510
3510
  // eslint-disable-next-line no-bitwise
@@ -3528,10 +3528,10 @@ function xB() {
3528
3528
  const me = Ne(P.nodeName);
3529
3529
  if (St(k.uponSanitizeElement, P, {
3530
3530
  tagName: me,
3531
- allowedTags: D
3531
+ allowedTags: S
3532
3532
  }), De && P.hasChildNodes() && !Xt(P.firstElementChild) && cA(/<[/\w!]/g, P.innerHTML) && cA(/<[/\w!]/g, P.textContent) || P.nodeType === Xo.progressingInstruction || De && P.nodeType === Xo.comment && cA(/<[/\w]/g, P.data))
3533
3533
  return pe(P), !0;
3534
- if (!(H.tagCheck instanceof Function && H.tagCheck(me)) && (!D[me] || J[me])) {
3534
+ if (!(H.tagCheck instanceof Function && H.tagCheck(me)) && (!S[me] || J[me])) {
3535
3535
  if (!J[me] && ca(me) && (R.tagNameCheck instanceof RegExp && cA(R.tagNameCheck, me) || R.tagNameCheck instanceof Function && R.tagNameCheck(me)))
3536
3536
  return !1;
3537
3537
  if (vA && !Wt[me]) {
@@ -3546,7 +3546,7 @@ function xB() {
3546
3546
  }
3547
3547
  return pe(P), !0;
3548
3548
  }
3549
- return P instanceof l && !ye(P) || (me === "noscript" || me === "noembed" || me === "noframes") && cA(/<\/no(script|embed|frames)/i, P.innerHTML) ? (pe(P), !0) : (re && P.nodeType === Xo.text && (se = P.textContent, wa([z, W, L], (Ce) => {
3549
+ return P instanceof l && !ye(P) || (me === "noscript" || me === "noembed" || me === "noframes") && cA(/<\/no(script|embed|frames)/i, P.innerHTML) ? (pe(P), !0) : (re && P.nodeType === Xo.text && (se = P.textContent, wa([z, W, M], (Ce) => {
3550
3550
  se = Uo(se, Ce, " ");
3551
3551
  }), P.textContent !== se && (ko(t.removed, {
3552
3552
  element: P.cloneNode()
@@ -3622,7 +3622,7 @@ function xB() {
3622
3622
  Ke(vt, P);
3623
3623
  continue;
3624
3624
  }
3625
- re && wa([z, W, L], (Fp) => {
3625
+ re && wa([z, W, M], (Fp) => {
3626
3626
  qt = Uo(qt, Fp, " ");
3627
3627
  });
3628
3628
  const Hp = Ne(P.nodeName);
@@ -3669,7 +3669,7 @@ function xB() {
3669
3669
  if (Oe || Jt(P), t.removed = [], typeof we == "string" && (wA = !1), wA) {
3670
3670
  if (we.nodeName) {
3671
3671
  const cn = Ne(we.nodeName);
3672
- if (!D[cn] || J[cn])
3672
+ if (!S[cn] || J[cn])
3673
3673
  throw zo("root node is forbidden and cannot be sanitized in-place");
3674
3674
  }
3675
3675
  } else if (we instanceof a)
@@ -3696,8 +3696,8 @@ function xB() {
3696
3696
  return (Z.shadowroot || Z.shadowrootmode) && (ft = F.call(n, ft, !0)), ft;
3697
3697
  }
3698
3698
  let jt = Re ? se.outerHTML : se.innerHTML;
3699
- return Re && D["!doctype"] && se.ownerDocument && se.ownerDocument.doctype && se.ownerDocument.doctype.name && cA(wB, se.ownerDocument.doctype.name) && (jt = "<!DOCTYPE " + se.ownerDocument.doctype.name + `>
3700
- ` + jt), re && wa([z, W, L], (cn) => {
3699
+ return Re && S["!doctype"] && se.ownerDocument && se.ownerDocument.doctype && se.ownerDocument.doctype.name && cA(wB, se.ownerDocument.doctype.name) && (jt = "<!DOCTYPE " + se.ownerDocument.doctype.name + `>
3700
+ ` + jt), re && wa([z, W, M], (cn) => {
3701
3701
  jt = Uo(jt, cn, " ");
3702
3702
  }), B && je ? B.createHTML(jt) : jt;
3703
3703
  }, t.setConfig = function() {
@@ -6562,7 +6562,7 @@ const UA = () => {
6562
6562
  e.semiTransparentClosed && !b && o && (x.background = "black20", x.border = "black20");
6563
6563
  const C = (O) => {
6564
6564
  O.stopPropagation(), B((F) => (F ? h?.() : v?.(), !F));
6565
- }, S = $(() => nn(), []), I = /* @__PURE__ */ s.jsxs(
6565
+ }, D = $(() => nn(), []), I = /* @__PURE__ */ s.jsxs(
6566
6566
  Xg,
6567
6567
  {
6568
6568
  onClickAway: () => {
@@ -6600,7 +6600,7 @@ const UA = () => {
6600
6600
  variant: i,
6601
6601
  disabled: f,
6602
6602
  "aria-expanded": b,
6603
- "aria-controls": S,
6603
+ "aria-controls": D,
6604
6604
  srOnly: c,
6605
6605
  color: r
6606
6606
  }
@@ -6620,7 +6620,7 @@ const UA = () => {
6620
6620
  disabled: f,
6621
6621
  color: r,
6622
6622
  "aria-expanded": b,
6623
- "aria-controls": S,
6623
+ "aria-controls": D,
6624
6624
  $darker: o && b,
6625
6625
  srOnly: c,
6626
6626
  label: o ? void 0 : c,
@@ -6628,7 +6628,7 @@ const UA = () => {
6628
6628
  $width: e.width
6629
6629
  }
6630
6630
  ) }) }),
6631
- /* @__PURE__ */ s.jsx($T, { id: S, children: b && /* @__PURE__ */ s.jsx(
6631
+ /* @__PURE__ */ s.jsx($T, { id: D, children: b && /* @__PURE__ */ s.jsx(
6632
6632
  Oo,
6633
6633
  {
6634
6634
  condition: o,
@@ -6733,25 +6733,25 @@ const UA = () => {
6733
6733
  description: c,
6734
6734
  onError: d
6735
6735
  }) => {
6736
- const u = q(), f = lt(), g = UA(), [h, m] = E(!1), v = M(() => {
6736
+ const u = q(), f = lt(), g = UA(), [h, m] = E(!1), v = L(() => {
6737
6737
  t && (m(!0), i.drive.logout({ id: t.id, service: l }).then(() => {
6738
6738
  m(!1), A();
6739
6739
  }).catch((b) => {
6740
6740
  d && !g.signal.aborted && (d(b), m(!1));
6741
6741
  }));
6742
- }, [g.signal.aborted, t, i.drive, d, A, l]), w = M(() => {
6742
+ }, [g.signal.aborted, t, i.drive, d, A, l]), w = L(() => {
6743
6743
  const b = window.open(
6744
6744
  "/?action=drive_connect&name=" + l,
6745
6745
  "",
6746
6746
  "menubar=no,status=no,scrollbars=no,menubar=no,width=500,height=700"
6747
6747
  ), B = setInterval(() => {
6748
6748
  const y = b?.document.body.querySelector("div")?.getAttribute("data-drive-account-id"), C = b?.document.body.querySelector("div")?.getAttribute("data-drive-is-personal") === "true";
6749
- b && y && (C ? a(u.formatMessage({ id: "DRIVE_MS_Error_Personal_Account" })) : i.drive.getAccount({ service: l, id: y }, { signal: g.signal }).then((S) => {
6750
- n(S.result.account);
6749
+ b && y && (C ? a(u.formatMessage({ id: "DRIVE_MS_Error_Personal_Account" })) : i.drive.getAccount({ service: l, id: y }, { signal: g.signal }).then((D) => {
6750
+ n(D.result.account);
6751
6751
  }), clearInterval(B), b.close());
6752
6752
  }, 1e3);
6753
6753
  return () => clearInterval(B);
6754
- }, [g.signal, i.drive, u, n, a, l]), x = M(
6754
+ }, [g.signal, i.drive, u, n, a, l]), x = L(
6755
6755
  (b) => {
6756
6756
  m(!0), i.drive.setDefaultAccount(
6757
6757
  {
@@ -7144,7 +7144,7 @@ const VB = (e, t) => {
7144
7144
  const [n, r] = E({
7145
7145
  width: 0,
7146
7146
  height: 0
7147
- }), [i, o] = E(!0), [a, l] = E(!1), c = M(() => {
7147
+ }), [i, o] = E(!0), [a, l] = E(!1), c = L(() => {
7148
7148
  o(!0), r({ height: 0, width: 0 });
7149
7149
  const d = new Image();
7150
7150
  d.src = e, d.onload = () => {
@@ -7333,11 +7333,11 @@ const VB = (e, t) => {
7333
7333
  onClick: d,
7334
7334
  id: u,
7335
7335
  path: f
7336
- } = e, [g, h] = E(!1), [m, v] = E(!1), [w, x] = E([]), [b, B] = E(), { onError: y } = e, C = M(
7337
- (S) => {
7336
+ } = e, [g, h] = E(!1), [m, v] = E(!1), [w, x] = E([]), [b, B] = E(), { onError: y } = e, C = L(
7337
+ (D) => {
7338
7338
  v(!0), e.handlers.drive.dropboxDocuments(
7339
7339
  {
7340
- documentParams: { path_lower: f, query: S },
7340
+ documentParams: { path_lower: f, query: D },
7341
7341
  id: u
7342
7342
  },
7343
7343
  { signal: t.signal }
@@ -7368,18 +7368,18 @@ const VB = (e, t) => {
7368
7368
  ) }),
7369
7369
  m && /* @__PURE__ */ s.jsx(MQ, { children: /* @__PURE__ */ s.jsx(Ge, { size: "m" }) }),
7370
7370
  !m && w.length === 0 && /* @__PURE__ */ s.jsx(Hc, {}),
7371
- !m && w.length !== 0 && w.sort((S, I) => I.type.localeCompare(S.type)).map((S) => /* @__PURE__ */ s.jsx(
7371
+ !m && w.length !== 0 && w.sort((D, I) => I.type.localeCompare(D.type)).map((D) => /* @__PURE__ */ s.jsx(
7372
7372
  Zg,
7373
7373
  {
7374
- entity: S,
7374
+ entity: D,
7375
7375
  initialFolderColor: n,
7376
7376
  useNavigation: r,
7377
7377
  onSelect: o,
7378
7378
  onSelectDocument: a,
7379
7379
  onSelectMultiDocument: l,
7380
- onClick: () => d(S)
7380
+ onClick: () => d(D)
7381
7381
  },
7382
- S.id
7382
+ D.id
7383
7383
  ))
7384
7384
  ] });
7385
7385
  }, qB = ({
@@ -7397,7 +7397,7 @@ const VB = (e, t) => {
7397
7397
  onLogin: u,
7398
7398
  currentAccount: f
7399
7399
  }) => {
7400
- const g = q(), h = UA(), [m, v] = E([]), [w, x] = E(), [b, B] = E([]), [y, C] = E(f), [S, I] = E(), [O, F] = E(!1), [k, z] = E(!0), [W, L] = E("");
7400
+ const g = q(), h = UA(), [m, v] = E([]), [w, x] = E(), [b, B] = E([]), [y, C] = E(f), [D, I] = E(), [O, F] = E(!1), [k, z] = E(!0), [W, M] = E("");
7401
7401
  j(() => {
7402
7402
  a && a(b);
7403
7403
  }, [b, a]), j(() => {
@@ -7410,9 +7410,9 @@ const VB = (e, t) => {
7410
7410
  }
7411
7411
  ]);
7412
7412
  }, [e]), j(() => {
7413
- L(m.at(-1)?.path ?? "");
7413
+ M(m.at(-1)?.path ?? "");
7414
7414
  }, [m]);
7415
- const X = M(
7415
+ const X = L(
7416
7416
  (G) => {
7417
7417
  !c.drive.listAccount || !c.drive.checkAccountToken || !c.drive.isAccountLogged || (z(!0), F(!1), v([]), B([]), d && c.drive.listAccount(Go, { signal: h.signal }).then((_) => {
7418
7418
  if (I(_.result), _.result.length > 0) {
@@ -7420,8 +7420,8 @@ const VB = (e, t) => {
7420
7420
  C(V), c.drive.checkAccountToken(Go, { signal: h.signal }).then((Q) => {
7421
7421
  Q.result ? c.drive.isAccountLogged(Go, V.id, {
7422
7422
  signal: h.signal
7423
- }).then((D) => {
7424
- D.result && (F(D.result), u && u(V));
7423
+ }).then((S) => {
7424
+ S.result && (F(S.result), u && u(V));
7425
7425
  }).catch(() => {
7426
7426
  h.signal.aborted || F(!1);
7427
7427
  }).finally(() => {
@@ -7435,7 +7435,7 @@ const VB = (e, t) => {
7435
7435
  }));
7436
7436
  },
7437
7437
  [h.signal, d, c.drive, l, u]
7438
- ), te = M(
7438
+ ), te = L(
7439
7439
  (G) => {
7440
7440
  z(!1), l && l(G);
7441
7441
  },
@@ -7448,7 +7448,7 @@ const VB = (e, t) => {
7448
7448
  kB,
7449
7449
  {
7450
7450
  activeAccount: y,
7451
- accounts: S,
7451
+ accounts: D,
7452
7452
  onLogout: X,
7453
7453
  onLogin: X,
7454
7454
  isLogged: O,
@@ -7474,7 +7474,7 @@ const VB = (e, t) => {
7474
7474
  m.map((G, _) => /* @__PURE__ */ s.jsxs(
7475
7475
  Pl,
7476
7476
  {
7477
- onClick: () => v((V) => V.filter((Q, D) => D <= _)),
7477
+ onClick: () => v((V) => V.filter((Q, S) => S <= _)),
7478
7478
  children: [
7479
7479
  G.title,
7480
7480
  _ < m.length - 1 && /* @__PURE__ */ s.jsx(ie, { name: "icon-angle-right", size: 12 })
@@ -7500,7 +7500,7 @@ const VB = (e, t) => {
7500
7500
  o && o(G, w);
7501
7501
  } : void 0,
7502
7502
  onClick: (G) => {
7503
- x(G), L(G._extend.path), v([
7503
+ x(G), M(G._extend.path), v([
7504
7504
  ...m,
7505
7505
  { name: "documents", title: G.title, id: G.id, path: G._extend.path }
7506
7506
  ]);
@@ -7532,7 +7532,7 @@ const VB = (e, t) => {
7532
7532
  onError: i,
7533
7533
  id: o
7534
7534
  }) => {
7535
- const a = q(), l = lt(), c = UA(), [d, u] = E(""), [f, g] = E("memberOf"), [h, m] = E(!1), [v, w] = E([]), x = M(
7535
+ const a = q(), l = lt(), c = UA(), [d, u] = E(""), [f, g] = E("memberOf"), [h, m] = E(!1), [v, w] = E([]), x = L(
7536
7536
  (b, B) => {
7537
7537
  m(!0), r.drive.groups({ query: b, filter: B, id: o }, { signal: c.signal }).then((y) => {
7538
7538
  w(y.result), m(!1);
@@ -7613,11 +7613,11 @@ const VB = (e, t) => {
7613
7613
  useFilter: d,
7614
7614
  onClick: u,
7615
7615
  id: f
7616
- } = e, [g, h] = E(!1), [m, v] = E(!1), [w, x] = E([]), [b, B] = E(), { onError: y } = e, C = M(
7617
- (S) => {
7616
+ } = e, [g, h] = E(!1), [m, v] = E(!1), [w, x] = E([]), [b, B] = E(), { onError: y } = e, C = L(
7617
+ (D) => {
7618
7618
  v(!0), e.handlers.drive.msDocuments(
7619
7619
  {
7620
- documentParams: { ...n, query: S },
7620
+ documentParams: { ...n, query: D },
7621
7621
  id: f
7622
7622
  },
7623
7623
  { signal: t.signal }
@@ -7648,18 +7648,18 @@ const VB = (e, t) => {
7648
7648
  ) }),
7649
7649
  m && /* @__PURE__ */ s.jsx(_g, { children: /* @__PURE__ */ s.jsx(Ge, { size: "m" }) }),
7650
7650
  !m && w.length === 0 && /* @__PURE__ */ s.jsx(Hc, {}),
7651
- !m && w.length !== 0 && w.sort((S, I) => I.type.localeCompare(S.type)).map((S) => /* @__PURE__ */ s.jsx(
7651
+ !m && w.length !== 0 && w.sort((D, I) => I.type.localeCompare(D.type)).map((D) => /* @__PURE__ */ s.jsx(
7652
7652
  Zg,
7653
7653
  {
7654
- entity: S,
7654
+ entity: D,
7655
7655
  initialFolderColor: r,
7656
7656
  useNavigation: i,
7657
7657
  onSelect: a,
7658
7658
  onSelectDocument: l,
7659
7659
  onSelectMultiDocument: c,
7660
- onClick: () => u(S)
7660
+ onClick: () => u(D)
7661
7661
  },
7662
- S.id
7662
+ D.id
7663
7663
  ))
7664
7664
  ] });
7665
7665
  };
@@ -7731,19 +7731,19 @@ const VQ = ({
7731
7731
  onLogin: f,
7732
7732
  currentAccount: g
7733
7733
  }) => {
7734
- const h = q(), m = UA(), [v, w] = E([]), [x, b] = E(), [B, y] = E(), [C, S] = E(), [I, O] = E([]), [F, k] = E(g), [z, W] = E(), [L, X] = E(!1), [te, G] = E(!0);
7734
+ const h = q(), m = UA(), [v, w] = E([]), [x, b] = E(), [B, y] = E(), [C, D] = E(), [I, O] = E([]), [F, k] = E(g), [z, W] = E(), [M, X] = E(!1), [te, G] = E(!0);
7735
7735
  j(() => {
7736
7736
  const Q = e === void 0 ? { ...JQ } : { ...e };
7737
- v.forEach((D) => {
7738
- switch (D.name) {
7737
+ v.forEach((S) => {
7738
+ switch (S.name) {
7739
7739
  case "groups":
7740
7740
  Q.msTenant = "groups";
7741
7741
  break;
7742
7742
  case "group":
7743
- Q.msId = D.id, Q.idFolder = "root";
7743
+ Q.msId = S.id, Q.idFolder = "root";
7744
7744
  break;
7745
7745
  case "documents":
7746
- Q.idFolder = D.id;
7746
+ Q.idFolder = S.id;
7747
7747
  break;
7748
7748
  case "me":
7749
7749
  Q.msTenant = "me", Q.idFolder = "root";
@@ -7765,11 +7765,11 @@ const VQ = ({
7765
7765
  }, [t]), j(() => {
7766
7766
  b(v.at(-1));
7767
7767
  }, [v]);
7768
- const _ = M(
7768
+ const _ = L(
7769
7769
  (Q) => {
7770
- !d.drive.listAccount || !d.drive.checkAccountToken || !d.drive.isAccountLogged || (G(!0), X(!1), w([]), O([]), u && d.drive.listAccount(ba, { signal: m.signal }).then((D) => {
7771
- if (W(D.result), D.result.length > 0) {
7772
- const N = (Q ? D.result.find((Z) => Z.id === Q.id) : D.result.find((Z) => Z.default)) ?? D.result[0];
7770
+ !d.drive.listAccount || !d.drive.checkAccountToken || !d.drive.isAccountLogged || (G(!0), X(!1), w([]), O([]), u && d.drive.listAccount(ba, { signal: m.signal }).then((S) => {
7771
+ if (W(S.result), S.result.length > 0) {
7772
+ const N = (Q ? S.result.find((Z) => Z.id === Q.id) : S.result.find((Z) => Z.default)) ?? S.result[0];
7773
7773
  k(N), d.drive.checkAccountToken(ba, { signal: m.signal }).then((Z) => {
7774
7774
  Z.result ? d.drive.isAccountLogged(ba, N.id, {
7775
7775
  signal: m.signal
@@ -7783,12 +7783,12 @@ const VQ = ({
7783
7783
  });
7784
7784
  } else
7785
7785
  k(void 0), X(!1), G(!1);
7786
- }).catch((D) => {
7787
- m.signal.aborted || (c && c(D.errorMsg), G(!1));
7786
+ }).catch((S) => {
7787
+ m.signal.aborted || (c && c(S.errorMsg), G(!1));
7788
7788
  }));
7789
7789
  },
7790
7790
  [m.signal, u, d.drive, c, f]
7791
- ), V = M(
7791
+ ), V = L(
7792
7792
  (Q) => {
7793
7793
  G(!1), c && c(Q);
7794
7794
  },
@@ -7804,10 +7804,10 @@ const VQ = ({
7804
7804
  accounts: z,
7805
7805
  onLogout: _,
7806
7806
  onLogin: _,
7807
- isLogged: L,
7807
+ isLogged: M,
7808
7808
  onSetDefaultAccount: (Q) => {
7809
- k((D) => D && { ...D, default: !0 }), W(
7810
- (D) => D && D.map(
7809
+ k((S) => S && { ...S, default: !0 }), W(
7810
+ (S) => S && S.map(
7811
7811
  (N) => N.id === Q.id ? { ...N, default: !0 } : { ...N, default: !1 }
7812
7812
  )
7813
7813
  );
@@ -7819,22 +7819,22 @@ const VQ = ({
7819
7819
  onError: c
7820
7820
  }
7821
7821
  ),
7822
- (!u || L) && F && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7822
+ (!u || M) && F && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7823
7823
  /* @__PURE__ */ s.jsxs(zB, { children: [
7824
7824
  i && v.length > 0 && /* @__PURE__ */ s.jsxs(Pl, { onClick: () => w([]), children: [
7825
7825
  /* @__PURE__ */ s.jsx("div", { children: h.formatMessage({ id: "DRIVE_Root" }) }),
7826
7826
  /* @__PURE__ */ s.jsx(ie, { name: "icon-angle-right", size: 12 })
7827
7827
  ] }),
7828
- v.map((Q, D) => /* @__PURE__ */ s.jsxs(
7828
+ v.map((Q, S) => /* @__PURE__ */ s.jsxs(
7829
7829
  Pl,
7830
7830
  {
7831
- onClick: () => w((N) => N.filter((Z, U) => U <= D)),
7831
+ onClick: () => w((N) => N.filter((Z, U) => U <= S)),
7832
7832
  children: [
7833
7833
  Q.title,
7834
- D < v.length - 1 && /* @__PURE__ */ s.jsx(ie, { name: "icon-angle-right", size: 12 })
7834
+ S < v.length - 1 && /* @__PURE__ */ s.jsx(ie, { name: "icon-angle-right", size: 12 })
7835
7835
  ]
7836
7836
  },
7837
- D
7837
+ S
7838
7838
  ))
7839
7839
  ] }),
7840
7840
  x === void 0 && /* @__PURE__ */ s.jsx(
@@ -7866,7 +7866,7 @@ const VQ = ({
7866
7866
  } : void 0,
7867
7867
  useNavigation: i,
7868
7868
  onClick: (Q) => {
7869
- S(Q), w([
7869
+ D(Q), w([
7870
7870
  ...v,
7871
7871
  { name: "group", title: Q.title, id: Q.id }
7872
7872
  ]);
@@ -7887,16 +7887,16 @@ const VQ = ({
7887
7887
  o(Q, { ...B, idFolder: Q.id });
7888
7888
  } : void 0,
7889
7889
  onSelectMultiDocument: l ? (Q) => {
7890
- const D = I.find((N) => N.id === Q.id);
7890
+ const S = I.find((N) => N.id === Q.id);
7891
7891
  O(
7892
- D ? I.filter((N) => N.id !== Q.id) : [...I, Q]
7892
+ S ? I.filter((N) => N.id !== Q.id) : [...I, Q]
7893
7893
  );
7894
7894
  } : void 0,
7895
7895
  onSelectDocument: a ? (Q) => {
7896
7896
  a && B && a(Q, C, B);
7897
7897
  } : void 0,
7898
7898
  onClick: (Q) => {
7899
- S(Q), w([
7899
+ D(Q), w([
7900
7900
  ...v,
7901
7901
  { name: "documents", title: Q.title, id: Q.id }
7902
7902
  ]);
@@ -8047,7 +8047,7 @@ const VQ = ({
8047
8047
  document.removeEventListener("keydown", o);
8048
8048
  };
8049
8049
  }, [A, e.id]);
8050
- const r = M(() => n(!0), []), i = M(() => n(!1), []);
8050
+ const r = L(() => n(!0), []), i = L(() => n(!1), []);
8051
8051
  return /* @__PURE__ */ s.jsxs(_Q, { children: [
8052
8052
  /* @__PURE__ */ s.jsx("input", { ...e, type: "checkbox", ref: t, tabIndex: -1 }),
8053
8053
  /* @__PURE__ */ s.jsx("span", { onFocus: r, onBlur: i, tabIndex: 0, role: "checkbox" })
@@ -8218,10 +8218,10 @@ const VQ = ({
8218
8218
  j(() => {
8219
8219
  o(t.options.length === 1 && t.valueTypeIsBoolean);
8220
8220
  }, [t.options.length, t.valueTypeIsBoolean]);
8221
- const a = M(
8221
+ const a = L(
8222
8222
  (h, m) => h && (i ? t.inverted ? !h.value : !!h.value : t.checkboxMode === "radio" ? kt(h.value, m.value) : Array.isArray(h?.value) && h?.value?.some((v) => kt(v, m.value))),
8223
8223
  [i, t.inverted, t.checkboxMode]
8224
- ), l = M(() => [...t.options].sort((m, v) => {
8224
+ ), l = L(() => [...t.options].sort((m, v) => {
8225
8225
  const w = t.options.indexOf(m), x = t.options.indexOf(v), b = a(r, v), B = a(r, m);
8226
8226
  return !b && B ? -1 : b && !B ? 1 : w - x;
8227
8227
  }), [t.options, a, r]), [c, d] = E(t.SortByChecked ? l() : t.options);
@@ -8230,7 +8230,7 @@ const VQ = ({
8230
8230
  }, [t.options]), j(() => {
8231
8231
  t.SortByChecked && d(l());
8232
8232
  }, [t.SortByChecked, l]);
8233
- const { getReadOnlyLabel: u } = t, f = M(
8233
+ const { getReadOnlyLabel: u } = t, f = L(
8234
8234
  function(h) {
8235
8235
  return u ? u(h) : c.find((m) => m.value === h)?.label;
8236
8236
  },
@@ -12047,9 +12047,9 @@ var eR = 1, Xd = 2, Gd = 3, qm = 4, Ym = 5, tR = 7, Zm = 8, Vd = 9, Kd = 10, _m
12047
12047
  } else if (u.name === "counters") {
12048
12048
  var b = u.values.filter(ho), m = b[0], B = b[1], v = b[2];
12049
12049
  if (m && ot(m)) {
12050
- var y = i.counters.getCounterValues(m.value), C = v && ot(v) ? Pf.parse(i.context, v.value) : 3, S = B && B.type === 0 ? B.value : "", I = y.map(function(k) {
12050
+ var y = i.counters.getCounterValues(m.value), C = v && ot(v) ? Pf.parse(i.context, v.value) : 3, D = B && B.type === 0 ? B.value : "", I = y.map(function(k) {
12051
12051
  return Hs(k, C, !1);
12052
- }).join(S);
12052
+ }).join(D);
12053
12053
  c.appendChild(a.createTextNode(I));
12054
12054
  }
12055
12055
  }
@@ -12276,8 +12276,8 @@ var UR = function(e, t) {
12276
12276
  v.push((i + l) / n.width), v.push((h + u) / n.width), v.push((o + m) / n.height), v.push((c + f) / n.height);
12277
12277
  var w = Math.max.apply(Math, v);
12278
12278
  w > 1 && (i /= w, o /= w, l /= w, c /= w, u /= w, f /= w, h /= w, m /= w);
12279
- var x = n.width - l, b = n.height - f, B = n.width - u, y = n.height - m, C = A.borderTopWidth, S = A.borderRightWidth, I = A.borderBottomWidth, O = A.borderLeftWidth, F = gt(A.paddingTop, t.bounds.width), k = gt(A.paddingRight, t.bounds.width), z = gt(A.paddingBottom, t.bounds.width), W = gt(A.paddingLeft, t.bounds.width);
12280
- this.topLeftBorderDoubleOuterBox = i > 0 || o > 0 ? wt(n.left + O / 3, n.top + C / 3, i - O / 3, o - C / 3, nt.TOP_LEFT) : new fe(n.left + O / 3, n.top + C / 3), this.topRightBorderDoubleOuterBox = i > 0 || o > 0 ? wt(n.left + x, n.top + C / 3, l - S / 3, c - C / 3, nt.TOP_RIGHT) : new fe(n.left + n.width - S / 3, n.top + C / 3), this.bottomRightBorderDoubleOuterBox = u > 0 || f > 0 ? wt(n.left + B, n.top + b, u - S / 3, f - I / 3, nt.BOTTOM_RIGHT) : new fe(n.left + n.width - S / 3, n.top + n.height - I / 3), this.bottomLeftBorderDoubleOuterBox = h > 0 || m > 0 ? wt(n.left + O / 3, n.top + y, h - O / 3, m - I / 3, nt.BOTTOM_LEFT) : new fe(n.left + O / 3, n.top + n.height - I / 3), this.topLeftBorderDoubleInnerBox = i > 0 || o > 0 ? wt(n.left + O * 2 / 3, n.top + C * 2 / 3, i - O * 2 / 3, o - C * 2 / 3, nt.TOP_LEFT) : new fe(n.left + O * 2 / 3, n.top + C * 2 / 3), this.topRightBorderDoubleInnerBox = i > 0 || o > 0 ? wt(n.left + x, n.top + C * 2 / 3, l - S * 2 / 3, c - C * 2 / 3, nt.TOP_RIGHT) : new fe(n.left + n.width - S * 2 / 3, n.top + C * 2 / 3), this.bottomRightBorderDoubleInnerBox = u > 0 || f > 0 ? wt(n.left + B, n.top + b, u - S * 2 / 3, f - I * 2 / 3, nt.BOTTOM_RIGHT) : new fe(n.left + n.width - S * 2 / 3, n.top + n.height - I * 2 / 3), this.bottomLeftBorderDoubleInnerBox = h > 0 || m > 0 ? wt(n.left + O * 2 / 3, n.top + y, h - O * 2 / 3, m - I * 2 / 3, nt.BOTTOM_LEFT) : new fe(n.left + O * 2 / 3, n.top + n.height - I * 2 / 3), this.topLeftBorderStroke = i > 0 || o > 0 ? wt(n.left + O / 2, n.top + C / 2, i - O / 2, o - C / 2, nt.TOP_LEFT) : new fe(n.left + O / 2, n.top + C / 2), this.topRightBorderStroke = i > 0 || o > 0 ? wt(n.left + x, n.top + C / 2, l - S / 2, c - C / 2, nt.TOP_RIGHT) : new fe(n.left + n.width - S / 2, n.top + C / 2), this.bottomRightBorderStroke = u > 0 || f > 0 ? wt(n.left + B, n.top + b, u - S / 2, f - I / 2, nt.BOTTOM_RIGHT) : new fe(n.left + n.width - S / 2, n.top + n.height - I / 2), this.bottomLeftBorderStroke = h > 0 || m > 0 ? wt(n.left + O / 2, n.top + y, h - O / 2, m - I / 2, nt.BOTTOM_LEFT) : new fe(n.left + O / 2, n.top + n.height - I / 2), this.topLeftBorderBox = i > 0 || o > 0 ? wt(n.left, n.top, i, o, nt.TOP_LEFT) : new fe(n.left, n.top), this.topRightBorderBox = l > 0 || c > 0 ? wt(n.left + x, n.top, l, c, nt.TOP_RIGHT) : new fe(n.left + n.width, n.top), this.bottomRightBorderBox = u > 0 || f > 0 ? wt(n.left + B, n.top + b, u, f, nt.BOTTOM_RIGHT) : new fe(n.left + n.width, n.top + n.height), this.bottomLeftBorderBox = h > 0 || m > 0 ? wt(n.left, n.top + y, h, m, nt.BOTTOM_LEFT) : new fe(n.left, n.top + n.height), this.topLeftPaddingBox = i > 0 || o > 0 ? wt(n.left + O, n.top + C, Math.max(0, i - O), Math.max(0, o - C), nt.TOP_LEFT) : new fe(n.left + O, n.top + C), this.topRightPaddingBox = l > 0 || c > 0 ? wt(n.left + Math.min(x, n.width - S), n.top + C, x > n.width + S ? 0 : Math.max(0, l - S), Math.max(0, c - C), nt.TOP_RIGHT) : new fe(n.left + n.width - S, n.top + C), this.bottomRightPaddingBox = u > 0 || f > 0 ? wt(n.left + Math.min(B, n.width - O), n.top + Math.min(b, n.height - I), Math.max(0, u - S), Math.max(0, f - I), nt.BOTTOM_RIGHT) : new fe(n.left + n.width - S, n.top + n.height - I), this.bottomLeftPaddingBox = h > 0 || m > 0 ? wt(n.left + O, n.top + Math.min(y, n.height - I), Math.max(0, h - O), Math.max(0, m - I), nt.BOTTOM_LEFT) : new fe(n.left + O, n.top + n.height - I), this.topLeftContentBox = i > 0 || o > 0 ? wt(n.left + O + W, n.top + C + F, Math.max(0, i - (O + W)), Math.max(0, o - (C + F)), nt.TOP_LEFT) : new fe(n.left + O + W, n.top + C + F), this.topRightContentBox = l > 0 || c > 0 ? wt(n.left + Math.min(x, n.width + O + W), n.top + C + F, x > n.width + O + W ? 0 : l - O + W, c - (C + F), nt.TOP_RIGHT) : new fe(n.left + n.width - (S + k), n.top + C + F), this.bottomRightContentBox = u > 0 || f > 0 ? wt(n.left + Math.min(B, n.width - (O + W)), n.top + Math.min(b, n.height + C + F), Math.max(0, u - (S + k)), f - (I + z), nt.BOTTOM_RIGHT) : new fe(n.left + n.width - (S + k), n.top + n.height - (I + z)), this.bottomLeftContentBox = h > 0 || m > 0 ? wt(n.left + O + W, n.top + y, Math.max(0, h - (O + W)), m - (I + z), nt.BOTTOM_LEFT) : new fe(n.left + O + W, n.top + n.height - (I + z));
12279
+ var x = n.width - l, b = n.height - f, B = n.width - u, y = n.height - m, C = A.borderTopWidth, D = A.borderRightWidth, I = A.borderBottomWidth, O = A.borderLeftWidth, F = gt(A.paddingTop, t.bounds.width), k = gt(A.paddingRight, t.bounds.width), z = gt(A.paddingBottom, t.bounds.width), W = gt(A.paddingLeft, t.bounds.width);
12280
+ this.topLeftBorderDoubleOuterBox = i > 0 || o > 0 ? wt(n.left + O / 3, n.top + C / 3, i - O / 3, o - C / 3, nt.TOP_LEFT) : new fe(n.left + O / 3, n.top + C / 3), this.topRightBorderDoubleOuterBox = i > 0 || o > 0 ? wt(n.left + x, n.top + C / 3, l - D / 3, c - C / 3, nt.TOP_RIGHT) : new fe(n.left + n.width - D / 3, n.top + C / 3), this.bottomRightBorderDoubleOuterBox = u > 0 || f > 0 ? wt(n.left + B, n.top + b, u - D / 3, f - I / 3, nt.BOTTOM_RIGHT) : new fe(n.left + n.width - D / 3, n.top + n.height - I / 3), this.bottomLeftBorderDoubleOuterBox = h > 0 || m > 0 ? wt(n.left + O / 3, n.top + y, h - O / 3, m - I / 3, nt.BOTTOM_LEFT) : new fe(n.left + O / 3, n.top + n.height - I / 3), this.topLeftBorderDoubleInnerBox = i > 0 || o > 0 ? wt(n.left + O * 2 / 3, n.top + C * 2 / 3, i - O * 2 / 3, o - C * 2 / 3, nt.TOP_LEFT) : new fe(n.left + O * 2 / 3, n.top + C * 2 / 3), this.topRightBorderDoubleInnerBox = i > 0 || o > 0 ? wt(n.left + x, n.top + C * 2 / 3, l - D * 2 / 3, c - C * 2 / 3, nt.TOP_RIGHT) : new fe(n.left + n.width - D * 2 / 3, n.top + C * 2 / 3), this.bottomRightBorderDoubleInnerBox = u > 0 || f > 0 ? wt(n.left + B, n.top + b, u - D * 2 / 3, f - I * 2 / 3, nt.BOTTOM_RIGHT) : new fe(n.left + n.width - D * 2 / 3, n.top + n.height - I * 2 / 3), this.bottomLeftBorderDoubleInnerBox = h > 0 || m > 0 ? wt(n.left + O * 2 / 3, n.top + y, h - O * 2 / 3, m - I * 2 / 3, nt.BOTTOM_LEFT) : new fe(n.left + O * 2 / 3, n.top + n.height - I * 2 / 3), this.topLeftBorderStroke = i > 0 || o > 0 ? wt(n.left + O / 2, n.top + C / 2, i - O / 2, o - C / 2, nt.TOP_LEFT) : new fe(n.left + O / 2, n.top + C / 2), this.topRightBorderStroke = i > 0 || o > 0 ? wt(n.left + x, n.top + C / 2, l - D / 2, c - C / 2, nt.TOP_RIGHT) : new fe(n.left + n.width - D / 2, n.top + C / 2), this.bottomRightBorderStroke = u > 0 || f > 0 ? wt(n.left + B, n.top + b, u - D / 2, f - I / 2, nt.BOTTOM_RIGHT) : new fe(n.left + n.width - D / 2, n.top + n.height - I / 2), this.bottomLeftBorderStroke = h > 0 || m > 0 ? wt(n.left + O / 2, n.top + y, h - O / 2, m - I / 2, nt.BOTTOM_LEFT) : new fe(n.left + O / 2, n.top + n.height - I / 2), this.topLeftBorderBox = i > 0 || o > 0 ? wt(n.left, n.top, i, o, nt.TOP_LEFT) : new fe(n.left, n.top), this.topRightBorderBox = l > 0 || c > 0 ? wt(n.left + x, n.top, l, c, nt.TOP_RIGHT) : new fe(n.left + n.width, n.top), this.bottomRightBorderBox = u > 0 || f > 0 ? wt(n.left + B, n.top + b, u, f, nt.BOTTOM_RIGHT) : new fe(n.left + n.width, n.top + n.height), this.bottomLeftBorderBox = h > 0 || m > 0 ? wt(n.left, n.top + y, h, m, nt.BOTTOM_LEFT) : new fe(n.left, n.top + n.height), this.topLeftPaddingBox = i > 0 || o > 0 ? wt(n.left + O, n.top + C, Math.max(0, i - O), Math.max(0, o - C), nt.TOP_LEFT) : new fe(n.left + O, n.top + C), this.topRightPaddingBox = l > 0 || c > 0 ? wt(n.left + Math.min(x, n.width - D), n.top + C, x > n.width + D ? 0 : Math.max(0, l - D), Math.max(0, c - C), nt.TOP_RIGHT) : new fe(n.left + n.width - D, n.top + C), this.bottomRightPaddingBox = u > 0 || f > 0 ? wt(n.left + Math.min(B, n.width - O), n.top + Math.min(b, n.height - I), Math.max(0, u - D), Math.max(0, f - I), nt.BOTTOM_RIGHT) : new fe(n.left + n.width - D, n.top + n.height - I), this.bottomLeftPaddingBox = h > 0 || m > 0 ? wt(n.left + O, n.top + Math.min(y, n.height - I), Math.max(0, h - O), Math.max(0, m - I), nt.BOTTOM_LEFT) : new fe(n.left + O, n.top + n.height - I), this.topLeftContentBox = i > 0 || o > 0 ? wt(n.left + O + W, n.top + C + F, Math.max(0, i - (O + W)), Math.max(0, o - (C + F)), nt.TOP_LEFT) : new fe(n.left + O + W, n.top + C + F), this.topRightContentBox = l > 0 || c > 0 ? wt(n.left + Math.min(x, n.width + O + W), n.top + C + F, x > n.width + O + W ? 0 : l - O + W, c - (C + F), nt.TOP_RIGHT) : new fe(n.left + n.width - (D + k), n.top + C + F), this.bottomRightContentBox = u > 0 || f > 0 ? wt(n.left + Math.min(B, n.width - (O + W)), n.top + Math.min(b, n.height + C + F), Math.max(0, u - (D + k)), f - (I + z), nt.BOTTOM_RIGHT) : new fe(n.left + n.width - (D + k), n.top + n.height - (I + z)), this.bottomLeftContentBox = h > 0 || m > 0 ? wt(n.left + O + W, n.top + y, Math.max(0, h - (O + W)), m - (I + z), nt.BOTTOM_LEFT) : new fe(n.left + O + W, n.top + n.height - (I + z));
12281
12281
  }
12282
12282
  return e;
12283
12283
  })()
@@ -12967,7 +12967,7 @@ var wt = function(e, t, A, n, r) {
12967
12967
  switch (c.label) {
12968
12968
  case 0:
12969
12969
  n = A.styles.backgroundImage.length - 1, r = function(d) {
12970
- var u, f, g, F, te, G, W, L, I, h, F, te, G, W, L, m, v, w, x, b, B, y, C, S, I, O, F, k, z, W, L, X, te, G, _, V, Q, D, N, Z, U, R;
12970
+ var u, f, g, F, te, G, W, M, I, h, F, te, G, W, M, m, v, w, x, b, B, y, C, D, I, O, F, k, z, W, M, X, te, G, _, V, Q, S, N, Z, U, R;
12971
12971
  return AA(this, function(J) {
12972
12972
  switch (J.label) {
12973
12973
  case 0:
@@ -12984,17 +12984,17 @@ var wt = function(e, t, A, n, r) {
12984
12984
  u.width,
12985
12985
  u.height,
12986
12986
  u.width / u.height
12987
- ]), F = g[0], te = g[1], G = g[2], W = g[3], L = g[4], I = i.ctx.createPattern(i.resizeImage(u, W, L), "repeat"), i.renderRepeat(F, I, te, G)), [3, 6];
12987
+ ]), F = g[0], te = g[1], G = g[2], W = g[3], M = g[4], I = i.ctx.createPattern(i.resizeImage(u, W, M), "repeat"), i.renderRepeat(F, I, te, G)), [3, 6];
12988
12988
  case 5:
12989
- cP(d) ? (h = eu(A, n, [null, null, null]), F = h[0], te = h[1], G = h[2], W = h[3], L = h[4], m = iP(d.angle, W, L), v = m[0], w = m[1], x = m[2], b = m[3], B = m[4], y = document.createElement("canvas"), y.width = W, y.height = L, C = y.getContext("2d"), S = C.createLinearGradient(w, b, x, B), km(d.stops, v).forEach(function(Y) {
12990
- return S.addColorStop(Y.stop, Gt(Y.color));
12991
- }), C.fillStyle = S, C.fillRect(0, 0, W, L), W > 0 && L > 0 && (I = i.ctx.createPattern(y, "repeat"), i.renderRepeat(F, I, te, G))) : dP(d) && (O = eu(A, n, [
12989
+ cP(d) ? (h = eu(A, n, [null, null, null]), F = h[0], te = h[1], G = h[2], W = h[3], M = h[4], m = iP(d.angle, W, M), v = m[0], w = m[1], x = m[2], b = m[3], B = m[4], y = document.createElement("canvas"), y.width = W, y.height = M, C = y.getContext("2d"), D = C.createLinearGradient(w, b, x, B), km(d.stops, v).forEach(function(Y) {
12990
+ return D.addColorStop(Y.stop, Gt(Y.color));
12991
+ }), C.fillStyle = D, C.fillRect(0, 0, W, M), W > 0 && M > 0 && (I = i.ctx.createPattern(y, "repeat"), i.renderRepeat(F, I, te, G))) : dP(d) && (O = eu(A, n, [
12992
12992
  null,
12993
12993
  null,
12994
12994
  null
12995
- ]), F = O[0], k = O[1], z = O[2], W = O[3], L = O[4], X = d.position.length === 0 ? [eh] : d.position, te = gt(X[0], W), G = gt(X[X.length - 1], L), _ = oP(d, te, G, W, L), V = _[0], Q = _[1], V > 0 && Q > 0 && (D = i.ctx.createRadialGradient(k + te, z + G, 0, k + te, z + G, V), km(d.stops, V * 2).forEach(function(Y) {
12996
- return D.addColorStop(Y.stop, Gt(Y.color));
12997
- }), i.path(F), i.ctx.fillStyle = D, V !== Q ? (N = A.bounds.left + 0.5 * A.bounds.width, Z = A.bounds.top + 0.5 * A.bounds.height, U = Q / V, R = 1 / U, i.ctx.save(), i.ctx.translate(N, Z), i.ctx.transform(1, 0, 0, U, 0, 0), i.ctx.translate(-N, -Z), i.ctx.fillRect(k, R * (z - Z) + Z, W, L * R), i.ctx.restore()) : i.ctx.fill())), J.label = 6;
12995
+ ]), F = O[0], k = O[1], z = O[2], W = O[3], M = O[4], X = d.position.length === 0 ? [eh] : d.position, te = gt(X[0], W), G = gt(X[X.length - 1], M), _ = oP(d, te, G, W, M), V = _[0], Q = _[1], V > 0 && Q > 0 && (S = i.ctx.createRadialGradient(k + te, z + G, 0, k + te, z + G, V), km(d.stops, V * 2).forEach(function(Y) {
12996
+ return S.addColorStop(Y.stop, Gt(Y.color));
12997
+ }), i.path(F), i.ctx.fillStyle = S, V !== Q ? (N = A.bounds.left + 0.5 * A.bounds.width, Z = A.bounds.top + 0.5 * A.bounds.height, U = Q / V, R = 1 / U, i.ctx.save(), i.ctx.translate(N, Z), i.ctx.transform(1, 0, 0, U, 0, 0), i.ctx.translate(-N, -Z), i.ctx.fillRect(k, R * (z - Z) + Z, W, M * R), i.ctx.restore()) : i.ctx.fill())), J.label = 6;
12998
12998
  case 6:
12999
12999
  return n--, [
13000
13000
  2
@@ -13114,7 +13114,7 @@ var wt = function(e, t, A, n, r) {
13114
13114
  }, t.prototype.renderDashedDottedBorder = function(A, n, r, i, o) {
13115
13115
  return dA(this, void 0, void 0, function() {
13116
13116
  var a, l, c, d, u, f, g, h, m, v, w, x, b, B, y, C, y, C;
13117
- return AA(this, function(S) {
13117
+ return AA(this, function(D) {
13118
13118
  return this.ctx.save(), a = pL(i, r), l = mv(i, r), o === 2 && (this.path(l), this.ctx.clip()), _A(l[0]) ? (c = l[0].start.x, d = l[0].start.y) : (c = l[0].x, d = l[0].y), _A(l[1]) ? (u = l[1].end.x, f = l[1].end.y) : (u = l[1].x, f = l[1].y), r === 0 || r === 2 ? g = Math.abs(c - u) : g = Math.abs(d - f), this.ctx.beginPath(), o === 3 ? this.formatPath(a) : this.formatPath(l.slice(0, 2)), h = n < 3 ? n * 3 : n * 2, m = n < 3 ? n * 2 : n, o === 3 && (h = n, m = n), v = !0, g <= h * 2 ? v = !1 : g <= h * 2 + m ? (w = g / (2 * h + m), h *= w, m *= w) : (x = Math.floor((g + m) / (h + m)), b = (g - x * h) / (x - 1), B = (g - (x + 1) * h) / x, m = B <= 0 || Math.abs(m - b) < Math.abs(m - B) ? b : B), v && (o === 3 ? this.ctx.setLineDash([0, h + m]) : this.ctx.setLineDash([h, m])), o === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = n) : this.ctx.lineWidth = n * 2 + 1.1, this.ctx.strokeStyle = Gt(A), this.ctx.stroke(), this.ctx.setLineDash([]), o === 2 && (_A(l[0]) && (y = l[3], C = l[0], this.ctx.beginPath(), this.formatPath([new fe(y.end.x, y.end.y), new fe(C.start.x, C.start.y)]), this.ctx.stroke()), _A(l[1]) && (y = l[1], C = l[2], this.ctx.beginPath(), this.formatPath([new fe(y.end.x, y.end.y), new fe(C.start.x, C.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
13119
13119
  2
13120
13120
  /*return*/
@@ -13230,7 +13230,7 @@ var wt = function(e, t, A, n, r) {
13230
13230
  typeof window < "u" && _0.setContext(window);
13231
13231
  var jL = function(e, t) {
13232
13232
  return dA(void 0, void 0, void 0, function() {
13233
- var A, n, r, i, o, a, l, c, d, u, f, g, h, m, v, w, x, b, B, y, S, C, S, I, O, F, k, z, W, L, X, te, G, _, V, Q, D, N, Z, U;
13233
+ var A, n, r, i, o, a, l, c, d, u, f, g, h, m, v, w, x, b, B, y, D, C, D, I, O, F, k, z, W, M, X, te, G, _, V, Q, S, N, Z, U;
13234
13234
  return AA(this, function(R) {
13235
13235
  switch (R.label) {
13236
13236
  case 0:
@@ -13248,7 +13248,7 @@ var jL = function(e, t) {
13248
13248
  }, i = bf({ logging: (k = t.logging) !== null && k !== void 0 ? k : !0, cache: t.cache }, r), o = {
13249
13249
  windowWidth: (z = t.windowWidth) !== null && z !== void 0 ? z : n.innerWidth,
13250
13250
  windowHeight: (W = t.windowHeight) !== null && W !== void 0 ? W : n.innerHeight,
13251
- scrollX: (L = t.scrollX) !== null && L !== void 0 ? L : n.pageXOffset,
13251
+ scrollX: (M = t.scrollX) !== null && M !== void 0 ? M : n.pageXOffset,
13252
13252
  scrollY: (X = t.scrollY) !== null && X !== void 0 ? X : n.pageYOffset
13253
13253
  }, a = new fr(o.scrollX, o.scrollY, o.windowWidth, o.windowHeight), l = new FL(i, a), c = (te = t.foreignObjectRendering) !== null && te !== void 0 ? te : !1, d = {
13254
13254
  allowTaint: (G = t.allowTaint) !== null && G !== void 0 ? G : !1,
@@ -13263,14 +13263,14 @@ var jL = function(e, t) {
13263
13263
  backgroundColor: b,
13264
13264
  scale: (V = (_ = t.scale) !== null && _ !== void 0 ? _ : n.devicePixelRatio) !== null && V !== void 0 ? V : 1,
13265
13265
  x: ((Q = t.x) !== null && Q !== void 0 ? Q : 0) + w,
13266
- y: ((D = t.y) !== null && D !== void 0 ? D : 0) + x,
13266
+ y: ((S = t.y) !== null && S !== void 0 ? S : 0) + x,
13267
13267
  width: (N = t.width) !== null && N !== void 0 ? N : Math.ceil(m),
13268
13268
  height: (Z = t.height) !== null && Z !== void 0 ? Z : Math.ceil(v)
13269
- }, c ? (l.logger.debug("Document cloned, using foreign object rendering"), S = new TL(l, B), [4, S.render(f)]) : [3, 3];
13269
+ }, c ? (l.logger.debug("Document cloned, using foreign object rendering"), D = new TL(l, B), [4, D.render(f)]) : [3, 3];
13270
13270
  case 2:
13271
13271
  return y = R.sent(), [3, 5];
13272
13272
  case 3:
13273
- return l.logger.debug("Document cloned, element located at " + w + "," + x + " with size " + m + "x" + v + " using computed rendering"), l.logger.debug("Starting DOM parsing"), C = X0(l, f), b === C.styles.backgroundColor && (C.styles.backgroundColor = ar.TRANSPARENT), l.logger.debug("Starting renderer for element at " + B.x + "," + B.y + " with size " + B.width + "x" + B.height), S = new CL(l, B), [4, S.render(C)];
13273
+ return l.logger.debug("Document cloned, element located at " + w + "," + x + " with size " + m + "x" + v + " using computed rendering"), l.logger.debug("Starting DOM parsing"), C = X0(l, f), b === C.styles.backgroundColor && (C.styles.backgroundColor = ar.TRANSPARENT), l.logger.debug("Starting renderer for element at " + B.x + "," + B.y + " with size " + B.width + "x" + B.height), D = new CL(l, B), [4, D.render(C)];
13274
13274
  case 4:
13275
13275
  y = R.sent(), R.label = 5;
13276
13276
  case 5:
@@ -13444,24 +13444,24 @@ const LL = p.button`
13444
13444
  closeHandler: n,
13445
13445
  scrollFirstElement: r = !0
13446
13446
  }) => {
13447
- const i = ae(t), o = M((d) => {
13447
+ const i = ae(t), o = L((d) => {
13448
13448
  const u = d.querySelectorAll(
13449
13449
  "input, select, textarea, button, a[href], [tabindex]:not([tabindex='-1'])"
13450
13450
  );
13451
13451
  return Array.from(u).filter((f) => f.offsetParent !== null);
13452
- }, []), a = M(
13452
+ }, []), a = L(
13453
13453
  (d) => {
13454
13454
  if (!e.current) return null;
13455
13455
  const u = o(e.current);
13456
13456
  return u && u.length > 0 ? (e.current.removeAttribute("tabindex"), u[d === "first" ? 0 : u.length - 1]) : (e.current.setAttribute("tabindex", "-1"), e.current);
13457
13457
  },
13458
13458
  [o, e]
13459
- ), l = M(
13459
+ ), l = L(
13460
13460
  (d) => {
13461
13461
  d.key === "Tab" && d.shiftKey && d.target === a("first") && (d.preventDefault(), a("last")?.focus()), d.key === "Tab" && !d.shiftKey && d.target === a("last") && (d.preventDefault(), a("first")?.focus());
13462
13462
  },
13463
13463
  [a]
13464
- ), c = M(
13464
+ ), c = L(
13465
13465
  (d) => {
13466
13466
  d.key === "Escape" && (d.stopPropagation(), d.preventDefault(), t && n());
13467
13467
  },
@@ -13866,7 +13866,7 @@ const a4 = ({
13866
13866
  let b = w, B = x;
13867
13867
  return w < 0 && (b = 0), x < 0 && (B = 0), w > A && (b = A), x > n && (B = n), { x: b, y: B };
13868
13868
  }
13869
- const m = M(
13869
+ const m = L(
13870
13870
  (w) => {
13871
13871
  if (i && g.current) {
13872
13872
  const x = c.x + (w.clientX - a.x), b = c.y + (w.clientY - a.y);
@@ -14051,7 +14051,7 @@ const I4 = ({ initialColor: e, width: t = 400, height: A = 200, palettes: n, onC
14051
14051
  const i = q(), [o, a] = E(Ga(e)), [l, c] = E(Va(e, t, A)), [d, u] = E(e), [f, g] = Wf("color_picker_last_color", []), [h, m] = Wf(
14052
14052
  "color_picker_last_color_locked",
14053
14053
  !1
14054
- ), [v, w] = E(!1), [x, b] = E({ x: 0, y: 0 }), [B, y] = E("#000000"), [C, S] = E(null), I = ae(null), O = ae(!1), F = ae(null), k = ae(null), z = ae(null), W = ae(null), L = $(() => Ga(e), [e]), X = $(() => Va(e, t, A), [e, t, A]), te = async () => {
14054
+ ), [v, w] = E(!1), [x, b] = E({ x: 0, y: 0 }), [B, y] = E("#000000"), [C, D] = E(null), I = ae(null), O = ae(!1), F = ae(null), k = ae(null), z = ae(null), W = ae(null), M = $(() => Ga(e), [e]), X = $(() => Va(e, t, A), [e, t, A]), te = async () => {
14055
14055
  try {
14056
14056
  const J = (await new window.EyeDropper().open()).sRGBHex;
14057
14057
  u(J), a(Ga(J));
@@ -14061,15 +14061,15 @@ const I4 = ({ initialColor: e, width: t = 400, height: A = 200, palettes: n, onC
14061
14061
  console.error("Error using EyeDropper API:", U);
14062
14062
  }
14063
14063
  };
14064
- j(() => (O.current = !0, a(L), c(X), u(e), k.current = document.createElement("canvas"), z.current = document.createElement("canvas"), W.current = document.createElement("canvas"), () => {
14064
+ j(() => (O.current = !0, a(M), c(X), u(e), k.current = document.createElement("canvas"), z.current = document.createElement("canvas"), W.current = document.createElement("canvas"), () => {
14065
14065
  O.current = !1;
14066
- }), [e, t, A, L, X]);
14067
- const G = M(
14066
+ }), [e, t, A, M, X]);
14067
+ const G = L(
14068
14068
  (U) => {
14069
14069
  !h && Array.isArray(f) && f.indexOf(U) === -1 && g([U, ...f].slice(0, D4));
14070
14070
  },
14071
14071
  [h, f, g]
14072
- ), _ = M(async () => {
14072
+ ), _ = L(async () => {
14073
14073
  if (O.current)
14074
14074
  try {
14075
14075
  if (!document.body) {
@@ -14082,11 +14082,11 @@ const I4 = ({ initialColor: e, width: t = 400, height: A = 200, palettes: n, onC
14082
14082
  allowTaint: !0,
14083
14083
  scale: window.devicePixelRatio
14084
14084
  });
14085
- O.current && S(U);
14085
+ O.current && D(U);
14086
14086
  } catch (U) {
14087
14087
  console.error("Failed to capture screenshot:", U), O.current && w(!1);
14088
14088
  }
14089
- }, []), V = M(
14089
+ }, []), V = L(
14090
14090
  (U, R) => {
14091
14091
  if (!O.current || !C || !I.current) return;
14092
14092
  const J = window.devicePixelRatio, Y = 1, H = 60, ce = 4 / J, le = U - 7 * J, ke = R - 7 * J;
@@ -14111,7 +14111,7 @@ const I4 = ({ initialColor: e, width: t = 400, height: A = 200, palettes: n, onC
14111
14111
  ht.width = H * Y, ht.height = H * Y, ht.getContext("2d")?.drawImage(De, 0, 0);
14112
14112
  },
14113
14113
  [C]
14114
- ), Q = M(
14114
+ ), Q = L(
14115
14115
  (U) => {
14116
14116
  if (!O.current) return;
14117
14117
  const R = window.devicePixelRatio;
@@ -14132,15 +14132,15 @@ const I4 = ({ initialColor: e, width: t = 400, height: A = 200, palettes: n, onC
14132
14132
  }
14133
14133
  },
14134
14134
  [C, V]
14135
- ), D = M(() => {
14135
+ ), S = L(() => {
14136
14136
  if (!O.current) return;
14137
14137
  u(B), a(Ga(B));
14138
14138
  const U = Va(B, t, A);
14139
14139
  c(U), r(B, !0), G(B), w(!1);
14140
- }, [B, t, A, r, G]), N = M((U) => {
14140
+ }, [B, t, A, r, G]), N = L((U) => {
14141
14141
  U.key === "Escape" && w(!1);
14142
- }, []), Z = M((U) => {
14143
- !U || !O.current || (w(!1), S(null), setTimeout(() => {
14142
+ }, []), Z = L((U) => {
14143
+ !U || !O.current || (w(!1), D(null), setTimeout(() => {
14144
14144
  if (O.current) {
14145
14145
  const R = U.clientX, J = U.clientY;
14146
14146
  b({ x: R, y: J }), w(!0);
@@ -14148,14 +14148,14 @@ const I4 = ({ initialColor: e, width: t = 400, height: A = 200, palettes: n, onC
14148
14148
  }, 10));
14149
14149
  }, []);
14150
14150
  return j(() => {
14151
- O.current && v && (S(null), _());
14151
+ O.current && v && (D(null), _());
14152
14152
  }, [v, _]), j(() => {
14153
14153
  if (!O.current || !v || !C) return;
14154
- const U = (Y) => Q(Y), R = () => D(), J = (Y) => N(Y);
14154
+ const U = (Y) => Q(Y), R = () => S(), J = (Y) => N(Y);
14155
14155
  return window.addEventListener("mousemove", U), window.addEventListener("click", R), window.addEventListener("keydown", J), () => {
14156
14156
  window.removeEventListener("mousemove", U), window.removeEventListener("click", R), window.removeEventListener("keydown", J);
14157
14157
  };
14158
- }, [v, C, B, Q, D, N]), l !== void 0 ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
14158
+ }, [v, C, B, Q, S, N]), l !== void 0 ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
14159
14159
  /* @__PURE__ */ s.jsx(
14160
14160
  cy,
14161
14161
  {
@@ -14302,13 +14302,13 @@ const I4 = ({ initialColor: e, width: t = 400, height: A = 200, palettes: n, onC
14302
14302
  const i = uy(e);
14303
14303
  t(i), A.current = i, r && r({ current: i });
14304
14304
  }, M4 = ({ enter: e = !0, exit: t = !0, preEnter: A, preExit: n, timeout: r, initialEntered: i, mountOnEnter: o, unmountOnExit: a, onStateChange: l } = {}) => {
14305
- const [c, d] = E(() => uy(i ? Vl : Vf(o))), u = ae(c), f = ae(0), [g, h] = R4(r), m = M(() => {
14305
+ const [c, d] = E(() => uy(i ? Vl : Vf(o))), u = ae(c), f = ae(0), [g, h] = R4(r), m = L(() => {
14306
14306
  const v = j4(u.current._s, a);
14307
14307
  v && bv(v, d, u, f, l);
14308
14308
  }, [l, a]);
14309
14309
  return [
14310
14310
  c,
14311
- M((v) => {
14311
+ L((v) => {
14312
14312
  const w = (b) => {
14313
14313
  switch (bv(b, d, u, f, l), b) {
14314
14314
  case Gf:
@@ -14523,9 +14523,9 @@ const I4 = ({ initialColor: e, width: t = 400, height: A = 200, palettes: n, onC
14523
14523
  offset: c,
14524
14524
  display: d
14525
14525
  }) => {
14526
- const [u, f] = E(!1), g = M(() => {
14526
+ const [u, f] = E(!1), g = L(() => {
14527
14527
  f((x) => !x);
14528
- }, []), h = M(() => {
14528
+ }, []), h = L(() => {
14529
14529
  f(!1);
14530
14530
  }, []);
14531
14531
  j(() => {
@@ -17060,9 +17060,9 @@ function Nk(e) {
17060
17060
  return Ae.createElement(t.Dropdown, { ...e });
17061
17061
  }
17062
17062
  function kk(e) {
17063
- const { onPreviousClick: t, onNextClick: A, previousMonth: n, nextMonth: r, ...i } = e, { components: o, classNames: a, labels: { labelPrevious: l, labelNext: c } } = ta(), d = M((f) => {
17063
+ const { onPreviousClick: t, onNextClick: A, previousMonth: n, nextMonth: r, ...i } = e, { components: o, classNames: a, labels: { labelPrevious: l, labelNext: c } } = ta(), d = L((f) => {
17064
17064
  r && A?.(f);
17065
- }, [r, A]), u = M((f) => {
17065
+ }, [r, A]), u = L((f) => {
17066
17066
  n && t?.(f);
17067
17067
  }, [n, t]);
17068
17068
  return Ae.createElement(
@@ -17207,11 +17207,11 @@ function e2(e, t, A, n, r) {
17207
17207
  [Et.today]: []
17208
17208
  }, B = {};
17209
17209
  for (const y of e) {
17210
- const { date: C, displayMonth: S } = y, I = !!(S && !f(C, S)), O = !!(w && h(C, w)), F = !!(x && v(C, x)), k = !!(i && or(C, i, r)), z = !!(o && or(C, o, r)) || O || F || // Broadcast calendar will show outside days as default
17210
+ const { date: C, displayMonth: D } = y, I = !!(D && !f(C, D)), O = !!(w && h(C, w)), F = !!(x && v(C, x)), k = !!(i && or(C, i, r)), z = !!(o && or(C, o, r)) || O || F || // Broadcast calendar will show outside days as default
17211
17211
  !c && !l && I || c && l === !1 && I, W = u(C, d);
17212
- I && b.outside.push(y), k && b.disabled.push(y), z && b.hidden.push(y), W && b.today.push(y), a && Object.keys(a).forEach((L) => {
17213
- const X = a?.[L];
17214
- X && or(C, X, r) && (B[L] ? B[L].push(y) : B[L] = [y]);
17212
+ I && b.outside.push(y), k && b.disabled.push(y), z && b.hidden.push(y), W && b.today.push(y), a && Object.keys(a).forEach((M) => {
17213
+ const X = a?.[M];
17214
+ X && or(C, X, r) && (B[M] ? B[M].push(y) : B[M] = [y]);
17215
17215
  });
17216
17216
  }
17217
17217
  return (y) => {
@@ -17221,17 +17221,17 @@ function e2(e, t, A, n, r) {
17221
17221
  [Et.hidden]: !1,
17222
17222
  [Et.outside]: !1,
17223
17223
  [Et.today]: !1
17224
- }, S = {};
17224
+ }, D = {};
17225
17225
  for (const I in b) {
17226
17226
  const O = b[I];
17227
17227
  C[I] = O.some((F) => F === y);
17228
17228
  }
17229
17229
  for (const I in B)
17230
- S[I] = B[I].some((O) => O === y);
17230
+ D[I] = B[I].some((O) => O === y);
17231
17231
  return {
17232
17232
  ...C,
17233
17233
  // custom modifiers should override all the previous ones
17234
- ...S
17234
+ ...D
17235
17235
  };
17236
17236
  };
17237
17237
  }
@@ -17551,10 +17551,10 @@ function S2(e, t, { classNames: A, months: n, focused: r, dateLib: i }) {
17551
17551
  b.style.position = "relative", b.style.overflow = "hidden";
17552
17552
  const C = Au(b);
17553
17553
  C && C.classList.add(f);
17554
- const S = nu(b);
17555
- S && S.classList.add(g);
17554
+ const D = nu(b);
17555
+ D && D.classList.add(g);
17556
17556
  const I = () => {
17557
- l.current = !1, e.current && (e.current.style.isolation = ""), x && (x.style.zIndex = ""), C && C.classList.remove(f), S && S.classList.remove(g), b.style.position = "", b.style.overflow = "", b.contains(y) && b.removeChild(y);
17557
+ l.current = !1, e.current && (e.current.style.isolation = ""), x && (x.style.zIndex = ""), C && C.classList.remove(f), D && D.classList.remove(g), b.style.position = "", b.style.overflow = "", b.contains(y) && b.removeChild(y);
17558
17558
  };
17559
17559
  y.style.pointerEvents = "none", y.style.position = "absolute", y.style.overflow = "hidden", y.setAttribute("aria-hidden", "true");
17560
17560
  const O = D2(y);
@@ -17568,15 +17568,15 @@ function S2(e, t, { classNames: A, months: n, focused: r, dateLib: i }) {
17568
17568
  });
17569
17569
  }
17570
17570
  function I2(e, t, A, n) {
17571
- const r = e[0], i = e[e.length - 1], { ISOWeek: o, fixedWeeks: a, broadcastCalendar: l } = A ?? {}, { addDays: c, differenceInCalendarDays: d, differenceInCalendarMonths: u, endOfBroadcastWeek: f, endOfISOWeek: g, endOfMonth: h, endOfWeek: m, isAfter: v, startOfBroadcastWeek: w, startOfISOWeek: x, startOfWeek: b } = n, B = l ? w(r, n) : o ? x(r) : b(r), y = l ? f(i) : o ? g(h(i)) : m(h(i)), C = t && (l ? f(t) : o ? g(t) : m(t)), S = C && v(y, C) ? C : y, I = d(S, B), O = u(i, r) + 1, F = [];
17571
+ const r = e[0], i = e[e.length - 1], { ISOWeek: o, fixedWeeks: a, broadcastCalendar: l } = A ?? {}, { addDays: c, differenceInCalendarDays: d, differenceInCalendarMonths: u, endOfBroadcastWeek: f, endOfISOWeek: g, endOfMonth: h, endOfWeek: m, isAfter: v, startOfBroadcastWeek: w, startOfISOWeek: x, startOfWeek: b } = n, B = l ? w(r, n) : o ? x(r) : b(r), y = l ? f(i) : o ? g(h(i)) : m(h(i)), C = t && (l ? f(t) : o ? g(t) : m(t)), D = C && v(y, C) ? C : y, I = d(D, B), O = u(i, r) + 1, F = [];
17572
17572
  for (let W = 0; W <= I; W++) {
17573
- const L = c(B, W);
17574
- F.push(L);
17573
+ const M = c(B, W);
17574
+ F.push(M);
17575
17575
  }
17576
17576
  const z = (l ? 35 : 42) * O;
17577
17577
  if (a && F.length < z) {
17578
17578
  const W = z - F.length;
17579
- for (let L = 0; L < W; L++) {
17579
+ for (let M = 0; M < W; M++) {
17580
17580
  const X = c(F[F.length - 1], 1);
17581
17581
  F.push(X);
17582
17582
  }
@@ -17612,17 +17612,17 @@ function Hv(e, t, A, n) {
17612
17612
  }
17613
17613
  function Q2(e, t, A, n) {
17614
17614
  const { addDays: r, endOfBroadcastWeek: i, endOfISOWeek: o, endOfMonth: a, endOfWeek: l, getISOWeek: c, getWeek: d, startOfBroadcastWeek: u, startOfISOWeek: f, startOfWeek: g } = n, h = e.reduce((m, v) => {
17615
- const w = A.broadcastCalendar ? u(v, n) : A.ISOWeek ? f(v) : g(v), x = A.broadcastCalendar ? i(v) : A.ISOWeek ? o(a(v)) : l(a(v)), b = t.filter((S) => S >= w && S <= x), B = A.broadcastCalendar ? 35 : 42;
17615
+ const w = A.broadcastCalendar ? u(v, n) : A.ISOWeek ? f(v) : g(v), x = A.broadcastCalendar ? i(v) : A.ISOWeek ? o(a(v)) : l(a(v)), b = t.filter((D) => D >= w && D <= x), B = A.broadcastCalendar ? 35 : 42;
17616
17616
  if (A.fixedWeeks && b.length < B) {
17617
- const S = t.filter((I) => {
17617
+ const D = t.filter((I) => {
17618
17618
  const O = B - b.length;
17619
17619
  return I > x && I <= r(x, O);
17620
17620
  });
17621
- b.push(...S);
17621
+ b.push(...D);
17622
17622
  }
17623
- const y = b.reduce((S, I) => {
17624
- const O = A.ISOWeek ? c(I) : d(I), F = S.find((z) => z.weekNumber === O), k = new Iy(I, v, n);
17625
- return F ? F.days.push(k) : S.push(new Dk(O, [k])), S;
17623
+ const y = b.reduce((D, I) => {
17624
+ const O = A.ISOWeek ? c(I) : d(I), F = D.find((z) => z.weekNumber === O), k = new Iy(I, v, n);
17625
+ return F ? F.days.push(k) : D.push(new Dk(O, [k])), D;
17626
17626
  }, []), C = new Ek(v, y);
17627
17627
  return m.push(C), m;
17628
17628
  }, []);
@@ -17684,10 +17684,10 @@ function R2(e, t) {
17684
17684
  fixedWeeks: e.fixedWeeks,
17685
17685
  ISOWeek: e.ISOWeek,
17686
17686
  reverseMonths: e.reverseMonths
17687
- }, t), S = j2(C), I = O2(C), O = P2(a, A, e, t), F = F2(a, n, e, t);
17687
+ }, t), D = j2(C), I = O2(C), O = P2(a, A, e, t), F = F2(a, n, e, t);
17688
17688
  return {
17689
17689
  months: C,
17690
- weeks: S,
17690
+ weeks: D,
17691
17691
  days: I,
17692
17692
  previousMonth: O,
17693
17693
  nextMonth: F
@@ -17747,8 +17747,8 @@ function M2(e, t, A, n, r, i, o) {
17747
17747
  week: u,
17748
17748
  month: d,
17749
17749
  year: f,
17750
- startOfWeek: (S) => l ? x(S, o) : a ? b(S) : B(S),
17751
- endOfWeek: (S) => l ? g(S) : a ? h(S) : m(S)
17750
+ startOfWeek: (D) => l ? x(D, o) : a ? b(D) : B(D),
17751
+ endOfWeek: (D) => l ? g(D) : a ? h(D) : m(D)
17752
17752
  }[e](A, t === "after" ? 1 : -1);
17753
17753
  return t === "before" && n ? C = v([n, C]) : t === "after" && r && (C = w([r, C])), C;
17754
17754
  }
@@ -17964,17 +17964,17 @@ function K2(e) {
17964
17964
  t.classNames
17965
17965
  ]);
17966
17966
  t.today || (t = { ...t, today: o.today() });
17967
- const { captionLayout: c, mode: d, navLayout: u, numberOfMonths: f = 1, onDayBlur: g, onDayClick: h, onDayFocus: m, onDayKeyDown: v, onDayMouseEnter: w, onDayMouseLeave: x, onNextClick: b, onPrevClick: B, showWeekNumber: y, styles: C } = t, { formatCaption: S, formatDay: I, formatMonthDropdown: O, formatWeekNumber: F, formatWeekNumberHeader: k, formatWeekdayName: z, formatYearDropdown: W } = r, L = R2(t, o), { days: X, months: te, navStart: G, navEnd: _, previousMonth: V, nextMonth: Q, goToMonth: D } = L, N = e2(X, t, G, _, o), { isSelected: Z, select: U, selected: R } = V2(t, o) ?? {}, { blur: J, focused: Y, isFocusTarget: H, moveFocus: ce, setFocused: le } = N2(t, L, N, Z ?? (() => !1), o), { labelDayButton: ke, labelGridcell: oe, labelGrid: re, labelMonthDropdown: De, labelNav: Re, labelPrevious: Oe, labelNext: Pe, labelWeekday: ht, labelWeekNumber: de, labelWeekNumberHeader: je, labelYearDropdown: ge } = i, yt = $(() => b2(o, t.ISOWeek, t.broadcastCalendar, t.today), [o, t.ISOWeek, t.broadcastCalendar, t.today]), an = d !== void 0 || h !== void 0, vA = M(() => {
17968
- V && (D(V), B?.(V));
17969
- }, [V, D, B]), wA = M(() => {
17970
- Q && (D(Q), b?.(Q));
17971
- }, [D, Q, b]), xA = M((Ie, Ue) => (ve) => {
17967
+ const { captionLayout: c, mode: d, navLayout: u, numberOfMonths: f = 1, onDayBlur: g, onDayClick: h, onDayFocus: m, onDayKeyDown: v, onDayMouseEnter: w, onDayMouseLeave: x, onNextClick: b, onPrevClick: B, showWeekNumber: y, styles: C } = t, { formatCaption: D, formatDay: I, formatMonthDropdown: O, formatWeekNumber: F, formatWeekNumberHeader: k, formatWeekdayName: z, formatYearDropdown: W } = r, M = R2(t, o), { days: X, months: te, navStart: G, navEnd: _, previousMonth: V, nextMonth: Q, goToMonth: S } = M, N = e2(X, t, G, _, o), { isSelected: Z, select: U, selected: R } = V2(t, o) ?? {}, { blur: J, focused: Y, isFocusTarget: H, moveFocus: ce, setFocused: le } = N2(t, M, N, Z ?? (() => !1), o), { labelDayButton: ke, labelGridcell: oe, labelGrid: re, labelMonthDropdown: De, labelNav: Re, labelPrevious: Oe, labelNext: Pe, labelWeekday: ht, labelWeekNumber: de, labelWeekNumberHeader: je, labelYearDropdown: ge } = i, yt = $(() => b2(o, t.ISOWeek, t.broadcastCalendar, t.today), [o, t.ISOWeek, t.broadcastCalendar, t.today]), an = d !== void 0 || h !== void 0, vA = L(() => {
17968
+ V && (S(V), B?.(V));
17969
+ }, [V, S, B]), wA = L(() => {
17970
+ Q && (S(Q), b?.(Q));
17971
+ }, [S, Q, b]), xA = L((Ie, Ue) => (ve) => {
17972
17972
  ve.preventDefault(), ve.stopPropagation(), le(Ie), !Ue.disabled && (U?.(Ie.date, Ue, ve), h?.(Ie.date, Ue, ve));
17973
- }, [U, h, le]), Wt = M((Ie, Ue) => (ve) => {
17973
+ }, [U, h, le]), Wt = L((Ie, Ue) => (ve) => {
17974
17974
  le(Ie), m?.(Ie.date, Ue, ve);
17975
- }, [m, le]), bA = M((Ie, Ue) => (ve) => {
17975
+ }, [m, le]), bA = L((Ie, Ue) => (ve) => {
17976
17976
  J(), g?.(Ie.date, Ue, ve);
17977
- }, [J, g]), Qn = M((Ie, Ue) => (ve) => {
17977
+ }, [J, g]), Qn = L((Ie, Ue) => (ve) => {
17978
17978
  const We = {
17979
17979
  ArrowLeft: [
17980
17980
  ve.shiftKey ? "month" : "day",
@@ -17997,17 +17997,17 @@ function K2(e) {
17997
17997
  ce(ut, Me);
17998
17998
  }
17999
17999
  v?.(Ie.date, Ue, ve);
18000
- }, [ce, v, t.dir]), zA = M((Ie, Ue) => (ve) => {
18000
+ }, [ce, v, t.dir]), zA = L((Ie, Ue) => (ve) => {
18001
18001
  w?.(Ie.date, Ue, ve);
18002
- }, [w]), WA = M((Ie, Ue) => (ve) => {
18002
+ }, [w]), WA = L((Ie, Ue) => (ve) => {
18003
18003
  x?.(Ie.date, Ue, ve);
18004
- }, [x]), _n = M((Ie) => (Ue) => {
18004
+ }, [x]), _n = L((Ie) => (Ue) => {
18005
18005
  const ve = Number(Ue.target.value), We = o.setMonth(o.startOfMonth(Ie), ve);
18006
- D(We);
18007
- }, [o, D]), XA = M((Ie) => (Ue) => {
18006
+ S(We);
18007
+ }, [o, S]), XA = L((Ie) => (Ue) => {
18008
18008
  const ve = Number(Ue.target.value), We = o.setYear(o.startOfMonth(Ie), ve);
18009
- D(We);
18010
- }, [o, D]), { className: BA, style: rt } = $(() => ({
18009
+ S(We);
18010
+ }, [o, S]), { className: BA, style: rt } = $(() => ({
18011
18011
  className: [l[be.Root], t.className].filter(Boolean).join(" "),
18012
18012
  style: { ...C?.[be.Root], ...t.style }
18013
18013
  }), [l, t.className, t.style, C]), Ct = n2(t), GA = ae(null);
@@ -18025,7 +18025,7 @@ function K2(e) {
18025
18025
  months: te,
18026
18026
  nextMonth: Q,
18027
18027
  previousMonth: V,
18028
- goToMonth: D,
18028
+ goToMonth: S,
18029
18029
  getModifiers: N,
18030
18030
  components: n,
18031
18031
  classNames: l,
@@ -18077,8 +18077,8 @@ function K2(e) {
18077
18077
  width: "1px",
18078
18078
  whiteSpace: "nowrap",
18079
18079
  wordWrap: "normal"
18080
- } }, S(Ie.date, o.options, o))
18081
- ) : Ae.createElement(n.CaptionLabel, { className: l[be.CaptionLabel], role: "status", "aria-live": "polite" }, S(Ie.date, o.options, o))),
18080
+ } }, D(Ie.date, o.options, o))
18081
+ ) : Ae.createElement(n.CaptionLabel, { className: l[be.CaptionLabel], role: "status", "aria-live": "polite" }, D(Ie.date, o.options, o))),
18082
18082
  u === "around" && !t.hideNavigation && Ue === f - 1 && Ae.createElement(
18083
18083
  n.NextMonthButton,
18084
18084
  { type: "button", className: l[be.NextMonthButton], tabIndex: Q ? void 0 : -1, "aria-disabled": Q ? void 0 : !0, "aria-label": Pe(Q), onClick: wA, "data-animated-button": t.animate ? "true" : void 0 },
@@ -18674,7 +18674,7 @@ const U3 = p.div`
18674
18674
  defaultOpen: d,
18675
18675
  ...u
18676
18676
  }, f) {
18677
- const g = q(), { multiple: h, readOnly: m, onChange: v, required: w, getGroup: x } = u, b = (de) => Ka(de, u.getLabel), B = (de) => Ka(de, u.getValue), y = (de) => Ka(de, u.getSearch ?? u.getLabel), C = M((de) => Ka(de, x), [x]), [S] = q2(), [I, O] = E(""), F = XB(I), [k, z] = E(d ?? !1), [W, L] = E(!1), [X, te] = E(0), [G, _] = E(u.loading ?? !1), V = ae(!1), [Q, D] = E(""), N = ae(null), Z = ae(null), [U, R] = E(u.options ?? []), J = $(() => u.htmlFor ?? u.name, [u.htmlFor, u.name]), Y = $(
18677
+ const g = q(), { multiple: h, readOnly: m, onChange: v, required: w, getGroup: x } = u, b = (de) => Ka(de, u.getLabel), B = (de) => Ka(de, u.getValue), y = (de) => Ka(de, u.getSearch ?? u.getLabel), C = L((de) => Ka(de, x), [x]), [D] = q2(), [I, O] = E(""), F = XB(I), [k, z] = E(d ?? !1), [W, M] = E(!1), [X, te] = E(0), [G, _] = E(u.loading ?? !1), V = ae(!1), [Q, S] = E(""), N = ae(null), Z = ae(null), [U, R] = E(u.options ?? []), J = $(() => u.htmlFor ?? u.name, [u.htmlFor, u.name]), Y = $(
18678
18678
  () => i ? "onClick" in i ? /* @__PURE__ */ s.jsx(
18679
18679
  kv,
18680
18680
  {
@@ -18713,17 +18713,17 @@ const U3 = p.div`
18713
18713
  o == null ? "" : y(o).toString() ? g.formatMessage({ id: y(o).toString() }) : y(o).toString()
18714
18714
  );
18715
18715
  }, [o]), j(() => {
18716
- !t && V.current && _(u.loading ?? !1), e && (A || F) ? (_(!0), V.current = !0, S(e(F)).then((de) => {
18716
+ !t && V.current && _(u.loading ?? !1), e && (A || F) ? (_(!0), V.current = !0, D(e(F)).then((de) => {
18717
18717
  !a || de.some((je) => je.title === F) || !F ? (R(de), _(u.loading ?? !1)) : (R([{ title: F, newOption: !0 }, ...de]), _(u.loading ?? !1));
18718
18718
  }).catch((de) => {
18719
18719
  de.isCanceled || _(u.loading ?? !1);
18720
18720
  })) : _(u.loading ?? !1);
18721
18721
  }, [F, u.loading]), j(() => {
18722
- !e && !H.length ? D("GLOBAL_No_Result") : e && !H.length && G ? D("GLOBAL_Search_Loading") : e && !I && (A && H.length || !A) ? D("GLOBAL_Start_typing") : e && !H.length && !G ? D("GLOBAL_No_Result") : D("");
18722
+ !e && !H.length ? S("GLOBAL_No_Result") : e && !H.length && G ? S("GLOBAL_Search_Loading") : e && !I && (A && H.length || !A) ? S("GLOBAL_Start_typing") : e && !H.length && !G ? S("GLOBAL_No_Result") : S("");
18723
18723
  }, [e, H, G, A, I]);
18724
18724
  let ce = null;
18725
18725
  function le(de) {
18726
- ce = de, W && (L(!1), Z.current && ce && hB(Z.current, ce));
18726
+ ce = de, W && (M(!1), Z.current && ce && hB(Z.current, ce));
18727
18727
  }
18728
18728
  Dg(
18729
18729
  f,
@@ -18733,7 +18733,7 @@ const U3 = p.div`
18733
18733
  }
18734
18734
  })
18735
18735
  );
18736
- const ke = M(
18736
+ const ke = L(
18737
18737
  (de, je) => {
18738
18738
  if (de?.stopPropagation(), !m) {
18739
18739
  if (h)
@@ -18752,29 +18752,29 @@ const U3 = p.div`
18752
18752
  [e, h, v, m, w, t, o]
18753
18753
  ), oe = (de) => {
18754
18754
  t && O(de.target.value ?? "");
18755
- }, re = M(
18755
+ }, re = L(
18756
18756
  (de) => {
18757
18757
  if (!m)
18758
18758
  if (de.key === "ArrowDown") {
18759
18759
  if (!k) {
18760
- z(!0), L(!0);
18760
+ z(!0), M(!0);
18761
18761
  return;
18762
18762
  }
18763
18763
  te(k ? (X + 1) % H.length : 0);
18764
18764
  } else if (de.key === "ArrowUp") {
18765
18765
  if (!k) {
18766
- L(!0), z(!0);
18766
+ M(!0), z(!0);
18767
18767
  return;
18768
18768
  }
18769
18769
  te(k && X > 0 ? X - 1 : H.length - 1);
18770
18770
  } else if (de.code === "Space" && !t && !k) {
18771
18771
  de.preventDefault();
18772
18772
  const je = H.findIndex((ge) => Jr(o, ge));
18773
- te(je >= 0 ? je : 0), z(!0), L(!0);
18773
+ te(je >= 0 ? je : 0), z(!0), M(!0);
18774
18774
  } else if (de.code === "Enter" && (X !== void 0 || a)) {
18775
18775
  if (de.preventDefault(), !k) {
18776
18776
  const ge = H.findIndex((yt) => Jr(o, yt));
18777
- te(ge >= 0 ? ge : 0), z(!0), L(!0);
18777
+ te(ge >= 0 ? ge : 0), z(!0), M(!0);
18778
18778
  return;
18779
18779
  }
18780
18780
  const je = u.group ? H.map((ge) => ({ el: ge, group: C(ge) })).sort((ge, yt) => ge.group === yt.group ? 0 : ge.group < yt.group ? -1 : 1).map((ge) => ge.el)[X] : H[X];
@@ -18838,7 +18838,7 @@ const U3 = p.div`
18838
18838
  const de = H.findIndex((je) => Jr(o, je));
18839
18839
  te(de >= 0 ? de : 0);
18840
18840
  }
18841
- z((de) => !de), L(!0);
18841
+ z((de) => !de), M(!0);
18842
18842
  },
18843
18843
  sizeVariant: u.size,
18844
18844
  noMargin: c,
@@ -19491,55 +19491,61 @@ const U3 = p.div`
19491
19491
  t.value ? e === "date" ? Yi(new Date(t.value)) : Wi(new Date(t.value)) : ""
19492
19492
  ), [a, l] = E(t.value ? new Date(t.value) : /* @__PURE__ */ new Date()), [c, d] = E(
19493
19493
  t.value ? new Date(t.value) : void 0
19494
- ), [u, f] = E(t.value ? Fl(new Date(t.value)).slice(0, 5) : "00:00"), [g, h] = E(!1);
19494
+ ), [u, f] = E(t.value ? Fl(new Date(t.value)).slice(0, 5) : "00:00"), [g, h] = E(!1), m = L((C) => /^(19|20)\d{2}-\d{2}-\d{2}/.test(C), []), v = L((C) => /^\d{2}:\d{2}$/.test(C), []);
19495
19495
  j(() => {
19496
19496
  o(
19497
19497
  t.value ? e === "date" ? Yi(new Date(t.value)) : Wi(new Date(t.value)) : ""
19498
19498
  ), l(t.value ? new Date(t.value) : /* @__PURE__ */ new Date()), d(t.value ? new Date(t.value) : void 0), f(t.value ? Fl(new Date(t.value)).slice(0, 5) : "00:00");
19499
19499
  }, [e, t.value]);
19500
- const m = M(
19501
- (y, C) => {
19502
- y ? (u && (y.setHours(Number(u.split(":")[0])), y.setMinutes(Number(u.split(":")[1]))), d(y), l(y), o(e === "datetime" ? Wi(y) : Yi(y))) : (o(""), d(void 0)), e === "date" && C();
19500
+ const w = L(
19501
+ (C, D) => {
19502
+ C ? (u && (C.setHours(Number(u.split(":")[0])), C.setMinutes(Number(u.split(":")[1]))), d(C), l(C), o(e === "datetime" ? Wi(C) : Yi(C))) : (o(""), d(void 0)), e === "date" && D();
19503
19503
  },
19504
19504
  // FIXME [React 19] Change patterns to avoid including setState functions in deps
19505
19505
  [e, u, o, d, l]
19506
- ), v = M(
19507
- (y) => {
19508
- if (f(y), c) {
19509
- const [C, S] = y.split(":").map(Number), I = new Date(c);
19510
- I.setHours(C, S, 0, 0), d(I), o(Wi(I));
19506
+ ), x = L(
19507
+ (C) => {
19508
+ if (f(C), c && v(C)) {
19509
+ const [D, I] = C.split(":").map(Number), O = new Date(c);
19510
+ O.setHours(D, I, 0, 0), d(O), o(Wi(O));
19511
19511
  }
19512
19512
  },
19513
19513
  // FIXME [React 19] Change patterns to avoid including setState functions in deps
19514
- [c, f, d, o]
19515
- ), { onChange: w } = t;
19514
+ [c, f, d, o, v]
19515
+ ), { onChange: b } = t;
19516
19516
  j(() => {
19517
- w?.(c ? e === "date" ? Yi(c) : Wi(c) : "");
19518
- }, [e, w, c]);
19519
- const x = (y) => {
19520
- o(y);
19521
- const C = new Date(y);
19522
- Number.isNaN(C.getTime()) ? (d(void 0), e === "datetime" && f("00:00"), l(/* @__PURE__ */ new Date())) : (d(C), l(C), e === "datetime" && f(
19523
- `${C.getHours().toString().padStart(2, "0")}:${C.getMinutes().toString().padStart(2, "0")}`
19524
- ));
19525
- }, b = $(() => Array.from({ length: 24 }, (C, S) => S.toString().padStart(2, "0")).map((C) => [
19517
+ b?.(c ? e === "date" ? Yi(c) : Wi(c) : "");
19518
+ }, [e, b, c]), j(() => {
19519
+ try {
19520
+ if (m(i)) {
19521
+ const C = new Date(i);
19522
+ Number.isNaN(C.getTime()) ? (d(void 0), e === "datetime" && f("00:00"), l(/* @__PURE__ */ new Date())) : (d(C), l(C), e === "datetime" && f(
19523
+ `${C.getHours().toString().padStart(2, "0")}:${C.getMinutes().toString().padStart(2, "0")}`
19524
+ ));
19525
+ }
19526
+ } catch (C) {
19527
+ if (!(C instanceof RangeError))
19528
+ throw C;
19529
+ }
19530
+ }, [i, e, m]);
19531
+ const B = $(() => Array.from({ length: 24 }, (D, I) => I.toString().padStart(2, "0")).map((D) => [
19526
19532
  {
19527
- value: `${C}:00`,
19528
- label: `${C} : 00`
19533
+ value: `${D}:00`,
19534
+ label: `${D} : 00`
19529
19535
  },
19530
19536
  {
19531
- value: `${C}:15`,
19532
- label: `${C} : 15`
19537
+ value: `${D}:15`,
19538
+ label: `${D} : 15`
19533
19539
  },
19534
19540
  {
19535
- value: `${C}:30`,
19536
- label: `${C} : 30`
19541
+ value: `${D}:30`,
19542
+ label: `${D} : 30`
19537
19543
  },
19538
19544
  {
19539
- value: `${C}:45`,
19540
- label: `${C} : 45`
19545
+ value: `${D}:45`,
19546
+ label: `${D} : 45`
19541
19547
  }
19542
- ]).flat(), []), B = $(() => {
19548
+ ]).flat(), []), y = $(() => {
19543
19549
  switch (n.locale) {
19544
19550
  case "fr":
19545
19551
  return X3;
@@ -19565,11 +19571,12 @@ const U3 = p.div`
19565
19571
  id: t.name,
19566
19572
  ...t,
19567
19573
  value: i,
19568
- onChange: (y) => x(y.target.value),
19574
+ onChange: (C) => o(C.target.value),
19569
19575
  ref: A,
19570
19576
  placeholder: t.placeholder ?? n.formatMessage({
19571
19577
  id: e === "datetime" ? "GLOBAL_DateTime_Placeholder" : "GLOBAL_Date_Placeholder"
19572
- })
19578
+ }),
19579
+ error: !!i && !m(i)
19573
19580
  }
19574
19581
  ),
19575
19582
  !!i && /* @__PURE__ */ s.jsx(K3, { children: /* @__PURE__ */ s.jsx(
@@ -19578,7 +19585,7 @@ const U3 = p.div`
19578
19585
  icon: "icon-times",
19579
19586
  size: "small",
19580
19587
  onClick: () => {
19581
- x("");
19588
+ o("");
19582
19589
  },
19583
19590
  bg: "white",
19584
19591
  "aria-hidden": !0,
@@ -19599,7 +19606,7 @@ const U3 = p.div`
19599
19606
  ) })
19600
19607
  ] }),
19601
19608
  offset: r.space.md,
19602
- dropdown: (y) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
19609
+ dropdown: (C) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
19603
19610
  /* @__PURE__ */ s.jsx(V3, { children: /* @__PURE__ */ s.jsx(
19604
19611
  K2,
19605
19612
  {
@@ -19608,8 +19615,8 @@ const U3 = p.div`
19608
19615
  onMonthChange: l,
19609
19616
  mode: "single",
19610
19617
  selected: c,
19611
- onSelect: (C) => m(C, y),
19612
- locale: B,
19618
+ onSelect: (D) => w(D, C),
19619
+ locale: y,
19613
19620
  weekStartsOn: 1,
19614
19621
  captionLayout: "dropdown"
19615
19622
  }
@@ -19618,13 +19625,13 @@ const U3 = p.div`
19618
19625
  g && /* @__PURE__ */ s.jsx(q3, { children: /* @__PURE__ */ s.jsx(
19619
19626
  Ci,
19620
19627
  {
19621
- options: b,
19622
- value: b.find((C) => C.value === u),
19623
- onChange: (C) => {
19624
- v(C.value), h(!1);
19628
+ options: B,
19629
+ value: B.find((D) => D.value === u),
19630
+ onChange: (D) => {
19631
+ x(D.value), h(!1);
19625
19632
  },
19626
19633
  name: "",
19627
- getLabel: (C) => C.label,
19634
+ getLabel: (D) => D.label,
19628
19635
  required: !0,
19629
19636
  defaultOpen: !0
19630
19637
  }
@@ -19634,7 +19641,7 @@ const U3 = p.div`
19634
19641
  {
19635
19642
  type: "time",
19636
19643
  value: u,
19637
- onChange: (C) => v(C.target.value),
19644
+ onChange: (D) => x(D.target.value),
19638
19645
  placeholder: n.formatMessage({ id: "GLOBAL_Select_Time" })
19639
19646
  }
19640
19647
  ),
@@ -19643,8 +19650,8 @@ const U3 = p.div`
19643
19650
  {
19644
19651
  icon: "icon-chevron-down",
19645
19652
  size: "small",
19646
- onClick: (C) => {
19647
- C?.stopPropagation(), h((S) => !S);
19653
+ onClick: (D) => {
19654
+ D?.stopPropagation(), h((I) => !I);
19648
19655
  },
19649
19656
  bg: "white",
19650
19657
  "aria-hidden": !0,
@@ -20112,10 +20119,10 @@ const nU = p.div`
20112
20119
  mocks: i,
20113
20120
  mode: o = "view"
20114
20121
  }) => {
20115
- const a = q(), [l, c] = E(!1), [d, u] = E(), [f, g] = E([]), h = M(
20122
+ const a = q(), [l, c] = E(!1), [d, u] = E(), [f, g] = E([]), h = L(
20116
20123
  (w) => i?.fileGetDownloads ? i.fileGetDownloads(w) : SA.file.getDownload(w),
20117
20124
  [i]
20118
- ), m = M(
20125
+ ), m = L(
20119
20126
  (w) => {
20120
20127
  c(!0), h(w).then((x) => {
20121
20128
  u(x.result.list);
@@ -20124,7 +20131,7 @@ const nU = p.div`
20124
20131
  });
20125
20132
  },
20126
20133
  [h, r]
20127
- ), v = M(() => {
20134
+ ), v = L(() => {
20128
20135
  c(!1), u(void 0);
20129
20136
  }, []);
20130
20137
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -20255,10 +20262,10 @@ const nU = p.div`
20255
20262
  "pptx",
20256
20263
  "pdf"
20257
20264
  ], vo = ({ files: e, getAccessHash: t, onError: A, onDelete: n, mode: r = "view" }) => {
20258
- const i = q(), o = M(
20265
+ const i = q(), o = L(
20259
20266
  async (d) => t || (await SA.object.getAccessHash(`fileArticle/${d}`)).result,
20260
20267
  [t]
20261
- ), a = M(
20268
+ ), a = L(
20262
20269
  (d) => {
20263
20270
  d && o(d.id).then((u) => {
20264
20271
  window.open(`/ng/rr/file/${d.id}/${u}`, "_blank");
@@ -21037,13 +21044,13 @@ const qa = {
21037
21044
  const o = e.getSize(), a = e ? e.getLeafHeaders().map((w) => [w.column.id, w.column.getSize()]) : [[n.id, n.getSize()]], l = lu(i) ? Math.round(i.touches[0].clientX) : i.clientX, c = {}, d = (w, x) => {
21038
21045
  typeof x == "number" && (t.setColumnSizingInfo((b) => {
21039
21046
  var B, y;
21040
- const C = t.options.columnResizeDirection === "rtl" ? -1 : 1, S = (x - ((B = b?.startOffset) != null ? B : 0)) * C, I = Math.max(S / ((y = b?.startSize) != null ? y : 0), -0.999999);
21047
+ const C = t.options.columnResizeDirection === "rtl" ? -1 : 1, D = (x - ((B = b?.startOffset) != null ? B : 0)) * C, I = Math.max(D / ((y = b?.startSize) != null ? y : 0), -0.999999);
21041
21048
  return b.columnSizingStart.forEach((O) => {
21042
21049
  let [F, k] = O;
21043
21050
  c[F] = Math.round(Math.max(k + k * I, 0) * 100) / 100;
21044
21051
  }), {
21045
21052
  ...b,
21046
- deltaOffset: S,
21053
+ deltaOffset: D,
21047
21054
  deltaPercentage: I
21048
21055
  };
21049
21056
  }), (t.options.columnResizeMode === "onChange" || w === "end") && t.setColumnSizing((b) => ({
@@ -22294,7 +22301,7 @@ const _c = (e) => {
22294
22301
  const [t, A] = E(1), [n, r] = E([]), i = $(() => n.length ? n : e.data, [e.data, n]), o = $(() => e.columns, [e.columns]), a = ae([]), [l, c] = E(0), [d, u] = E(), [f, g] = E(() => ({
22295
22302
  pageIndex: 0,
22296
22303
  pageSize: e.config?.pagination && e.config?.pagination.type !== "loadMore" && "perPage" in e.config.pagination ? e.config.pagination.perPage : 10
22297
- })), h = e?.config?.draggable ?? !1, m = M((O, F) => "uri" in O && typeof O.uri == "string" ? O.uri : O.id && O.type ? `${O.type}/${O.id}` : F.toString(), []), v = $(() => ew(e.config?.orders).map((O) => ({ id: O.id, desc: !!O.desc })), [e.config?.orders]), [w, x] = E(v), b = b5({
22304
+ })), h = e?.config?.draggable ?? !1, m = L((O, F) => "uri" in O && typeof O.uri == "string" ? O.uri : O.id && O.type ? `${O.type}/${O.id}` : F.toString(), []), v = $(() => ew(e.config?.orders).map((O) => ({ id: O.id, desc: !!O.desc })), [e.config?.orders]), [w, x] = E(v), b = b5({
22298
22305
  data: i,
22299
22306
  columns: o,
22300
22307
  getRowId: m,
@@ -22335,13 +22342,13 @@ const _c = (e) => {
22335
22342
  }, C = (O) => {
22336
22343
  const F = O.getIsSorted && O.getIsSorted() !== !1, k = O.getIsSorted?.() === "desc";
22337
22344
  return O.getCanSort?.() ? F ? k ? /* @__PURE__ */ s.jsx(ie, { name: "icon-sort-desc", size: 12, color: "grey4" }) : /* @__PURE__ */ s.jsx(ie, { name: "icon-sort-asc", size: 12, color: "grey4" }) : /* @__PURE__ */ s.jsx(ie, { name: "icon-sort", size: 12, color: "grey2" }) : "";
22338
- }, S = b.getHeaderGroups(), I = b.getRowModel().rows;
22345
+ }, D = b.getHeaderGroups(), I = b.getRowModel().rows;
22339
22346
  return /* @__PURE__ */ s.jsxs(An, { children: [
22340
22347
  /* @__PURE__ */ s.jsxs(I5, { "data-cy": e.dataCy, className: e.className, loading: e.loading, title: e.title, children: [
22341
- /* @__PURE__ */ s.jsx(O5, { children: S.map((O, F) => /* @__PURE__ */ s.jsxs(Yl, { $isHead: !0, children: [
22348
+ /* @__PURE__ */ s.jsx(O5, { children: D.map((O, F) => /* @__PURE__ */ s.jsxs(Yl, { $isHead: !0, children: [
22342
22349
  h && /* @__PURE__ */ s.jsx(_v, {}),
22343
22350
  O.headers.map((k) => {
22344
- const z = k.column, W = z.getCanSort ? z.getCanSort() : !1, L = z.getIsSorted ? z.getIsSorted() !== !1 : !1, X = z.getIsSorted ? z.getIsSorted() === "desc" : !1;
22351
+ const z = k.column, W = z.getCanSort ? z.getCanSort() : !1, M = z.getIsSorted ? z.getIsSorted() !== !1 : !1, X = z.getIsSorted ? z.getIsSorted() === "desc" : !1;
22345
22352
  return /* @__PURE__ */ s.jsxs(
22346
22353
  _v,
22347
22354
  {
@@ -22353,7 +22360,7 @@ const _c = (e) => {
22353
22360
  te.key === "Enter" && z.toggleSorting?.();
22354
22361
  } : void 0,
22355
22362
  tabIndex: W ? 0 : void 0,
22356
- "aria-sort": W ? L ? X ? "descending" : "ascending" : "none" : void 0,
22363
+ "aria-sort": W ? M ? X ? "descending" : "ascending" : "none" : void 0,
22357
22364
  onClick: z.getToggleSortingHandler(),
22358
22365
  children: [
22359
22366
  qv(k.column.columnDef.header, k.getContext()),
@@ -22376,7 +22383,7 @@ const _c = (e) => {
22376
22383
  },
22377
22384
  O.id
22378
22385
  )) }) }),
22379
- e.loading && /* @__PURE__ */ s.jsx(Zv, { children: /* @__PURE__ */ s.jsx(Yl, { children: /* @__PURE__ */ s.jsx($v, { colSpan: (S[0]?.headers?.length ?? 0) + (h ? 1 : 0), children: /* @__PURE__ */ s.jsx(j5, { children: /* @__PURE__ */ s.jsx(Ge, { size: "l" }) }) }) }, "loader") })
22386
+ e.loading && /* @__PURE__ */ s.jsx(Zv, { children: /* @__PURE__ */ s.jsx(Yl, { children: /* @__PURE__ */ s.jsx($v, { colSpan: (D[0]?.headers?.length ?? 0) + (h ? 1 : 0), children: /* @__PURE__ */ s.jsx(j5, { children: /* @__PURE__ */ s.jsx(Ge, { size: "l" }) }) }) }, "loader") })
22380
22387
  ] }),
22381
22388
  e.config?.pagination && !e.loading ? e.config.pagination?.type === "loadMore" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: !e.config.pagination.end && /* @__PURE__ */ s.jsx(Q5, { children: /* @__PURE__ */ s.jsx(
22382
22389
  xe,
@@ -22463,7 +22470,7 @@ const _c = (e) => {
22463
22470
  `, N5 = p.hr`
22464
22471
  height: ${({ theme: e }) => e.space.md}px;
22465
22472
  `, gi = (e, t) => e.some((A) => A === t), Fh = (e, t) => gi(e, t) ? [...e].filter((A) => A !== t) : [...e, t], k5 = ({ files: e, initialUris: t, allowMultiSelection: A, onSelectFile: n }) => {
22466
- const r = q(), [i, o] = E(t), a = M(
22473
+ const r = q(), [i, o] = E(t), a = L(
22467
22474
  (l) => {
22468
22475
  o(l), n && n(l);
22469
22476
  },
@@ -22583,12 +22590,12 @@ const _c = (e) => {
22583
22590
  _audience: [],
22584
22591
  _url: "",
22585
22592
  _nbItems: 0
22586
- }, [f, g] = E([]), [h, m] = E([]), [v, w] = E({}), [x, b] = E(u.uri), [B, y] = E([u]), [C, S] = E(!1), [I, O] = E([]), [F, k] = E(n), [z, W] = E(A), [L, X] = E([]), [te, G] = E(!1);
22593
+ }, [f, g] = E([]), [h, m] = E([]), [v, w] = E({}), [x, b] = E(u.uri), [B, y] = E([u]), [C, D] = E(!1), [I, O] = E([]), [F, k] = E(n), [z, W] = E(A), [M, X] = E([]), [te, G] = E(!1);
22587
22594
  j(() => {
22588
22595
  Q();
22589
22596
  }, []);
22590
22597
  const _ = (R) => {
22591
- G(!1), Hl(B, R) || y([...B, R]), S(!0), e ? N(R.uri) : D(R.uri);
22598
+ G(!1), Hl(B, R) || y([...B, R]), D(!0), e ? N(R.uri) : S(R.uri);
22592
22599
  }, V = (R) => {
22593
22600
  Hl(B, R) || y([...B, R]), v[R.uri] || w({
22594
22601
  ...v,
@@ -22599,9 +22606,9 @@ const _c = (e) => {
22599
22606
  _attachedFiles: R._attachedFiles
22600
22607
  }
22601
22608
  }), b(R.uri);
22602
- }, Q = M(async () => {
22603
- o && (S(!0), o.filebank.getRootFolders({}, { signal: d.signal }).then((R) => {
22604
- R !== void 0 && (g([...f, ...R.result.data]), S(!1), w({
22609
+ }, Q = L(async () => {
22610
+ o && (D(!0), o.filebank.getRootFolders({}, { signal: d.signal }).then((R) => {
22611
+ R !== void 0 && (g([...f, ...R.result.data]), D(!1), w({
22605
22612
  ...v,
22606
22613
  "root/root": {
22607
22614
  parent: void 0,
@@ -22612,9 +22619,9 @@ const _c = (e) => {
22612
22619
  }).catch((R) => {
22613
22620
  a && a(R.errorMsg ?? c.formatMessage({ id: "GLOBAL_Error" }));
22614
22621
  }));
22615
- }, [d.signal, f, o, c, a, v]), D = async (R) => {
22622
+ }, [d.signal, f, o, c, a, v]), S = async (R) => {
22616
22623
  o && o.filebank.getFolders(R, { signal: d.signal }).then((J) => {
22617
- J.result && !v[R] && (g([...f, ...J.result]), S(!1), w({
22624
+ J.result && !v[R] && (g([...f, ...J.result]), D(!1), w({
22618
22625
  ...v,
22619
22626
  [R]: {
22620
22627
  parent: R,
@@ -22638,7 +22645,7 @@ const _c = (e) => {
22638
22645
  });
22639
22646
  }).catch((Y) => {
22640
22647
  a && a(Y.errorMsg ?? c.formatMessage({ id: "GLOBAL_Error" }));
22641
- }), b(R), S(!1);
22648
+ }), b(R), D(!1);
22642
22649
  }).catch((J) => {
22643
22650
  a && a(J.errorMsg ?? c.formatMessage({ id: "GLOBAL_Error" }));
22644
22651
  });
@@ -22649,18 +22656,18 @@ const _c = (e) => {
22649
22656
  R.push(...J._attachedFiles);
22650
22657
  }), O(R);
22651
22658
  }, [h]);
22652
- const Z = (R) => R.type === "folder" || R.type === "rootFolder", U = M(
22659
+ const Z = (R) => R.type === "folder" || R.type === "rootFolder", U = L(
22653
22660
  (R) => {
22654
22661
  if (!R) {
22655
22662
  G(!1);
22656
22663
  return;
22657
22664
  }
22658
- S(!0), G(!0), x === u.uri ? o?.filebank.getRootFolders({
22665
+ D(!0), G(!0), x === u.uri ? o?.filebank.getRootFolders({
22659
22666
  query: R
22660
22667
  }).then((J) => {
22661
22668
  X(J.result.data);
22662
22669
  }).finally(() => {
22663
- S(!1);
22670
+ D(!1);
22664
22671
  }) : o?.filebank.searchContent(
22665
22672
  {
22666
22673
  uri: x,
@@ -22670,7 +22677,7 @@ const _c = (e) => {
22670
22677
  ).then((J) => {
22671
22678
  X(J.result.data.filter(Z));
22672
22679
  }).finally(() => {
22673
- S(!1);
22680
+ D(!1);
22674
22681
  });
22675
22682
  },
22676
22683
  [x, o?.filebank, u.uri]
@@ -22690,10 +22697,10 @@ const _c = (e) => {
22690
22697
  ),
22691
22698
  C && /* @__PURE__ */ s.jsx(M5, { children: /* @__PURE__ */ s.jsx(Ge, { size: "m" }) }),
22692
22699
  !C && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
22693
- te && (L.length > 0 ? /* @__PURE__ */ s.jsx(
22700
+ te && (M.length > 0 ? /* @__PURE__ */ s.jsx(
22694
22701
  gC,
22695
22702
  {
22696
- folders: L,
22703
+ folders: M,
22697
22704
  allowMultiSelection: t,
22698
22705
  onClickFolder: _,
22699
22706
  onSelectFolder: r !== void 0 ? (R) => {
@@ -23198,7 +23205,7 @@ const nz = p.label`
23198
23205
  onUploadSuccess: i,
23199
23206
  onDeleteSuccess: o
23200
23207
  }) => {
23201
- const [a, l] = E(!0), [c, d] = E(0), [u, f] = E(A), [g, h] = E(-1), [m, v] = E(void 0), w = M(
23208
+ const [a, l] = E(!0), [c, d] = E(0), [u, f] = E(A), [g, h] = E(-1), [m, v] = E(void 0), w = L(
23202
23209
  async (b, B, y) => {
23203
23210
  l(!0);
23204
23211
  const C = await ng(b, B, y);
@@ -23297,9 +23304,9 @@ const nz = p.label`
23297
23304
  onDeleteSuccess: g,
23298
23305
  existingFiles: h,
23299
23306
  deleteFile: m
23300
- } = e, v = q(), [w, x] = E(0), [b] = E(!1), [B, y] = E(!1), [C, S] = E(cz), [I, O] = E(
23307
+ } = e, v = q(), [w, x] = E(0), [b] = E(!1), [B, y] = E(!1), [C, D] = E(cz), [I, O] = E(
23301
23308
  h?.map((re) => ({ ...re, loading: !1 })) ?? []
23302
- ), [F, k] = E(!!e.directFilePopupOpening), [z, W] = E("upload"), [L, X] = E([]), [te, G] = E(!1), [_, V] = E([]), [Q, D] = E(), N = $(
23309
+ ), [F, k] = E(!!e.directFilePopupOpening), [z, W] = E("upload"), [M, X] = E([]), [te, G] = E(!1), [_, V] = E([]), [Q, S] = E(), N = $(
23303
23310
  () => ({
23304
23311
  fileBank: v.formatMessage({ id: "INPUT_FILE_ADVANCED_FileBank" }),
23305
23312
  drive_microsoft_graph: v.formatMessage({ id: "INPUT_FILE_ADVANCED_Microsoft_365" }),
@@ -23308,13 +23315,13 @@ const nz = p.label`
23308
23315
  upload: v.formatMessage({ id: "GLOBAL_Import" })
23309
23316
  }),
23310
23317
  [v]
23311
- ), Z = M(
23318
+ ), Z = L(
23312
23319
  (re) => {
23313
23320
  const Re = re.target.files, Oe = [];
23314
23321
  for (let Pe = 0; Pe < Re.length; Pe++)
23315
23322
  Oe.push(Object.assign(Re[Pe], { id: nn() }));
23316
23323
  if (a && l !== 1)
23317
- S({ ...C, files: a ? [...C.files, ...Oe] : Oe }), f && f(Oe.length);
23324
+ D({ ...C, files: a ? [...C.files, ...Oe] : Oe }), f && f(Oe.length);
23318
23325
  else if (d && "getUrl" in d && "token" in d && "postFile" in d) {
23319
23326
  const Pe = new FormData();
23320
23327
  Pe.append("attrName", n), Pe.append(n, Oe[0]), i !== void 0 && Pe.append("token", i), d.postFile(Pe).then((ht) => {
@@ -23326,7 +23333,7 @@ const nz = p.label`
23326
23333
  });
23327
23334
  },
23328
23335
  [l, a, n, f, u, i, C, d]
23329
- ), U = M(
23336
+ ), U = L(
23330
23337
  (re) => new Promise((De, Re) => {
23331
23338
  m && (O(I?.map((Oe) => Oe.id === re ? { ...Oe, loading: !0 } : Oe)), m(re).then(() => {
23332
23339
  O(I?.filter((Oe) => Oe.id !== re)), De();
@@ -23342,16 +23349,16 @@ const nz = p.label`
23342
23349
  }));
23343
23350
  }),
23344
23351
  [m, I]
23345
- ), R = M((re) => {
23352
+ ), R = L((re) => {
23346
23353
  y(!0), re.preventDefault();
23347
- }, []), J = M(
23354
+ }, []), J = L(
23348
23355
  (re) => {
23349
23356
  re.preventDefault();
23350
23357
  const De = re.dataTransfer.files, Re = [];
23351
23358
  for (let Oe = 0; Oe < De.length; Oe++)
23352
23359
  Re.push(De[Oe]);
23353
23360
  if (a && l !== 1)
23354
- S({ ...C, files: a ? [...C.files, ...Re] : Re }), f && f(Re.length);
23361
+ D({ ...C, files: a ? [...C.files, ...Re] : Re }), f && f(Re.length);
23355
23362
  else {
23356
23363
  if (d && "getUrl" in d && "token" in d && "postFile" in d) {
23357
23364
  const Oe = new FormData();
@@ -23366,24 +23373,24 @@ const nz = p.label`
23366
23373
  }
23367
23374
  },
23368
23375
  [l, a, n, f, u, i, C, d]
23369
- ), Y = M((re) => {
23376
+ ), Y = L((re) => {
23370
23377
  re.stopPropagation(), k(!0);
23371
- }, []), H = M(() => {
23372
- L.forEach((re) => {
23378
+ }, []), H = L(() => {
23379
+ M.forEach((re) => {
23373
23380
  m && m(re.id).then(() => {
23374
23381
  X([]);
23375
23382
  });
23376
23383
  }), V([]);
23377
- }, [m, L]), ce = M(() => {
23384
+ }, [m, M]), ce = L(() => {
23378
23385
  e.directFilePopupOpening ? e.directFilePopupOpening.onClose() : k(!1), H();
23379
- }, [H, e.directFilePopupOpening]), le = M(() => {
23386
+ }, [H, e.directFilePopupOpening]), le = L(() => {
23380
23387
  e.directFilePopupOpening ? e.directFilePopupOpening.onClose() : k(!1), X([]), V([]), G(!1);
23381
23388
  }, [e.directFilePopupOpening]), ke = $(
23382
23389
  () => z.replace(/(drive_|_)/g, ""),
23383
23390
  [z]
23384
- ), oe = M(() => {
23385
- L.length > 0 && e.handlers?.file.copy ? (G(!0), Promise.all(
23386
- L.map(async (re) => {
23391
+ ), oe = L(() => {
23392
+ M.length > 0 && e.handlers?.file.copy ? (G(!0), Promise.all(
23393
+ M.map(async (re) => {
23387
23394
  let De = re;
23388
23395
  return re.type === "fileArticle" && e.handlers?.file.copy && (De = (await e.handlers.file.copy({
23389
23396
  id: re.id,
@@ -23426,7 +23433,7 @@ const nz = p.label`
23426
23433
  ]), u && re.forEach((De) => u(De)), le();
23427
23434
  }));
23428
23435
  }, [
23429
- L,
23436
+ M,
23430
23437
  e.handlers,
23431
23438
  _,
23432
23439
  Q,
@@ -23481,7 +23488,7 @@ const nz = p.label`
23481
23488
  x((Pe) => Pe + 1), u && u(Re, Oe);
23482
23489
  },
23483
23490
  onDeleteSuccess: () => {
23484
- S((Re) => ({
23491
+ D((Re) => ({
23485
23492
  ...Re,
23486
23493
  files: Re.files.filter((Oe, Pe) => Pe !== De)
23487
23494
  })), g && g(De);
@@ -23517,7 +23524,7 @@ const nz = p.label`
23517
23524
  {
23518
23525
  color: "valid",
23519
23526
  clickHandler: oe,
23520
- disabled: L.length === 0 && _.length === 0,
23527
+ disabled: M.length === 0 && _.length === 0,
23521
23528
  loading: te,
23522
23529
  children: v.formatMessage({ id: "GLOBAL_Add" }),
23523
23530
  dataCy: "inputFile-modal-add-btn"
@@ -23575,8 +23582,8 @@ const nz = p.label`
23575
23582
  onError: e.dispatchOnError,
23576
23583
  handlers: e.handlers,
23577
23584
  handleLogin: !0,
23578
- onLogin: D,
23579
- onLogout: () => D(void 0)
23585
+ onLogin: S,
23586
+ onLogout: () => S(void 0)
23580
23587
  }
23581
23588
  ),
23582
23589
  z === "drive_dropbox" && e.handlers && /* @__PURE__ */ s.jsx(
@@ -23587,8 +23594,8 @@ const nz = p.label`
23587
23594
  onError: e.dispatchOnError,
23588
23595
  handlers: e.handlers,
23589
23596
  handleLogin: !0,
23590
- onLogin: D,
23591
- onLogout: () => D(void 0)
23597
+ onLogin: S,
23598
+ onLogout: () => S(void 0)
23592
23599
  }
23593
23600
  ),
23594
23601
  z === "drive_google" && /* @__PURE__ */ s.jsx(
@@ -24245,10 +24252,10 @@ const Oz = p.div`
24245
24252
  object-fit: contain;
24246
24253
  `, qr = [0, 90, 180, 270];
24247
24254
  function Ph({ save: e, ...t }) {
24248
- const A = q(), n = lt(), r = ae(null), i = ae(null), [o, a] = E(1), [l, c] = E(1), [d, u] = E(0), [f, g] = E(1), [h, m] = E(!t.allowCustomRatio), [v, w] = E(), [x, b] = E(!1), [B, y] = E(!1), C = v && v.width > 0 && v.height > 0, S = d === 0 || d === 180, I = h && v ? v.width / v.height : void 0, O = M(
24255
+ const A = q(), n = lt(), r = ae(null), i = ae(null), [o, a] = E(1), [l, c] = E(1), [d, u] = E(0), [f, g] = E(1), [h, m] = E(!t.allowCustomRatio), [v, w] = E(), [x, b] = E(!1), [B, y] = E(!1), C = v && v.width > 0 && v.height > 0, D = d === 0 || d === 180, I = h && v ? v.width / v.height : void 0, O = L(
24249
24256
  (W) => {
24250
24257
  if (r.current) {
24251
- const { width: L, height: X } = r.current, te = S ? L : X * f, G = S ? X : L * f;
24258
+ const { width: M, height: X } = r.current, te = D ? M : X * f, G = D ? X : M * f;
24252
24259
  w(
24253
24260
  Ez(
24254
24261
  Cz(
@@ -24267,12 +24274,12 @@ function Ph({ save: e, ...t }) {
24267
24274
  );
24268
24275
  }
24269
24276
  },
24270
- [S, f]
24271
- ), F = M(() => {
24277
+ [D, f]
24278
+ ), F = L(() => {
24272
24279
  O(I ?? t.aspectRatio ?? o);
24273
- }, [O, I, o, t.aspectRatio]), k = M(() => {
24280
+ }, [O, I, o, t.aspectRatio]), k = L(() => {
24274
24281
  if (C && r.current) {
24275
- const { width: W, naturalWidth: L } = r.current, X = L / W / f;
24282
+ const { width: W, naturalWidth: M } = r.current, X = M / W / f;
24276
24283
  e({
24277
24284
  x: Math.round(v.x * X),
24278
24285
  y: Math.round(v.y * X),
@@ -24281,11 +24288,11 @@ function Ph({ save: e, ...t }) {
24281
24288
  rotation: d
24282
24289
  });
24283
24290
  }
24284
- }, [C, v, e, d, f]), z = M(
24291
+ }, [C, v, e, d, f]), z = L(
24285
24292
  (W) => {
24286
- const L = qr.indexOf(d);
24293
+ const M = qr.indexOf(d);
24287
24294
  let X;
24288
- W === "left" ? X = L === 0 ? qr[qr.length - 1] : qr[L - 1] : X = L === qr.length - 1 ? qr[0] : qr[L + 1], u(X);
24295
+ W === "left" ? X = M === 0 ? qr[qr.length - 1] : qr[M - 1] : X = M === qr.length - 1 ? qr[0] : qr[M + 1], u(X);
24289
24296
  },
24290
24297
  [d]
24291
24298
  );
@@ -24300,14 +24307,14 @@ function Ph({ save: e, ...t }) {
24300
24307
  }
24301
24308
  }, [t.src]), j(() => {
24302
24309
  B && (r.current && a(
24303
- S ? r.current.width / r.current.height : r.current.height / r.current.width
24310
+ D ? r.current.width / r.current.height : r.current.height / r.current.width
24304
24311
  ), i.current && c(i.current.clientWidth / i.current.clientHeight));
24305
- }, [S, B]), j(() => {
24312
+ }, [D, B]), j(() => {
24306
24313
  if (B && r.current && i.current) {
24307
- const { height: W, width: L } = r.current;
24308
- S ? g(1) : L > W ? g(Math.max(L / W, r.current.height / L)) : g(Math.min(i.current.clientWidth / W, W / L));
24314
+ const { height: W, width: M } = r.current;
24315
+ D ? g(1) : M > W ? g(Math.max(M / W, r.current.height / M)) : g(Math.min(i.current.clientWidth / W, W / M));
24309
24316
  }
24310
- }, [S, B]), j(() => {
24317
+ }, [D, B]), j(() => {
24311
24318
  b(!0);
24312
24319
  }, [f]), j(() => {
24313
24320
  x && (b(!1), F());
@@ -24328,7 +24335,7 @@ function Ph({ save: e, ...t }) {
24328
24335
  containerAspect: l,
24329
24336
  aspect: o,
24330
24337
  naturalSize: { height: r.current?.naturalHeight, width: r.current?.naturalWidth },
24331
- isInitialAspect: S,
24338
+ isInitialAspect: D,
24332
24339
  children: /* @__PURE__ */ s.jsx(Iz, { crop: v, onChange: w, aspect: I, minWidth: 10, minHeight: 10, children: /* @__PURE__ */ s.jsx(Fz, { rotation: d, scale: f, src: t.src, ref: r }) })
24333
24340
  }
24334
24341
  ),
@@ -24530,7 +24537,7 @@ const Vz = ({
24530
24537
  label: l,
24531
24538
  ...c
24532
24539
  }, d) => {
24533
- const [u, f] = E(!1), g = ae(null), [h, m] = E(!1), [v, w] = E(!1), [x] = E(c.accept?.split(",").map((V) => V.replace(/\./g, "")) ?? ["jpg", "jpeg", "png"]), [b] = E(c.aspectRatio), [B, y] = E(0), [C, S] = E(!1), I = $(() => {
24540
+ const [u, f] = E(!1), g = ae(null), [h, m] = E(!1), [v, w] = E(!1), [x] = E(c.accept?.split(",").map((V) => V.replace(/\./g, "")) ?? ["jpg", "jpeg", "png"]), [b] = E(c.aspectRatio), [B, y] = E(0), [C, D] = E(!1), I = $(() => {
24534
24541
  if (n)
24535
24542
  return `/imagecache/original/${n.type}/${n.id}.png?_=${// eslint-disable-next-line react-hooks/purity
24536
24543
  n.dateModified ? bi(n.dateModified) : Date.now()}-${B}`;
@@ -24553,12 +24560,12 @@ const Vz = ({
24553
24560
  attrName: O,
24554
24561
  file: Q,
24555
24562
  token: c.token
24556
- }).then((D) => e(D.response.result)).finally(() => m(!1)));
24563
+ }).then((S) => e(S.response.result)).finally(() => m(!1)));
24557
24564
  }
24558
24565
  function W() {
24559
24566
  g?.current?.click?.();
24560
24567
  }
24561
- const L = (V) => {
24568
+ const M = (V) => {
24562
24569
  V.length === 1 && V[0].result && e(V[0].result);
24563
24570
  };
24564
24571
  function X(V) {
@@ -24570,7 +24577,7 @@ const Vz = ({
24570
24577
  }
24571
24578
  function te(V) {
24572
24579
  if (n) {
24573
- S(!0);
24580
+ D(!0);
24574
24581
  const Q = {
24575
24582
  x: V.x,
24576
24583
  y: V.y,
@@ -24579,13 +24586,13 @@ const Vz = ({
24579
24586
  rotation: V.rotation,
24580
24587
  killSize: !0
24581
24588
  };
24582
- SA.file.update(n.id, n.type, Q).then((D) => {
24589
+ SA.file.update(n.id, n.type, Q).then((S) => {
24583
24590
  w(!1), y(B + 1), e({
24584
24591
  ...n,
24585
- ...D.result
24592
+ ...S.result
24586
24593
  });
24587
24594
  }).finally(() => {
24588
- S(!1);
24595
+ D(!1);
24589
24596
  });
24590
24597
  }
24591
24598
  }
@@ -24607,7 +24614,7 @@ const Vz = ({
24607
24614
  ...c,
24608
24615
  accept: x.map((V) => "." + V).join(","),
24609
24616
  onLoading: m,
24610
- onChange: L,
24617
+ onChange: M,
24611
24618
  ref: g,
24612
24619
  value: n
24613
24620
  }
@@ -24955,14 +24962,14 @@ function p8() {
24955
24962
  }
24956
24963
  }
24957
24964
  }
24958
- var y = l, C = c, S = a, I = o, O = t, F = d, k = n, z = h, W = g, L = A, X = i, te = r, G = u, _ = !1;
24965
+ var y = l, C = c, D = a, I = o, O = t, F = d, k = n, z = h, W = g, M = A, X = i, te = r, G = u, _ = !1;
24959
24966
  function V(oe) {
24960
24967
  return _ || (_ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Q(oe) || B(oe) === l;
24961
24968
  }
24962
24969
  function Q(oe) {
24963
24970
  return B(oe) === c;
24964
24971
  }
24965
- function D(oe) {
24972
+ function S(oe) {
24966
24973
  return B(oe) === a;
24967
24974
  }
24968
24975
  function N(oe) {
@@ -24995,7 +25002,7 @@ function p8() {
24995
25002
  function ke(oe) {
24996
25003
  return B(oe) === u;
24997
25004
  }
24998
- At.AsyncMode = y, At.ConcurrentMode = C, At.ContextConsumer = S, At.ContextProvider = I, At.Element = O, At.ForwardRef = F, At.Fragment = k, At.Lazy = z, At.Memo = W, At.Portal = L, At.Profiler = X, At.StrictMode = te, At.Suspense = G, At.isAsyncMode = V, At.isConcurrentMode = Q, At.isContextConsumer = D, At.isContextProvider = N, At.isElement = Z, At.isForwardRef = U, At.isFragment = R, At.isLazy = J, At.isMemo = Y, At.isPortal = H, At.isProfiler = ce, At.isStrictMode = le, At.isSuspense = ke, At.isValidElementType = b, At.typeOf = B;
25005
+ At.AsyncMode = y, At.ConcurrentMode = C, At.ContextConsumer = D, At.ContextProvider = I, At.Element = O, At.ForwardRef = F, At.Fragment = k, At.Lazy = z, At.Memo = W, At.Portal = M, At.Profiler = X, At.StrictMode = te, At.Suspense = G, At.isAsyncMode = V, At.isConcurrentMode = Q, At.isContextConsumer = S, At.isContextProvider = N, At.isElement = Z, At.isForwardRef = U, At.isFragment = R, At.isLazy = J, At.isMemo = Y, At.isPortal = H, At.isProfiler = ce, At.isStrictMode = le, At.isSuspense = ke, At.isValidElementType = b, At.typeOf = B;
24999
25006
  })()), At;
25000
25007
  }
25001
25008
  var uw;
@@ -25128,9 +25135,9 @@ function w8() {
25128
25135
  return wu = function(a, l) {
25129
25136
  var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
25130
25137
  function u(Q) {
25131
- var D = Q && (c && Q[c] || Q[d]);
25132
- if (typeof D == "function")
25133
- return D;
25138
+ var S = Q && (c && Q[c] || Q[d]);
25139
+ if (typeof S == "function")
25140
+ return S;
25134
25141
  }
25135
25142
  var f = "<<anonymous>>", g = {
25136
25143
  array: w("array"),
@@ -25148,21 +25155,21 @@ function w8() {
25148
25155
  instanceOf: C,
25149
25156
  node: F(),
25150
25157
  objectOf: I,
25151
- oneOf: S,
25158
+ oneOf: D,
25152
25159
  oneOfType: O,
25153
25160
  shape: z,
25154
25161
  exact: W
25155
25162
  };
25156
- function h(Q, D) {
25157
- return Q === D ? Q !== 0 || 1 / Q === 1 / D : Q !== Q && D !== D;
25163
+ function h(Q, S) {
25164
+ return Q === S ? Q !== 0 || 1 / Q === 1 / S : Q !== Q && S !== S;
25158
25165
  }
25159
- function m(Q, D) {
25160
- this.message = Q, this.data = D && typeof D == "object" ? D : {}, this.stack = "";
25166
+ function m(Q, S) {
25167
+ this.message = Q, this.data = S && typeof S == "object" ? S : {}, this.stack = "";
25161
25168
  }
25162
25169
  m.prototype = Error.prototype;
25163
25170
  function v(Q) {
25164
25171
  if (process.env.NODE_ENV !== "production")
25165
- var D = {}, N = 0;
25172
+ var S = {}, N = 0;
25166
25173
  function Z(R, J, Y, H, ce, le, ke) {
25167
25174
  if (H = H || f, le = le || Y, ke !== A) {
25168
25175
  if (l) {
@@ -25172,10 +25179,10 @@ function w8() {
25172
25179
  throw oe.name = "Invariant Violation", oe;
25173
25180
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
25174
25181
  var re = H + ":" + Y;
25175
- !D[re] && // Avoid spamming the console because they are often not actionable except for lib authors
25182
+ !S[re] && // Avoid spamming the console because they are often not actionable except for lib authors
25176
25183
  N < 3 && (i(
25177
25184
  "You are manually calling a React.PropTypes validation function for the `" + le + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
25178
- ), D[re] = !0, N++);
25185
+ ), S[re] = !0, N++);
25179
25186
  }
25180
25187
  }
25181
25188
  return J[Y] == null ? R ? J[Y] === null ? new m("The " + ce + " `" + le + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new m("The " + ce + " `" + le + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : Q(J, Y, H, ce, le);
@@ -25184,7 +25191,7 @@ function w8() {
25184
25191
  return U.isRequired = Z.bind(null, !0), U;
25185
25192
  }
25186
25193
  function w(Q) {
25187
- function D(N, Z, U, R, J, Y) {
25194
+ function S(N, Z, U, R, J, Y) {
25188
25195
  var H = N[Z], ce = te(H);
25189
25196
  if (ce !== Q) {
25190
25197
  var le = G(H);
@@ -25195,13 +25202,13 @@ function w8() {
25195
25202
  }
25196
25203
  return null;
25197
25204
  }
25198
- return v(D);
25205
+ return v(S);
25199
25206
  }
25200
25207
  function x() {
25201
25208
  return v(o);
25202
25209
  }
25203
25210
  function b(Q) {
25204
- function D(N, Z, U, R, J) {
25211
+ function S(N, Z, U, R, J) {
25205
25212
  if (typeof Q != "function")
25206
25213
  return new m("Property `" + J + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
25207
25214
  var Y = N[Z];
@@ -25216,11 +25223,11 @@ function w8() {
25216
25223
  }
25217
25224
  return null;
25218
25225
  }
25219
- return v(D);
25226
+ return v(S);
25220
25227
  }
25221
25228
  function B() {
25222
- function Q(D, N, Z, U, R) {
25223
- var J = D[N];
25229
+ function Q(S, N, Z, U, R) {
25230
+ var J = S[N];
25224
25231
  if (!a(J)) {
25225
25232
  var Y = te(J);
25226
25233
  return new m("Invalid " + U + " `" + R + "` of type " + ("`" + Y + "` supplied to `" + Z + "`, expected a single ReactElement."));
@@ -25230,8 +25237,8 @@ function w8() {
25230
25237
  return v(Q);
25231
25238
  }
25232
25239
  function y() {
25233
- function Q(D, N, Z, U, R) {
25234
- var J = D[N];
25240
+ function Q(S, N, Z, U, R) {
25241
+ var J = S[N];
25235
25242
  if (!e.isValidElementType(J)) {
25236
25243
  var Y = te(J);
25237
25244
  return new m("Invalid " + U + " `" + R + "` of type " + ("`" + Y + "` supplied to `" + Z + "`, expected a single ReactElement type."));
@@ -25241,21 +25248,21 @@ function w8() {
25241
25248
  return v(Q);
25242
25249
  }
25243
25250
  function C(Q) {
25244
- function D(N, Z, U, R, J) {
25251
+ function S(N, Z, U, R, J) {
25245
25252
  if (!(N[Z] instanceof Q)) {
25246
25253
  var Y = Q.name || f, H = V(N[Z]);
25247
25254
  return new m("Invalid " + R + " `" + J + "` of type " + ("`" + H + "` supplied to `" + U + "`, expected ") + ("instance of `" + Y + "`."));
25248
25255
  }
25249
25256
  return null;
25250
25257
  }
25251
- return v(D);
25258
+ return v(S);
25252
25259
  }
25253
- function S(Q) {
25260
+ function D(Q) {
25254
25261
  if (!Array.isArray(Q))
25255
25262
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
25256
25263
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
25257
25264
  ) : i("Invalid argument supplied to oneOf, expected an array.")), o;
25258
- function D(N, Z, U, R, J) {
25265
+ function S(N, Z, U, R, J) {
25259
25266
  for (var Y = N[Z], H = 0; H < Q.length; H++)
25260
25267
  if (h(Y, Q[H]))
25261
25268
  return null;
@@ -25265,10 +25272,10 @@ function w8() {
25265
25272
  });
25266
25273
  return new m("Invalid " + R + " `" + J + "` of value `" + String(Y) + "` " + ("supplied to `" + U + "`, expected one of " + ce + "."));
25267
25274
  }
25268
- return v(D);
25275
+ return v(S);
25269
25276
  }
25270
25277
  function I(Q) {
25271
- function D(N, Z, U, R, J) {
25278
+ function S(N, Z, U, R, J) {
25272
25279
  if (typeof Q != "function")
25273
25280
  return new m("Property `" + J + "` of component `" + U + "` has invalid PropType notation inside objectOf.");
25274
25281
  var Y = N[Z], H = te(Y);
@@ -25282,16 +25289,16 @@ function w8() {
25282
25289
  }
25283
25290
  return null;
25284
25291
  }
25285
- return v(D);
25292
+ return v(S);
25286
25293
  }
25287
25294
  function O(Q) {
25288
25295
  if (!Array.isArray(Q))
25289
25296
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), o;
25290
- for (var D = 0; D < Q.length; D++) {
25291
- var N = Q[D];
25297
+ for (var S = 0; S < Q.length; S++) {
25298
+ var N = Q[S];
25292
25299
  if (typeof N != "function")
25293
25300
  return i(
25294
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + _(N) + " at index " + D + "."
25301
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + _(N) + " at index " + S + "."
25295
25302
  ), o;
25296
25303
  }
25297
25304
  function Z(U, R, J, Y, H) {
@@ -25307,18 +25314,18 @@ function w8() {
25307
25314
  return v(Z);
25308
25315
  }
25309
25316
  function F() {
25310
- function Q(D, N, Z, U, R) {
25311
- return L(D[N]) ? null : new m("Invalid " + U + " `" + R + "` supplied to " + ("`" + Z + "`, expected a ReactNode."));
25317
+ function Q(S, N, Z, U, R) {
25318
+ return M(S[N]) ? null : new m("Invalid " + U + " `" + R + "` supplied to " + ("`" + Z + "`, expected a ReactNode."));
25312
25319
  }
25313
25320
  return v(Q);
25314
25321
  }
25315
- function k(Q, D, N, Z, U) {
25322
+ function k(Q, S, N, Z, U) {
25316
25323
  return new m(
25317
- (Q || "React class") + ": " + D + " type `" + N + "." + Z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
25324
+ (Q || "React class") + ": " + S + " type `" + N + "." + Z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
25318
25325
  );
25319
25326
  }
25320
25327
  function z(Q) {
25321
- function D(N, Z, U, R, J) {
25328
+ function S(N, Z, U, R, J) {
25322
25329
  var Y = N[Z], H = te(Y);
25323
25330
  if (H !== "object")
25324
25331
  return new m("Invalid " + R + " `" + J + "` of type `" + H + "` " + ("supplied to `" + U + "`, expected `object`."));
@@ -25332,10 +25339,10 @@ function w8() {
25332
25339
  }
25333
25340
  return null;
25334
25341
  }
25335
- return v(D);
25342
+ return v(S);
25336
25343
  }
25337
25344
  function W(Q) {
25338
- function D(N, Z, U, R, J) {
25345
+ function S(N, Z, U, R, J) {
25339
25346
  var Y = N[Z], H = te(Y);
25340
25347
  if (H !== "object")
25341
25348
  return new m("Invalid " + R + " `" + J + "` of type `" + H + "` " + ("supplied to `" + U + "`, expected `object`."));
@@ -25355,9 +25362,9 @@ Valid keys: ` + JSON.stringify(Object.keys(Q), null, " ")
25355
25362
  }
25356
25363
  return null;
25357
25364
  }
25358
- return v(D);
25365
+ return v(S);
25359
25366
  }
25360
- function L(Q) {
25367
+ function M(Q) {
25361
25368
  switch (typeof Q) {
25362
25369
  case "number":
25363
25370
  case "string":
@@ -25367,20 +25374,20 @@ Valid keys: ` + JSON.stringify(Object.keys(Q), null, " ")
25367
25374
  return !Q;
25368
25375
  case "object":
25369
25376
  if (Array.isArray(Q))
25370
- return Q.every(L);
25377
+ return Q.every(M);
25371
25378
  if (Q === null || a(Q))
25372
25379
  return !0;
25373
- var D = u(Q);
25374
- if (D) {
25375
- var N = D.call(Q), Z;
25376
- if (D !== Q.entries) {
25380
+ var S = u(Q);
25381
+ if (S) {
25382
+ var N = S.call(Q), Z;
25383
+ if (S !== Q.entries) {
25377
25384
  for (; !(Z = N.next()).done; )
25378
- if (!L(Z.value))
25385
+ if (!M(Z.value))
25379
25386
  return !1;
25380
25387
  } else
25381
25388
  for (; !(Z = N.next()).done; ) {
25382
25389
  var U = Z.value;
25383
- if (U && !L(U[1]))
25390
+ if (U && !M(U[1]))
25384
25391
  return !1;
25385
25392
  }
25386
25393
  } else
@@ -25390,37 +25397,37 @@ Valid keys: ` + JSON.stringify(Object.keys(Q), null, " ")
25390
25397
  return !1;
25391
25398
  }
25392
25399
  }
25393
- function X(Q, D) {
25394
- return Q === "symbol" ? !0 : D ? D["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && D instanceof Symbol : !1;
25400
+ function X(Q, S) {
25401
+ return Q === "symbol" ? !0 : S ? S["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && S instanceof Symbol : !1;
25395
25402
  }
25396
25403
  function te(Q) {
25397
- var D = typeof Q;
25398
- return Array.isArray(Q) ? "array" : Q instanceof RegExp ? "object" : X(D, Q) ? "symbol" : D;
25404
+ var S = typeof Q;
25405
+ return Array.isArray(Q) ? "array" : Q instanceof RegExp ? "object" : X(S, Q) ? "symbol" : S;
25399
25406
  }
25400
25407
  function G(Q) {
25401
25408
  if (typeof Q > "u" || Q === null)
25402
25409
  return "" + Q;
25403
- var D = te(Q);
25404
- if (D === "object") {
25410
+ var S = te(Q);
25411
+ if (S === "object") {
25405
25412
  if (Q instanceof Date)
25406
25413
  return "date";
25407
25414
  if (Q instanceof RegExp)
25408
25415
  return "regexp";
25409
25416
  }
25410
- return D;
25417
+ return S;
25411
25418
  }
25412
25419
  function _(Q) {
25413
- var D = G(Q);
25414
- switch (D) {
25420
+ var S = G(Q);
25421
+ switch (S) {
25415
25422
  case "array":
25416
25423
  case "object":
25417
- return "an " + D;
25424
+ return "an " + S;
25418
25425
  case "boolean":
25419
25426
  case "date":
25420
25427
  case "regexp":
25421
- return "a " + D;
25428
+ return "a " + S;
25422
25429
  default:
25423
- return D;
25430
+ return S;
25424
25431
  }
25425
25432
  }
25426
25433
  function V(Q) {
@@ -26089,9 +26096,9 @@ const P8 = _e`
26089
26096
  });
26090
26097
  });
26091
26098
  }, DC = ({ open: e, closeHandler: t, token: A }) => {
26092
- const n = q(), r = lt(), i = Kt(), o = M(() => {
26099
+ const n = q(), r = lt(), i = Kt(), o = L(() => {
26093
26100
  t(), i.reset();
26094
- }, [i, t]), a = M(() => {
26101
+ }, [i, t]), a = L(() => {
26095
26102
  const c = i.watch("file");
26096
26103
  tinymce.activeEditor.execCommand("CreateLink", !0, `/downloadFile.php?id=${c[0].result.id}`), tinymce.activeEditor.windowManager.close(), t();
26097
26104
  }, [i, t]);
@@ -26133,9 +26140,9 @@ const P8 = _e`
26133
26140
  width: 50%;
26134
26141
  margin: 0 auto 20px auto;
26135
26142
  `, SC = ({ open: e, closeHandler: t, token: A }) => {
26136
- const n = q(), r = lt(), i = Kt(), o = M(() => {
26143
+ const n = q(), r = lt(), i = Kt(), o = L(() => {
26137
26144
  t(), i.reset();
26138
- }, [i, t]), a = M(() => {
26145
+ }, [i, t]), a = L(() => {
26139
26146
  const c = i.watch("image");
26140
26147
  tinymce.activeEditor.insertContent(`<img src='/media/${c.id}.png' />`), tinymce.activeEditor.windowManager.close(), t();
26141
26148
  }, [i, t]);
@@ -26185,9 +26192,9 @@ const P8 = _e`
26185
26192
  }
26186
26193
  );
26187
26194
  }, IC = ({ open: e, closeHandler: t, token: A }) => {
26188
- const n = q(), r = lt(), i = Kt(), o = M(() => {
26195
+ const n = q(), r = lt(), i = Kt(), o = L(() => {
26189
26196
  t(), i.reset();
26190
- }, [i, t]), a = M(() => {
26197
+ }, [i, t]), a = L(() => {
26191
26198
  const c = i.watch("videos")[0].result;
26192
26199
  tinymce.activeEditor.insertContent(
26193
26200
  `<iframe title="${n.formatMessage({ id: "GLOBAL_Video_Player" })} : ${c.title}" src='/embed/${c.id}.mp4' width="480px" height="270px"></iframe>`
@@ -26250,15 +26257,15 @@ const P8 = _e`
26250
26257
  commonOptions: m,
26251
26258
  ...v
26252
26259
  }, w) => {
26253
- const x = q(), b = ae(void 0), [B, y] = E(!1), [C, S] = E(!1), [I, O] = E(!1), { license_key: F, ...k } = m, z = (W, L, X) => {
26254
- X.filetype === "image" && y(!0), X.filetype === "media" && S(!0), X.filetype === "file" && O(!0);
26260
+ const x = q(), b = ae(void 0), [B, y] = E(!1), [C, D] = E(!1), [I, O] = E(!1), { license_key: F, ...k } = m, z = (W, M, X) => {
26261
+ X.filetype === "image" && y(!0), X.filetype === "media" && D(!0), X.filetype === "file" && O(!0);
26255
26262
  };
26256
26263
  return j(() => {
26257
26264
  b.current && (l ? document.getElementById(b.current.id)?.focus() : document.getElementById(b.current.id)?.blur());
26258
26265
  }, [l, b]), j(() => {
26259
- const W = document.querySelector('label[for="' + t + '"]'), L = () => b.current?.focus();
26260
- return W?.addEventListener("click", L), () => {
26261
- W?.removeEventListener("click", L);
26266
+ const W = document.querySelector('label[for="' + t + '"]'), M = () => b.current?.focus();
26267
+ return W?.addEventListener("click", M), () => {
26268
+ W?.removeEventListener("click", M);
26262
26269
  };
26263
26270
  }, [t]), v.readOnly ? /* @__PURE__ */ s.jsx(U8, { children: /* @__PURE__ */ s.jsx(
26264
26271
  gA,
@@ -26272,8 +26279,8 @@ const P8 = _e`
26272
26279
  id: t,
26273
26280
  inline: c,
26274
26281
  tinymceScriptSrc: a ?? "/js/tinymce/tinymce.min.js" + m.cache_suffix,
26275
- onInit: (W, L) => {
26276
- b.current = L;
26282
+ onInit: (W, M) => {
26283
+ b.current = M;
26277
26284
  },
26278
26285
  licenseKey: F,
26279
26286
  init: {
@@ -26283,10 +26290,10 @@ const P8 = _e`
26283
26290
  auto_focus: g === !1 ? void 0 : g,
26284
26291
  file_picker_callback: z,
26285
26292
  setup: (W) => {
26286
- L8(W, A, h, x), M8(W, o), u?.forEach((L) => L.setup(W)), N8(W);
26293
+ L8(W, A, h, x), M8(W, o), u?.forEach((M) => M.setup(W)), N8(W);
26287
26294
  }
26288
26295
  },
26289
- onEditorChange: (W, L) => i(L.getContent({ format: "html" }), L.getContent({ format: "text" })),
26296
+ onEditorChange: (W, M) => i(M.getContent({ format: "html" }), M.getContent({ format: "text" })),
26290
26297
  value: typeof n == "string" || !n ? n : n.html,
26291
26298
  onBlur: r,
26292
26299
  ref: w
@@ -26303,7 +26310,7 @@ const P8 = _e`
26303
26310
  /* @__PURE__ */ s.jsx(
26304
26311
  IC,
26305
26312
  {
26306
- closeHandler: () => S(!1),
26313
+ closeHandler: () => D(!1),
26307
26314
  open: C,
26308
26315
  token: A
26309
26316
  }
@@ -26557,7 +26564,7 @@ const Y8 = p.div`
26557
26564
  initialBusinessContacts: A,
26558
26565
  onSelectBusinessContact: n
26559
26566
  }) => {
26560
- const [r, i] = E(!0), [o, a] = E(1), [l, c] = E(), [d, u] = E(A), [f, g] = E(), h = q(), m = UA(), v = M(
26567
+ const [r, i] = E(!0), [o, a] = E(1), [l, c] = E(), [d, u] = E(A), [f, g] = E(), h = q(), m = UA(), v = L(
26561
26568
  (w) => {
26562
26569
  u((x) => {
26563
26570
  const b = x.some((B) => B.uri === w.uri) ? x.filter((B) => B.uri !== w.uri) : [...x, i7(w)];
@@ -26618,7 +26625,7 @@ const Y8 = p.div`
26618
26625
  cssColor: "",
26619
26626
  class: ""
26620
26627
  }), Ow = ({ handlers: e, onError: t, initialGroups: A, onSelectGroup: n, publicOnly: r }) => {
26621
- const [i, o] = E(!0), [a, l] = E(1), [c, d] = E(), [u, f] = E(A), [g, h] = E(), m = q(), v = UA(), w = M(
26628
+ const [i, o] = E(!0), [a, l] = E(1), [c, d] = E(), [u, f] = E(A), [g, h] = E(), m = q(), v = UA(), w = L(
26622
26629
  (x) => {
26623
26630
  f((b) => {
26624
26631
  const B = b.some((y) => y.uri === x.uri) ? b.filter((y) => y.uri !== x.uri) : [...b, a7(x)];
@@ -26681,7 +26688,7 @@ const Y8 = p.div`
26681
26688
  cssColor: "",
26682
26689
  class: ""
26683
26690
  }), c7 = ({ handlers: e, onError: t, initialUsers: A, onSelectUser: n }) => {
26684
- const [r, i] = E(!0), [o, a] = E(1), [l, c] = E(), [d, u] = E(A), [f, g] = E(), h = q(), m = UA(), v = M(
26691
+ const [r, i] = E(!0), [o, a] = E(1), [l, c] = E(), [d, u] = E(A), [f, g] = E(), h = q(), m = UA(), v = L(
26685
26692
  (w) => {
26686
26693
  u((x) => {
26687
26694
  const b = x.some((B) => B.uri === w.uri) ? x.filter((B) => B.uri !== w.uri) : [...x, l7(w)];
@@ -26767,7 +26774,7 @@ const Y8 = p.div`
26767
26774
  }, [e]), j(() => {
26768
26775
  u(t);
26769
26776
  }, [t]);
26770
- const f = M(
26777
+ const f = L(
26771
26778
  (g, h) => {
26772
26779
  u(
26773
26780
  cB(d ?? [], g).filter(
@@ -27170,24 +27177,24 @@ const E7 = ({
27170
27177
  r(v);
27171
27178
  }
27172
27179
  }
27173
- ], x = M(
27180
+ ], x = L(
27174
27181
  (b, B) => {
27175
27182
  e && (l(!0), e(b).then((y) => {
27176
- const C = y.data.map((S) => ({
27177
- ...S,
27183
+ const C = y.data.map((D) => ({
27184
+ ...D,
27178
27185
  label: /* @__PURE__ */ s.jsxs(
27179
27186
  Mv,
27180
27187
  {
27181
27188
  onClick: () => {
27182
- x(S.uri, S.title);
27189
+ x(D.uri, D.title);
27183
27190
  },
27184
27191
  children: [
27185
- S.title,
27192
+ D.title,
27186
27193
  /* @__PURE__ */ s.jsx(ie, { name: "icon-angle-right", size: 12, color: "secondary" })
27187
27194
  ]
27188
27195
  }
27189
27196
  ),
27190
- value: { ...S }
27197
+ value: { ...D }
27191
27198
  }));
27192
27199
  b && B && h({ uri: b, title: B }), d(C), l(!1);
27193
27200
  }).catch(() => {
@@ -27236,8 +27243,8 @@ const E7 = ({
27236
27243
  Mv,
27237
27244
  {
27238
27245
  onClick: () => {
27239
- const C = [...u].findIndex((S) => S.uri == b.uri);
27240
- C !== -1 && f((S) => S.slice(0, C + 1)), x(b.uri);
27246
+ const C = [...u].findIndex((D) => D.uri == b.uri);
27247
+ C !== -1 && f((D) => D.slice(0, C + 1)), x(b.uri);
27241
27248
  },
27242
27249
  children: [
27243
27250
  b.title,
@@ -27354,7 +27361,7 @@ const E7 = ({
27354
27361
  }, m = {
27355
27362
  color: "grey2",
27356
27363
  icon: "icon-search"
27357
- }, [v, w] = E(!1), [x, b] = E(!1), [B, y] = E(""), [C, S] = E(1), [I, O] = E([]), [F, k] = E({
27364
+ }, [v, w] = E(!1), [x, b] = E(!1), [B, y] = E(""), [C, D] = E(1), [I, O] = E([]), [F, k] = E({
27358
27365
  manualSortBy: !0,
27359
27366
  draggable: !1,
27360
27367
  pagination: {
@@ -27390,9 +27397,9 @@ const E7 = ({
27390
27397
  }, [B]);
27391
27398
  const W = {
27392
27399
  onPage: (X) => {
27393
- S(X);
27400
+ D(X);
27394
27401
  }
27395
- }, L = [
27402
+ }, M = [
27396
27403
  {
27397
27404
  header: "Title",
27398
27405
  cell: ({ row: X }) => {
@@ -27475,7 +27482,7 @@ const E7 = ({
27475
27482
  {
27476
27483
  config: F,
27477
27484
  data: I,
27478
- columns: L,
27485
+ columns: M,
27479
27486
  eventHandlers: W
27480
27487
  }
27481
27488
  ) }) : /* @__PURE__ */ s.jsx(Nv, { direction: "row", x: "center", y: "center", children: /* @__PURE__ */ s.jsx(He, { id: "GLOBAL_No_Result" }) }) })
@@ -28081,7 +28088,7 @@ const O7 = p.div`
28081
28088
  }, D9)
28082
28089
  );
28083
28090
  }, [c]);
28084
- const m = M(
28091
+ const m = L(
28085
28092
  (v) => {
28086
28093
  if (u.current === un.CLICKED)
28087
28094
  setTimeout(() => d(un.NOT_CLICKED), 0), l?.current?.removeAttribute("style"), e?.(v), h.current && clearTimeout(h.current);
@@ -28374,7 +28381,7 @@ function JC(e) {
28374
28381
  return null;
28375
28382
  }
28376
28383
  function Nh(e, t, A, n, r, i, o, a, l) {
28377
- var c, d, u, f, g, h, m, v, w, x, b, B, y, C, S, I = t.type;
28384
+ var c, d, u, f, g, h, m, v, w, x, b, B, y, C, D, I = t.type;
28378
28385
  if (t.constructor !== void 0) return null;
28379
28386
  A.__h != null && (l = A.__h, a = t.__e = A.__e, t.__h = null, i = [a]), (c = Se.__b) && c(t);
28380
28387
  try {
@@ -28398,7 +28405,7 @@ function Nh(e, t, A, n, r, i, o, a, l) {
28398
28405
  } else do
28399
28406
  d.__d = !1, B && B(t), c = d.render(d.props, d.state, d.context), d.state = d.__s;
28400
28407
  while (d.__d && ++y < 25);
28401
- d.state = d.__s, d.getChildContext != null && (n = Or(Or({}, n), d.getChildContext())), u || d.getSnapshotBeforeUpdate == null || (h = d.getSnapshotBeforeUpdate(f, g)), S = c != null && c.type === st && c.key == null ? c.props.children : c, GC(e, Array.isArray(S) ? S : [S], t, A, n, r, i, o, a, l), d.base = t.__e, t.__h = null, d.__h.length && o.push(d), m && (d.__E = d.__ = null), d.__e = !1;
28408
+ d.state = d.__s, d.getChildContext != null && (n = Or(Or({}, n), d.getChildContext())), u || d.getSnapshotBeforeUpdate == null || (h = d.getSnapshotBeforeUpdate(f, g)), D = c != null && c.type === st && c.key == null ? c.props.children : c, GC(e, Array.isArray(D) ? D : [D], t, A, n, r, i, o, a, l), d.base = t.__e, t.__h = null, d.__h.length && o.push(d), m && (d.__E = d.__ = null), d.__e = !1;
28402
28409
  } else i == null && t.__v === A.__v ? (t.__k = A.__k, t.__e = A.__e) : t.__e = L9(A.__e, t, A, n, r, i, o, l);
28403
28410
  (c = Se.diffed) && c(t);
28404
28411
  } catch (O) {
@@ -32708,9 +32715,9 @@ function KX(e, t, A, n) {
32708
32715
  return !1;
32709
32716
  let { eventOverlap: b } = t.options, B = typeof b == "function" ? b : null;
32710
32717
  for (let C in f) {
32711
- let S = f[C];
32712
- if (Yh(v, S.range) && (g[S.defId].overlap === !1 && i.isEvent || w.overlap === !1 || B && !B(
32713
- new Bt(t, u[S.defId], S),
32718
+ let D = f[C];
32719
+ if (Yh(v, D.range) && (g[D.defId].overlap === !1 && i.isEvent || w.overlap === !1 || B && !B(
32720
+ new Bt(t, u[D.defId], D),
32714
32721
  // still event
32715
32722
  new Bt(t, x, m)
32716
32723
  )))
@@ -32718,8 +32725,8 @@ function KX(e, t, A, n) {
32718
32725
  }
32719
32726
  let y = r.eventStore;
32720
32727
  for (let C of w.allows) {
32721
- let S = Object.assign(Object.assign({}, A), { range: m.range, allDay: x.allDay }), I = y.defs[x.defId], O = y.instances[h], F;
32722
- if (I ? F = new Bt(t, I, O) : F = new Bt(t, x), !C(Ap(S, t), F))
32728
+ let D = Object.assign(Object.assign({}, A), { range: m.range, allDay: x.allDay }), I = y.defs[x.defId], O = y.instances[h], F;
32729
+ if (I ? F = new Bt(t, I, O) : F = new Bt(t, x), !C(Ap(D, t), F))
32723
32730
  return !1;
32724
32731
  }
32725
32732
  }
@@ -33885,17 +33892,17 @@ function _G(e, t, A, n, r, i) {
33885
33892
  return { widgets: f.map((v) => v.split(",").map((w) => {
33886
33893
  if (w === "title")
33887
33894
  return h = !0, { buttonName: w };
33888
- let x, b, B, y, C, S;
33895
+ let x, b, B, y, C, D;
33889
33896
  if (x = a[w])
33890
33897
  B = (I) => {
33891
33898
  x.click && x.click.call(I.target, I, I.target);
33892
- }, (y = n.getCustomButtonIconClass(x)) || (y = n.getIconClass(w, o)) || (C = x.text), S = x.hint || x.text;
33899
+ }, (y = n.getCustomButtonIconClass(x)) || (y = n.getIconClass(w, o)) || (C = x.text), D = x.hint || x.text;
33893
33900
  else if (b = r[w]) {
33894
33901
  g.push(w), B = () => {
33895
33902
  i.changeView(w);
33896
33903
  }, (C = b.buttonTextOverride) || (y = n.getIconClass(w, o)) || (C = b.buttonTextDefault);
33897
33904
  let I = b.buttonTextOverride || b.buttonTextDefault;
33898
- S = Bs(
33905
+ D = Bs(
33899
33906
  b.buttonTitleOverride || b.buttonTitleDefault || t.viewHint,
33900
33907
  [I, w],
33901
33908
  // view-name = buttonName
@@ -33906,16 +33913,16 @@ function _G(e, t, A, n, r, i) {
33906
33913
  i[w]();
33907
33914
  }, (C = l[w]) || (y = n.getIconClass(w, o)) || (C = c[w]), w === "prevYear" || w === "nextYear") {
33908
33915
  let I = w === "prevYear" ? "prev" : "next";
33909
- S = Bs(d[I] || u[I], [
33916
+ D = Bs(d[I] || u[I], [
33910
33917
  c.year || "year",
33911
33918
  "year"
33912
33919
  ], c[w]);
33913
33920
  } else
33914
- S = (I) => Bs(d[w] || u[w], [
33921
+ D = (I) => Bs(d[w] || u[w], [
33915
33922
  c[I] || I,
33916
33923
  I
33917
33924
  ], c[w]);
33918
- return { buttonName: w, buttonClick: B, buttonIcon: y, buttonText: C, buttonHint: S };
33925
+ return { buttonName: w, buttonClick: B, buttonIcon: y, buttonText: C, buttonHint: D };
33919
33926
  })), viewsWithButtons: g, hasTitle: h };
33920
33927
  }
33921
33928
  class $G {
@@ -34258,8 +34265,8 @@ class wV {
34258
34265
  }, y = Object.assign(Object.assign({}, c), B);
34259
34266
  for (let I of o.pluginHooks.reducers)
34260
34267
  Object.assign(B, I(n, t, y));
34261
- let C = Mu(n, c), S = Mu(B, c);
34262
- !C && S ? r.trigger("loading", !0) : C && !S && r.trigger("loading", !1), this.state = B, A.onAction && A.onAction(t);
34268
+ let C = Mu(n, c), D = Mu(B, c);
34269
+ !C && D ? r.trigger("loading", !0) : C && !D && r.trigger("loading", !1), this.state = B, A.onAction && A.onAction(t);
34263
34270
  }
34264
34271
  updateData() {
34265
34272
  let { props: t, state: A } = this, n = this.data, r = this.computeOptionsData(t.optionOverrides, A.dynamicOptionOverrides, t.calendarApi), i = this.computeCurrentViewData(A.currentViewType, r, t.optionOverrides, A.dynamicOptionOverrides), o = this.data = Object.assign(Object.assign(Object.assign({ nowManager: this.nowManager, viewTitle: this.buildTitle(A.dateProfile, i.options, r.dateEnv), calendarApi: t.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, r), i), A), a = r.pluginHooks.optionChangeHandlers, l = n && n.calendarOptions, c = r.calendarOptions;
@@ -36413,11 +36420,11 @@ class JK extends $e {
36413
36420
  null,
36414
36421
  this.renderHiddenGroups(b, t),
36415
36422
  x.map((B) => {
36416
- let { seg: y, rect: C } = B, S = y.eventRange.instance.instanceId, I = v || !!(!A[S] && C), O = Nu(C && C.span), F = !v && C ? this.computeSegHStyle(C) : { left: 0, right: 0 }, k = !!C && C.stackForward > 0, z = !!C && C.span.end - C.span.start < l;
36423
+ let { seg: y, rect: C } = B, D = y.eventRange.instance.instanceId, I = v || !!(!A[D] && C), O = Nu(C && C.span), F = !v && C ? this.computeSegHStyle(C) : { left: 0, right: 0 }, k = !!C && C.stackForward > 0, z = !!C && C.span.end - C.span.start < l;
36417
36424
  return T(
36418
36425
  "div",
36419
- { className: "fc-timegrid-event-harness" + (k ? " fc-timegrid-event-harness-inset" : ""), key: o || S, style: Object.assign(Object.assign({ visibility: I ? "" : "hidden" }, O), F) },
36420
- T(BD, Object.assign({ seg: y, isDragging: n, isResizing: r, isDateSelecting: i, isSelected: S === g, isShort: z }, dr(y, h, m)))
36426
+ { className: "fc-timegrid-event-harness" + (k ? " fc-timegrid-event-harness-inset" : ""), key: o || D, style: Object.assign(Object.assign({ visibility: I ? "" : "hidden" }, O), F) },
36427
+ T(BD, Object.assign({ seg: y, isDragging: n, isResizing: r, isDateSelecting: i, isSelected: D === g, isShort: z }, dr(y, h, m)))
36421
36428
  );
36422
36429
  })
36423
36430
  );
@@ -37965,7 +37972,7 @@ const HJ = p.div`
37965
37972
  opacity: 0.8;
37966
37973
  }
37967
37974
  `, PJ = () => {
37968
- const e = q(), t = M((n) => {
37975
+ const e = q(), t = L((n) => {
37969
37976
  switch (n) {
37970
37977
  case "available":
37971
37978
  case "visio":
@@ -37980,7 +37987,7 @@ const HJ = p.div`
37980
37987
  default:
37981
37988
  return "green";
37982
37989
  }
37983
- }, []), A = M(
37990
+ }, []), A = L(
37984
37991
  (n) => {
37985
37992
  switch (n) {
37986
37993
  case 1:
@@ -38297,10 +38304,10 @@ const HJ = p.div`
38297
38304
  recurrent: y,
38298
38305
  href: C
38299
38306
  }) => {
38300
- const S = q(), I = lt(), O = $(() => Number(o), [o]), F = $(
38307
+ const D = q(), I = lt(), O = $(() => Number(o), [o]), F = $(
38301
38308
  () => A && n ? Math.ceil((n.getTime() - A.getTime()) / 6e4) : void 0,
38302
38309
  [n, A]
38303
- ), k = $(() => !F || F >= 40 ? "l" : F >= 20 ? "s" : "xs", [F]), z = M((G) => {
38310
+ ), k = $(() => !F || F >= 40 ? "l" : F >= 20 ? "s" : "xs", [F]), z = L((G) => {
38304
38311
  switch (G) {
38305
38312
  case "available":
38306
38313
  case "visio":
@@ -38316,12 +38323,12 @@ const HJ = p.div`
38316
38323
  return "🟢";
38317
38324
  }
38318
38325
  }, []), W = $(
38319
- () => c ? S.formatMessage({ id: "CALENDAR_All_Day" }) : A?.getHours() + ":" + ("0" + A?.getMinutes()).slice(-2),
38320
- [c, S, A]
38321
- ), L = $(
38326
+ () => c ? D.formatMessage({ id: "CALENDAR_All_Day" }) : A?.getHours() + ":" + ("0" + A?.getMinutes()).slice(-2),
38327
+ [c, D, A]
38328
+ ), M = $(
38322
38329
  () => A && n && (A.getDate() !== n.getDate() || A.getMonth() !== A.getMonth() || A.getFullYear() !== A.getFullYear()),
38323
38330
  [n, A]
38324
- ), X = $(() => e === "unknown" ? "outlined" : "filled", [e]), te = M(
38331
+ ), X = $(() => e === "unknown" ? "outlined" : "filled", [e]), te = L(
38325
38332
  (G) => {
38326
38333
  a && (G.stopPropagation(), a(O));
38327
38334
  },
@@ -38380,7 +38387,7 @@ const HJ = p.div`
38380
38387
  }
38381
38388
  ),
38382
38389
  /* @__PURE__ */ s.jsxs(Lx, { $textColor: d, $size: k, $displayVariant: X, children: [
38383
- L && `${("0" + A.getDate()).slice(-2)}/${("0" + (A.getMonth() + 1)).slice(-2)} `,
38390
+ M && `${("0" + A.getDate()).slice(-2)}/${("0" + (A.getMonth() + 1)).slice(-2)} `,
38384
38391
  W
38385
38392
  ] })
38386
38393
  ] }),
@@ -38449,10 +38456,10 @@ const HJ = p.div`
38449
38456
  ] }) }),
38450
38457
  A && /* @__PURE__ */ s.jsxs(et, { gap: 4, y: "center", children: [
38451
38458
  /* @__PURE__ */ s.jsxs(Mx, { $textColor: d, $displayVariant: X, children: [
38452
- L && `${("0" + A.getDate()).slice(-2)}/${("0" + (A.getMonth() + 1)).slice(-2)} `,
38453
- (!L || !c) && W,
38454
- n && (!!L || !c) && " - ",
38455
- L && n && `${("0" + n.getDate()).slice(-2)}/${("0" + (n.getMonth() + 1)).slice(-2)} `,
38459
+ M && `${("0" + A.getDate()).slice(-2)}/${("0" + (A.getMonth() + 1)).slice(-2)} `,
38460
+ (!M || !c) && W,
38461
+ n && (!!M || !c) && " - ",
38462
+ M && n && `${("0" + n.getDate()).slice(-2)}/${("0" + (n.getMonth() + 1)).slice(-2)} `,
38456
38463
  n && !c && `${n.getHours()}:${("0" + n.getMinutes()).slice(-2)}`
38457
38464
  ] }),
38458
38465
  y && /* @__PURE__ */ s.jsx(
@@ -39259,13 +39266,13 @@ function oq() {
39259
39266
  }
39260
39267
  for (var C = 0, w = 0; w < l.length; w++)
39261
39268
  C += l[w].totalCount;
39262
- for (var S = new Array(C), I = 0, w = 0; w < d; w++)
39269
+ for (var D = new Array(C), I = 0, w = 0; w < d; w++)
39263
39270
  for (var h = 0; h < l.length; h++)
39264
- w < f[h].length && (S[I++] = f[h][w]);
39271
+ w < f[h].length && (D[I++] = f[h][w]);
39265
39272
  for (var w = 0; w < u; w++)
39266
39273
  for (var h = 0; h < l.length; h++)
39267
- w < g[h].length && (S[I++] = g[h][w]);
39268
- return S;
39274
+ w < g[h].length && (D[I++] = g[h][w]);
39275
+ return D;
39269
39276
  }, Ju = i, Ju;
39270
39277
  }
39271
39278
  var sl = {}, Jx;
@@ -39346,20 +39353,20 @@ function aq() {
39346
39353
  size: A.default.number,
39347
39354
  value: A.default.string.isRequired
39348
39355
  }, h = (0, a.forwardRef)(function(m, v) {
39349
- var w = m.bgColor, x = w === void 0 ? "#FFFFFF" : w, b = m.fgColor, B = b === void 0 ? "#000000" : b, y = m.level, C = y === void 0 ? "L" : y, S = m.size, I = S === void 0 ? 256 : S, O = m.value, F = f(m, ["bgColor", "fgColor", "level", "size", "value"]), k = new o.default(-1, r.default[C]);
39356
+ var w = m.bgColor, x = w === void 0 ? "#FFFFFF" : w, b = m.fgColor, B = b === void 0 ? "#000000" : b, y = m.level, C = y === void 0 ? "L" : y, D = m.size, I = D === void 0 ? 256 : D, O = m.value, F = f(m, ["bgColor", "fgColor", "level", "size", "value"]), k = new o.default(-1, r.default[C]);
39350
39357
  k.addData(O), k.make();
39351
39358
  var z = k.modules;
39352
39359
  return l.default.createElement(d.default, e({}, F, {
39353
39360
  bgColor: x,
39354
- bgD: z.map(function(W, L) {
39361
+ bgD: z.map(function(W, M) {
39355
39362
  return W.map(function(X, te) {
39356
- return X ? "" : "M " + te + " " + L + " l 1 0 0 1 -1 0 Z";
39363
+ return X ? "" : "M " + te + " " + M + " l 1 0 0 1 -1 0 Z";
39357
39364
  }).join(" ");
39358
39365
  }).join(" "),
39359
39366
  fgColor: B,
39360
- fgD: z.map(function(W, L) {
39367
+ fgD: z.map(function(W, M) {
39361
39368
  return W.map(function(X, te) {
39362
- return X ? "M " + te + " " + L + " l 1 0 0 1 -1 0 Z" : "";
39369
+ return X ? "M " + te + " " + M + " l 1 0 0 1 -1 0 Z" : "";
39363
39370
  }).join(" ");
39364
39371
  }).join(" "),
39365
39372
  ref: v,
@@ -39696,19 +39703,19 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
39696
39703
  list: "all",
39697
39704
  text: ""
39698
39705
  }
39699
- }), [m, v] = E(!1), [w, x] = E(!1), [b, B] = E(!1), [y, C] = E(!1), [S, I] = E(
39706
+ }), [m, v] = E(!1), [w, x] = E(!1), [b, B] = E(!1), [y, C] = E(!1), [D, I] = E(
39700
39707
  t && "dateStart" in t && t.dateStart ? new Date(t.dateStart).getTime() - (/* @__PURE__ */ new Date()).getTime() : null
39701
- ), { formattedDate: O } = yq(t ?? {}), F = $(() => t && t.type !== "recurringEventOccurrence" && "place" in t && ((t.place === "bbb" || t.place === "bbb-public") && (!S || S > 1e3 * 60 * 15) || !!t.place.match(/other:(?!http).+/)), [t, S]);
39708
+ ), { formattedDate: O } = yq(t ?? {}), F = $(() => t && t.type !== "recurringEventOccurrence" && "place" in t && ((t.place === "bbb" || t.place === "bbb-public") && (!D || D > 1e3 * 60 * 15) || !!t.place.match(/other:(?!http).+/)), [t, D]);
39702
39709
  j(() => {
39703
39710
  let G;
39704
- return (!S || S > 0) && (G = setTimeout(() => {
39711
+ return (!D || D > 0) && (G = setTimeout(() => {
39705
39712
  I(
39706
39713
  t && "dateStart" in t && t.dateStart ? new Date(t.dateStart).getTime() - (/* @__PURE__ */ new Date()).getTime() : null
39707
39714
  );
39708
39715
  }, 1e3)), () => {
39709
39716
  clearTimeout(G);
39710
39717
  };
39711
- }, [t, S]);
39718
+ }, [t, D]);
39712
39719
  const k = $(() => {
39713
39720
  const G = [
39714
39721
  {
@@ -39749,7 +39756,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
39749
39756
  case "recurringEventOccurrence":
39750
39757
  return d.formatMessage({ id: "CALENDAR_Recurring_Event" });
39751
39758
  }
39752
- }, [t?.type, d]), W = M(
39759
+ }, [t?.type, d]), W = L(
39753
39760
  (G) => {
39754
39761
  t && (!G.list || !G.text || (x(!0), A.calendar.reviveSubmit({
39755
39762
  list: G.list,
@@ -39764,7 +39771,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
39764
39771
  })));
39765
39772
  },
39766
39773
  [t, A.calendar, d, n, r, h]
39767
- ), L = M(() => {
39774
+ ), M = L(() => {
39768
39775
  t && (C(!0), A.article.delete(t._extend?.recurringEventRecord?.id ?? t.id).then(() => {
39769
39776
  o();
39770
39777
  }).catch((G) => {
@@ -40022,7 +40029,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40022
40029
  },
40023
40030
  {
40024
40031
  color: "danger",
40025
- clickHandler: L,
40032
+ clickHandler: M,
40026
40033
  loading: y,
40027
40034
  children: d.formatMessage({ id: "GLOBAL_Delete" }),
40028
40035
  dataCy: "delete-continue"
@@ -40092,7 +40099,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40092
40099
  onSelect: b,
40093
40100
  disableSelect: B
40094
40101
  }) => {
40095
- const y = q(), [C, S] = E(""), [I, O] = E(), [F, k] = E(null), z = ae(null), W = ae(null), L = ae(null), X = M(() => z.current?.getApi(), [z]), te = l?.onCalendarApiInit;
40102
+ const y = q(), [C, D] = E(""), [I, O] = E(), [F, k] = E(null), z = ae(null), W = ae(null), M = ae(null), X = L(() => z.current?.getApi(), [z]), te = l?.onCalendarApiInit;
40096
40103
  j(() => {
40097
40104
  te?.(X());
40098
40105
  }, [te, X]);
@@ -40105,12 +40112,12 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40105
40112
  j(() => {
40106
40113
  Q && Q.value !== _.value && (V(Q), u?.(Q)), Q || u?.(_);
40107
40114
  }, [Q, u, _]);
40108
- const D = M(() => {
40109
- S(X()?.view.title ?? "");
40115
+ const S = L(() => {
40116
+ D(X()?.view.title ?? "");
40110
40117
  }, [X]);
40111
40118
  j(() => {
40112
- X()?.changeView(_.value === "list" ? "listMonth" : _.value), D();
40113
- }, [X, D, _]);
40119
+ X()?.changeView(_.value === "list" ? "listMonth" : _.value), S();
40120
+ }, [X, S, _]);
40114
40121
  const N = $(() => {
40115
40122
  switch (y.locale) {
40116
40123
  case "fr":
@@ -40177,7 +40184,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40177
40184
  }, [R, C]);
40178
40185
  const J = $(() => e?.find(
40179
40186
  (H) => H.uri === F?.uri || H.type === "recurringEventOccurrence" && qu(H.dateStart, H.dateEnd) === F?.dates && H._extend?.recurringEventRecord?.uri === F?.uri
40180
- ), [F?.dates, F?.uri, e]), Y = M(
40187
+ ), [F?.dates, F?.uri, e]), Y = L(
40181
40188
  (H) => !["meeting", "socialEvent", "recurringEventOccurrence"].includes(H),
40182
40189
  []
40183
40190
  );
@@ -40246,7 +40253,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40246
40253
  }),
40247
40254
  dayHeaderFormat: U,
40248
40255
  datesSet: (H) => {
40249
- L.current?.start.getTime() === H.start.getTime() && L.current.end.getTime() === H.end.getTime() || (f?.(H.start, H.end), D(), L.current = { start: H.start, end: H.end });
40256
+ M.current?.start.getTime() === H.start.getTime() && M.current.end.getTime() === H.end.getTime() || (f?.(H.start, H.end), S(), M.current = { start: H.start, end: H.end });
40250
40257
  },
40251
40258
  headerToolbar: !1,
40252
40259
  firstDay: 1,
@@ -40483,7 +40490,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40483
40490
  deleteFile: g,
40484
40491
  additionalExtensions: h
40485
40492
  }) => {
40486
- const m = q(), [v, w] = E(!1), [x, b] = E(""), [B, y] = E(!0), [C, S] = E(!1), [I, O] = E(!1), [F, k] = E([]), [z, W] = E(!1), L = M(() => {
40493
+ const m = q(), [v, w] = E(!1), [x, b] = E(""), [B, y] = E(!0), [C, D] = E(!1), [I, O] = E(!1), [F, k] = E([]), [z, W] = E(!1), M = L(() => {
40487
40494
  i({
40488
40495
  content: x,
40489
40496
  alertAuthor: C,
@@ -40570,7 +40577,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40570
40577
  bgHover: C ? "greenStrong" : "grey2",
40571
40578
  color: C ? "white" : "grey5",
40572
40579
  iconSize: 14,
40573
- onClick: () => S(!C),
40580
+ onClick: () => D(!C),
40574
40581
  icon: "icon-user",
40575
40582
  dataCy: "comment-receive-copy",
40576
40583
  srOnly: m.formatMessage({ id: "SPOTIT_Receive_A_Copy" })
@@ -40599,7 +40606,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40599
40606
  noMargin: !0,
40600
40607
  color: "primary",
40601
40608
  disabled: !x || !l || n,
40602
- onClick: L,
40609
+ onClick: M,
40603
40610
  children: m.formatMessage({
40604
40611
  id: f ? "COMMENT_Answer" : "COMMENT_Add_Comment"
40605
40612
  })
@@ -40613,7 +40620,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40613
40620
  color: A = "grey4",
40614
40621
  tooltipPosition: n = "right"
40615
40622
  }) => {
40616
- const r = q(), [i, o] = E(), a = M(
40623
+ const r = q(), [i, o] = E(), a = L(
40617
40624
  (l) => {
40618
40625
  const c = new Date(l), d = /* @__PURE__ */ new Date(), u = d.getTime() - c.getTime();
40619
40626
  return u < 1e3 * 60 ? r.formatMessage({ id: "COMMENT_Just_Now" }) : u < 1e3 * 60 * 60 ? r.formatMessage({ id: "COMMENT_Minutes_Ago" }, { minutes: Math.round(u / (1e3 * 60)) }) : u < 1e3 * 60 * 60 * 24 && c.getDate() === d.getDate() ? `${ZA(c.getHours())}:${ZA(c.getMinutes())}` : u < 1e3 * 60 * 60 * 24 * 31 && c.getMonth() === d.getMonth() ? `${ZA(c.getDate())}/${ZA(c.getMonth() + 1)}` : `${ZA(c.getDate())}/${ZA(c.getMonth() + 1)}/${c.getFullYear()}`;
@@ -40647,7 +40654,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40647
40654
  `, uY = p.span`
40648
40655
  flex: 1;
40649
40656
  `, fY = ({ count: e, commentId: t, load: A, onError: n }) => {
40650
- const [r, i] = E([]), [o, a] = E(!1), l = M(() => {
40657
+ const [r, i] = E([]), [o, a] = E(!1), l = L(() => {
40651
40658
  a(!0), A(t).then((d) => {
40652
40659
  i(d.result);
40653
40660
  }).catch((d) => {
@@ -40655,7 +40662,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40655
40662
  }).finally(() => {
40656
40663
  a(!1);
40657
40664
  });
40658
- }, [t, A, n]), c = M(() => {
40665
+ }, [t, A, n]), c = L(() => {
40659
40666
  i([]);
40660
40667
  }, []);
40661
40668
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -40748,7 +40755,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40748
40755
  const [i, o] = E(!1), [a, l] = E(), [c, d] = E(), { id: u, type: f } = $(() => {
40749
40756
  const v = e.split("/");
40750
40757
  return { id: parseInt(v[1]), type: v[0] };
40751
- }, [e]), g = M(
40758
+ }, [e]), g = L(
40752
40759
  (v, w) => {
40753
40760
  w ? A.global.removeAction({
40754
40761
  targetId: u,
@@ -40757,7 +40764,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40757
40764
  }).catch((x) => r?.(x.errorMsg)) : A.global.addAction({ targetId: u, targetType: f, type: v }).catch((x) => r?.(x.errorMsg));
40758
40765
  },
40759
40766
  [r, A, u, f]
40760
- ), h = M(
40767
+ ), h = L(
40761
40768
  (v, w) => {
40762
40769
  d(w), o(!0), A.global.getUsers({
40763
40770
  targetId: u,
@@ -40768,7 +40775,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40768
40775
  }).catch((x) => r?.(x.errorMsg));
40769
40776
  },
40770
40777
  [A, r, u, f]
40771
- ), m = M(() => {
40778
+ ), m = L(() => {
40772
40779
  o(!1), l(void 0), d(void 0);
40773
40780
  }, []);
40774
40781
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -40934,7 +40941,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40934
40941
  const i = q(), [o, a] = E(!1), [l, c] = E(), [d, u] = E(), [f, g] = E(), [h, m] = E([]), v = $(
40935
40942
  () => A ?? (async (B) => (await SA.businessNetworking.getInfos(B)).result),
40936
40943
  [A]
40937
- ), w = M(() => {
40944
+ ), w = L(() => {
40938
40945
  clearTimeout(l), o || c(
40939
40946
  setTimeout(() => {
40940
40947
  a(!0), n.user.get(t, H1.VIEW).then((B) => u(B.result)).catch((B) => {
@@ -40948,22 +40955,22 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
40948
40955
  r && r(B.errorMsg);
40949
40956
  });
40950
40957
  }, [d, n, r]);
40951
- const x = M(() => {
40958
+ const x = L(() => {
40952
40959
  clearTimeout(l), o && c(
40953
40960
  setTimeout(() => {
40954
40961
  a(!1), u(void 0), g(void 0);
40955
40962
  }, 200)
40956
40963
  );
40957
- }, [l, o]), b = M(
40964
+ }, [l, o]), b = L(
40958
40965
  (B) => {
40959
40966
  const { name: y, value: C } = B;
40960
40967
  if (typeof C == "object")
40961
- return y === "businessNetworkingUserToCompanySrc" && Object.values(C).forEach((S) => {
40962
- h.some((I) => I.ref === S.id) || v(S.id).then((I) => {
40968
+ return y === "businessNetworkingUserToCompanySrc" && Object.values(C).forEach((D) => {
40969
+ h.some((I) => I.ref === D.id) || v(D.id).then((I) => {
40963
40970
  m([
40964
40971
  ...h,
40965
40972
  {
40966
- ref: S.id,
40973
+ ref: D.id,
40967
40974
  display: /* @__PURE__ */ s.jsx(Dt, { href: I._url, children: I.title })
40968
40975
  }
40969
40976
  ]);
@@ -41189,11 +41196,11 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
41189
41196
  articleId: x,
41190
41197
  onReport: b
41191
41198
  }) => {
41192
- const B = lt(), y = q(), [C, S] = E(!1), [I, O] = E(!1), [F, k] = E(!1), [z, W] = E(!1), [L, X] = E(!1), [te, G] = E(t.description), [_, V] = E(!1), [Q, D] = E(!1), [N, Z] = E(!0), U = ae(null), R = ae(null), J = UA(), Y = M(() => {
41199
+ const B = lt(), y = q(), [C, D] = E(!1), [I, O] = E(!1), [F, k] = E(!1), [z, W] = E(!1), [M, X] = E(!1), [te, G] = E(t.description), [_, V] = E(!1), [Q, S] = E(!1), [N, Z] = E(!0), U = ae(null), R = ae(null), J = UA(), Y = L(() => {
41193
41200
  A && te && (V(!0), r({ idComment: t.id, description: te, token: A }).then(() => {
41194
41201
  X(!1), V(!1);
41195
41202
  }));
41196
- }, [A, t, te, r]), H = M(() => {
41203
+ }, [A, t, te, r]), H = L(() => {
41197
41204
  V(!0), i(t.id).then(() => {
41198
41205
  W(!1), V(!1), w?.responseId === t.id && w.onUnselectResponse();
41199
41206
  }).catch((re) => o?.(re.errorMsg));
@@ -41211,7 +41218,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
41211
41218
  re.disconnect();
41212
41219
  };
41213
41220
  }, [t]);
41214
- const ce = M(
41221
+ const ce = L(
41215
41222
  (re) => new Promise((De, Re) => {
41216
41223
  A && g(re).then(() => {
41217
41224
  Y(), De();
@@ -41223,13 +41230,13 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
41223
41230
  ), le = $(() => {
41224
41231
  if (t._widgets)
41225
41232
  return h(t, t._widgets, "view", !0);
41226
- }, [t, h]), ke = M(() => {
41233
+ }, [t, h]), ke = L(() => {
41227
41234
  w && v.questionAnswer.selectResponse({ idResponse: t.id, idQuestion: x }, { signal: J.signal }).then(() => {
41228
41235
  w.onSelectResponse(t.id);
41229
41236
  }).catch((re) => {
41230
41237
  o && !J.signal.aborted && o(re.errorMsg);
41231
41238
  });
41232
- }, [J.signal, x, t.id, v.questionAnswer, o, w]), oe = M(() => {
41239
+ }, [J.signal, x, t.id, v.questionAnswer, o, w]), oe = L(() => {
41233
41240
  w && v.questionAnswer.unselectResponse({ idQuestion: x }, { signal: J.signal }).then(() => {
41234
41241
  w.onUnselectResponse();
41235
41242
  }).catch((re) => {
@@ -41241,8 +41248,8 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
41241
41248
  {
41242
41249
  $pending: t.pending,
41243
41250
  $focused: e,
41244
- onMouseEnter: () => S(!0),
41245
- onMouseLeave: () => S(!1),
41251
+ onMouseEnter: () => D(!0),
41252
+ onMouseLeave: () => D(!1),
41246
41253
  children: [
41247
41254
  /* @__PURE__ */ s.jsx(yp, { children: /* @__PURE__ */ s.jsx(
41248
41255
  Dt,
@@ -41263,7 +41270,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
41263
41270
  )
41264
41271
  }
41265
41272
  ) }),
41266
- /* @__PURE__ */ s.jsx(tb, { children: L && A ? /* @__PURE__ */ s.jsx(
41273
+ /* @__PURE__ */ s.jsx(tb, { children: M && A ? /* @__PURE__ */ s.jsx(
41267
41274
  QY,
41268
41275
  {
41269
41276
  comment: t,
@@ -41412,7 +41419,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
41412
41419
  /* @__PURE__ */ s.jsx(gA, { ref: U, __html: t.description ?? void 0 }),
41413
41420
  d && /* @__PURE__ */ s.jsx(NY, { children: t._widgets && le })
41414
41421
  ] }),
41415
- N && (Q ? /* @__PURE__ */ s.jsx(nb, { onClick: () => D(!1), children: y.formatMessage({ id: "GLOBAL_See_Less" }) }) : /* @__PURE__ */ s.jsx(kY, { children: /* @__PURE__ */ s.jsx(nb, { onClick: () => D(!0), children: y.formatMessage({ id: "GLOBAL_See_More" }) }) })),
41422
+ N && (Q ? /* @__PURE__ */ s.jsx(nb, { onClick: () => S(!1), children: y.formatMessage({ id: "GLOBAL_See_Less" }) }) : /* @__PURE__ */ s.jsx(kY, { children: /* @__PURE__ */ s.jsx(nb, { onClick: () => S(!0), children: y.formatMessage({ id: "GLOBAL_See_More" }) }) })),
41416
41423
  t._attachedFiles && t._attachedFiles.length > 0 && /* @__PURE__ */ s.jsx(Ab, { children: /* @__PURE__ */ s.jsx(
41417
41424
  vo,
41418
41425
  {
@@ -41476,30 +41483,30 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
41476
41483
  activeDrives: B,
41477
41484
  variant: y,
41478
41485
  canComment: C,
41479
- handlers: S,
41486
+ handlers: D,
41480
41487
  socialQuestion: I,
41481
41488
  articleId: O,
41482
41489
  additionalExtensions: F,
41483
41490
  onReport: k
41484
41491
  }) => {
41485
- const z = ae(null), [W, L] = E(), [X, te] = E(t), G = M(() => {
41492
+ const z = ae(null), [W, M] = E(), [X, te] = E(t), G = L(() => {
41486
41493
  te(X + 5);
41487
- }, [X]), _ = M(() => {
41488
- e && (L(e.length - 1), z?.current && z.current.scrollIntoView({ block: "end" }));
41489
- }, [e]), V = M(
41494
+ }, [X]), _ = L(() => {
41495
+ e && (M(e.length - 1), z?.current && z.current.scrollIntoView({ block: "end" }));
41496
+ }, [e]), V = L(
41490
41497
  async (Q) => {
41491
41498
  if (u)
41492
41499
  try {
41493
- await S.file.deleteFile(Q, "attachment", u);
41494
- } catch (D) {
41495
- h && h(D);
41500
+ await D.file.deleteFile(Q, "attachment", u);
41501
+ } catch (S) {
41502
+ h && h(S);
41496
41503
  }
41497
41504
  },
41498
- [S.file, h, u]
41505
+ [D.file, h, u]
41499
41506
  );
41500
41507
  return j(() => {
41501
41508
  const Q = () => {
41502
- L(void 0);
41509
+ M(void 0);
41503
41510
  };
41504
41511
  return W !== void 0 ? document.addEventListener("click", Q) : document.removeEventListener("click", Q), () => {
41505
41512
  document.removeEventListener("click", Q);
@@ -41517,10 +41524,10 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
41517
41524
  }
41518
41525
  ),
41519
41526
  e && /* @__PURE__ */ s.jsx(XY, { ref: z, children: e.map(
41520
- (Q, D) => e.length - D <= X ? /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(
41527
+ (Q, S) => e.length - S <= X ? /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(
41521
41528
  zY,
41522
41529
  {
41523
- isFocused: D === W,
41530
+ isFocused: S === W,
41524
41531
  comment: Q,
41525
41532
  tinyMCEConfig: n,
41526
41533
  onCommentDelete: f,
@@ -41535,13 +41542,13 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
41535
41542
  onGetHashError: b,
41536
41543
  getAccessHash: x,
41537
41544
  existingWidgetsWrapperComponent: c,
41538
- handlers: S,
41545
+ handlers: D,
41539
41546
  activeDrives: B,
41540
41547
  socialQuestion: I,
41541
41548
  articleId: O,
41542
41549
  onReport: k
41543
41550
  }
41544
- ) }, `comment-${D}`) : null
41551
+ ) }, `comment-${S}`) : null
41545
41552
  ) }),
41546
41553
  /* @__PURE__ */ s.jsx(
41547
41554
  lY,
@@ -41556,7 +41563,7 @@ const yq = ({ dateStart: e, dateEnd: t, type: A, allDay: n }) => {
41556
41563
  socialQuestion: !!I,
41557
41564
  token: u,
41558
41565
  onError: h,
41559
- handlers: S,
41566
+ handlers: D,
41560
41567
  canCreateWidget: i,
41561
41568
  deleteFile: V,
41562
41569
  loading: d,
@@ -41654,13 +41661,13 @@ const VY = p.div`
41654
41661
  }
41655
41662
  },
41656
41663
  hover: (b, B) => {
41657
- const y = b.index, C = A, S = e === $A.ITEM && b.sectionId && i && b.sectionId !== i;
41658
- if (!l.current || B.getItemType() !== e || y === C && !S)
41664
+ const y = b.index, C = A, D = e === $A.ITEM && b.sectionId && i && b.sectionId !== i;
41665
+ if (!l.current || B.getItemType() !== e || y === C && !D)
41659
41666
  return;
41660
41667
  const I = l.current?.getBoundingClientRect(), O = (I.bottom - I.top) / 2, F = B.getClientOffset();
41661
41668
  if (!F) return;
41662
41669
  const z = F.y - I.top < O;
41663
- if (S) {
41670
+ if (D) {
41664
41671
  u(z ? "before" : "after");
41665
41672
  const X = z ? C : C + 1;
41666
41673
  g(X);
@@ -41674,8 +41681,8 @@ const VY = p.div`
41674
41681
  }
41675
41682
  let W = z ? C : C + 1;
41676
41683
  y < W && (W = W - 1), W = Math.max(0, W);
41677
- const L = W <= C;
41678
- u(L ? "before" : "after"), g(W);
41684
+ const M = W <= C;
41685
+ u(M ? "before" : "after"), g(W);
41679
41686
  },
41680
41687
  collect: (b) => ({
41681
41688
  isOver: b.isOver(),
@@ -41906,19 +41913,19 @@ const VY = p.div`
41906
41913
  const g = q(), h = $(() => c ?? g.formatMessage({ id: "DND_LIST_TITLE" }), [c, g]), m = $(
41907
41914
  () => d ?? g.formatMessage({ id: "DND_EMPTY_STATE" }),
41908
41915
  [d, g]
41909
- ), v = M(
41916
+ ), v = L(
41910
41917
  (b, B) => {
41911
41918
  r(b, B);
41912
41919
  },
41913
41920
  [r]
41914
- ), w = M(
41921
+ ), w = L(
41915
41922
  (b) => {
41916
41923
  i && i(b);
41917
41924
  },
41918
41925
  [i]
41919
- ), x = M(
41926
+ ), x = L(
41920
41927
  (b, B) => {
41921
- const y = A, C = a && l, S = (O) => /* @__PURE__ */ s.jsxs(ob, { children: [
41928
+ const y = A, C = a && l, D = (O) => /* @__PURE__ */ s.jsxs(ob, { children: [
41922
41929
  /* @__PURE__ */ s.jsx("div", { ref: O, style: { cursor: "grab" }, children: /* @__PURE__ */ s.jsx(
41923
41930
  yg,
41924
41931
  {
@@ -41964,7 +41971,7 @@ const VY = p.div`
41964
41971
  onMove: v,
41965
41972
  index: B,
41966
41973
  useDragHandle: C,
41967
- children: C ? S : I
41974
+ children: C ? D : I
41968
41975
  },
41969
41976
  b.id
41970
41977
  );
@@ -42015,7 +42022,7 @@ const VY = p.div`
42015
42022
  onHoverEnd: o,
42016
42023
  children: a
42017
42024
  }) => {
42018
- const l = ae(null), [c, d] = E(null), [u, f] = E(t), g = ae(!1), h = M((B) => {
42025
+ const l = ae(null), [c, d] = E(null), [u, f] = E(t), g = ae(!1), h = L((B) => {
42019
42026
  const C = B.target.closest(pZ);
42020
42027
  g.current = !!C;
42021
42028
  }, []), [{ isDragging: m }, v] = Xs(
@@ -42040,15 +42047,15 @@ const VY = p.div`
42040
42047
  drop: (B, y) => {
42041
42048
  const C = y.getItemType();
42042
42049
  if (C === pn.STACK_ITEM) {
42043
- const S = c === "before" ? t : c === "after" ? t + 1 : u >= 0 ? u : t;
42044
- r(B, S, B.index);
42050
+ const D = c === "before" ? t : c === "after" ? t + 1 : u >= 0 ? u : t;
42051
+ r(B, D, B.index);
42045
42052
  return;
42046
42053
  }
42047
42054
  if (C === pn.MAIN_ITEM) {
42048
42055
  if (!A || B.index === t)
42049
42056
  return;
42050
- let S = c === "before" ? t : c === "after" ? t + 1 : u >= 0 ? u : t;
42051
- B.index < S && (S -= 1), S < 0 && (S = 0), n(B.index, S);
42057
+ let D = c === "before" ? t : c === "after" ? t + 1 : u >= 0 ? u : t;
42058
+ B.index < D && (D -= 1), D < 0 && (D = 0), n(B.index, D);
42052
42059
  }
42053
42060
  },
42054
42061
  hover: (B, y) => {
@@ -42057,15 +42064,15 @@ const VY = p.div`
42057
42064
  const C = y.getItemType();
42058
42065
  if (C === pn.MAIN_ITEM && (!A || B.index === t))
42059
42066
  return;
42060
- const S = l.current.getBoundingClientRect(), I = (S.bottom - S.top) / 2, O = y.getClientOffset();
42067
+ const D = l.current.getBoundingClientRect(), I = (D.bottom - D.top) / 2, O = y.getClientOffset();
42061
42068
  if (!O)
42062
42069
  return;
42063
- let z = O.y - S.top < I ? t : t + 1;
42070
+ let z = O.y - D.top < I ? t : t + 1;
42064
42071
  C === pn.MAIN_ITEM && B.index < z && (z = z - 1), z = Math.max(0, z);
42065
42072
  const W = z <= t;
42066
42073
  d(W ? "before" : "after"), f(z);
42067
- const L = C === pn.STACK_ITEM ? "stack" : "main";
42068
- z === 0 ? i("before-first", 0, L) : i("between", z, L);
42074
+ const M = C === pn.STACK_ITEM ? "stack" : "main";
42075
+ z === 0 ? i("before-first", 0, M) : i("between", z, M);
42069
42076
  },
42070
42077
  collect: (B) => ({
42071
42078
  isOver: B.isOver()
@@ -42076,7 +42083,7 @@ const VY = p.div`
42076
42083
  j(() => {
42077
42084
  w || (d(null), o());
42078
42085
  }, [w, o]);
42079
- const b = M(
42086
+ const b = L(
42080
42087
  (B) => {
42081
42088
  l.current = B, v(x(B));
42082
42089
  },
@@ -42115,7 +42122,7 @@ const VY = p.div`
42115
42122
  })
42116
42123
  }),
42117
42124
  [e]
42118
- ), a = M(
42125
+ ), a = L(
42119
42126
  (l) => {
42120
42127
  o(l);
42121
42128
  },
@@ -42262,37 +42269,37 @@ const VY = p.div`
42262
42269
  ), C = $(
42263
42270
  () => g ?? B.formatMessage({ id: "DND_STACK_TITLE" }),
42264
42271
  [g, B]
42265
- ), S = $(
42272
+ ), D = $(
42266
42273
  () => h ?? B.formatMessage({ id: "DND_EMPTY_STATE" }),
42267
42274
  [h, B]
42268
- ), [I, O] = E(null), F = M(
42275
+ ), [I, O] = E(null), F = L(
42269
42276
  (V, Q) => {
42270
42277
  o(V, Q);
42271
42278
  },
42272
42279
  [o]
42273
- ), k = M(
42274
- (V, Q, D) => {
42275
- i(V, Q, D);
42280
+ ), k = L(
42281
+ (V, Q, S) => {
42282
+ i(V, Q, S);
42276
42283
  },
42277
42284
  [i]
42278
- ), z = M(
42285
+ ), z = L(
42279
42286
  (V, Q) => {
42280
42287
  a && a(V, Q);
42281
42288
  },
42282
42289
  [a]
42283
- ), W = M(
42284
- (V, Q, D) => {
42290
+ ), W = L(
42291
+ (V, Q, S) => {
42285
42292
  let N = V;
42286
- V === "between" && Q === e.length && (N = "after-last"), O({ position: N, index: Q, dragType: D });
42293
+ V === "between" && Q === e.length && (N = "after-last"), O({ position: N, index: Q, dragType: S });
42287
42294
  },
42288
42295
  [e.length]
42289
- ), L = M(() => {
42296
+ ), M = L(() => {
42290
42297
  O(null);
42291
- }, []), X = M(() => {
42298
+ }, []), X = L(() => {
42292
42299
  e.length === 0 && O({ position: "empty", index: void 0, dragType: "stack" });
42293
- }, [e.length]), te = M(
42300
+ }, [e.length]), te = L(
42294
42301
  (V, Q) => {
42295
- const D = A;
42302
+ const S = A;
42296
42303
  return /* @__PURE__ */ s.jsx(
42297
42304
  vZ,
42298
42305
  {
@@ -42302,9 +42309,9 @@ const VY = p.div`
42302
42309
  onMove: F,
42303
42310
  onDropFromStack: k,
42304
42311
  onHover: W,
42305
- onHoverEnd: L,
42312
+ onHoverEnd: M,
42306
42313
  children: /* @__PURE__ */ s.jsx(
42307
- D,
42314
+ S,
42308
42315
  {
42309
42316
  item: V,
42310
42317
  index: Q,
@@ -42325,11 +42332,11 @@ const VY = p.div`
42325
42332
  k,
42326
42333
  z,
42327
42334
  W,
42328
- L
42335
+ M
42329
42336
  ]
42330
- ), G = M(
42337
+ ), G = L(
42331
42338
  (V, Q) => {
42332
- const D = n, N = u ? u(V, Q) : !1, Z = b ? (U) => b(V, Q, N, U) : void 0;
42339
+ const S = n, N = u ? u(V, Q) : !1, Z = b ? (U) => b(V, Q, N, U) : void 0;
42333
42340
  return /* @__PURE__ */ s.jsx(
42334
42341
  BZ,
42335
42342
  {
@@ -42339,7 +42346,7 @@ const VY = p.div`
42339
42346
  isStackFixed: d,
42340
42347
  onKeyDown: Z,
42341
42348
  children: /* @__PURE__ */ s.jsx(
42342
- D,
42349
+ S,
42343
42350
  {
42344
42351
  item: V,
42345
42352
  index: Q,
@@ -42352,14 +42359,14 @@ const VY = p.div`
42352
42359
  );
42353
42360
  },
42354
42361
  [n, u, d, b]
42355
- ), _ = M(() => {
42362
+ ), _ = L(() => {
42356
42363
  if (e.length === 0) {
42357
42364
  const Q = I?.position === "empty";
42358
- return r ? /* @__PURE__ */ s.jsx(r, { isDraggingOver: Q }) : /* @__PURE__ */ s.jsx(TZ, { "data-testid": "one-level-empty-state", $isDraggingOver: Q, children: S });
42365
+ return r ? /* @__PURE__ */ s.jsx(r, { isDraggingOver: Q }) : /* @__PURE__ */ s.jsx(TZ, { "data-testid": "one-level-empty-state", $isDraggingOver: Q, children: D });
42359
42366
  }
42360
42367
  const V = [];
42361
- return e.forEach((Q, D) => {
42362
- D === 0 ? V.push(
42368
+ return e.forEach((Q, S) => {
42369
+ S === 0 ? V.push(
42363
42370
  /* @__PURE__ */ s.jsx(
42364
42371
  Zu,
42365
42372
  {
@@ -42371,15 +42378,15 @@ const VY = p.div`
42371
42378
  /* @__PURE__ */ s.jsx(
42372
42379
  Zu,
42373
42380
  {
42374
- $isActive: I?.position === "between" && I.index === D
42381
+ $isActive: I?.position === "between" && I.index === S
42375
42382
  },
42376
- `spacer-${D}`
42383
+ `spacer-${S}`
42377
42384
  )
42378
- ), V.push(te(Q, D)), D === e.length - 1 && V.push(
42385
+ ), V.push(te(Q, S)), S === e.length - 1 && V.push(
42379
42386
  /* @__PURE__ */ s.jsx(Zu, { $isActive: I?.position === "after-last" }, "spacer-after-last")
42380
42387
  );
42381
42388
  }), /* @__PURE__ */ s.jsx(s.Fragment, { children: V });
42382
- }, [e, I, r, S, te]);
42389
+ }, [e, I, r, D, te]);
42383
42390
  return /* @__PURE__ */ s.jsx(gd, { children: /* @__PURE__ */ s.jsxs(yZ, { $maxHeight: m, children: [
42384
42391
  /* @__PURE__ */ s.jsxs(CZ, { children: [
42385
42392
  f && /* @__PURE__ */ s.jsx(EZ, { variant: "h3", color: "grey6", children: y }),
@@ -42389,7 +42396,7 @@ const VY = p.div`
42389
42396
  {
42390
42397
  onDropFromStack: k,
42391
42398
  onHoverEmpty: X,
42392
- onHoverEnd: L,
42399
+ onHoverEnd: M,
42393
42400
  children: /* @__PURE__ */ s.jsx(DZ, { children: _() })
42394
42401
  }
42395
42402
  ),
@@ -42430,7 +42437,7 @@ const QZ = GD, VD = Sg(
42430
42437
  sectionError: b,
42431
42438
  $maxHeight: B
42432
42439
  }) => {
42433
- const y = q(), C = $(() => e.customSections, [e.customSections]), S = $(() => e.defaultSection, [e.defaultSection]), I = $(
42440
+ const y = q(), C = $(() => e.customSections, [e.customSections]), D = $(() => e.defaultSection, [e.defaultSection]), I = $(
42434
42441
  () => h ?? y.formatMessage({ id: "DND_ADD_SECTION" }),
42435
42442
  [h, y]
42436
42443
  ), O = $(
@@ -42442,76 +42449,76 @@ const QZ = GD, VD = Sg(
42442
42449
  ), k = $(
42443
42450
  () => w ?? y.formatMessage({ id: "DND_SECTIONS_TITLE" }),
42444
42451
  [w, y]
42445
- ), z = $(() => y.formatMessage({ id: "DND_NEW_SECTION_LABEL" }), [y]), W = M(
42446
- (D, N, Z) => {
42447
- n(D, N, Z);
42452
+ ), z = $(() => y.formatMessage({ id: "DND_NEW_SECTION_LABEL" }), [y]), W = L(
42453
+ (S, N, Z) => {
42454
+ n(S, N, Z);
42448
42455
  },
42449
42456
  [n]
42450
- ), L = M(
42451
- (D, N, Z) => {
42452
- r(D, N, Z);
42457
+ ), M = L(
42458
+ (S, N, Z) => {
42459
+ r(S, N, Z);
42453
42460
  },
42454
42461
  [r]
42455
- ), X = M(
42456
- (D, N) => {
42457
- o(D, N);
42462
+ ), X = L(
42463
+ (S, N) => {
42464
+ o(S, N);
42458
42465
  },
42459
42466
  [o]
42460
- ), te = M(() => {
42467
+ ), te = L(() => {
42461
42468
  a();
42462
- }, [a]), G = M(
42463
- (D) => {
42464
- l(D);
42469
+ }, [a]), G = L(
42470
+ (S) => {
42471
+ l(S);
42465
42472
  },
42466
42473
  [l]
42467
- ), _ = M(
42468
- (D, N) => {
42469
- N.trim().length > 0 && c(D, N);
42474
+ ), _ = L(
42475
+ (S, N) => {
42476
+ N.trim().length > 0 && c(S, N);
42470
42477
  },
42471
42478
  [c]
42472
- ), V = M(
42473
- (D, N, Z) => {
42479
+ ), V = L(
42480
+ (S, N, Z) => {
42474
42481
  const U = t;
42475
42482
  return /* @__PURE__ */ s.jsx(
42476
42483
  hc,
42477
42484
  {
42478
42485
  type: $A.ITEM,
42479
- item: D,
42486
+ item: S,
42480
42487
  onMove: (R, J) => W(R, J, Z),
42481
- onMoveToSection: (R, J) => L(R, J, Z),
42488
+ onMoveToSection: (R, J) => M(R, J, Z),
42482
42489
  sectionId: Z,
42483
42490
  index: N,
42484
42491
  children: /* @__PURE__ */ s.jsx(
42485
42492
  U,
42486
42493
  {
42487
- item: D,
42488
- dragHandleProps: { "aria-label": `Drag item ${String(D.id)}` },
42494
+ item: S,
42495
+ dragHandleProps: { "aria-label": `Drag item ${String(S.id)}` },
42489
42496
  onRemove: i,
42490
42497
  sectionId: Z,
42491
42498
  canRemove: g
42492
42499
  }
42493
42500
  )
42494
42501
  },
42495
- `${Z}-${D.id}`
42502
+ `${Z}-${S.id}`
42496
42503
  );
42497
42504
  },
42498
- [t, W, L, i, g]
42499
- ), Q = M(
42500
- (D, N) => /* @__PURE__ */ s.jsx(
42505
+ [t, W, M, i, g]
42506
+ ), Q = L(
42507
+ (S, N) => /* @__PURE__ */ s.jsx(
42501
42508
  hc,
42502
42509
  {
42503
42510
  type: $A.SECTION,
42504
- item: D,
42511
+ item: S,
42505
42512
  onMove: X,
42506
42513
  index: N,
42507
- "data-testid": `section-${D.id}`,
42514
+ "data-testid": `section-${S.id}`,
42508
42515
  children: /* @__PURE__ */ s.jsxs(nZ, { "data-testid": `section-wrapper-${N}`, children: [
42509
- /* @__PURE__ */ s.jsxs(rZ, { $hasItems: D.items.length > 0, children: [
42516
+ /* @__PURE__ */ s.jsxs(rZ, { $hasItems: S.items.length > 0, children: [
42510
42517
  /* @__PURE__ */ s.jsxs(iZ, { children: [
42511
42518
  /* @__PURE__ */ s.jsx(
42512
42519
  yg,
42513
42520
  {
42514
- label: `Drag section handle for ${D.label}`,
42521
+ label: `Drag section handle for ${S.label}`,
42515
42522
  name: "icon-grip-dots-vertical",
42516
42523
  color: "grey4"
42517
42524
  }
@@ -42519,24 +42526,24 @@ const QZ = GD, VD = Sg(
42519
42526
  f ? /* @__PURE__ */ s.jsx(
42520
42527
  oZ,
42521
42528
  {
42522
- name: `section-label-${D.id}`,
42523
- value: D.label ?? "",
42529
+ name: `section-label-${S.id}`,
42530
+ value: S.label ?? "",
42524
42531
  placeholder: z,
42525
- onChange: (Z) => _(D.id, Z.target.value),
42526
- "aria-label": `Edit section label for ${D.label}`,
42532
+ onChange: (Z) => _(S.id, Z.target.value),
42533
+ "aria-label": `Edit section label for ${S.label}`,
42527
42534
  required: !0,
42528
42535
  minLength: 1,
42529
- $hasError: x[D.id] ?? !1
42536
+ $hasError: x[S.id] ?? !1
42530
42537
  }
42531
- ) : /* @__PURE__ */ s.jsx(tZ, { children: D.label })
42538
+ ) : /* @__PURE__ */ s.jsx(tZ, { children: S.label })
42532
42539
  ] }),
42533
42540
  u && /* @__PURE__ */ s.jsx(
42534
42541
  sZ,
42535
42542
  {
42536
42543
  "data-testid": `remove-section-${N}`,
42537
- onClick: () => G(D.id),
42538
- "aria-label": `Remove section ${D.label}`,
42539
- srOnly: `Drag section handle for ${D.label}`,
42544
+ onClick: () => G(S.id),
42545
+ "aria-label": `Remove section ${S.label}`,
42546
+ srOnly: `Drag section handle for ${S.label}`,
42540
42547
  icon: "icon-close",
42541
42548
  color: "grey4",
42542
42549
  variant: "circle",
@@ -42549,18 +42556,18 @@ const QZ = GD, VD = Sg(
42549
42556
  {
42550
42557
  onDrop: (Z) => {
42551
42558
  const U = Z;
42552
- U.sectionId !== D.id && L(U, D.items.length, D.id);
42559
+ U.sectionId !== S.id && M(U, S.items.length, S.id);
42553
42560
  },
42554
42561
  accept: $A.ITEM,
42555
42562
  children: /* @__PURE__ */ s.jsxs(aZ, { children: [
42556
- D.items.map((Z, U) => V(Z, U, D.id)),
42557
- D.items.length === 0 && (A ? /* @__PURE__ */ s.jsx(A, { sectionId: D.id, "data-testid": "empty-state" }) : /* @__PURE__ */ s.jsx(Cg, { "data-testid": "empty-state", children: O }))
42563
+ S.items.map((Z, U) => V(Z, U, S.id)),
42564
+ S.items.length === 0 && (A ? /* @__PURE__ */ s.jsx(A, { sectionId: S.id, "data-testid": "empty-state" }) : /* @__PURE__ */ s.jsx(Cg, { "data-testid": "empty-state", children: O }))
42558
42565
  ] })
42559
42566
  }
42560
42567
  )
42561
42568
  ] })
42562
42569
  },
42563
- D.id
42570
+ S.id
42564
42571
  ),
42565
42572
  [
42566
42573
  X,
@@ -42572,30 +42579,30 @@ const QZ = GD, VD = Sg(
42572
42579
  O,
42573
42580
  _,
42574
42581
  G,
42575
- L,
42582
+ M,
42576
42583
  V
42577
42584
  ]
42578
42585
  );
42579
- return S ? /* @__PURE__ */ s.jsx(gd, { children: /* @__PURE__ */ s.jsxs(YY, { $maxHeight: B, children: [
42586
+ return D ? /* @__PURE__ */ s.jsx(gd, { children: /* @__PURE__ */ s.jsxs(YY, { $maxHeight: B, children: [
42580
42587
  /* @__PURE__ */ s.jsxs(ZY, { children: [
42581
42588
  /* @__PURE__ */ s.jsx(ib, { variant: "h3", color: "grey6", children: F }),
42582
42589
  /* @__PURE__ */ s.jsx(_Y, { children: /* @__PURE__ */ s.jsx(
42583
42590
  pc,
42584
42591
  {
42585
- onDrop: (D) => {
42586
- const N = D;
42587
- N.sectionId !== S.id && L(
42592
+ onDrop: (S) => {
42593
+ const N = S;
42594
+ N.sectionId !== D.id && M(
42588
42595
  N,
42589
- S.items.length,
42590
- S.id
42596
+ D.items.length,
42597
+ D.id
42591
42598
  );
42592
42599
  },
42593
42600
  accept: $A.ITEM,
42594
42601
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
42595
- S.items.map(
42596
- (D, N) => V(D, N, S.id)
42602
+ D.items.map(
42603
+ (S, N) => V(S, N, D.id)
42597
42604
  ),
42598
- S.items.length === 0 && (A ? /* @__PURE__ */ s.jsx(A, { sectionId: S.id }) : /* @__PURE__ */ s.jsx(Cg, { "data-testid": "default-empty-state", children: O }))
42605
+ D.items.length === 0 && (A ? /* @__PURE__ */ s.jsx(A, { sectionId: D.id }) : /* @__PURE__ */ s.jsx(Cg, { "data-testid": "default-empty-state", children: O }))
42599
42606
  ] })
42600
42607
  }
42601
42608
  ) })
@@ -42603,7 +42610,7 @@ const QZ = GD, VD = Sg(
42603
42610
  /* @__PURE__ */ s.jsxs($Y, { children: [
42604
42611
  /* @__PURE__ */ s.jsx(eZ, { children: /* @__PURE__ */ s.jsx(ib, { variant: "h3", color: "grey6", children: k }) }),
42605
42612
  b && /* @__PURE__ */ s.jsx(cZ, { children: b }),
42606
- C.length > 0 && /* @__PURE__ */ s.jsx(AZ, { children: C.map((D, N) => Q(D, N)) }),
42613
+ C.length > 0 && /* @__PURE__ */ s.jsx(AZ, { children: C.map((S, N) => Q(S, N)) }),
42607
42614
  d && /* @__PURE__ */ s.jsx(
42608
42615
  lZ,
42609
42616
  {
@@ -43347,7 +43354,7 @@ const HZ = VD, FZ = p.form`
43347
43354
  setOpen: r,
43348
43355
  onClose: i
43349
43356
  }) => {
43350
- const o = M(() => {
43357
+ const o = L(() => {
43351
43358
  r(!1), i();
43352
43359
  }, [i, r]);
43353
43360
  return /* @__PURE__ */ s.jsx(
@@ -43505,16 +43512,16 @@ const HZ = VD, FZ = p.form`
43505
43512
  return n;
43506
43513
  const y = Z_(n, u);
43507
43514
  return y ? [y, ...n] : n;
43508
- }, [r, n, u]), v = M(
43509
- (y, C) => (S) => {
43510
- g(!1), d(y, S.shiftKey) === "continue" && C?.(S);
43515
+ }, [r, n, u]), v = L(
43516
+ (y, C) => (D) => {
43517
+ g(!1), d(y, D.shiftKey) === "continue" && C?.(D);
43511
43518
  },
43512
43519
  [d]
43513
- ), w = M(() => {
43520
+ ), w = L(() => {
43514
43521
  g((y) => !y);
43515
- }, []), x = M((y) => {
43522
+ }, []), x = L((y) => {
43516
43523
  y.currentTarget.contains(y.relatedTarget) || g(!1);
43517
- }, []), b = M((y) => {
43524
+ }, []), b = L((y) => {
43518
43525
  y.key === "Escape" && (g(!1), h.current && h.current.focus());
43519
43526
  }, []), B = {
43520
43527
  onClick: w,
@@ -43546,15 +43553,15 @@ const HZ = VD, FZ = p.form`
43546
43553
  {
43547
43554
  children: [
43548
43555
  y.sectionLabel.length > 0 ? /* @__PURE__ */ s.jsx(ne, { size: "l", children: u.formatMessage({ id: y.sectionLabel }) }) : C > 0 && /* @__PURE__ */ s.jsx(V_, {}),
43549
- /* @__PURE__ */ s.jsx(q_, { children: y.entries.map(({ key: S, ...I }) => /* @__PURE__ */ s.jsx(
43556
+ /* @__PURE__ */ s.jsx(q_, { children: y.entries.map(({ key: D, ...I }) => /* @__PURE__ */ s.jsx(
43550
43557
  G_,
43551
43558
  {
43552
43559
  hasFavorites: r,
43553
43560
  ...I,
43554
- onClick: v(S, I.onClick),
43555
- favoriteClick: () => i?.(S)
43561
+ onClick: v(D, I.onClick),
43562
+ favoriteClick: () => i?.(D)
43556
43563
  },
43557
- S
43564
+ D
43558
43565
  )) })
43559
43566
  ]
43560
43567
  },
@@ -44611,7 +44618,7 @@ const OA = ({
44611
44618
  j(() => {
44612
44619
  n ? c.current?.focus() : c.current?.blur();
44613
44620
  }, [n]);
44614
- const f = M(
44621
+ const f = L(
44615
44622
  (g) => {
44616
44623
  o(g), u(ef - g.length);
44617
44624
  },
@@ -45278,9 +45285,9 @@ const OA = ({
45278
45285
  defaultValues: {
45279
45286
  file: A
45280
45287
  }
45281
- }), l = lt(), [c, d] = E(!1), [u, f] = E(!1), [g, h] = E(!1), m = M(() => {
45288
+ }), l = lt(), [c, d] = E(!1), [u, f] = E(!1), [g, h] = E(!1), m = L(() => {
45282
45289
  a.reset(), d(!1);
45283
- }, [a]), v = M(() => {
45290
+ }, [a]), v = L(() => {
45284
45291
  const x = a.getValues("file");
45285
45292
  n(x), d(!1);
45286
45293
  }, [a, n]), w = [
@@ -45527,19 +45534,19 @@ const OA = ({
45527
45534
  onChangeWrapper: i,
45528
45535
  handleChange: o
45529
45536
  }) => {
45530
- const a = q(), [l, c] = E(!1), [d, u] = E(null), [f, g] = E(0), h = ae([]), m = M(() => {
45537
+ const a = q(), [l, c] = E(!1), [d, u] = E(null), [f, g] = E(0), h = ae([]), m = L(() => {
45531
45538
  g(A?.arr?.length ?? 0);
45532
- }, [A]), v = M(() => {
45539
+ }, [A]), v = L(() => {
45533
45540
  if (!Array.isArray(A.arr)) return;
45534
45541
  const F = [...A.arr, { title: "", value: !1 }];
45535
45542
  o({ arr: F }), m(), h.current.push(Ds());
45536
- }, [m, o, A.arr]), w = M(
45543
+ }, [m, o, A.arr]), w = L(
45537
45544
  (F) => {
45538
45545
  i({ uniqid: t, title: F });
45539
45546
  },
45540
45547
  [i, t]
45541
45548
  ), x = (F, k) => {
45542
- const z = A?.arr?.map((L, X) => X !== F ? L : { ...k });
45549
+ const z = A?.arr?.map((M, X) => X !== F ? M : { ...k });
45543
45550
  if (!z) return;
45544
45551
  r(t, {
45545
45552
  arr: z
@@ -45554,8 +45561,8 @@ const OA = ({
45554
45561
  }, y = (F, k) => {
45555
45562
  const z = {
45556
45563
  arr: [
45557
- ...A?.arr?.map((W, L) => {
45558
- if (L !== k) return W;
45564
+ ...A?.arr?.map((W, M) => {
45565
+ if (M !== k) return W;
45559
45566
  const X = W.links?.filter((te, G) => G !== F);
45560
45567
  return { ...W, links: X };
45561
45568
  }) ?? []
@@ -45564,12 +45571,12 @@ const OA = ({
45564
45571
  r(t, z);
45565
45572
  }, C = () => {
45566
45573
  c(!1), u(null);
45567
- }, S = (F) => {
45574
+ }, D = (F) => {
45568
45575
  if (!Array.isArray(A.arr)) return;
45569
45576
  const k = A.arr.map((z, W) => {
45570
45577
  if (W === F) {
45571
- const L = { ...z };
45572
- return delete L.id, delete L.file, L;
45578
+ const M = { ...z };
45579
+ return delete M.id, delete M.file, M;
45573
45580
  } else
45574
45581
  return z;
45575
45582
  });
@@ -45578,7 +45585,7 @@ const OA = ({
45578
45585
  r(t, F);
45579
45586
  }, O = (F, k) => {
45580
45587
  if (!Array.isArray(A.arr)) return;
45581
- const z = A.arr.map((W, L) => L === F ? { ...W, id: k.id, file: k } : W);
45588
+ const z = A.arr.map((W, M) => M === F ? { ...W, id: k.id, file: k } : W);
45582
45589
  o({ arr: z });
45583
45590
  };
45584
45591
  return j(() => {
@@ -45609,7 +45616,7 @@ const OA = ({
45609
45616
  handleAddUri: B,
45610
45617
  handleRemoveUri: y,
45611
45618
  handleAddImageWidget: O,
45612
- handleRemoveImage: S,
45619
+ handleRemoveImage: D,
45613
45620
  handleNewItem: v,
45614
45621
  length: A?.arr?.length ?? 0,
45615
45622
  inputRef: h.current[k]
@@ -45684,7 +45691,7 @@ const OA = ({
45684
45691
  gap: 0;
45685
45692
  padding: 12px 0;
45686
45693
  `, $ee = ({ uniqid: e, content: t, onChangeContent: A }) => {
45687
- const n = q(), r = Sn(), i = t.backgroundColor ? String(t.backgroundColor) : r.color.transparentHexa, o = M(
45694
+ const n = q(), r = Sn(), i = t.backgroundColor ? String(t.backgroundColor) : r.color.transparentHexa, o = L(
45688
45695
  (a) => {
45689
45696
  A(e, {
45690
45697
  ...t,
@@ -46539,48 +46546,48 @@ const OA = ({
46539
46546
  });
46540
46547
  return () => cancelAnimationFrame(B);
46541
46548
  }, [r, d]);
46542
- const f = M(
46549
+ const f = L(
46543
46550
  (B, y) => {
46544
46551
  const C = a.current;
46545
46552
  if (!Array.isArray(C.arr)) return;
46546
- const S = document.activeElement, I = S?.tagName === "INPUT", O = C.arr.map(
46553
+ const D = document.activeElement, I = D?.tagName === "INPUT", O = C.arr.map(
46547
46554
  (F, k) => k === B ? { ...F, ...y } : F
46548
46555
  );
46549
46556
  l.current({ ...C, arr: O }), I && requestAnimationFrame(() => {
46550
46557
  const F = c.get(B)?.current;
46551
- F && document.activeElement !== F && (F.focus(), S.selectionStart !== null && F.setSelectionRange(S.selectionStart, S.selectionEnd));
46558
+ F && document.activeElement !== F && (F.focus(), D.selectionStart !== null && F.setSelectionRange(D.selectionStart, D.selectionEnd));
46552
46559
  });
46553
46560
  },
46554
46561
  [c]
46555
- ), g = M((B) => {
46562
+ ), g = L((B) => {
46556
46563
  const y = a.current;
46557
46564
  if (!Array.isArray(y.arr)) return;
46558
46565
  const C = [...y.arr];
46559
46566
  C.splice(B, 1), l.current({ ...y, arr: C });
46560
- }, []), h = M((B, y) => {
46567
+ }, []), h = L((B, y) => {
46561
46568
  const C = a.current;
46562
46569
  if (!Array.isArray(C.arr)) return;
46563
- const S = C.arr.map(
46570
+ const D = C.arr.map(
46564
46571
  (I, O) => O === B ? { ...I, id: y.id, file: y } : I
46565
46572
  );
46566
- l.current({ ...C, arr: S });
46567
- }, []), m = M((B) => {
46573
+ l.current({ ...C, arr: D });
46574
+ }, []), m = L((B) => {
46568
46575
  const y = a.current;
46569
46576
  if (!Array.isArray(y.arr)) return;
46570
- const C = y.arr.map((S, I) => {
46571
- if (I !== B) return S;
46572
- const { file: O, id: F, ...k } = S;
46577
+ const C = y.arr.map((D, I) => {
46578
+ if (I !== B) return D;
46579
+ const { file: O, id: F, ...k } = D;
46573
46580
  return k;
46574
46581
  });
46575
46582
  l.current({ ...y, arr: C });
46576
- }, []), v = M(() => {
46583
+ }, []), v = L(() => {
46577
46584
  const B = a.current, y = Array.isArray(B.arr) ? B.arr : [];
46578
46585
  l.current({ ...B, arr: [...y, { title: "" }] }), i(y.length);
46579
- }, []), w = M((B, y) => {
46586
+ }, []), w = L((B, y) => {
46580
46587
  const C = a.current;
46581
46588
  if (!Array.isArray(C.arr)) return;
46582
- const S = [...C.arr], [I] = S.splice(B, 1);
46583
- S.splice(y, 0, I), l.current({ ...C, arr: S });
46589
+ const D = [...C.arr], [I] = D.splice(B, 1);
46590
+ D.splice(y, 0, I), l.current({ ...C, arr: D });
46584
46591
  }, []), x = $(() => Array.isArray(e.arr) ? e.arr.map((B, y) => ({
46585
46592
  title: B.title,
46586
46593
  mimetype: B.mimetype,
@@ -46589,7 +46596,7 @@ const OA = ({
46589
46596
  // Utiliser l'id existant ou un id temporaire basé sur l'index
46590
46597
  originalId: B.id,
46591
46598
  index: y
46592
- })) : [], [e.arr]), b = M(
46599
+ })) : [], [e.arr]), b = L(
46593
46600
  ({ item: B }) => {
46594
46601
  const y = {
46595
46602
  title: B.title,
@@ -47262,8 +47269,8 @@ const FAe = p.div`
47262
47269
  }, [n]), j(() => {
47263
47270
  if (t && r && c > 1 && !x && !v)
47264
47271
  return B.current = setInterval(() => {
47265
- u((S) => {
47266
- const I = bb(S, c, r), O = f.at(-1);
47272
+ u((D) => {
47273
+ const I = bb(D, c, r), O = f.at(-1);
47267
47274
  return O !== void 0 && O < c - 1 && g((F) => [...F, O + 1]), I;
47268
47275
  });
47269
47276
  }, A * 1e3), () => {
@@ -47274,8 +47281,8 @@ const FAe = p.div`
47274
47281
  }, [e, d, c]);
47275
47282
  const y = () => {
47276
47283
  u(bb(d, c, r));
47277
- const S = f.at(-1);
47278
- S && S < c && g([...f, S + 1]);
47284
+ const D = f.at(-1);
47285
+ D && D < c && g([...f, D + 1]);
47279
47286
  }, C = () => u(HAe(d, c, r));
47280
47287
  return Array.isArray(e) && e.length ? /* @__PURE__ */ s.jsxs(
47281
47288
  FAe,
@@ -47284,8 +47291,8 @@ const FAe = p.div`
47284
47291
  onMouseEnter: () => w(!0),
47285
47292
  onMouseLeave: () => w(!1),
47286
47293
  children: [
47287
- /* @__PURE__ */ s.jsx(PAe, { step: d, steps: c, children: e.map((S, I) => {
47288
- const { component: O, attributes: F } = S;
47294
+ /* @__PURE__ */ s.jsx(PAe, { step: d, steps: c, children: e.map((D, I) => {
47295
+ const { component: O, attributes: F } = D;
47289
47296
  return /* @__PURE__ */ s.jsx(jAe, { maxHeight: h, children: f.includes(I) && /* @__PURE__ */ s.jsx(
47290
47297
  O,
47291
47298
  {
@@ -47430,7 +47437,7 @@ const FAe = p.div`
47430
47437
  list: [],
47431
47438
  total: 0,
47432
47439
  progression: 0
47433
- }, [A, n]), h = M(
47440
+ }, [A, n]), h = L(
47434
47441
  (m) => {
47435
47442
  d((v) => !v), o(m);
47436
47443
  },
@@ -47462,7 +47469,7 @@ const FAe = p.div`
47462
47469
  context: i,
47463
47470
  isClosed: o
47464
47471
  }) => {
47465
- const a = q(), [l, c] = E(t), d = $(() => Object.values(A).reduce((g, h) => g + h.total, 0), [A]), u = M((g) => {
47472
+ const a = q(), [l, c] = E(t), d = $(() => Object.values(A).reduce((g, h) => g + h.total, 0), [A]), u = L((g) => {
47466
47473
  c((h) => h.includes(g) ? h.filter((m) => m !== g) : [...h, g]);
47467
47474
  }, []), f = $(() => F1.surveyDateLabels(e), [e]);
47468
47475
  return j(() => n(l), [l, n]), /* @__PURE__ */ s.jsx(_Ae, { children: e.map((g) => /* @__PURE__ */ s.jsx(
@@ -47890,7 +47897,7 @@ const dne = p.button`
47890
47897
  onChange: n,
47891
47898
  onUpdateModel: r
47892
47899
  }) => {
47893
- const i = q(), [o, a] = E(A), [l, c] = E(!1), [d, u] = E(void 0), f = M((h, m) => {
47900
+ const i = q(), [o, a] = E(A), [l, c] = E(!1), [d, u] = E(void 0), f = L((h, m) => {
47894
47901
  a((v) => zg.array.arraySwapElements(v, h, m));
47895
47902
  }, []);
47896
47903
  j(() => {
@@ -48160,13 +48167,13 @@ const dne = p.button`
48160
48167
  }) => {
48161
48168
  const [x, b] = E(void 0), [B, y] = E(void 0);
48162
48169
  j(() => {
48163
- !e || x || (f.handleStart(), f.jamespot.datasource.getModel(e).then(({ result: S }) => {
48164
- b(S.model), y(S.type);
48170
+ !e || x || (f.handleStart(), f.jamespot.datasource.getModel(e).then(({ result: D }) => {
48171
+ b(D.model), y(D.type);
48165
48172
  }).catch(f.handleCatch).finally(f.handleFinally));
48166
48173
  }, [e, w, x, v, f]), j(() => {
48167
48174
  v({ initialized: !!e });
48168
48175
  }, [e, v]);
48169
- const C = M(() => {
48176
+ const C = L(() => {
48170
48177
  y(void 0), h({
48171
48178
  tableColumnsData: [],
48172
48179
  uri: void 0
@@ -48283,7 +48290,7 @@ const dne = p.button`
48283
48290
  /* @__PURE__ */ s.jsx(sne, {})
48284
48291
  ] });
48285
48292
  }, b1 = ({ uri: e, onHandleCancel: t }) => {
48286
- const A = q(), [n, r] = E(void 0), { hook: i, handlers: o, onChange: a, onError: l } = Tn(), c = M(() => {
48293
+ const A = q(), [n, r] = E(void 0), { hook: i, handlers: o, onChange: a, onError: l } = Tn(), c = L(() => {
48287
48294
  o.handleStart(), o.jamespot.datasource.cancel(e).then(() => {
48288
48295
  a({ uri: void 0, tableColumnsData: [] }), t();
48289
48296
  }).catch(o.handleCatch).finally(o.handleFinally);
@@ -48328,11 +48335,11 @@ const dne = p.button`
48328
48335
  tableColumnsData: t,
48329
48336
  model: A
48330
48337
  }) => {
48331
- const n = q(), [r, i] = E(!1), [o, a] = E(A), [l, c] = E(void 0), [d, u] = E(!1), { onChange: f, handlers: g } = Tn(), h = M(() => {
48338
+ const n = q(), [r, i] = E(!1), [o, a] = E(A), [l, c] = E(void 0), [d, u] = E(!1), { onChange: f, handlers: g } = Tn(), h = L(() => {
48332
48339
  f({ uri: void 0 }), setTimeout(() => {
48333
48340
  f({ uri: e });
48334
48341
  });
48335
- }, [e, f]), m = M(() => {
48342
+ }, [e, f]), m = L(() => {
48336
48343
  o && (g.handleStart(), g.jamespot.datasource.updateModel(e, o).then(() => {
48337
48344
  i(!1), h();
48338
48345
  }).catch(g.handleCatch).finally(g.handleFinally));
@@ -48342,7 +48349,7 @@ const dne = p.button`
48342
48349
  c(x.result), u(!!x.result.filter((b) => !b || b.length === 0).length);
48343
48350
  }).catch(g.handleCatch).finally(g.handleFinally));
48344
48351
  }, [e]);
48345
- const v = M(
48352
+ const v = L(
48346
48353
  (x) => {
48347
48354
  g.handleStart(), g.jamespot.datasource.updateModel(e, x).then(() => {
48348
48355
  f({ uri: void 0 }), setTimeout(() => {
@@ -48422,7 +48429,7 @@ const dne = p.button`
48422
48429
  ) })
48423
48430
  ] });
48424
48431
  }, Sne = ({ uri: e, onCancel: t }) => {
48425
- const A = q(), [n, r] = E(void 0), [i, o] = E(void 0), { onChange: a, handlers: l } = Tn(), c = M(() => {
48432
+ const A = q(), [n, r] = E(void 0), [i, o] = E(void 0), { onChange: a, handlers: l } = Tn(), c = L(() => {
48426
48433
  e && n && (l.handleStart(), l.jamespot.datasource.setExcelDatasource(e, n).then((d) => {
48427
48434
  a({
48428
48435
  tableColumnsData: d.result.map((u) => ({ name: u.name, isVisible: la.includes(u.type) })),
@@ -48476,7 +48483,7 @@ function Cb(e, t) {
48476
48483
  return A ? !A.filter((n) => !n || n.length === 0).length : !1;
48477
48484
  }
48478
48485
  const Ine = ({ onCreateSuccess: e }) => {
48479
- const t = q(), [A, n] = E(), [r, i] = E(), { handlers: o } = Tn(), a = M(() => {
48486
+ const t = q(), [A, n] = E(), [r, i] = E(), { handlers: o } = Tn(), a = L(() => {
48480
48487
  o.handleStart(), o.jamespot.network.token().then(({ result: l }) => n(l)).catch(o.handleCatch).finally(o.handleFinally);
48481
48488
  }, [o]);
48482
48489
  if (j(() => {
@@ -48507,7 +48514,7 @@ const Ine = ({ onCreateSuccess: e }) => {
48507
48514
  )
48508
48515
  ] });
48509
48516
  }, One = ({ uri: e, tableColumnsData: t }) => {
48510
- const [A, n] = E(void 0), [r, i] = E(void 0), { handlers: o, onChange: a, onStateChange: l } = Tn(), c = M(() => {
48517
+ const [A, n] = E(void 0), [r, i] = E(void 0), { handlers: o, onChange: a, onStateChange: l } = Tn(), c = L(() => {
48511
48518
  i(void 0), n(void 0), a({ uri: void 0, tableColumnsData: [] });
48512
48519
  }, [a]);
48513
48520
  return j(() => {
@@ -48723,7 +48730,7 @@ const Jne = (e) => {
48723
48730
  } = e, [v, w] = E(r ?? 1), [x, b] = E({
48724
48731
  name: o,
48725
48732
  order: i
48726
- }), B = M(
48733
+ }), B = L(
48727
48734
  (I) => {
48728
48735
  x.name === I ? b({ ...x, order: x.order === "ascending" ? "descending" : "ascending" }) : b({ name: I, order: "ascending" });
48729
48736
  },
@@ -48731,7 +48738,7 @@ const Jne = (e) => {
48731
48738
  ), y = $(() => t.length, [t]), C = $(() => {
48732
48739
  const I = A.find((O) => O.name === x.name);
48733
48740
  return I ? I.type : "text";
48734
- }, [A, x]), S = $(
48741
+ }, [A, x]), D = $(
48735
48742
  () => Qne(Vne(t, x.order, x.name, C), v, Number(m)),
48736
48743
  [t, x.name, x.order, v, m, C]
48737
48744
  );
@@ -48770,7 +48777,7 @@ const Jne = (e) => {
48770
48777
  I.name
48771
48778
  );
48772
48779
  }) }) }),
48773
- /* @__PURE__ */ s.jsx(Pne, { children: S.map((I, O) => /* @__PURE__ */ s.jsx(
48780
+ /* @__PURE__ */ s.jsx(Pne, { children: D.map((I, O) => /* @__PURE__ */ s.jsx(
48774
48781
  Db,
48775
48782
  {
48776
48783
  background: O % 2 === 1 ? d : "#fff",
@@ -49110,11 +49117,11 @@ const tre = [
49110
49117
  tinyMCECommonOptions: r,
49111
49118
  handlers: i
49112
49119
  }) => {
49113
- const o = q(), [a, l] = E(!1), [c, d] = E(e), u = M(() => {
49120
+ const o = q(), [a, l] = E(!1), [c, d] = E(e), u = L(() => {
49114
49121
  l(!0), d(e);
49115
- }, [e, d]), f = M(() => {
49122
+ }, [e, d]), f = L(() => {
49116
49123
  l(!1);
49117
- }, [l]), g = M(() => {
49124
+ }, [l]), g = L(() => {
49118
49125
  t(c), l(!1);
49119
49126
  }, [c, t, l]);
49120
49127
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -49202,7 +49209,7 @@ const tre = [
49202
49209
  ), v = t.padding ?? 10, w = t.text ?? "", b = $(
49203
49210
  () => t.css?.justifyContent !== void 0 || t.css?.alignItems !== void 0,
49204
49211
  [t.css?.justifyContent, t.css?.alignItems]
49205
- ) ? "flex" : t.css?.display ?? "block", B = M(
49212
+ ) ? "flex" : t.css?.display ?? "block", B = L(
49206
49213
  (I) => {
49207
49214
  const O = hm[I];
49208
49215
  A(e, {
@@ -49211,7 +49218,7 @@ const tre = [
49211
49218
  }), c(I);
49212
49219
  },
49213
49220
  [e, t, A]
49214
- ), y = M(
49221
+ ), y = L(
49215
49222
  (I, O) => {
49216
49223
  const F = {
49217
49224
  ...t,
@@ -49220,7 +49227,7 @@ const tre = [
49220
49227
  A(e, F);
49221
49228
  },
49222
49229
  [e, t, A]
49223
- ), C = M(
49230
+ ), C = L(
49224
49231
  (I, O) => {
49225
49232
  const F = {
49226
49233
  ...t.css,
@@ -49232,7 +49239,7 @@ const tre = [
49232
49239
  });
49233
49240
  },
49234
49241
  [e, t, A]
49235
- ), S = M(
49242
+ ), D = L(
49236
49243
  (I) => {
49237
49244
  let O = { ...t.css, display: I ? "flex" : "block" };
49238
49245
  I ? O = { ...O, ...hm[l] } : ("justifyContent" in O && delete O.justifyContent, "alignItems" in O && delete O.alignItems), A(e, { ...t, css: O });
@@ -49278,7 +49285,7 @@ const tre = [
49278
49285
  /* @__PURE__ */ s.jsxs(Sb, { children: [
49279
49286
  /* @__PURE__ */ s.jsxs(Ar, { children: [
49280
49287
  /* @__PURE__ */ s.jsx("div", { children: a.formatMessage({ id: "WIDGET_Text_Use_Flex_Label" }) }),
49281
- /* @__PURE__ */ s.jsx(go, { initialValue: b === "flex", onChange: S })
49288
+ /* @__PURE__ */ s.jsx(go, { initialValue: b === "flex", onChange: D })
49282
49289
  ] }),
49283
49290
  /* @__PURE__ */ s.jsx(Ar, { disabled: t.css?.display !== "flex", children: /* @__PURE__ */ s.jsx(
49284
49291
  B1,
@@ -49454,7 +49461,7 @@ const tre = [
49454
49461
  [h]: m
49455
49462
  };
49456
49463
  A(e, v);
49457
- }, g = M(
49464
+ }, g = L(
49458
49465
  (h, m) => {
49459
49466
  const v = {
49460
49467
  ...t.css,
@@ -49638,7 +49645,7 @@ const tre = [
49638
49645
  [v]: w
49639
49646
  };
49640
49647
  A(e, x);
49641
- }, m = M(
49648
+ }, m = L(
49642
49649
  (v, w) => {
49643
49650
  const x = {
49644
49651
  ...t.css,