@dnb/eufemia 9.47.0 → 9.47.1

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 +9 -0
  2. package/cjs/components/input-masked/InputMasked.js +13 -1
  3. package/cjs/components/input-masked/InputMaskedHooks.js +1 -1
  4. package/cjs/components/input-masked/InputMaskedUtils.js +3 -3
  5. package/cjs/components/upload/Upload.js +0 -1
  6. package/cjs/components/upload/UploadFileInput.js +2 -10
  7. package/cjs/components/upload/UploadFileList.js +0 -1
  8. package/cjs/components/upload/UploadFileListCell.js +22 -23
  9. package/cjs/components/upload/UploadInfo.js +1 -9
  10. package/cjs/components/upload/UploadVerify.d.ts +3 -0
  11. package/cjs/components/upload/UploadVerify.js +27 -3
  12. package/cjs/shared/Eufemia.js +1 -1
  13. package/components/input-masked/InputMasked.js +13 -1
  14. package/components/input-masked/InputMaskedHooks.js +1 -1
  15. package/components/input-masked/InputMaskedUtils.js +3 -3
  16. package/components/upload/Upload.js +0 -1
  17. package/components/upload/UploadFileInput.js +3 -10
  18. package/components/upload/UploadFileList.js +0 -1
  19. package/components/upload/UploadFileListCell.js +17 -19
  20. package/components/upload/UploadInfo.js +1 -9
  21. package/components/upload/UploadVerify.d.ts +3 -0
  22. package/components/upload/UploadVerify.js +18 -1
  23. package/es/components/input-masked/InputMasked.js +12 -1
  24. package/es/components/input-masked/InputMaskedHooks.js +1 -1
  25. package/es/components/input-masked/InputMaskedUtils.js +3 -3
  26. package/es/components/upload/Upload.js +0 -1
  27. package/es/components/upload/UploadFileInput.js +3 -7
  28. package/es/components/upload/UploadFileList.js +0 -1
  29. package/es/components/upload/UploadFileListCell.js +14 -18
  30. package/es/components/upload/UploadInfo.js +1 -9
  31. package/es/components/upload/UploadVerify.d.ts +3 -0
  32. package/es/components/upload/UploadVerify.js +11 -1
  33. package/es/shared/Eufemia.js +1 -1
  34. package/esm/dnb-ui-basis.min.mjs +1 -1
  35. package/esm/dnb-ui-components.min.mjs +1 -1
  36. package/esm/dnb-ui-elements.min.mjs +1 -1
  37. package/esm/dnb-ui-extensions.min.mjs +1 -1
  38. package/esm/dnb-ui-lib.min.mjs +2 -2
  39. package/esm/dnb-ui-web-components.min.mjs +2 -2
  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
@@ -7,6 +7,9 @@ import "core-js/modules/es.regexp.to-string.js";
7
7
  import "core-js/modules/es.array.includes.js";
8
8
  import "core-js/modules/es.string.includes.js";
9
9
  import "core-js/modules/es.array.map.js";
10
+ import "core-js/modules/es.function.name.js";
11
+ import "core-js/modules/es.array.join.js";
12
+ import "core-js/modules/es.string.split.js";
10
13
  import "core-js/modules/web.dom-collections.for-each.js";
11
14
  import "core-js/modules/es.object.entries.js";
12
15
  import { format } from '../number-format/NumberUtils';
@@ -26,8 +29,9 @@ export function verifyFiles(files, context) {
26
29
  return false;
27
30
  }
28
31
 
32
+ var fileType = hasPreferredMimeType(acceptedFileTypes, file) ? file.type : getFileTypeFromExtension(file) || file.type;
29
33
  var foundType = extendWithAbbreviation(acceptedFileTypes).some(function (type) {
30
- return file.type.includes(type);
34
+ return fileType.includes(type);
31
35
  });
32
36
  return !foundType ? errorUnsupportedFile : null;
33
37
  };
@@ -44,6 +48,19 @@ export function verifyFiles(files, context) {
44
48
  });
45
49
  return cleanedFiles;
46
50
  }
