@sassoftware/restaf 4.9.2 → 4.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/restaf.js CHANGED
@@ -1600,7 +1600,7 @@ eval("module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnPro
1600
1600
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1601
1601
 
1602
1602
  "use strict";
1603
- 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?");
1603
+ 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?");
1604
1604
 
1605
1605
  /***/ }),
1606
1606
 
@@ -1613,7 +1613,7 @@ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__,
1613
1613
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1614
1614
 
1615
1615
  "use strict";
1616
- 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?");
1616
+ 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?");
1617
1617
 
1618
1618
  /***/ }),
1619
1619
 
@@ -1626,7 +1626,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _sto
1626
1626
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1627
1627
 
1628
1628
  "use strict";
1629
- 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?");
1629
+ 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?");
1630
1630
 
1631
1631
  /***/ }),
1632
1632
 
@@ -1639,7 +1639,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1639
1639
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1640
1640
 
1641
1641
  "use strict";
1642
- 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?");
1642
+ 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?");
1643
1643
 
1644
1644
  /***/ }),
1645
1645
 
@@ -1652,7 +1652,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1652
1652
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1653
1653
 
1654
1654
  "use strict";
1655
- 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?");
1655
+ 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?");
1656
1656
 
1657
1657
  /***/ }),
1658
1658
 
@@ -1665,7 +1665,7 @@ eval("/* harmony import */ var _createReducer__WEBPACK_IMPORTED_MODULE_0__ = __w
1665
1665
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1666
1666
 
1667
1667
  "use strict";
1668
- 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?");
1668
+ 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?");
1669
1669
 
1670
1670
  /***/ }),
1671
1671
 
@@ -1678,7 +1678,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK
1678
1678
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1679
1679
 
1680
1680
  "use strict";
1681
- 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?");
1681
+ 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?");
1682
1682
 
1683
1683
  /***/ }),
1684
1684
 
@@ -1691,7 +1691,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1691
1691
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1692
1692
 
1693
1693
  "use strict";
1694
- 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?");
1694
+ 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?");
1695
1695
 
1696
1696
  /***/ }),
1697
1697
 
@@ -1704,7 +1704,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1704
1704
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1705
1705
 
1706
1706
  "use strict";
1707
- 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?");
1707
+ 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?");
1708
1708
 
1709
1709
  /***/ }),
1710
1710
 
@@ -1717,7 +1717,7 @@ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODU
1717
1717
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1718
1718
 
1719
1719
  "use strict";
1720
- 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?");
1720
+ 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?");
1721
1721
 
1722
1722
  /***/ }),
1723
1723
 
@@ -1730,7 +1730,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1730
1730
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1731
1731
 
1732
1732
  "use strict";
1733
- 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?");
1733
+ 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?");
1734
1734
 
1735
1735
  /***/ }),
1736
1736
 
@@ -1743,7 +1743,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1743
1743
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1744
1744
 
1745
1745
  "use strict";
1746
- 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?");
1746
+ 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?");
1747
1747
 
1748
1748
  /***/ }),
1749
1749
 
@@ -1756,7 +1756,7 @@ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODU
1756
1756
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1757
1757
 
1758
1758
  "use strict";
1759
- 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?");
1759
+ 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?");
1760
1760
 
1761
1761
  /***/ }),
1762
1762
 
@@ -1769,7 +1769,7 @@ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODU
1769
1769
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1770
1770
 
1771
1771
  "use strict";
1772
- 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?");
1772
+ 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?");
1773
1773
 
1774
1774
  /***/ }),
1775
1775
 
@@ -1782,7 +1782,7 @@ eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __web
1782
1782
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1783
1783
 
1784
1784
  "use strict";
1785
- 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?");
1785
+ 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?");
1786
1786
 
1787
1787
  /***/ }),
1788
1788
 
@@ -1795,7 +1795,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_M
1795
1795
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1796
1796
 
1797
1797
  "use strict";
1798
- 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?");
1798
+ 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?");
1799
1799
 
1800
1800
  /***/ }),
1801
1801
 
@@ -1808,7 +1808,7 @@ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODU
1808
1808
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1809
1809
 
1810
1810
  "use strict";
1811
- 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?");
1811
+ 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?");
1812
1812
 
1813
1813
  /***/ }),
1814
1814
 
@@ -1821,7 +1821,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
1821
1821
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1822
1822
 
1823
1823
  "use strict";
1824
- 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?");
1824
+ 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?");
1825
1825
 
1826
1826
  /***/ }),
