@arbeidstilsynet/design-react 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +510 -376
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +511 -380
- package/dist/index.js.map +1 -1
- package/dist/src/components/header/header.d.ts +28 -3
- package/dist/src/components/header/headerContext.d.ts +8 -0
- package/dist/src/components/header/headerIllustration.d.ts +24 -0
- package/dist/src/components/header/headerLogo.d.ts +25 -0
- package/dist/src/components/header/headerMenu.d.ts +57 -0
- package/dist/src/components/header/headerMenuRow.d.ts +17 -0
- package/dist/src/components/header/headerNavbar.d.ts +21 -0
- package/dist/src/components/header/headerTitle.d.ts +28 -8
- package/dist/src/components/header/index.d.ts +89 -20
- package/dist/src/components/header/stories-helpers/headerStoriesIllustration.d.ts +4 -0
- package/dist/src/components/header/stories-helpers/headerStoriesTitle.d.ts +4 -0
- package/dist/src/digdir.d.ts +1 -1
- package/package.json +19 -19
- package/dist/src/components/header/headerDefaultLogo.d.ts +0 -5
- package/dist/src/components/header/headerTitleDropdown.d.ts +0 -14
- package/dist/src/components/header/headerTitleLinks.d.ts +0 -11
- package/dist/src/components/header/headerTitleLogo.d.ts +0 -7
package/dist/index.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import require$$0, { createContext, use, useLayoutEffect, useEffect, useState,
|
|
2
|
+
import require$$0, { createContext, use, useRef, useLayoutEffect, useEffect, useState, isValidElement } from "react";
|
|
3
3
|
import { CloudUpIcon, TrashIcon, XMarkIcon, MenuHamburgerIcon, ChevronUpIcon, ChevronDownIcon } from "@navikt/aksel-icons";
|
|
4
4
|
import { useDropzone } from "react-dropzone";
|
|
5
|
-
import { Spinner, Button, ValidationMessage, Table, Link, Dropdown, Divider
|
|
6
|
-
import { Alert, Avatar, Badge, BadgePosition, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, BreadcrumbsList, Button as Button2, Card, CardBlock, Checkbox, Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable, Combobox, ComboboxEmpty, ComboboxOption, Details, DetailsContent, DetailsSummary, Dialog, DialogBlock, DialogTrigger, DialogTriggerContext, Divider as Divider2, Dropdown as Dropdown2, DropdownButton, DropdownHeading, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext, EXPERIMENTAL_Suggestion, EXPERIMENTAL_SuggestionClear, EXPERIMENTAL_SuggestionEmpty, EXPERIMENTAL_SuggestionInput, EXPERIMENTAL_SuggestionList, EXPERIMENTAL_SuggestionOption, ErrorSummary, ErrorSummaryHeading, ErrorSummaryItem, ErrorSummaryLink, ErrorSummaryList, Field, FieldAffix, FieldAffixes, FieldCounter, FieldDescription, Fieldset, FieldsetDescription, FieldsetLegend, Heading
|
|
5
|
+
import { Spinner, Button, ValidationMessage, Table, Link, Dropdown, Divider } from "@digdir/designsystemet-react";
|
|
6
|
+
import { Alert, Avatar, Badge, BadgePosition, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, BreadcrumbsList, Button as Button2, Card, CardBlock, Checkbox, Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable, Combobox, ComboboxEmpty, ComboboxOption, Details, DetailsContent, DetailsSummary, Dialog, DialogBlock, DialogTrigger, DialogTriggerContext, Divider as Divider2, Dropdown as Dropdown2, DropdownButton, DropdownHeading, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext, EXPERIMENTAL_AvatarStack, EXPERIMENTAL_Suggestion, EXPERIMENTAL_SuggestionClear, EXPERIMENTAL_SuggestionEmpty, EXPERIMENTAL_SuggestionInput, EXPERIMENTAL_SuggestionList, EXPERIMENTAL_SuggestionOption, ErrorSummary, ErrorSummaryHeading, ErrorSummaryItem, ErrorSummaryLink, ErrorSummaryList, Field, FieldAffix, FieldAffixes, FieldCounter, FieldDescription, Fieldset, FieldsetDescription, FieldsetLegend, Heading, Input, Label, Link as Link2, List, ListItem, ListOrdered, ListUnordered, Pagination, PaginationButton, PaginationItem, PaginationList, Paragraph, Popover, PopoverTrigger, PopoverTriggerContext, Radio, RovingFocusItem, RovingFocusRoot, Search, SearchButton, SearchClear, SearchInput, Select, SelectOptgroup, SelectOption, Skeleton, SkipLink, Spinner as Spinner2, Switch, Table as Table2, TableBody, TableCell, TableFoot, TableHead, TableHeaderCell, TableRow, Tabs, TabsList, TabsPanel, TabsTab, Tag, Textarea, Textfield, ToggleGroup, ToggleGroupItem, Tooltip, ValidationMessage as ValidationMessage2, omit, useCheckboxGroup, useDebounceCallback, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useRadioGroup, useSynchronizedAnimation } from "@digdir/designsystemet-react";
|
|
7
7
|
import { Slot } from "@radix-ui/react-slot";
|
|
8
|
+
import clsx$1 from "clsx";
|
|
8
9
|
var jsxRuntime = { exports: {} };
|
|
9
10
|
var reactJsxRuntime_production = {};
|
|
10
11
|
var hasRequiredReactJsxRuntime_production;
|
|
11
12
|
function requireReactJsxRuntime_production() {
|
|
12
13
|
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
13
14
|
hasRequiredReactJsxRuntime_production = 1;
|
|
14
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
15
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
15
16
|
function jsxProd(type, config, maybeKey) {
|
|
16
17
|
var key = null;
|
|
17
18
|
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
@@ -250,7 +251,7 @@ function requireReactJsxRuntime_development() {
|
|
|
250
251
|
function isValidElement2(object) {
|
|
251
252
|
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
252
253
|
}
|
|
253
|
-
var React = require$$0, REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
254
|
+
var React = require$$0, REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
254
255
|
return null;
|
|
255
256
|
};
|
|
256
257
|
React = {
|
|
@@ -470,7 +471,7 @@ function DefaultLabel(t0) {
|
|
|
470
471
|
const text3 = defaultLabelText?.[2];
|
|
471
472
|
let t1;
|
|
472
473
|
let t2;
|
|
473
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
474
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
474
475
|
t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(CloudUpIcon, { title: "Cloud" });
|
|
475
476
|
t2 = {
|
|
476
477
|
display: "flex",
|
|
@@ -483,7 +484,7 @@ function DefaultLabel(t0) {
|
|
|
483
484
|
t2 = $[1];
|
|
484
485
|
}
|
|
485
486
|
let t3;
|
|
486
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
487
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
487
488
|
t3 = {
|
|
488
489
|
textDecoration: "underline"
|
|
489
490
|
};
|
|
@@ -909,17 +910,25 @@ const FilePicker = Object.assign(FilePicker$1, {
|
|
|
909
910
|
Files: FilePickerFiles,
|
|
910
911
|
Errors: FilePickerErrors
|
|
911
912
|
});
|
|
913
|
+
const HeaderContext = createContext({
|
|
914
|
+
links: [],
|
|
915
|
+
headerRef: {
|
|
916
|
+
current: null
|
|
917
|
+
}
|
|
918
|
+
});
|
|
912
919
|
function Header$1(t0) {
|
|
913
|
-
const $ = compilerRuntimeExports.c(
|
|
920
|
+
const $ = compilerRuntimeExports.c(23);
|
|
914
921
|
let children;
|
|
915
922
|
let className;
|
|
916
923
|
let ref;
|
|
917
924
|
let rest;
|
|
925
|
+
let t1;
|
|
918
926
|
if ($[0] !== t0) {
|
|
919
927
|
({
|
|
920
928
|
ref,
|
|
921
929
|
className,
|
|
922
930
|
children,
|
|
931
|
+
links: t1,
|
|
923
932
|
...rest
|
|
924
933
|
} = t0);
|
|
925
934
|
$[0] = t0;
|
|
@@ -927,155 +936,154 @@ function Header$1(t0) {
|
|
|
927
936
|
$[2] = className;
|
|
928
937
|
$[3] = ref;
|
|
929
938
|
$[4] = rest;
|
|
939
|
+
$[5] = t1;
|
|
930
940
|
} else {
|
|
931
941
|
children = $[1];
|
|
932
942
|
className = $[2];
|
|
933
943
|
ref = $[3];
|
|
934
944
|
rest = $[4];
|
|
945
|
+
t1 = $[5];
|
|
935
946
|
}
|
|
936
|
-
let
|
|
937
|
-
if ($[
|
|
938
|
-
|
|
939
|
-
$[5] = className;
|
|
947
|
+
let t2;
|
|
948
|
+
if ($[6] !== t1) {
|
|
949
|
+
t2 = t1 === void 0 ? [] : t1;
|
|
940
950
|
$[6] = t1;
|
|
951
|
+
$[7] = t2;
|
|
941
952
|
} else {
|
|
942
|
-
|
|
953
|
+
t2 = $[7];
|
|
943
954
|
}
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
955
|
+
const links = t2;
|
|
956
|
+
const internalRef = useRef(null);
|
|
957
|
+
const headerRef = ref ?? internalRef;
|
|
958
|
+
let t3;
|
|
959
|
+
if ($[8] !== headerRef || $[9] !== links) {
|
|
960
|
+
t3 = {
|
|
961
|
+
links,
|
|
962
|
+
headerRef
|
|
963
|
+
};
|
|
964
|
+
$[8] = headerRef;
|
|
965
|
+
$[9] = links;
|
|
966
|
+
$[10] = t3;
|
|
952
967
|
} else {
|
|
953
|
-
|
|
968
|
+
t3 = $[10];
|
|
954
969
|
}
|
|
955
|
-
return t2;
|
|
956
|
-
}
|
|
957
|
-
function HeaderDefaultLogo(t0) {
|
|
958
|
-
const $ = compilerRuntimeExports.c(23);
|
|
959
|
-
const {
|
|
960
|
-
width: t1,
|
|
961
|
-
height: t2
|
|
962
|
-
} = t0;
|
|
963
|
-
const width = t1 === void 0 ? 48 : t1;
|
|
964
|
-
const height = t2 === void 0 ? 40 : t2;
|
|
965
|
-
let t10;
|
|
966
|
-
let t11;
|
|
967
|
-
let t12;
|
|
968
|
-
let t13;
|
|
969
|
-
let t14;
|
|
970
|
-
let t15;
|
|
971
|
-
let t16;
|
|
972
|
-
let t17;
|
|
973
|
-
let t18;
|
|
974
|
-
let t19;
|
|
975
|
-
let t20;
|
|
976
|
-
let t21;
|
|
977
|
-
let t22;
|
|
978
|
-
let t3;
|
|
979
970
|
let t4;
|
|
971
|
+
if ($[11] !== className) {
|
|
972
|
+
t4 = clsx("at-header", className);
|
|
973
|
+
$[11] = className;
|
|
974
|
+
$[12] = t4;
|
|
975
|
+
} else {
|
|
976
|
+
t4 = $[12];
|
|
977
|
+
}
|
|
980
978
|
let t5;
|
|
979
|
+
if ($[13] !== children) {
|
|
980
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__container", children });
|
|
981
|
+
$[13] = children;
|
|
982
|
+
$[14] = t5;
|
|
983
|
+
} else {
|
|
984
|
+
t5 = $[14];
|
|
985
|
+
}
|
|
981
986
|
let t6;
|
|
987
|
+
if ($[15] !== headerRef || $[16] !== rest || $[17] !== t4 || $[18] !== t5) {
|
|
988
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("header", { ref: headerRef, className: t4, ...rest, children: t5 });
|
|
989
|
+
$[15] = headerRef;
|
|
990
|
+
$[16] = rest;
|
|
991
|
+
$[17] = t4;
|
|
992
|
+
$[18] = t5;
|
|
993
|
+
$[19] = t6;
|
|
994
|
+
} else {
|
|
995
|
+
t6 = $[19];
|
|
996
|
+
}
|
|
982
997
|
let t7;
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "34.2183", y: "6.36298", width: "2.08381", height: "0.108768", fill: "#085E55" });
|
|
989
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "7.67719", y: "13.5688", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
990
|
-
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "6.27887", y: "12.8889", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
991
|
-
t8 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "37.3441", y: "15.7985", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
992
|
-
t9 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "36.1102", y: "16.4512", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
993
|
-
t10 = /* @__PURE__ */ jsxRuntimeExports.jsx("ellipse", { cx: "30.2138", cy: "10.6896", rx: "4.8805", ry: "4.84016", fill: "white" });
|
|
994
|
-
t11 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M27.5607 7.28931C27.6145 7.24779 27.692 7.25736 27.7339 7.31068L30.3616 10.6573L30.5837 13.631C30.5887 13.6983 30.5377 13.757 30.4697 13.762C30.4018 13.767 30.3426 13.7164 30.3376 13.649L30.121 10.7492L27.5392 7.46104C27.4973 7.40772 27.5069 7.33083 27.5607 7.28931Z", fill: "black" });
|
|
995
|
-
t12 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { y: "38.9753", width: "48", height: "0.29752", fill: "black" });
|
|
996
|
-
t13 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19.1388 13.5608C19.1388 12.6441 18.3894 11.9009 17.465 11.9009H15.8471C14.9227 11.9009 14.1733 12.6441 14.1733 13.5608V22.7458H19.1388V13.5608Z", fill: "#FFE9B4" });
|
|
997
|
-
t14 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19.1388 13.4778C19.1388 12.6069 18.4269 11.9009 17.5487 11.9009H15.8471C14.9227 11.9009 14.1733 12.6441 14.1733 13.5608V15.0547H17.5487C18.4269 15.0547 19.1388 14.3487 19.1388 13.4778Z", fill: "black" });
|
|
998
|
-
t15 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14.1733 13.9482H13.5038C12.5794 13.9482 11.8301 14.6914 11.8301 15.6082V22.7459H14.1733V13.9482Z", fill: "black" });
|
|
999
|
-
t16 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M11.8301 17.1574H11.7185C10.7941 17.1574 10.0447 17.9006 10.0447 18.8174V23.0225H11.8301V17.1574Z", fill: "black" });
|
|
1000
|
-
t17 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M9.48675 38.8454L9.56881 37.6655L8.70715 24.1285C8.64853 23.2105 9.39296 22.4363 10.3308 22.4392L13.4228 22.4507H16.4384H18.247L21.9193 22.4421C22.948 22.4421 23.7657 23.2882 23.7071 24.2954L22.0248 38.8857L21.7904 38.8771L9.48675 38.8454Z", fill: "#11C1B0" });
|
|
1001
|
-
t18 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M21.7639 23.7544C22.7926 23.4493 23.3905 22.7212 23.6865 23.7371L26.6525 32.8337L36.758 36.4597C37.2298 36.6295 37.4584 37.159 37.2504 37.608C37.0774 37.9878 36.6466 38.1893 36.2363 38.0799L24.0734 34.9029L20.3219 25.3141C19.9556 24.2954 20.7088 24.0623 21.7609 23.7515L21.7639 23.7544Z", fill: "#11C1B0" });
|
|
1002
|
-
t19 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12.693 23.8752L15.1402 33.205L25.4597 37.0756C25.9433 37.2569 26.166 37.8037 25.9491 38.2613C25.7645 38.6498 25.3219 38.8483 24.9028 38.7332L12.4644 35.2943L8.91224 25.0033L12.693 23.8752Z", fill: "#11C1B0" });
|
|
1003
|
-
t20 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M22.9831 36.1431L25.4626 37.0727C25.9462 37.254 26.1689 37.8007 25.9521 38.2583C25.7674 38.6468 25.3249 38.8454 24.9058 38.7303L22.0013 37.9302L22.9831 36.1431Z", fill: "#FFE9B4" });
|
|
1004
|
-
t21 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.2147 37.8959H39.8588V38.8887H18.2147V37.8959Z", fill: "#085E55" });
|
|
1005
|
-
t22 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M26.1426 38.8138H39.8588L42.353 28.5516H28.6367L26.1426 38.8138Z", fill: "#085E55" });
|
|
1006
|
-
$[0] = t10;
|
|
1007
|
-
$[1] = t11;
|
|
1008
|
-
$[2] = t12;
|
|
1009
|
-
$[3] = t13;
|
|
1010
|
-
$[4] = t14;
|
|
1011
|
-
$[5] = t15;
|
|
1012
|
-
$[6] = t16;
|
|
1013
|
-
$[7] = t17;
|
|
1014
|
-
$[8] = t18;
|
|
1015
|
-
$[9] = t19;
|
|
1016
|
-
$[10] = t20;
|
|
1017
|
-
$[11] = t21;
|
|
1018
|
-
$[12] = t22;
|
|
1019
|
-
$[13] = t3;
|
|
1020
|
-
$[14] = t4;
|
|
1021
|
-
$[15] = t5;
|
|
1022
|
-
$[16] = t6;
|
|
1023
|
-
$[17] = t7;
|
|
1024
|
-
$[18] = t8;
|
|
1025
|
-
$[19] = t9;
|
|
998
|
+
if ($[20] !== t3 || $[21] !== t6) {
|
|
999
|
+
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderContext, { value: t3, children: t6 });
|
|
1000
|
+
$[20] = t3;
|
|
1001
|
+
$[21] = t6;
|
|
1002
|
+
$[22] = t7;
|
|
1026
1003
|
} else {
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
t9 = $[19];
|
|
1047
|
-
}
|
|
1048
|
-
let t23;
|
|
1049
|
-
if ($[20] !== height || $[21] !== width) {
|
|
1050
|
-
t23 = /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width, height, viewBox: "0 0 48 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1051
|
-
t3,
|
|
1052
|
-
t4,
|
|
1053
|
-
t5,
|
|
1054
|
-
t6,
|
|
1055
|
-
t7,
|
|
1056
|
-
t8,
|
|
1057
|
-
t9,
|
|
1058
|
-
t10,
|
|
1059
|
-
t11,
|
|
1060
|
-
t12,
|
|
1061
|
-
t13,
|
|
1062
|
-
t14,
|
|
1063
|
-
t15,
|
|
1064
|
-
t16,
|
|
1065
|
-
t17,
|
|
1066
|
-
t18,
|
|
1067
|
-
t19,
|
|
1068
|
-
t20,
|
|
1069
|
-
t21,
|
|
1070
|
-
t22
|
|
1071
|
-
] });
|
|
1072
|
-
$[20] = height;
|
|
1073
|
-
$[21] = width;
|
|
1074
|
-
$[22] = t23;
|
|
1004
|
+
t7 = $[22];
|
|
1005
|
+
}
|
|
1006
|
+
return t7;
|
|
1007
|
+
}
|
|
1008
|
+
function HeaderIllustration(t0) {
|
|
1009
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1010
|
+
let children;
|
|
1011
|
+
let className;
|
|
1012
|
+
let rest;
|
|
1013
|
+
if ($[0] !== t0) {
|
|
1014
|
+
({
|
|
1015
|
+
className,
|
|
1016
|
+
children,
|
|
1017
|
+
...rest
|
|
1018
|
+
} = t0);
|
|
1019
|
+
$[0] = t0;
|
|
1020
|
+
$[1] = children;
|
|
1021
|
+
$[2] = className;
|
|
1022
|
+
$[3] = rest;
|
|
1075
1023
|
} else {
|
|
1076
|
-
|
|
1024
|
+
children = $[1];
|
|
1025
|
+
className = $[2];
|
|
1026
|
+
rest = $[3];
|
|
1027
|
+
}
|
|
1028
|
+
let t1;
|
|
1029
|
+
if ($[4] !== className) {
|
|
1030
|
+
t1 = clsx("at-header__illustration", className);
|
|
1031
|
+
$[4] = className;
|
|
1032
|
+
$[5] = t1;
|
|
1033
|
+
} else {
|
|
1034
|
+
t1 = $[5];
|
|
1077
1035
|
}
|
|
1078
|
-
|
|
1036
|
+
let t2;
|
|
1037
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
1038
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
|
|
1039
|
+
$[6] = children;
|
|
1040
|
+
$[7] = rest;
|
|
1041
|
+
$[8] = t1;
|
|
1042
|
+
$[9] = t2;
|
|
1043
|
+
} else {
|
|
1044
|
+
t2 = $[9];
|
|
1045
|
+
}
|
|
1046
|
+
return t2;
|
|
1047
|
+
}
|
|
1048
|
+
function HeaderLogo(t0) {
|
|
1049
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1050
|
+
let children;
|
|
1051
|
+
let className;
|
|
1052
|
+
let rest;
|
|
1053
|
+
if ($[0] !== t0) {
|
|
1054
|
+
({
|
|
1055
|
+
className,
|
|
1056
|
+
children,
|
|
1057
|
+
...rest
|
|
1058
|
+
} = t0);
|
|
1059
|
+
$[0] = t0;
|
|
1060
|
+
$[1] = children;
|
|
1061
|
+
$[2] = className;
|
|
1062
|
+
$[3] = rest;
|
|
1063
|
+
} else {
|
|
1064
|
+
children = $[1];
|
|
1065
|
+
className = $[2];
|
|
1066
|
+
rest = $[3];
|
|
1067
|
+
}
|
|
1068
|
+
let t1;
|
|
1069
|
+
if ($[4] !== className) {
|
|
1070
|
+
t1 = clsx("at-header__logo", className);
|
|
1071
|
+
$[4] = className;
|
|
1072
|
+
$[5] = t1;
|
|
1073
|
+
} else {
|
|
1074
|
+
t1 = $[5];
|
|
1075
|
+
}
|
|
1076
|
+
let t2;
|
|
1077
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
1078
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
|
|
1079
|
+
$[6] = children;
|
|
1080
|
+
$[7] = rest;
|
|
1081
|
+
$[8] = t1;
|
|
1082
|
+
$[9] = t2;
|
|
1083
|
+
} else {
|
|
1084
|
+
t2 = $[9];
|
|
1085
|
+
}
|
|
1086
|
+
return t2;
|
|
1079
1087
|
}
|
|
1080
1088
|
const useIsomorphicLayoutEffect2 = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
1081
1089
|
const IS_SERVER = typeof window === "undefined";
|
|
@@ -1173,344 +1181,459 @@ function useMediaQuery2(query, t0) {
|
|
|
1173
1181
|
useIsomorphicLayoutEffect2(t7, t8);
|
|
1174
1182
|
return matches;
|
|
1175
1183
|
}
|
|
1176
|
-
function
|
|
1177
|
-
const $ = compilerRuntimeExports.c(
|
|
1184
|
+
function HeaderMenu(t0) {
|
|
1185
|
+
const $ = compilerRuntimeExports.c(53);
|
|
1178
1186
|
let children;
|
|
1179
1187
|
let className;
|
|
1180
|
-
let controls;
|
|
1181
|
-
let links;
|
|
1182
1188
|
let rest;
|
|
1183
|
-
let
|
|
1189
|
+
let t1;
|
|
1190
|
+
let t2;
|
|
1191
|
+
let triggerContent;
|
|
1184
1192
|
if ($[0] !== t0) {
|
|
1185
1193
|
({
|
|
1186
1194
|
className,
|
|
1187
|
-
controls,
|
|
1188
|
-
links,
|
|
1189
|
-
userName,
|
|
1190
1195
|
children,
|
|
1196
|
+
triggerContent,
|
|
1197
|
+
mobileMenuText: t1,
|
|
1198
|
+
closeButtonText: t2,
|
|
1191
1199
|
...rest
|
|
1192
1200
|
} = t0);
|
|
1193
1201
|
$[0] = t0;
|
|
1194
1202
|
$[1] = children;
|
|
1195
1203
|
$[2] = className;
|
|
1196
|
-
$[3] =
|
|
1197
|
-
$[4] =
|
|
1198
|
-
$[5] =
|
|
1199
|
-
$[6] =
|
|
1204
|
+
$[3] = rest;
|
|
1205
|
+
$[4] = t1;
|
|
1206
|
+
$[5] = t2;
|
|
1207
|
+
$[6] = triggerContent;
|
|
1200
1208
|
} else {
|
|
1201
1209
|
children = $[1];
|
|
1202
1210
|
className = $[2];
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1211
|
+
rest = $[3];
|
|
1212
|
+
t1 = $[4];
|
|
1213
|
+
t2 = $[5];
|
|
1214
|
+
triggerContent = $[6];
|
|
1207
1215
|
}
|
|
1216
|
+
const mobileMenuText = t1 === void 0 ? "Meny" : t1;
|
|
1217
|
+
const closeButtonText = t2 === void 0 ? "Lukk" : t2;
|
|
1208
1218
|
const [open, setOpen] = useState(false);
|
|
1209
|
-
const
|
|
1210
|
-
const
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1219
|
+
const [backdropTop, setBackdropTop] = useState(0);
|
|
1220
|
+
const {
|
|
1221
|
+
links,
|
|
1222
|
+
headerRef
|
|
1223
|
+
} = use(HeaderContext);
|
|
1224
|
+
const isMobile = useMediaQuery2("(max-width: 48rem)");
|
|
1225
|
+
let t3;
|
|
1226
|
+
let t4;
|
|
1227
|
+
if ($[7] !== headerRef || $[8] !== open) {
|
|
1228
|
+
t3 = () => {
|
|
1229
|
+
if (!open || !headerRef.current) {
|
|
1230
|
+
return;
|
|
1231
|
+
}
|
|
1232
|
+
const updateBackdropPosition = () => {
|
|
1233
|
+
const rect = headerRef.current?.getBoundingClientRect();
|
|
1234
|
+
if (rect) {
|
|
1235
|
+
setBackdropTop(rect.bottom);
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
1238
|
+
updateBackdropPosition();
|
|
1239
|
+
window.addEventListener("scroll", updateBackdropPosition, true);
|
|
1240
|
+
window.addEventListener("resize", updateBackdropPosition);
|
|
1241
|
+
return () => {
|
|
1242
|
+
window.removeEventListener("scroll", updateBackdropPosition, true);
|
|
1243
|
+
window.removeEventListener("resize", updateBackdropPosition);
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
t4 = [open, headerRef];
|
|
1247
|
+
$[7] = headerRef;
|
|
1248
|
+
$[8] = open;
|
|
1249
|
+
$[9] = t3;
|
|
1250
|
+
$[10] = t4;
|
|
1216
1251
|
} else {
|
|
1217
|
-
|
|
1252
|
+
t3 = $[9];
|
|
1253
|
+
t4 = $[10];
|
|
1218
1254
|
}
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
$[
|
|
1255
|
+
useLayoutEffect(t3, t4);
|
|
1256
|
+
let t5;
|
|
1257
|
+
if ($[11] !== className) {
|
|
1258
|
+
t5 = clsx("at-header__right", className);
|
|
1259
|
+
$[11] = className;
|
|
1260
|
+
$[12] = t5;
|
|
1224
1261
|
} else {
|
|
1225
|
-
|
|
1262
|
+
t5 = $[12];
|
|
1226
1263
|
}
|
|
1227
|
-
const
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1264
|
+
const t6 = isMobile ? "sm" : void 0;
|
|
1265
|
+
const t7 = isMobile ? "primary" : "tertiary";
|
|
1266
|
+
let t8;
|
|
1267
|
+
if ($[13] !== isMobile || $[14] !== mobileMenuText || $[15] !== open || $[16] !== triggerContent) {
|
|
1268
|
+
t8 = isMobile ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
1231
1269
|
open ? /* @__PURE__ */ jsxRuntimeExports.jsx(XMarkIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(MenuHamburgerIcon, { "aria-hidden": true }),
|
|
1232
|
-
|
|
1270
|
+
mobileMenuText
|
|
1233
1271
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
1234
|
-
|
|
1272
|
+
triggerContent,
|
|
1235
1273
|
open ? /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronUpIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDownIcon, { "aria-hidden": true })
|
|
1236
1274
|
] });
|
|
1237
|
-
$[
|
|
1238
|
-
$[
|
|
1239
|
-
$[
|
|
1240
|
-
$[
|
|
1275
|
+
$[13] = isMobile;
|
|
1276
|
+
$[14] = mobileMenuText;
|
|
1277
|
+
$[15] = open;
|
|
1278
|
+
$[16] = triggerContent;
|
|
1279
|
+
$[17] = t8;
|
|
1241
1280
|
} else {
|
|
1242
|
-
|
|
1281
|
+
t8 = $[17];
|
|
1243
1282
|
}
|
|
1244
|
-
let
|
|
1245
|
-
if ($[
|
|
1246
|
-
|
|
1247
|
-
$[
|
|
1248
|
-
$[
|
|
1249
|
-
$[
|
|
1250
|
-
$[
|
|
1283
|
+
let t9;
|
|
1284
|
+
if ($[18] !== t6 || $[19] !== t7 || $[20] !== t8) {
|
|
1285
|
+
t9 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Trigger, { "data-size": t6, variant: t7, className: "at-header__dropdown-trigger", children: t8 });
|
|
1286
|
+
$[18] = t6;
|
|
1287
|
+
$[19] = t7;
|
|
1288
|
+
$[20] = t8;
|
|
1289
|
+
$[21] = t9;
|
|
1251
1290
|
} else {
|
|
1252
|
-
|
|
1291
|
+
t9 = $[21];
|
|
1253
1292
|
}
|
|
1254
|
-
let
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1293
|
+
let t10;
|
|
1294
|
+
let t11;
|
|
1295
|
+
if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1296
|
+
t10 = () => setOpen(true);
|
|
1297
|
+
t11 = () => setOpen(false);
|
|
1298
|
+
$[22] = t10;
|
|
1299
|
+
$[23] = t11;
|
|
1258
1300
|
} else {
|
|
1259
|
-
|
|
1301
|
+
t10 = $[22];
|
|
1302
|
+
t11 = $[23];
|
|
1260
1303
|
}
|
|
1261
|
-
let
|
|
1262
|
-
if ($[
|
|
1263
|
-
|
|
1264
|
-
$[
|
|
1265
|
-
$[
|
|
1266
|
-
$[22] = t7;
|
|
1304
|
+
let t12;
|
|
1305
|
+
if ($[24] !== links) {
|
|
1306
|
+
t12 = links?.map(_temp$1);
|
|
1307
|
+
$[24] = links;
|
|
1308
|
+
$[25] = t12;
|
|
1267
1309
|
} else {
|
|
1268
|
-
|
|
1310
|
+
t12 = $[25];
|
|
1269
1311
|
}
|
|
1270
|
-
let
|
|
1271
|
-
if ($[
|
|
1272
|
-
|
|
1273
|
-
$[
|
|
1312
|
+
let t13;
|
|
1313
|
+
if ($[26] !== links) {
|
|
1314
|
+
t13 = links && links.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__dropdown-item-mobile at-header__dropdown-controls"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}) }) });
|
|
1315
|
+
$[26] = links;
|
|
1316
|
+
$[27] = t13;
|
|
1274
1317
|
} else {
|
|
1275
|
-
|
|
1318
|
+
t13 = $[27];
|
|
1276
1319
|
}
|
|
1277
|
-
let
|
|
1278
|
-
if ($[
|
|
1279
|
-
|
|
1280
|
-
$[
|
|
1281
|
-
$[
|
|
1282
|
-
$[26] = t9;
|
|
1320
|
+
let t14;
|
|
1321
|
+
if ($[28] !== children) {
|
|
1322
|
+
t14 = children && /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__dropdown-controls", children }) });
|
|
1323
|
+
$[28] = children;
|
|
1324
|
+
$[29] = t14;
|
|
1283
1325
|
} else {
|
|
1284
|
-
|
|
1326
|
+
t14 = $[29];
|
|
1285
1327
|
}
|
|
1286
|
-
let
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
]
|
|
1293
|
-
$[27] = t7;
|
|
1294
|
-
$[28] = t9;
|
|
1295
|
-
$[29] = t10;
|
|
1328
|
+
let t15;
|
|
1329
|
+
let t16;
|
|
1330
|
+
if ($[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1331
|
+
t15 = () => setOpen(false);
|
|
1332
|
+
t16 = /* @__PURE__ */ jsxRuntimeExports.jsx(XMarkIcon, { "aria-hidden": true });
|
|
1333
|
+
$[30] = t15;
|
|
1334
|
+
$[31] = t16;
|
|
1296
1335
|
} else {
|
|
1297
|
-
|
|
1336
|
+
t15 = $[30];
|
|
1337
|
+
t16 = $[31];
|
|
1298
1338
|
}
|
|
1299
|
-
let
|
|
1300
|
-
if ($[
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1339
|
+
let t17;
|
|
1340
|
+
if ($[32] !== closeButtonText) {
|
|
1341
|
+
t17 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__dropdown-close-mobile", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { type: "button", variant: "secondary", onClick: t15, children: [
|
|
1342
|
+
t16,
|
|
1343
|
+
closeButtonText
|
|
1304
1344
|
] }) }) });
|
|
1305
|
-
$[
|
|
1345
|
+
$[32] = closeButtonText;
|
|
1346
|
+
$[33] = t17;
|
|
1306
1347
|
} else {
|
|
1307
|
-
|
|
1348
|
+
t17 = $[33];
|
|
1308
1349
|
}
|
|
1309
|
-
let
|
|
1310
|
-
if ($[
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1350
|
+
let t18;
|
|
1351
|
+
if ($[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t17) {
|
|
1352
|
+
t18 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.List, { children: [
|
|
1353
|
+
t12,
|
|
1354
|
+
t13,
|
|
1355
|
+
t14,
|
|
1356
|
+
t17
|
|
1314
1357
|
] });
|
|
1315
|
-
$[
|
|
1316
|
-
$[
|
|
1317
|
-
$[
|
|
1358
|
+
$[34] = t12;
|
|
1359
|
+
$[35] = t13;
|
|
1360
|
+
$[36] = t14;
|
|
1361
|
+
$[37] = t17;
|
|
1362
|
+
$[38] = t18;
|
|
1318
1363
|
} else {
|
|
1319
|
-
|
|
1364
|
+
t18 = $[38];
|
|
1320
1365
|
}
|
|
1321
|
-
let
|
|
1322
|
-
if ($[
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1366
|
+
let t19;
|
|
1367
|
+
if ($[39] !== open || $[40] !== t18) {
|
|
1368
|
+
t19 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown, { open, onOpen: t10, onClose: t11, placement: "bottom", className: "at-header__dropdown-content", children: t18 });
|
|
1369
|
+
$[39] = open;
|
|
1370
|
+
$[40] = t18;
|
|
1371
|
+
$[41] = t19;
|
|
1372
|
+
} else {
|
|
1373
|
+
t19 = $[41];
|
|
1374
|
+
}
|
|
1375
|
+
let t20;
|
|
1376
|
+
if ($[42] !== t19 || $[43] !== t9) {
|
|
1377
|
+
t20 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.TriggerContext, { children: [
|
|
1378
|
+
t9,
|
|
1379
|
+
t19
|
|
1326
1380
|
] });
|
|
1327
|
-
$[
|
|
1328
|
-
$[
|
|
1329
|
-
$[
|
|
1381
|
+
$[42] = t19;
|
|
1382
|
+
$[43] = t9;
|
|
1383
|
+
$[44] = t20;
|
|
1330
1384
|
} else {
|
|
1331
|
-
|
|
1385
|
+
t20 = $[44];
|
|
1332
1386
|
}
|
|
1333
|
-
let
|
|
1334
|
-
if ($[
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1387
|
+
let t21;
|
|
1388
|
+
if ($[45] !== backdropTop || $[46] !== open) {
|
|
1389
|
+
t21 = open ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "at-header__dropdown-backdrop", style: {
|
|
1390
|
+
top: backdropTop
|
|
1391
|
+
} }) : null;
|
|
1392
|
+
$[45] = backdropTop;
|
|
1393
|
+
$[46] = open;
|
|
1394
|
+
$[47] = t21;
|
|
1338
1395
|
} else {
|
|
1339
|
-
|
|
1396
|
+
t21 = $[47];
|
|
1340
1397
|
}
|
|
1341
|
-
let
|
|
1342
|
-
if ($[
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1398
|
+
let t22;
|
|
1399
|
+
if ($[48] !== rest || $[49] !== t20 || $[50] !== t21 || $[51] !== t5) {
|
|
1400
|
+
t22 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t5, ...rest, children: [
|
|
1401
|
+
t20,
|
|
1402
|
+
t21
|
|
1346
1403
|
] });
|
|
1347
|
-
$[
|
|
1348
|
-
$[
|
|
1349
|
-
$[
|
|
1350
|
-
$[
|
|
1351
|
-
$[
|
|
1404
|
+
$[48] = rest;
|
|
1405
|
+
$[49] = t20;
|
|
1406
|
+
$[50] = t21;
|
|
1407
|
+
$[51] = t5;
|
|
1408
|
+
$[52] = t22;
|
|
1352
1409
|
} else {
|
|
1353
|
-
|
|
1410
|
+
t22 = $[52];
|
|
1354
1411
|
}
|
|
1355
|
-
return
|
|
1356
|
-
}
|
|
1357
|
-
function _temp2$1(link) {
|
|
1358
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__title-dropdown-controls", "at-header__title-dropdown-item-mobile"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { href: link.href, className: clsx("at-header__title-link"), children: link.label }) }) }, "nav-" + link.href);
|
|
1412
|
+
return t22;
|
|
1359
1413
|
}
|
|
1360
|
-
function _temp$1(
|
|
1361
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-
|
|
1414
|
+
function _temp$1(link, index) {
|
|
1415
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__dropdown-controls", "at-header__dropdown-item-mobile"), children: isValidElement(link) ? /* @__PURE__ */ jsxRuntimeExports.jsx(Slot, { className: clsx("at-header__link", "ds-link"), children: link }) : link }) }, "nav-" + index);
|
|
1362
1416
|
}
|
|
1363
|
-
function
|
|
1364
|
-
const $ = compilerRuntimeExports.c(
|
|
1365
|
-
let children;
|
|
1417
|
+
function HeaderMenuRow(t0) {
|
|
1418
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1366
1419
|
let className;
|
|
1367
|
-
let
|
|
1420
|
+
let padded;
|
|
1368
1421
|
let rest;
|
|
1369
1422
|
if ($[0] !== t0) {
|
|
1370
1423
|
({
|
|
1371
1424
|
className,
|
|
1372
|
-
|
|
1373
|
-
children,
|
|
1425
|
+
padded,
|
|
1374
1426
|
...rest
|
|
1375
1427
|
} = t0);
|
|
1376
1428
|
$[0] = t0;
|
|
1377
|
-
$[1] =
|
|
1378
|
-
$[2] =
|
|
1379
|
-
$[3] =
|
|
1380
|
-
$[4] = rest;
|
|
1381
|
-
} else {
|
|
1382
|
-
children = $[1];
|
|
1383
|
-
className = $[2];
|
|
1384
|
-
links = $[3];
|
|
1385
|
-
rest = $[4];
|
|
1386
|
-
}
|
|
1387
|
-
let t1;
|
|
1388
|
-
if ($[5] !== className) {
|
|
1389
|
-
t1 = clsx(className);
|
|
1390
|
-
$[5] = className;
|
|
1391
|
-
$[6] = t1;
|
|
1429
|
+
$[1] = className;
|
|
1430
|
+
$[2] = padded;
|
|
1431
|
+
$[3] = rest;
|
|
1392
1432
|
} else {
|
|
1393
|
-
|
|
1433
|
+
className = $[1];
|
|
1434
|
+
padded = $[2];
|
|
1435
|
+
rest = $[3];
|
|
1394
1436
|
}
|
|
1437
|
+
const t1 = padded && "padded";
|
|
1395
1438
|
let t2;
|
|
1396
|
-
if ($[
|
|
1397
|
-
t2 =
|
|
1398
|
-
$[
|
|
1399
|
-
$[
|
|
1400
|
-
$[
|
|
1439
|
+
if ($[4] !== className || $[5] !== t1) {
|
|
1440
|
+
t2 = clsx$1("at-header__menu-row", t1, className);
|
|
1441
|
+
$[4] = className;
|
|
1442
|
+
$[5] = t1;
|
|
1443
|
+
$[6] = t2;
|
|
1401
1444
|
} else {
|
|
1402
|
-
t2 = $[
|
|
1445
|
+
t2 = $[6];
|
|
1403
1446
|
}
|
|
1404
1447
|
let t3;
|
|
1405
|
-
if ($[
|
|
1406
|
-
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1407
|
-
$[
|
|
1408
|
-
$[
|
|
1409
|
-
$[
|
|
1410
|
-
$[13] = t3;
|
|
1448
|
+
if ($[7] !== rest || $[8] !== t2) {
|
|
1449
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(Slot, { className: t2, ...rest });
|
|
1450
|
+
$[7] = rest;
|
|
1451
|
+
$[8] = t2;
|
|
1452
|
+
$[9] = t3;
|
|
1411
1453
|
} else {
|
|
1412
|
-
t3 = $[
|
|
1454
|
+
t3 = $[9];
|
|
1413
1455
|
}
|
|
1414
1456
|
return t3;
|
|
1415
1457
|
}
|
|
1416
|
-
function
|
|
1417
|
-
|
|
1418
|
-
}
|
|
1419
|
-
function _temp(child) {
|
|
1420
|
-
if (isValidElement(child)) {
|
|
1421
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Slot, { className: clsx("at-header__title-link", "ds-link"), children: child });
|
|
1422
|
-
}
|
|
1423
|
-
return child;
|
|
1424
|
-
}
|
|
1425
|
-
function HeaderTitleLogo(t0) {
|
|
1426
|
-
const $ = compilerRuntimeExports.c(17);
|
|
1427
|
-
let appName;
|
|
1458
|
+
function HeaderMenuIcon(t0) {
|
|
1459
|
+
const $ = compilerRuntimeExports.c(8);
|
|
1428
1460
|
let className;
|
|
1429
|
-
let logo;
|
|
1430
1461
|
let rest;
|
|
1431
1462
|
if ($[0] !== t0) {
|
|
1432
1463
|
({
|
|
1433
1464
|
className,
|
|
1434
|
-
logo,
|
|
1435
|
-
appName,
|
|
1436
1465
|
...rest
|
|
1437
1466
|
} = t0);
|
|
1438
1467
|
$[0] = t0;
|
|
1439
|
-
$[1] =
|
|
1440
|
-
$[2] =
|
|
1441
|
-
$[3] = logo;
|
|
1442
|
-
$[4] = rest;
|
|
1468
|
+
$[1] = className;
|
|
1469
|
+
$[2] = rest;
|
|
1443
1470
|
} else {
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
logo = $[3];
|
|
1447
|
-
rest = $[4];
|
|
1471
|
+
className = $[1];
|
|
1472
|
+
rest = $[2];
|
|
1448
1473
|
}
|
|
1449
1474
|
let t1;
|
|
1450
|
-
if ($[
|
|
1451
|
-
t1 = clsx(className);
|
|
1452
|
-
$[
|
|
1453
|
-
$[
|
|
1475
|
+
if ($[3] !== className) {
|
|
1476
|
+
t1 = clsx$1("at-header__menu-icon", className);
|
|
1477
|
+
$[3] = className;
|
|
1478
|
+
$[4] = t1;
|
|
1454
1479
|
} else {
|
|
1455
|
-
t1 = $[
|
|
1480
|
+
t1 = $[4];
|
|
1456
1481
|
}
|
|
1457
1482
|
let t2;
|
|
1458
|
-
if ($[
|
|
1459
|
-
t2 =
|
|
1483
|
+
if ($[5] !== rest || $[6] !== t1) {
|
|
1484
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest });
|
|
1485
|
+
$[5] = rest;
|
|
1486
|
+
$[6] = t1;
|
|
1460
1487
|
$[7] = t2;
|
|
1461
1488
|
} else {
|
|
1462
1489
|
t2 = $[7];
|
|
1463
1490
|
}
|
|
1491
|
+
return t2;
|
|
1492
|
+
}
|
|
1493
|
+
function HeaderMenuBadge(t0) {
|
|
1494
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1495
|
+
let className;
|
|
1496
|
+
let rest;
|
|
1497
|
+
let t1;
|
|
1498
|
+
if ($[0] !== t0) {
|
|
1499
|
+
({
|
|
1500
|
+
className,
|
|
1501
|
+
color: t1,
|
|
1502
|
+
...rest
|
|
1503
|
+
} = t0);
|
|
1504
|
+
$[0] = t0;
|
|
1505
|
+
$[1] = className;
|
|
1506
|
+
$[2] = rest;
|
|
1507
|
+
$[3] = t1;
|
|
1508
|
+
} else {
|
|
1509
|
+
className = $[1];
|
|
1510
|
+
rest = $[2];
|
|
1511
|
+
t1 = $[3];
|
|
1512
|
+
}
|
|
1513
|
+
const color = t1 === void 0 ? "info" : t1;
|
|
1514
|
+
const t2 = `at-header__menu-badge-${color}`;
|
|
1464
1515
|
let t3;
|
|
1465
|
-
if ($[
|
|
1466
|
-
t3 =
|
|
1467
|
-
$[
|
|
1468
|
-
$[
|
|
1516
|
+
if ($[4] !== className || $[5] !== t2) {
|
|
1517
|
+
t3 = clsx$1(t2, className);
|
|
1518
|
+
$[4] = className;
|
|
1519
|
+
$[5] = t2;
|
|
1520
|
+
$[6] = t3;
|
|
1469
1521
|
} else {
|
|
1470
|
-
t3 = $[
|
|
1522
|
+
t3 = $[6];
|
|
1471
1523
|
}
|
|
1472
1524
|
let t4;
|
|
1473
|
-
if ($[
|
|
1474
|
-
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1475
|
-
$[
|
|
1476
|
-
$[
|
|
1525
|
+
if ($[7] !== rest || $[8] !== t3) {
|
|
1526
|
+
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t3, ...rest });
|
|
1527
|
+
$[7] = rest;
|
|
1528
|
+
$[8] = t3;
|
|
1529
|
+
$[9] = t4;
|
|
1477
1530
|
} else {
|
|
1478
|
-
t4 = $[
|
|
1531
|
+
t4 = $[9];
|
|
1479
1532
|
}
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1533
|
+
return t4;
|
|
1534
|
+
}
|
|
1535
|
+
function HeaderNavbar(t0) {
|
|
1536
|
+
const $ = compilerRuntimeExports.c(11);
|
|
1537
|
+
let className;
|
|
1538
|
+
let rest;
|
|
1539
|
+
if ($[0] !== t0) {
|
|
1540
|
+
({
|
|
1541
|
+
className,
|
|
1542
|
+
...rest
|
|
1543
|
+
} = t0);
|
|
1544
|
+
$[0] = t0;
|
|
1545
|
+
$[1] = className;
|
|
1546
|
+
$[2] = rest;
|
|
1491
1547
|
} else {
|
|
1492
|
-
|
|
1548
|
+
className = $[1];
|
|
1549
|
+
rest = $[2];
|
|
1493
1550
|
}
|
|
1494
|
-
|
|
1551
|
+
const {
|
|
1552
|
+
links
|
|
1553
|
+
} = use(HeaderContext);
|
|
1554
|
+
let t1;
|
|
1555
|
+
if ($[3] !== className) {
|
|
1556
|
+
t1 = clsx("at-header__center", className);
|
|
1557
|
+
$[3] = className;
|
|
1558
|
+
$[4] = t1;
|
|
1559
|
+
} else {
|
|
1560
|
+
t1 = $[4];
|
|
1561
|
+
}
|
|
1562
|
+
let t2;
|
|
1563
|
+
if ($[5] !== links) {
|
|
1564
|
+
t2 = links?.map(_temp);
|
|
1565
|
+
$[5] = links;
|
|
1566
|
+
$[6] = t2;
|
|
1567
|
+
} else {
|
|
1568
|
+
t2 = $[6];
|
|
1569
|
+
}
|
|
1570
|
+
let t3;
|
|
1571
|
+
if ($[7] !== rest || $[8] !== t1 || $[9] !== t2) {
|
|
1572
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { className: t1, ...rest, children: t2 });
|
|
1573
|
+
$[7] = rest;
|
|
1574
|
+
$[8] = t1;
|
|
1575
|
+
$[9] = t2;
|
|
1576
|
+
$[10] = t3;
|
|
1577
|
+
} else {
|
|
1578
|
+
t3 = $[10];
|
|
1579
|
+
}
|
|
1580
|
+
return t3;
|
|
1581
|
+
}
|
|
1582
|
+
function _temp(link, idx) {
|
|
1583
|
+
if (isValidElement(link)) {
|
|
1584
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Slot, { className: clsx("at-header__link", "ds-link"), children: link }, link.key ?? idx);
|
|
1585
|
+
}
|
|
1586
|
+
return link;
|
|
1495
1587
|
}
|
|
1496
|
-
function HeaderTitle({
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1588
|
+
function HeaderTitle(t0) {
|
|
1589
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1590
|
+
let children;
|
|
1591
|
+
let className;
|
|
1592
|
+
let rest;
|
|
1593
|
+
if ($[0] !== t0) {
|
|
1594
|
+
({
|
|
1595
|
+
className,
|
|
1596
|
+
children,
|
|
1597
|
+
...rest
|
|
1598
|
+
} = t0);
|
|
1599
|
+
$[0] = t0;
|
|
1600
|
+
$[1] = children;
|
|
1601
|
+
$[2] = className;
|
|
1602
|
+
$[3] = rest;
|
|
1603
|
+
} else {
|
|
1604
|
+
children = $[1];
|
|
1605
|
+
className = $[2];
|
|
1606
|
+
rest = $[3];
|
|
1607
|
+
}
|
|
1608
|
+
let t1;
|
|
1609
|
+
if ($[4] !== className) {
|
|
1610
|
+
t1 = clsx("at-header__left", className);
|
|
1611
|
+
$[4] = className;
|
|
1612
|
+
$[5] = t1;
|
|
1613
|
+
} else {
|
|
1614
|
+
t1 = $[5];
|
|
1615
|
+
}
|
|
1616
|
+
let t2;
|
|
1617
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
1618
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
|
|
1619
|
+
$[6] = children;
|
|
1620
|
+
$[7] = rest;
|
|
1621
|
+
$[8] = t1;
|
|
1622
|
+
$[9] = t2;
|
|
1623
|
+
} else {
|
|
1624
|
+
t2 = $[9];
|
|
1625
|
+
}
|
|
1626
|
+
return t2;
|
|
1511
1627
|
}
|
|
1512
1628
|
const Header = Object.assign(Header$1, {
|
|
1513
|
-
Title: HeaderTitle
|
|
1629
|
+
Title: HeaderTitle,
|
|
1630
|
+
Illustration: HeaderIllustration,
|
|
1631
|
+
Logo: HeaderLogo,
|
|
1632
|
+
Navbar: HeaderNavbar,
|
|
1633
|
+
Menu: HeaderMenu,
|
|
1634
|
+
MenuRow: HeaderMenuRow,
|
|
1635
|
+
MenuIcon: HeaderMenuIcon,
|
|
1636
|
+
MenuBadge: HeaderMenuBadge
|
|
1514
1637
|
});
|
|
1515
1638
|
const LogoBlack = (t0) => {
|
|
1516
1639
|
const $ = compilerRuntimeExports.c(20);
|
|
@@ -1536,7 +1659,7 @@ const LogoBlack = (t0) => {
|
|
|
1536
1659
|
let t7;
|
|
1537
1660
|
let t8;
|
|
1538
1661
|
let t9;
|
|
1539
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1662
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1540
1663
|
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M36.3473 34.143L41.2281 22.7844H42.78L47.6608 34.143H45.3666L44.287 31.6238H39.7211L38.6415 34.143H36.3473ZM40.5308 29.667H43.4323L41.9928 26.3157L40.5308 29.667Z", fill: "black" });
|
|
1541
1664
|
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M53.3064 28.1377C53.1489 28.0927 52.8565 28.0477 52.5416 28.0477C51.6195 28.0477 50.8772 28.7225 50.6298 29.1948V34.1431H48.5156V26.2708H50.5399V27.058C51.0122 26.4733 51.8669 26.0909 52.8341 26.0909C53.1489 26.0909 53.3289 26.1134 53.5538 26.1584L53.3064 28.1377Z", fill: "black" });
|
|
1542
1665
|
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M54.8583 34.143V22.6046H56.9726V26.8331C57.5799 26.3382 58.3446 26.1133 59.1993 26.1133C61.3361 26.1133 63.068 27.8902 63.068 30.2294C63.068 31.309 62.6856 32.2762 62.0558 32.9959C61.3586 33.8056 60.2564 34.323 59.0869 34.323C58.2996 34.323 57.5349 34.0755 56.9051 33.5357V34.1655H54.8583V34.143ZM56.9501 31.3765C57.355 31.9613 58.0522 32.3436 58.8394 32.3436C60.0315 32.3436 60.9087 31.444 60.9087 30.2069C60.9087 29.0598 60.1215 28.0476 58.8844 28.0476C58.0747 28.0476 57.3774 28.43 56.9276 29.0148V31.3765H56.9501Z", fill: "black" });
|
|
@@ -1646,7 +1769,7 @@ const LogoWhite = (t0) => {
|
|
|
1646
1769
|
let t7;
|
|
1647
1770
|
let t8;
|
|
1648
1771
|
let t9;
|
|
1649
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1772
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1650
1773
|
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M36.3473 34.143L41.2281 22.7844H42.78L47.6608 34.143H45.3666L44.287 31.6238H39.7211L38.6415 34.143H36.3473ZM40.5308 29.667H43.4323L41.9928 26.3157L40.5308 29.667Z", fill: "white" });
|
|
1651
1774
|
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M53.3064 28.1377C53.1489 28.0927 52.8565 28.0477 52.5416 28.0477C51.6195 28.0477 50.8772 28.7225 50.6298 29.1948V34.1431H48.5156V26.2708H50.5399V27.058C51.0122 26.4733 51.8669 26.0909 52.8341 26.0909C53.1489 26.0909 53.3289 26.1134 53.5538 26.1584L53.3064 28.1377Z", fill: "white" });
|
|
1652
1775
|
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M54.8583 34.143V22.6046H56.9726V26.8331C57.5799 26.3382 58.3446 26.1133 59.1993 26.1133C61.3361 26.1133 63.068 27.8902 63.068 30.2294C63.068 31.309 62.6856 32.2762 62.0558 32.9959C61.3586 33.8056 60.2564 34.323 59.0869 34.323C58.2996 34.323 57.5349 34.0755 56.9051 33.5357V34.1655H54.8583V34.143ZM56.9501 31.3765C57.355 31.9613 58.0522 32.3436 58.8394 32.3436C60.0315 32.3436 60.9087 31.444 60.9087 30.2069C60.9087 29.0598 60.1215 28.0476 58.8844 28.0476C58.0747 28.0476 57.3774 28.43 56.9276 29.0148V31.3765H56.9501Z", fill: "white" });
|
|
@@ -1806,7 +1929,7 @@ const LogoGreen = (t0) => {
|
|
|
1806
1929
|
let t7;
|
|
1807
1930
|
let t8;
|
|
1808
1931
|
let t9;
|
|
1809
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1932
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1810
1933
|
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M17.0715 32.4211C25.5309 32.4211 32.3887 25.5565 32.3887 17.0886C32.3887 8.62069 25.5309 1.7561 17.0715 1.7561C8.6121 1.7561 1.75438 8.62069 1.75438 17.0886C1.75438 25.5565 8.6121 32.4211 17.0715 32.4211Z", fill: "white" });
|
|
1811
1934
|
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M36.3473 34.1773L41.2281 22.8074H42.78L47.6608 34.1773H45.3666L44.287 31.6556H39.7211L38.6415 34.1773H36.3473ZM40.5308 29.6969H43.4323L41.9928 26.3422L40.5308 29.6969Z", fill: "black" });
|
|
1812
1935
|
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M53.3064 28.1659C53.1489 28.1209 52.8565 28.0758 52.5416 28.0758C51.6195 28.0758 50.8772 28.7513 50.6298 29.2241V34.1773H48.5155V26.2972H50.5398V27.0852C51.0122 26.4998 51.8669 26.1171 52.834 26.1171C53.1489 26.1171 53.3289 26.1396 53.5538 26.1846L53.3064 28.1659Z", fill: "black" });
|
|
@@ -1932,6 +2055,7 @@ export {
|
|
|
1932
2055
|
DropdownList,
|
|
1933
2056
|
DropdownTrigger,
|
|
1934
2057
|
DropdownTriggerContext,
|
|
2058
|
+
EXPERIMENTAL_AvatarStack,
|
|
1935
2059
|
EXPERIMENTAL_Suggestion,
|
|
1936
2060
|
EXPERIMENTAL_SuggestionClear,
|
|
1937
2061
|
EXPERIMENTAL_SuggestionEmpty,
|
|
@@ -1957,9 +2081,16 @@ export {
|
|
|
1957
2081
|
FilePickerErrors,
|
|
1958
2082
|
FilePickerFiles,
|
|
1959
2083
|
Header,
|
|
1960
|
-
|
|
2084
|
+
HeaderContext,
|
|
2085
|
+
HeaderIllustration,
|
|
2086
|
+
HeaderLogo,
|
|
2087
|
+
HeaderMenu,
|
|
2088
|
+
HeaderMenuBadge,
|
|
2089
|
+
HeaderMenuIcon,
|
|
2090
|
+
HeaderMenuRow,
|
|
2091
|
+
HeaderNavbar,
|
|
1961
2092
|
HeaderTitle,
|
|
1962
|
-
|
|
2093
|
+
Heading,
|
|
1963
2094
|
Input,
|
|
1964
2095
|
Label,
|
|
1965
2096
|
LightDarkLogo,
|