@equinor/echo-components 0.6.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -64,625 +64,990 @@ var Icon = function Icon(_ref) {
64
64
  });
65
65
  };
66
66
 
67
- var css_248z$E = ".BlackLink-module_linkElement__WGkkg{align-items:center;color:var(--echoText);display:flex;gap:.5rem;text-decoration:none}.BlackLink-module_linkElement__WGkkg>label{cursor:pointer}.BlackLink-module_linkElement__WGkkg>span{line-height:0}.BlackLink-module_linkElement__WGkkg:hover{text-decoration:underline}.BlackLink-module_linkElement__WGkkg:focus{outline:1px dashed #007079;text-decoration:underline}.BlackLink-module_linkIcon__GW-93{min-height:24px;min-width:24px}";
68
- var styles$r = {"linkElement":"BlackLink-module_linkElement__WGkkg","linkIcon":"BlackLink-module_linkIcon__GW-93"};
69
- styleInject(css_248z$E);
70
-
71
- var BlackLink = function BlackLink(_ref) {
72
- var href = _ref.href,
73
- linkText = _ref.linkText,
74
- preserveTab = _ref.preserveTab;
75
- return /*#__PURE__*/React__default.createElement("a", {
76
- className: styles$r.linkElement,
77
- id: linkText,
78
- href: href,
79
- tabIndex: 0,
80
- target: !preserveTab ? '_blank' : undefined,
81
- rel: "noreferrer"
82
- }, /*#__PURE__*/React__default.createElement("label", {
83
- htmlFor: linkText
84
- }, linkText), /*#__PURE__*/React__default.createElement(Icon, {
85
- className: styles$r.linkIcon,
86
- color: 'var(--echoText)',
87
- name: "external_link",
88
- size: 24
89
- }));
90
- };
91
-
92
- var themeConst = {
93
- /* Echo - Digital Twin Colors*/
94
- black: '#000000',
95
- white: '#ffffff',
96
- equiBlue1: '#233746',
97
- equiBlue2: '#d7e1ed',
98
- equiBlue3: '#D5EAF4',
99
- equiGray1: '#87929a',
100
- equiGray2: '#b4bbc0',
101
- equiGray3: '#d1d5d8',
102
- equiGray4: '#e3e6e8',
103
- equiGray5: '#f7f7f7',
104
- equiRed1: '#ff1243',
105
- darkEquiRed: '#ce183e',
106
- equiGreen1: '#006f79',
107
- equiGreen2: '#deedee',
108
- equiGreen3: '#e6faec',
109
- equiGreen4: '#c3f3d2',
110
- echoText: '#3d3d3d',
111
- disabledBackgroundColor: '#eaeaea',
112
- disabledColor: '#6f6f6f',
113
- /* Echopedia Work Order status color */
114
- pm01: '#00ff00',
115
- pm02: '#ff1493',
116
- pm03: '#00ffff',
117
- pm04: '#9400d3',
118
- pm05: '#1e90ff',
119
- pm06: '#ffdead',
120
- pm010: '#ff4500',
121
- pm015: '#228b22',
122
- pm020: '#00008b',
123
- /* Echopedia Notifications status color */
124
- onGoing: '#fbca36',
125
- done: '#4bb748',
126
- /* Echopedia Stid StatusCode */
127
- asBuilt: '#007079',
128
- planned: '#4bb748',
129
- future: '#52c0ff',
130
- historic: '#ff7d98',
131
- outOfService: '#ff9200',
132
- reserved: '#243746',
133
- voided: '#eb0000',
134
- "default": '#dcdcdc',
135
- /*Echopedia Procosys StatusCodes*/
136
- ok: '#23ef2a',
137
- os: '#adaead',
138
- pa: '#f94693',
139
- pb: '#ffdd00',
140
- unknown: '#525252',
141
- /*Echopedia Procosys Filters*/
142
- priorityHigh: '#FF1243',
143
- priorityMedium: '#FBCA36',
144
- systems: '#D5EAF4',
145
- locations: '#3EB54A',
146
- /*Echopedia Stid OF-P colors */
147
- ofpDark: '#f4d6a2',
148
- ofpLight: '#faebce',
149
- /* Popover colors */
150
- warningText: '#ad6200',
151
- warningIcon: '#ff9200',
152
- warningBackground: '#ffe7d6',
153
- /* Dropdown colors */
154
- dropDownButtonBackground: '#f0f0f0',
155
- dropDownTextColor: '#808080',
156
- /* Search */
157
- searchBarBackground: '#f7f7f7',
158
- /*Application notifications*/
159
- highSeverity: '#ffc1c1',
160
- mediumSeverity: '#ffe7d6',
161
- lowSeverity: '#dce6ee',
162
- defaultSeverity: '#d5eaf4',
163
- /* Toggle colors */
164
- toggleActive: '#4bb748',
165
- toggleInactive: '#b30d2f',
166
- /* Icon colors */
167
- hoverIcon: '#004f55',
168
- hoverIconWithNotification: '#b30d2f',
169
- /* Text */
170
- tertiaryText: '#6f6f6f'
171
- };
67
+ function _typeof$E(obj) {
68
+ "@babel/helpers - typeof";
172
69
 
173
- function _arrayWithHoles(arr) {
174
- if (Array.isArray(arr)) return arr;
70
+ return _typeof$E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
71
+ return typeof obj;
72
+ } : function (obj) {
73
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
74
+ }, _typeof$E(obj);
175
75
  }
176
76
 
177
- function _iterableToArrayLimit(arr, i) {
178
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
179
- if (null != _i) {
180
- var _s,
181
- _e,
182
- _x,
183
- _r,
184
- _arr = [],
185
- _n = !0,
186
- _d = !1;
187
- try {
188
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
189
- if (Object(_i) !== _i) return;
190
- _n = !1;
191
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
192
- } catch (err) {
193
- _d = !0, _e = err;
194
- } finally {
195
- try {
196
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
197
- } finally {
198
- if (_d) throw _e;
77
+ function classnames$3() {
78
+ for (var _len = arguments.length, parts = new Array(_len), _key = 0; _key < _len; _key++) {
79
+ parts[_key] = arguments[_key];
80
+ }
81
+ var classes = parts.filter(Boolean).reduce(function (classes, part) {
82
+ if (part) {
83
+ if (Array.isArray(part)) {
84
+ console.log('classnames does not support array yet!');
85
+ } else if (_typeof$E(part) === 'object') {
86
+ for (var key in part) {
87
+ if (part[key]) {
88
+ classes.push(key);
89
+ }
90
+ }
91
+ } else if (typeof part === 'string' || typeof part === 'number') {
92
+ classes.push(part);
199
93
  }
200
94
  }
201
- return _arr;
95
+ return classes;
96
+ }, []).join(' ');
97
+ if (classes) {
98
+ return classes;
202
99
  }
100
+ return undefined;
203
101
  }
204
102
 
205
- function _arrayLikeToArray$3(arr, len) {
206
- if (len == null || len > arr.length) len = arr.length;
207
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
208
- return arr2;
209
- }
210
-
211
- function _unsupportedIterableToArray$3(o, minLen) {
212
- if (!o) return;
213
- if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
214
- var n = Object.prototype.toString.call(o).slice(8, -1);
215
- if (n === "Object" && o.constructor) n = o.constructor.name;
216
- if (n === "Map" || n === "Set") return Array.from(o);
217
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
218
- }
219
-
220
- function _nonIterableRest() {
221
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
222
- }
223
-
224
- function _slicedToArray(arr, i) {
225
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest();
226
- }
227
-
228
- function _arrayWithoutHoles$1(arr) {
229
- if (Array.isArray(arr)) return _arrayLikeToArray$3(arr);
230
- }
231
-
232
- function _iterableToArray$1(iter) {
233
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
234
- }
103
+ var _path$7, _path2$3;
104
+ function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
105
+ var SvgCableIcon = function SvgCableIcon(props) {
106
+ return /*#__PURE__*/React.createElement("svg", _extends$e({
107
+ width: 24,
108
+ height: 24,
109
+ fill: "none",
110
+ xmlns: "http://www.w3.org/2000/svg"
111
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
112
+ d: "M21.8 2.3c-.1-.2-.4-.3-.7-.2-.7.4-1.2 1.1-1.7 1.7V1.6c.1-.4-.2-.6-.4-.6-.3 0-.5.2-.5.5v2.3c-.5-.6-1.1-1.3-1.9-1.7-.2-.1-.5 0-.7.2-.1.2 0 .5.2.7.6.3.7.3 1 .8h-.2v3h4V3.7h-.4c.4-.5.5-.5 1-.8.4-.1.5-.4.3-.6ZM2.1 21.3c.1.2.4.3.7.2.7-.4 1.2-1.1 1.7-1.7V22c0 .3.2.5.5.5s.5-.2.5-.5v-2.3c.5.6 1.1 1.3 1.9 1.7.2.1.5 0 .7-.2.1-.2 0-.5-.2-.7-.6-.3-.7-.3-1-.8h.2v-3h-4v3.1h.4c-.4.5-.5.5-1 .8-.5.1-.6.4-.4.7Z",
113
+ fill: "#fff"
114
+ })), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
115
+ d: "M16.9 18.8h-3c-1.7 0-3-1.3-3-3v-8c0-.5-.4-1-1-1h-3c-.5 0-1 .4-1 1v8h-2v-8c0-1.7 1.3-3 3-3h3c1.7 0 3 1.3 3 3v8c0 .5.4 1 1 1h3c.5 0 1-.4 1-1v-8h2v8c0 1.6-1.3 3-3 3Z",
116
+ fill: "#fff"
117
+ })));
118
+ };
235
119
 
236
- function _nonIterableSpread$1() {
237
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
238
- }
120
+ var _path$6, _path2$2, _path3$1;
121
+ function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
122
+ var SvgCircuitIcon = function SvgCircuitIcon(props) {
123
+ return /*#__PURE__*/React.createElement("svg", _extends$d({
124
+ width: 24,
125
+ height: 24,
126
+ fill: "none",
127
+ xmlns: "http://www.w3.org/2000/svg"
128
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
129
+ d: "M12 7c-.6 0-1-.3-1-.75v-4.5c0-.45.4-.75 1-.75s1 .3 1 .75v4.5c0 .45-.5.75-1 .75ZM11.9 23c-.6 0-1-.4-1-1v-5c0-.6.4-1 1-1s1 .4 1 1v5c0 .5-.4 1-1 1Z",
130
+ fill: "#fff"
131
+ })), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
132
+ d: "M11.8 17.8c-2.3 0-4.2-1.9-4.2-4.2 0-2.3 1.9-4.2 4.2-4.2 2.3 0 4.2 1.9 4.2 4.2 0 2.3-1.9 4.2-4.2 4.2Zm0-6.4c-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2 1.2 0 2.2-1 2.2-2.2 0-1.2-1-2.2-2.2-2.2Z",
133
+ fill: "#fff"
134
+ })), _path3$1 || (_path3$1 = /*#__PURE__*/React.createElement("path", {
135
+ d: "M9.6 11.6c-.3 0-.5-.1-.7-.3L4.3 6.7c-.4-.4-.4-1 0-1.4.4-.4 1-.4 1.4 0l4.6 4.6c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3Z",
136
+ fill: "#fff"
137
+ })));
138
+ };
239
139
 
240
- function _toConsumableArray$1(arr) {
241
- return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableSpread$1();
242
- }
140
+ var _path$5;
141
+ function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
142
+ var SvgElectricalIcon = function SvgElectricalIcon(props) {
143
+ return /*#__PURE__*/React.createElement("svg", _extends$c({
144
+ width: 24,
145
+ height: 24,
146
+ fill: "none",
147
+ xmlns: "http://www.w3.org/2000/svg"
148
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
149
+ fillRule: "evenodd",
150
+ clipRule: "evenodd",
151
+ d: "M12 2 1 21h22L12 2Zm0 3.99L19.53 19H4.47L12 5.99Zm-1.397 8.836-1.357 3.558 4.342-3.9-1.246-.476L13.7 10.45l-4.342 3.901 1.246.475Z",
152
+ fill: "#fff"
153
+ })));
154
+ };
243
155
 
244
- var css_248z$D = ".dataInfoButton-module_button__N4F5j{background-color:var(--white)!important;border:2px solid var(--equiGreen1)!important;box-shadow:0 4px 4px rgba(0,0,0,.25);color:var(--asBuilt)!important;height:48px!important;margin:3px!important;width:48px!important}.dataInfoButton-module_button__N4F5j:hover{background:#deedee!important}.dataInfoButton-module_buttonWithBadge__Qjm3a:after{background:var(--white);border:1px solid var(--asBuilt);border-radius:100%;box-sizing:unset;color:var(--equiGreen1);content:attr(data-count)!important;display:block;font-size:9px;font-style:normal;font-weight:700;height:18px!important;left:25px!important;line-height:20px;position:absolute;text-align:center;top:-5px!important;width:18px!important}";
245
- var style$a = {"button":"dataInfoButton-module_button__N4F5j","buttonWithBadge":"dataInfoButton-module_buttonWithBadge__Qjm3a"};
246
- styleInject(css_248z$D);
156
+ var _g$3;
157
+ function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
158
+ var SvgFunctionIcon = function SvgFunctionIcon(props) {
159
+ return /*#__PURE__*/React.createElement("svg", _extends$b({
160
+ width: 24,
161
+ height: 24,
162
+ fill: "none",
163
+ xmlns: "http://www.w3.org/2000/svg"
164
+ }, props), _g$3 || (_g$3 = /*#__PURE__*/React.createElement("g", {
165
+ fill: "#fff"
166
+ }, /*#__PURE__*/React.createElement("path", {
167
+ d: "M4.3 6.6C4.3 3.6 5.9 2 9 2c.8 0 1.6.1 2.3.3v2.3c-.7-.2-1.2-.2-1.7-.2-1.6 0-2.3.9-2.3 2.6v1.3h3.3v2.2H7.3V22h-3V10.5H2V8.3h2.3V6.6ZM17.2 17.5l1.5 2.9h-2.3l-.7-1.4-.7 1.4h-2l1.5-2.6-1.4-2.7h2.3l.5 1.2.6-1.2h1.9l-1.2 2.4Z"
168
+ }), /*#__PURE__*/React.createElement("path", {
169
+ d: "M12 22.8c-3.9-4.8-1.7-9.6 0-11.5l1.5 1.3-.7-.6.7.7c-.2.2-3.7 4.2 0 8.9L12 22.8ZM19.8 22.9l-1.5-1.3c.2-.2 3.7-4.2 0-8.9l1.6-1.3c3.8 4.8 1.6 9.6-.1 11.5Z"
170
+ }))));
171
+ };
247
172
 
248
- /**
249
- * Component that renders a data information button with a badge to indicate the number of items under that scoped type
250
- *
251
- * @param {DataInfoButtonProps} { data } Contains data information related to how the button should be rendered
252
- * numberOfItems: If number is 1 or less no badge will be displayed on the button. If number is over 99,
253
- * then the text 99+ will be displayed. Otherwise the provided number will be displayed
254
- * label: The name of the data type, will be displayed on the button
255
- * ariaLabel: The aria label set on the button, if empty the label will be used
256
- * onTagInfoClicked: The method to be called when button is pressed
257
- * itemButtonClassName: Used to style button if default styling is not wanted. class name might need higher precedence for overriding existing styling e.g. "div.itemButtonClassName { background-color: blue !important}"
258
- * @return {*} {JSX.Element} Data information button with or without a badge based on the provided data object
259
- */
260
- var DataInfoButton = function DataInfoButton(_ref) {
261
- var data = _ref.data;
262
- var _a;
263
- return /*#__PURE__*/React__default.createElement(Button, {
264
- "aria-label": (_a = data.ariaLabel) !== null && _a !== void 0 ? _a : data.label,
265
- onClick: data.onTagInfoClicked,
266
- className: "".concat(data.itemButtonClassName, " ").concat(style$a.button, " ").concat(data.numberOfItems > 1 ? style$a.buttonWithBadge : ''),
267
- variant: "ghost_icon",
268
- "data-count": data.numberOfItems > 99 ? '99+' : data.numberOfItems
269
- }, data.label);
173
+ var _g$2, _defs$1;
174
+ function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
175
+ var SvgInstrumentIcon = function SvgInstrumentIcon(props) {
176
+ return /*#__PURE__*/React.createElement("svg", _extends$a({
177
+ width: 24,
178
+ height: 24,
179
+ fill: "none",
180
+ xmlns: "http://www.w3.org/2000/svg"
181
+ }, props), _g$2 || (_g$2 = /*#__PURE__*/React.createElement("g", {
182
+ clipPath: "url(#Instrument-icon_svg__a)",
183
+ fill: "#fff"
184
+ }, /*#__PURE__*/React.createElement("path", {
185
+ d: "M12 4c3.9 0 7 3.1 7 7s-3.1 7-7 7-7-3.1-7-7 3.1-7 7-7Zm0-2c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9Z"
186
+ }), /*#__PURE__*/React.createElement("path", {
187
+ d: "M11.9 15.8c-.2 0-.3 0-.5-.1-.5-.3-.7-.9-.4-1.4l4-7.1c.3-.5.9-.7 1.4-.4.5.3.7.9.4 1.4l-4 7.1c-.3.3-.6.5-.9.5ZM12 22.4c-.6 0-1-.4-1-1V20c0-.6.4-1 1-1s1 .4 1 1v1.4c0 .6-.4 1-1 1Z"
188
+ }), /*#__PURE__*/React.createElement("path", {
189
+ d: "M7.4 17.8c1.3-1.1 2.9-1.8 4.7-1.8 1.5 0 3 .5 4.1 1.4l1.5-1.4c-1.5-1.2-3.5-2-5.6-2-2.4 0-4.5.9-6.2 2.4l1.5 1.4Z"
190
+ }))), _defs$1 || (_defs$1 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
191
+ id: "Instrument-icon_svg__a"
192
+ }, /*#__PURE__*/React.createElement("path", {
193
+ fill: "#fff",
194
+ d: "M3 2h18v20H3z"
195
+ })))));
270
196
  };
271
197
 
272
- var css_248z$C = ".dataInfoPopover-module_wrapper__l8JCd{display:flex;flex-direction:column;position:absolute;right:0;z-index:10}.dataInfoPopover-module_arrow__KXQ5a{align-self:flex-end;border-bottom:7px solid rgba(0,0,0,.4);border-left:7px solid transparent;border-right:7px solid transparent;height:0;margin-right:17px;margin-top:3px;position:relative;width:0}.dataInfoPopover-module_optionsPopover__ZPXbv .arrow:after{border-bottom-color:rgba(0,0,0,.4)}.dataInfoPopover-module_optionsPopover__ZPXbv .arrow:before{border-bottom:0}.dataInfoPopover-module_optionsPopover__ZPXbv{align-self:flex-end;background:rgba(0,0,0,.4);border:0;border-radius:5px;display:flex;justify-content:space-between;max-width:max-content;padding:var(--small);position:relative}@media screen and (max-width:440px){.dataInfoPopover-module_optionsPopover__ZPXbv{max-width:270px}}.dataInfoPopover-module_groupWrapper__InWuY{display:flex;flex-direction:column;flex-wrap:wrap}@media screen and (max-width:440px){.dataInfoPopover-module_wrapper__l8JCd{left:0}.dataInfoPopover-module_arrow__KXQ5a{align-self:flex-start;margin-left:15px}.dataInfoPopover-module_optionsPopover__ZPXbv{align-self:flex-start}}.dataInfoPopover-module_banner__QtiKf{white-space:nowrap}.dataInfoPopover-module_infoMessage__lqzTe{color:var(--equiGray4)!important}.dataInfoPopover-module_banner__QtiKf>div{padding:0 16px 0 0!important}.dataInfoPopover-module_banner__QtiKf>hr{display:none}";
273
- var style$9 = {"wrapper":"dataInfoPopover-module_wrapper__l8JCd","arrow":"dataInfoPopover-module_arrow__KXQ5a","optionsPopover":"dataInfoPopover-module_optionsPopover__ZPXbv","groupWrapper":"dataInfoPopover-module_groupWrapper__InWuY","banner":"dataInfoPopover-module_banner__QtiKf","infoMessage":"dataInfoPopover-module_infoMessage__lqzTe"};
274
- styleInject(css_248z$C);
275
-
276
- /**
277
- * Component that renders a popover with data information buttons
278
- *
279
- * @param {DataInfoPopoverProps} {
280
- * dataToShow: list of DataInformation objects to be displayed.
281
- * The itemType in these objects are used to group them together in the popover
282
- * isLoading: loading flag that tells if a dot progress should be displayed if data is being fetched
283
- * }
284
- * @return {*} {JSX.Element} Popover with data information buttons based on the provided DataInformation objects
285
- */
286
- var DataInfoPopover = function DataInfoPopover(_ref) {
287
- var dataToShow = _ref.dataToShow,
288
- isLoading = _ref.isLoading;
289
- var getDataGroupings = dataToShow.reduce(function (dictionary, current) {
290
- if (!dictionary[current.itemType]) {
291
- dictionary[current.itemType] = [current];
292
- } else {
293
- dictionary[current.itemType] = [].concat(_toConsumableArray$1(dictionary[current.itemType]), [current]);
294
- }
295
- return dictionary;
296
- }, {});
297
- var _useState = useState(false),
298
- _useState2 = _slicedToArray(_useState, 2),
299
- showNoDataIndicator = _useState2[0],
300
- setShowNoDataIndicator = _useState2[1];
301
- useEffect(function () {
302
- var delay = 200;
303
- var timer = setTimeout(function () {
304
- return setShowNoDataIndicator(true);
305
- }, delay);
306
- return function () {
307
- clearTimeout(timer);
308
- };
309
- });
310
- return /*#__PURE__*/React__default.createElement("div", {
311
- className: style$9.wrapper
312
- }, /*#__PURE__*/React__default.createElement("div", {
313
- className: style$9.arrow
314
- }), /*#__PURE__*/React__default.createElement("div", {
315
- className: style$9.optionsPopover
316
- }, isLoading && dataToShow.length === 0 && /*#__PURE__*/React__default.createElement(DotProgress, {
317
- color: "neutral"
318
- }), showNoDataIndicator && !isLoading && dataToShow.length === 0 && /*#__PURE__*/React__default.createElement(Banner, {
319
- className: style$9.banner
320
- }, /*#__PURE__*/React__default.createElement(Banner.Icon, {
321
- variant: "info"
322
- }, /*#__PURE__*/React__default.createElement(Icon, {
323
- name: "info_circle",
324
- title: "No data to display",
325
- color: themeConst.asBuilt
326
- })), /*#__PURE__*/React__default.createElement(Banner.Message, {
327
- className: style$9.infoMessage
328
- }, "No information to display")), Object.keys(getDataGroupings).map(function (key) {
329
- return /*#__PURE__*/React__default.createElement("div", {
330
- key: key,
331
- className: style$9.groupWrapper
332
- }, getDataGroupings[key].map(function (data, index) {
333
- return /*#__PURE__*/React__default.createElement(DataInfoButton, {
334
- data: data,
335
- key: index
336
- });
337
- }));
198
+ var _path$4;
199
+ function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
200
+ var SvgJunctionBoxIcon = function SvgJunctionBoxIcon(props) {
201
+ return /*#__PURE__*/React.createElement("svg", _extends$9({
202
+ width: 24,
203
+ height: 24,
204
+ fill: "none",
205
+ xmlns: "http://www.w3.org/2000/svg"
206
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
207
+ fillRule: "evenodd",
208
+ clipRule: "evenodd",
209
+ d: "M3.023 3.695A2 2 0 0 1 5 2h14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-2v3h-2v-3h-2v3h-2v-3H9v3H7v-3H5a2 2 0 0 1-2-2V4c0-.104.008-.205.023-.305ZM5 4v13h14V4H5Z",
210
+ fill: "#fff"
338
211
  })));
339
212
  };
340
213
 
341
- var css_248z$B = ".buttonWithPopover-module_button__FDyTt{background-color:var(--white)!important;border:3px solid var(--white)!important;border-radius:10rem;box-shadow:0 4px 4px rgba(0,0,0,.25);box-sizing:border-box;height:46px!important;width:46px!important}.buttonWithPopover-module_button__FDyTt:hover{background:#deedee!important}.buttonWithPopover-module_wrapper__-pQfB{position:relative}.buttonWithPopover-module_spinner__LMbqe{height:34px!important;margin:3px;width:34px!important}";
342
- var style$8 = {"button":"buttonWithPopover-module_button__FDyTt","wrapper":"buttonWithPopover-module_wrapper__-pQfB","spinner":"buttonWithPopover-module_spinner__LMbqe"};
343
- styleInject(css_248z$B);
344
-
345
- /**
346
- * Component that renders a round button, that opens a popover upon being clicked
347
- *
348
- * @param {ButtonWithPopoverProps} {
349
- * onShowMoreClicked: method called upon button clicked
350
- * fetchedData: array of DataInformation that popover should be displayed when button is clicked.
351
- * Meant to be the return value of the fetchDataToShow method
352
- * isLoading: flag to show loading state if data fetch takes some time
353
- * expanded: flag to determine if popover should be expanded or not
354
- * @return {*} {JSX.Element} Round button with belonging popover to display data information buttons
355
- */
356
- var ButtonWithPopover = function ButtonWithPopover(_ref) {
357
- var onShowMoreClicked = _ref.onShowMoreClicked,
358
- fetchedData = _ref.fetchedData,
359
- isLoading = _ref.isLoading,
360
- expanded = _ref.expanded;
361
- var renderPopoverButton = function renderPopoverButton() {
362
- if (!expanded) {
363
- return /*#__PURE__*/React__default.createElement(Icon, {
364
- name: "more_horizontal",
365
- title: "more options",
366
- color: themeConst.asBuilt
367
- });
368
- } else {
369
- return /*#__PURE__*/React__default.createElement(Icon, {
370
- name: "close",
371
- title: "close more options",
372
- color: themeConst.asBuilt
373
- });
374
- }
375
- };
376
- return /*#__PURE__*/React__default.createElement("div", {
377
- className: style$8.wrapper
378
- }, expanded && isLoading ? /*#__PURE__*/React__default.createElement("div", {
379
- className: style$8.button,
380
- onClick: onShowMoreClicked
381
- }, /*#__PURE__*/React__default.createElement(CircularProgress, {
382
- className: style$8.spinner
383
- })) : /*#__PURE__*/React__default.createElement(Button, {
384
- className: style$8.button,
385
- variant: "ghost_icon",
386
- onClick: onShowMoreClicked
387
- }, renderPopoverButton()), expanded && /*#__PURE__*/React__default.createElement(DataInfoPopover, {
388
- isLoading: isLoading,
389
- dataToShow: fetchedData
390
- }));
214
+ var _path$3, _path2$1, _path3, _path4;
215
+ function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
216
+ var SvgLineIcon = function SvgLineIcon(props) {
217
+ return /*#__PURE__*/React.createElement("svg", _extends$8({
218
+ width: 24,
219
+ height: 24,
220
+ fill: "none",
221
+ xmlns: "http://www.w3.org/2000/svg"
222
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
223
+ fillRule: "evenodd",
224
+ clipRule: "evenodd",
225
+ d: "M17 10H7v4h10v-4ZM5 8v8h14V8H5Z",
226
+ fill: "#fff"
227
+ })), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
228
+ d: "M1 8a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2H1ZM7 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2h6Z",
229
+ fill: "#fff"
230
+ })), _path3 || (_path3 = /*#__PURE__*/React.createElement("path", {
231
+ d: "M5 6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2V6ZM3 18a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2v12ZM17 8a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2h-6ZM23 16a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2h6Z",
232
+ fill: "#fff"
233
+ })), _path4 || (_path4 = /*#__PURE__*/React.createElement("path", {
234
+ d: "M21 6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2V6ZM19 18a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2v12Z",
235
+ fill: "#fff"
236
+ })));
391
237
  };
392
238
 
393
- var css_248z$A = ".tagIcon-module_icon__FVhlT{border:3px solid var(--white);border-radius:10rem;box-sizing:border-box;height:46px;padding:8px;position:relative;transform-origin:left top;width:46px}.tagIcon-module_shadow__dAk0l{border-radius:10rem;box-shadow:0 4px 4px rgba(0,0,0,.25);height:46px;width:46px}";
394
- var styles$q = {"icon":"tagIcon-module_icon__FVhlT","shadow":"tagIcon-module_shadow__dAk0l"};
395
- styleInject(css_248z$A);
239
+ var _path$2, _path2;
240
+ function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
241
+ var SvgMainEquipmentIcon = function SvgMainEquipmentIcon(props) {
242
+ return /*#__PURE__*/React.createElement("svg", _extends$7({
243
+ width: 24,
244
+ height: 24,
245
+ fill: "none",
246
+ xmlns: "http://www.w3.org/2000/svg"
247
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
248
+ fillRule: "evenodd",
249
+ clipRule: "evenodd",
250
+ d: "m21.4 11.6-9-9c-.3-.4-.8-.6-1.4-.6H4c-1.1 0-2 .9-2 2v7c0 .6.2 1.1.6 1.4l9 9c.3.4.8.6 1.4.6.6 0 1.1-.2 1.4-.6l7-7c.4-.4.6-.9.6-1.4 0-.5-.2-1.1-.6-1.4ZM13 20l-9-9V4h7l9 9-7 7ZM5 6.5C5 5.7 5.7 5 6.5 5S8 5.7 8 6.5 7.3 8 6.5 8 5 7.3 5 6.5Z",
251
+ fill: "#fff"
252
+ })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
253
+ d: "m18.2 12.3-1.4 1.4-1.5-1.5-1.7-1.9.8 3-.9.9-3-.7 1.8 1.6 1.5 1.5-1.4 1.4-5.7-5.7 1.5-1.5L12 12l-1.1-3.9 1.5-1.5 5.8 5.7Z",
254
+ fill: "#fff"
255
+ })));
256
+ };
396
257
 