1827
1827
 
@@ -1834,7 +1834,7 @@ eval("/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODU
1834
1834
  /***/ (function(module, exports, __webpack_require__) {
1835
1835
 
1836
1836
  "use strict";
1837
- 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?");
1837
+ 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?");
1838
1838
 
1839
1839
  /***/ }),
1840
1840
 
@@ -1847,7 +1847,7 @@ eval("/*\r\n* Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights
1847
1847
  /***/ (function(module, exports, __webpack_require__) {
1848
1848
 
1849
1849
  "use strict";
1850
- 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?");
1850
+ 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?");
1851
1851
 
1852
1852
  /***/ }),
1853
1853
 
@@ -1860,7 +1860,7 @@ eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights
1860
1860
  /***/ (function(module, exports, __webpack_require__) {
1861
1861
 
1862
1862
  "use strict";
1863
- 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?");
1863
+ 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?");
1864
1864
 
1865
1865
  /***/ }),
1866
1866
 
@@ -1873,7 +1873,7 @@ eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights
1873
1873
  /***/ (function(module, exports, __webpack_require__) {
1874
1874
 
1875
1875
  "use strict";
1876
- 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?");
1876
+ 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?");
1877
1877
 
1878
1878
  /***/ }),
1879
1879
 
@@ -1886,7 +1886,7 @@ eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights
1886
1886
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1887
1887
 
1888
1888
  "use strict";
1889
- 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?");
1889
+ 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 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?");
1890
1890
 
1891
1891
  /***/ }),
1892
1892
 
@@ -1899,7 +1899,7 @@ eval("/*------------------------------------------------------------------------
1899
1899
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1900
1900
 
1901
1901
  "use strict";
1902
- eval("/* WEBPACK VAR INJECTION */(function(Buffer) {/* 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 */ \"../../../node_modules/https-browserify/index.js\");\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/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/buffer/index.js */ \"../../../node_modules/buffer/index.js\").Buffer))\n\n//# sourceURL=webpack://restaf/./serverCalls/index.js?");
1902
+ eval("/* WEBPACK VAR INJECTION */(function(Buffer) {/* 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 */ \"../../../node_modules/https-browserify/index.js\");\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/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/buffer/index.js */ \"../../../node_modules/buffer/index.js\").Buffer))\n\n//# sourceURL=webpack://restaf/./serverCalls/index.js?");
1903
1903
 
1904
1904
  /***/ }),
1905
1905
 
@@ -1912,7 +1912,7 @@ eval("/* WEBPACK VAR INJECTION */(function(Buffer) {/* harmony export (binding)
1912
1912
  /***/ (function(module, exports, __webpack_require__) {
1913
1913
 
1914
1914
  "use strict";
1915
- 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?");
1915
+ 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?");
1916
1916
 
1917
1917
  /***/ }),
1918
1918
 
@@ -1925,7 +1925,7 @@ eval("/*\r\n * Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights
1925
1925
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1926
1926
 
1927
1927
  "use strict";
1928
- 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?");
1928
+ 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?");
1929
1929
 
1930
1930
  /***/ }),
1931
1931
 
@@ -1938,7 +1938,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
1938
1938
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1939
1939
 
1940
1940
  "use strict";
1941
- 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?");
1941
+ 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?");
1942
1942
 
1943
1943
  /***/ }),
1944
1944
 
@@ -1951,7 +1951,7 @@ eval("/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_0__ = __webpac
1951
1951
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1952
1952
 
1953
1953
  "use strict";
1954
- 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?");
1954
+ 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?");
1955
1955
 
1956
1956
  /***/ }),
1957
1957
 
@@ -1964,7 +1964,7 @@ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __web
1964
1964
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1965
1965
 
1966
1966
  "use strict";
1967
- 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?");
1967
+ 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?");
1968
1968
 
1969
1969
  /***/ }),
1970
1970
 
@@ -1977,7 +1977,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
1977
1977
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1978
1978
 
1979
1979
  "use strict";
1980
- 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?");
1980
+ 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?");
1981
1981
 
1982
1982
  /***/ }),
1983
1983
 
@@ -1990,7 +1990,7 @@ eval("/*\r\n * -----------------------------------------------------------------
1990
1990
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1991
1991
 
1992
1992
  "use strict";
1993
- 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?");
1993
+ 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?");
1994
1994
 
1995
1995
  /***/ }),
1996
1996
 
@@ -2003,7 +2003,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
2003
2003
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2004
2004
 
2005
2005
  "use strict";
