lhcb-ntuple-wizard 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/COPYING +674 -0
  2. package/README.md +25 -0
  3. package/dist/components/App.js +136 -0
  4. package/dist/components/ConfigDict.js +117 -0
  5. package/dist/components/ConfigList.js +115 -0
  6. package/dist/components/ConfigNode.js +345 -0
  7. package/dist/components/ConfigValue.js +99 -0
  8. package/dist/components/Dataset.js +82 -0
  9. package/dist/components/Decay.js +64 -0
  10. package/dist/components/DecayItem.js +122 -0
  11. package/dist/components/DecayTag.js +65 -0
  12. package/dist/components/DecayTree.js +518 -0
  13. package/dist/components/DecaysList.js +121 -0
  14. package/dist/components/DeleteButton.js +69 -0
  15. package/dist/components/DescriptorsSearch.js +394 -0
  16. package/dist/components/EventTypeBadge.js +58 -0
  17. package/dist/components/ItemSearch.js +146 -0
  18. package/dist/components/LinesTable.js +810 -0
  19. package/dist/components/NtupleWizard.js +125 -0
  20. package/dist/components/ParticleTag.js +67 -0
  21. package/dist/components/PolarityBadge.js +48 -0
  22. package/dist/components/SearchItem.js +130 -0
  23. package/dist/components/SelectParticle.js +94 -0
  24. package/dist/components/SelectTag.js +88 -0
  25. package/dist/components/SelectTool.js +80 -0
  26. package/dist/components/SelectVariables.js +133 -0
  27. package/dist/components/StrippingBadge.js +76 -0
  28. package/dist/components/StrippingLine.js +66 -0
  29. package/dist/components/TupleTool.js +59 -0
  30. package/dist/components/VariablesSearch.js +154 -0
  31. package/dist/components/YearBadge.js +48 -0
  32. package/dist/config.json +83 -0
  33. package/dist/contexts/MetadataContext.js +154 -0
  34. package/dist/index.js +18 -0
  35. package/dist/lib/BKPath.js +83 -0
  36. package/dist/lib/DTTConfig.js +213 -0
  37. package/dist/lib/mathjax.js +36 -0
  38. package/dist/lib/utils.js +228 -0
  39. package/dist/style/DecaysList.css +15 -0
  40. package/package.json +65 -0
