@dnb/eufemia 9.25.0 → 9.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cjs/components/accordion/Accordion.d.ts +17 -4
  3. package/cjs/components/accordion/AccordionHeader.d.ts +11 -4
  4. package/cjs/components/accordion/AccordionHeader.js +17 -7
  5. package/cjs/components/accordion/AccordionPropTypes.js +5 -2
  6. package/cjs/components/accordion/AccordionProvider.d.ts +17 -2
  7. package/cjs/components/autocomplete/Autocomplete.d.ts +23 -0
  8. package/cjs/components/autocomplete/Autocomplete.js +8 -0
  9. package/cjs/components/help-button/HelpButtonInstance.js +7 -7
  10. package/cjs/fragments/drawer-list/DrawerListProvider.d.ts +1 -0
  11. package/cjs/fragments/drawer-list/DrawerListProvider.js +2 -0
  12. package/cjs/shared/Eufemia.js +1 -1
  13. package/components/accordion/Accordion.d.ts +17 -4
  14. package/components/accordion/AccordionHeader.d.ts +11 -4
  15. package/components/accordion/AccordionHeader.js +17 -7
  16. package/components/accordion/AccordionPropTypes.js +5 -2
  17. package/components/accordion/AccordionProvider.d.ts +17 -2
  18. package/components/autocomplete/Autocomplete.d.ts +23 -0
  19. package/components/autocomplete/Autocomplete.js +8 -0
  20. package/components/help-button/HelpButtonInstance.js +7 -7
  21. package/es/components/accordion/Accordion.d.ts +17 -4
  22. package/es/components/accordion/AccordionHeader.d.ts +11 -4
  23. package/es/components/accordion/AccordionHeader.js +18 -8
  24. package/es/components/accordion/AccordionPropTypes.js +5 -2
  25. package/es/components/accordion/AccordionProvider.d.ts +17 -2
  26. package/es/components/autocomplete/Autocomplete.d.ts +23 -0
  27. package/es/components/autocomplete/Autocomplete.js +8 -0
  28. package/es/components/help-button/HelpButtonInstance.js +7 -7
  29. package/es/fragments/drawer-list/DrawerListProvider.d.ts +1 -0
  30. package/es/fragments/drawer-list/DrawerListProvider.js +2 -0
  31. package/es/shared/Eufemia.js +1 -1
  32. package/esm/dnb-ui-basis.min.mjs +1 -1
  33. package/esm/dnb-ui-components.min.mjs +1 -1
  34. package/esm/dnb-ui-elements.min.mjs +1 -1
  35. package/esm/dnb-ui-extensions.min.mjs +1 -1
  36. package/esm/dnb-ui-lib.min.mjs +2 -2
  37. package/esm/dnb-ui-web-components.min.mjs +2 -2
  38. package/fragments/drawer-list/DrawerListProvider.d.ts +1 -0
  39. package/fragments/drawer-list/DrawerListProvider.js +2 -0
  40. package/package.json +1 -1
  41. package/shared/Eufemia.js +1 -1
  42. package/umd/dnb-ui-basis.min.js +1 -1
  43. package/umd/dnb-ui-components.min.js +1 -1
  44. package/umd/dnb-ui-elements.min.js +1 -1
  45. package/umd/dnb-ui-extensions.min.js +1 -1
  46. package/umd/dnb-ui-lib.min.js +2 -2
  47. package/umd/dnb-ui-web-components.min.js +2 -2
@@ -11,12 +11,24 @@ export type AccordionPreventRerenderConditional = string | boolean;
11
11
  export type AccordionRememberState = string | boolean;
12
12
  export type AccordionFlushRememberedState = string | boolean;
13
13
  export type AccordionSingleContainer = string | boolean;
14
- export type AccordionVariant = 'default' | 'outlined' | 'filled';
14
+ export type AccordionVariant = 'plain' | 'default' | 'outlined' | 'filled';
15
15
  export type AccordionAllowCloseAll = string | boolean;
16
16
  export type AccordionDisabled = string | boolean;
17
17
  export type AccordionSkeleton = string | boolean;
18
18
  export type AccordionHeading = boolean | React.ReactNode;
19
19
  export type AccordionHeadingLevel = string | number;
20
+ export type AccordionIcon =
21
+ | React.ReactNode
22
+ | ((...args: any[]) => any)
23
+ | {
24
+ closed?: React.ReactNode | ((...args: any[]) => any);
25
+
26
+ /**
27
+ * If set to `true` the accordion will be expanded as its initial state.
28
+ */
29
+ expanded?: React.ReactNode | ((...args: any[]) => any);
30
+ };
31
+ export type AccordionClosed = React.ReactNode | ((...args: any[]) => any);
20
32
  export type AccordionIconPosition = 'left' | 'right';
21
33
  export type AccordionAttributes = string | Object;
22
34
  export type AccordionSpace =
@@ -104,7 +116,7 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
104
116
  single_container?: AccordionSingleContainer;
105
117
 
106
118
  /**
107
- * Defines the used styling. As of now, only `outlined` is available. It defaults to `outlined`.
119
+ * Defines the used styling. As of now, only `outlined` is available. Use `plain` for no styles. It defaults to `outlined`.
108
120
  */
109
121
  variant?: AccordionVariant;
110
122
 
@@ -146,9 +158,10 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
146
158
  heading_level?: AccordionHeadingLevel;
147
159
 
