@iobroker/adapter-react-v5 3.0.0 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/Components/CustomModal.js +168 -0
  2. package/Components/CustomModal.js.map +1 -0
  3. package/Components/JsonConfigComponent/ChipInput.js +17 -16
  4. package/Components/JsonConfigComponent/ChipInput.js.map +1 -1
  5. package/Components/JsonConfigComponent/ConfigAlive.js +5 -3
  6. package/Components/JsonConfigComponent/ConfigAlive.js.map +1 -1
  7. package/Components/JsonConfigComponent/ConfigCRON.js +2 -2
  8. package/Components/JsonConfigComponent/ConfigCRON.js.map +1 -1
  9. package/Components/JsonConfigComponent/ConfigCertificateSelect.js +7 -5
  10. package/Components/JsonConfigComponent/ConfigCertificateSelect.js.map +1 -1
  11. package/Components/JsonConfigComponent/ConfigCheckbox.js +8 -6
  12. package/Components/JsonConfigComponent/ConfigCheckbox.js.map +1 -1
  13. package/Components/JsonConfigComponent/ConfigChip.js +5 -3
  14. package/Components/JsonConfigComponent/ConfigChip.js.map +1 -1
  15. package/Components/JsonConfigComponent/ConfigColor.js +9 -7
  16. package/Components/JsonConfigComponent/ConfigColor.js.map +1 -1
  17. package/Components/JsonConfigComponent/ConfigCoordinates.js +1 -1
  18. package/Components/JsonConfigComponent/ConfigCoordinates.js.map +1 -1
  19. package/Components/JsonConfigComponent/ConfigCustomEasyAccess.js +12 -10
  20. package/Components/JsonConfigComponent/ConfigCustomEasyAccess.js.map +1 -1
  21. package/Components/JsonConfigComponent/ConfigGeneric.js +3 -3
  22. package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -1
  23. package/Components/JsonConfigComponent/ConfigIP.js +7 -5
  24. package/Components/JsonConfigComponent/ConfigIP.js.map +1 -1
  25. package/Components/JsonConfigComponent/ConfigInstanceSelect.js +8 -6
  26. package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +1 -1
  27. package/Components/JsonConfigComponent/ConfigJsonEditor.js +10 -8
  28. package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
  29. package/Components/JsonConfigComponent/ConfigLanguage.js +7 -5
  30. package/Components/JsonConfigComponent/ConfigLanguage.js.map +1 -1
  31. package/Components/JsonConfigComponent/ConfigNumber.js +1 -1
  32. package/Components/JsonConfigComponent/ConfigNumber.js.map +1 -1
  33. package/Components/JsonConfigComponent/ConfigObjectId.js +1 -1
  34. package/Components/JsonConfigComponent/ConfigObjectId.js.map +1 -1
  35. package/Components/JsonConfigComponent/ConfigPassword.js +1 -1
  36. package/Components/JsonConfigComponent/ConfigPassword.js.map +1 -1
  37. package/Components/JsonConfigComponent/ConfigPattern.js +7 -5
  38. package/Components/JsonConfigComponent/ConfigPattern.js.map +1 -1
  39. package/Components/JsonConfigComponent/ConfigSelect.js +6 -4
  40. package/Components/JsonConfigComponent/ConfigSelect.js.map +1 -1
  41. package/Components/JsonConfigComponent/ConfigSelectSendTo.js +5 -5
  42. package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +1 -1
  43. package/Components/JsonConfigComponent/ConfigSendto.js +5 -5
  44. package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
  45. package/Components/JsonConfigComponent/ConfigSetState.js +3 -3
  46. package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
  47. package/Components/JsonConfigComponent/ConfigStaticDivider.js +4 -2
  48. package/Components/JsonConfigComponent/ConfigStaticDivider.js.map +1 -1
  49. package/Components/JsonConfigComponent/ConfigStaticHeader.js +3 -1
  50. package/Components/JsonConfigComponent/ConfigStaticHeader.js.map +1 -1
  51. package/Components/JsonConfigComponent/ConfigStaticImage.js +3 -1
  52. package/Components/JsonConfigComponent/ConfigStaticImage.js.map +1 -1
  53. package/Components/JsonConfigComponent/ConfigStaticText.js +1 -1
  54. package/Components/JsonConfigComponent/ConfigStaticText.js.map +1 -1
  55. package/Components/JsonConfigComponent/ConfigTable.js +1 -1
  56. package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
  57. package/Components/JsonConfigComponent/ConfigTextSendTo.js +2 -2
  58. package/Components/JsonConfigComponent/ConfigTextSendTo.js.map +1 -1
  59. package/Components/JsonConfigComponent/ConfigUser.js +2 -2
  60. package/Components/JsonConfigComponent/ConfigUser.js.map +1 -1
  61. package/Components/JsonConfigComponent/index.js +1 -1
  62. package/Components/JsonConfigComponent/index.js.map +1 -1
  63. package/Components/UploadImage.js +357 -0
  64. package/Components/UploadImage.js.map +1 -0
  65. package/README.md +1 -1
  66. package/package.json +3 -1
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = void 0;
11
+
12
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _propTypes = _interopRequireDefault(require("prop-types"));
17
+
18
+ var _clsx = _interopRequireDefault(require("clsx"));
19
+
20
+ var _Button = _interopRequireDefault(require("@mui/material/Button"));
21
+
22
+ var _material = require("@mui/material");
23
+
24
+ var _styles = require("@mui/styles");
25
+
26
+ var _Check = _interopRequireDefault(require("@mui/icons-material/Check"));
27
+
28
+ var _Close = _interopRequireDefault(require("@mui/icons-material/Close"));
29
+
30
+ var _i18n = _interopRequireDefault(require("../i18n"));
31
+
32
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33
+
34
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
+
36
+ var styles = function styles(theme) {
37
+ return {
38
+ modalWrapper: {
39
+ position: 'relative',
40
+ '[class*="MuiPaper-root MuiDialog-paper MuiPaper-elevation24 MuiDialog-paperScrollPaper MuiDialog-paperWidthXl MuiPaper-elevation24 MuiPaper-rounded"]': {
41
+ backgroundColor: '#f6f6f6'
42
+ }
43
+ },
44
+ modalDialog: {
45
+ minWidth: 400
46
+ },
47
+ overflowHidden: {
48
+ display: 'flex',
49
+ overflow: 'hidden'
50
+ },
51
+ titleIcon: {
52
+ marginRight: 5
53
+ },
54
+ content: {
55
+ fontSize: 16
56
+ }
57
+ };
58
+ };
59
+
60
+ var CustomModal = function CustomModal(_ref) {
61
+ var title = _ref.title,
62
+ fullWidth = _ref.fullWidth,
63
+ help = _ref.help,
64
+ maxWidth = _ref.maxWidth,
65
+ progress = _ref.progress,
66
+ icon = _ref.icon,
67
+ applyDisabled = _ref.applyDisabled,
68
+ applyButton = _ref.applyButton,
69
+ classes = _ref.classes,
70
+ open = _ref.open,
71
+ onClose = _ref.onClose,
72
+ children = _ref.children,
73
+ titleButtonApply = _ref.titleButtonApply,
74
+ titleButtonClose = _ref.titleButtonClose,
75
+ onApply = _ref.onApply,
76
+ textInput = _ref.textInput,
77
+ defaultValue = _ref.defaultValue,
78
+ overflowHidden = _ref.overflowHidden;
79
+
80
+ var _useState = (0, _react.useState)(defaultValue),
81
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
82
+ value = _useState2[0],
83
+ setValue = _useState2[1];
84
+
85
+ (0, _react.useEffect)(function () {
86
+ setValue(defaultValue);
87
+ }, [defaultValue]);
88
+ var Icon = null;
89
+
90
+ if (icon) {
91
+ Icon = icon;
92
+ }
93
+
94
+ return /*#__PURE__*/_react["default"].createElement(_material.Dialog, {
95
+ open: open,
96
+ maxWidth: maxWidth || 'md',
97
+ fullWidth: !!fullWidth,
98
+ disableEscapeKeyDown: false,
99
+ onClose: onClose,
100
+ classes: {
101
+ paper: classes.modalDialog
102
+ /*paper: classes.background*/
103
+
104
+ },
105
+ className: classes.modalWrapper
106
+ }, title && /*#__PURE__*/_react["default"].createElement(_material.DialogTitle, null, icon ? /*#__PURE__*/_react["default"].createElement(Icon, {
107
+ className: classes.titleIcon
108
+ }) : null, title), /*#__PURE__*/_react["default"].createElement(_material.DialogContent, {
109
+ className: (0, _clsx["default"])(overflowHidden ? classes.overflowHidden : null, classes.content)
110
+ }, textInput && /*#__PURE__*/_react["default"].createElement(_material.TextField // className={className}
111
+ , {
112
+ autoComplete: "off",
113
+ fullWidth: true,
114
+ autoFocus: true,
115
+ variant: "outlined",
116
+ size: "medium" // rows={10}
117
+ ,
118
+ multiline: true,
119
+ value: value,
120
+ onChange: function onChange(e) {
121
+ return setValue(e.target.value);
122
+ } // customValue
123
+
124
+ }), children, help ? /*#__PURE__*/_react["default"].createElement("div", null, help) : null), /*#__PURE__*/_react["default"].createElement(_material.DialogActions, null, applyButton && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
125
+ startIcon: /*#__PURE__*/_react["default"].createElement(_Check["default"], null),
126
+ disabled: progress || applyDisabled && defaultValue === value,
127
+ onClick: function onClick() {
128
+ return onApply(textInput ? value : '');
129
+ },
130
+ variant: "contained",
131
+ color: "primary"
132
+ }, _i18n["default"].t(titleButtonApply)), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
133
+ color: "grey",
134
+ onClick: onClose,
135
+ disabled: progress,
136
+ variant: "contained",
137
+ startIcon: /*#__PURE__*/_react["default"].createElement(_Close["default"], null)
138
+ }, _i18n["default"].t(titleButtonClose))));
139
+ };
140
+
141
+ CustomModal.defaultProps = {
142
+ open: false,
143
+ onApply: function onApply() {},
144
+ onClose: function onClose() {},
145
+ applyButton: true,
146
+ applyDisabled: false,
147
+ titleButtonClose: 'Cancel',
148
+ titleButtonApply: 'Ok',
149
+ overflowHidden: false,
150
+ help: ''
151
+ };
152
+ CustomModal.propTypes = {
153
+ icon: _propTypes["default"].object,
154
+ open: _propTypes["default"].bool,
155
+ onClose: _propTypes["default"].func,
156
+ children: _propTypes["default"].any,
157
+ titleButtonClose: _propTypes["default"].string,
158
+ titleButtonApply: _propTypes["default"].string,
159
+ onApply: _propTypes["default"].func,
160
+ fullWidth: _propTypes["default"].bool,
161
+ maxWidth: _propTypes["default"].string,
162
+ help: _propTypes["default"].string
163
+ };
164
+
165
+ var _default = (0, _styles.withStyles)(styles)(CustomModal);
166
+
167
+ exports["default"] = _default;
168
+ //# sourceMappingURL=CustomModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomModal.js","names":["styles","theme","modalWrapper","position","backgroundColor","modalDialog","minWidth","overflowHidden","display","overflow","titleIcon","marginRight","content","fontSize","CustomModal","title","fullWidth","help","maxWidth","progress","icon","applyDisabled","applyButton","classes","open","onClose","children","titleButtonApply","titleButtonClose","onApply","textInput","defaultValue","useState","value","setValue","useEffect","Icon","paper","clsx","e","target","i18n","t","defaultProps","propTypes","PropTypes","object","bool","func","any","string","withStyles"],"sources":["CustomModal.jsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\n\nimport Button from '@mui/material/Button';\nimport { Dialog, DialogActions, DialogContent, DialogTitle, TextField } from '@mui/material';\nimport { withStyles } from '@mui/styles';\n\nimport CheckIcon from '@mui/icons-material/Check';\nimport CloseIcon from '@mui/icons-material/Close';\n\nimport i18n from '../i18n';\n\nconst styles = theme => ({\n modalWrapper: {\n position: 'relative',\n '[class*=\"MuiPaper-root MuiDialog-paper MuiPaper-elevation24 MuiDialog-paperScrollPaper MuiDialog-paperWidthXl MuiPaper-elevation24 MuiPaper-rounded\"]': {\n backgroundColor: '#f6f6f6'\n }\n },\n modalDialog: {\n minWidth: 400\n },\n overflowHidden: {\n display: 'flex',\n overflow: 'hidden'\n },\n titleIcon: {\n marginRight: 5,\n },\n content: {\n fontSize: 16\n },\n});\n\nconst CustomModal = ({ title, fullWidth, help, maxWidth, progress, icon, applyDisabled, applyButton, classes, open, onClose, children, titleButtonApply, titleButtonClose, onApply, textInput, defaultValue, overflowHidden }) => {\n const [value, setValue] = useState(defaultValue);\n useEffect(() => {\n setValue(defaultValue);\n }, [defaultValue]);\n\n let Icon = null;\n\n if (icon) {\n Icon = icon;\n }\n\n return <Dialog\n open={open}\n maxWidth={maxWidth || 'md'}\n fullWidth={!!fullWidth}\n disableEscapeKeyDown={false}\n onClose={onClose}\n classes={{ paper: classes.modalDialog, /*paper: classes.background*/ }}\n className={classes.modalWrapper}\n >\n {title && <DialogTitle>{icon ? <Icon className={classes.titleIcon}/> : null}{title}</DialogTitle>}\n <DialogContent className={clsx(overflowHidden ? classes.overflowHidden : null, classes.content)}>\n {textInput && <TextField\n // className={className}\n autoComplete=\"off\"\n fullWidth\n autoFocus\n variant=\"outlined\"\n size=\"medium\"\n // rows={10}\n multiline\n value={value}\n onChange={(e) => setValue(e.target.value)}\n // customValue\n />}\n {children}\n {help ? <div>{help}</div> : null}\n </DialogContent>\n <DialogActions>\n {applyButton && <Button\n startIcon={<CheckIcon/>}\n disabled={progress || (applyDisabled && defaultValue === value)}\n onClick={() => onApply(textInput ? value : '')}\n variant=\"contained\"\n color=\"primary\"\n >\n {i18n.t(titleButtonApply)}\n </Button>}\n <Button\n color=\"grey\"\n onClick={onClose}\n disabled={progress}\n variant=\"contained\"\n startIcon={<CloseIcon/>}\n >\n {i18n.t(titleButtonClose)}\n </Button>\n </DialogActions>\n </Dialog>;\n}\n\nCustomModal.defaultProps = {\n open: false,\n onApply: () => { },\n onClose: () => { },\n applyButton: true,\n applyDisabled: false,\n titleButtonClose: 'Cancel',\n titleButtonApply: 'Ok',\n overflowHidden: false,\n help: ''\n};\n\nCustomModal.propTypes = {\n icon: PropTypes.object,\n open: PropTypes.bool,\n onClose: PropTypes.func,\n children: PropTypes.any,\n titleButtonClose: PropTypes.string,\n titleButtonApply: PropTypes.string,\n onApply: PropTypes.func,\n fullWidth: PropTypes.bool,\n maxWidth: PropTypes.string,\n help: PropTypes.string,\n};\n\nexport default withStyles(styles)(CustomModal);\n"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AAEA;;AACA;;AAEA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;EAAA,OAAK;IACrBC,YAAY,EAAE;MACVC,QAAQ,EAAE,UADA;MAEV,yJAAyJ;QACrJC,eAAe,EAAE;MADoI;IAF/I,CADO;IAOrBC,WAAW,EAAE;MACTC,QAAQ,EAAE;IADD,CAPQ;IAUrBC,cAAc,EAAE;MACZC,OAAO,EAAE,MADG;MAEZC,QAAQ,EAAE;IAFE,CAVK;IAcrBC,SAAS,EAAE;MACPC,WAAW,EAAE;IADN,CAdU;IAiBrBC,OAAO,EAAE;MACLC,QAAQ,EAAE;IADL;EAjBY,CAAL;AAAA,CAApB;;AAsBA,IAAMC,WAAW,GAAG,SAAdA,WAAc,OAA8M;EAAA,IAA3MC,KAA2M,QAA3MA,KAA2M;EAAA,IAApMC,SAAoM,QAApMA,SAAoM;EAAA,IAAzLC,IAAyL,QAAzLA,IAAyL;EAAA,IAAnLC,QAAmL,QAAnLA,QAAmL;EAAA,IAAzKC,QAAyK,QAAzKA,QAAyK;EAAA,IAA/JC,IAA+J,QAA/JA,IAA+J;EAAA,IAAzJC,aAAyJ,QAAzJA,aAAyJ;EAAA,IAA1IC,WAA0I,QAA1IA,WAA0I;EAAA,IAA7HC,OAA6H,QAA7HA,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,IAPK;EAQvBpB,cAAc,EAAE,KARO;EASvBU,IAAI,EAAE;AATiB,CAA3B;AAYAH,WAAW,CAAC8B,SAAZ,GAAwB;EACpBxB,IAAI,EAAEyB,qBAAA,CAAUC,MADI;EAEpBtB,IAAI,EAAEqB,qBAAA,CAAUE,IAFI;EAGpBtB,OAAO,EAAEoB,qBAAA,CAAUG,IAHC;EAIpBtB,QAAQ,EAAEmB,qBAAA,CAAUI,GAJA;EAKpBrB,gBAAgB,EAAEiB,qBAAA,CAAUK,MALR;EAMpBvB,gBAAgB,EAAEkB,qBAAA,CAAUK,MANR;EAOpBrB,OAAO,EAAEgB,qBAAA,CAAUG,IAPC;EAQpBhC,SAAS,EAAE6B,qBAAA,CAAUE,IARD;EASpB7B,QAAQ,EAAE2B,qBAAA,CAAUK,MATA;EAUpBjC,IAAI,EAAE4B,qBAAA,CAAUK;AAVI,CAAxB;;eAae,IAAAC,kBAAA,EAAWnD,MAAX,EAAmBc,WAAnB,C"}
@@ -51,7 +51,7 @@ var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
51
51
 
