@sassoftware/restaf 4.9.2 → 4.9.4

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/restaf.js CHANGED
@@ -1238,7 +1238,7 @@ eval("\n\nvar required = __webpack_require__(/*! requires-port */ \"../../../nod
1238
1238
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1239
1239
 
1240
1240
  "use strict";
1241
- eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"t\", function() { return VIYA_LOGON; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"o\", function() { return BEGIN_LOGON; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"u\", function() { return VIYA_LOGON_COMPLETE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"q\", function() { return KEEP_ALIVE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"r\", function() { return VIYA_LOGOFF; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"n\", function() { return BEGIN_LOGOFF; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"s\", function() { return VIYA_LOGOFF_COMPLETE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"x\", function() { return VIYA_LOGON_SERVER; });\n/* unused harmony export VIYA_LOGON_PROXY */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"y\", function() { return VIYA_LOGON_TOKEN; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"w\", function() { return VIYA_LOGON_PASSWORD; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"v\", function() { return VIYA_LOGON_IMPLICIT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ADD_SERVICE; });\n/* unused harmony export ADD_SERVICE_COMPLETE */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return API_CALL; });\n/* unused harmony export API_BEGIN */\n/* unused harmony export API_COMPLETE */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return API_CALL_PARALLEL; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"p\", function() { return DELETE_RAF_OBJECT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return API_POLL; });\n/* unused harmony export API_POLL_BEGIN */\n/* unused harmony export API_POLL_COMPLETE */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"l\", function() { return APP_DATA_ROOT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"k\", function() { return APP_DATA; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"m\", function() { return APP_DATA_SETSTATE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"f\", function() { return API_STATUS_ROOT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"e\", function() { return API_STATUS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"g\", function() { return API_STATUS_SETSTATE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"i\", function() { return API_XSRF_ROOT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"h\", function() { return API_XSRF; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"j\", function() { return API_XSRF_SETSTATE; });\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n/*\r\n * Copyright (c) 2017 by SAS Institute Inc., Cary, NC USA 27513\r\n * Author : K. Deva Kumar\r\n * Last Modified: 5/23/17 8:49 PM\r\n *\r\n */\nvar VIYA_LOGON = 'VIYA_LOGON';\nvar BEGIN_LOGON = 'BEGIN_LOGON';\nvar VIYA_LOGON_COMPLETE = 'VIYA_LOGON_COMPLETE';\nvar KEEP_ALIVE = 'KEEP_ALIVE';\nvar VIYA_LOGOFF = 'VIYA_LOGOFF';\nvar BEGIN_LOGOFF = 'BEGIN_LOGOFF';\nvar VIYA_LOGOFF_COMPLETE = 'VIYA_LOGOFF_COMPLETE';\nvar VIYA_LOGON_SERVER = 'server';\nvar VIYA_LOGON_PROXY = 'server';\nvar VIYA_LOGON_TOKEN = 'token';\nvar VIYA_LOGON_PASSWORD = 'password';\nvar VIYA_LOGON_IMPLICIT = 'implicit'; /* implies token */\n\nvar ADD_SERVICE = 'ADD_SERVICE';\nvar ADD_SERVICE_COMPLETE = 'ADD_SERVICE_COMPLETE';\nvar API_CALL = 'API_CALL';\nvar API_BEGIN = 'API_BEGIN';\nvar API_COMPLETE = 'API_COMPLETE';\nvar API_CALL_PARALLEL = 'API_PARALLEL';\nvar DELETE_RAF_OBJECT = 'DELETE_RAF_OBJECT';\nvar API_POLL = 'API_POLL';\nvar API_POLL_BEGIN = 'API_POLL_BEGIN';\nvar API_POLL_COMPLETE = 'API_POLL_COMPLETE';\nvar APP_DATA_ROOT = '_appdata';\nvar APP_DATA = 'APP_DATA';\nvar APP_DATA_SETSTATE = 'APP_DATA_SETSTATE';\nvar API_STATUS_ROOT = '_apistatus';\nvar API_STATUS = 'API_STATUS';\nvar API_STATUS_SETSTATE = 'API_STATUS_SETSTATE';\nvar API_XSRF_ROOT = '_xsrf';\nvar API_XSRF = 'API_XSRF';\nvar API_XSRF_SETSTATE = 'API_XSRF_SETSTATE';\n\n//# sourceURL=webpack://restaf/./actionTypes/index.js?");
1241
+ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"t\", function() { return VIYA_LOGON; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"o\", function() { return BEGIN_LOGON; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"u\", function() { return VIYA_LOGON_COMPLETE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"q\", function() { return KEEP_ALIVE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"r\", function() { return VIYA_LOGOFF; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"n\", function() { return BEGIN_LOGOFF; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"s\", function() { return VIYA_LOGOFF_COMPLETE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"x\", function() { return VIYA_LOGON_SERVER; });\n/* unused harmony export VIYA_LOGON_PROXY */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"y\", function() { return VIYA_LOGON_TOKEN; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"w\", function() { return VIYA_LOGON_PASSWORD; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"v\", function() { return VIYA_LOGON_IMPLICIT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ADD_SERVICE; });\n/* unused harmony export ADD_SERVICE_COMPLETE */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return API_CALL; });\n/* unused harmony export API_BEGIN */\n/* unused harmony export API_COMPLETE */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return API_CALL_PARALLEL; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"p\", function() { return DELETE_RAF_OBJECT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return API_POLL; });\n/* unused harmony export API_POLL_BEGIN */\n/* unused harmony export API_POLL_COMPLETE */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"l\", function() { return APP_DATA_ROOT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"k\", function() { return APP_DATA; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"m\", function() { return APP_DATA_SETSTATE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"f\", function() { return API_STATUS_ROOT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"e\", function() { return API_STATUS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"g\", function() { return API_STATUS_SETSTATE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"i\", function() { return API_XSRF_ROOT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"h\", function() { return API_XSRF; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"j\", function() { return API_XSRF_SETSTATE; });\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n/*\r\n * Copyright (c) 2017 by SAS Institute Inc., Cary, NC USA 27513\r\n * Author : K. Deva Kumar\r\n * Last Modified: 5/23/17 8:49 PM\r\n *\r\n */\nvar VIYA_LOGON = 'VIYA_LOGON';\nvar BEGIN_LOGON = 'BEGIN_LOGON';\nvar VIYA_LOGON_COMPLETE = 'VIYA_LOGON_COMPLETE';\nvar KEEP_ALIVE = 'KEEP_ALIVE';\nvar VIYA_LOGOFF = 'VIYA_LOGOFF';\nvar BEGIN_LOGOFF = 'BEGIN_LOGOFF';\nvar VIYA_LOGOFF_COMPLETE = 'VIYA_LOGOFF_COMPLETE';\nvar VIYA_LOGON_SERVER = 'server';\nvar VIYA_LOGON_PROXY = 'server';\nvar VIYA_LOGON_TOKEN = 'token';\nvar VIYA_LOGON_PASSWORD = 'password';\nvar VIYA_LOGON_IMPLICIT = 'implicit'; /* implies token */\n\nvar ADD_SERVICE = 'ADD_SERVICE';\nvar ADD_SERVICE_COMPLETE = 'ADD_SERVICE_COMPLETE';\nvar API_CALL = 'API_CALL';\nvar API_BEGIN = 'API_BEGIN';\nvar API_COMPLETE = 'API_COMPLETE';\nvar API_CALL_PARALLEL = 'API_PARALLEL';\nvar DELETE_RAF_OBJECT = 'DELETE_RAF_OBJECT';\nvar API_POLL = 'API_POLL';\nvar API_POLL_BEGIN = 'API_POLL_BEGIN';\nvar API_POLL_COMPLETE = 'API_POLL_COMPLETE';\nvar APP_DATA_ROOT = '_appdata';\nvar APP_DATA = 'APP_DATA';\nvar APP_DATA_SETSTATE = 'APP_DATA_SETSTATE';\nvar API_STATUS_ROOT = '_apistatus';\nvar API_STATUS = 'API_STATUS';\nvar API_STATUS_SETSTATE = 'API_STATUS_SETSTATE';\nvar API_XSRF_ROOT = '_xsrf';\nvar API_XSRF = 'API_XSRF';\nvar API_XSRF_SETSTATE = 'API_XSRF_SETSTATE';\n\n//# sourceURL=webpack://restaf/./actionTypes/index.js?");
1242
1242
 
1243
1243
  /***/ }),
1244
1244
 
@@ -1251,7 +1251,7 @@ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__,
1251
1251
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1252
1252
 
1253
1253
  "use strict";
1254
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./store */ \"./store/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"initStore\", function() { return _store__WEBPACK_IMPORTED_MODULE_0__[\"b\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"endStore\", function() { return _store__WEBPACK_IMPORTED_MODULE_0__[\"a\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"restoreStore\", function() { return _store__WEBPACK_IMPORTED_MODULE_0__[\"c\"]; });\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n//# sourceURL=webpack://restaf/./index.js?");
1254
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./store */ \"./store/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"initStore\", function() { return _store__WEBPACK_IMPORTED_MODULE_0__[\"b\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"endStore\", function() { return _store__WEBPACK_IMPORTED_MODULE_0__[\"a\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"restoreStore\", function() { return _store__WEBPACK_IMPORTED_MODULE_0__[\"c\"]; });\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n//# sourceURL=webpack://restaf/./index.js?");
1255
1255
 
1256
1256
  /***/ }),
1257
1257
 
@@ -1264,7 +1264,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _sto
1264
1264
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1265
1265
 
1266
1266
  "use strict";
1267
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _responseReducer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./responseReducer */ \"./reducers/responseReducer.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _utils_rootStruct__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/rootStruct */ \"./utils/rootStruct.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\nvar Immutable = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\nvar fromJS = Immutable.fromJS;\n\nvar baseReducer = function baseReducer(root) {\n return function () {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : fromJS(Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_3__[/* tLinkStruct */ \"c\"])(root, 'links', root));\n var action = arguments.length > 1 ? arguments[1] : undefined;\n switch (action.type) {\n case _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* DELETE_RAF_OBJECT */ \"p\"]:\n {\n var searchPath = action.route.split(':/');\n var path = searchPath.slice(1);\n var parent = state.getIn(path);\n var newState = state.deleteIn(path);\n return newState;\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* ADD_SERVICE */ \"a\"] + '_BEGIN':\n {\n return state.set('runStatus', 'busy').set('route', root);\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* ADD_SERVICE */ \"a\"] + '_COMPLETE':\n {\n var result = Object(_responseReducer__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(action, [root]);\n result.resultType = 'application/vnd.sas.api';\n result.raw = _objectSpread({}, action.payload);\n result.responseHeaders = _objectSpread({}, result.raw.headers);\n result.route = root; // Need this for potential routing\n return fromJS(result);\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_CALL */ \"b\"] + '_BEGIN':\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_POLL */ \"d\"] + '_BEGIN':\n {\n //noinspection JSUnresolvedVariable\n\n var config = action.config;\n var paginator = config.paginator;\n var _searchPath = config.route.split(':/');\n var _path = _searchPath.slice(paginator === true ? 1 : 2);\n var _parent = state.getIn(_path);\n\n // let payload = {...config.payload };\n // delete payload.route;\n // parent = parent.set( 'runStatus', 'busy' ).set( 'payload', fromJS( payload ) );\n\n _parent = _parent.set('runStatus', 'busy');\n _path = _searchPath.slice(1);\n return state.setIn(_path, _parent);\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_CALL */ \"b\"] + '_COMPLETE':\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_POLL */ \"d\"] + '_COMPLETE':\n {\n /* */\n //noinspection JSUnresolvedVariable\n\n var _config = action.config;\n var _searchPath2 = _config.route.split(':/');\n var _path2 = _searchPath2.slice(1);\n var raw = Object.assign({}, action.payload);\n var _result = Object(_responseReducer__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(action, _searchPath2);\n _result.raw = raw;\n if (_result.type === 'links' && _result.resultType == undefined) {\n _result.resultType = 'application/vnd.sas.api';\n }\n var method = action.config.link.method;\n _result.title = action.config.link.href;\n _result.responseHeaders = _objectSpread({}, raw.headers);\n _result.route = _searchPath2.join(':/');\n var newParent = fromJS(_result);\n var nState = state.setIn(_path2, newParent);\n return nState;\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA */ \"k\"] + '_SETSTATE':\n {\n var _action$payload = action.payload,\n route = _action$payload.route,\n payload = _action$payload.payload;\n var userData = state.get('userData');\n if (Array.isArray(route)) {\n userData = userData.setIn(route, fromJS(payload));\n } else {\n userData = userData.set(route, fromJS(payload));\n }\n return state.set('userData', userData);\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_XSRF */ \"h\"] + '_SETSTATE':\n {\n var _action$payload2 = action.payload,\n _route = _action$payload2.route,\n _payload = _action$payload2.payload;\n var _userData = state.get('userData');\n if (Array.isArray(_route)) {\n _userData = _userData.setIn(_route, fromJS(_payload));\n } else {\n _userData = _userData.set(_route, fromJS(_payload));\n }\n return state.set('userData', _userData);\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS */ \"e\"] + '_SETSTATE':\n {\n var _payload2 = action.payload.payload;\n var jobContext = _payload2.jobContext;\n var _userData2 = state.get('userData');\n var routeList = state.get('routeList').push(jobContext);\n _userData2 = _userData2.set(jobContext, fromJS(_payload2));\n return state.set('userData', _userData2).set('routeList', routeList);\n }\n default:\n {\n return state;\n }\n }\n };\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (baseReducer);\n\n//# sourceURL=webpack://restaf/./reducers/baseReducer.js?");
1267
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _responseReducer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./responseReducer */ \"./reducers/responseReducer.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _utils_rootStruct__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/rootStruct */ \"./utils/rootStruct.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\nvar Immutable = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\nvar fromJS = Immutable.fromJS;\n\nvar baseReducer = function baseReducer(root) {\n return function () {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : fromJS(Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_3__[/* tLinkStruct */ \"c\"])(root, 'links', root));\n var action = arguments.length > 1 ? arguments[1] : undefined;\n switch (action.type) {\n case _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* DELETE_RAF_OBJECT */ \"p\"]:\n {\n var searchPath = action.route.split(':/');\n var path = searchPath.slice(1);\n var parent = state.getIn(path);\n var newState = state.deleteIn(path);\n return newState;\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* ADD_SERVICE */ \"a\"] + '_BEGIN':\n {\n return state.set('runStatus', 'busy').set('route', root);\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* ADD_SERVICE */ \"a\"] + '_COMPLETE':\n {\n var result = Object(_responseReducer__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(action, [root]);\n result.resultType = 'application/vnd.sas.api';\n result.raw = _objectSpread({}, action.payload);\n result.responseHeaders = _objectSpread({}, result.raw.headers);\n result.route = root; // Need this for potential routing\n return fromJS(result);\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_CALL */ \"b\"] + '_BEGIN':\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_POLL */ \"d\"] + '_BEGIN':\n {\n //noinspection JSUnresolvedVariable\n\n var config = action.config;\n var paginator = config.paginator;\n var _searchPath = config.route.split(':/');\n var _path = _searchPath.slice(paginator === true ? 1 : 2);\n var _parent = state.getIn(_path);\n\n // let payload = {...config.payload };\n // delete payload.route;\n // parent = parent.set( 'runStatus', 'busy' ).set( 'payload', fromJS( payload ) );\n\n _parent = _parent.set('runStatus', 'busy');\n _path = _searchPath.slice(1);\n return state.setIn(_path, _parent);\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_CALL */ \"b\"] + '_COMPLETE':\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_POLL */ \"d\"] + '_COMPLETE':\n {\n /* */\n //noinspection JSUnresolvedVariable\n\n var _config = action.config;\n var _searchPath2 = _config.route.split(':/');\n var _path2 = _searchPath2.slice(1);\n var raw = Object.assign({}, action.payload);\n var _result = Object(_responseReducer__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(action, _searchPath2);\n _result.raw = raw;\n if (_result.type === 'links' && _result.resultType == undefined) {\n _result.resultType = 'application/vnd.sas.api';\n }\n var method = action.config.link.method;\n _result.title = action.config.link.href;\n _result.responseHeaders = _objectSpread({}, raw.headers);\n _result.route = _searchPath2.join(':/');\n var newParent = fromJS(_result);\n var nState = state.setIn(_path2, newParent);\n return nState;\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA */ \"k\"] + '_SETSTATE':\n {\n var _action$payload = action.payload,\n route = _action$payload.route,\n payload = _action$payload.payload;\n var userData = state.get('userData');\n if (Array.isArray(route)) {\n userData = userData.setIn(route, fromJS(payload));\n } else {\n userData = userData.set(route, fromJS(payload));\n }\n return state.set('userData', userData);\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_XSRF */ \"h\"] + '_SETSTATE':\n {\n var _action$payload2 = action.payload,\n _route = _action$payload2.route,\n _payload = _action$payload2.payload;\n var _userData = state.get('userData');\n if (Array.isArray(_route)) {\n _userData = _userData.setIn(_route, fromJS(_payload));\n } else {\n _userData = _userData.set(_route, fromJS(_payload));\n }\n return state.set('userData', _userData);\n }\n case root + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS */ \"e\"] + '_SETSTATE':\n {\n var _payload2 = action.payload.payload;\n var jobContext = _payload2.jobContext;\n var _userData2 = state.get('userData');\n var routeList = state.get('routeList').push(jobContext);\n _userData2 = _userData2.set(jobContext, fromJS(_payload2));\n return state.set('userData', _userData2).set('routeList', routeList);\n }\n default:\n {\n return state;\n }\n }\n };\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (baseReducer);\n\n//# sourceURL=webpack://restaf/./reducers/baseReducer.js?");
1268
1268
 
1269
1269
  /***/ }),
1270
1270
 
@@ -1277,7 +1277,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1277
1277
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1278
1278
 
1279
1279
  "use strict";
1280
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux */ \"../../../node_modules/redux/es/redux.js\");\n/* harmony import */ var _baseReducer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./baseReducer */ \"./reducers/baseReducer.js\");\n/* harmony import */ var _viyaLogon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./viyaLogon */ \"./reducers/viyaLogon.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n* Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n* SPDX-License-Identifier: Apache-2.0\r\n*/\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\nvar createReducer = function createReducer(asyncReducer) {\n var reducerList = {};\n reducerList['connections'] = _viyaLogon__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"];\n reducerList[_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_STATUS_ROOT */ \"f\"]] = Object(_baseReducer__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_STATUS_ROOT */ \"f\"]);\n reducerList[_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* APP_DATA_ROOT */ \"l\"]] = Object(_baseReducer__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* APP_DATA_ROOT */ \"l\"]);\n reducerList[_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_XSRF_ROOT */ \"i\"]] = Object(_baseReducer__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_XSRF_ROOT */ \"i\"]);\n reducerList = _objectSpread(_objectSpread({}, reducerList), asyncReducer);\n return Object(redux__WEBPACK_IMPORTED_MODULE_1__[/* combineReducers */ \"b\"])(reducerList);\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (createReducer);\n\n//# sourceURL=webpack://restaf/./reducers/createReducer.js?");
1280
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux */ \"../../../node_modules/redux/es/redux.js\");\n/* harmony import */ var _baseReducer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./baseReducer */ \"./reducers/baseReducer.js\");\n/* harmony import */ var _viyaLogon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./viyaLogon */ \"./reducers/viyaLogon.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n* Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n* SPDX-License-Identifier: Apache-2.0\r\n*/\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\nvar createReducer = function createReducer(asyncReducer) {\n var reducerList = {};\n reducerList['connections'] = _viyaLogon__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"];\n reducerList[_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_STATUS_ROOT */ \"f\"]] = Object(_baseReducer__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_STATUS_ROOT */ \"f\"]);\n reducerList[_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* APP_DATA_ROOT */ \"l\"]] = Object(_baseReducer__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* APP_DATA_ROOT */ \"l\"]);\n reducerList[_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_XSRF_ROOT */ \"i\"]] = Object(_baseReducer__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_XSRF_ROOT */ \"i\"]);\n reducerList = _objectSpread(_objectSpread({}, reducerList), asyncReducer);\n return Object(redux__WEBPACK_IMPORTED_MODULE_1__[/* combineReducers */ \"b\"])(reducerList);\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (createReducer);\n\n//# sourceURL=webpack://restaf/./reducers/createReducer.js?");
1281
1281
 
1282
1282
  /***/ }),
1283
1283
 
@@ -1290,7 +1290,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1290
1290
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1291
1291
 
1292
1292
  "use strict";
1293
- eval("/* harmony import */ var _createReducer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createReducer */ \"./reducers/createReducer.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n// https://stackoverflow.com/questions/32968016/how-to-dynamically-load-reducers-for-code-splitting-in-a-redux-application/33044701#33044701\nvar injectAsyncReducers = function injectAsyncReducers(store, name, asyncReducer) {\n if (store.asyncReducers.hasOwnProperty(name)) {\n delete store.asyncReducers[name];\n }\n store.asyncReducers[name] = asyncReducer;\n store.replaceReducer(Object(_createReducer__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store.asyncReducers));\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (injectAsyncReducers);\n\n//# sourceURL=webpack://restaf/./reducers/injectAsyncReducers.js?");
1293
+ eval("/* harmony import */ var _createReducer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createReducer */ \"./reducers/createReducer.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n// https://stackoverflow.com/questions/32968016/how-to-dynamically-load-reducers-for-code-splitting-in-a-redux-application/33044701#33044701\nvar injectAsyncReducers = function injectAsyncReducers(store, name, asyncReducer) {\n if (store.asyncReducers.hasOwnProperty(name)) {\n delete store.asyncReducers[name];\n }\n store.asyncReducers[name] = asyncReducer;\n store.replaceReducer(Object(_createReducer__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store.asyncReducers));\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (injectAsyncReducers);\n\n//# sourceURL=webpack://restaf/./reducers/injectAsyncReducers.js?");
1294
1294
 
1295
1295
  /***/ }),
1296
1296
 
@@ -1303,7 +1303,7 @@ eval("/* harmony import */ var _createReducer__WEBPACK_IMPORTED_MODULE_0__ = __w
1303
1303
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1304
1304
 
1305
1305
  "use strict";
1306
- eval("/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../../../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ \"./utils/index.js\");\n/* harmony import */ var _utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/rootStruct */ \"./utils/rootStruct.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _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); }\nfunction _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; }\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(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; }\n\n\nvar responseReducer = function responseReducer(action, parentPath) {\n var response = null;\n /* */\n\n if (action.error === true) {\n response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])('error', 'error');\n response.link = action.config.href;\n response.runStatus = 'error';\n response.statusInfo = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[/* setBadStatus */ \"c\"])(action.payload);\n return response;\n }\n var results = action.payload.data.results;\n var contentType = '';\n if (results.hasOwnProperty('accept') === true) {\n contentType = results.accept;\n } else if (action.payload.headers.hasOwnProperty('content-type') === true) {\n contentType = action.payload.headers['content-type'].split(';')[0].split('+json')[0];\n } else {\n if (action.payload.status === 204) {\n contentType = 'No Content';\n }\n }\n\n // results with a list of items\n if (results.hasOwnProperty('items')) {\n response = itemsReducer(results, parentPath);\n response.resultType = results.accept == undefined ? contentType : results.accept;\n\n // result has links and data\n } else if (results.hasOwnProperty('links')) {\n /* got just links */\n\n response = tLinkReducer(results.links, parentPath);\n var data = _objectSpread({}, results);\n delete data.links;\n // Need to handle the cases as in vnd.sas.data.row.set which return data with no items array\n\n for (var key in data) {\n if (key !== 'version') {\n response.type = 'data'; // change type of link to data\n break;\n }\n }\n response.items = {\n resultType: 'data',\n data: data,\n cmds: null\n };\n response.resultType = contentType;\n\n // plain data case - no links at the top level\n } else {\n response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])('data', 'data');\n response.type = 'data';\n response.resultType = contentType;\n response.items = {\n resultType: contentType,\n /* data : (typeof results === 'string' || typeof results === 'boolean') ? results : Object.assign({}, results),*/\n\n data: _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(results) === 'object' ? Object.assign({}, results) : results,\n cmds: null\n };\n }\n\n /* response.raw = Object.assign( {}, results );*/\n //noinspection JSUnresolvedVariable\n\n response.link = action.config.link.href;\n response.runStatus = 'ready';\n response.statusInfo = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[/* setGoodStatus */ \"d\"])(action.payload);\n var c = action.config;\n var hc = action.payload.config;\n var temp = hc.url.split('/');\n response.host = \"\".concat(temp[0], \"//\").concat(temp[2]);\n response.iconfig = {\n input: {\n link: _objectSpread({}, c.link),\n payload: c.hasOwnProperty('payload') ? Object.assign({}, c.payload) : {}\n },\n http: {\n url: hc.url,\n payload: {\n headers: [].concat(hc.headers),\n data: hc.data == null ? {} : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(hc.data) === 'object' ? Object.assign({}, hc.data) : hc.data,\n qs: hc.params == null ? {} : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(hc.params) === 'object' ? Object.assign({}, hc.params) : hc.params\n }\n }\n };\n return response;\n};\nfunction tLinkReducer(iLinks, parentPath) {\n var r = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(parentPath[parentPath.length - 1], 'links');\n if (iLinks === null || iLinks.length === 0) {\n return r;\n }\n r.links = setupRelPaths(iLinks, parentPath, 'lcmds');\n r.type = 'links';\n r.scrollCmds = setupRelPaths(iLinks, parentPath, 'scrollCmds');\n return r;\n}\nfunction setupRelPaths(iLinks, parentPath, subType) {\n var subCmds = ['next', 'prev', 'first', 'last'];\n var tlinks;\n if (subType === 'links') {\n tlinks = iLinks;\n } else if (subType === 'cmds' || subType === 'lcmds') {\n tlinks = iLinks.filter(function (l) {\n return !subCmds.includes(l.rel);\n });\n } else if (subType === 'scrollCmds') {\n tlinks = iLinks.filter(function (l) {\n return subCmds.includes(l.rel);\n });\n } else {\n tlinks = iLinks;\n }\n if (subType === 'lcmds') {\n subType = 'links';\n }\n var tSearchPath = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath), [subType]);\n var linksMap = {};\n tlinks.map(function (l) {\n var ts = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(tSearchPath), [l.rel]);\n if (l.hasOwnProperty('title') === false) {\n l.title = l.rel;\n }\n var lx = {\n link: _objectSpread({}, l),\n method: l.method,\n route: ts.join(':/'),\n parentRoute: _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath).join(':/'),\n paginator: subCmds.includes(l.rel)\n };\n linksMap[l.rel] = _objectSpread(_objectSpread({}, Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(l.title, subType)), lx);\n });\n return linksMap;\n}\nfunction itemsReducer(results, parentPath) {\n var idList = [];\n var rows = {};\n var response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(parentPath[parentPath.length - 1], 'links');\n var itemsResponse = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* itemsStruct */ \"a\"])();\n response.resultType = results.accept;\n response.details = setDetails(results);\n if (results.hasOwnProperty('name')) {\n itemsResponse.name = results.name;\n }\n if (results.hasOwnProperty('links')) {\n response.links = setupRelPaths(results.links, parentPath, 'lcmds');\n response.scrollCmds = setupRelPaths(results.links, parentPath, 'scrollCmds');\n }\n if (Array.isArray(results.items) === false) {\n itemsResponse.data = results.items;\n itemsResponse.resultType = results.accept;\n if (results.items.hasOwnProperty('customHandling')) {\n itemsResponse.type = results.items.customHandling;\n response.type = results.items.customHandling;\n } else {\n itemsResponse.type = 'items';\n response.type = 'items';\n }\n response.items = itemsResponse;\n return response;\n }\n if (results.items.length === 0) {\n itemsResponse.resultType = results.accept;\n itemsResponse.data = [];\n itemsResponse.type = 'itemsList';\n response.type = 'itemsList';\n response.items = itemsResponse;\n response.itemsList = [];\n return response;\n } else if (results.items[0].hasOwnProperty('links')) {\n var index = -1;\n var prevName = ''; /* need for models since they allow duplicate names - ugh! */\n var _iterator = _createForOfIteratorHelper(results.items),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n index++;\n var name = void 0;\n if (item.hasOwnProperty('name2')) {\n name = item.name2;\n } else {\n name = item.hasOwnProperty('name') ? item.name : item.hasOwnProperty('id') ? item.id : \"\".concat(index);\n }\n if (prevName === name) {\n var rev = item.hasOwnProperty('id') === true ? item.id : index;\n name = \"\".concat(name, \"_\").concat(rev);\n } else {\n prevName = name;\n }\n idList.push(name);\n var tRoute = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath), ['items', 'data', name]);\n var rowcmds = setupRelPaths(item.links, tRoute, 'cmds');\n var data = _objectSpread({}, item);\n delete data.links;\n var row = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* itemsStruct */ \"a\"])();\n row.type = 'itemRow';\n row.name = name;\n row.resultType = data.hasOwnProperty('contentType') === true ? data['contentType'] : 'unknown';\n row.cmds = rowcmds;\n row.data = data;\n rows[name] = row;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n itemsResponse.data = rows;\n itemsResponse.resultType = results.accept;\n itemsResponse.type = 'itemsList';\n response.itemsList = [].concat(idList);\n response.type = 'itemsList';\n } else {\n itemsResponse.data = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(results.items);\n itemsResponse.resultType = results.accept;\n itemsResponse.type = 'itemsArray';\n response.type = 'itemsArray';\n }\n response.items = itemsResponse;\n return response;\n}\nfunction setDetails(results) {\n var r = _objectSpread({}, results);\n if (r.hasOwnProperty('links')) {\n delete r.links;\n }\n if (r.hasOwnProperty('items')) {\n delete r.items;\n }\n return r;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (responseReducer);\n\n//# sourceURL=webpack://restaf/./reducers/responseReducer.js?");
1306
+ eval("/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../../../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ \"./utils/index.js\");\n/* harmony import */ var _utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/rootStruct */ \"./utils/rootStruct.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _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); }\nfunction _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; }\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(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; }\n\n\nvar responseReducer = function responseReducer(action, parentPath) {\n var response = null;\n /* */\n\n if (action.error === true) {\n response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])('error', 'error');\n response.link = action.config.href;\n response.runStatus = 'error';\n response.statusInfo = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[/* setBadStatus */ \"c\"])(action.payload);\n return response;\n }\n var results = action.payload.data.results;\n var contentType = '';\n if (results.hasOwnProperty('accept') === true) {\n contentType = results.accept;\n } else if (action.payload.headers.hasOwnProperty('content-type') === true) {\n contentType = action.payload.headers['content-type'].split(';')[0].split('+json')[0];\n } else {\n if (action.payload.status === 204) {\n contentType = 'No Content';\n }\n }\n\n // results with a list of items\n if (results.hasOwnProperty('items')) {\n response = itemsReducer(results, parentPath);\n response.resultType = results.accept == undefined ? contentType : results.accept;\n\n // result has links and data\n } else if (results.hasOwnProperty('links')) {\n /* got just links */\n\n response = tLinkReducer(results.links, parentPath);\n var data = _objectSpread({}, results);\n delete data.links;\n // Need to handle the cases as in vnd.sas.data.row.set which return data with no items array\n\n for (var key in data) {\n if (key !== 'version') {\n response.type = 'data'; // change type of link to data\n break;\n }\n }\n response.items = {\n resultType: 'data',\n data: data,\n cmds: null\n };\n response.resultType = contentType;\n\n // plain data case - no links at the top level\n } else {\n response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])('data', 'data');\n response.type = 'data';\n response.resultType = contentType;\n response.items = {\n resultType: contentType,\n /* data : (typeof results === 'string' || typeof results === 'boolean') ? results : Object.assign({}, results),*/\n\n data: _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(results) === 'object' ? Object.assign({}, results) : results,\n cmds: null\n };\n }\n\n /* response.raw = Object.assign( {}, results );*/\n //noinspection JSUnresolvedVariable\n\n response.link = action.config.link.href;\n response.runStatus = 'ready';\n response.statusInfo = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[/* setGoodStatus */ \"d\"])(action.payload);\n var c = action.config;\n var hc = action.payload.config;\n var temp = hc.url.split('/');\n response.host = \"\".concat(temp[0], \"//\").concat(temp[2]);\n response.iconfig = {\n input: {\n link: _objectSpread({}, c.link),\n payload: c.hasOwnProperty('payload') ? Object.assign({}, c.payload) : {}\n },\n http: {\n url: hc.url,\n payload: {\n headers: [].concat(hc.headers),\n data: hc.data == null ? {} : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(hc.data) === 'object' ? Object.assign({}, hc.data) : hc.data,\n qs: hc.params == null ? {} : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(hc.params) === 'object' ? Object.assign({}, hc.params) : hc.params\n }\n }\n };\n return response;\n};\nfunction tLinkReducer(iLinks, parentPath) {\n var r = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(parentPath[parentPath.length - 1], 'links');\n if (iLinks === null || iLinks.length === 0) {\n return r;\n }\n r.links = setupRelPaths(iLinks, parentPath, 'lcmds');\n r.type = 'links';\n r.scrollCmds = setupRelPaths(iLinks, parentPath, 'scrollCmds');\n return r;\n}\nfunction setupRelPaths(iLinks, parentPath, subType) {\n var subCmds = ['next', 'prev', 'first', 'last'];\n var tlinks;\n if (subType === 'links') {\n tlinks = iLinks;\n } else if (subType === 'cmds' || subType === 'lcmds') {\n tlinks = iLinks.filter(function (l) {\n return !subCmds.includes(l.rel);\n });\n } else if (subType === 'scrollCmds') {\n tlinks = iLinks.filter(function (l) {\n return subCmds.includes(l.rel);\n });\n } else {\n tlinks = iLinks;\n }\n if (subType === 'lcmds') {\n subType = 'links';\n }\n var tSearchPath = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath), [subType]);\n var linksMap = {};\n tlinks.map(function (l) {\n var ts = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(tSearchPath), [l.rel]);\n if (l.hasOwnProperty('title') === false) {\n l.title = l.rel;\n }\n var lx = {\n link: _objectSpread({}, l),\n method: l.method,\n route: ts.join(':/'),\n parentRoute: _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath).join(':/'),\n paginator: subCmds.includes(l.rel)\n };\n linksMap[l.rel] = _objectSpread(_objectSpread({}, Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(l.title, subType)), lx);\n });\n return linksMap;\n}\nfunction itemsReducer(results, parentPath) {\n var idList = [];\n var rows = {};\n var response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(parentPath[parentPath.length - 1], 'links');\n var itemsResponse = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* itemsStruct */ \"a\"])();\n response.resultType = results.accept;\n response.details = setDetails(results);\n if (results.hasOwnProperty('name')) {\n itemsResponse.name = results.name;\n }\n if (results.hasOwnProperty('links')) {\n response.links = setupRelPaths(results.links, parentPath, 'lcmds');\n response.scrollCmds = setupRelPaths(results.links, parentPath, 'scrollCmds');\n }\n if (Array.isArray(results.items) === false) {\n itemsResponse.data = results.items;\n itemsResponse.resultType = results.accept;\n if (results.items.hasOwnProperty('customHandling')) {\n itemsResponse.type = results.items.customHandling;\n response.type = results.items.customHandling;\n } else {\n itemsResponse.type = 'items';\n response.type = 'items';\n }\n response.items = itemsResponse;\n return response;\n }\n if (results.items.length === 0) {\n itemsResponse.resultType = results.accept;\n itemsResponse.data = [];\n itemsResponse.type = 'itemsList';\n response.type = 'itemsList';\n response.items = itemsResponse;\n response.itemsList = [];\n return response;\n } else if (results.items[0].hasOwnProperty('links')) {\n var index = -1;\n var prevName = ''; /* need for models since they allow duplicate names - ugh! */\n var _iterator = _createForOfIteratorHelper(results.items),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n index++;\n var name = void 0;\n if (item.hasOwnProperty('name2')) {\n name = item.name2;\n } else {\n name = item.hasOwnProperty('name') ? item.name : item.hasOwnProperty('id') ? item.id : \"\".concat(index);\n }\n if (prevName === name) {\n var rev = item.hasOwnProperty('id') === true ? item.id : index;\n name = \"\".concat(name, \"_\").concat(rev);\n } else {\n prevName = name;\n }\n idList.push(name);\n var tRoute = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath), ['items', 'data', name]);\n var rowcmds = setupRelPaths(item.links, tRoute, 'cmds');\n var data = _objectSpread({}, item);\n delete data.links;\n var row = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* itemsStruct */ \"a\"])();\n row.type = 'itemRow';\n row.name = name;\n row.resultType = data.hasOwnProperty('contentType') === true ? data['contentType'] : 'unknown';\n row.cmds = rowcmds;\n row.data = data;\n rows[name] = row;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n itemsResponse.data = rows;\n itemsResponse.resultType = results.accept;\n itemsResponse.type = 'itemsList';\n response.itemsList = [].concat(idList);\n response.type = 'itemsList';\n } else {\n itemsResponse.data = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(results.items);\n itemsResponse.resultType = results.accept;\n itemsResponse.type = 'itemsArray';\n response.type = 'itemsArray';\n }\n response.items = itemsResponse;\n return response;\n}\nfunction setDetails(results) {\n var r = _objectSpread({}, results);\n if (r.hasOwnProperty('links')) {\n delete r.links;\n }\n if (r.hasOwnProperty('items')) {\n delete r.items;\n }\n return r;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (responseReducer);\n\n//# sourceURL=webpack://restaf/./reducers/responseReducer.js?");
1307
1307
 
1308
1308
  /***/ }),
