@inseefr/lunatic 2.4.9 → 2.5.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/commons/components/orchestrated-component.js +10 -30
- package/lib/components/commons/create-row-orchestrator.js +7 -2
- package/lib/components/component-set/html/component-set-components.js +16 -25
- package/lib/components/component-set/lunatic-component-set.js +23 -37
- package/lib/components/index.js +14 -0
- package/lib/components/loop/block-for-loop/block-for-loop.js +4 -2
- package/lib/components/loop/block-for-loop/row.js +4 -2
- package/lib/components/loop/loop.js +6 -3
- package/lib/components/loop/roster-for-loop/body.js +4 -2
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +2 -0
- package/lib/components/loop/roster-for-loop/roster-table.js +4 -2
- package/lib/components/loop/roster-for-loop/row.js +3 -1
- package/lib/components/question-explication/html/question-explication.js +53 -0
- package/lib/components/question-explication/html/question-explication.scss +35 -0
- package/lib/components/question-explication/index.js +13 -0
- package/lib/components/question-explication/lunatic-question-explication.js +32 -0
- package/lib/components/question-explication/question-explication.spec.js +49 -0
- package/lib/components/roundabout/lunatic-roundabout.js +2 -4
- package/lib/components/subsequence/subsequence.js +0 -2
- package/lib/components/subsequence/subsequence.spec.js +2 -2
- package/lib/components/summary/html/summary-container.js +14 -0
- package/lib/components/summary/html/summary-responses.js +53 -0
- package/lib/components/summary/html/summary-title.js +20 -0
- package/lib/components/summary/index.js +12 -0
- package/lib/components/summary/lunatic-summary.js +99 -0
- package/lib/src/components/commons/components/orchestrated-component.d.ts +4 -5
- package/lib/src/components/commons/create-row-orchestrator.d.ts +3 -2
- package/lib/src/components/component-set/html/component-set-components.d.ts +2 -2
- package/lib/src/components/component-set/lunatic-component-set.d.ts +2 -1
- package/lib/src/components/index.d.ts +2 -0
- package/lib/src/components/loop/block-for-loop/block-for-loop-ochestrator.d.ts +3 -2
- package/lib/src/components/loop/block-for-loop/row.d.ts +2 -1
- package/lib/src/components/loop/roster-for-loop/body.d.ts +2 -2
- package/lib/src/components/loop/roster-for-loop/roster-for-loop-orchestrator.d.ts +3 -2
- package/lib/src/components/loop/roster-for-loop/roster-table.d.ts +2 -2
- package/lib/src/components/loop/roster-for-loop/row.d.ts +2 -1
- package/lib/src/components/question-explication/html/question-explication.d.ts +7 -0
- package/lib/src/components/question-explication/index.d.ts +1 -0
- package/lib/src/components/question-explication/lunatic-question-explication.d.ts +3 -0
- package/lib/src/components/question-explication/question-explication.spec.d.ts +1 -0
- package/lib/src/components/subsequence/subsequence.d.ts +2 -2
- package/lib/src/components/summary/html/summary-container.d.ts +2 -0
- package/lib/src/components/summary/html/summary-responses.d.ts +12 -0
- package/lib/src/components/summary/html/summary-title.d.ts +5 -0
- package/lib/src/components/summary/index.d.ts +1 -0
- package/lib/src/components/summary/lunatic-summary.d.ts +7 -0
- package/lib/src/components/type.d.ts +18 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/use-lunatic/actions.d.ts +6 -169
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +137 -112
- package/lib/src/use-lunatic/commons/fill-components/fill-missing-response.d.ts +2 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +115 -94
- package/lib/src/use-lunatic/commons/page-navigation.d.ts +7 -0
- package/lib/src/use-lunatic/commons/page-navigation.spec.d.ts +1 -0
- package/lib/src/use-lunatic/commons/page.d.ts +11 -0
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/commons/auto-explore-loop.d.ts +5 -0
- package/lib/src/use-lunatic/reducer/commons/index.d.ts +0 -1
- package/lib/src/use-lunatic/reducer/commons/is-loop-component.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +1 -7
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +3 -3
- package/lib/src/use-lunatic/type-source.d.ts +27 -13
- package/lib/src/use-lunatic/type.d.ts +4 -12
- package/lib/src/use-lunatic/use-lunatic.d.ts +474 -10
- package/lib/src/utils/store-tools/worker-path.d.ts +1 -0
- package/lib/stories/component-set/component-set.stories.js +2 -1
- package/lib/stories/loop/block-for-loop.stories.js +8 -1
- package/lib/stories/loop/roster-for-loop.stories.js +8 -1
- package/lib/{use-lunatic/reducer/reduce-roundabout.js → stories/question-explication/question-explication.stories.js} +21 -17
- package/lib/stories/question-explication/source.json +17 -0
- package/lib/stories/roundabout/roundabout.stories.js +2 -1
- package/lib/stories/suggester/source-component-set.json +67 -0
- package/lib/stories/suggester/suggester.stories.js +9 -1
- package/lib/stories/summary/data.json +32 -0
- package/lib/stories/summary/source.json +353 -0
- package/lib/stories/summary/summary.stories.js +37 -0
- package/lib/stories/utils/orchestrator.js +5 -3
- package/lib/use-lunatic/commons/check-pager.js +1 -2
- package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +14 -12
- package/lib/use-lunatic/commons/page-navigation.js +109 -0
- package/lib/use-lunatic/commons/page-navigation.spec.js +129 -0
- package/lib/use-lunatic/commons/page.js +44 -0
- package/lib/use-lunatic/reducer/commons/auto-explore-loop.js +39 -0
- package/lib/use-lunatic/reducer/commons/index.js +0 -8
- package/lib/use-lunatic/reducer/reduce-go-next-page.js +25 -159
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js +21 -127
- package/lib/use-lunatic/reducer/reduce-go-to-page.js +53 -55
- package/lib/use-lunatic/reducer/reduce-on-init.js +5 -8
- package/lib/use-lunatic/reducer/resolve-component-controls/resolve-roundabout-control.js +1 -1
- package/lib/use-lunatic/reducer/resolve-component-controls/resolve-simple-control.js +1 -1
- package/lib/use-lunatic/type-source.js +0 -2
- package/lib/use-lunatic/use-lunatic.js +17 -3
- package/lib/utils/store-tools/auto-load.js +2 -2
- package/lib/utils/store-tools/worker-path.js +13 -0
- package/lib/utils/suggester-workers/append-to-index/create-append-task.js +2 -2
- package/package.json +3 -3
- package/lib/components/button/__snapshots__/lunatic-button.spec.jsx.snap +0 -80
- package/lib/components/commons/components/combo-box/selection/__snapshots__/selection.spec.jsx.snap +0 -81
- package/lib/src/use-lunatic/reducer/commons/is-empty-on-empty-page.d.ts +0 -3
- package/lib/src/use-lunatic/reducer/reduce-roundabout.d.ts +0 -2
- package/lib/use-lunatic/reducer/commons/is-empty-on-empty-page.js +0 -32
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -7,53 +8,32 @@ exports["default"] = void 0;
|
|
|
7
8
|
var lunatic = _interopRequireWildcard(require("../../../components"));
|
|
8
9
|
var _commons = require("../../../use-lunatic/commons");
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _excluded = ["component"];
|
|
10
12
|
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); }
|
|
11
13
|
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; }
|
|
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
14
|
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
15
|
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
16
|
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; }
|
|
16
17
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
18
|
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); }
|
|
19
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
20
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
18
21
|
function OrchestratedComponent(_ref) {
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
handleChange = _ref.handleChange,
|
|
22
|
-
features = _ref.features,
|
|
23
|
-
missing = _ref.missing,
|
|
24
|
-
shortcut = _ref.shortcut,
|
|
25
|
-
management = _ref.management,
|
|
26
|
-
preferences = _ref.preferences,
|
|
27
|
-
value = _ref.value,
|
|
28
|
-
iteration = _ref.iteration,
|
|
29
|
-
linksIterations = _ref.linksIterations,
|
|
30
|
-
executeExpression = _ref.executeExpression,
|
|
31
|
-
errors = _ref.errors;
|
|
22
|
+
var component = _ref.component,
|
|
23
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
32
24
|
var componentType = component.componentType;
|
|
33
25
|
var componentFilled = (0, _commons.fillComponentExpressions)(component, {
|
|
34
|
-
executeExpression: executeExpression,
|
|
26
|
+
executeExpression: props.executeExpression,
|
|
35
27
|
pager: {
|
|
36
|
-
iteration: iteration,
|
|
37
|
-
linksIterations: linksIterations
|
|
28
|
+
iteration: props.iteration,
|
|
29
|
+
linksIterations: props.linksIterations
|
|
38
30
|
}
|
|
39
31
|
});
|
|
40
32
|
var conditionFilter = componentFilled.conditionFilter;
|
|
41
33
|
var hasToBeDisplay = conditionFilter !== null && conditionFilter !== void 0 ? conditionFilter : true;
|
|
42
34
|
if (componentType in lunatic && hasToBeDisplay) {
|
|
43
35
|
var Component = lunatic[componentType]; // This is too dynamic, orchestration has no way to check props
|
|
44
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, _objectSpread(_objectSpread({}, componentFilled),
|
|
45
|
-
id: id,
|
|
46
|
-
handleChange: handleChange,
|
|
47
|
-
preferences: preferences,
|
|
48
|
-
management: management,
|
|
49
|
-
features: features,
|
|
50
|
-
missing: missing,
|
|
51
|
-
shortcut: shortcut,
|
|
52
|
-
value: value,
|
|
53
|
-
executeExpression: executeExpression,
|
|
54
|
-
errors: errors,
|
|
55
|
-
iteration: iteration
|
|
56
|
-
}));
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, _objectSpread(_objectSpread({}, componentFilled), props));
|
|
57
37
|
}
|
|
58
38
|
return null;
|
|
59
39
|
}
|
|
@@ -21,10 +21,14 @@ function createRowOrchestrator(Row) {
|
|
|
21
21
|
executeExpression = _ref.executeExpression,
|
|
22
22
|
iteration = _ref.iteration,
|
|
23
23
|
xAxisIterations = _ref.xAxisIterations,
|
|
24
|
-
errors = _ref.errors
|
|
24
|
+
errors = _ref.errors,
|
|
25
|
+
disabled = _ref.disabled;
|
|
25
26
|
if (nbRows <= 0) {
|
|
26
27
|
return null;
|
|
27
28
|
}
|
|
29
|
+
if (isNaN(nbRows)) {
|
|
30
|
+
throw new Error("nbRows should be a number");
|
|
31
|
+
}
|
|
28
32
|
var items = new Array(nbRows).fill(null);
|
|
29
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
30
34
|
children: items.map(function (_, index) {
|
|
@@ -37,7 +41,8 @@ function createRowOrchestrator(Row) {
|
|
|
37
41
|
handleChange: handleChange,
|
|
38
42
|
executeExpression: executeExpression,
|
|
39
43
|
iteration: iteration,
|
|
40
|
-
linksIterations: linksIterations
|
|
44
|
+
linksIterations: linksIterations,
|
|
45
|
+
disabled: disabled
|
|
41
46
|
/** */,
|
|
42
47
|
features: features,
|
|
43
48
|
shortcut: shortcut,
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports["default"] = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _commons = require("../../commons");
|
|
9
9
|
var _componentSetComponentContainer = _interopRequireDefault(require("./component-set-component-container"));
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _excluded = ["components", "componentClassName", "className", "value"];
|
|
11
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": 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 _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; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
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); }
|
|
18
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
20
|
/**
|
|
13
21
|
* Extract the value associated with a component
|
|
14
22
|
*/
|
|
@@ -28,18 +36,10 @@ function hasResponse(component) {
|
|
|
28
36
|
}
|
|
29
37
|
function ComponentSetComponents(_ref) {
|
|
30
38
|
var components = _ref.components,
|
|
31
|
-
value = _ref.value,
|
|
32
|
-
features = _ref.features,
|
|
33
|
-
missing = _ref.missing,
|
|
34
|
-
shortcut = _ref.shortcut,
|
|
35
|
-
management = _ref.management,
|
|
36
|
-
preferences = _ref.preferences,
|
|
37
|
-
executeExpression = _ref.executeExpression,
|
|
38
|
-
errors = _ref.errors,
|
|
39
|
-
className = _ref.className,
|
|
40
|
-
handleChange = _ref.handleChange,
|
|
41
39
|
componentClassName = _ref.componentClassName,
|
|
42
|
-
|
|
40
|
+
className = _ref.className,
|
|
41
|
+
value = _ref.value,
|
|
42
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
43
43
|
if (!Array.isArray(components)) {
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
@@ -49,21 +49,12 @@ function ComponentSetComponents(_ref) {
|
|
|
49
49
|
var componentValue = getComponentValue(component, value);
|
|
50
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentSetComponentContainer["default"], {
|
|
51
51
|
className: className,
|
|
52
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_commons.OrchestratedComponent, {
|
|
52
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_commons.OrchestratedComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
53
53
|
component: component,
|
|
54
|
-
features: features,
|
|
55
|
-
missing: missing,
|
|
56
|
-
shortcut: shortcut,
|
|
57
|
-
management: management,
|
|
58
|
-
value: componentValue,
|
|
59
|
-
iteration: iteration,
|
|
60
54
|
id: id,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
handleChange: handleChange,
|
|
65
|
-
className: componentClassName
|
|
66
|
-
})
|
|
55
|
+
className: componentClassName,
|
|
56
|
+
value: componentValue
|
|
57
|
+
}))
|
|
67
58
|
}, id);
|
|
68
59
|
})
|
|
69
60
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -8,51 +9,36 @@ var _lunaticComponentWithoutLabel = _interopRequireDefault(require("../commons/c
|
|
|
8
9
|
var _componentSet = _interopRequireDefault(require("./html/component-set"));
|
|
9
10
|
var _componentSetComponents = _interopRequireDefault(require("./html/component-set-components"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
var _excluded = ["id", "label", "declarations", "description", "response"];
|
|
11
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
handleChange = props.handleChange,
|
|
27
|
-
className = props.className,
|
|
28
|
-
iteration = props.iteration;
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
|
+
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; }
|
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
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); }
|
|
19
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
20
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
+
function LunaticComponentSet(_ref) {
|
|
22
|
+
var id = _ref.id,
|
|
23
|
+
label = _ref.label,
|
|
24
|
+
declarations = _ref.declarations,
|
|
25
|
+
description = _ref.description,
|
|
26
|
+
response = _ref.response,
|
|
27
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
28
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_lunaticComponentWithoutLabel["default"], {
|
|
30
29
|
id: id,
|
|
31
|
-
preferences: preferences,
|
|
32
30
|
declarations: declarations,
|
|
33
|
-
value: value,
|
|
34
|
-
missing: missing,
|
|
35
|
-
management: management,
|
|
36
31
|
description: description,
|
|
37
|
-
|
|
32
|
+
preferences: props.preferences,
|
|
33
|
+
value: props.value,
|
|
34
|
+
missing: props.missing,
|
|
35
|
+
management: props.management,
|
|
36
|
+
handleChange: props.handleChange,
|
|
38
37
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentSet["default"], {
|
|
39
38
|
id: id,
|
|
40
39
|
legendText: label,
|
|
41
|
-
errors: errors,
|
|
42
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentSetComponents["default"], {
|
|
43
|
-
className: className,
|
|
44
|
-
components: components,
|
|
45
|
-
features: features,
|
|
46
|
-
errors: errors,
|
|
47
|
-
value: value,
|
|
48
|
-
iteration: iteration,
|
|
49
|
-
executeExpression: executeExpression,
|
|
50
|
-
preferences: preferences,
|
|
51
|
-
management: management,
|
|
52
|
-
missing: missing,
|
|
53
|
-
shortcut: shortcut,
|
|
54
|
-
handleChange: handleChange
|
|
55
|
-
})
|
|
40
|
+
errors: props.errors,
|
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentSetComponents["default"], _objectSpread({}, props))
|
|
56
42
|
})
|
|
57
43
|
});
|
|
58
44
|
}
|
package/lib/components/index.js
CHANGED
|
@@ -93,6 +93,12 @@ Object.defineProperty(exports, "QuestionContext", {
|
|
|
93
93
|
return _questionContext["default"];
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
|
+
Object.defineProperty(exports, "QuestionExplication", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function get() {
|
|
99
|
+
return _questionExplication["default"];
|
|
100
|
+
}
|
|
101
|
+
});
|
|
96
102
|
Object.defineProperty(exports, "QuestionInformation", {
|
|
97
103
|
enumerable: true,
|
|
98
104
|
get: function get() {
|
|
@@ -141,6 +147,12 @@ Object.defineProperty(exports, "SuggesterLoaderWidget", {
|
|
|
141
147
|
return _suggesterLoaderWidget["default"];
|
|
142
148
|
}
|
|
143
149
|
});
|
|
150
|
+
Object.defineProperty(exports, "Summary", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _summary.Summary;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
144
156
|
Object.defineProperty(exports, "Switch", {
|
|
145
157
|
enumerable: true,
|
|
146
158
|
get: function get() {
|
|
@@ -182,6 +194,8 @@ var _suggesterLoaderWidget = _interopRequireDefault(require("./suggester-loader-
|
|
|
182
194
|
var _roundabout = _interopRequireDefault(require("./roundabout"));
|
|
183
195
|
var _table = _interopRequireDefault(require("./table"));
|
|
184
196
|
var _componentSet = _interopRequireDefault(require("./component-set"));
|
|
197
|
+
var _summary = require("./summary");
|
|
185
198
|
var _questionInformation = _interopRequireDefault(require("./questions/question-information"));
|
|
186
199
|
var _questionContext = _interopRequireDefault(require("./questions/question-context"));
|
|
200
|
+
var _questionExplication = _interopRequireDefault(require("./question-explication"));
|
|
187
201
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -43,7 +43,8 @@ function BlockForLoop(_ref) {
|
|
|
43
43
|
executeExpression = _ref.executeExpression,
|
|
44
44
|
iterations = _ref.iterations,
|
|
45
45
|
paginatedLoop = _ref.paginatedLoop,
|
|
46
|
-
errors = _ref.errors
|
|
46
|
+
errors = _ref.errors,
|
|
47
|
+
disabled = _ref.disabled;
|
|
47
48
|
var min = lines === null || lines === void 0 ? void 0 : lines.min;
|
|
48
49
|
var max = lines === null || lines === void 0 ? void 0 : lines.max;
|
|
49
50
|
var _useState = (0, _react.useState)(function () {
|
|
@@ -114,7 +115,8 @@ function BlockForLoop(_ref) {
|
|
|
114
115
|
features: features,
|
|
115
116
|
preferences: preferences,
|
|
116
117
|
executeExpression: executeExpression,
|
|
117
|
-
errors: errors
|
|
118
|
+
errors: errors,
|
|
119
|
+
disabled: disabled
|
|
118
120
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_declarations.DeclarationsDetachable, {
|
|
119
121
|
declarations: declarations,
|
|
120
122
|
id: id
|
|
@@ -22,7 +22,8 @@ function Row(_ref) {
|
|
|
22
22
|
preferences = _ref.preferences,
|
|
23
23
|
rowIndex = _ref.rowIndex,
|
|
24
24
|
executeExpression = _ref.executeExpression,
|
|
25
|
-
errors = _ref.errors
|
|
25
|
+
errors = _ref.errors,
|
|
26
|
+
disabled = _ref.disabled;
|
|
26
27
|
var handleChangeRow = (0, _react.useCallback)(function (response, value) {
|
|
27
28
|
handleChange(response, value, {
|
|
28
29
|
index: rowIndex
|
|
@@ -52,7 +53,8 @@ function Row(_ref) {
|
|
|
52
53
|
preferences: preferences,
|
|
53
54
|
iteration: rowIndex,
|
|
54
55
|
executeExpression: executeExpression,
|
|
55
|
-
errors: errors
|
|
56
|
+
errors: errors,
|
|
57
|
+
disabled: disabled
|
|
56
58
|
}, idComponent);
|
|
57
59
|
})
|
|
58
60
|
});
|
|
@@ -31,7 +31,8 @@ function Loop(props) {
|
|
|
31
31
|
features = props.features,
|
|
32
32
|
preferences = props.preferences,
|
|
33
33
|
paginatedLoop = props.paginatedLoop,
|
|
34
|
-
errors = props.errors
|
|
34
|
+
errors = props.errors,
|
|
35
|
+
disabled = props.disabled;
|
|
35
36
|
switch (componentType) {
|
|
36
37
|
case LoopTypes.blockForLoop:
|
|
37
38
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockForLoop["default"], {
|
|
@@ -50,7 +51,8 @@ function Loop(props) {
|
|
|
50
51
|
features: features,
|
|
51
52
|
preferences: preferences,
|
|
52
53
|
paginatedLoop: paginatedLoop,
|
|
53
|
-
errors: errors
|
|
54
|
+
errors: errors,
|
|
55
|
+
disabled: disabled
|
|
54
56
|
});
|
|
55
57
|
case LoopTypes.rosterForLoop:
|
|
56
58
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rosterForLoop["default"], {
|
|
@@ -69,7 +71,8 @@ function Loop(props) {
|
|
|
69
71
|
features: features,
|
|
70
72
|
preferences: preferences,
|
|
71
73
|
headers: headers,
|
|
72
|
-
errors: errors
|
|
74
|
+
errors: errors,
|
|
75
|
+
disabled: disabled
|
|
73
76
|
});
|
|
74
77
|
default:
|
|
75
78
|
return null;
|
|
@@ -24,7 +24,8 @@ function Body(_ref) {
|
|
|
24
24
|
executeExpression = _ref.executeExpression,
|
|
25
25
|
handleChange = _ref.handleChange,
|
|
26
26
|
valueMap = _ref.value,
|
|
27
|
-
missing = _ref.missing
|
|
27
|
+
missing = _ref.missing,
|
|
28
|
+
disabled = _ref.disabled;
|
|
28
29
|
var handleChangeRow = (0, _react.useCallback)(function (response, value, args) {
|
|
29
30
|
handleChange(response, value, _objectSpread(_objectSpread({}, args), {}, {
|
|
30
31
|
loop: true,
|
|
@@ -44,7 +45,8 @@ function Body(_ref) {
|
|
|
44
45
|
executeExpression: executeExpression,
|
|
45
46
|
valueMap: valueMap,
|
|
46
47
|
missing: missing,
|
|
47
|
-
preferences: ['COLLECTED']
|
|
48
|
+
preferences: ['COLLECTED'],
|
|
49
|
+
disabled: disabled
|
|
48
50
|
})
|
|
49
51
|
});
|
|
50
52
|
}
|
|
@@ -37,6 +37,7 @@ function RosterforLoop(_ref) {
|
|
|
37
37
|
shortcut = _ref.shortcut,
|
|
38
38
|
id = _ref.id,
|
|
39
39
|
management = _ref.management,
|
|
40
|
+
disabled = _ref.disabled,
|
|
40
41
|
errors = _ref.errors;
|
|
41
42
|
var min = (lines === null || lines === void 0 ? void 0 : lines.min) || DEFAULT_MIN_ROWS;
|
|
42
43
|
var max = (lines === null || lines === void 0 ? void 0 : lines.max) || DEFAULT_MAX_ROWS;
|
|
@@ -96,6 +97,7 @@ function RosterforLoop(_ref) {
|
|
|
96
97
|
management: management,
|
|
97
98
|
missing: missing,
|
|
98
99
|
shortcut: shortcut,
|
|
100
|
+
disabled: disabled,
|
|
99
101
|
errors: errors
|
|
100
102
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_declarations.DeclarationsDetachable, {
|
|
101
103
|
declarations: declarations,
|
|
@@ -22,7 +22,8 @@ function RosterTable(_ref) {
|
|
|
22
22
|
shortcut = _ref.shortcut,
|
|
23
23
|
missing = _ref.missing,
|
|
24
24
|
management = _ref.management,
|
|
25
|
-
handleChange = _ref.handleChange
|
|
25
|
+
handleChange = _ref.handleChange,
|
|
26
|
+
disabled = _ref.disabled;
|
|
26
27
|
if (nbRows <= 0) {
|
|
27
28
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_commons.NothingToDisplay, {});
|
|
28
29
|
}
|
|
@@ -40,7 +41,8 @@ function RosterTable(_ref) {
|
|
|
40
41
|
management: management,
|
|
41
42
|
missing: missing,
|
|
42
43
|
shortcut: shortcut,
|
|
43
|
-
executeExpression: executeExpression
|
|
44
|
+
executeExpression: executeExpression,
|
|
45
|
+
disabled: disabled
|
|
44
46
|
})]
|
|
45
47
|
});
|
|
46
48
|
}
|
|
@@ -25,7 +25,8 @@ function Row(_ref) {
|
|
|
25
25
|
management = _ref.management,
|
|
26
26
|
preferences = _ref.preferences,
|
|
27
27
|
executeExpression = _ref.executeExpression,
|
|
28
|
-
errors = _ref.errors
|
|
28
|
+
errors = _ref.errors,
|
|
29
|
+
disabled = _ref.disabled;
|
|
29
30
|
var handleChangeRow = (0, _react.useCallback)(function (response, value) {
|
|
30
31
|
handleChange(response, value, {
|
|
31
32
|
index: rowIndex
|
|
@@ -73,6 +74,7 @@ function Row(_ref) {
|
|
|
73
74
|
preferences: preferences,
|
|
74
75
|
iteration: rowIndex,
|
|
75
76
|
executeExpression: executeExpression,
|
|
77
|
+
disabled: disabled,
|
|
76
78
|
errors: errors
|
|
77
79
|
})
|
|
78
80
|
}, key);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _commons = require("../../commons");
|
|
9
|
+
require("./question-explication.scss");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
+
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."); }
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
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; } }
|
|
16
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
+
function QuestionExplication(_ref) {
|
|
18
|
+
var id = _ref.id,
|
|
19
|
+
label = _ref.label,
|
|
20
|
+
description = _ref.description,
|
|
21
|
+
bgColor = _ref.bgColor;
|
|
22
|
+
var _useState = (0, _react.useState)(false),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
isActive = _useState2[0],
|
|
25
|
+
setIsActive = _useState2[1];
|
|
26
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("section", {
|
|
27
|
+
className: "accordion-item",
|
|
28
|
+
style: bgColor ? {
|
|
29
|
+
backgroundColor: bgColor
|
|
30
|
+
} : {},
|
|
31
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("h3", {
|
|
32
|
+
className: "accordion-title",
|
|
33
|
+
onClick: function onClick() {
|
|
34
|
+
return setIsActive(!isActive);
|
|
35
|
+
},
|
|
36
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
37
|
+
className: "accordion-trigger",
|
|
38
|
+
"aria-expanded": isActive,
|
|
39
|
+
"aria-controls": "accordion-".concat(id),
|
|
40
|
+
children: label
|
|
41
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
42
|
+
children: isActive ? '-' : '+'
|
|
43
|
+
})]
|
|
44
|
+
}), isActive && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
45
|
+
className: "accordion-content",
|
|
46
|
+
id: "accordion-".concat(id),
|
|
47
|
+
children: description
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
;
|
|
52
|
+
var _default = (0, _commons.createCustomizableLunaticField)(QuestionExplication, 'QuestionExplication');
|
|
53
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.lunatic-component {
|
|
2
|
+
.accordion-item {
|
|
3
|
+
max-width: 600px;
|
|
4
|
+
background-color: '#FFFFFF';
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.accordion-title {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
align-items: center;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
border-top: 1px solid #000000;
|
|
14
|
+
border-bottom: 1px solid #000000;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.accordion-title,
|
|
18
|
+
.accordion-content {
|
|
19
|
+
padding: 1rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.accordion-trigger {
|
|
23
|
+
background: none;
|
|
24
|
+
display: block;
|
|
25
|
+
font-size: 1rem;
|
|
26
|
+
margin: 0;
|
|
27
|
+
position: relative;
|
|
28
|
+
text-align: left;
|
|
29
|
+
width: 100%;
|
|
30
|
+
outline: none;
|
|
31
|
+
border: none;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _lunaticQuestionExplication["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _lunaticQuestionExplication = _interopRequireDefault(require("./lunatic-question-explication"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _questionExplication = _interopRequireDefault(require("./html/question-explication"));
|
|
8
|
+
var _lunaticComponentWithoutLabel = _interopRequireDefault(require("../commons/components/lunatic-component-without-label"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
function empty() {}
|
|
12
|
+
function LunaticQuestionExplication(_ref) {
|
|
13
|
+
var id = _ref.id,
|
|
14
|
+
label = _ref.label,
|
|
15
|
+
description = _ref.description,
|
|
16
|
+
bgColor = _ref.bgColor;
|
|
17
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_lunaticComponentWithoutLabel["default"], {
|
|
18
|
+
id: id,
|
|
19
|
+
label: label,
|
|
20
|
+
handleChange: empty,
|
|
21
|
+
description: description,
|
|
22
|
+
value: undefined,
|
|
23
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_questionExplication["default"], {
|
|
24
|
+
label: label,
|
|
25
|
+
id: id,
|
|
26
|
+
description: description,
|
|
27
|
+
bgColor: bgColor
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
var _default = LunaticQuestionExplication;
|
|
32
|
+
exports["default"] = _default;
|