397
- /**
398
- * Component that will wrap the provided icon with a background color (usually the legend color)
399
- *
400
- * @param {TagIconProps} {
401
- * icon: Icon to be wrapped
402
- * legendColor: background color to apply. Need to be valid css color
403
- * }
404
- * @return {*} {JSX.Element} Wrapped icon with provided color
405
- */
406
- var TagIcon = function TagIcon(_ref) {
407
- var icon = _ref.icon,
408
- legendColor = _ref.legendColor;
409
- return /*#__PURE__*/React__default.createElement("div", {
410
- style: {
411
- background: legendColor
412
- },
413
- className: "".concat(styles$q.icon)
414
- }, icon);
258
+ var _g$1;
259
+ function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
260
+ var SvgManualValveIcon = function SvgManualValveIcon(props) {
261
+ return /*#__PURE__*/React.createElement("svg", _extends$6({
262
+ width: 24,
263
+ height: 24,
264
+ fill: "none",
265
+ xmlns: "http://www.w3.org/2000/svg"
266
+ }, props), _g$1 || (_g$1 = /*#__PURE__*/React.createElement("g", {
267
+ fill: "#fff"
268
+ }, /*#__PURE__*/React.createElement("path", {
269
+ d: "m4 8.3 5.8 4.8L4 17.8V8.3ZM2 4.1v18l11-9-11-9Z"
270
+ }), /*#__PURE__*/React.createElement("path", {
271
+ d: "M20 8.3v9.6L14.1 13 20 8.3ZM22 4l-11 9 11 9V4Z"
272
+ }), /*#__PURE__*/React.createElement("path", {
273
+ d: "M13 3.7h-2v9.8h2V3.7Z"
274
+ }), /*#__PURE__*/React.createElement("path", {
275
+ d: "M15 4H9c-.5 0-1-.4-1-1s.4-1 1-1h6c.6 0 1 .4 1 1s-.5 1-1 1Z"
276
+ }))));
415
277
  };
416
278
 
417
- /**
418
- * Component that will wrap the provided child element in a shadow.
419
- * Should be used to add shadow to the tagIcon component
420
- *
421
- * @param {TagIconShadowWrapperProps} { children } Child element to wrap
422
- * @return {*} {JSX.Element} wrapped child element in a shadow
423
- */
424
- var TagIconShadowWrapper = function TagIconShadowWrapper(_ref) {
425
- var children = _ref.children;
426
- return /*#__PURE__*/React__default.createElement("div", {
427
- className: "".concat(styles$q.shadow)
428
- }, children);
279
+ var _path$1;
280
+ function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
281
+ var SvgSignalIcon = function SvgSignalIcon(props) {
282
+ return /*#__PURE__*/React.createElement("svg", _extends$5({
283
+ width: 24,
284
+ height: 24,
285
+ fill: "none",
286
+ xmlns: "http://www.w3.org/2000/svg"
287
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
288
+ d: "M14.1 20c-.6 0-1.1-.4-1.2-1l-1.2-8.5-.7 4c-.1.5-.5.9-1.1 1-.5 0-1-.3-1.2-.8l-.4-1-.4 2.3H2c-.6 0-1-.4-1-1s.4-1 1-1h4.2l.6-3.6c.1-.5.5-.9 1.1-1 .5 0 1 .3 1.2.8l.4 1L10.6 5c.1-.6.6-1 1.2-1s1.1.4 1.2 1l1.2 8.4.8-4.7c.1-.6.5-1 1.1-1 .6 0 1.1.3 1.2.9l1.5 5.5H22c.6 0 1 .4 1 1s-.4 1-1 1h-4.8l-1-3.4-1 6.4c-.1.5-.6.9-1.1.9Z",
289
+ fill: "#fff"
290
+ })));
429
291
  };
430
292
 
431
- var css_248z$z = ".tagContextMenu-module_contextWrapper__o8wWz{border-radius:10rem;cursor:pointer;width:fit-content}.tagContextMenu-module_contextWrapperExpanded__FJI8c{cursor:pointer;display:flex;flex-wrap:wrap}.tagContextMenu-module_selected__4L6WK{box-shadow:0 0 10px 5px var(--toggleActive)}.tagContextMenu-module_tagInfoWrapper__y4LBf{align-items:center;background-color:var(--white);border-radius:10rem;box-shadow:0 4px 4px rgba(0,0,0,.25);box-sizing:unset;display:flex;height:52px;overflow:hidden;padding:1px;width:100%}.tagContextMenu-module_tagText__8GaFk{cursor:pointer;margin:auto;max-width:240px;min-width:55px;overflow:hidden;padding:0 var(--small) 0 var(--small);text-align:start;text-overflow:ellipsis;white-space:nowrap;width:100%}@media screen and (max-width:440px){.tagContextMenu-module_tagText__8GaFk{max-width:140px;min-width:140px}}@media screen and (min-width:440px) and (max-width:560px){.tagContextMenu-module_tagText__8GaFk{max-width:240px}}.tagContextMenu-module_tagHeader__NW1El{color:var(--equiGreen1)!important;font-weight:700!important;overflow:hidden;text-overflow:ellipsis}.tagContextMenu-module_tagDescription__lrT1D{overflow:hidden;text-overflow:ellipsis}.tagContextMenu-module_tagInfoIcon__AMpqu{margin:3px}";
432
- var styles$p = {"contextWrapper":"tagContextMenu-module_contextWrapper__o8wWz","contextWrapperExpanded":"tagContextMenu-module_contextWrapperExpanded__FJI8c","selected":"tagContextMenu-module_selected__4L6WK","tagInfoWrapper":"tagContextMenu-module_tagInfoWrapper__y4LBf","tagText":"tagContextMenu-module_tagText__8GaFk","tagHeader":"tagContextMenu-module_tagHeader__NW1El","tagDescription":"tagContextMenu-module_tagDescription__lrT1D","tagInfoIcon":"tagContextMenu-module_tagInfoIcon__AMpqu"};
433
- styleInject(css_248z$z);
434
-
435
- /**
436
- * Component that renders a tag context menu that can be expanded and closed upon click
437
- * The condensed variant will only display the the relevant tag icon
438
- * The expanded variant will display relevant tag icon, tag number and tag description
439
- *
440
- * @param {TagContextMenuProps} {
441
- * expanded: flag that state if the context menu should be expanded or not
442
- * setExpanded: method to update the expanded flag
443
- * tagNo: the tag no to display
444
- * description: the tag description
445
- * openTagInformation: method called when expanded context menu is called
446
- * selected: Flag to handle if there are multiple context menu's on a page, and a selected style should be applied
447
- * selectedClassName: styling used to handle multiple tag visible on the page at the same time, class will be added to tagIcon when context menu is not expanded
448
- * children: Meant to be used to pass TagIcon component to this component
449
- * }
450
- * @return {*} {JSX.Element} a tag context menu for the provided properties
451
- */
452
- var TagContextMenu = function TagContextMenu(_ref) {
453
- var expanded = _ref.expanded,
454
- setExpanded = _ref.setExpanded,
455
- tagNo = _ref.tagNo,
456
- description = _ref.description,
457
- selected = _ref.selected,
458
- selectedClassName = _ref.selectedClassName,
459
- openTagInformation = _ref.openTagInformation,
460
- children = _ref.children;
461
- if (expanded) {
462
- return /*#__PURE__*/React__default.createElement("div", {
463
- className: styles$p.contextWrapperExpanded,
464
- onClick: openTagInformation
465
- }, /*#__PURE__*/React__default.createElement("div", {
466
- className: styles$p.tagInfoWrapper
467
- }, children, /*#__PURE__*/React__default.createElement("div", {
468
- className: styles$p.tagText
469
- }, /*#__PURE__*/React__default.createElement(Typography, {
470
- variant: "h5",
471
- className: styles$p.tagHeader
472
- }, tagNo), /*#__PURE__*/React__default.createElement(Typography, {
473
- variant: "body_short",
474
- className: styles$p.tagDescription
475
- }, description)), /*#__PURE__*/React__default.createElement("div", {
476
- className: styles$p.tagInfoIcon
477
- }, /*#__PURE__*/React__default.createElement(Button, {
478
- variant: "ghost_icon"
479
- }, /*#__PURE__*/React__default.createElement(Icon, {
480
- name: "info_circle",
481
- title: "tag information",
482
- color: themeConst.asBuilt
483
- })))));
484
- } else {
485
- return /*#__PURE__*/React__default.createElement("div", {
486
- "data-testid": "open-tag-info",
487
- className: "".concat(styles$p.contextWrapper, " ").concat(selected ? selectedClassName ? selectedClassName : styles$p.selected : ''),
488
- onClick: function onClick() {
489
- setExpanded(true);
490
- }
491
- }, /*#__PURE__*/React__default.createElement(TagIconShadowWrapper, null, children));
492
- }
293
+ var _path;
294
+ function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
295
+ var SvgTagIcon = function SvgTagIcon(props) {
296
+ return /*#__PURE__*/React.createElement("svg", _extends$4({
297
+ width: 24,
298
+ height: 24,
299
+ fill: "none",
300
+ xmlns: "http://www.w3.org/2000/svg"
301
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
302
+ fillRule: "evenodd",
303
+ clipRule: "evenodd",
304
+ d: "m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42ZM13 20.01 4 11V4h7v-.01l9 9-7 7.02ZM5 6.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z",
305
+ fill: "#fff"
306
+ })));
493
307
  };
494
308
 
495
- var css_248z$y = ".contextMenu-module_wrapper__p-0Zc{display:flex;flex-wrap:wrap;position:absolute;width:fit-content}.contextMenu-module_wrapper__p-0Zc>div:first-child{margin-right:4px}@media screen and (max-width:440px){.contextMenu-module_wrapper__p-0Zc{max-width:250px}.contextMenu-module_wrapper__p-0Zc>div:first-child{margin-bottom:5px}}";
496
- var style$7 = {"wrapper":"contextMenu-module_wrapper__p-0Zc"};
497
- styleInject(css_248z$y);
309
+ var _g, _defs;
310
+ function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
311
+ var SvgTelecomIcon = function SvgTelecomIcon(props) {
312
+ return /*#__PURE__*/React.createElement("svg", _extends$3({
313
+ width: 24,
314
+ height: 24,
315
+ fill: "none",
316
+ xmlns: "http://www.w3.org/2000/svg"
317
+ }, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
318
+ clipPath: "url(#Telecom-icon_svg__a)",
319
+ fill: "#fff"
320
+ }, /*#__PURE__*/React.createElement("path", {
321
+ d: "m14.656 12.239 1.802-.63c-1.25-3.568-4.024-3.988-4.148-4.007l-.277 1.889c.077.01 1.774.324 2.623 2.748ZM12.844 4.263l-.496 1.841c.143.038 3.586 1.04 5.626 5.648l1.745-.773c-2.422-5.486-6.694-6.669-6.875-6.716Z"
322
+ }), /*#__PURE__*/React.createElement("path", {
323
+ d: "m13.168 1-.648 1.794c.057.019 5.96 2.203 8.716 8.939L23 11.008C19.92 3.5 13.435 1.095 13.168 1ZM12.749 15.32a3 3 0 0 0 .219-1.097 3.14 3.14 0 0 0-3.137-3.139c-.41 0-.811.077-1.173.23l-4.254-4.18a1.124 1.124 0 0 0-.81-.333c-.372 0-.744.18-.973.515C.161 10.903.41 16.598 4.004 20.119c1.993 1.956 4.634 2.872 7.19 2.872 2.06 0 4.063-.592 5.646-1.718.59-.42.667-1.278.152-1.793l-4.243-4.16Zm-1.555 5.772c-2.25 0-4.33-.83-5.855-2.328-2.775-2.719-2.956-6.878-1.593-9.607l4.034 3.96.858.848c.124-.553.592-.982 1.183-.982.677 0 1.23.553 1.23 1.23 0 .582-.41 1.05-.954 1.183l1.46 1.44 3.413 3.35c-1.096.582-2.412.906-3.776.906Z"
324
+ }))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
325
+ id: "Telecom-icon_svg__a"
326
+ }, /*#__PURE__*/React.createElement("path", {
327
+ fill: "#fff",
328
+ d: "M1 1h22v22H1z"
329
+ })))));
330
+ };
498
331
 
332
+ var TagCategoryType;
333
+ (function (TagCategoryType) {
334
+ TagCategoryType["Electrical"] = "electrical";
335
+ TagCategoryType["MainEquipment"] = "main equipment";
336
+ TagCategoryType["Line"] = "line";
337
+ TagCategoryType["ManualValve"] = "manual valve";
338
+ TagCategoryType["CircuitAndStarter"] = "circuit";
339
+ TagCategoryType["Instrument"] = "instrument";
340
+ TagCategoryType["Cable"] = "cable";
341
+ TagCategoryType["Function"] = "function";
342
+ TagCategoryType["Signal"] = "signal";
343
+ TagCategoryType["Telecom"] = "telecom";
344
+ TagCategoryType["JunctionBox"] = "junction box";
345
+ TagCategoryType["Administrative"] = "administrative";
346
+ })(TagCategoryType || (TagCategoryType = {}));
499
347
  /**
500
- * Component that renders full context menu functionality, meant for displaying tag context menu.
501
- * With the ability to provide more information button and related popover that should be wrapped with the context menu
502
- *
503
- * @param {ContextMenuProps} {
504
- * icon: icon to be displayed
505
- * expanded: flag to determine if context menu should be expanded or not
506
- * legendColor: color used for the tag icon
507
- * setExpanded: method to update expanded flag
508
- * tagNo: The tag number to display
509
- * description: The tag description to display
510
- * positionStyle: The position styling element used to position the context menu
511
- * openTagInformation: Method that will be called when expanded context menu is clicked
512
- * selected: Flag to handle if there are multiple context menu's on a page, and a selected style should be applied
513
- * selectedClassName: styling used to handle multiple tag visible on the page at the same time, class will be added to tagIcon when context menu is not expanded
514
- * children: Related elements to display, e.g. more information button
515
- * }
516
- * @return {*} {JSX.Element} Context menu with relevant children wrapped
348
+ * Method that returns the relevant Icon for the tagCategoryDescription provided
349
+ * Tag icon is the default JSX.Element Icon returned
350
+ * @export
351
+ * @param {('electrical'
352
+ * | 'main equipment'
353
+ * | 'line'
354
+ * | 'manual valve'
355
+ * | 'circuit/starter'
356
+ * | 'instrument'
357
+ * | 'cable'
358
+ * | 'function'
359
+ * | 'signal'
360
+ * | 'telecom'
361
+ * | 'junction box'
362
+ * | 'administrative'
363
+ * @return {*} {JSX.Element} Relevant icon for the provided tagCategoryDescription
517
364
  */
