()
| 60959 | .first() |
| 60960 | return i || u |
| 60961 | } |
| 60962 | render() { |
| 60963 | let { |
| 60964 | path: s, |
| 60965 | method: o, |
| 60966 | code: i, |
| 60967 | response: a, |
| 60968 | className: u, |
| 60969 | specPath: _, |
| 60970 | fn: w, |
| 60971 | getComponent: x, |
| 60972 | getConfigs: C, |
| 60973 | specSelectors: j, |
| 60974 | contentType: L, |
| 60975 | controlsAcceptHeader: B, |
| 60976 | oas3Actions: $, |
| 60977 | } = this.props, |
| 60978 | { inferSchema: U, getSampleSchema: V } = w, |
| 60979 | z = j.isOAS3() |
| 60980 | const { showExtensions: Y } = C() |
| 60981 | let Z = Y ? getExtensions(a) : null, |
| 60982 | ee = a.get('headers'), |
| 60983 | ie = a.get('links') |
| 60984 | const ae = x('ResponseExtension'), |
| 60985 | ce = x('headers'), |
| 60986 | le = x('HighlightCode', !0), |
| 60987 | pe = x('modelExample'), |
| 60988 | de = x('Markdown', !0), |
| 60989 | fe = x('operationLink'), |
| 60990 | ye = x('contentType'), |
| 60991 | be = x('ExamplesSelect'), |
| 60992 | _e = x('Example') |
| 60993 | var Se, we |
| 60994 | const xe = this.state.responseContentType || L, |
| 60995 | Pe = a.getIn(['content', xe], (0, ze.Map)({})), |
| 60996 | Te = Pe.get('examples', null) |
| 60997 | if (z) { |
| 60998 | const s = Pe.get('schema') |
| 60999 | ;((Se = s ? U(s.toJS()) : null), |
| 61000 | (we = s ? _.push('content', this.state.responseContentType, 'schema') : _)) |
| 61001 | } else ((Se = a.get('schema')), (we = a.has('schema') ? _.push('schema') : _)) |
| 61002 | let $e, |
| 61003 | qe, |
| 61004 | We = !1, |
| 61005 | He = { includeReadOnly: !0 } |
| 61006 | if (z) |
| 61007 | if (((qe = Pe.get('schema')?.toJS()), ze.Map.isMap(Te) && !Te.isEmpty())) { |
| 61008 | const s = this.getTargetExamplesKey(), |
| 61009 | getMediaTypeExample = (s) => (ze.Map.isMap(s) ? s.get('value') : void 0) |
| 61010 | ;(($e = getMediaTypeExample(Te.get(s, (0, ze.Map)({})))), |
| 61011 | void 0 === $e && ($e = getMediaTypeExample(Te.values().next().value)), |
| 61012 | (We = !0)) |
| 61013 | } else void 0 !== Pe.get('example') && (($e = Pe.get('example')), (We = !0)) |
| 61014 | else { |
| 61015 | ;((qe = Se), (He = { ...He, includeWriteOnly: !0 })) |
| 61016 | const s = a.getIn(['examples', xe]) |
| 61017 | s && (($e = s), (We = !0)) |
| 61018 | } |
nothing calls this directly
no test coverage detected