1309
1309
 
@@ -1316,7 +1316,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK
1316
1316
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1317
1317
 
1318
1318
  "use strict";
1319
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ \"./utils/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n/* import uuid from 'uuid' ;*/\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\nvar Immutable = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\nvar Map = Immutable.Map,\n fromJS = Immutable.fromJS;\n\n\nvar initialState = fromJS({\n connections: [],\n user: 'none',\n type: 'server',\n currentConnection: -1,\n statusInfo: Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* statusInfoStruct */ \"e\"])(),\n runStatus: 'idle'\n});\nfunction viyaLogon() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n switch (action.type) {\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* BEGIN_LOGON */ \"o\"]:\n {\n return state.set('runStatus', 'busy');\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_SERVER */ \"x\"]:\n {\n var config = action.payload.iconfig;\n var newOne = {\n type: 'server',\n id: 1,\n user: 'You',\n desc: 'Server',\n logonInfo: {\n type: 'server',\n host: config.host,\n protocol: config.host.indexOf('https') !== -1 ? 'https://' : 'http://',\n ns: config.ns,\n /* namespace of viya */\n tokenType: config.hasOwnProperty('tokenType') === true ? config.tokenType : null,\n token: config.hasOwnProperty('token') === true ? config.token : null,\n sslOptions: config.hasOwnProperty('sslOptions') === true ? config.sslOptions : null,\n // the next two are here for backward compatability but sslOptions is the correct way\n\n pem: config.hasOwnProperty('pem') ? config.pem : null,\n rejectUnauthorized: config.hasOwnProperty('rejectUnauthorized') ? config.rejectUnauthorized : null,\n withCredentials: config.hasOwnProperty('withCredentials') ? config.withCredentials : true,\n keepAlive: config.hasOwnProperty('keepAlive') ? config.keepAlive : null\n }\n };\n var temp = {\n currentConnection: state.get('currentConnection') + 1,\n runStatus: 'ready',\n statusInfo: {},\n user: 'You of course!',\n connections: [newOne]\n };\n return fromJS(temp);\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_IMPLICIT */ \"v\"]:\n {\n var _config = action.payload.iconfig;\n if (action.error === true) {\n return state.withMutations(function (s) {\n s.set('runStatus', 'error').set('statusInfo', fromJS(Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* setBadStatus */ \"c\"])(action.payload)));\n });\n }\n var _newOne = {\n type: 'implicit',\n id: 1,\n user: 'You',\n desc: 'implicit',\n logonInfo: _objectSpread({}, _config)\n };\n var _temp = {\n currentConnection: state.get('currentConnection') + 1,\n runStatus: 'ready',\n statusInfo: {},\n user: 'You of course!',\n connections: [_newOne]\n };\n return fromJS(_temp);\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_COMPLETE */ \"u\"]:\n {\n if (action.error === true) {\n return state.withMutations(function (s) {\n s.set('runStatus', 'error').set('statusInfo', fromJS(Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* setBadStatus */ \"c\"])(action.payload)));\n });\n }\n var _temp2 = {\n currentConnection: state.get('currentConnection') + 1,\n runStatus: 'ready',\n statusInfo: Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* setGoodStatus */ \"d\"])(action.payload),\n user: action.payload.data.iconfig.user\n };\n return state.withMutations(function (s) {\n //noinspection JSUnresolvedFunction\n s.set('connections', s.get('connections').push(Map(newConnection(action.payload)))).merge(fromJS(_temp2));\n });\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGOFF */ \"r\"]:\n {\n return state;\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* BEGIN_LOGOFF */ \"n\"]:\n {\n return state.set('runStatus', 'busy');\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGOFF_COMPLETE */ \"s\"]:\n {\n if (action.error === true) {\n return state.withMutations(function (s) {\n s.set('runStatus', 'error').set('statusInfo', fromJS(Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* setBadStatus */ \"c\"])(action.payload)));\n });\n }\n return initialState;\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* KEEP_ALIVE */ \"q\"]:\n {\n return state;\n }\n default:\n return state;\n }\n}\nfunction newConnection(payload) {\n var _payload$data = payload.data,\n results = _payload$data.results,\n iconfig = _payload$data.iconfig;\n return {\n type: 'connection',\n id: 1,\n user: iconfig.user,\n desc: iconfig.desc,\n logonInfo: {\n type: 'trusted',\n host: iconfig.host,\n tokenType: results['token_type'],\n token: results['access_token'],\n sslOptions: iconfig.sslOptions,\n // rejectUnauthorized: (iconfig.hasOwnProperty('rejectUnauthorized')) ? iconfig.rejectUnauthorized : null,\n\n keepAlive: iconfig.keepAlive == null ? null : iconfig.keepAlive\n },\n statusInfo: Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* setGoodStatus */ \"d\"])(payload)\n };\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (viyaLogon);\n\n//# sourceURL=webpack://restaf/./reducers/viyaLogon.js?");
1319
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ \"./utils/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n/* import uuid from 'uuid' ;*/\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\nvar Immutable = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\nvar Map = Immutable.Map,\n fromJS = Immutable.fromJS;\n\n\nvar initialState = fromJS({\n connections: [],\n user: 'none',\n type: 'server',\n currentConnection: -1,\n statusInfo: Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* statusInfoStruct */ \"e\"])(),\n runStatus: 'idle'\n});\nfunction viyaLogon() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n switch (action.type) {\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* BEGIN_LOGON */ \"o\"]:\n {\n return state.set('runStatus', 'busy');\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_SERVER */ \"x\"]:\n {\n var config = action.payload.iconfig;\n var newOne = {\n type: 'server',\n id: 1,\n user: 'You',\n desc: 'Server',\n logonInfo: {\n type: 'server',\n host: config.host,\n protocol: config.host.indexOf('https') !== -1 ? 'https://' : 'http://',\n ns: config.ns,\n /* namespace of viya */\n tokenType: config.hasOwnProperty('tokenType') === true ? config.tokenType : null,\n token: config.hasOwnProperty('token') === true ? config.token : null,\n sslOptions: config.hasOwnProperty('sslOptions') === true ? config.sslOptions : null,\n // the next two are here for backward compatability but sslOptions is the correct way\n\n pem: config.hasOwnProperty('pem') ? config.pem : null,\n rejectUnauthorized: config.hasOwnProperty('rejectUnauthorized') ? config.rejectUnauthorized : null,\n withCredentials: config.hasOwnProperty('withCredentials') ? config.withCredentials : true,\n keepAlive: config.hasOwnProperty('keepAlive') ? config.keepAlive : null\n }\n };\n var temp = {\n currentConnection: state.get('currentConnection') + 1,\n runStatus: 'ready',\n statusInfo: {},\n user: 'You of course!',\n connections: [newOne]\n };\n return fromJS(temp);\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_IMPLICIT */ \"v\"]:\n {\n var _config = action.payload.iconfig;\n if (action.error === true) {\n return state.withMutations(function (s) {\n s.set('runStatus', 'error').set('statusInfo', fromJS(Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* setBadStatus */ \"c\"])(action.payload)));\n });\n }\n var _newOne = {\n type: 'implicit',\n id: 1,\n user: 'You',\n desc: 'implicit',\n logonInfo: _objectSpread({}, _config)\n };\n var _temp = {\n currentConnection: state.get('currentConnection') + 1,\n runStatus: 'ready',\n statusInfo: {},\n user: 'You of course!',\n connections: [_newOne]\n };\n return fromJS(_temp);\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_COMPLETE */ \"u\"]:\n {\n if (action.error === true) {\n return state.withMutations(function (s) {\n s.set('runStatus', 'error').set('statusInfo', fromJS(Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* setBadStatus */ \"c\"])(action.payload)));\n });\n }\n var _temp2 = {\n currentConnection: state.get('currentConnection') + 1,\n runStatus: 'ready',\n statusInfo: Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* setGoodStatus */ \"d\"])(action.payload),\n user: action.payload.data.iconfig.user\n };\n return state.withMutations(function (s) {\n //noinspection JSUnresolvedFunction\n s.set('connections', s.get('connections').push(Map(newConnection(action.payload)))).merge(fromJS(_temp2));\n });\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGOFF */ \"r\"]:\n {\n return state;\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* BEGIN_LOGOFF */ \"n\"]:\n {\n return state.set('runStatus', 'busy');\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGOFF_COMPLETE */ \"s\"]:\n {\n if (action.error === true) {\n return state.withMutations(function (s) {\n s.set('runStatus', 'error').set('statusInfo', fromJS(Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* setBadStatus */ \"c\"])(action.payload)));\n });\n }\n return initialState;\n }\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* KEEP_ALIVE */ \"q\"]:\n {\n return state;\n }\n default:\n return state;\n }\n}\nfunction newConnection(payload) {\n var _payload$data = payload.data,\n results = _payload$data.results,\n iconfig = _payload$data.iconfig;\n return {\n type: 'connection',\n id: 1,\n user: iconfig.user,\n desc: iconfig.desc,\n logonInfo: {\n type: 'trusted',\n host: iconfig.host,\n tokenType: results['token_type'],\n token: results['access_token'],\n sslOptions: iconfig.sslOptions,\n // rejectUnauthorized: (iconfig.hasOwnProperty('rejectUnauthorized')) ? iconfig.rejectUnauthorized : null,\n\n keepAlive: iconfig.keepAlive == null ? null : iconfig.keepAlive\n },\n statusInfo: Object(_utils__WEBPACK_IMPORTED_MODULE_2__[/* setGoodStatus */ \"d\"])(payload)\n };\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (viyaLogon);\n\n//# sourceURL=webpack://restaf/./reducers/viyaLogon.js?");
1320
1320
 
1321
1321
  /***/ }),
1322
1322
 
@@ -1329,7 +1329,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1329
1329
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1330
1330
 
1331
1331
  "use strict";
1332
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _httpCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./httpCall */ \"./sagas/httpCall.js\");\n/* harmony import */ var _store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../store/selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(apiCall);\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\nfunction apiCall(action) {\n var config, payload;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function apiCall$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n config = _objectSpread({}, action);\n _context.next = 3;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* select */ \"e\"])(_store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]);\n case 3:\n config.logonInfo = _context.sent;\n _context.next = 6;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])({\n type: config.serviceName + '_' + action.type + '_BEGIN',\n config: config\n });\n case 6:\n if (!(action.delay > 0)) {\n _context.next = 9;\n break;\n }\n _context.next = 9;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* delay */ \"c\"])(action.delay * 1000);\n case 9:\n _context.next = 11;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* call */ \"b\"])(_httpCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"], config);\n case 11:\n payload = _context.sent;\n _context.next = 14;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])(payload);\n case 14:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCall);\n\n//# sourceURL=webpack://restaf/./sagas/apiCall.js?");
1332
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _httpCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./httpCall */ \"./sagas/httpCall.js\");\n/* harmony import */ var _store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../store/selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(apiCall);\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\nfunction apiCall(action) {\n var config, payload;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function apiCall$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n config = _objectSpread({}, action);\n _context.next = 3;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* select */ \"e\"])(_store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]);\n case 3:\n config.logonInfo = _context.sent;\n _context.next = 6;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])({\n type: config.serviceName + '_' + action.type + '_BEGIN',\n config: config\n });\n case 6:\n if (!(action.delay > 0)) {\n _context.next = 9;\n break;\n }\n _context.next = 9;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* delay */ \"c\"])(action.delay * 1000);\n case 9:\n _context.next = 11;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* call */ \"b\"])(_httpCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"], config);\n case 11:\n payload = _context.sent;\n _context.next = 14;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])(payload);\n case 14:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCall);\n\n//# sourceURL=webpack://restaf/./sagas/apiCall.js?");
1333
1333
 
1334
1334
  /***/ }),
1335
1335
 
@@ -1342,7 +1342,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1342
1342
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1343
1343
 
1344
1344
  "use strict";
1345
- eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCall */ \"./sagas/apiCall.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(apiCallAction);\n\n\n\nfunction apiCallAction() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function apiCallAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* takeEvery */ \"h\"])([_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* ADD_SERVICE */ \"a\"], _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_CALL */ \"b\"]], _apiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]);\n case 2:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCallAction);\n\n//# sourceURL=webpack://restaf/./sagas/apiCallAction.js?");
1345
+ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCall */ \"./sagas/apiCall.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(apiCallAction);\n\n\n\nfunction apiCallAction() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function apiCallAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* takeEvery */ \"h\"])([_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* ADD_SERVICE */ \"a\"], _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_CALL */ \"b\"]], _apiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]);\n case 2:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCallAction);\n\n//# sourceURL=webpack://restaf/./sagas/apiCallAction.js?");
1346
1346
 
1347
1347
  /***/ }),
1348
1348
 
@@ -1355,7 +1355,7 @@ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODU
1355
1355
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1356
1356
 
1357
1357
  "use strict";
1358
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../store/selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _httpCall__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./httpCall */ \"./sagas/httpCall.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(apiCallAllAction),\n _marked2 = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(yieldAll),\n _marked3 = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(setupService);\n\n\n\n\n\nfunction apiCallAllAction() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function apiCallAllAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* takeEvery */ \"h\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_CALL_PARALLEL */ \"c\"], yieldAll);\n case 2:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\nfunction yieldAll(action) {\n var config, actionArray, i, l, result, r;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function yieldAll$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n config = {};\n actionArray = action.actionArray;\n for (i = 0; i < actionArray.length; i++) {\n l = \"l\".concat(i);\n config[l] = Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* call */ \"b\"])(setupService, actionArray[i]);\n }\n _context2.next = 5;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* all */ \"a\"])(config);\n case 5:\n result = _context2.sent;\n _context2.t0 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.keys(result);\n case 7:\n if ((_context2.t1 = _context2.t0()).done) {\n _context2.next = 13;\n break;\n }\n r = _context2.t1.value;\n _context2.next = 11;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])(result[r]);\n case 11:\n _context2.next = 7;\n break;\n case 13:\n case \"end\":\n return _context2.stop();\n }\n }, _marked2);\n}\nfunction setupService(action) {\n var config;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function setupService$(_context3) {\n while (1) switch (_context3.prev = _context3.next) {\n case 0:\n config = _objectSpread({}, action);\n _context3.next = 3;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* select */ \"e\"])(_store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]);\n case 3:\n config.logonInfo = _context3.sent;\n _context3.next = 6;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])({\n type: config.serviceName + '_' + config.type + '_BEGIN',\n config: config\n });\n case 6:\n return _context3.abrupt(\"return\", config);\n case 7:\n case \"end\":\n return _context3.stop();\n }\n }, _marked3);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCallAllAction);\n\n//# sourceURL=webpack://restaf/./sagas/apiCallAllAction.js?");
1358
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../store/selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _httpCall__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./httpCall */ \"./sagas/httpCall.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(apiCallAllAction),\n _marked2 = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(yieldAll),\n _marked3 = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(setupService);\n\n\n\n\n\nfunction apiCallAllAction() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function apiCallAllAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* takeEvery */ \"h\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_CALL_PARALLEL */ \"c\"], yieldAll);\n case 2:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\nfunction yieldAll(action) {\n var config, actionArray, i, l, result, r;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function yieldAll$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n config = {};\n actionArray = action.actionArray;\n for (i = 0; i < actionArray.length; i++) {\n l = \"l\".concat(i);\n config[l] = Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* call */ \"b\"])(setupService, actionArray[i]);\n }\n _context2.next = 5;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* all */ \"a\"])(config);\n case 5:\n result = _context2.sent;\n _context2.t0 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.keys(result);\n case 7:\n if ((_context2.t1 = _context2.t0()).done) {\n _context2.next = 13;\n break;\n }\n r = _context2.t1.value;\n _context2.next = 11;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])(result[r]);\n case 11:\n _context2.next = 7;\n break;\n case 13:\n case \"end\":\n return _context2.stop();\n }\n }, _marked2);\n}\nfunction setupService(action) {\n var config;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function setupService$(_context3) {\n while (1) switch (_context3.prev = _context3.next) {\n case 0:\n config = _objectSpread({}, action);\n _context3.next = 3;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* select */ \"e\"])(_store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]);\n case 3:\n config.logonInfo = _context3.sent;\n _context3.next = 6;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])({\n type: config.serviceName + '_' + config.type + '_BEGIN',\n config: config\n });\n case 6:\n return _context3.abrupt(\"return\", config);\n case 7:\n case \"end\":\n return _context3.stop();\n }\n }, _marked3);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCallAllAction);\n\n//# sourceURL=webpack://restaf/./sagas/apiCallAllAction.js?");
1359
1359
 
1360
1360
  /***/ }),
1361
1361
 
@@ -1368,7 +1368,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1368
1368
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1369
1369
 
1370
1370
  "use strict";
1371
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _httpCallWait__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./httpCallWait */ \"./sagas/httpCallWait.js\");\n/* harmony import */ var _store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../store/selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(apiPoll);\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\nfunction apiPoll(action) {\n var config, payload;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function apiPoll$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n config = _objectSpread({}, action);\n payload = null;\n _context.next = 4;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* select */ \"e\"])(_store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]);\n case 4:\n config.logonInfo = _context.sent;\n _context.next = 7;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])({\n type: config.serviceName + '_' + action.type + '_BEGIN',\n config: config\n });\n case 7:\n _context.next = 9;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* call */ \"b\"])(_httpCallWait__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"], config);\n case 9:\n payload = _context.sent;\n if (!config.delay) {\n _context.next = 13;\n break;\n }\n _context.next = 13;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* delay */ \"c\"])(config.delay * 1000);\n case 13:\n if (payload === null) {\n _context.next = 7;\n break;\n }\n case 14:\n _context.next = 16;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])(payload);\n case 16:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiPoll);\n\n//# sourceURL=webpack://restaf/./sagas/apiPoll.js?");
1371
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _httpCallWait__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./httpCallWait */ \"./sagas/httpCallWait.js\");\n/* harmony import */ var _store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../store/selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(apiPoll);\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\nfunction apiPoll(action) {\n var config, payload;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function apiPoll$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n config = _objectSpread({}, action);\n payload = null;\n _context.next = 4;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* select */ \"e\"])(_store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]);\n case 4:\n config.logonInfo = _context.sent;\n _context.next = 7;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])({\n type: config.serviceName + '_' + action.type + '_BEGIN',\n config: config\n });\n case 7:\n _context.next = 9;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* call */ \"b\"])(_httpCallWait__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"], config);\n case 9:\n payload = _context.sent;\n if (!config.delay) {\n _context.next = 13;\n break;\n }\n _context.next = 13;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* delay */ \"c\"])(config.delay * 1000);\n case 13:\n if (payload === null) {\n _context.next = 7;\n break;\n }\n case 14:\n _context.next = 16;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])(payload);\n case 16:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiPoll);\n\n//# sourceURL=webpack://restaf/./sagas/apiPoll.js?");
1372
1372
 
1373
1373
  /***/ }),
1374
1374
 
@@ -1381,7 +1381,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1381
1381
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1382
1382
 
1383
1383
  "use strict";
1384
- eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _apiPoll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiPoll */ \"./sagas/apiPoll.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(apiPollAction);\n\n\n\nfunction apiPollAction() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function apiPollAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* takeEvery */ \"h\"])([_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_POLL */ \"d\"]], _apiPoll__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]);\n case 2:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiPollAction);\n\n//# sourceURL=webpack://restaf/./sagas/apiPollAction.js?");
1384
+ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _apiPoll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiPoll */ \"./sagas/apiPoll.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(apiPollAction);\n\n\n\nfunction apiPollAction() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function apiPollAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* takeEvery */ \"h\"])([_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_POLL */ \"d\"]], _apiPoll__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]);\n case 2:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiPollAction);\n\n//# sourceURL=webpack://restaf/./sagas/apiPollAction.js?");
1385
1385
 
1386
1386
  /***/ }),
1387
1387
 
@@ -1394,7 +1394,7 @@ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODU
1394
1394
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1395
1395
 
1396
1396
  "use strict";
1397
- eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(apiDataAction),\n _marked2 = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(appData);\n\n\n\n\n\nfunction apiDataAction() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function apiDataAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* takeEvery */ \"h\"])([_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA */ \"k\"], _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS */ \"e\"], _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_XSRF */ \"h\"]], appData);\n case 2:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\nfunction appData(action) {\n var newType, config;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function appData$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n _context2.t0 = action.type;\n _context2.next = _context2.t0 === _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA */ \"k\"] ? 3 : _context2.t0 === _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS */ \"e\"] ? 5 : 7;\n break;\n case 3:\n newType = _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA_ROOT */ \"l\"] + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA_SETSTATE */ \"m\"];\n return _context2.abrupt(\"break\", 9);\n case 5:\n newType = _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS_ROOT */ \"f\"] + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS_SETSTATE */ \"g\"];\n return _context2.abrupt(\"break\", 9);\n case 7:\n newType = _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_XSRF_ROOT */ \"i\"] + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_XSRF_SETSTATE */ \"j\"];\n return _context2.abrupt(\"break\", 9);\n case 9:\n config = {\n type: newType,\n payload: action\n };\n _context2.next = 12;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* put */ \"d\"])(config);\n case 12:\n case \"end\":\n return _context2.stop();\n }\n }, _marked2);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiDataAction);\n\n//# sourceURL=webpack://restaf/./sagas/appDataAction.js?");
1397
+ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(apiDataAction),\n _marked2 = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(appData);\n\n\n\n\n\nfunction apiDataAction() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function apiDataAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* takeEvery */ \"h\"])([_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA */ \"k\"], _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS */ \"e\"], _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_XSRF */ \"h\"]], appData);\n case 2:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\nfunction appData(action) {\n var newType, config;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function appData$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n _context2.t0 = action.type;\n _context2.next = _context2.t0 === _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA */ \"k\"] ? 3 : _context2.t0 === _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS */ \"e\"] ? 5 : 7;\n break;\n case 3:\n newType = _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA_ROOT */ \"l\"] + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA_SETSTATE */ \"m\"];\n return _context2.abrupt(\"break\", 9);\n case 5:\n newType = _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS_ROOT */ \"f\"] + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS_SETSTATE */ \"g\"];\n return _context2.abrupt(\"break\", 9);\n case 7:\n newType = _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_XSRF_ROOT */ \"i\"] + '_' + _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_XSRF_SETSTATE */ \"j\"];\n return _context2.abrupt(\"break\", 9);\n case 9:\n config = {\n type: newType,\n payload: action\n };\n _context2.next = 12;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* put */ \"d\"])(config);\n case 12:\n case \"end\":\n return _context2.stop();\n }\n }, _marked2);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiDataAction);\n\n//# sourceURL=webpack://restaf/./sagas/appDataAction.js?");
1398
1398
 
1399
1399
  /***/ }),
1400
1400
 
@@ -1407,7 +1407,7 @@ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODU
1407
1407
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1408
1408
 
1409
1409
  "use strict";
1410
- eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../serverCalls */ \"./serverCalls/index.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\nfunction httpCall(config) {\n if (config.logonInfo === null) {\n return httpDone({\n error: 'Please logon'\n }, config, true);\n } else {\n return Object(_serverCalls__WEBPACK_IMPORTED_MODULE_0__[/* request */ \"b\"])(config).then(function (response) {\n return httpDone(response, config, false);\n }).catch(function (error) {\n return httpDone(error, config, true);\n });\n }\n}\nfunction httpDone(payload, config, error) {\n return {\n error: error,\n type: config.serviceName + '_' + config.type + '_COMPLETE',\n config: config,\n payload: payload\n };\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (httpCall);\n\n//# sourceURL=webpack://restaf/./sagas/httpCall.js?");
1410
+ eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../serverCalls */ \"./serverCalls/index.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\nfunction httpCall(config) {\n if (config.logonInfo === null) {\n return httpDone({\n error: 'Please logon'\n }, config, true);\n } else {\n return Object(_serverCalls__WEBPACK_IMPORTED_MODULE_0__[/* request */ \"b\"])(config).then(function (response) {\n return httpDone(response, config, false);\n }).catch(function (error) {\n return httpDone(error, config, true);\n });\n }\n}\nfunction httpDone(payload, config, error) {\n return {\n error: error,\n type: config.serviceName + '_' + config.type + '_COMPLETE',\n config: config,\n payload: payload\n };\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (httpCall);\n\n//# sourceURL=webpack://restaf/./sagas/httpCall.js?");
1411
1411
 