2006
- 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?");
2006
+ 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?");
2007
2007
 
2008
2008
  /***/ }),
2009
2009
 
@@ -2016,7 +2016,7 @@ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __web
2016
2016
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2017
2017
 
2018
2018
  "use strict";
2019
- 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?");
2019
+ 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?");
2020
2020
 
2021
2021
  /***/ }),
2022
2022
 
@@ -2029,7 +2029,7 @@ eval("/* harmony import */ var redux_saga__WEBPACK_IMPORTED_MODULE_0__ = __webpa
2029
2029
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2030
2030
 
2031
2031
  "use strict";
2032
- 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?");
2032
+ 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?");
2033
2033
 
2034
2034
  /***/ }),
2035
2035
 
@@ -2042,7 +2042,7 @@ eval("/* harmony import */ var _getResults2__WEBPACK_IMPORTED_MODULE_0__ = __web
2042
2042
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2043
2043
 
2044
2044
  "use strict";
2045
- 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?");
2045
+ 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?");
2046
2046
 
2047
2047
  /***/ }),
2048
2048
 
@@ -2055,7 +2055,7 @@ eval("/* harmony import */ var _iGetResults__WEBPACK_IMPORTED_MODULE_0__ = __web
2055
2055
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2056
2056
 
2057
2057
  "use strict";
2058
- 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?");
2058
+ 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?");
2059
2059
 
2060
2060
  /***/ }),
2061
2061
 
@@ -2068,7 +2068,7 @@ eval("/* harmony import */ var _iGetResults__WEBPACK_IMPORTED_MODULE_0__ = __web
2068
2068
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2069
2069
 
2070
2070
  "use strict";
2071
- 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?");
2071
+ 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?");
2072
2072
 
2073
2073
  /***/ }),
2074
2074
 
@@ -2081,7 +2081,7 @@ eval("/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_0__ = __we
2081
2081
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2082
2082
 
2083
2083
  "use strict";
2084
- 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?");
2084
+ 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?");
2085
2085
 
2086
2086
  /***/ }),
2087
2087
 
@@ -2094,7 +2094,7 @@ eval("/*\r\n * -----------------------------------------------------------------
2094
2094
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2095
2095
 
2096
2096
  "use strict";
2097
- 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?");
2097
+ 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?");
2098
2098
 
2099
2099
  /***/ }),
2100
2100
 
@@ -2107,7 +2107,7 @@ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __web
2107
2107
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2108
2108
 
2109
2109
  "use strict";
2110
- 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?");
2110
+ 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?");
2111
2111
 
2112
2112
  /***/ }),
2113
2113
 
@@ -2120,7 +2120,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK
2120
2120
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2121
2121
 
2122
2122
  "use strict";
2123
- 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?");
2123
+ 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?");
2124
2124
 
2125
2125
  /***/ }),
2126
2126
 
@@ -2133,7 +2133,7 @@ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __web
2133
2133
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2134
2134
 
2135
2135
  "use strict";
2136
- 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?");
2136
+ 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?");
2137
2137
 
2138
2138
  /***/ }),
2139
2139
 
@@ -2146,7 +2146,7 @@ eval("/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_0__ = __webp
2146
2146
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2147
2147
 
2148
2148
  "use strict";
2149
- 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?");
2149
+ 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?");
2150
2150
 
2151
2151
  /***/ }),
2152
2152
 
@@ -2159,7 +2159,7 @@ eval("/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_0__ = __webpac
2159
2159
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2160
2160
 
2161
2161
  "use strict";
2162
- 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?");
2162
+ 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?");
2163
2163
 
2164
2164
  /***/ }),
2165
2165
 
@@ -2172,7 +2172,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
2172
2172
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2173
2173
 
2174
2174
  "use strict";
2175
- 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?");
2175
+ 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?");
2176
2176
 
2177
2177
  /***/ }),
2178
2178
 
@@ -2185,7 +2185,7 @@ eval("/* harmony import */ var _initStore__WEBPACK_IMPORTED_MODULE_0__ = __webpa
2185
2185
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2186
2186
 
2187
2187
  "use strict";
2188
- 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?");
2188
+ 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?");
2189
2189
 
2190
2190
  /***/ }),
2191
2191
 
@@ -2198,7 +2198,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
2198
2198
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2199
2199
 
2200
2200
  "use strict";
2201
- 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?");
2201
+ 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?");
2202
2202
 
2203
2203
  /***/ }),
2204
2204
 
@@ -2211,7 +2211,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
2211
2211
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2212
2212
 
