@dnb/eufemia 9.47.1 → 9.47.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/cjs/components/accordion/AccordionProvider.js +1 -3
- package/cjs/components/autocomplete/Autocomplete.js +4 -1
- package/cjs/components/button/Button.d.ts +6 -1
- package/cjs/components/button/Button.js +2 -0
- package/cjs/components/dropdown/Dropdown.d.ts +2 -2
- package/cjs/components/help-button/HelpButtonInstance.js +1 -3
- package/cjs/components/icon/Icon.js +1 -3
- package/cjs/components/icon-primary/IconPrimary.js +1 -3
- package/cjs/components/logo/Logo.js +1 -3
- package/cjs/components/modal/Modal.js +1 -3
- package/cjs/components/pagination/Pagination.js +1 -3
- package/cjs/components/progress-indicator/ProgressIndicator.js +1 -3
- package/cjs/components/step-indicator/StepIndicatorContext.js +1 -3
- package/cjs/elements/Element.js +1 -3
- package/cjs/fragments/drawer-list/DrawerList.js +1 -3
- package/cjs/shared/Eufemia.js +1 -1
- package/components/accordion/AccordionProvider.js +1 -2
- package/components/autocomplete/Autocomplete.js +4 -1
- package/components/button/Button.d.ts +6 -1
- package/components/button/Button.js +2 -0
- package/components/dropdown/Dropdown.d.ts +2 -2
- package/components/help-button/HelpButtonInstance.js +1 -2
- package/components/icon/Icon.js +1 -2
- package/components/icon-primary/IconPrimary.js +1 -2
- package/components/logo/Logo.js +1 -2
- package/components/modal/Modal.js +1 -2
- package/components/pagination/Pagination.js +1 -2
- package/components/progress-indicator/ProgressIndicator.js +1 -2
- package/components/step-indicator/StepIndicatorContext.js +1 -2
- package/elements/Element.js +1 -2
- package/es/components/accordion/AccordionProvider.js +1 -2
- package/es/components/autocomplete/Autocomplete.js +4 -1
- package/es/components/button/Button.d.ts +6 -1
- package/es/components/button/Button.js +2 -0
- package/es/components/dropdown/Dropdown.d.ts +2 -2
- package/es/components/help-button/HelpButtonInstance.js +1 -2
- package/es/components/icon/Icon.js +1 -2
- package/es/components/icon-primary/IconPrimary.js +1 -2
- package/es/components/logo/Logo.js +1 -2
- package/es/components/modal/Modal.js +1 -2
- package/es/components/pagination/Pagination.js +1 -2
- package/es/components/progress-indicator/ProgressIndicator.js +1 -2
- package/es/components/step-indicator/StepIndicatorContext.js +1 -2
- package/es/elements/Element.js +1 -2
- package/es/fragments/drawer-list/DrawerList.js +1 -2
- package/es/shared/Eufemia.js +1 -1
- package/esm/dnb-ui-basis.min.mjs +1 -1
- package/esm/dnb-ui-components.min.mjs +1 -1
- package/esm/dnb-ui-elements.min.mjs +2 -2
- package/esm/dnb-ui-extensions.min.mjs +1 -1
- package/esm/dnb-ui-lib.min.mjs +2 -2
- package/esm/dnb-ui-web-components.min.mjs +2 -2
- package/fragments/drawer-list/DrawerList.js +1 -2
- package/package.json +1 -1
- package/shared/Eufemia.js +1 -1
- package/umd/dnb-ui-basis.min.js +1 -1
- package/umd/dnb-ui-components.min.js +1 -1
- package/umd/dnb-ui-elements.min.js +2 -2
- package/umd/dnb-ui-extensions.min.js +1 -1
- package/umd/dnb-ui-lib.min.js +2 -2
- package/umd/dnb-ui-web-components.min.js +2 -2
|
@@ -433,12 +433,12 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
|
|
|
433
433
|
on_hide?: (...args: any[]) => any;
|
|
434
434
|
|
|
435
435
|
/**
|
|
436
|
-
* Will be called on state changes made by the user. Returns an object with the new selected `data` item `{ data, event, attributes,
|
|
436
|
+
* Will be called on state changes made by the user. Returns an object with the new selected `data` item `{ data, event, attributes, value }`.
|
|
437
437
|
*/
|
|
438
438
|
on_change?: (...args: any[]) => any;
|
|
439
439
|
|
|
440
440
|
/**
|
|
441
|
-
* Will be called once the user selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes,
|
|
441
|
+
* Will be called once the user selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }`. The "active_item" property is the currently selected item by keyboard navigation
|
|
442
442
|
*/
|
|
443
443
|
on_select?: (...args: any[]) => any;
|
|
444
444
|
on_state_update?: (...args: any[]) => any;
|
|
@@ -11,7 +11,6 @@ import React from 'react';
|
|
|
11
11
|
import classnames from 'classnames';
|
|
12
12
|
import { convertJsxToString, extendPropsWithContext } from '../../shared/component-helper';
|
|
13
13
|
import Context from '../../shared/Context';
|
|
14
|
-
import { includeValidProps } from '../form-row/FormRowHelpers';
|
|
15
14
|
import { createSpacingClasses } from '../space/SpacingHelper';
|
|
16
15
|
import Button from '../button/Button';
|
|
17
16
|
const defaultProps = {
|
|
@@ -20,7 +19,7 @@ const defaultProps = {
|
|
|
20
19
|
};
|
|
21
20
|
export default function HelpButtonInstance(localProps) {
|
|
22
21
|
const context = React.useContext(Context);
|
|
23
|
-
const props = extendPropsWithContext(localProps, defaultProps,
|
|
22
|
+
const props = extendPropsWithContext(localProps, defaultProps, context.HelpButton);
|
|
24
23
|
|
|
25
24
|
const {
|
|
26
25
|
size,
|
|
@@ -16,7 +16,6 @@ import { spacingPropTypes, createSpacingClasses } from '../space/SpacingHelper';
|
|
|
16
16
|
import { createSkeletonClass } from '../skeleton/SkeletonHelper';
|
|
17
17
|
import Context from '../../shared/Context';
|
|
18
18
|
import { iconCase } from './IconHelpers';
|
|
19
|
-
import { includeValidProps } from '../form-row/FormRowHelpers';
|
|
20
19
|
export const DefaultIconSize = 16;
|
|
21
20
|
export const DefaultIconSizes = {
|
|
22
21
|
default: 16,
|
|
@@ -59,7 +58,7 @@ export default class Icon extends React.PureComponent {
|
|
|
59
58
|
|
|
60
59
|
const props = extendPropsWithContextInClassComponent(this.props, Icon.defaultProps, {
|
|
61
60
|
skeleton: (_this$context = this.context) === null || _this$context === void 0 ? void 0 : _this$context.skeleton
|
|
62
|
-
},
|
|
61
|
+
}, this.context.Icon);
|
|
63
62
|
const {
|
|
64
63
|
icon,
|
|
65
64
|
size,
|
|
@@ -7,7 +7,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import Context from '../../shared/Context';
|
|
9
9
|
import { extendPropsWithContextInClassComponent } from '../../shared/component-helper';
|
|
10
|
-
import { includeValidProps } from '../form-row/FormRowHelpers';
|
|
11
10
|
import DefaultIcon, { iconPropTypes, DefaultIconSize, prerenderIcon, prepareIcon } from '../icon/Icon';
|
|
12
11
|
import * as primary_icons from '../../icons/primary_icons.js';
|
|
13
12
|
import * as primary_icons_medium from '../../icons/primary_icons_medium.js';
|
|
@@ -29,7 +28,7 @@ export default class IconPrimary extends React.PureComponent {
|
|
|
29
28
|
|
|
30
29
|
const props = extendPropsWithContextInClassComponent(this.props, IconPrimary.defaultProps, {
|
|
31
30
|
skeleton: (_this$context = this.context) === null || _this$context === void 0 ? void 0 : _this$context.skeleton
|
|
32
|
-
},
|
|
31
|
+
}, this.context.Icon, this.context.IconPrimary);
|
|
33
32
|
const {
|
|
34
33
|
icon,
|
|
35
34
|
size,
|
|
@@ -14,7 +14,6 @@ import PropTypes from 'prop-types';
|
|
|
14
14
|
import classnames from 'classnames';
|
|
15
15
|
import Context from '../../shared/Context';
|
|
16
16
|
import { validateDOMAttributes, registerElement, extendPropsWithContextInClassComponent } from '../../shared/component-helper';
|
|
17
|
-
import { includeValidProps } from '../form-row/FormRowHelpers';
|
|
18
17
|
import { spacingPropTypes, createSpacingClasses } from '../space/SpacingHelper';
|
|
19
18
|
export default class Logo extends React.PureComponent {
|
|
20
19
|
static enableWebComponent() {
|
|
@@ -22,7 +21,7 @@ export default class Logo extends React.PureComponent {
|
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
render() {
|
|
25
|
-
const props = extendPropsWithContextInClassComponent(this.props, Logo.defaultProps, this.context.getTranslation(this.props).Logo,
|
|
24
|
+
const props = extendPropsWithContextInClassComponent(this.props, Logo.defaultProps, this.context.getTranslation(this.props).Logo, this.context.Logo);
|
|
26
25
|
|
|
27
26
|
let {
|
|
28
27
|
ratio,
|
|
@@ -21,7 +21,6 @@ import ModalHeaderBar from './parts/ModalHeaderBar';
|
|
|
21
21
|
import CloseButton from './parts/CloseButton';
|
|
22
22
|
import ModalRoot from './ModalRoot';
|
|
23
23
|
import { classWithCamelCaseProps } from '../../shared/helpers/withCamelCaseProps';
|
|
24
|
-
import { includeValidProps } from '../form-row/FormRowHelpers';
|
|
25
24
|
export const ANIMATION_DURATION = 300;
|
|
26
25
|
|
|
27
26
|
class Modal extends React.PureComponent {
|
|
@@ -317,7 +316,7 @@ class Modal extends React.PureComponent {
|
|
|
317
316
|
}
|
|
318
317
|
|
|
319
318
|
render() {
|
|
320
|
-
const props = extendPropsWithContextInClassComponent(this.props, Modal.defaultProps, this.context.getTranslation(this.props).Modal,
|
|
319
|
+
const props = extendPropsWithContextInClassComponent(this.props, Modal.defaultProps, this.context.getTranslation(this.props).Modal, this.context.Modal);
|
|
321
320
|
|
|
322
321
|
const {
|
|
323
322
|
root_id = 'root',
|
|
@@ -18,7 +18,6 @@ import classnames from 'classnames';
|
|
|
18
18
|
import PaginationContext from './PaginationContext';
|
|
19
19
|
import PaginationProvider from './PaginationProvider';
|
|
20
20
|
import { registerElement, validateDOMAttributes, extendPropsWithContextInClassComponent } from '../../shared/component-helper';
|
|
21
|
-
import { includeValidProps } from '../form-row/FormRowHelpers';
|
|
22
21
|
import { spacingPropTypes, createSpacingClasses } from '../space/SpacingHelper';
|
|
23
22
|
import { PaginationIndicator } from './PaginationHelpers';
|
|
24
23
|
import InfinityScroller from './PaginationInfinity';
|
|
@@ -123,7 +122,7 @@ class PaginationInstance extends React.PureComponent {
|
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
render() {
|
|
126
|
-
const props = extendPropsWithContextInClassComponent(this.props, paginationDefaultProps, this.context.getTranslation(this.props).Pagination,
|
|
125
|
+
const props = extendPropsWithContextInClassComponent(this.props, paginationDefaultProps, this.context.getTranslation(this.props).Pagination, this.context.Pagination);
|
|
127
126
|
|
|
128
127
|
const {
|
|
129
128
|
align,
|
|
@@ -12,7 +12,6 @@ import PropTypes from 'prop-types';
|
|
|
12
12
|
import classnames from 'classnames';
|
|
13
13
|
import Context from '../../shared/Context';
|
|
14
14
|
import { isTrue, registerElement, validateDOMAttributes, dispatchCustomElementEvent, extendPropsWithContextInClassComponent } from '../../shared/component-helper';
|
|
15
|
-
import { includeValidProps } from '../form-row/FormRowHelpers';
|
|
16
15
|
import { spacingPropTypes, createSpacingClasses } from '../space/SpacingHelper';
|
|
17
16
|
import ProgressIndicatorCircular from './ProgressIndicatorCircular';
|
|
18
17
|
import ProgressIndicatorLinear from './ProgressIndicatorLinear';
|
|
@@ -65,7 +64,7 @@ export default class ProgressIndicator extends React.PureComponent {
|
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
render() {
|
|
68
|
-
const props = extendPropsWithContextInClassComponent(this.props, ProgressIndicator.defaultProps, this.context.getTranslation(this.props).ProgressIndicator,
|
|
67
|
+
const props = extendPropsWithContextInClassComponent(this.props, ProgressIndicator.defaultProps, this.context.getTranslation(this.props).ProgressIndicator, this.context.ProgressIndicator);
|
|
69
68
|
|
|
70
69
|
const {
|
|
71
70
|
type,
|
|
@@ -10,7 +10,6 @@ import Context from '../../shared/Context';
|
|
|
10
10
|
import { stepIndicatorDefaultProps } from './StepIndicatorProps';
|
|
11
11
|
import { processChildren, extendPropsWithContextInClassComponent } from '../../shared/component-helper';
|
|
12
12
|
import { onMediaQueryChange } from '../../shared/MediaQueryUtils';
|
|
13
|
-
import { includeValidProps } from '../form-row/FormRowHelpers';
|
|
14
13
|
const filterAttributes = Object.keys(stepIndicatorDefaultProps).filter(item => {
|
|
15
14
|
return !['class', 'className'].includes(item);
|
|
16
15
|
}).concat(['internalId', 'isSidebar', 'hasSidebar', 'hideSidebar', 'sidebarIsVisible', 'mainTitle', 'stepsLabel', 'stepsLabelExtended', 'listOfReachedSteps', 'setActiveStep', 'activeStep', 'countSteps', 'openState', 'onChangeState', 'openHandler', 'closeHandler', 'innerRef', 'hasSkeletonData', 'filterAttributes', 'listAttributes', 'onChangeState', 'isV1', 'activeUrl']);
|
|
@@ -139,7 +138,7 @@ export class StepIndicatorProvider extends React.PureComponent {
|
|
|
139
138
|
getGlobalContext(context = this.context) {
|
|
140
139
|
const data = extendPropsWithContextInClassComponent(this.props, stepIndicatorDefaultProps, {
|
|
141
140
|
skeleton: context === null || context === void 0 ? void 0 : context.skeleton
|
|
142
|
-
}, context.getTranslation(context).StepIndicator,
|
|
141
|
+
}, context.getTranslation(context).StepIndicator, context.StepIndicator);
|
|
143
142
|
return data;
|
|
144
143
|
}
|
|
145
144
|
|
package/es/elements/Element.js
CHANGED
|
@@ -7,7 +7,6 @@ import Context from '../shared/Context';
|
|
|
7
7
|
import { validateDOMAttributes, extendPropsWithContext } from '../shared/component-helper';
|
|
8
8
|
import { createSpacingClasses } from '../components/space/SpacingHelper';
|
|
9
9
|
import { createSkeletonClass, skeletonDOMAttributes } from '../components/skeleton/SkeletonHelper';
|
|
10
|
-
import { includeValidProps } from '../components/form-row/FormRowHelpers';
|
|
11
10
|
export const defaultProps = {
|
|
12
11
|
skeletonMethod: 'font'
|
|
13
12
|
};
|
|
@@ -21,7 +20,7 @@ function ElementInstance(localProps) {
|
|
|
21
20
|
const context = React.useContext(Context);
|
|
22
21
|
const props = extendPropsWithContext(localProps, defaultProps, {
|
|
23
22
|
skeleton: context === null || context === void 0 ? void 0 : context.skeleton
|
|
24
|
-
}
|
|
23
|
+
});
|
|
25
24
|
|
|
26
25
|
if (typeof props.inner_ref !== 'undefined') {
|
|
27
26
|
props.innerRef = props.inner_ref;
|
|
@@ -16,7 +16,6 @@ import classnames from 'classnames';
|
|
|
16
16
|
import keycode from 'keycode';
|
|
17
17
|
import { isTrue, makeUniqueId, extendPropsWithContextInClassComponent, registerElement, validateDOMAttributes, dispatchCustomElementEvent } from '../../shared/component-helper';
|
|
18
18
|
import { createSpacingClasses } from '../../components/space/SpacingHelper';
|
|
19
|
-
import { includeValidProps } from '../../components/form-row/FormRowHelpers';
|
|
20
19
|
import DrawerListContext from './DrawerListContext';
|
|
21
20
|
import DrawerListProvider from './DrawerListProvider';
|
|
22
21
|
import DrawerListPortal from './DrawerListPortal';
|
|
@@ -121,7 +120,7 @@ class DrawerListInstance extends React.PureComponent {
|
|
|
121
120
|
}
|
|
122
121
|
|
|
123
122
|
render() {
|
|
124
|
-
const props = extendPropsWithContextInClassComponent(this.props, DrawerList.defaultProps, this.context.getTranslation(this.props).DrawerList
|
|
123
|
+
const props = extendPropsWithContextInClassComponent(this.props, DrawerList.defaultProps, this.context.getTranslation(this.props).DrawerList);
|
|
125
124
|
|
|
126
125
|
const {
|
|
127
126
|
role,
|
package/es/shared/Eufemia.js
CHANGED
package/esm/dnb-ui-basis.min.mjs
CHANGED
|
@@ -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.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};
|
|
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.3"}}]),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};
|