1412
1412
  /***/ }),
1413
1413
 
@@ -1420,7 +1420,7 @@ eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __web
1420
1420
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1421
1421
 
1422
1422
  "use strict";
1423
- eval("/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../../../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../serverCalls */ \"./serverCalls/index.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\n\nfunction httpCallWait(config) {\n var states = ['running', 'pending'];\n var flag;\n return Object(_serverCalls__WEBPACK_IMPORTED_MODULE_1__[/* request */ \"b\"])(config).then(function (response) {\n var eventHandler = function eventHandler() {\n flag = false;\n if (config.eventHandler) {\n var cstate = response.status === 304 ? 'running' : r;\n var r1 = config.eventHandler(cstate, config.jobContext);\n /* this code to maintain backward compatability */\n if (typeof r1 === 'boolean') {\n flag = r1;\n } else if (r1 !== cstate) {\n response.data.results = r1;\n flag = true;\n }\n }\n };\n var r = response.data.results;\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(r) === 'object') {\n r = response.data.results.items.isIdle === true ? 'completed' : 'running';\n response.data.results.items = r;\n }\n eventHandler();\n if (response.status === 304 && flag === false) {\n return null;\n }\n if (states.indexOf(r) === -1 || flag === true) {\n return httpDone(response, config, false);\n } else {\n if (config.payload.headers != null && config.payload.headers['If-None-Match'] != null && response.headers.etag != null) {\n config.payload.headers['If-None-Match'] = response.headers.etag;\n }\n return null;\n }\n }).catch(function (error) {\n if (config.eventHandler) {\n flag = config.eventHandler('*SystemError', config.jobContext);\n }\n return httpDone(error, config, true);\n });\n}\nfunction httpDone(payload, config, error) {\n return {\n error: error,\n type: config.serviceName + '_' + config.type + '_COMPLETE',\n config: config,\n payload: payload\n };\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (httpCallWait);\n\n//# sourceURL=webpack://restaf/./sagas/httpCallWait.js?");
1423
+ eval("/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../../../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../serverCalls */ \"./serverCalls/index.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\n\nfunction httpCallWait(config) {\n var states = ['running', 'pending'];\n var flag;\n return Object(_serverCalls__WEBPACK_IMPORTED_MODULE_1__[/* request */ \"b\"])(config).then(function (response) {\n var eventHandler = function eventHandler() {\n flag = false;\n if (config.eventHandler) {\n var cstate = response.status === 304 ? 'running' : r;\n var r1 = config.eventHandler(cstate, config.jobContext);\n /* this code to maintain backward compatability */\n if (typeof r1 === 'boolean') {\n flag = r1;\n } else if (r1 !== cstate) {\n response.data.results = r1;\n flag = true;\n }\n }\n };\n var r = response.data.results;\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(r) === 'object') {\n r = response.data.results.items.isIdle === true ? 'completed' : 'running';\n response.data.results.items = r;\n }\n eventHandler();\n if (response.status === 304 && flag === false) {\n return null;\n }\n if (states.indexOf(r) === -1 || flag === true) {\n return httpDone(response, config, false);\n } else {\n if (config.payload.headers != null && config.payload.headers['If-None-Match'] != null && response.headers.etag != null) {\n config.payload.headers['If-None-Match'] = response.headers.etag;\n }\n return null;\n }\n }).catch(function (error) {\n if (config.eventHandler) {\n flag = config.eventHandler('*SystemError', config.jobContext);\n }\n return httpDone(error, config, true);\n });\n}\nfunction httpDone(payload, config, error) {\n return {\n error: error,\n type: config.serviceName + '_' + config.type + '_COMPLETE',\n config: config,\n payload: payload\n };\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (httpCallWait);\n\n//# sourceURL=webpack://restaf/./sagas/httpCallWait.js?");
1424
1424
 
1425
1425
  /***/ }),
1426
1426
 
@@ -1433,7 +1433,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_M
1433
1433
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1434
1434
 
1435
1435
  "use strict";
1436
- eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ \"./utils/index.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(keepAliveAction),\n _marked2 = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(keepAlivei);\n\n\n\nfunction keepAliveAction() {\n var action;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function keepAliveAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* takeLatest */ \"i\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* KEEP_ALIVE */ \"q\"], keepAlivei);\n case 2:\n action = _context.sent;\n case 3:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\nfunction keepAlivei(payload) {\n var r;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function keepAlivei$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* spawn */ \"f\"])(test, payload);\n case 2:\n r = _context2.sent;\n return _context2.abrupt(\"return\", r);\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }, _marked2);\n}\nfunction test(action) {\n var t = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[/* SASLogonOauthLink */ \"b\"])('keepAlive');\n return t.keepAlive(action);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (keepAliveAction);\n\n//# sourceURL=webpack://restaf/./sagas/keepAliveAction.js?");
1436
+ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ \"./utils/index.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(keepAliveAction),\n _marked2 = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(keepAlivei);\n\n\n\nfunction keepAliveAction() {\n var action;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function keepAliveAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* takeLatest */ \"i\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* KEEP_ALIVE */ \"q\"], keepAlivei);\n case 2:\n action = _context.sent;\n case 3:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\nfunction keepAlivei(payload) {\n var r;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function keepAlivei$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* spawn */ \"f\"])(test, payload);\n case 2:\n r = _context2.sent;\n return _context2.abrupt(\"return\", r);\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }, _marked2);\n}\nfunction test(action) {\n var t = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[/* SASLogonOauthLink */ \"b\"])('keepAlive');\n return t.keepAlive(action);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (keepAliveAction);\n\n//# sourceURL=webpack://restaf/./sagas/keepAliveAction.js?");
1437
1437
 
1438
1438
  /***/ }),
1439
1439
 
@@ -1446,7 +1446,7 @@ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODU
1446
1446
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1447
1447
 
1448
1448
  "use strict";
1449
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../store/selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ \"./utils/index.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(logonAction);\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\n\nfunction logonAction() {\n var f, action, payload, config, _payload;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function logonAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n f = true;\n case 1:\n if (!f) {\n _context.next = 30;\n break;\n }\n _context.next = 4;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* take */ \"g\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGON */ \"t\"]);\n case 4:\n action = _context.sent;\n _context.next = 7;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])({\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* BEGIN_LOGON */ \"o\"]\n });\n case 7:\n _context.next = 9;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* call */ \"b\"])(sasLogon, action);\n case 9:\n payload = _context.sent;\n payload.keepAlive = action.payload.keepAlive == null ? null : action.payload.keepAlive;\n _context.next = 13;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])(payload);\n case 13:\n if (!(payload.error === false)) {\n _context.next = 28;\n break;\n }\n _context.next = 16;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* take */ \"g\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGOFF */ \"r\"]);\n case 16:\n action = _context.sent;\n _context.next = 19;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])({\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* BEGIN_LOGOFF */ \"n\"]\n });\n case 19:\n config = _objectSpread({}, action);\n _context.next = 22;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* select */ \"e\"])(_store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]);\n case 22:\n config.logonInfo = _context.sent;\n _context.next = 25;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* call */ \"b\"])(sasLogoff, config);\n case 25:\n _payload = _context.sent;\n _context.next = 28;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])(_payload);\n case 28:\n _context.next = 1;\n break;\n case 30:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\nfunction sasLogon(action) {\n var config = _objectSpread({}, action.payload);\n if (config.authType === _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGON_SERVER */ \"x\"] || config.authType === _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGON_IMPLICIT */ \"v\"]) {\n return {\n type: config.authType,\n error: false,\n payload: {\n iconfig: config\n }\n };\n } else {\n var t = Object(_utils__WEBPACK_IMPORTED_MODULE_4__[/* SASLogonOauthLink */ \"b\"])(config.authType);\n config.link = t.link;\n return t.logon(config).then(function (response) {\n return {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGON_COMPLETE */ \"u\"],\n error: false,\n payload: response\n };\n }).catch(function (error) {\n return {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGON_COMPLETE */ \"u\"],\n error: true,\n payload: error\n };\n });\n }\n}\nfunction sasLogoff(config) {\n var t = Object(_utils__WEBPACK_IMPORTED_MODULE_4__[/* SASLogoffOauthLink */ \"a\"])();\n config.link = t.link;\n return t.logoff(config).then(function (response) {\n return {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGOFF_COMPLETE */ \"s\"],\n error: false,\n payload: response\n };\n }).catch(function (error) {\n return {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGOFF_COMPLETE */ \"s\"],\n error: true,\n payload: error\n };\n });\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (logonAction);\n\n//# sourceURL=webpack://restaf/./sagas/logonAction.js?");
1449
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../store/selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ \"./utils/index.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(logonAction);\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\n\nfunction logonAction() {\n var f, action, payload, config, _payload;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function logonAction$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n f = true;\n case 1:\n if (!f) {\n _context.next = 30;\n break;\n }\n _context.next = 4;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* take */ \"g\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGON */ \"t\"]);\n case 4:\n action = _context.sent;\n _context.next = 7;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])({\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* BEGIN_LOGON */ \"o\"]\n });\n case 7:\n _context.next = 9;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* call */ \"b\"])(sasLogon, action);\n case 9:\n payload = _context.sent;\n payload.keepAlive = action.payload.keepAlive == null ? null : action.payload.keepAlive;\n _context.next = 13;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])(payload);\n case 13:\n if (!(payload.error === false)) {\n _context.next = 28;\n break;\n }\n _context.next = 16;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* take */ \"g\"])(_actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGOFF */ \"r\"]);\n case 16:\n action = _context.sent;\n _context.next = 19;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])({\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* BEGIN_LOGOFF */ \"n\"]\n });\n case 19:\n config = _objectSpread({}, action);\n _context.next = 22;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* select */ \"e\"])(_store_selectLogonInfo__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]);\n case 22:\n config.logonInfo = _context.sent;\n _context.next = 25;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* call */ \"b\"])(sasLogoff, config);\n case 25:\n _payload = _context.sent;\n _context.next = 28;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__[/* put */ \"d\"])(_payload);\n case 28:\n _context.next = 1;\n break;\n case 30:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\nfunction sasLogon(action) {\n var config = _objectSpread({}, action.payload);\n if (config.authType === _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGON_SERVER */ \"x\"] || config.authType === _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGON_IMPLICIT */ \"v\"]) {\n return {\n type: config.authType,\n error: false,\n payload: {\n iconfig: config\n }\n };\n } else {\n var t = Object(_utils__WEBPACK_IMPORTED_MODULE_4__[/* SASLogonOauthLink */ \"b\"])(config.authType);\n config.link = t.link;\n return t.logon(config).then(function (response) {\n return {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGON_COMPLETE */ \"u\"],\n error: false,\n payload: response\n };\n }).catch(function (error) {\n return {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGON_COMPLETE */ \"u\"],\n error: true,\n payload: error\n };\n });\n }\n}\nfunction sasLogoff(config) {\n var t = Object(_utils__WEBPACK_IMPORTED_MODULE_4__[/* SASLogoffOauthLink */ \"a\"])();\n config.link = t.link;\n return t.logoff(config).then(function (response) {\n return {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGOFF_COMPLETE */ \"s\"],\n error: false,\n payload: response\n };\n }).catch(function (error) {\n return {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_5__[/* VIYA_LOGOFF_COMPLETE */ \"s\"],\n error: true,\n payload: error\n };\n });\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (logonAction);\n\n//# sourceURL=webpack://restaf/./sagas/logonAction.js?");
1450
1450
 
1451
1451
  /***/ }),
1452
1452
 
@@ -1459,7 +1459,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1459
1459
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1460
1460
 
1461
1461
  "use strict";
1462
- eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _logonAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logonAction */ \"./sagas/logonAction.js\");\n/* harmony import */ var _apiCallAction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCallAction */ \"./sagas/apiCallAction.js\");\n/* harmony import */ var _apiCallAllAction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./apiCallAllAction */ \"./sagas/apiCallAllAction.js\");\n/* harmony import */ var _apiPollAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./apiPollAction */ \"./sagas/apiPollAction.js\");\n/* harmony import */ var _appDataAction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./appDataAction */ \"./sagas/appDataAction.js\");\n/* harmony import */ var _keepAliveAction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./keepAliveAction */ \"./sagas/keepAliveAction.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(rootSaga);\n\n\n\n\n\n\n\nfunction rootSaga() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function rootSaga$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* all */ \"a\"])([Object(_logonAction__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(), Object(_apiCallAction__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(), Object(_apiCallAllAction__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(), Object(_apiPollAction__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(), Object(_appDataAction__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"])(), Object(_keepAliveAction__WEBPACK_IMPORTED_MODULE_7__[/* default */ \"a\"])()]);\n case 2:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (rootSaga);\n\n//# sourceURL=webpack://restaf/./sagas/rootSaga.js?");
1462
+ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ \"../../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js\");\n/* harmony import */ var _logonAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logonAction */ \"./sagas/logonAction.js\");\n/* harmony import */ var _apiCallAction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCallAction */ \"./sagas/apiCallAction.js\");\n/* harmony import */ var _apiCallAllAction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./apiCallAllAction */ \"./sagas/apiCallAllAction.js\");\n/* harmony import */ var _apiPollAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./apiPollAction */ \"./sagas/apiPollAction.js\");\n/* harmony import */ var _appDataAction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./appDataAction */ \"./sagas/appDataAction.js\");\n/* harmony import */ var _keepAliveAction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./keepAliveAction */ \"./sagas/keepAliveAction.js\");\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\nvar _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(rootSaga);\n\n\n\n\n\n\n\nfunction rootSaga() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function rootSaga$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__[/* all */ \"a\"])([Object(_logonAction__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(), Object(_apiCallAction__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(), Object(_apiCallAllAction__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(), Object(_apiPollAction__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(), Object(_appDataAction__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"])(), Object(_keepAliveAction__WEBPACK_IMPORTED_MODULE_7__[/* default */ \"a\"])()]);\n case 2:\n case \"end\":\n return _context.stop();\n }\n }, _marked);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (rootSaga);\n\n//# sourceURL=webpack://restaf/./sagas/rootSaga.js?");
1463
1463
 
1464
1464
  /***/ }),
1465
1465
 
@@ -1472,7 +1472,7 @@ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODU
1472
1472
  /***/ (function(module, exports, __webpack_require__) {
1473
1473
 
1474
1474
  "use strict";
1475
- eval("/*\r\n* Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n* SPDX-License-Identifier: Apache-2.0\r\n*/\n\n\nmodule.exports = function casSessionLinks(uri, urihttp, casHttp, server, casProxyFlag) {\n var href = casProxyFlag === true ? \"\".concat(uri, \"/actions\") : \"\".concat(urihttp, \"/actions\");\n var isIdle = casProxyFlag === true ? \"\".concat(uri, \"/isIdle\") : \"\".concat(urihttp, \"/isIdle\");\n debugger;\n console.log(casProxyFlag, ' ', href);\n var r = [{\n method: 'POST',\n href: href,\n rel: 'execute',\n uri: href,\n responseType: 'application/json',\n type: 'application/json',\n itemType: 'application/json',\n title: 'Run CAS Action',\n customHandling: 'casExecute',\n casHttp: casHttp,\n server: server,\n extended: true\n }, {\n method: 'GET',\n href: isIdle,\n rel: 'state',\n uri: isIdle,\n responseType: 'application/json',\n type: 'application/json',\n itemType: 'application/json',\n title: 'state',\n customHandling: 'casState',\n casHttp: casHttp,\n server: server,\n extended: true\n }];\n return r;\n};\n\n//# sourceURL=webpack://restaf/./serverCalls/casSessionLinks.js?");
1475
+ eval("/*\r\n* Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n* SPDX-License-Identifier: Apache-2.0\r\n*/\n\n\nmodule.exports = function casSessionLinks(uri, urihttp, casHttp, server, casProxyFlag) {\n var href = casProxyFlag === true ? \"\".concat(uri, \"/actions\") : \"\".concat(urihttp, \"/actions\");\n var isIdle = casProxyFlag === true ? \"\".concat(uri, \"/isIdle\") : \"\".concat(urihttp, \"/isIdle\");\n var r = [{\n method: 'POST',\n href: href,\n rel: 'execute',\n uri: href,\n responseType: 'application/json',\n type: 'application/json',\n itemType: 'application/json',\n title: 'Run CAS Action',\n customHandling: 'casExecute',\n casHttp: casHttp,\n server: server,\n extended: true\n }, {\n method: 'GET',\n href: isIdle,\n rel: 'state',\n uri: isIdle,\n responseType: 'application/json',\n type: 'application/json',\n itemType: 'application/json',\n title: 'state',\n customHandling: 'casState',\n casHttp: casHttp,\n server: server,\n extended: true\n }];\n return r;\n};\n\n//# sourceURL=webpack://restaf/./serverCalls/casSessionLinks.js?");
1476
1476
 
1477
1477
  /***/ }),
1478
1478
 