148
160
  /**
149
- * Will replace the `chevron` icon. The icon will still rotate (by CSS).
161
+ * Will replace the `chevron` icon. The icon will still rotate (by CSS). You can use an object to use two different icons, one for the closed state and one for the expanded state `{ closed, expanded }`.
150
162
  */
151
- icon?: React.ReactNode;
163
+ icon?: AccordionIcon;
164
+ closed?: AccordionClosed;
152
165
 
153
166
  /**
154
167
  * Will set the placement of the icon. Defaults to `left`.
@@ -81,9 +81,12 @@ export interface AccordionHeaderContainerProps {
81
81
  }
82
82
  declare const AccordionHeaderContainer: React.FC<AccordionHeaderContainerProps>;
83
83
  export type AccordionHeaderIconIcon =
84
- | string
85
84
  | React.ReactNode
86
- | ((...args: any[]) => any);
85
+ | ((...args: any[]) => any)
86
+ | {
87
+ closed?: React.ReactNode | ((...args: any[]) => any);
88
+ expanded?: React.ReactNode | ((...args: any[]) => any);
89
+ };
87
90
 
88
91
  /**
89
92
  * NB: Do not change the docs (comments) in here. The docs are updated during build time by "generateTypes.js" and "fetchPropertiesFromDocs.js".
@@ -91,6 +94,7 @@ export type AccordionHeaderIconIcon =
91
94
  export interface AccordionHeaderIconProps {
92
95
  icon?: AccordionHeaderIconIcon;
93
96
  size?: string;
97
+ expanded?: boolean;
94
98
  }
95
99
  declare const AccordionHeaderIcon: React.FC<AccordionHeaderIconProps>;
96
100
  export type AccordionHeaderTitle =
@@ -116,9 +120,12 @@ export type AccordionHeaderHeading =
116
120
  | ((...args: any[]) => any);
117
121
  export type AccordionHeaderHeadingLevel = string | number;
118
122
  export type AccordionHeaderIcon =
119
- | string
120
123
  | React.ReactNode
121
- | ((...args: any[]) => any);
124
+ | ((...args: any[]) => any)
125
+ | {
126
+ closed?: React.ReactNode | ((...args: any[]) => any);
127
+ expanded?: React.ReactNode | ((...args: any[]) => any);
128
+ };
122
129
  export type AccordionHeaderIconPosition = 'left' | 'right';
123
130
  export type AccordionHeaderDisabled = string | boolean;
124
131
  export type AccordionHeaderSkeleton = string | boolean;
@@ -4,7 +4,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
4
4
  const _excluded = ["children"],
5
5
  _excluded2 = ["children"],
6
6
  _excluded3 = ["children"],
7
- _excluded4 = ["icon"],
7
+ _excluded4 = ["icon", "expanded"],
8
8
  _excluded5 = ["children", "className", "left_component", "expanded", "title", "description", "icon", "icon_size", "disabled"];
9
9
 
10
10
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
@@ -77,25 +77,31 @@ AccordionHeaderContainer.defaultProps = {
77
77
 
78
78
  function AccordionHeaderIcon(_ref4) {
79
79
  let {
80
- icon
80
+ icon,
81
+ expanded
81
82
  } = _ref4,
82
83
  rest = _objectWithoutProperties(_ref4, _excluded4);
83
84
 
84
85
  return React.createElement("span", {
85
86
  className: "dnb-accordion__header__icon"
86
87
  }, React.createElement(IconPrimary, _extends({}, rest, {
87
- icon: icon || 'chevron-down',
88
+ icon: typeof (icon === null || icon === void 0 ? void 0 : icon.expanded) !== 'undefined' ? icon[expanded ? 'expanded' : 'closed'] : icon || 'chevron-down',
88
89
  "aria-hidden": true
89
90
  })));
90
91
  }
91
92
 
92
93
  process.env.NODE_ENV !== "production" ? AccordionHeaderIcon.propTypes = {
93
- icon: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.func]),
94
- size: PropTypes.string
94
+ icon: PropTypes.oneOfType([PropTypes.node, PropTypes.func, PropTypes.shape({
95
+ closed: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
96
+ expanded: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
97
+ })]),
98
+ size: PropTypes.string,
99
+ expanded: PropTypes.bool
95
100
  } : void 0;
96
101
  AccordionHeaderIcon.defaultProps = {
97
102
  icon: null,
98
- size: 'medium'
103
+ size: 'medium',
104
+ expanded: null
99
105
  };
100
106
  export default class AccordionHeader extends React.PureComponent {
101
107
  constructor(props) {
@@ -197,7 +203,8 @@ export default class AccordionHeader extends React.PureComponent {
197
203
  const defaultParts = [React.createElement(AccordionHeaderIcon, {
198
204
  key: "icon",
199
205
  icon: icon,
200
- size: icon_size
206
+ size: icon_size,
207
+ expanded: this.context.expanded
201
208
  }), React.createElement(AccordionHeaderContainer, {
202
209
  key: "container"
203
210
  }, left_component), React.createElement(AccordionHeaderTitle, {
@@ -333,7 +340,10 @@ process.env.NODE_ENV !== "production" ? AccordionHeader.propTypes = _objectSprea
333
340
  element: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.func]),
334
341
  heading: PropTypes.oneOfType([PropTypes.bool, PropTypes.string, PropTypes.node, PropTypes.func]),
335
342
  heading_level: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
336
- icon: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.func]),
343
+ icon: PropTypes.oneOfType([PropTypes.node, PropTypes.func, PropTypes.shape({
344
+ closed: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
345
+ expanded: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
346
+ })]),
337
347
  icon_position: PropTypes.oneOf(['left', 'right']),
338
348
  icon_size: PropTypes.string,
339
349
  disabled: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
@@ -17,7 +17,7 @@ export const accordionPropTypes = _objectSpread(_objectSpread({
17
17
  remember_state: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
18
18
  flush_remembered_state: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
19
19
  single_container: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
20
- variant: PropTypes.oneOf(['default', 'outlined', 'filled']),
20
+ variant: PropTypes.oneOf(['plain', 'default', 'outlined', 'filled']),
21
21
  left_component: PropTypes.node,
22
22
  allow_close_all: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
23
23
  disabled: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
@@ -27,7 +27,10 @@ export const accordionPropTypes = _objectSpread(_objectSpread({
27
27
  element: PropTypes.node,
28
28
  heading: PropTypes.oneOfType([PropTypes.bool, PropTypes.node]),
29
29
  heading_level: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
30
- icon: PropTypes.node,
30
+ icon: PropTypes.oneOfType([PropTypes.node, PropTypes.func, PropTypes.shape({
31
+ closed: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
32
+ expanded: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
33
+ })]),
31
34
  icon_position: PropTypes.oneOf(['left', 'right']),
32
35
  icon_size: PropTypes.string,
33
36
  attributes: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
@@ -8,12 +8,26 @@ export type AccordionGroupPreventRerenderConditional = string | boolean;
8
8
  export type AccordionGroupRememberState = string | boolean;
9
9
  export type AccordionGroupFlushRememberedState = string | boolean;
10
10
  export type AccordionGroupSingleContainer = string | boolean;
11
- export type AccordionGroupVariant = 'default' | 'outlined' | 'filled';
11
+ export type AccordionGroupVariant =
12
+ | 'plain'
13
+ | 'default'
14
+ | 'outlined'
15
+ | 'filled';
12
16
  export type AccordionGroupAllowCloseAll = string | boolean;
13
17
  export type AccordionGroupDisabled = string | boolean;
14
18
  export type AccordionGroupSkeleton = string | boolean;
15
19
  export type AccordionGroupHeading = boolean | React.ReactNode;
16
20
  export type AccordionGroupHeadingLevel = string | number;
21
+ export type AccordionGroupIcon =
22
+ | React.ReactNode
23
+ | ((...args: any[]) => any)
24
+ | {
25
+ closed?: React.ReactNode | ((...args: any[]) => any);
26
+ expanded?: React.ReactNode | ((...args: any[]) => any);
27
+ };
28
+ export type AccordionGroupClosed =
29
+ | React.ReactNode
30
+ | ((...args: any[]) => any);
17
31
  export type AccordionGroupIconPosition = 'left' | 'right';
18
32
  export type AccordionGroupAttributes = string | Object;
19
33
  export type AccordionGroupSpace =
@@ -55,7 +69,8 @@ export interface AccordionGroupProps extends React.HTMLProps<HTMLElement> {
55
69
  element?: React.ReactNode;
56
70
  heading?: AccordionGroupHeading;
57
71
  heading_level?: AccordionGroupHeadingLevel;
58
- icon?: React.ReactNode;
72
+ icon?: AccordionGroupIcon;
73
+ closed?: AccordionGroupClosed;
59
74
  icon_position?: AccordionGroupIconPosition;
60
75
  icon_size?: string;
61
76
  attributes?: AccordionGroupAttributes;
@@ -129,6 +129,9 @@ export type AutocompleteOpened = string | boolean;
129
129
  export type AutocompleteDisabled = string | boolean;
130
130
  export type AutocompleteStretch = string | boolean;
131
131
  export type AutocompleteSkeleton = string | boolean;
132
+ export type AutocompletePageOffset = string | number;
133
+ export type AutocompleteObserverElement = string | React.ReactNode;
134
+ export type AutocompleteMinHeight = string | number;
132
135
  export type AutocompleteChildren =
133
136
  | string
134
137
  | ((...args: any[]) => any)
@@ -509,6 +512,26 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
509
512
  * Define a custom class for the internal drawer-list. This makes it possible more easily customize the drawer-list style with styled-components and the `css` style method. Defaults to `null`.
510
513
  */