518
- var ContextMenu = function ContextMenu(_ref) {
519
- var icon = _ref.icon,
520
- expanded = _ref.expanded,
521
- legendColor = _ref.legendColor,
522
- setExpanded = _ref.setExpanded,
523
- tagNo = _ref.tagNo,
524
- description = _ref.description,
525
- positionStyle = _ref.positionStyle,
526
- selected = _ref.selected,
527
- selectedClassName = _ref.selectedClassName,
528
- openTagInformation = _ref.openTagInformation,
529
- children = _ref.children;
530
- return /*#__PURE__*/React__default.createElement("div", {
531
- style: positionStyle,
532
- className: style$7.wrapper
533
- }, /*#__PURE__*/React__default.createElement(TagContextMenu, {
534
- setExpanded: setExpanded,
535
- openTagInformation: openTagInformation,
536
- tagNo: tagNo,
537
- description: description,
538
- expanded: expanded,
539
- selected: selected,
540
- selectedClassName: selectedClassName
541
- }, /*#__PURE__*/React__default.createElement(TagIcon, {
542
- icon: icon,
543
- legendColor: legendColor
544
- })), expanded && children);
365
+ var TagCategoryIcon = function TagCategoryIcon(_ref) {
366
+ var tagCategoryDescription = _ref.tagCategoryDescription;
367
+ var tagCategory = tagCategoryDescription.toLocaleLowerCase().toString();
368
+ switch (tagCategory.includes(tagCategory)) {
369
+ case isGivenTagCategory(tagCategory, TagCategoryType.Electrical):
370
+ return /*#__PURE__*/React__default.createElement(SvgElectricalIcon, {
371
+ "aria-label": 'electrical'
372
+ });
373
+ case isGivenTagCategory(tagCategory, TagCategoryType.MainEquipment):
374
+ return /*#__PURE__*/React__default.createElement(SvgMainEquipmentIcon, {
375
+ "aria-label": 'main equipment'
376
+ });
377
+ case isGivenTagCategory(tagCategory, TagCategoryType.Line):
378
+ return /*#__PURE__*/React__default.createElement(SvgLineIcon, {
379
+ "aria-label": 'line'
380
+ });
381
+ case isGivenTagCategory(tagCategory, TagCategoryType.ManualValve):
382
+ return /*#__PURE__*/React__default.createElement(SvgManualValveIcon, {
383
+ "aria-label": 'manual valve'
384
+ });
385
+ case isGivenTagCategory(tagCategory, TagCategoryType.CircuitAndStarter):
386
+ return /*#__PURE__*/React__default.createElement(SvgCircuitIcon, {
387
+ "aria-label": 'circuit/starter'
388
+ });
389
+ case isGivenTagCategory(tagCategory, TagCategoryType.Instrument):
390
+ return /*#__PURE__*/React__default.createElement(SvgInstrumentIcon, {
391
+ "aria-label": 'instrument'
392
+ });
393
+ case isGivenTagCategory(tagCategory, TagCategoryType.Cable):
394
+ return /*#__PURE__*/React__default.createElement(SvgCableIcon, {
395
+ "aria-label": 'cable'
396
+ });
397
+ case isGivenTagCategory(tagCategory, TagCategoryType.Function):
398
+ return /*#__PURE__*/React__default.createElement(SvgFunctionIcon, {
399
+ "aria-label": 'function'
400
+ });
401
+ case isGivenTagCategory(tagCategory, TagCategoryType.Signal):
402
+ return /*#__PURE__*/React__default.createElement(SvgSignalIcon, {
403
+ "aria-label": 'signal'
404
+ });
405
+ case isGivenTagCategory(tagCategory, TagCategoryType.Telecom):
406
+ return /*#__PURE__*/React__default.createElement(SvgTelecomIcon, {
407
+ "aria-label": 'telecom'
408
+ });
409
+ case isGivenTagCategory(tagCategory, TagCategoryType.JunctionBox):
410
+ return /*#__PURE__*/React__default.createElement(SvgJunctionBoxIcon, {
411
+ "aria-label": 'junction box'
412
+ });
413
+ case isGivenTagCategory(tagCategory, TagCategoryType.Administrative):
414
+ default:
415
+ return /*#__PURE__*/React__default.createElement(SvgTagIcon, {
416
+ "aria-label": 'tag'
417
+ });
418
+ }
545
419
  };
546
-
547
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
548
-
549
- function getDefaultExportFromCjs (x) {
550
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
420
+ function isGivenTagCategory(tagCategoryDescription, tagCategoryType) {
421
+ return tagCategoryDescription.includes(tagCategoryType);
551
422
  }
552
423
 
553
- function getAugmentedNamespace(n) {
554
- if (n.__esModule) return n;
555
- var f = n.default;
556
- if (typeof f == "function") {
557
- var a = function a () {
558
- if (this instanceof a) {
559
- var args = [null];
560
- args.push.apply(args, arguments);
561
- var Ctor = Function.bind.apply(f, args);
562
- return new Ctor();
563
- }
564
- return f.apply(this, arguments);
565
- };
566
- a.prototype = f.prototype;
567
- } else a = {};
568
- Object.defineProperty(a, '__esModule', {value: true});
569
- Object.keys(n).forEach(function (k) {
570
- var d = Object.getOwnPropertyDescriptor(n, k);
571
- Object.defineProperty(a, k, d.get ? d : {
572
- enumerable: true,
573
- get: function () {
574
- return n[k];
575
- }
576
- });
577
- });
578
- return a;
424
+ function getIcon(tagCategoryDescription) {
425
+ return /*#__PURE__*/React__default.createElement(TagCategoryIcon, {
426
+ tagCategoryDescription: tagCategoryDescription
427
+ });
579
428
  }
580
429
 
581
- var regeneratorRuntimeExports = {};
582
- var regeneratorRuntime$1 = {
583
- get exports(){ return regeneratorRuntimeExports; },
584
- set exports(v){ regeneratorRuntimeExports = v; },
430
+ var css_248z$E = ".BlackLink-module_linkElement__WGkkg{align-items:center;color:var(--echoText);cursor:auto;cursor:pointer;display:inline-flex;gap:.5rem;text-decoration:underline;text-decoration:none}.BlackLink-module_linkElement__WGkkg>label{cursor:inherit}.BlackLink-module_linkElement__WGkkg>span{line-height:0}.BlackLink-module_linkElement__WGkkg:hover{text-decoration:underline}.BlackLink-module_linkElement__WGkkg:focus{outline:1px dashed #007079;text-decoration:underline}.BlackLink-module_linkIcon__GW-93{min-height:24px;min-width:24px}";
431
+ var styles$r = {"linkElement":"BlackLink-module_linkElement__WGkkg","linkIcon":"BlackLink-module_linkIcon__GW-93"};
432
+ styleInject(css_248z$E);
433
+
434
+ var BlackLink = function BlackLink(_ref) {
435
+ var className = _ref.className,
436
+ href = _ref.href,
437
+ linkText = _ref.linkText,
438
+ preserveTab = _ref.preserveTab;
439
+ var linkElement = classnames$3(className, styles$r.linkElement);
440
+ return /*#__PURE__*/React__default.createElement("a", {
441
+ className: linkElement,
442
+ id: linkText,
443
+ href: href,
444
+ tabIndex: 0,
445
+ target: !preserveTab ? '_blank' : undefined,
446
+ rel: "noreferrer"
447
+ }, /*#__PURE__*/React__default.createElement("label", {
448
+ htmlFor: linkText
449
+ }, linkText), /*#__PURE__*/React__default.createElement(Icon, {
450
+ className: styles$r.linkIcon,
451
+ color: 'var(--echoText)',
452
+ name: "external_link",
453
+ size: 24
454
+ }));
585
455
  };
586
456
 
587
- var _typeofExports = {};
588
- var _typeof$E = {
589
- get exports(){ return _typeofExports; },
590
- set exports(v){ _typeofExports = v; },
457
+ var themeConst = {
458
+ /* Echo - Digital Twin Colors*/
459
+ black: '#000000',
460
+ white: '#ffffff',
461
+ equiBlue1: '#233746',
462
+ equiBlue2: '#d7e1ed',
463
+ equiBlue3: '#D5EAF4',
464
+ equiGray1: '#87929a',
465
+ equiGray2: '#b4bbc0',
466
+ equiGray3: '#d1d5d8',
467
+ equiGray4: '#e3e6e8',
468
+ equiGray5: '#f7f7f7',
469
+ equiRed1: '#ff1243',
470
+ darkEquiRed: '#ce183e',
471
+ equiGreen1: '#006f79',
472
+ equiGreen2: '#deedee',
473
+ equiGreen3: '#e6faec',
474
+ equiGreen4: '#c3f3d2',
475
+ echoText: '#3d3d3d',
476
+ disabledBackgroundColor: '#eaeaea',
477
+ disabledColor: '#6f6f6f',
478
+ /* Echopedia Work Order status color */
479
+ pm01: '#00ff00',
480
+ pm02: '#ff1493',
481
+ pm03: '#00ffff',
482
+ pm04: '#9400d3',
483
+ pm05: '#1e90ff',
484
+ pm06: '#ffdead',
485
+ pm010: '#ff4500',
486
+ pm015: '#228b22',
487
+ pm020: '#00008b',
488
+ /* Echopedia Notifications status color */
489
+ onGoing: '#fbca36',
490
+ done: '#4bb748',
491
+ /* Echopedia Stid StatusCode */
492
+ asBuilt: '#007079',
493
+ planned: '#4bb748',
494
+ future: '#52c0ff',
495
+ historic: '#ff7d98',
496
+ outOfService: '#ff9200',
497
+ reserved: '#243746',
498
+ voided: '#eb0000',
499
+ "default": '#dcdcdc',
500
+ /*Echopedia Procosys StatusCodes*/
501
+ ok: '#23ef2a',
502
+ os: '#adaead',
503
+ pa: '#f94693',
504
+ pb: '#ffdd00',
505
+ unknown: '#525252',
506
+ /*Echopedia Procosys Filters*/
507
+ priorityHigh: '#FF1243',
508
+ priorityMedium: '#FBCA36',
509
+ systems: '#D5EAF4',
510
+ locations: '#3EB54A',
511
+ /*Echopedia Stid OF-P colors */
512
+ ofpDark: '#f4d6a2',
513
+ ofpLight: '#faebce',
514
+ /* Popover colors */
515
+ warningText: '#ad6200',
516
+ warningIcon: '#ff9200',
517
+ warningBackground: '#ffe7d6',
518
+ /* Dropdown colors */
519
+ dropDownButtonBackground: '#f0f0f0',
520
+ dropDownTextColor: '#808080',
521
+ /* Search */
522
+ searchBarBackground: '#f7f7f7',
523
+ /*Application notifications*/
524
+ highSeverity: '#ffc1c1',
525
+ mediumSeverity: '#ffe7d6',
526
+ lowSeverity: '#dce6ee',
527
+ defaultSeverity: '#d5eaf4',
528
+ /* Toggle colors */
529
+ toggleActive: '#4bb748',
530
+ toggleInactive: '#b30d2f',
531
+ /* Icon colors */
532
+ hoverIcon: '#004f55',
533
+ hoverIconWithNotification: '#b30d2f',
534
+ /* Text */
535
+ tertiaryText: '#6f6f6f'
591
536
  };
592
537
 
593
- (function (module) {
594
- function _typeof(obj) {
595
- "@babel/helpers - typeof";
538
+ function _arrayWithHoles(arr) {
539
+ if (Array.isArray(arr)) return arr;
540
+ }
596
541
 
597
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
598
- return typeof obj;
599
- } : function (obj) {
600
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
601
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
602
- }
603
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
604
- } (_typeof$E));
542
+ function _iterableToArrayLimit(arr, i) {
543
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
544
+ if (null != _i) {
545
+ var _s,
546
+ _e,
547
+ _x,
548
+ _r,
549
+ _arr = [],
550
+ _n = !0,
551
+ _d = !1;
552
+ try {
553
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
554
+ if (Object(_i) !== _i) return;
555
+ _n = !1;
556
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
557
+ } catch (err) {
558
+ _d = !0, _e = err;
559
+ } finally {
560
+ try {
561
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
562
+ } finally {
563
+ if (_d) throw _e;
564
+ }
565
+ }
566
+ return _arr;
567
+ }
568
+ }
605
569
 
606
- (function (module) {
607
- var _typeof = _typeofExports["default"];
608
- function _regeneratorRuntime() {
609
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
610
- return exports;
611
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
612
- var exports = {},
613
- Op = Object.prototype,
614
- hasOwn = Op.hasOwnProperty,
615
- defineProperty = Object.defineProperty || function (obj, key, desc) {
616
- obj[key] = desc.value;
617
- },
618
- $Symbol = "function" == typeof Symbol ? Symbol : {},
619
- iteratorSymbol = $Symbol.iterator || "@@iterator",
620
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
621
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
622
- function define(obj, key, value) {
623
- return Object.defineProperty(obj, key, {
624
- value: value,
625
- enumerable: !0,
626
- configurable: !0,
627
- writable: !0
628
- }), obj[key];
629
- }
630
- try {
631
- define({}, "");
632
- } catch (err) {
633
- define = function define(obj, key, value) {
634
- return obj[key] = value;
635
- };
636
- }
637
- function wrap(innerFn, outerFn, self, tryLocsList) {
638
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
639
- generator = Object.create(protoGenerator.prototype),
640
- context = new Context(tryLocsList || []);
641
- return defineProperty(generator, "_invoke", {
642
- value: makeInvokeMethod(innerFn, self, context)
643
- }), generator;
644
- }
645
- function tryCatch(fn, obj, arg) {
646
- try {
647
- return {
648
- type: "normal",
649
- arg: fn.call(obj, arg)
650
- };
651
- } catch (err) {
652
- return {
653
- type: "throw",
654
- arg: err
655
- };
656
- }
657
- }
658
- exports.wrap = wrap;
659
- var ContinueSentinel = {};
660
- function Generator() {}
661
- function GeneratorFunction() {}
662
- function GeneratorFunctionPrototype() {}
663
- var IteratorPrototype = {};
664
- define(IteratorPrototype, iteratorSymbol, function () {
665
- return this;
666
- });
667
- var getProto = Object.getPrototypeOf,
668
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
669
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
670
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
671
- function defineIteratorMethods(prototype) {
672
- ["next", "throw", "return"].forEach(function (method) {
673
- define(prototype, method, function (arg) {
674
- return this._invoke(method, arg);
675
- });
676
- });
677
- }
678
- function AsyncIterator(generator, PromiseImpl) {
679
- function invoke(method, arg, resolve, reject) {
680
- var record = tryCatch(generator[method], generator, arg);
681
- if ("throw" !== record.type) {
682
- var result = record.arg,
683
- value = result.value;
684
- return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
685
- invoke("next", value, resolve, reject);
570
+ function _arrayLikeToArray$3(arr, len) {
571
+ if (len == null || len > arr.length) len = arr.length;
572
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
573
+ return arr2;
574
+ }
575
+
576
+ function _unsupportedIterableToArray$3(o, minLen) {
577
+ if (!o) return;
578
+ if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
579
+ var n = Object.prototype.toString.call(o).slice(8, -1);
580
+ if (n === "Object" && o.constructor) n = o.constructor.name;
581
+ if (n === "Map" || n === "Set") return Array.from(o);
582
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
583
+ }
584
+
585
+ function _nonIterableRest() {
586
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
587
+ }
588
+
589
+ function _slicedToArray(arr, i) {
590
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest();
591
+ }
592
+
593
+ function _arrayWithoutHoles$1(arr) {
594
+ if (Array.isArray(arr)) return _arrayLikeToArray$3(arr);
595
+ }
596
+
597
+ function _iterableToArray$1(iter) {
598
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
599
+ }
600
+
601
+ function _nonIterableSpread$1() {
602
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
603
+ }
604
+
605
+ function _toConsumableArray$1(arr) {
606
+ return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableSpread$1();
607
+ }
608
+
609
+ var css_248z$D = ".dataInfoButton-module_button__N4F5j{background-color:var(--white)!important;border:2px solid var(--equiGreen1)!important;box-shadow:0 4px 4px rgba(0,0,0,.25);color:var(--asBuilt)!important;height:48px!important;margin:3px!important;width:48px!important}.dataInfoButton-module_button__N4F5j:hover{background:#deedee!important}.dataInfoButton-module_buttonWithBadge__Qjm3a:after{background:var(--white);border:1px solid var(--asBuilt);border-radius:100%;box-sizing:unset;color:var(--equiGreen1);content:attr(data-count)!important;display:block;font-size:9px;font-style:normal;font-weight:700;height:18px!important;left:25px!important;line-height:20px;position:absolute;text-align:center;top:-5px!important;width:18px!important}";
610
+ var style$a = {"button":"dataInfoButton-module_button__N4F5j","buttonWithBadge":"dataInfoButton-module_buttonWithBadge__Qjm3a"};
611
+ styleInject(css_248z$D);
612
+
613
+ /**
614
+ * Component that renders a data information button with a badge to indicate the number of items under that scoped type
615
+ *
616
+ * @param {DataInfoButtonProps} { data } Contains data information related to how the button should be rendered
617
+ * numberOfItems: If number is 1 or less no badge will be displayed on the button. If number is over 99,
618
+ * then the text 99+ will be displayed. Otherwise the provided number will be displayed
619
+ * label: The name of the data type, will be displayed on the button
620
+ * ariaLabel: The aria label set on the button, if empty the label will be used
621
+ * onTagInfoClicked: The method to be called when button is pressed
622
+ * itemButtonClassName: Used to style button if default styling is not wanted. class name might need higher precedence for overriding existing styling e.g. "div.itemButtonClassName { background-color: blue !important}"
623
+ * @return {*} {JSX.Element} Data information button with or without a badge based on the provided data object
624
+ */
625
+ var DataInfoButton = function DataInfoButton(_ref) {
626
+ var data = _ref.data;
627
+ var _a;
628
+ return /*#__PURE__*/React__default.createElement(Button, {
629
+ "aria-label": (_a = data.ariaLabel) !== null && _a !== void 0 ? _a : data.label,
630
+ onClick: data.onTagInfoClicked,
631
+ className: "".concat(data.itemButtonClassName, " ").concat(style$a.button, " ").concat(data.numberOfItems > 1 ? style$a.buttonWithBadge : ''),
632
+ variant: "ghost_icon",
633
+ "data-count": data.numberOfItems > 99 ? '99+' : data.numberOfItems
634
+ }, data.label);
635
+ };
636
+
637
+ var css_248z$C = ".dataInfoPopover-module_wrapper__l8JCd{display:flex;flex-direction:column;position:absolute;right:0;z-index:10}.dataInfoPopover-module_arrow__KXQ5a{align-self:flex-end;border-bottom:7px solid rgba(0,0,0,.4);border-left:7px solid transparent;border-right:7px solid transparent;height:0;margin-right:17px;margin-top:3px;position:relative;width:0}.dataInfoPopover-module_optionsPopover__ZPXbv .arrow:after{border-bottom-color:rgba(0,0,0,.4)}.dataInfoPopover-module_optionsPopover__ZPXbv .arrow:before{border-bottom:0}.dataInfoPopover-module_optionsPopover__ZPXbv{align-self:flex-end;background:rgba(0,0,0,.4);border:0;border-radius:5px;display:flex;justify-content:space-between;max-width:max-content;padding:var(--small);position:relative}@media screen and (max-width:440px){.dataInfoPopover-module_optionsPopover__ZPXbv{max-width:270px}}.dataInfoPopover-module_groupWrapper__InWuY{display:flex;flex-direction:column;flex-wrap:wrap}@media screen and (max-width:440px){.dataInfoPopover-module_wrapper__l8JCd{left:0}.dataInfoPopover-module_arrow__KXQ5a{align-self:flex-start;margin-left:15px}.dataInfoPopover-module_optionsPopover__ZPXbv{align-self:flex-start}}.dataInfoPopover-module_banner__QtiKf{white-space:nowrap}.dataInfoPopover-module_infoMessage__lqzTe{color:var(--equiGray4)!important}.dataInfoPopover-module_banner__QtiKf>div{padding:0 16px 0 0!important}.dataInfoPopover-module_banner__QtiKf>hr{display:none}";
638
+ var style$9 = {"wrapper":"dataInfoPopover-module_wrapper__l8JCd","arrow":"dataInfoPopover-module_arrow__KXQ5a","optionsPopover":"dataInfoPopover-module_optionsPopover__ZPXbv","groupWrapper":"dataInfoPopover-module_groupWrapper__InWuY","banner":"dataInfoPopover-module_banner__QtiKf","infoMessage":"dataInfoPopover-module_infoMessage__lqzTe"};
639
+ styleInject(css_248z$C);
640
+
641
+ /**
642
+ * Component that renders a popover with data information buttons
643
+ *
644
+ * @param {DataInfoPopoverProps} {
645
+ * dataToShow: list of DataInformation objects to be displayed.
646
+ * The itemType in these objects are used to group them together in the popover
647
+ * isLoading: loading flag that tells if a dot progress should be displayed if data is being fetched
648
+ * }
649
+ * @return {*} {JSX.Element} Popover with data information buttons based on the provided DataInformation objects
650
+ */
651
+ var DataInfoPopover = function DataInfoPopover(_ref) {
652
+ var dataToShow = _ref.dataToShow,
653
+ isLoading = _ref.isLoading;
654
+ var getDataGroupings = dataToShow.reduce(function (dictionary, current) {
655
+ if (!dictionary[current.itemType]) {
656
+ dictionary[current.itemType] = [current];
657
+ } else {
658
+ dictionary[current.itemType] = [].concat(_toConsumableArray$1(dictionary[current.itemType]), [current]);
659
+ }
660
+ return dictionary;
661
+ }, {});
662
+ var _useState = useState(false),
663
+ _useState2 = _slicedToArray(_useState, 2),
664
+ showNoDataIndicator = _useState2[0],
665
+ setShowNoDataIndicator = _useState2[1];
666
+ useEffect(function () {
667
+ var delay = 200;
668
+ var timer = setTimeout(function () {
669
+ return setShowNoDataIndicator(true);
670
+ }, delay);
671
+ return function () {
672
+ clearTimeout(timer);
673
+ };
674
+ });
675
+ return /*#__PURE__*/React__default.createElement("div", {
676
+ className: style$9.wrapper
677
+ }, /*#__PURE__*/React__default.createElement("div", {
678
+ className: style$9.arrow
679
+ }), /*#__PURE__*/React__default.createElement("div", {
680
+ className: style$9.optionsPopover
681
+ }, isLoading && dataToShow.length === 0 && /*#__PURE__*/React__default.createElement(DotProgress, {
682
+ color: "neutral"
683
+ }), showNoDataIndicator && !isLoading && dataToShow.length === 0 && /*#__PURE__*/React__default.createElement(Banner, {
684
+ className: style$9.banner
685
+ }, /*#__PURE__*/React__default.createElement(Banner.Icon, {
686
+ variant: "info"
687
+ }, /*#__PURE__*/React__default.createElement(Icon, {
688
+ name: "info_circle",
689
+ title: "No data to display",
690
+ color: themeConst.asBuilt
691
+ })), /*#__PURE__*/React__default.createElement(Banner.Message, {
692
+ className: style$9.infoMessage
693
+ }, "No information to display")), Object.keys(getDataGroupings).map(function (key) {
694
+ return /*#__PURE__*/React__default.createElement("div", {
695
+ key: key,
696
+ className: style$9.groupWrapper
697
+ }, getDataGroupings[key].map(function (data, index) {
698
+ return /*#__PURE__*/React__default.createElement(DataInfoButton, {
699
+ data: data,
700
+ key: index
701
+ });
702
+ }));
703
+ })));
704
+ };
705
+
706
+ var css_248z$B = ".buttonWithPopover-module_button__FDyTt{background-color:var(--white)!important;border:3px solid var(--white)!important;border-radius:10rem;box-shadow:0 4px 4px rgba(0,0,0,.25);box-sizing:border-box;height:46px!important;width:46px!important}.buttonWithPopover-module_button__FDyTt:hover{background:#deedee!important}.buttonWithPopover-module_wrapper__-pQfB{position:relative}.buttonWithPopover-module_spinner__LMbqe{height:34px!important;margin:3px;width:34px!important}";
707
+ var style$8 = {"button":"buttonWithPopover-module_button__FDyTt","wrapper":"buttonWithPopover-module_wrapper__-pQfB","spinner":"buttonWithPopover-module_spinner__LMbqe"};
708
+ styleInject(css_248z$B);
709
+
710
+ /**
711
+ * Component that renders a round button, that opens a popover upon being clicked
712
+ *
713
+ * @param {ButtonWithPopoverProps} {
714
+ * onShowMoreClicked: method called upon button clicked
715
+ * fetchedData: array of DataInformation that popover should be displayed when button is clicked.
716
+ * Meant to be the return value of the fetchDataToShow method
717
+ * isLoading: flag to show loading state if data fetch takes some time
718
+ * expanded: flag to determine if popover should be expanded or not
719
+ * @return {*} {JSX.Element} Round button with belonging popover to display data information buttons
720
+ */
721
+ var ButtonWithPopover = function ButtonWithPopover(_ref) {
722
+ var onShowMoreClicked = _ref.onShowMoreClicked,
723
+ fetchedData = _ref.fetchedData,
724
+ isLoading = _ref.isLoading,
725
+ expanded = _ref.expanded;
726
+ var renderPopoverButton = function renderPopoverButton() {
727
+ if (!expanded) {
728
+ return /*#__PURE__*/React__default.createElement(Icon, {
729
+ name: "more_horizontal",
730
+ title: "more options",
731
+ color: themeConst.asBuilt
732
+ });
733
+ } else {
734
+ return /*#__PURE__*/React__default.createElement(Icon, {
735
+ name: "close",
736
+ title: "close more options",
737
+ color: themeConst.asBuilt
738
+ });
739
+ }
740
+ };
741
+ return /*#__PURE__*/React__default.createElement("div", {
742
+ className: style$8.wrapper
743
+ }, expanded && isLoading ? /*#__PURE__*/React__default.createElement("div", {
744
+ className: style$8.button,
745
+ onClick: onShowMoreClicked
746
+ }, /*#__PURE__*/React__default.createElement(CircularProgress, {
747
+ className: style$8.spinner
748
+ })) : /*#__PURE__*/React__default.createElement(Button, {
749
+ className: style$8.button,
750
+ variant: "ghost_icon",
751
+ onClick: onShowMoreClicked
752
+ }, renderPopoverButton()), expanded && /*#__PURE__*/React__default.createElement(DataInfoPopover, {
753
+ isLoading: isLoading,
754
+ dataToShow: fetchedData
755
+ }));
756
+ };
757
+
758
+ var css_248z$A = ".tagIcon-module_icon__FVhlT{border:3px solid var(--white);border-radius:10rem;box-sizing:border-box;height:46px;padding:8px;position:relative;transform-origin:left top;width:46px}.tagIcon-module_shadow__dAk0l{border-radius:10rem;box-shadow:0 4px 4px rgba(0,0,0,.25);height:46px;width:46px}";
759
+ var styles$q = {"icon":"tagIcon-module_icon__FVhlT","shadow":"tagIcon-module_shadow__dAk0l"};
760
+ styleInject(css_248z$A);
761
+
762
+ /**
763
+ * Component that will wrap the provided icon with a background color (usually the legend color)
764
+ *
765
+ * @param {TagIconProps} {
766
+ * icon: Icon to be wrapped
767
+ * legendColor: background color to apply. Need to be valid css color
768
+ * }
769
+ * @return {*} {JSX.Element} Wrapped icon with provided color
770
+ */
771
+ var TagIcon = function TagIcon(_ref) {
772
+ var icon = _ref.icon,
773
+ legendColor = _ref.legendColor;
774
+ return /*#__PURE__*/React__default.createElement("div", {
775
+ style: {
776
+ background: legendColor
777
+ },
778
+ className: "".concat(styles$q.icon)
779
+ }, icon);
780
+ };
781
+
782
+ /**
783
+ * Component that will wrap the provided child element in a shadow.
784
+ * Should be used to add shadow to the tagIcon component
785
+ *
786
+ * @param {TagIconShadowWrapperProps} { children } Child element to wrap
787
+ * @return {*} {JSX.Element} wrapped child element in a shadow
788
+ */
789
+ var TagIconShadowWrapper = function TagIconShadowWrapper(_ref) {
790
+ var children = _ref.children;
791
+ return /*#__PURE__*/React__default.createElement("div", {
792
+ className: "".concat(styles$q.shadow)
793
+ }, children);
794
+ };
795
+
796
+ var css_248z$z = ".tagContextMenu-module_contextWrapper__o8wWz{border-radius:10rem;cursor:pointer;width:fit-content}.tagContextMenu-module_contextWrapperExpanded__FJI8c{cursor:pointer;display:flex;flex-wrap:wrap}.tagContextMenu-module_selected__4L6WK{box-shadow:0 0 10px 5px var(--toggleActive)}.tagContextMenu-module_tagInfoWrapper__y4LBf{align-items:center;background-color:var(--white);border-radius:10rem;box-shadow:0 4px 4px rgba(0,0,0,.25);box-sizing:unset;display:flex;height:52px;overflow:hidden;padding:1px;width:100%}.tagContextMenu-module_tagText__8GaFk{cursor:pointer;margin:auto;max-width:240px;min-width:55px;overflow:hidden;padding:0 var(--small) 0 var(--small);text-align:start;text-overflow:ellipsis;white-space:nowrap;width:100%}@media screen and (max-width:440px){.tagContextMenu-module_tagText__8GaFk{max-width:140px;min-width:140px}}@media screen and (min-width:440px) and (max-width:560px){.tagContextMenu-module_tagText__8GaFk{max-width:240px}}.tagContextMenu-module_tagHeader__NW1El{color:var(--equiGreen1)!important;font-weight:700!important;overflow:hidden;text-overflow:ellipsis}.tagContextMenu-module_tagDescription__lrT1D{overflow:hidden;text-overflow:ellipsis}.tagContextMenu-module_tagInfoIcon__AMpqu{margin:3px}";
797
+ var styles$p = {"contextWrapper":"tagContextMenu-module_contextWrapper__o8wWz","contextWrapperExpanded":"tagContextMenu-module_contextWrapperExpanded__FJI8c","selected":"tagContextMenu-module_selected__4L6WK","tagInfoWrapper":"tagContextMenu-module_tagInfoWrapper__y4LBf","tagText":"tagContextMenu-module_tagText__8GaFk","tagHeader":"tagContextMenu-module_tagHeader__NW1El","tagDescription":"tagContextMenu-module_tagDescription__lrT1D","tagInfoIcon":"tagContextMenu-module_tagInfoIcon__AMpqu"};
798
+ styleInject(css_248z$z);
799
+
800
+ /**
801
+ * Component that renders a tag context menu that can be expanded and closed upon click
802
+ * The condensed variant will only display the the relevant tag icon
803
+ * The expanded variant will display relevant tag icon, tag number and tag description
804
+ *
805
+ * @param {TagContextMenuProps} {
806
+ * expanded: flag that state if the context menu should be expanded or not
807
+ * setExpanded: method to update the expanded flag
808
+ * tagNo: the tag no to display
809
+ * description: the tag description
810
+ * openTagInformation: method called when expanded context menu is called
811
+ * selected: Flag to handle if there are multiple context menu's on a page, and a selected style should be applied
812
+ * selectedClassName: styling used to handle multiple tag visible on the page at the same time, class will be added to tagIcon when context menu is not expanded
813
+ * children: Meant to be used to pass TagIcon component to this component
814
+ * }
815
+ * @return {*} {JSX.Element} a tag context menu for the provided properties
816
+ */
817
+ var TagContextMenu = function TagContextMenu(_ref) {
818
+ var expanded = _ref.expanded,
819
+ setExpanded = _ref.setExpanded,
820
+ tagNo = _ref.tagNo,
821
+ description = _ref.description,
822
+ selected = _ref.selected,
823
+ selectedClassName = _ref.selectedClassName,
824
+ openTagInformation = _ref.openTagInformation,
825
+ children = _ref.children;
826
+ if (expanded) {
827
+ return /*#__PURE__*/React__default.createElement("div", {
828
+ className: styles$p.contextWrapperExpanded,
829
+ onClick: openTagInformation
830
+ }, /*#__PURE__*/React__default.createElement("div", {
831
+ className: styles$p.tagInfoWrapper
832
+ }, children, /*#__PURE__*/React__default.createElement("div", {
833
+ className: styles$p.tagText
834
+ }, /*#__PURE__*/React__default.createElement(Typography, {
835
+ variant: "h5",
836
+ className: styles$p.tagHeader
837
+ }, tagNo), /*#__PURE__*/React__default.createElement(Typography, {
838
+ variant: "body_short",
839
+ className: styles$p.tagDescription
840
+ }, description)), /*#__PURE__*/React__default.createElement("div", {
841
+ className: styles$p.tagInfoIcon
842
+ }, /*#__PURE__*/React__default.createElement(Button, {
843
+ variant: "ghost_icon"
844
+ }, /*#__PURE__*/React__default.createElement(Icon, {
845
+ name: "info_circle",
846
+ title: "tag information",
847
+ color: themeConst.asBuilt
848
+ })))));
849
+ } else {
850
+ return /*#__PURE__*/React__default.createElement("div", {
851
+ "data-testid": "open-tag-info",
852
+ className: "".concat(styles$p.contextWrapper, " ").concat(selected ? selectedClassName ? selectedClassName : styles$p.selected : ''),
853
+ onClick: function onClick() {
854
+ setExpanded(true);
855
+ }
856
+ }, /*#__PURE__*/React__default.createElement(TagIconShadowWrapper, null, children));
857
+ }
858
+ };
859
+
860
+ var css_248z$y = ".contextMenu-module_wrapper__p-0Zc{display:flex;flex-wrap:wrap;position:absolute;width:fit-content}.contextMenu-module_wrapper__p-0Zc>div:first-child{margin-right:4px}@media screen and (max-width:440px){.contextMenu-module_wrapper__p-0Zc{max-width:250px}.contextMenu-module_wrapper__p-0Zc>div:first-child{margin-bottom:5px}}";
861
+ var style$7 = {"wrapper":"contextMenu-module_wrapper__p-0Zc"};
862
+ styleInject(css_248z$y);
863
+
864
+ /**
865
+ * Component that renders full context menu functionality, meant for displaying tag context menu.
866
+ * With the ability to provide more information button and related popover that should be wrapped with the context menu
867
+ *
868
+ * @param {ContextMenuProps} {
869
+ * icon: icon to be displayed
870
+ * expanded: flag to determine if context menu should be expanded or not
871
+ * legendColor: color used for the tag icon
872
+ * setExpanded: method to update expanded flag
873
+ * tagNo: The tag number to display
874
+ * description: The tag description to display
875
+ * positionStyle: The position styling element used to position the context menu
876
+ * openTagInformation: Method that will be called when expanded context menu is clicked
877
+ * selected: Flag to handle if there are multiple context menu's on a page, and a selected style should be applied
878
+ * selectedClassName: styling used to handle multiple tag visible on the page at the same time, class will be added to tagIcon when context menu is not expanded
879
+ * children: Related elements to display, e.g. more information button
880
+ * }
881
+ * @return {*} {JSX.Element} Context menu with relevant children wrapped
882
+ */
883
+ var ContextMenu = function ContextMenu(_ref) {
884
+ var icon = _ref.icon,
885
+ expanded = _ref.expanded,
886
+ legendColor = _ref.legendColor,
887
+ setExpanded = _ref.setExpanded,
888
+ tagNo = _ref.tagNo,
889
+ description = _ref.description,
890
+ positionStyle = _ref.positionStyle,
891
+ selected = _ref.selected,
892
+ selectedClassName = _ref.selectedClassName,
893
+ openTagInformation = _ref.openTagInformation,
894
+ children = _ref.children;
895
+ return /*#__PURE__*/React__default.createElement("div", {
896
+ style: positionStyle,
897
+ className: style$7.wrapper
898
+ }, /*#__PURE__*/React__default.createElement(TagContextMenu, {
899
+ setExpanded: setExpanded,
900
+ openTagInformation: openTagInformation,
901
+ tagNo: tagNo,
902
+ description: description,
903
+ expanded: expanded,
904
+ selected: selected,
905
+ selectedClassName: selectedClassName
906
+ }, /*#__PURE__*/React__default.createElement(TagIcon, {
907
+ icon: icon,
908
+ legendColor: legendColor
909
+ })), expanded && children);
910
+ };
911
+
912
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
913
+
914
+ function getDefaultExportFromCjs (x) {
915
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
916
+ }
917
+
918
+ function getAugmentedNamespace(n) {
919
+ if (n.__esModule) return n;
920
+ var f = n.default;
921
+ if (typeof f == "function") {
922
+ var a = function a () {
923
+ if (this instanceof a) {
924
+ var args = [null];
925
+ args.push.apply(args, arguments);
926
+ var Ctor = Function.bind.apply(f, args);
927
+ return new Ctor();
928
+ }
929
+ return f.apply(this, arguments);
930
+ };
931
+ a.prototype = f.prototype;
932
+ } else a = {};
933
+ Object.defineProperty(a, '__esModule', {value: true});
934
+ Object.keys(n).forEach(function (k) {
935
+ var d = Object.getOwnPropertyDescriptor(n, k);
936
+ Object.defineProperty(a, k, d.get ? d : {
937
+ enumerable: true,
938
+ get: function () {
939
+ return n[k];
940
+ }
941
+ });
942
+ });
943
+ return a;
944
+ }
945
+
946
+ var regeneratorRuntimeExports = {};
947
+ var regeneratorRuntime$1 = {
948
+ get exports(){ return regeneratorRuntimeExports; },
949
+ set exports(v){ regeneratorRuntimeExports = v; },
950
+ };
951
+
952
+ var _typeofExports = {};
953
+ var _typeof$D = {
954
+ get exports(){ return _typeofExports; },
955
+ set exports(v){ _typeofExports = v; },
956
+ };
957
+
958
+ (function (module) {
959
+ function _typeof(obj) {
960
+ "@babel/helpers - typeof";
961
+
962
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
963
+ return typeof obj;
964
+ } : function (obj) {
965
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
966
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
967
+ }
968
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
969
+ } (_typeof$D));
970
+
971
+ (function (module) {
972
+ var _typeof = _typeofExports["default"];
973
+ function _regeneratorRuntime() {
974
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
975
+ return exports;
976
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
977
+ var exports = {},
978
+ Op = Object.prototype,
979
+ hasOwn = Op.hasOwnProperty,
980
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
981
+ obj[key] = desc.value;
982
+ },
983
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
984
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
985
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
986
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
987
+ function define(obj, key, value) {
988
+ return Object.defineProperty(obj, key, {
989
+ value: value,
990
+ enumerable: !0,
991
+ configurable: !0,
992
+ writable: !0
993
+ }), obj[key];
994
+ }
995
+ try {
996
+ define({}, "");
997
+ } catch (err) {
998
+ define = function define(obj, key, value) {
999
+ return obj[key] = value;
1000
+ };
1001
+ }
1002
+ function wrap(innerFn, outerFn, self, tryLocsList) {
1003
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
1004
+ generator = Object.create(protoGenerator.prototype),
1005
+ context = new Context(tryLocsList || []);
1006
+ return defineProperty(generator, "_invoke", {
1007
+ value: makeInvokeMethod(innerFn, self, context)
1008
+ }), generator;
1009
+ }
1010
+ function tryCatch(fn, obj, arg) {
1011
+ try {
1012
+ return {
1013
+ type: "normal",
1014
+ arg: fn.call(obj, arg)
1015
+ };
1016
+ } catch (err) {
1017
+ return {
1018
+ type: "throw",
1019
+ arg: err
1020
+ };
1021
+ }
1022
+ }
1023
+ exports.wrap = wrap;
1024
+ var ContinueSentinel = {};
1025
+ function Generator() {}
1026
+ function GeneratorFunction() {}
1027
+ function GeneratorFunctionPrototype() {}
1028
+ var IteratorPrototype = {};
1029
+ define(IteratorPrototype, iteratorSymbol, function () {
1030
+ return this;
1031
+ });
1032
+ var getProto = Object.getPrototypeOf,
1033
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1034
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
1035
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
1036
+ function defineIteratorMethods(prototype) {
1037
+ ["next", "throw", "return"].forEach(function (method) {
1038
+ define(prototype, method, function (arg) {
1039
+ return this._invoke(method, arg);
1040
+ });
1041
+ });
1042
+ }
1043
+ function AsyncIterator(generator, PromiseImpl) {
1044
+ function invoke(method, arg, resolve, reject) {
1045
+ var record = tryCatch(generator[method], generator, arg);
1046
+ if ("throw" !== record.type) {
1047
+ var result = record.arg,
1048
+ value = result.value;
1049
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
1050
+ invoke("next", value, resolve, reject);
686
1051
  }, function (err) {
687
1052
  invoke("throw", err, resolve, reject);
688
1053
  }) : PromiseImpl.resolve(value).then(function (unwrapped) {
@@ -1031,7 +1396,7 @@ var CopyToClipboard = function CopyToClipboard(props) {
1031
1396
  };
1032
1397
 
1033
1398
  var classnamesExports$1 = {};
1034
- var classnames$3 = {
1399
+ var classnames$2 = {
1035
1400
  get exports(){ return classnamesExports$1; },
1036
1401
  set exports(v){ classnamesExports$1 = v; },
1037
1402
  };
@@ -1091,9 +1456,9 @@ var classnames$3 = {
1091
1456
  window.classNames = classNames;
1092
1457
  }
1093
1458
  }());
1094
- } (classnames$3));
1459
+ } (classnames$2));
1095
1460
 
1096
- var classnames$2 = classnamesExports$1;
1461
+ var classnames$1 = classnamesExports$1;
1097
1462
 
1098
1463
  var formatDistanceLocale = {
1099
1464
  lessThanXSeconds: {
@@ -2810,7 +3175,7 @@ function requiredArgs(required, args) {
2810
3175
  }
2811
3176
  }
2812
3177
 
2813
- function _typeof$D(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$D = function _typeof(obj) { return typeof obj; }; } else { _typeof$D = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$D(obj); }
3178
+ function _typeof$C(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$C = function _typeof(obj) { return typeof obj; }; } else { _typeof$C = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$C(obj); }
2814
3179
  /**
2815
3180
  * @name isDate
2816
3181
  * @category Common Helpers
@@ -2846,7 +3211,7 @@ function _typeof$D(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "func
2846
3211
 
2847
3212
  function isDate(value) {
2848
3213
  requiredArgs(1, arguments);
2849
- return value instanceof Date || _typeof$D(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
3214
+ return value instanceof Date || _typeof$C(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
2850
3215
  }
2851
3216
 
2852
3217
  var isDate$1 = /*#__PURE__*/Object.freeze({
@@ -2856,7 +3221,7 @@ var isDate$1 = /*#__PURE__*/Object.freeze({
2856
3221
 
2857
3222
  var require$$3$1 = /*@__PURE__*/getAugmentedNamespace(isDate$1);
2858
3223
 
2859
- function _typeof$C(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$C = function _typeof(obj) { return typeof obj; }; } else { _typeof$C = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$C(obj); }
3224
+ function _typeof$B(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$B = function _typeof(obj) { return typeof obj; }; } else { _typeof$B = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$B(obj); }
2860
3225
  /**
2861
3226
  * @name toDate
2862
3227
  * @category Common Helpers
@@ -2892,7 +3257,7 @@ function toDate(argument) {
2892
3257
  requiredArgs(1, arguments);
2893
3258
  var argStr = Object.prototype.toString.call(argument); // Clone the date
2894
3259
 
2895
- if (argument instanceof Date || _typeof$C(argument) === 'object' && argStr === '[object Date]') {
3260
+ if (argument instanceof Date || _typeof$B(argument) === 'object' && argStr === '[object Date]') {
2896
3261
  // Prevent the date to lose the milliseconds when passed to new Date() in IE10
2897
3262
  return new Date(argument.getTime());
2898
3263
  } else if (typeof argument === 'number' || argStr === '[object Number]') {
@@ -5966,7 +6331,7 @@ var setYear$1 = /*#__PURE__*/Object.freeze({
5966
6331
 
5967
6332
  var require$$35 = /*@__PURE__*/getAugmentedNamespace(setYear$1);
5968
6333
 
5969
- function _typeof$B(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$B = function _typeof(obj) { return typeof obj; }; } else { _typeof$B = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$B(obj); }
6334
+ function _typeof$A(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$A = function _typeof(obj) { return typeof obj; }; } else { _typeof$A = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$A(obj); }
5970
6335
  /**
5971
6336
  * @name min
5972
6337
  * @category Common Helpers
@@ -5996,7 +6361,7 @@ function min$1(dirtyDatesArray) {
5996
6361
 
5997
6362
  if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') {
5998
6363
  datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array.
5999
- } else if (_typeof$B(dirtyDatesArray) === 'object' && dirtyDatesArray !== null) {
6364
+ } else if (_typeof$A(dirtyDatesArray) === 'object' && dirtyDatesArray !== null) {
6000
6365
  datesArray = Array.prototype.slice.call(dirtyDatesArray);
6001
6366
  } else {
6002
6367
  // `dirtyDatesArray` is non-iterable, return Invalid Date
@@ -6021,7 +6386,7 @@ var min$2 = /*#__PURE__*/Object.freeze({
6021
6386
 
6022
6387
  var require$$36 = /*@__PURE__*/getAugmentedNamespace(min$2);
6023
6388
 
6024
- function _typeof$A(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$A = function _typeof(obj) { return typeof obj; }; } else { _typeof$A = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$A(obj); }
6389
+ function _typeof$z(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$z = function _typeof(obj) { return typeof obj; }; } else { _typeof$z = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$z(obj); }
6025
6390
  /**
6026
6391
  * @name max
6027
6392
  * @category Common Helpers
@@ -6051,7 +6416,7 @@ function max$1(dirtyDatesArray) {
6051
6416
 
6052
6417
  if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') {
6053
6418
  datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array.
6054
- } else if (_typeof$A(dirtyDatesArray) === 'object' && dirtyDatesArray !== null) {
6419
+ } else if (_typeof$z(dirtyDatesArray) === 'object' && dirtyDatesArray !== null) {
6055
6420
  datesArray = Array.prototype.slice.call(dirtyDatesArray);
6056
6421
  } else {
6057
6422
  // `dirtyDatesArray` is non-iterable, return Invalid Date
@@ -6882,7 +7247,7 @@ function assign(target, object) {
6882
7247
  return target;
6883
7248
  }
6884
7249
 
6885
- function _typeof$z(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$z = function _typeof(obj) { return typeof obj; }; } else { _typeof$z = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$z(obj); }
7250
+ function _typeof$y(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$y = function _typeof(obj) { return typeof obj; }; } else { _typeof$y = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$y(obj); }
6886
7251
 
6887
7252
  function _inherits$v(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$x(subClass, superClass); }
6888
7253
 
@@ -6890,7 +7255,7 @@ function _setPrototypeOf$x(o, p) { _setPrototypeOf$x = Object.setPrototypeOf ||
6890
7255
 
6891
7256
  function _createSuper$v(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$v(); return function _createSuperInternal() { var Super = _getPrototypeOf$v(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$v(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$v(this, result); }; }
6892
7257
 
6893
- function _possibleConstructorReturn$v(self, call) { if (call && (_typeof$z(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$x(self); }
7258
+ function _possibleConstructorReturn$v(self, call) { if (call && (_typeof$y(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$x(self); }
6894
7259
 
6895
7260
  function _assertThisInitialized$x(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6896
7261
 
@@ -7034,7 +7399,7 @@ var Parser = /*#__PURE__*/function () {
7034
7399
  return Parser;
7035
7400
  }();
7036
7401
 
7037
- function _typeof$y(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$y = function _typeof(obj) { return typeof obj; }; } else { _typeof$y = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$y(obj); }
7402
+ function _typeof$x(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$x = function _typeof(obj) { return typeof obj; }; } else { _typeof$x = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$x(obj); }
7038
7403
 
7039
7404
  function _classCallCheck$u(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7040
7405
 
@@ -7048,7 +7413,7 @@ function _setPrototypeOf$w(o, p) { _setPrototypeOf$w = Object.setPrototypeOf ||
7048
7413
 
7049
7414
  function _createSuper$u(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$u(); return function _createSuperInternal() { var Super = _getPrototypeOf$u(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$u(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$u(this, result); }; }
7050
7415
 
7051
- function _possibleConstructorReturn$u(self, call) { if (call && (_typeof$y(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$w(self); }
7416
+ function _possibleConstructorReturn$u(self, call) { if (call && (_typeof$x(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$w(self); }
7052
7417
 
7053
7418
  function _assertThisInitialized$w(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
7054
7419
 
@@ -7340,7 +7705,7 @@ function isLeapYearIndex$1(year) {
7340
7705
  return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
7341
7706
  }
7342
7707
 
7343
- function _typeof$x(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$x = function _typeof(obj) { return typeof obj; }; } else { _typeof$x = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$x(obj); }
7708
+ function _typeof$w(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$w = function _typeof(obj) { return typeof obj; }; } else { _typeof$w = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$w(obj); }
7344
7709
 
7345
7710
  function _classCallCheck$t(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7346
7711
 
@@ -7354,7 +7719,7 @@ function _setPrototypeOf$v(o, p) { _setPrototypeOf$v = Object.setPrototypeOf ||
7354
7719
 
7355
7720
  function _createSuper$t(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$t(); return function _createSuperInternal() { var Super = _getPrototypeOf$t(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$t(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$t(this, result); }; }
7356
7721
 
7357
- function _possibleConstructorReturn$t(self, call) { if (call && (_typeof$x(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$v(self); }
7722
+ function _possibleConstructorReturn$t(self, call) { if (call && (_typeof$w(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$v(self); }
7358
7723
 
7359
7724
  function _assertThisInitialized$v(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
7360
7725
 
@@ -7444,7 +7809,7 @@ var YearParser = /*#__PURE__*/function (_Parser) {
7444
7809
  return YearParser;
7445
7810
  }(Parser);
7446
7811
 
7447
- function _typeof$w(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$w = function _typeof(obj) { return typeof obj; }; } else { _typeof$w = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$w(obj); }
7812
+ function _typeof$v(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$v = function _typeof(obj) { return typeof obj; }; } else { _typeof$v = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$v(obj); }
7448
7813
 
7449
7814
  function _classCallCheck$s(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7450
7815
 
@@ -7458,7 +7823,7 @@ function _setPrototypeOf$u(o, p) { _setPrototypeOf$u = Object.setPrototypeOf ||
7458
7823
 
7459
7824
  function _createSuper$s(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$s(); return function _createSuperInternal() { var Super = _getPrototypeOf$s(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$s(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$s(this, result); }; }
7460
7825
 
7461
- function _possibleConstructorReturn$s(self, call) { if (call && (_typeof$w(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$u(self); }
7826
+ function _possibleConstructorReturn$s(self, call) { if (call && (_typeof$v(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$u(self); }
7462
7827
 
7463
7828
  function _assertThisInitialized$u(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
7464
7829
 
@@ -7541,7 +7906,7 @@ var LocalWeekYearParser = /*#__PURE__*/function (_Parser) {
7541
7906
  return LocalWeekYearParser;
7542
7907
  }(Parser);
7543
7908
 
7544
- function _typeof$v(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$v = function _typeof(obj) { return typeof obj; }; } else { _typeof$v = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$v(obj); }
7909
+ function _typeof$u(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$u = function _typeof(obj) { return typeof obj; }; } else { _typeof$u = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$u(obj); }
7545
7910
 
7546
7911
  function _classCallCheck$r(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7547
7912
 
@@ -7555,7 +7920,7 @@ function _setPrototypeOf$t(o, p) { _setPrototypeOf$t = Object.setPrototypeOf ||
7555
7920
 
7556
7921
  function _createSuper$r(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$r(); return function _createSuperInternal() { var Super = _getPrototypeOf$r(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$r(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$r(this, result); }; }
7557
7922
 
7558
- function _possibleConstructorReturn$r(self, call) { if (call && (_typeof$v(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$t(self); }
7923
+ function _possibleConstructorReturn$r(self, call) { if (call && (_typeof$u(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$t(self); }
7559
7924
 
7560
7925
  function _assertThisInitialized$t(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
7561
7926
 
@@ -7610,7 +7975,7 @@ var ISOWeekYearParser = /*#__PURE__*/function (_Parser) {
7610
7975
  return ISOWeekYearParser;
7611
7976
  }(Parser);
7612
7977
 
7613
- function _typeof$u(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$u = function _typeof(obj) { return typeof obj; }; } else { _typeof$u = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$u(obj); }
7978
+ function _typeof$t(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$t = function _typeof(obj) { return typeof obj; }; } else { _typeof$t = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$t(obj); }
7614
7979
 
7615
7980
  function _classCallCheck$q(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7616
7981
 
@@ -7624,7 +7989,7 @@ function _setPrototypeOf$s(o, p) { _setPrototypeOf$s = Object.setPrototypeOf ||
7624
7989
 
7625
7990
  function _createSuper$q(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$q(); return function _createSuperInternal() { var Super = _getPrototypeOf$q(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$q(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$q(this, result); }; }
7626
7991
 
7627
- function _possibleConstructorReturn$q(self, call) { if (call && (_typeof$u(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$s(self); }
7992
+ function _possibleConstructorReturn$q(self, call) { if (call && (_typeof$t(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$s(self); }
7628
7993
 
7629
7994
  function _assertThisInitialized$s(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
7630
7995
 
@@ -7677,7 +8042,7 @@ var ExtendedYearParser = /*#__PURE__*/function (_Parser) {
7677
8042
  return ExtendedYearParser;
7678
8043
  }(Parser);
7679
8044
 
7680
- function _typeof$t(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$t = function _typeof(obj) { return typeof obj; }; } else { _typeof$t = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$t(obj); }
8045
+ function _typeof$s(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$s = function _typeof(obj) { return typeof obj; }; } else { _typeof$s = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$s(obj); }
7681
8046
 
7682
8047
  function _classCallCheck$p(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7683
8048
 
@@ -7691,7 +8056,7 @@ function _setPrototypeOf$r(o, p) { _setPrototypeOf$r = Object.setPrototypeOf ||
7691
8056
 
7692
8057
  function _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf$p(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$p(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$p(this, result); }; }
7693
8058
 
7694
- function _possibleConstructorReturn$p(self, call) { if (call && (_typeof$t(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$r(self); }
8059
+ function _possibleConstructorReturn$p(self, call) { if (call && (_typeof$s(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$r(self); }
7695
8060
 
7696
8061
  function _assertThisInitialized$r(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
7697
8062
 
@@ -7788,7 +8153,7 @@ var QuarterParser = /*#__PURE__*/function (_Parser) {
7788
8153
  return QuarterParser;
7789
8154
  }(Parser);
7790
8155
 
7791
- function _typeof$s(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$s = function _typeof(obj) { return typeof obj; }; } else { _typeof$s = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$s(obj); }
8156
+ function _typeof$r(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$r = function _typeof(obj) { return typeof obj; }; } else { _typeof$r = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$r(obj); }
7792
8157
 
7793
8158
  function _classCallCheck$o(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7794
8159
 
@@ -7802,7 +8167,7 @@ function _setPrototypeOf$q(o, p) { _setPrototypeOf$q = Object.setPrototypeOf ||
7802
8167
 
7803
8168
  function _createSuper$o(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$o(); return function _createSuperInternal() { var Super = _getPrototypeOf$o(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$o(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$o(this, result); }; }
7804
8169
 
7805
- function _possibleConstructorReturn$o(self, call) { if (call && (_typeof$s(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$q(self); }
8170
+ function _possibleConstructorReturn$o(self, call) { if (call && (_typeof$r(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$q(self); }
7806
8171
 
7807
8172
  function _assertThisInitialized$q(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
7808
8173
 
@@ -7899,7 +8264,7 @@ var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
7899
8264
  return StandAloneQuarterParser;
7900
8265
  }(Parser);
7901
8266
 
7902
- function _typeof$r(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$r = function _typeof(obj) { return typeof obj; }; } else { _typeof$r = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$r(obj); }
8267
+ function _typeof$q(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$q = function _typeof(obj) { return typeof obj; }; } else { _typeof$q = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$q(obj); }
7903
8268
 
7904
8269
  function _classCallCheck$n(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7905
8270
 
@@ -7913,7 +8278,7 @@ function _setPrototypeOf$p(o, p) { _setPrototypeOf$p = Object.setPrototypeOf ||
7913
8278
 
7914
8279
  function _createSuper$n(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$n(); return function _createSuperInternal() { var Super = _getPrototypeOf$n(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$n(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$n(this, result); }; }
7915
8280
 
7916
- function _possibleConstructorReturn$n(self, call) { if (call && (_typeof$r(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$p(self); }
8281
+ function _possibleConstructorReturn$n(self, call) { if (call && (_typeof$q(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$p(self); }
7917
8282
 
7918
8283
  function _assertThisInitialized$p(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
7919
8284
 
@@ -8016,7 +8381,7 @@ var MonthParser = /*#__PURE__*/function (_Parser) {
8016
8381
  return MonthParser;
8017
8382
  }(Parser);
8018
8383
 
8019
- function _typeof$q(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$q = function _typeof(obj) { return typeof obj; }; } else { _typeof$q = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$q(obj); }
8384
+ function _typeof$p(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$p = function _typeof(obj) { return typeof obj; }; } else { _typeof$p = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$p(obj); }
8020
8385
 
8021
8386
  function _classCallCheck$m(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8022
8387
 
@@ -8030,7 +8395,7 @@ function _setPrototypeOf$o(o, p) { _setPrototypeOf$o = Object.setPrototypeOf ||
8030
8395
 
8031
8396
  function _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf$m(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$m(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$m(this, result); }; }
8032
8397
 
8033
- function _possibleConstructorReturn$m(self, call) { if (call && (_typeof$q(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$o(self); }
8398
+ function _possibleConstructorReturn$m(self, call) { if (call && (_typeof$p(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$o(self); }
8034
8399
 
8035
8400
  function _assertThisInitialized$o(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8036
8401
 
@@ -8142,7 +8507,7 @@ function setUTCWeek(dirtyDate, dirtyWeek, options) {
8142
8507
  return date;
8143
8508
  }
8144
8509
 
8145
- function _typeof$p(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$p = function _typeof(obj) { return typeof obj; }; } else { _typeof$p = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$p(obj); }
8510
+ function _typeof$o(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$o = function _typeof(obj) { return typeof obj; }; } else { _typeof$o = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$o(obj); }
8146
8511
 
8147
8512
  function _classCallCheck$l(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8148
8513
 
@@ -8156,7 +8521,7 @@ function _setPrototypeOf$n(o, p) { _setPrototypeOf$n = Object.setPrototypeOf ||
8156
8521
 
8157
8522
  function _createSuper$l(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$l(); return function _createSuperInternal() { var Super = _getPrototypeOf$l(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$l(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$l(this, result); }; }
8158
8523
 
8159
- function _possibleConstructorReturn$l(self, call) { if (call && (_typeof$p(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$n(self); }
8524
+ function _possibleConstructorReturn$l(self, call) { if (call && (_typeof$o(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$n(self); }
8160
8525
 
8161
8526
  function _assertThisInitialized$n(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8162
8527
 
@@ -8229,7 +8594,7 @@ function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
8229
8594
  return date;
8230
8595
  }
8231
8596
 
8232
- function _typeof$o(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$o = function _typeof(obj) { return typeof obj; }; } else { _typeof$o = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$o(obj); }
8597
+ function _typeof$n(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$n = function _typeof(obj) { return typeof obj; }; } else { _typeof$n = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$n(obj); }
8233
8598
 
8234
8599
  function _classCallCheck$k(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8235
8600
 
@@ -8243,7 +8608,7 @@ function _setPrototypeOf$m(o, p) { _setPrototypeOf$m = Object.setPrototypeOf ||
8243
8608
 
8244
8609
  function _createSuper$k(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$k(); return function _createSuperInternal() { var Super = _getPrototypeOf$k(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$k(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$k(this, result); }; }
8245
8610
 
8246
- function _possibleConstructorReturn$k(self, call) { if (call && (_typeof$o(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$m(self); }
8611
+ function _possibleConstructorReturn$k(self, call) { if (call && (_typeof$n(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$m(self); }
8247
8612
 
8248
8613
  function _assertThisInitialized$m(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8249
8614
 
@@ -8307,7 +8672,7 @@ var ISOWeekParser = /*#__PURE__*/function (_Parser) {
8307
8672
  return ISOWeekParser;
8308
8673
  }(Parser);
8309
8674
 
8310
- function _typeof$n(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$n = function _typeof(obj) { return typeof obj; }; } else { _typeof$n = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$n(obj); }
8675
+ function _typeof$m(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$m = function _typeof(obj) { return typeof obj; }; } else { _typeof$m = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$m(obj); }
8311
8676
 
8312
8677
  function _classCallCheck$j(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8313
8678
 
@@ -8321,7 +8686,7 @@ function _setPrototypeOf$l(o, p) { _setPrototypeOf$l = Object.setPrototypeOf ||
8321
8686
 
8322
8687
  function _createSuper$j(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$j(); return function _createSuperInternal() { var Super = _getPrototypeOf$j(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$j(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$j(this, result); }; }
8323
8688
 
8324
- function _possibleConstructorReturn$j(self, call) { if (call && (_typeof$n(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$l(self); }
8689
+ function _possibleConstructorReturn$j(self, call) { if (call && (_typeof$m(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$l(self); }
8325
8690
 
8326
8691
  function _assertThisInitialized$l(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8327
8692
 
@@ -8399,7 +8764,7 @@ var DateParser = /*#__PURE__*/function (_Parser) {
8399
8764
  return DateParser;
8400
8765
  }(Parser);
8401
8766
 
8402
- function _typeof$m(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$m = function _typeof(obj) { return typeof obj; }; } else { _typeof$m = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$m(obj); }
8767
+ function _typeof$l(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$l = function _typeof(obj) { return typeof obj; }; } else { _typeof$l = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$l(obj); }
8403
8768
 
8404
8769
  function _classCallCheck$i(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8405
8770
 
@@ -8413,7 +8778,7 @@ function _setPrototypeOf$k(o, p) { _setPrototypeOf$k = Object.setPrototypeOf ||
8413
8778
 
8414
8779
  function _createSuper$i(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$i(); return function _createSuperInternal() { var Super = _getPrototypeOf$i(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$i(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$i(this, result); }; }
8415
8780
 
8416
- function _possibleConstructorReturn$i(self, call) { if (call && (_typeof$m(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$k(self); }
8781
+ function _possibleConstructorReturn$i(self, call) { if (call && (_typeof$l(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$k(self); }
8417
8782
 
8418
8783
  function _assertThisInitialized$k(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8419
8784
 
@@ -8509,7 +8874,7 @@ function setUTCDay(dirtyDate, dirtyDay, options) {
8509
8874
  return date;
8510
8875
  }
8511
8876
 
8512
- function _typeof$l(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$l = function _typeof(obj) { return typeof obj; }; } else { _typeof$l = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$l(obj); }
8877
+ function _typeof$k(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$k = function _typeof(obj) { return typeof obj; }; } else { _typeof$k = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$k(obj); }
8513
8878
 
8514
8879
  function _classCallCheck$h(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8515
8880
 
@@ -8523,7 +8888,7 @@ function _setPrototypeOf$j(o, p) { _setPrototypeOf$j = Object.setPrototypeOf ||
8523
8888
 
8524
8889
  function _createSuper$h(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$h(); return function _createSuperInternal() { var Super = _getPrototypeOf$h(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$h(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$h(this, result); }; }
8525
8890
 
8526
- function _possibleConstructorReturn$h(self, call) { if (call && (_typeof$l(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$j(self); }
8891
+ function _possibleConstructorReturn$h(self, call) { if (call && (_typeof$k(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$j(self); }
8527
8892
 
8528
8893
  function _assertThisInitialized$j(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8529
8894
 
@@ -8627,7 +8992,7 @@ var DayParser = /*#__PURE__*/function (_Parser) {
8627
8992
  return DayParser;
8628
8993
  }(Parser);
8629
8994
 
8630
- function _typeof$k(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$k = function _typeof(obj) { return typeof obj; }; } else { _typeof$k = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$k(obj); }
8995
+ function _typeof$j(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$j = function _typeof(obj) { return typeof obj; }; } else { _typeof$j = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$j(obj); }
8631
8996
 
8632
8997
  function _classCallCheck$g(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8633
8998
 
@@ -8641,7 +9006,7 @@ function _setPrototypeOf$i(o, p) { _setPrototypeOf$i = Object.setPrototypeOf ||
8641
9006
 
8642
9007
  function _createSuper$g(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$g(); return function _createSuperInternal() { var Super = _getPrototypeOf$g(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$g(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$g(this, result); }; }
8643
9008
 
8644
- function _possibleConstructorReturn$g(self, call) { if (call && (_typeof$k(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$i(self); }
9009
+ function _possibleConstructorReturn$g(self, call) { if (call && (_typeof$j(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$i(self); }
8645
9010
 
8646
9011
  function _assertThisInitialized$i(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8647
9012
 
@@ -8760,7 +9125,7 @@ var LocalDayParser = /*#__PURE__*/function (_Parser) {
8760
9125
  return LocalDayParser;
8761
9126
  }(Parser);
8762
9127
 
8763
- function _typeof$j(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$j = function _typeof(obj) { return typeof obj; }; } else { _typeof$j = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$j(obj); }
9128
+ function _typeof$i(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$i = function _typeof(obj) { return typeof obj; }; } else { _typeof$i = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$i(obj); }
8764
9129
 
8765
9130
  function _classCallCheck$f(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8766
9131
 
@@ -8774,7 +9139,7 @@ function _setPrototypeOf$h(o, p) { _setPrototypeOf$h = Object.setPrototypeOf ||
8774
9139
 
8775
9140
  function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); return function _createSuperInternal() { var Super = _getPrototypeOf$f(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$f(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$f(this, result); }; }
8776
9141
 
8777
- function _possibleConstructorReturn$f(self, call) { if (call && (_typeof$j(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$h(self); }
9142
+ function _possibleConstructorReturn$f(self, call) { if (call && (_typeof$i(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$h(self); }
8778
9143
 
8779
9144
  function _assertThisInitialized$h(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8780
9145
 
@@ -8911,7 +9276,7 @@ function setUTCISODay(dirtyDate, dirtyDay) {
8911
9276
  return date;
8912
9277
  }
8913
9278
 
8914
- function _typeof$i(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$i = function _typeof(obj) { return typeof obj; }; } else { _typeof$i = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$i(obj); }
9279
+ function _typeof$h(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$h = function _typeof(obj) { return typeof obj; }; } else { _typeof$h = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$h(obj); }
8915
9280
 
8916
9281
  function _classCallCheck$e(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8917
9282
 
@@ -8925,7 +9290,7 @@ function _setPrototypeOf$g(o, p) { _setPrototypeOf$g = Object.setPrototypeOf ||
8925
9290
 
8926
9291
  function _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); return function _createSuperInternal() { var Super = _getPrototypeOf$e(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$e(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$e(this, result); }; }
8927
9292
 
8928
- function _possibleConstructorReturn$e(self, call) { if (call && (_typeof$i(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$g(self); }
9293
+ function _possibleConstructorReturn$e(self, call) { if (call && (_typeof$h(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$g(self); }
8929
9294
 
8930
9295
  function _assertThisInitialized$g(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8931
9296
 
@@ -9047,7 +9412,7 @@ var ISODayParser = /*#__PURE__*/function (_Parser) {
9047
9412
  return ISODayParser;
9048
9413
  }(Parser);
9049
9414
 
9050
- function _typeof$h(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$h = function _typeof(obj) { return typeof obj; }; } else { _typeof$h = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$h(obj); }
9415
+ function _typeof$g(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$g = function _typeof(obj) { return typeof obj; }; } else { _typeof$g = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$g(obj); }
9051
9416
 
9052
9417
  function _classCallCheck$d(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9053
9418
 
@@ -9061,7 +9426,7 @@ function _setPrototypeOf$f(o, p) { _setPrototypeOf$f = Object.setPrototypeOf ||
9061
9426
 
9062
9427
  function _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); return function _createSuperInternal() { var Super = _getPrototypeOf$d(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$d(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$d(this, result); }; }
9063
9428
 
9064
- function _possibleConstructorReturn$d(self, call) { if (call && (_typeof$h(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$f(self); }
9429
+ function _possibleConstructorReturn$d(self, call) { if (call && (_typeof$g(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$f(self); }
9065
9430
 
9066
9431
  function _assertThisInitialized$f(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9067
9432
 
@@ -9139,7 +9504,7 @@ var AMPMParser = /*#__PURE__*/function (_Parser) {
9139
9504
  return AMPMParser;
9140
9505
  }(Parser);
9141
9506
 
9142
- function _typeof$g(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$g = function _typeof(obj) { return typeof obj; }; } else { _typeof$g = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$g(obj); }
9507
+ function _typeof$f(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$f = function _typeof(obj) { return typeof obj; }; } else { _typeof$f = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$f(obj); }
9143
9508
 
9144
9509
  function _classCallCheck$c(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9145
9510
 
@@ -9153,7 +9518,7 @@ function _setPrototypeOf$e(o, p) { _setPrototypeOf$e = Object.setPrototypeOf ||
9153
9518
 
9154
9519
  function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); return function _createSuperInternal() { var Super = _getPrototypeOf$c(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$c(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$c(this, result); }; }
9155
9520
 
9156
- function _possibleConstructorReturn$c(self, call) { if (call && (_typeof$g(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$e(self); }
9521
+ function _possibleConstructorReturn$c(self, call) { if (call && (_typeof$f(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$e(self); }
9157
9522
 
9158
9523
  function _assertThisInitialized$e(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9159
9524
 
@@ -9231,7 +9596,7 @@ var AMPMMidnightParser = /*#__PURE__*/function (_Parser) {
9231
9596
  return AMPMMidnightParser;
9232
9597
  }(Parser);
9233
9598
 
9234
- function _typeof$f(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$f = function _typeof(obj) { return typeof obj; }; } else { _typeof$f = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$f(obj); }
9599
+ function _typeof$e(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$e = function _typeof(obj) { return typeof obj; }; } else { _typeof$e = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$e(obj); }
9235
9600
 
9236
9601
  function _classCallCheck$b(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9237
9602
 
@@ -9245,7 +9610,7 @@ function _setPrototypeOf$d(o, p) { _setPrototypeOf$d = Object.setPrototypeOf ||
9245
9610
 
9246
9611
  function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf$b(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$b(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$b(this, result); }; }
9247
9612
 
9248
- function _possibleConstructorReturn$b(self, call) { if (call && (_typeof$f(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$d(self); }
9613
+ function _possibleConstructorReturn$b(self, call) { if (call && (_typeof$e(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$d(self); }
9249
9614
 
9250
9615
  function _assertThisInitialized$d(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9251
9616
 
@@ -9324,7 +9689,7 @@ var DayPeriodParser = /*#__PURE__*/function (_Parser) {
9324
9689
  return DayPeriodParser;
9325
9690
  }(Parser);
9326
9691
 
9327
- function _typeof$e(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$e = function _typeof(obj) { return typeof obj; }; } else { _typeof$e = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$e(obj); }
9692
+ function _typeof$d(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$d = function _typeof(obj) { return typeof obj; }; } else { _typeof$d = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$d(obj); }
9328
9693
 
9329
9694
  function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9330
9695
 
@@ -9338,7 +9703,7 @@ function _setPrototypeOf$c(o, p) { _setPrototypeOf$c = Object.setPrototypeOf ||
9338
9703
 
9339
9704
  function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf$a(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$a(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$a(this, result); }; }
9340
9705
 
9341
- function _possibleConstructorReturn$a(self, call) { if (call && (_typeof$e(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$c(self); }
9706
+ function _possibleConstructorReturn$a(self, call) { if (call && (_typeof$d(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$c(self); }
9342
9707
 
9343
9708
  function _assertThisInitialized$c(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9344
9709
 
@@ -9411,7 +9776,7 @@ var Hour1to12Parser = /*#__PURE__*/function (_Parser) {
9411
9776
  return Hour1to12Parser;
9412
9777
  }(Parser);
9413
9778
 
9414
- function _typeof$d(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$d = function _typeof(obj) { return typeof obj; }; } else { _typeof$d = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$d(obj); }
9779
+ function _typeof$c(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$c = function _typeof(obj) { return typeof obj; }; } else { _typeof$c = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$c(obj); }
9415
9780
 
9416
9781
  function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9417
9782
 
@@ -9425,7 +9790,7 @@ function _setPrototypeOf$b(o, p) { _setPrototypeOf$b = Object.setPrototypeOf ||
9425
9790
 
9426
9791
  function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf$9(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$9(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$9(this, result); }; }
9427
9792
 
9428
- function _possibleConstructorReturn$9(self, call) { if (call && (_typeof$d(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$b(self); }
9793
+ function _possibleConstructorReturn$9(self, call) { if (call && (_typeof$c(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$b(self); }
9429
9794
 
9430
9795
  function _assertThisInitialized$b(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9431
9796
 
@@ -9489,7 +9854,7 @@ var Hour0to23Parser = /*#__PURE__*/function (_Parser) {
9489
9854
  return Hour0to23Parser;
9490
9855
  }(Parser);
9491
9856
 
9492
- function _typeof$c(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$c = function _typeof(obj) { return typeof obj; }; } else { _typeof$c = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$c(obj); }
9857
+ function _typeof$b(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$b = function _typeof(obj) { return typeof obj; }; } else { _typeof$b = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$b(obj); }
9493
9858
 
9494
9859
  function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9495
9860
 
@@ -9503,7 +9868,7 @@ function _setPrototypeOf$a(o, p) { _setPrototypeOf$a = Object.setPrototypeOf ||
9503
9868
 
9504
9869
  function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf$8(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$8(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$8(this, result); }; }
9505
9870
 
9506
- function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$c(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$a(self); }
9871
+ function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$b(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$a(self); }
9507
9872
 
9508
9873
  function _assertThisInitialized$a(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9509
9874
 
@@ -9574,7 +9939,7 @@ var Hour0To11Parser = /*#__PURE__*/function (_Parser) {
9574
9939
  return Hour0To11Parser;
9575
9940
  }(Parser);
9576
9941
 
9577
- function _typeof$b(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$b = function _typeof(obj) { return typeof obj; }; } else { _typeof$b = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$b(obj); }
9942
+ function _typeof$a(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$a = function _typeof(obj) { return typeof obj; }; } else { _typeof$a = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$a(obj); }
9578
9943
 
9579
9944
  function _classCallCheck$7(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9580
9945
 
@@ -9588,7 +9953,7 @@ function _setPrototypeOf$9(o, p) { _setPrototypeOf$9 = Object.setPrototypeOf ||
9588
9953
 
9589
9954
  function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf$7(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$7(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$7(this, result); }; }
9590
9955
 
9591
- function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$b(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$9(self); }
9956
+ function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$a(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$9(self); }
9592
9957
 
9593
9958
  function _assertThisInitialized$9(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9594
9959
 
@@ -9653,7 +10018,7 @@ var Hour1To24Parser = /*#__PURE__*/function (_Parser) {
9653
10018
  return Hour1To24Parser;
9654
10019
  }(Parser);
9655
10020
 
9656
- function _typeof$a(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$a = function _typeof(obj) { return typeof obj; }; } else { _typeof$a = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$a(obj); }
10021
+ function _typeof$9(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$9 = function _typeof(obj) { return typeof obj; }; } else { _typeof$9 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$9(obj); }
9657
10022
 
9658
10023
  function _classCallCheck$6(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9659
10024
 
@@ -9667,7 +10032,7 @@ function _setPrototypeOf$8(o, p) { _setPrototypeOf$8 = Object.setPrototypeOf ||
9667
10032
 
9668
10033
  function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf$6(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$6(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$6(this, result); }; }
9669
10034
 
9670
- function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$a(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$8(self); }
10035
+ function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$9(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$8(self); }
9671
10036
 
9672
10037
  function _assertThisInitialized$8(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9673
10038
 
@@ -9731,7 +10096,7 @@ var MinuteParser = /*#__PURE__*/function (_Parser) {
9731
10096
  return MinuteParser;
9732
10097
  }(Parser);
9733
10098
 
9734
- function _typeof$9(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$9 = function _typeof(obj) { return typeof obj; }; } else { _typeof$9 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$9(obj); }
10099
+ function _typeof$8(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$8 = function _typeof(obj) { return typeof obj; }; } else { _typeof$8 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$8(obj); }
9735
10100
 
9736
10101
  function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9737
10102
 
@@ -9745,7 +10110,7 @@ function _setPrototypeOf$7(o, p) { _setPrototypeOf$7 = Object.setPrototypeOf ||
9745
10110
 
9746
10111
  function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf$5(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$5(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$5(this, result); }; }
9747
10112
 
9748
- function _possibleConstructorReturn$5(self, call) { if (call && (_typeof$9(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$7(self); }
10113
+ function _possibleConstructorReturn$5(self, call) { if (call && (_typeof$8(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$7(self); }
9749
10114
 
9750
10115
  function _assertThisInitialized$7(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9751
10116
 
@@ -9809,7 +10174,7 @@ var SecondParser = /*#__PURE__*/function (_Parser) {
9809
10174
  return SecondParser;
9810
10175
  }(Parser);
9811
10176
 
9812
- function _typeof$8(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$8 = function _typeof(obj) { return typeof obj; }; } else { _typeof$8 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$8(obj); }
10177
+ function _typeof$7(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$7 = function _typeof(obj) { return typeof obj; }; } else { _typeof$7 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$7(obj); }
9813
10178
 
9814
10179
  function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9815
10180
 
@@ -9823,7 +10188,7 @@ function _setPrototypeOf$6(o, p) { _setPrototypeOf$6 = Object.setPrototypeOf ||
9823
10188
 
9824
10189
  function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf$4(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$4(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$4(this, result); }; }
9825
10190
 
9826
- function _possibleConstructorReturn$4(self, call) { if (call && (_typeof$8(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$6(self); }
10191
+ function _possibleConstructorReturn$4(self, call) { if (call && (_typeof$7(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$6(self); }
9827
10192
 
9828
10193
  function _assertThisInitialized$6(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9829
10194
 
@@ -9875,7 +10240,7 @@ var FractionOfSecondParser = /*#__PURE__*/function (_Parser) {
9875
10240
  return FractionOfSecondParser;
9876
10241
  }(Parser);
9877
10242
 
9878
- function _typeof$7(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$7 = function _typeof(obj) { return typeof obj; }; } else { _typeof$7 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$7(obj); }
10243
+ function _typeof$6(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$6 = function _typeof(obj) { return typeof obj; }; } else { _typeof$6 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$6(obj); }
9879
10244
 
9880
10245
  function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9881
10246
 
@@ -9889,7 +10254,7 @@ function _setPrototypeOf$5(o, p) { _setPrototypeOf$5 = Object.setPrototypeOf ||
9889
10254
 
9890
10255
  function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf$3(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$3(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$3(this, result); }; }
9891
10256
 
9892
- function _possibleConstructorReturn$3(self, call) { if (call && (_typeof$7(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$5(self); }
10257
+ function _possibleConstructorReturn$3(self, call) { if (call && (_typeof$6(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$5(self); }
9893
10258
 
9894
10259
  function _assertThisInitialized$5(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9895
10260
 
@@ -9957,7 +10322,7 @@ var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) {
9957
10322
  return ISOTimezoneWithZParser;
9958
10323
  }(Parser);
9959
10324
 
9960
- function _typeof$6(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$6 = function _typeof(obj) { return typeof obj; }; } else { _typeof$6 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$6(obj); }
10325
+ function _typeof$5(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$5 = function _typeof(obj) { return typeof obj; }; } else { _typeof$5 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$5(obj); }
9961
10326
 
9962
10327
  function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9963
10328
 
@@ -9971,7 +10336,7 @@ function _setPrototypeOf$4(o, p) { _setPrototypeOf$4 = Object.setPrototypeOf ||
9971
10336
 
9972
10337
  function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
9973
10338
 
9974
- function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$6(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$4(self); }
10339
+ function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$5(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$4(self); }
9975
10340
 
9976
10341
  function _assertThisInitialized$4(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9977
10342
 
@@ -10039,7 +10404,7 @@ var ISOTimezoneParser = /*#__PURE__*/function (_Parser) {
10039
10404
  return ISOTimezoneParser;
10040
10405
  }(Parser);
10041
10406
 
10042
- function _typeof$5(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$5 = function _typeof(obj) { return typeof obj; }; } else { _typeof$5 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$5(obj); }
10407
+ function _typeof$4(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$4 = function _typeof(obj) { return typeof obj; }; } else { _typeof$4 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$4(obj); }
10043
10408
 
10044
10409
  function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10045
10410
 
@@ -10053,7 +10418,7 @@ function _setPrototypeOf$3(o, p) { _setPrototypeOf$3 = Object.setPrototypeOf ||
10053
10418
 
10054
10419
  function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
10055
10420
 
10056
- function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$5(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$3(self); }
10421
+ function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$4(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$3(self); }
10057
10422
 
10058
10423
  function _assertThisInitialized$3(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10059
10424
 
@@ -10102,7 +10467,7 @@ var TimestampSecondsParser = /*#__PURE__*/function (_Parser) {
10102
10467
  return TimestampSecondsParser;
10103
10468
  }(Parser);
10104
10469
 
10105
- function _typeof$4(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$4 = function _typeof(obj) { return typeof obj; }; } else { _typeof$4 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$4(obj); }
10470
+ function _typeof$3(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$3 = function _typeof(obj) { return typeof obj; }; } else { _typeof$3 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$3(obj); }
10106
10471
 
10107
10472
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10108
10473
 
@@ -10116,7 +10481,7 @@ function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf ||
10116
10481
 
10117
10482
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10118
10483
 
10119
- function _possibleConstructorReturn(self, call) { if (call && (_typeof$4(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$2(self); }
10484
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof$3(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$2(self); }
10120
10485
 
10121
10486
  function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10122
10487
 
@@ -10243,7 +10608,7 @@ var parsers = {
10243
10608
  T: new TimestampMillisecondsParser()
10244
10609
  };
10245
10610
 
10246
- function _typeof$3(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$3 = function _typeof(obj) { return typeof obj; }; } else { _typeof$3 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$3(obj); }
10611
+ function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$2(obj); }
10247
10612
 
10248
10613
  function _createForOfIteratorHelper$1(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
10249
10614
 
@@ -10696,7 +11061,7 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
10696
11061
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
10697
11062
  var _ret = _loop();
10698
11063
 
10699
- if (_typeof$3(_ret) === "object") return _ret.v;
11064
+ if (_typeof$2(_ret) === "object") return _ret.v;
10700
11065
  } // Check if the remaining input contains something other than whitespace
10701
11066
 
10702
11067
  } catch (err) {
@@ -13865,7 +14230,7 @@ var esm = /*#__PURE__*/Object.freeze({
13865
14230
 
13866
14231
  var require$$64 = /*@__PURE__*/getAugmentedNamespace(esm);
13867
14232
 
13868
- function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$2(obj); }
14233
+ function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
13869
14234
 
13870
14235
  /**
13871
14236
  * @name set
@@ -13908,7 +14273,7 @@ function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "func
13908
14273
  function set(dirtyDate, values) {
13909
14274
  requiredArgs(2, arguments);
13910
14275
 
13911
- if (_typeof$2(values) !== 'object' || values === null) {
14276
+ if (_typeof$1(values) !== 'object' || values === null) {
13912
14277
  throw new RangeError('values parameter must be an object');
13913
14278
  }
13914
14279
 
@@ -14038,7 +14403,7 @@ var ReactDatePicker = function ReactDatePicker(_ref) {
14038
14403
  onChanged === null || onChanged === void 0 ? void 0 : onChanged(date);
14039
14404
  }, [onChanged]);
14040
14405
  return /*#__PURE__*/React__default.createElement("div", {
14041
- className: classnames$2(style$6.ReactDatePicker, 'EDSPicker') + " ".concat(className !== null && className !== void 0 ? className : '')
14406
+ className: classnames$1(style$6.ReactDatePicker, 'EDSPicker') + " ".concat(className !== null && className !== void 0 ? className : '')
14042
14407
  }, /*#__PURE__*/React__default.createElement("label", {
14043
14408
  className: style$6.dateLabel,
14044
14409
  htmlFor: id,
@@ -14140,8 +14505,8 @@ var DialogGenerator = function DialogGenerator(_ref) {
14140
14505
  })));
14141
14506
  };
14142
14507
 
14143
- function _extends$e() {
14144
- _extends$e = Object.assign ? Object.assign.bind() : function (target) {
14508
+ function _extends$2() {
14509
+ _extends$2 = Object.assign ? Object.assign.bind() : function (target) {
14145
14510
  for (var i = 1; i < arguments.length; i++) {
14146
14511
  var source = arguments[i];
14147
14512
  for (var key in source) {
@@ -14152,7 +14517,7 @@ function _extends$e() {
14152
14517
  }
14153
14518
  return target;
14154
14519
  };
14155
- return _extends$e.apply(this, arguments);
14520
+ return _extends$2.apply(this, arguments);
14156
14521
  }
14157
14522
 
14158
14523
  function _assertThisInitialized(self) {
@@ -14696,7 +15061,7 @@ function createListComponent(_ref) {
14696
15061
  className: className,
14697
15062
  onScroll: onScroll,
14698
15063
  ref: this._outerRefSetter,
14699
- style: _extends$e({
15064
+ style: _extends$2({
14700
15065
  position: 'relative',
14701
15066
  height: height,
14702
15067
  width: width,
@@ -15354,22 +15719,12 @@ var LinkSection = function LinkSection(_ref) {
15354
15719
  }, children, linkActionSection);
15355
15720
  };
15356
15721
 
15357
- function _typeof$1(obj) {
15358
- "@babel/helpers - typeof";
15359
-
15360
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15361
- return typeof obj;
15362
- } : function (obj) {
15363
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15364
- }, _typeof$1(obj);
15365
- }
15366
-
15367
15722
  function _toPrimitive(input, hint) {
15368
- if (_typeof$1(input) !== "object" || input === null) return input;
15723
+ if (_typeof$E(input) !== "object" || input === null) return input;
15369
15724
  var prim = input[Symbol.toPrimitive];
15370
15725
  if (prim !== undefined) {
15371
15726
  var res = prim.call(input, hint || "default");
15372
- if (_typeof$1(res) !== "object") return res;
15727
+ if (_typeof$E(res) !== "object") return res;
15373
15728
  throw new TypeError("@@toPrimitive must return a primitive value.");
15374
15729
  }
15375
15730
  return (hint === "string" ? String : Number)(input);
@@ -15377,7 +15732,7 @@ function _toPrimitive(input, hint) {
15377
15732
 
15378
15733
  function _toPropertyKey(arg) {
15379
15734
  var key = _toPrimitive(arg, "string");
15380
- return _typeof$1(key) === "symbol" ? key : String(key);
15735
+ return _typeof$E(key) === "symbol" ? key : String(key);
15381
15736
  }
15382
15737
 
15383
15738
  function _defineProperty$1(obj, key, value) {
@@ -15423,7 +15778,7 @@ var Title = function Title(_ref) {
15423
15778
  }));
15424
15779
  }
15425
15780
  });
15426
- var titleClassNames = classnames$2(style$4.titleSection, _defineProperty$1({}, style$4.titlePadding, headerIcons && headerIcons.length > 0));
15781
+ var titleClassNames = classnames$1(style$4.titleSection, _defineProperty$1({}, style$4.titlePadding, headerIcons && headerIcons.length > 0));
15427
15782
  return /*#__PURE__*/React__default.createElement("div", {
15428
15783
  className: "".concat(titleClassNames, " ").concat(className)
15429
15784
  }, /*#__PURE__*/React__default.createElement("span", {
@@ -16597,8 +16952,8 @@ const useHover = function (context, _temp) {
16597
16952
  }, [events, enabled, restMs, open, onOpenChange, closeWithDelay]);
16598
16953
  };
16599
16954
 
16600
- function _extends$d() {
16601
- _extends$d = Object.assign || function (target) {
16955
+ function _extends$1() {
16956
+ _extends$1 = Object.assign || function (target) {
16602
16957
  for (var i = 1; i < arguments.length; i++) {
16603
16958
  var source = arguments[i];
16604
16959
  for (var key in source) {
@@ -16609,7 +16964,7 @@ function _extends$d() {
16609
16964
  }
16610
16965
  return target;
16611
16966
  };
16612
- return _extends$d.apply(this, arguments);
16967
+ return _extends$1.apply(this, arguments);
16613
16968
  }
16614
16969
 
16615
16970
  /**
@@ -16794,7 +17149,7 @@ const FocusGuard = /*#__PURE__*/React.forwardRef(function FocusGuard(props, ref)
16794
17149
  document.removeEventListener('keydown', setActiveElementOnTab);
16795
17150
  };
16796
17151
  }, []);
16797
- return /*#__PURE__*/React.createElement("span", _extends$d({}, props, {
17152
+ return /*#__PURE__*/React.createElement("span", _extends$1({}, props, {
16798
17153
  ref: ref,
16799
17154
  tabIndex: 0
16800
17155
  // Role is only for VoiceOver
@@ -16889,1144 +17244,791 @@ const FloatingPortal = _ref => {
16889
17244
  // Make sure elements inside the portal element are tabbable only when the
16890
17245
  // portal has already been focused, either by tabbing into a focus trap
16891
17246
  // element outside or using the mouse.
16892
- function onFocus(event) {
16893
- if (portalNode && isOutsideEvent(event)) {
16894
- const focusing = event.type === 'focusin';
16895
- const manageFocus = focusing ? enableFocusInside : disableFocusInside;
16896
- manageFocus(portalNode);
16897
- }
16898
- }
16899
- // Listen to the event on the capture phase so they run before the focus
16900
- // trap elements onFocus prop is called.
16901
- portalNode.addEventListener('focusin', onFocus, true);
16902
- portalNode.addEventListener('focusout', onFocus, true);
16903
- return () => {
16904
- portalNode.removeEventListener('focusin', onFocus, true);
16905
- portalNode.removeEventListener('focusout', onFocus, true);
16906
- };
16907
- }, [portalNode, preserveTabOrder, focusManagerState == null ? void 0 : focusManagerState.modal]);
16908
- return /*#__PURE__*/React.createElement(PortalContext.Provider, {
16909
- value: React.useMemo(() => ({
16910
- preserveTabOrder,
16911
- beforeOutsideRef,
16912
- afterOutsideRef,
16913
- beforeInsideRef,
16914
- afterInsideRef,
16915
- portalNode,
16916
- setFocusManagerState
16917
- }), [preserveTabOrder, portalNode])
16918
- }, shouldRenderGuards && portalNode && /*#__PURE__*/React.createElement(FocusGuard, {
16919
- "data-type": "outside",
16920
- ref: beforeOutsideRef,
16921
- onFocus: event => {
16922
- if (isOutsideEvent(event, portalNode)) {
16923
- var _beforeInsideRef$curr;
16924
- (_beforeInsideRef$curr = beforeInsideRef.current) == null ? void 0 : _beforeInsideRef$curr.focus();
16925
- } else {
16926
- const prevTabbable = getPreviousTabbable() || (focusManagerState == null ? void 0 : focusManagerState.refs.domReference.current);
16927
- prevTabbable == null ? void 0 : prevTabbable.focus();
16928
- }
16929
- }
16930
- }), shouldRenderGuards && portalNode && /*#__PURE__*/React.createElement("span", {
16931
- "aria-owns": portalNode.id,
16932
- style: HIDDEN_STYLES
16933
- }), root ? /*#__PURE__*/createPortal(children, root) : portalNode ? /*#__PURE__*/createPortal(children, portalNode) : null, shouldRenderGuards && portalNode && /*#__PURE__*/React.createElement(FocusGuard, {
16934
- "data-type": "outside",
16935
- ref: afterOutsideRef,
16936
- onFocus: event => {
16937
- if (isOutsideEvent(event, portalNode)) {
16938
- var _afterInsideRef$curre;
16939
- (_afterInsideRef$curre = afterInsideRef.current) == null ? void 0 : _afterInsideRef$curre.focus();
16940
- } else {
16941
- const nextTabbable = getNextTabbable() || (focusManagerState == null ? void 0 : focusManagerState.refs.domReference.current);
16942
- nextTabbable == null ? void 0 : nextTabbable.focus();
16943
- (focusManagerState == null ? void 0 : focusManagerState.closeOnFocusOut) && (focusManagerState == null ? void 0 : focusManagerState.onOpenChange(false));
16944
- }
16945
- }
16946
- }));
16947
- };
16948
- const usePortalContext = () => React.useContext(PortalContext);
16949
-
16950
- /**
16951
- * Check whether the event.target is within the provided node. Uses event.composedPath if available for custom element support.
16952
- *
16953
- * @param event The event whose target/composedPath to check
16954
- * @param node The node to check against
16955
- * @returns Whether the event.target/composedPath is within the node.
16956
- */
16957
- function isEventTargetWithin(event, node) {
16958
- if (node == null) {
16959
- return false;
16960
- }
16961
- if ('composedPath' in event) {
16962
- return event.composedPath().includes(node);
16963
- }
16964
-
16965
- // TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't
16966
- const e = event;
16967
- return e.target != null && node.contains(e.target);
16968
- }
16969
-
16970
- const bubbleHandlerKeys = {
16971
- pointerdown: 'onPointerDown',
16972
- mousedown: 'onMouseDown',
16973
- click: 'onClick'
16974
- };
16975
- const captureHandlerKeys = {
16976
- pointerdown: 'onPointerDownCapture',
16977
- mousedown: 'onMouseDownCapture',
16978
- click: 'onClickCapture'
16979
- };
16980
- const normalizeBubblesProp = function (bubbles) {
16981
- var _bubbles$escapeKey, _bubbles$outsidePress;
16982
- if (bubbles === void 0) {
16983
- bubbles = true;
16984
- }
16985
- return {
16986
- escapeKeyBubbles: typeof bubbles === 'boolean' ? bubbles : (_bubbles$escapeKey = bubbles.escapeKey) != null ? _bubbles$escapeKey : true,
16987
- outsidePressBubbles: typeof bubbles === 'boolean' ? bubbles : (_bubbles$outsidePress = bubbles.outsidePress) != null ? _bubbles$outsidePress : true
16988
- };
16989
- };
16990
- /**
16991
- * Closes the floating element when a dismissal is requested — by default, when
16992
- * the user presses the `escape` key or outside of the floating element.
16993
- * @see https://floating-ui.com/docs/useDismiss
16994
- */
16995
- const useDismiss = function (_ref, _temp) {
16996
- let {
16997
- open,
16998
- onOpenChange,
16999
- events,
17000
- nodeId,
17001
- elements: {
17002
- reference,
17003
- domReference,
17004
- floating
17005
- },
17006
- dataRef
17007
- } = _ref;
17008
- let {
17009
- enabled = true,
17010
- escapeKey = true,
17011
- outsidePress: unstable_outsidePress = true,
17012
- outsidePressEvent = 'pointerdown',
17013
- referencePress = false,
17014
- referencePressEvent = 'pointerdown',
17015
- ancestorScroll = false,
17016
- bubbles = true
17017
- } = _temp === void 0 ? {} : _temp;
17018
- const tree = useFloatingTree();
17019
- const nested = useFloatingParentNodeId() != null;
17020
- const outsidePressFn = useEvent(typeof unstable_outsidePress === 'function' ? unstable_outsidePress : () => false);
17021
- const outsidePress = typeof unstable_outsidePress === 'function' ? outsidePressFn : unstable_outsidePress;
17022
- const insideReactTreeRef = React.useRef(false);
17023
- const {
17024
- escapeKeyBubbles,
17025
- outsidePressBubbles
17026
- } = normalizeBubblesProp(bubbles);
17027
- React.useEffect(() => {
17028
- if (!open || !enabled) {
17029
- return;
17030
- }
17031
- dataRef.current.__escapeKeyBubbles = escapeKeyBubbles;
17032
- dataRef.current.__outsidePressBubbles = outsidePressBubbles;
17033
- function onKeyDown(event) {
17034
- if (event.key === 'Escape') {
17035
- const children = tree ? getChildren(tree.nodesRef.current, nodeId) : [];
17036
- if (children.length > 0) {
17037
- let shouldDismiss = true;
17038
- children.forEach(child => {
17039
- var _child$context;
17040
- if ((_child$context = child.context) != null && _child$context.open && !child.context.dataRef.current.__escapeKeyBubbles) {
17041
- shouldDismiss = false;
17042
- return;
17043
- }
17044
- });
17045
- if (!shouldDismiss) {
17046
- return;
17047
- }
17048
- }
17049
- events.emit('dismiss', {
17050
- type: 'escapeKey',
17051
- data: {
17052
- returnFocus: {
17053
- preventScroll: false
17054
- }
17055
- }
17056
- });
17057
- onOpenChange(false);
17058
- }
17059
- }
17060
- function onOutsidePress(event) {
17061
- // Given developers can stop the propagation of the synthetic event,
17062
- // we can only be confident with a positive value.
17063
- const insideReactTree = insideReactTreeRef.current;
17064
- insideReactTreeRef.current = false;
17065
- if (insideReactTree) {
17066
- return;
17067
- }
17068
- if (typeof outsidePress === 'function' && !outsidePress(event)) {
17069
- return;
17070
- }
17071
- const target = getTarget(event);
17072
-
17073
- // Check if the click occurred on the scrollbar
17074
- if (isHTMLElement(target) && floating) {
17075
- const win = floating.ownerDocument.defaultView || window;
17076
- const canScrollX = target.scrollWidth > target.clientWidth;
17077
- const canScrollY = target.scrollHeight > target.clientHeight;
17078
- let xCond = canScrollY && event.offsetX > target.clientWidth;
17079
-
17080
- // In some browsers it is possible to change the <body> (or window)
17081
- // scrollbar to the left side, but is very rare and is difficult to
17082
- // check for. Plus, for modal dialogs with backdrops, it is more
17083
- // important that the backdrop is checked but not so much the window.
17084
- if (canScrollY) {
17085
- const isRTL = win.getComputedStyle(target).direction === 'rtl';
17086
- if (isRTL) {
17087
- xCond = event.offsetX <= target.offsetWidth - target.clientWidth;
17088
- }
17089
- }
17090
- if (xCond || canScrollX && event.offsetY > target.clientHeight) {
17091
- return;
17092
- }
17093
- }
17094
- const targetIsInsideChildren = tree && getChildren(tree.nodesRef.current, nodeId).some(node => {
17095
- var _node$context;
17096
- return isEventTargetWithin(event, (_node$context = node.context) == null ? void 0 : _node$context.elements.floating);
17097
- });
17098
- if (isEventTargetWithin(event, floating) || isEventTargetWithin(event, domReference) || targetIsInsideChildren) {
17099
- return;
17100
- }
17101
- const children = tree ? getChildren(tree.nodesRef.current, nodeId) : [];
17102
- if (children.length > 0) {
17103
- let shouldDismiss = true;
17104
- children.forEach(child => {
17105
- var _child$context2;
17106
- if ((_child$context2 = child.context) != null && _child$context2.open && !child.context.dataRef.current.__outsidePressBubbles) {
17107
- shouldDismiss = false;
17108
- return;
17109
- }
17110
- });
17111
- if (!shouldDismiss) {
17112
- return;
17113
- }
17114
- }
17115
- events.emit('dismiss', {
17116
- type: 'outsidePress',
17117
- data: {
17118
- returnFocus: nested ? {
17119
- preventScroll: true
17120
- } : isVirtualClick(event) || isVirtualPointerEvent(event)
17121
- }
17122
- });
17123
- onOpenChange(false);
17124
- }
17125
- function onScroll() {
17126
- onOpenChange(false);
17127
- }
17128
- const doc = getDocument(floating);
17129
- escapeKey && doc.addEventListener('keydown', onKeyDown);
17130
- outsidePress && doc.addEventListener(outsidePressEvent, onOutsidePress);
17131
- let ancestors = [];
17132
- if (ancestorScroll) {
17133
- if (isElement(domReference)) {
17134
- ancestors = D(domReference);
17135
- }
17136
- if (isElement(floating)) {
17137
- ancestors = ancestors.concat(D(floating));
17138
- }
17139
- if (!isElement(reference) && reference && reference.contextElement) {
17140
- ancestors = ancestors.concat(D(reference.contextElement));
17247
+ function onFocus(event) {
17248
+ if (portalNode && isOutsideEvent(event)) {
17249
+ const focusing = event.type === 'focusin';
17250
+ const manageFocus = focusing ? enableFocusInside : disableFocusInside;
17251
+ manageFocus(portalNode);
17141
17252
  }
17142
17253
  }
17143
-
17144
- // Ignore the visual viewport for scrolling dismissal (allow pinch-zoom)
17145
- ancestors = ancestors.filter(ancestor => {
17146
- var _doc$defaultView;
17147
- return ancestor !== ((_doc$defaultView = doc.defaultView) == null ? void 0 : _doc$defaultView.visualViewport);
17148
- });
17149
- ancestors.forEach(ancestor => {
17150
- ancestor.addEventListener('scroll', onScroll, {
17151
- passive: true
17152
- });
17153
- });
17254
+ // Listen to the event on the capture phase so they run before the focus
17255
+ // trap elements onFocus prop is called.
17256
+ portalNode.addEventListener('focusin', onFocus, true);
17257
+ portalNode.addEventListener('focusout', onFocus, true);
17154
17258
  return () => {
17155
- escapeKey && doc.removeEventListener('keydown', onKeyDown);
17156
- outsidePress && doc.removeEventListener(outsidePressEvent, onOutsidePress);
17157
- ancestors.forEach(ancestor => {
17158
- ancestor.removeEventListener('scroll', onScroll);
17159
- });
17259
+ portalNode.removeEventListener('focusin', onFocus, true);
17260
+ portalNode.removeEventListener('focusout', onFocus, true);
17160
17261
  };
17161
- }, [dataRef, floating, domReference, reference, escapeKey, outsidePress, outsidePressEvent, events, tree, nodeId, open, onOpenChange, ancestorScroll, enabled, escapeKeyBubbles, outsidePressBubbles, nested]);
17162
- React.useEffect(() => {
17163
- insideReactTreeRef.current = false;
17164
- }, [outsidePress, outsidePressEvent]);
17165
- return React.useMemo(() => {
17166
- if (!enabled) {
17167
- return {};
17262
+ }, [portalNode, preserveTabOrder, focusManagerState == null ? void 0 : focusManagerState.modal]);
17263
+ return /*#__PURE__*/React.createElement(PortalContext.Provider, {
17264
+ value: React.useMemo(() => ({
17265
+ preserveTabOrder,
17266
+ beforeOutsideRef,
17267
+ afterOutsideRef,
17268
+ beforeInsideRef,
17269
+ afterInsideRef,
17270
+ portalNode,
17271
+ setFocusManagerState
17272
+ }), [preserveTabOrder, portalNode])
17273
+ }, shouldRenderGuards && portalNode && /*#__PURE__*/React.createElement(FocusGuard, {
17274
+ "data-type": "outside",
17275
+ ref: beforeOutsideRef,
17276
+ onFocus: event => {
17277
+ if (isOutsideEvent(event, portalNode)) {
17278
+ var _beforeInsideRef$curr;
17279
+ (_beforeInsideRef$curr = beforeInsideRef.current) == null ? void 0 : _beforeInsideRef$curr.focus();
17280
+ } else {
17281
+ const prevTabbable = getPreviousTabbable() || (focusManagerState == null ? void 0 : focusManagerState.refs.domReference.current);
17282
+ prevTabbable == null ? void 0 : prevTabbable.focus();
17283
+ }
17168
17284
  }
17169
- return {
17170
- reference: {
17171
- [bubbleHandlerKeys[referencePressEvent]]: () => {
17172
- if (referencePress) {
17173
- events.emit('dismiss', {
17174
- type: 'referencePress',
17175
- data: {
17176
- returnFocus: false
17177
- }
17178
- });
17179
- onOpenChange(false);
17180
- }
17181
- }
17182
- },
17183
- floating: {
17184
- [captureHandlerKeys[outsidePressEvent]]: () => {
17185
- insideReactTreeRef.current = true;
17186
- }
17285
+ }), shouldRenderGuards && portalNode && /*#__PURE__*/React.createElement("span", {
17286
+ "aria-owns": portalNode.id,
17287
+ style: HIDDEN_STYLES
17288
+ }), root ? /*#__PURE__*/createPortal(children, root) : portalNode ? /*#__PURE__*/createPortal(children, portalNode) : null, shouldRenderGuards && portalNode && /*#__PURE__*/React.createElement(FocusGuard, {
17289
+ "data-type": "outside",
17290
+ ref: afterOutsideRef,
17291
+ onFocus: event => {
17292
+ if (isOutsideEvent(event, portalNode)) {
17293
+ var _afterInsideRef$curre;
17294
+ (_afterInsideRef$curre = afterInsideRef.current) == null ? void 0 : _afterInsideRef$curre.focus();
17295
+ } else {
17296
+ const nextTabbable = getNextTabbable() || (focusManagerState == null ? void 0 : focusManagerState.refs.domReference.current);
17297
+ nextTabbable == null ? void 0 : nextTabbable.focus();
17298
+ (focusManagerState == null ? void 0 : focusManagerState.closeOnFocusOut) && (focusManagerState == null ? void 0 : focusManagerState.onOpenChange(false));
17187
17299
  }
17188
- };
17189
- }, [enabled, events, referencePress, outsidePressEvent, referencePressEvent, onOpenChange]);
17300
+ }
17301
+ }));
17190
17302
  };
17303
+ const usePortalContext = () => React.useContext(PortalContext);
17191
17304
 
17192
17305
  /**
17193
- * Opens the floating element while the reference element has focus, like CSS
17194
- * `:focus`.
17195
- * @see https://floating-ui.com/docs/useFocus
17306
+ * Check whether the event.target is within the provided node. Uses event.composedPath if available for custom element support.
17307
+ *
17308
+ * @param event The event whose target/composedPath to check
17309
+ * @param node The node to check against
17310
+ * @returns Whether the event.target/composedPath is within the node.
17196
17311
  */
17197
- const useFocus = function (_ref, _temp) {
17312
+ function isEventTargetWithin(event, node) {
17313
+ if (node == null) {
17314
+ return false;
17315
+ }
17316
+ if ('composedPath' in event) {
17317
+ return event.composedPath().includes(node);
17318
+ }
17319
+
17320
+ // TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't
17321
+ const e = event;
17322
+ return e.target != null && node.contains(e.target);
17323
+ }
17324
+
17325
+ const bubbleHandlerKeys = {
17326
+ pointerdown: 'onPointerDown',
17327
+ mousedown: 'onMouseDown',
17328
+ click: 'onClick'
17329
+ };
17330
+ const captureHandlerKeys = {
17331
+ pointerdown: 'onPointerDownCapture',
17332
+ mousedown: 'onMouseDownCapture',
17333
+ click: 'onClickCapture'
17334
+ };
17335
+ const normalizeBubblesProp = function (bubbles) {
17336
+ var _bubbles$escapeKey, _bubbles$outsidePress;
17337
+ if (bubbles === void 0) {
17338
+ bubbles = true;
17339
+ }
17340
+ return {
17341
+ escapeKeyBubbles: typeof bubbles === 'boolean' ? bubbles : (_bubbles$escapeKey = bubbles.escapeKey) != null ? _bubbles$escapeKey : true,
17342
+ outsidePressBubbles: typeof bubbles === 'boolean' ? bubbles : (_bubbles$outsidePress = bubbles.outsidePress) != null ? _bubbles$outsidePress : true
17343
+ };
17344
+ };
17345
+ /**
17346
+ * Closes the floating element when a dismissal is requested — by default, when
17347
+ * the user presses the `escape` key or outside of the floating element.
17348
+ * @see https://floating-ui.com/docs/useDismiss
17349
+ */
17350
+ const useDismiss = function (_ref, _temp) {
17198
17351
  let {
17199
17352
  open,
17200
17353
  onOpenChange,
17201
- dataRef,
17202
17354
  events,
17203
- refs,
17355
+ nodeId,
17204
17356
  elements: {
17205
- floating,
17206
- domReference
17207
- }
17357
+ reference,
17358
+ domReference,
17359
+ floating
17360
+ },
17361
+ dataRef
17208
17362
  } = _ref;
17209
17363
  let {
17210
17364
  enabled = true,
17211
- keyboardOnly = true
17365
+ escapeKey = true,
17366
+ outsidePress: unstable_outsidePress = true,
17367
+ outsidePressEvent = 'pointerdown',
17368
+ referencePress = false,
17369
+ referencePressEvent = 'pointerdown',
17370
+ ancestorScroll = false,
17371
+ bubbles = true
17212
17372
  } = _temp === void 0 ? {} : _temp;
17213
- const pointerTypeRef = React.useRef('');
17214
- const blockFocusRef = React.useRef(false);
17215
- const timeoutRef = React.useRef();
17216
- React.useEffect(() => {
17217
- if (!enabled) {
17218
- return;
17219
- }
17220
- const doc = getDocument(floating);
17221
- const win = doc.defaultView || window;
17222
-
17223
- // If the reference was focused and the user left the tab/window, and the
17224
- // floating element was not open, the focus should be blocked when they
17225
- // return to the tab/window.
17226
- function onBlur() {
17227
- if (!open && isHTMLElement(domReference) && domReference === activeElement$1(getDocument(domReference))) {
17228
- blockFocusRef.current = true;
17229
- }
17230
- }
17231
- win.addEventListener('blur', onBlur);
17232
- return () => {
17233
- win.removeEventListener('blur', onBlur);
17234
- };
17235
- }, [floating, domReference, open, enabled]);
17373
+ const tree = useFloatingTree();
17374
+ const nested = useFloatingParentNodeId() != null;
17375
+ const outsidePressFn = useEvent(typeof unstable_outsidePress === 'function' ? unstable_outsidePress : () => false);
17376
+ const outsidePress = typeof unstable_outsidePress === 'function' ? outsidePressFn : unstable_outsidePress;
17377
+ const insideReactTreeRef = React.useRef(false);
17378
+ const {
17379
+ escapeKeyBubbles,
17380
+ outsidePressBubbles
17381
+ } = normalizeBubblesProp(bubbles);
17236
17382
  React.useEffect(() => {
17237
- if (!enabled) {
17383
+ if (!open || !enabled) {
17238
17384
  return;
17239
17385
  }
17240
- function onDismiss(payload) {
17241
- if (payload.type === 'referencePress' || payload.type === 'escapeKey') {
17242
- blockFocusRef.current = true;
17243
- }
17244
- }
17245
- events.on('dismiss', onDismiss);
17246
- return () => {
17247
- events.off('dismiss', onDismiss);
17248
- };
17249
- }, [events, enabled]);
17250
- React.useEffect(() => {
17251
- return () => {
17252
- clearTimeout(timeoutRef.current);
17253
- };
17254
- }, []);
17255
- return React.useMemo(() => {
17256
- if (!enabled) {
17257
- return {};
17258
- }
17259
- return {
17260
- reference: {
17261
- onPointerDown(_ref2) {
17262
- let {
17263
- pointerType
17264
- } = _ref2;
17265
- pointerTypeRef.current = pointerType;
17266
- blockFocusRef.current = !!(pointerType && keyboardOnly);
17267
- },
17268
- onMouseLeave() {
17269
- blockFocusRef.current = false;
17270
- },
17271
- onFocus(event) {
17272
- var _dataRef$current$open;
17273
- if (blockFocusRef.current) {
17274
- return;
17275
- }
17276
-
17277
- // Dismiss with click should ignore the subsequent `focus` trigger,
17278
- // but only if the click originated inside the reference element.
17279
- if (event.type === 'focus' && ((_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type) === 'mousedown' && dataRef.current.openEvent && isEventTargetWithin(dataRef.current.openEvent, domReference)) {
17280
- return;
17281
- }
17282
- dataRef.current.openEvent = event.nativeEvent;
17283
- onOpenChange(true);
17284
- },
17285
- onBlur(event) {
17286
- blockFocusRef.current = false;
17287
- const relatedTarget = event.relatedTarget;
17288
-
17289
- // Hit the non-modal focus management portal guard. Focus will be
17290
- // moved into the floating element immediately after.
17291
- const movedToFocusGuard = isElement(relatedTarget) && relatedTarget.hasAttribute('data-floating-ui-focus-guard') && relatedTarget.getAttribute('data-type') === 'outside';
17292
-
17293
- // Wait for the window blur listener to fire.
17294
- timeoutRef.current = setTimeout(() => {
17295
- // When focusing the reference element (e.g. regular click), then
17296
- // clicking into the floating element, prevent it from hiding.
17297
- // Note: it must be focusable, e.g. `tabindex="-1"`.
17298
- if (contains(refs.floating.current, relatedTarget) || contains(domReference, relatedTarget) || movedToFocusGuard) {
17386
+ dataRef.current.__escapeKeyBubbles = escapeKeyBubbles;
17387
+ dataRef.current.__outsidePressBubbles = outsidePressBubbles;
17388
+ function onKeyDown(event) {
17389
+ if (event.key === 'Escape') {
17390
+ const children = tree ? getChildren(tree.nodesRef.current, nodeId) : [];
17391
+ if (children.length > 0) {
17392
+ let shouldDismiss = true;
17393
+ children.forEach(child => {
17394
+ var _child$context;
17395
+ if ((_child$context = child.context) != null && _child$context.open && !child.context.dataRef.current.__escapeKeyBubbles) {
17396
+ shouldDismiss = false;
17299
17397
  return;
17300
17398
  }
17301
- onOpenChange(false);
17302
17399
  });
17400
+ if (!shouldDismiss) {
17401
+ return;
17402
+ }
17303
17403
  }
17404
+ events.emit('dismiss', {
17405
+ type: 'escapeKey',
17406
+ data: {
17407
+ returnFocus: {
17408
+ preventScroll: false
17409
+ }
17410
+ }
17411
+ });
17412
+ onOpenChange(false);
17304
17413
  }
17305
- };
17306
- }, [enabled, keyboardOnly, domReference, refs, dataRef, onOpenChange]);
17307
- };
17308
-
17309
- /**
17310
- * Merges an array of refs into a single memoized callback ref or `null`.
17311
- * @see https://floating-ui.com/docs/useMergeRefs
17312
- */
17313
- function useMergeRefs(refs) {
17314
- return React.useMemo(() => {
17315
- if (refs.every(ref => ref == null)) {
17316
- return null;
17317
17414
  }
17318
- return value => {
17319
- refs.forEach(ref => {
17320
- if (typeof ref === 'function') {
17321
- ref(value);
17322
- } else if (ref != null) {
17323
- ref.current = value;
17415
+ function onOutsidePress(event) {
17416
+ // Given developers can stop the propagation of the synthetic event,
17417
+ // we can only be confident with a positive value.
17418
+ const insideReactTree = insideReactTreeRef.current;
17419
+ insideReactTreeRef.current = false;
17420
+ if (insideReactTree) {
17421
+ return;
17422
+ }
17423
+ if (typeof outsidePress === 'function' && !outsidePress(event)) {
17424
+ return;
17425
+ }
17426
+ const target = getTarget(event);
17427
+
17428
+ // Check if the click occurred on the scrollbar
17429
+ if (isHTMLElement(target) && floating) {
17430
+ const win = floating.ownerDocument.defaultView || window;
17431
+ const canScrollX = target.scrollWidth > target.clientWidth;
17432
+ const canScrollY = target.scrollHeight > target.clientHeight;
17433
+ let xCond = canScrollY && event.offsetX > target.clientWidth;
17434
+
17435
+ // In some browsers it is possible to change the <body> (or window)
17436
+ // scrollbar to the left side, but is very rare and is difficult to
17437
+ // check for. Plus, for modal dialogs with backdrops, it is more
17438
+ // important that the backdrop is checked but not so much the window.
17439
+ if (canScrollY) {
17440
+ const isRTL = win.getComputedStyle(target).direction === 'rtl';
17441
+ if (isRTL) {
17442
+ xCond = event.offsetX <= target.offsetWidth - target.clientWidth;
17443
+ }
17324
17444
  }
17445
+ if (xCond || canScrollX && event.offsetY > target.clientHeight) {
17446
+ return;
17447
+ }
17448
+ }
17449
+ const targetIsInsideChildren = tree && getChildren(tree.nodesRef.current, nodeId).some(node => {
17450
+ var _node$context;
17451
+ return isEventTargetWithin(event, (_node$context = node.context) == null ? void 0 : _node$context.elements.floating);
17325
17452
  });
17326
- };
17327
- // eslint-disable-next-line react-hooks/exhaustive-deps
17328
- }, refs);
17329
- }
17330
-
17331
- /**
17332
- * Adds base screen reader props to the reference and floating elements for a
17333
- * given floating element `role`.
17334
- * @see https://floating-ui.com/docs/useRole
17335
- */
17336
- const useRole = function (_ref, _temp) {
17337
- let {
17338
- open
17339
- } = _ref;
17340
- let {
17341
- enabled = true,
17342
- role = 'dialog'
17343
- } = _temp === void 0 ? {} : _temp;
17344
- const rootId = useId();
17345
- const referenceId = useId();
17346
- return React.useMemo(() => {
17347
- const floatingProps = {
17348
- id: rootId,
17349
- role
17350
- };
17351
- if (!enabled) {
17352
- return {};
17453
+ if (isEventTargetWithin(event, floating) || isEventTargetWithin(event, domReference) || targetIsInsideChildren) {
17454
+ return;
17455
+ }
17456
+ const children = tree ? getChildren(tree.nodesRef.current, nodeId) : [];
17457
+ if (children.length > 0) {
17458
+ let shouldDismiss = true;
17459
+ children.forEach(child => {
17460
+ var _child$context2;
17461
+ if ((_child$context2 = child.context) != null && _child$context2.open && !child.context.dataRef.current.__outsidePressBubbles) {
17462
+ shouldDismiss = false;
17463
+ return;
17464
+ }
17465
+ });
17466
+ if (!shouldDismiss) {
17467
+ return;
17468
+ }
17469
+ }
17470
+ events.emit('dismiss', {
17471
+ type: 'outsidePress',
17472
+ data: {
17473
+ returnFocus: nested ? {
17474
+ preventScroll: true
17475
+ } : isVirtualClick(event) || isVirtualPointerEvent(event)
17476
+ }
17477
+ });
17478
+ onOpenChange(false);
17353
17479
  }
17354
- if (role === 'tooltip') {
17355
- return {
17356
- reference: {
17357
- 'aria-describedby': open ? rootId : undefined
17358
- },
17359
- floating: floatingProps
17360
- };
17480
+ function onScroll() {
17481
+ onOpenChange(false);
17361
17482
  }
17362
- return {
17363
- reference: {
17364
- 'aria-expanded': open ? 'true' : 'false',
17365
- 'aria-haspopup': role === 'alertdialog' ? 'dialog' : role,
17366
- 'aria-controls': open ? rootId : undefined,
17367
- ...(role === 'listbox' && {
17368
- role: 'combobox'
17369
- }),
17370
- ...(role === 'menu' && {
17371
- id: referenceId
17372
- })
17373
- },
17374
- floating: {
17375
- ...floatingProps,
17376
- ...(role === 'menu' && {
17377
- 'aria-labelledby': referenceId
17378
- })
17483
+ const doc = getDocument(floating);
17484
+ escapeKey && doc.addEventListener('keydown', onKeyDown);
17485
+ outsidePress && doc.addEventListener(outsidePressEvent, onOutsidePress);
17486
+ let ancestors = [];
17487
+ if (ancestorScroll) {
17488
+ if (isElement(domReference)) {
17489
+ ancestors = D(domReference);
17490
+ }
17491
+ if (isElement(floating)) {
17492
+ ancestors = ancestors.concat(D(floating));
17493
+ }
17494
+ if (!isElement(reference) && reference && reference.contextElement) {
17495
+ ancestors = ancestors.concat(D(reference.contextElement));
17379
17496
  }
17380
- };
17381
- }, [enabled, role, open, rootId, referenceId]);
17382
- };
17383
-
17384
- /**
17385
- * Provides data to position a floating element and context to add interactions.
17386
- * @see https://floating-ui.com/docs/react
17387
- */
17388
- function useFloating(options) {
17389
- if (options === void 0) {
17390
- options = {};
17391
- }
17392
- const {
17393
- open = false,
17394
- onOpenChange: unstable_onOpenChange,
17395
- nodeId
17396
- } = options;
17397
- const position = useFloating$1(options);
17398
- const tree = useFloatingTree();
17399
- const domReferenceRef = React.useRef(null);
17400
- const dataRef = React.useRef({});
17401
- const events = React.useState(() => createPubSub())[0];
17402
- const [domReference, setDomReference] = React.useState(null);
17403
- const setPositionReference = React.useCallback(node => {
17404
- const positionReference = isElement(node) ? {
17405
- getBoundingClientRect: () => node.getBoundingClientRect(),
17406
- contextElement: node
17407
- } : node;
17408
- position.refs.setReference(positionReference);
17409
- }, [position.refs]);
17410
- const setReference = React.useCallback(node => {
17411
- if (isElement(node) || node === null) {
17412
- domReferenceRef.current = node;
17413
- setDomReference(node);
17414
17497
  }
17415
17498
 
17416
- // Backwards-compatibility for passing a virtual element to `reference`
17417
- // after it has set the DOM reference.
17418
- if (isElement(position.refs.reference.current) || position.refs.reference.current === null ||
17419
- // Don't allow setting virtual elements using the old technique back to
17420
- // `null` to support `positionReference` + an unstable `reference`
17421
- // callback ref.
17422
- node !== null && !isElement(node)) {
17423
- position.refs.setReference(node);
17424
- }
17425
- }, [position.refs]);
17426
- const refs = React.useMemo(() => ({
17427
- ...position.refs,
17428
- setReference,
17429
- setPositionReference,
17430
- domReference: domReferenceRef
17431
- }), [position.refs, setReference, setPositionReference]);
17432
- const elements = React.useMemo(() => ({
17433
- ...position.elements,
17434
- domReference: domReference
17435
- }), [position.elements, domReference]);
17436
- const onOpenChange = useEvent(unstable_onOpenChange);
17437
- const context = React.useMemo(() => ({
17438
- ...position,
17439
- refs,
17440
- elements,
17441
- dataRef,
17442
- nodeId,
17443
- events,
17444
- open,
17445
- onOpenChange
17446
- }), [position, nodeId, events, open, onOpenChange, refs, elements]);
17447
- index$1(() => {
17448
- const node = tree == null ? void 0 : tree.nodesRef.current.find(node => node.id === nodeId);
17449
- if (node) {
17450
- node.context = context;
17499
+ // Ignore the visual viewport for scrolling dismissal (allow pinch-zoom)
17500
+ ancestors = ancestors.filter(ancestor => {
17501
+ var _doc$defaultView;
17502
+ return ancestor !== ((_doc$defaultView = doc.defaultView) == null ? void 0 : _doc$defaultView.visualViewport);
17503
+ });
17504
+ ancestors.forEach(ancestor => {
17505
+ ancestor.addEventListener('scroll', onScroll, {
17506
+ passive: true
17507
+ });
17508
+ });
17509
+ return () => {
17510
+ escapeKey && doc.removeEventListener('keydown', onKeyDown);
17511
+ outsidePress && doc.removeEventListener(outsidePressEvent, onOutsidePress);
17512
+ ancestors.forEach(ancestor => {
17513
+ ancestor.removeEventListener('scroll', onScroll);
17514
+ });
17515
+ };
17516
+ }, [dataRef, floating, domReference, reference, escapeKey, outsidePress, outsidePressEvent, events, tree, nodeId, open, onOpenChange, ancestorScroll, enabled, escapeKeyBubbles, outsidePressBubbles, nested]);
17517
+ React.useEffect(() => {
17518
+ insideReactTreeRef.current = false;
17519
+ }, [outsidePress, outsidePressEvent]);
17520
+ return React.useMemo(() => {
17521
+ if (!enabled) {
17522
+ return {};
17451
17523
  }
17452
- });
17453
- return React.useMemo(() => ({
17454
- ...position,
17455
- context,
17456
- refs,
17457
- reference: setReference,
17458
- positionReference: setPositionReference
17459
- }), [position, refs, context, setReference, setPositionReference]);
17460
- }
17461
-
17462
- function mergeProps(userProps, propsList, elementKey) {
17463
- const map = new Map();
17464
- return {
17465
- ...(elementKey === 'floating' && {
17466
- tabIndex: -1
17467
- }),
17468
- ...userProps,
17469
- ...propsList.map(value => value ? value[elementKey] : null).concat(userProps).reduce((acc, props) => {
17470
- if (!props) {
17471
- return acc;
17472
- }
17473
- Object.entries(props).forEach(_ref => {
17474
- let [key, value] = _ref;
17475
- if (key.indexOf('on') === 0) {
17476
- if (!map.has(key)) {
17477
- map.set(key, []);
17478
- }
17479
- if (typeof value === 'function') {
17480
- var _map$get;
17481
- (_map$get = map.get(key)) == null ? void 0 : _map$get.push(value);
17482
- acc[key] = function () {
17483
- var _map$get2;
17484
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17485
- args[_key] = arguments[_key];
17524
+ return {
17525
+ reference: {
17526
+ [bubbleHandlerKeys[referencePressEvent]]: () => {
17527
+ if (referencePress) {
17528
+ events.emit('dismiss', {
17529
+ type: 'referencePress',
17530
+ data: {
17531
+ returnFocus: false
17486
17532
  }
17487
- (_map$get2 = map.get(key)) == null ? void 0 : _map$get2.forEach(fn => fn(...args));
17488
- };
17533
+ });
17534
+ onOpenChange(false);
17489
17535
  }
17490
- } else {
17491
- acc[key] = value;
17492
17536
  }
17493
- });
17494
- return acc;
17495
- }, {})
17496
- };
17497
- }
17498
- const useInteractions = function (propsList) {
17499
- if (propsList === void 0) {
17500
- propsList = [];
17501
- }
17502
- // The dependencies are a dynamic array, so we can't use the linter's
17503
- // suggestion to add it to the deps array.
17504
- const deps = propsList;
17505
- const getReferenceProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'reference'),
17506
- // eslint-disable-next-line react-hooks/exhaustive-deps
17507
- deps);
17508
- const getFloatingProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'floating'),
17509
- // eslint-disable-next-line react-hooks/exhaustive-deps
17510
- deps);
17511
- const getItemProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'item'),
17512
- // Granularly check for `item` changes, because the `getItemProps` getter
17513
- // should be as referentially stable as possible since it may be passed as
17514
- // a prop to many components. All `item` key values must therefore be
17515
- // memoized.
17516
- // eslint-disable-next-line react-hooks/exhaustive-deps
17517
- propsList.map(key => key == null ? void 0 : key.item));
17518
- return React.useMemo(() => ({
17519
- getReferenceProps,
17520
- getFloatingProps,
17521
- getItemProps
17522
- }), [getReferenceProps, getFloatingProps, getItemProps]);
17523
- };
17524
-
17525
- function useTooltip() {
17526
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
17527
- _ref$initialOpen = _ref.initialOpen,
17528
- initialOpen = _ref$initialOpen === void 0 ? false : _ref$initialOpen,
17529
- _ref$placement = _ref.placement,
17530
- placement = _ref$placement === void 0 ? 'top' : _ref$placement,
17531
- controlledOpen = _ref.open,
17532
- setControlledOpen = _ref.onOpenChange;
17533
- var _useState = useState(initialOpen),
17534
- _useState2 = _slicedToArray(_useState, 2),
17535
- uncontrolledOpen = _useState2[0],
17536
- setUncontrolledOpen = _useState2[1];
17537
- var open = controlledOpen !== null && controlledOpen !== void 0 ? controlledOpen : uncontrolledOpen;
17538
- var setOpen = setControlledOpen !== null && setControlledOpen !== void 0 ? setControlledOpen : setUncontrolledOpen;
17539
- var data = useFloating({
17540
- placement: placement,
17541
- open: open,
17542
- onOpenChange: setOpen,
17543
- whileElementsMounted: P,
17544
- middleware: [D$1(5), b$1({
17545
- fallbackAxisSideDirection: 'start',
17546
- crossAxis: placement.includes('-')
17547
- }), k({
17548
- padding: 8
17549
- })]
17550
- });
17551
- var context = data.context;
17552
- var hover = useHover(context, {
17553
- move: false,
17554
- enabled: controlledOpen == null
17555
- });
17556
- var focus = useFocus(context, {
17557
- enabled: controlledOpen == null
17558
- });
17559
- var dismiss = useDismiss(context);
17560
- var role = useRole(context, {
17561
- role: 'tooltip'
17562
- });
17563
- var interactions = useInteractions([hover, focus, dismiss, role]);
17564
- return useMemo(function () {
17565
- return Object.assign(Object.assign({
17566
- open: open,
17567
- setOpen: setOpen
17568
- }, interactions), data);
17569
- }, [open, setOpen, interactions, data]);
17570
- }
17571
- var TooltipContext = /*#__PURE__*/createContext(null);
17572
- var useTooltipContext = function useTooltipContext() {
17573
- var context = useContext(TooltipContext);
17574
- if (context == null) {
17575
- throw new Error('Tooltip components must be wrapped in <Tooltip />');
17576
- }
17577
- return context;
17537
+ },
17538
+ floating: {
17539
+ [captureHandlerKeys[outsidePressEvent]]: () => {
17540
+ insideReactTreeRef.current = true;
17541
+ }
17542
+ }
17543
+ };
17544
+ }, [enabled, events, referencePress, outsidePressEvent, referencePressEvent, onOpenChange]);
17578
17545
  };
17579
17546
 
17580
- function Tooltip(_a) {
17581
- var children = _a.children,
17582
- options = __rest(_a, ["children"]);
17583
- // The hook accepts props as options or other positioning attributes
17584
- var tooltip = useTooltip(options);
17585
- return /*#__PURE__*/React__default.createElement(TooltipContext.Provider, {
17586
- value: tooltip
17587
- }, children);
17588
- }
17589
- var TooltipAnchor = /*#__PURE__*/forwardRef(function TooltipAnchor(_a, propRef) {
17590
- var children = _a.children,
17591
- props = __rest(_a, ["children"]);
17592
- var context = useTooltipContext();
17593
- var childrenRef = children.ref;
17594
- var ref = useMergeRefs([context.refs.setReference, propRef, childrenRef]);
17595
- if ( /*#__PURE__*/isValidElement(children)) {
17596
- return /*#__PURE__*/cloneElement(children, context.getReferenceProps(Object.assign(Object.assign(Object.assign({
17597
- ref: ref
17598
- }, props), children.props), {
17599
- 'data-state': context.open ? 'open' : 'closed'
17600
- })));
17601
- }
17602
- return /*#__PURE__*/React__default.createElement("div", Object.assign({
17603
- ref: ref,
17604
- "data-state": context.open ? 'open' : 'closed'
17605
- }, context.getReferenceProps(props)), children);
17606
- });
17607
- var TooltipContent = /*#__PURE__*/forwardRef(function TooltipContent(props, propRef) {
17608
- var _a, _b;
17609
- var context = useTooltipContext();
17610
- var ref = useMergeRefs([context.refs.setFloating, propRef]);
17611
- return /*#__PURE__*/React__default.createElement(FloatingPortal, null, context.open && /*#__PURE__*/React__default.createElement("div", Object.assign({
17612
- ref: ref,
17613
- style: Object.assign({
17614
- position: context.strategy,
17615
- top: (_a = context.y) !== null && _a !== void 0 ? _a : 0,
17616
- left: (_b = context.x) !== null && _b !== void 0 ? _b : 0,
17617
- visibility: context.x == null ? 'hidden' : 'visible'
17618
- }, props.style)
17619
- }, context.getFloatingProps(props))));
17620
- });
17621
-
17622
- var EchoTooltip = Object.freeze({
17623
- Tooltip: Tooltip,
17624
- TooltipAnchor: TooltipAnchor,
17625
- TooltipContent: TooltipContent
17626
- });
17627
-
17628
- var css_248z$n = ".floatingActionButton-module_button__-08q2.floatingActionButton-module_primary__Os-YA{background:rgba(0,0,0,.8);color:var(--white)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_primary__Os-YA:hover{background:rgba(0,0,0,.9);color:var(--white)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_active__nXRwO{background:var(--equiGreen3);border:1px solid var(--echoText);color:var(--echoText)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_active__nXRwO:hover{background:var(--equiGreen4);border:1px solid var(--echoText);color:var(--echoText)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_circle_icon__mdkpf{min-height:48px;min-width:48px}.floatingActionButton-module_button__-08q2.floatingActionButton-module_square_icon__aAEVQ{border-radius:4px;min-height:48px;min-width:48px}.floatingActionButton-module_button__-08q2.floatingActionButton-module_square_icon__aAEVQ:hover{border-radius:4px}";
17629
- var style$3 = {"button":"floatingActionButton-module_button__-08q2","primary":"floatingActionButton-module_primary__Os-YA","active":"floatingActionButton-module_active__nXRwO","circle_icon":"floatingActionButton-module_circle_icon__mdkpf","square_icon":"floatingActionButton-module_square_icon__aAEVQ"};
17630
- styleInject(css_248z$n);
17631
-
17632
- var getEdsVariant = function getEdsVariant(echoVariant) {
17633
- switch (echoVariant) {
17634
- case 'square_icon_with_text':
17635
- return 'contained';
17636
- case 'square_icon':
17637
- case 'circle_icon':
17638
- default:
17639
- return 'contained_icon';
17640
- }
17641
- };
17642
- var getEchoVariantStyle = function getEchoVariantStyle(echoVariant) {
17643
- switch (echoVariant) {
17644
- case 'circle_icon':
17645
- return style$3.circle_icon;
17646
- case 'square_icon':
17647
- return style$3.square_icon;
17648
- case 'square_icon_with_text':
17649
- default:
17650
- return '';
17651
- }
17652
- };
17653
17547
  /**
17654
- * Floating actions buttons exists within the viewport, seperated from any sheet, dialog or menu
17655
- * and are typically used for special actions pertaining to the module they are used in.
17656
- * @return {*} {JSX.Element} Floating actions button
17548
+ * Opens the floating element while the reference element has focus, like CSS
17549
+ * `:focus`.
17550
+ * @see https://floating-ui.com/docs/useFocus
17657
17551
  */
17658
- var FloatingActionButton = function FloatingActionButton(_ref) {
17659
- var label = _ref.label,
17660
- iconName = _ref.iconName,
17661
- ariaLabel = _ref.ariaLabel,
17662
- variant = _ref.variant,
17663
- disabled = _ref.disabled,
17664
- active = _ref.active,
17665
- onClick = _ref.onClick;
17666
- return /*#__PURE__*/React__default.createElement(Button, {
17667
- "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : label,
17668
- onClick: onClick,
17669
- className: "".concat(style$3.button, " ").concat(!disabled && style$3.primary, " ").concat(active && style$3.active, " ").concat(getEchoVariantStyle(variant)),
17670
- variant: getEdsVariant(variant),
17671
- disabled: disabled !== null && disabled !== void 0 ? disabled : false
17672
- }, /*#__PURE__*/React__default.createElement(Icon$1, {
17673
- name: iconName,
17674
- className: style$3.icon
17675
- }), variant === 'square_icon_with_text' && label);
17676
- };
17552
+ const useFocus = function (_ref, _temp) {
17553
+ let {
17554
+ open,
17555
+ onOpenChange,
17556
+ dataRef,
17557
+ events,
17558
+ refs,
17559
+ elements: {
17560
+ floating,
17561
+ domReference
17562
+ }
17563
+ } = _ref;
17564
+ let {
17565
+ enabled = true,
17566
+ keyboardOnly = true
17567
+ } = _temp === void 0 ? {} : _temp;
17568
+ const pointerTypeRef = React.useRef('');
17569
+ const blockFocusRef = React.useRef(false);
17570
+ const timeoutRef = React.useRef();
17571
+ React.useEffect(() => {
17572
+ if (!enabled) {
17573
+ return;
17574
+ }
17575
+ const doc = getDocument(floating);
17576
+ const win = doc.defaultView || window;
17677
17577
 
17678
- function classnames$1() {
17679
- for (var _len = arguments.length, parts = new Array(_len), _key = 0; _key < _len; _key++) {
17680
- parts[_key] = arguments[_key];
17681
- }
17682
- var classes = parts.filter(Boolean).reduce(function (classes, part) {
17683
- if (part) {
17684
- if (Array.isArray(part)) {
17685
- console.log('classnames does not support array yet!');
17686
- } else if (_typeof$1(part) === 'object') {
17687
- for (var key in part) {
17688
- if (part[key]) {
17689
- classes.push(key);
17690
- }
17691
- }
17692
- } else if (typeof part === 'string' || typeof part === 'number') {
17693
- classes.push(part);
17578
+ // If the reference was focused and the user left the tab/window, and the
17579
+ // floating element was not open, the focus should be blocked when they
17580
+ // return to the tab/window.
17581
+ function onBlur() {
17582
+ if (!open && isHTMLElement(domReference) && domReference === activeElement$1(getDocument(domReference))) {
17583
+ blockFocusRef.current = true;
17694
17584
  }
17695
17585
  }
17696
- return classes;
17697
- }, []).join(' ');
17698
- if (classes) {
17699
- return classes;
17700
- }
17701
- return undefined;
17702
- }
17586
+ win.addEventListener('blur', onBlur);
17587
+ return () => {
17588
+ win.removeEventListener('blur', onBlur);
17589
+ };
17590
+ }, [floating, domReference, open, enabled]);
17591
+ React.useEffect(() => {
17592
+ if (!enabled) {
17593
+ return;
17594
+ }
17595
+ function onDismiss(payload) {
17596
+ if (payload.type === 'referencePress' || payload.type === 'escapeKey') {
17597
+ blockFocusRef.current = true;
17598
+ }
17599
+ }
17600
+ events.on('dismiss', onDismiss);
17601
+ return () => {
17602
+ events.off('dismiss', onDismiss);
17603
+ };
17604
+ }, [events, enabled]);
17605
+ React.useEffect(() => {
17606
+ return () => {
17607
+ clearTimeout(timeoutRef.current);
17608
+ };
17609
+ }, []);
17610
+ return React.useMemo(() => {
17611
+ if (!enabled) {
17612
+ return {};
17613
+ }
17614
+ return {
17615
+ reference: {
17616
+ onPointerDown(_ref2) {
17617
+ let {
17618
+ pointerType
17619
+ } = _ref2;
17620
+ pointerTypeRef.current = pointerType;
17621
+ blockFocusRef.current = !!(pointerType && keyboardOnly);
17622
+ },
17623
+ onMouseLeave() {
17624
+ blockFocusRef.current = false;
17625
+ },
17626
+ onFocus(event) {
17627
+ var _dataRef$current$open;
17628
+ if (blockFocusRef.current) {
17629
+ return;
17630
+ }
17703
17631
 
17704
- var _path$7, _path2$3;
17705
- function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
17706
- var SvgCableIcon = function SvgCableIcon(props) {
17707
- return /*#__PURE__*/React.createElement("svg", _extends$c({
17708
- width: 24,
17709
- height: 24,
17710
- fill: "none",
17711
- xmlns: "http://www.w3.org/2000/svg"
17712
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
17713
- d: "M21.8 2.3c-.1-.2-.4-.3-.7-.2-.7.4-1.2 1.1-1.7 1.7V1.6c.1-.4-.2-.6-.4-.6-.3 0-.5.2-.5.5v2.3c-.5-.6-1.1-1.3-1.9-1.7-.2-.1-.5 0-.7.2-.1.2 0 .5.2.7.6.3.7.3 1 .8h-.2v3h4V3.7h-.4c.4-.5.5-.5 1-.8.4-.1.5-.4.3-.6ZM2.1 21.3c.1.2.4.3.7.2.7-.4 1.2-1.1 1.7-1.7V22c0 .3.2.5.5.5s.5-.2.5-.5v-2.3c.5.6 1.1 1.3 1.9 1.7.2.1.5 0 .7-.2.1-.2 0-.5-.2-.7-.6-.3-.7-.3-1-.8h.2v-3h-4v3.1h.4c-.4.5-.5.5-1 .8-.5.1-.6.4-.4.7Z",
17714
- fill: "#fff"
17715
- })), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
17716
- d: "M16.9 18.8h-3c-1.7 0-3-1.3-3-3v-8c0-.5-.4-1-1-1h-3c-.5 0-1 .4-1 1v8h-2v-8c0-1.7 1.3-3 3-3h3c1.7 0 3 1.3 3 3v8c0 .5.4 1 1 1h3c.5 0 1-.4 1-1v-8h2v8c0 1.6-1.3 3-3 3Z",
17717
- fill: "#fff"
17718
- })));
17719
- };
17632
+ // Dismiss with click should ignore the subsequent `focus` trigger,
17633
+ // but only if the click originated inside the reference element.
17634
+ if (event.type === 'focus' && ((_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type) === 'mousedown' && dataRef.current.openEvent && isEventTargetWithin(dataRef.current.openEvent, domReference)) {
17635
+ return;
17636
+ }
17637
+ dataRef.current.openEvent = event.nativeEvent;
17638
+ onOpenChange(true);
17639
+ },
17640
+ onBlur(event) {
17641
+ blockFocusRef.current = false;
17642
+ const relatedTarget = event.relatedTarget;
17720
17643
 
17721
- var _path$6, _path2$2, _path3$1;
17722
- function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
17723
- var SvgCircuitIcon = function SvgCircuitIcon(props) {
17724
- return /*#__PURE__*/React.createElement("svg", _extends$b({
17725
- width: 24,
17726
- height: 24,
17727
- fill: "none",
17728
- xmlns: "http://www.w3.org/2000/svg"
17729
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
17730
- d: "M12 7c-.6 0-1-.3-1-.75v-4.5c0-.45.4-.75 1-.75s1 .3 1 .75v4.5c0 .45-.5.75-1 .75ZM11.9 23c-.6 0-1-.4-1-1v-5c0-.6.4-1 1-1s1 .4 1 1v5c0 .5-.4 1-1 1Z",
17731
- fill: "#fff"
17732
- })), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
17733
- d: "M11.8 17.8c-2.3 0-4.2-1.9-4.2-4.2 0-2.3 1.9-4.2 4.2-4.2 2.3 0 4.2 1.9 4.2 4.2 0 2.3-1.9 4.2-4.2 4.2Zm0-6.4c-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2 1.2 0 2.2-1 2.2-2.2 0-1.2-1-2.2-2.2-2.2Z",
17734
- fill: "#fff"
17735
- })), _path3$1 || (_path3$1 = /*#__PURE__*/React.createElement("path", {
17736
- d: "M9.6 11.6c-.3 0-.5-.1-.7-.3L4.3 6.7c-.4-.4-.4-1 0-1.4.4-.4 1-.4 1.4 0l4.6 4.6c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3Z",
17737
- fill: "#fff"
17738
- })));
17739
- };
17644
+ // Hit the non-modal focus management portal guard. Focus will be
17645
+ // moved into the floating element immediately after.
17646
+ const movedToFocusGuard = isElement(relatedTarget) && relatedTarget.hasAttribute('data-floating-ui-focus-guard') && relatedTarget.getAttribute('data-type') === 'outside';
17740
17647
 
17741
- var _path$5;
17742
- function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
17743
- var SvgElectricalIcon = function SvgElectricalIcon(props) {
17744
- return /*#__PURE__*/React.createElement("svg", _extends$a({
17745
- width: 24,
17746
- height: 24,
17747
- fill: "none",
17748
- xmlns: "http://www.w3.org/2000/svg"
17749
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
17750
- fillRule: "evenodd",
17751
- clipRule: "evenodd",
17752
- d: "M12 2 1 21h22L12 2Zm0 3.99L19.53 19H4.47L12 5.99Zm-1.397 8.836-1.357 3.558 4.342-3.9-1.246-.476L13.7 10.45l-4.342 3.901 1.246.475Z",
17753
- fill: "#fff"
17754
- })));
17648
+ // Wait for the window blur listener to fire.
17649
+ timeoutRef.current = setTimeout(() => {
17650
+ // When focusing the reference element (e.g. regular click), then
17651
+ // clicking into the floating element, prevent it from hiding.
17652
+ // Note: it must be focusable, e.g. `tabindex="-1"`.
17653
+ if (contains(refs.floating.current, relatedTarget) || contains(domReference, relatedTarget) || movedToFocusGuard) {
17654
+ return;
17655
+ }
17656
+ onOpenChange(false);
17657
+ });
17658
+ }
17659
+ }
17660
+ };
17661
+ }, [enabled, keyboardOnly, domReference, refs, dataRef, onOpenChange]);
17755
17662
  };
17756
17663
 
17757
- var _g$3;
17758
- function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
17759
- var SvgFunctionIcon = function SvgFunctionIcon(props) {
17760
- return /*#__PURE__*/React.createElement("svg", _extends$9({
17761
- width: 24,
17762
- height: 24,
17763
- fill: "none",
17764
- xmlns: "http://www.w3.org/2000/svg"
17765
- }, props), _g$3 || (_g$3 = /*#__PURE__*/React.createElement("g", {
17766
- fill: "#fff"
17767
- }, /*#__PURE__*/React.createElement("path", {
17768
- d: "M4.3 6.6C4.3 3.6 5.9 2 9 2c.8 0 1.6.1 2.3.3v2.3c-.7-.2-1.2-.2-1.7-.2-1.6 0-2.3.9-2.3 2.6v1.3h3.3v2.2H7.3V22h-3V10.5H2V8.3h2.3V6.6ZM17.2 17.5l1.5 2.9h-2.3l-.7-1.4-.7 1.4h-2l1.5-2.6-1.4-2.7h2.3l.5 1.2.6-1.2h1.9l-1.2 2.4Z"
17769
- }), /*#__PURE__*/React.createElement("path", {
17770
- d: "M12 22.8c-3.9-4.8-1.7-9.6 0-11.5l1.5 1.3-.7-.6.7.7c-.2.2-3.7 4.2 0 8.9L12 22.8ZM19.8 22.9l-1.5-1.3c.2-.2 3.7-4.2 0-8.9l1.6-1.3c3.8 4.8 1.6 9.6-.1 11.5Z"
17771
- }))));
17772
- };
17664
+ /**
17665
+ * Merges an array of refs into a single memoized callback ref or `null`.
17666
+ * @see https://floating-ui.com/docs/useMergeRefs
17667
+ */
17668
+ function useMergeRefs(refs) {
17669
+ return React.useMemo(() => {
17670
+ if (refs.every(ref => ref == null)) {
17671
+ return null;
17672
+ }
17673
+ return value => {
17674
+ refs.forEach(ref => {
17675
+ if (typeof ref === 'function') {
17676
+ ref(value);
17677
+ } else if (ref != null) {
17678
+ ref.current = value;
17679
+ }
17680
+ });
17681
+ };
17682
+ // eslint-disable-next-line react-hooks/exhaustive-deps
17683
+ }, refs);
17684
+ }
17773
17685
 
17774
- var _g$2, _defs$1;
17775
- function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
17776
- var SvgInstrumentIcon = function SvgInstrumentIcon(props) {
17777
- return /*#__PURE__*/React.createElement("svg", _extends$8({
17778
- width: 24,
17779
- height: 24,
17780
- fill: "none",
17781
- xmlns: "http://www.w3.org/2000/svg"
17782
- }, props), _g$2 || (_g$2 = /*#__PURE__*/React.createElement("g", {
17783
- clipPath: "url(#Instrument-icon_svg__a)",
17784
- fill: "#fff"
17785
- }, /*#__PURE__*/React.createElement("path", {
17786
- d: "M12 4c3.9 0 7 3.1 7 7s-3.1 7-7 7-7-3.1-7-7 3.1-7 7-7Zm0-2c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9Z"
17787
- }), /*#__PURE__*/React.createElement("path", {
17788
- d: "M11.9 15.8c-.2 0-.3 0-.5-.1-.5-.3-.7-.9-.4-1.4l4-7.1c.3-.5.9-.7 1.4-.4.5.3.7.9.4 1.4l-4 7.1c-.3.3-.6.5-.9.5ZM12 22.4c-.6 0-1-.4-1-1V20c0-.6.4-1 1-1s1 .4 1 1v1.4c0 .6-.4 1-1 1Z"
17789
- }), /*#__PURE__*/React.createElement("path", {
17790
- d: "M7.4 17.8c1.3-1.1 2.9-1.8 4.7-1.8 1.5 0 3 .5 4.1 1.4l1.5-1.4c-1.5-1.2-3.5-2-5.6-2-2.4 0-4.5.9-6.2 2.4l1.5 1.4Z"
17791
- }))), _defs$1 || (_defs$1 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
17792
- id: "Instrument-icon_svg__a"
17793
- }, /*#__PURE__*/React.createElement("path", {
17794
- fill: "#fff",
17795
- d: "M3 2h18v20H3z"
17796
- })))));
17686
+ /**
17687
+ * Adds base screen reader props to the reference and floating elements for a
17688
+ * given floating element `role`.
17689
+ * @see https://floating-ui.com/docs/useRole
17690
+ */
17691
+ const useRole = function (_ref, _temp) {
17692
+ let {
17693
+ open
17694
+ } = _ref;
17695
+ let {
17696
+ enabled = true,
17697
+ role = 'dialog'
17698
+ } = _temp === void 0 ? {} : _temp;
17699
+ const rootId = useId();
17700
+ const referenceId = useId();
17701
+ return React.useMemo(() => {
17702
+ const floatingProps = {
17703
+ id: rootId,
17704
+ role
17705
+ };
17706
+ if (!enabled) {
17707
+ return {};
17708
+ }
17709
+ if (role === 'tooltip') {
17710
+ return {
17711
+ reference: {
17712
+ 'aria-describedby': open ? rootId : undefined
17713
+ },
17714
+ floating: floatingProps
17715
+ };
17716
+ }
17717
+ return {
17718
+ reference: {
17719
+ 'aria-expanded': open ? 'true' : 'false',
17720
+ 'aria-haspopup': role === 'alertdialog' ? 'dialog' : role,
17721
+ 'aria-controls': open ? rootId : undefined,
17722
+ ...(role === 'listbox' && {
17723
+ role: 'combobox'
17724
+ }),
17725
+ ...(role === 'menu' && {
17726
+ id: referenceId
17727
+ })
17728
+ },
17729
+ floating: {
17730
+ ...floatingProps,
17731
+ ...(role === 'menu' && {
17732
+ 'aria-labelledby': referenceId
17733
+ })
17734
+ }
17735
+ };
17736
+ }, [enabled, role, open, rootId, referenceId]);
17797
17737
  };
17798
17738
 
17799
- var _path$4;
17800
- function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
17801
- var SvgJunctionBoxIcon = function SvgJunctionBoxIcon(props) {
17802
- return /*#__PURE__*/React.createElement("svg", _extends$7({
17803
- width: 24,
17804
- height: 24,
17805
- fill: "none",
17806
- xmlns: "http://www.w3.org/2000/svg"
17807
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
17808
- fillRule: "evenodd",
17809
- clipRule: "evenodd",
17810
- d: "M3.023 3.695A2 2 0 0 1 5 2h14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-2v3h-2v-3h-2v3h-2v-3H9v3H7v-3H5a2 2 0 0 1-2-2V4c0-.104.008-.205.023-.305ZM5 4v13h14V4H5Z",
17811
- fill: "#fff"
17812
- })));
17813
- };
17739
+ /**
17740
+ * Provides data to position a floating element and context to add interactions.
17741
+ * @see https://floating-ui.com/docs/react
17742
+ */
17743
+ function useFloating(options) {
17744
+ if (options === void 0) {
17745
+ options = {};
17746
+ }
17747
+ const {
17748
+ open = false,
17749
+ onOpenChange: unstable_onOpenChange,
17750
+ nodeId
17751
+ } = options;
17752
+ const position = useFloating$1(options);
17753
+ const tree = useFloatingTree();
17754
+ const domReferenceRef = React.useRef(null);
17755
+ const dataRef = React.useRef({});
17756
+ const events = React.useState(() => createPubSub())[0];
17757
+ const [domReference, setDomReference] = React.useState(null);
17758
+ const setPositionReference = React.useCallback(node => {
17759
+ const positionReference = isElement(node) ? {
17760
+ getBoundingClientRect: () => node.getBoundingClientRect(),
17761
+ contextElement: node
17762
+ } : node;
17763
+ position.refs.setReference(positionReference);
17764
+ }, [position.refs]);
17765
+ const setReference = React.useCallback(node => {
17766
+ if (isElement(node) || node === null) {
17767
+ domReferenceRef.current = node;
17768
+ setDomReference(node);
17769
+ }
17814
17770
 
17815
- var _path$3, _path2$1, _path3, _path4;
17816
- function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
17817
- var SvgLineIcon = function SvgLineIcon(props) {
17818
- return /*#__PURE__*/React.createElement("svg", _extends$6({
17819
- width: 24,
17820
- height: 24,
17821
- fill: "none",
17822
- xmlns: "http://www.w3.org/2000/svg"
17823
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
17824
- fillRule: "evenodd",
17825
- clipRule: "evenodd",
17826
- d: "M17 10H7v4h10v-4ZM5 8v8h14V8H5Z",
17827
- fill: "#fff"
17828
- })), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
17829
- d: "M1 8a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2H1ZM7 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2h6Z",
17830
- fill: "#fff"
17831
- })), _path3 || (_path3 = /*#__PURE__*/React.createElement("path", {
17832
- d: "M5 6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2V6ZM3 18a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2v12ZM17 8a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2h-6ZM23 16a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2h6Z",
17833
- fill: "#fff"
17834
- })), _path4 || (_path4 = /*#__PURE__*/React.createElement("path", {
17835
- d: "M21 6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2V6ZM19 18a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2v12Z",
17836
- fill: "#fff"
17837
- })));
17771
+ // Backwards-compatibility for passing a virtual element to `reference`
17772
+ // after it has set the DOM reference.
17773
+ if (isElement(position.refs.reference.current) || position.refs.reference.current === null ||
17774
+ // Don't allow setting virtual elements using the old technique back to
17775
+ // `null` to support `positionReference` + an unstable `reference`
17776
+ // callback ref.
17777
+ node !== null && !isElement(node)) {
17778
+ position.refs.setReference(node);
17779
+ }
17780
+ }, [position.refs]);
17781
+ const refs = React.useMemo(() => ({
17782
+ ...position.refs,
17783
+ setReference,
17784
+ setPositionReference,
17785
+ domReference: domReferenceRef
17786
+ }), [position.refs, setReference, setPositionReference]);
17787
+ const elements = React.useMemo(() => ({
17788
+ ...position.elements,
17789
+ domReference: domReference
17790
+ }), [position.elements, domReference]);
17791
+ const onOpenChange = useEvent(unstable_onOpenChange);
17792
+ const context = React.useMemo(() => ({
17793
+ ...position,
17794
+ refs,
17795
+ elements,
17796
+ dataRef,
17797
+ nodeId,
17798
+ events,
17799
+ open,
17800
+ onOpenChange
17801
+ }), [position, nodeId, events, open, onOpenChange, refs, elements]);
17802
+ index$1(() => {
17803
+ const node = tree == null ? void 0 : tree.nodesRef.current.find(node => node.id === nodeId);
17804
+ if (node) {
17805
+ node.context = context;
17806
+ }
17807
+ });
17808
+ return React.useMemo(() => ({
17809
+ ...position,
17810
+ context,
17811
+ refs,
17812
+ reference: setReference,
17813
+ positionReference: setPositionReference
17814
+ }), [position, refs, context, setReference, setPositionReference]);
17815
+ }
17816
+
17817
+ function mergeProps(userProps, propsList, elementKey) {
17818
+ const map = new Map();
17819
+ return {
17820
+ ...(elementKey === 'floating' && {
17821
+ tabIndex: -1
17822
+ }),
17823
+ ...userProps,
17824
+ ...propsList.map(value => value ? value[elementKey] : null).concat(userProps).reduce((acc, props) => {
17825
+ if (!props) {
17826
+ return acc;
17827
+ }
17828
+ Object.entries(props).forEach(_ref => {
17829
+ let [key, value] = _ref;
17830
+ if (key.indexOf('on') === 0) {
17831
+ if (!map.has(key)) {
17832
+ map.set(key, []);
17833
+ }
17834
+ if (typeof value === 'function') {
17835
+ var _map$get;
17836
+ (_map$get = map.get(key)) == null ? void 0 : _map$get.push(value);
17837
+ acc[key] = function () {
17838
+ var _map$get2;
17839
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17840
+ args[_key] = arguments[_key];
17841
+ }
17842
+ (_map$get2 = map.get(key)) == null ? void 0 : _map$get2.forEach(fn => fn(...args));
17843
+ };
17844
+ }
17845
+ } else {
17846
+ acc[key] = value;
17847
+ }
17848
+ });
17849
+ return acc;
17850
+ }, {})
17851
+ };
17852
+ }
17853
+ const useInteractions = function (propsList) {
17854
+ if (propsList === void 0) {
17855
+ propsList = [];
17856
+ }
17857
+ // The dependencies are a dynamic array, so we can't use the linter's
17858
+ // suggestion to add it to the deps array.
17859
+ const deps = propsList;
17860
+ const getReferenceProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'reference'),
17861
+ // eslint-disable-next-line react-hooks/exhaustive-deps
17862
+ deps);
17863
+ const getFloatingProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'floating'),
17864
+ // eslint-disable-next-line react-hooks/exhaustive-deps
17865
+ deps);
17866
+ const getItemProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'item'),
17867
+ // Granularly check for `item` changes, because the `getItemProps` getter
17868
+ // should be as referentially stable as possible since it may be passed as
17869
+ // a prop to many components. All `item` key values must therefore be
17870
+ // memoized.
17871
+ // eslint-disable-next-line react-hooks/exhaustive-deps
17872
+ propsList.map(key => key == null ? void 0 : key.item));
17873
+ return React.useMemo(() => ({
17874
+ getReferenceProps,
17875
+ getFloatingProps,
17876
+ getItemProps
17877
+ }), [getReferenceProps, getFloatingProps, getItemProps]);
17838
17878
  };
17839
17879
 
17840
- var _path$2, _path2;
17841
- function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
17842
- var SvgMainEquipmentIcon = function SvgMainEquipmentIcon(props) {
17843
- return /*#__PURE__*/React.createElement("svg", _extends$5({
17844
- width: 24,
17845
- height: 24,
17846
- fill: "none",
17847
- xmlns: "http://www.w3.org/2000/svg"
17848
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
17849
- fillRule: "evenodd",
17850
- clipRule: "evenodd",
17851
- d: "m21.4 11.6-9-9c-.3-.4-.8-.6-1.4-.6H4c-1.1 0-2 .9-2 2v7c0 .6.2 1.1.6 1.4l9 9c.3.4.8.6 1.4.6.6 0 1.1-.2 1.4-.6l7-7c.4-.4.6-.9.6-1.4 0-.5-.2-1.1-.6-1.4ZM13 20l-9-9V4h7l9 9-7 7ZM5 6.5C5 5.7 5.7 5 6.5 5S8 5.7 8 6.5 7.3 8 6.5 8 5 7.3 5 6.5Z",
17852
- fill: "#fff"
17853
- })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
17854
- d: "m18.2 12.3-1.4 1.4-1.5-1.5-1.7-1.9.8 3-.9.9-3-.7 1.8 1.6 1.5 1.5-1.4 1.4-5.7-5.7 1.5-1.5L12 12l-1.1-3.9 1.5-1.5 5.8 5.7Z",
17855
- fill: "#fff"
17856
- })));
17880
+ function useTooltip() {
17881
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
17882
+ _ref$initialOpen = _ref.initialOpen,
17883
+ initialOpen = _ref$initialOpen === void 0 ? false : _ref$initialOpen,
17884
+ _ref$placement = _ref.placement,
17885
+ placement = _ref$placement === void 0 ? 'top' : _ref$placement,
17886
+ controlledOpen = _ref.open,
17887
+ setControlledOpen = _ref.onOpenChange;
17888
+ var _useState = useState(initialOpen),
17889
+ _useState2 = _slicedToArray(_useState, 2),
17890
+ uncontrolledOpen = _useState2[0],
17891
+ setUncontrolledOpen = _useState2[1];
17892
+ var open = controlledOpen !== null && controlledOpen !== void 0 ? controlledOpen : uncontrolledOpen;
17893
+ var setOpen = setControlledOpen !== null && setControlledOpen !== void 0 ? setControlledOpen : setUncontrolledOpen;
17894
+ var data = useFloating({
17895
+ placement: placement,
17896
+ open: open,
17897
+ onOpenChange: setOpen,
17898
+ whileElementsMounted: P,
17899
+ middleware: [D$1(5), b$1({
17900
+ fallbackAxisSideDirection: 'start',
17901
+ crossAxis: placement.includes('-')
17902
+ }), k({
17903
+ padding: 8
17904
+ })]
17905
+ });
17906
+ var context = data.context;
17907
+ var hover = useHover(context, {
17908
+ move: false,
17909
+ enabled: controlledOpen == null
17910
+ });
17911
+ var focus = useFocus(context, {
17912
+ enabled: controlledOpen == null
17913
+ });
17914
+ var dismiss = useDismiss(context);
17915
+ var role = useRole(context, {
17916
+ role: 'tooltip'
17917
+ });
17918
+ var interactions = useInteractions([hover, focus, dismiss, role]);
17919
+ return useMemo(function () {
17920
+ return Object.assign(Object.assign({
17921
+ open: open,
17922
+ setOpen: setOpen
17923
+ }, interactions), data);
17924
+ }, [open, setOpen, interactions, data]);
17925
+ }
17926
+ var TooltipContext = /*#__PURE__*/createContext(null);
17927
+ var useTooltipContext = function useTooltipContext() {
17928
+ var context = useContext(TooltipContext);
17929
+ if (context == null) {
17930
+ throw new Error('Tooltip components must be wrapped in <Tooltip />');
17931
+ }
17932
+ return context;
17857
17933
  };
17858
17934
 
17859
- var _g$1;
17860
- function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
17861
- var SvgManualValveIcon = function SvgManualValveIcon(props) {
17862
- return /*#__PURE__*/React.createElement("svg", _extends$4({
17863
- width: 24,
17864
- height: 24,
17865
- fill: "none",
17866
- xmlns: "http://www.w3.org/2000/svg"
17867
- }, props), _g$1 || (_g$1 = /*#__PURE__*/React.createElement("g", {
17868
- fill: "#fff"
17869
- }, /*#__PURE__*/React.createElement("path", {
17870
- d: "m4 8.3 5.8 4.8L4 17.8V8.3ZM2 4.1v18l11-9-11-9Z"
17871
- }), /*#__PURE__*/React.createElement("path", {
17872
- d: "M20 8.3v9.6L14.1 13 20 8.3ZM22 4l-11 9 11 9V4Z"
17873
- }), /*#__PURE__*/React.createElement("path", {
17874
- d: "M13 3.7h-2v9.8h2V3.7Z"
17875
- }), /*#__PURE__*/React.createElement("path", {
17876
- d: "M15 4H9c-.5 0-1-.4-1-1s.4-1 1-1h6c.6 0 1 .4 1 1s-.5 1-1 1Z"
17877
- }))));
17878
- };
17935
+ function Tooltip(_a) {
17936
+ var children = _a.children,
17937
+ options = __rest(_a, ["children"]);
17938
+ // The hook accepts props as options or other positioning attributes
17939
+ var tooltip = useTooltip(options);
17940
+ return /*#__PURE__*/React__default.createElement(TooltipContext.Provider, {
17941
+ value: tooltip
17942
+ }, children);
17943
+ }
17944
+ var TooltipAnchor = /*#__PURE__*/forwardRef(function TooltipAnchor(_a, propRef) {
17945
+ var children = _a.children,
17946
+ props = __rest(_a, ["children"]);
17947
+ var context = useTooltipContext();
17948
+ var childrenRef = children.ref;
17949
+ var ref = useMergeRefs([context.refs.setReference, propRef, childrenRef]);
17950
+ if ( /*#__PURE__*/isValidElement(children)) {
17951
+ return /*#__PURE__*/cloneElement(children, context.getReferenceProps(Object.assign(Object.assign(Object.assign({
17952
+ ref: ref
17953
+ }, props), children.props), {
17954
+ 'data-state': context.open ? 'open' : 'closed'
17955
+ })));
17956
+ }
17957
+ return /*#__PURE__*/React__default.createElement("div", Object.assign({
17958
+ ref: ref,
17959
+ "data-state": context.open ? 'open' : 'closed'
17960
+ }, context.getReferenceProps(props)), children);
17961
+ });
17962
+ var TooltipContent = /*#__PURE__*/forwardRef(function TooltipContent(props, propRef) {
17963
+ var _a, _b;
17964
+ var context = useTooltipContext();
17965
+ var ref = useMergeRefs([context.refs.setFloating, propRef]);
17966
+ return /*#__PURE__*/React__default.createElement(FloatingPortal, null, context.open && /*#__PURE__*/React__default.createElement("div", Object.assign({
17967
+ ref: ref,
17968
+ style: Object.assign({
17969
+ position: context.strategy,
17970
+ top: (_a = context.y) !== null && _a !== void 0 ? _a : 0,
17971
+ left: (_b = context.x) !== null && _b !== void 0 ? _b : 0,
17972
+ visibility: context.x == null ? 'hidden' : 'visible'
17973
+ }, props.style)
17974
+ }, context.getFloatingProps(props))));
17975
+ });
17879
17976
 
17880
- var _path$1;
17881
- function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
17882
- var SvgSignalIcon = function SvgSignalIcon(props) {
17883
- return /*#__PURE__*/React.createElement("svg", _extends$3({
17884
- width: 24,
17885
- height: 24,
17886
- fill: "none",
17887
- xmlns: "http://www.w3.org/2000/svg"
17888
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
17889
- d: "M14.1 20c-.6 0-1.1-.4-1.2-1l-1.2-8.5-.7 4c-.1.5-.5.9-1.1 1-.5 0-1-.3-1.2-.8l-.4-1-.4 2.3H2c-.6 0-1-.4-1-1s.4-1 1-1h4.2l.6-3.6c.1-.5.5-.9 1.1-1 .5 0 1 .3 1.2.8l.4 1L10.6 5c.1-.6.6-1 1.2-1s1.1.4 1.2 1l1.2 8.4.8-4.7c.1-.6.5-1 1.1-1 .6 0 1.1.3 1.2.9l1.5 5.5H22c.6 0 1 .4 1 1s-.4 1-1 1h-4.8l-1-3.4-1 6.4c-.1.5-.6.9-1.1.9Z",
17890
- fill: "#fff"
17891
- })));
17892
- };
17977
+ var EchoTooltip = Object.freeze({
17978
+ Tooltip: Tooltip,
17979
+ TooltipAnchor: TooltipAnchor,
17980
+ TooltipContent: TooltipContent
17981
+ });
17893
17982
 
17894
- var _path;
17895
- function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
17896
- var SvgTagIcon = function SvgTagIcon(props) {
17897
- return /*#__PURE__*/React.createElement("svg", _extends$2({
17898
- width: 24,
17899
- height: 24,
17900
- fill: "none",
17901
- xmlns: "http://www.w3.org/2000/svg"
17902
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
17903
- fillRule: "evenodd",
17904
- clipRule: "evenodd",
17905
- d: "m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42ZM13 20.01 4 11V4h7v-.01l9 9-7 7.02ZM5 6.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z",
17906
- fill: "#fff"
17907
- })));
17908
- };
17983
+ var css_248z$n = ".floatingActionButton-module_button__-08q2.floatingActionButton-module_primary__Os-YA{background:rgba(0,0,0,.8);color:var(--white)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_primary__Os-YA:hover{background:rgba(0,0,0,.9);color:var(--white)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_active__nXRwO{background:var(--equiGreen3);border:1px solid var(--echoText);color:var(--echoText)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_active__nXRwO:hover{background:var(--equiGreen4);border:1px solid var(--echoText);color:var(--echoText)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_circle_icon__mdkpf{min-height:48px;min-width:48px}.floatingActionButton-module_button__-08q2.floatingActionButton-module_square_icon__aAEVQ{border-radius:4px;min-height:48px;min-width:48px}.floatingActionButton-module_button__-08q2.floatingActionButton-module_square_icon__aAEVQ:hover{border-radius:4px}";
17984
+ var style$3 = {"button":"floatingActionButton-module_button__-08q2","primary":"floatingActionButton-module_primary__Os-YA","active":"floatingActionButton-module_active__nXRwO","circle_icon":"floatingActionButton-module_circle_icon__mdkpf","square_icon":"floatingActionButton-module_square_icon__aAEVQ"};
17985
+ styleInject(css_248z$n);
17909
17986
 
17910
- var _g, _defs;
17911
- function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
17912
- var SvgTelecomIcon = function SvgTelecomIcon(props) {
17913
- return /*#__PURE__*/React.createElement("svg", _extends$1({
17914
- width: 24,
17915
- height: 24,
17916
- fill: "none",
17917
- xmlns: "http://www.w3.org/2000/svg"
17918
- }, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
17919
- clipPath: "url(#Telecom-icon_svg__a)",
17920
- fill: "#fff"
17921
- }, /*#__PURE__*/React.createElement("path", {
17922
- d: "m14.656 12.239 1.802-.63c-1.25-3.568-4.024-3.988-4.148-4.007l-.277 1.889c.077.01 1.774.324 2.623 2.748ZM12.844 4.263l-.496 1.841c.143.038 3.586 1.04 5.626 5.648l1.745-.773c-2.422-5.486-6.694-6.669-6.875-6.716Z"
17923
- }), /*#__PURE__*/React.createElement("path", {
17924
- d: "m13.168 1-.648 1.794c.057.019 5.96 2.203 8.716 8.939L23 11.008C19.92 3.5 13.435 1.095 13.168 1ZM12.749 15.32a3 3 0 0 0 .219-1.097 3.14 3.14 0 0 0-3.137-3.139c-.41 0-.811.077-1.173.23l-4.254-4.18a1.124 1.124 0 0 0-.81-.333c-.372 0-.744.18-.973.515C.161 10.903.41 16.598 4.004 20.119c1.993 1.956 4.634 2.872 7.19 2.872 2.06 0 4.063-.592 5.646-1.718.59-.42.667-1.278.152-1.793l-4.243-4.16Zm-1.555 5.772c-2.25 0-4.33-.83-5.855-2.328-2.775-2.719-2.956-6.878-1.593-9.607l4.034 3.96.858.848c.124-.553.592-.982 1.183-.982.677 0 1.23.553 1.23 1.23 0 .582-.41 1.05-.954 1.183l1.46 1.44 3.413 3.35c-1.096.582-2.412.906-3.776.906Z"
17925
- }))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
17926
- id: "Telecom-icon_svg__a"
17927
- }, /*#__PURE__*/React.createElement("path", {
17928
- fill: "#fff",
17929
- d: "M1 1h22v22H1z"
17930
- })))));
17987
+ var getEdsVariant = function getEdsVariant(echoVariant) {
17988
+ switch (echoVariant) {
17989
+ case 'square_icon_with_text':
17990
+ return 'contained';
17991
+ case 'square_icon':
17992
+ case 'circle_icon':
17993
+ default:
17994
+ return 'contained_icon';
17995
+ }
17931
17996
  };
17932
-
17933
- var TagCategoryType;
17934
- (function (TagCategoryType) {
17935
- TagCategoryType["Electrical"] = "electrical";
17936
- TagCategoryType["MainEquipment"] = "main equipment";
17937
- TagCategoryType["Line"] = "line";
17938
- TagCategoryType["ManualValve"] = "manual valve";
17939
- TagCategoryType["CircuitAndStarter"] = "circuit";
17940
- TagCategoryType["Instrument"] = "instrument";
17941
- TagCategoryType["Cable"] = "cable";
17942
- TagCategoryType["Function"] = "function";
17943
- TagCategoryType["Signal"] = "signal";
17944
- TagCategoryType["Telecom"] = "telecom";
17945
- TagCategoryType["JunctionBox"] = "junction box";
17946
- TagCategoryType["Administrative"] = "administrative";
17947
- })(TagCategoryType || (TagCategoryType = {}));
17948
- /**
17949
- * Method that returns the relevant Icon for the tagCategoryDescription provided
17950
- * Tag icon is the default JSX.Element Icon returned
17951
- * @export
17952
- * @param {('electrical'
17953
- * | 'main equipment'
17954
- * | 'line'
17955
- * | 'manual valve'
17956
- * | 'circuit/starter'
17957
- * | 'instrument'
17958
- * | 'cable'
17959
- * | 'function'
17960
- * | 'signal'
17961
- * | 'telecom'
17962
- * | 'junction box'
17963
- * | 'administrative'
17964
- * @return {*} {JSX.Element} Relevant icon for the provided tagCategoryDescription
17965
- */
17966
- var TagCategoryIcon = function TagCategoryIcon(_ref) {
17967
- var tagCategoryDescription = _ref.tagCategoryDescription;
17968
- var tagCategory = tagCategoryDescription.toLocaleLowerCase().toString();
17969
- switch (tagCategory.includes(tagCategory)) {
17970
- case isGivenTagCategory(tagCategory, TagCategoryType.Electrical):
17971
- return /*#__PURE__*/React__default.createElement(SvgElectricalIcon, {
17972
- "aria-label": 'electrical'
17973
- });
17974
- case isGivenTagCategory(tagCategory, TagCategoryType.MainEquipment):
17975
- return /*#__PURE__*/React__default.createElement(SvgMainEquipmentIcon, {
17976
- "aria-label": 'main equipment'
17977
- });
17978
- case isGivenTagCategory(tagCategory, TagCategoryType.Line):
17979
- return /*#__PURE__*/React__default.createElement(SvgLineIcon, {
17980
- "aria-label": 'line'
17981
- });
17982
- case isGivenTagCategory(tagCategory, TagCategoryType.ManualValve):
17983
- return /*#__PURE__*/React__default.createElement(SvgManualValveIcon, {
17984
- "aria-label": 'manual valve'
17985
- });
17986
- case isGivenTagCategory(tagCategory, TagCategoryType.CircuitAndStarter):
17987
- return /*#__PURE__*/React__default.createElement(SvgCircuitIcon, {
17988
- "aria-label": 'circuit/starter'
17989
- });
17990
- case isGivenTagCategory(tagCategory, TagCategoryType.Instrument):
17991
- return /*#__PURE__*/React__default.createElement(SvgInstrumentIcon, {
17992
- "aria-label": 'instrument'
17993
- });
17994
- case isGivenTagCategory(tagCategory, TagCategoryType.Cable):
17995
- return /*#__PURE__*/React__default.createElement(SvgCableIcon, {
17996
- "aria-label": 'cable'
17997
- });
17998
- case isGivenTagCategory(tagCategory, TagCategoryType.Function):
17999
- return /*#__PURE__*/React__default.createElement(SvgFunctionIcon, {
18000
- "aria-label": 'function'
18001
- });
18002
- case isGivenTagCategory(tagCategory, TagCategoryType.Signal):
18003
- return /*#__PURE__*/React__default.createElement(SvgSignalIcon, {
18004
- "aria-label": 'signal'
18005
- });
18006
- case isGivenTagCategory(tagCategory, TagCategoryType.Telecom):
18007
- return /*#__PURE__*/React__default.createElement(SvgTelecomIcon, {
18008
- "aria-label": 'telecom'
18009
- });
18010
- case isGivenTagCategory(tagCategory, TagCategoryType.JunctionBox):
18011
- return /*#__PURE__*/React__default.createElement(SvgJunctionBoxIcon, {
18012
- "aria-label": 'junction box'
18013
- });
18014
- case isGivenTagCategory(tagCategory, TagCategoryType.Administrative):
17997
+ var getEchoVariantStyle = function getEchoVariantStyle(echoVariant) {
17998
+ switch (echoVariant) {
17999
+ case 'circle_icon':
18000
+ return style$3.circle_icon;
18001
+ case 'square_icon':
18002
+ return style$3.square_icon;
18003
+ case 'square_icon_with_text':
18015
18004
  default:
18016
- return /*#__PURE__*/React__default.createElement(SvgTagIcon, {
18017
- "aria-label": 'tag'
18018
- });
18005
+ return '';
18019
18006
  }
18020
18007
  };
18021
- function isGivenTagCategory(tagCategoryDescription, tagCategoryType) {
18022
- return tagCategoryDescription.includes(tagCategoryType);
18023
- }
18024
-
18025
- function getIcon(tagCategoryDescription) {
18026
- return /*#__PURE__*/React__default.createElement(TagCategoryIcon, {
18027
- tagCategoryDescription: tagCategoryDescription
18028
- });
18029
- }
18008
+ /**
18009
+ * Floating actions buttons exists within the viewport, seperated from any sheet, dialog or menu
18010
+ * and are typically used for special actions pertaining to the module they are used in.
18011
+ * @return {*} {JSX.Element} Floating actions button
18012
+ */
18013
+ var FloatingActionButton = function FloatingActionButton(_ref) {
18014
+ var label = _ref.label,
18015
+ iconName = _ref.iconName,
18016
+ ariaLabel = _ref.ariaLabel,
18017
+ variant = _ref.variant,
18018
+ disabled = _ref.disabled,
18019
+ active = _ref.active,
18020
+ onClick = _ref.onClick;
18021
+ return /*#__PURE__*/React__default.createElement(Button, {
18022
+ "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : label,
18023
+ onClick: onClick,
18024
+ className: "".concat(style$3.button, " ").concat(!disabled && style$3.primary, " ").concat(active && style$3.active, " ").concat(getEchoVariantStyle(variant)),
18025
+ variant: getEdsVariant(variant),
18026
+ disabled: disabled !== null && disabled !== void 0 ? disabled : false
18027
+ }, /*#__PURE__*/React__default.createElement(Icon$1, {
18028
+ name: iconName,
18029
+ className: style$3.icon
18030
+ }), variant === 'square_icon_with_text' && label);
18031
+ };
18030
18032
 
18031
18033
  var useEventListener = function useEventListener(eventName, handler, options) {
18032
18034
  var element = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : document;
@@ -18348,7 +18350,7 @@ function SuggestionGroup(_ref3) {
18348
18350
  color: 'white'
18349
18351
  }
18350
18352
  }, suggestionGroup.title)), (_a = suggestionGroup.options) === null || _a === void 0 ? void 0 : _a.map(function (suggestion, index) {
18351
- var className = classnames$1(style$2.item, _defineProperty$1({}, style$2.activeItem, index === focusedOption));
18353
+ var className = classnames$3(style$2.item, _defineProperty$1({}, style$2.activeItem, index === focusedOption));
18352
18354
  return /*#__PURE__*/React__default.createElement("li", {
18353
18355
  role: 'option',
18354
18356
  id: suggestion.id,
@@ -18482,8 +18484,8 @@ function MainLegend(_ref) {
18482
18484
  }).join(' ');
18483
18485
  return undefined;
18484
18486
  };
18485
- var accordion = classnames$1((_classnames = {}, _defineProperty$1(_classnames, styles$i.accordionMobile, isMobile), _defineProperty$1(_classnames, styles$i.accordionDesktop, !isMobile), _classnames));
18486
- var content = classnames$1((_classnames2 = {}, _defineProperty$1(_classnames2, styles$i.contentMobile, isMobile), _defineProperty$1(_classnames2, styles$i.content, !isMobile), _classnames2));
18487
+ var accordion = classnames$3((_classnames = {}, _defineProperty$1(_classnames, styles$i.accordionMobile, isMobile), _defineProperty$1(_classnames, styles$i.accordionDesktop, !isMobile), _classnames));
18488
+ var content = classnames$3((_classnames2 = {}, _defineProperty$1(_classnames2, styles$i.contentMobile, isMobile), _defineProperty$1(_classnames2, styles$i.content, !isMobile), _classnames2));
18487
18489
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isOpen && /*#__PURE__*/React__default.createElement("div", {
18488
18490
  style: legendContentStyle,
18489
18491
  className: content
@@ -18546,8 +18548,8 @@ function LayerLegend(_ref) {
18546
18548
  return !isOpen;
18547
18549
  });
18548
18550
  };
18549
- var left = classnames$1((_classnames = {}, _defineProperty$1(_classnames, styles$h.leftActive, isOpen), _defineProperty$1(_classnames, styles$h.leftInactive, !isOpen), _classnames));
18550
- var header = classnames$1((_classnames2 = {}, _defineProperty$1(_classnames2, styles$h.mobileHeader, isMobile), _defineProperty$1(_classnames2, styles$h.desktopHeader, !isMobile), _classnames2));
18551
+ var left = classnames$3((_classnames = {}, _defineProperty$1(_classnames, styles$h.leftActive, isOpen), _defineProperty$1(_classnames, styles$h.leftInactive, !isOpen), _classnames));
18552
+ var header = classnames$3((_classnames2 = {}, _defineProperty$1(_classnames2, styles$h.mobileHeader, isMobile), _defineProperty$1(_classnames2, styles$h.desktopHeader, !isMobile), _classnames2));
18551
18553
  return /*#__PURE__*/React__default.createElement("div", {
18552
18554
  style: style,
18553
18555
  className: styles$h.layerLegendContainer
@@ -18593,7 +18595,7 @@ function ListItem(props) {
18593
18595
  var caption = resolvePropToComponent('caption', props.caption);
18594
18596
  // Container styling
18595
18597
  var Container = (_a = props.as) !== null && _a !== void 0 ? _a : 'li';
18596
- var containerClassNames = classnames$1(styles$g.listItemContainer, _defineProperty$1({}, styles$g.hoverItem, !!props.onCardClick), props.className);
18598
+ var containerClassNames = classnames$3(styles$g.listItemContainer, _defineProperty$1({}, styles$g.hoverItem, !!props.onCardClick), props.className);
18597
18599
  return /*#__PURE__*/React__default.createElement(Container, {
18598
18600
  className: containerClassNames,
18599
18601
  style: props.style,
@@ -23271,7 +23273,7 @@ var MenuButton = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
23271
23273
  type: "button",
23272
23274
  onClick: onClick,
23273
23275
  id: id,
23274
- className: classnames$2(styles$b.button, _defineProperty$1({}, styles$b.active, active))
23276
+ className: classnames$1(styles$b.button, _defineProperty$1({}, styles$b.active, active))
23275
23277
  }, children, /*#__PURE__*/React__default.createElement(Typography, {
23276
23278
  className: styles$b.text
23277
23279
  }, text));
@@ -24536,7 +24538,7 @@ var PanelWrapper = function PanelWrapper(_ref) {
24536
24538
  className: styles$a.buttonWrapper,
24537
24539
  ref: desktopWrapperRef
24538
24540
  }, renderMenuItemsBasedOnRef((_b = desktopWrapperRef.current) === null || _b === void 0 ? void 0 : _b.clientHeight))), !((_c = getActivePanel(activePanel)) === null || _c === void 0 ? void 0 : _c.skipPanelContent) && /*#__PURE__*/React__default.createElement("div", {
24539
- className: classnames$2(styles$a.contentPanel, (_classnames = {}, _defineProperty$1(_classnames, styles$a.narrowPanel, panelSize === 'narrow' && activePanel), _defineProperty$1(_classnames, styles$a.activeContentPanel, activePanel), _classnames))
24541
+ className: classnames$1(styles$a.contentPanel, (_classnames = {}, _defineProperty$1(_classnames, styles$a.narrowPanel, panelSize === 'narrow' && activePanel), _defineProperty$1(_classnames, styles$a.activeContentPanel, activePanel), _classnames))
24540
24542
  }, getPanelComponentForActivePanel(activePanel)));
24541
24543
  };
24542
24544
 
@@ -24603,7 +24605,7 @@ var PanelContent = function PanelContent(_ref) {
24603
24605
  })), /*#__PURE__*/React__default.createElement(Typography, {
24604
24606
  group: "heading",
24605
24607
  variant: "h2",
24606
- className: classnames$1((_classnames = {}, _defineProperty$1(_classnames, styles$9.narrowPanelTitleWithBackButton, panelSize === 'narrow' && !!backToMainPanel), _defineProperty$1(_classnames, styles$9.narrowPanelTitleWithoutBackButton, panelSize === 'narrow' && !backToMainPanel), _defineProperty$1(_classnames, styles$9.panelTitleWithBackButton, panelSize !== 'narrow' && !!backToMainPanel), _defineProperty$1(_classnames, styles$9.panelTitle, panelSize !== 'narrow' && !backToMainPanel), _classnames))
24608
+ className: classnames$3((_classnames = {}, _defineProperty$1(_classnames, styles$9.narrowPanelTitleWithBackButton, panelSize === 'narrow' && !!backToMainPanel), _defineProperty$1(_classnames, styles$9.narrowPanelTitleWithoutBackButton, panelSize === 'narrow' && !backToMainPanel), _defineProperty$1(_classnames, styles$9.panelTitleWithBackButton, panelSize !== 'narrow' && !!backToMainPanel), _defineProperty$1(_classnames, styles$9.panelTitle, panelSize !== 'narrow' && !backToMainPanel), _classnames))
24607
24609
  }, header), /*#__PURE__*/React__default.createElement(Button, {
24608
24610
  variant: "ghost_icon",
24609
24611
  onClick: function onClick() {
@@ -24682,7 +24684,7 @@ var SidebarButton = function SidebarButton(_ref) {
24682
24684
  onClick: onClick,
24683
24685
  id: id,
24684
24686
  "aria-pressed": active,
24685
- className: classnames$2(styles$8.button, (_classnames = {}, _defineProperty$1(_classnames, styles$8.leftBarButton, buttonPosition === 'left'), _defineProperty$1(_classnames, styles$8.rightBarButton, buttonPosition === 'right'), _defineProperty$1(_classnames, styles$8.bottomBarButton, buttonPosition === 'bottom'), _defineProperty$1(_classnames, styles$8.tabButton, buttonPosition === 'tab'), _classnames))
24687
+ className: classnames$1(styles$8.button, (_classnames = {}, _defineProperty$1(_classnames, styles$8.leftBarButton, buttonPosition === 'left'), _defineProperty$1(_classnames, styles$8.rightBarButton, buttonPosition === 'right'), _defineProperty$1(_classnames, styles$8.bottomBarButton, buttonPosition === 'bottom'), _defineProperty$1(_classnames, styles$8.tabButton, buttonPosition === 'tab'), _classnames))
24686
24688
  }, children, count && count > 1 && /*#__PURE__*/React__default.createElement("span", {
24687
24689
  className: styles$8.tabItemCount
24688
24690
  }, count), /*#__PURE__*/React__default.createElement(Typography, {
@@ -24857,7 +24859,7 @@ function Left(_ref) {
24857
24859
  _useState2 = _slicedToArray(_useState, 2),
24858
24860
  isMinimized = _useState2[0],
24859
24861
  setIsMinimized = _useState2[1];
24860
- var containerClassName = classnames$1(styles$5.left, _defineProperty$1({}, styles$5.collapsedLeft, isMinimized), className);
24862
+ var containerClassName = classnames$3(styles$5.left, _defineProperty$1({}, styles$5.collapsedLeft, isMinimized), className);
24861
24863
  return /*#__PURE__*/React__default.createElement("div", {
24862
24864
  className: containerClassName,
24863
24865
  style: style
@@ -24888,7 +24890,7 @@ function SplitView$1(_ref) {
24888
24890
  var className = _ref.className,
24889
24891
  style = _ref.style,
24890
24892
  children = _ref.children;
24891
- var containerClass = classnames$1(styles$4.container, className);
24893
+ var containerClass = classnames$3(styles$4.container, className);
24892
24894
  return /*#__PURE__*/React__default.createElement("div", {
24893
24895
  className: containerClass,
24894
24896
  style: style
@@ -24898,7 +24900,7 @@ function Right(_ref2) {
24898
24900
  var className = _ref2.className,
24899
24901
  style = _ref2.style,
24900
24902
  children = _ref2.children;
24901
- var containerClass = classnames$1(styles$4.right, className);
24903
+ var containerClass = classnames$3(styles$4.right, className);
24902
24904
  return /*#__PURE__*/React__default.createElement("div", {
24903
24905
  className: containerClass,
24904
24906
  style: style
@@ -25547,5 +25549,5 @@ var OptionsList = function OptionsList(_ref) {
25547
25549
  }));
25548
25550
  };
25549
25551
 
25550
- export { BlackLink, ButtonWithPopover, ContextMenu, CopyToClipboard, DataInfoButton, DialogGenerator, DraggableItemsWrapper, Dropdown, EchoBottomBar, EchoCard, EchoHeader, EchoTooltip, FloatingActionButton, FloatingSearchBar, Icon, IconList, InlineTagIconLink, LayerLegend, LinkCard, ListItem, ListRow, MainLegend, MenuButton, OptionsList, Panel, PanelContent, PanelContentWrapper, PanelWrapper, RadioButtonGroup, ReactDatePicker, RoundIconButton, RoundIconButtonVariants, SideSheet, SideSheetOrientation, SidebarButton, SliderField, SplitView, TagCategoryIcon, TagCategoryType, TagContextMenu, TagIcon, TagIconShadowWrapper, TextIconButton, TimePicker, WorkOrderListItem, classnames$1 as classnames, echoIcons, getIcon, map_legend_info, notifications_m1, notifications_m2, notifications_m3, notifications_m4, notifications_m5, notifications_m6, notifications_m9, notifications_main_group, punches_main_group, punches_pa, punches_pb, robim_external_ald, robim_external_iwit, robim_external_timp, robim_external_timp_text, themeConst, useIsMobile, useKeyboardNavigation, useListNavigator, usePanelStore, useSectionNavigator, workorders_main_group, workorders_pm01, workorders_pm02, workorders_pm03, workorders_pm04, workorders_pm05, workorders_pm06, workorders_pm10, workorders_pm15, workorders_pm20 };
25552
+ export { BlackLink, ButtonWithPopover, ContextMenu, CopyToClipboard, DataInfoButton, DialogGenerator, DraggableItemsWrapper, Dropdown, EchoBottomBar, EchoCard, EchoHeader, EchoTooltip, FloatingActionButton, FloatingSearchBar, Icon, IconList, InlineTagIconLink, LayerLegend, LinkCard, ListItem, ListRow, MainLegend, MenuButton, OptionsList, Panel, PanelContent, PanelContentWrapper, PanelWrapper, RadioButtonGroup, ReactDatePicker, RoundIconButton, RoundIconButtonVariants, SideSheet, SideSheetOrientation, SidebarButton, SliderField, SplitView, TagCategoryIcon, TagCategoryType, TagContextMenu, TagIcon, TagIconShadowWrapper, TextIconButton, TimePicker, WorkOrderListItem, classnames$3 as classnames, echoIcons, getIcon, map_legend_info, notifications_m1, notifications_m2, notifications_m3, notifications_m4, notifications_m5, notifications_m6, notifications_m9, notifications_main_group, punches_main_group, punches_pa, punches_pb, robim_external_ald, robim_external_iwit, robim_external_timp, robim_external_timp_text, themeConst, useIsMobile, useKeyboardNavigation, useListNavigator, usePanelStore, useSectionNavigator, workorders_main_group, workorders_pm01, workorders_pm02, workorders_pm03, workorders_pm04, workorders_pm05, workorders_pm06, workorders_pm10, workorders_pm15, workorders_pm20 };
25551
25553
  //# sourceMappingURL=index.js.map