@@ -1485,7 +1485,7 @@ eval("/*\r\n* Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights
1485
1485
  /***/ (function(module, exports, __webpack_require__) {
1486
1486
 
1487
1487
  "use strict";
1488
- eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n */\n\n\nmodule.exports = function fixImages(response) {\n if (response.data.results.hasOwnProperty(\"images\") === true) {\n var images = response.data.results.images;\n var items = Array.isArray(images) === true ? [].concat(images) : Object.assign({}, images);\n items[0].id = \"image\";\n response.data.results.items = items;\n delete response.data.results.images;\n }\n};\n\n//# sourceURL=webpack://restaf/./serverCalls/fixImages.js?");
1488
+ eval("/*\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n */\n\n\nmodule.exports = function fixImages(response) {\n if (response.data.results.hasOwnProperty(\"images\") === true) {\n var images = response.data.results.images;\n var items = Array.isArray(images) === true ? [].concat(images) : Object.assign({}, images);\n items[0].id = \"image\";\n response.data.results.items = items;\n delete response.data.results.images;\n }\n};\n\n//# sourceURL=webpack://restaf/./serverCalls/fixImages.js?");
1489
1489
 
1490
1490
  /***/ }),
1491
1491
 
@@ -1498,7 +1498,7 @@ eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights
1498
1498
  /***/ (function(module, exports, __webpack_require__) {
1499
1499
 
1500
1500
  "use strict";
1501
- eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n */\n\n\nmodule.exports = function fixMlPipelineAutomation(response) {\n // for reasons unknown the objects are \"frozen\" - so this ugly looking code\n try {\n var items = unfreeze(response.data.results.items);\n for (var i = 0; i < items.length; i++) {\n var links = unfreeze(items[i].links);\n if (links.findIndex(function (l) {\n return l.rel === 'championModel';\n }) === -1) {\n var c = items[i].championModel;\n if (c != null && c.links != null && c.links.length > 0) {\n var clinks = unfreeze(c.links);\n for (var j = 0; j < clinks.length; j++) {\n var l = Object.assign({}, clinks[j]);\n var h = l.href.split('?')[0];\n l.uri = h;\n l.href = h;\n l.type = 'application/json';\n if (l.rel === 'championModel' && l.method.toUpperCase() === 'GET') {\n l.type = 'application/vnd.sas.analytics.ml.pipeline.automation.project.champion.model';\n } else if (l.rel === 'championModel' && l.method.toUpperCase() === 'PUT') {\n l.responseType = '*/*';\n } else if (l.rel === 'scoreData') {\n l.responseType = 'application/json';\n l.type = 'application/vnd.sas.analytics.ml.pipeline.automation.score.data.input+json';\n l.responseType = 'application/vnd.sas.analytics.ml.pipeline.automation.score.data.output+json';\n }\n l.extended = true;\n links.push(l);\n }\n items[i].links = links;\n }\n }\n }\n response.data.results.items = items;\n } catch (err) {\n console.log(err);\n }\n};\nfunction unfreeze(l) {\n var newLink = [];\n for (var i = 0; i < l.length; i++) {\n var newObj = Object.assign({}, l[i]);\n newLink.push(newObj);\n }\n return newLink;\n}\n\n//# sourceURL=webpack://restaf/./serverCalls/fixMlPipelineAutomation.js?");
1501
+ eval("/*\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n */\n\n\nmodule.exports = function fixMlPipelineAutomation(response) {\n // for reasons unknown the objects are \"frozen\" - so this ugly looking code\n try {\n var items = unfreeze(response.data.results.items);\n for (var i = 0; i < items.length; i++) {\n var links = unfreeze(items[i].links);\n if (links.findIndex(function (l) {\n return l.rel === 'championModel';\n }) === -1) {\n var c = items[i].championModel;\n if (c != null && c.links != null && c.links.length > 0) {\n var clinks = unfreeze(c.links);\n for (var j = 0; j < clinks.length; j++) {\n var l = Object.assign({}, clinks[j]);\n var h = l.href.split('?')[0];\n l.uri = h;\n l.href = h;\n l.type = 'application/json';\n if (l.rel === 'championModel' && l.method.toUpperCase() === 'GET') {\n l.type = 'application/vnd.sas.analytics.ml.pipeline.automation.project.champion.model';\n } else if (l.rel === 'championModel' && l.method.toUpperCase() === 'PUT') {\n l.responseType = '*/*';\n } else if (l.rel === 'scoreData') {\n l.responseType = 'application/json';\n l.type = 'application/vnd.sas.analytics.ml.pipeline.automation.score.data.input+json';\n l.responseType = 'application/vnd.sas.analytics.ml.pipeline.automation.score.data.output+json';\n }\n l.extended = true;\n links.push(l);\n }\n items[i].links = links;\n }\n }\n }\n response.data.results.items = items;\n } catch (err) {\n console.log(err);\n }\n};\nfunction unfreeze(l) {\n var newLink = [];\n for (var i = 0; i < l.length; i++) {\n var newObj = Object.assign({}, l[i]);\n newLink.push(newObj);\n }\n return newLink;\n}\n\n//# sourceURL=webpack://restaf/./serverCalls/fixMlPipelineAutomation.js?");
1502
1502
 
1503
1503
  /***/ }),
1504
1504
 
@@ -1511,7 +1511,7 @@ eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights
1511
1511
  /***/ (function(module, exports, __webpack_require__) {
1512
1512
 
1513
1513
  "use strict";
1514
- eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n */\n\n\nmodule.exports = function fixReports(response) {\n var items = response.data.results.items;\n for (var i = 0; i < items.length; i++) {\n var reportUri = \"/SASReportViewer/?reportUri=/reports/reports/\".concat(items[i].id);\n var l = {\n method: \"GET\",\n href: reportUri,\n rel: \"viewer\",\n uri: reportUri,\n type: \"text/html\",\n itemType: \"text/html\",\n title: \"Report Viewer\",\n extended: true\n };\n items[i].links.push(l);\n }\n};\n\n//# sourceURL=webpack://restaf/./serverCalls/fixReports.js?");
1514
+ eval("/*\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n */\n\n\nmodule.exports = function fixReports(response) {\n var items = response.data.results.items;\n for (var i = 0; i < items.length; i++) {\n var reportUri = \"/SASReportViewer/?reportUri=/reports/reports/\".concat(items[i].id);\n var l = {\n method: \"GET\",\n href: reportUri,\n rel: \"viewer\",\n uri: reportUri,\n type: \"text/html\",\n itemType: \"text/html\",\n title: \"Report Viewer\",\n extended: true\n };\n items[i].links.push(l);\n }\n};\n\n//# sourceURL=webpack://restaf/./serverCalls/fixReports.js?");
1515
1515
 
1516
1516
  /***/ }),
1517
1517
 
@@ -1524,7 +1524,7 @@ eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights
1524
1524
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1525
1525
 
1526
1526
  "use strict";
1527
- eval("/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\nvar fixImages = __webpack_require__(/*! ./fixImages */ \"./serverCalls/fixImages.js\");\nvar fixReports = __webpack_require__(/*! ./fixReports */ \"./serverCalls/fixReports.js\");\nvar casSessionLinks = __webpack_require__(/*! ./casSessionLinks */ \"./serverCalls/casSessionLinks.js\");\nvar reduceCasResults = __webpack_require__(/*! ./reduceCasResults */ \"./serverCalls/reduceCasResults.js\");\nvar fixMlPipelineAutomation = __webpack_require__(/*! ./fixMlPipelineAutomation */ \"./serverCalls/fixMlPipelineAutomation.js\");\nfunction fixResponse(response) {\n //\n // Ensure all header keys are lowercase\n //\n\n var headers = {};\n for (var k in response.headers) {\n //noinspection JSUnfilteredForInLoop\n var k1 = k.toLowerCase();\n //noinspection JSUnfilteredForInLoop\n headers[k1] = response.headers[k];\n }\n response.headers = headers;\n var cType = response.headers['content-type'];\n if (cType == null || typeof response.data.results === 'string') {\n return response;\n }\n\n // let contentType = cType.split(';') [0];\n var iLink = response.data.iconfig.link;\n fixCas(iLink, response);\n if (iLink.href.indexOf(\"reportImages/jobs\") > 0) {\n fixImages(response);\n }\n if (iLink.href === \"/reports/reports\" && iLink.method === \"GET\") {\n fixReports(response);\n }\n var il = iLink.href.split('?')[0];\n if (il === \"/mlPipelineAutomation/projects\" && iLink.method === \"GET\") {\n fixMlPipelineAutomation(response);\n }\n return response;\n}\n\n// Plan:\n// step 1: propogate server name and cashttp info\n\nfunction fixCas(iLink, response) {\n // special handling for cas\n var casProxyFlag = false;\n if (response.data.hasOwnProperty('iconfig')) {\n if (response.data.iconfig.storeConfig != null) {\n casProxyFlag = response.data.iconfig.storeConfig.casProxy;\n }\n }\n\n // do a refresh - mainly for reattaching to a cas session\n\n if (iLink.rel === 'self' && iLink.type === 'application/vnd.sas.cas.session.summary' || iLink.rel === 'createSession' && iLink.responseType === 'application/vnd.sas.cas.session') {\n response.data.results.links = response.data.results.links.concat(fixCasSession(iLink, response.data.results, casProxyFlag));\n response.data.results.name2 = response.data.results.name.split(':')[0];\n }\n if (iLink.hasOwnProperty('itemType') && iLink.itemType === 'application/vnd.sas.cas.session.summary') {\n var items = response.data.results.items;\n var pre = \"/\".concat(iLink.casHttp, \"/cas/sessions\");\n for (var i = 0; i < items.length; i++) {\n var item = items[i];\n var uri = \"/casProxy/servers/\".concat(iLink.server, \"/cas/sessions/\").concat(item.id);\n var urihttp = \"\".concat(pre, \"/\").concat(item.id);\n item.links = item.links.map(function (l) {\n l.casHttp = iLink.casHttp;\n l.server = iLink.server;\n return l;\n });\n item.links = item.links.concat(casSessionLinks(uri, urihttp, iLink.casHttp, iLink.server, casProxyFlag));\n }\n }\n if (iLink.hasOwnProperty('customHandling')) {\n response.data.results = reduceCasResults(response.data.results);\n response.data.results = {\n items: Object.assign({}, response.data.results)\n };\n response.data.results.customHandling = iLink.customHandling;\n }\n if ((iLink.href === '/casManagement/' || iLink.href === '/casManagement') && iLink.method === 'GET') {\n response.data.results.links.map(function (l) {\n if (l.rel === 'collection') {\n l.title = 'servers';\n l.rel = 'servers';\n l.patch = 'cas'; /* flag to indicate we need to patch cas related stuff */\n }\n\n return l;\n });\n }\n // A seperate loop in case casManagement fixes the issue\n if (iLink.hasOwnProperty('patch') && iLink.rel === 'servers') {\n var _items = response.data.results.items;\n var _loop = function _loop() {\n var item = _items[_i];\n var name = item.name;\n var ll = item.links.map(function (l) {\n l.casHttp = \"\".concat(name, \"-http\"); /* save the http info to propogate to sessions */\n l.server = name;\n return l;\n });\n item.links = ll;\n };\n for (var _i = 0; _i < _items.length; _i++) {\n _loop();\n }\n }\n}\nfunction fixCasSession(iLink, results, casProxyFlag) {\n // proprogate casHttp\n results.links = results.links.map(function (l) {\n l.casHttp = iLink.casHttp;\n l.server = iLink.server;\n return l;\n });\n return sessionLinks(iLink, results.id, casProxyFlag).concat(results.links);\n}\nfunction sessionLinks(iLink, sessionId, casProxyFlag) {\n var uri = \"/casProxy/servers/\".concat(iLink.server, \"/cas/sessions/\").concat(sessionId);\n var urihttp = \"/\".concat(iLink.casHttp, \"/cas/sessions/\").concat(sessionId);\n // propgate server name also\n return casSessionLinks(uri, urihttp, iLink.casHttp, iLink.server, casProxyFlag);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (fixResponse);\n\n//# sourceURL=webpack://restaf/./serverCalls/fixResponse.js?");
1527
+ eval("/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\nvar fixImages = __webpack_require__(/*! ./fixImages */ \"./serverCalls/fixImages.js\");\nvar fixReports = __webpack_require__(/*! ./fixReports */ \"./serverCalls/fixReports.js\");\nvar casSessionLinks = __webpack_require__(/*! ./casSessionLinks */ \"./serverCalls/casSessionLinks.js\");\nvar reduceCasResults = __webpack_require__(/*! ./reduceCasResults */ \"./serverCalls/reduceCasResults.js\");\nvar fixMlPipelineAutomation = __webpack_require__(/*! ./fixMlPipelineAutomation */ \"./serverCalls/fixMlPipelineAutomation.js\");\nfunction fixResponse(response) {\n //\n // Ensure all header keys are lowercase\n //\n\n var headers = {};\n for (var k in response.headers) {\n //noinspection JSUnfilteredForInLoop\n var k1 = k.toLowerCase();\n //noinspection JSUnfilteredForInLoop\n headers[k1] = response.headers[k];\n }\n response.headers = headers;\n var cType = response.headers['content-type'];\n if (cType == null || typeof response.data.results === 'string') {\n return response;\n }\n\n // let contentType = cType.split(';') [0];\n var iLink = response.data.iconfig.link;\n fixCas(iLink, response);\n if (iLink.href.indexOf(\"reportImages/jobs\") > 0) {\n fixImages(response);\n }\n if (iLink.href === \"/reports/reports\" && iLink.method === \"GET\") {\n fixReports(response);\n }\n var il = iLink.href.split('?')[0];\n if (il === \"/mlPipelineAutomation/projects\" && iLink.method === \"GET\") {\n fixMlPipelineAutomation(response);\n }\n return response;\n}\n\n// Plan:\n// step 1: propogate server name and cashttp info\n\nfunction fixCas(iLink, response) {\n // special handling for cas\n var casProxyFlag = false;\n if (response.data.hasOwnProperty('iconfig')) {\n if (response.data.iconfig.storeConfig != null) {\n casProxyFlag = response.data.iconfig.storeConfig.casProxy;\n }\n }\n\n // do a refresh - mainly for reattaching to a cas session\n\n if (iLink.rel === 'self' && iLink.type === 'application/vnd.sas.cas.session.summary' || iLink.rel === 'createSession' && iLink.responseType === 'application/vnd.sas.cas.session') {\n response.data.results.links = response.data.results.links.concat(fixCasSession(iLink, response.data.results, casProxyFlag));\n response.data.results.name2 = response.data.results.name.split(':')[0];\n }\n if (iLink.hasOwnProperty('itemType') && iLink.itemType === 'application/vnd.sas.cas.session.summary') {\n var items = response.data.results.items;\n var pre = \"/\".concat(iLink.casHttp, \"/cas/sessions\");\n for (var i = 0; i < items.length; i++) {\n var item = items[i];\n var uri = \"/casProxy/servers/\".concat(iLink.server, \"/cas/sessions/\").concat(item.id);\n var urihttp = \"\".concat(pre, \"/\").concat(item.id);\n item.links = item.links.map(function (l) {\n l.casHttp = iLink.casHttp;\n l.server = iLink.server;\n return l;\n });\n item.links = item.links.concat(casSessionLinks(uri, urihttp, iLink.casHttp, iLink.server, casProxyFlag));\n }\n }\n if (iLink.hasOwnProperty('customHandling')) {\n response.data.results = reduceCasResults(response.data.results);\n response.data.results = {\n items: Object.assign({}, response.data.results)\n };\n response.data.results.customHandling = iLink.customHandling;\n }\n\n //TBD: This could probbably be removed due to enhancements to casManagement\n if ((iLink.href === '/casManagement/' || iLink.href === '/casManagement') && iLink.method === 'GET') {\n response.data.results.links = response.data.results.links.map(function (l) {\n if (l.rel === 'collection') {\n l.title = 'servers';\n l.rel = 'servers';\n l.patch = 'cas';\n }\n return l;\n });\n }\n\n // A seperate loop in case casManagement fixes the issue\n if (iLink.hasOwnProperty('patch') && iLink.rel === 'servers') {\n var _items = response.data.results.items;\n var _loop = function _loop() {\n var item = _items[_i];\n var name = item.name;\n var ll = item.links.map(function (l) {\n l.casHttp = \"\".concat(name, \"-http\"); /* save the http info to propogate to sessions */\n l.server = name;\n return l;\n });\n item.links = ll;\n };\n for (var _i = 0; _i < _items.length; _i++) {\n _loop();\n }\n }\n}\nfunction fixCasSession(iLink, results, casProxyFlag) {\n // proprogate casHttp\n results.links = results.links.map(function (l) {\n l.casHttp = iLink.casHttp;\n l.server = iLink.server;\n return l;\n });\n return sessionLinks(iLink, results.id, casProxyFlag).concat(results.links);\n}\nfunction sessionLinks(iLink, sessionId, casProxyFlag) {\n var uri = \"/casProxy/servers/\".concat(iLink.server, \"/cas/sessions/\").concat(sessionId);\n var urihttp = \"/\".concat(iLink.casHttp, \"/cas/sessions/\").concat(sessionId);\n // propgate server name also\n return casSessionLinks(uri, urihttp, iLink.casHttp, iLink.server, casProxyFlag);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (fixResponse);\n\n//# sourceURL=webpack://restaf/./serverCalls/fixResponse.js?");
1528
1528
 
1529
1529
  /***/ }),
1530
1530
 
@@ -1537,7 +1537,7 @@ eval("/*------------------------------------------------------------------------
1537
1537
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1538
1538
 
1539
1539
  "use strict";
1540
- eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return trustedGrant; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return keepAlive; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return request; });\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../../../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! axios */ \"../../../node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! qs */ \"../../../node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _fixResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fixResponse */ \"./serverCalls/fixResponse.js\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! https */ \"https\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_5__);\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(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; }\n/* eslint-disable no-prototype-builtins */\n/*------------------------------------------------------------------------------------\r\n Copyright (c) SAS Institute Inc.\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\n\n\n// axios.defaults.withCredentials = true\naxios__WEBPACK_IMPORTED_MODULE_2___default.a.interceptors.response.use(function (response) {\n return response;\n}, function (error) {\n return Promise.reject(error);\n});\n\n/* X-Uaa-Csrf */\nfunction trustedGrant(iconfig) {\n var link = iconfig.link;\n var auth1 = Buffer.from(iconfig.clientID + ':' + iconfig.clientSecret).toString('base64');\n auth1 = 'Basic ' + auth1;\n var l = patchURL4ns(iconfig, link.href);\n var url = \"\".concat(l).concat(link.href);\n var config = {\n method: link.method,\n url: url,\n /*iconfig.host + link.href,*/\n\n headers: {\n Accept: link.responseType,\n 'Content-Type': link.type,\n /* Axios seems to be case sensitive */\n\n Authorization: auth1\n },\n withCredentials: false,\n data: {\n 'grant_type': 'password',\n username: iconfig.user,\n password: iconfig.password\n /*\r\n client_id : iconfig.clientID,\r\n client_secret: iconfig.clientSecret\r\n */\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n transformResponse: function transformResponse(data) {\n return data;\n },\n transformRequest: function transformRequest(data) {\n return qs__WEBPACK_IMPORTED_MODULE_3___default.a.stringify(data);\n }\n };\n return makeCall(config, iconfig, iconfig);\n}\nfunction request(iconfig) {\n 'use strict';\n\n var link = iconfig.link,\n logonInfo = iconfig.logonInfo;\n var iLink = _objectSpread({}, link);\n var payload = iconfig.hasOwnProperty('payload') ? iconfig.payload : null;\n var iqs = null;\n var idata = null;\n var iheaders = null;\n var ixsrf = null;\n var casAction = null;\n if (payload !== null) {\n casAction = hasItem(payload, 'action');\n iqs = hasItem(payload, 'qs');\n idata = hasItem(payload, 'data');\n iheaders = hasItem(payload, 'headers');\n ixsrf = hasItem(payload, 'xsrf');\n }\n var l = patchURL4ns(logonInfo, iLink.href);\n var url = \"\".concat(l).concat(iLink.href);\n\n // handle casaction upload\n casAction = casAction != null ? casAction.toLowerCase() : null;\n if (casAction === 'upload') {\n casAction = 'table.upload';\n }\n if (casAction !== null) {\n url = \"\".concat(url, \"/\").concat(casAction);\n }\n if (iLink.hasOwnProperty('customHandling') && casAction !== null) {\n // casAction = casAction.toLowerCase();\n if (casAction === 'table.upload') {\n iLink.method = 'PUT';\n iLink.type = 'application/octet-stream';\n iLink.responseType = 'application/json';\n }\n }\n var config = {\n method: iLink.method,\n url: url,\n transformResponse: function transformResponse(data) {\n return data;\n },\n validateStatus: function validateStatus(status) {\n /* 304 for state calls */\n return status === 302 || status === 304 || status >= 200 && status < 300;\n }\n };\n if (logonInfo.token !== null) {\n config.headers = {\n Authorization: logonInfo.tokenType + ' ' + logonInfo.token\n };\n } else {\n config.headers = {};\n config.withCredentials = iconfig.withCredentials == null ? true : iconfig.withCredentials;\n }\n var type = fullType(iLink.type);\n if (iLink.hasOwnProperty('responseType')) {\n if (type !== null) {\n config.headers['Content-Type'] = type;\n }\n config.headers.Accept = fullType(iLink.responseType);\n } else if (type !== null) {\n config.headers.Accept = type;\n if (iLink.method === 'PUT' || iLink.method === 'POST' || iLink.method === 'PATCH') {\n config.headers['Content-Type'] = type;\n }\n }\n if (iheaders !== null) {\n for (var ih in iheaders) {\n //noinspection JSUnfilteredForInLoop\n if (ih.toLowerCase() === 'json-parameters') {\n //noinspection JSUnfilteredForInLoop\n config.headers[ih] = _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(iheaders[ih]) === 'object' ? JSON.stringify(iheaders[ih]) : iheaders[ih];\n } else {\n //noinspection JSUnfilteredForInLoop\n config.headers[ih] = iheaders[ih];\n }\n }\n }\n if (ixsrf !== null) {\n var xsrfHeaderName = ixsrf['x-csrf-header'];\n config.xsrfHeaderName = xsrfHeaderName;\n // https://github.com/axios/axios/issues/2024\n config.headers[xsrfHeaderName] = ixsrf['x-csrf-token'];\n }\n if (iqs !== null) {\n config.params = _objectSpread({}, iqs);\n }\n config.data = idata === null ? {} : idata;\n config.maxContentLength = 2 * 10063256;\n var httpOptions = iconfig.storeConfig.httpOptions;\n if (httpOptions != null) {\n for (var k in httpOptions) {\n config[k] = httpOptions[k];\n }\n }\n return makeCall(config, iconfig, logonInfo);\n}\nfunction patchURL4ns(logInfo, link) {\n if (logInfo.ns == null) {\n return logInfo.host;\n }\n var service = link.split('/')[1];\n var h = \"\".concat(logInfo.protocol).concat(service, \".storeConfig.ns.svc.cluster.local\");\n return h;\n}\nfunction makeCall(config, iconfig, storeConfig) {\n // for nodejs apps use the nodejs env variables instead of restaf config.\n // NODE_TLS_REJECT_UNAUTHORIZED\n // SSL_CERT_FILE\n // let { sslOptions } = iconfig;\n\n if (storeConfig.protocol === 'https://') {\n var opt = storeConfig.sslOptions != null ? storeConfig.sslOptions : {};\n var agent = new https__WEBPACK_IMPORTED_MODULE_5___default.a.Agent(opt);\n config.httpsAgent = agent;\n }\n return new Promise(function (resolve, reject) {\n axios__WEBPACK_IMPORTED_MODULE_2___default()(config).then(function (response) {\n parseJSON(response.data).then(function (data) {\n iconfig.data = null; /* get rid of the payload*/\n response.data = {\n results: data,\n iconfig: Object.assign({}, iconfig)\n };\n if (data.hasOwnProperty('errorCode')) {\n //noinspection JSUnresolvedVariable\n response.status = response.data.results.httpStatusCode;\n response.statusText = \"errorCode: \".concat(response.data.results.errorCode);\n reject({\n response: response\n });\n } else {\n resolve(Object(_fixResponse__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(response));\n }\n }).catch(function () {\n iconfig.data = null;\n response.data = {\n results: response.data,\n iconfig: Object.assign({}, iconfig)\n };\n resolve(Object(_fixResponse__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(response));\n });\n }).catch(function (error) {\n reject(error);\n });\n });\n}\nfunction parseJSON(data) {\n //noinspection JSUnusedLocalSymbols\n return new Promise(function (resolve, reject) {\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(data) === 'object') {\n resolve(data);\n } else {\n var temp = data.replace(/\\r?\\n|\\r/g, ' ');\n try {\n var odata = JSON.parse(temp);\n resolve(odata);\n } catch (err) {\n resolve(data);\n }\n }\n });\n}\nfunction hasItem(payload, name) {\n for (var _i = 0, _Object$keys = Object.keys(payload); _i < _Object$keys.length; _i++) {\n var k = _Object$keys[_i];\n if (k.toUpperCase() === name.toUpperCase()) {\n return payload[k];\n }\n }\n return null;\n}\nfunction fullType(type) {\n var ntype = type;\n if (ntype === undefined || ntype === null) {\n ntype = null;\n } else {\n if (ntype.indexOf('application/vnd') !== -1) {\n if (ntype.indexOf('+json') === -1) {\n ntype = ntype + '+json';\n }\n }\n }\n return ntype;\n}\n\n// Code below is for experimenting.\n\nfunction keepAlive(action) {\n return axios__WEBPACK_IMPORTED_MODULE_2___default()(action.payload);\n}\n\n\n//# sourceURL=webpack://restaf/./serverCalls/index.js?");
1540
+ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return trustedGrant; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return keepAlive; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return request; });\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../../../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! axios */ \"../../../node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! qs */ \"../../../node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _fixResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fixResponse */ \"./serverCalls/fixResponse.js\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! https */ \"https\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_5__);\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(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; }\n/* eslint-disable no-prototype-builtins */\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\n\n\n// axios.defaults.withCredentials = true\naxios__WEBPACK_IMPORTED_MODULE_2___default.a.interceptors.response.use(function (response) {\n return response;\n}, function (error) {\n return Promise.reject(error);\n});\n\n/* X-Uaa-Csrf */\nfunction trustedGrant(iconfig) {\n var link = iconfig.link;\n var auth1 = Buffer.from(iconfig.clientID + ':' + iconfig.clientSecret).toString('base64');\n auth1 = 'Basic ' + auth1;\n var l = patchURL4ns(iconfig, link.href);\n var url = \"\".concat(l).concat(link.href);\n var config = {\n method: link.method,\n url: url,\n /*iconfig.host + link.href,*/\n\n headers: {\n Accept: link.responseType,\n 'Content-Type': link.type,\n /* Axios seems to be case sensitive */\n\n Authorization: auth1\n },\n withCredentials: false,\n data: {\n 'grant_type': 'password',\n username: iconfig.user,\n password: iconfig.password\n /*\r\n client_id : iconfig.clientID,\r\n client_secret: iconfig.clientSecret\r\n */\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n transformResponse: function transformResponse(data) {\n return data;\n },\n transformRequest: function transformRequest(data) {\n return qs__WEBPACK_IMPORTED_MODULE_3___default.a.stringify(data);\n }\n };\n return makeCall(config, iconfig, iconfig);\n}\nfunction request(iconfig) {\n 'use strict';\n\n var link = iconfig.link,\n logonInfo = iconfig.logonInfo;\n var iLink = _objectSpread({}, link);\n var payload = iconfig.hasOwnProperty('payload') ? iconfig.payload : null;\n var iqs = null;\n var idata = null;\n var iheaders = null;\n var ixsrf = null;\n var casAction = null;\n if (payload !== null) {\n casAction = hasItem(payload, 'action');\n iqs = hasItem(payload, 'qs');\n idata = hasItem(payload, 'data');\n iheaders = hasItem(payload, 'headers');\n ixsrf = hasItem(payload, 'xsrf');\n }\n var l = patchURL4ns(logonInfo, iLink.href);\n var url = \"\".concat(l).concat(iLink.href);\n\n // handle casaction upload\n casAction = casAction != null ? casAction.toLowerCase() : null;\n if (casAction === 'upload') {\n casAction = 'table.upload';\n }\n if (casAction !== null) {\n url = \"\".concat(url, \"/\").concat(casAction);\n }\n if (iLink.hasOwnProperty('customHandling') && casAction !== null) {\n // casAction = casAction.toLowerCase();\n if (casAction === 'table.upload') {\n iLink.method = 'PUT';\n iLink.type = 'application/octet-stream';\n iLink.responseType = 'application/json';\n }\n }\n var config = {\n method: iLink.method,\n url: url,\n transformResponse: function transformResponse(data) {\n return data;\n },\n validateStatus: function validateStatus(status) {\n /* 304 for state calls */\n return status === 302 || status === 304 || status >= 200 && status < 300;\n }\n };\n if (logonInfo.token !== null) {\n config.headers = {\n Authorization: logonInfo.tokenType + ' ' + logonInfo.token\n };\n } else {\n config.headers = {};\n config.withCredentials = iconfig.withCredentials == null ? true : iconfig.withCredentials;\n }\n var type = fullType(iLink.type);\n if (iLink.hasOwnProperty('responseType')) {\n if (type !== null) {\n config.headers['Content-Type'] = type;\n }\n config.headers.Accept = fullType(iLink.responseType);\n } else if (type !== null) {\n config.headers.Accept = type;\n if (iLink.method === 'PUT' || iLink.method === 'POST' || iLink.method === 'PATCH') {\n config.headers['Content-Type'] = type;\n }\n }\n if (iheaders !== null) {\n for (var ih in iheaders) {\n //noinspection JSUnfilteredForInLoop\n if (ih.toLowerCase() === 'json-parameters') {\n //noinspection JSUnfilteredForInLoop\n config.headers[ih] = _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(iheaders[ih]) === 'object' ? JSON.stringify(iheaders[ih]) : iheaders[ih];\n } else {\n //noinspection JSUnfilteredForInLoop\n config.headers[ih] = iheaders[ih];\n }\n }\n }\n if (ixsrf !== null) {\n var xsrfHeaderName = ixsrf['x-csrf-header'];\n config.xsrfHeaderName = xsrfHeaderName;\n // https://github.com/axios/axios/issues/2024\n config.headers[xsrfHeaderName] = ixsrf['x-csrf-token'];\n }\n if (iqs !== null) {\n config.params = _objectSpread({}, iqs);\n }\n config.data = idata === null ? {} : idata;\n config.maxContentLength = 2 * 10063256;\n var httpOptions = iconfig.storeConfig.httpOptions;\n if (httpOptions != null) {\n for (var k in httpOptions) {\n config[k] = httpOptions[k];\n }\n }\n return makeCall(config, iconfig, logonInfo);\n}\nfunction patchURL4ns(logInfo, link) {\n if (logInfo.ns == null) {\n return logInfo.host;\n }\n var service = link.split('/')[1];\n var h = \"\".concat(logInfo.protocol).concat(service, \".storeConfig.ns.svc.cluster.local\");\n return h;\n}\nfunction makeCall(config, iconfig, storeConfig) {\n // for nodejs apps use the nodejs env variables instead of restaf config.\n // NODE_TLS_REJECT_UNAUTHORIZED\n // SSL_CERT_FILE\n // let { sslOptions } = iconfig;\n\n if (storeConfig.protocol === 'https://') {\n var opt = storeConfig.sslOptions != null ? storeConfig.sslOptions : {};\n var agent = new https__WEBPACK_IMPORTED_MODULE_5___default.a.Agent(opt);\n config.httpsAgent = agent;\n }\n return new Promise(function (resolve, reject) {\n axios__WEBPACK_IMPORTED_MODULE_2___default()(config).then(function (response) {\n parseJSON(response.data).then(function (data) {\n iconfig.data = null; /* get rid of the payload*/\n response.data = {\n results: data,\n iconfig: Object.assign({}, iconfig)\n };\n if (data.hasOwnProperty('errorCode')) {\n //noinspection JSUnresolvedVariable\n response.status = response.data.results.httpStatusCode;\n response.statusText = \"errorCode: \".concat(response.data.results.errorCode);\n reject({\n response: response\n });\n } else {\n resolve(Object(_fixResponse__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(response));\n }\n }).catch(function () {\n iconfig.data = null;\n response.data = {\n results: response.data,\n iconfig: Object.assign({}, iconfig)\n };\n resolve(Object(_fixResponse__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(response));\n });\n }).catch(function (error) {\n reject(error);\n });\n });\n}\nfunction parseJSON(data) {\n //noinspection JSUnusedLocalSymbols\n return new Promise(function (resolve, reject) {\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(data) === 'object') {\n resolve(data);\n } else {\n var temp = data.replace(/\\r?\\n|\\r/g, ' ');\n try {\n var odata = JSON.parse(temp);\n resolve(odata);\n } catch (err) {\n resolve(data);\n }\n }\n });\n}\nfunction hasItem(payload, name) {\n for (var _i = 0, _Object$keys = Object.keys(payload); _i < _Object$keys.length; _i++) {\n var k = _Object$keys[_i];\n if (k.toUpperCase() === name.toUpperCase()) {\n return payload[k];\n }\n }\n return null;\n}\nfunction fullType(type) {\n var ntype = type;\n if (ntype === undefined || ntype === null) {\n ntype = null;\n } else {\n if (ntype.indexOf('application/vnd') !== -1) {\n if (ntype.indexOf('+json') === -1) {\n ntype = ntype + '+json';\n }\n }\n }\n return ntype;\n}\n\n// Code below is for experimenting.\n\nfunction keepAlive(action) {\n return axios__WEBPACK_IMPORTED_MODULE_2___default()(action.payload);\n}\n\n\n//# sourceURL=webpack://restaf/./serverCalls/index.js?");
1541
1541
 
1542
1542
  /***/ }),
1543
1543
 
@@ -1550,7 +1550,7 @@ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__,
1550
1550
  /***/ (function(module, exports, __webpack_require__) {
1551
1551
 
1552
1552
  "use strict";
1553
- eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n */\n\n\nmodule.exports = function reduceCasResult(data) {\n var tables = {};\n var tableByName = {};\n if (data.hasOwnProperty(\"results\") === false) {\n return data;\n }\n for (var k in data.results) {\n //noinspection JSUnfilteredForInLoop\n var o = data.results[k];\n if (o.hasOwnProperty(\"_ctb\") === true && o[\"_ctb\"] === true) {\n //noinspection JSUnfilteredForInLoop\n tables[k] = o;\n tableByName[o.name] = o;\n }\n }\n data.tables = tables; /* need to deprecate this */\n data.tablesByName = tableByName;\n return data;\n};\n/*\r\n let tables = {};\r\n if (data.hasOwnProperty(\"results\") === false) {\r\n return data;\r\n }\r\n let results = Object.assign({}, data.results);\r\n for (let k in results) {\r\n //noinspection JSUnfilteredForInLoop\r\n let o = results[k];\r\n if (o.hasOwnProperty(\"_ctb\") === true && o[\"_ctb\"] === true) {\r\n //noinspection JSUnfilteredForInLoop\r\n tables[k] = Object.assign({}, o);\r\n //noinspection JSUnfilteredForInLoop\r\n // delete data.results[ k ];\r\n }\r\n }\r\n data.tables = tables;\r\n return data;\r\n */\n\n//# sourceURL=webpack://restaf/./serverCalls/reduceCasResults.js?");
1553
+ eval("/*\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n */\n\n\nmodule.exports = function reduceCasResult(data) {\n var tables = {};\n var tableByName = {};\n if (data.hasOwnProperty(\"results\") === false) {\n return data;\n }\n for (var k in data.results) {\n //noinspection JSUnfilteredForInLoop\n var o = data.results[k];\n if (o.hasOwnProperty(\"_ctb\") === true && o[\"_ctb\"] === true) {\n //noinspection JSUnfilteredForInLoop\n tables[k] = o;\n tableByName[o.name] = o;\n }\n }\n data.tables = tables; /* need to deprecate this */\n data.tablesByName = tableByName;\n return data;\n};\n\n//# sourceURL=webpack://restaf/./serverCalls/reduceCasResults.js?");
1554
1554
 
1555
1555
  /***/ }),
1556
1556
 
@@ -1563,7 +1563,7 @@ eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights
1563
1563
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1564
1564
 
1565
1565
  "use strict";
1566
- eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _iaddServices__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./iaddServices */ \"./store/iaddServices.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _appData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./appData */ \"./store/appData.js\");\n/* harmony import */ var _getServiceRoot__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getServiceRoot */ \"./store/getServiceRoot.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n/**\r\n * @description Add(initialize) services to the store\r\n * @async\r\n * @module addServices\r\n * @category restaf/core\r\n * @param {...any} serviceNames - list of services\r\n * @returns {promise}\r\n * @example\r\n * const {compute, casManagement} = await store.addServices('compute', 'casManagewment);\r\n * \r\n */\nfunction addServices(_x) {\n return _addServices.apply(this, arguments);\n}\nfunction _addServices() {\n _addServices = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store) {\n var _len,\n services,\n _key,\n subList,\n ifolder,\n _yield$iaddServices,\n folders,\n xsrfTokens,\n service,\n s,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n for (_len = _args.length, services = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n services[_key - 1] = _args[_key];\n }\n if (services.includes('casManagement')) {\n services.push('casProxy');\n // services.push('cas-shared-default-http/healthCheck');\n }\n\n // loop for initialized services\n subList = [];\n ifolder = {};\n services.map(function (s) {\n ifolder[s] = Object(_getServiceRoot__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store, s);\n if (ifolder[s] === null) {\n subList.push(s);\n }\n });\n\n // initialize new services\n if (!(subList.length > 0)) {\n _context.next = 13;\n break;\n }\n _context.next = 8;\n return Object(_iaddServices__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, subList);\n case 8:\n _yield$iaddServices = _context.sent;\n folders = _yield$iaddServices.folders;\n xsrfTokens = _yield$iaddServices.xsrfTokens;\n for (service in xsrfTokens) {\n Object(_appData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_XSRF */ \"h\"], service, xsrfTokens[service]);\n }\n // merge new ones into preloaded list\n for (s in folders) {\n ifolder[s] = folders[s];\n }\n case 13:\n return _context.abrupt(\"return\", ifolder);\n case 14:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _addServices.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (addServices);\n\n//# sourceURL=webpack://restaf/./store/addServices.js?");
1566
+ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _iaddServices__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./iaddServices */ \"./store/iaddServices.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _appData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./appData */ \"./store/appData.js\");\n/* harmony import */ var _getServiceRoot__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getServiceRoot */ \"./store/getServiceRoot.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n/**\r\n * @description Add(initialize) services to the store\r\n * @async\r\n * @module addServices\r\n * @category restaf/core\r\n * @param {...any} serviceNames - list of services\r\n * @returns {promise}\r\n * @example\r\n * const {compute, casManagement} = await store.addServices('compute', 'casManagewment);\r\n * \r\n */\nfunction addServices(_x) {\n return _addServices.apply(this, arguments);\n}\nfunction _addServices() {\n _addServices = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store) {\n var _len,\n services,\n _key,\n subList,\n ifolder,\n _yield$iaddServices,\n folders,\n xsrfTokens,\n service,\n s,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n for (_len = _args.length, services = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n services[_key - 1] = _args[_key];\n }\n if (services.includes('casManagement')) {\n services.push('casProxy');\n // services.push('cas-shared-default-http/healthCheck');\n }\n\n // loop for initialized services\n subList = [];\n ifolder = {};\n services.map(function (s) {\n ifolder[s] = Object(_getServiceRoot__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store, s);\n if (ifolder[s] === null) {\n subList.push(s);\n }\n });\n\n // initialize new services\n if (!(subList.length > 0)) {\n _context.next = 13;\n break;\n }\n _context.next = 8;\n return Object(_iaddServices__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, subList);\n case 8:\n _yield$iaddServices = _context.sent;\n folders = _yield$iaddServices.folders;\n xsrfTokens = _yield$iaddServices.xsrfTokens;\n for (service in xsrfTokens) {\n Object(_appData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_XSRF */ \"h\"], service, xsrfTokens[service]);\n }\n // merge new ones into preloaded list\n for (s in folders) {\n ifolder[s] = folders[s];\n }\n case 13:\n return _context.abrupt(\"return\", ifolder);\n case 14:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _addServices.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (addServices);\n\n//# sourceURL=webpack://restaf/./store/addServices.js?");
1567
1567
 
1568
1568
  /***/ }),
1569
1569
 
@@ -1576,7 +1576,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
1576
1576
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1577
1577
 
1578
1578
  "use strict";
1579
- eval("/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iapiCall */ \"./store/iapiCall.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n/**\r\n * @description make an api call to viya\r\n * @module apiCall\r\n * @category restaf/core\r\n * @param {rafLinkeRel} iroute \r\n * @param {*} payload \r\n * @param {...any} rest \r\n * @returns {promise} returns a rafObject\r\n */\nvar apiCall = function apiCall(store, iroute, payload) {\n for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n rest[_key - 3] = arguments[_key];\n }\n return _iapiCall__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"].apply(void 0, [store, iroute, _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* API_CALL */ \"b\"], payload].concat(rest));\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCall);\n\n//# sourceURL=webpack://restaf/./store/apiCall.js?");
1579
+ eval("/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iapiCall */ \"./store/iapiCall.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n/**\r\n * @description make an api call to viya\r\n * @module apiCall\r\n * @category restaf/core\r\n * @param {rafLinkeRel} iroute \r\n * @param {*} payload \r\n * @param {...any} rest \r\n * @returns {promise} returns a rafObject\r\n */\nvar apiCall = function apiCall(store, iroute, payload) {\n for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n rest[_key - 3] = arguments[_key];\n }\n return _iapiCall__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"].apply(void 0, [store, iroute, _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* API_CALL */ \"b\"], payload].concat(rest));\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCall);\n\n//# sourceURL=webpack://restaf/./store/apiCall.js?");
1580
1580
 
1581
1581
  /***/ }),
1582
1582
 