511
514
  drawer_class?: string;
515
+
516
+ /**
517
+ * Defines if the available scrollable height. If scrolling not should change the height of the drawer-list, then set it to `0` (useful if the DrawerList is used in fixed positions on contrast to a scrollable page content). Defaults to `window.pageYOffset`.
518
+ */
519
+ page_offset?: AutocompletePageOffset;
520
+
521
+ /**
522
+ * Set a HTML element, either as a selector or a DOM element. Can be used to send in an element which will be used to make the <em>direction calculation</em> on.
523
+ */
524
+ observer_element?: AutocompleteObserverElement;
525
+
526
+ /**
527
+ * Defines if the minimum height (in `rem`) of the options list. Defaults to `10rem`.
528
+ */
529
+ min_height?: AutocompleteMinHeight;
530
+
531
+ /**
532
+ * If set to true, the HTML body will get locked from scrolling. Defaults to `false`.
533
+ */
534
+ enable_body_lock?: boolean;
512
535
  class?: string;
513
536
  className?: string;
514
537
 
@@ -118,6 +118,10 @@ _defineProperty(Autocomplete, "defaultProps", {
118
118
  skeleton: null,
119
119
  portal_class: null,
120
120
  drawer_class: null,
121
+ page_offset: null,
122
+ observer_element: null,
123
+ min_height: null,
124
+ enable_body_lock: false,
121
125
  class: null,
122
126
  className: null,
123
127
  children: null,
@@ -199,6 +203,10 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes = _objectSpread(_
199
203
  skeleton: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
200
204
  portal_class: PropTypes.string,
201
205
  drawer_class: PropTypes.string,
206
+ page_offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
207
+ observer_element: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
208
+ min_height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
209
+ enable_body_lock: PropTypes.bool,
202
210
  class: PropTypes.string,
203
211
  className: PropTypes.string,
204
212
  children: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.node, PropTypes.object, PropTypes.array]),
@@ -45,16 +45,16 @@ export default class HelpButtonInstance extends React.PureComponent {
45
45
  if (!params['aria-roledescription']) {
46
46
  params['aria-roledescription'] = this.context.getTranslation(this.props).HelpButton.aria_role;
47
47
  }
48
+ }
48
49
 
49
- if (!params.text && !params['aria-label']) {
50
- let ariaLabel = convertJsxToString(props.title || props.children);
51
-
52
- if (!ariaLabel) {
53
- ariaLabel = this.context.getTranslation(this.props).HelpButton.title;
54
- }
50
+ if (!params.text && !params['aria-label']) {
51
+ let ariaLabel = convertJsxToString(props.title || props.children);
55
52
 
56
- params['aria-label'] = ariaLabel;
53
+ if (!ariaLabel) {
54
+ ariaLabel = this.context.getTranslation(this.props).HelpButton.title;
57
55
  }
56
+
57
+ params['aria-label'] = ariaLabel;
58
58
  }
59
59
 
60
60
  if (icon === 'information' && !size) {
@@ -137,6 +137,7 @@ export interface DrawerListProviderProps
137
137
  on_resize?: (...args: any[]) => any;
138
138
  on_select?: (...args: any[]) => any;
139
139
  on_state_update?: (...args: any[]) => any;
140
+ enable_body_lock?: boolean;
140
141
  use_drawer_on_mobile?: DrawerListProviderUseDrawerOnMobile;
141
142
  page_offset?: DrawerListProviderPageOffset;
142
143
  observer_element?: DrawerListProviderObserverElement;
@@ -1083,6 +1083,7 @@ export default class DrawerListProvider extends React.PureComponent {
1083
1083
  _defineProperty(DrawerListProvider, "contextType", Context);
1084
1084
 
1085
1085
  _defineProperty(DrawerListProvider, "defaultProps", _objectSpread(_objectSpread({}, drawerListDefaultProps), {}, {
1086
+ enable_body_lock: false,
1086
1087
  use_drawer_on_mobile: null,
1087
1088
  page_offset: null,
1088
1089
  observer_element: null,
@@ -1092,6 +1093,7 @@ _defineProperty(DrawerListProvider, "defaultProps", _objectSpread(_objectSpread(
1092
1093
  _defineProperty(DrawerListProvider, "blurDelay", 201);
1093
1094
 
1094
1095
  process.env.NODE_ENV !== "production" ? DrawerListProvider.propTypes = _objectSpread(_objectSpread({}, drawerListPropTypes), {}, {
1096
+ enable_body_lock: PropTypes.bool,
1095
1097
  use_drawer_on_mobile: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
1096
1098
  page_offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1097
1099
  observer_element: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
@@ -2,7 +2,7 @@ export function init() {
2
2
  if (typeof window !== 'undefined') {
3
3
  class Eufemia {
4
4
  get version() {
5
- return '9.25.0';
5
+ return '9.26.0';
6
6
  }
7
7
 
8
8
  }
@@ -2,4 +2,4 @@ import"react";var t="undefined"!=typeof global?global:"undefined"!=typeof self?s
2
2
  /*!
3
3
  * Programatically add the following
4
4
  */
5
- for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var a=e.names=e.title={};for(i in r)a[r[i]]=i;for(var u in o)r[u]=o[u]}(xy,xy.exports);var Sy,Ey=xy.exports,Oy={exports:{}};Sy=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e){t.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var t=document.documentElement,e=null,n="initial",r=n,o=Date.now(),i="false",a=["button","input","select","textarea"],u=[],c=[16,17,18,91,93],f=[],s={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},l=!1,d={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},v=!1;try{var h=Object.defineProperty({},"passive",{get:function(){v=!0}});window.addEventListener("test",null,h)}catch(t){}var y=function(){var t=!!v&&{passive:!0};document.addEventListener("DOMContentLoaded",g),window.PointerEvent?(window.addEventListener("pointerdown",m),window.addEventListener("pointermove",b)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",m),window.addEventListener("MSPointerMove",b)):(window.addEventListener("mousedown",m),window.addEventListener("mousemove",b),"ontouchstart"in window&&(window.addEventListener("touchstart",m,t),window.addEventListener("touchend",m))),window.addEventListener(k(),b,t),window.addEventListener("keydown",m),window.addEventListener("keyup",m),window.addEventListener("focusin",x),window.addEventListener("focusout",S)},g=function(){if(i=!(t.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(t){}w("input"),w("intent")},m=function(t){var e=t.which,o=s[t.type];"pointer"===o&&(o=O(t));var i=!f.length&&-1===c.indexOf(e),u=f.length&&-1!==f.indexOf(e),l="keyboard"===o&&e&&(i||u)||"mouse"===o||"touch"===o;if(A(o)&&(l=!1),l&&n!==o&&(E("input",n=o),w("input")),l&&r!==o){var d=document.activeElement;d&&d.nodeName&&(-1===a.indexOf(d.nodeName.toLowerCase())||"button"===d.nodeName.toLowerCase()&&!I(d,"form"))&&(E("intent",r=o),w("intent"))}},w=function(e){t.setAttribute("data-what"+e,"input"===e?n:r),L(e)},b=function(t){var e=s[t.type];"pointer"===e&&(e=O(t)),j(t),(!l&&!A(e)||l&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(E("intent",r=e),w("intent"))},x=function(n){n.target.nodeName?(e=n.target.nodeName.toLowerCase(),t.setAttribute("data-whatelement",e),n.target.classList&&n.target.classList.length&&t.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):S()},S=function(){e=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},E=function(t,e){if(i)try{window.sessionStorage.setItem("what-"+t,e)}catch(t){}},O=function(t){return"number"==typeof t.pointerType?p[t.pointerType]:"pen"===t.pointerType?"touch":t.pointerType},A=function(t){var e=Date.now(),r="mouse"===t&&"touch"===n&&e-o<200;return o=e,r},k=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},L=function(t){for(var e=0,o=u.length;e<o;e++)u[e].type===t&&u[e].fn.call(void 0,"input"===t?n:r)},j=function(t){d.x!==t.screenX||d.y!==t.screenY?(l=!1,d.x=t.screenX,d.y=t.screenY):l=!0},I=function(t,e){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return t.closest(e);do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(s[k()]="mouse",y()),{ask:function(t){return"intent"===t?r:n},element:function(){return e},ignoreKeys:function(t){c=t},specificKeys:function(t){f=t},registerOnChange:function(t,e){u.push({fn:t,type:e||"input"})},unRegisterOnChange:function(t){var e=function(t){for(var e=0,n=u.length;e<n;e++)if(u[e].fn===t)return e}(t);(e||0===e)&&u.splice(e,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])};var Ay=Oy.exports=Sy();!function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new j(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=A(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=s(t,e,n);if("normal"===c.type){if(r=n.done?v:d,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",d="suspendedYield",p="executing",v="completed",h={};function y(){}function g(){}function m(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(I([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=m.prototype=y.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function A(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function I(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return g.prototype=m,c(S,"constructor",m),c(m,"constructor",g),g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},E(O.prototype),c(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new O(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),c(S,u,"Generator"),c(S,i,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=I,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),f=r.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var ky,Ly,jy,Iy,Ty,Py,_y,Ry,Cy=!1;Cy="undefined"!=typeof window&&"undefined"!=typeof document&&!!window.MSInputMethodContext&&!!document.documentMode,"undefined"!=typeof navigator&&/edge/i.test(null===(ky=navigator)||void 0===ky?void 0:ky.userAgent),"undefined"!=typeof navigator&&new RegExp("iOS|iPhone|iPad|iPod","i").test(null===(Ly=navigator)||void 0===Ly?void 0:Ly.platform),"undefined"!=typeof navigator&&/safari/i.test(null===(jy=navigator)||void 0===jy?void 0:jy.userAgent)&&/chrome/i.test(null===(Iy=navigator)||void 0===Iy?void 0:Iy.userAgent),"undefined"!=typeof navigator&&new RegExp("Win","i").test(null===(Ty=navigator)||void 0===Ty?void 0:Ty.platform),"undefined"!=typeof navigator&&new RegExp("Android","i").test(null===(Py=navigator)||void 0===Py?void 0:Py.userAgent),"undefined"!=typeof navigator&&new RegExp("Mac|iPad|iPhone|iPod","i").test(null===(_y=navigator)||void 0===_y?void 0:_y.platform),"undefined"!=typeof navigator&&new RegExp("Linux","i").test(null===(Ry=navigator)||void 0===Ry?void 0:Ry.platform);function My(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ny(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ny(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Ny(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Fy(){if("undefined"!=typeof document){var t=!1;try{t=document.documentElement.getAttribute("data-whatintent")}catch(t){}return"touch"===t}return!1}function Dy(){var t=function t(){if("undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof navigator){try{"undefined"!=typeof window&&window.IS_TEST?document.documentElement.setAttribute("data-os","other"):null!==navigator.platform.match(new RegExp("Mac|iPad|iPhone|iPod"))?document.documentElement.setAttribute("data-os","mac"):null!==navigator.platform.match(new RegExp("Win"))?document.documentElement.setAttribute("data-os","win"):null!==navigator.platform.match(new RegExp("Linux"))&&document.documentElement.setAttribute("data-os","linux")}catch(t){}document.removeEventListener("DOMContentLoaded",t)}};"undefined"!=typeof document&&"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}!function(){if("undefined"!=typeof window){var t=function(){function t(){ef(this,t)}return rf(t,[{key:"version",get:function(){return"9.25.0"}}]),t}();window.Eufemia=new t}}(),Ay.specificKeys([9]),Dy(),function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ef(this,t),of(this,"checkOutsideClick",(function(t){var e=t.event,n=t.ignoreElements,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var o=e.target;if("HTML"===(null==o?void 0:o.tagName)&&(e.pageX>document.documentElement.clientWidth-40||e.pageY>document.documentElement.clientHeight-40))return;if(Gy(o))return;for(var i,a=0,u=n.length;a<u;++a)if(i=o,n[a])do{if(i===n[a])return;i=i&&i.parentNode}while(i);"function"==typeof r&&r()}catch(t){}})),this.handleClickOutside||"undefined"==typeof document||"undefined"==typeof window||(Array.isArray(e)||(e=[e]),this.handleClickOutside=function(t){r.checkOutsideClick({event:t,ignoreElements:e},(function(){return"function"==typeof n&&n({event:t})}))},document.addEventListener("mousedown",this.handleClickOutside),this.keydownCallback=function(t){"esc"===Ey(t)&&(window.removeEventListener("keydown",r.keydownCallback),"function"==typeof n&&n({event:t}))},window.addEventListener("keydown",this.keydownCallback),o.includedKeys&&(this.keyupCallback=function(t){var e=Ey(t);o.includedKeys.includes(e)&&"function"==typeof r.handleClickOutside&&r.handleClickOutside(t,(function(){r.keyupCallback&&window.removeEventListener("keyup",r.keyupCallback)}))},window.addEventListener("keyup",this.keyupCallback)))}rf(t,[{key:"remove",value:function(){this.handleClickOutside&&"undefined"!=typeof document&&(document.removeEventListener("mousedown",this.handleClickOutside),this.handleClickOutside=null),this.keydownCallback&&"undefined"!=typeof window&&(window.removeEventListener("keydown",this.keydownCallback),this.keydownCallback=null),this.keyupCallback&&"undefined"!=typeof window&&(window.removeEventListener("keyup",this.keyupCallback),this.keyupCallback=null)}}])}();var Gy=function(t){return t&&(t.scrollHeight>t.offsetHeight||t.scrollWidth>t.offsetWidth)&&$y(t)},$y=function(t){var e="undefined"!=typeof window?window.getComputedStyle(t):{};return/scroll|auto/i.test((e.overflow||"")+(e.overflowX||"")+(e.overflowY||""))};!function(){function t(){return ef(this,t),this.bypassElement=null,this.bypassSelectors=[],this}rf(t,[{key:"setBypassElement",value:function(t){return t instanceof HTMLElement&&(this.bypassElement=t),this}},{key:"setBypassSelector",value:function(t){return Array.isArray(t)||(t=[t]),this.bypassSelectors=t,this}},{key:"activate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._nodesToInvalidate||this._runInvalidaiton(t)}},{key:"revert",value:function(){this._revertInvalidation(),this._nodesToInvalidate=null}},{key:"_runInvalidaiton",value:function(t){if("undefined"!=typeof document){this._nodesToInvalidate=this.getNodesToInvalidate(t);var e,n=My(this._nodesToInvalidate);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r){var o=r.getAttribute("tabindex"),i=r.getAttribute("aria-hidden");null!==o&&void 0===r.__tabindex&&(r.__tabindex=o),null!==i&&void 0===r.__ariahidden&&(r.__ariahidden=i),r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true")}}}catch(t){n.e(t)}finally{n.f()}}}},{key:"_revertInvalidation",value:function(){if(Array.isArray(this._nodesToInvalidate)){var t,e=My(this._nodesToInvalidate);try{for(e.s();!(t=e.n()).done;){var n=t.value;n&&(void 0!==n.__tabindex?(n.setAttribute("tabindex",n.__tabindex),delete n.__tabindex):n.removeAttribute("tabindex"),void 0!==n.__ariahidden?(n.setAttribute("aria-hidden",n.__ariahidden),delete n.__ariahidden):n.removeAttribute("aria-hidden"))}}catch(t){e.e(t)}finally{e.f()}}}},{key:"getNodesToInvalidate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if("undefined"==typeof document)return[];"string"==typeof t&&(t=document.querySelector(t));var e=t?"*":"html *",n=this.bypassSelectors.map((function(t){return":not(".concat(t,")")})).join(""),r="".concat(e," ").concat(n,":not(script):not(style):not(path):not(head *)");if(Cy){var o=[],i=r.split(":").map((function(e){return e.endsWith(" *)")&&(o.push.apply(o,tf(Array.from((t||document.documentElement).querySelectorAll(e.match(/\(([^)]*)\)/)[1])))),e=e.replace(" *","")),e})).join(":");return Array.from((t||document.documentElement).querySelectorAll(i)).filter((function(t){return!o.includes(t)}))}return Array.from((t||document.documentElement).querySelectorAll(r))}}])}();export{Dy as defineNavigator,Fy as isTouchDevice};
5
+ for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var a=e.names=e.title={};for(i in r)a[r[i]]=i;for(var u in o)r[u]=o[u]}(xy,xy.exports);var Sy,Ey=xy.exports,Oy={exports:{}};Sy=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e){t.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var t=document.documentElement,e=null,n="initial",r=n,o=Date.now(),i="false",a=["button","input","select","textarea"],u=[],c=[16,17,18,91,93],f=[],s={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},l=!1,d={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},v=!1;try{var h=Object.defineProperty({},"passive",{get:function(){v=!0}});window.addEventListener("test",null,h)}catch(t){}var y=function(){var t=!!v&&{passive:!0};document.addEventListener("DOMContentLoaded",g),window.PointerEvent?(window.addEventListener("pointerdown",m),window.addEventListener("pointermove",b)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",m),window.addEventListener("MSPointerMove",b)):(window.addEventListener("mousedown",m),window.addEventListener("mousemove",b),"ontouchstart"in window&&(window.addEventListener("touchstart",m,t),window.addEventListener("touchend",m))),window.addEventListener(k(),b,t),window.addEventListener("keydown",m),window.addEventListener("keyup",m),window.addEventListener("focusin",x),window.addEventListener("focusout",S)},g=function(){if(i=!(t.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(t){}w("input"),w("intent")},m=function(t){var e=t.which,o=s[t.type];"pointer"===o&&(o=O(t));var i=!f.length&&-1===c.indexOf(e),u=f.length&&-1!==f.indexOf(e),l="keyboard"===o&&e&&(i||u)||"mouse"===o||"touch"===o;if(A(o)&&(l=!1),l&&n!==o&&(E("input",n=o),w("input")),l&&r!==o){var d=document.activeElement;d&&d.nodeName&&(-1===a.indexOf(d.nodeName.toLowerCase())||"button"===d.nodeName.toLowerCase()&&!I(d,"form"))&&(E("intent",r=o),w("intent"))}},w=function(e){t.setAttribute("data-what"+e,"input"===e?n:r),L(e)},b=function(t){var e=s[t.type];"pointer"===e&&(e=O(t)),j(t),(!l&&!A(e)||l&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(E("intent",r=e),w("intent"))},x=function(n){n.target.nodeName?(e=n.target.nodeName.toLowerCase(),t.setAttribute("data-whatelement",e),n.target.classList&&n.target.classList.length&&t.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):S()},S=function(){e=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},E=function(t,e){if(i)try{window.sessionStorage.setItem("what-"+t,e)}catch(t){}},O=function(t){return"number"==typeof t.pointerType?p[t.pointerType]:"pen"===t.pointerType?"touch":t.pointerType},A=function(t){var e=Date.now(),r="mouse"===t&&"touch"===n&&e-o<200;return o=e,r},k=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},L=function(t){for(var e=0,o=u.length;e<o;e++)u[e].type===t&&u[e].fn.call(void 0,"input"===t?n:r)},j=function(t){d.x!==t.screenX||d.y!==t.screenY?(l=!1,d.x=t.screenX,d.y=t.screenY):l=!0},I=function(t,e){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return t.closest(e);do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(s[k()]="mouse",y()),{ask:function(t){return"intent"===t?r:n},element:function(){return e},ignoreKeys:function(t){c=t},specificKeys:function(t){f=t},registerOnChange:function(t,e){u.push({fn:t,type:e||"input"})},unRegisterOnChange:function(t){var e=function(t){for(var e=0,n=u.length;e<n;e++)if(u[e].fn===t)return e}(t);(e||0===e)&&u.splice(e,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])};var Ay=Oy.exports=Sy();!function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new j(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=A(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=s(t,e,n);if("normal"===c.type){if(r=n.done?v:d,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",d="suspendedYield",p="executing",v="completed",h={};function y(){}function g(){}function m(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(I([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=m.prototype=y.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function A(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function I(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return g.prototype=m,c(S,"constructor",m),c(m,"constructor",g),g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},E(O.prototype),c(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new O(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),c(S,u,"Generator"),c(S,i,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=I,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),f=r.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var ky,Ly,jy,Iy,Ty,Py,_y,Ry,Cy=!1;Cy="undefined"!=typeof window&&"undefined"!=typeof document&&!!window.MSInputMethodContext&&!!document.documentMode,"undefined"!=typeof navigator&&/edge/i.test(null===(ky=navigator)||void 0===ky?void 0:ky.userAgent),"undefined"!=typeof navigator&&new RegExp("iOS|iPhone|iPad|iPod","i").test(null===(Ly=navigator)||void 0===Ly?void 0:Ly.platform),"undefined"!=typeof navigator&&/safari/i.test(null===(jy=navigator)||void 0===jy?void 0:jy.userAgent)&&/chrome/i.test(null===(Iy=navigator)||void 0===Iy?void 0:Iy.userAgent),"undefined"!=typeof navigator&&new RegExp("Win","i").test(null===(Ty=navigator)||void 0===Ty?void 0:Ty.platform),"undefined"!=typeof navigator&&new RegExp("Android","i").test(null===(Py=navigator)||void 0===Py?void 0:Py.userAgent),"undefined"!=typeof navigator&&new RegExp("Mac|iPad|iPhone|iPod","i").test(null===(_y=navigator)||void 0===_y?void 0:_y.platform),"undefined"!=typeof navigator&&new RegExp("Linux","i").test(null===(Ry=navigator)||void 0===Ry?void 0:Ry.platform);function My(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ny(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ny(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Ny(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Fy(){if("undefined"!=typeof document){var t=!1;try{t=document.documentElement.getAttribute("data-whatintent")}catch(t){}return"touch"===t}return!1}function Dy(){var t=function t(){if("undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof navigator){try{"undefined"!=typeof window&&window.IS_TEST?document.documentElement.setAttribute("data-os","other"):null!==navigator.platform.match(new RegExp("Mac|iPad|iPhone|iPod"))?document.documentElement.setAttribute("data-os","mac"):null!==navigator.platform.match(new RegExp("Win"))?document.documentElement.setAttribute("data-os","win"):null!==navigator.platform.match(new RegExp("Linux"))&&document.documentElement.setAttribute("data-os","linux")}catch(t){}document.removeEventListener("DOMContentLoaded",t)}};"undefined"!=typeof document&&"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}!function(){if("undefined"!=typeof window){var t=function(){function t(){ef(this,t)}return rf(t,[{key:"version",get:function(){return"9.26.0"}}]),t}();window.Eufemia=new t}}(),Ay.specificKeys([9]),Dy(),function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ef(this,t),of(this,"checkOutsideClick",(function(t){var e=t.event,n=t.ignoreElements,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var o=e.target;if("HTML"===(null==o?void 0:o.tagName)&&(e.pageX>document.documentElement.clientWidth-40||e.pageY>document.documentElement.clientHeight-40))return;if(Gy(o))return;for(var i,a=0,u=n.length;a<u;++a)if(i=o,n[a])do{if(i===n[a])return;i=i&&i.parentNode}while(i);"function"==typeof r&&r()}catch(t){}})),this.handleClickOutside||"undefined"==typeof document||"undefined"==typeof window||(Array.isArray(e)||(e=[e]),this.handleClickOutside=function(t){r.checkOutsideClick({event:t,ignoreElements:e},(function(){return"function"==typeof n&&n({event:t})}))},document.addEventListener("mousedown",this.handleClickOutside),this.keydownCallback=function(t){"esc"===Ey(t)&&(window.removeEventListener("keydown",r.keydownCallback),"function"==typeof n&&n({event:t}))},window.addEventListener("keydown",this.keydownCallback),o.includedKeys&&(this.keyupCallback=function(t){var e=Ey(t);o.includedKeys.includes(e)&&"function"==typeof r.handleClickOutside&&r.handleClickOutside(t,(function(){r.keyupCallback&&window.removeEventListener("keyup",r.keyupCallback)}))},window.addEventListener("keyup",this.keyupCallback)))}rf(t,[{key:"remove",value:function(){this.handleClickOutside&&"undefined"!=typeof document&&(document.removeEventListener("mousedown",this.handleClickOutside),this.handleClickOutside=null),this.keydownCallback&&"undefined"!=typeof window&&(window.removeEventListener("keydown",this.keydownCallback),this.keydownCallback=null),this.keyupCallback&&"undefined"!=typeof window&&(window.removeEventListener("keyup",this.keyupCallback),this.keyupCallback=null)}}])}();var Gy=function(t){return t&&(t.scrollHeight>t.offsetHeight||t.scrollWidth>t.offsetWidth)&&$y(t)},$y=function(t){var e="undefined"!=typeof window?window.getComputedStyle(t):{};return/scroll|auto/i.test((e.overflow||"")+(e.overflowX||"")+(e.overflowY||""))};!function(){function t(){return ef(this,t),this.bypassElement=null,this.bypassSelectors=[],this}rf(t,[{key:"setBypassElement",value:function(t){return t instanceof HTMLElement&&(this.bypassElement=t),this}},{key:"setBypassSelector",value:function(t){return Array.isArray(t)||(t=[t]),this.bypassSelectors=t,this}},{key:"activate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._nodesToInvalidate||this._runInvalidaiton(t)}},{key:"revert",value:function(){this._revertInvalidation(),this._nodesToInvalidate=null}},{key:"_runInvalidaiton",value:function(t){if("undefined"!=typeof document){this._nodesToInvalidate=this.getNodesToInvalidate(t);var e,n=My(this._nodesToInvalidate);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r){var o=r.getAttribute("tabindex"),i=r.getAttribute("aria-hidden");null!==o&&void 0===r.__tabindex&&(r.__tabindex=o),null!==i&&void 0===r.__ariahidden&&(r.__ariahidden=i),r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true")}}}catch(t){n.e(t)}finally{n.f()}}}},{key:"_revertInvalidation",value:function(){if(Array.isArray(this._nodesToInvalidate)){var t,e=My(this._nodesToInvalidate);try{for(e.s();!(t=e.n()).done;){var n=t.value;n&&(void 0!==n.__tabindex?(n.setAttribute("tabindex",n.__tabindex),delete n.__tabindex):n.removeAttribute("tabindex"),void 0!==n.__ariahidden?(n.setAttribute("aria-hidden",n.__ariahidden),delete n.__ariahidden):n.removeAttribute("aria-hidden"))}}catch(t){e.e(t)}finally{e.f()}}}},{key:"getNodesToInvalidate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if("undefined"==typeof document)return[];"string"==typeof t&&(t=document.querySelector(t));var e=t?"*":"html *",n=this.bypassSelectors.map((function(t){return":not(".concat(t,")")})).join(""),r="".concat(e," ").concat(n,":not(script):not(style):not(path):not(head *)");if(Cy){var o=[],i=r.split(":").map((function(e){return e.endsWith(" *)")&&(o.push.apply(o,tf(Array.from((t||document.documentElement).querySelectorAll(e.match(/\(([^)]*)\)/)[1])))),e=e.replace(" *","")),e})).join(":");return Array.from((t||document.documentElement).querySelectorAll(i)).filter((function(t){return!o.includes(t)}))}return Array.from((t||document.documentElement).querySelectorAll(r))}}])}();export{Dy as defineNavigator,Fy as isTouchDevice};