@equinor/amplify-component-lib 9.15.0 → 9.15.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/index.js +216 -297
  2. package/dist/src/atoms/hooks/index.d.ts +0 -1
  3. package/dist/src/index.d.ts +4 -4
  4. package/dist/src/molecules/Chip/Chip.d.ts +1 -1
  5. package/dist/src/molecules/FileProgress/CompactFileProgress.styles.d.ts +2 -2
  6. package/dist/src/molecules/ListItem/ListItem.utils.d.ts +1 -1
  7. package/dist/src/molecules/Select/Select.styles.d.ts +11 -11
  8. package/dist/src/molecules/Sieve/Sieve.styles.d.ts +1 -1
  9. package/dist/src/molecules/Sieve/Sieve.types.d.ts +0 -2
  10. package/dist/src/organisms/Filter/AutoCompleteText.d.ts +1 -1
  11. package/dist/src/organisms/Filter/Filter.styles.d.ts +3 -3
  12. package/dist/src/organisms/SideBar/CreateItem.styles.d.ts +1 -1
  13. package/dist/src/organisms/SideBar/MenuItem/MenuItem.styles.d.ts +295 -2
  14. package/dist/src/organisms/TableOfContents/TableOfContents.styles.d.ts +294 -1
  15. package/dist/src/organisms/TopBar/Account/Account.styles.d.ts +3 -3
  16. package/dist/src/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.styles.d.ts +1 -1
  17. package/dist/src/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.styles.d.ts +3 -3
  18. package/dist/src/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.styles.d.ts +1 -1
  19. package/dist/src/organisms/TopBar/FieldMenu/FieldMenu.styles.d.ts +1 -1
  20. package/dist/src/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.d.ts +1 -1
  21. package/dist/src/organisms/TopBar/Resources/Feedback/Feedback.styles.d.ts +1 -1
  22. package/dist/src/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles.d.ts +1 -1
  23. package/dist/src/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles.d.ts +1 -1
  24. package/dist/src/organisms/TopBar/TopBar.styles.d.ts +296 -3
  25. package/package.json +5 -9
  26. package/dist/src/atoms/hooks/useSearchParameter.d.ts +0 -5
package/dist/index.js CHANGED
@@ -363,7 +363,8 @@ var require_lodash = __commonJS((exports, module) => {
363
363
  return types;
364
364
  }
365
365
  return freeProcess && freeProcess.binding && freeProcess.binding("util");
366
- } catch (e) {}
366
+ } catch (e) {
367
+ }
367
368
  }();
368
369
  var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
369
370
  function apply(func, thisArg, args) {
@@ -589,12 +590,14 @@ var require_lodash = __commonJS((exports, module) => {
589
590
  }
590
591
  function charsStartIndex(strSymbols, chrSymbols) {
591
592
  var index = -1, length = strSymbols.length;
592
- while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
593
+ while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
594
+ }
593
595
  return index;
594
596
  }
595
597
  function charsEndIndex(strSymbols, chrSymbols) {
596
598
  var index = strSymbols.length;
597
- while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
599
+ while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
600
+ }
598
601
  return index;
599
602
  }