@@ -1589,7 +1589,7 @@ eval("/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_0__ = __webpac
1589
1589
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1590
1590
 
1591
1591
  "use strict";
1592
- eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getResults */ \"./store/getResults.js\");\n/* harmony import */ var _prepareAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./prepareAction */ \"./store/prepareAction.js\");\n/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extendFolder */ \"./store/extendFolder.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\nvar apiCallAll = function apiCallAll(store, allActions, delay) {\n return new Promise(function (resolve, reject) {\n //\n // create actionArray\n //\n\n var actionArray = allActions.map(function (acti) {\n //noinspection JSUnresolvedVariable\n var iroute = acti.rafLink;\n var payload = acti.hasOwnProperty('payload') === true ? acti.payload : null;\n var action = Object(_prepareAction__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, iroute, _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_CALL */ \"b\"], payload, delay, null, null, null);\n if (action === null) {\n reject({\n err: 'Invalid route and/or rafLink',\n args: JSON.stringify(acti, null, 4)\n });\n }\n return action;\n });\n\n //\n // set start state\n //\n\n var start = true;\n\n //\n // subscribe callback\n //\n var nextE = function nextE() {\n if (start) {\n start = false;\n return;\n }\n var folders = [];\n //\n // check for completion\n //\n for (var i = 0; i < actionArray.length; i++) {\n //noinspection JSUnresolvedVariable\n var f = Object(_getResults__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(store, actionArray[i].route);\n if (f !== null) {\n var runStatus = f.get('runStatus');\n if (runStatus === 'error') {\n unSubscribe();\n var err = {\n jobNo: i,\n detail: f.get('statusInfo')\n };\n reject(err);\n } else if (runStatus === 'ready') {\n folders.push(Object(_extendFolder__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, f));\n }\n }\n }\n\n //\n // If all done the resolve promise\n //\n if (folders.length === actionArray.length) {\n resolve(folders);\n }\n };\n\n //\n // subscribe to store\n //\n var unSubscribe = store.subscribe(nextE);\n\n //\n // dispatch array actions\n // interval is place holder - TBD\n //\n\n store.dispatch({\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_CALL_PARALLEL */ \"c\"],\n actionArray: actionArray\n });\n });\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCallAll);\n\n//# sourceURL=webpack://restaf/./store/apiCallAll.js?");
1592
+ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getResults */ \"./store/getResults.js\");\n/* harmony import */ var _prepareAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./prepareAction */ \"./store/prepareAction.js\");\n/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extendFolder */ \"./store/extendFolder.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\nvar apiCallAll = function apiCallAll(store, allActions, delay) {\n return new Promise(function (resolve, reject) {\n //\n // create actionArray\n //\n\n var actionArray = allActions.map(function (acti) {\n //noinspection JSUnresolvedVariable\n var iroute = acti.rafLink;\n var payload = acti.hasOwnProperty('payload') === true ? acti.payload : null;\n var action = Object(_prepareAction__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, iroute, _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_CALL */ \"b\"], payload, delay, null, null, null);\n if (action === null) {\n reject({\n err: 'Invalid route and/or rafLink',\n args: JSON.stringify(acti, null, 4)\n });\n }\n return action;\n });\n\n //\n // set start state\n //\n\n var start = true;\n\n //\n // subscribe callback\n //\n var nextE = function nextE() {\n if (start) {\n start = false;\n return;\n }\n var folders = [];\n //\n // check for completion\n //\n for (var i = 0; i < actionArray.length; i++) {\n //noinspection JSUnresolvedVariable\n var f = Object(_getResults__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(store, actionArray[i].route);\n if (f !== null) {\n var runStatus = f.get('runStatus');\n if (runStatus === 'error') {\n unSubscribe();\n var err = {\n jobNo: i,\n detail: f.get('statusInfo')\n };\n reject(err);\n } else if (runStatus === 'ready') {\n folders.push(Object(_extendFolder__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, f));\n }\n }\n }\n\n //\n // If all done the resolve promise\n //\n if (folders.length === actionArray.length) {\n resolve(folders);\n }\n };\n\n //\n // subscribe to store\n //\n var unSubscribe = store.subscribe(nextE);\n\n //\n // dispatch array actions\n // interval is place holder - TBD\n //\n\n store.dispatch({\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_CALL_PARALLEL */ \"c\"],\n actionArray: actionArray\n });\n });\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCallAll);\n\n//# sourceURL=webpack://restaf/./store/apiCallAll.js?");
1593
1593
 
1594
1594
  /***/ }),
1595
1595
 
@@ -1602,7 +1602,7 @@ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __web
1602
1602
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1603
1603
 
1604
1604
  "use strict";
1605
- eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./iapiCall */ \"./store/iapiCall.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n//store, iroute, actionType, payload, delay, eventHandler, parentRoute, jobContext\nfunction apiSubmit(_x, _x2, _x3, _x4, _x5, _x6, _x7) {\n return _apiSubmit.apply(this, arguments);\n}\nfunction _apiSubmit() {\n _apiSubmit = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, iroute, payload, delay, jobContext, onCompletion, progress) {\n var job, status;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n if (progress) {\n progress('pending', jobContext);\n }\n _context.next = 3;\n return Object(_iapiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, iroute, _actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_CALL */ \"b\"], payload, 0, null, null, jobContext);\n case 3:\n job = _context.sent;\n if (!job.links('state')) {\n _context.next = 12;\n break;\n }\n _context.next = 7;\n return Object(_jobState__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, job, null, 'wait', delay, progress, jobContext);\n case 7:\n status = _context.sent;\n completion(store, onCompletion, status.data, status.job, jobContext);\n return _context.abrupt(\"return\", status.job);\n case 12:\n completion(store, onCompletion, 'unknown', job, jobContext);\n return _context.abrupt(\"return\", job);\n case 14:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _apiSubmit.apply(this, arguments);\n}\nfunction completion(store, onCompletion, data, job, jobContext) {\n var results = {\n data: data,\n job: job,\n httpCode: job.status\n };\n saveData(store, results, jobContext);\n if (onCompletion) {\n onCompletion(null, results, jobContext);\n }\n}\nfunction saveData(store, results, jobContext) {\n var payload = {\n route: results.job.route,\n data: results.data,\n jobContext: jobContext\n };\n var action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_STATUS */ \"e\"],\n route: jobContext,\n payload: payload\n };\n store.dispatch(action);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiSubmit);\n\n//# sourceURL=webpack://restaf/./store/apiSubmit.js?");
1605
+ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./iapiCall */ \"./store/iapiCall.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n//store, iroute, actionType, payload, delay, eventHandler, parentRoute, jobContext\nfunction apiSubmit(_x, _x2, _x3, _x4, _x5, _x6, _x7) {\n return _apiSubmit.apply(this, arguments);\n}\nfunction _apiSubmit() {\n _apiSubmit = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, iroute, payload, delay, jobContext, onCompletion, progress) {\n var job, status;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n if (progress) {\n progress('pending', jobContext);\n }\n _context.next = 3;\n return Object(_iapiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, iroute, _actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_CALL */ \"b\"], payload, 0, null, null, jobContext);\n case 3:\n job = _context.sent;\n if (!job.links('state')) {\n _context.next = 12;\n break;\n }\n _context.next = 7;\n return Object(_jobState__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, job, null, 'wait', delay, progress, jobContext);\n case 7:\n status = _context.sent;\n completion(store, onCompletion, status.data, status.job, jobContext);\n return _context.abrupt(\"return\", status.job);\n case 12:\n completion(store, onCompletion, 'unknown', job, jobContext);\n return _context.abrupt(\"return\", job);\n case 14:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _apiSubmit.apply(this, arguments);\n}\nfunction completion(store, onCompletion, data, job, jobContext) {\n var results = {\n data: data,\n job: job,\n httpCode: job.status\n };\n saveData(store, results, jobContext);\n if (onCompletion) {\n onCompletion(null, results, jobContext);\n }\n}\nfunction saveData(store, results, jobContext) {\n var payload = {\n route: results.job.route,\n data: results.data,\n jobContext: jobContext\n };\n var action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_STATUS */ \"e\"],\n route: jobContext,\n payload: payload\n };\n store.dispatch(action);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiSubmit);\n\n//# sourceURL=webpack://restaf/./store/apiSubmit.js?");
1606
1606
 
1607
1607
  /***/ }),
1608
1608
 
@@ -1615,7 +1615,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
1615
1615
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1616
1616
 
1617
1617
  "use strict";
1618
- eval("/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n// import {APP_DATA} from '../actionTypes';\nfunction appData(store, type, route, payload) {\n var action = {\n type: type,\n route: route,\n payload: payload\n };\n store.dispatch(action);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (appData);\n\n//# sourceURL=webpack://restaf/./store/appData.js?");
1618
+ eval("/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n// import {APP_DATA} from '../actionTypes';\nfunction appData(store, type, route, payload) {\n var action = {\n type: type,\n route: route,\n payload: payload\n };\n store.dispatch(action);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (appData);\n\n//# sourceURL=webpack://restaf/./store/appData.js?");
1619
1619
 
1620
1620
  /***/ }),
1621
1621
 
@@ -1628,7 +1628,7 @@ eval("/*\r\n * -----------------------------------------------------------------
1628
1628
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1629
1629
 
1630
1630
  "use strict";
1631
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux */ \"../../../node_modules/redux/es/redux.js\");\n/* harmony import */ var redux_saga__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga */ \"../../../node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js\");\n/* harmony import */ var _sagas_rootSaga__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../sagas/rootSaga */ \"./sagas/rootSaga.js\");\n/* harmony import */ var _reducers_injectAsyncReducers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../reducers/injectAsyncReducers */ \"./reducers/injectAsyncReducers.js\");\n/* harmony import */ var _reducers_createReducer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../reducers/createReducer */ \"./reducers/createReducer.js\");\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction configureSagaStore(config) {\n var sagaMiddleWare = Object(redux_saga__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"b\"])();\n\n // get default reducers\n var reducers = Object(_reducers_createReducer__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])();\n var store = Object(redux__WEBPACK_IMPORTED_MODULE_1__[/* createStore */ \"d\"])(reducers, Object(redux__WEBPACK_IMPORTED_MODULE_1__[/* applyMiddleware */ \"a\"])(sagaMiddleWare));\n store.asyncReducers = {};\n store.injectAsyncReducers = _reducers_injectAsyncReducers__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"];\n store.apiCallNo = 0;\n store.config = _objectSpread({}, config);\n\n // start the sagas\n\n sagaMiddleWare.run(_sagas_rootSaga__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]);\n return store;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (configureSagaStore);\n\n//# sourceURL=webpack://restaf/./store/configureSagaStore.js?");
1631
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux */ \"../../../node_modules/redux/es/redux.js\");\n/* harmony import */ var redux_saga__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga */ \"../../../node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js\");\n/* harmony import */ var _sagas_rootSaga__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../sagas/rootSaga */ \"./sagas/rootSaga.js\");\n/* harmony import */ var _reducers_injectAsyncReducers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../reducers/injectAsyncReducers */ \"./reducers/injectAsyncReducers.js\");\n/* harmony import */ var _reducers_createReducer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../reducers/createReducer */ \"./reducers/createReducer.js\");\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction configureSagaStore(config) {\n var sagaMiddleWare = Object(redux_saga__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"b\"])();\n\n // get default reducers\n var reducers = Object(_reducers_createReducer__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])();\n var store = Object(redux__WEBPACK_IMPORTED_MODULE_1__[/* createStore */ \"d\"])(reducers, Object(redux__WEBPACK_IMPORTED_MODULE_1__[/* applyMiddleware */ \"a\"])(sagaMiddleWare));\n store.asyncReducers = {};\n store.injectAsyncReducers = _reducers_injectAsyncReducers__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"];\n store.apiCallNo = 0;\n store.config = _objectSpread({}, config);\n\n // start the sagas\n\n sagaMiddleWare.run(_sagas_rootSaga__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]);\n return store;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (configureSagaStore);\n\n//# sourceURL=webpack://restaf/./store/configureSagaStore.js?");
1632
1632
 
1633
1633
  /***/ }),
1634
1634
 
@@ -1641,7 +1641,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1641
1641
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1642
1642
 
1643
1643
  "use strict";
1644
- eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var immutable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * * Copyright (c) SAS Institute Inc.\r\n * * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * * you may not use this file except in compliance with the License.\r\n * * You may obtain a copy of the License at\r\n * *\r\n * * http://www.apache.org/licenses/LICENSE-2.0\r\n * *\r\n * * Unless required by applicable law or agreed to in writing, software\r\n * * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ----------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction deleteRafObject(store, iroute) {\n var route = null;\n if (typeof iroute === 'string') {\n route = iroute;\n } else if (immutable__WEBPACK_IMPORTED_MODULE_1__[\"default\"].Iterable.isIterable(iroute) === true) {\n route = iroute.get('route');\n }\n if (iroute !== null) {\n var action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* DELETE_RAF_OBJECT */ \"p\"],\n route: route\n };\n store.dispatch(action);\n }\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (deleteRafObject);\n\n//# sourceURL=webpack://restaf/./store/deleteRafObject.js?");
1644
+ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var immutable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved * * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * * you may not use this file except in compliance with the License.\r\n * * You may obtain a copy of the License at\r\n * *\r\n * * http://www.apache.org/licenses/LICENSE-2.0\r\n * *\r\n * * Unless required by applicable law or agreed to in writing, software\r\n * * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ----------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction deleteRafObject(store, iroute) {\n var route = null;\n if (typeof iroute === 'string') {\n route = iroute;\n } else if (immutable__WEBPACK_IMPORTED_MODULE_1__[\"default\"].Iterable.isIterable(iroute) === true) {\n route = iroute.get('route');\n }\n if (iroute !== null) {\n var action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* DELETE_RAF_OBJECT */ \"p\"],\n route: route\n };\n store.dispatch(action);\n }\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (deleteRafObject);\n\n//# sourceURL=webpack://restaf/./store/deleteRafObject.js?");
1645
1645
 
1646
1646
  /***/ }),
1647
1647
 
@@ -1654,7 +1654,7 @@ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __web
1654
1654
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1655
1655
 
1656
1656
  "use strict";
1657
- eval("/* harmony import */ var redux_saga__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux-saga */ \"../../../node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nvar endStore = function endStore(store) {\n store.dispatch(redux_saga__WEBPACK_IMPORTED_MODULE_0__[/* END */ \"a\"]);\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (endStore);\n\n//# sourceURL=webpack://restaf/./store/endStore.js?");
1657
+ eval("/* harmony import */ var redux_saga__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux-saga */ \"../../../node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nvar endStore = function endStore(store) {\n store.dispatch(redux_saga__WEBPACK_IMPORTED_MODULE_0__[/* END */ \"a\"]);\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (endStore);\n\n//# sourceURL=webpack://restaf/./store/endStore.js?");
1658
1658
 
1659
1659
  /***/ }),
1660
1660
 
@@ -1667,7 +1667,7 @@ eval("/* harmony import */ var redux_saga__WEBPACK_IMPORTED_MODULE_0__ = __webpa
1667
1667
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1668
1668
 
1669
1669
  "use strict";
1670
- eval("/* harmony import */ var _getResults2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getResults2 */ \"./store/getResults2.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction extendFolder(store, f) {\n var wrapper = function wrapper(prePath) {\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return Object(_getResults2__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, f, prePath, args);\n };\n };\n var wrapperItemsCmd = function wrapperItemsCmd(prePath) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n args.splice(1, 0, 'cmds');\n return Object(_getResults2__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, f, prePath, args);\n };\n };\n return {\n results: wrapper(),\n items: wrapper(['items', 'data']),\n itemsCmd: wrapperItemsCmd(['items', 'data']),\n itemsList: wrapper(['itemsList']),\n links: wrapper(['links']),\n details: wrapper(['details']),\n scrollCmds: wrapper(['scrollCmds']),\n raw: wrapper(['raw']),\n headers: wrapper(['responseHeaders']),\n config: wrapper(['iconfig']),\n host: f.get('host'),\n resultType: f.get('resultType'),\n status: f.get('statusInfo').get('status'),\n statusInfo: f.get('statusInfo').toJS(),\n type: f.get('type'),\n route: f.get('route')\n };\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (extendFolder);\n\n//# sourceURL=webpack://restaf/./store/extendFolder.js?");
1670
+ eval("/* harmony import */ var _getResults2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getResults2 */ \"./store/getResults2.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction extendFolder(store, f) {\n var wrapper = function wrapper(prePath) {\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return Object(_getResults2__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, f, prePath, args);\n };\n };\n var wrapperItemsCmd = function wrapperItemsCmd(prePath) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n args.splice(1, 0, 'cmds');\n return Object(_getResults2__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, f, prePath, args);\n };\n };\n return {\n results: wrapper(),\n items: wrapper(['items', 'data']),\n itemsCmd: wrapperItemsCmd(['items', 'data']),\n itemsList: wrapper(['itemsList']),\n links: wrapper(['links']),\n details: wrapper(['details']),\n scrollCmds: wrapper(['scrollCmds']),\n raw: wrapper(['raw']),\n headers: wrapper(['responseHeaders']),\n config: wrapper(['iconfig']),\n host: f.get('host'),\n resultType: f.get('resultType'),\n status: f.get('statusInfo').get('status'),\n statusInfo: f.get('statusInfo').toJS(),\n type: f.get('type'),\n route: f.get('route')\n };\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (extendFolder);\n\n//# sourceURL=webpack://restaf/./store/extendFolder.js?");
1671
1671
 
1672
1672
  /***/ }),
1673
1673
 
@@ -1680,7 +1680,7 @@ eval("/* harmony import */ var _getResults2__WEBPACK_IMPORTED_MODULE_0__ = __web
1680
1680
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1681
1681
 
1682
1682
  "use strict";
1683
- eval("/* harmony import */ var _iGetResults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iGetResults */ \"./store/iGetResults.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\nfunction getResults(store, iroute, path) {\n if (path != undefined) {\n return Object(_iGetResults__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, iroute, false, path);\n } else {\n return Object(_iGetResults__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, iroute);\n }\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (getResults);\n\n//# sourceURL=webpack://restaf/./store/getResults.js?");
1683
+ eval("/* harmony import */ var _iGetResults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iGetResults */ \"./store/iGetResults.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\nfunction getResults(store, iroute, path) {\n if (path != undefined) {\n return Object(_iGetResults__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, iroute, false, path);\n } else {\n return Object(_iGetResults__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, iroute);\n }\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (getResults);\n\n//# sourceURL=webpack://restaf/./store/getResults.js?");
1684
1684
 
1685
1685
  /***/ }),
1686
1686
 
@@ -1693,7 +1693,7 @@ eval("/* harmony import */ var _iGetResults__WEBPACK_IMPORTED_MODULE_0__ = __web
1693
1693
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1694
1694
 
1695
1695
  "use strict";
1696
- eval("/* harmony import */ var _iGetResults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iGetResults */ \"./store/iGetResults.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction getResults2(store, iroute, prePath) {\n var iquery = null;\n for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n args[_key - 3] = arguments[_key];\n }\n if (args != null && args.length > 0) {\n iquery = Array.isArray(args[0]) === true ? args[0] : args;\n if (prePath !== null) {\n iquery = prePath.concat(iquery);\n }\n } else {\n iquery = prePath;\n }\n return Object(_iGetResults__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, iroute, false, iquery);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (getResults2);\n\n//# sourceURL=webpack://restaf/./store/getResults2.js?");
1696
+ eval("/* harmony import */ var _iGetResults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iGetResults */ \"./store/iGetResults.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction getResults2(store, iroute, prePath) {\n var iquery = null;\n for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n args[_key - 3] = arguments[_key];\n }\n if (args != null && args.length > 0) {\n iquery = Array.isArray(args[0]) === true ? args[0] : args;\n if (prePath !== null) {\n iquery = prePath.concat(iquery);\n }\n } else {\n iquery = prePath;\n }\n return Object(_iGetResults__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, iroute, false, iquery);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (getResults2);\n\n//# sourceURL=webpack://restaf/./store/getResults2.js?");
1697
1697
 
1698
1698
  /***/ }),
1699
1699
 
@@ -1706,7 +1706,7 @@ eval("/* harmony import */ var _iGetResults__WEBPACK_IMPORTED_MODULE_0__ = __web
1706
1706
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1707
1707
 
1708
1708
  "use strict";
1709
- eval("/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./extendFolder */ \"./store/extendFolder.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction getServiceRoot(store, serviceName) {\n var f = null;\n var list = store.getState();\n for (var key in list) {\n if (key === serviceName) {\n //noinspection JSUnfilteredForInLoop\n return Object(_extendFolder__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, list[key]);\n }\n }\n return f;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (getServiceRoot);\n\n//# sourceURL=webpack://restaf/./store/getServiceRoot.js?");
1709
+ eval("/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./extendFolder */ \"./store/extendFolder.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction getServiceRoot(store, serviceName) {\n var f = null;\n var list = store.getState();\n for (var key in list) {\n if (key === serviceName) {\n //noinspection JSUnfilteredForInLoop\n return Object(_extendFolder__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, list[key]);\n }\n }\n return f;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (getServiceRoot);\n\n//# sourceURL=webpack://restaf/./store/getServiceRoot.js?");
1710
1710
 
1711
1711
  /***/ }),
1712
1712
 
@@ -1719,7 +1719,7 @@ eval("/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_0__ = __we
1719
1719
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1720
1720
 
1721
1721
  "use strict";
1722
- eval("/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nfunction getServices(store) {\n var list = store.getState();\n var services = [];\n for (var key in list) {\n if (key !== 'connections') {\n //noinspection JSUnfilteredForInLoop\n services.push(key);\n }\n }\n return services;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (getServices);\n\n//# sourceURL=webpack://restaf/./store/getServices.js?");
1722
+ eval("/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nfunction getServices(store) {\n var list = store.getState();\n var services = [];\n for (var key in list) {\n if (key !== 'connections') {\n //noinspection JSUnfilteredForInLoop\n services.push(key);\n }\n }\n return services;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (getServices);\n\n//# sourceURL=webpack://restaf/./store/getServices.js?");
1723
1723
 
1724
1724
  /***/ }),
1725
1725
 
@@ -1732,7 +1732,7 @@ eval("/*\r\n * -----------------------------------------------------------------
1732
1732
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1733
1733
 
1734
1734
  "use strict";
1735
- eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nfunction getXsrfData(store) {\n var list = store.getState();\n list = list[_actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_XSRF_ROOT */ \"i\"]];\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n var path = args.length > 0 ? ['userData'].concat(args) : ['userData'];\n var xsrf = list.getIn(path, null);\n return xsrf !== null ? xsrf.toJS() : null;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (getXsrfData);\n\n//# sourceURL=webpack://restaf/./store/getXsrfData.js?");
1735
+ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nfunction getXsrfData(store) {\n var list = store.getState();\n list = list[_actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_XSRF_ROOT */ \"i\"]];\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n var path = args.length > 0 ? ['userData'].concat(args) : ['userData'];\n var xsrf = list.getIn(path, null);\n return xsrf !== null ? xsrf.toJS() : null;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (getXsrfData);\n\n//# sourceURL=webpack://restaf/./store/getXsrfData.js?");
1736
1736
 
1737
1737
  /***/ }),
1738
1738
 
@@ -1745,7 +1745,7 @@ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __web
1745
1745
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1746
1746
 
1747
1747
  "use strict";
1748
- eval("/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nvar Immutable = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\nfunction iGetResults(store, iroute, keyOnly) {\n var result;\n var route;\n var iquery = [];\n var q;\n var serviceName;\n var folder;\n var path = [];\n for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n args[_key - 3] = arguments[_key];\n }\n if (args != null) {\n iquery = Array.isArray(args[0]) === true ? args[0] : args;\n }\n if (typeof iroute === 'string') {\n route = iroute;\n q = route.split(':/');\n serviceName = q.shift();\n folder = store.getState()[serviceName];\n path = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(q), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(iquery));\n } else {\n path = iquery;\n if (Immutable.Iterable.isIterable(iroute)) {\n folder = iroute;\n } else {\n return null;\n }\n }\n\n // should never happen but...\n if (folder == null) {\n return null;\n }\n result = path.length > 0 ? folder.getIn(path, null) : folder;\n if (result !== null) {\n if (keyOnly === true && Immutable.Iterable.isIterable(result) === true) {\n result = result.keySeq();\n }\n }\n return result;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (iGetResults);\n\n//# sourceURL=webpack://restaf/./store/iGetResults.js?");
1748
+ eval("/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nvar Immutable = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\nfunction iGetResults(store, iroute, keyOnly) {\n var result;\n var route;\n var iquery = [];\n var q;\n var serviceName;\n var folder;\n var path = [];\n for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n args[_key - 3] = arguments[_key];\n }\n if (args != null) {\n iquery = Array.isArray(args[0]) === true ? args[0] : args;\n }\n if (typeof iroute === 'string') {\n route = iroute;\n q = route.split(':/');\n serviceName = q.shift();\n folder = store.getState()[serviceName];\n path = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(q), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(iquery));\n } else {\n path = iquery;\n if (Immutable.Iterable.isIterable(iroute)) {\n folder = iroute;\n } else {\n return null;\n }\n }\n\n // should never happen but...\n if (folder == null) {\n return null;\n }\n result = path.length > 0 ? folder.getIn(path, null) : folder;\n if (result !== null) {\n if (keyOnly === true && Immutable.Iterable.isIterable(result) === true) {\n result = result.keySeq();\n }\n }\n return result;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (iGetResults);\n\n//# sourceURL=webpack://restaf/./store/iGetResults.js?");
1749
1749
 
1750
1750
  /***/ }),
1751
1751
 
@@ -1758,7 +1758,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK
1758
1758
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1759
1759
 
1760
1760
  "use strict";
1761
- eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getResults */ \"./store/getResults.js\");\n/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./extendFolder */ \"./store/extendFolder.js\");\n/* harmony import */ var _reducers_injectAsyncReducers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../reducers/injectAsyncReducers */ \"./reducers/injectAsyncReducers.js\");\n/* harmony import */ var _reducers_baseReducer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../reducers/baseReducer */ \"./reducers/baseReducer.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\nvar iaddServices = function iaddServices(store, services) {\n return new Promise(function (resolve, reject) {\n //\n // Add a reducer for each service\n //\n\n services.forEach(function (service) {\n Object(_reducers_injectAsyncReducers__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, service, Object(_reducers_baseReducer__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(service));\n });\n\n //\n // Create actionArray for the services\n //\n var actionArray = services.map(function (service) {\n var s = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* ADD_SERVICE */ \"a\"],\n link: {\n method: 'GET',\n href: '/' + service + '/',\n rel: 'root',\n type: 'application/vnd.sas.api+json',\n responseType: 'application/json, application/vnd.sas.api+json',\n uri: '/' + service + '/'\n },\n logonInfo: null,\n tLink: null,\n /* null indicates root of service */\n serviceName: service,\n route: service,\n storeConfig: store.config\n };\n //to support PuP compute server\n if (service == 'compute' && store.config.options.computeServerId != null) {\n s.link.href = '/compute/servers/' + store.config.options.computeServerId + '/';\n s.link.url = s.link.href;\n }\n ;\n return s;\n });\n\n //\n // The first callback needs to be ignored\n //\n var start = true;\n\n //\n // subscribe function\n //\n var nextE = function nextE() {\n if (start) {\n start = false;\n return;\n }\n var folders = {};\n var xsrfTokens = {};\n /* */\n //\n // check the status of the call.\n // if all of them completed then resolve this promise or reject if error as soon as\n // an error is detected.\n //\n\n var count = 0;\n for (var i = 0; i < actionArray.length; i++) {\n //noinspection JSUnresolvedVariable\n var f = Object(_getResults__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(store, actionArray[i].route);\n if (f !== null) {\n var runStatus = f.get('runStatus');\n if (runStatus === 'error') {\n unSubscribe();\n var err = {\n service: services[i],\n detail: f.get('statusInfo')\n };\n reject(err);\n } else if (runStatus === 'ready') {\n count++;\n var ff = Object(_extendFolder__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, f);\n folders[services[i]] = ff;\n var xheader = ff.headers('x-csrf-header');\n if (xheader !== null) {\n var xtoken = ff.headers('x-csrf-token');\n var xx = {\n 'x-csrf-header': xheader,\n 'x-csrf-token': xtoken\n };\n xsrfTokens[services[i]] = xx;\n } else {\n xsrfTokens[services[i]] = null;\n }\n }\n }\n }\n if (count === actionArray.length) {\n unSubscribe();\n resolve({\n folders: folders,\n xsrfTokens: xsrfTokens\n });\n }\n };\n\n //\n // subscribe to store\n //\n var unSubscribe = store.subscribe(nextE);\n\n //\n // dispatch the actionArray\n //\n\n //\n // interval is a place holder for creating interval between calls\n // Yet to be implemented\n //\n\n store.dispatch({\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_CALL_PARALLEL */ \"c\"],\n interval: -1,\n actionArray: actionArray\n });\n });\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (iaddServices);\n\n//# sourceURL=webpack://restaf/./store/iaddServices.js?");
1761
+ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getResults */ \"./store/getResults.js\");\n/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./extendFolder */ \"./store/extendFolder.js\");\n/* harmony import */ var _reducers_injectAsyncReducers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../reducers/injectAsyncReducers */ \"./reducers/injectAsyncReducers.js\");\n/* harmony import */ var _reducers_baseReducer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../reducers/baseReducer */ \"./reducers/baseReducer.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\nvar iaddServices = function iaddServices(store, services) {\n return new Promise(function (resolve, reject) {\n //\n // Add a reducer for each service\n //\n\n services.forEach(function (service) {\n Object(_reducers_injectAsyncReducers__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, service, Object(_reducers_baseReducer__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(service));\n });\n\n //\n // Create actionArray for the services\n //\n var actionArray = services.map(function (service) {\n var s = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* ADD_SERVICE */ \"a\"],\n link: {\n method: 'GET',\n href: '/' + service + '/',\n rel: 'root',\n type: 'application/vnd.sas.api+json',\n responseType: 'application/json, application/vnd.sas.api+json',\n uri: '/' + service + '/'\n },\n logonInfo: null,\n tLink: null,\n /* null indicates root of service */\n serviceName: service,\n route: service,\n storeConfig: store.config\n };\n //to support PuP compute server\n if (service == 'compute' && store.config.options.computeServerId != null) {\n s.link.href = '/compute/servers/' + store.config.options.computeServerId + '/';\n s.link.url = s.link.href;\n }\n ;\n return s;\n });\n\n //\n // The first callback needs to be ignored\n //\n var start = true;\n\n //\n // subscribe function\n //\n var nextE = function nextE() {\n if (start) {\n start = false;\n return;\n }\n var folders = {};\n var xsrfTokens = {};\n /* */\n //\n // check the status of the call.\n // if all of them completed then resolve this promise or reject if error as soon as\n // an error is detected.\n //\n\n var count = 0;\n for (var i = 0; i < actionArray.length; i++) {\n //noinspection JSUnresolvedVariable\n var f = Object(_getResults__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(store, actionArray[i].route);\n if (f !== null) {\n var runStatus = f.get('runStatus');\n if (runStatus === 'error') {\n unSubscribe();\n var err = {\n service: services[i],\n detail: f.get('statusInfo')\n };\n reject(err);\n } else if (runStatus === 'ready') {\n count++;\n var ff = Object(_extendFolder__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, f);\n folders[services[i]] = ff;\n var xheader = ff.headers('x-csrf-header');\n if (xheader !== null) {\n var xtoken = ff.headers('x-csrf-token');\n var xx = {\n 'x-csrf-header': xheader,\n 'x-csrf-token': xtoken\n };\n xsrfTokens[services[i]] = xx;\n } else {\n xsrfTokens[services[i]] = null;\n }\n }\n }\n }\n if (count === actionArray.length) {\n unSubscribe();\n resolve({\n folders: folders,\n xsrfTokens: xsrfTokens\n });\n }\n };\n\n //\n // subscribe to store\n //\n var unSubscribe = store.subscribe(nextE);\n\n //\n // dispatch the actionArray\n //\n\n //\n // interval is a place holder for creating interval between calls\n // Yet to be implemented\n //\n\n store.dispatch({\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_CALL_PARALLEL */ \"c\"],\n interval: -1,\n actionArray: actionArray\n });\n });\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (iaddServices);\n\n//# sourceURL=webpack://restaf/./store/iaddServices.js?");
1762
1762
 