51
+ export function getFileTypeFromExtension(file) {
52
+ return file.name.includes('.') && file.name.replace(/.*\.([^.]+)$/, '$1') || null;
53
+ }
54
+ export function getAcceptedFileTypes(acceptedFileTypes) {
55
+ return extendWithAbbreviation(acceptedFileTypes).map(function (type) {
56
+ return type.includes('/') ? type : ".".concat(type);
57
+ }).join(',');
58
+ }
59
+ export function hasPreferredMimeType(acceptedFileTypes, file) {
60
+ return file.type.split('/')[1] && (!(acceptedFileTypes !== null && acceptedFileTypes !== void 0 && acceptedFileTypes.length) || (acceptedFileTypes === null || acceptedFileTypes === void 0 ? void 0 : acceptedFileTypes.some(function (type) {
61
+ return type.toLowerCase() === file.type.toLowerCase();
62
+ })));
63
+ }
47
64
  export function extendWithAbbreviation(acceptedFileTypes) {
48
65
  var abbreviations = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
49
66
  jpg: 'jpeg'
@@ -15,6 +15,17 @@ import Input, { inputPropTypes } from '../input/Input';
15
15
  import Context from '../../shared/Context';
16
16
  const InputMasked = React.forwardRef((props, ref) => {
17
17
  const context = React.useContext(Context);
18
+
19
+ if (props !== null && props !== void 0 && props.mask) {
20
+ const alias = context === null || context === void 0 ? void 0 : context.InputMasked;
21
+
22
+ for (const key in alias) {
23
+ if (/^as[_A-Z]|number_mask|currency_mask/.test(key)) {
24
+ delete alias[key];
25
+ }
26
+ }
27
+ }
28
+
18
29
  const contextAndProps = React.useCallback(extendPropsWithContext(props, InputMasked.defaultProps, context === null || context === void 0 ? void 0 : context.InputMasked), [props, InputMasked.defaultProps, context === null || context === void 0 ? void 0 : context.InputMasked]);
19
30
  return React.createElement(InputMaskedContext.Provider, {
20
31
  value: {
@@ -55,7 +66,7 @@ process.env.NODE_ENV !== "production" ? InputMasked.propTypes = _objectSpread({
55
66
  on_submit_blur: PropTypes.func
56
67
  }, inputPropTypes) : void 0;
57
68
  InputMasked.defaultProps = _objectSpread(_objectSpread({}, Input.defaultProps), {}, {
58
- mask: [],
69
+ mask: null,
59
70
  number_mask: null,
60
71
  currency_mask: null,
61
72
  mask_options: null,
@@ -182,7 +182,7 @@ export const useInputElement = () => {
182
182
  inputRef: ref,
183
183
  inputElement: inputElementRef.current,
184
184
  pipe: pipe,
185
- mask: mask,
185
+ mask: mask || [],
186
186
  showMask: showMask,
187
187
  guide: showGuide,
188
188
  keepCharPositions: keepCharPositions,
@@ -63,8 +63,8 @@ export const correctNumberValue = ({
63
63
  value = value.replace('.', decimalSymbol);
64
64
 
65
65
  if (localValue !== null) {
66
- const localNumberValue = localValue.replace(/[^\d,.]/g, '');
67
- const numberValue = value.replace(/[^\d,.]/g, '');
66
+ const localNumberValue = localValue.replace(/[^\d,.-]/g, '');
67
+ const numberValue = value.replace(/[^\d,.-]/g, '');
68
68
  const endsWithDecimal = localNumberValue.endsWith(decimalSymbol);
69
69
  const endsWithZeroAndDecimal = localNumberValue.endsWith(`${decimalSymbol}0`);
70
70
 
@@ -78,7 +78,7 @@ export const correctNumberValue = ({
78
78
  value = localValue;
79
79
  }
80
80
 
81
- if (/^-|-0$/.test(localValue)) {
81
+ if (/^(-|-0)$/.test(localValue.replace(/[^\d-0]/g, ''))) {
82
82
  value = localValue;
83
83
  } else if (localNumberValue === '' && numberValue === '0') {
84
84
  value = '';
@@ -75,7 +75,6 @@ const Upload = localProps => {
75
75
  }, React.createElement(Provider, {
76
76
  skeleton: skeleton
77
77
  }, React.createElement(UploadDropzone, _extends({
78
- "data-testid": "upload",
79
78
  className: classnames('dnb-upload', spacingClasses, className)
80
79
  }, props), _UploadInfo || (_UploadInfo = React.createElement(UploadInfo, null)), _UploadFileInput || (_UploadFileInput = React.createElement(UploadFileInput, null)), _UploadFileList || (_UploadFileList = React.createElement(UploadFileList, null)))));
81
80
 
@@ -6,7 +6,7 @@ import { folder as FolderIcon } from '../../icons';
6
6
  import { makeUniqueId } from '../../shared/component-helper';
7
7
  import { UploadContext } from './UploadContext';
8
8
  import UploadStatus from './UploadStatus';
9
- import { extendWithAbbreviation } from './UploadVerify';
9
+ import { getAcceptedFileTypes } from './UploadVerify';
10
10
 
11
11
  const UploadFileInput = () => {
12
12
  const fileInput = useRef(null);
@@ -26,13 +26,10 @@ const UploadFileInput = () => {
26
26
  };
27
27
 
28
28
  const sharedId = id || makeUniqueId();
29
- const accept = extendWithAbbreviation(acceptedFileTypes).map(type => `.${type}`).join(',');
30
- return React.createElement("div", {
31
- "data-testid": "upload-file-input"
32
- }, React.createElement(Button, {
29
+ const accept = getAcceptedFileTypes(acceptedFileTypes);
30
+ return React.createElement("div", null, React.createElement(Button, {
33
31
  top: "medium",
34
32
  id: `${sharedId}-input`,
35
- "data-testid": "upload-file-input-button",
36
33
  className: "dnb-upload__file-input-button",
37
34
  icon: FolderIcon,
38
35
  icon_position: "left",
@@ -41,7 +38,6 @@ const UploadFileInput = () => {
41
38
  onClick: openFileDialog
42
39
  }, buttonText), _UploadStatus || (_UploadStatus = React.createElement(UploadStatus, null)), React.createElement("input", {
43
40
  "aria-labelledby": `${sharedId}-input`,
44
- "data-testid": "upload-file-input-input",
45
41
  ref: fileInput,
46
42
  accept: accept,
47
43
  className: "dnb-upload__file-input",
@@ -24,7 +24,6 @@ function UploadFileList() {
24
24
  }
25
25
 
26
26
  return React.createElement("ul", {
27
- "data-testid": "upload-file-list",
28
27
  className: "dnb-upload__file-list",
29
28
  "aria-label": fileListAriaLabel
30
29
  }, files.map((uploadFile, index) => {
@@ -10,6 +10,7 @@ import P from '../../elements/P';
10
10
  import { trash as TrashIcon, exclamation_medium as ExclamationIcon, file_pdf_medium as pdf, file_xls_medium as xls, file_ppt_medium as ppt, file_csv_medium as csv, file_txt_medium as txt, file_xml_medium as xml, file_medium as file } from '../../icons';
11
11
  import { getPreviousSibling, warn } from '../../shared/component-helper';
12
12
  import useUpload from './useUpload';
13
+ import { getFileTypeFromExtension } from './UploadVerify';
13
14
  const images = {
14
15
  pdf,
15
16
  xls,
@@ -27,19 +28,16 @@ const UploadFileListCell = ({
27
28
  loadingText,
28
29
  deleteButtonText
29
30
  }) => {
30
- var _div, _a, _FormStatus;
31
+ var _div, _P, _FormStatus;
31
32
 
32
33
  const {
33
34
  file,
34
35
  errorMessage,
35
36
  isLoading
36
37
  } = uploadFile;
37
- const {
38
- name,
39
- type
40
- } = file;
41
- const fileType = type.split('/')[1] || '';
42
38
  const hasWarning = errorMessage != null;
39
+ const fileType = getFileTypeFromExtension(file);
40
+ const humanFileType = fileType.toUpperCase();
43
41
  const imageUrl = URL.createObjectURL(file);
44
42
  const cellRef = useRef();
45
43
  const exists = useExistsHighlight(id, file);
@@ -60,7 +58,6 @@ const UploadFileListCell = ({
60
58
  };
61
59
 
62
60
  return React.createElement("li", {
63
- "data-testid": "upload-file-list-cell",
64
61
  className: classnames('dnb-upload__file-cell', hasWarning && 'dnb-upload__file-cell--warning', exists && 'dnb-upload__file-cell--highlight'),
65
62
  ref: cellRef
66
63
  }, React.createElement("div", {
@@ -68,7 +65,6 @@ const UploadFileListCell = ({
68
65
  }, React.createElement("div", {
69
66
  className: "dnb-upload__file-cell__content__left"
70
67
  }, getIcon(), getTitle()), React.createElement("div", null, React.createElement(Button, {
71
- "data-testid": "upload-delete-button",
72
68
  icon: TrashIcon,
73
69
  variant: "tertiary",
74
70
  onClick: onDeleteHandler,
@@ -77,9 +73,7 @@ const UploadFileListCell = ({
77
73
 
78
74
  function getIcon() {
79
75
  if (isLoading) {
80
- return _ProgressIndicator || (_ProgressIndicator = React.createElement(ProgressIndicator, {
81
- "data-testid": "upload-progress-indicator"
82
- }));
76
+ return _ProgressIndicator || (_ProgressIndicator = React.createElement(ProgressIndicator, null));
83
77
  }
84
78
 
85
79
  if (hasWarning) return _Icon || (_Icon = React.createElement(Icon, {
@@ -87,7 +81,12 @@ const UploadFileListCell = ({
87
81
  }));
88
82
  let iconFileType = fileType;
89
83
 
90
- if (!Object.prototype.hasOwnProperty.call(images, fileType)) {
84
+ if (!iconFileType) {
85
+ const mimeParts = file.type.split('/');
86
+ iconFileType = images[mimeParts[0]] || images[mimeParts[1]];
87
+ }
88
+
89
+ if (!Object.prototype.hasOwnProperty.call(images, iconFileType)) {
91
90
  iconFileType = 'file';
92
91
  }
93
92
 
@@ -101,23 +100,20 @@ const UploadFileListCell = ({
101
100
  className: "dnb-upload__file-cell__text-container dnb-upload__file-cell__text-container--loading"
102
101
  }, loadingText)) : React.createElement("div", {
103
102
  className: "dnb-upload__file-cell__text-container"
104
- }, _a || (_a = React.createElement("a", {
105
- "data-testid": "upload-file-anchor",
103
+ }, React.createElement("a", {
106
104
  target: "_blank",
107
105
  href: imageUrl,
108
106
  className: "dnb-anchor dnb-upload__file-cell__title",
109
107
  rel: "noopener noreferrer"
110
- }, name)), React.createElement(P, {
111
- "data-testid": "upload-subtitle",
108
+ }, file.name), _P || (_P = React.createElement(P, {
112
109
  className: "dnb-upload__file-cell__subtitle",
113
110
  size: "x-small",
114
111
  top: "xx-small"
115
- }, fileType.toUpperCase()));
112
+ }, humanFileType)));
116
113
  }
117
114
 
118
115
  function getWarning() {
119
116
  return hasWarning ? _FormStatus || (_FormStatus = React.createElement(FormStatus, {
120
- "data-testid": "upload-warning",
121
117
  top: "small",
122
118
  text: errorMessage,
123
119
  stretch: true
@@ -22,10 +22,8 @@ const UploadInfo = () => {
22
22
  } = context;
23
23
  const prettyfiedAcceptedFileFormats = acceptedFileTypes.join(', ').toUpperCase();
24
24
  return React.createElement(React.Fragment, null, React.createElement(Lead, {
25
- "data-testid": "upload-title",
26
25
  space: "0"
27
26
  }, title), React.createElement(P, {
28
- "data-testid": "upload-text",
29
27
  top: "xx-small",
30
28
  className: "dnb-upload__text"
31
29
  }, text), React.createElement(Dl, {
@@ -33,13 +31,7 @@ const UploadInfo = () => {
33
31
  bottom: 0,
34
32
  direction: "horizontal",
35
33
  className: "dnb-upload__condition-list"
36
- }, React.createElement(Dl.Item, null, React.createElement(Dt, {
37
- "data-testid": "upload-accepted-formats"
38
- }, fileTypeDescription), React.createElement(Dd, null, prettyfiedAcceptedFileFormats)), React.createElement(Dl.Item, null, React.createElement(Dt, {
39
- "data-testid": "upload-file-size"
40
- }, fileSizeDescription), React.createElement(Dd, null, String(fileSizeContent).replace('%size', format(fileMaxSize).toString()))), filesAmountLimit < defaultProps.filesAmountLimit && React.createElement(Dl.Item, null, React.createElement(Dt, {
41
- "data-testid": "upload-file-amount-limit"
42
- }, fileAmountDescription), React.createElement(Dd, null, filesAmountLimit))));
34
+ }, prettyfiedAcceptedFileFormats && React.createElement(Dl.Item, null, React.createElement(Dt, null, fileTypeDescription), React.createElement(Dd, null, prettyfiedAcceptedFileFormats)), React.createElement(Dl.Item, null, React.createElement(Dt, null, fileSizeDescription), React.createElement(Dd, null, String(fileSizeContent).replace('%size', format(fileMaxSize).toString()))), filesAmountLimit < defaultProps.filesAmountLimit && React.createElement(Dl.Item, null, React.createElement(Dt, null, fileAmountDescription), React.createElement(Dd, null, filesAmountLimit))));
43
35
  };
44
36
 
45
37
  export default UploadInfo;
@@ -1,5 +1,8 @@
1
1
  import { UploadFile, UploadContextProps, UploadAcceptedFileTypes } from './types';
2
2
  export declare function verifyFiles(files: UploadFile[], context: Pick<UploadContextProps, 'errorUnsupportedFile' | 'errorLargeFile' | 'acceptedFileTypes' | 'fileMaxSize'>): UploadFile[];
3
+ export declare function getFileTypeFromExtension(file: File): string;
4
+ export declare function getAcceptedFileTypes(acceptedFileTypes: UploadAcceptedFileTypes): string;
5
+ export declare function hasPreferredMimeType(acceptedFileTypes: UploadAcceptedFileTypes, file: File): boolean;
3
6
  export declare function extendWithAbbreviation(acceptedFileTypes: UploadAcceptedFileTypes, abbreviations?: {
4
7
  jpg: string;
5
8
  }): string[];
@@ -17,8 +17,9 @@ export function verifyFiles(files, context) {
17
17
  return false;
18
18
  }
19
19
 
20
+ const fileType = hasPreferredMimeType(acceptedFileTypes, file) ? file.type : getFileTypeFromExtension(file) || file.type;
20
21
  const foundType = extendWithAbbreviation(acceptedFileTypes).some(type => {
21
- return file.type.includes(type);
22
+ return fileType.includes(type);
22
23
  });
23
24
  return !foundType ? errorUnsupportedFile : null;
24
25
  };
@@ -37,6 +38,15 @@ export function verifyFiles(files, context) {
37
38
  });
38
39
  return cleanedFiles;
39
40
  }
41
+ export function getFileTypeFromExtension(file) {
42
+ return file.name.includes('.') && file.name.replace(/.*\.([^.]+)$/, '$1') || null;
43
+ }
44
+ export function getAcceptedFileTypes(acceptedFileTypes) {
45
+ return extendWithAbbreviation(acceptedFileTypes).map(type => type.includes('/') ? type : `.${type}`).join(',');
46
+ }
47
+ export function hasPreferredMimeType(acceptedFileTypes, file) {
48
+ return file.type.split('/')[1] && (!(acceptedFileTypes !== null && acceptedFileTypes !== void 0 && acceptedFileTypes.length) || (acceptedFileTypes === null || acceptedFileTypes === void 0 ? void 0 : acceptedFileTypes.some(type => type.toLowerCase() === file.type.toLowerCase())));
49
+ }
40
50
  export function extendWithAbbreviation(acceptedFileTypes, abbreviations = {
41
51
  jpg: 'jpeg'
42
52
  }) {
@@ -2,7 +2,7 @@ export function init() {
2
2
  if (typeof window !== 'undefined') {
3
3
  class Eufemia {
4
4
  get version() {
5
- return '9.47.0';
5
+ return '9.47.1';
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 u=e.names=e.title={};for(i in r)u[r[i]]=i;for(var a in o)r[a]=o[a]}(Qv,Qv.exports);var Zv,ty=Qv.exports,ey={exports:{}};Zv=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",u=["button","input","select","textarea"],a=[],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"},h=!1;try{var v=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,v)}catch(t){}var y=function(){var t=!!h&&{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",E)},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),a=f.length&&-1!==f.indexOf(e),l="keyboard"===o&&e&&(i||a)||"mouse"===o||"touch"===o;if(L(o)&&(l=!1),l&&n!==o&&(S("input",n=o),w("input")),l&&r!==o){var d=document.activeElement;d&&d.nodeName&&(-1===u.indexOf(d.nodeName.toLowerCase())||"button"===d.nodeName.toLowerCase()&&!P(d,"form"))&&(S("intent",r=o),w("intent"))}},w=function(e){t.setAttribute("data-what"+e,"input"===e?n:r),j(e)},b=function(t){var e=s[t.type];"pointer"===e&&(e=O(t)),A(t),(!l&&!L(e)||l&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(S("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(" ",","))):E()},E=function(){e=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},S=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},L=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"},j=function(t){for(var e=0,o=a.length;e<o;e++)a[e].type===t&&a[e].fn.call(void 0,"input"===t?n:r)},A=function(t){d.x!==t.screenX||d.y!==t.screenY?(l=!1,d.x=t.screenX,d.y=t.screenY):l=!0},P=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){a.push({fn:t,type:e||"input"})},unRegisterOnChange:function(t){var e=function(t){for(var e=0,n=a.length;e<n;e++)if(a[e].fn===t)return e}(t);(e||0===e)&&a.splice(e,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])};var ny=ey.exports=Zv();!function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",a=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),u=new A(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===h){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var a=L(u,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,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?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(t,n,u),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",h="completed",v={};function y(){}function g(){}function m(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(P([])));x&&x!==n&&r.call(x,i)&&(w=x);var E=m.prototype=y.prototype=Object.create(w);function S(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,u,a){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,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,a)}))}a(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 L(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,L(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;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,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(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,u=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 u.next=u}}return{next:C}}function C(){return{value:e,done:!0}}return g.prototype=m,c(E,"constructor",m),c(m,"constructor",g),g.displayName=c(m,a,"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,a,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},S(O.prototype),c(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var u=new O(f(e,n,r,o),i);return t.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},S(E),c(E,a,"Generator"),c(E,i,(function(){return this})),c(E,"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=P,A.prototype={constructor:A,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(j),!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 a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=r.call(u,"catchLoc"),f=r.call(u,"finallyLoc");if(c&&f){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.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 u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(u)},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),v},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),j(n),v}},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;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var ry=TypeError,oy=zr,iy=u,uy=di,ay=H,cy=Ft,fy=nr,sy=function(t){if(t>9007199254740991)throw ry("Maximum allowed index exceeded");return t},ly=Io,dy=Ti,py=fl,hy=ot,vy=ee("isConcatSpreadable"),yy=hy>=51||!iy((function(){var t=[];return t[vy]=!1,t.concat()[0]!==t})),gy=py("concat"),my=function(t){if(!ay(t))return!1;var e=t[vy];return void 0!==e?!!e:uy(t)};oy({target:"Array",proto:!0,arity:1,forced:!yy||!gy},{concat:function(t){var e,n,r,o,i,u=cy(this),a=dy(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(my(i=-1===e?u:arguments[e]))for(o=fy(i),sy(c+o),n=0;n<o;n++,c++)n in i&&ly(a,c,i[n]);else sy(c+1),ly(a,c++,i);return a.length=c,a}});var wy,by,xy,Ey,Sy,Oy,Ly,ky;"undefined"!=typeof navigator&&/edge/i.test(null===(wy=navigator)||void 0===wy?void 0:wy.userAgent),"undefined"!=typeof navigator&&new RegExp("iOS|iPhone|iPad|iPod","i").test(null===(by=navigator)||void 0===by?void 0:by.platform),"undefined"!=typeof navigator&&/safari/i.test(null===(xy=navigator)||void 0===xy?void 0:xy.userAgent)&&/chrome/i.test(null===(Ey=navigator)||void 0===Ey?void 0:Ey.userAgent),"undefined"!=typeof navigator&&new RegExp("Win","i").test(null===(Sy=navigator)||void 0===Sy?void 0:Sy.platform),"undefined"!=typeof navigator&&new RegExp("Android","i").test(null===(Oy=navigator)||void 0===Oy?void 0:Oy.userAgent),"undefined"!=typeof navigator&&new RegExp("Mac|iPad|iPhone|iPod","i").test(null===(Ly=navigator)||void 0===Ly?void 0:Ly.platform),"undefined"!=typeof navigator&&new RegExp("Linux","i").test(null===(ky=navigator)||void 0===ky?void 0:ky.platform);function jy(){if("undefined"!=typeof document){var t=!1;try{t=document.documentElement.getAttribute("data-whatintent")}catch(t){}return"touch"===t}return!1}function Ay(){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(){Ja(this,t)}return Za(t,[{key:"version",get:function(){return"9.47.0"}}]),t}();window.Eufemia=new t}}(),ny.specificKeys([9]),Ay(),function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ja(this,t),tc(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(Py(o))return;for(var i,u=0,a=n.length;u<a;++u)if(i=o,n[u])do{if(i===n[u])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"===ty(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=ty(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)))}Za(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 Py=function(t){return t&&(t.scrollHeight>t.offsetHeight||t.scrollWidth>t.offsetWidth)&&Cy(t)},Cy=function(t){var e="undefined"!=typeof window?window.getComputedStyle(t):{};return/scroll|auto/i.test((e.overflow||"")+(e.overflowX||"")+(e.overflowY||""))};export{Ay as defineNavigator,jy 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 u=e.names=e.title={};for(i in r)u[r[i]]=i;for(var a in o)r[a]=o[a]}(Qv,Qv.exports);var Zv,ty=Qv.exports,ey={exports:{}};Zv=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",u=["button","input","select","textarea"],a=[],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"},h=!1;try{var v=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,v)}catch(t){}var y=function(){var t=!!h&&{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",E)},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),a=f.length&&-1!==f.indexOf(e),l="keyboard"===o&&e&&(i||a)||"mouse"===o||"touch"===o;if(L(o)&&(l=!1),l&&n!==o&&(S("input",n=o),w("input")),l&&r!==o){var d=document.activeElement;d&&d.nodeName&&(-1===u.indexOf(d.nodeName.toLowerCase())||"button"===d.nodeName.toLowerCase()&&!P(d,"form"))&&(S("intent",r=o),w("intent"))}},w=function(e){t.setAttribute("data-what"+e,"input"===e?n:r),j(e)},b=function(t){var e=s[t.type];"pointer"===e&&(e=O(t)),A(t),(!l&&!L(e)||l&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(S("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(" ",","))):E()},E=function(){e=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},S=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},L=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"},j=function(t){for(var e=0,o=a.length;e<o;e++)a[e].type===t&&a[e].fn.call(void 0,"input"===t?n:r)},A=function(t){d.x!==t.screenX||d.y!==t.screenY?(l=!1,d.x=t.screenX,d.y=t.screenY):l=!0},P=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){a.push({fn:t,type:e||"input"})},unRegisterOnChange:function(t){var e=function(t){for(var e=0,n=a.length;e<n;e++)if(a[e].fn===t)return e}(t);(e||0===e)&&a.splice(e,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])};var ny=ey.exports=Zv();!function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",a=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),u=new A(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===h){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var a=L(u,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,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?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(t,n,u),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",h="completed",v={};function y(){}function g(){}function m(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(P([])));x&&x!==n&&r.call(x,i)&&(w=x);var E=m.prototype=y.prototype=Object.create(w);function S(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,u,a){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,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,a)}))}a(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 L(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,L(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;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,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(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,u=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 u.next=u}}return{next:C}}function C(){return{value:e,done:!0}}return g.prototype=m,c(E,"constructor",m),c(m,"constructor",g),g.displayName=c(m,a,"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,a,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},S(O.prototype),c(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var u=new O(f(e,n,r,o),i);return t.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},S(E),c(E,a,"Generator"),c(E,i,(function(){return this})),c(E,"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=P,A.prototype={constructor:A,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(j),!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 a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=r.call(u,"catchLoc"),f=r.call(u,"finallyLoc");if(c&&f){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.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 u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(u)},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),v},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),j(n),v}},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;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var ry=TypeError,oy=zr,iy=u,uy=di,ay=H,cy=Ft,fy=nr,sy=function(t){if(t>9007199254740991)throw ry("Maximum allowed index exceeded");return t},ly=Io,dy=Ti,py=fl,hy=ot,vy=ee("isConcatSpreadable"),yy=hy>=51||!iy((function(){var t=[];return t[vy]=!1,t.concat()[0]!==t})),gy=py("concat"),my=function(t){if(!ay(t))return!1;var e=t[vy];return void 0!==e?!!e:uy(t)};oy({target:"Array",proto:!0,arity:1,forced:!yy||!gy},{concat:function(t){var e,n,r,o,i,u=cy(this),a=dy(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(my(i=-1===e?u:arguments[e]))for(o=fy(i),sy(c+o),n=0;n<o;n++,c++)n in i&&ly(a,c,i[n]);else sy(c+1),ly(a,c++,i);return a.length=c,a}});var wy,by,xy,Ey,Sy,Oy,Ly,ky;"undefined"!=typeof navigator&&/edge/i.test(null===(wy=navigator)||void 0===wy?void 0:wy.userAgent),"undefined"!=typeof navigator&&new RegExp("iOS|iPhone|iPad|iPod","i").test(null===(by=navigator)||void 0===by?void 0:by.platform),"undefined"!=typeof navigator&&/safari/i.test(null===(xy=navigator)||void 0===xy?void 0:xy.userAgent)&&/chrome/i.test(null===(Ey=navigator)||void 0===Ey?void 0:Ey.userAgent),"undefined"!=typeof navigator&&new RegExp("Win","i").test(null===(Sy=navigator)||void 0===Sy?void 0:Sy.platform),"undefined"!=typeof navigator&&new RegExp("Android","i").test(null===(Oy=navigator)||void 0===Oy?void 0:Oy.userAgent),"undefined"!=typeof navigator&&new RegExp("Mac|iPad|iPhone|iPod","i").test(null===(Ly=navigator)||void 0===Ly?void 0:Ly.platform),"undefined"!=typeof navigator&&new RegExp("Linux","i").test(null===(ky=navigator)||void 0===ky?void 0:ky.platform);function jy(){if("undefined"!=typeof document){var t=!1;try{t=document.documentElement.getAttribute("data-whatintent")}catch(t){}return"touch"===t}return!1}function Ay(){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(){Ja(this,t)}return Za(t,[{key:"version",get:function(){return"9.47.1"}}]),t}();window.Eufemia=new t}}(),ny.specificKeys([9]),Ay(),function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ja(this,t),tc(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(Py(o))return;for(var i,u=0,a=n.length;u<a;++u)if(i=o,n[u])do{if(i===n[u])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"===ty(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=ty(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)))}Za(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 Py=function(t){return t&&(t.scrollHeight>t.offsetHeight||t.scrollWidth>t.offsetWidth)&&Cy(t)},Cy=function(t){var e="undefined"!=typeof window?window.getComputedStyle(t):{};return/scroll|auto/i.test((e.overflow||"")+(e.overflowX||"")+(e.overflowY||""))};export{Ay as defineNavigator,jy as isTouchDevice};