2021-07-01 12:47:52 +03:00
/*! For license information please see redoc-demo.bundle.js.LICENSE.txt */
2022-05-10 19:14:02 +03:00
( ( ) => { var e = { 3675 : function ( e , t , n ) { "use strict" ; var r = this && this . _ _awaiter || function ( e , t , n , r ) { return new ( n || ( n = Promise ) ) ( ( function ( i , o ) { function a ( e ) { try { l ( r . next ( e ) ) } catch ( e ) { o ( e ) } } function s ( e ) { try { l ( r . throw ( e ) ) } catch ( e ) { o ( e ) } } function l ( e ) { var t ; e . done ? i ( e . value ) : ( t = e . value , t instanceof n ? t : new n ( ( function ( e ) { e ( t ) } ) ) ) . then ( a , s ) } l ( ( r = r . apply ( e , t || [ ] ) ) . next ( ) ) } ) ) } ; Object . defineProperty ( t , "__esModule" , { value : ! 0 } ) , t . mapTypeToComponent = t . bundleDocument = t . bundle = t . OasVersion = void 0 ; const i = n ( 2307 ) , o = n ( 4182 ) , a = n ( 8065 ) , s = n ( 5241 ) , l = n ( 388 ) , c = n ( 2608 ) , u = n ( 5220 ) , p = n ( 9443 ) , d = n ( 1510 ) , f = n ( 7468 ) , h = n ( 5030 ) , m = n ( 348 ) , g = n ( 771 ) , y = n ( 1094 ) , b = n ( 4508 ) , v = n ( 6350 ) ; var x ; function w ( e ) { return r ( this , void 0 , void 0 , ( function * ( ) { const { document : t , config : n , customTypes : r , externalRefResolver : i , dereference : f = ! 1 , skipRedoclyRegistryRefs : m = ! 1 , removeUnusedComponents : g = ! 1 } = e , y = d . detectOpenAPI ( t . parsed ) , w = d . openAPIMajor ( y ) , k = n . getRulesForOasVersion ( w ) , S = u . normalizeTypes ( n . extendTypes ( ( null != r ? r : w === d . OasMajorVersion . Version3 ) ? y === x . Version3 _1 ? c . Oas3 _1Types : s . Oas3Types : l . Oas2Types , y ) , n ) , E = h . initRules ( k , n , "preprocessors" , y ) , _ = h . initRules ( k , n , "decorators" , y ) , A = { problems : [ ] , oasVersion : y , refTypes : new Map , visitorsData : { } } ; g && _ . push ( { severity : "error" , ruleId : "remove-unused-components" , visitor : w === d . OasMajorVersion . Version2 ? b . RemoveUnusedComponents ( { } ) : v . RemoveUnusedComponents ( { } ) } ) ; const R = yield o . resolveDocument ( { rootDocument : t , rootType : S . DefinitionRoot , externalRefResolver : i } ) , C = a . normalizeVisitors ( [ ... E , { severity : "error" , ruleId : "bundler" , visitor : O ( w , f , m , t , R ) } , ... _ ] , S ) ; return p . walkDocument ( { document : t , rootType : S . DefinitionRoot , normalizedVisitors : C , resolvedRefMap : R , ctx : A } ) , { bundle : t , problems : A . problems . map ( ( e => n . addProblemToIgnore ( e ) ) ) , fileDependencies : i . getFiles ( ) , rootType : S . DefinitionRoot , refTypes : A . refTypes , visitorsData : A . visitorsData } } ) ) } function k ( e , t ) { switch ( t ) { case d . OasMajorVersion . Version3 : switch ( e ) { case "Schema" : return "schemas" ; case "Parameter" : return "parameters" ; case "Response" : return "responses" ; case "Example" : return "examples" ; case "RequestBody" : return "requestBodies" ; case "Header" : return "headers" ; case "SecuritySchema" : return "securitySchemes" ; case "Link" : return "links" ; case "Callback" : return "callbacks" ; default : return null } case d . OasMajorVersion . Version2 : switch ( e ) { case "Schema" : return "definitions" ; case "Parameter" : return "parameters" ; case "Response" : return "responses" ; default : return null } } } function O ( e , t , n , r , a ) { let s ; const l = { ref : { leave ( i , s , l ) { if ( ! l . location || void 0 === l . node ) return void m . reportUnresolvedRef ( l , s . report , s . location ) ; if ( l . location . source === r . source && l . location . source === s . location . source && "scalar" !== s . type . name && ! t ) return ; if ( n && y . isRedoclyRegistryURL ( i . $ref ) ) return ; const p = k ( s . type . name , e ) ; p ? t ? ( u ( p , l , s ) , c ( i , l , s ) ) : ( i . $ref = u ( p , l , s ) , function ( e , t , n ) { const i = o . makeRefId ( n . location . source . absoluteRef , e . $ref ) ; a . set ( i , { document : r , isRemote : ! 1 , node : t . node , nodePointer : e . $ref , resolved : ! 0 } ) } ( i , l , s ) ) : c ( i , l , s ) } } , DefinitionRoot : { enter ( t ) { e === d . OasMajorVersion . Version3 ? s = t . components = t . components || { } : e === d . OasMajorVersion . Version2 && ( s = t ) } } } ; function c ( e , t , n ) { g . isPlainObject ( t . node ) ? ( delete e . $ref , Object . assign ( e , t . node ) ) : n . parent [ n . key ] = t . node } function u ( t , n , r ) { s [ t ] = s [ t ] || { } ; const i = function ( e , t , n ) { const [ r , i ] = [ e . location . source . absoluteRef , e . location . pointer ] , o = s [ t ] ; let a = "" ; const l = i . slice ( 2 ) . split ( "/" ) . filter ( Boolean ) ; for ( ; l . length > 0 ; ) if ( a = l . pop ( ) + ( a ? ` - ${ a } ` : "" ) , ! o || ! o [ a ] || p ( o [ a ] , e , n ) ) return a ; if ( a = f . refBaseName ( r ) + ( a ? ` _ ${ a } ` : "" ) , ! o [ a ] || p ( o [ a ] , e , n ) ) return a ; const c = a ; let u = 2 ; for ( ; o [ a ] && ! p ( o [ a ] , e , n ) ; ) a = ` ${ c } - ${ u } ` , u ++ ; return o [ a ] || n . report ( { message : ` Two schemas are referenced with the same name but different content. Renamed ${ c } to ${ a } . ` , location : n . location , forceSeverity : "warn" } ) , a } ( n , t , r ) ; return s [ t ] [ i ] = n . node , e === d . OasMajorVersion . Version3 ? ` #/components/ ${ t } / ${ i } ` : ` #/ ${ t } / ${ i } ` } function p ( e , t , n ) { var r ; return ! ( ! f . isRef ( e ) || ( null === ( r = n . resolve ( e ) . location ) || void 0 === r ? void 0 : r . absolutePointer ) !== t . location . absolutePointer ) || i ( e , t . node ) } return e === d . OasMajorVersion . Version3 && ( l . DiscriminatorMapping = { leave ( n , r ) { for ( const i of Object . keys ( n ) ) { const o = n [ i ] , a = r . resolve ( { $ref : o } ) ;
2022-02-04 13:00:46 +03:00
@ media $ { t ? "print, " : "" } screen and ( max - width : $ { t => t . theme . breakpoints [ e ] } ) $ { n || "" } {
2022-05-10 19:14:02 +03:00
$ { mn ( ... r ) } ;
2022-02-04 13:00:46 +03:00
}
2022-05-10 19:14:02 +03:00
` ,xn=hn;function wn(e){return t=>{if(t.theme.extensionsHook)return t.theme.extensionsHook(e,t)}}const kn=xn.div `
2022-02-04 13:00:46 +03:00
padding : 20 px ;
color : red ;
2022-05-10 19:14:02 +03:00
` ;class On extends r.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?r.createElement(kn,null,r.createElement("h1",null,"Something went wrong..."),r.createElement("small",null," ",this.state.error.message," "),r.createElement("p",null,r.createElement("details",null,r.createElement("summary",null,"Stack trace"),r.createElement("pre",null,this.state.error.stack))),r.createElement("small",null," ReDoc Version: ","2.0.0-rc.68")," ",r.createElement("br",null),r.createElement("small",null," Commit: ","494122f9")):r.Children.only(this.props.children)}}const Sn=yn `
2022-02-04 13:00:46 +03:00
0 % {
transform : rotate ( 0 deg ) ; }
100 % {
transform : rotate ( 360 deg ) ;
}
2022-05-10 19:14:02 +03:00
` ,En=xn((e=>r.createElement("svg",{className:e.className,version:"1.1",width:"512",height:"512",viewBox:"0 0 512 512"},r.createElement("path",{d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661v0c-10.875 0-19.681-8.796-19.681-19.661v-96.635c0-10.885 8.806-19.661 19.681-19.661v0c10.844 0 19.682 8.776 19.682 19.661v96.635z"}),r.createElement("path",{d:"M275.682 460.615c0 10.865-8.837 19.682-19.682 19.682v0c-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681v0c10.844 0 19.682 8.796 19.682 19.682v96.604z"}),r.createElement("path",{d:"M147.978 236.339c10.885 0 19.681 8.755 19.681 19.641v0c0 10.885-8.796 19.702-19.681 19.702h-96.624c-10.864 0-19.661-8.817-19.661-19.702v0c0-10.885 8.796-19.641 19.661-19.641h96.624z"}),r.createElement("path",{d:"M460.615 236.339c10.865 0 19.682 8.755 19.682 19.641v0c0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702v0c0-10.885 8.837-19.641 19.722-19.641h96.584z"}),r.createElement("path",{d:"M193.546 165.703c7.69 7.66 7.68 20.142 0 27.822v0c-7.701 7.701-20.162 7.701-27.853 0.020l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863v0c7.68-7.68 20.121-7.68 27.822 0l68.342 68.342z"}),r.createElement("path",{d:"M414.597 386.775c7.7 7.68 7.7 20.163 0.021 27.863v0c-7.7 7.659-20.142 7.659-27.843-0.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863v0c7.68-7.7 20.163-7.7 27.842 0l68.291 68.322z"}),r.createElement("path",{d:"M165.694 318.464c7.69-7.7 20.153-7.7 27.853 0v0c7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-0.062v0c-7.68-7.68-7.68-20.122 0-27.801l68.311-68.322z"}),r.createElement("path",{d:"M386.775 97.362c7.7-7.68 20.142-7.68 27.822 0v0c7.7 7.68 7.7 20.183 0.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-0.020v0c-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})))) `
animation : 2 s $ { Sn } linear infinite ;
2022-02-04 13:00:46 +03:00
width : 50 px ;
height : 50 px ;
content : '' ;
display : inline - block ;
margin - left : - 25 px ;
path {
fill : $ { e => e . color } ;
}
2022-05-10 19:14:02 +03:00
` ,_n=xn.div `
2022-02-04 13:00:46 +03:00
font - family : helvetica , sans ;
width : 100 % ;
text - align : center ;
font - size : 25 px ;
margin : 30 px 0 20 px 0 ;
color : $ { e => e . color } ;
2022-05-10 19:14:02 +03:00
` ;class An extends r.PureComponent{render(){return r.createElement("div",{style:{textAlign:"center"}},r.createElement(_n,{color:this.props.color},"Loading ..."),r.createElement(En,{color:this.props.color}))}}var Rn=n(5697);const Cn=r.createContext(new fn({})),Tn=Cn.Provider,Pn=Cn.Consumer;function In(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var jn={};function Nn(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:jn}var $ n=Object.assign,Ln=Object.getOwnPropertyDescriptor,Dn=Object.defineProperty,Mn=Object.prototype,Fn=[];Object.freeze(Fn);var zn={};Object.freeze(zn);var Un="undefined"!=typeof Proxy,Bn=Object.toString();function qn(){Un||In("Proxy not available")}function Vn(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Wn=function(){};function Hn(e){return"function"==typeof e}function Yn(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function Qn(e){return null!==e&&"object"==typeof e}function Gn(e){var t;if(!Qn(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null==(t=n.constructor)?void 0:t.toString())===Bn}function Xn(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function Kn(e,t,n){Dn(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function Zn(e,t,n){Dn(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Jn(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return Qn(e)&&!0===e[n]}}function er(e){return e instanceof Map}function tr(e){return e instanceof Set}var nr=void 0!==Object.getOwnPropertySymbols,rr="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:nr?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function ir(e){return null===e?null:"object"==typeof e?""+e:e}function or(e,t){return Mn.hasOwnProperty.call(e,t)}var ar=Object.getOwnPropertyDescriptors||function(e){var t={};return rr(e).forEach((function(n){t[n]=Ln(e,n)})),t};function sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lr(e,t,n){return t&&sr(e.prototype,t),n&&sr(e,n),e}function cr(){return(cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ur(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function pr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fr(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return dr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(n)?dr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance. \n In order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var hr=Symbol("mobx-stored-annotations");function mr(e){return Object.assign((function(t,n){gr(t,n,e)}),e)}function gr(e,t,n){or(e,hr)||Kn(e,hr,cr({},e[hr])),function(e){return e.annotationType_===Sr}(n)||(e[hr][t]=n)}var yr=Symbol("mobx administration"),br=
2022-02-04 13:00:46 +03:00
width : calc ( 100 % - $ { e => e . theme . rightPanel . width } ) ;
padding : 0 $ { e => e . theme . spacing . sectionHorizontal } px ;
2022-05-10 19:14:02 +03:00
$ { ( { compact : e , theme : t } ) => vn ( "medium" , ! 0 ) `
2022-02-04 13:00:46 +03:00
width : 100 % ;
padding : $ { ` ${ e ? 0 : t . spacing . sectionVertical } px ${ t . spacing . sectionHorizontal } px ` } ;
` };
2022-05-10 19:14:02 +03:00
` ,lp=xn.div.attrs((e=>({[ep]:e.id}))) `
2022-02-04 13:00:46 +03:00
padding : $ { e => e . theme . spacing . sectionVertical } px 0 ;
& : last - child {
min - height : calc ( 100 vh + 1 px ) ;
}
& > & : last - child {
min - height : initial ;
}
2022-05-10 19:14:02 +03:00
$ { vn ( "medium" , ! 0 ) `
2022-02-04 13:00:46 +03:00
padding : 0 ;
` }
$ { e => e . underlined ? "\n position: relative;\n\n &:not(:last-of-type):after {\n position: absolute;\n bottom: 0;\n width: 100%;\n display: block;\n content: '';\n border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n }\n " : "" }
2022-05-10 19:14:02 +03:00
` ,cp=xn(xn.div `
2022-02-04 13:00:46 +03:00
width : $ { e => e . theme . rightPanel . width } ;
color : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
background - color : $ { e => e . theme . rightPanel . backgroundColor } ;
padding : 0 $ { e => e . theme . spacing . sectionHorizontal } px ;
2022-05-10 19:14:02 +03:00
$ { vn ( "medium" , ! 0 ) `
2022-02-04 13:00:46 +03:00
width : 100 % ;
padding : $ { e => ` ${ e . theme . spacing . sectionVertical } px ${ e . theme . spacing . sectionHorizontal } px ` } ;
` };
` ) `
background - color : $ { e => e . theme . rightPanel . backgroundColor } ;
2022-05-10 19:14:02 +03:00
` ,up=xn.div `
2022-02-04 13:00:46 +03:00
display : flex ;
width : 100 % ;
padding : 0 ;
2022-05-10 19:14:02 +03:00
$ { vn ( "medium" , ! 0 ) `
2022-02-04 13:00:46 +03:00
flex - direction : column ;
` };
2022-05-10 19:14:02 +03:00
` ,pp={1:"1.85714em",2:"1.57143em",3:"1.27em"},dp=e=>mn `
2022-02-04 13:00:46 +03:00
font - family : $ { ( { theme : e } ) => e . typography . headings . fontFamily } ;
font - weight : $ { ( { theme : e } ) => e . typography . headings . fontWeight } ;
2022-05-10 19:14:02 +03:00
font - size : $ { pp [ e ] } ;
2022-02-04 13:00:46 +03:00
line - height : $ { ( { theme : e } ) => e . typography . headings . lineHeight } ;
2022-05-10 19:14:02 +03:00
` ,fp=xn.h1 `
$ { dp ( 1 ) } ;
2022-04-28 16:24:41 +03:00
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
2022-02-04 13:00:46 +03:00
2022-05-10 19:14:02 +03:00
$ { wn ( "H1" ) } ;
` ,hp=xn.h2 `
$ { dp ( 2 ) } ;
2022-04-28 16:24:41 +03:00
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
margin : 0 0 20 px ;
2022-02-04 13:00:46 +03:00
2022-05-10 19:14:02 +03:00
$ { wn ( "H2" ) } ;
` ,mp=(xn.h2 `
$ { dp ( 3 ) } ;
2022-04-28 16:24:41 +03:00
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
2022-02-04 13:00:46 +03:00
2022-05-10 19:14:02 +03:00
$ { wn ( "H3" ) } ;
` ,xn.h3 `
2022-02-04 13:00:46 +03:00
color : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
2022-05-10 19:14:02 +03:00
$ { wn ( "RightPanelHeader" ) } ;
` ),gp=xn.h5 `
2022-02-04 13:00:46 +03:00
border - bottom : 1 px solid rgba ( 38 , 50 , 56 , 0.3 ) ;
margin : 1 em 0 1 em 0 ;
color : rgba ( 38 , 50 , 56 , 0.5 ) ;
font - weight : normal ;
text - transform : uppercase ;
font - size : 0.929 em ;
line - height : 20 px ;
2022-05-10 19:14:02 +03:00
$ { wn ( "UnderlinedHeader" ) } ;
` ,yp=(0,r.createContext)(void 0),{Provider:bp,Consumer:vp}=yp;function xp(e){const{spec:t,specUrl:i,options:o,onLoaded:a,children:s}=e,[l,c]=r.useState(null),[u,p]=r.useState(null);if(u)throw u;r.useEffect((()=>{!function(){return e=this,null,r=function*(){if(t||i){c(null);try{const e=yield function(e){return t=this,r=function*(){const t=new Ea.Config({}),r={config:t,base:Mt?window.location.href:process.cwd()};Mt&&(t.resolve.http.customFetch=n.g.fetch),"object"==typeof e&&null!==e?r.doc={source:{absoluteRef:""},parsed:e}:r.ref=e;const{bundle:{parsed:i}}=yield(0,Sa.bundle)(r);return void 0!==i.swagger?(o=i,console.warn("[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0"),new Promise(((e,t)=>(0,_a.convertObj)(o,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},((n,r)=>{if(n)return t(n);e(r&&r.openapi)}))))):i;var o},new Promise(((e,n)=>{var i=e=>{try{a(r.next(e))}catch(e){n(e)}},o=e=>{try{a(r.throw(e))}catch(e){n(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,o);a((r=r.apply(t,null)).next())}));var t,r}(t||i);c(e)}catch(e){throw p(e),e}}},new Promise(((t,n)=>{var i=e=>{try{a(r.next(e))}catch(e){n(e)}},o=e=>{try{a(r.throw(e))}catch(e){n(e)}},a=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,o);a((r=r.apply(e,null)).next())}));var e,r}()}),[t,i]);const d=r.useMemo((()=>{if(!l)return null;try{return new Pg(l,i,o)}catch(e){throw a&&a(e),e}}),[l,i,o]);return r.useEffect((()=>{d&&a&&a()}),[d,a]),s({loading:!d,store:d})}const wp=e=>mn `
2022-02-04 13:00:46 +03:00
$ { e } {
cursor : pointer ;
margin - left : - 20 px ;
padding : 0 ;
line - height : 1 ;
width : 20 px ;
display : inline - block ;
outline : 0 ;
}
$ { e } : before {
content : '' ;
width : 15 px ;
height : 15 px ;
background - size : contain ;
background - image : url ( 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==' ) ;
opacity : 0.5 ;
visibility : hidden ;
display : inline - block ;
vertical - align : middle ;
}
h1 : hover > $ { e } : : before , h2 : hover > $ { e } : : before , $ { e } : hover : : before {
visibility : visible ;
}
2022-05-10 19:14:02 +03:00
` ;function kp(e){const t=r.useContext(yp),n=r.useCallback((n=>{t&&function(e,t,n){t.defaultPrevented||0!==t.button||(e=>!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey))(t)||(t.preventDefault(),e.replace(encodeURI(n)))}(t.menu.history,n,e.to)}),[t,e.to]);return t?r.createElement("a",{className:e.className,href:t.menu.history.linkForId(e.to),onClick:n,"aria-label":e.to},e.children):null}const Op=xn(kp) `
$ { wp ( "&" ) } ;
` ;function Sp(e){return r.createElement(Op,{to:e.to})}const Ep={left:"90deg",right:"-90deg",up:"-180deg",down:"0"};class _p extends r.PureComponent{render(){return r.createElement("svg",{className:this.props.className,style:this.props.style,version:"1.1",viewBox:"0 0 24 24",x:"0",xmlns:"http://www.w3.org/2000/svg",y:"0","aria-hidden":"true"},r.createElement("polygon",{points:"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "}))}}const Ap=xn(_p) `
2022-02-04 13:00:46 +03:00
height : $ { e => e . size || "18px" } ;
width : $ { e => e . size || "18px" } ;
vertical - align : middle ;
float : $ { e => e . float || "" } ;
transition : transform 0.2 s ease - out ;
2022-05-10 19:14:02 +03:00
transform : rotateZ ( $ { e => Ep [ e . direction || "down" ] } ) ;
2022-02-04 13:00:46 +03:00
polygon {
fill : $ { ( { color : e , theme : t } ) => e && t . colors . responses [ e ] && t . colors . responses [ e ] . color || e } ;
}
2022-05-10 19:14:02 +03:00
` ,Rp=xn.span `
2022-02-04 13:00:46 +03:00
display : inline - block ;
padding : 2 px 8 px ;
margin : 0 ;
background - color : $ { e => e . theme . colors [ e . type ] . main } ;
color : $ { e => e . theme . colors [ e . type ] . contrastText } ;
font - size : $ { e => e . theme . typography . code . fontSize } ;
vertical - align : middle ;
line - height : 1.6 ;
border - radius : 4 px ;
font - weight : $ { ( { theme : e } ) => e . typography . fontWeightBold } ;
font - size : 12 px ;
+ span [ type ] {
margin - left : 4 px ;
}
2022-05-10 19:14:02 +03:00
` ,Cp=mn `
2022-02-04 13:00:46 +03:00
text - decoration : line - through ;
color : # 707070 ;
2022-05-10 19:14:02 +03:00
` ,Tp=xn.caption `
2022-02-04 13:00:46 +03:00
text - align : right ;
font - size : 0.9 em ;
font - weight : normal ;
color : $ { e => e . theme . colors . text . secondary } ;
2022-05-10 19:14:02 +03:00
` ,Pp=xn.td `
2022-02-04 13:00:46 +03:00
border - left : 1 px solid $ { e => e . theme . schema . linesColor } ;
box - sizing : border - box ;
position : relative ;
padding : 10 px 10 px 10 px 0 ;
2022-05-10 19:14:02 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
display : block ;
overflow : hidden ;
` }
tr : first - of - type > & ,
tr . last > & {
border - left - width : 0 ;
background - position : top left ;
background - repeat : no - repeat ;
background - size : 1 px 100 % ;
}
tr : first - of - type > & {
background - image : linear - gradient (
to bottom ,
transparent 0 % ,
transparent 22 px ,
$ { e => e . theme . schema . linesColor } 22 px ,
$ { e => e . theme . schema . linesColor } 100 %
) ;
}
tr . last > & {
background - image : linear - gradient (
to bottom ,
$ { e => e . theme . schema . linesColor } 0 % ,
$ { e => e . theme . schema . linesColor } 22 px ,
transparent 22 px ,
transparent 100 %
) ;
}
tr . last + tr > & {
border - left - color : transparent ;
}
tr . last : first - child > & {
background : none ;
border - left - color : transparent ;
}
2022-05-10 19:14:02 +03:00
` ,Ip=xn(Pp) `
2022-02-04 13:00:46 +03:00
padding : 0 ;
2022-05-10 19:14:02 +03:00
` ,jp=xn(Pp) `
2022-02-04 13:00:46 +03:00
vertical - align : top ;
line - height : 20 px ;
white - space : nowrap ;
font - size : 13 px ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
& . deprecated {
2022-05-10 19:14:02 +03:00
$ { Cp } ;
2022-02-04 13:00:46 +03:00
}
$ { ( { kind : e } ) => "field" !== e ? "font-style: italic" : "" } ;
2022-05-10 19:14:02 +03:00
$ { wn ( "PropertyNameCell" ) } ;
` ,Np=xn.td `
2022-02-04 13:00:46 +03:00
border - bottom : 1 px solid # 9 fb4be ;
padding : 10 px 0 ;
width : $ { e => e . theme . schema . defaultDetailsWidth } ;
box - sizing : border - box ;
tr . expanded & {
border - bottom : none ;
}
2022-05-10 19:14:02 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
padding : 0 20 px ;
border - bottom : none ;
border - left : 1 px solid $ { e => e . theme . schema . linesColor } ;
tr . last > & {
border - left : none ;
}
` }
2022-05-10 19:14:02 +03:00
$ { wn ( "PropertyDetailsCell" ) } ;
` , $ p=xn.span `
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . schema . linesColor } ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
margin - right : 10 px ;
& : : before {
content : '' ;
display : inline - block ;
vertical - align : middle ;
width : 10 px ;
height : 1 px ;
background : $ { e => e . theme . schema . linesColor } ;
}
& : : after {
content : '' ;
display : inline - block ;
vertical - align : middle ;
width : 1 px ;
background : $ { e => e . theme . schema . linesColor } ;
height : 7 px ;
}
2022-05-10 19:14:02 +03:00
` ,Lp=xn.div `
2022-02-04 13:00:46 +03:00
padding : $ { ( { theme : e } ) => e . schema . nestingSpacing } ;
2022-05-10 19:14:02 +03:00
` ,Dp=xn.table `
2022-02-04 13:00:46 +03:00
border - collapse : separate ;
border - radius : 3 px ;
font - size : $ { e => e . theme . typography . fontSize } ;
border - spacing : 0 ;
width : 100 % ;
> tr {
vertical - align : middle ;
}
2022-05-10 19:14:02 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
display : block ;
> tr , > tbody > tr {
display : block ;
}
` }
2022-05-10 19:14:02 +03:00
$ { vn ( "small" , ! 1 , " and (-ms-high-contrast:none)" ) `
2022-02-04 13:00:46 +03:00
td {
float : left ;
width : 100 % ;
}
` }
&
2022-05-10 19:14:02 +03:00
$ { Lp } ,
2022-02-04 13:00:46 +03:00
&
2022-05-10 19:14:02 +03:00
$ { Lp }
$ { Lp }
$ { Lp } ,
2022-02-04 13:00:46 +03:00
&
2022-05-10 19:14:02 +03:00
$ { Lp }
$ { Lp }
$ { Lp }
$ { Lp }
$ { Lp } {
2022-02-04 13:00:46 +03:00
margin : $ { ( { theme : e } ) => e . schema . nestingSpacing } ;
margin - right : 0 ;
background : $ { ( { theme : e } ) => e . schema . nestedBackground } ;
}
&
2022-05-10 19:14:02 +03:00
$ { Lp }
$ { Lp } ,
2022-02-04 13:00:46 +03:00
&
2022-05-10 19:14:02 +03:00
$ { Lp }
$ { Lp }
$ { Lp }
$ { Lp } ,
2022-02-04 13:00:46 +03:00
&
2022-05-10 19:14:02 +03:00
$ { Lp }
$ { Lp }
$ { Lp }
$ { Lp }
$ { Lp }
$ { Lp } {
2022-02-04 13:00:46 +03:00
background : # ffffff ;
}
2022-05-10 19:14:02 +03:00
` ,Mp=xn.div `
2022-02-04 13:00:46 +03:00
margin : 0 0 3 px 0 ;
display : inline - block ;
2022-05-10 19:14:02 +03:00
` ,Fp=xn.span `
2022-02-04 13:00:46 +03:00
font - size : 0.9 em ;
margin - right : 10 px ;
color : $ { e => e . theme . colors . primary . main } ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
}
2022-05-10 19:14:02 +03:00
` ,zp=xn.button `
2022-02-04 13:00:46 +03:00
display : inline - block ;
margin - right : 10 px ;
margin - bottom : 5 px ;
font - size : 0.8 em ;
cursor : pointer ;
border : 1 px solid $ { e => e . theme . colors . primary . main } ;
padding : 2 px 10 px ;
line - height : 1.5 em ;
outline : none ;
& : focus {
box - shadow : 0 0 0 1 px $ { e => e . theme . colors . primary . main } ;
}
2022-05-10 19:14:02 +03:00
$ { ( { deprecated : e } ) => e && Cp || "" } ;
2022-04-28 16:24:41 +03:00
2022-05-10 19:14:02 +03:00
$ { e => e . active ? ` \n color: white; \n background-color: ${ e . theme . colors . primary . main } ; \n &:focus { \n box-shadow: none; \n background-color: ${ Et ( . 15 , e . theme . colors . primary . main ) } ; \n } \n ` : ` \n color: ${ e . theme . colors . primary . main } ; \n background-color: white; \n ` }
` ,Up=xn.div `
2022-02-04 13:00:46 +03:00
font - size : 0.9 em ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
& : : after {
content : ' [' ;
}
2022-05-10 19:14:02 +03:00
` ,Bp=xn.div `
2022-02-04 13:00:46 +03:00
font - size : 0.9 em ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
& : : after {
content : ']' ;
}
2022-05-10 19:14:02 +03:00
` ;function qp(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var Vp=qp("Tab"),Wp=qp("TabList"),Hp=qp("TabPanel");function Yp(){return(Yp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qp(e,t){return r.Children.map(e,(function(e){return null===e?null:function(e){return Vp(e)||Wp(e)||Hp(e)}(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children?(0,r.cloneElement)(e,Yp({},e.props,{children:Qp(e.props.children,t)})):e}))}function Gp(e,t){return r.Children.forEach(e,(function(e){null!==e&&(Vp(e)||Hp(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children&&(Wp(e)&&t(e),Gp(e.props.children,t)))}))}function Xp(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Xp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Kp(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Xp(e))&&(r&&(r+=" "),r+=t);return r}var Zp,Jp=0;function ed(){return"react-tabs-"+Jp++}function td(e){var t=0;return Gp(e,(function(e){Vp(e)&&t++})),t}function nd(){return(nd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function rd(e,t){return(rd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function id(e){return e&&"getAttribute"in e}function od(e){return id(e)&&"tab"===e.getAttribute("role")}function ad(e){return id(e)&&"true"===e.getAttribute("aria-disabled")}var sd=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).tabNodes=[],t.handleKeyDown=function(e){var n=t.props,r=n.direction,i=n.disableUpDownKeys;if(t.isTabFromContainer(e.target)){var o=t.props.selectedIndex,a=!1,s=!1;32!==e.keyCode&&13!==e.keyCode||(a=!0,s=!1,t.handleClick(e)),37===e.keyCode||!i&&38===e.keyCode?(o="rtl"===r?t.getNextTab(o):t.getPrevTab(o),a=!0,s=!0):39===e.keyCode||!i&&40===e.keyCode?(o="rtl"===r?t.getPrevTab(o):t.getNextTab(o),a=!0,s=!0):35===e.keyCode?(o=t.getLastTab(),a=!0,s=!0):36===e.keyCode&&(o=t.getFirstTab(),a=!0,s=!0),a&&e.preventDefault(),s&&t.setSelected(o,e)}},t.handleClick=function(e){var n=e.target;do{if(t.isTabFromContainer(n)){if(ad(n))return;var r=[].slice.call(n.parentNode.children).filter(od).indexOf(n);return void t.setSelected(r,e)}}while(null!=(n=n.parentNode))},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,rd(t,n);var o=i.prototype;return o.setSelected=function(e,t){if(!(e<0||e>=this.getTabsCount())){var n=this.props;(0,n.onSelect)(e,n.selectedIndex,t)}},o.getNextTab=function(e){for(var t=this.getTabsCount(),n=e+1;n<t;n++)if(!ad(this.getTab(n)))return n;for(var r=0;r<e;r++)if(!ad(this.getTab(r)))return r;return e},o.getPrevTab=function(e){for(var t=e;t--;)if(!ad(this.getTab(t)))return t;for(t=this.getTabsCount();t-- >e;)if(!ad(this.getTab(t)))return t;return e},o.getFirstTab=function(){for(var e=this.getTabsCount(),t=0;t<e;t++)if(!ad(this.getTab(t)))return t;return null},o.getLastTab=function(){for(var e=this.getTabsCount();e--;)if(!ad(this.getTab(e)))return e;return null},o.getTabsCount=function(){return td(this.props.children)},o.getPanelsCount=function(){return e=this.props.children,t=0,Gp(e,(function(e){Hp(e)&&t++})),t;var e,t},o.getTab=function(e){return this.tabNodes["tabs-"+e]},o.getChildren=function(){var e=this,t=0,n=this.props,i=n.children,o=n.disabledTabClassName,a=n.focus,s=n.forceRenderTabPanel,l=n.selectedIndex,c=n.selectedTabClassName,u=n.selectedTabPanelClassName,p=n.environment;this.tabIds=this.tabIds||[],this.panelIds=this.panelIds||[];for(var d=this.tabIds.length-this.getTabsCount();d++<0;)this.tabIds.push(ed()),this.panelIds.push(ed());return Qp(i,(function(n){var i=n;if(Wp(n)){var d=0,f=!1;null==Zp&&function(e){var t=e||("undefined"!=
2022-02-04 13:00:46 +03:00
> ul {
list - style : none ;
padding : 0 ;
margin : 0 ;
margin : 0 - 5 px ;
> li {
padding : 5 px 10 px ;
display : inline - block ;
background - color : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
border - bottom : 1 px solid rgba ( 0 , 0 , 0 , 0.5 ) ;
cursor : pointer ;
text - align : center ;
outline : none ;
2022-05-10 19:14:02 +03:00
color : $ { ( { theme : e } ) => Et ( e . colors . tonalOffset , e . rightPanel . textColor ) } ;
2022-02-04 13:00:46 +03:00
margin : 0
$ { ( { theme : e } ) => ` ${ e . spacing . unit } px ${ e . spacing . unit } px ${ e . spacing . unit } px ` } ;
2022-05-10 19:14:02 +03:00
border : 1 px solid $ { ( { theme : e } ) => Et ( . 05 , e . codeBlock . backgroundColor ) } ;
2022-02-04 13:00:46 +03:00
border - radius : 5 px ;
min - width : 60 px ;
font - size : 0.9 em ;
font - weight : bold ;
& . react - tabs _ _tab -- selected {
color : $ { e => e . theme . colors . text . primary } ;
background : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
& : focus {
outline : auto ;
}
}
& : only - child {
flex : none ;
min - width : 100 px ;
}
& . tab - success {
color : $ { e => e . theme . colors . responses . success . tabTextColor } ;
}
& . tab - redirect {
color : $ { e => e . theme . colors . responses . redirect . tabTextColor } ;
}
& . tab - info {
color : $ { e => e . theme . colors . responses . info . tabTextColor } ;
}
& . tab - error {
color : $ { e => e . theme . colors . responses . error . tabTextColor } ;
}
}
}
> . react - tabs _ _tab - panel {
background : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
& > div ,
& > pre {
padding : $ { e => 4 * e . theme . spacing . unit } px ;
margin : 0 ;
}
& > div > pre {
padding : 0 ;
}
}
2022-05-10 19:14:02 +03:00
` ,wd=(xn(xd) `
2022-02-04 13:00:46 +03:00
> ul {
display : block ;
> li {
padding : 2 px 5 px ;
min - width : auto ;
margin : 0 15 px 0 0 ;
font - size : 13 px ;
font - weight : normal ;
border - bottom : 1 px dashed ;
2022-05-10 19:14:02 +03:00
color : $ { ( { theme : e } ) => Et ( e . colors . tonalOffset , e . rightPanel . textColor ) } ;
2022-02-04 13:00:46 +03:00
border - radius : 0 ;
background : none ;
& : last - child {
margin - right : 0 ;
}
& . react - tabs _ _tab -- selected {
color : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
background : none ;
}
}
}
> . react - tabs _ _tab - panel {
& > div ,
& > pre {
padding : $ { e => 2 * e . theme . spacing . unit } px 0 ;
}
}
2022-05-10 19:14:02 +03:00
` ,xn.div `
2022-02-04 13:00:46 +03:00
/ * *
* Based on prism - dark . css
* /
code [ class *= 'language-' ] ,
pre [ class *= 'language-' ] {
/ * c o l o r : w h i t e ;
background : none ; * /
text - shadow : 0 - 0.1 em 0.2 em black ;
text - align : left ;
white - space : pre ;
word - spacing : normal ;
word - break : normal ;
word - wrap : normal ;
line - height : 1.5 ;
- moz - tab - size : 4 ;
- o - tab - size : 4 ;
tab - size : 4 ;
- webkit - hyphens : none ;
- moz - hyphens : none ;
- ms - hyphens : none ;
hyphens : none ;
}
@ media print {
code [ class *= 'language-' ] ,
pre [ class *= 'language-' ] {
text - shadow : none ;
}
}
/* Code blocks */
pre [ class *= 'language-' ] {
padding : 1 em ;
margin : 0.5 em 0 ;
overflow : auto ;
}
. token . comment ,
. token . prolog ,
. token . doctype ,
. token . cdata {
color : hsl ( 30 , 20 % , 50 % ) ;
}
. token . punctuation {
opacity : 0.7 ;
}
. namespace {
opacity : 0.7 ;
}
. token . property ,
. token . tag ,
. token . number ,
. token . constant ,
. token . symbol {
color : # 4 a8bb3 ;
}
. token . boolean {
color : # e64441 ;
}
. token . selector ,
. token . attr - name ,
. token . string ,
. token . char ,
. token . builtin ,
. token . inserted {
color : # a0fbaa ;
& + a ,
& + a : visited {
color : # 4 ed2ba ;
text - decoration : underline ;
}
}
. token . property . string {
color : white ;
}
. token . operator ,
. token . entity ,
. token . url ,
. token . variable {
color : hsl ( 40 , 90 % , 60 % ) ;
}
. token . atrule ,
. token . attr - value ,
. token . keyword {
color : hsl ( 350 , 40 % , 70 % ) ;
}
. token . regex ,
. token . important {
color : # e90 ;
}
. token . important ,
. token . bold {
font - weight : bold ;
}
. token . italic {
font - style : italic ;
}
. token . entity {
cursor : help ;
}
. token . deleted {
color : red ;
}
2022-05-10 19:14:02 +03:00
$ { wn ( "Prism" ) } ;
` ),kd=xn.div `
2022-02-04 13:00:46 +03:00
opacity : 0.7 ;
transition : opacity 0.3 s ease ;
text - align : right ;
& : focus - within {
opacity : 1 ;
}
> button {
background - color : transparent ;
border : 0 ;
color : inherit ;
padding : 2 px 10 px ;
font - family : $ { ( { theme : e } ) => e . typography . fontFamily } ;
font - size : $ { ( { theme : e } ) => e . typography . fontSize } ;
line - height : $ { ( { theme : e } ) => e . typography . lineHeight } ;
cursor : pointer ;
outline : 0 ;
: hover ,
: focus {
background : rgba ( 255 , 255 , 255 , 0.1 ) ;
}
}
2022-05-10 19:14:02 +03:00
` ,Od=xn.div `
& : hover $ { kd } {
2022-02-04 13:00:46 +03:00
opacity : 1 ;
}
2022-05-10 19:14:02 +03:00
` ,Sd=xn(wd.withComponent("pre")) `
2022-02-04 13:00:46 +03:00
font - family : $ { e => e . theme . typography . code . fontFamily } ;
font - size : $ { e => e . theme . typography . code . fontSize } ;
overflow - x : auto ;
margin : 0 ;
white - space : $ { ( { theme : e } ) => e . typography . code . wrap ? "pre-wrap" : "pre" } ;
2022-05-10 19:14:02 +03:00
` ;function Ed(e){return getComputedStyle(e)}function _d(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r+="px"),e.style[n]=r}return e}function Ad(e){var t=document.createElement("div");return t.className=e,t}var Rd="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Cd(e,t){if(!Rd)throw new Error("No element matching method supported");return Rd.call(e,t)}function Td(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function Pd(e,t){return Array.prototype.filter.call(e.children,(function(e){return Cd(e,t)}))}var Id=function(e){return"ps__thumb-"+e},jd=function(e){return"ps__rail-"+e},Nd="ps__child--consume", $ d="ps--focus",Ld="ps--clicking",Dd=function(e){return"ps--active-"+e},Md=function(e){return"ps--scrolling-"+e},Fd={x:null,y:null};function zd(e,t){var n=e.element.classList,r=Md(t);n.contains(r)?clearTimeout(Fd[t]):n.add(r)}function Ud(e,t){Fd[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(Md(t))}),e.settings.scrollingThreshold)}var Bd=function(e){this.element=e,this.handlers={}},qd={isEmpty:{configurable:!0}};Bd.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},Bd.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter((function(r){return!(!t||r===t)||(n.element.removeEventListener(e,r,!1),!1)}))},Bd.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},qd.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties(Bd.prototype,qd);var Vd=function(){this.eventElements=[]};function Wd(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function Hd(e,t,n,r,i){var o;if(void 0===r&&(r=!0),void 0===i&&(i=!1),"top"===t)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,r,i){var o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5];void 0===r&&(r=!0),void 0===i&&(i=!1);var p=e.element;e.reach[l]=null,p[s]<1&&(e.reach[l]="start"),p[s]>e[o]-e[a]-1&&(e.reach[l]="end"),t&&(p.dispatchEvent(Wd("ps-scroll-"+l)),t<0?p.dispatchEvent(Wd("ps-scroll-"+c)):t>0&&p.dispatchEvent(Wd("ps-scroll-"+u)),r&&function(e,t){zd(e,t),Ud(e,t)}(e,l)),e.reach[l]&&(t||i)&&p.dispatchEvent(Wd("ps-"+l+"-reach-"+e.reach[l]))}(e,n,o,r,i)}function Yd(e){return parseInt(e,10)||0}Vd.prototype.eventElement=function(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new Bd(e),this.eventElements.push(t)),t},Vd.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},Vd.prototype.unbind=function(e,t,n){var r=this.eventElement(e);r.unbind(t,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},Vd.prototype.unbindAll=function(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},Vd.prototype.once=function(e,t,n){var r=this.eventElement(e),i=function(e){r.unbind(t,i),n(e)};r.bind(t,i)};var Qd={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Gd(e){var t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.ceil(r.width),e.containerHeight=Math.ceil(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(Pd(t,jd("x")).forEach((function(
position : relative ;
` ;class pf extends r.Component{constructor(){super(...arguments),this.handleRef=e=>{this._container=e}}componentDidMount(){const e=this._container.parentElement&&this._container.parentElement.scrollTop||0;this.inst=new sf(this._container,this.props.options||{}),this._container.scrollTo&&this._container.scrollTo(0,e)}componentDidUpdate(){this.inst.update()}componentWillUnmount(){this.inst.destroy()}render(){const{children:e,className:t,updateFn:n}=this.props;return n&&n(this.componentDidUpdate.bind(this)),r.createElement(r.Fragment,null,lf&&r.createElement(cf,null),r.createElement(uf,{className: ` scrollbar - container $ { t } ` ,ref:this.handleRef},e))}}function df(e){return r.createElement(Cn.Consumer,null,(t=>t.nativeScrollbars?r.createElement("div",{style:{overflow:"auto",overscrollBehavior:"contain",msOverflowStyle:"-ms-autohiding-scrollbar"}},e.children):r.createElement(pf,((e,t)=>{for(var n in t||(t={}))rf.call(t,n)&&af(e,n,t[n]);if(nf)for(var n of nf(t))of.call(t,n)&&af(e,n,t[n]);return e})({},e),e.children)))}const ff=xn((({className:e,style:t})=>r.createElement("svg",{className:e,style:t,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("polyline",{points:"6 9 12 15 18 9"})))) `
position : absolute ;
pointer - events : none ;
z - index : 1 ;
top : 50 % ;
- webkit - transform : translateY ( - 50 % ) ;
- ms - transform : translateY ( - 50 % ) ;
transform : translateY ( - 50 % ) ;
right : 8 px ;
margin : auto ;
text - align : center ;
polyline {
color : $ { e => "dark" === e . variant && "white" } ;
}
` ,hf=r.memo((e=>{const{options:t,onChange:n,placeholder:i,value:o="",variant:a,className:s}=e;return r.createElement("div",{className:s},r.createElement(ff,{variant:a}),r.createElement("select",{onChange:e=>{const{selectedIndex:r}=e.target;n(t[i?r-1:r])},value:o,className:"dropdown-select"},i&&r.createElement("option",{disabled:!0,hidden:!0,value:i},i),t.map((({idx:e,value:t,title:n},i)=>r.createElement("option",{key:e||t+i,value:t},n||t)))),r.createElement("label",null,o))})),mf=We(hf) `
label {
box - sizing : border - box ;
min - width : 100 px ;
outline : none ;
display : inline - block ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
vertical - align : bottom ;
width : $ { ( { fullWidth : e } ) => e ? "100%" : "auto" } ;
text - transform : none ;
padding : 0 22 px 0 4 px ;
font - size : 0.929 em ;
line - height : 1.5 em ;
font - family : inherit ;
text - overflow : ellipsis ;
overflow : hidden ;
white - space : nowrap ;
}
. dropdown - select {
position : absolute ;
top : 0 ;
left : 0 ;
width : 100 % ;
height : 100 % ;
opacity : 0 ;
border : none ;
appearance : none ;
cursor : pointer ;
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
line - height : inherit ;
font - family : inherit ;
}
box - sizing : border - box ;
min - width : 100 px ;
outline : none ;
display : inline - block ;
border - radius : 2 px ;
border : 1 px solid rgba ( 38 , 50 , 56 , 0.5 ) ;
vertical - align : bottom ;
padding : 2 px 0 px 2 px 6 px ;
2022-02-04 13:00:46 +03:00
position : relative ;
2022-05-10 19:14:02 +03:00
width : auto ;
background : white ;
color : # 263238 ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
font - size : 0.929 em ;
line - height : 1.5 em ;
cursor : pointer ;
transition : border 0.25 s ease , color 0.25 s ease , box - shadow 0.25 s ease ;
& : hover ,
& : focus - within {
border : 1 px solid $ { e => e . theme . colors . primary . main } ;
color : $ { e => e . theme . colors . primary . main } ;
box - shadow : 0 px 0 px 0 px 1 px $ { e => e . theme . colors . primary . main } ;
}
` ,gf=We(mf) `
margin - left : 10 px ;
text - transform : none ;
font - size : 0.969 em ;
font - size : 1 em ;
border : none ;
padding : 0 1.2 em 0 0 ;
background : transparent ;
& : hover ,
& : focus - within {
border : none ;
box - shadow : none ;
label {
color : $ { e => e . theme . colors . primary . main } ;
text - shadow : 0 px 0 px 0 px $ { e => e . theme . colors . primary . main } ;
}
}
` ,yf=We.span `
margin - left : 10 px ;
text - transform : none ;
font - size : 0.929 em ;
color : black ;
` ;var bf=Object.defineProperty,vf=Object.getOwnPropertySymbols,xf=Object.prototype.hasOwnProperty,wf=Object.prototype.propertyIsEnumerable,kf=(e,t,n)=>t in e?bf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Of(e){const{Label:t=yf,Dropdown:n=gf}=e;return 1===e.options.length?r.createElement(t,null,e.options[0].value):r.createElement(n,((e,t)=>{for(var n in t||(t={}))xf.call(t,n)&&kf(e,n,t[n]);if(vf)for(var n of vf(t))wf.call(t,n)&&kf(e,n,t[n]);return e})({},e))}var Sf=n(7856);const Ef=mn `
2022-02-04 13:00:46 +03:00
a {
text - decoration : none ;
color : $ { e => e . theme . typography . links . color } ;
& : visited {
color : $ { e => e . theme . typography . links . visited } ;
}
& : hover {
color : $ { e => e . theme . typography . links . hover } ;
}
}
2022-05-10 19:14:02 +03:00
` ,_f=xn(wd) `
2022-02-04 13:00:46 +03:00
font - family : $ { e => e . theme . typography . fontFamily } ;
font - weight : $ { e => e . theme . typography . fontWeightRegular } ;
line - height : $ { e => e . theme . typography . lineHeight } ;
p {
& : last - child {
margin - bottom : 0 ;
}
}
$ { ( { compact : e } ) => e && "\n p:first-child {\n margin-top: 0;\n }\n p:last-child {\n margin-bottom: 0;\n }\n " }
$ { ( { inline : e } ) => e && " p {\n display: inline-block;\n }" }
h1 {
2022-05-10 19:14:02 +03:00
$ { dp ( 1 ) } ;
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . colors . primary . main } ;
margin - top : 0 ;
}
h2 {
2022-05-10 19:14:02 +03:00
$ { dp ( 2 ) } ;
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . colors . text . primary } ;
}
code {
color : $ { ( { theme : e } ) => e . typography . code . color } ;
background - color : $ { ( { theme : e } ) => e . typography . code . backgroundColor } ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
border - radius : 2 px ;
border : 1 px solid rgba ( 38 , 50 , 56 , 0.1 ) ;
padding : 0 $ { ( { theme : e } ) => e . spacing . unit } px ;
font - size : $ { e => e . theme . typography . code . fontSize } ;
font - weight : $ { ( { theme : e } ) => e . typography . code . fontWeight } ;
word - break : break - word ;
}
pre {
font - family : $ { e => e . theme . typography . code . fontFamily } ;
white - space : $ { ( { theme : e } ) => e . typography . code . wrap ? "pre-wrap" : "pre" } ;
background - color : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
color : white ;
padding : $ { e => 4 * e . theme . spacing . unit } px ;
overflow - x : auto ;
line - height : normal ;
border - radius : 0 px ;
border : 1 px solid rgba ( 38 , 50 , 56 , 0.1 ) ;
code {
background - color : transparent ;
color : white ;
padding : 0 ;
& : before ,
& : after {
content : none ;
}
}
}
blockquote {
margin : 0 ;
margin - bottom : 1 em ;
padding : 0 15 px ;
color : # 777 ;
border - left : 4 px solid # ddd ;
}
img {
max - width : 100 % ;
box - sizing : content - box ;
}
ul ,
ol {
padding - left : 2 em ;
margin : 0 ;
margin - bottom : 1 em ;
ul ,
ol {
margin - bottom : 0 ;
margin - top : 0 ;
}
}
table {
display : block ;
width : 100 % ;
overflow : auto ;
word - break : normal ;
word - break : keep - all ;
border - collapse : collapse ;
border - spacing : 0 ;
margin - top : 1.5 em ;
margin - bottom : 1.5 em ;
}
table tr {
background - color : # fff ;
border - top : 1 px solid # ccc ;
& : nth - child ( 2 n ) {
background - color : $ { ( { theme : e } ) => e . schema . nestedBackground } ;
}
}
table th ,
table td {
padding : 6 px 13 px ;
border : 1 px solid # ddd ;
}
table th {
text - align : left ;
font - weight : bold ;
}
2022-05-10 19:14:02 +03:00
$ { wp ( ".share-link" ) } ;
2022-02-04 13:00:46 +03:00
2022-05-10 19:14:02 +03:00
$ { Ef }
2022-02-04 13:00:46 +03:00
2022-05-10 19:14:02 +03:00
$ { wn ( "Markdown" ) } ;
` ;var Af=Object.defineProperty,Rf=Object.getOwnPropertySymbols,Cf=Object.prototype.hasOwnProperty,Tf=Object.prototype.propertyIsEnumerable,Pf=(e,t,n)=>t in e?Af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const If=_f.withComponent("span");function jf(e){const t=e.inline?If:_f;return r.createElement(Pn,null,(n=>{return r.createElement(t,((e,t)=>{for(var n in t||(t={}))Cf.call(t,n)&&Pf(e,n,t[n]);if(Rf)for(var n of Rf(t))Tf.call(t,n)&&Pf(e,n,t[n]);return e})({className:"redoc-markdown "+(e.className||""),dangerouslySetInnerHTML:{__html:(i=n.untrustedSpec,o=e.html,i?Sf.sanitize(o):o)},"data-role":e["data-role"]},e));var i,o}))}class Nf extends r.Component{render(){const{source:e,inline:t,compact:n,className:i,"data-role":o}=this.props,a=new Tl;return r.createElement(jf,{html:a.renderMd(e),inline:t,compact:n,className:i,"data-role":o})}}const $ f=xn.div `
2022-02-04 13:00:46 +03:00
position : relative ;
2022-05-10 19:14:02 +03:00
` ,Lf=xn.div `
2022-02-04 13:00:46 +03:00
position : absolute ;
min - width : 80 px ;
max - width : 500 px ;
background : # fff ;
bottom : 100 % ;
left : 50 % ;
margin - bottom : 10 px ;
transform : translateX ( - 50 % ) ;
border - radius : 4 px ;
padding : 0.3 em 0.6 em ;
text - align : center ;
box - shadow : 0 px 0 px 5 px 0 px rgba ( 204 , 204 , 204 , 1 ) ;
2022-05-10 19:14:02 +03:00
` ,Df=xn.div `
2022-02-04 13:00:46 +03:00
background : # fff ;
color : # 000 ;
display : inline ;
font - size : 0.85 em ;
white - space : nowrap ;
2022-05-10 19:14:02 +03:00
` ,Mf=xn.div `
2022-02-04 13:00:46 +03:00
position : absolute ;
width : 0 ;
height : 0 ;
bottom : - 5 px ;
left : 50 % ;
margin - left : - 5 px ;
border - left : solid transparent 5 px ;
border - right : solid transparent 5 px ;
border - top : solid # fff 5 px ;
2022-05-10 19:14:02 +03:00
` ,Ff=xn.div `
2022-02-04 13:00:46 +03:00
position : absolute ;
width : 100 % ;
height : 20 px ;
bottom : - 20 px ;
2022-05-10 19:14:02 +03:00
` ;class zf extends r.Component{render(){const{open:e,title:t,children:n}=this.props;return r.createElement( $ f,null,n,e&&r.createElement(Lf,null,r.createElement(Df,null,t),r.createElement(Mf,null),r.createElement(Ff,null)))}}const Uf="undefined"!=typeof document&&document.queryCommandSupported&&document.queryCommandSupported("copy");class Bf{static isSupported(){return Uf}static selectElement(e){let t,n;document.body.createTextRange?(t=document.body.createTextRange(),t.moveToElementText(e),t.select()):document.createRange&&window.getSelection&&(n=window.getSelection(),t=document.createRange(),t.selectNodeContents(e),n.removeAllRanges(),n.addRange(t))}static deselect(){if(document.selection)document.selection.empty();else if(window.getSelection){const e=window.getSelection();e&&e.removeAllRanges()}}static copySelected(){let e;try{e=document.execCommand("copy")}catch(t){e=!1}return e}static copyElement(e){Bf.selectElement(e);const t=Bf.copySelected();return t&&Bf.deselect(),t}static copyCustom(e){const t=document.createElement("textarea");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="2em",t.style.height="2em",t.style.padding="0",t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=e,document.body.appendChild(t),t.select();const n=Bf.copySelected();return document.body.removeChild(t),n}}class qf extends r.PureComponent{constructor(e){super(e),this.copy=()=>{const e="string"==typeof this.props.data?this.props.data:JSON.stringify(this.props.data,null,2);Bf.copyCustom(e),this.showTooltip()},this.renderCopyButton=()=>r.createElement("button",{onClick:this.copy},r.createElement(zf,{title:Bf.isSupported()?"Copied":"Not supported in your browser",open:this.state.tooltipShown},"Copy")),this.state={tooltipShown:!1}}render(){return this.props.children({renderCopyButton:this.renderCopyButton})}showTooltip(){this.setState({tooltipShown:!0}),setTimeout((()=>{this.setState({tooltipShown:!1})}),1500)}}let Vf=1;function Wf(e,t){Vf=1;let n="";return n+='<div class="redoc-json">',n+="<code>",n+=Xf(e,t),n+="</code>",n+="</div>",n}function Hf(e){return void 0!==e?e.toString().replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"):""}function Yf(e){return JSON.stringify(e).slice(1,-1)}function Qf(e,t){return'<span class="'+t+'">'+Hf(e)+"</span>"}function Gf(e){return'<span class="token punctuation">'+e+"</span>"}function Xf(e,t){const n=typeof e;let r="";return null==e?r+=Qf("null","token keyword"):e&&e.constructor===Array?(Vf++,r+=function(e,t){const n=Vf>t?"collapsed":"";let r= ` < button class = "collapser" aria - label = "${Vf>t+1?" expand ":" collapse "}" > < / b u t t o n > $ { G f ( " [ " ) } < s p a n c l a s s = " e l l i p s i s " > < / s p a n > < u l c l a s s = " a r r a y c o l l a p s i b l e " > ` , i = ! 1 ; c o n s t o = e . l e n g t h ; f o r ( l e t a = 0 ; a < o ; a + + ) i = ! 0 , r + = ' < l i > < d i v c l a s s = " h o v e r a b l e ' + n + ' " > ' , r + = X f ( e [ a ] , t ) , a < o - 1 & & ( r + = " , " ) , r + = " < / d i v > < / l i > " ; r e t u r n r + = ` < / u l > $ { G f ( " ] " ) } ` , i | | ( r = G f ( " [ ] " ) ) , r } ( e , t ) , V f - - ) : e & & e . c o n s t r u c t o r = = = D a t e ? r + = Q f ( ' " ' + e . t o I S O S t r i n g ( ) + ' " ' , " t o k e n s t r i n g " ) : " o b j e c t " = = = n ? ( V f + + , r + = f u n c t i o n ( e , t ) { c o n s t n = V f > t ? " c o l l a p s e d " : " " , r = O b j e c t . k e y s ( e ) , i = r . l e n g t h ; l e t o = ` < b u t t o n c l a s s = " c o l l a p s e r " a r i a - l a b e l = " $ { V f > t + 1 ? " e x p a n d " : " c o l l a p s e " } " > < / b u t t o n > $ { G f ( " { " ) } < s p a n c l a s s = " e l l i p s i s " > < / s p a n > < u l c l a s s = " o b j c o l l a p s i b l e " > ` , a = ! 1 ; f o r ( l e t s = 0 ; s < i ; s + + ) { c o n s t l = r [ s ] ; a = ! 0 , o + = ' < l i > < d i v c l a s s = " h o v e r a b l e ' + n + ' " > ' , o + = ' < s p a n c l a s s = " p r o p e r t y t o k e n s t r i n g " > " ' + H f ( l ) + ' " < / s p a n > : ' , o + = X f ( e [ l ] , t ) , s < i - 1 & & ( o + = G f ( " , " ) ) , o + = " < / d i v > < / l i > " } r e t u r n o + = ` < / u l > $ { G f ( " } " ) } ` , a | | ( o = G f ( " { } " ) ) , o } ( e , t ) , V f - - ) : " n u m b e r " = = = n ? r + = Q f ( e , " t o k e n n u m b e r " ) : " s t r i n g " = = = n ? / ^ ( h t t p | h t t p s ) : \ / \ / [ ^ \ s ] + $ / . t e s t ( e ) ? r + = Q f ( ' " ' , " t o k e n s t r i n g " ) + ' < a h r e f = " ' + e n c o d e U R I ( e ) + ' " > ' + H f ( Y f ( e ) ) + " < / a > " + Q f ( ' " ' , " t o k e n s t r i n g " ) : r + = Q f ( ' " ' + Y f ( e ) + ' " ' , " t o k e n s t r i n g " ) : " b o o l e a n " = = = n & & ( r + = Q f ( e , " t o k e n b o o l e a n " ) ) , r } c o n s t K f = m n `
2022-02-04 13:00:46 +03:00
. redoc - json code > . collapser {
display : none ;
pointer - events : none ;
}
font - family : $ { e => e . theme . typography . code . fontFamily } ;
font - size : $ { e => e . theme . typography . code . fontSize } ;
white - space : $ { ( { theme : e } ) => e . typography . code . wrap ? "pre-wrap" : "pre" } ;
contain : content ;
overflow - x : auto ;
. callback - function {
color : gray ;
}
. collapser : after {
content : '-' ;
cursor : pointer ;
}
. collapsed > . collapser : after {
content : '+' ;
cursor : pointer ;
}
. ellipsis : after {
content : ' … ' ;
}
. collapsible {
margin - left : 2 em ;
}
. hoverable {
padding - top : 1 px ;
padding - bottom : 1 px ;
padding - left : 2 px ;
padding - right : 2 px ;
border - radius : 2 px ;
}
. hovered {
background - color : rgba ( 235 , 238 , 249 , 1 ) ;
}
. collapser {
background - color : transparent ;
border : 0 ;
color : # fff ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
font - size : $ { e => e . theme . typography . code . fontSize } ;
padding - right : 6 px ;
padding - left : 6 px ;
padding - top : 0 ;
padding - bottom : 0 ;
display : flex ;
align - items : center ;
justify - content : center ;
width : 15 px ;
height : 15 px ;
position : absolute ;
top : 4 px ;
left : - 1.5 em ;
cursor : default ;
user - select : none ;
- webkit - user - select : none ;
padding : 2 px ;
& : focus {
outline - color : # fff ;
outline - style : dotted ;
outline - width : 1 px ;
}
}
ul {
list - style - type : none ;
padding : 0 px ;
margin : 0 px 0 px 0 px 26 px ;
}
li {
position : relative ;
display : block ;
}
. hoverable {
display : inline - block ;
}
. selected {
outline - style : solid ;
outline - width : 1 px ;
outline - style : dotted ;
}
. collapsed > . collapsible {
display : none ;
}
. ellipsis {
display : none ;
}
. collapsed > . ellipsis {
display : inherit ;
}
2022-05-10 19:14:02 +03:00
` ,Zf=xn.div `
& : hover > $ { kd } {
2022-02-04 13:00:46 +03:00
opacity : 1 ;
}
2022-05-10 19:14:02 +03:00
` ;class Jf extends r.PureComponent{constructor(){super(...arguments),this.renderInner=({renderCopyButton:e})=>{const t=this.props.data&&Object.values(this.props.data).some((e=>"object"==typeof e&&null!==e));return r.createElement(Zf,null,r.createElement(kd,null,e(),t&&r.createElement(r.Fragment,null,r.createElement("button",{onClick:this.expandAll}," Expand all "),r.createElement("button",{onClick:this.collapseAll}," Collapse all "))),r.createElement(Cn.Consumer,null,(e=>r.createElement(wd,{className:this.props.className,ref:e=>this.node=e,dangerouslySetInnerHTML:{__html:Wf(this.props.data,e.jsonSampleExpandLevel)}}))))},this.expandAll=()=>{const e=this.node.getElementsByClassName("collapsible");for(const t of Array.prototype.slice.call(e)){const e=t.parentNode;e.classList.remove("collapsed"),e.querySelector(".collapser").setAttribute("aria-label","collapse")}},this.collapseAll=()=>{const e=this.node.getElementsByClassName("collapsible"),t=Array.prototype.slice.call(e,1);for(const e of t){const t=e.parentNode;t.classList.add("collapsed"),t.querySelector(".collapser").setAttribute("aria-label","expand")}},this.collapseElement=e=>{let t;"collapser"===e.className&&(t=e.parentElement.getElementsByClassName("collapsible")[0],t.parentElement.classList.contains("collapsed")?(t.parentElement.classList.remove("collapsed"),e.setAttribute("aria-label","collapse")):(t.parentElement.classList.add("collapsed"),e.setAttribute("aria-label","expand")))},this.clickListener=e=>{this.collapseElement(e.target)},this.focusListener=e=>{"Enter"===e.key&&this.collapseElement(e.target)}}render(){return r.createElement(qf,{data:this.props.data},this.renderInner)}componentDidMount(){this.node.addEventListener("click",this.clickListener),this.node.addEventListener("focus",this.focusListener)}componentWillUnmount(){this.node.removeEventListener("click",this.clickListener),this.node.removeEventListener("focus",this.focusListener)}}const eh=xn(Jf) `
$ { Kf } ;
` ;class th extends r.PureComponent{render(){const{source:e,lang:t}=this.props;return r.createElement(Sd,{dangerouslySetInnerHTML:{__html:gs(e,t)}})}}class nh extends r.Component{render(){return r.createElement(qf,{data:this.props.source},(({renderCopyButton:e})=>r.createElement(Od,null,r.createElement(kd,null,e()),r.createElement(th,{lang:this.props.lang,source:this.props.source}))))}}function rh({value:e,mimeType:t}){return Xa(t)?r.createElement(eh,{data:e}):("object"==typeof e&&(e=JSON.stringify(e,null,2)),r.createElement(nh,{lang:(n=t,-1!==n.search(/xml/i)?"xml":"clike"),source:e}));var n}function ih({example:e,mimeType:t}){return void 0===e.value&&e.externalValueUrl?r.createElement(oh,{example:e,mimeType:t}):r.createElement(rh,{value:e.value,mimeType:t})}function oh({example:e,mimeType:t}){const n=function(e,t){const[,n]=(0,r.useState)(!0),i=(0,r.useRef)(void 0),o=(0,r.useRef)(void 0);return o.current!==e&&(i.current=void 0),o.current=e,(0,r.useEffect)((()=>{(()=>{return r=this,o=function*(){n(!0);try{i.current=yield e.getExternalValue(t)}catch(e){i.current=e}n(!1)},new Promise(((e,t)=>{var n=e=>{try{a(o.next(e))}catch(e){t(e)}},i=e=>{try{a(o.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,i);a((o=o.apply(r,null)).next())}));var r,o})()}),[e,t]),i.current}(e,t);return void 0===n?r.createElement("span",null,"Loading..."):n instanceof Error?r.createElement(Sd,null,"Error loading external example: ",r.createElement("br",null),r.createElement("a",{className:"token string",href:e.externalValueUrl,target:"_blank",rel:"noopener noreferrer"},e.externalValueUrl)):r.createElement(rh,{value:n,mimeType:t})}const ah=xn.div `
2022-02-04 13:00:46 +03:00
padding : 0.9 em ;
2022-05-10 19:14:02 +03:00
background - color : $ { ( { theme : e } ) => $t ( . 6 , e . rightPanel . backgroundColor ) } ;
2022-02-04 13:00:46 +03:00
margin : 0 0 10 px 0 ;
display : block ;
font - family : $ { ( { theme : e } ) => e . typography . headings . fontFamily } ;
font - size : 0.929 em ;
line - height : 1.5 em ;
2022-05-10 19:14:02 +03:00
` ,sh=xn.span `
2022-02-04 13:00:46 +03:00
font - family : $ { ( { theme : e } ) => e . typography . headings . fontFamily } ;
font - size : 12 px ;
position : absolute ;
z - index : 1 ;
top : - 11 px ;
left : 12 px ;
font - weight : $ { ( { theme : e } ) => e . typography . fontWeightBold } ;
2022-05-10 19:14:02 +03:00
color : $ { ( { theme : e } ) => $t ( . 3 , e . rightPanel . textColor ) } ;
` ,lh=xn.div `
2022-02-04 13:00:46 +03:00
position : relative ;
2022-05-10 19:14:02 +03:00
` ,ch=xn(mf) `
label {
color : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
text - overflow : ellipsis ;
white - space : nowrap ;
overflow : hidden ;
2022-02-04 13:00:46 +03:00
font - size : 1 em ;
2022-05-10 19:14:02 +03:00
text - transform : none ;
border : none ;
}
margin : 0 0 10 px 0 ;
display : block ;
background - color : $ { ( { theme : e } ) => $t ( . 6 , e . rightPanel . backgroundColor ) } ;
border : none ;
padding : 0.9 em 1.6 em 0.9 em 0.9 em ;
box - shadow : none ;
& : hover ,
& : focus - within {
2022-02-04 13:00:46 +03:00
border : none ;
box - shadow : none ;
2022-05-10 19:14:02 +03:00
background - color : $ { ( { theme : e } ) => $t ( . 3 , e . rightPanel . backgroundColor ) } ;
2022-02-04 13:00:46 +03:00
}
2022-05-10 19:14:02 +03:00
` ,uh=xn.div `
2022-02-04 13:00:46 +03:00
font - family : $ { e => e . theme . typography . code . fontFamily } ;
font - size : 12 px ;
color : # ee807f ;
2022-05-10 19:14:02 +03:00
` ;class ph extends r.Component{constructor(){super(...arguments),this.state={activeIdx:0},this.switchMedia=({idx:e})=>{void 0!==e&&this.setState({activeIdx:e})}}render(){const{activeIdx:e}=this.state,t=this.props.mediaType.examples||{},n=this.props.mediaType.name,i=r.createElement(uh,null,"No sample"),o=Object.keys(t);if(0===o.length)return i;if(o.length>1){const i=o.map(((e,n)=>({value:t[e].summary||e,idx:n}))),a=t[o[e]],s=a.description;return r.createElement(dh,null,r.createElement(lh,null,r.createElement(sh,null,"Example"),this.props.renderDropdown({value:i[e].value,options:i,onChange:this.switchMedia,ariaLabel:"Example"})),r.createElement("div",null,s&&r.createElement(Nf,{source:s}),r.createElement(ih,{example:a,mimeType:n})))}{const e=t[o[0]];return r.createElement(dh,null,e.description&&r.createElement(Nf,{source:e.description}),r.createElement(ih,{example:e,mimeType:n}))}}}const dh=xn.div `
2022-02-04 13:00:46 +03:00
margin - top : 15 px ;
2022-05-10 19:14:02 +03:00
` ;if(!r.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Ro)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function fh(e){e()}var hh=[];function mh(e){return lo(ma(e,t));var t}var gh="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function yh(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+bh}}var bh=1e4,vh=gh?function(e){var t=new Map,n=1,r=new e((function(e){var n=t.get(e);n&&(n.reaction.dispose(),t.delete(e))}));return{addReactionToTrack:function(e,i,o){var a=n++;return r.register(o,a,e),e.current=yh(i),e.current.finalizationRegistryCleanupToken=a,t.set(a,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(gh):function(){var e,t=new Set;function n(){void 0===e&&(e=setTimeout(r,1e4))}function r(){e=void 0;var r=Date.now();t.forEach((function(e){var n=e.current;n&&r>=n.cleanAt&&(n.reaction.dispose(),e.current=null,t.delete(e))})),t.size>0&&n()}return{addReactionToTrack:function(e,r,i){var o;return e.current=yh(r),o=e,t.add(o),n(),e.current},recordReactionAsCommitted:function(e){t.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),r())},resetCleanupScheduleForTests:function(){var n,r;if(t.size>0){try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.current;s&&(s.reaction.dispose(),a.current=null)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.clear()}e&&(clearTimeout(e),e=void 0)}}}(),xh=vh.addReactionToTrack,wh=vh.recordReactionAsCommitted,kh=(vh.resetCleanupScheduleForTests,vh.forceCleanupTimerToRunNowForTests,!1);function Oh(){return kh}function Sh(e){return"observer"+e}var Eh=function(){};function _h(e,t){if(void 0===t&&(t="observed"),Oh())return e();var n,i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(r.useState(new Eh),1)[0],o=(n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}((0,r.useState)(0),2)[1],(0,r.useCallback)((function(){n((function(e){return e+1}))}),hh)),a=r.useRef(null);if(!a.current)var s=new Ui(Sh(t),(function(){l.mounted?o():l.changedBeforeMount=!0})),l=xh(a,s,i);var c,u,p=a.current.reaction;if(r.useDebugValue(p,mh),r.useEffect((function(){return wh(a),a.current?(a.current.mounted=!0,a.current.changedBeforeMount&&(a.current.changedBeforeMount=!1,o())):(a.current={reaction:new Ui(Sh(t),(function(){o()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},o()),function(){a.current.reaction.dispose(),a.current=null}}),[]),p.track((function(){try{c=e()}catch(e){u=e}})),u)throw u;return c}var Ah=function(){return(Ah=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var Rh={ $ $ typeof:!0,render:!0,compare:!0,type:!0};function Ch(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:_h(r)}Ch.displayName="Observer",function(e){e||(e=fh),so({reactionScheduler:e})}(i.unstable_batchedUpdates);var Th=0,Ph={};function Ih(e){return Ph[e]||(Ph[e]=function(e){if("function"==typeof Symbol)return Symb
2022-02-04 13:00:46 +03:00
button {
background - color : transparent ;
border : 0 ;
outline : 0 ;
font - size : 13 px ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
cursor : pointer ;
padding : 0 ;
color : $ { e => e . theme . colors . text . primary } ;
& : focus {
font - weight : $ { ( { theme : e } ) => e . typography . fontWeightBold } ;
}
}
2022-05-10 19:14:02 +03:00
$ { Ap } {
2022-02-04 13:00:46 +03:00
height : $ { ( { theme : e } ) => e . schema . arrow . size } ;
width : $ { ( { theme : e } ) => e . schema . arrow . size } ;
polygon {
fill : $ { ( { theme : e } ) => e . schema . arrow . color } ;
}
}
2022-05-10 19:14:02 +03:00
` ,rm=xn.span `
2022-02-04 13:00:46 +03:00
vertical - align : middle ;
font - size : $ { ( { theme : e } ) => e . typography . code . fontSize } ;
line - height : 20 px ;
2022-05-10 19:14:02 +03:00
` ,im=xn(rm) `
color : $ { e => $t ( . 1 , e . theme . schema . typeNameColor ) } ;
` ,om=xn(rm) `
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . schema . typeNameColor } ;
2022-05-10 19:14:02 +03:00
` ,am=xn(rm) `
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . schema . typeTitleColor } ;
word - break : break - word ;
2022-05-10 19:14:02 +03:00
` ,sm=om,lm=xn(rm.withComponent("div")) `
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . schema . requireLabelColor } ;
font - size : $ { e => e . theme . schema . labelsTextSize } ;
font - weight : normal ;
margin - left : 20 px ;
line - height : 1 ;
2022-05-10 19:14:02 +03:00
` ,cm=xn(rm) `
2022-02-04 13:00:46 +03:00
color : $ { ( { theme : e } ) => e . colors . warning . main } ;
font - size : 13 px ;
2022-05-10 19:14:02 +03:00
` ,um=xn(rm) `
2022-02-04 13:00:46 +03:00
color : # 0e7 c86 ;
& : : before ,
& : : after {
font - weight : bold ;
}
2022-05-10 19:14:02 +03:00
` ,pm=xn(rm) `
2022-02-04 13:00:46 +03:00
border - radius : 2 px ;
2022-05-10 19:14:02 +03:00
word - break : break - word ;
$ { ( { theme : e } ) => ` \n background-color: ${ $t ( . 95 , e . colors . text . primary ) } ; \n color: ${ $t ( . 1 , e . colors . text . primary ) } ; \n \n padding: 0 ${ e . spacing . unit } px; \n border: 1px solid ${ $t ( . 9 , e . colors . text . primary ) } ; \n font-family: ${ e . typography . code . fontFamily } ; \n } ` } ;
2022-02-04 13:00:46 +03:00
& + & {
margin - left : 0 ;
}
2022-05-10 19:14:02 +03:00
$ { wn ( "ExampleValue" ) } ;
` ,dm=xn(pm) ` ` ,fm=xn(rm) `
2022-02-04 13:00:46 +03:00
border - radius : 2 px ;
2022-05-10 19:14:02 +03:00
$ { ( { theme : e } ) => ` \n background-color: ${ $t ( . 95 , e . colors . primary . light ) } ; \n color: ${ $t ( . 1 , e . colors . primary . main ) } ; \n \n margin: 0 ${ e . spacing . unit } px; \n padding: 0 ${ e . spacing . unit } px; \n border: 1px solid ${ $t ( . 9 , e . colors . primary . main ) } ; \n } ` } ;
2022-02-04 13:00:46 +03:00
& + & {
margin - left : 0 ;
}
2022-05-10 19:14:02 +03:00
$ { wn ( "ConstraintItem" ) } ;
` ,hm=xn.button `
2022-02-04 13:00:46 +03:00
background - color : transparent ;
border : 0 ;
color : $ { ( { theme : e } ) => e . colors . text . secondary } ;
margin - left : $ { ( { theme : e } ) => e . spacing . unit } px ;
border - radius : 2 px ;
cursor : pointer ;
outline - color : $ { ( { theme : e } ) => e . colors . text . secondary } ;
font - size : 12 px ;
2022-05-10 19:14:02 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;const mm=xn.div `
$ { Ef } ;
2022-02-04 13:00:46 +03:00
$ { ( { compact : e } ) => e ? "" : "margin: 1em 0" }
2022-05-10 19:14:02 +03:00
` ;let gm=class extends r.Component{render(){const{externalDocs:e}=this.props;return e&&e.url?r.createElement(mm,{compact:this.props.compact},r.createElement("a",{href:e.url},e.description||e.url)):null}};gm=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],gm);class ym extends r.PureComponent{constructor(){super(...arguments),this.state={collapsed:!0}}toggle(){this.setState({collapsed:!this.state.collapsed})}render(){const{values:e,isArrayType:t}=this.props,{collapsed:n}=this.state,{enumSkipQuotes:i,maxDisplayedEnumValues:o}=this.context;if(!e.length)return null;const a=this.state.collapsed&&o?e.slice(0,o):e,s=!!o&&e.length>o,l=o?n? ` … $ { e . length - o } more ` :"Hide":"";return r.createElement("div",null,r.createElement(rm,null,t?en("enumArray"):""," ",1===e.length?en("enumSingleValue"):en("enum"),":")," ",a.map(((e,t)=>{const n=i?String(e):JSON.stringify(e);return r.createElement(r.Fragment,{key:t},r.createElement(pm,null,n)," ")})),s?r.createElement(bm,{onClick:()=>{this.toggle()}},l):null)}}ym.contextType=Cn;const bm=xn.span `
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . colors . primary . main } ;
vertical - align : middle ;
font - size : 13 px ;
line - height : 20 px ;
padding : 0 5 px ;
cursor : pointer ;
2022-05-10 19:14:02 +03:00
` ,vm=xn(_f) `
2022-02-04 13:00:46 +03:00
margin : 2 px 0 ;
2022-05-10 19:14:02 +03:00
` ;class xm extends r.PureComponent{render(){const e=this.props.extensions;return r.createElement(Cn.Consumer,null,(t=>r.createElement(r.Fragment,null,t.showExtensions&&Object.keys(e).map((t=>r.createElement(vm,{key:t},r.createElement(rm,null," ",t.substring(2),": ")," ",r.createElement(dm,null,"string"==typeof e[t]?e[t]:JSON.stringify(e[t]))))))))}}function wm({field:e}){return e.examples?r.createElement(r.Fragment,null,r.createElement(rm,null," ",en("examples"),": "),Zt(e.examples)?e.examples.map(((t,n)=>{const i=ts(e,t),o=e.in?String(i):JSON.stringify(i);return r.createElement(r.Fragment,{key:n},r.createElement(pm,null,o)," ")})):r.createElement(km,null,Object.values(e.examples).map(((t,n)=>r.createElement("li",{key:n+t.value},r.createElement(pm,null,ts(e,t.value))," -"," ",t.summary||t.description))))):null}const km=xn.ul `
2022-02-04 13:00:46 +03:00
margin - top : 1 em ;
2022-05-10 19:14:02 +03:00
list - style - position : outside ;
` ;class Om extends r.PureComponent{render(){return 0===this.props.constraints.length?null:r.createElement("span",null," ",this.props.constraints.map((e=>r.createElement(fm,{key:e}," ",e," "))))}}const Sm=r.memo((function({value:e,label:t,raw:n}){if(void 0===e)return null;const i=n?String(e):JSON.stringify(e);return r.createElement("div",null,r.createElement(rm,null," ",t," ")," ",r.createElement(pm,null,i))}));function Em(e){const t=e.schema.pattern,{hideSchemaPattern:n}=r.useContext(Cn),[i,o]=r.useState(!1),a=r.useCallback((()=>o(!i)),[i]);return!t||n?null:r.createElement(r.Fragment,null,r.createElement(um,null,i||t.length<45?t: ` $ { t . substr ( 0 , 45 ) } ... ` ),t.length>45&&r.createElement(hm,{onClick:a},i?"Hide pattern":"Show pattern"))}function _m({schema:e}){return!e||"string"===e.type&&!e.constraints.length?null:r.createElement(Am,null,"[ items",e.displayFormat&&r.createElement(sm,null," <",e.displayFormat," >"),r.createElement(Om,{constraints:e.constraints}),r.createElement(Em,{schema:e}),e.items&&r.createElement(_m,{schema:e.items})," ]")}const Am=xn(im) `
2022-02-04 13:00:46 +03:00
margin : 0 5 px ;
vertical - align : text - top ;
2022-05-10 19:14:02 +03:00
` ;var Rm=Object.defineProperty,Cm=Object.getOwnPropertySymbols,Tm=Object.prototype.hasOwnProperty,Pm=Object.prototype.propertyIsEnumerable,Im=(e,t,n)=>t in e?Rm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jm=(e,t)=>{for(var n in t||(t={}))Tm.call(t,n)&&Im(e,n,t[n]);if(Cm)for(var n of Cm(t))Pm.call(t,n)&&Im(e,n,t[n]);return e};const Nm=r.memo((function(e){const{enumSkipQuotes:t,hideSchemaTitles:n}=r.useContext(Cn),{showExamples:i,field:o,renderDiscriminatorSwitch:a}=e,{schema:s,description:l,deprecated:c,extensions:u,in:p,const:d}=o,f="array"===s.type,h=t||"header"===p,m=r.useMemo((()=>!i||void 0===o.example&&void 0===o.examples?null:void 0!==o.examples?r.createElement(wm,{field:o}):r.createElement(Sm,{label:en("example")+":",value:ts(o,o.example),raw:Boolean(o.in)})),[o,i]);return r.createElement("div",null,r.createElement("div",null,r.createElement(im,null,s.typePrefix),r.createElement(om,null,s.displayType),s.displayFormat&&r.createElement(sm,null," ","<",s.displayFormat,">"," "),s.contentEncoding&&r.createElement(sm,null," ","<",s.contentEncoding,">"," "),s.contentMediaType&&r.createElement(sm,null," ","<",s.contentMediaType,">"," "),s.title&&!n&&r.createElement(am,null," (",s.title,") "),r.createElement(Om,{constraints:s.constraints}),r.createElement(Em,{schema:s}),s.isCircular&&r.createElement(cm,null," ",en("recursive")," "),f&&s.items&&r.createElement(_m,{schema:s.items})),c&&r.createElement("div",null,r.createElement(Rp,{type:"warning"}," ",en("deprecated")," ")),r.createElement(Sm,{raw:h,label:en("default")+":",value:s.default}),!a&&r.createElement(ym,{isArrayType:f,values:s.enum})," ",m,r.createElement(xm,{extensions:jm(jm({},u),s.extensions)}),r.createElement("div",null,r.createElement(Nf,{compact:!0,source:l})),s.externalDocs&&r.createElement(gm,{externalDocs:s.externalDocs,compact:!0}),a&&a(e)||null,d&&r.createElement(Sm,{label:en("const")+":",value:d})||null)}));var $ m=Object.defineProperty,Lm=Object.defineProperties,Dm=Object.getOwnPropertyDescriptors,Mm=Object.getOwnPropertySymbols,Fm=Object.prototype.hasOwnProperty,zm=Object.prototype.propertyIsEnumerable,Um=(e,t,n)=>t in e? $ m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Bm=xn.div `
2022-02-04 13:00:46 +03:00
padding - left : $ { ( { theme : e } ) => 2 * e . spacing . unit } px ;
2022-05-10 19:14:02 +03:00
` ;class qm extends r.PureComponent{render(){const e=this.props.schema,t=e.items,n=void 0===e.minItems&&void 0===e.maxItems?"": ` ( $ { as ( e ) } ) ` ;return!e.displayType||t||n.length?r.createElement("div",null,r.createElement(Up,null," Array ",n),r.createElement(Bm,null,r.createElement(bg,((e,t)=>Lm(e,Dm(t)))(((e,t)=>{for(var n in t||(t={}))Fm.call(t,n)&&Um(e,n,t[n]);if(Mm)for(var n of Mm(t))zm.call(t,n)&&Um(e,n,t[n]);return e})({},this.props),{schema:t}))),r.createElement(Bp,null)):r.createElement("div",null,r.createElement(om,null,e.displayType))}}var Vm=Object.defineProperty,Wm=(Object.getOwnPropertyDescriptor,Object.getOwnPropertySymbols),Hm=Object.prototype.hasOwnProperty,Ym=Object.prototype.propertyIsEnumerable,Qm=(e,t,n)=>t in e?Vm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Gm=class extends r.Component{constructor(){super(...arguments),this.toggle=()=>{void 0===this.props.field.expanded&&this.props.expandByDefault?this.props.field.collapse():this.props.field.toggle()},this.handleKeyPress=e=>{"Enter"===e.key&&(e.preventDefault(),this.toggle())}}render(){const{className:e,field:t,isLast:n,expandByDefault:i}=this.props,{name:o,deprecated:a,required:s,kind:l}=t,c=!t.schema.isPrimitive&&!t.schema.isCircular,u=void 0===t.expanded?i:t.expanded,p=c?r.createElement(nm,{className:a?"deprecated":"",kind:l,title:o},r.createElement( $ p,null),r.createElement("button",{onClick:this.toggle,onKeyPress:this.handleKeyPress,"aria-label":"expand properties"},r.createElement("span",null,o),r.createElement(Ap,{direction:u?"down":"right"})),s&&r.createElement(lm,null," required ")):r.createElement(jp,{className:a?"deprecated":void 0,kind:l,title:o},r.createElement( $ p,null),r.createElement("span",null,o),s&&r.createElement(lm,null," required "));return r.createElement(r.Fragment,null,r.createElement("tr",{className:n?"last "+e:e},p,r.createElement(Np,null,r.createElement(Nm,((e,t)=>{for(var n in t||(t={}))Hm.call(t,n)&&Qm(e,n,t[n]);if(Wm)for(var n of Wm(t))Ym.call(t,n)&&Qm(e,n,t[n]);return e})({},this.props)))),u&&c&&r.createElement("tr",{key:t.name+"inner"},r.createElement(Ip,{colSpan:2},r.createElement(Lp,null,r.createElement(bg,{schema:t.schema,skipReadOnly:this.props.skipReadOnly,skipWriteOnly:this.props.skipWriteOnly,showTitle:this.props.showTitle,level:this.props.level})))))}};Gm=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],Gm);Object.defineProperty,Object.getOwnPropertyDescriptor;let Xm=class extends r.Component{constructor(){super(...arguments),this.changeActiveChild=e=>{void 0!==e.idx&&this.props.parent.activateOneOf(e.idx)}}sortOptions(e,t){if(0===t.length)return;const n={};t.forEach(((e,t)=>{n[e]=t})),e.sort(((e,t)=>n[e.value]>n[t.value]?1:-1))}render(){const{parent:e,enumValues:t}=this.props;if(void 0===e.oneOf)return null;const n=e.oneOf.map(((e,t)=>({value:e.title,idx:t}))),i=n[e.activeOneOf].value;return this.sortOptions(n,t),r.createElement(mf,{value:i,options:n,onChange:this.changeActiveChild,ariaLabel:"Example"})}};Xm=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],Xm);const Km=tm((({schema:{fields:e=[],title:t},showTitle:n,discriminator:i,skipReadOnly:o,skipWriteOnly:a,level:s})=>{const{expandSingleSchemaField:l,showObjectSchemaExamples:c,schemaExpansionLevel:u}=r.useContext(Cn),p=r.useMemo((()=>o||a?e.filter((e=>!(o&&e.schema.readOnly||a&&e.schema.writeOnly))):e),[o,a,e]),d=l&&1===p.length||u>=s;return r.createElement(Dp,null,n&&r.createElement(Tp,null,t),r.createElement("tbody",null,qt(p,((e,t)=>r.createElement(Gm,{key:e.name,isLast:t,field:e,expandByDefault:d,renderDiscriminatorSwitch:(null==i?void 0:i.fieldName)===e.name?()=>r.createElement(Xm,{parent:i.parentSchema,enumValues:e.schema.enum}):void 0,className:e.expanded?"expanded":void 0,showExamples:c,skipReadOnly:o,skipWriteOnly:a,showTitle:n,level:s})))))}));var Zm=Object.defineProperty,Jm=Object.defineProperties,eg=Object.getOwnPropertyDescriptor,tg=Object.getOwnPropertyDescriptors,ng=Object.getOwnPropertySymbols,rg=Object.prototype.hasOwnProperty,ig=Object.prototype.
2022-02-04 13:00:46 +03:00
background : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
& > div ,
& > pre {
padding : $ { e => 4 * e . theme . spacing . unit } px ;
margin : 0 ;
}
& > div > pre {
padding : 0 ;
}
2022-05-10 19:14:02 +03:00
` ,Rg={oauth2:"OAuth2",apiKey:"API Key",http:"HTTP",openIdConnect:"OpenID Connect"};class Cg extends r.PureComponent{render(){const{type:e,flow:t}=this.props,n=Object.keys((null==t?void 0:t.scopes)||{});return r.createElement("tr",null,r.createElement("th",null," ",e," OAuth Flow "),r.createElement("td",null,"implicit"===e||"authorizationCode"===e?r.createElement("div",null,r.createElement("strong",null," Authorization URL: "),t.authorizationUrl):null,"password"===e||"clientCredentials"===e||"authorizationCode"===e?r.createElement("div",null,r.createElement("strong",null," Token URL: "),t.tokenUrl):null,t.refreshUrl&&r.createElement("div",null,r.createElement("strong",null," Refresh URL: "),t.refreshUrl),!!n.length&&r.createElement(r.Fragment,null,r.createElement("div",null,r.createElement("strong",null," Scopes: ")),r.createElement("ul",null,n.map((e=>r.createElement("li",{key:e},r.createElement("code",null,e)," -"," ",r.createElement(Nf,{inline:!0,source:t.scopes[e]||""}))))))))}}class Tg extends r.PureComponent{render(){return this.props.securitySchemes.schemes.map((e=>{return r.createElement(lp,{id:e.sectionId,key:e.id},r.createElement(up,null,r.createElement(sp,null,r.createElement(hp,null,r.createElement(Sp,{to:e.sectionId}),e.displayName),r.createElement(Nf,{source:e.description||""}),r.createElement(_f,null,r.createElement("table",{className:"security-details"},r.createElement("tbody",null,r.createElement("tr",null,r.createElement("th",null," Security Scheme Type "),r.createElement("td",null," ",Rg[e.type]||e.type," ")),e.apiKey?r.createElement("tr",null,r.createElement("th",null," ",(t=e.apiKey.in||"").charAt(0).toUpperCase()+t.slice(1)," parameter name:"),r.createElement("td",null," ",e.apiKey.name," ")):e.http?[r.createElement("tr",{key:"scheme"},r.createElement("th",null," HTTP Authorization Scheme "),r.createElement("td",null," ",e.http.scheme," ")),"bearer"===e.http.scheme&&e.http.bearerFormat&&r.createElement("tr",{key:"bearer"},r.createElement("th",null," Bearer format "),r.createElement("td",null,' "',e.http.bearerFormat,'" '))]:e.openId?r.createElement("tr",null,r.createElement("th",null," Connect URL "),r.createElement("td",null,r.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:e.openId.connectUrl},e.openId.connectUrl))):e.flows?Object.keys(e.flows).map((t=>r.createElement(Cg,{key:t,type:t,flow:e.flows[t]}))):null))))));var t}))}}class Pg{constructor(e,t,n={},r=!0){var i,o,a,s;this.marker=new $ s,this.disposer=null,this.rawOptions=n,this.options=new fn(n,Ig),this.scroll=new op(this.options),tp.updateOnHistory(js.currentId,this.scroll),this.spec=new Lu(e,t,this.options),this.menu=new tp(this.spec,this.scroll,js),this.options.disableSearch||(this.search=new ap,r&&this.search.indexItems(this.menu.items),this.disposer=(i=this.menu,o="activeItemIdx",Hn(a=e=>{this.updateMarkOnMenu(e.newValue)})?function(e,t,n,r){return ga(e,t).observe_(n,r)}(i,o,a,s):function(e,t,n){return ga(e).observe_(t,n)}(i,o,a)))}static fromJS(e){const t=new Pg(e.spec.data,e.spec.url,e.options,!1);return t.menu.activeItemIdx=e.menu.activeItemIdx||0,t.menu.activate(t.menu.flatItems[t.menu.activeItemIdx]),t.options.disableSearch||t.search.load(e.searchIndex),t}onDidMount(){this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx)}dispose(){this.scroll.dispose(),this.menu.dispose(),this.search&&this.search.dispose(),null!=this.disposer&&this.disposer()}toJS(){return e=this,t=null,n=function*(){return{menu:{activeItemIdx:this.menu.activeItemIdx},spec:{url:this.spec.parser.specUrl,data:this.spec.parser.spec},searchIndex:this.search?yield this.search.toJS():void 0,options:this.rawOptions}},new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));var e,t,n}updateMarkOnMenu(e){const t=Math.max(0,e),n=Math.min(this.menu.flatItems.length,t+5),r=[];for(let e=t;e<n;e++){const t=this.menu.getElementAt(e);t&&r.push(t)}if(-1===e&&Mt){const e=document.querySelector('[data-role="redoc-d
2022-02-04 13:00:46 +03:00
margin - top : 0 ;
margin - bottom : 0.5 em ;
2022-05-10 19:14:02 +03:00
$ { wn ( "ApiHeader" ) } ;
` ,Ng=xn.a `
2022-02-04 13:00:46 +03:00
border : 1 px solid $ { e => e . theme . colors . primary . main } ;
color : $ { e => e . theme . colors . primary . main } ;
font - weight : normal ;
margin - left : 0.5 em ;
padding : 4 px 8 px 4 px ;
display : inline - block ;
text - decoration : none ;
cursor : pointer ;
2022-05-10 19:14:02 +03:00
$ { wn ( "DownloadButton" ) } ;
` , $ g=xn.span `
2022-02-04 13:00:46 +03:00
& : : before {
content : '|' ;
display : inline - block ;
opacity : 0.5 ;
width : $ { 15 } px ;
text - align : center ;
}
& : last - child : : after {
display : none ;
}
2022-05-10 19:14:02 +03:00
` ,Lg=xn.div `
2022-02-04 13:00:46 +03:00
overflow : hidden ;
2022-05-10 19:14:02 +03:00
` ,Dg=xn.div `
2022-02-04 13:00:46 +03:00
display : flex ;
flex - wrap : wrap ;
// hide separator on new lines: idea from https://stackoverflow.com/a/31732902/1749888
margin - left : - $ { 15 } px ;
2022-05-10 19:14:02 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let Mg=class extends r.Component{constructor(){super(...arguments),this.handleDownloadClick=e=>{e.target.href||(e.target.href=this.props.store.spec.info.downloadLink)}}render(){const{store:e}=this.props,{info:t,externalDocs:n}=e.spec,i=e.options.hideDownloadButton,o=t.downloadFileName,a=t.downloadLink,s=t.license&&r.createElement( $ g,null,"License:"," ",t.license.identifier?t.license.identifier:r.createElement("a",{href:t.license.url},t.license.name))||null,l=t.contact&&t.contact.url&&r.createElement( $ g,null,"URL: ",r.createElement("a",{href:t.contact.url},t.contact.url))||null,c=t.contact&&t.contact.email&&r.createElement( $ g,null,t.contact.name||"E-mail",":"," ",r.createElement("a",{href:"mailto:"+t.contact.email},t.contact.email))||null,u=t.termsOfService&&r.createElement( $ g,null,r.createElement("a",{href:t.termsOfService},"Terms of Service"))||null,p=t.version&&r.createElement("span",null,"(",t.version,")")||null;return r.createElement(lp,null,r.createElement(up,null,r.createElement(sp,{className:"api-info"},r.createElement(jg,null,t.title," ",p),!i&&r.createElement("p",null,en("downloadSpecification"),":",r.createElement(Ng,{download:o||!0,target:"_blank",href:a,onClick:this.handleDownloadClick},en("download"))),r.createElement(_f,null,(t.license||t.contact||t.termsOfService)&&r.createElement(Lg,null,r.createElement(Dg,null,c," ",l," ",s," ",u))||null),r.createElement(Nf,{source:e.spec.info.summary,"data-role":"redoc-summary"}),r.createElement(Nf,{source:e.spec.info.description,"data-role":"redoc-description"}),n&&r.createElement(gm,{externalDocs:n}))))}};Mg=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],Mg);const Fg=xn.img `
2022-02-04 13:00:46 +03:00
max - height : $ { e => e . theme . logo . maxHeight } ;
max - width : $ { e => e . theme . logo . maxWidth } ;
padding : $ { e => e . theme . logo . gutter } ;
width : 100 % ;
display : block ;
2022-05-10 19:14:02 +03:00
` ,zg=xn.div `
2022-02-04 13:00:46 +03:00
text - align : center ;
2022-05-10 19:14:02 +03:00
` ,Ug=xn.a `
2022-02-04 13:00:46 +03:00
display : inline - block ;
2022-05-10 19:14:02 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let Bg=class extends r.Component{render(){const{info:e}=this.props,t=e["x-logo"];if(!t||!t.url)return null;const n=t.href||e.contact&&e.contact.url,i=t.altText?t.altText:"logo",o=r.createElement(Fg,{src:t.url,alt:i});return r.createElement(zg,{style:{backgroundColor:t.backgroundColor}},n?(a=n,e=>r.createElement(Ug,{href:a},e))(o):o);var a}};Bg=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],Bg);var qg=Object.defineProperty,Vg=Object.getOwnPropertySymbols,Wg=Object.prototype.hasOwnProperty,Hg=Object.prototype.propertyIsEnumerable,Yg=(e,t,n)=>t in e?qg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qg=(e,t)=>{for(var n in t||(t={}))Wg.call(t,n)&&Yg(e,n,t[n]);if(Vg)for(var n of Vg(t))Hg.call(t,n)&&Yg(e,n,t[n]);return e};class Gg extends r.Component{render(){return r.createElement(Pn,null,(e=>r.createElement(vp,null,(t=>this.renderWithOptionsAndStore(e,t)))))}renderWithOptionsAndStore(e,t){const{source:n,htmlWrap:i=(e=>e)}=this.props;if(!t)throw new Error("When using components in markdown, store prop must be provided");const o=new Tl(e).renderMdWithComponents(n);return o.length?o.map(((e,n)=>"string"==typeof e?r.cloneElement(i(r.createElement(jf,{html:e,inline:!1,compact:!1})),{key:n}):r.createElement(e.component,Qg({key:n},Qg(Qg({},e.props),e.propsSelector(t)))))):null}}var Xg=n(4184),Kg=n.n(Xg);const Zg=xn.span.attrs((e=>({className: ` operation - type $ { e . type } ` }))) `
2022-02-04 13:00:46 +03:00
width : 9 ex ;
display : inline - block ;
height : $ { e => e . theme . typography . code . fontSize } ;
line - height : $ { e => e . theme . typography . code . fontSize } ;
background - color : # 333 ;
border - radius : 3 px ;
background - repeat : no - repeat ;
background - position : 6 px 4 px ;
font - size : 7 px ;
font - family : Verdana , sans - serif ; // web-safe
color : white ;
text - transform : uppercase ;
text - align : center ;
font - weight : bold ;
vertical - align : middle ;
margin - right : 6 px ;
margin - top : 2 px ;
& . get {
background - color : $ { e => e . theme . colors . http . get } ;
}
& . post {
background - color : $ { e => e . theme . colors . http . post } ;
}
& . put {
background - color : $ { e => e . theme . colors . http . put } ;
}
& . options {
background - color : $ { e => e . theme . colors . http . options } ;
}
& . patch {
background - color : $ { e => e . theme . colors . http . patch } ;
}
& . delete {
background - color : $ { e => e . theme . colors . http . delete } ;
}
& . basic {
background - color : $ { e => e . theme . colors . http . basic } ;
}
& . link {
background - color : $ { e => e . theme . colors . http . link } ;
}
& . head {
background - color : $ { e => e . theme . colors . http . head } ;
}
& . hook {
background - color : $ { e => e . theme . colors . primary . main } ;
}
2022-05-10 19:14:02 +03:00
` ;function Jg(e,{theme:t},n){return e>1?t.sidebar.level1Items[n]:1===e?t.sidebar.groupItems[n]:""}const ey=xn.ul `
2022-02-04 13:00:46 +03:00
margin : 0 ;
padding : 0 ;
& & {
font - size : 0.929 em ;
}
$ { e => e . expanded ? "" : "display: none;" } ;
2022-05-10 19:14:02 +03:00
` ,ty=xn.li `
2022-02-04 13:00:46 +03:00
list - style : none inside none ;
overflow : hidden ;
text - overflow : ellipsis ;
padding : 0 ;
$ { e => 0 === e . depth ? "margin-top: 15px" : "" } ;
2022-05-10 19:14:02 +03:00
` ,ny={0:mn `
2022-02-04 13:00:46 +03:00
opacity : 0.7 ;
text - transform : $ { ( { theme : e } ) => e . sidebar . groupItems . textTransform } ;
font - size : 0.8 em ;
padding - bottom : 0 ;
cursor : default ;
2022-05-10 19:14:02 +03:00
` ,1:mn `
2022-02-04 13:00:46 +03:00
font - size : 0.929 em ;
text - transform : $ { ( { theme : e } ) => e . sidebar . level1Items . textTransform } ;
2022-05-10 19:14:02 +03:00
` },ry=xn.label.attrs((e=>({role:"menuitem",className:Kg()("-depth"+e.depth,{active:e.active})}))) `
2022-02-04 13:00:46 +03:00
cursor : pointer ;
2022-05-10 19:14:02 +03:00
color : $ { e => e . active ? Jg ( e . depth , e , "activeTextColor" ) : e . theme . sidebar . textColor } ;
2022-02-04 13:00:46 +03:00
margin : 0 ;
padding : 12.5 px $ { e => 4 * e . theme . spacing . unit } px ;
$ { ( { depth : e , type : t , theme : n } ) => "section" === t && e > 1 && "padding-left: " + 8 * n . spacing . unit + "px;" || "" }
display : flex ;
justify - content : space - between ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
2022-05-10 19:14:02 +03:00
$ { e => ny [ e . depth ] } ;
background - color : $ { e => e . active ? Jg ( e . depth , e , "activeBackgroundColor" ) : e . theme . sidebar . backgroundColor } ;
2022-02-04 13:00:46 +03:00
2022-05-10 19:14:02 +03:00
$ { e => e . deprecated && Cp || "" } ;
2022-02-04 13:00:46 +03:00
& : hover {
2022-05-10 19:14:02 +03:00
color : $ { e => Jg ( e . depth , e , "activeTextColor" ) } ;
background - color : $ { e => Jg ( e . depth , e , "activeBackgroundColor" ) } ;
2022-02-04 13:00:46 +03:00
}
2022-05-10 19:14:02 +03:00
$ { Ap } {
2022-02-04 13:00:46 +03:00
height : $ { ( { theme : e } ) => e . sidebar . arrow . size } ;
width : $ { ( { theme : e } ) => e . sidebar . arrow . size } ;
polygon {
fill : $ { ( { theme : e } ) => e . sidebar . arrow . color } ;
}
}
2022-05-10 19:14:02 +03:00
` ,iy=xn.span `
2022-02-04 13:00:46 +03:00
display : inline - block ;
vertical - align : middle ;
width : $ { e => e . width ? e . width : "auto" } ;
overflow : hidden ;
text - overflow : ellipsis ;
2022-05-10 19:14:02 +03:00
` ,oy=xn.div `
$ { ( { theme : e } ) => ` \n font-size: 0.8em; \n margin-top: ${ 2 * e . spacing . unit } px; \n padding: 0 ${ 4 * e . spacing . unit } px; \n text-align: left; \n \n opacity: 0.7; \n \n a, \n a:visited, \n a:hover { \n color: ${ e . sidebar . textColor } !important; \n border-top: 1px solid ${ Et ( . 1 , e . sidebar . backgroundColor ) } ; \n padding: ${ e . spacing . unit } px 0; \n display: block; \n } \n ` } ;
` ;class ay extends r.PureComponent{render(){const{name:e,opened:t,className:n,onClick:i,httpVerb:o,deprecated:a}=this.props;return r.createElement(sy,{className:n,onClick:i||void 0},r.createElement(cy,{type:o},fs(o)),r.createElement(Ap,{size:"1.5em",direction:t?"down":"right",float:"left"}),r.createElement(ly,{deprecated:a},e),a?r.createElement(Rp,{type:"warning"}," ",en("deprecated")," "):null)}}const sy=xn.button `
2022-02-04 13:00:46 +03:00
border : 0 ;
width : 100 % ;
text - align : left ;
& > * {
vertical - align : middle ;
}
2022-05-10 19:14:02 +03:00
$ { Ap } {
2022-02-04 13:00:46 +03:00
polygon {
2022-05-10 19:14:02 +03:00
fill : $ { ( { theme : e } ) => Et ( e . colors . tonalOffset , e . colors . gray [ 100 ] ) } ;
2022-02-04 13:00:46 +03:00
}
}
2022-05-10 19:14:02 +03:00
` ,ly=xn.span `
2022-02-04 13:00:46 +03:00
text - decoration : $ { e => e . deprecated ? "line-through" : "none" } ;
margin - right : 8 px ;
2022-05-10 19:14:02 +03:00
` ,cy=xn(Zg) `
2022-02-04 13:00:46 +03:00
margin : 0 5 px 0 0 ;
2022-05-10 19:14:02 +03:00
` ,uy=xn(ay) `
2022-02-04 13:00:46 +03:00
padding : 10 px ;
border - radius : 2 px ;
margin - bottom : 4 px ;
line - height : 1.5 em ;
background - color : $ { ( { theme : e } ) => e . colors . gray [ 100 ] } ;
cursor : pointer ;
2022-05-10 19:14:02 +03:00
outline - color : $ { ( { theme : e } ) => Et ( e . colors . tonalOffset , e . colors . gray [ 100 ] ) } ;
` ,py=xn.div `
2022-02-04 13:00:46 +03:00
padding : 10 px 25 px ;
background - color : $ { ( { theme : e } ) => e . colors . gray [ 50 ] } ;
margin - bottom : 5 px ;
margin - top : 5 px ;
2022-05-10 19:14:02 +03:00
` ;class dy extends r.PureComponent{constructor(){super(...arguments),this.selectElement=()=>{Bf.selectElement(this.child)}}render(){const{children:e}=this.props;return r.createElement("div",{ref:e=>this.child=e,onClick:this.selectElement,onFocus:this.selectElement,tabIndex:0,role:"button"},e)}}const fy=xn.div `
2022-02-04 13:00:46 +03:00
cursor : pointer ;
position : relative ;
margin - bottom : 5 px ;
2022-05-10 19:14:02 +03:00
` ,hy=xn.span `
2022-02-04 13:00:46 +03:00
font - family : $ { e => e . theme . typography . code . fontFamily } ;
margin - left : 10 px ;
flex : 1 ;
overflow - x : hidden ;
text - overflow : ellipsis ;
2022-05-10 19:14:02 +03:00
` ,my=xn.button `
2022-02-04 13:00:46 +03:00
outline : 0 ;
color : inherit ;
width : 100 % ;
text - align : left ;
cursor : pointer ;
padding : 10 px 30 px 10 px $ { e => e . inverted ? "10px" : "20px" } ;
border - radius : $ { e => e . inverted ? "0" : "4px 4px 0 0" } ;
background - color : $ { e => e . inverted ? "transparent" : e . theme . codeBlock . backgroundColor } ;
display : flex ;
white - space : nowrap ;
align - items : center ;
border : $ { e => e . inverted ? "0" : "1px solid transparent" } ;
border - bottom : $ { e => e . inverted ? "1px solid #ccc" : "0" } ;
transition : border - color 0.25 s ease ;
$ { e => e . expanded && ! e . inverted && ` border-color: ${ e . theme . colors . border . dark } ; ` || "" }
2022-05-10 19:14:02 +03:00
. $ { hy } {
2022-02-04 13:00:46 +03:00
color : $ { e => e . inverted ? e . theme . colors . text . primary : "#ffffff" } ;
}
& : focus {
box - shadow : inset 0 2 px 2 px rgba ( 0 , 0 , 0 , 0.45 ) , 0 2 px 0 rgba ( 128 , 128 , 128 , 0.25 ) ;
}
2022-05-10 19:14:02 +03:00
` ,gy=xn.span.attrs((e=>({className: ` http - verb $ { e . type } ` }))) `
2022-02-04 13:00:46 +03:00
font - size : $ { e => e . compact ? "0.8em" : "0.929em" } ;
line - height : $ { e => e . compact ? "18px" : "20px" } ;
background - color : $ { e => e . theme . colors . http [ e . type ] || "#999999" } ;
color : # ffffff ;
padding : $ { e => e . compact ? "2px 8px" : "3px 10px" } ;
text - transform : uppercase ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
margin : 0 ;
2022-05-10 19:14:02 +03:00
` ,yy=xn.div `
2022-02-04 13:00:46 +03:00
position : absolute ;
width : 100 % ;
z - index : 100 ;
background : # fafafa ;
color : # 263238 ;
box - sizing : border - box ;
box - shadow : 0 px 0 px 6 px rgba ( 0 , 0 , 0 , 0.33 ) ;
overflow : hidden ;
border - bottom - left - radius : 4 px ;
border - bottom - right - radius : 4 px ;
transition : all 0.25 s ease ;
visibility : hidden ;
$ { e => e . expanded ? "visibility: visible;" : "transform: translateY(-50%) scaleY(0);" }
2022-05-10 19:14:02 +03:00
` ,by=xn.div `
2022-02-04 13:00:46 +03:00
padding : 10 px ;
2022-05-10 19:14:02 +03:00
` ,vy=xn.div `
2022-02-04 13:00:46 +03:00
padding : 5 px ;
border : 1 px solid # ccc ;
background : # fff ;
word - break : break - all ;
color : $ { e => e . theme . colors . primary . main } ;
> span {
color : $ { e => e . theme . colors . text . primary } ;
}
2022-05-10 19:14:02 +03:00
` ;class xy extends r.Component{constructor(e){super(e),this.toggle=()=>{this.setState({expanded:!this.state.expanded})},this.state={expanded:!1}}render(){const{operation:e,inverted:t,hideHostname:n}=this.props,{expanded:i}=this.state;return r.createElement(Cn.Consumer,null,(o=>r.createElement(fy,null,r.createElement(my,{onClick:this.toggle,expanded:i,inverted:t},r.createElement(gy,{type:e.httpVerb,compact:this.props.compact},e.httpVerb),r.createElement(hy,null,e.path),r.createElement(Ap,{float:"right",color:t?"black":"white",size:"20px",direction:i?"up":"down",style:{marginRight:"-25px"}})),r.createElement(yy,{expanded:i,"aria-hidden":!i},e.servers.map((t=>{const i=o.expandDefaultServerVariables?function(e,t={}){return e.replace(/(?:{)([ \w -.]+)(?:})/g,((e,n)=>t[n]&&t[n].default||e))}(t.url,t.variables):t.url,a=function(e){try{return Xt(e).pathname}catch(t){return e}}(i);return r.createElement(by,{key:i},r.createElement(Nf,{source:t.description||"",compact:!0}),r.createElement(dy,null,r.createElement(vy,null,r.createElement("span",null,n||o.hideHostname?"/"===a?"":a:i),e.path)))}))))))}}class wy extends r.PureComponent{render(){const{place:e,parameters:t}=this.props;return t&&t.length?r.createElement("div",{key:e},r.createElement(gp,null,e," Parameters"),r.createElement(Dp,null,r.createElement("tbody",null,qt(t,((e,t)=>r.createElement(Gm,{key:e.name,isLast:t,field:e,showExamples:!0})))))):null}}Object.defineProperty,Object.getOwnPropertyDescriptor;let ky=class extends r.Component{constructor(){super(...arguments),this.switchMedia=({idx:e})=>{this.props.content&&void 0!==e&&this.props.content.activate(e)}}render(){const{content:e}=this.props;if(!e||!e.mediaTypes||!e.mediaTypes.length)return null;const t=e.activeMimeIdx,n=e.mediaTypes.map(((e,t)=>({value:e.name,idx:t}))),i=({children:e})=>this.props.withLabel?r.createElement(lh,null,r.createElement(sh,null,"Content type"),e):e;return r.createElement(r.Fragment,null,r.createElement(i,null,this.props.renderDropdown({value:n[t].value,options:n,onChange:this.switchMedia,ariaLabel:"Content type"})),this.props.children(e.active))}};ky=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],ky);var Oy=Object.defineProperty,Sy=Object.getOwnPropertySymbols,Ey=Object.prototype.hasOwnProperty,_y=Object.prototype.propertyIsEnumerable,Ay=(e,t,n)=>t in e?Oy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Ry=["path","query","cookie","header"];class Cy extends r.PureComponent{orderParams(e){const t={};return e.forEach((e=>{var n,r,i;i=e,(n=t)[r=e.in]||(n[r]=[]),n[r].push(i)})),t}render(){const{body:e,parameters:t=[]}=this.props;if(void 0===e&&void 0===t)return null;const n=this.orderParams(t),i=t.length>0?Ry:[],o=e&&e.content,a=e&&e.description;return r.createElement(r.Fragment,null,i.map((e=>r.createElement(wy,{key:e,place:e,parameters:n[e]}))),o&&r.createElement(Py,{content:o,description:a}))}}function Ty(e){return r.createElement(gp,{key:"header"},"Request Body schema: ",r.createElement(Of,((e,t)=>{for(var n in t||(t={}))Ey.call(t,n)&&Ay(e,n,t[n]);if(Sy)for(var n of Sy(t))_y.call(t,n)&&Ay(e,n,t[n]);return e})({},e)))}function Py(e){const{content:t,description:n}=e,{isRequestType:i}=t;return r.createElement(ky,{content:t,renderDropdown:Ty},(({schema:e})=>r.createElement(r.Fragment,null,void 0!==n&&r.createElement(Nf,{source:n}),r.createElement(bg,{skipReadOnly:i,skipWriteOnly:!i,key:"schema",schema:e}))))}const Iy=xn(r.memo((function({title:e,type:t,empty:n,code:i,opened:o,className:a,onClick:s}){return r.createElement("button",{className:a,onClick:!n&&s||void 0,"aria-expanded":o,disabled:n},!n&&r.createElement(Ap,{size:"1.5em",color:t,direction:o?"down":"right",float:"left"}),r.createElement( $ y,null,i," "),r.createElement(Nf,{compact:!0,inline:!0,source:e}))}))) `
2022-02-04 13:00:46 +03:00
display : block ;
border : 0 ;
width : 100 % ;
text - align : left ;
padding : 10 px ;
border - radius : 2 px ;
margin - bottom : 4 px ;
line - height : 1.5 em ;
cursor : pointer ;
color : $ { e => e . theme . colors . responses [ e . type ] . color } ;
background - color : $ { e => e . theme . colors . responses [ e . type ] . backgroundColor } ;
& : focus {
outline : auto $ { e => e . theme . colors . responses [ e . type ] . color } ;
}
$ { e => e . empty ? '\ncursor: default;\n&::before {\n content: "—";\n font-weight: bold;\n width: 1.5em;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n}\n&:focus {\n outline: 0;\n}\n' : "" } ;
2022-05-10 19:14:02 +03:00
` ,jy=xn.div `
2022-02-04 13:00:46 +03:00
padding : 10 px ;
2022-05-10 19:14:02 +03:00
` ,Ny=xn(gp.withComponent("caption")) `
2022-02-04 13:00:46 +03:00
text - align : left ;
margin - top : 1 em ;
caption - side : top ;
2022-05-10 19:14:02 +03:00
` , $ y=xn.strong `
2022-02-04 13:00:46 +03:00
vertical - align : top ;
2022-05-10 19:14:02 +03:00
` ;class Ly extends r.PureComponent{render(){const{headers:e}=this.props;return void 0===e||0===e.length?null:r.createElement(Dp,null,r.createElement(Ny,null," Response Headers "),r.createElement("tbody",null,qt(e,((e,t)=>r.createElement(Gm,{isLast:t,key:e.name,field:e,showExamples:!0})))))}}var Dy=Object.defineProperty,My=Object.getOwnPropertySymbols,Fy=Object.prototype.hasOwnProperty,zy=Object.prototype.propertyIsEnumerable,Uy=(e,t,n)=>t in e?Dy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class By extends r.PureComponent{constructor(){super(...arguments),this.renderDropdown=e=>r.createElement(gp,{key:"header"},"Response Schema: ",r.createElement(Of,((e,t)=>{for(var n in t||(t={}))Fy.call(t,n)&&Uy(e,n,t[n]);if(My)for(var n of My(t))zy.call(t,n)&&Uy(e,n,t[n]);return e})({},e)))}render(){const{description:e,extensions:t,headers:n,content:i}=this.props.response;return r.createElement(r.Fragment,null,e&&r.createElement(Nf,{source:e}),r.createElement(xm,{extensions:t}),r.createElement(Ly,{headers:n}),r.createElement(ky,{content:i,renderDropdown:this.renderDropdown},(({schema:e})=>r.createElement(bg,{skipWriteOnly:!0,key:"schema",schema:e}))))}}const qy=tm((({response:e})=>{const{extensions:t,headers:n,type:i,summary:o,description:a,code:s,expanded:l,content:c}=e,u=r.useMemo((()=>void 0===c?[]:c.mediaTypes.filter((e=>void 0!==e.schema))),[c]),p=r.useMemo((()=>!(t&&0!==Object.keys(t).length||0!==n.length||0!==u.length||a)),[t,n,u,a]);return r.createElement("div",null,r.createElement(Iy,{onClick:()=>e.toggle(),type:i,empty:p,title:o||"",code:s,opened:l}),l&&!p&&r.createElement(jy,null,r.createElement(By,{response:e})))})),Vy=xn.h3 `
2022-02-04 13:00:46 +03:00
font - size : 1.3 em ;
padding : 0.2 em 0 ;
margin : 3 em 0 1.1 em ;
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
font - weight : normal ;
2022-05-10 19:14:02 +03:00
` ;class Wy extends r.PureComponent{render(){const{responses:e,isCallback:t}=this.props;return e&&0!==e.length?r.createElement("div",null,r.createElement(Vy,null,en(t?"callbackResponses":"responses")),e.map((e=>r.createElement(qy,{key:e.code,response:e})))):null}}const Hy=xn.ul `
2022-04-28 16:24:41 +03:00
display : inline ;
list - style : none ;
padding : 0 ;
li {
display : inherit ;
& : after {
content : ',' ;
}
& : last - child : after {
content : none ;
}
}
2022-05-10 19:14:02 +03:00
` ,Yy=xn.code `
2022-02-04 13:00:46 +03:00
font - size : $ { e => e . theme . typography . code . fontSize } ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
border : 1 px solid $ { ( { theme : e } ) => e . colors . border . dark } ;
margin : 0 3 px ;
padding : 0.2 em ;
display : inline - block ;
line - height : 1 ;
2022-05-10 19:14:02 +03:00
` ,Qy=xn.span `
2022-02-04 13:00:46 +03:00
& : after {
content : ' AND ' ;
font - weight : bold ;
}
& : last - child : after {
content : none ;
}
2022-05-10 19:14:02 +03:00
$ { Ef } ;
` ,Gy=xn.span `
2022-02-04 13:00:46 +03:00
& : before {
content : '( ' ;
font - weight : bold ;
}
& : after {
content : ' ) OR ' ;
font - weight : bold ;
}
& : last - child : after {
content : ' )' ;
}
& : only - child : before ,
& : only - child : after {
content : none ;
}
2022-05-10 19:14:02 +03:00
$ { Ef } ;
` ;class Xy extends r.PureComponent{render(){const e=this.props.security;return r.createElement(Gy,null,e.schemes.length?e.schemes.map((e=>r.createElement(Qy,{key:e.id},r.createElement(kp,{to:e.sectionId},e.displayName),e.scopes.length>0&&" (",r.createElement(Hy,null,e.scopes.map((e=>r.createElement("li",{key:e},r.createElement(Yy,null,e))))),e.scopes.length>0&&") "))):r.createElement(Qy,null,"None"))}}const Ky=xn.div `
2022-02-04 13:00:46 +03:00
flex : 1 1 auto ;
2022-05-10 19:14:02 +03:00
` ,Zy=xn.div `
2022-02-04 13:00:46 +03:00
width : $ { e => e . theme . schema . defaultDetailsWidth } ;
2022-05-10 19:14:02 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
margin - top : 10 px ;
` }
2022-05-10 19:14:02 +03:00
` ,Jy=xn(gp) `
2022-02-04 13:00:46 +03:00
display : inline - block ;
margin : 0 ;
2022-05-10 19:14:02 +03:00
` ,eb=xn.div `
2022-02-04 13:00:46 +03:00
width : 100 % ;
display : flex ;
margin : 1 em 0 ;
2022-05-10 19:14:02 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
flex - direction : column ;
` }
2022-05-10 19:14:02 +03:00
` ;class tb extends r.PureComponent{render(){const e=this.props.securities;return e.length?r.createElement(eb,null,r.createElement(Ky,null,r.createElement(Jy,null,"Authorizations: ")),r.createElement(Zy,null,e.map(((e,t)=>r.createElement(Xy,{key:t,security:e}))))):null}}Object.defineProperty,Object.getOwnPropertyDescriptor;let nb=class extends r.Component{render(){const{operation:e}=this.props,{description:t,externalDocs:n}=e,i=!(!t&&!n);return r.createElement(py,null,i&&r.createElement(rb,null,void 0!==t&&r.createElement(Nf,{source:t}),n&&r.createElement(gm,{externalDocs:n})),r.createElement(xy,{operation:this.props.operation,inverted:!0,compact:!0}),r.createElement(xm,{extensions:e.extensions}),r.createElement(tb,{securities:e.security}),r.createElement(Cy,{parameters:e.parameters,body:e.requestBody}),r.createElement(Wy,{responses:e.responses,isCallback:e.isCallback}))}};nb=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],nb);const rb=xn.div `
2022-02-04 13:00:46 +03:00
margin - bottom : $ { ( { theme : e } ) => 3 * e . spacing . unit } px ;
2022-05-10 19:14:02 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let ib=class extends r.Component{constructor(){super(...arguments),this.toggle=()=>{this.props.callbackOperation.toggle()}}render(){const{name:e,expanded:t,httpVerb:n,deprecated:i}=this.props.callbackOperation;return r.createElement(r.Fragment,null,r.createElement(uy,{onClick:this.toggle,name:e,opened:t,httpVerb:n,deprecated:i}),t&&r.createElement(nb,{operation:this.props.callbackOperation}))}};ib=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],ib);class ob extends r.PureComponent{render(){const{callbacks:e}=this.props;return e&&0!==e.length?r.createElement("div",null,r.createElement(ab,null," Callbacks "),e.map((e=>e.operations.map(((t,n)=>r.createElement(ib,{key: ` $ { e . name } _$ { n } ` ,callbackOperation:t})))))):null}}const ab=xn.h3 `
2022-02-04 13:00:46 +03:00
font - size : 1.3 em ;
padding : 0.2 em 0 ;
margin : 3 em 0 1.1 em ;
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
font - weight : normal ;
2022-05-10 19:14:02 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let sb=class extends r.Component{constructor(e){super(e),this.switchItem=({idx:e})=>{this.props.items&&void 0!==e&&this.setState({activeItemIdx:e})},this.state={activeItemIdx:0}}render(){const{items:e}=this.props;if(!e||!e.length)return null;const t=({children:e})=>this.props.label?r.createElement(lh,null,r.createElement(sh,null,this.props.label),e):e;return r.createElement(r.Fragment,null,r.createElement(t,null,this.props.renderDropdown({value:this.props.options[this.state.activeItemIdx].value,options:this.props.options,onChange:this.switchItem,ariaLabel:this.props.label||"Callback"})),this.props.children(e[this.state.activeItemIdx]))}};sb=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],sb);var lb=Object.defineProperty,cb=Object.defineProperties,ub=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),pb=Object.getOwnPropertySymbols,db=Object.prototype.hasOwnProperty,fb=Object.prototype.propertyIsEnumerable,hb=(e,t,n)=>t in e?lb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let mb=class extends r.Component{constructor(){super(...arguments),this.renderDropdown=e=>{return r.createElement(Of,(t=((e,t)=>{for(var n in t||(t={}))db.call(t,n)&&hb(e,n,t[n]);if(pb)for(var n of pb(t))fb.call(t,n)&&hb(e,n,t[n]);return e})({Label:ah,Dropdown:ch},e),cb(t,ub({variant:"dark"}))));var t}}render(){const e=this.props.content;return void 0===e?null:r.createElement(ky,{content:e,renderDropdown:this.renderDropdown,withLabel:!0},(e=>r.createElement(ph,{key:"samples",mediaType:e,renderDropdown:this.renderDropdown})))}};mb=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],mb);class gb extends r.Component{render(){const e=this.props.callback.codeSamples.find((e=>ou(e)));return e?r.createElement(yb,null,r.createElement(mb,{content:e.requestBodyContent})):null}}const yb=xn.div `
2022-02-04 13:00:46 +03:00
margin - top : 15 px ;
2022-05-10 19:14:02 +03:00
` ;var bb=Object.defineProperty,vb=Object.defineProperties,xb=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),wb=Object.getOwnPropertySymbols,kb=Object.prototype.hasOwnProperty,Ob=Object.prototype.propertyIsEnumerable,Sb=(e,t,n)=>t in e?bb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Eb=class extends r.Component{constructor(){super(...arguments),this.renderDropdown=e=>{return r.createElement(Of,(t=((e,t)=>{for(var n in t||(t={}))kb.call(t,n)&&Sb(e,n,t[n]);if(wb)for(var n of wb(t))Ob.call(t,n)&&Sb(e,n,t[n]);return e})({Label:ah,Dropdown:ch},e),vb(t,xb({variant:"dark"}))));var t}}render(){const{callbacks:e}=this.props;if(!e||0===e.length)return null;const t=e.map((e=>e.operations.map((e=>e)))).reduce(((e,t)=>e.concat(t)),[]);if(!t.some((e=>e.codeSamples.length>0)))return null;const n=t.map(((e,t)=>({value: ` $ { e . httpVerb . toUpperCase ( ) } : $ { e . name } ` ,idx:t})));return r.createElement("div",null,r.createElement(mp,null," Callback payload samples "),r.createElement(_b,null,r.createElement(sb,{items:t,renderDropdown:this.renderDropdown,label:"Callback",options:n},(e=>r.createElement(gb,{key:"callbackPayloadSample",callback:e,renderDropdown:this.renderDropdown})))))}};Eb.contextType=Cn,Eb=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],Eb);const _b=xn.div `
2022-02-04 13:00:46 +03:00
background : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
padding : $ { e => 4 * e . theme . spacing . unit } px ;
2022-05-10 19:14:02 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ab=class extends r.Component{render(){const{operation:e}=this.props,t=e.codeSamples,n=t.length>0,i=1===t.length&&this.context.hideSingleRequestSampleTab;return n&&r.createElement("div",null,r.createElement(mp,null," ",en("requestSamples")," "),r.createElement(xd,{defaultIndex:0},r.createElement(dd,{hidden:i},t.map((e=>r.createElement(gd,{key:e.lang+"_"+(e.label||"")},void 0!==e.label?e.label:e.lang)))),t.map((e=>r.createElement(vd,{key:e.lang+"_"+(e.label||"")},ou(e)?r.createElement("div",null,r.createElement(mb,{content:e.requestBodyContent})):r.createElement(nh,{lang:e.lang,source:e.source}))))))||null}};Ab.contextType=Cn,Ab=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],Ab);Object.defineProperty,Object.getOwnPropertyDescriptor;let Rb=class extends r.Component{render(){const{operation:e}=this.props,t=e.responses.filter((e=>e.content&&e.content.hasSample));return t.length>0&&r.createElement("div",null,r.createElement(mp,null," ",en("responseSamples")," "),r.createElement(xd,{defaultIndex:0},r.createElement(dd,null,t.map((e=>r.createElement(gd,{className:"tab-"+e.type,key:e.code},e.code)))),t.map((e=>r.createElement(vd,{key:e.code},r.createElement("div",null,r.createElement(mb,{content:e.content})))))))||null}};Rb=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],Rb);var Cb=Object.defineProperty,Tb=Object.defineProperties,Pb=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),Ib=Object.getOwnPropertySymbols,jb=Object.prototype.hasOwnProperty,Nb=Object.prototype.propertyIsEnumerable, $ b=(e,t,n)=>t in e?Cb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Lb=xn.div `
2022-02-04 13:00:46 +03:00
margin - bottom : $ { ( { theme : e } ) => 6 * e . spacing . unit } px ;
2022-05-10 19:14:02 +03:00
` ;let Db=class extends r.Component{render(){const{operation:e}=this.props,{name:t,description:n,deprecated:i,externalDocs:o,isWebhook:a}=e,s=!(!n&&!o);return r.createElement(Cn.Consumer,null,(l=>r.createElement(up,((e,t)=>Tb(e,Pb(t)))(((e,t)=>{for(var n in t||(t={}))jb.call(t,n)&& $ b(e,n,t[n]);if(Ib)for(var n of Ib(t))Nb.call(t,n)&& $ b(e,n,t[n]);return e})({},{[ep]:e.operationHash}),{id:e.operationHash}),r.createElement(sp,null,r.createElement(hp,null,r.createElement(Sp,{to:e.id}),t," ",i&&r.createElement(Rp,{type:"warning"}," Deprecated "),a&&r.createElement(Rp,{type:"primary"}," Webhook ")),l.pathInMiddlePanel&&!a&&r.createElement(xy,{operation:e,inverted:!0}),s&&r.createElement(Lb,null,void 0!==n&&r.createElement(Nf,{source:n}),o&&r.createElement(gm,{externalDocs:o})),r.createElement(xm,{extensions:e.extensions}),r.createElement(tb,{securities:e.security}),r.createElement(Cy,{parameters:e.parameters,body:e.requestBody}),r.createElement(Wy,{responses:e.responses}),r.createElement(ob,{callbacks:e.callbacks})),r.createElement(cp,null,!l.pathInMiddlePanel&&!a&&r.createElement(xy,{operation:e}),r.createElement(Ab,{operation:e}),r.createElement(Rb,{operation:e}),r.createElement(Eb,{callbacks:e.callbacks})))))}};Db=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],Db);var Mb=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,zb=Object.getOwnPropertySymbols,Ub=Object.prototype.hasOwnProperty,Bb=Object.prototype.propertyIsEnumerable,qb=(e,t,n)=>t in e?Mb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vb=(e,t)=>{for(var n in t||(t={}))Ub.call(t,n)&&qb(e,n,t[n]);if(zb)for(var n of zb(t))Bb.call(t,n)&&qb(e,n,t[n]);return e},Wb=(e,t,n,r)=>{for(var i,o=r>1?void 0:r?Fb(t,n):t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=(r?i(t,n,o):i(o))||o);return r&&o&&Mb(t,n,o),o};let Hb=class extends r.Component{render(){const e=this.props.items;return 0===e.length?null:e.map((e=>r.createElement(Yb,{key:e.id,item:e})))}};Hb=Wb([tm],Hb);let Yb=class extends r.Component{render(){const e=this.props.item;let t;const{type:n}=e;switch(n){case"group":t=null;break;case"tag":case"section":t=r.createElement(Gb,Vb({},this.props));break;case"operation":t=r.createElement(Xb,{item:e});break;default:t=r.createElement(Gb,Vb({},this.props))}return r.createElement(r.Fragment,null,t&&r.createElement(lp,{id:e.id,underlined:"operation"===e.type},t),e.items&&r.createElement(Hb,{items:e.items}))}};Yb=Wb([tm],Yb);const Qb=e=>r.createElement(sp,{compact:!0},e);let Gb=class extends r.Component{render(){const{name:e,description:t,externalDocs:n,level:i}=this.props.item,o=2===i?hp:fp;return r.createElement(r.Fragment,null,r.createElement(up,null,r.createElement(sp,{compact:!1},r.createElement(o,null,r.createElement(Sp,{to:this.props.item.id}),e))),r.createElement(Gg,{source:t||"",htmlWrap:Qb}),n&&r.createElement(up,null,r.createElement(sp,null,r.createElement(gm,{externalDocs:n}))))}};Gb=Wb([tm],Gb);let Xb=class extends r.Component{render(){return r.createElement(Db,{operation:this.props.item})}};Xb=Wb([tm],Xb);var Kb=Object.defineProperty,Zb=Object.defineProperties,Jb=Object.getOwnPropertyDescriptor,ev=Object.getOwnPropertyDescriptors,tv=Object.getOwnPropertySymbols,nv=Object.prototype.hasOwnProperty,rv=Object.prototype.propertyIsEnumerable,iv=(e,t,n)=>t in e?Kb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ov=(e,t,n,r)=>{for(var i,o=r>1?void 0:r?Jb(t,n):t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=(r?i(t,n,o):i(o))||o);return r&&o&&Kb(t,n,o),o};let av=class extends r.Component{constructor(){super(...arguments),this.ref=r.createRef(),this.activate=e=>{this.props.onActivate(this.props.item),e.stopPropagation()}}componentDidMount(){this.scrollIntoViewIfActive()}componentDidUpdate(){this.scrollIntoViewIfActive()}scrollIntoViewIfActive(){this.props.item.active&&this.ref.current&&zt(this.ref.current)}render(){const{item:e,withoutChildren:t}=this.props;return r.createElement(ty,{onClick:this.activate,depth:e.depth,"data-item-id":e.id},"operation"===e.type?r.createElement(sv,((e,t)=>Zb(e,ev(t)))(((e,t)=>{for(var n in t||
2022-02-04 13:00:46 +03:00
user - select : none ;
width : 20 px ;
height : 20 px ;
align - self : center ;
display : flex ;
flex - direction : column ;
color : $ { e => e . theme . colors . primary . main } ;
2022-05-10 19:14:02 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let bv;Mt&&(bv=n(5114));const vv=bv&&bv(),xv=xn.div `
2022-02-04 13:00:46 +03:00
width : $ { e => e . theme . sidebar . width } ;
background - color : $ { e => e . theme . sidebar . backgroundColor } ;
overflow : hidden ;
display : flex ;
flex - direction : column ;
backface - visibility : hidden ;
/* contain: strict; TODO: breaks layout since Chrome 80*/
height : 100 vh ;
position : sticky ;
position : - webkit - sticky ;
top : 0 ;
2022-05-10 19:14:02 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
position : fixed ;
z - index : 20 ;
width : 100 % ;
background : $ { ( { theme : e } ) => e . sidebar . backgroundColor } ;
display : $ { e => e . open ? "flex" : "none" } ;
` };
@ media print {
display : none ;
}
2022-05-10 19:14:02 +03:00
` ,wv=xn.div `
2022-02-04 13:00:46 +03:00
outline : none ;
user - select : none ;
2022-04-28 16:24:41 +03:00
background - color : $ { ( { theme : e } ) => e . fab . backgroundColor } ;
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . colors . primary . main } ;
display : none ;
cursor : pointer ;
position : fixed ;
right : 20 px ;
z - index : 100 ;
border - radius : 50 % ;
box - shadow : 0 0 20 px rgba ( 0 , 0 , 0 , 0.3 ) ;
2022-05-10 19:14:02 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
display : flex ;
` };
bottom : 44 px ;
width : 60 px ;
height : 60 px ;
padding : 0 20 px ;
2022-04-28 16:24:41 +03:00
svg {
color : $ { ( { theme : e } ) => e . fab . color } ;
}
2022-02-04 13:00:46 +03:00
@ media print {
display : none ;
}
2022-05-10 19:14:02 +03:00
` ;let kv=class extends r.Component{constructor(){super(...arguments),this.state={offsetTop:"0px"},this.toggleNavMenu=()=>{this.props.menu.toggleSidebar()}}componentDidMount(){vv&&vv.add(this.stickyElement),this.setState({offsetTop:this.getScrollYOffset(this.context)})}componentWillUnmount(){vv&&vv.remove(this.stickyElement)}getScrollYOffset(e){let t;return t=void 0!==this.props.scrollYOffset?fn.normalizeScrollYOffset(this.props.scrollYOffset)():e.scrollYOffset(),t+"px"}render(){const e=this.props.menu.sideBarOpened,t=this.state.offsetTop;return r.createElement(r.Fragment,null,r.createElement(xv,{open:e,className:this.props.className,style:{top:t,height: ` calc ( 100 vh - $ { t } ) ` },ref:e=>{this.stickyElement=e}},this.props.children),!this.context.hideFab&&r.createElement(wv,{onClick:this.toggleNavMenu},r.createElement(mv,{open:e})))}};kv.contextType=Cn,kv=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([tm],kv);const Ov=xn.div `
2022-02-04 13:00:46 +03:00
$ { ( { theme : e } ) => ` \n font-family: ${ e . typography . fontFamily } ; \n font-size: ${ e . typography . fontSize } ; \n font-weight: ${ e . typography . fontWeightRegular } ; \n line-height: ${ e . typography . lineHeight } ; \n color: ${ e . colors . text . primary } ; \n display: flex; \n position: relative; \n text-align: left; \n \n -webkit-font-smoothing: ${ e . typography . smoothing } ; \n font-smoothing: ${ e . typography . smoothing } ; \n ${ e . typography . optimizeSpeed ? "text-rendering: optimizeSpeed !important" : "" } ; \n \n tap-highlight-color: rgba(0, 0, 0, 0); \n text-size-adjust: 100%; \n \n * { \n box-sizing: border-box; \n -webkit-tap-highlight-color: rgba(255, 255, 255, 0); \n } \n ` } ;
2022-05-10 19:14:02 +03:00
` ,Sv=xn.div `
2022-02-04 13:00:46 +03:00
z - index : 1 ;
position : relative ;
overflow : hidden ;
width : calc ( 100 % - $ { e => e . theme . sidebar . width } ) ;
2022-05-10 19:14:02 +03:00
$ { vn ( "small" , ! 0 ) `
2022-02-04 13:00:46 +03:00
width : 100 % ;
` };
contain : layout ;
2022-05-10 19:14:02 +03:00
` ,Ev=xn.div `
2022-02-04 13:00:46 +03:00
background : $ { ( { theme : e } ) => e . rightPanel . backgroundColor } ;
position : absolute ;
top : 0 ;
bottom : 0 ;
right : 0 ;
width : $ { ( { theme : e } ) => { if ( e . rightPanel . width . endsWith ( "%" ) ) { const t = parseInt ( e . rightPanel . width , 10 ) ; return ` calc((100% - ${ e . sidebar . width } ) * ${ t / 100 } ) ` } return e . rightPanel . width } } ;
2022-05-10 19:14:02 +03:00
$ { vn ( "medium" , ! 0 ) `
2022-02-04 13:00:46 +03:00
display : none ;
` };
2022-05-10 19:14:02 +03:00
` ,_v=xn.div `
2022-02-04 13:00:46 +03:00
padding : 5 px 0 ;
2022-05-10 19:14:02 +03:00
` ,Av=xn.input.attrs((()=>({className:"search-input"}))) `
2022-02-04 13:00:46 +03:00
width : calc ( 100 % - $ { e => 8 * e . theme . spacing . unit } px ) ;
box - sizing : border - box ;
margin : 0 $ { e => 4 * e . theme . spacing . unit } px ;
padding : 5 px $ { e => 2 * e . theme . spacing . unit } px 5 px
$ { e => 4 * e . theme . spacing . unit } px ;
border : 0 ;
border - bottom : 1 px solid
2022-05-10 19:14:02 +03:00
$ { ( { theme : e } ) => ( Rt ( e . sidebar . backgroundColor ) > . 5 ? Et : Tt ) ( . 1 , e . sidebar . backgroundColor ) } ;
2022-02-04 13:00:46 +03:00
font - family : $ { ( { theme : e } ) => e . typography . fontFamily } ;
font - weight : bold ;
font - size : 13 px ;
color : $ { e => e . theme . sidebar . textColor } ;
background - color : transparent ;
outline : none ;
2022-05-10 19:14:02 +03:00
` ,Rv=xn((e=>r.createElement("svg",{className:e.className,version:"1.1",viewBox:"0 0 1000 1000",x:"0px",xmlns:"http://www.w3.org/2000/svg",y:"0px"},r.createElement("path",{d:"M968.2,849.4L667.3,549c83.9-136.5,66.7-317.4-51.7-435.6C477.1-25,252.5-25,113.9,113.4c-138.5,138.3-138.5,362.6,0,501C219.2,730.1,413.2,743,547.6,666.5l301.9,301.4c43.6,43.6,76.9,14.9,104.2-12.4C981,928.3,1011.8,893,968.2,849.4z M524.5,522c-88.9,88.7-233,88.7-321.8,0c-88.9-88.7-88.9-232.6,0-321.3c88.9-88.7,233-88.7,321.8,0C613.4,289.4,613.4,433.3,524.5,522z"})))).attrs({className:"search-icon"}) `
2022-02-04 13:00:46 +03:00
position : absolute ;
left : $ { e => 4 * e . theme . spacing . unit } px ;
height : 1.8 em ;
width : 0.9 em ;
path {
fill : $ { e => e . theme . sidebar . textColor } ;
}
2022-05-10 19:14:02 +03:00
` ,Cv=xn.div `
2022-02-04 13:00:46 +03:00
padding : $ { e => e . theme . spacing . unit } px 0 ;
2022-05-10 19:14:02 +03:00
background - color : $ { ( { theme : e } ) => Et ( . 05 , e . sidebar . backgroundColor ) } } ;
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . sidebar . textColor } ;
min - height : 150 px ;
max - height : 250 px ;
2022-05-10 19:14:02 +03:00
border - top : $ { ( { theme : e } ) => Et ( . 1 , e . sidebar . backgroundColor ) } } ;
border - bottom : $ { ( { theme : e } ) => Et ( . 1 , e . sidebar . backgroundColor ) } } ;
2022-02-04 13:00:46 +03:00
margin - top : 10 px ;
line - height : 1.4 ;
font - size : 0.9 em ;
li {
background - color : inherit ;
}
2022-05-10 19:14:02 +03:00
$ { ry } {
2022-02-04 13:00:46 +03:00
padding - top : 6 px ;
padding - bottom : 6 px ;
& : hover ,
& . active {
2022-05-10 19:14:02 +03:00
background - color : $ { ( { theme : e } ) => Et ( . 1 , e . sidebar . backgroundColor ) } ;
2022-02-04 13:00:46 +03:00
}
> svg {
display : none ;
}
}
2022-05-10 19:14:02 +03:00
` ,Tv=xn.i `
2022-02-04 13:00:46 +03:00
position : absolute ;
display : inline - block ;
width : $ { e => 2 * e . theme . spacing . unit } px ;
text - align : center ;
right : $ { e => 4 * e . theme . spacing . unit } px ;
line - height : 2 em ;
vertical - align : middle ;
margin - right : 2 px ;
cursor : pointer ;
font - style : normal ;
color : '#666' ;
2022-05-10 19:14:02 +03:00
` ;var Pv=Object.defineProperty,Iv=Object.getOwnPropertyDescriptor;class jv extends r.PureComponent{constructor(e){super(e),this.activeItemRef=null,this.clear=()=>{this.setState({results:[],noResults:!1,term:"",activeItemIdx:-1}),this.props.marker.unmark()},this.handleKeyDown=e=>{if(27===e.keyCode&&this.clear(),40===e.keyCode&&(this.setState({activeItemIdx:Math.min(this.state.activeItemIdx+1,this.state.results.length-1)}),e.preventDefault()),38===e.keyCode&&(this.setState({activeItemIdx:Math.max(0,this.state.activeItemIdx-1)}),e.preventDefault()),13===e.keyCode){const e=this.state.results[this.state.activeItemIdx];if(e){const t=this.props.getItemById(e.meta);t&&this.props.onActivate(t)}}},this.search=e=>{const{minCharacterLengthToInitSearch:t}=this.context,n=e.target.value;n.length<t?this.clearResults(n):this.setState({term:n},(()=>this.searchCallback(this.state.term)))},this.state={results:[],noResults:!1,term:"",activeItemIdx:-1}}clearResults(e){this.setState({results:[],noResults:!1,term:e}),this.props.marker.unmark()}setResults(e,t){this.setState({results:e,noResults:0===e.length}),this.props.marker.mark(t)}searchCallback(e){this.props.search.search(e).then((t=>{this.setResults(t,e)}))}render(){const{activeItemIdx:e}=this.state,t=this.state.results.map((e=>({item:this.props.getItemById(e.meta),score:e.score})));return t.sort(((e,t)=>t.score-e.score)),r.createElement(_v,{role:"search"},this.state.term&&r.createElement(Tv,{onClick:this.clear},"× "),r.createElement(Rv,null),r.createElement(Av,{value:this.state.term,onKeyDown:this.handleKeyDown,placeholder:"Search...","aria-label":"Search",type:"text",onChange:this.search}),t.length>0&&r.createElement(df,{options:{wheelPropagation:!1}},r.createElement(Cv,{"data-role":"search:results"},t.map(((t,n)=>r.createElement(av,{item:Object.create(t.item,{active:{value:n===e}}),onActivate:this.props.onActivate,withoutChildren:!0,key:t.item.id,"data-role":"search:result"}))))),this.state.term&&this.state.noResults?r.createElement(Cv,{"data-role":"search:results"},en("noResultsFound")):null)}}jv.contextType=Cn,((e,t,n,r)=>{for(var i,o=Iv(t,n),a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(t,n,o)||o);o&&Pv(t,n,o)})([Aa.bind,(0,Aa.debounce)(400)],jv.prototype,"searchCallback");class Nv extends r.Component{componentDidMount(){this.props.store.onDidMount()}componentWillUnmount(){this.props.store.dispose()}render(){const{store:{spec:e,menu:t,options:n,search:i,marker:o}}=this.props,a=this.props.store;return r.createElement(bn,{theme:n.theme},r.createElement(bp,{value:a},r.createElement(Tn,{value:n},r.createElement(Ov,{className:"redoc-wrap"},r.createElement(kv,{menu:t,className:"menu-content"},r.createElement(Bg,{info:e.info}),!n.disableSearch&&r.createElement(jv,{search:i,marker:o,getItemById:t.getItemById,onActivate:t.activateAndScroll})||null,r.createElement(hv,{menu:t})),r.createElement(Sv,{className:"api-content"},r.createElement(Mg,{store:a}),r.createElement(Hb,{items:t.items})),r.createElement(Ev,null)))))}}Nv.propTypes={store:Rn.instanceOf(Pg).isRequired};const $ v=function(e){const{spec:t,specUrl:i,options:o={},onLoaded:a}=e,s=pn(o.hideLoading,!1),l=new fn(o);if(void 0!==l.nonce)try{n.nc=l.nonce}catch(e){}return r.createElement(On,null,r.createElement(xp,{spec:t,specUrl:i,options:o,onLoaded:a},(({loading:e,store:t})=>e?s?null:r.createElement(An,{color:l.theme.colors.primary.main}):r.createElement(Nv,{store:t}))))},Lv=xn.li `
2022-02-04 13:00:46 +03:00
$ { e => e . active ? "background-color: #eee" : "" } ;
padding : 13 px 16 px ;
& : hover {
background - color : # eee ;
}
cursor : pointer ;
text - overflow : ellipsis ;
overflow : hidden ;
2022-05-10 19:14:02 +03:00
` ,Dv=xn.ul `
2022-02-04 13:00:46 +03:00
box - shadow : 0 2 px 2 px 0 rgba ( 0 , 0 , 0 , 0.14 ) , 0 1 px 5 px 0 rgba ( 0 , 0 , 0 , 0.12 ) ,
0 3 px 1 px - 2 px rgba ( 0 , 0 , 0 , 0.2 ) ;
background : # fff ;
border - radius : 0 0 2 px 2 px ;
top : 100 % ;
left : 0 ;
right : 0 ;
z - index : 200 ;
overflow : hidden ;
position : absolute ;
list - style : none ;
margin : 4 px 0 0 0 ;
padding : 5 px 0 ;
font - family : Roboto , sans - serif ;
overflow : hidden ;
2022-05-10 19:14:02 +03:00
` ,Mv=xn.div `
2022-02-04 13:00:46 +03:00
position : relative ;
width : 100 % ;
max - width : 500 px ;
display : flex ;
2022-05-10 19:14:02 +03:00
` ,Fv=xn.input `
2022-02-04 13:00:46 +03:00
box - sizing : border - box ;
width : 100 % ;
padding : 0 10 px ;
color : # 555 ;
background - color : # fff ;
border : 1 px solid # ccc ;
font - size : 16 px ;
height : 28 px ;
box - sizing : border - box ;
vertical - align : middle ;
line - height : 1 ;
outline : none ;
box - shadow : inset 0 1 px 1 px rgba ( 0 , 0 , 0 , 0.075 ) ;
transition : border - color ease - in - out 0.15 s , box - shadow ease - in - out 0.15 s ;
& : focus {
border - color : # 66 afe9 ;
outline : 0 ;
box - shadow : inset 0 1 px 1 px rgba ( 0 , 0 , 0 , 0.075 ) , 0 0 8 px rgba ( 102 , 175 , 233 , 0.6 ) ;
}
2022-05-10 19:14:02 +03:00
` ,zv=xn.button `
2022-02-04 13:00:46 +03:00
background - color : # fff ;
color : # 333 ;
padding : 2 px 10 px ;
touch - action : manipulation ;
cursor : pointer ;
user - select : none ;
border : 1 px solid # ccc ;
border - left : 0 ;
font - size : 16 px ;
height : 28 px ;
box - sizing : border - box ;
vertical - align : middle ;
line - height : 1 ;
outline : none ;
width : 80 px ;
white - space : nowrap ;
@ media screen and ( max - width : 450 px ) {
display : none ;
}
2022-05-10 19:14:02 +03:00
` ;class Uv extends r.Component{constructor(){super(...arguments),this.state={open:!1,value:this.props.value||"",activeItemIdx:-1},this.open=()=>{this.setState({open:!0})},this.close=()=>{this.setState({open:!1,activeItemIdx:-1})},this.handleChange=e=>{this.updateValue(e.currentTarget.value)},this.handleTryItClick=()=>{this.handleSelect(this.state.value)},this.handleKeyPress=e=>{if(13===e.keyCode)this.handleSelect(e.currentTarget.value);else if(40===e.keyCode){const t=Math.min(this.props.options.length-1,++this.state.activeItemIdx);this.setState({open:!0,activeItemIdx:t,value:this.props.options[t].value}),e.preventDefault()}else if(38===e.keyCode){const t=Math.max(0,--this.state.activeItemIdx);this.setState({activeItemIdx:t,value:this.props.options[t].value}),e.preventDefault()}else 27===e.keyCode&&this.close()},this.handleBlur=()=>{setTimeout((()=>this.close()),100)},this.handleItemClick=(e,t)=>{this.handleSelect(e),this.setState({activeItemIdx:t})},this.renderOption=(e,t)=>r.createElement(Lv,{active:t===this.state.activeItemIdx,key:e.value,onMouseDown:()=>{this.handleItemClick(e.value,t)}},r.createElement("small",null,r.createElement("strong",null,e.label)),r.createElement("br",null),e.value)}updateValue(e){this.setState({value:e,activeItemIdx:-1})}handleSelect(e){this.updateValue(e),this.props.onChange&&this.props.onChange(e),this.close()}render(){const{open:e,value:t}=this.state,{options:n,placeholder:i}=this.props;return r.createElement(Mv,null,r.createElement(Fv,{placeholder:i,onChange:this.handleChange,value:t,onFocus:this.open,onBlur:this.handleBlur,onKeyDown:this.handleKeyPress,"aria-label":"URL to an OpenAPI definition to try"}),r.createElement(zv,{onClick:this.handleTryItClick}," TRY IT "),e&&r.createElement(Dv,null,n.map(this.renderOption)))}}var Bv=function(e){return"object"==typeof e&&null!==e},qv=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},Vv=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e};function Wv(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=" \n \n "+e.mark.snippet),r+" "+n):r}function Hv(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Wv(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}Hv.prototype=Object.create(Error.prototype),Hv.prototype.constructor=Hv,Hv.prototype.toString=function(e){return this.name+": "+Wv(this,e)};var Yv=Hv;function Qv(e,t,n,r,i){var o="",a="",s=Math.floor(i/2)-1;return r-t>s&&(t=r-s+(o=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:o+e.slice(t,n).replace(/ \t /g,"→")+a,pos:r-t+o.length}}function Gv(e,t){return qv(" ",t-e.length)+e}var Xv=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Kv=["scalar","sequence","mapping"],Zv=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===Xv.indexOf(t))throw new Yv('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===Kv.indexOf(this.kind))throw new Yv('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function Jv(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function ex(e){return this.extend(e)}ex.prototype.extend=function(e){var t=[],n=[];if(e instanceof Zv)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.impli
2022-02-04 13:00:46 +03:00
background - color : # fff ;
color : # 333 ;
padding : 2 px 10 px ;
touch - action : manipulation ;
cursor : pointer ;
user - select : none ;
border : 1 px solid # ccc ;
font - size : 16 px ;
height : 28 px ;
box - sizing : border - box ;
vertical - align : middle ;
line - height : 1 ;
outline : none ;
white - space : nowrap ;
@ media ( max - width : 699 px ) {
display : none ;
}
2022-05-10 19:14:02 +03:00
` ,uw=function(e){const t=(0,r.useRef)(null);return r.createElement("span",null,r.createElement(cw,{onClick:()=>{t&&t.current&&t.current.click()}},"Upload a file"),r.createElement("input",{type:"file",style:{display:"none"},onChange:t=>{const n=t.target.files[0],r=new FileReader;r.onload=()=>{e.onUpload(lw(r.result))},r.readAsText(n)},ref:t}))},pw="openapi.yaml",dw="openapi-3-1.yaml",fw=[{value:dw,label:"Petstore OpenAPI 3.1"},{value:"https://api.apis.guru/v2/specs/instagram.com/1.0.0/swagger.yaml",label:"Instagram"},{value:"https://api.apis.guru/v2/specs/googleapis.com/calendar/v3/openapi.yaml",label:"Google Calendar"},{value:"https://api.apis.guru/v2/specs/slack.com/1.7.0/openapi.yaml",label:"Slack"},{value:"https://api.apis.guru/v2/specs/zoom.us/2.0.0/openapi.yaml",label:"Zoom.us"},{value:"https://docs.graphhopper.com/openapi.json",label:"GraphHopper"}];class hw extends r.Component{constructor(e){super(e),this.handleUploadFile=e=>{this.setState({spec:e,specUrl:""})},this.handleChange=e=>{e===dw&&this.setState({cors:!1}),this.setState({specUrl:e}),window.history.pushState(void 0,"",vw(location.search,"url",e))},this.toggleCors=e=>{const t=e.currentTarget.checked;this.setState({cors:t}),window.history.pushState(void 0,"",vw(location.search,"nocors",t?void 0:""))};let t=window.location.search.match(/url=([^&]+)/),n=pw;t&&t.length>1&&(n=decodeURIComponent(t[1])),t=window.location.search.match(/[?&]nocors(&|#| $ )/);let r=!0;t&&t.length>1&&(r=!1),this.state={spec:void 0,specUrl:n,dropdownOpen:!1,cors:r}}render(){const{specUrl:e,cors:t}=this.state;let n=e;return e!==pw&&(n=t?" \\ \\ cors.redoc.ly/"+new URL(e,window.location.href).href:e),r.createElement(r.Fragment,null,r.createElement(yw,null,r.createElement("a",{href:"."},r.createElement(bw,{src:"https://github.com/Redocly/redoc/raw/master/docs/images/redoc-logo.png",alt:"Redoc logo"})),r.createElement(mw,null,r.createElement(uw,{onUpload:this.handleUploadFile}),r.createElement(Uv,{placeholder:"URL to a spec to try",options:fw,onChange:this.handleChange,value:e===pw?"":e}),r.createElement(gw,{title:"Use CORS proxy"},r.createElement("input",{id:"cors_checkbox",type:"checkbox",onChange:this.toggleCors,checked:t}),r.createElement("label",{htmlFor:"cors_checkbox"},"CORS"))),r.createElement("iframe",{src:"https://ghbtns.com/github-btn.html?user=Redocly&repo=redoc&type=star&count=true&size=large",frameBorder:"0",scrolling:"0",width:"160px",height:"30px"})),r.createElement( $ v,{spec:this.state.spec,specUrl:n,options:{scrollYOffset:"nav",untrustedSpec:!0}}))}}const mw=We.div `
2022-02-04 13:00:46 +03:00
display : flex ;
justify - content : center ;
flex : 1 ;
margin : 0 15 px ;
align - items : center ;
2022-05-10 19:14:02 +03:00
` ,gw=We.div `
2022-02-04 13:00:46 +03:00
margin - left : 10 px ;
white - space : nowrap ;
label {
font - size : 13 px ;
}
@ media screen and ( max - width : 550 px ) {
display : none ;
}
2022-05-10 19:14:02 +03:00
` ,yw=We.nav `
2022-02-04 13:00:46 +03:00
position : sticky ;
top : 0 ;
width : 100 % ;
height : 50 px ;
box - sizing : border - box ;
background : white ;
border - bottom : 1 px solid # cccccc ;
z - index : 10 ;
padding : 5 px ;
display : flex ;
align - items : center ;
font - family : Roboto , sans - serif ;
2022-05-10 19:14:02 +03:00
` ,bw=We.img `
2022-02-04 13:00:46 +03:00
height : 40 px ;
width : 124 px ;
display : inline - block ;
margin - right : 15 px ;
@ media screen and ( max - width : 950 px ) {
display : none ;
}
2022-05-10 19:14:02 +03:00
` ;function vw(e,t,n){const r=""===n?t:t+"="+n,i=new RegExp("([?|&])"+t+"=?.*?(&|#| $ )","i");if(e.match(i))return void 0!==n?e.replace(i," $ 1"+r+" $ 2"):e.replace(i,((e,t,n)=>(n.startsWith("&")&&(n=n.substring(1)),"&"===t?n:t+n)));{if(void 0===n)return e;let t="";-1!==e.indexOf("#")&&(t=e.replace(/.*#/,"#"),e=e.replace(/#.*/,""));const i=-1!==e.indexOf("?")?"&":"?";return e+i+r+t}}(0,i.render)(r.createElement(hw,null),document.getElementById("container"))})()})();