1763
1763
  /***/ }),
1764
1764
 
@@ -1771,7 +1771,7 @@ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __web
1771
1771
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1772
1772
 
1773
1773
  "use strict";
1774
- eval("/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getResults */ \"./store/getResults.js\");\n/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./extendFolder */ \"./store/extendFolder.js\");\n/* harmony import */ var _prepareAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./prepareAction */ \"./store/prepareAction.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n// import ikeepAlive from './ikeepAlive';\n\nvar iapiCall = function iapiCall(store, iroute, actionType, payload, delay, eventHandler, parentRoute, jobContext) {\n return new Promise(function (resolve, reject) {\n var route;\n var unSubscribe;\n var start = true;\n\n // create action\n var action = Object(_prepareAction__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, iroute, actionType, payload, delay, eventHandler, parentRoute, jobContext);\n if (action === null) {\n reject({\n error: 'Bad route and/or rafLink',\n args: iroute\n });\n }\n // save route\n //noinspection JSUnresolvedVariable\n route = action.route;\n\n // subscribe callback\n var nextE = function nextE() {\n if (start) {\n start = false;\n return;\n }\n var f = Object(_getResults__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, route);\n if (!f) {\n /* should never happen, hmmm! */\n unSubscribe();\n reject({\n error: 'Hmmm! Failed to resolve route in apiCall callback - should never happen. Call Programmer',\n route: route\n });\n } else {\n var runStatus = f.get('runStatus');\n if (runStatus === 'error') {\n unSubscribe();\n reject(f.get('statusInfo'));\n } else if (runStatus === 'ready') {\n unSubscribe();\n var efolder = Object(_extendFolder__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(store, f);\n //ikeepAlive(store); \n resolve(efolder);\n }\n }\n };\n\n // subscribe to store\n unSubscribe = store.subscribe(nextE);\n\n // dispatch action\n store.dispatch(action);\n });\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (iapiCall);\n\n//# sourceURL=webpack://restaf/./store/iapiCall.js?");
1774
+ eval("/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getResults */ \"./store/getResults.js\");\n/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./extendFolder */ \"./store/extendFolder.js\");\n/* harmony import */ var _prepareAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./prepareAction */ \"./store/prepareAction.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n// import ikeepAlive from './ikeepAlive';\n\nvar iapiCall = function iapiCall(store, iroute, actionType, payload, delay, eventHandler, parentRoute, jobContext) {\n return new Promise(function (resolve, reject) {\n var route;\n var unSubscribe;\n var start = true;\n\n // create action\n var action = Object(_prepareAction__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, iroute, actionType, payload, delay, eventHandler, parentRoute, jobContext);\n if (action === null) {\n reject({\n error: 'Bad route and/or rafLink',\n args: iroute\n });\n }\n // save route\n //noinspection JSUnresolvedVariable\n route = action.route;\n\n // subscribe callback\n var nextE = function nextE() {\n if (start) {\n start = false;\n return;\n }\n var f = Object(_getResults__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, route);\n if (!f) {\n /* should never happen, hmmm! */\n unSubscribe();\n reject({\n error: 'Hmmm! Failed to resolve route in apiCall callback - should never happen. Call Programmer',\n route: route\n });\n } else {\n var runStatus = f.get('runStatus');\n if (runStatus === 'error') {\n unSubscribe();\n reject(f.get('statusInfo'));\n } else if (runStatus === 'ready') {\n unSubscribe();\n var efolder = Object(_extendFolder__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(store, f);\n //ikeepAlive(store); \n resolve(efolder);\n }\n }\n };\n\n // subscribe to store\n unSubscribe = store.subscribe(nextE);\n\n // dispatch action\n store.dispatch(action);\n });\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (iapiCall);\n\n//# sourceURL=webpack://restaf/./store/iapiCall.js?");
1775
1775
 
1776
1776
  /***/ }),
1777
1777
 
@@ -1784,7 +1784,7 @@ eval("/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_0__ = __webp
1784
1784
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1785
1785
 
1786
1786
  "use strict";
1787
- eval("/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iapiCall */ \"./store/iapiCall.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\nfunction ijobState(store, job, payload, delay, waitFlag, eventHandler, jobContext) {\n return new Promise(function (resolve, reject) {\n var stateCmd = job.links('state');\n if (stateCmd === null) {\n var result = {\n job: job,\n data: 'completed',\n statusCode: 200\n };\n resolve({\n completed: 1,\n running: 0,\n jobState: result\n });\n } else {\n Object(_iapiCall__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, stateCmd, waitFlag === true ? _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* API_POLL */ \"d\"] : _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* API_CALL */ \"b\"], payload, delay, eventHandler, job.route, jobContext).then(function (r) {\n var detail = {};\n var running = 0;\n var data = r.items();\n // cas isIdle use case\n if (detail.hasOwnProperty(data) === false) {\n detail[data] = 0;\n }\n detail[data] = detail[data] + 1;\n var httpCode = r.status;\n var result = {\n job: job,\n data: data,\n statusCode: httpCode\n };\n if (data === 'running' || data === 'pending') {\n running = 1;\n }\n resolve({\n running: running,\n detail: detail,\n jobState: result\n });\n }).catch(function (err) {\n reject(err);\n });\n }\n });\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (ijobState);\n\n//# sourceURL=webpack://restaf/./store/ijobState.js?");
1787
+ eval("/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iapiCall */ \"./store/iapiCall.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\nfunction ijobState(store, job, payload, delay, waitFlag, eventHandler, jobContext) {\n return new Promise(function (resolve, reject) {\n var stateCmd = job.links('state');\n if (stateCmd === null) {\n var result = {\n job: job,\n data: 'completed',\n statusCode: 200\n };\n resolve({\n completed: 1,\n running: 0,\n jobState: result\n });\n } else {\n Object(_iapiCall__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, stateCmd, waitFlag === true ? _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* API_POLL */ \"d\"] : _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* API_CALL */ \"b\"], payload, delay, eventHandler, job.route, jobContext).then(function (r) {\n var detail = {};\n var running = 0;\n var data = r.items();\n // cas isIdle use case\n if (detail.hasOwnProperty(data) === false) {\n detail[data] = 0;\n }\n detail[data] = detail[data] + 1;\n var httpCode = r.status;\n var result = {\n job: job,\n data: data,\n statusCode: httpCode\n };\n if (data === 'running' || data === 'pending') {\n running = 1;\n }\n resolve({\n running: running,\n detail: detail,\n jobState: result\n });\n }).catch(function (err) {\n reject(err);\n });\n }\n });\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (ijobState);\n\n//# sourceURL=webpack://restaf/./store/ijobState.js?");
1788
1788
 
1789
1789
  /***/ }),
1790
1790
 
@@ -1797,7 +1797,7 @@ eval("/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_0__ = __webpac
1797
1797
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1798
1798
 
1799
1799
  "use strict";
1800
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _apiCallAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apiCallAll */ \"./store/apiCallAll.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\nfunction ijobStateAll(store, jobs, ipayload) {\n return new Promise(function (resolve, reject) {\n /* */\n var payload = [];\n if (ipayload !== null) {\n if (Array.isArray(ipayload) === false) {\n for (var i = 0; i < jobs.length; i++) {\n payload.push(ipayload);\n }\n } else {\n payload = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(ipayload);\n }\n } else {\n for (var _i = 0; _i < jobs.length; _i++) {\n payload.push(null);\n }\n }\n var actionArray = jobs.map(function (job, i) {\n //noinspection JSValidateTypes\n var rafLink = job.links('state');\n if (rafLink === null) {\n reject(\" job \".concat(i, \" does not support state checking \"));\n }\n var statePayload = payload[i];\n return {\n rafLink: rafLink,\n payload: _objectSpread({}, statePayload)\n };\n });\n Object(_apiCallAll__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, actionArray).then(function (results) {\n var detail = {};\n var running = 0;\n var jobState = results.map(function (r, i) {\n var data = r.items();\n var httpCode = r.status;\n if (detail.hasOwnProperty(data) === false) {\n detail[data] = 0;\n }\n detail[data] = detail[data] + 1;\n if (data === 'running' || data === 'pending') {\n running++;\n }\n return {\n job: jobs[i],\n data: data,\n statusCode: httpCode\n };\n });\n resolve({\n running: running,\n detail: detail,\n jobState: jobState\n });\n }).catch(function (err) {\n reject(err);\n });\n });\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (ijobStateAll);\n\n//# sourceURL=webpack://restaf/./store/ijobStateAll.js?");
1800
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _apiCallAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apiCallAll */ \"./store/apiCallAll.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\nfunction ijobStateAll(store, jobs, ipayload) {\n return new Promise(function (resolve, reject) {\n /* */\n var payload = [];\n if (ipayload !== null) {\n if (Array.isArray(ipayload) === false) {\n for (var i = 0; i < jobs.length; i++) {\n payload.push(ipayload);\n }\n } else {\n payload = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(ipayload);\n }\n } else {\n for (var _i = 0; _i < jobs.length; _i++) {\n payload.push(null);\n }\n }\n var actionArray = jobs.map(function (job, i) {\n //noinspection JSValidateTypes\n var rafLink = job.links('state');\n if (rafLink === null) {\n reject(\" job \".concat(i, \" does not support state checking \"));\n }\n var statePayload = payload[i];\n return {\n rafLink: rafLink,\n payload: _objectSpread({}, statePayload)\n };\n });\n Object(_apiCallAll__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, actionArray).then(function (results) {\n var detail = {};\n var running = 0;\n var jobState = results.map(function (r, i) {\n var data = r.items();\n var httpCode = r.status;\n if (detail.hasOwnProperty(data) === false) {\n detail[data] = 0;\n }\n detail[data] = detail[data] + 1;\n if (data === 'running' || data === 'pending') {\n running++;\n }\n return {\n job: jobs[i],\n data: data,\n statusCode: httpCode\n };\n });\n resolve({\n running: running,\n detail: detail,\n jobState: jobState\n });\n }).catch(function (err) {\n reject(err);\n });\n });\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (ijobStateAll);\n\n//# sourceURL=webpack://restaf/./store/ijobStateAll.js?");
1801
1801
 
1802
1802
  /***/ }),
1803
1803
 
@@ -1810,7 +1810,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1810
1810
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1811
1811
 
1812
1812
  "use strict";
1813
- eval("/* harmony import */ var _initStore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./initStore */ \"./store/initStore.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return _initStore__WEBPACK_IMPORTED_MODULE_0__[\"a\"]; });\n\n/* harmony import */ var _endStore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./endStore */ \"./store/endStore.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return _endStore__WEBPACK_IMPORTED_MODULE_1__[\"a\"]; });\n\n/* harmony import */ var _restoreStore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./restoreStore */ \"./store/restoreStore.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return _restoreStore__WEBPACK_IMPORTED_MODULE_2__[\"a\"]; });\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://restaf/./store/index.js?");
1813
+ eval("/* harmony import */ var _initStore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./initStore */ \"./store/initStore.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return _initStore__WEBPACK_IMPORTED_MODULE_0__[\"a\"]; });\n\n/* harmony import */ var _endStore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./endStore */ \"./store/endStore.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return _endStore__WEBPACK_IMPORTED_MODULE_1__[\"a\"]; });\n\n/* harmony import */ var _restoreStore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./restoreStore */ \"./store/restoreStore.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return _restoreStore__WEBPACK_IMPORTED_MODULE_2__[\"a\"]; });\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://restaf/./store/index.js?");
1814
1814
 
1815
1815
  /***/ }),
1816
1816
 
@@ -1823,7 +1823,7 @@ eval("/* harmony import */ var _initStore__WEBPACK_IMPORTED_MODULE_0__ = __webpa
1823
1823
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1824
1824
 
1825
1825
  "use strict";
1826
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _configureSagaStore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./configureSagaStore */ \"./store/configureSagaStore.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/* harmony import */ var _apiCallAll__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./apiCallAll */ \"./store/apiCallAll.js\");\n/* harmony import */ var _runAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./runAction */ \"./store/runAction.js\");\n/* harmony import */ var _apiSubmit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./apiSubmit */ \"./store/apiSubmit.js\");\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/* harmony import */ var _jobStateAll__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./jobStateAll */ \"./store/jobStateAll.js\");\n/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./request */ \"./store/request.js\");\n/* harmony import */ var _getServices__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./getServices */ \"./store/getServices.js\");\n/* harmony import */ var _addServices__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./addServices */ \"./store/addServices.js\");\n/* harmony import */ var _getServiceRoot__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./getServiceRoot */ \"./store/getServiceRoot.js\");\n/* harmony import */ var _logon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./logon */ \"./store/logon.js\");\n/* harmony import */ var _logoff__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./logoff */ \"./store/logoff.js\");\n/* harmony import */ var _endStore__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./endStore */ \"./store/endStore.js\");\n/* harmony import */ var _routeToObj__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./routeToObj */ \"./store/routeToObj.js\");\n/* harmony import */ var _selectLogonInfo__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _appData__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./appData */ \"./store/appData.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/* harmony import */ var _deleteRafObject__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./deleteRafObject */ \"./store/deleteRafObject.js\");\n/* harmony import */ var _keepViyaAlive__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./keepViyaAlive */ \"./store/keepViyaAlive.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\n\n\n\n\n\n// import jobStatus from './jobStatus';\n\n\n\n\n\n\n\n\n\n\n\n\n/**\r\n * @description Initialize a restaf store\r\n * @category restaf/core\r\n * @module initStore\r\n * @param {object=} config configuration object(future)\r\n * @returns {store} restaf store object(rafObject)\r\n * @example\r\n * let store = restaf.initStore();\r\n * The store object manages all the data and access\r\n * to Viya using the REST API. \r\n */\nfunction initStore(iconfig) {\n var config = {\n casProxy: false\n };\n if (iconfig != null) {\n config = _objectSpread(_objectSpread({}, config), iconfig);\n }\n console.log(config);\n var store = Object(_configureSagaStore__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(config);\n return {\n logon: _logon__WEBPACK_IMPORTED_MODULE_13__[/* default */ \"a\"].bind(null, store),\n connect: _logon__WEBPACK_IMPORTED_MODULE_13__[/* default */ \"a\"].bind(null, store),\n logoff: _logoff__WEBPACK_IMPORTED_MODULE_14__[/* default */ \"a\"].bind(null, store),\n disconnect: _logoff__WEBPACK_IMPORTED_MODULE_14__[/* default */ \"a\"].bind(null, store),\n connection: loggedOn.bind(null, store),\n addServices: _addServices__WEBPACK_IMPORTED_MODULE_11__[/* default */ \"a\"].bind(null, store),\n getServices: _getServices__WEBPACK_IMPORTED_MODULE_10__[/* default */ \"a\"].bind(null, store),\n apiCall: _apiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"].bind(null, store),\n runAction: _runAction__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"].bind(null, store),\n apiCallAll: _apiCallAll__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"].bind(null, store),\n rafObject: _routeToObj__WEBPACK_IMPORTED_MODULE_16__[/* default */ \"a\"].bind(null, store),\n getService: _routeToObj__WEBPACK_IMPORTED_MODULE_16__[/* default */ \"a\"].bind(null, store),\n deleteRafObject: _deleteRafObject__WEBPACK_IMPORTED_MODULE_20__[/* default */ \"a\"].bind(null, store),\n jobState: _jobState__WEBPACK_IMPORTED_MODULE_7__[/* default */ \"a\"].bind(null, store),\n jobStateAll: _jobStateAll__WEBPACK_IMPORTED_MODULE_8__[/* default */ \"a\"].bind(null, store),\n submit: _apiSubmit__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"].bind(null, store),\n submitStatus: getApiStatus.bind(null, store),\n setAppData: _appData__WEBPACK_IMPORTED_MODULE_18__[/* default */ \"a\"].bind(null, store, _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA */ \"k\"]),\n getAppData: getAppData.bind(null, store),\n setXsrfData: _appData__WEBPACK_IMPORTED_MODULE_18__[/* default */ \"a\"].bind(null, store, _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_XSRF */ \"h\"]),\n getXsrfData: _getXsrfData__WEBPACK_IMPORTED_MODULE_19__[/* default */ \"a\"].bind(null, store),\n getState: store.getState,\n endStore: _endStore__WEBPACK_IMPORTED_MODULE_15__[/* default */ \"a\"].bind(null, store),\n store: store,\n config: _objectSpread({}, config),\n getServiceRoot: _getServiceRoot__WEBPACK_IMPORTED_MODULE_12__[/* default */ \"a\"].bind(null, store),\n request: _request__WEBPACK_IMPORTED_MODULE_9__[/* default */ \"a\"].bind(null, store),\n keepViyaAlive: _keepViyaAlive__WEBPACK_IMPORTED_MODULE_21__[/* default */ \"a\"].bind(null, store)\n };\n}\nfunction loggedOn(store) {\n return Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_17__[/* default */ \"a\"])(store.getState());\n}\nfunction getAppData(store) {\n var list = store.getState()[_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA_ROOT */ \"l\"]];\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n var path = args.length > 0 ? ['userData'].concat(args) : ['userData'];\n return list.getIn(path, null);\n}\nfunction getApiStatus(store, jobContext) {\n var list = store.getState()[_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS_ROOT */ \"f\"]];\n var result = null;\n if (!jobContext) {\n result = list.get('routeList');\n } else {\n var r = list.getIn(['userData', jobContext], null);\n if (r !== null) {\n result = r.toJS();\n result.job = Object(_routeToObj__WEBPACK_IMPORTED_MODULE_16__[/* default */ \"a\"])(store, result.route);\n }\n }\n return result;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (initStore);\n\n//# sourceURL=webpack://restaf/./store/initStore.js?");
1826
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _configureSagaStore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./configureSagaStore */ \"./store/configureSagaStore.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/* harmony import */ var _apiCallAll__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./apiCallAll */ \"./store/apiCallAll.js\");\n/* harmony import */ var _runAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./runAction */ \"./store/runAction.js\");\n/* harmony import */ var _apiSubmit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./apiSubmit */ \"./store/apiSubmit.js\");\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/* harmony import */ var _jobStateAll__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./jobStateAll */ \"./store/jobStateAll.js\");\n/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./request */ \"./store/request.js\");\n/* harmony import */ var _getServices__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./getServices */ \"./store/getServices.js\");\n/* harmony import */ var _addServices__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./addServices */ \"./store/addServices.js\");\n/* harmony import */ var _getServiceRoot__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./getServiceRoot */ \"./store/getServiceRoot.js\");\n/* harmony import */ var _logon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./logon */ \"./store/logon.js\");\n/* harmony import */ var _logoff__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./logoff */ \"./store/logoff.js\");\n/* harmony import */ var _endStore__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./endStore */ \"./store/endStore.js\");\n/* harmony import */ var _routeToObj__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./routeToObj */ \"./store/routeToObj.js\");\n/* harmony import */ var _selectLogonInfo__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _appData__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./appData */ \"./store/appData.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/* harmony import */ var _deleteRafObject__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./deleteRafObject */ \"./store/deleteRafObject.js\");\n/* harmony import */ var _keepViyaAlive__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./keepViyaAlive */ \"./store/keepViyaAlive.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\n\n\n\n\n\n// import jobStatus from './jobStatus';\n\n\n\n\n\n\n\n\n\n\n\n\n/**\r\n * @description Initialize a restaf store\r\n * @category restaf/core\r\n * @module initStore\r\n * @param {object=} config configuration object(future)\r\n * @returns {store} restaf store object(rafObject)\r\n * @example\r\n * let store = restaf.initStore();\r\n * The store object manages all the data and access\r\n * to Viya using the REST API. \r\n */\nfunction initStore(iconfig) {\n var config = {\n casProxy: false\n };\n if (iconfig != null) {\n config = _objectSpread(_objectSpread({}, config), iconfig);\n }\n console.log(config);\n var store = Object(_configureSagaStore__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(config);\n return {\n logon: _logon__WEBPACK_IMPORTED_MODULE_13__[/* default */ \"a\"].bind(null, store),\n connect: _logon__WEBPACK_IMPORTED_MODULE_13__[/* default */ \"a\"].bind(null, store),\n logoff: _logoff__WEBPACK_IMPORTED_MODULE_14__[/* default */ \"a\"].bind(null, store),\n disconnect: _logoff__WEBPACK_IMPORTED_MODULE_14__[/* default */ \"a\"].bind(null, store),\n connection: loggedOn.bind(null, store),\n addServices: _addServices__WEBPACK_IMPORTED_MODULE_11__[/* default */ \"a\"].bind(null, store),\n getServices: _getServices__WEBPACK_IMPORTED_MODULE_10__[/* default */ \"a\"].bind(null, store),\n apiCall: _apiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"].bind(null, store),\n runAction: _runAction__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"].bind(null, store),\n apiCallAll: _apiCallAll__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"].bind(null, store),\n rafObject: _routeToObj__WEBPACK_IMPORTED_MODULE_16__[/* default */ \"a\"].bind(null, store),\n getService: _routeToObj__WEBPACK_IMPORTED_MODULE_16__[/* default */ \"a\"].bind(null, store),\n deleteRafObject: _deleteRafObject__WEBPACK_IMPORTED_MODULE_20__[/* default */ \"a\"].bind(null, store),\n jobState: _jobState__WEBPACK_IMPORTED_MODULE_7__[/* default */ \"a\"].bind(null, store),\n jobStateAll: _jobStateAll__WEBPACK_IMPORTED_MODULE_8__[/* default */ \"a\"].bind(null, store),\n submit: _apiSubmit__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"].bind(null, store),\n submitStatus: getApiStatus.bind(null, store),\n setAppData: _appData__WEBPACK_IMPORTED_MODULE_18__[/* default */ \"a\"].bind(null, store, _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA */ \"k\"]),\n getAppData: getAppData.bind(null, store),\n setXsrfData: _appData__WEBPACK_IMPORTED_MODULE_18__[/* default */ \"a\"].bind(null, store, _actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_XSRF */ \"h\"]),\n getXsrfData: _getXsrfData__WEBPACK_IMPORTED_MODULE_19__[/* default */ \"a\"].bind(null, store),\n getState: store.getState,\n endStore: _endStore__WEBPACK_IMPORTED_MODULE_15__[/* default */ \"a\"].bind(null, store),\n store: store,\n config: _objectSpread({}, config),\n getServiceRoot: _getServiceRoot__WEBPACK_IMPORTED_MODULE_12__[/* default */ \"a\"].bind(null, store),\n request: _request__WEBPACK_IMPORTED_MODULE_9__[/* default */ \"a\"].bind(null, store),\n keepViyaAlive: _keepViyaAlive__WEBPACK_IMPORTED_MODULE_21__[/* default */ \"a\"].bind(null, store)\n };\n}\nfunction loggedOn(store) {\n return Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_17__[/* default */ \"a\"])(store.getState());\n}\nfunction getAppData(store) {\n var list = store.getState()[_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* APP_DATA_ROOT */ \"l\"]];\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n var path = args.length > 0 ? ['userData'].concat(args) : ['userData'];\n return list.getIn(path, null);\n}\nfunction getApiStatus(store, jobContext) {\n var list = store.getState()[_actionTypes__WEBPACK_IMPORTED_MODULE_2__[/* API_STATUS_ROOT */ \"f\"]];\n var result = null;\n if (!jobContext) {\n result = list.get('routeList');\n } else {\n var r = list.getIn(['userData', jobContext], null);\n if (r !== null) {\n result = r.toJS();\n result.job = Object(_routeToObj__WEBPACK_IMPORTED_MODULE_16__[/* default */ \"a\"])(store, result.route);\n }\n }\n return result;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (initStore);\n\n//# sourceURL=webpack://restaf/./store/initStore.js?");
1827
1827
 
1828
1828
  /***/ }),
1829
1829
 
@@ -1836,7 +1836,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1836
1836
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1837
1837
 
1838
1838
  "use strict";
1839
- eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _ijobState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ijobState */ \"./store/ijobState.js\");\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n/**\r\n * @category restaf/core\r\n * @description Check status of jobs\r\n * @module jobState\r\n * @async\r\n * \r\n * @param {rafObject} job rafObject of job\r\n * @param {object=} payload usually query to state api\r\n * @param {timeout=} timeout multiple uses to control timeout\r\n * @param {number=} delay delay in seconds.See notes below\r\n * @returns {promise} - object with the status information\r\n * @example\r\n * Notes\r\n * If the service supports long polling, pass the timeout in the payload.qs\r\n * If the service does not support long polling, set timeout to 'wait' and set delay to some time in seconds.\r\n * The library will check for completion every delay seconds. A more advanced way using progressHandler exit is described\r\n * in the tutorial sections.\r\n */\nfunction jobState(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {\n return _jobState.apply(this, arguments);\n}\nfunction _jobState() {\n _jobState = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, job, payload, timeout, delay, progressHandler, jobContext, cas) {\n var waitFlag, tries, status, failed;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n waitFlag = false;\n tries = 1;\n if (timeout === 'wait' || timeout === 'longpoll') {\n tries = 1;\n waitFlag = true;\n } else {\n tries = !timeout ? 1 : timeout;\n }\n case 3:\n _context.next = 5;\n return Object(_ijobState__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, job, payload, delay, waitFlag, progressHandler, jobContext);\n case 5:\n status = _context.sent;\n failed = status.detail.hasOwnProperty('failed');\n if (!(status.running === 0)) {\n _context.next = 16;\n break;\n }\n tries = 0;\n if (!(failed === false && cas != true)) {\n _context.next = 15;\n break;\n }\n _context.next = 12;\n return Object(_apiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, job.links('self'));\n case 12:\n status.jobState.job = _context.sent;\n _context.next = 16;\n break;\n case 15:\n status.jobState.job = job;\n case 16:\n if (--tries > 0) {\n _context.next = 3;\n break;\n }\n case 17:\n return _context.abrupt(\"return\", status.jobState);\n case 18:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _jobState.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (jobState);\n\n//# sourceURL=webpack://restaf/./store/jobState.js?");
1839
+ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _ijobState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ijobState */ \"./store/ijobState.js\");\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n/**\r\n * @category restaf/core\r\n * @description Check status of jobs\r\n * @module jobState\r\n * @async\r\n * \r\n * @param {rafObject} job rafObject of job\r\n * @param {object=} payload usually query to state api\r\n * @param {timeout=} timeout multiple uses to control timeout\r\n * @param {number=} delay delay in seconds.See notes below\r\n * @returns {promise} - object with the status information\r\n * @example\r\n * Notes\r\n * If the service supports long polling, pass the timeout in the payload.qs\r\n * If the service does not support long polling, set timeout to 'wait' and set delay to some time in seconds.\r\n * The library will check for completion every delay seconds. A more advanced way using progressHandler exit is described\r\n * in the tutorial sections.\r\n */\nfunction jobState(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {\n return _jobState.apply(this, arguments);\n}\nfunction _jobState() {\n _jobState = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, job, payload, timeout, delay, progressHandler, jobContext, cas) {\n var waitFlag, tries, status, failed;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n waitFlag = false;\n tries = 1;\n if (timeout === 'wait' || timeout === 'longpoll') {\n tries = 1;\n waitFlag = true;\n } else {\n tries = !timeout ? 1 : timeout;\n }\n case 3:\n _context.next = 5;\n return Object(_ijobState__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, job, payload, delay, waitFlag, progressHandler, jobContext);\n case 5:\n status = _context.sent;\n failed = status.detail.hasOwnProperty('failed');\n if (!(status.running === 0)) {\n _context.next = 16;\n break;\n }\n tries = 0;\n if (!(failed === false && cas != true)) {\n _context.next = 15;\n break;\n }\n _context.next = 12;\n return Object(_apiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, job.links('self'));\n case 12:\n status.jobState.job = _context.sent;\n _context.next = 16;\n break;\n case 15:\n status.jobState.job = job;\n case 16:\n if (--tries > 0) {\n _context.next = 3;\n break;\n }\n case 17:\n return _context.abrupt(\"return\", status.jobState);\n case 18:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _jobState.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (jobState);\n\n//# sourceURL=webpack://restaf/./store/jobState.js?");
1840
1840
 
1841
1841
  /***/ }),
1842
1842
 
@@ -1849,7 +1849,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
1849
1849
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1850
1850
 
1851
1851
  "use strict";
1852
- eval("/* harmony import */ var _ijobStateAll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ijobStateAll */ \"./store/ijobStateAll.js\");\n/* harmony import */ var _apiCallAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./apiCallAll */ \"./store/apiCallAll.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\nfunction jobStateAll(store, jobList, payload, maxTries) {\n return new Promise(function (resolve, reject) {\n var tries = maxTries != null ? maxTries : 1;\n checkStatus(store, jobList, payload, tries, function (err, result) {\n if (err) {\n reject(err);\n } else if (result.running === 0) {\n var rafLinkSelf = result.jobState.map(function (j) {\n return {\n rafLink: j.job.links('self'),\n payload: null\n };\n });\n Object(_apiCallAll__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(store, rafLinkSelf, null).then(function (newJobs) {\n newJobs.forEach(function (job, i) {\n result.jobState[i].job = job;\n });\n resolve(result);\n }).catch(function (err) {\n reject(err);\n });\n } else {\n resolve(result);\n }\n });\n });\n}\nfunction checkStatus(store, jobList, payload, tries, cb) {\n Object(_ijobStateAll__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, jobList, payload).then(function (result) {\n if (result.running > 0) {\n tries--;\n if (tries <= 0) {\n cb(null, result);\n } else {\n checkStatus(store, jobList, payload, tries, cb);\n }\n } else {\n cb(null, result);\n }\n }).catch(function (err) {\n cb(err);\n });\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (jobStateAll);\n\n//# sourceURL=webpack://restaf/./store/jobStateAll.js?");
1852
+ eval("/* harmony import */ var _ijobStateAll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ijobStateAll */ \"./store/ijobStateAll.js\");\n/* harmony import */ var _apiCallAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./apiCallAll */ \"./store/apiCallAll.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\nfunction jobStateAll(store, jobList, payload, maxTries) {\n return new Promise(function (resolve, reject) {\n var tries = maxTries != null ? maxTries : 1;\n checkStatus(store, jobList, payload, tries, function (err, result) {\n if (err) {\n reject(err);\n } else if (result.running === 0) {\n var rafLinkSelf = result.jobState.map(function (j) {\n return {\n rafLink: j.job.links('self'),\n payload: null\n };\n });\n Object(_apiCallAll__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(store, rafLinkSelf, null).then(function (newJobs) {\n newJobs.forEach(function (job, i) {\n result.jobState[i].job = job;\n });\n resolve(result);\n }).catch(function (err) {\n reject(err);\n });\n } else {\n resolve(result);\n }\n });\n });\n}\nfunction checkStatus(store, jobList, payload, tries, cb) {\n Object(_ijobStateAll__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, jobList, payload).then(function (result) {\n if (result.running > 0) {\n tries--;\n if (tries <= 0) {\n cb(null, result);\n } else {\n checkStatus(store, jobList, payload, tries, cb);\n }\n } else {\n cb(null, result);\n }\n }).catch(function (err) {\n cb(err);\n });\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (jobStateAll);\n\n//# sourceURL=webpack://restaf/./store/jobStateAll.js?");
1853
1853
 
