| 62413 | let { layoutActions: i } = this.props |
| 62414 | i.show(s, o) |
| 62415 | } |
| 62416 | render() { |
| 62417 | let { |
| 62418 | specSelectors: s, |
| 62419 | layoutSelectors: o, |
| 62420 | layoutActions: i, |
| 62421 | getComponent: a, |
| 62422 | } = this.props, |
| 62423 | u = s.taggedOperations() |
| 62424 | const _ = a('Collapse') |
| 62425 | return Re.createElement( |
| 62426 | 'div', |
| 62427 | null, |
| 62428 | Re.createElement('h4', { className: 'overview-title' }, 'Overview'), |
| 62429 | u |
| 62430 | .map((s, a) => { |
| 62431 | let u = s.get('operations'), |
| 62432 | w = ['overview-tags', a], |
| 62433 | x = o.isShown(w, !0) |
| 62434 | return Re.createElement( |
| 62435 | 'div', |
| 62436 | { key: 'overview-' + a }, |
| 62437 | Re.createElement( |
| 62438 | 'h4', |
| 62439 | { onClick: () => i.show(w, !x), className: 'link overview-tag' }, |
| 62440 | ' ', |
| 62441 | x ? '-' : '+', |
| 62442 | a |
| 62443 | ), |
| 62444 | Re.createElement( |
| 62445 | _, |
| 62446 | { isOpened: x, animated: !0 }, |
| 62447 | u |
| 62448 | .map((s) => { |
| 62449 | let { path: a, method: u, id: _ } = s.toObject(), |
| 62450 | w = 'operations', |
| 62451 | x = _, |
| 62452 | C = o.isShown([w, x]) |
| 62453 | return Re.createElement(OperationLink, { |
| 62454 | key: _, |
| 62455 | path: a, |
| 62456 | method: u, |
| 62457 | id: a + '-' + u, |
| 62458 | shown: C, |
| 62459 | showOpId: x, |
| 62460 | showOpIdPrefix: w, |
| 62461 | href: `#operation-${x}`, |
| 62462 | onClick: i.show, |
| 62463 | }) |
| 62464 | }) |
| 62465 | .toArray() |
| 62466 | ) |
| 62467 | ) |
| 62468 | }) |
| 62469 | .toArray(), |
| 62470 | u.size < 1 && Re.createElement('h3', null, ' No operations defined in spec! ') |
| 62471 | ) |
| 62472 | } |