@norges-domstoler/dds-components 0.0.0-dev-20240819083641 → 0.0.0-dev-20240819102131

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4517,7 +4517,7 @@ var Breadcrumb = (0, import_react25.forwardRef)(
4517
4517
  Breadcrumb.displayName = "Breadcrumb";
4518
4518
 
4519
4519
  // src/components/Breadcrumbs/Breadcrumbs.tsx
4520
- var import_react39 = require("react");
4520
+ var import_react38 = require("react");
4521
4521
 
4522
4522
  // src/components/Breadcrumbs/Breadcrumbs.module.css
4523
4523
  var Breadcrumbs_default = {
@@ -4754,7 +4754,7 @@ Button.displayName = "Button";
4754
4754
 
4755
4755
  // src/components/OverflowMenu/OverflowMenu.tsx
4756
4756
  var import_dds_design_tokens12 = require("@norges-domstoler/dds-design-tokens");
4757
- var import_react31 = require("react");
4757
+ var import_react29 = require("react");
4758
4758
 
4759
4759
  // src/components/OverflowMenu/OverflowMenu.context.tsx
4760
4760
  var import_react28 = require("react");
@@ -4806,113 +4806,9 @@ var OverflowMenu_default = {
4806
4806
  "group-header": "OverflowMenu_group-header"
4807
4807
  };
4808
4808
 
4809
- // src/components/OverflowMenu/OverflowMenuItem.tsx
4810
- var import_react29 = require("react");
4811
- var import_jsx_runtime182 = require("react/jsx-runtime");
4812
- var isAnchorProps2 = (props) => props.href !== void 0;
4813
- var isButtonProps = (props) => props.href === void 0 && props.onClick !== void 0;
4814
- var OverflowMenuItem = (0, import_react29.forwardRef)((props, ref) => {
4815
- const { title, icon, focus, id, className, htmlProps = {}, ...rest } = props;
4816
- let href;
4817
- let onClick;
4818
- if (isAnchorProps2(props)) {
4819
- href = props.href;
4820
- } else if (isButtonProps(props)) {
4821
- onClick = props.onClick;
4822
- }
4823
- const itemRef = (0, import_react29.useRef)(null);
4824
- const combinedRef = useCombinedRef(ref, itemRef);
4825
- (0, import_react29.useEffect)(() => {
4826
- var _a;
4827
- if (focus) {
4828
- (_a = itemRef.current) == null ? void 0 : _a.focus();
4829
- }
4830
- }, [focus]);
4831
- const linkProps = {
4832
- href,
4833
- role: "menuitem",
4834
- tabIndex: focus ? 0 : -1
4835
- };
4836
- const iconElement = icon && /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Icon, { iconSize: "inherit", icon });
4837
- const wrapperCn = [
4838
- className,
4839
- OverflowMenu_default.list__item,
4840
- typographyStyles_default["body-sans-01"]
4841
- ];
4842
- const interactiveWrapperCn = [
4843
- ...wrapperCn,
4844
- OverflowMenu_default["list__item--link"],
4845
- focus_default["focusable--inset"],
4846
- utilStyles_default["normalize-button"]
4847
- ];
4848
- const content = /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)(import_jsx_runtime182.Fragment, { children: [
4849
- iconElement,
4850
- title
4851
- ] });
4852
- if (!href && !onClick) {
4853
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
4854
- "span",
4855
- {
4856
- ...{ ...getBaseHTMLProps(id, cn(...wrapperCn), htmlProps, rest), ref },
4857
- children: content
4858
- }
4859
- );
4860
- }
4861
- if (!href) {
4862
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
4863
- "button",
4864
- {
4865
- ...getBaseHTMLProps(id, cn(...interactiveWrapperCn), htmlProps, rest),
4866
- ...linkProps,
4867
- ref: combinedRef,
4868
- children: content
4869
- }
4870
- );
4871
- }
4872
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
4873
- "a",
4874
- {
4875
- ...getBaseHTMLProps(id, cn(...interactiveWrapperCn), htmlProps, rest),
4876
- ...linkProps,
4877
- ref: combinedRef,
4878
- children: content
4879
- }
4880
- );
4881
- });
4882
- OverflowMenuItem.displayName = "OverflowMenuItem";
4883
-
4884
- // src/components/Divider/Divider.tsx
4885
- var import_react30 = require("react");
4886
-
4887
- // src/components/Divider/Divider.module.css
4888
- var Divider_default = {
4889
- divider: "Divider_divider",
4890
- "divider--default": "Divider_divider--default",
4891
- "divider--subtle": "Divider_divider--subtle",
4892
- "divider--on-inverse": "Divider_divider--on-inverse"
4893
- };
4894
-
4895
- // src/components/Divider/Divider.tsx
4896
- var import_jsx_runtime183 = require("react/jsx-runtime");
4897
- var Divider = (0, import_react30.forwardRef)((props, ref) => {
4898
- const { color = "default", id, className, htmlProps, ...rest } = props;
4899
- const colorCn = color === "default" || color === "subtle" ? color : "on-inverse";
4900
- const lineProps = {
4901
- ...getBaseHTMLProps(
4902
- id,
4903
- cn(className, Divider_default.divider, Divider_default[`divider--${colorCn}`]),
4904
- htmlProps,
4905
- rest
4906
- ),
4907
- color
4908
- };
4909
- return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("hr", { ref, ...lineProps });
4910
- });
4911
- Divider.displayName = "Divider";
4912
-
4913
4809
  // src/components/OverflowMenu/OverflowMenu.tsx