1854
1854
  /***/ }),
1855
1855
 
@@ -1862,7 +1862,7 @@ eval("/* harmony import */ var _ijobStateAll__WEBPACK_IMPORTED_MODULE_0__ = __we
1862
1862
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1863
1863
 
1864
1864
  "use strict";
1865
- eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./request */ \"./store/request.js\");\n/* harmony import */ var _getServices__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getServices */ \"./store/getServices.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/* harmony import */ var _selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction keepViyaAlive(_x, _x2, _x3, _x4, _x5) {\n return _keepViyaAlive.apply(this, arguments);\n}\nfunction _keepViyaAlive() {\n _keepViyaAlive = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, aliveURL, interval, timeout, onTimeout) {\n var keepTimer;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n keepTimer = setInterval(function () {\n ikeepViyaAlive(store, aliveURL);\n }, interval * 1000);\n setTimeout(function () {\n console.log('Note: Stopping keepViyaAlive');\n clearInterval(keepTimer);\n if (onTimeout != null) {\n onTimeout();\n } else {\n var host = Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store.getState()).host;\n var params = \"scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=0,height=0,left=-1000,top=-1000\";\n console.log('timeout');\n window.open(\"\".concat(host, \"/SASLogon/timedout\"), 'Timed Out', params);\n }\n }, timeout * 1000);\n return _context.abrupt(\"return\", true);\n case 3:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _keepViyaAlive.apply(this, arguments);\n}\nfunction ikeepViyaAlive(_x6, _x7) {\n return _ikeepViyaAlive.apply(this, arguments);\n}\nfunction _ikeepViyaAlive() {\n _ikeepViyaAlive = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee2(store, aliveURL) {\n var payload, action, services, host, i, s, ixsrf, xsrfHeaderName, _payload, _action;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n if (aliveURL !== null) {\n payload = {\n url: aliveURL,\n method: 'GET',\n headers: {\n Accept: '*/*'\n }\n };\n action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_6__[/* KEEP_ALIVE */ \"q\"],\n route: 'keepAlive',\n payload: payload\n };\n store.dispatch(action);\n }\n\n // This keeps the app server session alive\n services = Object(_getServices__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store);\n host = Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store.getState()).host; // This keeps the services alive with their xsrf tokens valid\n i = 0;\n case 4:\n if (!(i < services.length)) {\n _context2.next = 20;\n break;\n }\n s = services[i];\n if (!(s.indexOf('_') === -1)) {\n _context2.next = 17;\n break;\n }\n if (!(s.indexOf('cas-http') === -1)) {\n _context2.next = 17;\n break;\n }\n ixsrf = Object(_getXsrfData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, s);\n /* could be initialization state if null or have no xsrf */\n if (!(ixsrf !== null)) {\n _context2.next = 17;\n break;\n }\n xsrfHeaderName = ixsrf['x-csrf-header'];\n _payload = {\n url: \"\".concat(host, \"/\").concat(s, \"/\"),\n Accept: 'application/json, application/vnd.sas.api+json',\n withCredentials: true,\n method: 'GET',\n xsrfHeaderName: xsrfHeaderName,\n headers: {}\n };\n _payload.headers[xsrfHeaderName] = ixsrf['x-csrf-token'];\n _context2.next = 15;\n return Object(_request__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, _payload);\n case 15:\n _action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_6__[/* KEEP_ALIVE */ \"q\"],\n route: 'keepAlive',\n payload: _payload\n };\n store.dispatch(_action);\n case 17:\n i++;\n _context2.next = 4;\n break;\n case 20:\n return _context2.abrupt(\"return\", true);\n case 21:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return _ikeepViyaAlive.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (keepViyaAlive);\n\n//# sourceURL=webpack://restaf/./store/keepViyaAlive.js?");
1865
+ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./request */ \"./store/request.js\");\n/* harmony import */ var _getServices__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getServices */ \"./store/getServices.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/* harmony import */ var _selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction keepViyaAlive(_x, _x2, _x3, _x4, _x5) {\n return _keepViyaAlive.apply(this, arguments);\n}\nfunction _keepViyaAlive() {\n _keepViyaAlive = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, aliveURL, interval, timeout, onTimeout) {\n var keepTimer;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n keepTimer = setInterval(function () {\n ikeepViyaAlive(store, aliveURL);\n }, interval * 1000);\n setTimeout(function () {\n console.log('Note: Stopping keepViyaAlive');\n clearInterval(keepTimer);\n if (onTimeout != null) {\n onTimeout();\n } else {\n var host = Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store.getState()).host;\n var params = \"scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=0,height=0,left=-1000,top=-1000\";\n console.log('timeout');\n window.open(\"\".concat(host, \"/SASLogon/timedout\"), 'Timed Out', params);\n }\n }, timeout * 1000);\n return _context.abrupt(\"return\", true);\n case 3:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _keepViyaAlive.apply(this, arguments);\n}\nfunction ikeepViyaAlive(_x6, _x7) {\n return _ikeepViyaAlive.apply(this, arguments);\n}\nfunction _ikeepViyaAlive() {\n _ikeepViyaAlive = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee2(store, aliveURL) {\n var payload, action, services, host, i, s, ixsrf, xsrfHeaderName, _payload, _action;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n if (aliveURL !== null) {\n payload = {\n url: aliveURL,\n method: 'GET',\n headers: {\n Accept: '*/*'\n }\n };\n action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_6__[/* KEEP_ALIVE */ \"q\"],\n route: 'keepAlive',\n payload: payload\n };\n store.dispatch(action);\n }\n\n // This keeps the app server session alive\n services = Object(_getServices__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store);\n host = Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store.getState()).host; // This keeps the services alive with their xsrf tokens valid\n i = 0;\n case 4:\n if (!(i < services.length)) {\n _context2.next = 20;\n break;\n }\n s = services[i];\n if (!(s.indexOf('_') === -1)) {\n _context2.next = 17;\n break;\n }\n if (!(s.indexOf('cas-http') === -1)) {\n _context2.next = 17;\n break;\n }\n ixsrf = Object(_getXsrfData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, s);\n /* could be initialization state if null or have no xsrf */\n if (!(ixsrf !== null)) {\n _context2.next = 17;\n break;\n }\n xsrfHeaderName = ixsrf['x-csrf-header'];\n _payload = {\n url: \"\".concat(host, \"/\").concat(s, \"/\"),\n Accept: 'application/json, application/vnd.sas.api+json',\n withCredentials: true,\n method: 'GET',\n xsrfHeaderName: xsrfHeaderName,\n headers: {}\n };\n _payload.headers[xsrfHeaderName] = ixsrf['x-csrf-token'];\n _context2.next = 15;\n return Object(_request__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, _payload);\n case 15:\n _action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_6__[/* KEEP_ALIVE */ \"q\"],\n route: 'keepAlive',\n payload: _payload\n };\n store.dispatch(_action);\n case 17:\n i++;\n _context2.next = 4;\n break;\n case 20:\n return _context2.abrupt(\"return\", true);\n case 21:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return _ikeepViyaAlive.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (keepViyaAlive);\n\n//# sourceURL=webpack://restaf/./store/keepViyaAlive.js?");
1866
1866
 
1867
1867
  /***/ }),
1868
1868
 
@@ -1875,7 +1875,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
1875
1875
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1876
1876
 
1877
1877
  "use strict";
1878
- eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nvar unSubscribe;\n\n/** \r\n * @description Logoff from Viya\r\n * @module logoff\r\n * @category restaf/core\r\n * @returns {promise} - result of logoff\r\n * @example\r\n * let r = await store.logoff();\r\n */\nfunction logoff(store) {\n //noinspection JSUnusedLocalSymbols\n return new Promise(function (resolve, reject) {\n var action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* VIYA_LOGOFF */ \"r\"],\n storeConfig: store.config,\n payload: {}\n };\n var logoffExit = function logoffExit() {\n var newState = store.getState().connections;\n var runStatus = newState.get('runStatus');\n if (runStatus === 'idle') {\n unSubscribe();\n resolve(runStatus);\n } else if (runStatus === 'error') {\n unSubscribe();\n reject(newState.get('statusInfo').toJS());\n }\n };\n unSubscribe = store.subscribe(logoffExit);\n store.dispatch(action);\n });\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (logoff);\n\n//# sourceURL=webpack://restaf/./store/logoff.js?");
1878
+ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nvar unSubscribe;\n\n/** \r\n * @description Logoff from Viya\r\n * @module logoff\r\n * @category restaf/core\r\n * @returns {promise} - result of logoff\r\n * @example\r\n * let r = await store.logoff();\r\n */\nfunction logoff(store) {\n //noinspection JSUnusedLocalSymbols\n return new Promise(function (resolve, reject) {\n var action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* VIYA_LOGOFF */ \"r\"],\n storeConfig: store.config,\n payload: {}\n };\n var logoffExit = function logoffExit() {\n var newState = store.getState().connections;\n var runStatus = newState.get('runStatus');\n if (runStatus === 'idle') {\n unSubscribe();\n resolve(runStatus);\n } else if (runStatus === 'error') {\n unSubscribe();\n reject(newState.get('statusInfo').toJS());\n }\n };\n unSubscribe = store.subscribe(logoffExit);\n store.dispatch(action);\n });\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (logoff);\n\n//# sourceURL=webpack://restaf/./store/logoff.js?");
1879
1879
 
1880
1880
  /***/ }),
1881
1881
 
@@ -1888,7 +1888,7 @@ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __web
1888
1888
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1889
1889
 
1890
1890
  "use strict";
1891
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! qs */ \"../../../node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var url_parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! url-parse */ \"../../../node_modules/url-parse/index.js\");\n/* harmony import */ var url_parse__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(url_parse__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _keepViyaAlive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./keepViyaAlive */ \"./store/keepViyaAlive.js\");\n/* eslint-disable no-prototype-builtins */\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\n/**\r\n * @description logon or connect to Viya\r\n * @module logon\r\n * @category restaf/core\r\n * @param {rafLogonPayload} logonPayload See type definition for details\r\n * @returns {promise} returns a text 'done' if successful\r\n * @example\r\nlet restaf = require(\"@sassoftware/restaf\");\r\n\r\nlet logonPayload = {\r\n authType: 'password',\r\n host: process.env.VIYA_SERVER,\r\n clientID: 'sas.ec',\r\n clientSecret: '',\r\n user: 'sastest1',\r\n password: 'somepassword'\r\n};\r\n\r\nlet store = restaf.initStore();\r\n\r\nstore.logon(logonPayload)\r\n .then ( r => console.log(r))\r\n .catch( err => console.log(err));\r\n\r\n */\nvar logon = function logon(store, ipayload) {\n return new Promise(function (resolve, reject) {\n var unSubscribe;\n var action;\n var implicitLogon = false;\n var urlInfo = null;\n var payload = ipayload == null ? null : _objectSpread({}, ipayload);\n if (store.getState().connections.get('currentConnection') >= 0) {\n resolve('ready');\n } else {\n var logonExit = function logonExit() {\n var newState = store.getState().connections;\n var runStatus = newState.get('runStatus');\n if (runStatus === 'ready') {\n unSubscribe();\n if (ipayload != null && ipayload.keepAlive != null) {\n var interval = 300;\n var timeout = 14400;\n if (ipayload.timers != null) {\n var timers = ipayload.timers;\n if (typeof timers === 'string') {\n var opts = timers.split(',');\n interval = parseInt(opts[0]);\n timeout = parseInt(opts[1]);\n } else {\n interval = timers[0];\n timeout = timers[1];\n }\n }\n Object(_keepViyaAlive__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, ipayload.keepAlive, interval, timeout, ipayload.onTimeout);\n }\n resolve(runStatus);\n } else if (runStatus === 'error') {\n unSubscribe();\n reject(newState.get('statusInfo').toJS());\n }\n };\n\n //\n // check url if not password (no window) or when payload is null\n // this allows users of restaf-server|viya-appserverjs to LOGONPAYLOAD unconditionally to logon\n //\n\n if (payload === null || payload.authType === _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_IMPLICIT */ \"v\"]) {\n urlInfo = parseUrlNext();\n if (payload !== null && urlInfo !== null) {\n payload = _objectSpread(_objectSpread({}, payload), urlInfo);\n }\n }\n if (payload == null) {\n if (urlInfo !== null) {\n payload = urlInfo;\n } else {\n payload = {\n host: \"\".concat(window.location.protocol, \"//\").concat(window.location.host),\n authType: _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_SERVER */ \"x\"]\n };\n }\n }\n\n // persist options in payload - currently used for pup support\n\n store.config.options = {};\n if (payload.options != null) {\n store.config.options = _objectSpread({}, payload.options);\n }\n\n // now make the final decision\n if (payload.authType === 'code') {\n payload.authType = 'server';\n }\n switch (payload.authType) {\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_TOKEN */ \"y\"]:\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_SERVER */ \"x\"]:\n if (payload.host == null) {\n payload.host = \"\".concat(window.location.protocol, \"//\").concat(window.location.host);\n }\n break;\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_IMPLICIT */ \"v\"]:\n if (payload.hasOwnProperty('token') === false) {\n implicitLogon = true;\n getToken(payload);\n resolve('Implicit Call');\n }\n break;\n case \"LOGOFF\":\n break;\n default:\n break;\n }\n if (!implicitLogon) {\n action = {\n type: payload.authType === 'LOGOFF' ? _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGOFF */ \"r\"] : _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON */ \"t\"],\n payload: _objectSpread({}, payload)\n };\n action.payload.sslOptions = store.config.hasOwnProperty('sslOptions') ? store.config.sslOptions : null;\n unSubscribe = store.subscribe(logonExit);\n action.storeConfig = store.config;\n // action.type = VIYA_LOGON;\n\n store.dispatch(action);\n }\n }\n });\n};\nfunction getToken(payload) {\n var x = \"\".concat(payload.host, \"/SASLogon/oauth/authorize?response_type=token&client_id=\").concat(payload.clientID);\n //noinspection JSUnresolvedVariable\n if (payload.redirect != null) {\n //noinspection JSUnresolvedVariable\n var redirectUri = \"\".concat(window.location.protocol, \"//\").concat(window.location.host, \"/\").concat(payload.redirect, \"?host=\").concat(payload.host);\n x = \"\".concat(x, \"&redirect_uri=\").concat(redirectUri);\n }\n window.location.replace(x);\n}\nfunction parseUrlNext() {\n if (window == null) {\n return null;\n }\n var url = url_parse__WEBPACK_IMPORTED_MODULE_3___default()(window.location, true);\n var loc = qs__WEBPACK_IMPORTED_MODULE_2___default.a.parse(url.hash);\n var q = url.query;\n if (q.host == null || loc.access_token == null) {\n return null;\n }\n var tokenType = 'bearer';\n if (loc['#token_type'] != null) {\n tokenType = loc['#token_type'];\n } else if (loc['token_type'] != null) {\n tokenType = loc['token_type'];\n }\n var payload = {\n host: q.host,\n authType: _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_IMPLICIT */ \"v\"],\n tokenType: tokenType,\n token: loc.access_token\n };\n return payload;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (logon);\n\n//# sourceURL=webpack://restaf/./store/logon.js?");
1891
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! qs */ \"../../../node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var url_parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! url-parse */ \"../../../node_modules/url-parse/index.js\");\n/* harmony import */ var url_parse__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(url_parse__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _keepViyaAlive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./keepViyaAlive */ \"./store/keepViyaAlive.js\");\n/* eslint-disable no-prototype-builtins */\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\n/**\r\n * @description logon or connect to Viya\r\n * @module logon\r\n * @category restaf/core\r\n * @param {rafLogonPayload} logonPayload See type definition for details\r\n * @returns {promise} returns a text 'done' if successful\r\n * @example\r\nlet restaf = require(\"@sassoftware/restaf\");\r\n\r\nlet logonPayload = {\r\n authType: 'password',\r\n host: process.env.VIYA_SERVER,\r\n clientID: 'sas.ec',\r\n clientSecret: '',\r\n user: 'sastest1',\r\n password: 'somepassword'\r\n};\r\n\r\nlet store = restaf.initStore();\r\n\r\nstore.logon(logonPayload)\r\n .then ( r => console.log(r))\r\n .catch( err => console.log(err));\r\n\r\n */\nvar logon = function logon(store, ipayload) {\n return new Promise(function (resolve, reject) {\n var unSubscribe;\n var action;\n var implicitLogon = false;\n var urlInfo = null;\n var payload = ipayload == null ? null : _objectSpread({}, ipayload);\n if (store.getState().connections.get('currentConnection') >= 0) {\n resolve('ready');\n } else {\n var logonExit = function logonExit() {\n var newState = store.getState().connections;\n var runStatus = newState.get('runStatus');\n if (runStatus === 'ready') {\n unSubscribe();\n if (ipayload != null && ipayload.keepAlive != null) {\n var interval = 300;\n var timeout = 14400;\n if (ipayload.timers != null) {\n var timers = ipayload.timers;\n if (typeof timers === 'string') {\n var opts = timers.split(',');\n interval = parseInt(opts[0]);\n timeout = parseInt(opts[1]);\n } else {\n interval = timers[0];\n timeout = timers[1];\n }\n }\n Object(_keepViyaAlive__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, ipayload.keepAlive, interval, timeout, ipayload.onTimeout);\n }\n resolve(runStatus);\n } else if (runStatus === 'error') {\n unSubscribe();\n reject(newState.get('statusInfo').toJS());\n }\n };\n\n //\n // check url if not password (no window) or when payload is null\n // this allows users of restaf-server|viya-appserverjs to LOGONPAYLOAD unconditionally to logon\n //\n\n if (payload === null || payload.authType === _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_IMPLICIT */ \"v\"]) {\n urlInfo = parseUrlNext();\n if (payload !== null && urlInfo !== null) {\n payload = _objectSpread(_objectSpread({}, payload), urlInfo);\n }\n }\n if (payload == null) {\n if (urlInfo !== null) {\n payload = urlInfo;\n } else {\n payload = {\n host: \"\".concat(window.location.protocol, \"//\").concat(window.location.host),\n authType: _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_SERVER */ \"x\"]\n };\n }\n }\n\n // persist options in payload - currently used for pup support\n\n store.config.options = {};\n if (payload.options != null) {\n store.config.options = _objectSpread({}, payload.options);\n }\n\n // now make the final decision\n if (payload.authType === 'code') {\n payload.authType = 'server';\n }\n switch (payload.authType) {\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_TOKEN */ \"y\"]:\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_SERVER */ \"x\"]:\n if (payload.host == null) {\n payload.host = \"\".concat(window.location.protocol, \"//\").concat(window.location.host);\n }\n break;\n case _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_IMPLICIT */ \"v\"]:\n if (payload.hasOwnProperty('token') === false) {\n implicitLogon = true;\n getToken(payload);\n resolve('Implicit Call');\n }\n break;\n case \"LOGOFF\":\n break;\n default:\n break;\n }\n if (!implicitLogon) {\n action = {\n type: payload.authType === 'LOGOFF' ? _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGOFF */ \"r\"] : _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON */ \"t\"],\n payload: _objectSpread({}, payload)\n };\n action.payload.sslOptions = store.config.hasOwnProperty('sslOptions') ? store.config.sslOptions : null;\n unSubscribe = store.subscribe(logonExit);\n action.storeConfig = store.config;\n // action.type = VIYA_LOGON;\n\n store.dispatch(action);\n }\n }\n });\n};\nfunction getToken(payload) {\n var x = \"\".concat(payload.host, \"/SASLogon/oauth/authorize?response_type=token&client_id=\").concat(payload.clientID);\n //noinspection JSUnresolvedVariable\n if (payload.redirect != null) {\n //noinspection JSUnresolvedVariable\n var redirectUri = \"\".concat(window.location.protocol, \"//\").concat(window.location.host, \"/\").concat(payload.redirect, \"?host=\").concat(payload.host);\n x = \"\".concat(x, \"&redirect_uri=\").concat(redirectUri);\n }\n window.location.replace(x);\n}\nfunction parseUrlNext() {\n if (window == null) {\n return null;\n }\n var url = url_parse__WEBPACK_IMPORTED_MODULE_3___default()(window.location, true);\n var loc = qs__WEBPACK_IMPORTED_MODULE_2___default.a.parse(url.hash);\n var q = url.query;\n if (q.host == null || loc.access_token == null) {\n return null;\n }\n var tokenType = 'bearer';\n if (loc['#token_type'] != null) {\n tokenType = loc['#token_type'];\n } else if (loc['token_type'] != null) {\n tokenType = loc['token_type'];\n }\n var payload = {\n host: q.host,\n authType: _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_IMPLICIT */ \"v\"],\n tokenType: tokenType,\n token: loc.access_token\n };\n return payload;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (logon);\n\n//# sourceURL=webpack://restaf/./store/logon.js?");
1892
1892
 
1893
1893
  /***/ }),
1894
1894
 
@@ -1901,7 +1901,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1901
1901
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1902
1902
 
1903
1903
  "use strict";
1904
- eval("/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getResults */ \"./store/getResults.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nvar Immutable = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\n\n\nvar prepareAction = function prepareAction(store, iroute, actionType, payload, delay, eventHandler, parentRoute, jobContext) {\n var paginator;\n var route;\n var link;\n var serviceName;\n var current;\n if (typeof iroute === 'string') {\n current = Object(_getResults__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, iroute);\n route = iroute;\n } else {\n current = iroute;\n route = current.get('route');\n }\n if (current === null || Immutable.Iterable.isIterable(current) === false) {\n return null;\n }\n /* */\n paginator = current.get('paginator');\n link = current.get('link').toJS();\n if (paginator) {\n route = current.get('parentRoute');\n serviceName = route.split(':/')[0];\n } else {\n var searchPath = route.split(':/');\n serviceName = searchPath[0];\n searchPath.splice(1, 0, store.apiCallNo);\n route = searchPath.join(':/');\n store.apiCallNo++;\n }\n var action = {\n type: actionType,\n delay: delay == null ? 0 : delay,\n paginator: paginator,\n serviceName: serviceName,\n route: route,\n eventHandler: eventHandler,\n parentRoute: parentRoute,\n jobContext: jobContext,\n storeConfig: store.config,\n link: link\n };\n if (link.href.indexOf('casProxy') >= 0) {\n serviceName = 'casProxy';\n }\n var xsrfHeader = Object(_getXsrfData__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(store, serviceName);\n if (payload != null) {\n action.payload = payload;\n }\n if (xsrfHeader !== null) {\n if (payload != null) {\n action.payload.xsrf = xsrfHeader;\n } else {\n action.payload = {\n xsrf: xsrfHeader\n };\n }\n }\n return action;\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (prepareAction);\n\n//# sourceURL=webpack://restaf/./store/prepareAction.js?");
1904
+ eval("/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getResults */ \"./store/getResults.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nvar Immutable = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\n\n\nvar prepareAction = function prepareAction(store, iroute, actionType, payload, delay, eventHandler, parentRoute, jobContext) {\n var paginator;\n var route;\n var link;\n var serviceName;\n var current;\n if (typeof iroute === 'string') {\n current = Object(_getResults__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, iroute);\n route = iroute;\n } else {\n current = iroute;\n route = current.get('route');\n }\n if (current === null || Immutable.Iterable.isIterable(current) === false) {\n return null;\n }\n /* */\n paginator = current.get('paginator');\n link = current.get('link').toJS();\n if (paginator) {\n route = current.get('parentRoute');\n serviceName = route.split(':/')[0];\n } else {\n var searchPath = route.split(':/');\n serviceName = searchPath[0];\n searchPath.splice(1, 0, store.apiCallNo);\n route = searchPath.join(':/');\n store.apiCallNo++;\n }\n var action = {\n type: actionType,\n delay: delay == null ? 0 : delay,\n paginator: paginator,\n serviceName: serviceName,\n route: route,\n eventHandler: eventHandler,\n parentRoute: parentRoute,\n jobContext: jobContext,\n storeConfig: store.config,\n link: link\n };\n if (link.href.indexOf('casProxy') >= 0) {\n serviceName = 'casProxy';\n }\n var xsrfHeader = Object(_getXsrfData__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"])(store, serviceName);\n if (payload != null) {\n action.payload = payload;\n }\n if (xsrfHeader !== null) {\n if (payload != null) {\n action.payload.xsrf = xsrfHeader;\n } else {\n action.payload = {\n xsrf: xsrfHeader\n };\n }\n }\n return action;\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (prepareAction);\n\n//# sourceURL=webpack://restaf/./store/prepareAction.js?");
1905
1905
 
1906
1906
  /***/ }),
1907
1907
 
@@ -1914,7 +1914,7 @@ eval("/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_0__ = __webp
1914
1914
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1915
1915
 
1916
1916
  "use strict";
1917
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! axios */ \"../../../node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! https */ \"https\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_4__);\n/*\r\n * ------------------------------------------------------------------------------------\r\n * * Copyright (c) SAS Institute Inc.\r\n * * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * * you may not use this file except in compliance with the License.\r\n * * You may obtain a copy of the License at\r\n * *\r\n * * http://www.apache.org/licenses/LICENSE-2.0\r\n * *\r\n * * Unless required by applicable law or agreed to in writing, software\r\n * * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ----------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\nfunction request(_x, _x2, _x3) {\n return _request.apply(this, arguments);\n}\nfunction _request() {\n _request = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(store, payload, reducer) {\n var config, c, opt, agent, r;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n config = _objectSpread({}, payload);\n if (payload.url.indexOf('https') !== -1) {\n c = store.config;\n opt = {};\n if (c.sslOptions != null) {\n opt = c.sslOptions;\n }\n agent = new https__WEBPACK_IMPORTED_MODULE_4___default.a.Agent(opt);\n config.httpsAgent = agent;\n }\n _context.next = 4;\n return axios__WEBPACK_IMPORTED_MODULE_3___default()(config);\n case 4:\n r = _context.sent;\n return _context.abrupt(\"return\", reducer == null ? r : reducer(r));\n case 6:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _request.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (request);\n\n//# sourceURL=webpack://restaf/./store/request.js?");
1917
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! axios */ \"../../../node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! https */ \"https\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_4__);\n/*\r\n * ------------------------------------------------------------------------------------\r\n * * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved * * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * * you may not use this file except in compliance with the License.\r\n * * You may obtain a copy of the License at\r\n * *\r\n * * http://www.apache.org/licenses/LICENSE-2.0\r\n * *\r\n * * Unless required by applicable law or agreed to in writing, software\r\n * * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ----------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\nfunction request(_x, _x2, _x3) {\n return _request.apply(this, arguments);\n}\nfunction _request() {\n _request = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(store, payload, reducer) {\n var config, c, opt, agent, r;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n config = _objectSpread({}, payload);\n if (payload.url.indexOf('https') !== -1) {\n c = store.config;\n opt = {};\n if (c.sslOptions != null) {\n opt = c.sslOptions;\n }\n agent = new https__WEBPACK_IMPORTED_MODULE_4___default.a.Agent(opt);\n config.httpsAgent = agent;\n }\n _context.next = 4;\n return axios__WEBPACK_IMPORTED_MODULE_3___default()(config);\n case 4:\n r = _context.sent;\n return _context.abrupt(\"return\", reducer == null ? r : reducer(r));\n case 6:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _request.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (request);\n\n//# sourceURL=webpack://restaf/./store/request.js?");
1918
1918
 
1919
1919
  /***/ }),
1920
1920
 
@@ -1927,7 +1927,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1927
1927
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1928
1928
 
1929
1929
  "use strict";
