(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
  [22],
  {
    '82cC': function (e, t, a) {
      'use strict';
      a.r(t);
      var l = a('q1tI'),
        n = a.n(l),
        r = a('dEAq'),
        c = a('Zxc8'),
        o = a('JjdP'),
        m = n.a.memo(o['default']['collapse-panel'].component),
        d = n.a.memo(o['default']['collapse-accordion'].component),
        u = n.a.memo(o['default']['collapse-nesting'].component),
        i = n.a.memo(o['default']['collapse-simple'].component),
        s = n.a.memo(o['default']['collapse-custom'].component),
        E = n.a.memo(o['default']['collapse-arrow'].component),
        p = n.a.memo(o['default']['collapse-extra'].component),
        f = n.a.memo(o['default']['collapse-ghost'].component),
        h = n.a.memo(o['default']['collapse-collapsible'].component);
      t['default'] = (e) => (
        n.a.useEffect(() => {
          var t;
          null !== e &&
            void 0 !== e &&
            null !== (t = e.location) &&
            void 0 !== t &&
            t.hash &&
            r['AnchorLink'].scrollToAnchor(
              decodeURIComponent(e.location.hash.slice(1)),
            );
        }, []),
        n.a.createElement(
          n.a.Fragment,
          null,
          n.a.createElement(
            n.a.Fragment,
            null,
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h1',
                { id: 'collapse-\u6298\u53e0\u9762\u677f' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#collapse-\u6298\u53e0\u9762\u677f',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Collapse \u6298\u53e0\u9762\u677f',
              ),
              n.a.createElement(
                'p',
                null,
                '\u53ef\u4ee5\u6298\u53e0/\u5c55\u5f00\u7684\u5185\u5bb9\u533a\u57df\u3002',
              ),
              n.a.createElement(
                'h2',
                { id: '\u4f55\u65f6\u4f7f\u7528' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4f55\u65f6\u4f7f\u7528',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4f55\u65f6\u4f7f\u7528',
              ),
              n.a.createElement(
                'ul',
                null,
                n.a.createElement(
                  'li',
                  null,
                  '\u5bf9\u590d\u6742\u533a\u57df\u8fdb\u884c\u5206\u7ec4\u548c\u9690\u85cf\uff0c\u4fdd\u6301\u9875\u9762\u7684\u6574\u6d01\u3002',
                ),
                n.a.createElement(
                  'li',
                  null,
                  n.a.createElement('code', null, '\u624b\u98ce\u7434'),
                  ' \u662f\u4e00\u79cd\u7279\u6b8a\u7684\u6298\u53e0\u9762\u677f\uff0c\u53ea\u5141\u8bb8\u5355\u4e2a\u5185\u5bb9\u533a\u57df\u5c55\u5f00\u3002',
                ),
              ),
              n.a.createElement(
                'h2',
                { id: '\u4ee3\u7801\u6f14\u793a' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4ee3\u7801\u6f14\u793a',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4ee3\u7801\u6f14\u793a',
              ),
              n.a.createElement(
                'h3',
                { id: '\u6298\u53e0\u9762\u677f' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u6298\u53e0\u9762\u677f',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u6298\u53e0\u9762\u677f',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['collapse-panel'].previewerProps,
              n.a.createElement(m, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u624b\u98ce\u7434' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u624b\u98ce\u7434',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u624b\u98ce\u7434',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['collapse-accordion'].previewerProps,
              n.a.createElement(d, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u9762\u677f\u5d4c\u5957' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u9762\u677f\u5d4c\u5957',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u9762\u677f\u5d4c\u5957',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['collapse-nesting'].previewerProps,
              n.a.createElement(u, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u7b80\u6d01\u98ce\u683c' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u7b80\u6d01\u98ce\u683c',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u7b80\u6d01\u98ce\u683c',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['collapse-simple'].previewerProps,
              n.a.createElement(i, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u81ea\u5b9a\u4e49\u9762\u677f' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u81ea\u5b9a\u4e49\u9762\u677f',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u81ea\u5b9a\u4e49\u9762\u677f',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['collapse-custom'].previewerProps,
              n.a.createElement(s, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u9690\u85cf\u7bad\u5934' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u9690\u85cf\u7bad\u5934',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u9690\u85cf\u7bad\u5934',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['collapse-arrow'].previewerProps,
              n.a.createElement(E, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u989d\u5916\u8282\u70b9' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u989d\u5916\u8282\u70b9',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u989d\u5916\u8282\u70b9',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['collapse-extra'].previewerProps,
              n.a.createElement(p, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u5e7d\u7075\u6298\u53e0\u9762\u677f' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u5e7d\u7075\u6298\u53e0\u9762\u677f',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u5e7d\u7075\u6298\u53e0\u9762\u677f',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['collapse-ghost'].previewerProps,
              n.a.createElement(f, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u53ef\u6298\u53e0\u89e6\u53d1\u533a\u57df' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u53ef\u6298\u53e0\u89e6\u53d1\u533a\u57df',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u53ef\u6298\u53e0\u89e6\u53d1\u533a\u57df',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['collapse-collapsible'].previewerProps,
              n.a.createElement(h, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h2',
                { id: 'api' },
                n.a.createElement(
                  r['AnchorLink'],
                  { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'API',
              ),
              n.a.createElement(
                'h3',
                { id: 'collapse' },
                n.a.createElement(
                  r['AnchorLink'],
                  { to: '#collapse', 'aria-hidden': 'true', tabIndex: -1 },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Collapse',
              ),
              n.a.createElement(
                'table',
                null,
                n.a.createElement(
                  'thead',
                  null,
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('th', null, '\u53c2\u6570'),
                    n.a.createElement('th', null, '\u8bf4\u660e'),
                    n.a.createElement('th', null, '\u7c7b\u578b'),
                    n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
                    n.a.createElement('th', null, '\u7248\u672c'),
                  ),
                ),
                n.a.createElement(
                  'tbody',
                  null,
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'accordion'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u624b\u98ce\u7434\u6a21\u5f0f',
                    ),
                    n.a.createElement('td', null, 'boolean'),
                    n.a.createElement('td', null, 'false'),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'activeKey'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u5f53\u524d\u6fc0\u6d3b tab \u9762\u677f\u7684 key',
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      'string[] | string ',
                      n.a.createElement('br', null),
                      ' number[] | number',
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      '\u9ed8\u8ba4\u65e0\uff0caccordion \u6a21\u5f0f\u4e0b\u9ed8\u8ba4\u7b2c\u4e00\u4e2a\u5143\u7d20',
                    ),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'bordered'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u5e26\u8fb9\u6846\u98ce\u683c\u7684\u6298\u53e0\u9762\u677f',
                    ),
                    n.a.createElement('td', null, 'boolean'),
                    n.a.createElement('td', null, 'true'),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'collapsible'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u6240\u6709\u5b50\u9762\u677f\u662f\u5426\u53ef\u6298\u53e0\u6216\u6307\u5b9a\u53ef\u6298\u53e0\u89e6\u53d1\u533a\u57df',
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      n.a.createElement('code', null, 'header'),
                      ' | ',
                      n.a.createElement('code', null, 'disabled'),
                    ),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null, '4.9.0'),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'defaultActiveKey'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u521d\u59cb\u5316\u9009\u4e2d\u9762\u677f\u7684 key',
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      'string[] | string',
                      n.a.createElement('br', null),
                      ' number[] | number',
                    ),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'destroyInactivePanel'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u9500\u6bc1\u6298\u53e0\u9690\u85cf\u7684\u9762\u677f',
                    ),
                    n.a.createElement('td', null, 'boolean'),
                    n.a.createElement('td', null, 'false'),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'expandIcon'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u81ea\u5b9a\u4e49\u5207\u6362\u56fe\u6807',
                    ),
                    n.a.createElement('td', null, '(panelProps) => ReactNode'),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'expandIconPosition'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u8bbe\u7f6e\u56fe\u6807\u4f4d\u7f6e',
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      n.a.createElement('code', null, 'left'),
                      ' | ',
                      n.a.createElement('code', null, 'right'),
                    ),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'ghost'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u4f7f\u6298\u53e0\u9762\u677f\u900f\u660e\u4e14\u65e0\u8fb9\u6846',
                    ),
                    n.a.createElement('td', null, 'boolean'),
                    n.a.createElement('td', null, 'false'),
                    n.a.createElement('td', null, '4.4.0'),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'onChange'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u5207\u6362\u9762\u677f\u7684\u56de\u8c03',
                    ),
                    n.a.createElement('td', null, 'function'),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                  ),
                ),
              ),
              n.a.createElement(
                'h3',
                { id: 'collapsepanel' },
                n.a.createElement(
                  r['AnchorLink'],
                  { to: '#collapsepanel', 'aria-hidden': 'true', tabIndex: -1 },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Collapse.Panel',
              ),
              n.a.createElement(
                'table',
                null,
                n.a.createElement(
                  'thead',
                  null,
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('th', null, '\u53c2\u6570'),
                    n.a.createElement('th', null, '\u8bf4\u660e'),
                    n.a.createElement('th', null, '\u7c7b\u578b'),
                    n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
                    n.a.createElement('th', null, '\u7248\u672c'),
                  ),
                ),
                n.a.createElement(
                  'tbody',
                  null,
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'collapsible'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u662f\u5426\u53ef\u6298\u53e0\u6216\u6307\u5b9a\u53ef\u6298\u53e0\u89e6\u53d1\u533a\u57df',
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      n.a.createElement('code', null, 'header'),
                      ' | ',
                      n.a.createElement('code', null, 'disabled'),
                    ),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null, '4.9.0'),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'extra'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u81ea\u5b9a\u4e49\u6e32\u67d3\u6bcf\u4e2a\u9762\u677f\u53f3\u4e0a\u89d2\u7684\u5185\u5bb9',
                    ),
                    n.a.createElement('td', null, 'ReactNode'),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'forceRender'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u88ab\u9690\u85cf\u65f6\u662f\u5426\u6e32\u67d3 DOM \u7ed3\u6784',
                    ),
                    n.a.createElement('td', null, 'boolean'),
                    n.a.createElement('td', null, 'false'),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'header'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u9762\u677f\u5934\u5185\u5bb9',
                    ),
                    n.a.createElement('td', null, 'ReactNode'),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'key'),
                    n.a.createElement('td', null, '\u5bf9\u5e94 activeKey'),
                    n.a.createElement('td', null, 'string | number'),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'showArrow'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u662f\u5426\u5c55\u793a\u5f53\u524d\u9762\u677f\u4e0a\u7684\u7bad\u5934',
                    ),
                    n.a.createElement('td', null, 'boolean'),
                    n.a.createElement('td', null, 'true'),
                    n.a.createElement('td', null),
                  ),
                ),
              ),
            ),
          ),
        )
      );
    },
    MZF8: function (e, t, a) {
      'use strict';
      var l = a('ogwx');
      a.d(t, 'a', function () {
        return l['b'];
      });
      a('VCU9');
    },
    RZMt: function (e, t, a) {},
    Zxc8: function (e, t, a) {
      'use strict';
      a.r(t);
      var l = a('q1tI'),
        n = a.n(l),
        r = a('k3GJ'),
        c = a('MZF8'),
        o = a('dEAq'),
        m = a('H1Ra');
      a('RZMt');
      function d(e, t) {
        return p(e) || E(e, t) || i(e, t) || u();
      }
      function u() {
        throw new TypeError(
          'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
        );
      }
      function i(e, t) {
        if (e) {
          if ('string' === typeof e) return s(e, t);
          var a = Object.prototype.toString.call(e).slice(8, -1);
          return (
            'Object' === a && e.constructor && (a = e.constructor.name),
            'Map' === a || 'Set' === a
              ? Array.from(e)
              : 'Arguments' === a ||
                /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
              ? s(e, t)
              : void 0
          );
        }
      }
      function s(e, t) {
        (null == t || t > e.length) && (t = e.length);
        for (var a = 0, l = new Array(t); a < t; a++) l[a] = e[a];
        return l;
      }
      function E(e, t) {
        var a =
          null == e
            ? null
            : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
              e['@@iterator'];
        if (null != a) {
          var l,
            n,
            r = [],
            c = !0,
            o = !1;
          try {
            for (a = a.call(e); !(c = (l = a.next()).done); c = !0)
              if ((r.push(l.value), t && r.length === t)) break;
          } catch (m) {
            (o = !0), (n = m);
          } finally {
            try {
              c || null == a['return'] || a['return']();
            } finally {
              if (o) throw n;
            }
          }
          return r;
        }
      }
      function p(e) {
        if (Array.isArray(e)) return e;
      }
      function f(e, t) {
        var a,
          l =
            null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
        return l || (l = t.tsx ? 'tsx' : 'jsx'), l;
      }
      var h = function (e) {
        var t,
          a,
          u,
          i = Object(l['useRef'])(),
          s = Object(l['useContext'])(o['context']),
          E = s.locale,
          p = Object(o['useLocaleProps'])(E, e),
          h = Object(o['useDemoUrl'])(p.identifier),
          b = p.demoUrl || h,
          v =
            (null === c['a'] || void 0 === c['a']
              ? void 0
              : c['a'].location.hash) === '#'.concat(p.identifier),
          k = 1 === Object.keys(p.sources).length,
          w = Object(o['useCodeSandbox'])(
            (
              null === (t = p.hideActions) || void 0 === t
                ? void 0
                : t.includes('CSB')
            )
              ? null
              : p,
          ),
          y = Object(o['useRiddle'])(
            (
              null === (a = p.hideActions) || void 0 === a
                ? void 0
                : a.includes('RIDDLE')
            )
              ? null
              : p,
          ),
          N = Object(o['useMotions'])(p.motions || [], i.current),
          _ = d(N, 2),
          g = _[0],
          x = _[1],
          A = Object(o['useCopy'])(),
          I = d(A, 2),
          C = I[0],
          j = I[1],
          O = Object(l['useState'])('_'),
          L = d(O, 2),
          P = L[0],
          S = L[1],
          R = Object(l['useState'])(f(P, p.sources[P])),
          M = d(R, 2),
          T = M[0],
          U = M[1],
          Z = Object(l['useState'])(Boolean(p.defaultShowCode)),
          J = d(Z, 2),
          q = J[0],
          D = J[1],
          F = Object(l['useState'])(Math.random()),
          K = d(F, 2),
          $ = K[0],
          B = K[1],
          G = p.sources[P][T] || p.sources[P].content,
          H = Object(o['useTSPlaygroundUrl'])(E, G),
          X = Object(l['useRef'])(),
          V = Object(o['usePrefersColor'])(),
          z = d(V, 1),
          Q = z[0];
        function W(e) {
          S(e), U(f(e, p.sources[e]));
        }
        return (
          Object(l['useEffect'])(
            function () {
              B(Math.random());
            },
            [Q],
          ),
          n.a.createElement(
            'div',
            {
              style: p.style,
              className: [
                p.className,
                '__dumi-default-previewer',
                v ? '__dumi-default-previewer-target' : '',
              ]
                .filter(Boolean)
                .join(' '),
              id: p.identifier,
              'data-debug': p.debug || void 0,
              'data-iframe': p.iframe || void 0,
            },
            p.iframe &&
              n.a.createElement('div', {
                className: '__dumi-default-previewer-browser-nav',
              }),
            n.a.createElement(
              'div',
              {
                ref: i,
                className: '__dumi-default-previewer-demo',
                style: {
                  transform: p.transform ? 'translate(0, 0)' : void 0,
                  padding:
                    p.compact || (p.iframe && !1 !== p.compact) ? '0' : void 0,
                  background: p.background,
                },
              },
              p.iframe
                ? n.a.createElement('iframe', {
                    title: 'dumi-previewer',
                    style: {
                      height: String(p.iframe).replace(/(\d)$/, '$1px'),
                    },
                    key: $,
                    src: b,
                    ref: X,
                  })
                : p.children,
            ),
            n.a.createElement(
              'div',
              {
                className: '__dumi-default-previewer-desc',
                'data-title': p.title,
              },
              p.title &&
                n.a.createElement(
                  o['AnchorLink'],
                  { to: '#'.concat(p.identifier) },
                  p.title,
                ),
              p.description &&
                n.a.createElement('div', {
                  dangerouslySetInnerHTML: { __html: p.description },
                }),
            ),
            n.a.createElement(
              'div',
              { className: '__dumi-default-previewer-actions' },
              w &&
                n.a.createElement('button', {
                  title: 'Open demo on CodeSandbox.io',
                  className: '__dumi-default-icon',
                  role: 'codesandbox',
                  onClick: w,
                }),
              y &&
                n.a.createElement('button', {
                  title: 'Open demo on Riddle',
                  className: '__dumi-default-icon',
                  role: 'riddle',
                  onClick: y,
                }),
              p.motions &&
                n.a.createElement('button', {
                  title: 'Execute motions',
                  className: '__dumi-default-icon',
                  role: 'motions',
                  disabled: x,
                  onClick: function () {
                    return g();
                  },
                }),
              p.iframe &&
                n.a.createElement('button', {
                  title: 'Reload demo iframe page',
                  className: '__dumi-default-icon',
                  role: 'refresh',
                  onClick: function () {
                    return B(Math.random());
                  },
                }),
              !(null === (u = p.hideActions) || void 0 === u
                ? void 0
                : u.includes('EXTERNAL')) &&
                n.a.createElement(
                  o['Link'],
                  { target: '_blank', to: b },
                  n.a.createElement('button', {
                    title: 'Open demo in new tab',
                    className: '__dumi-default-icon',
                    role: 'open-demo',
                    type: 'button',
                  }),
                ),
              n.a.createElement('span', null),
              n.a.createElement('button', {
                title: 'Copy source code',
                className: '__dumi-default-icon',
                role: 'copy',
                'data-status': j,
                onClick: function () {
                  return C(G);
                },
              }),
              'tsx' === T &&
                q &&
                n.a.createElement(
                  o['Link'],
                  { target: '_blank', to: H },
                  n.a.createElement('button', {
                    title: 'Get JSX via TypeScript Playground',
                    className: '__dumi-default-icon',
                    role: 'change-tsx',
                    type: 'button',
                  }),
                ),
              n.a.createElement('button', {
                title: 'Toggle source code panel',
                className: '__dumi-default-icon'.concat(
                  q ? ' __dumi-default-btn-expand' : '',
                ),
                role: 'source',
                type: 'button',
                onClick: function () {
                  return D(!q);
                },
              }),
            ),
            q &&
              n.a.createElement(
                'div',
                { className: '__dumi-default-previewer-source-wrapper' },
                !k &&
                  n.a.createElement(
                    r['b'],
                    {
                      className: '__dumi-default-previewer-source-tab',
                      prefixCls: '__dumi-default-tabs',
                      moreIcon: '\xb7\xb7\xb7',
                      defaultActiveKey: P,
                      onChange: W,
                    },
                    Object.keys(p.sources).map(function (e) {
                      return n.a.createElement(r['a'], {
                        tab:
                          '_' === e ? 'index.'.concat(f(e, p.sources[e])) : e,
                        key: e,
                      });
                    }),
                  ),
                n.a.createElement(
                  'div',
                  { className: '__dumi-default-previewer-source' },
                  n.a.createElement(m['a'], { code: G, lang: T, showCopy: !1 }),
                ),
              ),
          )
        );
      };
      t['default'] = h;
    },
  },
]);