2213
2213
  "use strict";
2214
- 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?");
2214
+ 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?");
2215
2215
 
2216
2216
  /***/ }),
2217
2217
 
@@ -2224,7 +2224,7 @@ eval("/* harmony import */ var _ijobStateAll__WEBPACK_IMPORTED_MODULE_0__ = __we
2224
2224
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2225
2225
 
2226
2226
  "use strict";
2227
- 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?");
2227
+ 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?");
2228
2228
 
2229
2229
  /***/ }),
2230
2230
 
@@ -2237,7 +2237,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
2237
2237
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2238
2238
 
2239
2239
  "use strict";
2240
- 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?");
2240
+ 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?");
2241
2241
 
2242
2242
  /***/ }),
2243
2243
 
@@ -2250,7 +2250,7 @@ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __web
2250
2250
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2251
2251
 
2252
2252
  "use strict";
2253
- 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?");
2253
+ 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?");
2254
2254
 
2255
2255
  /***/ }),
2256
2256
 
@@ -2263,7 +2263,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
2263
2263
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2264
2264
 
2265
2265
  "use strict";
2266
- 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?");
2266
+ 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?");
2267
2267
 
2268
2268
  /***/ }),
2269
2269
 
@@ -2276,7 +2276,7 @@ eval("/* harmony import */ var _getResults__WEBPACK_IMPORTED_MODULE_0__ = __webp
2276
2276
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2277
2277
 
2278
2278
  "use strict";
2279
- 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 */ \"../../../node_modules/https-browserify/index.js\");\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?");
2279
+ 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 */ \"../../../node_modules/https-browserify/index.js\");\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?");
2280
2280
 
2281
2281
  /***/ }),
2282
2282
 
@@ -2289,7 +2289,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
2289
2289
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2290
2290
 
2291
2291
  "use strict";
2292
- 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?");
2292
+ 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?");
2293
2293
 
2294
2294
  /***/ }),
2295
2295
 
@@ -2302,7 +2302,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
2302
2302
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2303
2303
 
2304
2304
  "use strict";
2305
- 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?");
2305
+ 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?");
2306
2306
 
2307
2307
  /***/ }),
2308
2308
 
@@ -2315,7 +2315,7 @@ eval("/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_0__ = __we
2315
2315
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2316
2316
 
2317
2317
  "use strict";
2318
- 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?");
2318
+ 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?");
2319
2319
 
2320
2320
  /***/ }),
2321
2321
 
@@ -2328,7 +2328,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
2328
2328
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2329
2329
 
2330
2330
  "use strict";
2331
- 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?");
2331
+ 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?");
2332
2332
 
2333
2333
  /***/ }),
2334
2334
 
@@ -2341,7 +2341,7 @@ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__,
2341
2341
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2342
2342
 
2343
2343
  "use strict";
2344
- 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?");
2344
+ 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?");
2345
2345
 
2346
2346
  /***/ }),
2347
2347
 
@@ -2354,7 +2354,7 @@ eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __web
2354
2354
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2355
2355
 
2356
2356
  "use strict";
2357
- 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?");
2357
+ 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?");
2358
2358
 
2359
2359
  /***/ }),
2360
2360
 
@@ -2367,7 +2367,7 @@ eval("/* harmony import */ var _serverCalls__WEBPACK_IMPORTED_MODULE_0__ = __web
2367
2367
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2368
2368
 
2369
2369
  "use strict";
2370
- 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?");
2370
+ 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?");
2371
2371
 
2372
2372
  /***/ }),
2373
2373
 
@@ -2380,7 +2380,7 @@ eval("/* harmony import */ var _statusFuncs__WEBPACK_IMPORTED_MODULE_0__ = __web
2380
2380
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2381
2381
 
2382
2382
  "use strict";
2383
- 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?");
2383
+ 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?");
2384
2384
 
2385
2385
  /***/ }),
2386
2386
 
@@ -2392,7 +2392,7 @@ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__,
2392
2392
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2393
2393
 
2394
2394
  "use strict";
2395
- 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?");
2395
+ 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?");
2396
2396
 
2397
2397
  /***/ }),
2398
2398
 
@@ -2405,7 +2405,7 @@ eval("/*\r\n * -----------------------------------------------------------------
2405
2405
  /***/ (function(module, exports, __webpack_require__) {
2406
2406
 
2407
2407
  "use strict";
2408
- 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?");
2408
+ 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?");
2409
2409
 
2410
2410
  /***/ }),
2411
2411