@@ -0,0 +1,345 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _TupleTool = _interopRequireDefault(require("./TupleTool"));
10
+ var _SelectTool = _interopRequireDefault(require("./SelectTool"));
11
+ var _ConfigValue = _interopRequireDefault(require("./ConfigValue"));
12
+ var _ConfigList = _interopRequireDefault(require("./ConfigList"));
13
+ var _ConfigDict = _interopRequireDefault(require("./ConfigDict"));
14
+ var _DeleteButton = _interopRequireDefault(require("./DeleteButton"));
15
+ var _reactBootstrap = require("react-bootstrap");
16
+ var _reactBootstrapIcons = require("react-bootstrap-icons");
17
+ var _MetadataContext = _interopRequireDefault(require("../contexts/MetadataContext"));
18
+ var _jsxRuntime = require("react/jsx-runtime");
19
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
21
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
22
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
24
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
25
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
26
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
28
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
30
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
31
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
32
+ function _inherits(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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
34
+ 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); }; }
35
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
36
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
41
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
42
+ var ParticleConfig = /*#__PURE__*/function (_React$Component) {
43
+ _inherits(ParticleConfig, _React$Component);
44
+ var _super = _createSuper(ParticleConfig);
45
+ function ParticleConfig() {
46
+ var _this;
47
+ _classCallCheck(this, ParticleConfig);
48
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
49
+ args[_key] = arguments[_key];
50
+ }
51
+ _this = _super.call.apply(_super, [this].concat(args));
52
+ _defineProperty(_assertThisInitialized(_this), "state", {
53
+ dtt: _this.props.dtt,
54
+ openAddTool: false,
55
+ openConfigTool: false,
56
+ expandedTool: {
57
+ tool: "",
58
+ open: false
59
+ },
60
+ selectedToolClass: "",
61
+ selectedToolName: ""
62
+ });
63
+ _defineProperty(_assertThisInitialized(_this), "handleOpen", function (type) {
64
+ return function () {
65
+ _this.setState(_defineProperty({}, "open".concat(type, "Tool"), true));
66
+ };
67
+ });
68
+ _defineProperty(_assertThisInitialized(_this), "handleClose", function (type) {
69
+ return function () {
70
+ _this.setState(_defineProperty({}, "open".concat(type, "Tool"), false));
71
+ _this.clearSelectedTool();
72
+ _this.props.parentCallbackClose();
73
+ _this.props.parentCallbackUpdated();
74
+ };
75
+ });
76
+ _defineProperty(_assertThisInitialized(_this), "clearSelectedTool", function () {
77
+ _this.setState({
78
+ selectedToolClass: "",
79
+ selectedToolName: ""
80
+ });
81
+ });
82
+ _defineProperty(_assertThisInitialized(_this), "handleRemoveTool", function (tool) {
83
+ return function () {
84
+ _this.state.dtt.removeTool(_this.props.particleID, tool);
85
+ _this.setState({
86
+ dtt: _this.state.dtt
87
+ });
88
+ _this.props.parentCallbackUpdated();
89
+ };
90
+ });
91
+ _defineProperty(_assertThisInitialized(_this), "handleConfigTool", function (tool) {
92
+ return function () {
93
+ var splitArr = tool.split("/");
94
+ var toolClass = splitArr[0];
95
+ var toolName = splitArr.length > 1 ? splitArr[1] : "";
96
+ _this.setState({
97
+ openConfigTool: true,
98
+ selectedToolClass: toolClass,
99
+ selectedToolName: toolName
100
+ });
101
+ };
102
+ });
103
+ _defineProperty(_assertThisInitialized(_this), "handleUpdateTool", function (tool, parameter) {
104
+ return function (value) {
105
+ var parameters = _this.state.dtt.getToolConfig(_this.props.particleID, tool);
106
+ var signalUpdated = parameters[parameter] !== value;
107
+ parameters[parameter] = value;
108
+ _this.state.dtt.configureTool(_this.props.particleID, tool, parameters);
109
+ _this.setState({
110
+ dtt: _this.state.dtt
111
+ });
112
+ if (signalUpdated) {
113
+ _this.props.parentCallbackUpdated();
114
+ }
115
+ };
116
+ });
117
+ _defineProperty(_assertThisInitialized(_this), "setToolClass", function (option) {
118
+ _this.setState({
119
+ selectedToolClass: option.value
120
+ });
121
+ });
122
+ _defineProperty(_assertThisInitialized(_this), "setToolName", function (_ref) {
123
+ var target = _ref.target;
124
+ _this.setState({
125
+ selectedToolName: target.value
126
+ });
127
+ });
128
+ _defineProperty(_assertThisInitialized(_this), "handleAddTool", function () {
129
+ var _this$state = _this.state,
130
+ selectedToolClass = _this$state.selectedToolClass,
131
+ selectedToolName = _this$state.selectedToolName;
132
+ if (selectedToolClass) {
133
+ _this.state.dtt.addTool(_this.props.particleID, selectedToolClass, selectedToolName);
134
+ _this.setState({
135
+ dtt: _this.state.dtt,
136
+ selectedToolClass: "",
137
+ selectedToolName: ""
138
+ });
139
+ _this.props.parentCallbackUpdated();
140
+ }
141
+ });
142
+ _defineProperty(_assertThisInitialized(_this), "getSelectedTool", function () {
143
+ var _this$state2 = _this.state,
144
+ selectedToolClass = _this$state2.selectedToolClass,
145
+ selectedToolName = _this$state2.selectedToolName;
146
+ var selectedTool = selectedToolClass;
147
+ if (selectedToolName) {
148
+ selectedTool = "".concat(selectedToolClass, "/").concat(selectedToolName);
149
+ }
150
+ return selectedTool;
151
+ });
152
+ _defineProperty(_assertThisInitialized(_this), "toolExists", function () {
153
+ var selectedTool = _this.getSelectedTool();
154
+ return _this.state.dtt.listTools(_this.props.particleID).includes(selectedTool);
155
+ });
156
+ _defineProperty(_assertThisInitialized(_this), "getParam", function (tool, param) {
157
+ var toolClass = tool.split("/")[0];
158
+ var toolInterface = _this.context.metadata.tupleTools[toolClass].interface;
159
+ var paramInfo = toolInterface.filter(function (i) {
160
+ return i.name === param;
161
+ });
162
+ if (paramInfo.length === 1) {
163
+ return paramInfo[0];
164
+ } else {
165
+ console.warn("Cannot find " + param + " in:");
166
+ console.warn(toolInterface);
167
+ return {
168
+ type: "str",
169
+ description: "Error loading description"
170
+ };
171
+ }
172
+ });
173
+ _defineProperty(_assertThisInitialized(_this), "displayDoxygen", function () {
174
+ var html = {
175
+ __html: _this.context.metadata.tupleTools[_this.state.selectedToolClass].documentation
176
+ };
177
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
178
+ dangerouslySetInnerHTML: html
179
+ });
180
+ });
181
+ return _this;
182
+ }
183
+ _createClass(ParticleConfig, [{
184
+ key: "render",
185
+ value: function render() {
186
+ var _this2 = this;
187
+ var toolList = this.state.dtt.listTools(this.props.particleID);
188
+ var nTools = toolList.length;
189
+ var selectedTool = this.getSelectedTool();
190
+ var toolDocs = selectedTool ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Accordion, {
191
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Accordion.Item, {
192
+ eventKey: "0",
193
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Accordion.Header, {
194
+ children: ["Documentation for ", this.state.selectedToolClass]
195
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Accordion.Body, {
196
+ children: this.context.loaded.tupleTools ? this.displayDoxygen() : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Spinner, {
197
+ animation: "outline"
198
+ })
199
+ })]
200
+ })
201
+ }) : "";
202
+ var selectToolProps = this.state.selectedToolClass === "" ? {
203
+ value: null
204
+ } : {};
205
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
206
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Card, {
207
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Card.Header, {
208
+ className: "d-flex justify-content-between align-items-start",
209
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
210
+ children: [nTools, " TupleTool", nTools === 1 ? "" : "s"]
211
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Button, {
212
+ variant: "success",
213
+ size: "sm",
214
+ onClick: this.handleOpen("Add"),
215
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrapIcons.PlusLg, {})
216
+ })]
217
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.ListGroup, {
218
+ variant: "flush",
219
+ children: toolList.map(function (toolName) {
220
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.ListGroup.Item, {
221
+ className: "d-flex justify-content-between align-items-start",
222
+ variant: toolName === selectedTool ? "secondary" : "",
223
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TupleTool.default, {
224
+ tool: toolName
225
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.ButtonGroup, {
226
+ size: "sm",
227
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Button, {
228
+ variant: "outline-secondary",
229
+ onClick: _this2.handleConfigTool(toolName),
230
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrapIcons.PencilSquare, {})
231
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteButton.default, {
232
+ outline: true,
233
+ action: _this2.handleRemoveTool(toolName)
234
+ })]
235
+ })]
236
+ }, toolName);
237
+ })
238
+ })]
239
+ }), this.state.openAddTool ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Modal, {
240
+ show: true,
241
+ onHide: this.handleClose("Add"),
242
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Modal.Header, {
243
+ closeButton: true,
244
+ children: "Add TupleTool"
245
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Modal.Body, {
246
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.InputGroup, {
247
+ hasValidation: true,
248
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectTool.default, _objectSpread({
249
+ filterToolTags: this.props.filterToolTags,
250
+ placeholder: "TupleTool class",
251
+ onChange: this.setToolClass
252
+ }, selectToolProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.FormControl, {
253
+ placeholder: "TupleTool name",
254
+ onChange: this.setToolName,
255
+ disabled: this.state.selectedToolClass === "",
256
+ value: this.state.selectedToolName,
257
+ isInvalid: this.toolExists()
258
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.FormControl.Feedback, {
259
+ type: "invalid",
260
+ children: ["A ", this.state.selectedToolClass, " with the name \"", this.state.selectedToolName, "\" already exists"]
261
+ })]
262
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Button, {
263
+ variant: "success",
264
+ disabled: !this.state.selectedToolClass || this.toolExists(),
265
+ onClick: this.handleAddTool,
266
+ children: "Add tool"
267
+ }), toolDocs]
268
+ })]
269
+ }) : "", this.state.openConfigTool ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Modal, {
270
+ show: true,
271
+ size: "xl",
272
+ fullscreen: "lg-down",
273
+ onHide: this.handleClose("Config"),
274
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Modal.Header, {
275
+ closeButton: true,
276
+ children: ["Configure ", selectedTool]
277
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Modal.Body, {
278
+ children: [selectedTool ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Form, {
279
+ children: Object.entries(this.state.dtt.getToolConfig(this.props.particleID, selectedTool)).map(function (_ref2) {
280
+ var _ref3 = _slicedToArray(_ref2, 2),
281
+ param = _ref3[0],
282
+ value = _ref3[1];
283
+ var paramObj = _objectSpread({}, _this2.getParam(selectedTool, param));
284
+ var description = paramObj.description,
285
+ type = paramObj.type;
286
+ var defaultValue = paramObj["default"]; // TODO: get rid of JS keywords from metadata
287
+ var list_re = /\[(\w+)\]/;
288
+ var dict_re = /\{(\w+):(\w+)\}/;
289
+ var configProps = {
290
+ value: value,
291
+ defaultValue: defaultValue,
292
+ callback: _this2.handleUpdateTool(selectedTool, param)
293
+ };
294
+ var inputBox = type.match(list_re) !== null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConfigList.default, _objectSpread({
295
+ type: type.match(list_re)[1]
296
+ }, configProps)) : type.match(dict_re) !== null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConfigDict.default, _objectSpread({
297
+ keyType: type.match(dict_re)[1],
298
+ valType: type.match(dict_re)[2]
299
+ }, configProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConfigValue.default, _objectSpread({
300
+ type: type
301
+ }, configProps));
302
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Form.Group, {
303
+ as: _reactBootstrap.Row,
304
+ className: "mb-2",
305
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Form.Label, {
306
+ column: true,
307
+ sm: 3,
308
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.OverlayTrigger, {
309
+ overlay: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Tooltip, {
310
+ children: description
311
+ }),
312
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrapIcons.QuestionCircle, {})
313
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("code", {
314
+ children: [" ", param, " "]
315
+ })]
316
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Form.Label, {
317
+ column: true,
318
+ sm: 2,
319
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("code", {
320
+ children: [" ", type, " "]
321
+ })
322
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Col, {
323
+ sm: 7,
324
+ children: inputBox
325
+ })]
326
+ }, param);
327
+ })
328
+ }) : "No tool selected", toolDocs]
329
+ })]
330
+ }) : ""]
331
+ });
332
+ }
333
+ }]);
334
+ return ParticleConfig;
335
+ }(_react.default.Component);
336
+ _defineProperty(ParticleConfig, "contextType", _MetadataContext.default);
337
+ ParticleConfig.propTypes = {
338
+ dtt: _propTypes.default.object,
339
+ parentCallbackClose: _propTypes.default.func,
340
+ parentCallbackUpdated: _propTypes.default.func,
341
+ particleID: _propTypes.default.arrayOf(_propTypes.default.string),
342
+ filterToolTags: _propTypes.default.arrayOf(_propTypes.default.string)
343
+ };
344
+ var _default = ParticleConfig;
345
+ exports.default = _default;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _reactBootstrap = require("react-bootstrap");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
17
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
+ function _inherits(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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
19
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
20
+ 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); }; }
21
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
22
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
25
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
28
+ /*
29
+ * bool -> <input type="checkbox" />
30
+ * int -> <input type="number" step=1 />
31
+ * uint -> <input type="number" step=1 min=0 />
32
+ * float -> <input type="number" />
33
+ * str -> <input type="text" />
34
+ * text -> <textarea />
35
+ */
36
+ var ConfigValue = /*#__PURE__*/function (_React$Component) {
37
+ _inherits(ConfigValue, _React$Component);
38
+ var _super = _createSuper(ConfigValue);
39
+ function ConfigValue() {
40
+ var _this;
41
+ _classCallCheck(this, ConfigValue);
42
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
43
+ args[_key] = arguments[_key];
44
+ }
45
+ _this = _super.call.apply(_super, [this].concat(args));
46
+ _defineProperty(_assertThisInitialized(_this), "handleUpdate", function (event) {
47
+ var value = event.target.value;
48
+ var sanitisedValue = _this.props.type === "int" ? Math.trunc(value) : _this.props.type === "uint" ? Math.trunc(Math.abs(value)) : _this.props.type === "text" ? value.split(/\r?\n/) : value;
49
+ _this.props.callback(sanitisedValue);
50
+ });
51
+ _defineProperty(_assertThisInitialized(_this), "handleCheck", function () {
52
+ _this.props.callback(!_this.props.value);
53
+ });
54
+ return _this;
55
+ }
56
+ _createClass(ConfigValue, [{
57
+ key: "render",
58
+ value: function render() {
59
+ var inputType = {
60
+ bool: "switch",
61
+ float: "number",
62
+ int: "number",
63
+ uint: "number",
64
+ str: "text",
65
+ text: "textarea"
66
+ }[this.props.type];
67
+ if (this.props.type === "bool") {
68
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Form.Check, {
69
+ onChange: this.handleCheck,
70
+ type: inputType,
71
+ checked: this.props.value
72
+ });
73
+ } else {
74
+ var inputBoxProps = {
75
+ onChange: this.handleUpdate,
76
+ placeholder: inputType === "textarea" ? this.props.defaultValue.join("\n") : this.props.defaultValue,
77
+ value: inputType === "textarea" ? this.props.value.join("\n") : this.props.value
78
+ };
79
+ inputBoxProps[inputType === "textarea" ? "as" : "type"] = inputType;
80
+ if (this.props.type.includes("int")) {
81
+ inputBoxProps.step = 1;
82
+ if (this.props.type === "uint") {
83
+ inputBoxProps.min = 0;
84
+ }
85
+ }
86
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Form.Control, _objectSpread({}, inputBoxProps));
87
+ }
88
+ }
89
+ }]);
90
+ return ConfigValue;
91
+ }(_react.default.Component);
92
+ ConfigValue.propTypes = {
93
+ type: _propTypes.default.string,
94
+ callback: _propTypes.default.func,
95
+ value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool, _propTypes.default.number, _propTypes.default.arrayOf(_propTypes.default.string)]),
96
+ defaultValue: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool, _propTypes.default.number, _propTypes.default.arrayOf(_propTypes.default.string)])
97
+ };
98
+ var _default = ConfigValue;
99
+ exports.default = _default;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _reactBootstrap = require("react-bootstrap");
10
+ var _YearBadge = _interopRequireDefault(require("./YearBadge"));
11
+ var _PolarityBadge = _interopRequireDefault(require("./PolarityBadge"));
12
+ var _StrippingBadge = _interopRequireDefault(require("./StrippingBadge"));
13
+ var _EventTypeBadge = _interopRequireDefault(require("./EventTypeBadge"));
14
+ var _BKPath = _interopRequireDefault(require("../lib/BKPath"));
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
18
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
20
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
+ function _inherits(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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
+ 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); }; }
24
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
25
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
27
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
30
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
31
+ var Dataset = /*#__PURE__*/function (_React$Component) {
32
+ _inherits(Dataset, _React$Component);
33
+ var _super = _createSuper(Dataset);
34
+ function Dataset() {
35
+ var _this;
36
+ _classCallCheck(this, Dataset);
37
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
38
+ args[_key] = arguments[_key];
39
+ }
40
+ _this = _super.call.apply(_super, [this].concat(args));
41
+ _defineProperty(_assertThisInitialized(_this), "path", new _BKPath.default(_this.props.path));
42
+ return _this;
43
+ }
44
+ _createClass(Dataset, [{
45
+ key: "render",
46
+ value: function render() {
47
+ var version = this.path.getStrippingVersion();
48
+ var eventType = this.path.getEventType();
49
+ var year = this.path.getYear();
50
+ var polarity = this.path.getPolarity();
51
+ var filename = this.path.getFilename();
52
+ var strippingInfo = /*#__PURE__*/(0, _jsxRuntime.jsx)(_StrippingBadge.default, {
53
+ version: version
54
+ });
55
+ var eventTypeInfo = /*#__PURE__*/(0, _jsxRuntime.jsx)(_EventTypeBadge.default, {
56
+ eventType: eventType
57
+ });
58
+ var yearInfo = /*#__PURE__*/(0, _jsxRuntime.jsx)(_YearBadge.default, {
59
+ year: year
60
+ });
61
+ var polarityInfo = /*#__PURE__*/(0, _jsxRuntime.jsx)(_PolarityBadge.default, {
62
+ polarity: polarity
63
+ });
64
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
65
+ children: [filename, /*#__PURE__*/(0, _jsxRuntime.jsx)("br", {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Stack, {
66
+ direction: "horizontal",
67
+ style: {
68
+ flexWrap: "wrap"
69
+ },
70
+ gap: 1,
71
+ children: [eventTypeInfo, " ", yearInfo, " ", polarityInfo, " ", strippingInfo]
72
+ })]
73
+ });
74
+ }
75
+ }]);
76
+ return Dataset;
77
+ }(_react.default.Component);
78
+ Dataset.propTypes = {
79
+ path: _propTypes.default.string
80
+ };
81
+ var _default = Dataset;
82
+ exports.default = _default;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var React = _interopRequireWildcard(require("react"));
9
+ var _propTypes = _interopRequireDefault(require("prop-types"));
10
+ var _mathjaxReact = require("mathjax-react");
11
+ var _reactBootstrap = require("react-bootstrap");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ 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); }
15
+ 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; }
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
21
+ function _inherits(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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
+ 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); }; }
24
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
25
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
27
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
+ var Decay = /*#__PURE__*/function (_React$Component) {
29
+ _inherits(Decay, _React$Component);
30
+ var _super = _createSuper(Decay);
31
+ function Decay() {
32
+ _classCallCheck(this, Decay);
33
+ return _super.apply(this, arguments);
34
+ }
35
+ _createClass(Decay, [{
36
+ key: "render",
37
+ value: function render() {
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.OverlayTrigger, {
39
+ overlay: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactBootstrap.Popover, {
40
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Popover.Header, {
41
+ children: "LoKi descriptor"
42
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Popover.Body, {
43
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("code", {
44
+ children: this.props.decay.descriptors.plain
45
+ })
46
+ })]
47
+ }),
48
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
49
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mathjaxReact.MathComponent, {
50
+ tex: this.props.decay.descriptors.latex,
51
+ display: this.props.display
52
+ })
53
+ })
54
+ });
55
+ }
56
+ }]);
57
+ return Decay;
58
+ }(React.Component);
59
+ Decay.propTypes = {
60
+ decay: _propTypes.default.object,
61
+ display: _propTypes.default.bool
62
+ };
63
+ var _default = Decay;
64
+ exports.default = _default;