1930
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/* harmony import */ var _apiCallAll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCallAll */ \"./store/apiCallAll.js\");\n/* harmony import */ var _runAction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./runAction */ \"./store/runAction.js\");\n/* harmony import */ var _apiSubmit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./apiSubmit */ \"./store/apiSubmit.js\");\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/* harmony import */ var _jobStateAll__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./jobStateAll */ \"./store/jobStateAll.js\");\n/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./request */ \"./store/request.js\");\n/* harmony import */ var _getServices__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./getServices */ \"./store/getServices.js\");\n/* harmony import */ var _addServices__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./addServices */ \"./store/addServices.js\");\n/* harmony import */ var _getServiceRoot__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./getServiceRoot */ \"./store/getServiceRoot.js\");\n/* harmony import */ var _logon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./logon */ \"./store/logon.js\");\n/* harmony import */ var _logoff__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./logoff */ \"./store/logoff.js\");\n/* harmony import */ var _endStore__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./endStore */ \"./store/endStore.js\");\n/* harmony import */ var _routeToObj__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./routeToObj */ \"./store/routeToObj.js\");\n/* harmony import */ var _selectLogonInfo__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _appData__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./appData */ \"./store/appData.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/* harmony import */ var _deleteRafObject__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./deleteRafObject */ \"./store/deleteRafObject.js\");\n/*\r\n* ------------------------------------------------------------------------------------\r\n* Copyright (c) SAS Institute Inc.\r\n* Licensed under the Apache License, Version 2.0 (the \"License\");\r\n* you may not use this file except in compliance with the License.\r\n* You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing, software\r\n* distributed under the License is distributed on an \"AS IS\" BASIS,\r\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n* See the License for the specific language governing permissions and\r\n* limitations under the License.\r\n* ---------------------------------------------------------------------------------------\r\n*\r\n*/\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\n\n\n\n\n// import jobStatus from './jobStatus';\n\n\n\n\n\n\n\n\n\n\n\nfunction restoreStore(store) {\n var newx = {\n logon: _logon__WEBPACK_IMPORTED_MODULE_12__[/* default */ \"a\"].bind(null, store),\n logoff: _logoff__WEBPACK_IMPORTED_MODULE_13__[/* default */ \"a\"].bind(null, store),\n connection: loggedOn.bind(null, store),\n addServices: _addServices__WEBPACK_IMPORTED_MODULE_10__[/* default */ \"a\"].bind(null, store),\n getServices: _getServices__WEBPACK_IMPORTED_MODULE_9__[/* default */ \"a\"].bind(null, store),\n apiCall: _apiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"].bind(null, store),\n runAction: _runAction__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"].bind(null, store),\n apiCallAll: _apiCallAll__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"].bind(null, store),\n rafObject: _routeToObj__WEBPACK_IMPORTED_MODULE_15__[/* default */ \"a\"].bind(null, store),\n deleteRafObject: _deleteRafObject__WEBPACK_IMPORTED_MODULE_19__[/* default */ \"a\"].bind(null, store),\n jobState: _jobState__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"].bind(null, store),\n jobStateAll: _jobStateAll__WEBPACK_IMPORTED_MODULE_7__[/* default */ \"a\"].bind(null, store),\n submit: _apiSubmit__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"].bind(null, store),\n submitStatus: getApiStatus.bind(null, store),\n setAppData: _appData__WEBPACK_IMPORTED_MODULE_17__[/* default */ \"a\"].bind(null, store, _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* APP_DATA */ \"k\"]),\n getAppData: getAppData.bind(null, store),\n setXsrfData: _appData__WEBPACK_IMPORTED_MODULE_17__[/* default */ \"a\"].bind(null, store, _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* API_XSRF */ \"h\"]),\n getXsrfData: _getXsrfData__WEBPACK_IMPORTED_MODULE_18__[/* default */ \"a\"].bind(null, store),\n getState: store.getState,\n endStore: _endStore__WEBPACK_IMPORTED_MODULE_14__[/* default */ \"a\"].bind(null, store),\n store: store,\n getServiceRoot: _getServiceRoot__WEBPACK_IMPORTED_MODULE_11__[/* default */ \"a\"].bind(null, store),\n request: _request__WEBPACK_IMPORTED_MODULE_8__[/* default */ \"a\"]\n };\n var newStore = _objectSpread({\n store: store\n }, newx);\n return newStore;\n}\nfunction loggedOn(store) {\n return Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_16__[/* default */ \"a\"])(store.getState());\n}\nfunction getAppData(store) {\n var list = store.getState()[_actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* APP_DATA_ROOT */ \"l\"]];\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n var path = args.length > 0 ? ['userData'].concat(args) : ['userData'];\n return list.getIn(path, null);\n}\nfunction getApiStatus(store, jobContext) {\n var list = store.getState()[_actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* API_STATUS_ROOT */ \"f\"]];\n var result = null;\n if (!jobContext) {\n result = list.get('routeList');\n } else {\n var r = list.getIn(['userData', jobContext], null);\n if (r !== null) {\n result = r.toJS();\n result.job = Object(_routeToObj__WEBPACK_IMPORTED_MODULE_15__[/* default */ \"a\"])(store, result.route);\n }\n }\n return result;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (restoreStore);\n\n//# sourceURL=webpack://restaf/./store/restoreStore.js?");
1930
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/* harmony import */ var _apiCallAll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCallAll */ \"./store/apiCallAll.js\");\n/* harmony import */ var _runAction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./runAction */ \"./store/runAction.js\");\n/* harmony import */ var _apiSubmit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./apiSubmit */ \"./store/apiSubmit.js\");\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/* harmony import */ var _jobStateAll__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./jobStateAll */ \"./store/jobStateAll.js\");\n/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./request */ \"./store/request.js\");\n/* harmony import */ var _getServices__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./getServices */ \"./store/getServices.js\");\n/* harmony import */ var _addServices__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./addServices */ \"./store/addServices.js\");\n/* harmony import */ var _getServiceRoot__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./getServiceRoot */ \"./store/getServiceRoot.js\");\n/* harmony import */ var _logon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./logon */ \"./store/logon.js\");\n/* harmony import */ var _logoff__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./logoff */ \"./store/logoff.js\");\n/* harmony import */ var _endStore__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./endStore */ \"./store/endStore.js\");\n/* harmony import */ var _routeToObj__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./routeToObj */ \"./store/routeToObj.js\");\n/* harmony import */ var _selectLogonInfo__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _appData__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./appData */ \"./store/appData.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/* harmony import */ var _deleteRafObject__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./deleteRafObject */ \"./store/deleteRafObject.js\");\n/*\r\n* ------------------------------------------------------------------------------------\r\n* Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n* You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing, software\r\n* distributed under the License is distributed on an \"AS IS\" BASIS,\r\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n* See the License for the specific language governing permissions and\r\n* limitations under the License.\r\n* ---------------------------------------------------------------------------------------\r\n*\r\n*/\n\n\n\n\nfunction 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; }\nfunction _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) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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; }\n\n\n\n\n\n\n\n\n// import jobStatus from './jobStatus';\n\n\n\n\n\n\n\n\n\n\n\nfunction restoreStore(store) {\n var newx = {\n logon: _logon__WEBPACK_IMPORTED_MODULE_12__[/* default */ \"a\"].bind(null, store),\n logoff: _logoff__WEBPACK_IMPORTED_MODULE_13__[/* default */ \"a\"].bind(null, store),\n connection: loggedOn.bind(null, store),\n addServices: _addServices__WEBPACK_IMPORTED_MODULE_10__[/* default */ \"a\"].bind(null, store),\n getServices: _getServices__WEBPACK_IMPORTED_MODULE_9__[/* default */ \"a\"].bind(null, store),\n apiCall: _apiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"].bind(null, store),\n runAction: _runAction__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"].bind(null, store),\n apiCallAll: _apiCallAll__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"].bind(null, store),\n rafObject: _routeToObj__WEBPACK_IMPORTED_MODULE_15__[/* default */ \"a\"].bind(null, store),\n deleteRafObject: _deleteRafObject__WEBPACK_IMPORTED_MODULE_19__[/* default */ \"a\"].bind(null, store),\n jobState: _jobState__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"].bind(null, store),\n jobStateAll: _jobStateAll__WEBPACK_IMPORTED_MODULE_7__[/* default */ \"a\"].bind(null, store),\n submit: _apiSubmit__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"].bind(null, store),\n submitStatus: getApiStatus.bind(null, store),\n setAppData: _appData__WEBPACK_IMPORTED_MODULE_17__[/* default */ \"a\"].bind(null, store, _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* APP_DATA */ \"k\"]),\n getAppData: getAppData.bind(null, store),\n setXsrfData: _appData__WEBPACK_IMPORTED_MODULE_17__[/* default */ \"a\"].bind(null, store, _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* API_XSRF */ \"h\"]),\n getXsrfData: _getXsrfData__WEBPACK_IMPORTED_MODULE_18__[/* default */ \"a\"].bind(null, store),\n getState: store.getState,\n endStore: _endStore__WEBPACK_IMPORTED_MODULE_14__[/* default */ \"a\"].bind(null, store),\n store: store,\n getServiceRoot: _getServiceRoot__WEBPACK_IMPORTED_MODULE_11__[/* default */ \"a\"].bind(null, store),\n request: _request__WEBPACK_IMPORTED_MODULE_8__[/* default */ \"a\"]\n };\n var newStore = _objectSpread({\n store: store\n }, newx);\n return newStore;\n}\nfunction loggedOn(store) {\n return Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_16__[/* default */ \"a\"])(store.getState());\n}\nfunction getAppData(store) {\n var list = store.getState()[_actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* APP_DATA_ROOT */ \"l\"]];\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n var path = args.length > 0 ? ['userData'].concat(args) : ['userData'];\n return list.getIn(path, null);\n}\nfunction getApiStatus(store, jobContext) {\n var list = store.getState()[_actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* API_STATUS_ROOT */ \"f\"]];\n var result = null;\n if (!jobContext) {\n result = list.get('routeList');\n } else {\n var r = list.getIn(['userData', jobContext], null);\n if (r !== null) {\n result = r.toJS();\n result.job = Object(_routeToObj__WEBPACK_IMPORTED_MODULE_15__[/* default */ \"a\"])(store, result.route);\n }\n }\n return result;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (restoreStore);\n\n//# sourceURL=webpack://restaf/./store/restoreStore.js?");
1931
1931
 
1932
1932
  /***/ }),
1933
1933
 
@@ -1940,7 +1940,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1940
1940
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1941
1941
 
1942
1942
  "use strict";
1943
- eval("/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./extendFolder */ \"./store/extendFolder.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction routeToObj(store, route) {\n var path = route.split(':/');\n var service = path.shift();\n var folder = store.getState()[service];\n folder = path.length > 0 ? folder.getIn(path) : folder;\n return Object(_extendFolder__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, folder);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (routeToObj);\n\n//# sourceURL=webpack://restaf/./store/routeToObj.js?");
1943
+ eval("/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./extendFolder */ \"./store/extendFolder.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction routeToObj(store, route) {\n var path = route.split(':/');\n var service = path.shift();\n var folder = store.getState()[service];\n folder = path.length > 0 ? folder.getIn(path) : folder;\n return Object(_extendFolder__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"])(store, folder);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (routeToObj);\n\n//# sourceURL=webpack://restaf/./store/routeToObj.js?");
1944
1944
 
1945
1945
  /***/ }),
1946
1946
 
@@ -1953,7 +1953,7 @@ eval("/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_0__ = __we
1953
1953
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1954
1954
 
1955
1955
  "use strict";
1956
- eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * * Copyright (c) SAS Institute Inc.\r\n * * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * * you may not use this file except in compliance with the License.\r\n * * You may obtain a copy of the License at\r\n * *\r\n * * http://www.apache.org/licenses/LICENSE-2.0\r\n * *\r\n * * Unless required by applicable law or agreed to in writing, software\r\n * * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ----------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n/**\r\n * @Description Run a given action\r\n * @async\r\n * @module runAction\r\n * @category restaf/core\r\n * @param {rafObject} session - cas session\r\n * @param {casPayload} payload - payload for cas actions\r\n * @returns {promise} returns rafObject\r\n * @example\r\n * \r\nlet restaf = require(\"@sassoftware/restaf\");\r\nlet payload = require('./config')();\r\nlet {casSetup} = require(\"@sassoftware/restaflib\");\r\n\r\nlet prtUtil = require(\"./prtUtil\");\r\n\r\nlet store = restaf.initStore({casProxy: true});\r\nasync function example () {\r\n console.log(payload);\r\n let { session } = await casSetup(store, payload, \"cas\");\r\n\r\n let p = {\r\n action: \"echo\",\r\n data : { code: \"data casuser.data1; x=1;put x= ; run; \" }\r\n };\r\n \r\n let r = await store.runAction(session, p);\r\n console.log(JSON.stringify(r.items(), null, 4));\r\n return \"done\";\r\n}\r\n\r\nexample()\r\n .then(r => console.log(r))\r\n .catch(err => console.log(err));\r\n \r\n */\nfunction runAction(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {\n return _runAction.apply(this, arguments);\n}\nfunction _runAction() {\n _runAction = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, session, payload, context, onCompletion, maxTries, delay, progress) {\n var actionResult;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n actionResult = null;\n if (!(maxTries != null)) {\n _context.next = 7;\n break;\n }\n _context.next = 4;\n return submitAction(store, session, payload, context, maxTries, delay, progress);\n case 4:\n actionResult = _context.sent;\n _context.next = 10;\n break;\n case 7:\n _context.next = 9;\n return Object(_apiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, session.links('execute'), payload, 0);\n case 9:\n actionResult = _context.sent;\n case 10:\n if (!(casError(actionResult) === true)) {\n _context.next = 13;\n break;\n }\n console.log(JSON.stringify(actionResult.items(), null, 4));\n throw JSON.stringify(actionResult.items('disposition').toJS());\n case 13:\n if (onCompletion != null) {\n onCompletion(context, actionResult);\n }\n return _context.abrupt(\"return\", actionResult);\n case 15:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _runAction.apply(this, arguments);\n}\nfunction casError(actionResult) {\n var statusCode = actionResult.items('disposition', 'statusCode');\n var severity = actionResult.items('disposition', 'severity').toLowerCase();\n return statusCode !== 0 || severity === 'error' ? true : false;\n}\nfunction submitAction(_x9, _x10, _x11, _x12, _x13, _x14, _x15) {\n return _submitAction.apply(this, arguments);\n}\nfunction _submitAction() {\n _submitAction = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee2(store, session, payload, context, maxTries, delay, progress) {\n var actionPromise, r, result;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n actionPromise = Object(_apiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, session.links('execute'), payload, 0);\n _context2.next = 3;\n return Object(_jobState__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, session, null, maxTries, delay, progress, context, true);\n case 3:\n r = _context2.sent;\n result = actionPromise.then(function (result) {\n return result;\n }, function (err) {\n return err;\n });\n return _context2.abrupt(\"return\", result);\n case 6:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return _submitAction.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (runAction);\n\n//# sourceURL=webpack://restaf/./store/runAction.js?");
1956
+ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved * * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * * you may not use this file except in compliance with the License.\r\n * * You may obtain a copy of the License at\r\n * *\r\n * * http://www.apache.org/licenses/LICENSE-2.0\r\n * *\r\n * * Unless required by applicable law or agreed to in writing, software\r\n * * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ----------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n/**\r\n * @Description Run a given action\r\n * @async\r\n * @module runAction\r\n * @category restaf/core\r\n * @param {rafObject} session - cas session\r\n * @param {casPayload} payload - payload for cas actions\r\n * @returns {promise} returns rafObject\r\n * @example\r\n * \r\nlet restaf = require(\"@sassoftware/restaf\");\r\nlet payload = require('./config')();\r\nlet {casSetup} = require(\"@sassoftware/restaflib\");\r\n\r\nlet prtUtil = require(\"./prtUtil\");\r\n\r\nlet store = restaf.initStore({casProxy: true});\r\nasync function example () {\r\n console.log(payload);\r\n let { session } = await casSetup(store, payload, \"cas\");\r\n\r\n let p = {\r\n action: \"echo\",\r\n data : { code: \"data casuser.data1; x=1;put x= ; run; \" }\r\n };\r\n \r\n let r = await store.runAction(session, p);\r\n console.log(JSON.stringify(r.items(), null, 4));\r\n return \"done\";\r\n}\r\n\r\nexample()\r\n .then(r => console.log(r))\r\n .catch(err => console.log(err));\r\n \r\n */\nfunction runAction(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {\n return _runAction.apply(this, arguments);\n}\nfunction _runAction() {\n _runAction = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, session, payload, context, onCompletion, maxTries, delay, progress) {\n var actionResult;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n actionResult = null;\n if (!(maxTries != null)) {\n _context.next = 7;\n break;\n }\n _context.next = 4;\n return submitAction(store, session, payload, context, maxTries, delay, progress);\n case 4:\n actionResult = _context.sent;\n _context.next = 10;\n break;\n case 7:\n _context.next = 9;\n return Object(_apiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, session.links('execute'), payload, 0);\n case 9:\n actionResult = _context.sent;\n case 10:\n if (!(casError(actionResult) === true)) {\n _context.next = 13;\n break;\n }\n console.log(JSON.stringify(actionResult.items(), null, 4));\n throw JSON.stringify(actionResult.items('disposition').toJS());\n case 13:\n if (onCompletion != null) {\n onCompletion(context, actionResult);\n }\n return _context.abrupt(\"return\", actionResult);\n case 15:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _runAction.apply(this, arguments);\n}\nfunction casError(actionResult) {\n var statusCode = actionResult.items('disposition', 'statusCode');\n var severity = actionResult.items('disposition', 'severity').toLowerCase();\n return statusCode !== 0 || severity === 'error' ? true : false;\n}\nfunction submitAction(_x9, _x10, _x11, _x12, _x13, _x14, _x15) {\n return _submitAction.apply(this, arguments);\n}\nfunction _submitAction() {\n _submitAction = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee2(store, session, payload, context, maxTries, delay, progress) {\n var actionPromise, r, result;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n actionPromise = Object(_apiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, session.links('execute'), payload, 0);\n _context2.next = 3;\n return Object(_jobState__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, session, null, maxTries, delay, progress, context, true);\n case 3:\n r = _context2.sent;\n result = actionPromise.then(function (result) {\n return result;\n }, function (err) {\n return err;\n });\n return _context2.abrupt(\"return\", result);\n case 6:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return _submitAction.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (runAction);\n\n//# sourceURL=webpack://restaf/./store/runAction.js?");
1957
1957
 
1958
1958
  /***/ }),
1959
1959
 
@@ -1966,7 +1966,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
1966
1966
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1967
1967
 
1968
1968
  "use strict";
1969
- eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return selectLogonInfo; });\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nfunction selectLogonInfo(mainState) {\n var state = mainState.connections;\n var currentNo = state.get('currentConnection');\n return currentNo === -1 ? null : state.get('connections').get(currentNo).toJS().logonInfo;\n}\n\n//# sourceURL=webpack://restaf/./store/selectLogonInfo.js?");
1969
+ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return selectLogonInfo; });\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nfunction selectLogonInfo(mainState) {\n var state = mainState.connections;\n var currentNo = state.get('currentConnection');\n return currentNo === -1 ? null : state.get('connections').get(currentNo).toJS().logonInfo;\n}\n\n//# sourceURL=webpack://restaf/./store/selectLogonInfo.js?");
1970
1970
 
1971
1971
  /***/ }),
1972
1972
 
@@ -1979,7 +1979,7 @@ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__,
1979
1979
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1980
1980
 
1981
1981
  "use strict";
1982
- eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../serverCalls */ \"./serverCalls/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nvar SASLogoffOauthLink = function SASLogoffOauthLink() {\n return {\n logoff: _serverCalls__WEBPACK_IMPORTED_MODULE_0__[/* request */ \"b\"],\n link: {\n href: '/SASLogon/logout',\n method: 'GET',\n rel: 'logoff',\n responseType: 'application/json',\n uri: '/SASLogon/logout'\n }\n };\n};\n/*\r\n * redirectUri not specified - /SASLogon/oauth/token?\r\n */\n/* harmony default export */ __webpack_exports__[\"a\"] = (SASLogoffOauthLink);\n\n//# sourceURL=webpack://restaf/./utils/SASLogoffOauthLink.js?");
1982
+ eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../serverCalls */ \"./serverCalls/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nvar SASLogoffOauthLink = function SASLogoffOauthLink() {\n return {\n logoff: _serverCalls__WEBPACK_IMPORTED_MODULE_0__[/* request */ \"b\"],\n link: {\n href: '/SASLogon/logout',\n method: 'GET',\n rel: 'logoff',\n responseType: 'application/json',\n uri: '/SASLogon/logout'\n }\n };\n};\n/*\r\n * redirectUri not specified - /SASLogon/oauth/token?\r\n */\n/* harmony default export */ __webpack_exports__[\"a\"] = (SASLogoffOauthLink);\n\n//# sourceURL=webpack://restaf/./utils/SASLogoffOauthLink.js?");
1983
1983
 
1984
1984
  /***/ }),
1985
1985
 
@@ -1992,7 +1992,7 @@ eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __web
1992
1992
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1993
1993
 
1994
1994
  "use strict";
1995
- eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../serverCalls */ \"./serverCalls/index.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\nvar SASLogonOauthLink = function SASLogonOauthLink(type) {\n if (type === _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_PASSWORD */ \"w\"] || type == undefined) {\n return {\n logon: _serverCalls__WEBPACK_IMPORTED_MODULE_0__[/* trustedGrant */ \"c\"],\n link: {\n href: '/SASLogon/oauth/token',\n method: 'POST',\n rel: 'logon',\n responseType: 'application/json',\n type: 'application/x-www-form-urlencoded',\n uri: '/SASLogon/oauth/token'\n }\n };\n } else {\n return {\n keepAlive: _serverCalls__WEBPACK_IMPORTED_MODULE_0__[/* keepAlive */ \"a\"]\n };\n }\n};\n\n/*\r\nconst SASLogoffOauthLink = function () {\r\n return (\r\n {\r\n logoff: request,\r\n link : {\r\n href : '/SASLogon/logout',\r\n method : 'GET',\r\n rel : 'logon',\r\n responseType: 'application/json',\r\n uri : '/SASLogon/logout'\r\n }\r\n });\r\n\r\n};\r\n*/\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (SASLogonOauthLink);\n\n//# sourceURL=webpack://restaf/./utils/SASLogonOauthLink.js?");
1995
+ eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../serverCalls */ \"./serverCalls/index.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\nvar SASLogonOauthLink = function SASLogonOauthLink(type) {\n if (type === _actionTypes__WEBPACK_IMPORTED_MODULE_1__[/* VIYA_LOGON_PASSWORD */ \"w\"] || type == undefined) {\n return {\n logon: _serverCalls__WEBPACK_IMPORTED_MODULE_0__[/* trustedGrant */ \"c\"],\n link: {\n href: '/SASLogon/oauth/token',\n method: 'POST',\n rel: 'logon',\n responseType: 'application/json',\n type: 'application/x-www-form-urlencoded',\n uri: '/SASLogon/oauth/token'\n }\n };\n } else {\n return {\n keepAlive: _serverCalls__WEBPACK_IMPORTED_MODULE_0__[/* keepAlive */ \"a\"]\n };\n }\n};\n\n/*\r\nconst SASLogoffOauthLink = function () {\r\n return (\r\n {\r\n logoff: request,\r\n link : {\r\n href : '/SASLogon/logout',\r\n method : 'GET',\r\n rel : 'logon',\r\n responseType: 'application/json',\r\n uri : '/SASLogon/logout'\r\n }\r\n });\r\n\r\n};\r\n*/\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (SASLogonOauthLink);\n\n//# sourceURL=webpack://restaf/./utils/SASLogonOauthLink.js?");
1996
1996
 
1997
1997
  /***/ }),
1998
1998
 
@@ -2005,7 +2005,7 @@ eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __web
2005
2005
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2006
2006
 
2007
2007
  "use strict";
2008
- eval("/* harmony import */ var _statusFuncs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./statusFuncs */ \"./utils/statusFuncs.js\");\n/* harmony import */ var _statusFuncs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_statusFuncs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return _statusFuncs__WEBPACK_IMPORTED_MODULE_0__[\"setGoodStatus\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return _statusFuncs__WEBPACK_IMPORTED_MODULE_0__[\"setBadStatus\"]; });\n\n/* harmony import */ var _SASLogonOauthLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SASLogonOauthLink */ \"./utils/SASLogonOauthLink.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return _SASLogonOauthLink__WEBPACK_IMPORTED_MODULE_1__[\"a\"]; });\n\n/* harmony import */ var _SASLogoffOauthLink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SASLogoffOauthLink */ \"./utils/SASLogoffOauthLink.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return _SASLogoffOauthLink__WEBPACK_IMPORTED_MODULE_2__[\"a\"]; });\n\n/* harmony import */ var _routeOrFolder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./routeOrFolder */ \"./utils/routeOrFolder.js\");\n/* harmony import */ var _rootStruct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./rootStruct */ \"./utils/rootStruct.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"e\", function() { return _rootStruct__WEBPACK_IMPORTED_MODULE_4__[\"b\"]; });\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://restaf/./utils/index.js?");
2008
+ eval("/* harmony import */ var _statusFuncs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./statusFuncs */ \"./utils/statusFuncs.js\");\n/* harmony import */ var _statusFuncs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_statusFuncs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return _statusFuncs__WEBPACK_IMPORTED_MODULE_0__[\"setGoodStatus\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return _statusFuncs__WEBPACK_IMPORTED_MODULE_0__[\"setBadStatus\"]; });\n\n/* harmony import */ var _SASLogonOauthLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SASLogonOauthLink */ \"./utils/SASLogonOauthLink.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return _SASLogonOauthLink__WEBPACK_IMPORTED_MODULE_1__[\"a\"]; });\n\n/* harmony import */ var _SASLogoffOauthLink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SASLogoffOauthLink */ \"./utils/SASLogoffOauthLink.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return _SASLogoffOauthLink__WEBPACK_IMPORTED_MODULE_2__[\"a\"]; });\n\n/* harmony import */ var _routeOrFolder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./routeOrFolder */ \"./utils/routeOrFolder.js\");\n/* harmony import */ var _rootStruct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./rootStruct */ \"./utils/rootStruct.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"e\", function() { return _rootStruct__WEBPACK_IMPORTED_MODULE_4__[\"b\"]; });\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://restaf/./utils/index.js?");
2009
2009
 
2010
2010
  /***/ }),
2011
2011
 
@@ -2018,7 +2018,7 @@ eval("/* harmony import */ var _statusFuncs__WEBPACK_IMPORTED_MODULE_0__ = __web
2018
2018
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2019
2019
 
2020
2020
  "use strict";
2021
- eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return tLinkStruct; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return itemsStruct; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return statusInfoStruct; });\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction tLinkStruct(name, type, service) {\n if (service === _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* APP_DATA_ROOT */ \"l\"] || service === _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_STATUS_ROOT */ \"f\"] || service === _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_XSRF_ROOT */ \"i\"]) {\n return {\n structType: service,\n type: service,\n route: service,\n routeList: [],\n userData: {}\n };\n }\n var relPath = {\n structType: type,\n type: type,\n title: name,\n method: 'GET',\n /* for cmd tLinks - useful in UI */\n iconfig: {},\n /* input config */\n payload: {},\n statusInfo: statusInfoStruct(),\n runStatus: 'idle',\n parentRoute: '',\n route: '',\n resultType: '',\n links: {},\n /* same structures */\n /* cmds : {}, */\n scrollCmds: {},\n /* same structure */\n paginator: false,\n itemsList: [],\n items: [],\n /* items Struct */\n details: {},\n stateEvent: null,\n responseHeaders: {},\n link: null,\n raw: {}\n };\n if (arguments.length === 3) {\n relPath.link = {\n method: 'GET',\n title: service,\n href: '/' + service + '/',\n rel: 'root',\n type: 'application/vnd.sas.api',\n uri: '/' + service + '/'\n };\n relPath.route = \"\".concat(service, \":/\").concat(service);\n relPath.parentRoute = service;\n }\n return relPath;\n}\n\n/* also for info */\n\nfunction itemsStruct() {\n return {\n name: '',\n type: '',\n resultType: '',\n cmds: null,\n data: null\n };\n}\nfunction statusInfoStruct() {\n return {\n status: 0,\n statusText: ' ',\n error: false,\n details: ' '\n };\n}\n\n\n//# sourceURL=webpack://restaf/./utils/rootStruct.js?");
2021
+ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return tLinkStruct; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return itemsStruct; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return statusInfoStruct; });\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction tLinkStruct(name, type, service) {\n if (service === _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* APP_DATA_ROOT */ \"l\"] || service === _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_STATUS_ROOT */ \"f\"] || service === _actionTypes__WEBPACK_IMPORTED_MODULE_0__[/* API_XSRF_ROOT */ \"i\"]) {\n return {\n structType: service,\n type: service,\n route: service,\n routeList: [],\n userData: {}\n };\n }\n var relPath = {\n structType: type,\n type: type,\n title: name,\n method: 'GET',\n /* for cmd tLinks - useful in UI */\n iconfig: {},\n /* input config */\n payload: {},\n statusInfo: statusInfoStruct(),\n runStatus: 'idle',\n parentRoute: '',\n route: '',\n resultType: '',\n links: {},\n /* same structures */\n /* cmds : {}, */\n scrollCmds: {},\n /* same structure */\n paginator: false,\n itemsList: [],\n items: [],\n /* items Struct */\n details: {},\n stateEvent: null,\n responseHeaders: {},\n link: null,\n raw: {}\n };\n if (arguments.length === 3) {\n relPath.link = {\n method: 'GET',\n title: service,\n href: '/' + service + '/',\n rel: 'root',\n type: 'application/vnd.sas.api',\n uri: '/' + service + '/'\n };\n relPath.route = \"\".concat(service, \":/\").concat(service);\n relPath.parentRoute = service;\n }\n return relPath;\n}\n\n/* also for info */\n\nfunction itemsStruct() {\n return {\n name: '',\n type: '',\n resultType: '',\n cmds: null,\n data: null\n };\n}\nfunction statusInfoStruct() {\n return {\n status: 0,\n statusText: ' ',\n error: false,\n details: ' '\n };\n}\n\n\n//# sourceURL=webpack://restaf/./utils/rootStruct.js?");
2022
2022
 
2023
2023
  /***/ }),
2024
2024
 
@@ -2030,7 +2030,7 @@ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__,
2030
2030
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2031
2031
 
2032
2032
  "use strict";
2033
- eval("/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nvar Immutable = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\nfunction routeOrFolder(iroute) {\n var route = null;\n if (typeof iroute === 'string') {\n route = iroute;\n } else {\n if (Immutable.Iterable.isIterable(iroute) === true) {\n route = iroute.get('route', null);\n }\n }\n return route;\n}\n/* unused harmony default export */ var _unused_webpack_default_export = (routeOrFolder);\n\n//# sourceURL=webpack://restaf/./utils/routeOrFolder.js?");
2033
+ eval("/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nvar Immutable = __webpack_require__(/*! immutable */ \"../../../node_modules/immutable/dist/immutable.es.js\");\nfunction routeOrFolder(iroute) {\n var route = null;\n if (typeof iroute === 'string') {\n route = iroute;\n } else {\n if (Immutable.Iterable.isIterable(iroute) === true) {\n route = iroute.get('route', null);\n }\n }\n return route;\n}\n/* unused harmony default export */ var _unused_webpack_default_export = (routeOrFolder);\n\n//# sourceURL=webpack://restaf/./utils/routeOrFolder.js?");
2034
2034
 
2035
2035
  /***/ }),
2036
2036
 
@@ -2043,7 +2043,7 @@ eval("/*\r\n * -----------------------------------------------------------------
2043
2043
  /***/ (function(module, exports, __webpack_require__) {
2044
2044
 
2045
2045
  "use strict";
2046
- eval("/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright (c) SAS Institute Inc.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nexports.setGoodStatus = function (payload) {\n return {\n status: payload.status,\n statusText: payload.statusText,\n detail: ' ',\n error: false\n };\n};\nexports.setBadStatus = function (payload) {\n var code = 0;\n var detail = ' ';\n if (payload.hasOwnProperty('response') && payload.response != null) {\n code = payload.response.status;\n detail = payload.response.hasOwnProperty('data') ? payload.response.data : payload.response.statusText;\n }\n return {\n status: code,\n statusText: payload.message,\n detail: detail,\n error: true\n };\n};\n\n//# sourceURL=webpack://restaf/./utils/statusFuncs.js?");
2046
+ eval("/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\nexports.setGoodStatus = function (payload) {\n return {\n status: payload.status,\n statusText: payload.statusText,\n detail: ' ',\n error: false\n };\n};\nexports.setBadStatus = function (payload) {\n var code = 0;\n var detail = ' ';\n if (payload.hasOwnProperty('response') && payload.response != null) {\n code = payload.response.status;\n detail = payload.response.hasOwnProperty('data') ? payload.response.data : payload.response.statusText;\n }\n return {\n status: code,\n statusText: payload.message,\n detail: detail,\n error: true\n };\n};\n\n//# sourceURL=webpack://restaf/./utils/statusFuncs.js?");
2047
2047
 
2048
2048
  /***/ }),
2049
2049