sqldb-ws/swagger/swagger-ui.js

15 lines
251 KiB
JavaScript
Raw Normal View History

2021-10-29 23:37:32 +02:00
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-polyfill"),require("deep-extend"),require("redux"),require("immutable"),require("redux-immutable"),require("serialize-error"),require("base64-js"),require("ieee754"),require("isarray"),require("shallowequal"),require("xml"),require("memoizee"),require("reselect"),require("js-yaml"),require("url-parse"),require("react"),require("react-dom"),require("react-redux"),require("yaml-js"),require("swagger-client"),require("react-split-pane"),require("react-immutable-proptypes"),require("react-addons-shallow-compare"),require("react-collapse"),require("react-remarkable"),require("sanitize-html")):"function"==typeof define&&define.amd?define(["babel-polyfill","deep-extend","redux","immutable","redux-immutable","serialize-error","base64-js","ieee754","isarray","shallowequal","xml","memoizee","reselect","js-yaml","url-parse","react","react-dom","react-redux","yaml-js","swagger-client","react-split-pane","react-immutable-proptypes","react-addons-shallow-compare","react-collapse","react-remarkable","sanitize-html"],t):"object"==typeof exports?exports.SwaggerUICore=t(require("babel-polyfill"),require("deep-extend"),require("redux"),require("immutable"),require("redux-immutable"),require("serialize-error"),require("base64-js"),require("ieee754"),require("isarray"),require("shallowequal"),require("xml"),require("memoizee"),require("reselect"),require("js-yaml"),require("url-parse"),require("react"),require("react-dom"),require("react-redux"),require("yaml-js"),require("swagger-client"),require("react-split-pane"),require("react-immutable-proptypes"),require("react-addons-shallow-compare"),require("react-collapse"),require("react-remarkable"),require("sanitize-html")):e.SwaggerUICore=t(e["babel-polyfill"],e["deep-extend"],e.redux,e.immutable,e["redux-immutable"],e["serialize-error"],e["base64-js"],e.ieee754,e.isarray,e.shallowequal,e.xml,e.memoizee,e.reselect,e["js-yaml"],e["url-parse"],e.react,e["react-dom"],e["react-redux"],e["yaml-js"],e["swagger-client"],e["react-split-pane"],e["react-immutable-proptypes"],e["react-addons-shallow-compare"],e["react-collapse"],e["react-remarkable"],e["sanitize-html"])}(this,function(e,t,r,n,o,a,u,i,s,l,c,f,p,d,h,y,m,v,b,g,_,E,w,j,P,O){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="/dist",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var r=t.slice(1),n=e[t[0]];return function(e,t,o){n.apply(this,[e,t,o].concat(r))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,r){r(1),r(2),e.exports=r(3)},function(e,t){e.exports=require("babel-polyfill")},function(e,t){},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=r(4),i=o(u),s=r(5),l=o(s),c=r(11),f=o(c),p=r(157),d=o(p),h=r(316),y=n(h),m=r(12),v=["url","spec","validatorUrl","onComplete","onFailure","authorizations","docExpansion","apisSorter","operationsSorter","supportedSubmitMethods","dom_id","defaultModelRendering","oauth2RedirectUrl","showRequestHeaders","custom","modelPropertyMacro","parameterMacro"],b={PACKAGE_VERSION:"3.0.13",GIT_COMMIT:"g5952bb6",GIT_DIRTY:!1},g=b.GIT_DIRTY,_=b.GIT_COMMIT,E=b.PACKAGE_VERSION;e.exports=function(e){f.default.versions=f.default.versions||{},f.default.versions.swaggerUi=E+"/"+(_||"unknown")+(g?"-dirty":"");var t={dom_id:null,spec:{},url:"",layout:"BaseLayout",validatorUrl:"https://online.swagger.io/validator",configs:{},custom:{},presets:[],plugins:[],fn:{},components:{},state:{},store
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
"use strict";function n(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}return i(this,e,t,r)}function i(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?d(e,t,r,n):"string"==typeof t?f(e,t,r):h(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e,t,r,n){return s(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}function c(e,t){if(s(t),e=a(e,t<0?0:0|y(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function f(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(t,r);e=a(e,n);var o=e.write(t,r);return o!==n&&(e=e.slice(0,o)),e}function p(e,t){var r=t.length<0?0:0|y(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function d(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=p(e,t),e}function h(e,t){if(u.isBuffer(t)){var r=0|y(t.length);return e=a(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||X(t.length)?a(e,0):p(e,t);if("Buffer"===t.type&&Q(t.data))return p(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),u.alloc(+e)}function v(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(n)return W(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return q(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function _(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:E(e,t,r,n,o);if("number"==ty
n(e,a(t,3))}var o=r(83),a=r(84),u=r(147),i=r(26),s=r(153);e.exports=n},function(e,t){function r(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}e.exports=r},function(e,t,r){function n(e){return"function"==typeof e?e:null==e?u:"object"==typeof e?i(e)?a(e[0],e[1]):o(e):s(e)}var o=r(85),a=r(132),u=r(143),i=r(26),s=r(144);e.exports=n},function(e,t,r){function n(e){var t=a(e);return 1==t.length&&t[0][2]?u(t[0][0],t[0][1]):function(r){return r===e||o(r,e,t)}}var o=r(86),a=r(129),u=r(131);e.exports=n},function(e,t,r){function n(e,t,r,n){var s=r.length,l=s,c=!n;if(null==e)return!l;for(e=Object(e);s--;){var f=r[s];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++s<l;){f=r[s];var p=f[0],d=e[p],h=f[1];if(c&&f[2]){if(void 0===d&&!(p in e))return!1}else{var y=new o;if(n)var m=n(d,h,p,e,t,y);if(!(void 0===m?a(h,d,u|i,n,y):m))return!1}}return!0}var o=r(87),a=r(93),u=1,i=2;e.exports=n},function(e,t,r){function n(e){var t=this.__data__=new o(e);this.size=t.size}var o=r(67),a=r(88),u=r(89),i=r(90),s=r(91),l=r(92);n.prototype.clear=a,n.prototype.delete=u,n.prototype.get=i,n.prototype.has=s,n.prototype.set=l,e.exports=n},function(e,t,r){function n(){this.__data__=new o,this.size=0}var o=r(67);e.exports=n},function(e,t){function r(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}e.exports=r},function(e,t){function r(e){return this.__data__.get(e)}e.exports=r},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,r){function n(e,t){var r=this.__data__;if(r instanceof o){var n=r.__data__;if(!a||n.length<i-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new u(n)}return r.set(e,t),this.size=r.size,this}var o=r(67),a=r(75),u=r(50),i=200;e.exports=n},function(e,t,r){function n(e,t,r,i,s){return e===t||(null==e||null==t||!a(e)&&!u(t)?e!==e&&t!==t:o(e,t,r,i,n,s))}var o=r(94),a=r(58),u=r(31);e.exports=n},function(e,t,r){function n(e,t,r,n,m,b){var g=l(e),_=l(t),E=h,w=h;g||(E=s(e),E=E==d?y:E),_||(w=s(t),w=w==d?y:w);var j=E==y,P=w==y,O=E==w;if(O&&c(e)){if(!c(t))return!1;g=!0,j=!1}if(O&&!j)return b||(b=new o),g||f(e)?a(e,t,r,n,m,b):u(e,t,E,r,n,m,b);if(!(r&p)){var T=j&&v.call(e,"__wrapped__"),S=P&&v.call(t,"__wrapped__");if(T||S){var x=T?e.value():e,C=S?t.value():t;return b||(b=new o),m(x,C,r,n,b)}}return!!O&&(b||(b=new o),i(e,t,r,n,m,b))}var o=r(87),a=r(95),u=r(100),i=r(104),s=r(124),l=r(26),c=r(110),f=r(114),p=1,d="[object Arguments]",h="[object Array]",y="[object Object]",m=Object.prototype,v=m.hasOwnProperty;e.exports=n},function(e,t,r){function n(e,t,r,n,l,c){var f=r&i,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var y=-1,m=!0,v=r&s?new o:void 0;for(c.set(e,t),c.set(t,e);++y<p;){var b=e[y],g=t[y];if(n)var _=f?n(g,b,y,t,e,c):n(b,g,y,e,t,c);if(void 0!==_){if(_)continue;m=!1;break}if(v){if(!a(t,function(e,t){if(!u(v,t)&&(b===e||l(b,e,r,n,c)))return v.push(t)})){m=!1;break}}else if(b!==g&&!l(b,g,r,n,c)){m=!1;break}}return c.delete(e),c.delete(t),m}var o=r(96),a=r(83),u=r(99),i=1,s=2;e.exports=n},function(e,t,r){function n(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new o;++t<r;)this.add(e[t])}var o=r(50),a=r(97),u=r(98);n.prototype.add=n.prototype.push=a,n.prototype.has=u,e.exports=n},function(e,t){function r(e){return this.__data__.set(e,n),this}var n="__lodash_hash_undefined__";e.exports=r},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t){function r(e,t){return e.has(t)}e.exports=r},function(e,t,r){function n(e,t,r,n,o,j,O){switch(r){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!j(new a(e),new a(t)));case p:case d:case m:return u(+e,+t);case h:return e.name==t.name&&e.message==t.message;case v:case g:return e==t+"";case y:var T=s;case b:var S=n&c;if(T||(T=l),e.size!=t.size&&!S)return!1;var x=O.get(e);if(x)return x==t;n|=f,O.set(e,t);var C=i(T(e),T(t),n,o,j,O);return O.delete(e),C;case _:if(P)return P.call(e)==P.call(t)}return!1}var o=r(22),a=r(101),u=r(71),i=r(95),s=r(102),l=r(103
return function(t){var r=t.specActions,n=t.specSelectors,o=t.errActions,a=n.specStr,u=null;try{e=e||a(),o.clear({source:"parser"}),u=_.default.safeLoad(e)}catch(e){return console.error(e),o.newSpecErr({source:"parser",level:"error",message:e.reason,line:e.mark&&e.mark.line?e.mark.line+1:void 0})}return r.updateJsonSpec(u)}},t.resolveSpec=function(e,t){return function(r){var n=r.specActions,o=r.specSelectors,a=r.errActions,u=r.fn,i=u.fetch,s=u.resolve,l=u.AST,c=r.getConfigs,f=c(),p=f.modelPropertyMacro,d=f.parameterMacro;"undefined"==typeof e&&(e=o.specJson()),"undefined"==typeof t&&(t=o.url());var h=l.getLineNumberForPath,y=o.specStr();return s({fetch:i,spec:e,baseDoc:t,modelPropertyMacro:p,parameterMacro:d}).then(function(e){var t=e.spec,r=e.errors;if(a.clear({type:"thrown"}),r.length>0){var o=r.map(function(e){return console.error(e),e.line=e.fullPath?h(y,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",Object.defineProperty(e,"message",{enumerable:!0,value:e.message}),e});a.newThrownErrBatch(o)}return n.updateResolved(t)})}},t.formatIntoYaml=function(){return function(e){var t=e.specActions,r=e.specSelectors,n=r.specStr,o=t.updateSpec;try{var a=_.default.safeDump(_.default.safeLoad(n()),{indent:2});o(a)}catch(e){o(e)}}},t.setResponse=function(e,t,r){return{payload:{path:e,method:t,res:r},type:A}},t.setRequest=function(e,t,r){return{payload:{path:e,method:t,req:r},type:R}},t.logRequest=function(e){return{payload:e,type:k}},t.executeRequest=function(e){return function(t){var r=t.fn,n=t.specActions,o=t.specSelectors,a=e.pathName,u=e.method,i=e.operation,s=i.toJS();e.contextUrl=(0,w.default)(o.url()).toString(),s&&s.operationId?e.operationId=s.operationId:s&&a&&u&&(e.operationId=r.opId(s,a,u));var l=Object.assign({},e);return l=r.buildRequest(l),n.setRequest(e.pathName,e.method,l),r.execute(e).then(function(t){return n.setResponse(e.pathName,e.method,t)}).catch(function(t){return n.setResponse(e.pathName,e.method,{error:!0,err:(0,P.default)(t)})})}},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.path,r=e.method,n=o(e,["path","method"]);return function(e){var o=e.fn.fetch,a=e.specSelectors,u=e.specActions,i=a.spec().toJS(),s=a.operationScheme(t,r),l=a.contentTypeValues([t,r]).toJS(),c=l.requestContentType,f=l.responseContentType,p=/xml/i.test(c),d=a.parameterValues([t,r],p).toJS();return u.executeRequest(v({fetch:o,spec:i,pathName:t,method:r,parameters:d,requestContentType:c,scheme:s,responseContentType:f},n))}});t.execute=D},function(e,t){e.exports=require("js-yaml")},function(e,t){e.exports=require("url-parse")},function(e,t,r){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function o(e,t,r){var o=g(e).getIn(["paths"].concat(n(t),["parameters"]),(0,d.fromJS)([]));return o.filter(function(e){return d.Map.isMap(e)&&e.get("name")===r}).first()}function a(e,t,r){var o=g(e).getIn(["paths"].concat(n(t),["parameters"]),(0,d.fromJS)([]));return o.reduce(function(e,t){var n=r&&"body"===t.get("in")?t.get("value_xml"):t.get("value");return e.set(t.get("name"),n)},(0,d.fromJS)({}))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(d.List.isList(e))return e.some(function(e){return d.Map.isMap(e)&&e.get("in")===t})}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(d.List.isList(e))return e.some(function(e){return d.Map.isMap(e)&&e.get("type")===t})}function s(e,t){var r=g(e).getIn(["paths"].concat(n(t)),(0,d.fromJS)({})),o=r.get("parameters")||new d.List,a=i(o,"file")?"multipart/form-data":u(o,"formData")?"application/x-www-form-urlencoded":r.get("consumes_value");return(0,d.fromJS)({requestContentType:a,responseContentType:r.get("produces_value")})}function l(e,t){return g(e).getIn(["paths"].concat(n(t),["consumes"]),(0,d.fromJS)({}))}function c(e){return d.Map.isMap(e)?e:new d.Map}Object.defineProperty(t,"__esModule",{value:!0}),t.validateBeforeExecute=t.canExecuteScheme=t.operationScheme=t.h
}}function u(e){return{type:h,payload:e}}function i(e){return{type:y,payload:e}}function s(e){return{type:m,payload:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.authorizeRequest=t.authorizeAccessCode=t.authorizeApplication=t.authorizePassword=t.preAuthorizeImplicit=t.CONFIGURE_AUTH=t.VALIDATE=t.AUTHORIZE_OAUTH2=t.PRE_AUTHORIZE_OAUTH2=t.LOGOUT=t.AUTHORIZE=t.SHOW_AUTH_POPUP=void 0,t.showDefinitions=o,t.authorize=a,t.logout=u,t.authorizeOauth2=i,t.configureAuth=s;var l=r(11),c=n(l),f=r(12),p=t.SHOW_AUTH_POPUP="show_popup",d=t.AUTHORIZE="authorize",h=t.LOGOUT="logout",y=(t.PRE_AUTHORIZE_OAUTH2="pre_authorize_oauth2",t.AUTHORIZE_OAUTH2="authorize_oauth2"),m=(t.VALIDATE="validate",t.CONFIGURE_AUTH="configure_auth"),v=" ";t.preAuthorizeImplicit=function(e){return function(t){var r=t.authActions,n=t.errActions,o=e.auth,a=e.token,u=e.isValid,i=o.schema,s=o.name,l=i.get("flow");return delete c.default.swaggerUIRedirectOauth2,"accessCode"===l||u||n.newAuthErr({authId:s,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),a.error?void n.newAuthErr({authId:s,source:"auth",level:"error",message:JSON.stringify(a)}):void r.authorizeOauth2({auth:o,token:a})}},t.authorizePassword=function(e){return function(t){var r=t.authActions,n=e.schema,o=e.name,a=e.username,u=e.password,i=e.passwordType,s=e.clientId,l=e.clientSecret,c={grant_type:"password",scopes:encodeURIComponent(e.scopes.join(v))},p={},d={};return"basic"===i?d.Authorization="Basic "+(0,f.btoa)(a+":"+u):(Object.assign(c,{username:a},{password:u}),"query"===i?(s&&(p.client_id=s),l&&(p.client_secret=l)):d.Authorization="Basic "+(0,f.btoa)(s+":"+l)),r.authorizeRequest({body:(0,f.buildFormData)(c),url:n.get("tokenUrl"),name:o,headers:d,query:p,auth:e})}},t.authorizeApplication=function(e){return function(t){var r=t.authActions,n=e.schema,o=e.scopes,a=e.name,u=e.clientId,i=e.clientSecret,s={Authorization:"Basic "+(0,f.btoa)(u+":"+i)},l={grant_type:"client_credentials",scope:o.join(v)};return r.authorizeRequest({body:(0,f.buildFormData)(l),name:a,url:n.get("tokenUrl"),auth:e,headers:s})}},t.authorizeAccessCode=function(e){var t=e.auth,r=e.redirectUrl;return function(e){var n=e.authActions,o=t.schema,a=t.name,u=t.clientId,i=t.clientSecret,s={grant_type:"authorization_code",code:t.code,client_id:u,client_secret:i,redirect_uri:r};return n.authorizeRequest({body:(0,f.buildFormData)(s),name:a,url:o.get("tokenUrl"),auth:t})}},t.authorizeRequest=function(e){return function(t){var r=t.fn,n=t.authActions,o=t.errActions,a=t.authSelectors,u=e.body,i=e.query,s=void 0===i?{}:i,l=e.headers,c=void 0===l?{}:l,f=e.name,p=e.url,d=e.auth,h=a.getConfigs()||{},y=h.additionalQueryStringParams,m=p;for(var v in y)p+="&"+v+"="+encodeURIComponent(y[v]);var b=Object.assign({Accept:"application/json, text/plain, */*","Access-Control-Allow-Origin":"*","Content-Type":"application/x-www-form-urlencoded"},c);r.fetch({url:m,method:"post",headers:b,query:s,body:u}).then(function(e){var t=JSON.parse(e.data),r=t&&(t.error||""),a=t&&(t.parseError||"");return e.ok?r||a?void o.newAuthErr({authId:f,level:"error",source:"auth",message:JSON.stringify(t)}):void n.authorizeOauth2({auth:d,token:t}):void o.newAuthErr({authId:f,level:"error",source:"auth",message:e.statusText})}).catch(function(e){var t=new Error(e);o.newAuthErr({authId:f,level:"error",source:"auth",message:t.message})})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConfigs=t.isAuthorized=t.authorized=t.getDefinitionsByNames=t.definitionsToAuthorize=t.shownDefinitions=void 0;var n=function(){function e(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&i.return&&i.return()}finally{if(o)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=r(173),a=r(7),u=function(
function t(e,r){a(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));b.call(n);var o=n.props,i=o.name,s=o.schema,l=o.authorized,c=o.authSelectors,f=l&&l.get(i),p=c.getConfigs()||{},d=f&&f.get("username")||"",h=f&&f.get("clientId")||p.clientId||"",y=f&&f.get("clientSecret")||p.clientSecret||"",m=f&&f.get("passwordType")||"basic";return n.state={appName:p.appName,name:i,schema:s,scopes:[],clientId:h,clientSecret:y,username:d,password:"",passwordType:m},n}return i(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.schema,n=t.getComponent,o=t.authSelectors,a=t.errSelectors,u=t.name,i=n("Input"),s=n("Row"),l=n("Col"),f=n("Button"),p=n("authError"),v=n("JumpToPath",!0),b=n("Markdown"),g=r.get("flow"),_=r.get("allowedScopes")||r.get("scopes"),E=o.authorized().get(u),w=!!E,j=a.allErrors().filter(function(e){return e.get("authId")===u}),P=!j.filter(function(e){return"validation"===e.get("source")}).size;return c.default.createElement("div",null,c.default.createElement("h4",null,"OAuth2.0 ",c.default.createElement(v,{path:["securityDefinitions",u]})),this.state.appName?c.default.createElement("h5",null,"Application: ",this.state.appName," "):null,c.default.createElement(b,{source:r.get("description")}),w&&c.default.createElement("h6",null,"Authorized"),(g===d||g===h)&&c.default.createElement("p",null,"Authorization URL: ",c.default.createElement("code",null,r.get("authorizationUrl"))),(g===y||g===h||g===m)&&c.default.createElement("p",null,"Token URL:",c.default.createElement("code",null," ",r.get("tokenUrl"))),c.default.createElement("p",{className:"flow"},"Flow: ",c.default.createElement("code",null,r.get("flow"))),g!==y?null:c.default.createElement(s,null,c.default.createElement(s,null,c.default.createElement("label",{htmlFor:"oauth_username"},"username:"),w?c.default.createElement("code",null," ",this.state.username," "):c.default.createElement(l,{tablet:10,desktop:10},c.default.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange}))),c.default.createElement(s,null,c.default.createElement("label",{htmlFor:"oauth_password"},"password:"),w?c.default.createElement("code",null," ****** "):c.default.createElement(l,{tablet:10,desktop:10},c.default.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),c.default.createElement(s,null,c.default.createElement("label",{htmlFor:"password_type"},"type:"),w?c.default.createElement("code",null," ",this.state.passwordType," "):c.default.createElement(l,{tablet:10,desktop:10},c.default.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},c.default.createElement("option",{value:"request-body"},"Request body"),c.default.createElement("option",{value:"basic"},"Basic auth"),c.default.createElement("option",{value:"query"},"Query parameters"))))),(g===m||g===d||g===h||g===y&&"basic"!==this.state.passwordType)&&(!w||w&&this.state.clientId)&&c.default.createElement(s,null,c.default.createElement("label",{htmlFor:"client_id"},"client_id:"),w?c.default.createElement("code",null," ****** "):c.default.createElement(l,{tablet:10,desktop:10},c.default.createElement("input",{id:"client_id",type:"text",required:g===y,value:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(g===m||g===h||g===y&&"basic"!==this.state.passwordType)&&c.default.createElement(s,null,c.default.createElement("label",{htmlFor:"client_secret"},"client_secret:"),w?c.default.createElement("code",null," ****** "):c.default.createElement(l,{tablet:10,desktop:10},c.default.createElement("input",{id:"client_secret",value:this.state.clientSecret,type:"text","data-name":"clientSecret",onChange:this.onInputChange}))),!w&&_&&_.size?c.default.createElement("div",{className:"scopes"},c.default.createElement("h2",null,"Scopes:"),_.map(function(t,r){return c.default.createElement(s,{key:r},c.default.createElement("div",{className:"checkbox"},c.default.createElement(i,{"data-value":r,id:r+"-checkbox-"+e.state.name,disabled:w,
n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=function(){function e(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&i.return&&i.return()}finally{if(o)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=r(187),c=n(l),f=r(7),p=r(12),d=function(e,t,r){return t&&t.size?t.entrySeq().map(function(e){var t=s(e,2),n=t[0],o=t[1],a=void 0;try{a=o&&o.toJS?o.toJS():o,a=JSON.stringify(a)}catch(e){a=String(o)}return c.default.createElement("div",{key:n},c.default.createElement("h5",null,n),c.default.createElement(r,{className:"example",value:a}))}).toArray():e?c.default.createElement("div",null,c.default.createElement(r,{className:"example",value:e})):null},h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.code,r=e.response,n=e.className,o=e.fn,a=e.getComponent,u=e.specSelectors,i=e.contentType,s=o.inferSchema,l=s(r.toJS()),h=r.get("headers"),y=r.get("examples"),m=a("headers"),v=a("highlightCode"),b=a("modelExample"),g=a("Markdown"),_=l?(0,p.getSampleSchema)(l,i,{includeReadOnly:!0}):null,E=d(_,y,v);return c.default.createElement("tr",{className:"response "+(n||"")},c.default.createElement("td",{className:"col response-col_status"},t),c.default.createElement("td",{className:"col response-col_description"},c.default.createElement("div",{className:"response-col_description__inner"},c.default.createElement(g,{source:r.get("description")})),E?c.default.createElement(b,{getComponent:a,specSelectors:u,schema:(0,f.fromJS)(l),example:E}):null,h?c.default.createElement(m,{headers:h}):null))}}]),t}(c.default.Component);h.propTypes={code:l.PropTypes.string.isRequired,response:l.PropTypes.object,className:l.PropTypes.string,getComponent:l.PropTypes.func.isRequired,specSelectors:l.PropTypes.object.isRequired,fn:l.PropTypes.object.isRequired,contentType:l.PropTypes.string},h.defaultProps={response:(0,f.fromJS)({})},t.default=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(187),l=n(s),c=r(12),f=r(291),p=n(f),d=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.content,r=e.contentType,n=e.url,o=e.headers,a=void 0===o?{}:o,u=e.getComponent,i=u("highlightCode"),s=void 0,f=void 0;if(n=n||"",/json/i.test(r)){try{s=JSON.stringify(JSON.parse(t),null," ")}catch(e){s="can't parse JSON. Raw result:\n\n"+t}f=l.default.createElement(i,{value:s})}else if(/xml/i.test(r))s=(0,c.formatXml)(t),f=l.default.createElement(i,{value:s});else if("text/html"===(0,p.default)(r)||/text\/plain/.test(r))f=l.default.createElement(i,{value:t});else if(/^image\//i.test(r))f=l.default.createElement("img",{src:n});else if(/^audio\//i.test(r))f=l.default.createElem
var r=e.props,n=r.onChange,o=r.multiple,a=[].slice.call(t.target.options),u=void 0;u=o?a.filter(function(e){return e.selected}).map(function(e){return e.value}):t.target.value,e.setState({value:u}),n&&n(u)}},w=t.Link=function(e){function t(){return a(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"render",value:function(){return p.default.createElement("a",l({},this.props,{className:s(this.props.className,"link")}))}}]),t}(p.default.Component);w.propTypes={className:f.PropTypes.string};var j=function(e){var t=e.children;return p.default.createElement("div",{style:{height:"auto",border:"none",margin:0,padding:0}}," ",t," ")};j.propTypes={children:f.PropTypes.node};var P=t.Collapse=function(e){function t(){return a(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"renderNotAnimated",value:function(){return this.props.isOpened?p.default.createElement(j,null,this.props.children):p.default.createElement("noscript",null)}},{key:"render",value:function(){var e=this.props,t=e.animated,r=e.isOpened,n=e.children;return t?(n=r?n:null,p.default.createElement(h.default,{isOpened:r},p.default.createElement(j,null,n))):this.renderNotAnimated()}}]),t}(p.default.Component);P.propTypes={isOpened:f.PropTypes.bool,children:f.PropTypes.node.isRequired,animated:f.PropTypes.bool},P.defaultProps={isOpened:!1,animated:!1}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(187),l=n(s),c=r(7),f=r(273),p=n(f),d=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.host,r=e.basePath;return l.default.createElement("pre",{className:"base-url"},"[ Base url: ",t,r,"]")}}]),t}(l.default.Component);d.propTypes={host:s.PropTypes.string,basePath:s.PropTypes.string};var h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"render",value:function(){var e=this.props.data,t=e.get("name")||"the developer",r=e.get("url"),n=e.get("email");return l.default.createElement("div",null,r&&l.default.createElement("div",null,l.default.createElement("a",{href:r,target:"_blank"},t," - Website")),n&&l.default.createElement("a",{href:"mailto:"+n},r?"Send email to "+t:"Contact "+t))}}]),t}(l.default.Component);h.propTypes={data:s.PropTypes.object};var y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"render",value:function(){var e=this.props.license,t=e.get("name")||"License",r=e.get("url");return l.default.createElement("div",null,r?l.default.createElement("a",{target:"_blank",href:r},t):l.default.createElement("span",null,t))}}]),t}(l.default.Component);y.propTypes={license:s.PropTypes.object};var m=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.info,r=e.url,n=e.host,o=e.basePath,a=e.getComponent,u=e.externalDocs,i=t.get("version"),s=t.get("descriptio
enabled:!1},t.default=c},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.source,r=(0,c.default)(t);return u.default.createElement(s.default,{options:{html:!0,typographer:!0,linkify:!0,linkTarget:"_blank"},source:r})}Object.defineProperty(t,"__esModule",{value:!0});var a=r(187),u=n(a),i=r(312),s=n(i),l=r(313),c=n(l);o.propTypes={source:a.PropTypes.string.isRequired},t.default=o},function(e,t){e.exports=require("react-remarkable")},function(e,t){e.exports=require("sanitize-html")},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(187),l=n(s),c=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.specSelectors,r=e.specActions,n=e.getComponent,o=t.info(),a=t.url(),u=t.basePath(),i=t.host(),s=t.securityDefinitions(),c=t.externalDocs(),f=t.schemes(),p=n("info"),d=n("operations",!0),h=n("models",!0),y=n("authorizeBtn",!0),m=n("Row"),v=n("Col"),b=n("errors",!0),g=n("schemes"),_=!t.specStr();return _?l.default.createElement("h4",null,"No spec provided."):l.default.createElement("div",{className:"swagger-ui"},l.default.createElement("div",null,l.default.createElement(b,null),l.default.createElement(m,{className:"information-container"},l.default.createElement(v,{mobile:12},o.count()?l.default.createElement(p,{info:o,url:a,host:i,basePath:u,externalDocs:c,getComponent:n}):null)),f&&f.size||s?l.default.createElement("div",{className:"scheme-container"},l.default.createElement(v,{className:"schemes wrapper",mobile:12},f&&f.size?l.default.createElement(g,{schemes:f,specActions:r}):null,s?l.default.createElement(y,null):null)):null,l.default.createElement(m,null,l.default.createElement(v,{mobile:12,desktop:12},l.default.createElement(d,null))),l.default.createElement(m,null,l.default.createElement(v,{mobile:12,desktop:12},l.default.createElement(h,null)))))}}]),t}(l.default.Component);c.propTypes={errSelectors:s.PropTypes.object.isRequired,errActions:s.PropTypes.object.isRequired,specActions:s.PropTypes.object.isRequired,specSelectors:s.PropTypes.object.isRequired,layoutSelectors:s.PropTypes.object.isRequired,layoutActions:s.PropTypes.object.isRequired,getComponent:s.PropTypes.func.isRequired},t.default=c},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSchema_boolean=t.JsonSchema_array=t.JsonSchema_string=t.JsonSchemaForm=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(v
//# sourceMappingURL=swagger-ui.js.map