600
603
  function countHolders(array, placeholder) {
@@ -690,7 +693,8 @@ var require_lodash = __commonJS((exports, module) => {
690
693
  }
691
694
  function trimmedEndIndex(string) {
692
695
  var index = string.length;
693
- while (index-- && reWhitespace.test(string.charAt(index))) {}
696
+ while (index-- && reWhitespace.test(string.charAt(index))) {
697
+ }
694
698
  return index;
695
699
  }
696
700
  var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
@@ -729,7 +733,8 @@ var require_lodash = __commonJS((exports, module) => {
729
733
  var func = getNative(Object2, "defineProperty");
730
734
  func({}, "", {});
731
735
  return func;
732
- } catch (e) {}
736
+ } catch (e) {
737
+ }
733
738
  }();
734
739
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
735
740
  var { ceil: nativeCeil, floor: nativeFloor } = Math2, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
@@ -750,7 +755,8 @@ var require_lodash = __commonJS((exports, module) => {
750
755
  return new LodashWrapper(value);
751
756
  }
752
757
  var baseCreate = function() {
753
- function object() {}
758
+ function object() {
759
+ }
754
760
  return function(proto) {
755
761
  if (!isObject(proto)) {
756
762
  return {};
@@ -764,7 +770,8 @@ var require_lodash = __commonJS((exports, module) => {
764
770
  return result2;
765
771
  };
766
772
  }();
767
- function baseLodash() {}
773
+ function baseLodash() {
774
+ }
768
775
  function LodashWrapper(value, chainAll) {
769
776
  this.__wrapped__ = value;
770
777
  this.__actions__ = [];
@@ -1914,7 +1921,8 @@ var require_lodash = __commonJS((exports, module) => {
1914
1921
  }
1915
1922
  function baseWhile(array, predicate, isDrop, fromRight) {
1916
1923
  var length = array.length, index = fromRight ? length : -1;
1917
- while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {}
1924
+ while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {
1925
+ }
1918
1926
  return isDrop ? baseSlice(array, fromRight ? 0 : index, fromRight ? index + 1 : length) : baseSlice(array, fromRight ? index + 1 : 0, fromRight ? length : index);
1919
1927
  }
1920
1928
  function baseWrapperValue(value, actions) {
@@ -2695,7 +2703,8 @@ var require_lodash = __commonJS((exports, module) => {
2695
2703
  try {
2696
2704
  value[symToStringTag] = undefined2;
2697
2705
  var unmasked = true;
2698
- } catch (e) {}
2706
+ } catch (e) {
2707
+ }
2699
2708
  var result2 = nativeObjectToString.call(value);
2700
2709
  if (unmasked) {
2701
2710
  if (isOwn) {
@@ -3053,10 +3062,12 @@ var require_lodash = __commonJS((exports, module) => {
3053
3062
  if (func != null) {
3054
3063
  try {
3055
3064
  return funcToString.call(func);
3056
- } catch (e) {}
3065
+ } catch (e) {
3066
+ }
3057
3067
  try {
3058
3068
  return func + "";
3059
- } catch (e) {}
3069
+ } catch (e) {
3070
+ }
3060
3071
  }
3061
3072
  return "";
3062
3073
  }
@@ -4853,7 +4864,8 @@ __p += '`;
4853
4864
  }
4854
4865
  return this;
4855
4866
  }
4856
- function noop() {}
4867
+ function noop() {
4868
+ }
4857
4869
  function nthArg(n) {
4858
4870
  n = toInteger(n);
4859
4871
  return baseRest(function(args) {
@@ -8239,7 +8251,7 @@ import {
8239
8251
  useRef as useRef2,
8240
8252
  useState as useState5
8241
8253
  } from "react";
8242
- import { useLocation, useNavigate } from "react-router";
8254
+ import { useLocation, useNavigate } from "@tanstack/react-router";
8243
8255
 
8244
8256
  // src/atoms/hooks/useOnScreenMultiple.ts
8245
8257
  import { useEffect as useEffect2, useState as useState4 } from "react";
@@ -8304,7 +8316,6 @@ var TableOfContentsProvider = ({
8304
8316
  const { hash } = useLocation();
8305
8317
  const [selected, setSelected] = useState5(items[0]?.value);
8306
8318
  const [elements, setElements] = useState5([]);
8307
- const [shouldInstantlyJump, setShouldInstantlyJump] = useState5(hash !== "");
8308
8319
  const initHashStateRef = useRef2(false);
8309
8320
  const values = useMemo3(() => items.flatMap((item) => getValues([], item)), [items]);
8310
8321
  useEffect3(() => {
@@ -8328,9 +8339,19 @@ var TableOfContentsProvider = ({
8328
8339
  const isScrollingTo = useRef2(-1);
8329
8340
  const handleSetSelected = useCallback2((value, options) => {
8330
8341
  const selectedIndex = values.findIndex((itemValue) => itemValue === value);
8342
+ if (hashNavigation) {
8343
+ setSelected(values[selectedIndex]);
8344
+ navigate({
8345
+ to: ".",
8346
+ hash: `#${values[selectedIndex]}`,
8347
+ hashScrollIntoView: false,
8348
+ replace: true
8349
+ });
8350
+ return;
8351
+ }
8331
8352
  const element = elements[selectedIndex];
8332
8353
  if (element) {
8333
- const behavior = options?.shouldInstantlyJumpOnMount && shouldInstantlyJump ? "instant" : options?.behavior ?? "smooth";
8354
+ const behavior = options?.behavior ?? "smooth";
8334
8355
  element.scrollIntoView({
8335
8356
  block: "start",
8336
8357
  behavior
@@ -8344,10 +8365,6 @@ var TableOfContentsProvider = ({
8344
8365
  same += 1;
8345
8366
  if (same > 1) {
8346
8367
  setSelected(values[selectedIndex]);
8347
- if (hashNavigation) {
8348
- navigate(`#${values[selectedIndex]}`, { replace: true });
8349
- setShouldInstantlyJump(false);
8350
- }
8351
8368
  isScrollingTo.current = -1;
8352
8369
  return;
8353
8370
  }
@@ -8359,9 +8376,28 @@ var TableOfContentsProvider = ({
8359
8376
  };
8360
8377
  requestAnimationFrame(checkScrollDone);
8361
8378
  }
8362
- }, [elements, hashNavigation, navigate, shouldInstantlyJump, values]);
8379
+ }, [elements, hashNavigation, navigate, values]);
8380
+ useEffect3(() => {
8381
+ if (hash && !initHashStateRef.current) {
8382
+ initHashStateRef.current = true;
8383
+ const targetValue = decodeURIComponent(hash.replace("#", ""));
8384
+ if (!targetValue.length || !values.includes(targetValue)) {
8385
+ return;
8386
+ }
8387
+ setSelected(targetValue);
8388
+ navigate({
8389
+ to: ".",
8390
+ hash: `#${targetValue}`,
8391
+ hashScrollIntoView: {
8392
+ block: "start",
8393
+ behavior: "instant"
8394
+ },
8395
+ replace: true
8396
+ });
8397
+ }
8398
+ }, [hash, navigate, values]);
8363
8399
  useEffect3(() => {
8364
- if (visible.length === 0 || visible.length !== values.length || isScrollingTo.current !== -1)
8400
+ if (visible.length === 0 || visible.length !== values.length || isScrollingTo.current !== -1 || !initHashStateRef.current)
8365
8401
  return;
8366
8402
  let newSelectedIndex = -1;
8367
8403
  for (let index = visible.length - 1;index >= 0; index--) {
@@ -8371,20 +8407,16 @@ var TableOfContentsProvider = ({
8371
8407
  }
8372
8408
  if (newSelectedIndex === -1 || values.at(newSelectedIndex) === undefined)
8373
8409
  return;
8374
- const targetValue = hash.replace("#", "");
8375
- if (!initHashStateRef.current && targetValue.length && values.includes(targetValue)) {
8376
- handleSetSelected(targetValue, {
8377
- behavior: "instant",
8378
- shouldInstantlyJumpOnMount: true
8379
- });
8380
- initHashStateRef.current = true;
8381
- return;
8382
- }
8383
8410
  setSelected(values[newSelectedIndex]);
8384
8411
  if (hashNavigation) {
8385
- navigate(`#${values[newSelectedIndex]}`, { replace: true });
8412
+ navigate({
8413
+ to: ".",
8414
+ hash: `#${values[newSelectedIndex]}`,
8415
+ hashScrollIntoView: false,
8416
+ replace: true
8417
+ });
8386
8418
  }
8387
- }, [hashNavigation, navigate, values, visible]);
8419
+ }, [handleSetSelected, hashNavigation, navigate, values, visible]);
8388
8420
  return /* @__PURE__ */ jsxDEV13(TableOfContentsContext.Provider, {
8389
8421
  value: {
8390
8422
  items,
@@ -9058,7 +9090,7 @@ import {
9058
9090
  useContext as useContext6,
9059
9091
  useState as useState11
9060
9092
  } from "react";
9061
- import { useLocation as useLocation2, useNavigate as useNavigate2, useParams } from "react-router";
9093
+ import { useLocation as useLocation2, useNavigate as useNavigate2, useParams } from "@tanstack/react-router";
9062
9094
  import { jsxDEV as jsxDEV17 } from "react/jsx-dev-runtime";
9063
9095
  var StepperContext = createContext6(undefined);
9064
9096
  function useStepper() {
@@ -9069,7 +9101,7 @@ function useStepper() {
9069
9101
  return context;
9070
9102
  }
9071
9103
  var StepperProvider = ({ steps, children, isStepDisabled, ...rest }) => {
9072
- const { step } = useParams();
9104
+ const { step } = useParams({ strict: false });
9073
9105
  const navigate = useNavigate2();
9074
9106
  const pathWithoutStep = useLocation2().pathname.split("/").slice(0, -1).join("/");
9075
9107
  const usingInitialStep = rest.syncToURLParam ? Number(step) : rest?.initialStep ?? 0;
@@ -9087,7 +9119,7 @@ var StepperProvider = ({ steps, children, isStepDisabled, ...rest }) => {
9087
9119
  }
9088
9120
  const handleOnSetStep = (value) => {
9089
9121
  if (rest.syncToURLParam) {
9090
- navigate(`${pathWithoutStep}/${value}`);
9122
+ navigate({ to: `${pathWithoutStep}/${value}` });
9091
9123
  } else {
9092
9124
  setCurrentStep(value);
9093
9125
  }
@@ -9178,49 +9210,16 @@ var ThemeProvider = ({ children }) => {
9178
9210
  children
9179
9211
  }, undefined, false, undefined, this);
9180
9212
  };
9181
- // src/atoms/hooks/useSearchParameter.ts
9182
- import { useRef as useRef7 } from "react";
9183
- import { useSearchParams } from "react-router-dom";
9184
- function useSearchParameter({
9185
- key,
9186
- initialValue,
9187
- parser
9188
- }) {
9189
- const [searchParams, setSearchParams] = useSearchParams();
9190
- const usedInitialValue = useRef7(false);
9191
- const stringValue = searchParams.get(key) ?? undefined;
9192
- const parsedValue = parser && stringValue ? parser(stringValue) : stringValue;
9193
- const value = !usedInitialValue.current && parsedValue === undefined ? initialValue : parsedValue;
9194
- const handleSetValue = (action) => {
9195
- if (!usedInitialValue.current) {
9196
- usedInitialValue.current = true;
9197
- }
9198
- if (action instanceof Function) {
9199
- const newValue = action(value);
9200
- handleSetValue(newValue);
9201
- } else {
9202
- const newSearchParams = new URLSearchParams(searchParams);
9203
- const stringify = typeof action === "string" ? action : JSON.stringify(action);
9204
- if (stringify === undefined || stringify === "" || stringify === "null" || stringify === "[]" || stringify === "{}") {
9205
- newSearchParams.delete(key);
9206
- } else {
9207
- newSearchParams.set(key, stringify);
9208
- }
9209
- setSearchParams(newSearchParams);
9210
- }
9211
- };
9212
- return [value, handleSetValue];
9213
- }
9214
9213
  // src/atoms/hooks/usePrefetchRichTextImages.ts
9215
- import { useEffect as useEffect10, useRef as useRef8 } from "react";
9214
+ import { useEffect as useEffect10, useRef as useRef7 } from "react";
9216
9215
  import { useIsFetching, useQueryClient } from "@tanstack/react-query";
9217
9216
  function usePrefetchRichTextImages({
9218
9217
  richTextValues,
9219
9218
  onImageRead
9220
9219
  }) {
9221
9220
  const queryClient = useQueryClient();
9222
- const startedPrefetch = useRef8([]);
9223
- const prefetched = useRef8([]);
9221
+ const startedPrefetch = useRef7([]);
9222
+ const prefetched = useRef7([]);
9224
9223
  const paths = richTextValues.flatMap((value) => getImagesFromRichText(value));
9225
9224
  const isPrefetching = useIsFetching({
9226
9225
  predicate: (query) => startedPrefetch.current.some((path) => query.queryKey[0] === path && !prefetched.current.includes(path))
@@ -11730,7 +11729,7 @@ var ContentMenu = ({
11730
11729
  }, undefined, false, undefined, this);
11731
11730
  };
11732
11731
  // src/molecules/DatePicker/DatePicker.tsx
11733
- import { forwardRef as forwardRef28, useRef as useRef9 } from "react";
11732
+ import { forwardRef as forwardRef28, useRef as useRef8 } from "react";
11734
11733
  import {
11735
11734
  DatePicker as EDSDatePicker,
11736
11735
  Icon as Icon9,
@@ -11865,7 +11864,7 @@ var DatePicker = forwardRef28((props, ref) => {
11865
11864
  helperText: props.helperProps?.text,
11866
11865
  helperIcon: props.helperProps?.icon
11867
11866
  });
11868
- const skeletonWidth = useRef9(`${Math.max(40, Math.random() * 80)}%`);
11867
+ const skeletonWidth = useRef8(`${Math.max(40, Math.random() * 80)}%`);
11869
11868
  const usingDisabled = props.loading || props.disabled;
11870
11869
  return /* @__PURE__ */ jsxDEV52(DatePickerWrapper, {
11871
11870
  $variant: props.variant,
@@ -11902,7 +11901,7 @@ var DatePicker = forwardRef28((props, ref) => {
11902
11901
  });
11903
11902
  DatePicker.displayName = "DatePicker";
11904
11903
  // src/molecules/DateRangePicker/DateRangePicker.tsx
11905
- import { forwardRef as forwardRef29, useRef as useRef10 } from "react";
11904
+ import { forwardRef as forwardRef29, useRef as useRef9 } from "react";
11906
11905
  import {
11907
11906
  DateRangePicker as Base,
11908
11907
  Icon as Icon10,
@@ -11928,7 +11927,7 @@ var DateRangePicker = forwardRef29((props, ref) => {
11928
11927
  helperText: props.helperProps?.text,
11929
11928
  helperIcon: props.helperProps?.icon
11930
11929
  });
11931
- const skeletonWidth = useRef10(`${Math.max(40, Math.random() * 80)}%`);
11930
+ const skeletonWidth = useRef9(`${Math.max(40, Math.random() * 80)}%`);
11932
11931
  const usingDisabled = props.disabled || props.loading;
11933
11932
  return /* @__PURE__ */ jsxDEV53(DatePickerWrapper, {
11934
11933
  $variant: props.variant,
@@ -13164,7 +13163,7 @@ import { forwardRef as forwardRef33 } from "react";
13164
13163
  import { Typography as Typography18 } from "@equinor/eds-core-react";
13165
13164
 
13166
13165
  // src/molecules/InfoElement/CopyText.tsx
13167
- import { useEffect as useEffect16, useRef as useRef11, useState as useState20 } from "react";
13166
+ import { useEffect as useEffect16, useRef as useRef10, useState as useState20 } from "react";
13168
13167
  import { Icon as Icon16, Typography as Typography17 } from "@equinor/eds-core-react";
13169
13168
  import { copy } from "@equinor/eds-icons";
13170
13169
  import styled24, { keyframes as keyframes3 } from "styled-components";
@@ -13213,7 +13212,7 @@ var CopyIcon = styled24.div`
13213
13212
  align-items: center;
13214
13213
  `;
13215
13214
  var CopyText = ({ children, textToCopy }) => {
13216
- const isMounted = useRef11(false);
13215
+ const isMounted = useRef10(false);
13217
13216
  const [hovering, setHovering] = useState20(false);
13218
13217
  const [iconText, setIconText] = useState20("Copy");
13219
13218
  const handleCopy = () => {
@@ -13427,7 +13426,7 @@ var ProfileAvatar = forwardRef34(({ url, name, size = "medium", disabled = false
13427
13426
  });
13428
13427
  ProfileAvatar.displayName = "ProfileAvatar";
13429
13428
  // src/molecules/RichTextDisplay/RichTextDisplay.tsx
13430
- import { useEffect as useEffect17, useRef as useRef12 } from "react";
13429
+ import { useEffect as useEffect17, useRef as useRef11 } from "react";
13431
13430
  import { useEditor } from "@tiptap/react";
13432
13431
 
13433
13432
  // src/molecules/RichTextEditor/RichTextEditor.styles.ts
@@ -13626,7 +13625,7 @@ var RichTextDisplay = ({
13626
13625
  content: imgReadToken ? value?.replaceAll(/(<img src=")(.+)("\/>)/g, `$1$2?${imgReadToken}$3`) : value,
13627
13626
  editable: false
13628
13627
  });
13629
- const previousValue = useRef12(value);
13628
+ const previousValue = useRef11(value);
13630
13629
  useEffect17(() => {
13631
13630
  if (editor && value && value !== previousValue.current) {
13632
13631
  editor.commands.setContent(value);
@@ -13930,7 +13929,7 @@ var TextTable2 = {
13930
13929
  };
13931
13930
 
13932
13931
  // src/molecules/RichTextEditor/MenuBar/AddImageButton.tsx
13933
- import { useRef as useRef13 } from "react";
13932
+ import { useRef as useRef12 } from "react";
13934
13933
  import { camera_add_photo } from "@equinor/eds-icons";
13935
13934
  import { jsxDEV as jsxDEV75, Fragment as Fragment7 } from "react/jsx-dev-runtime";
13936
13935
  var AddImageButton = ({
@@ -13938,7 +13937,7 @@ var AddImageButton = ({
13938
13937
  editor,
13939
13938
  features
13940
13939
  }) => {
13941
- const inputRef = useRef13(null);
13940
+ const inputRef = useRef12(null);
13942
13941
  if (features && !features.includes("images" /* IMAGES */))
13943
13942
  return null;
13944
13943
  const showFileDialog = () => {
@@ -14244,12 +14243,12 @@ var TextHistory = ({ editor, features }) => {
14244
14243
  };
14245
14244
 
14246
14245
  // src/molecules/RichTextEditor/MenuBar/TextLinks.tsx
14247
- import { useRef as useRef15, useState as useState21 } from "react";
14246
+ import { useRef as useRef14, useState as useState21 } from "react";
14248
14247
  import { Button as Button8, Icon as Icon20, Popover } from "@equinor/eds-core-react";
14249
14248
  import { link, link_off } from "@equinor/eds-icons";
14250
14249
 
14251
14250
  // src/molecules/TextField/TextField.tsx
14252
- import { useRef as useRef14 } from "react";
14251
+ import { useRef as useRef13 } from "react";
14253
14252
  import {
14254
14253
  TextField as Base2
14255
14254
  } from "@equinor/eds-core-react";
@@ -14346,7 +14345,7 @@ var TextField = (props) => {
14346
14345
  const usingVariant = props.loading ? undefined : props.variant;
14347
14346
  const skeletonTop = getSkeletonTop(props);
14348
14347
  const skeletonHeight = getSkeletonHeight(props);
14349
- const skeletonWidth = useRef14(`${Math.max(20, Math.random() * 80)}%`);
14348
+ const skeletonWidth = useRef13(`${Math.max(20, Math.random() * 80)}%`);
14350
14349
  return /* @__PURE__ */ jsxDEV84(Wrapper3, {
14351
14350
  $variant: usingVariant,
14352
14351
  $disabled: props.loading ? false : props.disabled,
@@ -14380,8 +14379,8 @@ var Container12 = styled31.div`
14380
14379
  `;
14381
14380
  var TextLinks = ({ editor, features }) => {
14382
14381
  const [open, setOpen] = useState21(false);
14383
- const buttonRef = useRef15(null);
14384
- const linkText = useRef15("");
14382
+ const buttonRef = useRef14(null);
14383
+ const linkText = useRef14("");
14385
14384
  const [failedToSave, setFailedToSave] = useState21(false);
14386
14385
  const handleOnToggleOpen = () => {
14387
14386
  setOpen((prev) => !prev);
@@ -14602,7 +14601,7 @@ var EditorText = {
14602
14601
  };
14603
14602
 
14604
14603
  // src/molecules/RichTextEditor/EditorProvider.tsx
14605
- import { useEffect as useEffect18, useRef as useRef16 } from "react";
14604
+ import { useEffect as useEffect18, useRef as useRef15 } from "react";
14606
14605
  import { useQueryClient as useQueryClient2 } from "@tanstack/react-query";
14607
14606
  import { useEditor as useEditor2 } from "@tiptap/react";
14608
14607
  var EditorProvider = ({
@@ -14624,9 +14623,9 @@ var EditorProvider = ({
14624
14623
  onImageRead
14625
14624
  });
14626
14625
  const queryClient = useQueryClient2();
14627
- const addedImages = useRef16([]);
14628
- const deletedImages = useRef16([]);
14629
- const previousRemovedImages = useRef16([]);
14626
+ const addedImages = useRef15([]);
14627
+ const deletedImages = useRef15([]);
14628
+ const previousRemovedImages = useRef15([]);
14630
14629
  const handleImageCheck = (editor2) => {
14631
14630
  const currentImages = [];
14632
14631
  editor2.getJSON().content?.forEach((item) => {
@@ -14798,7 +14797,7 @@ var RichText = {
14798
14797
  Bar: AmplifyBar
14799
14798
  };
14800
14799
  // src/molecules/Tabs/Tabs.tsx
14801
- import { useEffect as useEffect19, useRef as useRef17, useState as useState22 } from "react";
14800
+ import { useEffect as useEffect19, useRef as useRef16, useState as useState22 } from "react";
14802
14801
  import { Button as Button10, Icon as Icon23 } from "@equinor/eds-core-react";
14803
14802
  import { chevron_left, chevron_right } from "@equinor/eds-icons";
14804
14803
 
@@ -15005,7 +15004,7 @@ function Tabs({
15005
15004
  ref,
15006
15005
  ...rest
15007
15006
  }) {
15008
- const tabContainer = useRef17(null);
15007
+ const tabContainer = useRef16(null);
15009
15008
  const [showScrollButtons, setShowScrollButtons] = useState22(false);
15010
15009
  const [containerWidth, setContainerWidth] = useState22(0);
15011
15010
  const [scrollLeftDisabled, setScrollLeftDisabled] = useState22(true);
@@ -15132,16 +15131,10 @@ var Search = forwardRef36((props, ref) => /* @__PURE__ */ jsxDEV91(StyledBase, {
15132
15131
  }, undefined, false, undefined, this));
15133
15132
  Search.displayName = "HeaderDrawer";
15134
15133
  // src/molecules/Sieve/Sieve.tsx
15135
- import {
15136
- useCallback as useCallback6,
15137
- useEffect as useEffect21,
15138
- useRef as useRef20,
15139
- useState as useState25
15140
- } from "react";
15141
- import { useSearchParams as useSearchParams2 } from "react-router-dom";
15134
+ import { useCallback as useCallback6, useRef as useRef19, useState as useState25 } from "react";
15142
15135
 
15143
15136
  // src/molecules/Sieve/Filter.tsx
15144
- import { useRef as useRef18, useState as useState23 } from "react";
15137
+ import { useRef as useRef17, useState as useState23 } from "react";
15145
15138
  import { Icon as Icon24, Menu as Menu2 } from "@equinor/eds-core-react";
15146
15139
  import {
15147
15140
  arrow_drop_right,
@@ -15229,10 +15222,10 @@ var Filter = ({
15229
15222
  filterValues,
15230
15223
  setFilterValues
15231
15224
  }) => {
15232
- const anchorRef = useRef18(null);
15225
+ const anchorRef = useRef17(null);
15233
15226
  const [subMenuAnchor, setSubMenuAnchor] = useState23(null);
15234
- const menuRef = useRef18(null);
15235
- const subMenuRef = useRef18(null);
15227
+ const menuRef = useRef17(null);
15228
+ const subMenuRef = useRef17(null);
15236
15229
  const [subMenuIndex, setSubMenuIndex] = useState23(-1);
15237
15230
  const [open, setOpen] = useState23(false);
15238
15231
  useOutsideClick(anchorRef.current, (event) => {
@@ -15335,7 +15328,7 @@ var Filter = ({
15335
15328
  var Filter_default = Filter;
15336
15329
 
15337
15330
  // src/molecules/Sieve/Sort.tsx
15338
- import { useRef as useRef19, useState as useState24 } from "react";
15331
+ import { useRef as useRef18, useState as useState24 } from "react";
15339
15332
  import { Icon as Icon25, Menu as Menu3 } from "@equinor/eds-core-react";
15340
15333
  import {
15341
15334
  radio_button_selected,
@@ -15348,7 +15341,7 @@ var Sort = ({
15348
15341
  selectedOption,
15349
15342
  setSelectedOption
15350
15343
  }) => {
15351
- const anchorRef = useRef19(null);
15344
+ const anchorRef = useRef18(null);
15352
15345
  const [open, setOpen] = useState24(false);
15353
15346
  const handleChipClick = () => {
15354
15347
  setOpen(!open);
@@ -15408,74 +15401,11 @@ var Sieve = ({
15408
15401
  onUpdate,
15409
15402
  showChips = true,
15410
15403
  minSearchWidth = "24rem",
15411
- syncWithSearchParams = false,
15412
- isLoadingOptions = false,
15413
15404
  debounceSearchValue = false,
15414
15405
  onIsTyping
15415
15406
  }) => {
15416
15407
  const [localSearchString, setLocalSearchString] = useState25(sieveValue.searchValue ?? "");
15417
- const previousOnIsTyping = useRef20(false);
15418
- const [searchParams, setSearchParams] = useSearchParams2();
15419
- const initializedSearchParams = useRef20(false);
15420
- useEffect21(() => {
15421
- if (!initializedSearchParams.current && syncWithSearchParams && !isLoadingOptions) {
15422
- const search = searchParams.get("search") ?? undefined;
15423
- const parents = filterOptions?.map((filterOption) => filterOption.label) ?? [];
15424
- const filterValues = {};
15425
- for (const parent of parents) {
15426
- const parentOptions = filterOptions?.find((filterOption) => filterOption.label === parent)?.options;
15427
- const labels = JSON.parse(searchParams.get(parent.toLowerCase()) ?? "[]");
15428
- if (parentOptions !== undefined) {
15429
- filterValues[parent] = parentOptions.filter((option) => labels.includes(option.label));
15430
- }
15431
- }
15432
- onUpdate({
15433
- searchValue: search,
15434
- filterValues,
15435
- sortValue: sieveValue.sortValue
15436
- });
15437
- initializedSearchParams.current = true;
15438
- }
15439
- }, [
15440
- filterOptions,
15441
- initializedSearchParams,
15442
- isLoadingOptions,
15443
- onUpdate,
15444
- searchParams,
15445
- sieveValue.sortValue,
15446
- syncWithSearchParams
15447
- ]);
15448
- const previousSieveValue = useRef20("{}");
15449
- useEffect21(() => {
15450
- if (syncWithSearchParams && initializedSearchParams.current && !isLoadingOptions && JSON.stringify(sieveValue) !== previousSieveValue.current) {
15451
- if (sieveValue.searchValue === undefined) {
15452
- searchParams.delete("search");
15453
- } else {
15454
- searchParams.set("search", sieveValue.searchValue);
15455
- }
15456
- const parents = filterOptions?.map((filterOption) => filterOption.label) ?? [];
15457
- const filterValues = sieveValue.filterValues;
15458
- for (const parent of parents) {
15459
- if (filterValues?.[parent] && filterValues[parent].length > 0) {
15460
- searchParams.set(parent.toLowerCase(), JSON.stringify(filterValues[parent].map((option) => option.label)));
15461
- } else {
15462
- searchParams.delete(parent.toLowerCase());
15463
- }
15464
- }
15465
- previousSieveValue.current = JSON.stringify(sieveValue);
15466
- setSearchParams(searchParams);
15467
- onUpdate(sieveValue);
15468
- }
15469
- }, [
15470
- filterOptions,
15471
- initializedSearchParams,
15472
- isLoadingOptions,
15473
- onUpdate,
15474
- searchParams,
15475
- setSearchParams,
15476
- sieveValue,
15477
- syncWithSearchParams
15478
- ]);
15408
+ const previousOnIsTyping = useRef19(false);
15479
15409
  const handleUpdateSieveValue = useCallback6((key, value) => {
15480
15410
  const newSieveValue = {
15481
15411
  ...sieveValue,
@@ -16001,7 +15931,7 @@ var Stepper = ({
16001
15931
  }, undefined, true, undefined, this);
16002
15932
  };
16003
15933
  // src/molecules/OptionDrawer/OptionDrawer.tsx
16004
- import { useEffect as useEffect22, useState as useState27 } from "react";
15934
+ import { useEffect as useEffect21, useState as useState27 } from "react";
16005
15935
  import { Button as Button12, Checkbox, Icon as Icon28 } from "@equinor/eds-core-react";
16006
15936
  import { chevron_down as chevron_down2, chevron_right as chevron_right2 } from "@equinor/eds-icons";
16007
15937
 
@@ -16087,10 +16017,10 @@ var OptionDrawer = ({
16087
16017
  }) => {
16088
16018
  const [open, setOpen] = useState27(false);
16089
16019
  const [status, setStatus] = useState27(getStatus(item, selectedItems, singleSelect, showIntermediateParent));
16090
- useEffect22(() => {
16020
+ useEffect21(() => {
16091
16021
  setStatus(getStatus(item, selectedItems, singleSelect, showIntermediateParent));
16092
16022
  }, [item, selectedItems, singleSelect, showIntermediateParent]);
16093
- useEffect22(() => {
16023
+ useEffect21(() => {
16094
16024
  if (openAll) {
16095
16025
  setOpen(true);
16096
16026
  } else {
@@ -16161,7 +16091,7 @@ var OptionDrawer = ({
16161
16091
  };
16162
16092
  OptionDrawer.displayName = "OptionDrawer";
16163
16093
  // src/molecules/Select/Select.tsx
16164
- import { useMemo as useMemo19, useRef as useRef22 } from "react";
16094
+ import { useMemo as useMemo19, useRef as useRef21 } from "react";
16165
16095
  import { Icon as Icon31, Label } from "@equinor/eds-core-react";
16166
16096
  import { arrow_drop_down, arrow_drop_up, clear as clear2 } from "@equinor/eds-icons";
16167
16097
 
@@ -16418,7 +16348,7 @@ var SmallButton = styled45(Button13)`
16418
16348
  `;
16419
16349
 
16420
16350
  // src/molecules/Select/SelectMenuItem.tsx
16421
- import { useMemo as useMemo16, useRef as useRef21, useState as useState28 } from "react";
16351
+ import { useMemo as useMemo16, useRef as useRef20, useState as useState28 } from "react";
16422
16352
  import { Icon as Icon29 } from "@equinor/eds-core-react";
16423
16353
  import {
16424
16354
  checkbox as checkbox3,
@@ -16472,8 +16402,8 @@ var SelectMenuItem = (props) => {
16472
16402
  CustomMenuItemComponent
16473
16403
  } = props;
16474
16404
  const [openParent, setOpenParent] = useState28(false);
16475
- const focusingChildIndex = useRef21(-1);
16476
- const childRefs = useRef21([]);
16405
+ const focusingChildIndex = useRef20(-1);
16406
+ const childRefs = useRef20([]);
16477
16407
  const selectedValues = "values" in props ? props.values.map(({ value }) => value) : [];
16478
16408
  const isSelected = selectedValues.includes(item.value);
16479
16409
  const parentIcon = useMemo16(() => {
@@ -16867,9 +16797,9 @@ var Select = (props) => {
16867
16797
  sortValues,
16868
16798
  placeholder
16869
16799
  });
16870
- const skeletonWidth = useRef22(`${Math.max(40, Math.random() * 80)}%`);
16871
- const anchorRef = useRef22(null);
16872
- const menuRef = useRef22(null);
16800
+ const skeletonWidth = useRef21(`${Math.max(40, Math.random() * 80)}%`);
16801
+ const anchorRef = useRef21(null);
16802
+ const menuRef = useRef21(null);
16873
16803
  const shouldShowLabel = useMemo19(() => {
16874
16804
  return !!label || !!meta;
16875
16805
  }, [label, meta]);
@@ -17530,7 +17460,7 @@ var Switch = forwardRef40((props, ref) => {
17530
17460
  });
17531
17461
  Switch.displayName = "Switch";
17532
17462
  // src/molecules/Waves/Waves.tsx
17533
- import { useEffect as useEffect23, useRef as useRef23, useState as useState29 } from "react";
17463
+ import { useEffect as useEffect22, useRef as useRef22, useState as useState29 } from "react";
17534
17464
 
17535
17465
  // src/molecules/Waves/Waves.styles.ts
17536
17466
  import { motion as motion5 } from "framer-motion";
@@ -17758,7 +17688,7 @@ var WaveStatic = ({
17758
17688
  import { useScroll as useScroll2 } from "framer-motion";
17759
17689
  import { jsxDEV as jsxDEV124 } from "react/jsx-dev-runtime";
17760
17690
  var Waves = ({ gradientColors }) => {
17761
- const containerRef = useRef23(null);
17691
+ const containerRef = useRef22(null);
17762
17692
  const [width, setWidth] = useState29(containerRef.current?.clientWidth ?? 0);
17763
17693
  const [height, setHeight] = useState29(containerRef.current?.clientHeight ?? 0);
17764
17694
  const { scrollY } = useScroll2({
@@ -17771,7 +17701,7 @@ var Waves = ({ gradientColors }) => {
17771
17701
  setWidth(containerRef.current.clientWidth);
17772
17702
  setHeight(containerRef.current.clientHeight);
17773
17703
  };
17774
- useEffect23(() => {
17704
+ useEffect22(() => {
17775
17705
  const resizeHandler = () => {
17776
17706
  if (!containerRef.current)
17777
17707
  return;
@@ -17865,7 +17795,7 @@ var DataGrid = (props) => {
17865
17795
  }, undefined, false, undefined, this);
17866
17796
  };
17867
17797
  // src/organisms/FieldSelector/FieldSelector.tsx
17868
- import { useRef as useRef24, useState as useState31 } from "react";
17798
+ import { useRef as useRef23, useState as useState31 } from "react";
17869
17799
 
17870
17800
  // src/atoms/style/darkTokens.ts
17871
17801
  import { css as css16 } from "styled-components";
@@ -18691,7 +18621,7 @@ var FieldSelector = ({
18691
18621
  itemNameSingular = "field"
18692
18622
  }) => {
18693
18623
  const [isChangingField, setIsChangingField] = useState31(false);
18694
- const fieldName = useRef24("");
18624
+ const fieldName = useRef23("");
18695
18625
  const handleClick = (field) => {
18696
18626
  if (field.name && field.uuid) {
18697
18627
  setField({
@@ -18726,7 +18656,7 @@ var FieldSelector = ({
18726
18656
  }, undefined, true, undefined, this);
18727
18657
  };
18728
18658
  // src/organisms/Filter/Filter.tsx
18729
- import { useRef as useRef26, useState as useState33 } from "react";
18659
+ import { useRef as useRef25, useState as useState33 } from "react";
18730
18660
  import { Button as Button15, Icon as Icon35, Typography as Typography32 } from "@equinor/eds-core-react";
18731
18661
  import {
18732
18662
  arrow_drop_down as arrow_drop_down2,
@@ -18861,7 +18791,7 @@ var SearchFieldWrapper = styled55.section`
18861
18791
  `;
18862
18792
 
18863
18793
  // src/organisms/Filter/AutoCompleteMenu.tsx
18864
- import { useEffect as useEffect24, useRef as useRef25, useState as useState32 } from "react";
18794
+ import { useEffect as useEffect23, useRef as useRef24, useState as useState32 } from "react";
18865
18795
  import { Menu as Menu8, Typography as Typography30 } from "@equinor/eds-core-react";
18866
18796
 
18867
18797
  // src/organisms/Filter/Filter.utils.ts
@@ -18927,8 +18857,8 @@ function AutoCompleteMenu({
18927
18857
  onAutoComplete
18928
18858
  }) {
18929
18859
  const [open, setOpen] = useState32(false);
18930
- const previousSearch = useRef25("");
18931
- useEffect24(() => {
18860
+ const previousSearch = useRef24("");
18861
+ useEffect23(() => {
18932
18862
  if (!open && search !== previousSearch.current) {
18933
18863
  previousSearch.current = search;
18934
18864
  setOpen(true);
@@ -19043,11 +18973,11 @@ function Filter2({
19043
18973
  id,
19044
18974
  ...rest
19045
18975
  }) {
19046
- const searchRef = useRef26(null);
19047
- const sectionRef = useRef26(null);
18976
+ const searchRef = useRef25(null);
18977
+ const sectionRef = useRef25(null);
19048
18978
  const [open, setOpen] = useState33(initialOpen);
19049
18979
  const [attemptingToRemove, setAttemptingToRemove] = useState33(undefined);
19050
- const initialHeight = useRef26(initialOpen ? "auto" : 0);
18980
+ const initialHeight = useRef25(initialOpen ? "auto" : 0);
19051
18981
  const handleOnToggleOpen = () => {
19052
18982
  setOpen((prev) => !prev);
19053
18983
  if (initialHeight.current === "auto") {
@@ -19209,7 +19139,7 @@ import { Icon as Icon36, Menu as Menu10, Typography as Typography33 } from "@equ
19209
19139
  import { arrow_drop_down as arrow_drop_down3, arrow_drop_up as arrow_drop_up3 } from "@equinor/eds-icons";
19210
19140
 
19211
19141
  // src/organisms/Filter/ButtonWithMenu.tsx
19212
- import { useRef as useRef27, useState as useState34 } from "react";
19142
+ import { useRef as useRef26, useState as useState34 } from "react";
19213
19143
  import { Menu as Menu9 } from "@equinor/eds-core-react";
19214
19144
  import { jsxDEV as jsxDEV133, Fragment as Fragment17 } from "react/jsx-dev-runtime";
19215
19145
  var ButtonWithMenu = ({
@@ -19218,7 +19148,7 @@ var ButtonWithMenu = ({
19218
19148
  children
19219
19149
  }) => {
19220
19150
  const [open, setOpen] = useState34(false);
19221
- const buttonRef = useRef27(null);
19151
+ const buttonRef = useRef26(null);
19222
19152
  const handleOnToggleOpen = () => {
19223
19153
  setOpen(!open);
19224
19154
  onOpenChange?.(!open);
@@ -19329,18 +19259,18 @@ Filter3.QuickFilter = QuickFilter;
19329
19259
  Filter3.SortMenu = SortMenu;
19330
19260
  // src/organisms/SideBar/MenuItem/BasicMenuItem.tsx
19331
19261
  import { useCallback as useCallback7, useMemo as useMemo21 } from "react";
19332
- import { useLocation as useLocation3 } from "react-router-dom";
19333
19262
  import { Icon as Icon38 } from "@equinor/eds-core-react";
19334
19263
  import { Feature } from "@equinor/subsurface-app-management";
19264
+ import { useLocation as useLocation3 } from "@tanstack/react-router";
19335
19265
 
19336
19266
  // src/organisms/SideBar/MenuItem/MenuItem.styles.ts
19337
- import { Link as ReactRouterDomLink } from "react-router-dom";
19338
19267
  import { Typography as Typography35 } from "@equinor/eds-core-react";
19268
+ import { Link as TanstackLink } from "@tanstack/react-router";
19339
19269
  import styled59 from "styled-components";
19340
19270
  var MenuItemWrapper2 = styled59.span`
19341
19271
  width: 100%;
19342
19272
  `;
19343
- var Link2 = styled59(ReactRouterDomLink)`
19273
+ var Link2 = styled59(TanstackLink)`
19344
19274
  display: flex;
19345
19275
  align-self: stretch;
19346
19276
  align-items: center;
@@ -19486,10 +19416,10 @@ var BasicMenuItem = ({
19486
19416
  };
19487
19417
 
19488
19418
  // src/organisms/SideBar/MenuItem/CollapsableMenuItem.tsx
19489
- import { useEffect as useEffect25, useMemo as useMemo22, useRef as useRef28, useState as useState36 } from "react";
19490
- import { Link as ReactRouterLink, useLocation as useLocation4 } from "react-router-dom";
19419
+ import { useEffect as useEffect24, useMemo as useMemo22, useRef as useRef27, useState as useState36 } from "react";
19491
19420
  import { Icon as Icon39, Menu as Menu12 } from "@equinor/eds-core-react";
19492
19421
  import { chevron_down as chevron_down4, chevron_up as chevron_up2 } from "@equinor/eds-icons";
19422
+ import { Link as TanstackLink2, useLocation as useLocation4 } from "@tanstack/react-router";
19493
19423
  import styled60, { css as css20 } from "styled-components";
19494
19424
  import { jsxDEV as jsxDEV137, Fragment as Fragment18 } from "react/jsx-dev-runtime";
19495
19425
  var Parent = styled60.button`
@@ -19564,10 +19494,10 @@ var CollapsableMenuItem = ({
19564
19494
  const { isOpen } = useSideBar();
19565
19495
  const previousIsOpen = usePrevious(isOpen);
19566
19496
  const isActive = items.some((item) => isCurrentUrl({ currentUrl: pathname, link: item.link }));
19567
- const parentRef = useRef28(null);
19497
+ const parentRef = useRef27(null);
19568
19498
  const [expanded, setExpanded] = useState36(false);
19569
19499
  const handleOnToggleExpanded = () => setExpanded((prev) => !prev);
19570
- useEffect25(() => {
19500
+ useEffect24(() => {
19571
19501
  if (previousIsOpen && !isOpen && expanded || previousPathname !== pathname && expanded && !isOpen) {
19572
19502
  setExpanded(false);
19573
19503
  }
@@ -19643,7 +19573,7 @@ var CollapsableMenuItem = ({
19643
19573
  placement: "right-start",
19644
19574
  onClose: handleOnToggleExpanded,
19645
19575
  children: items.map((item) => /* @__PURE__ */ jsxDEV137(Menu12.Item, {
19646
- as: ReactRouterLink,
19576
+ as: TanstackLink2,
19647
19577
  active: isCurrentUrl({ currentUrl: pathname, link: item.link }),
19648
19578
  style: { width: "256px" },
19649
19579
  to: item.link,
@@ -19905,16 +19835,16 @@ SideBar2.Item = MenuItem4;
19905
19835
  // src/organisms/TopBar/Account/Account.tsx
19906
19836
  import {
19907
19837
  useCallback as useCallback8,
19908
- useEffect as useEffect29,
19838
+ useEffect as useEffect28,
19909
19839
  useMemo as useMemo25,
19910
- useRef as useRef31,
19840
+ useRef as useRef30,
19911
19841
  useState as useState40
19912
19842
  } from "react";
19913
19843
  import { Icon as Icon48, Typography as Typography47 } from "@equinor/eds-core-react";
19914
19844
  import { log_out } from "@equinor/eds-icons";
19915
19845
 
19916
19846
  // src/organisms/TopBar/TopBarMenu.tsx
19917
- import { forwardRef as forwardRef42, useEffect as useEffect26 } from "react";
19847
+ import { forwardRef as forwardRef42, useEffect as useEffect25 } from "react";
19918
19848
  import { Menu as Menu13 } from "@equinor/eds-core-react";
19919
19849
  import styled64 from "styled-components";
19920
19850
  import { jsxDEV as jsxDEV142 } from "react/jsx-dev-runtime";
@@ -19930,7 +19860,7 @@ var MenuWrapper = styled64(Menu13)`
19930
19860
  `}
19931
19861
  `;
19932
19862
  var TopBarMenu = forwardRef42(({ open, onClose, children, anchorEl, isNotification, withGap = false }, ref) => {
19933
- useEffect26(() => {
19863
+ useEffect25(() => {
19934
19864
  const handleResize = () => {
19935
19865
  if (open) {
19936
19866
  onClose();
@@ -20070,11 +20000,11 @@ function useStopImpersonation() {
20070
20000
  }
20071
20001
 
20072
20002
  // src/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.tsx
20073
- import { useEffect as useEffect28, useState as useState39 } from "react";
20003
+ import { useEffect as useEffect27, useState as useState39 } from "react";
20074
20004
  import { Menu as Menu15, Typography as Typography43 } from "@equinor/eds-core-react";
20075
20005
 
20076
20006
  // src/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.tsx
20077
- import { useEffect as useEffect27, useMemo as useMemo24, useRef as useRef29, useState as useState37 } from "react";
20007
+ import { useEffect as useEffect26, useMemo as useMemo24, useRef as useRef28, useState as useState37 } from "react";
20078
20008
  import { Button as Button17, DotProgress as DotProgress3, Icon as Icon42, Typography as Typography37 } from "@equinor/eds-core-react";
20079
20009
  import { arrow_back } from "@equinor/eds-icons";
20080
20010
 
@@ -20162,7 +20092,7 @@ var CreateOrEditUser = ({
20162
20092
  availableFields,
20163
20093
  availableWells
20164
20094
  }) => {
20165
- const initializedEditUser = useRef29(false);
20095
+ const initializedEditUser = useRef28(false);
20166
20096
  const [roles, setRoles] = useState37([]);
20167
20097
  const [firstName, setFirstName] = useState37("");
20168
20098
  const [lastName, setLastName] = useState37("");
@@ -20170,7 +20100,7 @@ var CreateOrEditUser = ({
20170
20100
  const [field, setField] = useState37(undefined);
20171
20101
  const [well, setWell] = useState37(undefined);
20172
20102
  const { data, isLoading: isLoadingRoles } = useAllAppRoles();
20173
- useEffect27(() => {
20103
+ useEffect26(() => {
20174
20104
  if (editingUser && data && !initializedEditUser.current) {
20175
20105
  initializedEditUser.current = true;
20176
20106
  setRoles(editingUser.roles.map((role) => {
@@ -20735,7 +20665,7 @@ var NoUsersText = styled72(Typography41)`
20735
20665
  `;
20736
20666
 
20737
20667
  // src/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.tsx
20738
- import { useRef as useRef30, useState as useState38 } from "react";
20668
+ import { useRef as useRef29, useState as useState38 } from "react";
20739
20669
  import { Button as Button19, Icon as Icon45, Menu as Menu14, Typography as Typography42 } from "@equinor/eds-core-react";
20740
20670
  import {
20741
20671
  account_circle,
@@ -20841,7 +20771,7 @@ var UserImpersonation = ({
20841
20771
  onDelete
20842
20772
  }) => {
20843
20773
  const [open, setOpen] = useState38(false);
20844
- const buttonRef = useRef30(null);
20774
+ const buttonRef = useRef29(null);
20845
20775
  const fullName = impersonateUserDtoToFullName({ firstName, lastName });
20846
20776
  const activeRoles = useMappedRoles(roles);
20847
20777
  const handleOnToggleMenu = () => setOpen((prev) => !prev);
@@ -20955,7 +20885,7 @@ var ImpersonateMenu = ({
20955
20885
  const { data: availableUsers } = useGetAllImpersonationUsersForApp();
20956
20886
  const { data: activeImpersonationUser } = useActiveImpersonationUser();
20957
20887
  const filteredUsers = availableUsers?.filter((user) => impersonateUserDtoToFullName(user).toLowerCase().includes(search.toLowerCase()));
20958
- useEffect28(() => {
20888
+ useEffect27(() => {
20959
20889
  if (!open && activeImpersonationUser && selectedUniqueName !== activeImpersonationUser.uniqueName) {
20960
20890
  setSelectedUniqueName(activeImpersonationUser.uniqueName);
20961
20891
  } else if (!open && !activeImpersonationUser && selectedUniqueName !== "") {
@@ -21330,7 +21260,7 @@ var Account = ({
21330
21260
  const { account, roles, logout } = useAuth();
21331
21261
  const [isOpen, setIsOpen] = useState40(false);
21332
21262
  const [openImpersonate, setOpenImpersonate] = useState40(false);
21333
- const buttonRef = useRef31(null);
21263
+ const buttonRef = useRef30(null);
21334
21264
  const { data: canImpersonate = true } = useCanImpersonate();
21335
21265
  const { data: activeImpersonationUser } = useActiveImpersonationUser();
21336
21266
  const { mutate: endImpersonation } = useStopImpersonation();
@@ -21347,7 +21277,7 @@ var Account = ({
21347
21277
  setIsOpen(false);
21348
21278
  };
21349
21279
  const handleOnCloseImpersonate = () => setOpenImpersonate(false);
21350
- useEffect29(() => {
21280
+ useEffect28(() => {
21351
21281
  if (activeImpersonationUser && activeImpersonationUser.appName != null && activeImpersonationUser.appName.toUpperCase() != APPLICATION_NAME.toUpperCase()) {
21352
21282
  endImpersonation();
21353
21283
  }
@@ -21428,7 +21358,7 @@ var Account = ({
21428
21358
  Account.displayName = "TopBar.Account";
21429
21359
 
21430
21360
  // src/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.tsx
21431
- import { useRef as useRef32, useState as useState41 } from "react";
21361
+ import { useRef as useRef31, useState as useState41 } from "react";
21432
21362
  import { DotProgress as DotProgress7, Icon as Icon50, Typography as Typography50 } from "@equinor/eds-core-react";
21433
21363
  import { apps as apps2, exit_to_app as exit_to_app2 } from "@equinor/eds-icons";
21434
21364
  import {
@@ -21437,13 +21367,13 @@ import {
21437
21367
  import { useQuery as useQuery7 } from "@tanstack/react-query";
21438
21368
 
21439
21369
  // src/organisms/TopBar/TopBar.styles.ts
21440
- import { Link as Link3 } from "react-router-dom";
21441
21370
  import { Button as Button20 } from "@equinor/eds-core-react";
21442
21371
  import {
21443
21372
  CircularProgress as EDSCircularProgress2,
21444
21373
  TopBar as EDSTopBar,
21445
21374
  Typography as Typography48
21446
21375
  } from "@equinor/eds-core-react";
21376
+ import { Link as Link3 } from "@tanstack/react-router";
21447
21377
  import styled80, { css as css22 } from "styled-components";
21448
21378
  var Bar = styled80(EDSTopBar)`
21449
21379
  border-bottom: 1px solid ${colors2.ui.background__medium.rgba};
@@ -21741,7 +21671,7 @@ var ApplicationDrawer = () => {
21741
21671
  queryKey: [`userApplications`],
21742
21672
  queryFn: () => AmplifyApplicationService2.userApplications()
21743
21673
  });
21744
- const buttonRef = useRef32(null);
21674
+ const buttonRef = useRef31(null);
21745
21675
  const toggleMenu = () => setIsOpen(!isOpen);
21746
21676
  const closeMenu = () => {
21747
21677
  setIsOpen(false);
@@ -21892,7 +21822,7 @@ var ApplicationDrawer = () => {
21892
21822
  };
21893
21823
 
21894
21824
  // src/organisms/TopBar/FieldMenu/FieldMenu.tsx
21895
- import { forwardRef as forwardRef44, useMemo as useMemo26, useRef as useRef33, useState as useState42 } from "react";
21825
+ import { forwardRef as forwardRef44, useMemo as useMemo26, useRef as useRef32, useState as useState42 } from "react";
21896
21826
  import { Icon as Icon51, Search as Search3, Typography as Typography52 } from "@equinor/eds-core-react";
21897
21827
  import {
21898
21828
  arrow_drop_down as arrow_drop_down4,
@@ -22003,8 +21933,8 @@ var FieldMenu = forwardRef44(({
22003
21933
  showAccessITLink = true
22004
21934
  }, ref) => {
22005
21935
  const [isOpen, setIsOpen] = useState42(false);
22006
- const menuRef = useRef33(null);
22007
- const buttonRef = useRef33(null);
21936
+ const menuRef = useRef32(null);
21937
+ const buttonRef = useRef32(null);
22008
21938
  const [searchValue, setSearchValue] = useState42("");
22009
21939
  const closeMenu = () => setIsOpen(false);
22010
21940
  const toggleMenu = () => setIsOpen(!isOpen);
@@ -22157,7 +22087,7 @@ var FieldMenu = forwardRef44(({
22157
22087
  FieldMenu.displayName = "FieldSelector";
22158
22088
 
22159
22089
  // src/organisms/TopBar/Notifications/NotificationsInner.tsx
22160
- import { useMemo as useMemo28, useRef as useRef35, useState as useState44 } from "react";
22090
+ import { useMemo as useMemo28, useRef as useRef34, useState as useState44 } from "react";
22161
22091
  import { Icon as Icon54 } from "@equinor/eds-core-react";
22162
22092
  import { notifications as notificationIcon } from "@equinor/eds-icons";
22163
22093
 
@@ -22781,7 +22711,7 @@ var NotificationTemplate = (props) => {
22781
22711
  };
22782
22712
 
22783
22713
  // src/organisms/TopBar/Notifications/FilterOptions.tsx
22784
- import { useRef as useRef34, useState as useState43 } from "react";
22714
+ import { useRef as useRef33, useState as useState43 } from "react";
22785
22715
  import { Icon as Icon53, Menu as Menu16, Typography as Typography63 } from "@equinor/eds-core-react";
22786
22716
  import {
22787
22717
  checkbox as checkbox4,
@@ -22840,8 +22770,8 @@ var FilterOptions = ({
22840
22770
  }) => {
22841
22771
  const [openFilter, setOpenFilter] = useState43(false);
22842
22772
  const [openSort, setOpenSort] = useState43(false);
22843
- const filterRef = useRef34(null);
22844
- const sortRef = useRef34(null);
22773
+ const filterRef = useRef33(null);
22774
+ const sortRef = useRef33(null);
22845
22775
  const [selectedSort, setSelectedSort] = useState43({
22846
22776
  ["unread" /* UNREAD */]: false,
22847
22777
  ["oldtonew" /* OLD_NEWEST */]: false,
@@ -23045,9 +22975,9 @@ var NotificationsInner = ({
23045
22975
  showFilterOptions = false,
23046
22976
  notifications
23047
22977
  }) => {
23048
- const buttonRef = useRef35(null);
23049
- const filterMenuRef = useRef35(null);
23050
- const sortMenuRef = useRef35(null);
22978
+ const buttonRef = useRef34(null);
22979
+ const filterMenuRef = useRef34(null);
22980
+ const sortMenuRef = useRef34(null);
23051
22981
  const { isOpen, setIsOpen } = useNotification();
23052
22982
  const [filteringOn, setFilteringOn] = useState44([]);
23053
22983
  const [sortingOn, setSortingOn] = useState44([]);
@@ -23153,7 +23083,7 @@ var Notifications = (props) => {
23153
23083
  // src/organisms/TopBar/Resources/Resources.tsx
23154
23084
  import {
23155
23085
  useMemo as useMemo36,
23156
- useRef as useRef38,
23086
+ useRef as useRef37,
23157
23087
  useState as useState51
23158
23088
  } from "react";
23159
23089
  import { Button as Button27, Dialog as Dialog5, Divider as Divider5, Icon as Icon62 } from "@equinor/eds-core-react";
@@ -23169,7 +23099,7 @@ import {
23169
23099
  import {
23170
23100
  createContext as createContext10,
23171
23101
  useCallback as useCallback9,
23172
- useEffect as useEffect30,
23102
+ useEffect as useEffect29,
23173
23103
  useMemo as useMemo29,
23174
23104
  useState as useState45
23175
23105
  } from "react";
@@ -23586,7 +23516,7 @@ var FeedbackContextProvider = ({
23586
23516
  setSlackRequestResponse({ status: "idle" /* idle */ });
23587
23517
  setSlackAttachmentRequestResponse([]);
23588
23518
  }, [setFeedbackLocalStorage]);
23589
- useEffect30(() => {
23519
+ useEffect29(() => {
23590
23520
  return () => {
23591
23521
  if (serviceNowRequestResponse.status === "success" /* success */ && allSlackRequestStatus === "success" /* success */) {
23592
23522
  setTimeout(() => {
@@ -23599,19 +23529,19 @@ var FeedbackContextProvider = ({
23599
23529
  serviceNowRequestResponse.status,
23600
23530
  setFeedbackLocalStorage
23601
23531
  ]);
23602
- useEffect30(() => {
23532
+ useEffect29(() => {
23603
23533
  if (slackAttachmentsRequestResponse.length !== feedbackAttachments.length) {
23604
23534
  setSlackAttachmentRequestResponse(feedbackAttachments.map((attachment) => {
23605
23535
  return { status: "idle" /* idle */, fileName: attachment.name };
23606
23536
  }));
23607
23537
  }
23608
23538
  }, [feedbackAttachments, slackAttachmentsRequestResponse.length]);
23609
- useEffect30(() => {
23539
+ useEffect29(() => {
23610
23540
  if (serviceNowRequestResponse.serviceNowId && serviceNowRequestResponse.serviceNowId.length !== 0) {
23611
23541
  setServiceNowUrl(createServiceNowUrl(serviceNowRequestResponse.serviceNowId, true));
23612
23542
  }
23613
23543
  }, [serviceNowRequestResponse.serviceNowId]);
23614
- useEffect30(() => {
23544
+ useEffect29(() => {
23615
23545
  if (selectedType === "suggestion" /* SUGGESTION */ && allSlackRequestStatus === "success" /* success */) {
23616
23546
  setRelevantRequestsHaveBeenSuccess(true);
23617
23547
  } else if (serviceNowRequestResponse.status === "success" /* success */ && allSlackRequestStatus === "success" /* success */) {
@@ -23667,7 +23597,7 @@ function useFeedbackContext() {
23667
23597
  import { useState as useState47 } from "react";
23668
23598
 
23669
23599
  // src/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.tsx
23670
- import { useEffect as useEffect31, useMemo as useMemo30, useState as useState46 } from "react";
23600
+ import { useEffect as useEffect30, useMemo as useMemo30, useState as useState46 } from "react";
23671
23601
  import { Icon as Icon55 } from "@equinor/eds-core-react";
23672
23602
  import { clear as clear4, error_outlined as error_outlined5 } from "@equinor/eds-icons";
23673
23603
 
@@ -23807,7 +23737,7 @@ ${message}`;
23807
23737
  }
23808
23738
  return "Error";
23809
23739
  }, [error, props]);
23810
- useEffect31(() => {
23740
+ useEffect30(() => {
23811
23741
  const getSrc = async (file) => {
23812
23742
  const src2 = await readUploadedFileAsText2(file);
23813
23743
  setSrc(src2);
@@ -24278,11 +24208,11 @@ var FeedbackForm = () => {
24278
24208
  };
24279
24209
 
24280
24210
  // src/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.tsx
24281
- import { useEffect as useEffect33, useState as useState49 } from "react";
24211
+ import { useEffect as useEffect32, useState as useState49 } from "react";
24282
24212
  import { Button as Button25 } from "@equinor/eds-core-react";
24283
24213
 
24284
24214
  // src/organisms/TopBar/Resources/Feedback/ResponsePage/AnimateChangeInHeight.tsx
24285
- import { useEffect as useEffect32, useRef as useRef36, useState as useState48 } from "react";
24215
+ import { useEffect as useEffect31, useRef as useRef35, useState as useState48 } from "react";
24286
24216
  import { motion as motion8 } from "framer-motion";
24287
24217
  import styled105 from "styled-components";
24288
24218
  import { jsxDEV as jsxDEV182 } from "react/jsx-dev-runtime";
@@ -24296,9 +24226,9 @@ var AnimationWrapper = styled105(motion8.div)`
24296
24226
  var AnimateChangeInHeight = ({
24297
24227
  children
24298
24228
  }) => {
24299
- const containerRef = useRef36(null);
24229
+ const containerRef = useRef35(null);
24300
24230
  const [height, setHeight] = useState48("auto");
24301
- useEffect32(() => {
24231
+ useEffect31(() => {
24302
24232
  if (containerRef.current) {
24303
24233
  const resizeObserver = new ResizeObserver((entries) => {
24304
24234
  const observedHeight = entries[0].contentRect.height;
@@ -24518,7 +24448,7 @@ var ResponsePage = () => {
24518
24448
  requestHasError,
24519
24449
  relevantRequestsHaveBeenSuccess
24520
24450
  } = useFeedbackContext();
24521
- useEffect33(() => {
24451
+ useEffect32(() => {
24522
24452
  if (!showSuccessPage && relevantRequestsHaveBeenSuccess) {
24523
24453
  setTimeout(() => {
24524
24454
  setShowSuccessPage(true);
@@ -24722,7 +24652,7 @@ var AllReleaseNotesWrapper = styled113.div`
24722
24652
  `;
24723
24653
 
24724
24654
  // src/organisms/ReleaseNote/ReleaseNote.tsx
24725
- import { forwardRef as forwardRef46, useRef as useRef37, useState as useState50 } from "react";
24655
+ import { forwardRef as forwardRef46, useRef as useRef36, useState as useState50 } from "react";
24726
24656
  import { Typography as Typography73 } from "@equinor/eds-core-react";
24727
24657
  import {
24728
24658
  ReleaseNotesService
@@ -24863,10 +24793,10 @@ var ReleaseNote3 = forwardRef46(({
24863
24793
  expanded = false
24864
24794
  }, ref) => {
24865
24795
  const usingDate = usingReleaseNoteDate({ releaseDate, createdDate });
24866
- const initialHeight = useRef37(expanded ? "auto" : RELEASE_NOTE_RICH_TEXT_COLLAPSED_HEIGHT);
24796
+ const initialHeight = useRef36(expanded ? "auto" : RELEASE_NOTE_RICH_TEXT_COLLAPSED_HEIGHT);
24867
24797
  const [isExpanded, setIsExpanded] = useState50(expanded);
24868
24798
  const [needsShowMore, setNeedsShowMore] = useState50(getImagesFromRichText(body).length > 0);
24869
- const resizeObserver = useRef37(new ResizeObserver((entries) => {
24799
+ const resizeObserver = useRef36(new ResizeObserver((entries) => {
24870
24800
  if (entries.at(0) && entries[0].target.scrollHeight > RELEASE_NOTE_RICH_TEXT_COLLAPSED_HEIGHT) {
24871
24801
  setNeedsShowMore(true);
24872
24802
  }
@@ -25013,7 +24943,7 @@ var Resources = ({
25013
24943
  const [showFeedbackDialog, setShowFeedbackDialog] = useState51(false);
25014
24944
  const [openPortal, setOpenPortal] = useState51(false);
25015
24945
  const [showingResourceSection, setShowingResourceSection] = useState51(undefined);
25016
- const buttonRef = useRef38(null);
24946
+ const buttonRef = useRef37(null);
25017
24947
  const [feedbackType, setFeedbackType] = useState51(undefined);
25018
24948
  const closeMenu = () => {
25019
24949
  setShowingResourceSection(undefined);
@@ -25151,7 +25081,7 @@ var Resources = ({
25151
25081
  };
25152
25082
 
25153
25083
  // src/organisms/TopBar/Tutorials/Tutorials.tsx
25154
- import { useRef as useRef39, useState as useState52 } from "react";
25084
+ import { useRef as useRef38, useState as useState52 } from "react";
25155
25085
  import { Divider as Divider6, Icon as Icon64, Typography as Typography75 } from "@equinor/eds-core-react";
25156
25086
  import { youtube_alt } from "@equinor/eds-icons";
25157
25087
  import {
@@ -25259,7 +25189,7 @@ var Tutorials = ({
25259
25189
  }) => {
25260
25190
  const { allTutorials, tutorialsOnThisPage } = useTutorials5();
25261
25191
  const [open, setOpen] = useState52(false);
25262
- const buttonRef = useRef39(null);
25192
+ const buttonRef = useRef38(null);
25263
25193
  const filteredAllTutorials = filterTutorials ? allTutorials.filter(filterTutorials) : allTutorials;
25264
25194
  const filteredTutorialsOnThisPage = filterTutorials ? tutorialsOnThisPage.filter(filterTutorials) : tutorialsOnThisPage;
25265
25195
  const tutorialsOnOtherPages = filteredAllTutorials.filter((tutorial) => filteredTutorialsOnThisPage.findIndex((t) => t.id === tutorial.id) === -1);
@@ -25351,7 +25281,7 @@ var Colorbox = styled121.div`
25351
25281
  `;
25352
25282
 
25353
25283
  // src/organisms/TopBar/Guidelines/Guidelines.tsx
25354
- import { isValidElement as isValidElement2, useRef as useRef40, useState as useState53 } from "react";
25284
+ import { isValidElement as isValidElement2, useRef as useRef39, useState as useState53 } from "react";
25355
25285
  import { Icon as Icon65 } from "@equinor/eds-core-react";
25356
25286
  import { info_circle as info_circle9 } from "@equinor/eds-icons";
25357
25287
 
@@ -25415,7 +25345,7 @@ var Section5 = ({ title, children }) => /* @__PURE__ */ jsxDEV201(Container63, {
25415
25345
  import { jsxDEV as jsxDEV202, Fragment as Fragment31 } from "react/jsx-dev-runtime";
25416
25346
  var Guidelines = ({ sections }) => {
25417
25347
  const [isOpen, setIsOpen] = useState53(false);
25418
- const buttonRef = useRef40(null);
25348
+ const buttonRef = useRef39(null);
25419
25349
  const handleButtonClick = () => {
25420
25350
  if (isOpen) {
25421
25351
  setIsOpen(false);
@@ -25480,7 +25410,7 @@ var Guidelines2 = Guidelines;
25480
25410
  Guidelines2.Colorbox = Colorbox;
25481
25411
 
25482
25412
  // src/organisms/TopBar/Settings.tsx
25483
- import { useContext as useContext11, useMemo as useMemo37, useRef as useRef41, useState as useState54 } from "react";
25413
+ import { useContext as useContext11, useMemo as useMemo37, useRef as useRef40, useState as useState54 } from "react";
25484
25414
  import { Icon as Icon66, Radio as Radio2, Typography as Typography78 } from "@equinor/eds-core-react";
25485
25415
  import { settings } from "@equinor/eds-icons";
25486
25416
  import styled124 from "styled-components";
@@ -25513,7 +25443,7 @@ var SettingsItems = styled124.div`
25513
25443
  }
25514
25444
  `;
25515
25445
  var Settings = ({ allSettings, children }) => {
25516
- const buttonRef = useRef41(null);
25446
+ const buttonRef = useRef40(null);
25517
25447
  const [isOpen, setIsOpen] = useState54(false);
25518
25448
  const themeContext = useContext11(ThemeProviderContext);
25519
25449
  const closeMenu = () => setIsOpen(false);
@@ -25683,12 +25613,12 @@ TopBar2.Resources = Resources;
25683
25613
  TopBar2.ApplicationDrawer = ApplicationDrawer;
25684
25614
  TopBar2.Tutorials = Tutorials;
25685
25615
  // src/organisms/Status/collections/BadRequest.tsx
25686
- import { useNavigate as useNavigate3 } from "react-router";
25616
+ import { useRouter } from "@tanstack/react-router";
25687
25617
  import { jsxDEV as jsxDEV205 } from "react/jsx-dev-runtime";
25688
25618
  var BadRequest = () => {
25689
- const navigate = useNavigate3();
25619
+ const { history } = useRouter();
25690
25620
  const handleOnClick = () => {
25691
- navigate(-1);
25621
+ history.go(-1);
25692
25622
  };
25693
25623
  return /* @__PURE__ */ jsxDEV205(Status2, {
25694
25624
  color: "#AB9067",
@@ -25708,12 +25638,12 @@ var BadRequest = () => {
25708
25638
  }, undefined, true, undefined, this);
25709
25639
  };
25710
25640
  // src/organisms/Status/collections/GenericError.tsx
25711
- import { useNavigate as useNavigate4 } from "react-router";
25641
+ import { useRouter as useRouter2 } from "@tanstack/react-router";
25712
25642
  import { jsxDEV as jsxDEV206 } from "react/jsx-dev-runtime";
25713
25643
  var GenericError = () => {
25714
- const navigate = useNavigate4();
25644
+ const { history } = useRouter2();
25715
25645
  const handleOnClick = () => {
25716
- navigate(-1);
25646
+ history.go(-1);
25717
25647
  };
25718
25648
  return /* @__PURE__ */ jsxDEV206(Status2, {
25719
25649
  children: [
@@ -25726,12 +25656,12 @@ var GenericError = () => {
25726
25656
  }, undefined, true, undefined, this);
25727
25657
  };
25728
25658
  // src/organisms/Status/collections/MissingPermissions.tsx
25729
- import { useNavigate as useNavigate5 } from "react-router";
25659
+ import { useRouter as useRouter3 } from "@tanstack/react-router";
25730
25660
  import { jsxDEV as jsxDEV207 } from "react/jsx-dev-runtime";
25731
25661
  var MissingPermissions = () => {
25732
- const navigate = useNavigate5();
25662
+ const { history } = useRouter3();
25733
25663
  const handleOnClick = () => {
25734
- navigate(-1);
25664
+ history.go(-1);
25735
25665
  };
25736
25666
  return /* @__PURE__ */ jsxDEV207(Status2, {
25737
25667
  children: [
@@ -25745,12 +25675,12 @@ var MissingPermissions = () => {
25745
25675
  }, undefined, true, undefined, this);
25746
25676
  };
25747
25677
  // src/organisms/Status/collections/PageNotFound.tsx
25748
- import { useNavigate as useNavigate6 } from "react-router";
25678
+ import { useRouter as useRouter4 } from "@tanstack/react-router";
25749
25679
  import { jsxDEV as jsxDEV208 } from "react/jsx-dev-runtime";
25750
25680
  var PageNotFound = () => {
25751
- const navigate = useNavigate6();
25681
+ const { history } = useRouter4();
25752
25682
  const handleOnClick = () => {
25753
- navigate(-1);
25683
+ history.go(-1);
25754
25684
  };
25755
25685
  return /* @__PURE__ */ jsxDEV208(Status2, {
25756
25686
  center: false,
@@ -25769,12 +25699,12 @@ var PageNotFound = () => {
25769
25699
  }, undefined, true, undefined, this);
25770
25700
  };
25771
25701
  // src/organisms/Status/collections/ServerError.tsx
25772
- import { useNavigate as useNavigate7 } from "react-router";
25702
+ import { useRouter as useRouter5 } from "@tanstack/react-router";
25773
25703
  import { jsxDEV as jsxDEV209 } from "react/jsx-dev-runtime";
25774
25704
  var ServerError = () => {
25775
- const navigate = useNavigate7();
25705
+ const { history } = useRouter5();
25776
25706
  const handleOnClick = () => {
25777
- navigate(-1);
25707
+ history.go(-1);
25778
25708
  };
25779
25709
  return /* @__PURE__ */ jsxDEV209(Status2, {
25780
25710
  color: "#C47E84",
@@ -25820,7 +25750,7 @@ var ApiResponseError = ({ statusCode }) => {
25820
25750
  import { useMemo as useMemo39 } from "react";
25821
25751
 
25822
25752
  // src/organisms/TableOfContents/TableOfContents.styles.ts
25823
- import { Link as ReactLink } from "react-router-dom";
25753
+ import { Link as TanstackLink3 } from "@tanstack/react-router";
25824
25754
 
25825
25755
  // src/organisms/TableOfContents/TableOfContents.constants.ts
25826
25756
  var HEIGHT = {
@@ -25902,7 +25832,7 @@ var Button28 = styled125.button`
25902
25832
  }
25903
25833
  `}
25904
25834
  `;
25905
- var Link4 = styled125(ReactLink)`
25835
+ var Link4 = styled125(TanstackLink3)`
25906
25836
  text-decoration: none;
25907
25837
  &:focus,
25908
25838
  &:hover,
@@ -26073,7 +26003,7 @@ var ChildContainer = styled125(motion11.div)`
26073
26003
  `;
26074
26004
 
26075
26005
  // src/organisms/TableOfContents/TableOfContentsItem.tsx
26076
- import { useEffect as useEffect34, useMemo as useMemo38, useRef as useRef42 } from "react";
26006
+ import { useEffect as useEffect33, useMemo as useMemo38, useRef as useRef41 } from "react";
26077
26007
  import { jsxDEV as jsxDEV211 } from "react/jsx-dev-runtime";
26078
26008
  var TableOfContentsItem = ({
26079
26009
  label,
@@ -26086,8 +26016,8 @@ var TableOfContentsItem = ({
26086
26016
  isLink = false
26087
26017
  }) => {
26088
26018
  const { isActive, selected, setSelected } = useTableOfContents();
26089
- const initialHeight = useRef42(undefined);
26090
- useEffect34(() => {
26019
+ const initialHeight = useRef41(undefined);
26020
+ useEffect33(() => {
26091
26021
  if (initialHeight.current === undefined) {
26092
26022
  initialHeight.current = 0;
26093
26023
  }
@@ -26230,10 +26160,10 @@ var TableOfContents = ({
26230
26160
  }, undefined, false, undefined, this);
26231
26161
  };
26232
26162
  // src/organisms/PageTitle/PageTitle.tsx
26233
- import { useEffect as useEffect35 } from "react";
26163
+ import { useEffect as useEffect34 } from "react";
26234
26164
  var APP_NAME = environment.getAppName(import.meta.env.VITE_NAME);
26235
26165
  var PageTitle = ({ title, children }) => {
26236
- useEffect35(() => {
26166
+ useEffect34(() => {
26237
26167
  if (document.title !== title) {
26238
26168
  document.title = `${APP_NAME} - ${title}`;
26239
26169
  }
@@ -26395,7 +26325,7 @@ ToggleGroup.displayName = "ToggleGroup";
26395
26325
  var ToggleGroup2 = ToggleGroup;
26396
26326
  ToggleGroup2.Option = ToggleGroupOption;
26397
26327
  // src/organisms/Faq/Faq.tsx
26398
- import { useMemo as useMemo42 } from "react";
26328
+ import { useMemo as useMemo42, useState as useState58 } from "react";
26399
26329
  import { Typography as Typography83 } from "@equinor/eds-core-react";
26400
26330
 
26401
26331
  // src/organisms/Faq/Faq.styles.ts
@@ -26410,7 +26340,7 @@ var Container64 = styled128.div`
26410
26340
  `;
26411
26341
 
26412
26342
  // src/organisms/Faq/Header.tsx
26413
- import { useMemo as useMemo40 } from "react";
26343
+ import { useMemo as useMemo40, useState as useState55 } from "react";
26414
26344
  import { Search as Search4 } from "@equinor/eds-core-react";
26415
26345
  import styled129 from "styled-components";
26416
26346
  import { jsxDEV as jsxDEV215 } from "react/jsx-dev-runtime";
@@ -26430,12 +26360,8 @@ var Container65 = styled129.div`
26430
26360
  `;
26431
26361
  var Header5 = () => {
26432
26362
  const { data } = useFaqsInApplication();
26433
- const [selectedTab, setSelectedTab] = useSearchParameter({
26434
- key: "category"
26435
- });
26436
- const [search, setSearch] = useSearchParameter({
26437
- key: "search"
26438
- });
26363
+ const [selectedTab, setSelectedTab] = useState55(undefined);
26364
+ const [search, setSearch] = useState55("");
26439
26365
  const tabOptions = useMemo40(() => {
26440
26366
  if (!data)
26441
26367
  return [
@@ -26483,11 +26409,11 @@ var Header5 = () => {
26483
26409
  };
26484
26410
 
26485
26411
  // src/organisms/Faq/Category/Category.tsx
26486
- import { useMemo as useMemo41 } from "react";
26412
+ import { useMemo as useMemo41, useState as useState57 } from "react";
26487
26413
  import { Typography as Typography82 } from "@equinor/eds-core-react";
26488
26414
 
26489
26415
  // src/organisms/Faq/Category/Question.tsx
26490
- import { useState as useState55 } from "react";
26416
+ import { useState as useState56 } from "react";
26491
26417
  import { Icon as Icon68, Typography as Typography81 } from "@equinor/eds-core-react";
26492
26418
  import { chevron_down as chevron_down5, chevron_up as chevron_up3 } from "@equinor/eds-icons";
26493
26419
  import { FaqService as FaqService2 } from "@equinor/subsurface-app-management";
@@ -26517,7 +26443,7 @@ var Container66 = styled130.div`
26517
26443
  }
26518
26444
  `;
26519
26445
  var Question = ({ question, answer, createdDate }) => {
26520
- const [open, setOpen] = useState55(false);
26446
+ const [open, setOpen] = useState56(false);
26521
26447
  const handleOnToggleOpen = () => setOpen((prev) => !prev);
26522
26448
  return /* @__PURE__ */ jsxDEV216(Container66, {
26523
26449
  onClick: handleOnToggleOpen,
@@ -26565,12 +26491,8 @@ var Container67 = styled131.div`
26565
26491
  }
26566
26492
  `;
26567
26493
  var Category = ({ categoryName, faqs }) => {
26568
- const [search] = useSearchParameter({
26569
- key: "search"
26570
- });
26571
- const [selectedTab] = useSearchParameter({
26572
- key: "category"
26573
- });
26494
+ const [search] = useState57(undefined);
26495
+ const [selectedTab] = useState57(undefined);
26574
26496
  const sortedFaqs = useMemo41(() => {
26575
26497
  return faqs.toSorted((a, b) => {
26576
26498
  const usingA = a.orderBy ?? 0;
@@ -26677,9 +26599,7 @@ var CategorySkeleton = () => /* @__PURE__ */ jsxDEV218(Container68, {
26677
26599
  import { jsxDEV as jsxDEV219, Fragment as Fragment33 } from "react/jsx-dev-runtime";
26678
26600
  var Faq2 = () => {
26679
26601
  const { data, isLoading } = useFaqsInApplication();
26680
- const [selectedTab] = useSearchParameter({
26681
- key: "category"
26682
- });
26602
+ const [selectedTab] = useState58(undefined);
26683
26603
  const filteredCategories = useMemo42(() => {
26684
26604
  if (!data)
26685
26605
  return;
@@ -26838,11 +26758,11 @@ var ExpandingIconButton = forwardRef51(({ text, icon, onClick, className, iconPo
26838
26758
  });
26839
26759
  ExpandingIconButton.displayName = "ExpandingIconButton";
26840
26760
  // src/deprecated/IconToggleButton.tsx
26841
- import { forwardRef as forwardRef52, useState as useState56 } from "react";
26761
+ import { forwardRef as forwardRef52, useState as useState59 } from "react";
26842
26762
  import { Button as Button30, Icon as Icon71 } from "@equinor/eds-core-react";
26843
26763
  import { jsxDEV as jsxDEV221 } from "react/jsx-dev-runtime";
26844
26764
  var IconToggleButton = forwardRef52(({ initialState = false, toggleOn, toggleOff, onClick }, ref) => {
26845
- const [toggle, setToggle] = useState56(initialState);
26765
+ const [toggle, setToggle] = useState59(initialState);
26846
26766
  const handleToggleOff = () => {
26847
26767
  setToggle(false);
26848
26768
  onClick?.(toggle);
@@ -26885,7 +26805,7 @@ var IconToggleButton_default = IconToggleButton;
26885
26805
  import { useMemo as useMemo45 } from "react";
26886
26806
 
26887
26807
  // src/deprecated/OldStepper/OldStep.tsx
26888
- import { useMemo as useMemo43, useState as useState57 } from "react";
26808
+ import { useMemo as useMemo43, useState as useState60 } from "react";
26889
26809
  import { Icon as Icon72, Typography as Typography85 } from "@equinor/eds-core-react";
26890
26810
  import { check as check5 } from "@equinor/eds-icons";
26891
26811
  import styled134 from "styled-components";
@@ -26928,7 +26848,7 @@ var OldStep = ({
26928
26848
  onlyShowCurrentStepLabel = false,
26929
26849
  children
26930
26850
  }) => {
26931
- const [containerRef, setContainerRef] = useState57(null);
26851
+ const [containerRef, setContainerRef] = useState60(null);
26932
26852
  const StepIcon2 = useMemo43(() => {
26933
26853
  if (index >= currentIndex) {
26934
26854
  return /* @__PURE__ */ jsxDEV222(IconWrapper3, {
@@ -27063,7 +26983,6 @@ export {
27063
26983
  useSnackbar,
27064
26984
  useSideBar,
27065
26985
  useSelect,
27066
- useSearchParameter,
27067
26986
  useReleaseNotes,
27068
26987
  usePrevious,
27069
26988
  usePrefetchRichTextImages,