4914
- var import_jsx_runtime184 = require("react/jsx-runtime");
4915
- var OverflowMenu = (0, import_react31.forwardRef)(
4810
+ var import_jsx_runtime182 = require("react/jsx-runtime");
4811
+ var OverflowMenu = (0, import_react29.forwardRef)(
4916
4812
  (props, ref) => {
4917
4813
  var _a, _b;
4918
4814
  const {
@@ -4921,9 +4817,6 @@ var OverflowMenu = (0, import_react31.forwardRef)(
4921
4817
  onToggle,
4922
4818
  isOpen = false,
4923
4819
  placement = "bottom-end",
4924
- items,
4925
- navItems,
4926
- userProps,
4927
4820
  id,
4928
4821
  offset = import_dds_design_tokens12.ddsTokens.ddsSpacingX0125NumberPx,
4929
4822
  className,
@@ -4935,7 +4828,7 @@ var OverflowMenu = (0, import_react31.forwardRef)(
4935
4828
  offset
4936
4829
  });
4937
4830
  const combinedRef = useCombinedRef(ref, refs.setFloating);
4938
- (0, import_react31.useEffect)(() => {
4831
+ (0, import_react29.useEffect)(() => {
4939
4832
  anchorRef ? refs.setReference(anchorRef.current) : refs.setReference(null);
4940
4833
  }, [anchorRef]);
4941
4834
  useOnClickOutside(
@@ -4961,55 +4854,9 @@ var OverflowMenu = (0, import_react31.forwardRef)(
4961
4854
  onToggle && onToggle();
4962
4855
  }
4963
4856
  });
4964
- const interactiveItems = [];
4965
- const hasContextItems = !!items && items.length > 0;
4966
- const hasNavItems = !!navItems && navItems.length > 0;
4967
- const { name: username, ...userPropsRest } = userProps != null ? userProps : {};
4968
- const hasStaticUser = username && userProps && !userProps.href && !userProps.onClick;
4969
- const hasInteractiveUser = username && userProps && (!!userProps.href || !!userProps.onClick);
4970
- hasInteractiveUser && interactiveItems.push({ title: username, ...userPropsRest });
4971
- hasNavItems && interactiveItems.push(...navItems);
4972
- hasContextItems && interactiveItems.push(...items);
4973
- const hasInteractiveItems = interactiveItems.length > 0;
4974
- const [focus] = useRoveFocus(interactiveItems == null ? void 0 : interactiveItems.length, isOpen);
4975
- const interactiveItemsList = hasInteractiveItems ? interactiveItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
4976
- OverflowMenuItem,
4977
- {
4978
- index,
4979
- focus: focus === index && isOpen,
4980
- icon: hasInteractiveUser && index === 0 ? PersonIcon : void 0,
4981
- ...item,
4982
- onClick: (e) => {
4983
- item.onClick && item.onClick(e);
4984
- onToggle && onToggle();
4985
- onClose && onClose();
4986
- }
4987
- }
4988
- ) }, index)) : null;
4989
- const interactiveContent = () => {
4990
- const ulCn = cn(OverflowMenu_default.list, utilStyles_default["remove-list-styling"]);
4991
- if (hasInteractiveItems) {
4992
- const userPropsPos = hasInteractiveUser ? 0 : -1;
4993
- const navItemsFirstPos = hasNavItems ? userPropsPos + 1 : -1;
4994
- const navItemsLastPos = hasNavItems ? userPropsPos + navItems.length : -1;
4995
- const contextItemsFirstPos = !hasContextItems ? -1 : hasNavItems ? navItemsLastPos + 1 : userPropsPos + 1;
4996
- return /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(import_jsx_runtime184.Fragment, { children: [
4997
- hasInteractiveUser && /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("ul", { className: ulCn, children: interactiveItemsList == null ? void 0 : interactiveItemsList[0] }),
4998
- hasNavItems && /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("nav", { children: /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("ul", { className: ulCn, children: interactiveItemsList == null ? void 0 : interactiveItemsList.slice(
4999
- navItemsFirstPos,
5000
- navItemsLastPos + 1
5001
- ) }) }),
5002
- hasNavItems && hasContextItems && /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(Divider, { color: "subtle", className: OverflowMenu_default.divider }),
5003
- hasContextItems && /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("ul", { className: ulCn, "aria-label": "kontekstmeny", children: interactiveItemsList == null ? void 0 : interactiveItemsList.slice(
5004
- contextItemsFirstPos,
5005
- interactiveItemsList.length
5006
- ) })
5007
- ] });
5008
- }
5009
- };
5010
4857
  const { style = {}, ...restHTMLProps } = htmlProps;
5011
- const generatedId = (0, import_react31.useId)();
5012
- return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
4858
+ const generatedId = (0, import_react29.useId)();
4859
+ return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
5013
4860
  Paper,
5014
4861
  {
5015
4862
  ref: combinedRef,
@@ -5030,10 +4877,7 @@ var OverflowMenu = (0, import_react31.forwardRef)(
5030
4877
  border: "default",
5031
4878
  elevation: 1,
5032
4879
  style: { ...style, ...floatingStyles.floating },
5033
- children: items || navItems || userProps ? /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(import_jsx_runtime184.Fragment, { children: [
5034
- hasStaticUser && /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(OverflowMenuItem, { title: username, icon: PersonIcon }),
5035
- interactiveContent()
5036
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
4880
+ children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
5037
4881
  OverflowMenuContextProvider,
5038
4882
  {
5039
4883
  isOpen,
@@ -5049,18 +4893,18 @@ var OverflowMenu = (0, import_react31.forwardRef)(
5049
4893
  OverflowMenu.displayName = "OverflowMenu";
5050
4894
 
5051
4895
  // src/components/OverflowMenu/components/OverflowMenuButton.tsx
5052
- var import_react32 = require("react");
5053
- var import_jsx_runtime185 = require("react/jsx-runtime");
5054
- var OverflowMenuButton = (0, import_react32.forwardRef)((props, ref) => {
4896
+ var import_react30 = require("react");
4897
+ var import_jsx_runtime183 = require("react/jsx-runtime");
4898
+ var OverflowMenuButton = (0, import_react30.forwardRef)((props, ref) => {
5055
4899
  const { id, icon, children, className, onClick, ...rest } = props;
5056
- const itemRef = (0, import_react32.useRef)(null);
4900
+ const itemRef = (0, import_react30.useRef)(null);
5057
4901
  const combinedRef = useCombinedRef(ref, itemRef);
5058
4902
  const { onToggle, onClose, registerItem, unregisterItem, focusedRef } = useOverflowMenu();
5059
- (0, import_react32.useEffect)(() => {
4903
+ (0, import_react30.useEffect)(() => {
5060
4904
  registerItem(itemRef);
5061
4905
  return () => unregisterItem(itemRef);
5062
4906
  }, []);
5063
- return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)(
4907
+ return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)(
5064
4908
  "button",
5065
4909
  {
5066
4910
  ref: combinedRef,
@@ -5081,7 +4925,7 @@ var OverflowMenuButton = (0, import_react32.forwardRef)((props, ref) => {
5081
4925
  ...rest,
5082
4926
  tabIndex: focusedRef === itemRef ? 0 : -1,
5083
4927
  children: [
5084
- icon && /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(Icon, { iconSize: "inherit", icon }),
4928
+ icon && /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(Icon, { iconSize: "inherit", icon }),
5085
4929
  children
5086
4930
  ]
5087
4931
  }
@@ -5090,18 +4934,18 @@ var OverflowMenuButton = (0, import_react32.forwardRef)((props, ref) => {
5090
4934
  OverflowMenuButton.displayName = "OverflowMenuButton";
5091
4935
 
5092
4936
  // src/components/OverflowMenu/components/OverflowMenuLink.tsx
5093
- var import_react33 = require("react");
5094
- var import_jsx_runtime186 = require("react/jsx-runtime");
5095
- var OverflowMenuLink = (0, import_react33.forwardRef)((props, ref) => {
4937
+ var import_react31 = require("react");
4938
+ var import_jsx_runtime184 = require("react/jsx-runtime");
4939
+ var OverflowMenuLink = (0, import_react31.forwardRef)((props, ref) => {
5096
4940
  const { id, href, icon, className, onClick, children, ...rest } = props;
5097
- const itemRef = (0, import_react33.useRef)(null);
4941
+ const itemRef = (0, import_react31.useRef)(null);
5098
4942
  const combinedRef = useCombinedRef(ref, itemRef);
5099
4943
  const { onToggle, onClose, registerItem, unregisterItem, focusedRef } = useOverflowMenu();
5100
- (0, import_react33.useEffect)(() => {
4944
+ (0, import_react31.useEffect)(() => {
5101
4945
  registerItem(itemRef);
5102
4946
  return () => unregisterItem(itemRef);
5103
4947
  }, []);
5104
- return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)(
4948
+ return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(
5105
4949
  "a",
5106
4950
  {
5107
4951
  ref: combinedRef,
@@ -5123,7 +4967,7 @@ var OverflowMenuLink = (0, import_react33.forwardRef)((props, ref) => {
5123
4967
  ...rest,
5124
4968
  tabIndex: focusedRef === itemRef ? 0 : -1,
5125
4969
  children: [
5126
- icon && /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(Icon, { iconSize: "inherit", icon }),
4970
+ icon && /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(Icon, { iconSize: "inherit", icon }),
5127
4971
  children
5128
4972
  ]
5129
4973
  }
@@ -5132,11 +4976,42 @@ var OverflowMenuLink = (0, import_react33.forwardRef)((props, ref) => {
5132
4976
  OverflowMenuLink.displayName = "OverflowMenuLink";
5133
4977
 
5134
4978
  // src/components/OverflowMenu/components/OverflowMenuDivider.tsx
5135
- var import_react34 = require("react");
5136
- var import_jsx_runtime187 = require("react/jsx-runtime");
5137
- var OverflowMenuDivider = (0, import_react34.forwardRef)((props, ref) => {
4979
+ var import_react33 = require("react");
4980
+
4981
+ // src/components/Divider/Divider.tsx
4982
+ var import_react32 = require("react");
4983
+
4984
+ // src/components/Divider/Divider.module.css
4985
+ var Divider_default = {
4986
+ divider: "Divider_divider",
4987
+ "divider--default": "Divider_divider--default",
4988
+ "divider--subtle": "Divider_divider--subtle",
4989
+ "divider--on-inverse": "Divider_divider--on-inverse"
4990
+ };
4991
+
4992
+ // src/components/Divider/Divider.tsx
4993
+ var import_jsx_runtime185 = require("react/jsx-runtime");
4994
+ var Divider = (0, import_react32.forwardRef)((props, ref) => {
4995
+ const { color = "default", id, className, htmlProps, ...rest } = props;
4996
+ const colorCn = color === "default" || color === "subtle" ? color : "on-inverse";
4997
+ const lineProps = {
4998
+ ...getBaseHTMLProps(
4999
+ id,
5000
+ cn(className, Divider_default.divider, Divider_default[`divider--${colorCn}`]),
5001
+ htmlProps,
5002
+ rest
5003
+ ),
5004
+ color
5005
+ };
5006
+ return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)("hr", { ref, ...lineProps });
5007
+ });
5008
+ Divider.displayName = "Divider";
5009
+
5010
+ // src/components/OverflowMenu/components/OverflowMenuDivider.tsx
5011
+ var import_jsx_runtime186 = require("react/jsx-runtime");
5012
+ var OverflowMenuDivider = (0, import_react33.forwardRef)((props, ref) => {
5138
5013
  const { className, ...rest } = props;
5139
- return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(
5014
+ return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
5140
5015
  Divider,
5141
5016
  {
5142
5017
  ref,
@@ -5149,10 +5024,10 @@ var OverflowMenuDivider = (0, import_react34.forwardRef)((props, ref) => {
5149
5024
  OverflowMenuDivider.displayName = "OverflowMenuDivider";
5150
5025
 
5151
5026
  // src/components/OverflowMenu/components/OverflowMenuList.tsx
5152
- var import_react35 = require("react");
5153
- var import_jsx_runtime188 = require("react/jsx-runtime");
5154
- var OverflowMenuList = (0, import_react35.forwardRef)((props, ref) => {
5155
- return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
5027
+ var import_react34 = require("react");
5028
+ var import_jsx_runtime187 = require("react/jsx-runtime");
5029
+ var OverflowMenuList = (0, import_react34.forwardRef)((props, ref) => {
5030
+ return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(
5156
5031
  "ul",
5157
5032
  {
5158
5033
  ref,
@@ -5163,22 +5038,22 @@ var OverflowMenuList = (0, import_react35.forwardRef)((props, ref) => {
5163
5038
  });
5164
5039
 
5165
5040
  // src/components/OverflowMenu/components/OverflowMenuSpan.tsx
5166
- var import_react36 = require("react");
5167
- var import_jsx_runtime189 = require("react/jsx-runtime");
5168
- var OverflowMenuSpan = (0, import_react36.forwardRef)((props, ref) => {
5169
- const { id, icon, children, className, htmlProps, ...rest } = props;
5170
- return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)(
5041
+ var import_react35 = require("react");
5042
+ var import_jsx_runtime188 = require("react/jsx-runtime");
5043
+ var OverflowMenuSpan = (0, import_react35.forwardRef)((props, ref) => {
5044
+ const { icon, children, className, ...rest } = props;
5045
+ return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)(
5171
5046
  "span",
5172
5047
  {
5173
5048
  ref,
5174
- ...getBaseHTMLProps(
5175
- id,
5176
- cn(className, OverflowMenu_default.list__item, typographyStyles_default["body-sans-01"]),
5177
- htmlProps,
5178
- rest
5049
+ className: cn(
5050
+ className,
5051
+ OverflowMenu_default.list__item,
5052
+ typographyStyles_default["body-sans-01"]
5179
5053
  ),
5054
+ ...rest,
5180
5055
  children: [
5181
- icon && /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(Icon, { iconSize: "inherit", icon }),
5056
+ icon && /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(Icon, { iconSize: "inherit", icon }),
5182
5057
  children
5183
5058
  ]
5184
5059
  }
@@ -5187,10 +5062,10 @@ var OverflowMenuSpan = (0, import_react36.forwardRef)((props, ref) => {
5187
5062
  OverflowMenuSpan.displayName = "OverflowMenuSpan";
5188
5063
 
5189
5064
  // src/components/OverflowMenu/components/OverflowMenuListHeader.tsx
5190
- var import_react37 = require("react");
5191
- var import_jsx_runtime190 = require("react/jsx-runtime");
5192
- var OverflowMenuListHeader = (0, import_react37.forwardRef)((props, ref) => {
5193
- return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
5065
+ var import_react36 = require("react");
5066
+ var import_jsx_runtime189 = require("react/jsx-runtime");
5067
+ var OverflowMenuListHeader = (0, import_react36.forwardRef)((props, ref) => {
5068
+ return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
5194
5069
  "h2",
5195
5070
  {
5196
5071
  ref,
@@ -5206,8 +5081,8 @@ var OverflowMenuListHeader = (0, import_react37.forwardRef)((props, ref) => {
5206
5081
  OverflowMenuListHeader.displayName = "OverflowMenuListHeader";
5207
5082
 
5208
5083
  // src/components/OverflowMenu/OverflowMenuGroup.tsx
5209
- var import_react38 = require("react");
5210
- var import_jsx_runtime191 = require("react/jsx-runtime");
5084
+ var import_react37 = require("react");
5085
+ var import_jsx_runtime190 = require("react/jsx-runtime");
5211
5086
  var OverflowMenuGroup = ({
5212
5087
  children,
5213
5088
  onClose,
@@ -5215,11 +5090,11 @@ var OverflowMenuGroup = ({
5215
5090
  onOpen,
5216
5091
  overflowMenuId
5217
5092
  }) => {
5218
- const [isOpen, setIsOpen] = (0, import_react38.useState)(false);
5093
+ const [isOpen, setIsOpen] = (0, import_react37.useState)(false);
5219
5094
  const toggle = () => setIsOpen(!isOpen);
5220
5095
  const close = () => setIsOpen(false);
5221
- const buttonRef = (0, import_react38.useRef)(null);
5222
- const generatedId = (0, import_react38.useId)();
5096
+ const buttonRef = (0, import_react37.useRef)(null);
5097
+ const generatedId = (0, import_react37.useId)();
5223
5098
  const uniqueOverflowMenuId = overflowMenuId != null ? overflowMenuId : `${generatedId}-overflowMenu`;
5224
5099
  const handleClose = () => {
5225
5100
  onClose && onClose();
@@ -5231,14 +5106,14 @@ var OverflowMenuGroup = ({
5231
5106
  onToggle && onToggle();
5232
5107
  toggle();
5233
5108
  };
5234
- const Children8 = import_react38.Children.map(children, (child, childIndex) => {
5235
- return (0, import_react38.isValidElement)(child) && (childIndex === 0 ? (0, import_react38.cloneElement)(child, {
5109
+ const Children8 = import_react37.Children.map(children, (child, childIndex) => {
5110
+ return (0, import_react37.isValidElement)(child) && (childIndex === 0 ? (0, import_react37.cloneElement)(child, {
5236
5111
  "aria-haspopup": "menu",
5237
5112
  "aria-controls": uniqueOverflowMenuId,
5238
5113
  "aria-expanded": isOpen,
5239
5114
  onClick: handleToggle,
5240
5115
  ref: buttonRef
5241
- }) : (0, import_react38.cloneElement)(child, {
5116
+ }) : (0, import_react37.cloneElement)(child, {
5242
5117
  isOpen,
5243
5118
  id: uniqueOverflowMenuId,
5244
5119
  onClose: handleClose,
@@ -5246,13 +5121,13 @@ var OverflowMenuGroup = ({
5246
5121
  anchorRef: buttonRef
5247
5122
  }));
5248
5123
  });
5249
- return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(import_jsx_runtime191.Fragment, { children: Children8 });
5124
+ return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_jsx_runtime190.Fragment, { children: Children8 });
5250
5125
  };
5251
5126
  OverflowMenuGroup.displayName = "OverflowMenuGroup";
5252
5127
 
5253
5128
  // src/components/Breadcrumbs/Breadcrumbs.tsx
5254
- var import_jsx_runtime192 = require("react/jsx-runtime");
5255
- var Breadcrumbs = (0, import_react39.forwardRef)(
5129
+ var import_jsx_runtime191 = require("react/jsx-runtime");
5130
+ var Breadcrumbs = (0, import_react38.forwardRef)(
5256
5131
  (props, ref) => {
5257
5132
  const {
5258
5133
  children,
@@ -5262,7 +5137,7 @@ var Breadcrumbs = (0, import_react39.forwardRef)(
5262
5137
  htmlProps,
5263
5138
  ...rest
5264
5139
  } = props;
5265
- const chevronIcon = /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
5140
+ const chevronIcon = /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
5266
5141
  Icon,
5267
5142
  {
5268
5143
  className: cn(Breadcrumbs_default.icon),
@@ -5270,9 +5145,9 @@ var Breadcrumbs = (0, import_react39.forwardRef)(
5270
5145
  icon: ChevronRightIcon
5271
5146
  }
5272
5147
  );
5273
- const childrenArray = import_react39.Children.toArray(children);
5148
+ const childrenArray = import_react38.Children.toArray(children);
5274
5149
  const breadcrumbChildren = childrenArray.map((item, index) => {
5275
- return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(
5150
+ return /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(
5276
5151
  "li",
5277
5152
  {
5278
5153
  className: cn(Breadcrumbs_default["list-item"], Breadcrumbs_default[`list-item--large-screen`]),
@@ -5285,16 +5160,16 @@ var Breadcrumbs = (0, import_react39.forwardRef)(
5285
5160
  );
5286
5161
  });
5287
5162
  const breadcrumbChildrenTruncated = childrenArray.length > 2 ? childrenArray.slice(1, childrenArray.length - 1).map((item) => {
5288
- if ((0, import_react39.isValidElement)(item)) {
5289
- return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(OverflowMenuLink, { href: item.props.href, children: item.props.children });
5163
+ if ((0, import_react38.isValidElement)(item)) {
5164
+ return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(OverflowMenuLink, { href: item.props.href, children: item.props.children });
5290
5165
  }
5291
5166
  }) : [];
5292
- const breadcrumbChildrenSmallScreen = /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(import_jsx_runtime192.Fragment, { children: [
5293
- /* @__PURE__ */ (0, import_jsx_runtime192.jsx)("li", { className: Breadcrumbs_default["list-item"], children: childrenArray[0] }),
5294
- breadcrumbChildrenTruncated.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)("li", { className: Breadcrumbs_default["list-item"], children: [
5167
+ const breadcrumbChildrenSmallScreen = /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(import_jsx_runtime191.Fragment, { children: [
5168
+ /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("li", { className: Breadcrumbs_default["list-item"], children: childrenArray[0] }),
5169
+ breadcrumbChildrenTruncated.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("li", { className: Breadcrumbs_default["list-item"], children: [
5295
5170
  chevronIcon,
5296
- /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(OverflowMenuGroup, { children: [
5297
- /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
5171
+ /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(OverflowMenuGroup, { children: [
5172
+ /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
5298
5173
  Button,
5299
5174
  {
5300
5175
  size: "tiny",
@@ -5303,23 +5178,23 @@ var Breadcrumbs = (0, import_react39.forwardRef)(
5303
5178
  "aria-label": `Vis br\xF8dsmulesti br\xF8dsmule 2 ${breadcrumbChildrenTruncated.length > 1 && `til ${breadcrumbChildren.length - 1}`}`
5304
5179
  }
5305
5180
  ),
5306
- /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(OverflowMenu, { children: /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(OverflowMenuList, { children: breadcrumbChildrenTruncated }) })
5181
+ /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(OverflowMenu, { children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(OverflowMenuList, { children: breadcrumbChildrenTruncated }) })
5307
5182
  ] })
5308
5183
  ] }),
5309
- /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)("li", { className: Breadcrumbs_default["list-item"], children: [
5184
+ /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("li", { className: Breadcrumbs_default["list-item"], children: [
5310
5185
  chevronIcon,
5311
5186
  childrenArray[childrenArray.length - 1]
5312
5187
  ] })
5313
5188
  ] });
5314
5189
  const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
5315
- return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(
5190
+ return /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(
5316
5191
  "nav",
5317
5192
  {
5318
5193
  ...getBaseHTMLProps(id, className, htmlProps, rest),
5319
5194
  ref,
5320
5195
  "aria-label": "br\xF8dsmulesti",
5321
5196
  children: [
5322
- /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
5197
+ /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
5323
5198
  "ul",
5324
5199
  {
5325
5200
  className: cn(
@@ -5330,7 +5205,7 @@ var Breadcrumbs = (0, import_react39.forwardRef)(
5330
5205
  children: breadcrumbChildren
5331
5206
  }
5332
5207
  ),
5333
- hasSmallScreenBreakpoint && /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
5208
+ hasSmallScreenBreakpoint && /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
5334
5209
  "ul",
5335
5210
  {
5336
5211
  className: cn(
@@ -5350,7 +5225,7 @@ var Breadcrumbs = (0, import_react39.forwardRef)(
5350
5225
  Breadcrumbs.displayName = "Breadcrumbs";
5351
5226
 
5352
5227
  // src/components/ButtonGroup/ButtonGroup.tsx
5353
- var import_react40 = require("react");
5228
+ var import_react39 = require("react");
5354
5229
 
5355
5230
  // src/components/ButtonGroup/ButtonGroup.module.css
5356
5231
  var ButtonGroup_default = {
@@ -5360,8 +5235,8 @@ var ButtonGroup_default = {
5360
5235
  };
5361
5236
 
5362
5237
  // src/components/ButtonGroup/ButtonGroup.tsx
5363
- var import_jsx_runtime193 = require("react/jsx-runtime");
5364
- var ButtonGroup = (0, import_react40.forwardRef)(
5238
+ var import_jsx_runtime192 = require("react/jsx-runtime");
5239
+ var ButtonGroup = (0, import_react39.forwardRef)(
5365
5240
  (props, ref) => {
5366
5241
  const {
5367
5242
  children,
@@ -5373,13 +5248,13 @@ var ButtonGroup = (0, import_react40.forwardRef)(
5373
5248
  role = "group",
5374
5249
  ...rest
5375
5250
  } = props;
5376
- const Children8 = import_react40.Children.map(children, (child) => {
5377
- return (0, import_react40.isValidElement)(child) && (0, import_react40.cloneElement)(child, {
5251
+ const Children8 = import_react39.Children.map(children, (child) => {
5252
+ return (0, import_react39.isValidElement)(child) && (0, import_react39.cloneElement)(child, {
5378
5253
  purpose: "secondary",
5379
5254
  size: buttonSize
5380
5255
  });
5381
5256
  });
5382
- return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
5257
+ return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
5383
5258
  "div",
5384
5259
  {
5385
5260
  ref,
@@ -5407,7 +5282,7 @@ var Card_default = {
5407
5282
  };
5408
5283
 
5409
5284
  // src/components/Card/Card.tsx
5410
- var import_jsx_runtime194 = require("react/jsx-runtime");
5285
+ var import_jsx_runtime193 = require("react/jsx-runtime");
5411
5286
  var Card = (props) => {
5412
5287
  const {
5413
5288
  appearance = "filled",
@@ -5427,7 +5302,7 @@ var Card = (props) => {
5427
5302
  );
5428
5303
  if (cardType === "navigation") {
5429
5304
  const { href, target } = props;
5430
- return /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
5305
+ return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
5431
5306
  "a",
5432
5307
  {
5433
5308
  ...getBaseHTMLProps(
@@ -5442,25 +5317,25 @@ var Card = (props) => {
5442
5317
  }
5443
5318
  );
5444
5319
  }
5445
- return /* @__PURE__ */ (0, import_jsx_runtime194.jsx)("div", { ...getBaseHTMLProps(id, classNames, htmlProps, rest), ref: cardRef });
5320
+ return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...getBaseHTMLProps(id, classNames, htmlProps, rest), ref: cardRef });
5446
5321
  };
5447
5322
  Card.displayName = "Card";
5448
5323
 
5449
5324
  // src/components/Card/CardAccordion/CardAccordion.tsx
5450
- var import_react42 = require("react");
5325
+ var import_react41 = require("react");
5451
5326
 
5452
5327
  // src/components/Card/CardAccordion/CardAccordionContext.tsx
5453
- var import_react41 = require("react");
5454
- var import_jsx_runtime195 = require("react/jsx-runtime");
5455
- var CardAccordionContext = (0, import_react41.createContext)({});
5328
+ var import_react40 = require("react");
5329
+ var import_jsx_runtime194 = require("react/jsx-runtime");
5330
+ var CardAccordionContext = (0, import_react40.createContext)({});
5456
5331
  var CardAccordionContextProvider = ({
5457
5332
  children,
5458
5333
  ...values
5459
5334
  }) => {
5460
- return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(CardAccordionContext.Provider, { value: values, children });
5335
+ return /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(CardAccordionContext.Provider, { value: values, children });
5461
5336
  };
5462
5337
  var useCardAccordionContext = () => {
5463
- const context = (0, import_react41.useContext)(CardAccordionContext);
5338
+ const context = (0, import_react40.useContext)(CardAccordionContext);
5464
5339
  if (!context) {
5465
5340
  throw new Error(
5466
5341
  "useCardAccordionContext must be used within a CardAccordionContextProvider. Have you wrapped <CardAccordionHeader> and <CardAccordionBody> inside a <CardAccordion>?"
@@ -5470,8 +5345,8 @@ var useCardAccordionContext = () => {
5470
5345
  };
5471
5346
 
5472
5347
  // src/components/Card/CardAccordion/CardAccordion.tsx
5473
- var import_jsx_runtime196 = require("react/jsx-runtime");
5474
- var CardAccordion = (0, import_react42.forwardRef)(
5348
+ var import_jsx_runtime195 = require("react/jsx-runtime");
5349
+ var CardAccordion = (0, import_react41.forwardRef)(
5475
5350
  (props, ref) => {
5476
5351
  const {
5477
5352
  isExpanded = false,
@@ -5482,13 +5357,13 @@ var CardAccordion = (0, import_react42.forwardRef)(
5482
5357
  htmlProps,
5483
5358
  ...rest
5484
5359
  } = props;
5485
- const [expanded, setExpanded] = (0, import_react42.useState)(isExpanded);
5486
- const generatedId = (0, import_react42.useId)();
5360
+ const [expanded, setExpanded] = (0, import_react41.useState)(isExpanded);
5361
+ const generatedId = (0, import_react41.useId)();
5487
5362
  const accordionId = id != null ? id : `${generatedId}-cardAccordion`;
5488
- (0, import_react42.useEffect)(() => {
5363
+ (0, import_react41.useEffect)(() => {
5489
5364
  setExpanded(isExpanded);
5490
5365
  }, [isExpanded]);
5491
- const toggleExpanded = (0, import_react42.useCallback)(() => {
5366
+ const toggleExpanded = (0, import_react41.useCallback)(() => {
5492
5367
  setExpanded((prevExpanded) => {
5493
5368
  const newExpanded = !prevExpanded;
5494
5369
  if (onChange) {
@@ -5497,7 +5372,7 @@ var CardAccordion = (0, import_react42.forwardRef)(
5497
5372
  return newExpanded;
5498
5373
  });
5499
5374
  }, [onChange]);
5500
- return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { ...getBaseHTMLProps(id, className, htmlProps, rest), ref, children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
5375
+ return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...getBaseHTMLProps(id, className, htmlProps, rest), ref, children: /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
5501
5376
  CardAccordionContextProvider,
5502
5377
  {
5503
5378
  headerId: `${accordionId}-header`,
@@ -5513,7 +5388,7 @@ CardAccordion.displayName = "CardAccordion";
5513
5388
 
5514
5389
  // src/components/Card/CardAccordion/CardAccordionHeader.tsx
5515
5390
  var import_dds_design_tokens13 = require("@norges-domstoler/dds-design-tokens");
5516
- var import_react43 = require("react");
5391
+ var import_react42 = require("react");
5517
5392
 
5518
5393
  // src/components/Card/CardAccordion/CardAccordion.module.css
5519
5394
  var CardAccordion_default = {
@@ -5528,8 +5403,8 @@ var CardAccordion_default = {
5528
5403
  };
5529
5404
 
5530
5405
  // src/components/Card/CardAccordion/CardAccordionHeader.tsx
5531
- var import_jsx_runtime197 = require("react/jsx-runtime");
5532
- var CardAccordionHeader = (0, import_react43.forwardRef)((props, ref) => {
5406
+ var import_jsx_runtime196 = require("react/jsx-runtime");
5407
+ var CardAccordionHeader = (0, import_react42.forwardRef)((props, ref) => {
5533
5408
  const {
5534
5409
  children,
5535
5410
  className,
@@ -5549,7 +5424,7 @@ var CardAccordionHeader = (0, import_react43.forwardRef)((props, ref) => {
5549
5424
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5550
5425
  ["--dds-card-accordion-header-container-padding"]: padding != null ? padding : "var(--dds-spacing-x1) var(--dds-spacing-x0-75) var(--dds-spacing-x1) var(--dds-spacing-x1-5)"
5551
5426
  };
5552
- return /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
5427
+ return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
5553
5428
  "button",
5554
5429
  {
5555
5430
  ...getBaseHTMLProps(
@@ -5569,7 +5444,7 @@ var CardAccordionHeader = (0, import_react43.forwardRef)((props, ref) => {
5569
5444
  "aria-controls": bodyId,
5570
5445
  "aria-expanded": isExpanded,
5571
5446
  type: "button",
5572
- children: /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
5447
+ children: /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)(
5573
5448
  "div",
5574
5449
  {
5575
5450
  style: containerStyleVariables,
@@ -5579,8 +5454,8 @@ var CardAccordionHeader = (0, import_react43.forwardRef)((props, ref) => {
5579
5454
  bold && typographyStyles_default.bold
5580
5455
  ),
5581
5456
  children: [
5582
- /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("div", { className: CardAccordion_default.header__content, children }),
5583
- /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("span", { className: CardAccordion_default.header__chevron, children: /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
5457
+ /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { className: CardAccordion_default.header__content, children }),
5458
+ /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("span", { className: CardAccordion_default.header__chevron, children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
5584
5459
  AnimatedChevronUpDown,
5585
5460
  {
5586
5461
  width: import_dds_design_tokens13.ddsTokens.ddsIconSizeMedium,
@@ -5597,13 +5472,13 @@ var CardAccordionHeader = (0, import_react43.forwardRef)((props, ref) => {
5597
5472
  CardAccordionHeader.displayName = "CardAccordionHeader";
5598
5473
 
5599
5474
  // src/components/Card/CardAccordion/CardAccordionBody.tsx
5600
- var import_react45 = require("react");
5475
+ var import_react44 = require("react");
5601
5476
 
5602
5477
  // src/components/Card/CardAccordion/useElementHeight.ts
5603
- var import_react44 = require("react");
5478
+ var import_react43 = require("react");
5604
5479
  function useElementHeight(element) {
5605
- const [height, setHeight] = (0, import_react44.useState)(null);
5606
- (0, import_react44.useEffect)(() => {
5480
+ const [height, setHeight] = (0, import_react43.useState)(null);
5481
+ (0, import_react43.useEffect)(() => {
5607
5482
  if (!element) return;
5608
5483
  const resizeObserver = new ResizeObserver(() => {
5609
5484
  setHeight(element.offsetHeight);
@@ -5615,22 +5490,22 @@ function useElementHeight(element) {
5615
5490
  }
5616
5491
 
5617
5492
  // src/components/Card/CardAccordion/CardAccordionBody.tsx
5618
- var import_jsx_runtime198 = require("react/jsx-runtime");
5619
- var CardAccordionBody = (0, import_react45.forwardRef)((props, ref) => {
5493
+ var import_jsx_runtime197 = require("react/jsx-runtime");
5494
+ var CardAccordionBody = (0, import_react44.forwardRef)((props, ref) => {
5620
5495
  var _a;
5621
5496
  const { children, className, htmlProps, padding, ...rest } = props;
5622
5497
  const { headerId, isExpanded, bodyId: id } = useCardAccordionContext();
5623
- const bodyRef = (0, import_react45.useRef)(null);
5624
- const [animate, setAnimate] = (0, import_react45.useState)(false);
5498
+ const bodyRef = (0, import_react44.useRef)(null);
5499
+ const [animate, setAnimate] = (0, import_react44.useState)(false);
5625
5500
  const isMounted = useIsMounted();
5626
5501
  const height = useElementHeight(bodyRef.current);
5627
- const [initialExpandedHeight, setIntialExpandedHeight] = (0, import_react45.useState)(null);
5628
- (0, import_react45.useLayoutEffect)(() => {
5502
+ const [initialExpandedHeight, setIntialExpandedHeight] = (0, import_react44.useState)(null);
5503
+ (0, import_react44.useLayoutEffect)(() => {
5629
5504
  if (bodyRef.current && isExpanded) {
5630
5505
  setIntialExpandedHeight(bodyRef.current.scrollHeight);
5631
5506
  }
5632
5507
  }, []);
5633
- (0, import_react45.useEffect)(() => {
5508
+ (0, import_react44.useEffect)(() => {
5634
5509
  if (isMounted()) {
5635
5510
  setAnimate(true);
5636
5511
  }
@@ -5643,7 +5518,7 @@ var CardAccordionBody = (0, import_react45.forwardRef)((props, ref) => {
5643
5518
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5644
5519
  ["--dds-card-accordion-body-content-padding"]: padding != null ? padding : "var(--dds-spacing-x1) calc(var(--dds-spacing-x2) + var(--dds-spacing-x0-75)) var(--dds-spacing-x2) var(--dds-spacing-x1-5)"
5645
5520
  };
5646
- return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
5521
+ return /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
5647
5522
  "div",
5648
5523
  {
5649
5524
  ...getBaseHTMLProps(
@@ -5663,7 +5538,7 @@ var CardAccordionBody = (0, import_react45.forwardRef)((props, ref) => {
5663
5538
  "aria-labelledby": headerId,
5664
5539
  "aria-hidden": !isExpanded,
5665
5540
  style: { ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables },
5666
- children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
5541
+ children: /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
5667
5542
  "div",
5668
5543
  {
5669
5544
  ref: bodyRef,
@@ -5678,7 +5553,7 @@ var CardAccordionBody = (0, import_react45.forwardRef)((props, ref) => {
5678
5553
  CardAccordionBody.displayName = "CardAccordionBody";
5679
5554
 
5680
5555
  // src/components/Chip/Chip.tsx
5681
- var import_react46 = require("react");
5556
+ var import_react45 = require("react");
5682
5557
 
5683
5558
  // src/components/Chip/Chip.module.css
5684
5559
  var Chip_default = {
@@ -5687,16 +5562,16 @@ var Chip_default = {
5687
5562
  };
5688
5563
 
5689
5564
  // src/components/Chip/Chip.tsx
5690
- var import_jsx_runtime199 = require("react/jsx-runtime");
5691
- var Chip = (0, import_react46.forwardRef)((props, ref) => {
5565
+ var import_jsx_runtime198 = require("react/jsx-runtime");
5566
+ var Chip = (0, import_react45.forwardRef)((props, ref) => {
5692
5567
  const { text, onClose, id, className, htmlProps = {}, ...rest } = props;
5693
5568
  const { "aria-label": ariaLabel, ...restHTMLprops } = htmlProps;
5694
- const [isOpen, setIsOpen] = (0, import_react46.useState)(true);
5569
+ const [isOpen, setIsOpen] = (0, import_react45.useState)(true);
5695
5570
  const onClick = () => {
5696
5571
  setIsOpen(false);
5697
5572
  onClose && onClose();
5698
5573
  };
5699
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime199.jsxs)(
5574
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)(
5700
5575
  "div",
5701
5576
  {
5702
5577
  ...getBaseHTMLProps(
@@ -5707,14 +5582,14 @@ var Chip = (0, import_react46.forwardRef)((props, ref) => {
5707
5582
  ),
5708
5583
  ref,
5709
5584
  children: [
5710
- /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
5585
+ /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
5711
5586
  TextOverflowEllipsisInner,
5712
5587
  {
5713
5588
  className: cn(typographyStyles_default["body-sans-01"]),
5714
5589
  children: text
5715
5590
  }
5716
5591
  ),
5717
- /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
5592
+ /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
5718
5593
  Button,
5719
5594
  {
5720
5595
  size: "tiny",
@@ -5731,12 +5606,12 @@ var Chip = (0, import_react46.forwardRef)((props, ref) => {
5731
5606
  Chip.displayName = "Chip";
5732
5607
 
5733
5608
  // src/components/Chip/ChipGroup.tsx
5734
- var import_react47 = require("react");
5735
- var import_jsx_runtime200 = require("react/jsx-runtime");
5736
- var ChipGroup = (0, import_react47.forwardRef)(
5609
+ var import_react46 = require("react");
5610
+ var import_jsx_runtime199 = require("react/jsx-runtime");
5611
+ var ChipGroup = (0, import_react46.forwardRef)(
5737
5612
  ({ children, className, ...rest }, ref) => {
5738
- const childrenArray = import_react47.Children.toArray(children);
5739
- return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
5613
+ const childrenArray = import_react46.Children.toArray(children);
5614
+ return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
5740
5615
  "ul",
5741
5616
  {
5742
5617
  ...rest,
@@ -5746,7 +5621,7 @@ var ChipGroup = (0, import_react47.forwardRef)(
5746
5621
  utilStyles_default["remove-list-styling"]
5747
5622
  ),
5748
5623
  ref,
5749
- children: childrenArray.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("li", { children: item }, `chip-${index}`))
5624
+ children: childrenArray.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("li", { children: item }, `chip-${index}`))
5750
5625
  }
5751
5626
  );
5752
5627
  }
@@ -5758,7 +5633,7 @@ var import_date4 = require("@internationalized/date");
5758
5633
  var import_calendar3 = require("@react-aria/calendar");
5759
5634
  var import_i18n2 = require("@react-aria/i18n");
5760
5635
  var import_calendar4 = require("@react-stately/calendar");
5761
- var import_react50 = require("react");
5636
+ var import_react49 = require("react");
5762
5637
 
5763
5638
  // src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
5764
5639
  var import_date3 = require("@internationalized/date");
@@ -5768,7 +5643,7 @@ var import_i18n = require("@react-aria/i18n");
5768
5643
  // src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
5769
5644
  var import_date = require("@internationalized/date");
5770
5645
  var import_calendar = require("@react-aria/calendar");
5771
- var import_react49 = require("react");
5646
+ var import_react48 = require("react");
5772
5647
 
5773
5648
  // src/components/date-inputs/common/DateInput.module.css
5774
5649
  var DateInput_default = {
@@ -5803,9 +5678,9 @@ var DateInput_default = {
5803
5678
  };
5804
5679
 
5805
5680
  // src/components/date-inputs/DatePicker/CalendarPopover.tsx
5806
- var import_react48 = require("react");
5807
- var import_jsx_runtime201 = require("react/jsx-runtime");
5808
- var CalendarPopoverContext = (0, import_react48.createContext)({
5681
+ var import_react47 = require("react");
5682
+ var import_jsx_runtime200 = require("react/jsx-runtime");
5683
+ var CalendarPopoverContext = (0, import_react47.createContext)({
5809
5684
  anchorRef: null,
5810
5685
  isOpen: false,
5811
5686
  onClose: () => null
@@ -5815,32 +5690,32 @@ var CalendarPopover = ({
5815
5690
  isOpen,
5816
5691
  onClose
5817
5692
  }) => {
5818
- const anchorRef = (0, import_react48.useRef)(null);
5693
+ const anchorRef = (0, import_react47.useRef)(null);
5819
5694
  useOnKeyDown("Escape", onClose);
5820
- return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(CalendarPopoverContext.Provider, { value: { anchorRef, isOpen, onClose }, children });
5695
+ return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(CalendarPopoverContext.Provider, { value: { anchorRef, isOpen, onClose }, children });
5821
5696
  };
5822
5697
  var CalendarPopoverAnchor = ({
5823
5698
  children
5824
5699
  }) => {
5825
- const { anchorRef } = (0, import_react48.useContext)(CalendarPopoverContext);
5826
- return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("div", { ref: anchorRef != null ? anchorRef : void 0, children });
5700
+ const { anchorRef } = (0, import_react47.useContext)(CalendarPopoverContext);
5701
+ return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("div", { ref: anchorRef != null ? anchorRef : void 0, children });
5827
5702
  };
5828
5703
  var CalendarPopoverContent = ({
5829
5704
  children
5830
5705
  }) => {
5831
- const ref = (0, import_react48.useRef)(null);
5706
+ const ref = (0, import_react47.useRef)(null);
5832
5707
  const { refs, styles: floatingStyles } = useFloatPosition(null, {
5833
5708
  placement: "bottom-start"
5834
5709
  });
5835
- const { isOpen, onClose, anchorRef } = (0, import_react48.useContext)(CalendarPopoverContext);
5710
+ const { isOpen, onClose, anchorRef } = (0, import_react47.useContext)(CalendarPopoverContext);
5836
5711
  const combinedRef = useCombinedRef(refs.setFloating, ref);
5837
5712
  useOnClickOutside(ref.current, onClose);
5838
- (0, import_react48.useEffect)(() => {
5713
+ (0, import_react47.useEffect)(() => {
5839
5714
  var _a;
5840
5715
  refs.setReference((_a = anchorRef == null ? void 0 : anchorRef.current) != null ? _a : null);
5841
5716
  }, []);
5842
5717
  if (!isOpen) return null;
5843
- return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
5718
+ return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
5844
5719
  "div",
5845
5720
  {
5846
5721
  ref: combinedRef,
@@ -5856,9 +5731,9 @@ var locale = "no-NO";
5856
5731
  var timezone = "Europe/Oslo";
5857
5732
 
5858
5733
  // src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
5859
- var import_jsx_runtime202 = require("react/jsx-runtime");
5734
+ var import_jsx_runtime201 = require("react/jsx-runtime");
5860
5735
  function CalendarCell({ date, state }) {
5861
- const ref = (0, import_react49.useRef)(null);
5736
+ const ref = (0, import_react48.useRef)(null);
5862
5737
  const {
5863
5738
  buttonProps,
5864
5739
  cellProps,
@@ -5869,16 +5744,16 @@ function CalendarCell({ date, state }) {
5869
5744
  isUnavailable
5870
5745
  } = (0, import_calendar.useCalendarCell)({ date }, state, ref);
5871
5746
  if (isDisabled) {
5872
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("td", { ...cellProps });
5747
+ return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("td", { ...cellProps });
5873
5748
  }
5874
- const { onClose } = (0, import_react49.useContext)(CalendarPopoverContext);
5749
+ const { onClose } = (0, import_react48.useContext)(CalendarPopoverContext);
5875
5750
  const variant = isSelected ? "selected" : isUnavailable || isDisabled ? "unavailable" : "default";
5876
5751
  const closeOnKeyboardBlurForward = (event) => {
5877
5752
  if (event.key === "Tab" && event.shiftKey === false) {
5878
5753
  onClose();
5879
5754
  }
5880
5755
  };
5881
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("td", { ...cellProps, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
5756
+ return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("td", { ...cellProps, children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
5882
5757
  "button",
5883
5758
  {
5884
5759
  ...buttonProps,
@@ -5935,7 +5810,7 @@ function isLeapYear(date) {
5935
5810
  }
5936
5811
 
5937
5812
  // src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
5938
- var import_jsx_runtime203 = require("react/jsx-runtime");
5813
+ var import_jsx_runtime202 = require("react/jsx-runtime");
5939
5814
  function CalendarGrid({ state, ...props }) {
5940
5815
  const { locale: locale2 } = (0, import_i18n.useLocale)();
5941
5816
  const {
@@ -5948,7 +5823,7 @@ function CalendarGrid({ state, ...props }) {
5948
5823
  typographyStyles_default["supporting-style-tiny-02"],
5949
5824
  typographyStyles_default["text-color--subtle"]
5950
5825
  ];
5951
- return /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(
5826
+ return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(
5952
5827
  "table",
5953
5828
  {
5954
5829
  ...gridProps,
@@ -5960,16 +5835,16 @@ function CalendarGrid({ state, ...props }) {
5960
5835
  },
5961
5836
  cellPadding: "0",
5962
5837
  children: [
5963
- /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)("tr", { children: [
5964
- /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("th", { className: cn(...typographyCn), children: "#" }),
5965
- weekDays.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("th", { className: cn(...typographyCn), children: day }, index))
5838
+ /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)("tr", { children: [
5839
+ /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("th", { className: cn(...typographyCn), children: "#" }),
5840
+ weekDays.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("th", { className: cn(...typographyCn), children: day }, index))
5966
5841
  ] }) }),
5967
- /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("tbody", { children: [...new Array(weeksInMonth).keys()].map((weekIndex) => {
5842
+ /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("tbody", { children: [...new Array(weeksInMonth).keys()].map((weekIndex) => {
5968
5843
  const datesInWeek = state.getDatesInWeek(weekIndex);
5969
5844
  const firstExistingDay = datesInWeek.find(Boolean);
5970
5845
  const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
5971
- return /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)("tr", { children: [
5972
- /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
5846
+ return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)("tr", { children: [
5847
+ /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
5973
5848
  "td",
5974
5849
  {
5975
5850
  className: cn(DateInput_default["calendar__week-number"], ...typographyCn),
@@ -5977,7 +5852,7 @@ function CalendarGrid({ state, ...props }) {
5977
5852
  }
5978
5853
  ),
5979
5854
  datesInWeek.map(
5980
- (date, i2) => date ? /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(CalendarCell, { state, date }, i2) : /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("td", {}, i2)
5855
+ (date, i2) => date ? /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(CalendarCell, { state, date }, i2) : /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("td", {}, i2)
5981
5856
  )
5982
5857
  ] }, weekIndex);
5983
5858
  }) })
@@ -5988,7 +5863,7 @@ function CalendarGrid({ state, ...props }) {
5988
5863
  CalendarGrid.displayName = "CalendarGrid";
5989
5864
 
5990
5865
  // src/components/date-inputs/DatePicker/Calendar/Calendar.tsx
5991
- var import_jsx_runtime204 = require("react/jsx-runtime");
5866
+ var import_jsx_runtime203 = require("react/jsx-runtime");
5992
5867
  function createCalendar(identifier2) {
5993
5868
  switch (identifier2) {
5994
5869
  case "gregory":
@@ -6010,15 +5885,15 @@ function Calendar(props) {
6010
5885
  nextButtonProps: { onPress: onNext, "aria-label": nextAriaLabel },
6011
5886
  title
6012
5887
  } = (0, import_calendar3.useCalendar)(props, state);
6013
- const { onClose } = (0, import_react50.useContext)(CalendarPopoverContext);
5888
+ const { onClose } = (0, import_react49.useContext)(CalendarPopoverContext);
6014
5889
  const closeOnKeyboardBlurBack = (event) => {
6015
5890
  if (event.key === "Tab" && event.shiftKey === true) {
6016
5891
  onClose();
6017
5892
  }
6018
5893
  };
6019
- return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)("div", { ...calendarProps, className: DateInput_default.calendar, children: [
6020
- /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)("div", { className: DateInput_default.calendar__header, children: [
6021
- /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
5894
+ return /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)("div", { ...calendarProps, className: DateInput_default.calendar, children: [
5895
+ /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)("div", { className: DateInput_default.calendar__header, children: [
5896
+ /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
6022
5897
  Button,
6023
5898
  {
6024
5899
  type: "button",
@@ -6031,7 +5906,7 @@ function Calendar(props) {
6031
5906
  className: DateInput_default["calendar__month-button"]
6032
5907
  }
6033
5908
  ),
6034
- /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
5909
+ /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
6035
5910
  Heading,
6036
5911
  {
6037
5912
  level: 2,
@@ -6040,7 +5915,7 @@ function Calendar(props) {
6040
5915
  children: title
6041
5916
  }
6042
5917
  ),
6043
- /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
5918
+ /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
6044
5919
  Button,
6045
5920
  {
6046
5921
  type: "button",
@@ -6053,7 +5928,7 @@ function Calendar(props) {
6053
5928
  }
6054
5929
  )
6055
5930
  ] }),
6056
- /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(CalendarGrid, { state })
5931
+ /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(CalendarGrid, { state })
6057
5932
  ] });
6058
5933
  }
6059
5934
  Calendar.displayName = "Calendar";
@@ -6062,28 +5937,28 @@ Calendar.displayName = "Calendar";
6062
5937
  var import_datepicker4 = require("@react-aria/datepicker");
6063
5938
  var import_i18n4 = require("@react-aria/i18n");
6064
5939
  var import_datepicker5 = require("@react-stately/datepicker");
6065
- var import_react57 = require("react");
5940
+ var import_react56 = require("react");
6066
5941
 
6067
5942
  // src/components/date-inputs/DatePicker/DateField/DateField.tsx
6068
5943
  var import_date5 = require("@internationalized/date");
6069
5944
  var import_datepicker2 = require("@react-aria/datepicker");
6070
5945
  var import_i18n3 = require("@react-aria/i18n");
6071
5946
  var import_datepicker3 = require("@react-stately/datepicker");
6072
- var import_react55 = require("react");
5947
+ var import_react54 = require("react");
6073
5948
 
6074
5949
  // src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
6075
5950
  var import_button = require("@react-aria/button");
6076
- var import_react51 = require("react");
6077
- var import_jsx_runtime205 = require("react/jsx-runtime");
5951
+ var import_react50 = require("react");
5952
+ var import_jsx_runtime204 = require("react/jsx-runtime");
6078
5953
  function CalendarButton({
6079
5954
  componentSize,
6080
5955
  isReadOnly,
6081
5956
  ...props
6082
5957
  }) {
6083
- const ref = (0, import_react51.useRef)(null);
5958
+ const ref = (0, import_react50.useRef)(null);
6084
5959
  const { buttonProps } = (0, import_button.useButton)(props, ref);
6085
5960
  const size2 = componentSize === "tiny" ? "small" : "medium";
6086
- return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
5961
+ return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
6087
5962
  "button",
6088
5963
  {
6089
5964
  ...buttonProps,
@@ -6104,15 +5979,15 @@ function CalendarButton({
6104
5979
  !props.isDisabled && focusable,
6105
5980
  props.isDisabled && "disabled"
6106
5981
  ),
6107
- children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(Icon, { icon: CalendarIcon, iconSize: size2 })
5982
+ children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Icon, { icon: CalendarIcon, iconSize: size2 })
6108
5983
  }
6109
5984
  );
6110
5985
  }
6111
5986
 
6112
5987
  // src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
6113
5988
  var import_datepicker = require("@react-aria/datepicker");
6114
- var import_react52 = require("react");
6115
- var import_jsx_runtime206 = require("react/jsx-runtime");
5989
+ var import_react51 = require("react");
5990
+ var import_jsx_runtime205 = require("react/jsx-runtime");
6116
5991
  var typographyTypes2 = {
6117
5992
  medium: "bodySans02",
6118
5993
  small: "bodySans01",
@@ -6129,9 +6004,9 @@ function DateSegment({
6129
6004
  componentSize
6130
6005
  }) {
6131
6006
  var _a;
6132
- const ref = (0, import_react52.useRef)(null);
6007
+ const ref = (0, import_react51.useRef)(null);
6133
6008
  const { segmentProps } = (0, import_datepicker.useDateSegment)(segment, state, ref);
6134
- return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(
6009
+ return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(
6135
6010
  "div",
6136
6011
  {
6137
6012
  ...segmentProps,
@@ -6146,7 +6021,7 @@ function DateSegment({
6146
6021
  minWidth: segment.maxValue != null ? String(segment.maxValue).length + "ch" : void 0
6147
6022
  },
6148
6023
  children: [
6149
- /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
6024
+ /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
6150
6025
  "span",
6151
6026
  {
6152
6027
  "aria-hidden": "true",
@@ -6166,10 +6041,10 @@ function DateSegment({
6166
6041
  DateSegment.displayName = "DateSegment";
6167
6042
 
6168
6043
  // src/components/date-inputs/common/DateInput.tsx
6169
- var import_react54 = require("react");
6044
+ var import_react53 = require("react");
6170
6045
 
6171
6046
  // src/components/InputMessage/InputMessage.tsx
6172
- var import_react53 = require("react");
6047
+ var import_react52 = require("react");
6173
6048
 
6174
6049
  // src/components/InputMessage/InputMessage.module.css
6175
6050
  var InputMessage_default = {
@@ -6179,12 +6054,12 @@ var InputMessage_default = {
6179
6054
  };
6180
6055
 
6181
6056
  // src/components/InputMessage/InputMessage.tsx
6182
- var import_jsx_runtime207 = require("react/jsx-runtime");
6183
- var InputMessage = (0, import_react53.forwardRef)(
6057
+ var import_jsx_runtime206 = require("react/jsx-runtime");
6058
+ var InputMessage = (0, import_react52.forwardRef)(
6184
6059
  (props, ref) => {
6185
6060
  const { message, messageType, id, className, htmlProps, ...rest } = props;
6186
6061
  const isError = messageType === "error";
6187
- return /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(
6062
+ return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(
6188
6063
  "div",
6189
6064
  {
6190
6065
  ...getBaseHTMLProps(
@@ -6199,8 +6074,8 @@ var InputMessage = (0, import_react53.forwardRef)(
6199
6074
  ),
6200
6075
  ref,
6201
6076
  children: [
6202
- isError && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(Icon, { icon: ErrorIcon, iconSize: "small", className: InputMessage_default.icon }),
6203
- /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
6077
+ isError && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(Icon, { icon: ErrorIcon, iconSize: "small", className: InputMessage_default.icon }),
6078
+ /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
6204
6079
  Typography,
6205
6080
  {
6206
6081
  typographyType: isError ? "bodySans01" : "supportingStyleHelperText01",
@@ -6214,8 +6089,8 @@ var InputMessage = (0, import_react53.forwardRef)(
6214
6089
  }
6215
6090
  );
6216
6091
  InputMessage.displayName = "InputMessage";
6217
- var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(import_jsx_runtime207.Fragment, { children: [
6218
- errorMessage && errorMessageId && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
6092
+ var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(import_jsx_runtime206.Fragment, { children: [
6093
+ errorMessage && errorMessageId && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
6219
6094
  InputMessage,
6220
6095
  {
6221
6096
  message: errorMessage,
@@ -6223,11 +6098,11 @@ var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PUR
6223
6098
  id: errorMessageId
6224
6099
  }
6225
6100
  ),
6226
- tip && tipId && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(InputMessage, { message: tip, messageType: "tip", id: tipId })
6101
+ tip && tipId && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(InputMessage, { message: tip, messageType: "tip", id: tipId })
6227
6102
  ] });
6228
6103
 
6229
6104
  // src/components/date-inputs/common/DateInput.tsx
6230
- var import_jsx_runtime208 = require("react/jsx-runtime");
6105
+ var import_jsx_runtime207 = require("react/jsx-runtime");
6231
6106
  function _DateInput({
6232
6107
  errorMessage,
6233
6108
  tip,
@@ -6252,19 +6127,19 @@ function _DateInput({
6252
6127
  const hasTip = !!tip;
6253
6128
  const hasLabel = props.label != null;
6254
6129
  const hasMessage = hasErrorMessage || hasTip;
6255
- const { isOpen } = (0, import_react54.useContext)(CalendarPopoverContext);
6130
+ const { isOpen } = (0, import_react53.useContext)(CalendarPopoverContext);
6256
6131
  const styleVariables = {
6257
6132
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6258
6133
  ["--dds-date-input-width"]: width ? width : componentSize === "small" ? "148px" : componentSize === "tiny" ? "125px" : "160px"
6259
6134
  };
6260
- return /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(
6135
+ return /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(
6261
6136
  "div",
6262
6137
  {
6263
6138
  ...groupProps,
6264
6139
  className: cn(className, Input_default.container),
6265
6140
  ref: forwardedRef,
6266
6141
  children: [
6267
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
6142
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
6268
6143
  Label,
6269
6144
  {
6270
6145
  ...labelProps,
@@ -6274,7 +6149,7 @@ function _DateInput({
6274
6149
  children: props.label
6275
6150
  }
6276
6151
  ),
6277
- /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(
6152
+ /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(
6278
6153
  "div",
6279
6154
  {
6280
6155
  ...fieldProps,
@@ -6298,11 +6173,11 @@ function _DateInput({
6298
6173
  ),
6299
6174
  children: [
6300
6175
  button,
6301
- /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { className: DateInput_default["date-segment-container"], children })
6176
+ /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { className: DateInput_default["date-segment-container"], children })
6302
6177
  ]
6303
6178
  }
6304
6179
  ),
6305
- hasMessage && /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
6180
+ hasMessage && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
6306
6181
  InputMessage,
6307
6182
  {
6308
6183
  messageType: hasErrorMessage ? "error" : "tip",
@@ -6313,11 +6188,11 @@ function _DateInput({
6313
6188
  }
6314
6189
  );
6315
6190
  }
6316
- var DateInput = (0, import_react54.forwardRef)(_DateInput);
6191
+ var DateInput = (0, import_react53.forwardRef)(_DateInput);
6317
6192
  DateInput.displayName = "DateInput";
6318
6193
 
6319
6194
  // src/components/date-inputs/DatePicker/DateField/DateField.tsx
6320
- var import_jsx_runtime209 = require("react/jsx-runtime");
6195
+ var import_jsx_runtime208 = require("react/jsx-runtime");
6321
6196
  function _DateField({
6322
6197
  componentSize = "medium",
6323
6198
  buttonProps,
@@ -6330,10 +6205,10 @@ function _DateField({
6330
6205
  locale: locale2,
6331
6206
  createCalendar: import_date5.createCalendar
6332
6207
  });
6333
- const ref = (0, import_react55.useRef)(null);
6208
+ const ref = (0, import_react54.useRef)(null);
6334
6209
  const { labelProps, fieldProps } = (0, import_datepicker2.useDateField)(props, state, ref);
6335
6210
  const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
6336
- return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
6211
+ return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
6337
6212
  DateInput,
6338
6213
  {
6339
6214
  ...props,
@@ -6345,7 +6220,7 @@ function _DateField({
6345
6220
  ref: forwardedRef,
6346
6221
  internalRef: ref,
6347
6222
  readOnly: props.isReadOnly,
6348
- prefix: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
6223
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
6349
6224
  CalendarButton,
6350
6225
  {
6351
6226
  componentSize,
@@ -6356,7 +6231,7 @@ function _DateField({
6356
6231
  ),
6357
6232
  labelProps,
6358
6233
  fieldProps,
6359
- children: state.segments.map((segment, i2) => /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
6234
+ children: state.segments.map((segment, i2) => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
6360
6235
  DateSegment,
6361
6236
  {
6362
6237
  "aria-readonly": props.isReadOnly,
@@ -6369,18 +6244,18 @@ function _DateField({
6369
6244
  }
6370
6245
  );
6371
6246
  }
6372
- var DateField = (0, import_react55.forwardRef)(_DateField);
6247
+ var DateField = (0, import_react54.forwardRef)(_DateField);
6373
6248
  DateField.displayName = "DateField";
6374
6249
 
6375
6250
  // src/components/date-inputs/utils/useFocusManagerRef.ts
6376
- var import_focus13 = require("@react-aria/focus");
6377
- var import_react56 = require("react");
6251
+ var import_focus12 = require("@react-aria/focus");
6252
+ var import_react55 = require("react");
6378
6253
  function useFocusManagerRef(ref) {
6379
- const domRef = (0, import_react56.useRef)(null);
6380
- (0, import_react56.useImperativeHandle)(ref, () => ({
6254
+ const domRef = (0, import_react55.useRef)(null);
6255
+ (0, import_react55.useImperativeHandle)(ref, () => ({
6381
6256
  ...createDOMRef(domRef),
6382
6257
  focus() {
6383
- (0, import_focus13.createFocusManager)(domRef).focusFirst({ tabbable: true });
6258
+ (0, import_focus12.createFocusManager)(domRef).focusFirst({ tabbable: true });
6384
6259
  }
6385
6260
  }));
6386
6261
  return domRef;
@@ -6394,24 +6269,24 @@ function createDOMRef(ref) {
6394
6269
  }
6395
6270
 
6396
6271
  // src/components/date-inputs/DatePicker/DatePicker.tsx
6397
- var import_jsx_runtime210 = require("react/jsx-runtime");
6272
+ var import_jsx_runtime209 = require("react/jsx-runtime");
6398
6273
  var refIsFocusable = (ref) => {
6399
6274
  return typeof ref === "object" && ref !== null && "focus" in ref;
6400
6275
  };
6401
6276
  function _DatePicker({ errorMessage, componentSize, tip, style, width, ...props }, forwardedRef) {
6402
6277
  const state = (0, import_datepicker5.useDatePickerState)(props);
6403
6278
  const domRef = useFocusManagerRef(
6404
- refIsFocusable(import_react57.forwardRef) ? forwardedRef : null
6279
+ refIsFocusable(import_react56.forwardRef) ? forwardedRef : null
6405
6280
  );
6406
- const ref = (0, import_react57.useRef)(null);
6281
+ const ref = (0, import_react56.useRef)(null);
6407
6282
  const combinedRef = useCombinedRef(ref, domRef);
6408
6283
  const { buttonProps, calendarProps, fieldProps, groupProps } = (0, import_datepicker4.useDatePicker)(
6409
6284
  { ...props, granularity: "day" },
6410
6285
  state,
6411
6286
  ref
6412
6287
  );
6413
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_i18n4.I18nProvider, { locale, children: /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(CalendarPopover, { isOpen: state.isOpen, onClose: state.close, children: [
6414
- /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(CalendarPopoverAnchor, { children: /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
6288
+ return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(import_i18n4.I18nProvider, { locale, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(CalendarPopover, { isOpen: state.isOpen, onClose: state.close, children: [
6289
+ /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(CalendarPopoverAnchor, { children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
6415
6290
  DateField,
6416
6291
  {
6417
6292
  ...fieldProps,
@@ -6427,19 +6302,19 @@ function _DatePicker({ errorMessage, componentSize, tip, style, width, ...props
6427
6302
  width
6428
6303
  }
6429
6304
  ) }),
6430
- /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(CalendarPopoverContent, { children: /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Calendar, { ...calendarProps }) })
6305
+ /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(CalendarPopoverContent, { children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Calendar, { ...calendarProps }) })
6431
6306
  ] }) });
6432
6307
  }
6433
- var DatePicker = (0, import_react57.forwardRef)(_DatePicker);
6308
+ var DatePicker = (0, import_react56.forwardRef)(_DatePicker);
6434
6309
  DatePicker.displayName = "DatePicker";
6435
6310
 
6436
6311
  // src/components/date-inputs/TimePicker/TimePicker.tsx
6437
6312
  var import_datepicker6 = require("@react-aria/datepicker");
6438
6313
  var import_datepicker7 = require("@react-stately/datepicker");
6439
- var import_react58 = require("react");
6440
- var import_jsx_runtime211 = require("react/jsx-runtime");
6314
+ var import_react57 = require("react");
6315
+ var import_jsx_runtime210 = require("react/jsx-runtime");
6441
6316
  function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef) {
6442
- const ref = (0, import_react58.useRef)(null);
6317
+ const ref = (0, import_react57.useRef)(null);
6443
6318
  const state = (0, import_datepicker7.useTimeFieldState)({
6444
6319
  ...props,
6445
6320
  locale
@@ -6451,7 +6326,7 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
6451
6326
  );
6452
6327
  const iconSize = componentSize === "tiny" ? "small" : "medium";
6453
6328
  const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
6454
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
6329
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
6455
6330
  DateInput,
6456
6331
  {
6457
6332
  ...props,
@@ -6464,7 +6339,7 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
6464
6339
  readOnly: props.isReadOnly,
6465
6340
  labelProps,
6466
6341
  fieldProps,
6467
- prefix: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
6342
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
6468
6343
  "span",
6469
6344
  {
6470
6345
  className: cn(
@@ -6473,10 +6348,10 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
6473
6348
  props.isReadOnly && DateInput_default["icon-wrapper--readonly"],
6474
6349
  DateInput_default[`icon-wrapper--${iconSize}`]
6475
6350
  ),
6476
- children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Icon, { icon: TimeIcon, iconSize })
6351
+ children: /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Icon, { icon: TimeIcon, iconSize })
6477
6352
  }
6478
6353
  ),
6479
- children: state.segments.map((segment, i2) => /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
6354
+ children: state.segments.map((segment, i2) => /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
6480
6355
  DateSegment,
6481
6356
  {
6482
6357
  componentSize,
@@ -6488,7 +6363,7 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
6488
6363
  }
6489
6364
  );
6490
6365
  }
6491
- var TimePicker = (0, import_react58.forwardRef)(_TimePicker);
6366
+ var TimePicker = (0, import_react57.forwardRef)(_TimePicker);
6492
6367
  TimePicker.displayName = "TimePicker";
6493
6368
 
6494
6369
  // src/components/date-inputs/utils/transform.ts
@@ -6521,7 +6396,7 @@ function calendarDateToNativeDate(date, time = new import_date6.Time(12, 0, 0, 0
6521
6396
  }
6522
6397
 
6523
6398
  // src/components/DescriptionList/DescriptionList.tsx
6524
- var import_react59 = require("react");
6399
+ var import_react58 = require("react");
6525
6400
 
6526
6401
  // src/components/DescriptionList/DescriptionList.module.css
6527
6402
  var DescriptionList_default = {
@@ -6535,8 +6410,8 @@ var DescriptionList_default = {
6535
6410
  };
6536
6411
 
6537
6412
  // src/components/DescriptionList/DescriptionList.tsx
6538
- var import_jsx_runtime212 = require("react/jsx-runtime");
6539
- var DescriptionList = (0, import_react59.forwardRef)((props, ref) => {
6413
+ var import_jsx_runtime211 = require("react/jsx-runtime");
6414
+ var DescriptionList = (0, import_react58.forwardRef)((props, ref) => {
6540
6415
  const {
6541
6416
  appearance = "default",
6542
6417
  direction = "column",
@@ -6546,7 +6421,7 @@ var DescriptionList = (0, import_react59.forwardRef)((props, ref) => {
6546
6421
  htmlProps,
6547
6422
  ...rest
6548
6423
  } = props;
6549
- return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
6424
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
6550
6425
  "dl",
6551
6426
  {
6552
6427
  ref,
@@ -6568,25 +6443,25 @@ var DescriptionList = (0, import_react59.forwardRef)((props, ref) => {
6568
6443
  DescriptionList.displayName = "DescriptionList";
6569
6444
 
6570
6445
  // src/components/DescriptionList/DescriptionListTerm.tsx
6571
- var import_react60 = require("react");
6572
- var import_jsx_runtime213 = require("react/jsx-runtime");
6573
- var DescriptionListTerm = (0, import_react60.forwardRef)(({ ...rest }, ref) => {
6574
- return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)("dt", { ref, ...rest });
6446
+ var import_react59 = require("react");
6447
+ var import_jsx_runtime212 = require("react/jsx-runtime");
6448
+ var DescriptionListTerm = (0, import_react59.forwardRef)(({ ...rest }, ref) => {
6449
+ return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("dt", { ref, ...rest });
6575
6450
  });
6576
6451
  DescriptionListTerm.displayName = "DescriptionListTerm";
6577
6452
 
6578
6453
  // src/components/DescriptionList/DescriptionListDesc.tsx
6579
- var import_react61 = require("react");
6580
- var import_jsx_runtime214 = require("react/jsx-runtime");
6581
- var DescriptionListDesc = (0, import_react61.forwardRef)((props, ref) => {
6454
+ var import_react60 = require("react");
6455
+ var import_jsx_runtime213 = require("react/jsx-runtime");
6456
+ var DescriptionListDesc = (0, import_react60.forwardRef)((props, ref) => {
6582
6457
  const { children, icon, id, className, htmlProps, ...rest } = props;
6583
- return /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
6458
+ return /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
6584
6459
  "dd",
6585
6460
  {
6586
6461
  ref,
6587
6462
  ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest),
6588
6463
  children: [
6589
- icon && /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Icon, { icon }),
6464
+ icon && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Icon, { icon }),
6590
6465
  " ",
6591
6466
  children
6592
6467
  ]
@@ -6596,9 +6471,9 @@ var DescriptionListDesc = (0, import_react61.forwardRef)((props, ref) => {
6596
6471
  DescriptionListDesc.displayName = "DescriptionListDesc";
6597
6472
 
6598
6473
  // src/components/DescriptionList/DescriptionListGroup.tsx
6599
- var import_react62 = require("react");
6600
- var import_jsx_runtime215 = require("react/jsx-runtime");
6601
- var DescriptionListGroup = (0, import_react62.forwardRef)((props, ref) => {
6474
+ var import_react61 = require("react");
6475
+ var import_jsx_runtime214 = require("react/jsx-runtime");
6476
+ var DescriptionListGroup = (0, import_react61.forwardRef)((props, ref) => {
6602
6477
  const {
6603
6478
  children,
6604
6479
  margin,
@@ -6609,7 +6484,7 @@ var DescriptionListGroup = (0, import_react62.forwardRef)((props, ref) => {
6609
6484
  htmlProps,
6610
6485
  ...rest
6611
6486
  } = props;
6612
- return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
6487
+ return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
6613
6488
  "div",
6614
6489
  {
6615
6490
  ref,
@@ -6622,7 +6497,7 @@ var DescriptionListGroup = (0, import_react62.forwardRef)((props, ref) => {
6622
6497
  DescriptionListGroup.displayName = "DescriptionListGroup";
6623
6498
 
6624
6499
  // src/components/Drawer/Drawer.tsx
6625
- var import_react63 = require("react");
6500
+ var import_react62 = require("react");
6626
6501
  var import_react_dom2 = require("react-dom");
6627
6502
 
6628
6503
  // src/components/Drawer/Drawer.module.css
@@ -6642,8 +6517,8 @@ var Drawer_default = {
6642
6517
  };
6643
6518
 
6644
6519
  // src/components/Drawer/Drawer.tsx
6645
- var import_jsx_runtime216 = require("react/jsx-runtime");
6646
- var Drawer = (0, import_react63.forwardRef)((props, ref) => {
6520
+ var import_jsx_runtime215 = require("react/jsx-runtime");
6521
+ var Drawer = (0, import_react62.forwardRef)((props, ref) => {
6647
6522
  const {
6648
6523
  children,
6649
6524
  onClose,
@@ -6659,7 +6534,7 @@ var Drawer = (0, import_react63.forwardRef)((props, ref) => {
6659
6534
  widthProps,
6660
6535
  ...rest
6661
6536
  } = props;
6662
- const generatedId = (0, import_react63.useId)();
6537
+ const generatedId = (0, import_react62.useId)();
6663
6538
  const uniqueId = id != null ? id : `${generatedId}-drawer`;
6664
6539
  const hasHeader = !!header;
6665
6540
  const headerId = hasHeader ? `${uniqueId}-header` : void 0;
@@ -6704,8 +6579,8 @@ var Drawer = (0, import_react63.forwardRef)((props, ref) => {
6704
6579
  style: { ...htmlProps == null ? void 0 : htmlProps.style, ...widthProps }
6705
6580
  };
6706
6581
  return isOpen || hasTransitionedIn ? (0, import_react_dom2.createPortal)(
6707
- /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(Paper, { ...containerProps, elevation: 4, children: [
6708
- /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
6582
+ /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(Paper, { ...containerProps, elevation: 4, children: [
6583
+ /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
6709
6584
  "div",
6710
6585
  {
6711
6586
  className: cn(
@@ -6714,12 +6589,12 @@ var Drawer = (0, import_react63.forwardRef)((props, ref) => {
6714
6589
  utilStyles_default["scrollable-y"]
6715
6590
  ),
6716
6591
  children: [
6717
- hasHeader && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
6592
+ hasHeader && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
6718
6593
  children
6719
6594
  ]
6720
6595
  }
6721
6596
  ),
6722
- /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
6597
+ /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
6723
6598
  Button,
6724
6599
  {
6725
6600
  className: cn(Drawer_default["button--close"]),
@@ -6738,18 +6613,18 @@ var Drawer = (0, import_react63.forwardRef)((props, ref) => {
6738
6613
  Drawer.displayName = "Drawer";
6739
6614
 
6740
6615
  // src/components/Drawer/DrawerGroup.tsx
6741
- var import_react64 = require("react");
6742
- var import_jsx_runtime217 = require("react/jsx-runtime");
6616
+ var import_react63 = require("react");
6617
+ var import_jsx_runtime216 = require("react/jsx-runtime");
6743
6618
  var DrawerGroup = ({
6744
6619
  children,
6745
6620
  drawerId,
6746
6621
  onOpen,
6747
6622
  onClose
6748
6623
  }) => {
6749
- const generatedId = (0, import_react64.useId)();
6624
+ const generatedId = (0, import_react63.useId)();
6750
6625
  const uniqueDrawerId = drawerId != null ? drawerId : `${generatedId}-drawer`;
6751
- const buttonRef = (0, import_react64.useRef)(null);
6752
- const [closed, setClosed] = (0, import_react64.useState)(true);
6626
+ const buttonRef = (0, import_react63.useRef)(null);
6627
+ const [closed, setClosed] = (0, import_react63.useState)(true);
6753
6628
  const open = () => setClosed(false);
6754
6629
  const close = () => setClosed(true);
6755
6630
  const handleOpen = () => {
@@ -6760,21 +6635,21 @@ var DrawerGroup = ({
6760
6635
  close();
6761
6636
  onClose && onClose();
6762
6637
  };
6763
- const Children8 = import_react64.Children.map(children, (child, childIndex) => {
6764
- return (0, import_react64.isValidElement)(child) && (childIndex === 0 ? (0, import_react64.cloneElement)(child, {
6638
+ const Children8 = import_react63.Children.map(children, (child, childIndex) => {
6639
+ return (0, import_react63.isValidElement)(child) && (childIndex === 0 ? (0, import_react63.cloneElement)(child, {
6765
6640
  "aria-haspopup": "dialog",
6766
6641
  "aria-controls": uniqueDrawerId,
6767
6642
  "aria-expanded": !closed,
6768
6643
  ref: buttonRef,
6769
6644
  onClick: handleOpen
6770
- }) : (0, import_react64.cloneElement)(child, {
6645
+ }) : (0, import_react63.cloneElement)(child, {
6771
6646
  id: uniqueDrawerId,
6772
6647
  triggerRef: buttonRef,
6773
6648
  isOpen: !closed,
6774
6649
  onClose: handleClose
6775
6650
  }));
6776
6651
  });
6777
- return /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(import_jsx_runtime217.Fragment, { children: [
6652
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(import_jsx_runtime216.Fragment, { children: [
6778
6653
  " ",
6779
6654
  Children8,
6780
6655
  " "
@@ -6790,7 +6665,7 @@ var EmptyContent_default = {
6790
6665
  };
6791
6666
 
6792
6667
  // src/components/EmptyContent/EmptyContent.tsx
6793
- var import_jsx_runtime218 = require("react/jsx-runtime");
6668
+ var import_jsx_runtime217 = require("react/jsx-runtime");
6794
6669
  function EmptyContent({
6795
6670
  title,
6796
6671
  message,
@@ -6798,15 +6673,15 @@ function EmptyContent({
6798
6673
  className,
6799
6674
  ...rest
6800
6675
  }) {
6801
- return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("div", { ...rest, className: cn(className, EmptyContent_default.containter), children: /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)("div", { className: EmptyContent_default.text, children: [
6802
- title && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title }),
6803
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Paragraph, { className: EmptyContent_default.message, children: message })
6676
+ return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...rest, className: cn(className, EmptyContent_default.containter), children: /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { className: EmptyContent_default.text, children: [
6677
+ title && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title }),
6678
+ /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Paragraph, { className: EmptyContent_default.message, children: message })
6804
6679
  ] }) });
6805
6680
  }
6806
6681
  EmptyContent.displayName = "EmptyContent";
6807
6682
 
6808
6683
  // src/components/FavStar/FavStar.tsx
6809
- var import_react67 = require("react");
6684
+ var import_react66 = require("react");
6810
6685
 
6811
6686
  // src/components/FavStar/FavStar.module.css
6812
6687
  var FavStar_default = {
@@ -6818,16 +6693,16 @@ var FavStar_default = {
6818
6693
  };
6819
6694
 
6820
6695
  // src/hooks/useControllableState.ts
6821
- var import_react66 = require("react");
6696
+ var import_react65 = require("react");
6822
6697
 
6823
6698
  // src/hooks/useCallbackRef.ts
6824
- var import_react65 = require("react");
6699
+ var import_react64 = require("react");
6825
6700
  function useCallbackRef(callback, deps = []) {
6826
- const callbackRef = (0, import_react65.useRef)(callback);
6827
- (0, import_react65.useEffect)(() => {
6701
+ const callbackRef = (0, import_react64.useRef)(callback);
6702
+ (0, import_react64.useEffect)(() => {
6828
6703
  callbackRef.current = callback;
6829
6704
  });
6830
- return (0, import_react65.useCallback)((...args) => {
6705
+ return (0, import_react64.useCallback)((...args) => {
6831
6706
  var _a;
6832
6707
  return (_a = callbackRef.current) == null ? void 0 : _a.call(callbackRef, ...args);
6833
6708
  }, deps);
@@ -6837,7 +6712,7 @@ function useCallbackRef(callback, deps = []) {
6837
6712
  function useControllableState(props) {
6838
6713
  const { value: valueProp, defaultValue, onChange } = props;
6839
6714
  const onChangeProp = useCallbackRef(onChange);
6840
- const [uncontrolledState, setUncontrolledState] = (0, import_react66.useState)(defaultValue);
6715
+ const [uncontrolledState, setUncontrolledState] = (0, import_react65.useState)(defaultValue);
6841
6716
  const controlled = valueProp !== void 0;
6842
6717
  const value = controlled ? valueProp : uncontrolledState;
6843
6718
  const setValue = useCallbackRef(
@@ -6855,8 +6730,8 @@ function useControllableState(props) {
6855
6730
  }
6856
6731
 
6857
6732
  // src/components/FavStar/FavStar.tsx
6858
- var import_jsx_runtime219 = require("react/jsx-runtime");
6859
- var FavStar = (0, import_react67.forwardRef)(
6733
+ var import_jsx_runtime218 = require("react/jsx-runtime");
6734
+ var FavStar = (0, import_react66.forwardRef)(
6860
6735
  ({
6861
6736
  id,
6862
6737
  className,
@@ -6874,13 +6749,13 @@ var FavStar = (0, import_react67.forwardRef)(
6874
6749
  htmlProps,
6875
6750
  rest
6876
6751
  );
6877
- const generatedId = (0, import_react67.useId)();
6752
+ const generatedId = (0, import_react66.useId)();
6878
6753
  const [checked, setChecked] = useControllableState({
6879
6754
  value: checkedProp,
6880
6755
  defaultValue: defaultChecked != null ? defaultChecked : false,
6881
6756
  onChange
6882
6757
  });
6883
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
6758
+ return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
6884
6759
  "label",
6885
6760
  {
6886
6761
  className: cn(
@@ -6892,7 +6767,7 @@ var FavStar = (0, import_react67.forwardRef)(
6892
6767
  style,
6893
6768
  htmlFor: id != null ? id : generatedId,
6894
6769
  children: [
6895
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
6770
+ /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
6896
6771
  "input",
6897
6772
  {
6898
6773
  ...props,
@@ -6905,8 +6780,8 @@ var FavStar = (0, import_react67.forwardRef)(
6905
6780
  className: utilStyles_default["hide-input"]
6906
6781
  }
6907
6782
  ),
6908
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
6909
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
6783
+ /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
6784
+ /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
6910
6785
  Icon,
6911
6786
  {
6912
6787
  iconSize: size2,
@@ -6922,7 +6797,7 @@ var FavStar = (0, import_react67.forwardRef)(
6922
6797
  FavStar.displayName = "FavStar";
6923
6798
 
6924
6799
  // src/components/Feedback/Feedback.tsx
6925
- var import_react71 = require("react");
6800
+ var import_react70 = require("react");
6926
6801
 
6927
6802
  // src/components/Feedback/Feedback.module.css
6928
6803
  var Feedback_default = {
@@ -6936,7 +6811,7 @@ var Feedback_default = {
6936
6811
  };
6937
6812
 
6938
6813
  // src/components/Stack/Stack.tsx
6939
- var import_react68 = require("react");
6814
+ var import_react67 = require("react");
6940
6815
 
6941
6816
  // src/components/Stack/Stack.module.css
6942
6817
  var Stack_default = {
@@ -6972,8 +6847,8 @@ var Stack_default = {
6972
6847
  };
6973
6848
 
6974
6849
  // src/components/Stack/Stack.tsx
6975
- var import_jsx_runtime220 = require("react/jsx-runtime");
6976
- var HStack = (0, import_react68.forwardRef)(
6850
+ var import_jsx_runtime219 = require("react/jsx-runtime");
6851
+ var HStack = (0, import_react67.forwardRef)(
6977
6852
  ({
6978
6853
  id,
6979
6854
  className,
@@ -6990,7 +6865,7 @@ var HStack = (0, import_react68.forwardRef)(
6990
6865
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6991
6866
  ["--dds-stack-justify-content"]: justify
6992
6867
  };
6993
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
6868
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
6994
6869
  "div",
6995
6870
  {
6996
6871
  ref,
@@ -7012,7 +6887,7 @@ var HStack = (0, import_react68.forwardRef)(
7012
6887
  }
7013
6888
  );
7014
6889
  HStack.displayName = "HStack";
7015
- var VStack = (0, import_react68.forwardRef)(
6890
+ var VStack = (0, import_react67.forwardRef)(
7016
6891
  ({
7017
6892
  id,
7018
6893
  className,
@@ -7029,7 +6904,7 @@ var VStack = (0, import_react68.forwardRef)(
7029
6904
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7030
6905
  ["--dds-stack-justify-content"]: justify
7031
6906
  };
7032
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
6907
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
7033
6908
  "div",
7034
6909
  {
7035
6910
  ref,
@@ -7056,7 +6931,7 @@ function spacingPropToCn(value) {
7056
6931
  }
7057
6932
 
7058
6933
  // src/components/TextArea/TextArea.tsx
7059
- var import_react69 = require("react");
6934
+ var import_react68 = require("react");
7060
6935
 
7061
6936
  // src/components/TextArea/TextArea.module.css
7062
6937
  var TextArea_default = {
@@ -7065,8 +6940,8 @@ var TextArea_default = {
7065
6940
  };
7066
6941
 
7067
6942
  // src/components/TextArea/TextArea.tsx
7068
- var import_jsx_runtime221 = require("react/jsx-runtime");
7069
- var TextArea = (0, import_react69.forwardRef)(
6943
+ var import_jsx_runtime220 = require("react/jsx-runtime");
6944
+ var TextArea = (0, import_react68.forwardRef)(
7070
6945
  (props, ref) => {
7071
6946
  const {
7072
6947
  id,
@@ -7087,14 +6962,14 @@ var TextArea = (0, import_react69.forwardRef)(
7087
6962
  width,
7088
6963
  ...rest
7089
6964
  } = props;
7090
- const generatedId = (0, import_react69.useId)();
6965
+ const generatedId = (0, import_react68.useId)();
7091
6966
  const uniqueId = id != null ? id : `${generatedId}-textArea`;
7092
- const textAreaRef = (0, import_react69.useRef)(null);
6967
+ const textAreaRef = (0, import_react68.useRef)(null);
7093
6968
  const multiRef = useCombinedRef(ref, textAreaRef);
7094
- const [text, setText] = (0, import_react69.useState)(
6969
+ const [text, setText] = (0, import_react68.useState)(
7095
6970
  getDefaultText(value, defaultValue)
7096
6971
  );
7097
- (0, import_react69.useEffect)(() => {
6972
+ (0, import_react68.useEffect)(() => {
7098
6973
  if (textAreaRef == null ? void 0 : textAreaRef.current) {
7099
6974
  textAreaRef.current.style.height = `${textAreaRef.current.scrollHeight + 2}px`;
7100
6975
  }
@@ -7118,13 +6993,13 @@ var TextArea = (0, import_react69.forwardRef)(
7118
6993
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7119
6994
  ["--dds-text-area-width"]: width != null ? width : "var(--dds-input-default-width)"
7120
6995
  };
7121
- return /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(
6996
+ return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
7122
6997
  "div",
7123
6998
  {
7124
6999
  className: cn(className, Input_default.container),
7125
7000
  style: { ...style },
7126
7001
  children: [
7127
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
7002
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
7128
7003
  Label,
7129
7004
  {
7130
7005
  showRequiredStyling,
@@ -7134,7 +7009,7 @@ var TextArea = (0, import_react69.forwardRef)(
7134
7009
  children: label
7135
7010
  }
7136
7011
  ),
7137
- /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
7012
+ /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
7138
7013
  "textarea",
7139
7014
  {
7140
7015
  ref: multiRef,
@@ -7166,7 +7041,7 @@ var TextArea = (0, import_react69.forwardRef)(
7166
7041
  ...rest
7167
7042
  }
7168
7043
  ),
7169
- /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)("div", { className: TextArea_default["message-container"], children: [
7044
+ /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)("div", { className: TextArea_default["message-container"], children: [
7170
7045
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
7171
7046
  renderCharCounter(
7172
7047
  characterCounterId,
@@ -7183,7 +7058,7 @@ var TextArea = (0, import_react69.forwardRef)(
7183
7058
  TextArea.displayName = "TextArea";
7184
7059
 
7185
7060
  // src/components/Feedback/CommentComponent.tsx
7186
- var import_jsx_runtime222 = require("react/jsx-runtime");
7061
+ var import_jsx_runtime221 = require("react/jsx-runtime");
7187
7062
  var CommentComponent = ({
7188
7063
  rating,
7189
7064
  feedbackText,
@@ -7195,21 +7070,21 @@ var CommentComponent = ({
7195
7070
  handleSubmit,
7196
7071
  handleFeedbackTextChange
7197
7072
  }) => {
7198
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(VStack, { gap: "x1", align: "flex-start", children: [
7199
- /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)("span", { className: Feedback_default["rating-submitted-title"], children: [
7200
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
7073
+ return /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(VStack, { gap: "x1", align: "flex-start", children: [
7074
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)("span", { className: Feedback_default["rating-submitted-title"], children: [
7075
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
7201
7076
  Icon,
7202
7077
  {
7203
7078
  icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
7204
7079
  color: "iconActionResting"
7205
7080
  }
7206
7081
  ),
7207
- /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(Paragraph, { children: [
7082
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(Paragraph, { children: [
7208
7083
  ratingSubmittedTitle,
7209
7084
  " "
7210
7085
  ] })
7211
7086
  ] }),
7212
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
7087
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
7213
7088
  TextArea,
7214
7089
  {
7215
7090
  value: feedbackText,
@@ -7218,7 +7093,7 @@ var CommentComponent = ({
7218
7093
  tip: textAreaTip
7219
7094
  }
7220
7095
  ),
7221
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
7096
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
7222
7097
  Button,
7223
7098
  {
7224
7099
  purpose: "secondary",
@@ -7232,7 +7107,7 @@ var CommentComponent = ({
7232
7107
  };
7233
7108
 
7234
7109
  // src/components/Tooltip/Tooltip.tsx
7235
- var import_react70 = require("react");
7110
+ var import_react69 = require("react");
7236
7111
 
7237
7112
  // src/components/Tooltip/Tooltip.module.css
7238
7113
  var Tooltip_default = {
@@ -7243,8 +7118,8 @@ var Tooltip_default = {
7243
7118
  };
7244
7119
 
7245
7120
  // src/components/Tooltip/Tooltip.tsx
7246
- var import_jsx_runtime223 = require("react/jsx-runtime");
7247
- var Tooltip = (0, import_react70.forwardRef)(
7121
+ var import_jsx_runtime222 = require("react/jsx-runtime");
7122
+ var Tooltip = (0, import_react69.forwardRef)(
7248
7123
  (props, ref) => {
7249
7124
  const {
7250
7125
  text,
@@ -7260,21 +7135,21 @@ var Tooltip = (0, import_react70.forwardRef)(
7260
7135
  htmlProps,
7261
7136
  ...rest
7262
7137
  } = props;
7263
- const generatedId = (0, import_react70.useId)();
7138
+ const generatedId = (0, import_react69.useId)();
7264
7139
  const uniqueTooltipId = tooltipId != null ? tooltipId : `${generatedId}-tooltip`;
7265
- const [open, setOpen] = (0, import_react70.useState)(false);
7266
- const [inView, setInView] = (0, import_react70.useState)(false);
7267
- const [arrowElement, setArrowElement] = (0, import_react70.useState)(null);
7140
+ const [open, setOpen] = (0, import_react69.useState)(false);
7141
+ const [inView, setInView] = (0, import_react69.useState)(false);
7142
+ const [arrowElement, setArrowElement] = (0, import_react69.useState)(null);
7268
7143
  const { refs, styles: positionStyles } = useFloatPosition(arrowElement, {
7269
7144
  placement
7270
7145
  });
7271
- const tooltipRef = (0, import_react70.useRef)(null);
7146
+ const tooltipRef = (0, import_react69.useRef)(null);
7272
7147
  const combinedRef = useCombinedRef(ref, refs.setFloating, tooltipRef);
7273
7148
  const closeWhenNotInView = (entries) => {
7274
7149
  const [entry] = entries;
7275
7150
  entry.isIntersecting ? setInView(true) : setInView(false);
7276
7151
  };
7277
- (0, import_react70.useEffect)(() => {
7152
+ (0, import_react69.useEffect)(() => {
7278
7153
  const options = {
7279
7154
  root: null,
7280
7155
  rootMargin: "0px"
@@ -7286,7 +7161,7 @@ var Tooltip = (0, import_react70.forwardRef)(
7286
7161
  if (ref2) observer.unobserve(ref2);
7287
7162
  };
7288
7163
  }, [tooltipRef]);
7289
- (0, import_react70.useEffect)(() => {
7164
+ (0, import_react69.useEffect)(() => {
7290
7165
  if (tooltipRef.current) {
7291
7166
  window.addEventListener("scroll", () => {
7292
7167
  closeTooltip();
@@ -7299,7 +7174,7 @@ var Tooltip = (0, import_react70.forwardRef)(
7299
7174
  };
7300
7175
  }, []);
7301
7176
  let timer;
7302
- (0, import_react70.useEffect)(() => {
7177
+ (0, import_react69.useEffect)(() => {
7303
7178
  return () => {
7304
7179
  clearTimeout(timer);
7305
7180
  };
@@ -7318,8 +7193,8 @@ var Tooltip = (0, import_react70.forwardRef)(
7318
7193
  }
7319
7194
  };
7320
7195
  const anchorProps = children.props;
7321
- const anchorElement = import_react70.Children.only(
7322
- (0, import_react70.isValidElement)(children) && (0, import_react70.cloneElement)(children, {
7196
+ const anchorElement = import_react69.Children.only(
7197
+ (0, import_react69.isValidElement)(children) && (0, import_react69.cloneElement)(children, {
7323
7198
  ref: refs.setReference,
7324
7199
  onFocus: combineHandlers(openTooltip, anchorProps.onFocus),
7325
7200
  onBlur: combineHandlers(closeTooltip, anchorProps.onBlur),
@@ -7341,9 +7216,9 @@ var Tooltip = (0, import_react70.forwardRef)(
7341
7216
  style: { ...positionStyles.floating }
7342
7217
  };
7343
7218
  const openCn = open && inView ? "open" : "closed";
7344
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)("div", { ...containerProps, children: [
7219
+ return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)("div", { ...containerProps, children: [
7345
7220
  anchorElement,
7346
- /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(
7221
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
7347
7222
  Paper,
7348
7223
  {
7349
7224
  ...wrapperProps,
@@ -7357,15 +7232,15 @@ var Tooltip = (0, import_react70.forwardRef)(
7357
7232
  ),
7358
7233
  children: [
7359
7234
  text,
7360
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)("svg", { width: "36", height: "9", children: [
7361
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
7235
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)("svg", { width: "36", height: "9", children: [
7236
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
7362
7237
  "path",
7363
7238
  {
7364
7239
  d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
7365
7240
  className: Tooltip_default["svg-arrow__background"]
7366
7241
  }
7367
7242
  ),
7368
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
7243
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
7369
7244
  "path",
7370
7245
  {
7371
7246
  fillRule: "evenodd",
@@ -7384,7 +7259,7 @@ var Tooltip = (0, import_react70.forwardRef)(
7384
7259
  Tooltip.displayName = "Tooltip";
7385
7260
 
7386
7261
  // src/components/Feedback/RatingComponent.tsx
7387
- var import_jsx_runtime224 = require("react/jsx-runtime");
7262
+ var import_jsx_runtime223 = require("react/jsx-runtime");
7388
7263
  var RatingComponent = ({
7389
7264
  layout,
7390
7265
  ratingLabel,
@@ -7394,7 +7269,7 @@ var RatingComponent = ({
7394
7269
  handleRatingChange
7395
7270
  }) => {
7396
7271
  const layoutCn = layout === "vertical" ? "column" : "row";
7397
- const button = (purpose, layout2) => /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7272
+ const button = (purpose, layout2) => /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
7398
7273
  "button",
7399
7274
  {
7400
7275
  "aria-label": purpose === "up" ? thumbUpTooltip : thumbDownTooltip,
@@ -7405,7 +7280,7 @@ var RatingComponent = ({
7405
7280
  Feedback_default[`button--${layout2}`],
7406
7281
  focusable
7407
7282
  ),
7408
- children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7283
+ children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
7409
7284
  Icon,
7410
7285
  {
7411
7286
  icon: purpose === "up" ? ThumbUpIcon : ThumbDownIcon,
@@ -7414,7 +7289,7 @@ var RatingComponent = ({
7414
7289
  )
7415
7290
  }
7416
7291
  );
7417
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
7292
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(
7418
7293
  "div",
7419
7294
  {
7420
7295
  className: cn(
@@ -7422,10 +7297,10 @@ var RatingComponent = ({
7422
7297
  Feedback_default[`rating-container--${layoutCn}`]
7423
7298
  ),
7424
7299
  children: [
7425
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Label, { children: ratingLabel }),
7426
- loading ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(HStack, { gap: "x1", children: [
7427
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Tooltip, { text: thumbUpTooltip, children: button("up", layout) }),
7428
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("div", { children: button("down", layout) }) })
7300
+ /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Label, { children: ratingLabel }),
7301
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(HStack, { gap: "x1", children: [
7302
+ /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Tooltip, { text: thumbUpTooltip, children: button("up", layout) }),
7303
+ /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("div", { children: button("down", layout) }) })
7429
7304
  ] })
7430
7305
  ]
7431
7306
  }
@@ -7433,7 +7308,7 @@ var RatingComponent = ({
7433
7308
  };
7434
7309
 
7435
7310
  // src/components/Feedback/Feedback.tsx
7436
- var import_jsx_runtime225 = require("react/jsx-runtime");
7311
+ var import_jsx_runtime224 = require("react/jsx-runtime");
7437
7312
  var Feedback = ({
7438
7313
  layout = "vertical",
7439
7314
  ratingLabel = "Hva syns du om tjenesten?",
@@ -7453,16 +7328,16 @@ var Feedback = ({
7453
7328
  onFeedbackTextChange,
7454
7329
  onSubmit
7455
7330
  }) => {
7456
- const [rating, setRating] = (0, import_react71.useState)(null);
7457
- const [feedbackText, setFeedbackText] = (0, import_react71.useState)();
7458
- const [isFeedbackSubmitted, setIsFeedbackSubmitted] = (0, import_react71.useState)(false);
7459
- (0, import_react71.useEffect)(() => {
7331
+ const [rating, setRating] = (0, import_react70.useState)(null);
7332
+ const [feedbackText, setFeedbackText] = (0, import_react70.useState)();
7333
+ const [isFeedbackSubmitted, setIsFeedbackSubmitted] = (0, import_react70.useState)(false);
7334
+ (0, import_react70.useEffect)(() => {
7460
7335
  ratingProp !== void 0 && setRating(ratingProp);
7461
7336
  }, [ratingProp]);
7462
- (0, import_react71.useEffect)(() => {
7337
+ (0, import_react70.useEffect)(() => {
7463
7338
  feedbackTextProp !== void 0 && setFeedbackText(feedbackTextProp);
7464
7339
  }, [feedbackTextProp]);
7465
- (0, import_react71.useEffect)(() => {
7340
+ (0, import_react70.useEffect)(() => {
7466
7341
  isSubmittedProp !== void 0 && setIsFeedbackSubmitted(isSubmittedProp);
7467
7342
  }, [isSubmittedProp]);
7468
7343
  const handleRatingChange = (newRating) => {
@@ -7479,7 +7354,7 @@ var Feedback = ({
7479
7354
  isSubmittedProp === void 0 && setIsFeedbackSubmitted(true);
7480
7355
  };
7481
7356
  if (rating === null && !isFeedbackSubmitted) {
7482
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
7357
+ return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7483
7358
  RatingComponent,
7484
7359
  {
7485
7360
  layout,
@@ -7492,7 +7367,7 @@ var Feedback = ({
7492
7367
  );
7493
7368
  }
7494
7369
  if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
7495
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
7370
+ return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7496
7371
  CommentComponent,
7497
7372
  {
7498
7373
  rating,
@@ -7507,11 +7382,11 @@ var Feedback = ({
7507
7382
  }
7508
7383
  );
7509
7384
  }
7510
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Paragraph, { children: submittedTitle });
7385
+ return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Paragraph, { children: submittedTitle });
7511
7386
  };
7512
7387
 
7513
7388
  // src/components/Fieldset/Fieldset.tsx
7514
- var import_react72 = require("react");
7389
+ var import_react71 = require("react");
7515
7390
 
7516
7391
  // src/components/Fieldset/Fieldset.module.css
7517
7392
  var Fieldset_default = {
@@ -7519,11 +7394,11 @@ var Fieldset_default = {
7519
7394
  };
7520
7395
 
7521
7396
  // src/components/Fieldset/Fieldset.tsx
7522
- var import_jsx_runtime226 = require("react/jsx-runtime");
7523
- var Fieldset = (0, import_react72.forwardRef)(
7397
+ var import_jsx_runtime225 = require("react/jsx-runtime");
7398
+ var Fieldset = (0, import_react71.forwardRef)(
7524
7399
  (props, ref) => {
7525
7400
  const { id, className, htmlProps, ...rest } = props;
7526
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
7401
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
7527
7402
  "fieldset",
7528
7403
  {
7529
7404
  ref,
@@ -7539,17 +7414,17 @@ var Fieldset = (0, import_react72.forwardRef)(
7539
7414
  );
7540
7415
 
7541
7416
  // src/components/FileUploader/FileUploader.tsx
7542
- var import_react74 = require("react");
7417
+ var import_react73 = require("react");
7543
7418
 
7544
7419
  // src/components/FileUploader/ErrorList.tsx
7545
- var import_jsx_runtime227 = require("react/jsx-runtime");
7420
+ var import_jsx_runtime226 = require("react/jsx-runtime");
7546
7421
  var ErrorList = (props) => {
7547
7422
  const { errors } = props;
7548
7423
  if (errors.length < 1) {
7549
7424
  return null;
7550
7425
  }
7551
7426
  if (errors.length === 1) {
7552
- return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7427
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
7553
7428
  InputMessage,
7554
7429
  {
7555
7430
  id: errors[0].id,
@@ -7558,8 +7433,8 @@ var ErrorList = (props) => {
7558
7433
  }
7559
7434
  );
7560
7435
  }
7561
- return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("ul", { className: utilStyles_default["remove-list-styling"], children: errors.map(({ id, message }) => {
7562
- return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7436
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("ul", { className: utilStyles_default["remove-list-styling"], children: errors.map(({ id, message }) => {
7437
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
7563
7438
  InputMessage,
7564
7439
  {
7565
7440
  id,
@@ -7586,30 +7461,30 @@ var FileUploader_default = {
7586
7461
  };
7587
7462
 
7588
7463
  // src/components/FileUploader/File.tsx
7589
- var import_jsx_runtime228 = require("react/jsx-runtime");
7464
+ var import_jsx_runtime227 = require("react/jsx-runtime");
7590
7465
  var File = (props) => {
7591
7466
  const { parentId, index, file: stateFile, removeFile, isValid } = props;
7592
7467
  const errorsList = stateFile.errors.map((e, errorIndex) => ({
7593
7468
  id: derivativeIdGenerator(parentId, `file-${index}-error-${errorIndex}`),
7594
7469
  message: e
7595
7470
  }));
7596
- return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)("li", { children: [
7597
- /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)("div", { className: cn(FileUploader_default.file, !isValid && FileUploader_default["file--invalid"]), children: [
7598
- /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
7471
+ return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)("li", { children: [
7472
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)("div", { className: cn(FileUploader_default.file, !isValid && FileUploader_default["file--invalid"]), children: [
7473
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7599
7474
  "span",
7600
7475
  {
7601
7476
  className: cn(FileUploader_default.file__name, typographyStyles_default["body-sans-02"]),
7602
7477
  children: stateFile.file.name
7603
7478
  }
7604
7479
  ),
7605
- /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
7480
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7606
7481
  Icon,
7607
7482
  {
7608
7483
  icon: isValid ? CheckCircledIcon : ErrorIcon,
7609
7484
  className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
7610
7485
  }
7611
7486
  ),
7612
- /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
7487
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7613
7488
  Button,
7614
7489
  {
7615
7490
  size: "small",
@@ -7628,13 +7503,13 @@ var File = (props) => {
7628
7503
  }
7629
7504
  )
7630
7505
  ] }),
7631
- /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(ErrorList, { errors: errorsList })
7506
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(ErrorList, { errors: errorsList })
7632
7507
  ] });
7633
7508
  };
7634
7509
 
7635
7510
  // src/components/FileUploader/useFileUploader.ts
7636
7511
  var import_file_selector = require("file-selector");
7637
- var import_react73 = require("react");
7512
+ var import_react72 = require("react");
7638
7513
 
7639
7514
  // src/components/FileUploader/fileUploaderReducer.ts
7640
7515
  var fileUploaderReducer = (state, action) => {
@@ -7733,18 +7608,18 @@ var useFileUploader = (props) => {
7733
7608
  disabled,
7734
7609
  errorMessage
7735
7610
  } = props;
7736
- const rootRef = (0, import_react73.useRef)(null);
7737
- const inputRef = (0, import_react73.useRef)(null);
7738
- const buttonRef = (0, import_react73.useRef)(null);
7611
+ const rootRef = (0, import_react72.useRef)(null);
7612
+ const inputRef = (0, import_react72.useRef)(null);
7613
+ const buttonRef = (0, import_react72.useRef)(null);
7739
7614
  const isControlled = !!value;
7740
- const initialFileUploaderFiles = (0, import_react73.useMemo)(
7615
+ const initialFileUploaderFiles = (0, import_react72.useMemo)(
7741
7616
  () => (initialFiles != null ? initialFiles : []).map((f2) => ({
7742
7617
  file: f2,
7743
7618
  errors: []
7744
7619
  })),
7745
7620
  [initialFiles]
7746
7621
  );
7747
- const [state, dispatch] = (0, import_react73.useReducer)(fileUploaderReducer, {
7622
+ const [state, dispatch] = (0, import_react72.useReducer)(fileUploaderReducer, {
7748
7623
  files: initialFileUploaderFiles,
7749
7624
  isFocused: false,
7750
7625
  isFileDialogActive: false,
@@ -7756,7 +7631,7 @@ var useFileUploader = (props) => {
7756
7631
  )
7757
7632
  });
7758
7633
  const { files: stateFiles } = state;
7759
- (0, import_react73.useEffect)(() => {
7634
+ (0, import_react72.useEffect)(() => {
7760
7635
  if (isControlled) {
7761
7636
  const files = value.map((file) => {
7762
7637
  const accepted = isFileAccepted(file, accept);
@@ -7771,18 +7646,18 @@ var useFileUploader = (props) => {
7771
7646
  });
7772
7647
  }
7773
7648
  }, [value, isControlled, accept, dispatch]);
7774
- (0, import_react73.useEffect)(() => {
7649
+ (0, import_react72.useEffect)(() => {
7775
7650
  dispatch({
7776
7651
  type: "setRootErrors",
7777
7652
  payload: calcRootErrors(stateFiles, maxFiles, errorMessage)
7778
7653
  });
7779
7654
  }, [dispatch, stateFiles, maxFiles, errorMessage]);
7780
- const onRootFocus = (0, import_react73.useCallback)(
7655
+ const onRootFocus = (0, import_react72.useCallback)(
7781
7656
  () => dispatch({ type: "focus" }),
7782
7657
  [dispatch]
7783
7658
  );
7784
- const onRootBlur = (0, import_react73.useCallback)(() => dispatch({ type: "blur" }), [dispatch]);
7785
- const onRootDragEnter = (0, import_react73.useCallback)(
7659
+ const onRootBlur = (0, import_react72.useCallback)(() => dispatch({ type: "blur" }), [dispatch]);
7660
+ const onRootDragEnter = (0, import_react72.useCallback)(
7786
7661
  async (evt) => {
7787
7662
  preventDefaults(evt);
7788
7663
  if (isEventWithFiles(evt)) {
@@ -7794,7 +7669,7 @@ var useFileUploader = (props) => {
7794
7669
  },
7795
7670
  [dispatch, accept, maxFiles]
7796
7671
  );
7797
- const onRootDragOver = (0, import_react73.useCallback)((evt) => {
7672
+ const onRootDragOver = (0, import_react72.useCallback)((evt) => {
7798
7673
  preventDefaults(evt);
7799
7674
  const hasFiles = isEventWithFiles(evt);
7800
7675
  if (hasFiles && evt.dataTransfer) {
@@ -7804,7 +7679,7 @@ var useFileUploader = (props) => {
7804
7679
  }
7805
7680
  }
7806
7681
  }, []);
7807
- const onRootDragLeave = (0, import_react73.useCallback)(
7682
+ const onRootDragLeave = (0, import_react72.useCallback)(
7808
7683
  (evt) => {
7809
7684
  preventDefaults(evt);
7810
7685
  if (evt.currentTarget.contains(evt.relatedTarget)) return;
@@ -7812,7 +7687,7 @@ var useFileUploader = (props) => {
7812
7687
  },
7813
7688
  [dispatch]
7814
7689
  );
7815
- const setFiles = (0, import_react73.useCallback)(
7690
+ const setFiles = (0, import_react72.useCallback)(
7816
7691
  async (evt) => {
7817
7692
  evt.preventDefault();
7818
7693
  if (isEventWithFiles(evt)) {
@@ -7846,13 +7721,13 @@ var useFileUploader = (props) => {
7846
7721
  dispatch
7847
7722
  ]
7848
7723
  );
7849
- const openFileDialog = (0, import_react73.useCallback)(() => {
7724
+ const openFileDialog = (0, import_react72.useCallback)(() => {
7850
7725
  if (inputRef.current) {
7851
7726
  inputRef.current.value = "";
7852
7727
  inputRef.current.click();
7853
7728
  }
7854
7729
  }, [inputRef]);
7855
- const removeFile = (0, import_react73.useCallback)(
7730
+ const removeFile = (0, import_react72.useCallback)(
7856
7731
  (file) => {
7857
7732
  const newFiles = [...stateFiles];
7858
7733
  newFiles.splice(stateFiles.indexOf(file), 1);
@@ -7866,7 +7741,7 @@ var useFileUploader = (props) => {
7866
7741
  },
7867
7742
  [stateFiles, isControlled, maxFiles, errorMessage, onChange, dispatch]
7868
7743
  );
7869
- const getRootProps = (0, import_react73.useCallback)(
7744
+ const getRootProps = (0, import_react72.useCallback)(
7870
7745
  () => ({
7871
7746
  onBlur: onRootBlur,
7872
7747
  onFocus: onRootFocus,
@@ -7888,14 +7763,14 @@ var useFileUploader = (props) => {
7888
7763
  disabled
7889
7764
  ]
7890
7765
  );
7891
- const getButtonProps = (0, import_react73.useCallback)(
7766
+ const getButtonProps = (0, import_react72.useCallback)(
7892
7767
  () => ({
7893
7768
  onClick: openFileDialog,
7894
7769
  ref: buttonRef
7895
7770
  }),
7896
7771
  [openFileDialog, buttonRef]
7897
7772
  );
7898
- const getInputProps = (0, import_react73.useCallback)(
7773
+ const getInputProps = (0, import_react72.useCallback)(
7899
7774
  () => ({
7900
7775
  type: "file",
7901
7776
  style: { display: "none" },
@@ -7918,19 +7793,19 @@ var useFileUploader = (props) => {
7918
7793
  };
7919
7794
 
7920
7795
  // src/components/VisuallyHidden/VisuallyHidden.tsx
7921
- var import_jsx_runtime229 = require("react/jsx-runtime");
7796
+ var import_jsx_runtime228 = require("react/jsx-runtime");
7922
7797
  var VisuallyHidden = (props) => {
7923
7798
  const { id, className, htmlProps, as, ...rest } = props;
7924
7799
  const cl = cn(className, utilStyles_default["visually-hidden"]);
7925
7800
  if (as === "div") {
7926
- return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7801
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7927
7802
  }
7928
- return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7803
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7929
7804
  };
7930
7805
  VisuallyHidden.displayName = "VisuallyHidden";
7931
7806
 
7932
7807
  // src/components/FileUploader/FileUploader.tsx
7933
- var import_jsx_runtime230 = require("react/jsx-runtime");
7808
+ var import_jsx_runtime229 = require("react/jsx-runtime");
7934
7809
  var FileUploader = (props) => {
7935
7810
  const {
7936
7811
  id,
@@ -7953,7 +7828,7 @@ var FileUploader = (props) => {
7953
7828
  className,
7954
7829
  ...rest
7955
7830
  } = props;
7956
- const generatedId = (0, import_react74.useId)();
7831
+ const generatedId = (0, import_react73.useId)();
7957
7832
  const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
7958
7833
  const {
7959
7834
  state: { files: stateFiles, isDragActive, rootErrors },
@@ -7979,7 +7854,7 @@ var FileUploader = (props) => {
7979
7854
  const tipId = derivativeIdGenerator(uniqueId, "tip");
7980
7855
  const buttonId = derivativeIdGenerator(uniqueId, "button");
7981
7856
  const inputId = derivativeIdGenerator(uniqueId, "input");
7982
- const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
7857
+ const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
7983
7858
  File,
7984
7859
  {
7985
7860
  parentId: uniqueId,
@@ -7994,7 +7869,7 @@ var FileUploader = (props) => {
7994
7869
  id: derivativeIdGenerator(uniqueId, `error-${index}`),
7995
7870
  message: e
7996
7871
  }));
7997
- const button = /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
7872
+ const button = /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
7998
7873
  Button,
7999
7874
  {
8000
7875
  ...getButtonProps(),
@@ -8014,7 +7889,7 @@ var FileUploader = (props) => {
8014
7889
  children: btnLabel
8015
7890
  }
8016
7891
  );
8017
- return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
7892
+ return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
8018
7893
  "div",
8019
7894
  {
8020
7895
  id: uniqueId,
@@ -8026,9 +7901,9 @@ var FileUploader = (props) => {
8026
7901
  style: { ...style, width },
8027
7902
  ...rest,
8028
7903
  children: [
8029
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(Label, { id: labelId, showRequiredStyling: showRequiredMarker, children: label }),
8030
- hasTip && /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
8031
- withDragAndDrop ? /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
7904
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Label, { id: labelId, showRequiredStyling: showRequiredMarker, children: label }),
7905
+ hasTip && /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
7906
+ withDragAndDrop ? /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
8032
7907
  "div",
8033
7908
  {
8034
7909
  ...getRootProps(),
@@ -8038,7 +7913,7 @@ var FileUploader = (props) => {
8038
7913
  isDragActive && FileUploader_default["input-container--drag-active"]
8039
7914
  ),
8040
7915
  children: [
8041
- /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
7916
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
8042
7917
  "input",
8043
7918
  {
8044
7919
  ...getInputProps(),
@@ -8047,16 +7922,16 @@ var FileUploader = (props) => {
8047
7922
  }
8048
7923
  ),
8049
7924
  dropAreaLabel,
8050
- /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
7925
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
8051
7926
  button
8052
7927
  ]
8053
7928
  }
8054
- ) : /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
8055
- /* @__PURE__ */ (0, import_jsx_runtime230.jsx)("input", { ...getInputProps(), id: inputId }),
7929
+ ) : /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
7930
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsx)("input", { ...getInputProps(), id: inputId }),
8056
7931
  button
8057
7932
  ] }),
8058
- /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(ErrorList, { errors: rootErrorsList }),
8059
- !hideFileList && /* @__PURE__ */ (0, import_jsx_runtime230.jsx)("ul", { className: utilStyles_default["remove-list-styling"], children: fileListElements })
7933
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(ErrorList, { errors: rootErrorsList }),
7934
+ !hideFileList && /* @__PURE__ */ (0, import_jsx_runtime229.jsx)("ul", { className: utilStyles_default["remove-list-styling"], children: fileListElements })
8060
7935
  ]
8061
7936
  }
8062
7937
  );
@@ -8064,7 +7939,7 @@ var FileUploader = (props) => {
8064
7939
  FileUploader.displayName = "FileUploader";
8065
7940
 
8066
7941
  // src/components/Footer/Footer.tsx
8067
- var import_react75 = require("react");
7942
+ var import_react74 = require("react");
8068
7943
 
8069
7944
  // src/components/Footer/Footer.module.css
8070
7945
  var Footer_default = {
@@ -8080,10 +7955,10 @@ var Footer_default = {
8080
7955
  };
8081
7956
 
8082
7957
  // src/components/Footer/Footer.tsx
8083
- var import_jsx_runtime231 = require("react/jsx-runtime");
8084
- var Footer = (0, import_react75.forwardRef)((props, ref) => {
7958
+ var import_jsx_runtime230 = require("react/jsx-runtime");
7959
+ var Footer = (0, import_react74.forwardRef)((props, ref) => {
8085
7960
  const { className, ...rest } = props;
8086
- return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
7961
+ return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
8087
7962
  Contrast,
8088
7963
  {
8089
7964
  as: "footer",
@@ -8095,24 +7970,24 @@ var Footer = (0, import_react75.forwardRef)((props, ref) => {
8095
7970
  });
8096
7971
 
8097
7972
  // src/components/Footer/FooterListHeader.tsx
8098
- var import_react76 = require("react");
8099
- var import_jsx_runtime232 = require("react/jsx-runtime");
8100
- var FooterListHeader = (0, import_react76.forwardRef)((props, ref) => {
8101
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Heading, { level: 2, typographyType: "headingSans02", ref, ...props });
7973
+ var import_react75 = require("react");
7974
+ var import_jsx_runtime231 = require("react/jsx-runtime");
7975
+ var FooterListHeader = (0, import_react75.forwardRef)((props, ref) => {
7976
+ return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Heading, { level: 2, typographyType: "headingSans02", ref, ...props });
8102
7977
  });
8103
7978
 
8104
7979
  // src/components/Footer/FooterLogo.tsx
8105
- var import_react77 = require("react");
7980
+ var import_react76 = require("react");
8106
7981
 
8107
7982
  // src/components/Footer/norges_domstoler_logo.svg
8108
7983
  var norges_domstoler_logo_default = 'data:image/svg+xml,<svg width="151" height="80" viewBox="0 0 151 80" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Logo" clip-path="url(%23clip0_18254_1882)">%0A<path id="Vector" d="M0 19.5721V0.38501H3.50998L9.51314 13.2128C10.169 14.6541 10.6734 16.1596 11.0182 17.7051H11.1848C10.9502 16.2655 10.8311 14.8093 10.8287 13.3507V0.38501H13.0174V19.5721H9.51314L3.50998 6.77306C2.84978 5.3389 2.34334 3.83883 1.99914 2.29798H1.83829C2.07013 3.73991 2.18921 5.19772 2.19446 6.65817V19.5721H0Z" fill="white"/>%0A<path id="Vector_2" d="M19.2848 17.4063C17.9942 15.7059 17.3489 13.2299 17.3489 9.97846C17.3489 6.72699 17.9942 4.25104 19.2848 2.55062C20.5716 0.850208 22.4118 0 24.8054 0C27.199 0 29.0488 0.844463 30.3548 2.53339C31.6416 4.25679 32.2907 6.70401 32.2907 10.0014C32.2907 13.2989 31.6416 15.7461 30.3548 17.4695C29.068 19.1929 27.2182 20.0029 24.8054 20.0029C22.3927 20.0029 20.5716 19.101 19.2848 17.4063ZM21.3357 4.05572C20.6003 5.31955 20.2308 7.29379 20.2269 9.97846C20.2231 12.6631 20.5927 14.6355 21.3357 15.8954C21.6776 16.4998 22.1813 16.9969 22.7902 17.3307C23.3991 17.6646 24.089 17.8221 24.7825 17.7854C25.4832 17.8288 26.182 17.6747 26.7994 17.3406C27.4169 17.0064 27.9282 16.5058 28.2752 15.8954C29.0143 14.6355 29.3858 12.6631 29.3897 9.97846C29.3935 7.29379 29.0297 5.31955 28.2982 4.05572C27.9502 3.44633 27.4387 2.9464 26.8215 2.61242C26.2042 2.27844 25.5059 2.12372 24.8054 2.16573C24.1083 2.12541 23.4138 2.28107 22.8006 2.6151C22.1874 2.94912 21.6799 3.44817 21.3357 4.05572Z" fill="white"/>%0A<path id="Vector_3" d="M48.594 15.5968C48.8111 16.9446 49.1318 18.2737 49.5534 19.5721H46.5317C46.4288 19.2619 46.3463 18.9453 46.2847 18.6243C46.21 18.2681 46.1238 17.7856 46.0376 17.1709C45.9515 16.5562 45.8825 16.1254 45.8423 15.8668C45.5513 13.9903 45.1415 12.7207 44.613 12.0581C44.0845 11.3956 43.2151 11.0681 42.0049 11.0758H39.1326V19.5721H36.4556V0.38501H43.0045C44.7968 0.38501 46.1813 0.815859 47.1693 1.6833C47.6677 2.13766 48.0592 2.69689 48.3154 3.32072C48.5717 3.94454 48.6865 4.61743 48.6515 5.29094C48.6898 5.93617 48.5867 6.58197 48.3496 7.18326C48.1125 7.78455 47.7469 8.32682 47.2785 8.7722C46.2192 9.64565 44.8691 10.0868 43.4985 10.0073H42.7287V10.1681L43.5272 10.1969C44.1017 10.2313 44.4866 10.2658 44.7566 10.2945C45.102 10.3329 45.4427 10.4061 45.7734 10.5128C46.1234 10.601 46.4442 10.7792 46.704 11.0298C46.968 11.3147 47.2064 11.6223 47.4164 11.949C47.7076 12.4082 47.9301 12.9075 48.077 13.4311C48.2551 14.0343 48.4332 14.7581 48.594 15.5968ZM39.167 9.09964H42.43C42.8862 9.13106 43.3441 9.06822 43.775 8.91503C44.2059 8.76184 44.6006 8.52159 44.9347 8.20922C45.241 7.86617 45.4755 7.4653 45.6245 7.03021C45.7734 6.59512 45.8338 6.13462 45.8021 5.67583C45.8021 3.48138 44.6781 2.38415 42.43 2.38415H39.167V9.09964Z" fill="white"/>%0A<path id="Vector_4" d="M63.8634 6.27892C63.8374 5.16647 63.448 4.0931 62.7547 3.22277C62.4351 2.8708 62.0419 2.59361 61.6031 2.41091C61.1642 2.22821 60.6904 2.14451 60.2155 2.16575C59.518 2.12433 58.8231 2.28288 58.2125 2.62276C57.6019 2.96264 57.1011 3.46974 56.7688 4.08447C56.0334 5.36744 55.6658 7.33211 55.6658 9.97848C55.6658 12.6248 56.0315 14.5933 56.763 15.884C57.0847 16.4915 57.5726 16.995 58.1697 17.3358C58.7668 17.6765 59.4484 17.8404 60.1351 17.8084C62.8581 17.8084 64.2196 15.974 64.2196 12.3051V11.6214H59.9168V9.64529H66.7415V19.572H64.5757V17.6246C64.5824 16.3521 64.6552 15.0808 64.794 13.8159H64.6274C64.4283 15.9338 63.9132 17.4867 63.0821 18.4748C62.2491 19.4629 61.0198 19.9512 59.3941 19.9512C58.4312 19.9882 57.4753 19.7741 56.6202 19.3299C55.7651 18.8857 55.0403 18.2268 54.5169 17.4178C53.3679 15.7289 52.7935 13.2759 52.7935 10.0589C52.7935 6.77296 53.4292 4.28361 54.7007 2.59086C55.9722 0.898101 57.8009 0.0344883 60.1868 2.04411e-05C61.7689 -0.0690547 63.3242 0.425623 64.5757 1.39597C65.1677 1.92295 65.6473 2.56392 65.9859 3.28052C66.3244 3.99712 66.515 4.77464 66.5461 5.56659L63.8634 6.27892Z" fill="white"/>%0A<path id="Vector_5" d="M74.824 17.5673H82.8034V19.5721H72.1125V0.38501H82.6368V2.38415H74.824V8.66305H82.0048V10.6622H74.824V17.5673Z" fill="white"/>%0A<path id="Vector_6" d="M93.0633 19.9512C90.9953 19.9512 89.3695 19.4342 88.1804 18.3887C87.5786 17.8382 87.1032 17.164 86.7869 16.4123C86.4705 15.6606 86.3207 14.8493 86.3478 14.0342L89.0421 13.2645C89.1876 16.3283 90.5491 17.8602 93.1265 17.8602C94.0518 17.9146 94.9669 17.6422 95.7116 17.0904C96.0388 16.8086 96.2951 16.4538 96.4598 16.0546C96.6245 15.6554 96.6929 15.2231 96.6595 14.7925C96.6595 13.3334 95.838 12.284 94.195 11.6445L91.0699 10.3806C88.4159 9.32362 87.0908 7.55236 87.0947 5.06684C87.054 4.35555 87.1815 3.64468 87.467 2.99192C87.7524 2.33915 88.1878 1.76287 88.7376 1.30984C90.0484 0.449859 91.5818 -0.00830078 93.1495 -0.00830078C94.7172 -0.00830078 96.2507 0.449859 97.5614 1.30984C98.139 1.77201 98.6034 2.36008 98.919 3.02914C99.2346 3.6982 99.3931 4.43055 99.3825 5.17024L96.7801 5.9113C96.6155 3.36451 95.4014 2.09302 93.138 2.09685C92.2848 2.02806 91.4347 2.26195 90.7368 2.75749C90.4435 3.00371 90.2126 3.31574 90.0629 3.66814C89.9131 4.02055 89.8488 4.40335 89.8751 4.78535C89.835 5.48253 90.0539 6.16994 90.4897 6.71555C91.0398 7.27423 91.7096 7.70051 92.4487 7.96214L95.3612 9.15703C98.042 10.2294 99.3825 12.0006 99.3825 14.4708C99.4281 15.2308 99.2996 15.9911 99.0069 16.694C98.7143 17.3968 98.2651 18.0236 97.6935 18.5266C96.602 19.4802 95.051 19.9512 93.0633 19.9512Z" fill="white"/>%0A<path id="Vector_7" d="M5.2104 35.4617C7.95251 35.4617 9.98037 36.308 11.294 38.0008C12.6076 39.6936 13.2644 42.045 13.2644 45.0552C13.2644 48.0884 12.6076 50.4456 11.294 52.1269C9.98037 53.8082 7.95251 54.6488 5.2104 54.6488H0V35.4617H5.2104ZM4.96338 52.6497C6.97401 52.6497 8.3757 52.0063 9.17995 50.7195C9.9842 49.4327 10.3863 47.5427 10.3863 45.0552C10.3863 42.5678 9.9842 40.6836 9.17995 39.3968C8.3757 38.11 6.97401 37.4666 4.96338 37.4666H2.71148V52.6497H4.96338Z" fill="white"/>%0A<path id="Vector_8" d="M18.5954 52.4831C17.3047 50.7903 16.6594 48.3144 16.6594 45.0552C16.6594 41.7961 17.3047 39.3202 18.5954 37.6274C19.8898 35.9308 21.732 35.0825 24.1217 35.0825C26.5115 35.0825 28.3613 35.927 29.6711 37.6159C30.954 39.3048 31.5955 41.7846 31.5955 45.0552C31.5955 48.3259 30.9521 50.8152 29.6653 52.5233C28.3823 54.1969 26.5364 55.0337 24.1275 55.0337C21.7185 55.0337 19.8745 54.1835 18.5954 52.4831ZM20.6807 39.1382C19.9147 40.3944 19.5317 42.3667 19.5317 45.0552C19.5317 47.7437 19.9147 49.718 20.6807 50.978C21.0254 51.5787 21.5302 52.0719 22.1388 52.4025C22.7474 52.7332 23.4359 52.8884 24.1275 52.8507C24.8279 52.8921 25.5259 52.7371 26.143 52.4031C26.7601 52.0692 27.2717 51.5697 27.6202 50.9607C28.3555 49.7084 28.7232 47.7399 28.7232 45.0552C28.7232 42.3706 28.3536 40.3982 27.6145 39.1382C27.2674 38.5293 26.7569 38.0296 26.1407 37.6956C25.5245 37.3616 24.8271 37.2067 24.1275 37.2483C23.434 37.2116 22.7441 37.3691 22.1352 37.703C21.5264 38.0368 21.0226 38.5339 20.6807 39.1382Z" fill="white"/>%0A<path id="Vector_9" d="M35.7661 54.6488V35.4617H39.7414L42.8148 46.1237C43.5024 48.2936 43.9079 50.5429 44.0212 52.8163H44.2337C44.2993 50.5424 44.6861 48.2893 45.3827 46.1237L48.5939 35.4617H52.2762V54.6488H49.6911V43.7684C49.6911 41.5223 49.7773 39.414 49.9382 37.4493H49.7486C49.4555 39.2625 49.0527 41.0562 48.5422 42.8206L45.0954 54.6603H42.6827L39.121 42.5965C38.6304 40.9144 38.2467 39.2029 37.9721 37.4723H37.7767C37.9261 39.2417 38.0008 41.2638 38.0008 43.5272V54.6488H35.7661Z" fill="white"/>%0A<path id="Vector_10" d="M63.2314 55.0338C61.171 55.0338 59.5452 54.513 58.3542 53.4713C57.7505 52.9221 57.2734 52.2482 56.9559 51.4963C56.6385 50.7444 56.4884 49.9325 56.5159 49.1168L59.1699 48.3471C59.3155 51.4109 60.6769 52.9428 63.2544 52.9428C64.1809 52.9928 65.0963 52.7208 65.8452 52.173C66.1703 51.8898 66.4248 51.5346 66.5883 51.1356C66.7519 50.7367 66.82 50.3051 66.7873 49.8751C66.7873 48.416 65.9659 47.3647 64.3229 46.7213L61.1978 45.4632C58.5476 44.3986 57.2225 42.6254 57.2225 40.1437C57.1827 39.4334 57.3107 38.7236 57.5962 38.0719C57.8816 37.4202 58.3164 36.8449 58.8655 36.3924C60.1497 35.4549 61.7185 34.9902 63.3061 35.0769C64.8757 35.0068 66.4227 35.4705 67.695 36.3924C68.2714 36.8566 68.7344 37.4461 69.0489 38.116C69.3635 38.7859 69.5213 39.5186 69.5103 40.2586L66.9022 40.9997C66.7414 38.4605 65.5273 37.1909 63.2601 37.1909C62.4071 37.1241 61.5576 37.3578 60.8589 37.8516C60.5656 38.0978 60.3347 38.4098 60.185 38.7622C60.0352 39.1146 59.9709 39.4974 59.9972 39.8794C59.9571 40.5766 60.176 41.264 60.6118 41.8096C61.1632 42.3762 61.8346 42.812 62.5765 43.085L65.535 44.2339C68.2158 45.3139 69.5563 47.0871 69.5563 49.5534C69.6008 50.3128 69.4725 51.0723 69.181 51.7748C68.8894 52.4773 68.4422 53.1045 67.8731 53.6092C66.7529 54.5743 65.2076 55.0338 63.2314 55.0338Z" fill="white"/>%0A<path id="Vector_11" d="M85.8997 35.4617V37.6274H80.6376V54.6488H77.9491V37.6274H72.687V35.4617H85.8997Z" fill="white"/>%0A<path id="Vector_12" d="M90.4092 52.4831C89.1148 50.7903 88.4675 48.3144 88.4675 45.0552C88.4675 41.7961 89.1128 39.3202 90.4035 37.6274C91.6903 35.9308 93.5305 35.0825 95.9241 35.0825C98.3177 35.0825 100.167 35.927 101.473 37.6159C102.76 39.3048 103.404 41.7942 103.404 45.084C103.404 48.3737 102.76 50.8631 101.473 52.552C100.19 54.2065 98.3445 55.0337 95.9356 55.0337C93.5267 55.0337 91.6845 54.1835 90.4092 52.4831ZM92.4888 39.1382C91.7228 40.3944 91.3399 42.3667 91.3399 45.0552C91.3399 47.7437 91.7228 49.718 92.4888 50.978C92.866 51.5576 93.382 52.034 93.9899 52.3637C94.5978 52.6934 95.2785 52.8661 95.97 52.8661C96.6616 52.8661 97.3423 52.6934 97.9502 52.3637C98.5581 52.034 99.0741 51.5576 99.4513 50.978C100.171 49.7141 100.531 47.7399 100.531 45.0552C100.531 42.3706 100.162 40.3982 99.4226 39.1382C99.0454 38.5586 98.5294 38.0823 97.9215 37.7525C97.3136 37.4228 96.6329 37.2501 95.9413 37.2501C95.2497 37.2501 94.5691 37.4228 93.9612 37.7525C93.3532 38.0823 92.8373 38.5586 92.4601 39.1382H92.4888Z" fill="white"/>%0A<path id="Vector_13" d="M107.58 35.4617H110.297V52.4831H117.915V54.6488H107.574L107.58 35.4617Z" fill="white"/>%0A<path id="Vector_14" d="M124.544 52.6497H132.518V54.6488H121.833V35.4617H132.357V37.4666H124.544V43.7397H131.725V45.7446H124.544V52.6497Z" fill="white"/>%0A<path id="Vector_15" d="M149.321 50.6735C149.534 52.022 149.855 53.3513 150.28 54.6488H147.264C147.163 54.3399 147.081 54.0253 147.017 53.7067C146.942 53.3505 146.862 52.8622 146.77 52.2533C146.678 51.6444 146.615 51.2078 146.581 50.9493C146.289 49.0688 145.878 47.7993 145.345 47.1405C144.817 46.4857 143.949 46.1525 142.743 46.1525H139.871V54.6488H137.154V35.4617H143.731C145.52 35.4617 146.908 35.8963 147.896 36.7657C148.392 37.2209 148.781 37.7807 149.034 38.4047C149.288 39.0286 149.399 39.701 149.361 40.3733C149.394 41.0129 149.289 41.6521 149.052 42.247C148.815 42.8419 148.452 43.3786 147.988 43.8201C146.93 44.6951 145.579 45.1365 144.208 45.0552H143.438V45.2218H144.231C144.805 45.2563 145.19 45.285 145.466 45.3137C145.811 45.3579 146.151 45.4309 146.483 45.532C146.833 45.6236 147.153 45.8036 147.413 46.0548C147.676 46.3411 147.914 46.6485 148.126 46.9739C148.422 47.451 148.645 47.97 148.786 48.5135C148.982 49.1167 149.154 49.8348 149.321 50.6735ZM139.894 44.1821H143.151C143.608 44.2136 144.067 44.1508 144.499 43.9976C144.931 43.8445 145.326 43.6042 145.661 43.2916C146.273 42.5923 146.583 41.6795 146.523 40.7525C146.523 38.5638 145.403 37.4666 143.151 37.4666H139.894V44.1821Z" fill="white"/>%0A<path id="Vector_16" d="M150.389 75.0137H0V80H150.389V75.0137Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_18254_1882">%0A<rect width="150.389" height="80" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';
8109
7984
 
8110
7985
  // src/components/Footer/FooterLogo.tsx
8111
- var import_jsx_runtime233 = require("react/jsx-runtime");
8112
- var FooterLogo = (0, import_react77.forwardRef)(
7986
+ var import_jsx_runtime232 = require("react/jsx-runtime");
7987
+ var FooterLogo = (0, import_react76.forwardRef)(
8113
7988
  (props, ref) => {
8114
7989
  const { className, hideBreakpoint, ...rest } = props;
8115
- return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
7990
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
8116
7991
  "img",
8117
7992
  {
8118
7993
  ref,
@@ -8131,12 +8006,12 @@ var FooterLogo = (0, import_react77.forwardRef)(
8131
8006
  );
8132
8007
 
8133
8008
  // src/components/Footer/FooterList.tsx
8134
- var import_react78 = require("react");
8135
- var import_jsx_runtime234 = require("react/jsx-runtime");
8136
- var FooterList = (0, import_react78.forwardRef)(
8009
+ var import_react77 = require("react");
8010
+ var import_jsx_runtime233 = require("react/jsx-runtime");
8011
+ var FooterList = (0, import_react77.forwardRef)(
8137
8012
  (props, ref) => {
8138
8013
  const { className, ...rest } = props;
8139
- return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
8014
+ return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
8140
8015
  "ul",
8141
8016
  {
8142
8017
  ref,
@@ -8152,11 +8027,11 @@ var FooterList = (0, import_react78.forwardRef)(
8152
8027
  );
8153
8028
 
8154
8029
  // src/components/Footer/FooterSocialsList.tsx
8155
- var import_react79 = require("react");
8156
- var import_jsx_runtime235 = require("react/jsx-runtime");
8157
- var FooterSocialsList = (0, import_react79.forwardRef)((props, ref) => {
8030
+ var import_react78 = require("react");
8031
+ var import_jsx_runtime234 = require("react/jsx-runtime");
8032
+ var FooterSocialsList = (0, import_react78.forwardRef)((props, ref) => {
8158
8033
  const { className, ...rest } = props;
8159
- return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
8034
+ return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
8160
8035
  "ul",
8161
8036
  {
8162
8037
  ref,
@@ -8171,11 +8046,11 @@ var FooterSocialsList = (0, import_react79.forwardRef)((props, ref) => {
8171
8046
  });
8172
8047
 
8173
8048
  // src/components/Footer/FooterSocialsGroup.tsx
8174
- var import_react80 = require("react");
8175
- var import_jsx_runtime236 = require("react/jsx-runtime");
8176
- var FooterSocialsGroup = (0, import_react80.forwardRef)((props, ref) => {
8049
+ var import_react79 = require("react");
8050
+ var import_jsx_runtime235 = require("react/jsx-runtime");
8051
+ var FooterSocialsGroup = (0, import_react79.forwardRef)((props, ref) => {
8177
8052
  const { className, ...rest } = props;
8178
- return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
8053
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
8179
8054
  "div",
8180
8055
  {
8181
8056
  ref,
@@ -8186,12 +8061,12 @@ var FooterSocialsGroup = (0, import_react80.forwardRef)((props, ref) => {
8186
8061
  });
8187
8062
 
8188
8063
  // src/components/Footer/FooterListGroup.tsx
8189
- var import_react81 = require("react");
8190
- var import_jsx_runtime237 = require("react/jsx-runtime");
8191
- var FooterListGroup = (0, import_react81.forwardRef)(
8064
+ var import_react80 = require("react");
8065
+ var import_jsx_runtime236 = require("react/jsx-runtime");
8066
+ var FooterListGroup = (0, import_react80.forwardRef)(
8192
8067
  (props, ref) => {
8193
8068
  const { className, ...rest } = props;
8194
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
8069
+ return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
8195
8070
  "div",
8196
8071
  {
8197
8072
  ref,
@@ -8203,17 +8078,17 @@ var FooterListGroup = (0, import_react81.forwardRef)(
8203
8078
  );
8204
8079
 
8205
8080
  // src/components/Footer/FooterLeft.tsx
8206
- var import_react82 = require("react");
8207
- var import_jsx_runtime238 = require("react/jsx-runtime");
8208
- var FooterLeft = (0, import_react82.forwardRef)(
8081
+ var import_react81 = require("react");
8082
+ var import_jsx_runtime237 = require("react/jsx-runtime");
8083
+ var FooterLeft = (0, import_react81.forwardRef)(
8209
8084
  (props, ref) => {
8210
8085
  const { className, ...rest } = props;
8211
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)("div", { ref, className: cn(className, Footer_default["left"]), ...rest });
8086
+ return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)("div", { ref, className: cn(className, Footer_default["left"]), ...rest });
8212
8087
  }
8213
8088
  );
8214
8089
 
8215
8090
  // src/components/GlobalMessage/GlobalMessage.tsx
8216
- var import_react83 = require("react");
8091
+ var import_react82 = require("react");
8217
8092
 
8218
8093
  // src/components/GlobalMessage/GlobalMessage.module.css
8219
8094
  var GlobalMessage_default = {
@@ -8227,7 +8102,7 @@ var GlobalMessage_default = {
8227
8102
  };
8228
8103
 
8229
8104
  // src/components/GlobalMessage/GlobalMessage.tsx
8230
- var import_jsx_runtime239 = require("react/jsx-runtime");
8105
+ var import_jsx_runtime238 = require("react/jsx-runtime");
8231
8106
  var purposeVariants = {
8232
8107
  info: {
8233
8108
  icon: InfoIcon
@@ -8239,7 +8114,7 @@ var purposeVariants = {
8239
8114
  icon: WarningIcon
8240
8115
  }
8241
8116
  };
8242
- var GlobalMessage = (0, import_react83.forwardRef)(
8117
+ var GlobalMessage = (0, import_react82.forwardRef)(
8243
8118
  (props, ref) => {
8244
8119
  const {
8245
8120
  message,
@@ -8252,8 +8127,8 @@ var GlobalMessage = (0, import_react83.forwardRef)(
8252
8127
  htmlProps,
8253
8128
  ...rest
8254
8129
  } = props;
8255
- const [isClosed, setClosed] = (0, import_react83.useState)(false);
8256
- return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
8130
+ const [isClosed, setClosed] = (0, import_react82.useState)(false);
8131
+ return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
8257
8132
  "div",
8258
8133
  {
8259
8134
  ref,
@@ -8269,7 +8144,7 @@ var GlobalMessage = (0, import_react83.forwardRef)(
8269
8144
  rest
8270
8145
  ),
8271
8146
  children: [
8272
- /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
8147
+ /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
8273
8148
  "div",
8274
8149
  {
8275
8150
  className: cn(
@@ -8277,12 +8152,12 @@ var GlobalMessage = (0, import_react83.forwardRef)(
8277
8152
  closable && GlobalMessage_default["content--closable"]
8278
8153
  ),
8279
8154
  children: [
8280
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Icon, { icon: purposeVariants[purpose].icon, className: GlobalMessage_default.icon }),
8281
- children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("span", { children: message })
8155
+ /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Icon, { icon: purposeVariants[purpose].icon, className: GlobalMessage_default.icon }),
8156
+ children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime238.jsx)("span", { children: message })
8282
8157
  ]
8283
8158
  }
8284
8159
  ),
8285
- closable && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
8160
+ closable && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
8286
8161
  Button,
8287
8162
  {
8288
8163
  icon: CloseIcon,
@@ -8313,7 +8188,7 @@ var Grid_default = {
8313
8188
  };
8314
8189
 
8315
8190
  // src/components/Grid/Grid.tsx
8316
- var import_jsx_runtime240 = require("react/jsx-runtime");
8191
+ var import_jsx_runtime239 = require("react/jsx-runtime");
8317
8192
  var Grid = (props) => {
8318
8193
  const {
8319
8194
  id,
@@ -8358,13 +8233,13 @@ var Grid = (props) => {
8358
8233
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8359
8234
  ["--dds-grid-xl-column-gap"]: (columnGap == null ? void 0 : columnGap.xl) ? columnGap.xl : "var(--dds-grid-xl-gutter-size)"
8360
8235
  };
8361
- return as === "div" ? /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
8236
+ return as === "div" ? /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
8362
8237
  "div",
8363
8238
  {
8364
8239
  ...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
8365
8240
  style: { ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables }
8366
8241
  }
8367
- ) : /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
8242
+ ) : /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
8368
8243
  "form",
8369
8244
  {
8370
8245
  ...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
@@ -8375,7 +8250,7 @@ var Grid = (props) => {
8375
8250
  Grid.displayName = "Grid";
8376
8251
 
8377
8252
  // src/components/Grid/GridChild.tsx
8378
- var import_jsx_runtime241 = require("react/jsx-runtime");
8253
+ var import_jsx_runtime240 = require("react/jsx-runtime");
8379
8254
  var isRelativeGridColumn = (type) => {
8380
8255
  return type === "all" || type === "firstHalf" || type === "secondHalf";
8381
8256
  };
@@ -8425,7 +8300,7 @@ var GridChild = (props) => {
8425
8300
  firstHalf: "first-half",
8426
8301
  secondHalf: "second-half"
8427
8302
  };
8428
- return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
8303
+ return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
8429
8304
  "div",
8430
8305
  {
8431
8306
  ...getBaseHTMLProps(
@@ -8446,7 +8321,7 @@ var GridChild = (props) => {
8446
8321
  GridChild.displayName = "GridChild";
8447
8322
 
8448
8323
  // src/components/InlineButton/InlineButton.tsx
8449
- var import_react84 = require("react");
8324
+ var import_react83 = require("react");
8450
8325
 
8451
8326
  // src/components/InlineButton/InlineButton.module.css
8452
8327
  var InlineButton_default = {
@@ -8454,11 +8329,11 @@ var InlineButton_default = {
8454
8329
  };
8455
8330
 
8456
8331
  // src/components/InlineButton/InlineButton.tsx
8457
- var import_jsx_runtime242 = require("react/jsx-runtime");
8458
- var InlineButton = (0, import_react84.forwardRef)(
8332
+ var import_jsx_runtime241 = require("react/jsx-runtime");
8333
+ var InlineButton = (0, import_react83.forwardRef)(
8459
8334
  (props, ref) => {
8460
8335
  const { className, ...rest } = props;
8461
- return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
8336
+ return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
8462
8337
  "button",
8463
8338
  {
8464
8339
  ref,
@@ -8477,11 +8352,11 @@ var InlineButton = (0, import_react84.forwardRef)(
8477
8352
  );
8478
8353
 
8479
8354
  // src/components/InlineEdit/InlineEditTextArea.tsx
8480
- var import_react87 = require("react");
8355
+ var import_react86 = require("react");
8481
8356
 
8482
8357
  // src/components/InlineEdit/InlineEdit.tsx
8483
- var import_react85 = require("react");
8484
- var import_jsx_runtime243 = require("react/jsx-runtime");
8358
+ var import_react84 = require("react");
8359
+ var import_jsx_runtime242 = require("react/jsx-runtime");
8485
8360
  var InlineEdit = (props) => {
8486
8361
  const {
8487
8362
  emptiable,
@@ -8493,8 +8368,8 @@ var InlineEdit = (props) => {
8493
8368
  inputRef,
8494
8369
  children
8495
8370
  } = props;
8496
- const [editingValue, setEditingValue] = (0, import_react85.useState)(value != null ? value : "");
8497
- const [isEditing, setIsEditing] = (0, import_react85.useState)(false);
8371
+ const [editingValue, setEditingValue] = (0, import_react84.useState)(value != null ? value : "");
8372
+ const [isEditing, setIsEditing] = (0, import_react84.useState)(false);
8498
8373
  const onChangeHandler = (e) => {
8499
8374
  setEditingValue(e.target.value);
8500
8375
  onChange && onChange();
@@ -8521,8 +8396,8 @@ var InlineEdit = (props) => {
8521
8396
  useOnKeyDown(["Enter"], () => onExitHandler());
8522
8397
  useOnKeyDown(["Escape"], () => onExitHandler());
8523
8398
  useOnClickOutside(inputRef.current, () => onExitHandler());
8524
- const inputChild = import_react85.Children.only(
8525
- (0, import_react85.isValidElement)(children) && (0, import_react85.cloneElement)(children, {
8399
+ const inputChild = import_react84.Children.only(
8400
+ (0, import_react84.isValidElement)(children) && (0, import_react84.cloneElement)(children, {
8526
8401
  onChange: onChangeHandler,
8527
8402
  onBlur: onBlurHandler,
8528
8403
  onFocus: onFocusHandler,
@@ -8531,12 +8406,12 @@ var InlineEdit = (props) => {
8531
8406
  emptiable
8532
8407
  })
8533
8408
  );
8534
- return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(import_jsx_runtime243.Fragment, { children: inputChild });
8409
+ return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(import_jsx_runtime242.Fragment, { children: inputChild });
8535
8410
  };
8536
8411
  InlineEdit.displayName = "InlineEdit";
8537
8412
 
8538
8413
  // src/components/InlineEdit/InlineTextArea.tsx
8539
- var import_react86 = require("react");
8414
+ var import_react85 = require("react");
8540
8415
 
8541
8416
  // src/components/InlineEdit/InlineEdit.module.css
8542
8417
  var InlineEdit_default = {
@@ -8549,16 +8424,16 @@ var InlineEdit_default = {
8549
8424
  };
8550
8425
 
8551
8426
  // src/components/InlineEdit/InlineEdit.utils.tsx
8552
- var import_jsx_runtime244 = require("react/jsx-runtime");
8553
- var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(VisuallyHidden, { id, as: "span", children: [
8427
+ var import_jsx_runtime243 = require("react/jsx-runtime");
8428
+ var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(VisuallyHidden, { id, as: "span", children: [
8554
8429
  "Escape, Enter eller Tab for \xE5 lagre.",
8555
8430
  " ",
8556
8431
  !emptiable && "Inputfeltet er ikke t\xF8mmbar."
8557
8432
  ] });
8558
8433
 
8559
8434
  // src/components/InlineEdit/InlineTextArea.tsx
8560
- var import_jsx_runtime245 = require("react/jsx-runtime");
8561
- var InlineTextArea = (0, import_react86.forwardRef)((props, ref) => {
8435
+ var import_jsx_runtime244 = require("react/jsx-runtime");
8436
+ var InlineTextArea = (0, import_react85.forwardRef)((props, ref) => {
8562
8437
  const {
8563
8438
  id,
8564
8439
  error,
@@ -8570,18 +8445,18 @@ var InlineTextArea = (0, import_react86.forwardRef)((props, ref) => {
8570
8445
  hideIcon,
8571
8446
  ...rest
8572
8447
  } = props;
8573
- const genereatedId = (0, import_react86.useId)();
8448
+ const genereatedId = (0, import_react85.useId)();
8574
8449
  const uniqueId = id != null ? id : `${genereatedId}-InlineTextArea`;
8575
8450
  const hasErrorMessage = !!errorMessage;
8576
8451
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
8577
8452
  const hasError = !!error;
8578
8453
  const hasErrorState = hasError || hasErrorMessage;
8579
8454
  const descId = derivativeIdGenerator(uniqueId, "desc");
8580
- const inputRef = (0, import_react86.useRef)(null);
8455
+ const inputRef = (0, import_react85.useRef)(null);
8581
8456
  const combinedRef = useCombinedRef(ref, inputRef);
8582
- return /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)("div", { className: InlineEdit_default.container, style: { width }, children: [
8583
- /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)("div", { className: Input_default["input-group"], children: [
8584
- !isEditing && !hideIcon && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
8457
+ return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)("div", { className: InlineEdit_default.container, style: { width }, children: [
8458
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)("div", { className: Input_default["input-group"], children: [
8459
+ !isEditing && !hideIcon && /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
8585
8460
  "span",
8586
8461
  {
8587
8462
  onClick: () => {
@@ -8589,10 +8464,10 @@ var InlineTextArea = (0, import_react86.forwardRef)((props, ref) => {
8589
8464
  (_a = inputRef.current) == null ? void 0 : _a.focus();
8590
8465
  },
8591
8466
  className: InlineEdit_default["icon-wrapper"],
8592
- children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8467
+ children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8593
8468
  }
8594
8469
  ),
8595
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
8470
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
8596
8471
  "textarea",
8597
8472
  {
8598
8473
  ...rest,
@@ -8624,12 +8499,12 @@ var InlineTextArea = (0, import_react86.forwardRef)((props, ref) => {
8624
8499
  InlineTextArea.displayName = "InlineTextArea";
8625
8500
 
8626
8501
  // src/components/InlineEdit/InlineEditTextArea.tsx
8627
- var import_jsx_runtime246 = require("react/jsx-runtime");
8628
- var InlineEditTextArea = (0, import_react87.forwardRef)((props, ref) => {
8502
+ var import_jsx_runtime245 = require("react/jsx-runtime");
8503
+ var InlineEditTextArea = (0, import_react86.forwardRef)((props, ref) => {
8629
8504
  const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
8630
- const textareaRef = (0, import_react87.useRef)(null);
8505
+ const textareaRef = (0, import_react86.useRef)(null);
8631
8506
  const combinedRef = useCombinedRef(ref, textareaRef);
8632
- return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
8507
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
8633
8508
  InlineEdit,
8634
8509
  {
8635
8510
  onSetValue,
@@ -8639,18 +8514,18 @@ var InlineEditTextArea = (0, import_react87.forwardRef)((props, ref) => {
8639
8514
  onFocus,
8640
8515
  onChange,
8641
8516
  onBlur,
8642
- children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(InlineTextArea, { ref: combinedRef, ...rest })
8517
+ children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(InlineTextArea, { ref: combinedRef, ...rest })
8643
8518
  }
8644
8519
  );
8645
8520
  });
8646
8521
 
8647
8522
  // src/components/InlineEdit/InlineEditInput.tsx
8648
- var import_react89 = require("react");
8523
+ var import_react88 = require("react");
8649
8524
 
8650
8525
  // src/components/InlineEdit/InlineInput.tsx
8651
- var import_react88 = require("react");
8652
- var import_jsx_runtime247 = require("react/jsx-runtime");
8653
- var InlineInput = (0, import_react88.forwardRef)(
8526
+ var import_react87 = require("react");
8527
+ var import_jsx_runtime246 = require("react/jsx-runtime");
8528
+ var InlineInput = (0, import_react87.forwardRef)(
8654
8529
  (props, ref) => {
8655
8530
  const {
8656
8531
  id,
@@ -8663,18 +8538,18 @@ var InlineInput = (0, import_react88.forwardRef)(
8663
8538
  hideIcon,
8664
8539
  ...rest
8665
8540
  } = props;
8666
- const genereatedId = (0, import_react88.useId)();
8541
+ const genereatedId = (0, import_react87.useId)();
8667
8542
  const uniqueId = id != null ? id : `${genereatedId}-InlineInput`;
8668
8543
  const hasErrorMessage = !!errorMessage;
8669
8544
  const hasError = !!error;
8670
8545
  const hasErrorState = hasError || hasErrorMessage;
8671
8546
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
8672
8547
  const descId = derivativeIdGenerator(uniqueId, "desc");
8673
- const inputRef = (0, import_react88.useRef)(null);
8548
+ const inputRef = (0, import_react87.useRef)(null);
8674
8549
  const combinedRef = useCombinedRef(ref, inputRef);
8675
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)("div", { className: InlineEdit_default.container, style: { width }, children: [
8676
- /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)("div", { className: Input_default["input-group"], children: [
8677
- !isEditing && !hideIcon && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
8550
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)("div", { className: InlineEdit_default.container, style: { width }, children: [
8551
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)("div", { className: Input_default["input-group"], children: [
8552
+ !isEditing && !hideIcon && /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
8678
8553
  "span",
8679
8554
  {
8680
8555
  onClick: () => {
@@ -8682,10 +8557,10 @@ var InlineInput = (0, import_react88.forwardRef)(
8682
8557
  (_a = inputRef.current) == null ? void 0 : _a.focus();
8683
8558
  },
8684
8559
  className: InlineEdit_default["icon-wrapper"],
8685
- children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8560
+ children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8686
8561
  }
8687
8562
  ),
8688
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
8563
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
8689
8564
  "input",
8690
8565
  {
8691
8566
  ...rest,
@@ -8716,12 +8591,12 @@ var InlineInput = (0, import_react88.forwardRef)(
8716
8591
  InlineInput.displayName = "InlineInput";
8717
8592
 
8718
8593
  // src/components/InlineEdit/InlineEditInput.tsx
8719
- var import_jsx_runtime248 = require("react/jsx-runtime");
8720
- var InlineEditInput = (0, import_react89.forwardRef)((props, ref) => {
8594
+ var import_jsx_runtime247 = require("react/jsx-runtime");
8595
+ var InlineEditInput = (0, import_react88.forwardRef)((props, ref) => {
8721
8596
  const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
8722
- const inputRef = (0, import_react89.useRef)(null);
8597
+ const inputRef = (0, import_react88.useRef)(null);
8723
8598
  const combinedRef = useCombinedRef(ref, inputRef);
8724
- return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
8599
+ return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
8725
8600
  InlineEdit,
8726
8601
  {
8727
8602
  onSetValue,
@@ -8731,13 +8606,13 @@ var InlineEditInput = (0, import_react89.forwardRef)((props, ref) => {
8731
8606
  onFocus,
8732
8607
  onChange,
8733
8608
  onBlur,
8734
- children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(InlineInput, { ...rest, ref: combinedRef })
8609
+ children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(InlineInput, { ...rest, ref: combinedRef })
8735
8610
  }
8736
8611
  );
8737
8612
  });
8738
8613
 
8739
8614
  // src/components/InternalHeader/InternalHeader.tsx
8740
- var import_react91 = require("react");
8615
+ var import_react90 = require("react");
8741
8616
 
8742
8617
  // src/components/InternalHeader/InternalHeader.module.css
8743
8618
  var InternalHeader_default = {
@@ -8793,10 +8668,10 @@ var InternalHeader_default = {
8793
8668
  };
8794
8669
 
8795
8670
  // src/components/InternalHeader/NavigationItem.tsx
8796
- var import_react90 = require("react");
8797
- var import_jsx_runtime249 = require("react/jsx-runtime");
8798
- var NavigationItem = (0, import_react90.forwardRef)(({ title, isCurrent, ...rest }, ref) => {
8799
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8671
+ var import_react89 = require("react");
8672
+ var import_jsx_runtime248 = require("react/jsx-runtime");
8673
+ var NavigationItem = (0, import_react89.forwardRef)(({ title, isCurrent, ...rest }, ref) => {
8674
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
8800
8675
  "a",
8801
8676
  {
8802
8677
  ...rest,
@@ -8814,7 +8689,7 @@ var NavigationItem = (0, import_react90.forwardRef)(({ title, isCurrent, ...rest
8814
8689
  });
8815
8690
 
8816
8691
  // src/components/InternalHeader/InternalHeader.tsx
8817
- var import_jsx_runtime250 = require("react/jsx-runtime");
8692
+ var import_jsx_runtime249 = require("react/jsx-runtime");
8818
8693
  var InternalHeader = (props) => {
8819
8694
  const {
8820
8695
  applicationDesc,
@@ -8831,11 +8706,11 @@ var InternalHeader = (props) => {
8831
8706
  htmlProps,
8832
8707
  ...rest
8833
8708
  } = props;
8834
- const [contextMenuIsClosed, setContextMenuIsClosed] = (0, import_react91.useState)(true);
8835
- const [currentPage, setCurrentPage] = (0, import_react91.useState)(
8709
+ const [contextMenuIsClosed, setContextMenuIsClosed] = (0, import_react90.useState)(true);
8710
+ const [currentPage, setCurrentPage] = (0, import_react90.useState)(
8836
8711
  currentPageHref
8837
8712
  );
8838
- const buttonRef = (0, import_react91.useRef)(null);
8713
+ const buttonRef = (0, import_react90.useRef)(null);
8839
8714
  const handleCurrentPageChange = (href) => {
8840
8715
  setCurrentPage(href);
8841
8716
  onCurrentPageChange && onCurrentPageChange();
@@ -8848,7 +8723,7 @@ var InternalHeader = (props) => {
8848
8723
  const hasContextMenuElements = !!contextMenuElements && contextMenuElements.length > 0;
8849
8724
  const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
8850
8725
  const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
8851
- const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8726
+ const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime249.jsx)("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8852
8727
  "ul",
8853
8728
  {
8854
8729
  className: cn(
@@ -8859,7 +8734,7 @@ var InternalHeader = (props) => {
8859
8734
  children: navigationElements.map((item, index) => {
8860
8735
  const { href, ...rest2 } = item;
8861
8736
  const isCurrent = href === currentPage;
8862
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8737
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8863
8738
  NavigationItem,
8864
8739
  {
8865
8740
  href,
@@ -8873,7 +8748,7 @@ var InternalHeader = (props) => {
8873
8748
  ) }) : null;
8874
8749
  const hasContextMenu = hasContextMenuElements || !!userProps || hasNavInContextMenu;
8875
8750
  const hasContextMenuLargeScreen = hasContextMenuElements || !!userProps;
8876
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
8751
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
8877
8752
  "div",
8878
8753
  {
8879
8754
  ...getBaseHTMLProps(
@@ -8888,7 +8763,7 @@ var InternalHeader = (props) => {
8888
8763
  rest
8889
8764
  ),
8890
8765
  children: [
8891
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8766
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8892
8767
  "a",
8893
8768
  {
8894
8769
  href: applicationHref,
@@ -8897,10 +8772,10 @@ var InternalHeader = (props) => {
8897
8772
  children: applicationName
8898
8773
  }
8899
8774
  ) : applicationName }),
8900
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
8901
- (hasContextMenu || navigation !== null) && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("div", { className: InternalHeader_default["bar-separator"] }),
8775
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
8776
+ (hasContextMenu || navigation !== null) && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)("div", { className: InternalHeader_default["bar-separator"] }),
8902
8777
  navigation,
8903
- hasContextMenu && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
8778
+ hasContextMenu && /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
8904
8779
  "div",
8905
8780
  {
8906
8781
  className: cn(
@@ -8909,7 +8784,7 @@ var InternalHeader = (props) => {
8909
8784
  !hasContextMenuLargeScreen && hasSmallScreenBreakpoint && InternalHeader_default[`context-menu-group--small-screen-only-${smallScreenBreakpoint}`]
8910
8785
  ),
8911
8786
  children: [
8912
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8787
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8913
8788
  Button,
8914
8789
  {
8915
8790
  ref: buttonRef,
@@ -8921,7 +8796,7 @@ var InternalHeader = (props) => {
8921
8796
  "aria-label": "\xE5pne meny"
8922
8797
  }
8923
8798
  ),
8924
- /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
8799
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
8925
8800
  OverflowMenu,
8926
8801
  {
8927
8802
  isOpen: !contextMenuIsClosed,
@@ -8929,8 +8804,8 @@ var InternalHeader = (props) => {
8929
8804
  anchorRef: buttonRef,
8930
8805
  className: InternalHeader_default["context-menu"],
8931
8806
  children: [
8932
- userProps && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(OverflowMenuList, { children: userProps.href ? /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(OverflowMenuLink, { icon: PersonIcon, href: userProps.href, children: userProps.name }) : /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(OverflowMenuSpan, { icon: PersonIcon, children: userProps.name }) }),
8933
- hasNavInContextMenu && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8807
+ userProps && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuList, { children: userProps.href ? /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuLink, { icon: PersonIcon, href: userProps.href, children: userProps.name }) : /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuSpan, { icon: PersonIcon, children: userProps.name }) }),
8808
+ hasNavInContextMenu && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8934
8809
  "nav",
8935
8810
  {
8936
8811
  "aria-label": "sidenavigasjon",
@@ -8938,10 +8813,10 @@ var InternalHeader = (props) => {
8938
8813
  InternalHeader_default["nav--in-menu--small-screen"],
8939
8814
  InternalHeader_default[`nav--in-menu--small-screen-${smallScreenBreakpoint}`]
8940
8815
  ),
8941
- children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(OverflowMenuList, { children: navigationElements.map((item) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(OverflowMenuLink, { ...item, children: item.title })) })
8816
+ children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuList, { children: navigationElements.map((item) => /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuLink, { ...item, children: item.title })) })
8942
8817
  }
8943
8818
  ),
8944
- hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8819
+ hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8945
8820
  OverflowMenuDivider,
8946
8821
  {
8947
8822
  className: cn(
@@ -8950,9 +8825,9 @@ var InternalHeader = (props) => {
8950
8825
  )
8951
8826
  }
8952
8827
  ),
8953
- hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(OverflowMenuList, { children: contextMenuElements.map((item) => {
8828
+ hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuList, { children: contextMenuElements.map((item) => {
8954
8829
  const { title } = item;
8955
- return item.href ? /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(OverflowMenuLink, { ...item, children: title }) : /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(OverflowMenuButton, { ...item, children: title });
8830
+ return item.href ? /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuLink, { ...item, children: title }) : /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuButton, { ...item, children: title });
8956
8831
  }) })
8957
8832
  ]
8958
8833
  }
@@ -8967,7 +8842,7 @@ var InternalHeader = (props) => {
8967
8842
  InternalHeader.displayName = "InternalHeader";
8968
8843
 
8969
8844
  // src/components/List/List.tsx
8970
- var import_react92 = require("react");
8845
+ var import_react91 = require("react");
8971
8846
 
8972
8847
  // src/components/List/List.module.css
8973
8848
  var List_default = {
@@ -8979,8 +8854,8 @@ var List_default = {
8979
8854
  };
8980
8855
 
8981
8856
  // src/components/List/List.tsx
8982
- var import_jsx_runtime251 = require("react/jsx-runtime");
8983
- var List = (0, import_react92.forwardRef)((props, ref) => {
8857
+ var import_jsx_runtime250 = require("react/jsx-runtime");
8858
+ var List = (0, import_react91.forwardRef)((props, ref) => {
8984
8859
  const {
8985
8860
  listType = "unordered",
8986
8861
  typographyType = "inherit",
@@ -8991,7 +8866,7 @@ var List = (0, import_react92.forwardRef)((props, ref) => {
8991
8866
  ...rest
8992
8867
  } = props;
8993
8868
  const List2 = listType === "ordered" ? "ol" : "ul";
8994
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
8869
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8995
8870
  List2,
8996
8871
  {
8997
8872
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -9008,17 +8883,17 @@ var List = (0, import_react92.forwardRef)((props, ref) => {
9008
8883
  List.displayName = "List";
9009
8884
 
9010
8885
  // src/components/List/ListItem.tsx
9011
- var import_react93 = require("react");
9012
- var import_jsx_runtime252 = require("react/jsx-runtime");
9013
- var ListItem = (0, import_react93.forwardRef)(
8886
+ var import_react92 = require("react");
8887
+ var import_jsx_runtime251 = require("react/jsx-runtime");
8888
+ var ListItem = (0, import_react92.forwardRef)(
9014
8889
  ({ className, ...rest }, ref) => {
9015
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("li", { ref, ...rest, className: cn(className, List_default.li) });
8890
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)("li", { ref, ...rest, className: cn(className, List_default.li) });
9016
8891
  }
9017
8892
  );
9018
8893
  ListItem.displayName = "ListItem";
9019
8894
 
9020
8895
  // src/components/LocalMessage/LocalMessage.tsx
9021
- var import_react94 = require("react");
8896
+ var import_react93 = require("react");
9022
8897
 
9023
8898
  // src/components/LocalMessage/LocalMessage.module.css
9024
8899
  var LocalMessage_default = {
@@ -9039,7 +8914,7 @@ var LocalMessage_default = {
9039
8914
  };
9040
8915
 
9041
8916
  // src/components/LocalMessage/LocalMessage.tsx
9042
- var import_jsx_runtime253 = require("react/jsx-runtime");
8917
+ var import_jsx_runtime252 = require("react/jsx-runtime");
9043
8918
  var purposeVariants2 = {
9044
8919
  info: {
9045
8920
  icon: InfoIcon
@@ -9057,7 +8932,7 @@ var purposeVariants2 = {
9057
8932
  icon: TipIcon
9058
8933
  }
9059
8934
  };
9060
- var LocalMessage = (0, import_react94.forwardRef)(
8935
+ var LocalMessage = (0, import_react93.forwardRef)(
9061
8936
  (props, ref) => {
9062
8937
  const {
9063
8938
  message,
@@ -9072,11 +8947,11 @@ var LocalMessage = (0, import_react94.forwardRef)(
9072
8947
  htmlProps,
9073
8948
  ...rest
9074
8949
  } = props;
9075
- const [isClosed, setClosed] = (0, import_react94.useState)(false);
8950
+ const [isClosed, setClosed] = (0, import_react93.useState)(false);
9076
8951
  if (isClosed) {
9077
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_jsx_runtime253.Fragment, {});
8952
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_jsx_runtime252.Fragment, {});
9078
8953
  }
9079
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
8954
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
9080
8955
  "div",
9081
8956
  {
9082
8957
  ref,
@@ -9095,15 +8970,15 @@ var LocalMessage = (0, import_react94.forwardRef)(
9095
8970
  ),
9096
8971
  style: { ...htmlProps == null ? void 0 : htmlProps.style, width },
9097
8972
  children: [
9098
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8973
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
9099
8974
  Icon,
9100
8975
  {
9101
8976
  icon: purposeVariants2[purpose].icon,
9102
8977
  className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
9103
8978
  }
9104
8979
  ),
9105
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("span", { children: message }) }),
9106
- closable && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8980
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("span", { children: message }) }),
8981
+ closable && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
9107
8982
  Button,
9108
8983
  {
9109
8984
  icon: CloseIcon,
@@ -9125,7 +9000,7 @@ var LocalMessage = (0, import_react94.forwardRef)(
9125
9000
  LocalMessage.displayName = "LocalMessage";
9126
9001
 
9127
9002
  // src/components/Modal/Modal.tsx
9128
- var import_react95 = require("react");
9003
+ var import_react94 = require("react");
9129
9004
  var import_react_dom3 = require("react-dom");
9130
9005
 
9131
9006
  // src/components/Modal/Backdrop/Backdrop.utils.tsx
@@ -9163,8 +9038,8 @@ var Modal_default = {
9163
9038
  };
9164
9039
 
9165
9040
  // src/components/Modal/Modal.tsx
9166
- var import_jsx_runtime254 = require("react/jsx-runtime");
9167
- var Modal = (0, import_react95.forwardRef)((props, ref) => {
9041
+ var import_jsx_runtime253 = require("react/jsx-runtime");
9042
+ var Modal = (0, import_react94.forwardRef)((props, ref) => {
9168
9043
  const {
9169
9044
  isOpen = false,
9170
9045
  parentElement = document.body,
@@ -9178,7 +9053,7 @@ var Modal = (0, import_react95.forwardRef)((props, ref) => {
9178
9053
  htmlProps,
9179
9054
  ...rest
9180
9055
  } = props;
9181
- const generatedId = (0, import_react95.useId)();
9056
+ const generatedId = (0, import_react94.useId)();
9182
9057
  const modalId = id != null ? id : `${generatedId}-modal`;
9183
9058
  const headerId = `${modalId}-header`;
9184
9059
  const modalRef = useFocusTrap(isOpen, initialFocusRef);
@@ -9190,7 +9065,7 @@ var Modal = (0, import_react95.forwardRef)((props, ref) => {
9190
9065
  onClose();
9191
9066
  }
9192
9067
  };
9193
- (0, import_react95.useEffect)(() => {
9068
+ (0, import_react94.useEffect)(() => {
9194
9069
  if (isOpen) {
9195
9070
  handleElementWithBackdropMount(document.body);
9196
9071
  } else {
@@ -9202,14 +9077,14 @@ var Modal = (0, import_react95.forwardRef)((props, ref) => {
9202
9077
  useOnKeyDown(["Escape", "Esc"], () => handleClose());
9203
9078
  const hasTransitionedIn = useMountTransition(isOpen, 200);
9204
9079
  return isOpen || hasTransitionedIn ? (0, import_react_dom3.createPortal)(
9205
- /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
9080
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
9206
9081
  "div",
9207
9082
  {
9208
9083
  className: cn(
9209
9084
  Modal_default.backdrop,
9210
9085
  hasTransitionedIn && isOpen ? Modal_default["backdrop--visible"] : Modal_default["backdrop--hidden"]
9211
9086
  ),
9212
- children: /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
9087
+ children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
9213
9088
  Paper,
9214
9089
  {
9215
9090
  ...getBaseHTMLProps(
@@ -9227,11 +9102,11 @@ var Modal = (0, import_react95.forwardRef)((props, ref) => {
9227
9102
  id: modalId,
9228
9103
  elevation: 4,
9229
9104
  children: [
9230
- /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)("div", { className: Modal_default.content, children: [
9231
- header && /* @__PURE__ */ (0, import_jsx_runtime254.jsx)("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
9105
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)("div", { className: Modal_default.content, children: [
9106
+ header && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
9232
9107
  children
9233
9108
  ] }),
9234
- onClose && /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
9109
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
9235
9110
  Button,
9236
9111
  {
9237
9112
  size: "small",
@@ -9253,12 +9128,12 @@ var Modal = (0, import_react95.forwardRef)((props, ref) => {
9253
9128
  Modal.displayName = "Modal";
9254
9129
 
9255
9130
  // src/components/Modal/ModalBody.tsx
9256
- var import_react96 = require("react");
9257
- var import_jsx_runtime255 = require("react/jsx-runtime");
9258
- var ModalBody = (0, import_react96.forwardRef)(
9131
+ var import_react95 = require("react");
9132
+ var import_jsx_runtime254 = require("react/jsx-runtime");
9133
+ var ModalBody = (0, import_react95.forwardRef)(
9259
9134
  (props, ref) => {
9260
9135
  const { children, id, className, scrollable, htmlProps, height, ...rest } = props;
9261
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
9136
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
9262
9137
  "div",
9263
9138
  {
9264
9139
  ref,
@@ -9282,17 +9157,17 @@ var ModalBody = (0, import_react96.forwardRef)(
9282
9157
  ModalBody.displayName = "ModalBody";
9283
9158
 
9284
9159
  // src/components/Modal/ModalActions.tsx
9285
- var import_react97 = require("react");
9286
- var import_jsx_runtime256 = require("react/jsx-runtime");
9287
- var ModalActions = (0, import_react97.forwardRef)(
9160
+ var import_react96 = require("react");
9161
+ var import_jsx_runtime255 = require("react/jsx-runtime");
9162
+ var ModalActions = (0, import_react96.forwardRef)(
9288
9163
  ({ className, ...rest }, ref) => {
9289
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
9164
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
9290
9165
  }
9291
9166
  );
9292
9167
  ModalActions.displayName = "ModalActions";
9293
9168
 
9294
9169
  // src/components/Pagination/Pagination.tsx
9295
- var import_react100 = require("react");
9170
+ var import_react99 = require("react");
9296
9171
 
9297
9172
  // src/components/Pagination/Pagination.module.css
9298
9173
  var Pagination_default = {
@@ -9355,7 +9230,7 @@ function PaginationGenerator(pagesAmount, activePage) {
9355
9230
  }
9356
9231
 
9357
9232
  // src/components/Select/Select.tsx
9358
- var import_react98 = require("react");
9233
+ var import_react97 = require("react");
9359
9234
  var import_react_select2 = __toESM(require("react-select"));
9360
9235
 
9361
9236
  // src/components/Select/Select.module.css
@@ -9630,7 +9505,7 @@ var getCustomStyles = (size2, hasError, isReadOnly) => ({
9630
9505
 
9631
9506
  // src/components/Select/SelectComponents.tsx
9632
9507
  var import_react_select = require("react-select");
9633
- var import_jsx_runtime257 = require("react/jsx-runtime");
9508
+ var import_jsx_runtime256 = require("react/jsx-runtime");
9634
9509
  var {
9635
9510
  Option,
9636
9511
  NoOptionsMessage,
@@ -9641,27 +9516,27 @@ var {
9641
9516
  MultiValueRemove,
9642
9517
  Control
9643
9518
  } = import_react_select.components;
9644
- var DDSOption = (props, componentSize) => /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(Option, { ...props, children: [
9645
- props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
9519
+ var DDSOption = (props, componentSize) => /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(Option, { ...props, children: [
9520
+ props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
9646
9521
  props.children
9647
9522
  ] });
9648
- var CustomOption = (props, Element) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Option, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Element, { ...props }) });
9649
- var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(SingleValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Element, { ...props }) : props.children }) });
9650
- var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
9651
- var DDSClearIndicator = (props, size2) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Icon, { icon: CloseSmallIcon, iconSize: getFormInputIconSize(size2) }) });
9652
- var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
9523
+ var CustomOption = (props, Element) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Option, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Element, { ...props }) });
9524
+ var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(SingleValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Element, { ...props }) : props.children }) });
9525
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
9526
+ var DDSClearIndicator = (props, size2) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: CloseSmallIcon, iconSize: getFormInputIconSize(size2) }) });
9527
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
9653
9528
  var DDSDropdownIndicator = (props, size2) => {
9654
9529
  const { className, ...rest } = props;
9655
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
9530
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9656
9531
  DropdownIndicator,
9657
9532
  {
9658
9533
  ...rest,
9659
9534
  className: cn(className, Select_default["dropdown-indicator"]),
9660
- children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Icon, { icon: ChevronDownIcon, iconSize: getFormInputIconSize(size2) })
9535
+ children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: ChevronDownIcon, iconSize: getFormInputIconSize(size2) })
9661
9536
  }
9662
9537
  );
9663
9538
  };
9664
- var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
9539
+ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9665
9540
  Input2,
9666
9541
  {
9667
9542
  ...props,
@@ -9671,11 +9546,11 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, impo
9671
9546
  );
9672
9547
  var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9673
9548
  const { className, ...rest } = props;
9674
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
9549
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9675
9550
  "div",
9676
9551
  {
9677
9552
  "data-testid": dataTestId ? dataTestId + "-control" : void 0,
9678
- children: /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
9553
+ children: /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
9679
9554
  Control,
9680
9555
  {
9681
9556
  ...rest,
@@ -9686,7 +9561,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9686
9561
  readOnly && Select_default["control--readonly"]
9687
9562
  ),
9688
9563
  children: [
9689
- icon && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
9564
+ icon && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9690
9565
  Icon,
9691
9566
  {
9692
9567
  icon,
@@ -9703,7 +9578,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9703
9578
  };
9704
9579
 
9705
9580
  // src/components/Select/Select.tsx
9706
- var import_jsx_runtime258 = require("react/jsx-runtime");
9581
+ var import_jsx_runtime257 = require("react/jsx-runtime");
9707
9582
  var getPlaceholder = (placeholder, isMulti) => placeholder ? placeholder : isMulti ? "-- Velg en eller flere --" : "-- Velg fra listen --";
9708
9583
  function SelectInner(props, ref) {
9709
9584
  const {
@@ -9732,7 +9607,7 @@ function SelectInner(props, ref) {
9732
9607
  "data-testid": dataTestId,
9733
9608
  ...rest
9734
9609
  } = props;
9735
- const generatedId = (0, import_react98.useId)();
9610
+ const generatedId = (0, import_react97.useId)();
9736
9611
  const uniqueId = id != null ? id : `${generatedId}-select`;
9737
9612
  const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
9738
9613
  const hasLabel = !!label;
@@ -9786,7 +9661,7 @@ function SelectInner(props, ref) {
9786
9661
  openMenuOnClick: readOnly ? false : props.openMenuOnClick ? props.openMenuOnClick : void 0,
9787
9662
  ...rest
9788
9663
  };
9789
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
9664
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
9790
9665
  "div",
9791
9666
  {
9792
9667
  className: cn(
@@ -9797,7 +9672,7 @@ function SelectInner(props, ref) {
9797
9672
  ),
9798
9673
  style: { ...style, width },
9799
9674
  children: [
9800
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9675
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
9801
9676
  Label,
9802
9677
  {
9803
9678
  htmlFor: uniqueId,
@@ -9807,17 +9682,17 @@ function SelectInner(props, ref) {
9807
9682
  children: label
9808
9683
  }
9809
9684
  ),
9810
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
9685
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
9811
9686
  renderInputMessage(tip, tipId, errorMessage, errorMessageId)
9812
9687
  ]
9813
9688
  }
9814
9689
  );
9815
9690
  }
9816
- var Select = (0, import_react98.forwardRef)(SelectInner);
9691
+ var Select = (0, import_react97.forwardRef)(SelectInner);
9817
9692
  Select.displayName = "Select";
9818
9693
 
9819
9694
  // src/components/Select/NativeSelect/NativeSelect.tsx
9820
- var import_react99 = require("react");
9695
+ var import_react98 = require("react");
9821
9696
 
9822
9697
  // src/components/Select/NativeSelect/NativeSelect.module.css
9823
9698
  var NativeSelect_default = {
@@ -9832,8 +9707,8 @@ var NativeSelect_default = {
9832
9707
  };
9833
9708
 
9834
9709
  // src/components/Select/NativeSelect/NativeSelect.tsx
9835
- var import_jsx_runtime259 = require("react/jsx-runtime");
9836
- var NativeSelect = (0, import_react99.forwardRef)(
9710
+ var import_jsx_runtime258 = require("react/jsx-runtime");
9711
+ var NativeSelect = (0, import_react98.forwardRef)(
9837
9712
  (props, ref) => {
9838
9713
  const {
9839
9714
  id,
@@ -9852,7 +9727,7 @@ var NativeSelect = (0, import_react99.forwardRef)(
9852
9727
  style,
9853
9728
  ...rest
9854
9729
  } = props;
9855
- const generatedId = (0, import_react99.useId)();
9730
+ const generatedId = (0, import_react98.useId)();
9856
9731
  const uniqueId = id != null ? id : `${generatedId}-native-select`;
9857
9732
  const hasErrorMessage = !!errorMessage;
9858
9733
  const hasTip = !!tip;
@@ -9864,8 +9739,8 @@ var NativeSelect = (0, import_react99.forwardRef)(
9864
9739
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
9865
9740
  ["--dds-native-select-width"]: width ? width : componentSize === "tiny" ? "210px" : "var(--dds-input-default-width)"
9866
9741
  };
9867
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { children: [
9868
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
9742
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)("div", { children: [
9743
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9869
9744
  Label,
9870
9745
  {
9871
9746
  className: Input_default.label,
@@ -9875,8 +9750,8 @@ var NativeSelect = (0, import_react99.forwardRef)(
9875
9750
  children: label
9876
9751
  }
9877
9752
  ),
9878
- /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { className: NativeSelect_default.container, children: [
9879
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
9753
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)("div", { className: NativeSelect_default.container, children: [
9754
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9880
9755
  "select",
9881
9756
  {
9882
9757
  ref,
@@ -9914,7 +9789,7 @@ var NativeSelect = (0, import_react99.forwardRef)(
9914
9789
  children
9915
9790
  }
9916
9791
  ),
9917
- !multiple && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
9792
+ !multiple && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9918
9793
  Icon,
9919
9794
  {
9920
9795
  icon: ChevronDownIcon,
@@ -9927,9 +9802,9 @@ var NativeSelect = (0, import_react99.forwardRef)(
9927
9802
  ] });
9928
9803
  }
9929
9804
  );
9930
- var NativeSelectPlaceholder = (0, import_react99.forwardRef)((props, ref) => {
9805
+ var NativeSelectPlaceholder = (0, import_react98.forwardRef)((props, ref) => {
9931
9806
  const { children = "-- Velg fra listen --", value, ...rest } = props;
9932
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
9807
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
9933
9808
  });
9934
9809
  NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
9935
9810
 
@@ -9937,8 +9812,8 @@ NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
9937
9812
  var createSelectOptions = (...args) => args.map((v2) => ({ label: v2, value: v2 }));
9938
9813
 
9939
9814
  // src/components/Pagination/Pagination.tsx
9940
- var import_jsx_runtime260 = require("react/jsx-runtime");
9941
- var Pagination = (0, import_react100.forwardRef)(
9815
+ var import_jsx_runtime259 = require("react/jsx-runtime");
9816
+ var Pagination = (0, import_react99.forwardRef)(
9942
9817
  (props, ref) => {
9943
9818
  const {
9944
9819
  itemsAmount,
@@ -9961,8 +9836,8 @@ var Pagination = (0, import_react100.forwardRef)(
9961
9836
  htmlProps,
9962
9837
  ...rest
9963
9838
  } = props;
9964
- const [activePage, setActivePage] = (0, import_react100.useState)(defaultActivePage);
9965
- const [itemsPerPage, setItemsPerPage] = (0, import_react100.useState)(defaultItemsPerPage);
9839
+ const [activePage, setActivePage] = (0, import_react99.useState)(defaultActivePage);
9840
+ const [itemsPerPage, setItemsPerPage] = (0, import_react99.useState)(defaultItemsPerPage);
9966
9841
  const pagesLength = Math.ceil(itemsAmount / itemsPerPage);
9967
9842
  const items = PaginationGenerator(pagesLength, activePage);
9968
9843
  const onPageChange = (event, page) => {
@@ -9981,7 +9856,7 @@ var Pagination = (0, import_react100.forwardRef)(
9981
9856
  };
9982
9857
  const listItems = items.length > 0 ? items.map((item, i2) => {
9983
9858
  const isActive = item === activePage;
9984
- return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9859
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
9985
9860
  Button,
9986
9861
  {
9987
9862
  purpose: isActive ? "primary" : "secondary",
@@ -9992,7 +9867,7 @@ var Pagination = (0, import_react100.forwardRef)(
9992
9867
  "aria-label": isActive ? `N\xE5v\xE6rende side (side ${item})` : `G\xE5 til side ${item}`,
9993
9868
  children: item
9994
9869
  }
9995
- ) : /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9870
+ ) : /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
9996
9871
  Icon,
9997
9872
  {
9998
9873
  icon: MoreHorizontalIcon,
@@ -10000,7 +9875,7 @@ var Pagination = (0, import_react100.forwardRef)(
10000
9875
  }
10001
9876
  ) }, `pagination-item-${i2}`);
10002
9877
  }) : void 0;
10003
- const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9878
+ const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10004
9879
  Button,
10005
9880
  {
10006
9881
  purpose: "secondary",
@@ -10012,7 +9887,7 @@ var Pagination = (0, import_react100.forwardRef)(
10012
9887
  "aria-label": "G\xE5 til forrige siden"
10013
9888
  }
10014
9889
  );
10015
- const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9890
+ const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10016
9891
  Button,
10017
9892
  {
10018
9893
  purpose: "secondary",
@@ -10037,8 +9912,8 @@ var Pagination = (0, import_react100.forwardRef)(
10037
9912
  };
10038
9913
  const isOnFirstPage = activePage === 1;
10039
9914
  const isOnLastPage = activePage === pagesLength;
10040
- const largeScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("nav", { ref, "aria-label": "paginering", ...navProps(), children: /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)("ol", { className: Pagination_default.list, children: [
10041
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9915
+ const largeScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("nav", { ref, "aria-label": "paginering", ...navProps(), children: /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("ol", { className: Pagination_default.list, children: [
9916
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10042
9917
  "li",
10043
9918
  {
10044
9919
  className: cn(
@@ -10050,7 +9925,7 @@ var Pagination = (0, import_react100.forwardRef)(
10050
9925
  }
10051
9926
  ),
10052
9927
  listItems,
10053
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9928
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10054
9929
  "li",
10055
9930
  {
10056
9931
  className: cn(
@@ -10062,8 +9937,8 @@ var Pagination = (0, import_react100.forwardRef)(
10062
9937
  }
10063
9938
  )
10064
9939
  ] }) }) : null;
10065
- const smallScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("nav", { ref, "aria-label": "paginering", ...navProps(true), children: /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)("ol", { className: Pagination_default.list, children: [
10066
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9940
+ const smallScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("nav", { ref, "aria-label": "paginering", ...navProps(true), children: /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("ol", { className: Pagination_default.list, children: [
9941
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10067
9942
  "li",
10068
9943
  {
10069
9944
  className: cn(
@@ -10071,7 +9946,7 @@ var Pagination = (0, import_react100.forwardRef)(
10071
9946
  isOnFirstPage && Pagination_default["list__item--hidden"]
10072
9947
  ),
10073
9948
  "aria-hidden": isOnFirstPage,
10074
- children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9949
+ children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10075
9950
  Button,
10076
9951
  {
10077
9952
  purpose: "secondary",
@@ -10085,7 +9960,7 @@ var Pagination = (0, import_react100.forwardRef)(
10085
9960
  )
10086
9961
  }
10087
9962
  ),
10088
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9963
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10089
9964
  "li",
10090
9965
  {
10091
9966
  className: cn(
@@ -10096,7 +9971,7 @@ var Pagination = (0, import_react100.forwardRef)(
10096
9971
  children: previousPageButton
10097
9972
  }
10098
9973
  ),
10099
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9974
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10100
9975
  Button,
10101
9976
  {
10102
9977
  size: "small",
@@ -10106,7 +9981,7 @@ var Pagination = (0, import_react100.forwardRef)(
10106
9981
  children: activePage
10107
9982
  }
10108
9983
  ) }),
10109
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9984
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10110
9985
  "li",
10111
9986
  {
10112
9987
  className: cn(
@@ -10117,7 +9992,7 @@ var Pagination = (0, import_react100.forwardRef)(
10117
9992
  children: nextPageButton
10118
9993
  }
10119
9994
  ),
10120
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9995
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10121
9996
  "li",
10122
9997
  {
10123
9998
  className: cn(
@@ -10125,7 +10000,7 @@ var Pagination = (0, import_react100.forwardRef)(
10125
10000
  isOnLastPage && Pagination_default["list__item--hidden"]
10126
10001
  ),
10127
10002
  "aria-hidden": isOnLastPage,
10128
- children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
10003
+ children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10129
10004
  Button,
10130
10005
  {
10131
10006
  purpose: "secondary",
@@ -10142,10 +10017,10 @@ var Pagination = (0, import_react100.forwardRef)(
10142
10017
  ] }) }) : null;
10143
10018
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
10144
10019
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
10145
- return !withCounter && !withSelect ? /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(import_jsx_runtime260.Fragment, { children: [
10020
+ return !withCounter && !withSelect ? /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(import_jsx_runtime259.Fragment, { children: [
10146
10021
  largeScreenNavigation,
10147
10022
  smallScreenBreakpoint && smallScreenNavigation
10148
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
10023
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
10149
10024
  "div",
10150
10025
  {
10151
10026
  ...getBaseHTMLProps(
@@ -10159,8 +10034,8 @@ var Pagination = (0, import_react100.forwardRef)(
10159
10034
  rest
10160
10035
  ),
10161
10036
  children: [
10162
- /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)("div", { className: Pagination_default.indicators, children: [
10163
- withSelect && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
10037
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { className: Pagination_default.indicators, children: [
10038
+ withSelect && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10164
10039
  Select,
10165
10040
  {
10166
10041
  options: selectOptions,
@@ -10176,7 +10051,7 @@ var Pagination = (0, import_react100.forwardRef)(
10176
10051
  "aria-label": "Antall elementer per side"
10177
10052
  }
10178
10053
  ),
10179
- withCounter && /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Typography, { typographyType: "supportingStyleLabel01", as: "p", children: [
10054
+ withCounter && /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(Typography, { typographyType: "supportingStyleLabel01", as: "p", children: [
10180
10055
  "Viser ",
10181
10056
  activePageFirstItem,
10182
10057
  "-",
@@ -10196,7 +10071,7 @@ Pagination.displayName = "Pagination";
10196
10071
 
10197
10072
  // src/components/Popover/Popover.tsx
10198
10073
  var import_dds_design_tokens14 = require("@norges-domstoler/dds-design-tokens");
10199
- var import_react101 = require("react");
10074
+ var import_react100 = require("react");
10200
10075
 
10201
10076
  // src/components/Popover/Popover.module.css
10202
10077
  var Popover_default = {
@@ -10207,8 +10082,8 @@ var Popover_default = {
10207
10082
  };
10208
10083
 
10209
10084
  // src/components/Popover/Popover.tsx
10210
- var import_jsx_runtime261 = require("react/jsx-runtime");
10211
- var Popover = (0, import_react101.forwardRef)(
10085
+ var import_jsx_runtime260 = require("react/jsx-runtime");
10086
+ var Popover = (0, import_react100.forwardRef)(
10212
10087
  (props, ref) => {
10213
10088
  const {
10214
10089
  title,
@@ -10248,7 +10123,7 @@ var Popover = (0, import_react101.forwardRef)(
10248
10123
  useOnClickOutside(elements, () => {
10249
10124
  if (isOpen) onClose && onClose();
10250
10125
  });
10251
- return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
10126
+ return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
10252
10127
  Paper,
10253
10128
  {
10254
10129
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -10265,15 +10140,15 @@ var Popover = (0, import_react101.forwardRef)(
10265
10140
  focus_default.focusable
10266
10141
  ),
10267
10142
  children: [
10268
- title && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
10269
- /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
10143
+ title && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
10144
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
10270
10145
  "div",
10271
10146
  {
10272
10147
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-title"] : "",
10273
10148
  children
10274
10149
  }
10275
10150
  ),
10276
- withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
10151
+ withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
10277
10152
  Button,
10278
10153
  {
10279
10154
  icon: CloseIcon,
@@ -10292,8 +10167,8 @@ var Popover = (0, import_react101.forwardRef)(
10292
10167
  Popover.displayName = "Popover";
10293
10168
 
10294
10169
  // src/components/Popover/PopoverGroup.tsx
10295
- var import_react102 = require("react");
10296
- var import_jsx_runtime262 = require("react/jsx-runtime");
10170
+ var import_react101 = require("react");
10171
+ var import_jsx_runtime261 = require("react/jsx-runtime");
10297
10172
  var PopoverGroup = ({
10298
10173
  isOpen = false,
10299
10174
  onCloseButtonClick,
@@ -10301,8 +10176,8 @@ var PopoverGroup = ({
10301
10176
  children,
10302
10177
  popoverId
10303
10178
  }) => {
10304
- const [open, setOpen] = (0, import_react102.useState)(isOpen);
10305
- const generatedId = (0, import_react102.useId)();
10179
+ const [open, setOpen] = (0, import_react101.useState)(isOpen);
10180
+ const generatedId = (0, import_react101.useId)();
10306
10181
  const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
10307
10182
  const handleOnCloseButtonClick = () => {
10308
10183
  setOpen(false);
@@ -10312,8 +10187,8 @@ var PopoverGroup = ({
10312
10187
  setOpen(!open);
10313
10188
  onTriggerClick && onTriggerClick();
10314
10189
  };
10315
- const buttonRef = (0, import_react102.useRef)(null);
10316
- const popoverRef = (0, import_react102.useRef)(null);
10190
+ const buttonRef = (0, import_react101.useRef)(null);
10191
+ const popoverRef = (0, import_react101.useRef)(null);
10317
10192
  useOnKeyDown(["Esc", "Escape"], () => {
10318
10193
  var _a;
10319
10194
  if (open) {
@@ -10322,14 +10197,14 @@ var PopoverGroup = ({
10322
10197
  }
10323
10198
  });
10324
10199
  const handleClose = () => setOpen(false);
10325
- const Children8 = import_react102.Children.map(children, (child, childIndex) => {
10326
- return (0, import_react102.isValidElement)(child) && (childIndex === 0 ? (0, import_react102.cloneElement)(child, {
10200
+ const Children8 = import_react101.Children.map(children, (child, childIndex) => {
10201
+ return (0, import_react101.isValidElement)(child) && (childIndex === 0 ? (0, import_react101.cloneElement)(child, {
10327
10202
  "aria-haspopup": "dialog",
10328
10203
  "aria-controls": uniquePopoverId,
10329
10204
  "aria-expanded": open,
10330
10205
  onClick: handleOnTriggerClick,
10331
10206
  ref: buttonRef
10332
- }) : (0, import_react102.cloneElement)(child, {
10207
+ }) : (0, import_react101.cloneElement)(child, {
10333
10208
  isOpen: open,
10334
10209
  "aria-hidden": !open,
10335
10210
  id: uniquePopoverId,
@@ -10339,21 +10214,21 @@ var PopoverGroup = ({
10339
10214
  onClose: handleClose
10340
10215
  }));
10341
10216
  });
10342
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(import_jsx_runtime262.Fragment, { children: Children8 });
10217
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(import_jsx_runtime261.Fragment, { children: Children8 });
10343
10218
  };
10344
10219
  PopoverGroup.displayName = "PopoverGroup";
10345
10220
 
10346
10221
  // src/components/ProgressTracker/ProgressTracker.tsx
10347
- var import_react105 = require("react");
10222
+ var import_react104 = require("react");
10348
10223
 
10349
10224
  // src/components/ProgressTracker/ProgressTracker.context.tsx
10350
- var import_react103 = require("react");
10351
- var ProgressTrackerContext = (0, import_react103.createContext)(
10225
+ var import_react102 = require("react");
10226
+ var ProgressTrackerContext = (0, import_react102.createContext)(
10352
10227
  {
10353
10228
  activeStep: 0
10354
10229
  }
10355
10230
  );
10356
- var useProgressTrackerContext = () => (0, import_react103.useContext)(ProgressTrackerContext);
10231
+ var useProgressTrackerContext = () => (0, import_react102.useContext)(ProgressTrackerContext);
10357
10232
 
10358
10233
  // src/components/ProgressTracker/ProgressTracker.module.css
10359
10234
  var ProgressTracker_default = {
@@ -10377,8 +10252,8 @@ var ProgressTracker_default = {
10377
10252
  };
10378
10253
 
10379
10254
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
10380
- var import_react104 = require("react");
10381
- var import_jsx_runtime263 = require("react/jsx-runtime");
10255
+ var import_react103 = require("react");
10256
+ var import_jsx_runtime262 = require("react/jsx-runtime");
10382
10257
  var toItemState = (active, completed, disabled) => {
10383
10258
  if (disabled) {
10384
10259
  return "disabled";
@@ -10408,17 +10283,17 @@ var ProgressTrackerItem = (props) => {
10408
10283
  const { activeStep, handleStepChange } = useProgressTrackerContext();
10409
10284
  const active = activeStep === index;
10410
10285
  const itemState = toItemState(active, completed, disabled);
10411
- const stepNumberContent = (0, import_react104.useMemo)(() => {
10286
+ const stepNumberContent = (0, import_react103.useMemo)(() => {
10412
10287
  if (completed) {
10413
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
10288
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
10414
10289
  }
10415
10290
  if (icon !== void 0) {
10416
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Icon, { icon, iconSize: "small" });
10291
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Icon, { icon, iconSize: "small" });
10417
10292
  }
10418
10293
  return index + 1;
10419
10294
  }, [completed, icon, index]);
10420
- const stepContent = /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_jsx_runtime263.Fragment, { children: [
10421
- /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10295
+ const stepContent = /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(import_jsx_runtime262.Fragment, { children: [
10296
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
10422
10297
  "div",
10423
10298
  {
10424
10299
  "aria-hidden": true,
@@ -10430,7 +10305,7 @@ var ProgressTrackerItem = (props) => {
10430
10305
  children: stepNumberContent
10431
10306
  }
10432
10307
  ),
10433
- /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
10308
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
10434
10309
  "div",
10435
10310
  {
10436
10311
  className: cn(
@@ -10439,13 +10314,13 @@ var ProgressTrackerItem = (props) => {
10439
10314
  typographyStyles_default["body-sans-03"]
10440
10315
  ),
10441
10316
  children: [
10442
- /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
10317
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
10443
10318
  children
10444
10319
  ]
10445
10320
  }
10446
10321
  )
10447
10322
  ] });
10448
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10323
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
10449
10324
  "button",
10450
10325
  {
10451
10326
  onClick: !disabled && handleStepChange ? () => handleStepChange(index) : void 0,
@@ -10453,14 +10328,14 @@ var ProgressTrackerItem = (props) => {
10453
10328
  className: cn(ProgressTracker_default["item-button"], focusable),
10454
10329
  children: stepContent
10455
10330
  }
10456
- ) : /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("div", { className: cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"]), children: stepContent }) });
10331
+ ) : /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("div", { className: cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"]), children: stepContent }) });
10457
10332
  };
10458
10333
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
10459
10334
 
10460
10335
  // src/components/ProgressTracker/ProgressTracker.tsx
10461
- var import_jsx_runtime264 = require("react/jsx-runtime");
10336
+ var import_jsx_runtime263 = require("react/jsx-runtime");
10462
10337
  var ProgressTracker = (() => {
10463
- const Res = (0, import_react105.forwardRef)((props, ref) => {
10338
+ const Res = (0, import_react104.forwardRef)((props, ref) => {
10464
10339
  const {
10465
10340
  id,
10466
10341
  activeStep = 0,
@@ -10470,12 +10345,12 @@ var ProgressTracker = (() => {
10470
10345
  htmlProps,
10471
10346
  ...rest
10472
10347
  } = props;
10473
- const [thisActiveStep, setActiveStep] = (0, import_react105.useState)(activeStep);
10348
+ const [thisActiveStep, setActiveStep] = (0, import_react104.useState)(activeStep);
10474
10349
  const handleChange = (step) => {
10475
10350
  setActiveStep(step);
10476
10351
  onStepChange && onStepChange(step);
10477
10352
  };
10478
- (0, import_react105.useEffect)(() => {
10353
+ (0, import_react104.useEffect)(() => {
10479
10354
  if (activeStep !== void 0 && activeStep != thisActiveStep) {
10480
10355
  setActiveStep(activeStep);
10481
10356
  }
@@ -10484,20 +10359,20 @@ var ProgressTracker = (() => {
10484
10359
  ...getBaseHTMLProps(id, className, htmlProps, rest),
10485
10360
  ref
10486
10361
  };
10487
- const steps = (0, import_react105.useMemo)(() => {
10362
+ const steps = (0, import_react104.useMemo)(() => {
10488
10363
  const validChildren = removeInvalidChildren(children);
10489
10364
  const itemsWithIndex = passIndexPropToProgressTrackerItem(validChildren);
10490
10365
  const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
10491
10366
  return itemsWithConnectorsBetween;
10492
10367
  }, [children]);
10493
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
10368
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10494
10369
  ProgressTrackerContext.Provider,
10495
10370
  {
10496
10371
  value: {
10497
10372
  activeStep: thisActiveStep,
10498
10373
  handleStepChange: handleChange
10499
10374
  },
10500
- children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)("ol", { className: ProgressTracker_default.list, children: steps }) })
10375
+ children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("ol", { className: ProgressTracker_default.list, children: steps }) })
10501
10376
  }
10502
10377
  );
10503
10378
  });
@@ -10506,23 +10381,23 @@ var ProgressTracker = (() => {
10506
10381
  return Res;
10507
10382
  })();
10508
10383
  function removeInvalidChildren(children) {
10509
- return import_react105.Children.toArray(children).filter(import_react105.isValidElement);
10384
+ return import_react104.Children.toArray(children).filter(import_react104.isValidElement);
10510
10385
  }
10511
10386
  function passIndexPropToProgressTrackerItem(children) {
10512
- return import_react105.Children.map(
10387
+ return import_react104.Children.map(
10513
10388
  children,
10514
- (item, index) => (0, import_react105.cloneElement)(item, {
10389
+ (item, index) => (0, import_react104.cloneElement)(item, {
10515
10390
  ...item.props,
10516
10391
  index
10517
10392
  })
10518
10393
  );
10519
10394
  }
10520
- var intersperseItemsWithConnector = (children) => import_react105.Children.map(children, (child, index) => {
10395
+ var intersperseItemsWithConnector = (children) => import_react104.Children.map(children, (child, index) => {
10521
10396
  if (index === 0) {
10522
10397
  return child;
10523
10398
  }
10524
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(import_react105.Fragment, { children: [
10525
- /* @__PURE__ */ (0, import_jsx_runtime264.jsx)("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
10399
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_react104.Fragment, { children: [
10400
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
10526
10401
  child
10527
10402
  ] }, index);
10528
10403
  });
@@ -10531,10 +10406,10 @@ var intersperseItemsWithConnector = (children) => import_react105.Children.map(c
10531
10406
  var import_react108 = require("react");
10532
10407
 
10533
10408
  // src/components/Search/AutocompleteSearch.context.tsx
10534
- var import_react106 = require("react");
10535
- var AutocompleteSearchContext = (0, import_react106.createContext)({});
10409
+ var import_react105 = require("react");
10410
+ var AutocompleteSearchContext = (0, import_react105.createContext)({});
10536
10411
  var useAutocompleteSearch = () => {
10537
- return (0, import_react106.useContext)(AutocompleteSearchContext);
10412
+ return (0, import_react105.useContext)(AutocompleteSearchContext);
10538
10413
  };
10539
10414
 
10540
10415
  // src/components/Search/Search.module.css
@@ -10585,6 +10460,39 @@ function createEmptyChangeEvent(inputElementId) {
10585
10460
 
10586
10461
  // src/components/Search/SearchSuggestions.tsx
10587
10462
  var import_react107 = require("react");
10463
+
10464
+ // src/components/Search/SearchSuggestionItem.tsx
10465
+ var import_react106 = require("react");
10466
+ var import_jsx_runtime264 = require("react/jsx-runtime");
10467
+ var SearchSuggestionItem = (0, import_react106.forwardRef)((props, ref) => {
10468
+ const { focus, className, ...rest } = props;
10469
+ const itemRef = (0, import_react106.useRef)(null);
10470
+ const combinedRef = useCombinedRef(ref, itemRef);
10471
+ (0, import_react106.useEffect)(() => {
10472
+ var _a;
10473
+ if (focus) {
10474
+ (_a = itemRef.current) == null ? void 0 : _a.focus();
10475
+ }
10476
+ }, [focus]);
10477
+ return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
10478
+ "button",
10479
+ {
10480
+ ref: combinedRef,
10481
+ className: cn(
10482
+ className,
10483
+ OverflowMenu_default.list__item,
10484
+ OverflowMenu_default["list__item--link"],
10485
+ focus_default["focusable--inset"],
10486
+ utilStyles_default["normalize-button"]
10487
+ ),
10488
+ ...rest,
10489
+ tabIndex: focus ? 0 : -1
10490
+ }
10491
+ );
10492
+ });
10493
+ SearchSuggestionItem.displayName = "SearchSuggestionItem";
10494
+
10495
+ // src/components/Search/SearchSuggestions.tsx
10588
10496
  var import_jsx_runtime265 = require("react/jsx-runtime");
10589
10497
  var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10590
10498
  const {
@@ -10605,29 +10513,6 @@ var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10605
10513
  );
10606
10514
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
10607
10515
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
10608
- const renderedSuggestions = /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
10609
- "ul",
10610
- {
10611
- role: "listbox",
10612
- "aria-labelledby": suggestionsHeaderId,
10613
- className: utilStyles_default["remove-list-styling"],
10614
- children: suggestionsToRender.map((suggestion, index) => {
10615
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
10616
- OverflowMenuItem,
10617
- {
10618
- index,
10619
- focus: focus === index && showSuggestions,
10620
- "aria-label": `s\xF8k p\xE5 ${suggestion}`,
10621
- onClick: onSuggestionClick,
10622
- title: suggestion,
10623
- "aria-setsize": suggestionsToRender.length,
10624
- "aria-posinset": index,
10625
- className: typographyStyles_default[getTypographyCn(typographyTypes3[componentSize])]
10626
- }
10627
- ) }, index);
10628
- })
10629
- }
10630
- );
10631
10516
  return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
10632
10517
  Paper,
10633
10518
  {
@@ -10658,7 +10543,29 @@ var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10658
10543
  children: "S\xF8keforslag"
10659
10544
  }
10660
10545
  ),
10661
- renderedSuggestions
10546
+ /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
10547
+ "ul",
10548
+ {
10549
+ role: "listbox",
10550
+ "aria-labelledby": suggestionsHeaderId,
10551
+ className: utilStyles_default["remove-list-styling"],
10552
+ children: suggestionsToRender.map((suggestion, index) => {
10553
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
10554
+ SearchSuggestionItem,
10555
+ {
10556
+ index,
10557
+ focus: focus === index && showSuggestions,
10558
+ "aria-label": `s\xF8k p\xE5 ${suggestion}`,
10559
+ onClick: onSuggestionClick,
10560
+ "aria-setsize": suggestionsToRender.length,
10561
+ "aria-posinset": index,
10562
+ className: typographyStyles_default[getTypographyCn(typographyTypes3[componentSize])],
10563
+ children: suggestion
10564
+ }
10565
+ ) }, index);
10566
+ })
10567
+ }
10568
+ )
10662
10569
  ]
10663
10570
  }
10664
10571
  );
@@ -11456,7 +11363,7 @@ var SplitButton = (0, import_react118.forwardRef)(
11456
11363
  )
11457
11364
  }
11458
11365
  ),
11459
- /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(OverflowMenuList, { children: secondaryActions.map((item) => /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(OverflowMenuButton, { ...item, children: item.title })) }) })
11366
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(OverflowMenuList, { children: secondaryActions.map((item) => /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(OverflowMenuButton, { ...item, children: item.children })) }) })
11460
11367
  ] })
11461
11368
  ] });
11462
11369
  }