orc-shared 5.7.0-dev.13 → 5.7.0-dev.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/requestsApi.js +743 -140
- package/dist/actions/scopes.js +25 -1
- package/dist/buildStore.js +2 -0
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +7 -3
- package/dist/components/MaterialUI/Inputs/InputBase.js +6 -1
- package/dist/components/Provision.js +2 -1
- package/dist/components/ScopeExtendedConfigurationLoader.js +83 -0
- package/dist/content/icons/orckestra-icon.svg +11 -5
- package/dist/reducers/scopesExtendedConfiguration.js +68 -0
- package/dist/selectors/scopeExtendedConfiguration.js +56 -0
- package/package.json +1 -1
- package/src/actions/requestsApi.js +511 -89
- package/src/actions/scopes.js +25 -1
- package/src/actions/scopes.test.js +34 -0
- package/src/buildStore.js +2 -0
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +9 -3
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.test.js +29 -0
- package/src/components/MaterialUI/Inputs/InputBase.js +8 -5
- package/src/components/MaterialUI/Inputs/InputBase.test.js +160 -110
- package/src/components/Provision.js +2 -0
- package/src/components/Provision.test.js +7 -0
- package/src/components/ScopeExtendedConfigurationLoader.js +22 -0
- package/src/components/ScopeExtendedConfigurationLoader.test.js +71 -0
- package/src/content/icons/orckestra-icon.svg +11 -5
- package/src/reducers/scopesExtendedConfiguration.js +16 -0
- package/src/reducers/scopesExtendedConfiguration.test.js +31 -0
- package/src/selectors/scopeExtendedConfiguration.js +9 -0
- package/src/selectors/scopeExtendedConfiguration.test.js +45 -0
package/dist/actions/scopes.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.validateOvertureApplication = exports.getScopes = exports.getDefaultScope = exports.getAppModules = exports.applicationScopeHasChanged = exports.GET_SCOPES_SUCCESS = exports.GET_SCOPES_REQUEST = exports.GET_SCOPES_FAILURE = exports.GET_SCOPES = exports.GET_MY_SCOPE_SUCCESS = exports.GET_MY_SCOPE_REQUEST = exports.GET_MY_SCOPE_FAILURE = exports.GET_MY_SCOPE = exports.GET_APPLICATION_MODULES_SUCCESS = exports.GET_APPLICATION_MODULES_REQUEST = exports.GET_APPLICATION_MODULES_FAILURE = exports.GET_APPLICATION_MODULES = exports.APPLICATION_SCOPE_HAS_CHANGED = void 0;
|
|
4
|
+
exports.validateOvertureApplication = exports.getScopes = exports.getScopeExtendedConfiguration = exports.getDefaultScope = exports.getAppModules = exports.applicationScopeHasChanged = exports.GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS = exports.GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST = exports.GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE = exports.GET_SCOPE_EXTENDED_CONFIGURATION = exports.GET_SCOPES_SUCCESS = exports.GET_SCOPES_REQUEST = exports.GET_SCOPES_FAILURE = exports.GET_SCOPES = exports.GET_MY_SCOPE_SUCCESS = exports.GET_MY_SCOPE_REQUEST = exports.GET_MY_SCOPE_FAILURE = exports.GET_MY_SCOPE = exports.GET_APPLICATION_MODULES_SUCCESS = exports.GET_APPLICATION_MODULES_REQUEST = exports.GET_APPLICATION_MODULES_FAILURE = exports.GET_APPLICATION_MODULES = exports.APPLICATION_SCOPE_HAS_CHANGED = void 0;
|
|
5
5
|
var _makeApiAction = require("./makeApiAction");
|
|
6
6
|
var _makeOrcApiAction = _interopRequireDefault(require("./makeOrcApiAction"));
|
|
7
7
|
var _requestsApi = require("./requestsApi");
|
|
@@ -78,6 +78,20 @@ var applicationScopeHasChanged = exports.applicationScopeHasChanged = function a
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
var GET_SCOPE_EXTENDED_CONFIGURATION = exports.GET_SCOPE_EXTENDED_CONFIGURATION = "GET_SCOPE_EXTENDED_CONFIGURATION";
|
|
82
|
+
var _makeActionTypes7 = (0, _makeApiAction.makeActionTypes)(GET_SCOPE_EXTENDED_CONFIGURATION),
|
|
83
|
+
_makeActionTypes8 = _slicedToArray(_makeActionTypes7, 3),
|
|
84
|
+
GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST = exports.GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST = _makeActionTypes8[0],
|
|
85
|
+
GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS = exports.GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS = _makeActionTypes8[1],
|
|
86
|
+
GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE = exports.GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE = _makeActionTypes8[2];
|
|
87
|
+
var getScopeExtendedConfiguration = exports.getScopeExtendedConfiguration = function getScopeExtendedConfiguration(scope) {
|
|
88
|
+
return (0, _makeOrcApiAction.default)(GET_SCOPE_EXTENDED_CONFIGURATION, _requestsApi.getScopeExtendedConfigurationRequest.buildUrl(scope), _requestsApi.getScopeExtendedConfigurationRequest.verb, {
|
|
89
|
+
bailout: false,
|
|
90
|
+
meta: {
|
|
91
|
+
scope: scope
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
};
|
|
81
95
|
;
|
|
82
96
|
(function () {
|
|
83
97
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -102,6 +116,11 @@ var applicationScopeHasChanged = exports.applicationScopeHasChanged = function a
|
|
|
102
116
|
reactHotLoader.register(getDefaultScope, "getDefaultScope", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
103
117
|
reactHotLoader.register(APPLICATION_SCOPE_HAS_CHANGED, "APPLICATION_SCOPE_HAS_CHANGED", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
104
118
|
reactHotLoader.register(applicationScopeHasChanged, "applicationScopeHasChanged", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
119
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION, "GET_SCOPE_EXTENDED_CONFIGURATION", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
120
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST, "GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
121
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS, "GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
122
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE, "GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
123
|
+
reactHotLoader.register(getScopeExtendedConfiguration, "getScopeExtendedConfiguration", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
105
124
|
})();
|
|
106
125
|
;
|
|
107
126
|
(function () {
|
|
@@ -132,6 +151,11 @@ var applicationScopeHasChanged = exports.applicationScopeHasChanged = function a
|
|
|
132
151
|
reactHotLoader.register(getDefaultScope, "getDefaultScope", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
133
152
|
reactHotLoader.register(APPLICATION_SCOPE_HAS_CHANGED, "APPLICATION_SCOPE_HAS_CHANGED", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
134
153
|
reactHotLoader.register(applicationScopeHasChanged, "applicationScopeHasChanged", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
154
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION, "GET_SCOPE_EXTENDED_CONFIGURATION", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
155
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST, "GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
156
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS, "GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
157
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE, "GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
158
|
+
reactHotLoader.register(getScopeExtendedConfiguration, "getScopeExtendedConfiguration", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
135
159
|
})();
|
|
136
160
|
;
|
|
137
161
|
(function () {
|
package/dist/buildStore.js
CHANGED
|
@@ -15,6 +15,7 @@ var _localeFactory = _interopRequireWildcard(require("./reducers/localeFactory")
|
|
|
15
15
|
var _navigation = _interopRequireDefault(require("./reducers/navigation"));
|
|
16
16
|
var _request = _interopRequireDefault(require("./reducers/request"));
|
|
17
17
|
var _scopes = _interopRequireDefault(require("./reducers/scopes"));
|
|
18
|
+
var _scopesExtendedConfiguration = _interopRequireDefault(require("./reducers/scopesExtendedConfiguration"));
|
|
18
19
|
var _settings = _interopRequireDefault(require("./reducers/settings"));
|
|
19
20
|
var _toasts = _interopRequireDefault(require("./reducers/toasts"));
|
|
20
21
|
var _view = _interopRequireDefault(require("./reducers/view"));
|
|
@@ -81,6 +82,7 @@ var buildStore = function buildStore(reducers, devOptions) {
|
|
|
81
82
|
router: (0, _immutable2.connectRouter)(history),
|
|
82
83
|
requests: _request.default,
|
|
83
84
|
scopes: _scopes.default,
|
|
85
|
+
scopesExtendedConfiguration: _scopesExtendedConfiguration.default,
|
|
84
86
|
settings: _settings.default,
|
|
85
87
|
toasts: _toasts.default,
|
|
86
88
|
versionInfo: _versionInfo.default,
|
|
@@ -110,7 +110,8 @@ var InformationItemHeader = function InformationItemHeader(_ref2) {
|
|
|
110
110
|
var _ref3;
|
|
111
111
|
var classes = _ref2.classes,
|
|
112
112
|
label = _ref2.label,
|
|
113
|
-
headerIcon = _ref2.headerIcon
|
|
113
|
+
headerIcon = _ref2.headerIcon,
|
|
114
|
+
headerIconClassName = _ref2.headerIconClassName;
|
|
114
115
|
var formattedLabel = typeof label === "object" ? /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, label) : label;
|
|
115
116
|
var headerText = (_ref3 = formattedLabel && /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
116
117
|
className: classes.title,
|
|
@@ -122,7 +123,7 @@ var InformationItemHeader = function InformationItemHeader(_ref2) {
|
|
|
122
123
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
123
124
|
className: classes.headerTextContainer
|
|
124
125
|
}, headerText), /*#__PURE__*/_react.default.createElement("div", {
|
|
125
|
-
className: classes.headerIconContainer
|
|
126
|
+
className: (0, _classnames.default)(classes.headerIconContainer, headerIconClassName)
|
|
126
127
|
}, headerIcon));
|
|
127
128
|
}
|
|
128
129
|
return headerText;
|
|
@@ -134,6 +135,8 @@ var InformationItem = function InformationItem(_ref4) {
|
|
|
134
135
|
error = _ref4.error,
|
|
135
136
|
_ref4$headerIcon = _ref4.headerIcon,
|
|
136
137
|
headerIcon = _ref4$headerIcon === void 0 ? undefined : _ref4$headerIcon,
|
|
138
|
+
_ref4$headerIconClass = _ref4.headerIconClassName,
|
|
139
|
+
headerIconClassName = _ref4$headerIconClass === void 0 ? undefined : _ref4$headerIconClass,
|
|
137
140
|
_ref4$showNotAvailabl = _ref4.showNotAvailable,
|
|
138
141
|
showNotAvailable = _ref4$showNotAvailabl === void 0 ? false : _ref4$showNotAvailabl,
|
|
139
142
|
_ref4$marginTop = _ref4.marginTop,
|
|
@@ -151,7 +154,8 @@ var InformationItem = function InformationItem(_ref4) {
|
|
|
151
154
|
}, /*#__PURE__*/_react.default.createElement(InformationItemHeader, {
|
|
152
155
|
classes: classes,
|
|
153
156
|
label: label,
|
|
154
|
-
headerIcon: headerIcon
|
|
157
|
+
headerIcon: headerIcon,
|
|
158
|
+
headerIconClassName: headerIconClassName
|
|
155
159
|
}), /*#__PURE__*/_react.default.createElement(InformationItemChildren, {
|
|
156
160
|
classes: classes,
|
|
157
161
|
children: children,
|
|
@@ -175,14 +175,19 @@ var InputBase = function InputBase(_ref) {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
if (isAdvancedNumericInput) {
|
|
178
|
+
var _numericInputProps$de;
|
|
178
179
|
if (inputAttributes.max === undefined) {
|
|
179
180
|
inputAttributes.max = 2147483647;
|
|
180
181
|
}
|
|
181
182
|
if (inputAttributes.min === undefined) {
|
|
182
183
|
inputAttributes.min = -2147483648;
|
|
183
184
|
}
|
|
185
|
+
var decimalScale = (_numericInputProps$de = numericInputProps == null ? void 0 : numericInputProps.decimalScale) != null ? _numericInputProps$de : 0;
|
|
186
|
+
var lengthForMin = Math.trunc(inputAttributes.min).toString().length;
|
|
187
|
+
var lengthForMax = Math.trunc(inputAttributes.max).toString().length;
|
|
188
|
+
inputAttributes.maxLength = Math.max(lengthForMin, lengthForMax) + (decimalScale > 0 ? decimalScale + 1 : 0);
|
|
184
189
|
inputAttributes.isAllowed = function (val) {
|
|
185
|
-
return val.value === "" || val.value === "-" || val.
|
|
190
|
+
return val.value === "" || val.value === "-" || val.value !== null;
|
|
186
191
|
};
|
|
187
192
|
}
|
|
188
193
|
var defaultRows = 4;
|
|
@@ -15,6 +15,7 @@ var _Head = _interopRequireDefault(require("./Head"));
|
|
|
15
15
|
var _I18n = _interopRequireDefault(require("./I18n"));
|
|
16
16
|
var _InternetExplorerWarningMessage = _interopRequireDefault(require("./InternetExplorerWarningMessage"));
|
|
17
17
|
var _Culture = _interopRequireDefault(require("./Culture"));
|
|
18
|
+
var _ScopeExtendedConfigurationLoader = _interopRequireDefault(require("./ScopeExtendedConfigurationLoader"));
|
|
18
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
20
|
(function () {
|
|
20
21
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -46,7 +47,7 @@ var Provision = function Provision(_ref) {
|
|
|
46
47
|
theme: theme
|
|
47
48
|
}, /*#__PURE__*/_react.default.createElement(_styles.MuiThemeProvider, {
|
|
48
49
|
theme: muiTheme
|
|
49
|
-
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Head.default, null), /*#__PURE__*/_react.default.createElement(_Culture.default, null), /*#__PURE__*/_react.default.createElement(GlobalStyle, null), /*#__PURE__*/_react.default.createElement(_Authenticate.default, null, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Fonts, null), /*#__PURE__*/_react.default.createElement(_DevPages.default, null, /*#__PURE__*/_react.default.createElement(_I18n.default, null, _react.default.Children.only(children), /*#__PURE__*/_react.default.createElement(_InternetExplorerWarningMessage.default, null))))))))));
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Head.default, null), /*#__PURE__*/_react.default.createElement(_Culture.default, null), /*#__PURE__*/_react.default.createElement(GlobalStyle, null), /*#__PURE__*/_react.default.createElement(_Authenticate.default, null, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Fonts, null), /*#__PURE__*/_react.default.createElement(_DevPages.default, null, /*#__PURE__*/_react.default.createElement(_I18n.default, null, _react.default.Children.only(children), /*#__PURE__*/_react.default.createElement(_InternetExplorerWarningMessage.default, null))), /*#__PURE__*/_react.default.createElement(_ScopeExtendedConfigurationLoader.default, null))))))));
|
|
50
51
|
};
|
|
51
52
|
var _default = Provision;
|
|
52
53
|
var _default2 = _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _react = require("react");
|
|
6
|
+
var _useScopeData3 = _interopRequireDefault(require("./Scope/useScopeData"));
|
|
7
|
+
var _reactRedux = require("react-redux");
|
|
8
|
+
var _scopes = require("../actions/scopes");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
(function () {
|
|
11
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
|
+
enterModule && enterModule(module);
|
|
13
|
+
})();
|
|
14
|
+
(function () {
|
|
15
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
16
|
+
enterModule && enterModule(module);
|
|
17
|
+
})();
|
|
18
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
|
+
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."); }
|
|
20
|
+
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); }
|
|
21
|
+
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; }
|
|
22
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
23
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
25
|
+
return a;
|
|
26
|
+
};
|
|
27
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
28
|
+
return a;
|
|
29
|
+
};
|
|
30
|
+
var ScopeExtendedConfigurationLoader = function ScopeExtendedConfigurationLoader() {
|
|
31
|
+
var _useScopeData = (0, _useScopeData3.default)(),
|
|
32
|
+
_useScopeData2 = _slicedToArray(_useScopeData, 1),
|
|
33
|
+
currentScope = _useScopeData2[0];
|
|
34
|
+
var dispatch = (0, _reactRedux.useDispatch)();
|
|
35
|
+
var _useState = (0, _react.useState)(),
|
|
36
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
37
|
+
localScopeValue = _useState2[0],
|
|
38
|
+
setLocalScopeValue = _useState2[1];
|
|
39
|
+
(0, _react.useEffect)(function () {
|
|
40
|
+
if (currentScope.id !== localScopeValue) {
|
|
41
|
+
setLocalScopeValue(currentScope.id);
|
|
42
|
+
dispatch((0, _scopes.getScopeExtendedConfiguration)(currentScope.id));
|
|
43
|
+
}
|
|
44
|
+
}, [currentScope.id, dispatch, localScopeValue]);
|
|
45
|
+
return null;
|
|
46
|
+
};
|
|
47
|
+
__signature__(ScopeExtendedConfigurationLoader, "useScopeData{[currentScope]}\nuseDispatch{dispatch}\nuseState{[localScopeValue, setLocalScopeValue]}\nuseEffect{}", function () {
|
|
48
|
+
return [_useScopeData3.default, _reactRedux.useDispatch];
|
|
49
|
+
});
|
|
50
|
+
__signature__(ScopeExtendedConfigurationLoader, "useScopeData{[currentScope]}\nuseDispatch{dispatch}\nuseState{[localScopeValue, setLocalScopeValue]}\nuseEffect{}", function () {
|
|
51
|
+
return [_useScopeData3.default, _reactRedux.useDispatch];
|
|
52
|
+
});
|
|
53
|
+
var _default = ScopeExtendedConfigurationLoader;
|
|
54
|
+
var _default2 = _default;
|
|
55
|
+
var _default3 = exports.default = _default2;
|
|
56
|
+
;
|
|
57
|
+
(function () {
|
|
58
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
59
|
+
if (!reactHotLoader) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
reactHotLoader.register(ScopeExtendedConfigurationLoader, "ScopeExtendedConfigurationLoader", "/home/vsts/work/1/s/src/components/ScopeExtendedConfigurationLoader.js");
|
|
63
|
+
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/ScopeExtendedConfigurationLoader.js");
|
|
64
|
+
})();
|
|
65
|
+
;
|
|
66
|
+
(function () {
|
|
67
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
68
|
+
leaveModule && leaveModule(module);
|
|
69
|
+
})();
|
|
70
|
+
;
|
|
71
|
+
(function () {
|
|
72
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
73
|
+
if (!reactHotLoader) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
reactHotLoader.register(ScopeExtendedConfigurationLoader, "ScopeExtendedConfigurationLoader", "/home/vsts/work/1/s/src/components/ScopeExtendedConfigurationLoader.js");
|
|
77
|
+
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/ScopeExtendedConfigurationLoader.js");
|
|
78
|
+
})();
|
|
79
|
+
;
|
|
80
|
+
(function () {
|
|
81
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
82
|
+
leaveModule && leaveModule(module);
|
|
83
|
+
})();
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
</
|
|
1
|
+
<svg width="354" height="354" viewBox="0 0 354 354" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_2_1387)">
|
|
3
|
+
<path d="M0 241.41C0 175.92 50.53 129.43 119.66 129.43C188.79 129.43 238.91 175.92 238.91 241.41C238.91 306.9 188.78 353.38 119.66 353.38C50.54 353.38 0 306.9 0 241.41ZM175.04 241.41C175.04 203.81 151.19 181.18 119.66 181.18C88.13 181.18 63.87 203.82 63.87 241.41C63.87 279 88.13 301.64 119.66 301.64C151.19 301.64 175.04 279 175.04 241.41Z" fill="black"/>
|
|
4
|
+
<path d="M353.14 165.06H275.66C275.66 116.77 236.37 77.48 188.08 77.48V0C279.1 0 353.15 74.05 353.15 165.06H353.14Z" fill="#E00600"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="clip0_2_1387">
|
|
8
|
+
<rect width="353.14" height="353.38" fill="white"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _immutable = _interopRequireDefault(require("immutable"));
|
|
6
|
+
var _scopes = require("../actions/scopes");
|
|
7
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
+
(function () {
|
|
9
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
10
|
+
enterModule && enterModule(module);
|
|
11
|
+
})();
|
|
12
|
+
(function () {
|
|
13
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
|
+
enterModule && enterModule(module);
|
|
15
|
+
})();
|
|
16
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var initialState = _immutable.default.fromJS({});
|
|
23
|
+
var scopesExtendedConfigurationReducer = function scopesExtendedConfigurationReducer(state, action) {
|
|
24
|
+
if (state === void 0) {
|
|
25
|
+
state = initialState;
|
|
26
|
+
}
|
|
27
|
+
switch (action.type) {
|
|
28
|
+
case _scopes.GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS:
|
|
29
|
+
{
|
|
30
|
+
return state.set(action.meta.scope, _immutable.default.fromJS(action.payload));
|
|
31
|
+
}
|
|
32
|
+
default:
|
|
33
|
+
return state;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var _default = scopesExtendedConfigurationReducer;
|
|
37
|
+
var _default2 = _default;
|
|
38
|
+
var _default3 = exports.default = _default2;
|
|
39
|
+
;
|
|
40
|
+
(function () {
|
|
41
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
42
|
+
if (!reactHotLoader) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
46
|
+
reactHotLoader.register(scopesExtendedConfigurationReducer, "scopesExtendedConfigurationReducer", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
47
|
+
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
48
|
+
})();
|
|
49
|
+
;
|
|
50
|
+
(function () {
|
|
51
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
52
|
+
leaveModule && leaveModule(module);
|
|
53
|
+
})();
|
|
54
|
+
;
|
|
55
|
+
(function () {
|
|
56
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
57
|
+
if (!reactHotLoader) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
61
|
+
reactHotLoader.register(scopesExtendedConfigurationReducer, "scopesExtendedConfigurationReducer", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
62
|
+
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
63
|
+
})();
|
|
64
|
+
;
|
|
65
|
+
(function () {
|
|
66
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
67
|
+
leaveModule && leaveModule(module);
|
|
68
|
+
})();
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.doesScopeHaveGeolocationProviderSelector = void 0;
|
|
5
|
+
var _reselect = require("reselect");
|
|
6
|
+
(function () {
|
|
7
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
8
|
+
enterModule && enterModule(module);
|
|
9
|
+
})();
|
|
10
|
+
(function () {
|
|
11
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
|
+
enterModule && enterModule(module);
|
|
13
|
+
})();
|
|
14
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var scopesExtendedConfigurationData = function scopesExtendedConfigurationData(state) {
|
|
21
|
+
return state.get("scopesExtendedConfiguration");
|
|
22
|
+
};
|
|
23
|
+
var doesScopeHaveGeolocationProviderSelector = exports.doesScopeHaveGeolocationProviderSelector = function doesScopeHaveGeolocationProviderSelector(scopeId) {
|
|
24
|
+
return (0, _reselect.createSelector)(scopesExtendedConfigurationData, function (scopesCfg) {
|
|
25
|
+
var _scopesCfg$get$get, _scopesCfg$get;
|
|
26
|
+
return (_scopesCfg$get$get = scopesCfg == null || (_scopesCfg$get = scopesCfg.get(scopeId)) == null ? void 0 : _scopesCfg$get.get("hasGeolocationProvider")) != null ? _scopesCfg$get$get : false;
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
;
|
|
30
|
+
(function () {
|
|
31
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
32
|
+
if (!reactHotLoader) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
reactHotLoader.register(scopesExtendedConfigurationData, "scopesExtendedConfigurationData", "/home/vsts/work/1/s/src/selectors/scopeExtendedConfiguration.js");
|
|
36
|
+
reactHotLoader.register(doesScopeHaveGeolocationProviderSelector, "doesScopeHaveGeolocationProviderSelector", "/home/vsts/work/1/s/src/selectors/scopeExtendedConfiguration.js");
|
|
37
|
+
})();
|
|
38
|
+
;
|
|
39
|
+
(function () {
|
|
40
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
41
|
+
leaveModule && leaveModule(module);
|
|
42
|
+
})();
|
|
43
|
+
;
|
|
44
|
+
(function () {
|
|
45
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
46
|
+
if (!reactHotLoader) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
reactHotLoader.register(scopesExtendedConfigurationData, "scopesExtendedConfigurationData", "/home/vsts/work/1/s/src/selectors/scopeExtendedConfiguration.js");
|
|
50
|
+
reactHotLoader.register(doesScopeHaveGeolocationProviderSelector, "doesScopeHaveGeolocationProviderSelector", "/home/vsts/work/1/s/src/selectors/scopeExtendedConfiguration.js");
|
|
51
|
+
})();
|
|
52
|
+
;
|
|
53
|
+
(function () {
|
|
54
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
55
|
+
leaveModule && leaveModule(module);
|
|
56
|
+
})();
|