52
52
  var _FormHelperText = _interopRequireDefault(require("@mui/material/FormHelperText"));
53
53
 
54
- var _classnames = _interopRequireDefault(require("classnames"));
54
+ var _Utils = _interopRequireDefault(require("../Utils"));
55
55
 
56
56
  var _excluded = ["allowDuplicates", "alwaysShowPlaceholder", "blurBehavior", "children", "chipRenderer", "classes", "className", "clearInputValueOnChange", "dataSource", "dataSourceConfig", "defaultValue", "delayBeforeAdd", "disabled", "disableUnderline", "error", "filter", "FormHelperTextProps", "fullWidth", "fullWidthInput", "helperText", "id", "InputProps", "inputRef", "InputLabelProps", "inputValue", "label", "newChipKeyCodes", "newChipKeys", "onBeforeAdd", "onAdd", "onBlur", "onDelete", "onChange", "onFocus", "onKeyDown", "onKeyPress", "onKeyUp", "onUpdateInput", "placeholder", "readOnly", "required", "rootRef", "value", "variant"];
57
57
 
@@ -252,7 +252,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
252
252
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "focus", function () {
253
253
  _this.actualInput.focus();
254
254
 
255
- if (_this.state.focusedChip != null) {
255
+ if (_this.state.focusedChip) {
256
256
  _this.setState({
257
257
  focusedChip: null
258
258
  });
@@ -267,7 +267,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
267
267
  isFocused: false
268
268
  });
269
269
 
270
- if (_this.state.focusedChip != null) {
270
+ if (_this.state.focusedChip) {
271
271
  _this.setState({
272
272
  focusedChip: null
273
273
  });
@@ -350,7 +350,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
350
350
  switch (event.keyCode) {
351
351
  case keyCodes.BACKSPACE:
352
352
  if (event.target.value === '') {
353
- if (focusedChip != null) {
353
+ if (focusedChip) {
354
354
  _this.handleDeleteChip(chips[focusedChip], focusedChip);
355
355
 
356
356
  if (focusedChip > 0) {
@@ -368,7 +368,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
368
368
  break;
369
369
 
370
370
  case keyCodes.DELETE:
371
- if (event.target.value === '' && focusedChip != null) {
371
+ if (event.target.value === '' && focusedChip) {
372
372
  _this.handleDeleteChip(chips[focusedChip], focusedChip);
373
373
 
374
374
  if (focusedChip <= chips.length - 1) {
@@ -479,7 +479,9 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
479
479
  * @public
480
480
  */
481
481
  function blur() {
482
- if (this.input) this.actualInput.blur();
482
+ if (this.input) {
483
+ this.actualInput.blur();
484
+ }
483
485
  }
484
486
  /**
485
487
  * Focuses this component.
@@ -502,7 +504,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
502
504
  if (this.props.onBeforeAdd && !this.props.onBeforeAdd(chip)) {
503
505
  this._preventChipCreation = true;
504
506
 
505
- if (options != null && options.clearInputOnFail) {
507
+ if (options && options.clearInputOnFail) {
506
508
  this.clearInput();
507
509
  }
508
510
 
@@ -533,7 +535,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
533
535
  }
534
536
 
535
537
  if (chip.trim().length > 0) {
536
- if (this.props.allowDuplicates || chips.indexOf(chip) === -1) {
538
+ if (this.props.allowDuplicates || !chips.includes(chip)) {
537
539
  if (this.props.value && this.props.onAdd) {
538
540
  this.props.onAdd(chip);
539
541
  } else {
@@ -609,8 +611,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
609
611
  }, {
610
612
  key: "render",
611
613
  value: function render() {
612
- var _this3 = this,
613
- _cx2;
614
+ var _this3 = this;
614
615
 
615
616
  var _this$props = this.props,
616
617
  allowDuplicates = _this$props.allowDuplicates,
@@ -702,7 +703,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
702
703
  return /*#__PURE__*/_react["default"].createElement(_FormControl["default"], (0, _extends2["default"])({
703
704
  ref: rootRef,
704
705
  fullWidth: fullWidth,
705
- className: (0, _classnames["default"])(className, classes.root, (0, _defineProperty2["default"])({}, classes.marginDense, other.margin === 'dense')),
706
+ className: _Utils["default"].clsx(className, classes.root, other.margin === 'dense' && classes.marginDense),
706
707
  error: error,
707
708
  required: chips.length > 0 ? undefined : required,
708
709
  onClick: this.focus,
@@ -711,7 +712,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
711
712
  }, other), label && /*#__PURE__*/_react["default"].createElement(_InputLabel["default"], (0, _extends2["default"])({
712
713
  htmlFor: id,
713
714
  classes: {
714
- root: (0, _classnames["default"])(classes[variant], classes.label),
715
+ root: _Utils["default"].clsx(classes[variant], classes.label),
715
716
  shrink: classes.labelShrink
716
717
  },
717
718
  shrink: shrinkFloatingLabel,
@@ -720,12 +721,12 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
720
721
  ref: this.labelRef,
721
722
  required: required
722
723
  }, InputLabelProps), label), /*#__PURE__*/_react["default"].createElement("div", {
723
- className: (0, _classnames["default"])(classes[variant], classes.chipContainer, (_cx2 = {}, (0, _defineProperty2["default"])(_cx2, classes.focused, this.state.isFocused), (0, _defineProperty2["default"])(_cx2, classes.underline, !disableUnderline && variant === 'standard'), (0, _defineProperty2["default"])(_cx2, classes.disabled, disabled), (0, _defineProperty2["default"])(_cx2, classes.labeled, label != null), (0, _defineProperty2["default"])(_cx2, classes.error, error), _cx2))
724
+ className: _Utils["default"].clsx(classes[variant], classes.chipContainer, this.state.isFocused && classes.focused, !disableUnderline && variant === 'standard' && classes.underline, disabled && classes.disabled, label && classes.labeled, error && classes.error)
724
725
  }, variant === 'standard' && chipComponents, /*#__PURE__*/_react["default"].createElement(InputComponent, (0, _extends2["default"])({
725
726
  ref: this.input,
726
727
  classes: {
727
- input: (0, _classnames["default"])(classes.input, classes[variant]),
728
- root: (0, _classnames["default"])(classes.inputRoot, classes[variant])
728
+ input: _Utils["default"].clsx(classes.input, classes[variant]),
729
+ root: _Utils["default"].clsx(classes.inputRoot, classes[variant])
729
730
  },
730
731
  id: id,
731
732
  value: actualInputValue,
@@ -741,7 +742,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
741
742
  placeholder: !hasInput && (shrinkFloatingLabel || label == null) || alwaysShowPlaceholder ? placeholder : null,
742
743
  readOnly: readOnly
743
744
  }, InputProps, InputMore))), helperText && /*#__PURE__*/_react["default"].createElement(_FormHelperText["default"], (0, _extends2["default"])({}, FormHelperTextProps, {
744
- className: FormHelperTextProps ? (0, _classnames["default"])(FormHelperTextProps.className, classes.helperText) : classes.helperText
745
+ className: FormHelperTextProps ? _Utils["default"].clsx(FormHelperTextProps.className, classes.helperText) : classes.helperText
745
746
  }), helperText));
746
747
  }
747
748
  }], [{
@@ -1 +1 @@
1
- {"version":3,"file":"ChipInput.js","names":["variantComponent","standard","Input","filled","FilledInput","outlined","OutlinedInput","styles","theme","light","palette","type","bottomLineColor","root","inputRoot","display","flexWrap","flex","marginTop","minWidth","boxSizing","paddingTop","input","textOverflow","overflow","whiteSpace","appearance","WebkitTapHighlightColor","chipContainer","flexFlow","cursor","marginBottom","minHeight","height","paddingBottom","labeled","label","top","labelShrink","helperText","focused","disabled","underline","borderBottom","primary","left","bottom","content","position","right","transform","transition","transitions","create","duration","shorter","easing","easeOut","pointerEvents","borderBottomColor","error","main","text","borderBottomStyle","backgroundColor","chip","margin","marginDense","keyCodes","BACKSPACE","DELETE","LEFT_ARROW","RIGHT_ARROW","ChipInput","props","chips","errorText","undefined","focusedChip","inputValue","isClean","isFocused","chipsUpdated","prevPropsValue","actualInput","focus","state","setState","event","onBlur","value","target","addChipOptions","blurBehavior","clearInputOnFail","delayBeforeAdd","numChipsBefore","length","inputBlurTimeout","setTimeout","numChipsAfter","handleAddChip","clearInput","onFocus","_keyPressed","_preventChipCreation","onKeyDown","isDefaultPrevented","newChipKeyCodes","indexOf","keyCode","newChipKeys","key","result","preventDefault","handleDeleteChip","updateInput","onKeyUp","onKeyPress","e","onUpdateInput","ref","inputRef","defaultValue","labelRef","React","createRef","variant","labelNode","ReactDOM","findDOMNode","current","forceUpdate","clearTimeout","blur","options","onBeforeAdd","dataSourceConfig","allowDuplicates","some","c","onAdd","updateChips","trim","i","slice","changed","splice","onDelete","additionalUpdates","onChange","alwaysShowPlaceholder","children","chipRenderer","defaultChipRenderer","classes","className","clearInputValueOnChange","dataSource","disableUnderline","filter","FormHelperTextProps","fullWidth","fullWidthInput","id","InputProps","InputLabelProps","placeholder","readOnly","required","rootRef","other","actualInputValue","hasInput","shrinkFloatingLabel","shrink","chipComponents","map","isDisabled","isReadOnly","handleClick","handleDelete","InputMore","notched","labelWidth","offsetWidth","startAdornment","InputComponent","cx","handleUpdateInput","handleKeyDown","handleKeyPress","handleKeyUp","handleInputFocus","handleInputBlur","setActualInputRef","newState","Component","propTypes","PropTypes","bool","oneOf","func","array","shape","string","isRequired","object","node","arrayOf","number","defaultProps","withStyles","name","blue"],"sources":["JsonConfigComponent/ChipInput.jsx"],"sourcesContent":["/**\n * Notice: Some code was adapted from Material-UI's text field.\n * Copyright (c) 2014 Call-Em-All (https://github.com/callemall/material-ui)\n */\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport PropTypes from 'prop-types'\nimport Input from '@mui/material/Input'\nimport FilledInput from '@mui/material/FilledInput/FilledInput'\nimport OutlinedInput from '@mui/material/OutlinedInput'\nimport InputLabel from '@mui/material/InputLabel'\nimport Chip from '@mui/material/Chip'\nimport withStyles from '@mui/styles/withStyles'\nimport blue from '@mui/material/colors/blue'\nimport FormControl from '@mui/material/FormControl'\nimport FormHelperText from '@mui/material/FormHelperText'\nimport cx from 'classnames'\n\nconst variantComponent = {\n standard: Input,\n filled: FilledInput,\n outlined: OutlinedInput\n}\n\nconst styles = (theme) => {\n const light = theme.palette.type === 'light'\n const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)'\n\n return {\n root: {},\n inputRoot: {\n display: 'inline-flex',\n flexWrap: 'wrap',\n flex: 1,\n marginTop: 0,\n minWidth: 70,\n '&$outlined,&$filled': {\n boxSizing: 'border-box'\n },\n '&$outlined': {\n paddingTop: 14\n },\n '&$filled': {\n paddingTop: 28\n }\n },\n input: {\n display: 'inline-block',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n appearance: 'none', // Remove border in Safari, doesn't seem to break anything in other browsers\n WebkitTapHighlightColor: 'rgba(0,0,0,0)', // Remove mobile color flashing (deprecated style).\n float: 'left',\n flex: 1\n },\n chipContainer: {\n display: 'flex',\n flexFlow: 'row wrap',\n cursor: 'text',\n marginBottom: -2,\n minHeight: 40,\n '&$labeled&$standard': {\n marginTop: 18\n }\n },\n outlined: {\n '& input': {\n height: 16,\n paddingTop: 4,\n paddingBottom: 12,\n marginTop: 4,\n marginBottom: 4\n }\n },\n standard: {},\n filled: {\n '& input': {\n height: 22,\n marginBottom: 4,\n marginTop: 4,\n paddingTop: 0\n },\n '$marginDense & input': {\n height: 26\n }\n },\n labeled: {},\n label: {\n top: 4,\n '&$outlined&:not($labelShrink)': {\n top: 2,\n '$marginDense &': {\n top: 5\n }\n },\n '&$filled&:not($labelShrink)': {\n top: 15,\n '$marginDense &': {\n top: 20\n }\n }\n },\n labelShrink: {\n top: 0\n },\n helperText: {\n marginBottom: -20\n },\n focused: {},\n disabled: {},\n underline: {\n '&:after': {\n borderBottom: `2px solid ${theme.palette.primary[light ? 'dark' : 'light']}`,\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE 11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\"',\n position: 'absolute',\n right: 0,\n transform: 'scaleX(0)',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n '&$focused:after': {\n transform: 'scaleX(1)'\n },\n '&$error:after': {\n borderBottomColor: theme.palette.error.main,\n transform: 'scaleX(1)' // error is always underlined in red\n },\n '&:before': {\n borderBottom: `1px solid ${bottomLineColor}`,\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE 11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\\\\00a0\"',\n position: 'absolute',\n right: 0,\n transition: theme.transitions.create('border-bottom-color', {\n duration: theme.transitions.duration.shorter\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n '&:hover:not($disabled):not($focused):not($error):before': {\n borderBottom: `2px solid ${theme.palette.text.primary}`,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n borderBottom: `1px solid ${bottomLineColor}`\n }\n },\n '&$disabled:before': {\n borderBottomStyle: 'dotted'\n }\n },\n error: {\n '&:after': {\n backgroundColor: theme.palette.error.main,\n transform: 'scaleX(1)' // error is always underlined in red\n }\n },\n chip: {\n margin: '0 8px 8px 0',\n float: 'left'\n },\n marginDense: {}\n }\n}\n\nconst keyCodes = {\n BACKSPACE: 8,\n DELETE: 46,\n LEFT_ARROW: 37,\n RIGHT_ARROW: 39\n}\n\nclass ChipInput extends React.Component {\n state = {\n chips: [],\n errorText: undefined,\n focusedChip: null,\n inputValue: '',\n isClean: true,\n isFocused: false,\n chipsUpdated: false,\n prevPropsValue: []\n }\n\n constructor (props) {\n super(props)\n if (props.defaultValue) {\n this.state.chips = props.defaultValue\n }\n this.labelRef = React.createRef()\n this.input = React.createRef()\n }\n\n componentDidMount () {\n if (this.props.variant === 'outlined') {\n this.labelNode = ReactDOM.findDOMNode(this.labelRef.current)\n this.forceUpdate()\n }\n }\n\n componentWillUnmount () {\n clearTimeout(this.inputBlurTimeout)\n }\n\n static getDerivedStateFromProps (props, state) {\n let newState = null\n\n if (props.value && props.value.length !== state.prevPropsValue.length) {\n newState = { prevPropsValue: props.value }\n if (props.clearInputValueOnChange) {\n newState.inputValue = ''\n }\n }\n\n // if change detection is only needed for clearInputValueOnChange\n if (props.clearInputValueOnChange && props.value && props.value.length !== state.prevPropsValue.length) {\n newState = { prevPropsValue: props.value, inputValue: '' }\n }\n\n if (props.disabled) {\n newState = { ...newState, focusedChip: null }\n }\n\n if (!state.chipsUpdated && props.defaultValue) {\n newState = { ...newState, chips: props.defaultValue }\n }\n\n return newState\n }\n\n /**\n * Blurs this component.\n * @public\n */\n blur () {\n if (this.input) this.actualInput.blur()\n }\n\n /**\n * Focuses this component.\n * @public\n */\n focus = () => {\n this.actualInput.focus()\n if (this.state.focusedChip != null) {\n this.setState({ focusedChip: null })\n }\n }\n\n handleInputBlur = (event) => {\n if (this.props.onBlur) {\n this.props.onBlur(event)\n }\n this.setState({ isFocused: false })\n if (this.state.focusedChip != null) {\n this.setState({ focusedChip: null })\n }\n const value = event.target.value\n let addChipOptions\n switch (this.props.blurBehavior) {\n case 'add-or-clear':\n addChipOptions = { clearInputOnFail: true }\n // falls through\n case 'add':\n if (this.props.delayBeforeAdd) {\n // Lets assume that we only want to add the existing content as chip, when\n // another event has not added a chip within 200ms .\n // e.g. onSelection Callback in Autocomplete case\n const numChipsBefore = (this.props.value || this.state.chips).length\n this.inputBlurTimeout = setTimeout(() => {\n const numChipsAfter = (this.props.value || this.state.chips).length\n if (numChipsBefore === numChipsAfter) {\n this.handleAddChip(value, addChipOptions)\n } else {\n this.clearInput()\n }\n }, 150)\n } else {\n this.handleAddChip(value, addChipOptions)\n }\n break\n case 'clear':\n this.clearInput()\n break\n }\n }\n\n handleInputFocus = (event) => {\n this.setState({ isFocused: true })\n if (this.props.onFocus) {\n this.props.onFocus(event)\n }\n }\n\n handleKeyDown = (event) => {\n const { focusedChip } = this.state\n this._keyPressed = false\n this._preventChipCreation = false\n if (this.props.onKeyDown) {\n // Needed for arrow controls on menu in autocomplete scenario\n this.props.onKeyDown(event)\n // Check if the callback marked the event as isDefaultPrevented() and skip further actions\n // enter key for example should not always add the current value of the inputField\n if (event.isDefaultPrevented()) {\n return\n }\n }\n const chips = this.props.value || this.state.chips\n if (this.props.newChipKeyCodes.indexOf(event.keyCode) >= 0 || this.props.newChipKeys.indexOf(event.key) >= 0) {\n const result = this.handleAddChip(event.target.value)\n if (result !== false) {\n event.preventDefault()\n }\n return\n }\n\n switch (event.keyCode) {\n case keyCodes.BACKSPACE:\n if (event.target.value === '') {\n if (focusedChip != null) {\n this.handleDeleteChip(chips[focusedChip], focusedChip)\n if (focusedChip > 0) {\n this.setState({ focusedChip: focusedChip - 1 })\n }\n } else {\n this.setState({ focusedChip: chips.length - 1 })\n }\n }\n break\n case keyCodes.DELETE:\n if (event.target.value === '' && focusedChip != null) {\n this.handleDeleteChip(chips[focusedChip], focusedChip)\n if (focusedChip <= chips.length - 1) {\n this.setState({ focusedChip })\n }\n }\n break\n case keyCodes.LEFT_ARROW:\n if (focusedChip == null && event.target.value === '' && chips.length) {\n this.setState({ focusedChip: chips.length - 1 })\n } else if (focusedChip != null && focusedChip > 0) {\n this.setState({ focusedChip: focusedChip - 1 })\n }\n break\n case keyCodes.RIGHT_ARROW:\n if (focusedChip != null && focusedChip < chips.length - 1) {\n this.setState({ focusedChip: focusedChip + 1 })\n } else {\n this.setState({ focusedChip: null })\n }\n break\n default:\n this.setState({ focusedChip: null })\n break\n }\n }\n\n handleKeyUp = (event) => {\n if (!this._preventChipCreation && (this.props.newChipKeyCodes.indexOf(event.keyCode) >= 0 || this.props.newChipKeys.indexOf(event.key) >= 0) && this._keyPressed) {\n this.clearInput()\n } else {\n this.updateInput(event.target.value)\n }\n if (this.props.onKeyUp) { this.props.onKeyUp(event) }\n }\n\n handleKeyPress = (event) => {\n this._keyPressed = true\n if (this.props.onKeyPress) { this.props.onKeyPress(event) }\n }\n\n handleUpdateInput = (e) => {\n if (this.props.inputValue == null) {\n this.updateInput(e.target.value)\n }\n\n if (this.props.onUpdateInput) {\n this.props.onUpdateInput(e)\n }\n }\n\n /**\n * Handles adding a chip.\n * @param {string|object} chip Value of the chip, either a string or an object (if dataSourceConfig is set)\n * @param {object=} options Additional options\n * @param {boolean=} options.clearInputOnFail If `true`, and `onBeforeAdd` returns `false`, clear the input\n * @returns True if the chip was added (or at least `onAdd` was called), false if adding the chip was prevented\n */\n handleAddChip (chip, options) {\n if (this.props.onBeforeAdd && !this.props.onBeforeAdd(chip)) {\n this._preventChipCreation = true\n if (options != null && options.clearInputOnFail) {\n this.clearInput()\n }\n return false\n }\n this.clearInput()\n const chips = this.props.value || this.state.chips\n\n if (this.props.dataSourceConfig) {\n if (typeof chip === 'string') {\n chip = {\n [this.props.dataSourceConfig.text]: chip,\n [this.props.dataSourceConfig.value]: chip\n }\n }\n\n if (this.props.allowDuplicates || !chips.some((c) => c[this.props.dataSourceConfig.value] === chip[this.props.dataSourceConfig.value])) {\n if (this.props.value && this.props.onAdd) {\n this.props.onAdd(chip)\n } else {\n this.updateChips([...this.state.chips, chip])\n }\n }\n return true\n }\n\n if (chip.trim().length > 0) {\n if (this.props.allowDuplicates || chips.indexOf(chip) === -1) {\n if (this.props.value && this.props.onAdd) {\n this.props.onAdd(chip)\n } else {\n this.updateChips([...this.state.chips, chip])\n }\n }\n return true\n }\n return false\n }\n\n handleDeleteChip (chip, i) {\n if (!this.props.value) {\n const chips = this.state.chips.slice()\n const changed = chips.splice(i, 1) // remove the chip at index i\n if (changed) {\n let focusedChip = this.state.focusedChip\n if (this.state.focusedChip === i) {\n focusedChip = null\n } else if (this.state.focusedChip > i) {\n focusedChip = this.state.focusedChip - 1\n }\n this.updateChips(chips, { focusedChip })\n }\n } else if (this.props.onDelete) {\n this.props.onDelete(chip, i)\n }\n }\n\n updateChips (chips, additionalUpdates = {}) {\n this.setState({ chips, chipsUpdated: true, ...additionalUpdates })\n if (this.props.onChange) {\n this.props.onChange(chips)\n }\n }\n\n /**\n * Clears the text field for adding new chips.\n * This only works in uncontrolled input mode, i.e. if the inputValue prop is not used.\n * @public\n */\n clearInput () {\n this.updateInput('')\n }\n\n updateInput (value) {\n this.setState({ inputValue: value })\n }\n\n /**\n * Set the reference to the actual input, that is the input of the Input.\n * @param {object} ref - The reference\n */\n setActualInputRef = (ref) => {\n this.actualInput = ref\n if (this.props.inputRef) {\n this.props.inputRef(ref)\n }\n }\n\n render () {\n const {\n allowDuplicates,\n alwaysShowPlaceholder,\n blurBehavior,\n children,\n chipRenderer = defaultChipRenderer,\n classes,\n className,\n clearInputValueOnChange,\n dataSource,\n dataSourceConfig,\n defaultValue,\n delayBeforeAdd,\n disabled,\n disableUnderline,\n error,\n filter,\n FormHelperTextProps,\n fullWidth,\n fullWidthInput,\n helperText,\n id,\n InputProps = {},\n inputRef,\n InputLabelProps = {},\n inputValue,\n label,\n newChipKeyCodes,\n newChipKeys,\n onBeforeAdd,\n onAdd,\n onBlur,\n onDelete,\n onChange,\n onFocus,\n onKeyDown,\n onKeyPress,\n onKeyUp,\n onUpdateInput,\n placeholder,\n readOnly,\n required,\n rootRef,\n value,\n variant,\n ...other\n } = this.props\n\n const chips = value || this.state.chips\n const actualInputValue = inputValue != null ? inputValue : this.state.inputValue\n\n const hasInput = (this.props.value || actualInputValue).length > 0 || actualInputValue.length > 0\n const shrinkFloatingLabel = InputLabelProps.shrink != null\n ? InputLabelProps.shrink\n : (label != null && (hasInput || this.state.isFocused || chips.length > 0))\n\n const chipComponents = chips.map((chip, i) => {\n const value = dataSourceConfig ? chip[dataSourceConfig.value] : chip\n return chipRenderer(\n {\n value,\n text: dataSourceConfig ? chip[dataSourceConfig.text] : chip,\n chip,\n isDisabled: !!disabled,\n isReadOnly: readOnly,\n isFocused: this.state.focusedChip === i,\n handleClick: () => this.setState({ focusedChip: i }),\n handleDelete: () => this.handleDeleteChip(chip, i),\n className: classes.chip\n },\n i\n )\n })\n\n const InputMore = {}\n if (variant === 'outlined') {\n InputMore.notched = shrinkFloatingLabel\n InputMore.labelWidth =\n (shrinkFloatingLabel && this.labelNode && this.labelNode.offsetWidth) ||\n 0\n }\n\n if (variant !== 'standard') {\n InputMore.startAdornment = (\n <React.Fragment>{chipComponents}</React.Fragment>\n )\n } else {\n InputProps.disableUnderline = true\n }\n\n const InputComponent = variantComponent[variant]\n\n return (\n <FormControl\n ref={rootRef}\n fullWidth={fullWidth}\n className={cx(className, classes.root, {\n [classes.marginDense]: other.margin === 'dense'\n })}\n error={error}\n required={chips.length > 0 ? undefined : required}\n onClick={this.focus}\n disabled={disabled}\n variant={variant}\n {...other}\n >\n {label && (\n <InputLabel\n htmlFor={id}\n classes={{ root: cx(classes[variant], classes.label), shrink: classes.labelShrink }}\n shrink={shrinkFloatingLabel}\n focused={this.state.isFocused}\n variant={variant}\n ref={this.labelRef}\n required={required}\n {...InputLabelProps}\n >\n {label}\n </InputLabel>\n )}\n <div\n className={cx(\n classes[variant],\n classes.chipContainer,\n {\n [classes.focused]: this.state.isFocused,\n [classes.underline]: !disableUnderline && variant === 'standard',\n [classes.disabled]: disabled,\n [classes.labeled]: label != null,\n [classes.error]: error\n })}\n >\n {variant === 'standard' && chipComponents}\n <InputComponent\n ref={this.input}\n classes={{\n input: cx(classes.input, classes[variant]),\n root: cx(classes.inputRoot, classes[variant])\n }}\n id={id}\n value={actualInputValue}\n onChange={this.handleUpdateInput}\n onKeyDown={this.handleKeyDown}\n onKeyPress={this.handleKeyPress}\n onKeyUp={this.handleKeyUp}\n onFocus={this.handleInputFocus}\n onBlur={this.handleInputBlur}\n inputRef={this.setActualInputRef}\n disabled={disabled}\n fullWidth={fullWidthInput}\n placeholder={(!hasInput && (shrinkFloatingLabel || label == null)) || alwaysShowPlaceholder ? placeholder : null}\n readOnly={readOnly}\n {...InputProps}\n {...InputMore}\n />\n </div>\n {helperText && (\n <FormHelperText\n {...FormHelperTextProps}\n className={FormHelperTextProps ? cx(FormHelperTextProps.className, classes.helperText) : classes.helperText}\n >\n {helperText}\n </FormHelperText>\n )}\n </FormControl>\n )\n }\n}\n\nChipInput.propTypes = {\n /** Allows duplicate chips if set to true. */\n allowDuplicates: PropTypes.bool,\n /** If true, the placeholder will always be visible. */\n alwaysShowPlaceholder: PropTypes.bool,\n /** Behavior when the chip input is blurred: `'clear'` clears the input, `'add'` creates a chip and `'ignore'` keeps the input. */\n blurBehavior: PropTypes.oneOf(['clear', 'add', 'add-or-clear', 'ignore']),\n /** A function of the type `({ value, text, chip, isFocused, isDisabled, isReadOnly, handleClick, handleDelete, className }, key) => node` that returns a chip based on the given properties. This can be used to customize chip styles. Each item in the `dataSource` array will be passed to `chipRenderer` as arguments `chip`, `value` and `text`. If `dataSource` is an array of objects and `dataSourceConfig` is present, then `value` and `text` will instead correspond to the object values defined in `dataSourceConfig`. If `dataSourceConfig` is not set and `dataSource` is an array of objects, then a custom `chipRenderer` must be set. `chip` is always the raw value from `dataSource`, either an object or a string. */\n chipRenderer: PropTypes.func,\n /** Whether the input value should be cleared if the `value` prop is changed. */\n clearInputValueOnChange: PropTypes.bool,\n /** Data source for auto complete. This should be an array of strings or objects. */\n dataSource: PropTypes.array,\n /** Config for objects list dataSource, e.g. `{ text: 'text', value: 'value' }`. If not specified, the `dataSource` must be a flat array of strings or a custom `chipRenderer` must be set to handle the objects. */\n dataSourceConfig: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired\n }),\n /** The chips to display by default (for uncontrolled mode). */\n defaultValue: PropTypes.array,\n /** Whether to use `setTimeout` to delay adding chips in case other input events like `onSelection` need to fire first */\n delayBeforeAdd: PropTypes.bool,\n /** Disables the chip input if set to true. */\n disabled: PropTypes.bool,\n /** Disable the input underline. Only valid for 'standard' variant */\n disableUnderline: PropTypes.bool,\n /** Props to pass through to the `FormHelperText` component. */\n FormHelperTextProps: PropTypes.object,\n /** If true, the chip input will fill the available width. */\n fullWidth: PropTypes.bool,\n /** If true, the input field will always be below the chips and fill the available space. By default, it will try to be beside the chips. */\n fullWidthInput: PropTypes.bool,\n /** Helper text that is displayed below the input. */\n helperText: PropTypes.node,\n /** Props to pass through to the `InputLabel`. */\n InputLabelProps: PropTypes.object,\n /** Props to pass through to the `Input`. */\n InputProps: PropTypes.object,\n /** Use this property to pass a ref callback to the native input component. */\n inputRef: PropTypes.func,\n /** The input value (enables controlled mode for the text input if set). */\n inputValue: PropTypes.string,\n /* The content of the floating label. */\n label: PropTypes.node,\n /** The key codes (`KeyboardEvent.keyCode`) used to determine when to create a new chip. */\n newChipKeyCodes: PropTypes.arrayOf(PropTypes.number),\n /** The keys (`KeyboardEvent.key`) used to determine when to create a new chip. */\n newChipKeys: PropTypes.arrayOf(PropTypes.string),\n /** Callback function that is called when a new chip was added (in controlled mode). */\n onAdd: PropTypes.func,\n /** Callback function that is called with the chip to be added and should return true to add the chip or false to prevent the chip from being added without clearing the text input. */\n onBeforeAdd: PropTypes.func,\n /** Callback function that is called when the chips change (in uncontrolled mode). */\n onChange: PropTypes.func,\n /** Callback function that is called when a new chip was removed (in controlled mode). */\n onDelete: PropTypes.func,\n /** Callback function that is called when the input changes. */\n onUpdateInput: PropTypes.func,\n /** A placeholder that is displayed if the input has no values. */\n placeholder: PropTypes.string,\n /** Makes the chip input read-only if set to true. */\n readOnly: PropTypes.bool,\n /** The chips to display (enables controlled mode if set). */\n value: PropTypes.array,\n /** The variant of the Input component */\n variant: PropTypes.oneOf(['outlined', 'standard', 'filled'])\n}\n\nChipInput.defaultProps = {\n allowDuplicates: false,\n blurBehavior: 'clear',\n clearInputValueOnChange: false,\n delayBeforeAdd: false,\n disableUnderline: false,\n newChipKeyCodes: [13],\n newChipKeys: ['Enter'],\n variant: 'standard'\n}\n\nexport default withStyles(styles, { name: 'WAMuiChipInput' })(ChipInput)\n\nexport const defaultChipRenderer = ({ value, text, isFocused, isDisabled, isReadOnly, handleClick, handleDelete, className }, key) => (\n <Chip\n key={key}\n className={className}\n style={{\n pointerEvents: isDisabled || isReadOnly ? 'none' : undefined,\n backgroundColor: isFocused ? blue[300] : undefined\n }}\n onClick={handleClick}\n onDelete={handleDelete}\n label={text}\n />\n)"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG;EACvBC,QAAQ,EAAEC,iBADa;EAEvBC,MAAM,EAAEC,uBAFe;EAGvBC,QAAQ,EAAEC;AAHa,CAAzB;;AAMA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD,EAAW;EACxB,IAAMC,KAAK,GAAGD,KAAK,CAACE,OAAN,CAAcC,IAAd,KAAuB,OAArC;EACA,IAAMC,eAAe,GAAGH,KAAK,GAAG,qBAAH,GAA2B,0BAAxD;EAEA,OAAO;IACLI,IAAI,EAAE,EADD;IAELC,SAAS,EAAE;MACTC,OAAO,EAAE,aADA;MAETC,QAAQ,EAAE,MAFD;MAGTC,IAAI,EAAE,CAHG;MAITC,SAAS,EAAE,CAJF;MAKTC,QAAQ,EAAE,EALD;MAMT,uBAAuB;QACrBC,SAAS,EAAE;MADU,CANd;MAST,cAAc;QACZC,UAAU,EAAE;MADA,CATL;MAYT,YAAY;QACVA,UAAU,EAAE;MADF;IAZH,CAFN;IAkBLC,KAAK,EAAE;MACLP,OAAO,EAAE,cADJ;MAELQ,YAAY,EAAE,UAFT;MAGLC,QAAQ,EAAE,QAHL;MAILC,UAAU,EAAE,QAJP;MAKLC,UAAU,EAAE,MALP;MAKe;MACpBC,uBAAuB,EAAE,eANp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eAAe,EAAE,CAAC,EAAD,CANM;EAOvBG,WAAW,EAAE,CAAC,OAAD,CAPU;EAQvBgB,OAAO,EAAE;AARc,CAAzB;;eAWe,IAAAqF,sBAAA,EAAW7M,MAAX,EAAmB;EAAE8M,IAAI,EAAE;AAAR,CAAnB,EAA+C5I,SAA/C,C;;;;AAER,IAAMiF,mBAAmB,GAAG,SAAtBA,mBAAsB,OAA2F1C,GAA3F;EAAA,IAAGtB,KAAH,QAAGA,KAAH;EAAA,IAAU5B,IAAV,QAAUA,IAAV;EAAA,IAAgBmB,SAAhB,QAAgBA,SAAhB;EAAA,IAA2BiG,UAA3B,QAA2BA,UAA3B;EAAA,IAAuCC,UAAvC,QAAuCA,UAAvC;EAAA,IAAmDC,WAAnD,QAAmDA,WAAnD;EAAA,IAAgEC,YAAhE,QAAgEA,YAAhE;EAAA,IAA8EzB,SAA9E,QAA8EA,SAA9E;EAAA,oBACjC,gCAAC,gBAAD;IACE,GAAG,EAAE5C,GADP;IAEE,SAAS,EAAE4C,SAFb;IAGE,KAAK,EAAE;MACLlG,aAAa,EAAEwH,UAAU,IAAIC,UAAd,GAA2B,MAA3B,GAAoCtG,SAD9C;MAELb,eAAe,EAAEiB,SAAS,GAAGqI,gBAAA,CAAK,GAAL,CAAH,GAAezI;IAFpC,CAHT;IAOE,OAAO,EAAEuG,WAPX;IAQE,QAAQ,EAAEC,YARZ;IASE,KAAK,EAAEvH;EATT,EADiC;AAAA,CAA5B"}
1
+ {"version":3,"file":"ChipInput.js","names":["variantComponent","standard","Input","filled","FilledInput","outlined","OutlinedInput","styles","theme","light","palette","type","bottomLineColor","root","inputRoot","display","flexWrap","flex","marginTop","minWidth","boxSizing","paddingTop","input","textOverflow","overflow","whiteSpace","appearance","WebkitTapHighlightColor","chipContainer","flexFlow","cursor","marginBottom","minHeight","height","paddingBottom","labeled","label","top","labelShrink","helperText","focused","disabled","underline","borderBottom","primary","left","bottom","content","position","right","transform","transition","transitions","create","duration","shorter","easing","easeOut","pointerEvents","borderBottomColor","error","main","text","borderBottomStyle","backgroundColor","chip","margin","marginDense","keyCodes","BACKSPACE","DELETE","LEFT_ARROW","RIGHT_ARROW","ChipInput","props","chips","errorText","undefined","focusedChip","inputValue","isClean","isFocused","chipsUpdated","prevPropsValue","actualInput","focus","state","setState","event","onBlur","value","target","addChipOptions","blurBehavior","clearInputOnFail","delayBeforeAdd","numChipsBefore","length","inputBlurTimeout","setTimeout","numChipsAfter","handleAddChip","clearInput","onFocus","_keyPressed","_preventChipCreation","onKeyDown","isDefaultPrevented","newChipKeyCodes","indexOf","keyCode","newChipKeys","key","result","preventDefault","handleDeleteChip","updateInput","onKeyUp","onKeyPress","e","onUpdateInput","ref","inputRef","defaultValue","labelRef","React","createRef","variant","labelNode","ReactDOM","findDOMNode","current","forceUpdate","clearTimeout","blur","options","onBeforeAdd","dataSourceConfig","allowDuplicates","some","c","onAdd","updateChips","trim","includes","i","slice","changed","splice","onDelete","additionalUpdates","onChange","alwaysShowPlaceholder","children","chipRenderer","defaultChipRenderer","classes","className","clearInputValueOnChange","dataSource","disableUnderline","filter","FormHelperTextProps","fullWidth","fullWidthInput","id","InputProps","InputLabelProps","placeholder","readOnly","required","rootRef","other","actualInputValue","hasInput","shrinkFloatingLabel","shrink","chipComponents","map","isDisabled","isReadOnly","handleClick","handleDelete","InputMore","notched","labelWidth","offsetWidth","startAdornment","InputComponent","Utils","clsx","handleUpdateInput","handleKeyDown","handleKeyPress","handleKeyUp","handleInputFocus","handleInputBlur","setActualInputRef","newState","Component","propTypes","PropTypes","bool","oneOf","func","array","shape","string","isRequired","object","node","arrayOf","number","defaultProps","withStyles","name","blue"],"sources":["JsonConfigComponent/ChipInput.jsx"],"sourcesContent":["/**\n * Notice: Some code was adapted from Material-UI's text field.\n * Copyright (c) 2014 Call-Em-All (https://github.com/callemall/material-ui)\n */\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport PropTypes from 'prop-types'\nimport Input from '@mui/material/Input'\nimport FilledInput from '@mui/material/FilledInput/FilledInput'\nimport OutlinedInput from '@mui/material/OutlinedInput'\nimport InputLabel from '@mui/material/InputLabel'\nimport Chip from '@mui/material/Chip'\nimport withStyles from '@mui/styles/withStyles'\nimport blue from '@mui/material/colors/blue'\nimport FormControl from '@mui/material/FormControl'\nimport FormHelperText from '@mui/material/FormHelperText'\nimport Utils from '../Utils';\n\nconst variantComponent = {\n standard: Input,\n filled: FilledInput,\n outlined: OutlinedInput,\n};\n\nconst styles = (theme) => {\n const light = theme.palette.type === 'light';\n const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';\n\n return {\n root: {},\n inputRoot: {\n display: 'inline-flex',\n flexWrap: 'wrap',\n flex: 1,\n marginTop: 0,\n minWidth: 70,\n '&$outlined,&$filled': {\n boxSizing: 'border-box',\n },\n '&$outlined': {\n paddingTop: 14,\n },\n '&$filled': {\n paddingTop: 28,\n }\n },\n input: {\n display: 'inline-block',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n appearance: 'none', // Remove border in Safari, doesn't seem to break anything in other browsers\n WebkitTapHighlightColor: 'rgba(0,0,0,0)', // Remove mobile color flashing (deprecated style).\n float: 'left',\n flex: 1,\n },\n chipContainer: {\n display: 'flex',\n flexFlow: 'row wrap',\n cursor: 'text',\n marginBottom: -2,\n minHeight: 40,\n '&$labeled&$standard': {\n marginTop: 18,\n },\n },\n outlined: {\n '& input': {\n height: 16,\n paddingTop: 4,\n paddingBottom: 12,\n marginTop: 4,\n marginBottom: 4,\n },\n },\n standard: {},\n filled: {\n '& input': {\n height: 22,\n marginBottom: 4,\n marginTop: 4,\n paddingTop: 0,\n },\n '$marginDense & input': {\n height: 26,\n },\n },\n labeled: {},\n label: {\n top: 4,\n '&$outlined&:not($labelShrink)': {\n top: 2,\n '$marginDense &': {\n top: 5,\n }\n },\n '&$filled&:not($labelShrink)': {\n top: 15,\n '$marginDense &': {\n top: 20,\n },\n },\n },\n labelShrink: {\n top: 0,\n },\n helperText: {\n marginBottom: -20,\n },\n focused: {},\n disabled: {},\n underline: {\n '&:after': {\n borderBottom: `2px solid ${theme.palette.primary[light ? 'dark' : 'light']}`,\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE 11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\"',\n position: 'absolute',\n right: 0,\n transform: 'scaleX(0)',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut,\n }),\n pointerEvents: 'none', // Transparent to the hover style.\n },\n '&$focused:after': {\n transform: 'scaleX(1)',\n },\n '&$error:after': {\n borderBottomColor: theme.palette.error.main,\n transform: 'scaleX(1)', // error is always underlined in red\n },\n '&:before': {\n borderBottom: `1px solid ${bottomLineColor}`,\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE 11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\\\\00a0\"',\n position: 'absolute',\n right: 0,\n transition: theme.transitions.create('border-bottom-color', {\n duration: theme.transitions.duration.shorter,\n }),\n pointerEvents: 'none', // Transparent to the hover style.\n },\n '&:hover:not($disabled):not($focused):not($error):before': {\n borderBottom: `2px solid ${theme.palette.text.primary}`,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n borderBottom: `1px solid ${bottomLineColor}`,\n }\n },\n '&$disabled:before': {\n borderBottomStyle: 'dotted',\n }\n },\n error: {\n '&:after': {\n backgroundColor: theme.palette.error.main,\n transform: 'scaleX(1)', // error is always underlined in red\n }\n },\n chip: {\n margin: '0 8px 8px 0',\n float: 'left',\n },\n marginDense: {},\n }\n}\n\nconst keyCodes = {\n BACKSPACE: 8,\n DELETE: 46,\n LEFT_ARROW: 37,\n RIGHT_ARROW: 39,\n};\n\nclass ChipInput extends React.Component {\n state = {\n chips: [],\n errorText: undefined,\n focusedChip: null,\n inputValue: '',\n isClean: true,\n isFocused: false,\n chipsUpdated: false,\n prevPropsValue: [],\n };\n\n constructor(props) {\n super(props);\n if (props.defaultValue) {\n this.state.chips = props.defaultValue;\n }\n this.labelRef = React.createRef();\n this.input = React.createRef();\n }\n\n componentDidMount() {\n if (this.props.variant === 'outlined') {\n this.labelNode = ReactDOM.findDOMNode(this.labelRef.current);\n this.forceUpdate();\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.inputBlurTimeout);\n }\n\n static getDerivedStateFromProps(props, state) {\n let newState = null;\n\n if (props.value && props.value.length !== state.prevPropsValue.length) {\n newState = {prevPropsValue: props.value};\n if (props.clearInputValueOnChange) {\n newState.inputValue = '';\n }\n }\n\n // if change detection is only needed for clearInputValueOnChange\n if (props.clearInputValueOnChange && props.value && props.value.length !== state.prevPropsValue.length) {\n newState = {prevPropsValue: props.value, inputValue: ''};\n }\n\n if (props.disabled) {\n newState = {...newState, focusedChip: null};\n }\n\n if (!state.chipsUpdated && props.defaultValue) {\n newState = {...newState, chips: props.defaultValue};\n }\n\n return newState;\n }\n\n /**\n * Blurs this component.\n * @public\n */\n blur() {\n if (this.input) {\n this.actualInput.blur();\n }\n }\n\n /**\n * Focuses this component.\n * @public\n */\n focus = () => {\n this.actualInput.focus();\n if (this.state.focusedChip) {\n this.setState({focusedChip: null});\n }\n }\n\n handleInputBlur = event => {\n if (this.props.onBlur) {\n this.props.onBlur(event);\n }\n this.setState({isFocused: false});\n if (this.state.focusedChip) {\n this.setState({focusedChip: null});\n }\n const value = event.target.value;\n let addChipOptions;\n switch (this.props.blurBehavior) {\n case 'add-or-clear':\n addChipOptions = {clearInputOnFail: true};\n // falls through\n case 'add':\n if (this.props.delayBeforeAdd) {\n // Lets assume that we only want to add the existing content as chip, when\n // another event has not added a chip within 200ms .\n // e.g. onSelection Callback in Autocomplete case\n const numChipsBefore = (this.props.value || this.state.chips).length;\n this.inputBlurTimeout = setTimeout(() => {\n const numChipsAfter = (this.props.value || this.state.chips).length;\n if (numChipsBefore === numChipsAfter) {\n this.handleAddChip(value, addChipOptions);\n } else {\n this.clearInput();\n }\n }, 150);\n } else {\n this.handleAddChip(value, addChipOptions);\n }\n break\n\n case 'clear':\n this.clearInput();\n break\n }\n }\n\n handleInputFocus = event => {\n this.setState({isFocused: true});\n if (this.props.onFocus) {\n this.props.onFocus(event);\n }\n }\n\n handleKeyDown = event => {\n const {focusedChip} = this.state;\n this._keyPressed = false;\n this._preventChipCreation = false;\n\n if (this.props.onKeyDown) {\n // Needed for arrow controls on menu in autocomplete scenario\n this.props.onKeyDown(event);\n // Check if the callback marked the event as isDefaultPrevented() and skip further actions\n // enter key for example should not always add the current value of the inputField\n if (event.isDefaultPrevented()) {\n return;\n }\n }\n const chips = this.props.value || this.state.chips;\n if (this.props.newChipKeyCodes.indexOf(event.keyCode) >= 0 || this.props.newChipKeys.indexOf(event.key) >= 0) {\n const result = this.handleAddChip(event.target.value);\n if (result !== false) {\n event.preventDefault();\n }\n return;\n }\n\n switch (event.keyCode) {\n case keyCodes.BACKSPACE:\n if (event.target.value === '') {\n if (focusedChip) {\n this.handleDeleteChip(chips[focusedChip], focusedChip);\n if (focusedChip > 0) {\n this.setState({focusedChip: focusedChip - 1});\n }\n } else {\n this.setState({focusedChip: chips.length - 1});\n }\n }\n break;\n case keyCodes.DELETE:\n if (event.target.value === '' && focusedChip) {\n this.handleDeleteChip(chips[focusedChip], focusedChip);\n if (focusedChip <= chips.length - 1) {\n this.setState({focusedChip});\n }\n }\n break;\n case keyCodes.LEFT_ARROW:\n if (focusedChip == null && event.target.value === '' && chips.length) {\n this.setState({focusedChip: chips.length - 1});\n } else if (focusedChip != null && focusedChip > 0) {\n this.setState({focusedChip: focusedChip - 1});\n }\n break;\n case keyCodes.RIGHT_ARROW:\n if (focusedChip != null && focusedChip < chips.length - 1) {\n this.setState({focusedChip: focusedChip + 1});\n } else {\n this.setState({focusedChip: null});\n }\n break;\n default:\n this.setState({focusedChip: null});\n break;\n }\n }\n\n handleKeyUp = event => {\n if (!this._preventChipCreation && (this.props.newChipKeyCodes.indexOf(event.keyCode) >= 0 || this.props.newChipKeys.indexOf(event.key) >= 0) && this._keyPressed) {\n this.clearInput();\n } else {\n this.updateInput(event.target.value);\n }\n if (this.props.onKeyUp) {\n this.props.onKeyUp(event);\n }\n }\n\n handleKeyPress = event => {\n this._keyPressed = true;\n if (this.props.onKeyPress) {\n this.props.onKeyPress(event);\n }\n }\n\n handleUpdateInput = e => {\n if (this.props.inputValue == null) {\n this.updateInput(e.target.value);\n }\n\n if (this.props.onUpdateInput) {\n this.props.onUpdateInput(e);\n }\n }\n\n /**\n * Handles adding a chip.\n * @param {string|object} chip Value of the chip, either a string or an object (if dataSourceConfig is set)\n * @param {object=} options Additional options\n * @param {boolean=} options.clearInputOnFail If `true`, and `onBeforeAdd` returns `false`, clear the input\n * @returns True if the chip was added (or at least `onAdd` was called), false if adding the chip was prevented\n */\n handleAddChip(chip, options) {\n if (this.props.onBeforeAdd && !this.props.onBeforeAdd(chip)) {\n this._preventChipCreation = true;\n if (options && options.clearInputOnFail) {\n this.clearInput();\n }\n return false;\n }\n this.clearInput();\n const chips = this.props.value || this.state.chips;\n\n if (this.props.dataSourceConfig) {\n if (typeof chip === 'string') {\n chip = {\n [this.props.dataSourceConfig.text]: chip,\n [this.props.dataSourceConfig.value]: chip\n };\n }\n\n if (this.props.allowDuplicates || !chips.some((c) => c[this.props.dataSourceConfig.value] === chip[this.props.dataSourceConfig.value])) {\n if (this.props.value && this.props.onAdd) {\n this.props.onAdd(chip);\n } else {\n this.updateChips([...this.state.chips, chip]);\n }\n }\n return true;\n }\n\n if (chip.trim().length > 0) {\n if (this.props.allowDuplicates || !chips.includes(chip)) {\n if (this.props.value && this.props.onAdd) {\n this.props.onAdd(chip)\n } else {\n this.updateChips([...this.state.chips, chip])\n }\n }\n return true;\n }\n return false;\n }\n\n handleDeleteChip(chip, i) {\n if (!this.props.value) {\n const chips = this.state.chips.slice();\n const changed = chips.splice(i, 1); // remove the chip at index i\n if (changed) {\n let focusedChip = this.state.focusedChip;\n if (this.state.focusedChip === i) {\n focusedChip = null;\n } else if (this.state.focusedChip > i) {\n focusedChip = this.state.focusedChip - 1;\n }\n this.updateChips(chips, {focusedChip});\n }\n } else if (this.props.onDelete) {\n this.props.onDelete(chip, i);\n }\n }\n\n updateChips(chips, additionalUpdates = {}) {\n this.setState({chips, chipsUpdated: true, ...additionalUpdates});\n if (this.props.onChange) {\n this.props.onChange(chips);\n }\n }\n\n /**\n * Clears the text field for adding new chips.\n * This only works in uncontrolled input mode, i.e. if the inputValue prop is not used.\n * @public\n */\n clearInput() {\n this.updateInput('');\n }\n\n updateInput(value) {\n this.setState({ inputValue: value });\n }\n\n /**\n * Set the reference to the actual input, that is the input of the Input.\n * @param {object} ref - The reference\n */\n setActualInputRef = ref => {\n this.actualInput = ref;\n if (this.props.inputRef) {\n this.props.inputRef(ref);\n }\n }\n\n render() {\n const {\n allowDuplicates,\n alwaysShowPlaceholder,\n blurBehavior,\n children,\n chipRenderer = defaultChipRenderer,\n classes,\n className,\n clearInputValueOnChange,\n dataSource,\n dataSourceConfig,\n defaultValue,\n delayBeforeAdd,\n disabled,\n disableUnderline,\n error,\n filter,\n FormHelperTextProps,\n fullWidth,\n fullWidthInput,\n helperText,\n id,\n InputProps = {},\n inputRef,\n InputLabelProps = {},\n inputValue,\n label,\n newChipKeyCodes,\n newChipKeys,\n onBeforeAdd,\n onAdd,\n onBlur,\n onDelete,\n onChange,\n onFocus,\n onKeyDown,\n onKeyPress,\n onKeyUp,\n onUpdateInput,\n placeholder,\n readOnly,\n required,\n rootRef,\n value,\n variant,\n ...other\n } = this.props;\n\n const chips = value || this.state.chips;\n const actualInputValue = inputValue != null ? inputValue : this.state.inputValue;\n\n const hasInput = (this.props.value || actualInputValue).length > 0 || actualInputValue.length > 0;\n const shrinkFloatingLabel = InputLabelProps.shrink != null\n ? InputLabelProps.shrink\n : (label != null && (hasInput || this.state.isFocused || chips.length > 0));\n\n const chipComponents = chips.map((chip, i) => {\n const value = dataSourceConfig ? chip[dataSourceConfig.value] : chip\n return chipRenderer(\n {\n value,\n text: dataSourceConfig ? chip[dataSourceConfig.text] : chip,\n chip,\n isDisabled: !!disabled,\n isReadOnly: readOnly,\n isFocused: this.state.focusedChip === i,\n handleClick: () => this.setState({focusedChip: i}),\n handleDelete: () => this.handleDeleteChip(chip, i),\n className: classes.chip\n },\n i\n )\n });\n\n const InputMore = {}\n if (variant === 'outlined') {\n InputMore.notched = shrinkFloatingLabel;\n InputMore.labelWidth =\n (shrinkFloatingLabel && this.labelNode && this.labelNode.offsetWidth) ||\n 0;\n }\n\n if (variant !== 'standard') {\n InputMore.startAdornment = <React.Fragment>{chipComponents}</React.Fragment>;\n } else {\n InputProps.disableUnderline = true;\n }\n\n const InputComponent = variantComponent[variant];\n\n return <FormControl\n ref={rootRef}\n fullWidth={fullWidth}\n className={Utils.clsx(className, classes.root, other.margin === 'dense' && classes.marginDense)}\n error={error}\n required={chips.length > 0 ? undefined : required}\n onClick={this.focus}\n disabled={disabled}\n variant={variant}\n {...other}\n >\n {label && <InputLabel\n htmlFor={id}\n classes={{root: Utils.clsx(classes[variant], classes.label), shrink: classes.labelShrink}}\n shrink={shrinkFloatingLabel}\n focused={this.state.isFocused}\n variant={variant}\n ref={this.labelRef}\n required={required}\n {...InputLabelProps}\n >\n {label}\n </InputLabel>}\n <div\n className={Utils.clsx(\n classes[variant],\n classes.chipContainer,\n this.state.isFocused && classes.focused,\n !disableUnderline && variant === 'standard' && classes.underline,\n disabled && classes.disabled,\n label && classes.labeled,\n error && classes.error\n )}\n >\n {variant === 'standard' && chipComponents}\n <InputComponent\n ref={this.input}\n classes={{\n input: Utils.clsx(classes.input, classes[variant]),\n root: Utils.clsx(classes.inputRoot, classes[variant])\n }}\n id={id}\n value={actualInputValue}\n onChange={this.handleUpdateInput}\n onKeyDown={this.handleKeyDown}\n onKeyPress={this.handleKeyPress}\n onKeyUp={this.handleKeyUp}\n onFocus={this.handleInputFocus}\n onBlur={this.handleInputBlur}\n inputRef={this.setActualInputRef}\n disabled={disabled}\n fullWidth={fullWidthInput}\n placeholder={(!hasInput && (shrinkFloatingLabel || label == null)) || alwaysShowPlaceholder ? placeholder : null}\n readOnly={readOnly}\n {...InputProps}\n {...InputMore}\n />\n </div>\n {helperText && <FormHelperText\n {...FormHelperTextProps}\n className={FormHelperTextProps ? Utils.clsx(FormHelperTextProps.className, classes.helperText) : classes.helperText}\n >\n {helperText}\n </FormHelperText>}\n </FormControl>;\n }\n}\n\nChipInput.propTypes = {\n /** Allows duplicate chips if set to true. */\n allowDuplicates: PropTypes.bool,\n /** If true, the placeholder will always be visible. */\n alwaysShowPlaceholder: PropTypes.bool,\n /** Behavior when the chip input is blurred: `'clear'` clears the input, `'add'` creates a chip and `'ignore'` keeps the input. */\n blurBehavior: PropTypes.oneOf(['clear', 'add', 'add-or-clear', 'ignore']),\n /** A function of the type `({ value, text, chip, isFocused, isDisabled, isReadOnly, handleClick, handleDelete, className }, key) => node` that returns a chip based on the given properties. This can be used to customize chip styles. Each item in the `dataSource` array will be passed to `chipRenderer` as arguments `chip`, `value` and `text`. If `dataSource` is an array of objects and `dataSourceConfig` is present, then `value` and `text` will instead correspond to the object values defined in `dataSourceConfig`. If `dataSourceConfig` is not set and `dataSource` is an array of objects, then a custom `chipRenderer` must be set. `chip` is always the raw value from `dataSource`, either an object or a string. */\n chipRenderer: PropTypes.func,\n /** Whether the input value should be cleared if the `value` prop is changed. */\n clearInputValueOnChange: PropTypes.bool,\n /** Data source for auto complete. This should be an array of strings or objects. */\n dataSource: PropTypes.array,\n /** Config for objects list dataSource, e.g. `{ text: 'text', value: 'value' }`. If not specified, the `dataSource` must be a flat array of strings or a custom `chipRenderer` must be set to handle the objects. */\n dataSourceConfig: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired\n }),\n /** The chips to display by default (for uncontrolled mode). */\n defaultValue: PropTypes.array,\n /** Whether to use `setTimeout` to delay adding chips in case other input events like `onSelection` need to fire first */\n delayBeforeAdd: PropTypes.bool,\n /** Disables the chip input if set to true. */\n disabled: PropTypes.bool,\n /** Disable the input underline. Only valid for 'standard' variant */\n disableUnderline: PropTypes.bool,\n /** Props to pass through to the `FormHelperText` component. */\n FormHelperTextProps: PropTypes.object,\n /** If true, the chip input will fill the available width. */\n fullWidth: PropTypes.bool,\n /** If true, the input field will always be below the chips and fill the available space. By default, it will try to be beside the chips. */\n fullWidthInput: PropTypes.bool,\n /** Helper text that is displayed below the input. */\n helperText: PropTypes.node,\n /** Props to pass through to the `InputLabel`. */\n InputLabelProps: PropTypes.object,\n /** Props to pass through to the `Input`. */\n InputProps: PropTypes.object,\n /** Use this property to pass a ref callback to the native input component. */\n inputRef: PropTypes.func,\n /** The input value (enables controlled mode for the text input if set). */\n inputValue: PropTypes.string,\n /* The content of the floating label. */\n label: PropTypes.node,\n /** The key codes (`KeyboardEvent.keyCode`) used to determine when to create a new chip. */\n newChipKeyCodes: PropTypes.arrayOf(PropTypes.number),\n /** The keys (`KeyboardEvent.key`) used to determine when to create a new chip. */\n newChipKeys: PropTypes.arrayOf(PropTypes.string),\n /** Callback function that is called when a new chip was added (in controlled mode). */\n onAdd: PropTypes.func,\n /** Callback function that is called with the chip to be added and should return true to add the chip or false to prevent the chip from being added without clearing the text input. */\n onBeforeAdd: PropTypes.func,\n /** Callback function that is called when the chips change (in uncontrolled mode). */\n onChange: PropTypes.func,\n /** Callback function that is called when a new chip was removed (in controlled mode). */\n onDelete: PropTypes.func,\n /** Callback function that is called when the input changes. */\n onUpdateInput: PropTypes.func,\n /** A placeholder that is displayed if the input has no values. */\n placeholder: PropTypes.string,\n /** Makes the chip input read-only if set to true. */\n readOnly: PropTypes.bool,\n /** The chips to display (enables controlled mode if set). */\n value: PropTypes.array,\n /** The variant of the Input component */\n variant: PropTypes.oneOf(['outlined', 'standard', 'filled'])\n}\n\nChipInput.defaultProps = {\n allowDuplicates: false,\n blurBehavior: 'clear',\n clearInputValueOnChange: false,\n delayBeforeAdd: false,\n disableUnderline: false,\n newChipKeyCodes: [13],\n newChipKeys: ['Enter'],\n variant: 'standard'\n};\n\nexport default withStyles(styles, {name: 'WAMuiChipInput'})(ChipInput);\n\nexport const defaultChipRenderer = ({\n value,\n text,\n isFocused,\n isDisabled,\n isReadOnly,\n handleClick,\n handleDelete,\n className\n }, key) =>\n <Chip\n key={key}\n className={className}\n style={{\n pointerEvents: isDisabled || isReadOnly ? 'none' : undefined,\n backgroundColor: isFocused ? blue[300] : undefined\n }}\n onClick={handleClick}\n onDelete={handleDelete}\n label={text}\n />;"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG;EACrBC,QAAQ,EAAEC,iBADW;EAErBC,MAAM,EAAEC,uBAFa;EAGrBC,QAAQ,EAAEC;AAHW,CAAzB;;AAMA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD,EAAW;EACtB,IAAMC,KAAK,GAAGD,KAAK,CAACE,OAAN,CAAcC,IAAd,KAAuB,OAArC;EACA,IAAMC,eAAe,GAAGH,KAAK,GAAG,qBAAH,GAA2B,0BAAxD;EAEA,OAAO;IACHI,IAAI,EAAE,EADH;IAEHC,SAAS,EAAE;MACPC,OAAO,EAAE,aADF;MAEPC,QAAQ,EAAE,MAFH;MAGPC,IAAI,EAAE,CAHC;MAIPC,SAAS,EAAE,CAJJ;MAKPC,QAAQ,EAAE,EALH;MAMP,uBAAuB;QACnBC,SAAS,EAAE;MADQ,CANhB;MASP,cAAc;QACVC,UAAU,EAAE;MADF,CATP;MAYP,YAAY;QACRA,UAAU,EAAE;MADJ;IAZL,CAFR;IAkBHC,KAAK,EAAE;MACHP,OAAO,EAAE,cADN;MAEHQ,YAAY,EAAE,UAFX;MAGHC,QAAQ,EAAE,QAHP;MAIHC,UAAU,EAAE,QAJT;MAKHC,UAAU,EAAE,MALT;MAKiB;MACpBC,uBAAuB,EAAE,eANtB;MAMuC;M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YAAY,EAAE,OAFO;EAGrBiE,uBAAuB,EAAE,KAHJ;EAIrB/D,cAAc,EAAE,KAJK;EAKrBiE,gBAAgB,EAAE,KALG;EAMrBpD,eAAe,EAAE,CAAC,EAAD,CANI;EAOrBG,WAAW,EAAE,CAAC,OAAD,CAPQ;EAQrBgB,OAAO,EAAE;AARY,CAAzB;;eAWe,IAAAuF,sBAAA,EAAW/M,MAAX,EAAmB;EAACgN,IAAI,EAAE;AAAP,CAAnB,EAA6C9I,SAA7C,C;;;;AAER,IAAMkF,mBAAmB,GAAG,SAAtBA,mBAAsB,OASI3C,GATJ;EAAA,IACKtB,KADL,QACKA,KADL;EAAA,IAEK5B,IAFL,QAEKA,IAFL;EAAA,IAGKmB,SAHL,QAGKA,SAHL;EAAA,IAIKkG,UAJL,QAIKA,UAJL;EAAA,IAKKC,UALL,QAKKA,UALL;EAAA,IAMKC,WANL,QAMKA,WANL;EAAA,IAOKC,YAPL,QAOKA,YAPL;EAAA,IAQKzB,SARL,QAQKA,SARL;EAAA,oBAU/B,gCAAC,gBAAD;IACI,GAAG,EAAE7C,GADT;IAEI,SAAS,EAAE6C,SAFf;IAGI,KAAK,EAAE;MACHnG,aAAa,EAAEyH,UAAU,IAAIC,UAAd,GAA2B,MAA3B,GAAoCvG,SADhD;MAEHb,eAAe,EAAEiB,SAAS,GAAGuI,gBAAA,CAAK,GAAL,CAAH,GAAe3I;IAFtC,CAHX;IAOI,OAAO,EAAEwG,WAPb;IAQI,QAAQ,EAAEC,YARd;IASI,KAAK,EAAExH;EATX,EAV+B;AAAA,CAA5B"}
@@ -19,15 +19,17 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
19
19
 
20
20
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
21
 
22
+ var _react = _interopRequireDefault(require("react"));
23
+
22
24
  var _propTypes = _interopRequireDefault(require("prop-types"));
23
25
 
24
26
  var _styles = require("@mui/styles");
25
27
 
26
28
  var _ConfigGeneric2 = _interopRequireDefault(require("./ConfigGeneric"));
27
29
 
28
- var _i18n = _interopRequireDefault(require("@iobroker/adapter-react-v5/i18n"));
30
+ var _i18n = _interopRequireDefault(require("../../i18n"));
29
31
 
30
- var _Utils = _interopRequireDefault(require("@iobroker/adapter-react-v5/Components/Utils"));
32
+ var _Utils = _interopRequireDefault(require("../Utils"));
31
33
 
32
34
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
33
35
 
@@ -113,7 +115,7 @@ var ConfigAlive = /*#__PURE__*/function (_ConfigGeneric) {
113
115
  }
114
116
 
115
117
  var instance = this.state.instance.replace(/^system.adapter./, '');
116
- return /*#__PURE__*/React.createElement("div", {
118
+ return /*#__PURE__*/_react["default"].createElement("div", {
117
119
  className: _Utils["default"].clsx(this.props.classes.root, !this.state.alive && this.props.classes.notAlive)
118
120
  }, this.state.alive ? this.props.schema.textAlive !== undefined ? this.props.schema.textAlive ? _i18n["default"].t(this.props.schema.textAlive, instance) : '' : _i18n["default"].t('Instance %s is alive', instance) : this.props.schema.textNotAlive !== undefined ? this.props.schema.textNotAlive ? _i18n["default"].t(this.props.schema.textNotAlive, instance) : '' : _i18n["default"].t('Instance %s is not alive', instance));
119
121
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigAlive.js","names":["styles","theme","root","width","notAlive","color","ConfigAlive","instance","getInstance","props","socket","getState","then","state","setState","alive","val","schema","adapterName","includes","getPattern","startsWith","setTimeout","replace","Utils","clsx","classes","textAlive","undefined","I18n","t","textNotAlive","ConfigGeneric","propTypes","PropTypes","object","isRequired","data","string","number","withStyles"],"sources":["JsonConfigComponent/ConfigAlive.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { withStyles } from '@mui/styles';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nimport I18n from '@iobroker/adapter-react-v5/i18n';\nimport Utils from '@iobroker/adapter-react-v5/Components/Utils';\n\nconst styles = theme => ({\n root: {\n width: '100%',\n },\n notAlive: {\n color: '#a30000'\n }\n});\n\nclass ConfigAlive extends ConfigGeneric {\n componentDidMount() {\n super.componentDidMount();\n\n const instance = this.getInstance();\n\n this.props.socket.getState(instance + '.alive')\n .then(state => this.setState({alive: !!(state && state.val), instance}));\n }\n\n getInstance() {\n let instance = this.props.schema.instance || (this.props.adapterName + '.' + this.props.instance);\n if (instance.includes('${')) {\n instance = this.getPattern(instance);\n }\n if (instance && !instance.startsWith('system.adapter.')) {\n instance = 'system.adapter.' + instance;\n }\n return instance;\n }\n\n renderItem() {\n if (this.getInstance() !== this.state.instance) {\n setTimeout(() => {\n const instance = this.getInstance();\n if (instance) {\n this.props.socket.getState(instance + '.alive')\n .then(state => this.setState({alive: !!(state && state.val), instance}));\n } else {\n this.setState({alive: null, instance})\n }\n }, 200);\n }\n\n if (this.state.alive !== false && this.state.alive !== true) {\n return null;\n }\n\n const instance = this.state.instance.replace(/^system.adapter./, '');\n return <div className={Utils.clsx(this.props.classes.root, !this.state.alive && this.props.classes.notAlive)}>\n {this.state.alive ?\n this.props.schema.textAlive !== undefined ? (this.props.schema.textAlive ? I18n.t(this.props.schema.textAlive, instance) : '') : I18n.t('Instance %s is alive', instance)\n :\n this.props.schema.textNotAlive !== undefined ? (this.props.schema.textNotAlive ? I18n.t(this.props.schema.textNotAlive, instance) : '') : I18n.t('Instance %s is not alive', instance)\n }\n </div>;\n }\n}\n\nConfigAlive.propTypes = {\n socket: PropTypes.object.isRequired,\n data: PropTypes.object.isRequired,\n schema: PropTypes.object,\n adapterName: PropTypes.string,\n instance: PropTypes.number,\n};\n\nexport default withStyles(styles)(ConfigAlive);"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;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B,KAAL,CAAWQ,MAAX,CAAkBc,YAAlB,GAAiCF,gBAAA,CAAKC,CAAL,CAAO,KAAKrB,KAAL,CAAWQ,MAAX,CAAkBc,YAAzB,EAAuCxB,QAAvC,CAAjC,GAAoF,EAApI,GAA0IsB,gBAAA,CAAKC,CAAL,CAAO,0BAAP,EAAmCvB,QAAnC,CAJ3I,CAAP;IAOH;;;EA9CqByB,0B;;AAiD1B1B,WAAW,CAAC2B,SAAZ,GAAwB;EACpBvB,MAAM,EAAEwB,qBAAA,CAAUC,MAAV,CAAiBC,UADL;EAEpBC,IAAI,EAAEH,qBAAA,CAAUC,MAAV,CAAiBC,UAFH;EAGpBnB,MAAM,EAAEiB,qBAAA,CAAUC,MAHE;EAIpBjB,WAAW,EAAEgB,qBAAA,CAAUI,MAJH;EAKpB/B,QAAQ,EAAE2B,qBAAA,CAAUK;AALA,CAAxB;;eAQe,IAAAC,kBAAA,EAAWxC,MAAX,EAAmBM,WAAnB,C"}
1
+ {"version":3,"file":"ConfigAlive.js","names":["styles","theme","root","width","notAlive","color","ConfigAlive","instance","getInstance","props","socket","getState","then","state","setState","alive","val","schema","adapterName","includes","getPattern","startsWith","setTimeout","replace","Utils","clsx","classes","textAlive","undefined","I18n","t","textNotAlive","ConfigGeneric","propTypes","PropTypes","object","isRequired","data","string","number","withStyles"],"sources":["JsonConfigComponent/ConfigAlive.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@mui/styles';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nimport I18n from '../../i18n';\nimport Utils from '../Utils';\n\nconst styles = theme => ({\n root: {\n width: '100%',\n },\n notAlive: {\n color: '#a30000'\n },\n});\n\nclass ConfigAlive extends ConfigGeneric {\n componentDidMount() {\n super.componentDidMount();\n\n const instance = this.getInstance();\n\n this.props.socket.getState(instance + '.alive')\n .then(state => this.setState({alive: !!(state && state.val), instance}));\n }\n\n getInstance() {\n let instance = this.props.schema.instance || (this.props.adapterName + '.' + this.props.instance);\n if (instance.includes('${')) {\n instance = this.getPattern(instance);\n }\n if (instance && !instance.startsWith('system.adapter.')) {\n instance = 'system.adapter.' + instance;\n }\n return instance;\n }\n\n renderItem() {\n if (this.getInstance() !== this.state.instance) {\n setTimeout(() => {\n const instance = this.getInstance();\n if (instance) {\n this.props.socket.getState(instance + '.alive')\n .then(state => this.setState({alive: !!(state && state.val), instance}));\n } else {\n this.setState({alive: null, instance})\n }\n }, 200);\n }\n\n if (this.state.alive !== false && this.state.alive !== true) {\n return null;\n }\n\n const instance = this.state.instance.replace(/^system.adapter./, '');\n return <div className={Utils.clsx(this.props.classes.root, !this.state.alive && this.props.classes.notAlive)}>\n {this.state.alive ?\n this.props.schema.textAlive !== undefined ? (this.props.schema.textAlive ? I18n.t(this.props.schema.textAlive, instance) : '') : I18n.t('Instance %s is alive', instance)\n :\n this.props.schema.textNotAlive !== undefined ? (this.props.schema.textNotAlive ? I18n.t(this.props.schema.textNotAlive, instance) : '') : I18n.t('Instance %s is not alive', instance)\n }\n </div>;\n }\n}\n\nConfigAlive.propTypes = {\n socket: PropTypes.object.isRequired,\n data: PropTypes.object.isRequired,\n schema: PropTypes.object,\n adapterName: PropTypes.string,\n instance: PropTypes.number,\n};\n\nexport default withStyles(styles)(ConfigAlive);"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;EAAA,OAAK;IACrBC,IAAI,EAAE;MACFC,KAAK,EAAE;IADL,CADe;IAIrBC,QAAQ,EAAE;MACNC,KAAK,EAAE;IADD;EAJW,CAAL;AAAA,CAApB;;IASMC,W;;;;;;;;;;;;WACF,6BAAoB;MAAA;;MAChB;MAEA,IAAMC,QAAQ,GAAG,KAAKC,WAAL,EAAjB;MAEA,KAAKC,KAAL,CAAWC,MAAX,CAAkBC,QAAlB,CAA2BJ,QAAQ,GAAG,QAAtC,EACKK,I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