(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
  [14],
  {
    MZF8: function (e, t, a) {
      'use strict';
      var n = a('ogwx');
      a.d(t, 'a', function () {
        return n['b'];
      });
      a('VCU9');
    },
    RZMt: function (e, t, a) {},
    'YrN+': function (e, t, a) {
      'use strict';
      a.r(t);
      var n = a('q1tI'),
        l = a.n(n),
        r = a('dEAq'),
        c = a('Zxc8'),
        o = a('JjdP'),
        d = l.a.memo(o['default']['badge-basic'].component),
        m = l.a.memo(o['default']['badge-overflow'].component),
        i = l.a.memo(o['default']['badge-change'].component),
        u = l.a.memo(o['default']['badge-offset'].component),
        s = l.a.memo(o['default']['badge-status'].component),
        E = l.a.memo(o['default']['badge-ribbbon'].component),
        f = l.a.memo(o['default']['badge-no-wrapper'].component),
        b = l.a.memo(o['default']['badge-dot'].component),
        p = l.a.memo(o['default']['badge-link'].component),
        h = l.a.memo(o['default']['badge-size'].component),
        g = l.a.memo(o['default']['badge-colorful'].component);
      t['default'] = (e) => (
        l.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)),
            );
        }, []),
        l.a.createElement(
          l.a.Fragment,
          null,
          l.a.createElement(
            l.a.Fragment,
            null,
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h1',
                { id: 'badge-\u5fbd\u6807\u6570' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#badge-\u5fbd\u6807\u6570',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Badge \u5fbd\u6807\u6570',
              ),
              l.a.createElement(
                'p',
                null,
                '\u56fe\u6807\u53f3\u4e0a\u89d2\u7684\u5706\u5f62\u5fbd\u6807\u6570\u5b57\u3002',
              ),
              l.a.createElement(
                'h2',
                { id: '\u4f55\u65f6\u4f7f\u7528' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4f55\u65f6\u4f7f\u7528',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4f55\u65f6\u4f7f\u7528',
              ),
              l.a.createElement(
                'p',
                null,
                '\u4e00\u822c\u51fa\u73b0\u5728\u901a\u77e5\u56fe\u6807\u6216\u5934\u50cf\u7684\u53f3\u4e0a\u89d2\uff0c\u7528\u4e8e\u663e\u793a\u9700\u8981\u5904\u7406\u7684\u6d88\u606f\u6761\u6570\uff0c\u901a\u8fc7\u9192\u76ee\u89c6\u89c9\u5f62\u5f0f\u5438\u5f15\u7528\u6237\u5904\u7406\u3002',
              ),
              l.a.createElement(
                'h2',
                { id: '\u4ee3\u7801\u6f14\u793a' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4ee3\u7801\u6f14\u793a',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4ee3\u7801\u6f14\u793a',
              ),
              l.a.createElement(
                'h3',
                { id: '\u5e26\u5fbd\u6807\u7684\u5934\u50cf' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u5e26\u5fbd\u6807\u7684\u5934\u50cf',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u5e26\u5fbd\u6807\u7684\u5934\u50cf',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['badge-basic'].previewerProps,
              l.a.createElement(d, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u5c01\u9876\u6570\u5b57' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u5c01\u9876\u6570\u5b57',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u5c01\u9876\u6570\u5b57',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['badge-overflow'].previewerProps,
              l.a.createElement(m, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u52a8\u6001' },
                l.a.createElement(
                  r['AnchorLink'],
                  { to: '#\u52a8\u6001', 'aria-hidden': 'true', tabIndex: -1 },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u52a8\u6001',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['badge-change'].previewerProps,
              l.a.createElement(i, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u81ea\u5b9a\u4e49\u4f4d\u7f6e\u504f\u79fb' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u81ea\u5b9a\u4e49\u4f4d\u7f6e\u504f\u79fb',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u81ea\u5b9a\u4e49\u4f4d\u7f6e\u504f\u79fb',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['badge-offset'].previewerProps,
              l.a.createElement(u, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u72b6\u6001\u70b9' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u72b6\u6001\u70b9',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u72b6\u6001\u70b9',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['badge-status'].previewerProps,
              l.a.createElement(s, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u7f0e\u5e26' },
                l.a.createElement(
                  r['AnchorLink'],
                  { to: '#\u7f0e\u5e26', 'aria-hidden': 'true', tabIndex: -1 },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u7f0e\u5e26',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['badge-ribbbon'].previewerProps,
              l.a.createElement(E, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u72ec\u7acb\u4f7f\u7528' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u72ec\u7acb\u4f7f\u7528',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u72ec\u7acb\u4f7f\u7528',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['badge-no-wrapper'].previewerProps,
              l.a.createElement(f, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u8ba8\u5acc\u7684\u5c0f\u7ea2\u70b9' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u8ba8\u5acc\u7684\u5c0f\u7ea2\u70b9',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u8ba8\u5acc\u7684\u5c0f\u7ea2\u70b9',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['badge-dot'].previewerProps,
              l.a.createElement(b, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u53ef\u70b9\u51fb' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u53ef\u70b9\u51fb',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u53ef\u70b9\u51fb',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['badge-link'].previewerProps,
              l.a.createElement(p, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u5927\u5c0f' },
                l.a.createElement(
                  r['AnchorLink'],
                  { to: '#\u5927\u5c0f', 'aria-hidden': 'true', tabIndex: -1 },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u5927\u5c0f',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['badge-size'].previewerProps,
              l.a.createElement(h, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u591a\u5f69\u5fbd\u6807' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u591a\u5f69\u5fbd\u6807',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u591a\u5f69\u5fbd\u6807',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['badge-colorful'].previewerProps,
              l.a.createElement(g, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h2',
                { id: 'api' },
                l.a.createElement(
                  r['AnchorLink'],
                  { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'API',
              ),
              l.a.createElement(
                'h3',
                { id: 'badge' },
                l.a.createElement(
                  r['AnchorLink'],
                  { to: '#badge', 'aria-hidden': 'true', tabIndex: -1 },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Badge',
              ),
              l.a.createElement(
                'table',
                null,
                l.a.createElement(
                  'thead',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('th', null, '\u53c2\u6570'),
                    l.a.createElement('th', null, '\u8bf4\u660e'),
                    l.a.createElement('th', null, '\u7c7b\u578b'),
                    l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
                    l.a.createElement('th', null, '\u7248\u672c'),
                  ),
                ),
                l.a.createElement(
                  'tbody',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'color'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u81ea\u5b9a\u4e49\u5c0f\u5706\u70b9\u7684\u989c\u8272',
                    ),
                    l.a.createElement('td', null, 'string'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'count'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u5c55\u793a\u7684\u6570\u5b57\uff0c\u5927\u4e8e overflowCount \u65f6\u663e\u793a\u4e3a ',
                      l.a.createElement(
                        'code',
                        null,
                        '$',
                        '{',
                        'overflowCount',
                        '}',
                        '+',
                      ),
                      '\uff0c\u4e3a 0 \u65f6\u9690\u85cf',
                    ),
                    l.a.createElement('td', null, 'ReactNode'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'dot'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u4e0d\u5c55\u793a\u6570\u5b57\uff0c\u53ea\u6709\u4e00\u4e2a\u5c0f\u7ea2\u70b9',
                    ),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'false'),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'offset'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u8bbe\u7f6e\u72b6\u6001\u70b9\u7684\u4f4d\u7f6e\u504f\u79fb',
                    ),
                    l.a.createElement('td', null, '[number, number]'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'overflowCount'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u5c55\u793a\u5c01\u9876\u7684\u6570\u5b57\u503c',
                    ),
                    l.a.createElement('td', null, 'number'),
                    l.a.createElement('td', null, '99'),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'showZero'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u5f53\u6570\u503c\u4e3a 0 \u65f6\uff0c\u662f\u5426\u5c55\u793a Badge',
                    ),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'false'),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'size'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u5728\u8bbe\u7f6e\u4e86 ',
                      l.a.createElement('code', null, 'count'),
                      ' \u7684\u524d\u63d0\u4e0b\u6709\u6548\uff0c\u8bbe\u7f6e\u5c0f\u5706\u70b9\u7684\u5927\u5c0f',
                    ),
                    l.a.createElement(
                      'td',
                      null,
                      l.a.createElement('code', null, 'default'),
                      ' | ',
                      l.a.createElement('code', null, 'small'),
                    ),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '4.6.0'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'status'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u8bbe\u7f6e Badge \u4e3a\u72b6\u6001\u70b9',
                    ),
                    l.a.createElement(
                      'td',
                      null,
                      l.a.createElement('code', null, 'success'),
                      ' | ',
                      l.a.createElement('code', null, 'processing'),
                      ' | ',
                      l.a.createElement('code', null, 'default'),
                      ' | ',
                      l.a.createElement('code', null, 'error'),
                      ' | ',
                      l.a.createElement('code', null, 'warning'),
                    ),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'text'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u5728\u8bbe\u7f6e\u4e86 ',
                      l.a.createElement('code', null, 'status'),
                      ' \u7684\u524d\u63d0\u4e0b\u6709\u6548\uff0c\u8bbe\u7f6e\u72b6\u6001\u70b9\u7684\u6587\u672c',
                    ),
                    l.a.createElement('td', null, 'ReactNode'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'title'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u8bbe\u7f6e\u9f20\u6807\u653e\u5728\u72b6\u6001\u70b9\u4e0a\u65f6\u663e\u793a\u7684\u6587\u5b57',
                    ),
                    l.a.createElement('td', null, 'string'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null),
                  ),
                ),
              ),
              l.a.createElement(
                'h3',
                { id: 'badgeribbon-450' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#badgeribbon-450',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Badge.Ribbon (4.5.0+)',
              ),
              l.a.createElement(
                'table',
                null,
                l.a.createElement(
                  'thead',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('th', null, '\u53c2\u6570'),
                    l.a.createElement('th', null, '\u8bf4\u660e'),
                    l.a.createElement('th', null, '\u7c7b\u578b'),
                    l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
                    l.a.createElement('th', null, '\u7248\u672c'),
                  ),
                ),
                l.a.createElement(
                  'tbody',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'color'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u81ea\u5b9a\u4e49\u7f0e\u5e26\u7684\u989c\u8272',
                    ),
                    l.a.createElement('td', null, 'string'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'placement'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u7f0e\u5e26\u7684\u4f4d\u7f6e\uff0c',
                      l.a.createElement('code', null, 'start'),
                      ' \u548c ',
                      l.a.createElement('code', null, 'end'),
                      ' \u968f\u6587\u5b57\u65b9\u5411\uff08RTL \u6216 LTR\uff09\u53d8\u52a8',
                    ),
                    l.a.createElement(
                      'td',
                      null,
                      l.a.createElement('code', null, 'start'),
                      ' | ',
                      l.a.createElement('code', null, 'end'),
                    ),
                    l.a.createElement(
                      'td',
                      null,
                      l.a.createElement('code', null, 'end'),
                    ),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'text'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u7f0e\u5e26\u4e2d\u586b\u5165\u7684\u5185\u5bb9',
                    ),
                    l.a.createElement('td', null, 'ReactNode'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null),
                  ),
                ),
              ),
              l.a.createElement('style', {
                dangerouslySetInnerHTML: {
                  __html:
                    '\n.ant-badge:not(.ant-badge-not-a-wrapper) {\n  margin-right: 20px;\n}\n.ant-badge.ant-badge-rtl:not(.ant-badge-not-a-wrapper) {\n  margin-right: 0;\n  margin-left: 20px;\n}\n',
                },
              }),
            ),
          ),
        )
      );
    },
    Zxc8: function (e, t, a) {
      'use strict';
      a.r(t);
      var n = a('q1tI'),
        l = a.n(n),
        r = a('k3GJ'),
        c = a('MZF8'),
        o = a('dEAq'),
        d = a('H1Ra');
      a('RZMt');
      function m(e, t) {
        return f(e) || E(e, t) || u(e, t) || i();
      }
      function i() {
        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 u(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, n = new Array(t); a < t; a++) n[a] = e[a];
        return n;
      }
      function E(e, t) {
        var a =
          null == e
            ? null
            : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
              e['@@iterator'];
        if (null != a) {
          var n,
            l,
            r = [],
            c = !0,
            o = !1;
          try {
            for (a = a.call(e); !(c = (n = a.next()).done); c = !0)
              if ((r.push(n.value), t && r.length === t)) break;
          } catch (d) {
            (o = !0), (l = d);
          } finally {
            try {
              c || null == a['return'] || a['return']();
            } finally {
              if (o) throw l;
            }
          }
          return r;
        }
      }
      function f(e) {
        if (Array.isArray(e)) return e;
      }
      function b(e, t) {
        var a,
          n =
            null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
        return n || (n = t.tsx ? 'tsx' : 'jsx'), n;
      }
      var p = function (e) {
        var t,
          a,
          i,
          u = Object(n['useRef'])(),
          s = Object(n['useContext'])(o['context']),
          E = s.locale,
          f = Object(o['useLocaleProps'])(E, e),
          p = Object(o['useDemoUrl'])(f.identifier),
          h = f.demoUrl || p,
          g =
            (null === c['a'] || void 0 === c['a']
              ? void 0
              : c['a'].location.hash) === '#'.concat(f.identifier),
          v = 1 === Object.keys(f.sources).length,
          k = Object(o['useCodeSandbox'])(
            (
              null === (t = f.hideActions) || void 0 === t
                ? void 0
                : t.includes('CSB')
            )
              ? null
              : f,
          ),
          w = Object(o['useRiddle'])(
            (
              null === (a = f.hideActions) || void 0 === a
                ? void 0
                : a.includes('RIDDLE')
            )
              ? null
              : f,
          ),
          N = Object(o['useMotions'])(f.motions || [], u.current),
          _ = m(N, 2),
          y = _[0],
          x = _[1],
          A = Object(o['useCopy'])(),
          I = m(A, 2),
          L = I[0],
          j = I[1],
          C = Object(n['useState'])('_'),
          O = m(C, 2),
          S = O[0],
          P = O[1],
          R = Object(n['useState'])(b(S, f.sources[S])),
          M = m(R, 2),
          T = M[0],
          B = M[1],
          Z = Object(n['useState'])(Boolean(f.defaultShowCode)),
          U = m(Z, 2),
          J = U[0],
          $ = U[1],
          q = Object(n['useState'])(Math.random()),
          F = m(q, 2),
          z = F[0],
          D = F[1],
          H = f.sources[S][T] || f.sources[S].content,
          G = Object(o['useTSPlaygroundUrl'])(E, H),
          X = Object(n['useRef'])(),
          K = Object(o['usePrefersColor'])(),
          V = m(K, 1),
          Y = V[0];
        function Q(e) {
          P(e), B(b(e, f.sources[e]));
        }
        return (
          Object(n['useEffect'])(
            function () {
              D(Math.random());
            },
            [Y],
          ),
          l.a.createElement(
            'div',
            {
              style: f.style,
              className: [
                f.className,
                '__dumi-default-previewer',
                g ? '__dumi-default-previewer-target' : '',
              ]
                .filter(Boolean)
                .join(' '),
              id: f.identifier,
              'data-debug': f.debug || void 0,
              'data-iframe': f.iframe || void 0,
            },
            f.iframe &&
              l.a.createElement('div', {
                className: '__dumi-default-previewer-browser-nav',
              }),
            l.a.createElement(
              'div',
              {
                ref: u,
                className: '__dumi-default-previewer-demo',
                style: {
                  transform: f.transform ? 'translate(0, 0)' : void 0,
                  padding:
                    f.compact || (f.iframe && !1 !== f.compact) ? '0' : void 0,
                  background: f.background,
                },
              },
              f.iframe
                ? l.a.createElement('iframe', {
                    title: 'dumi-previewer',
                    style: {
                      height: String(f.iframe).replace(/(\d)$/, '$1px'),
                    },
                    key: z,
                    src: h,
                    ref: X,
                  })
                : f.children,
            ),
            l.a.createElement(
              'div',
              {
                className: '__dumi-default-previewer-desc',
                'data-title': f.title,
              },
              f.title &&
                l.a.createElement(
                  o['AnchorLink'],
                  { to: '#'.concat(f.identifier) },
                  f.title,
                ),
              f.description &&
                l.a.createElement('div', {
                  dangerouslySetInnerHTML: { __html: f.description },
                }),
            ),
            l.a.createElement(
              'div',
              { className: '__dumi-default-previewer-actions' },
              k &&
                l.a.createElement('button', {
                  title: 'Open demo on CodeSandbox.io',
                  className: '__dumi-default-icon',
                  role: 'codesandbox',
                  onClick: k,
                }),
              w &&
                l.a.createElement('button', {
                  title: 'Open demo on Riddle',
                  className: '__dumi-default-icon',
                  role: 'riddle',
                  onClick: w,
                }),
              f.motions &&
                l.a.createElement('button', {
                  title: 'Execute motions',
                  className: '__dumi-default-icon',
                  role: 'motions',
                  disabled: x,
                  onClick: function () {
                    return y();
                  },
                }),
              f.iframe &&
                l.a.createElement('button', {
                  title: 'Reload demo iframe page',
                  className: '__dumi-default-icon',
                  role: 'refresh',
                  onClick: function () {
                    return D(Math.random());
                  },
                }),
              !(null === (i = f.hideActions) || void 0 === i
                ? void 0
                : i.includes('EXTERNAL')) &&
                l.a.createElement(
                  o['Link'],
                  { target: '_blank', to: h },
                  l.a.createElement('button', {
                    title: 'Open demo in new tab',
                    className: '__dumi-default-icon',
                    role: 'open-demo',
                    type: 'button',
                  }),
                ),
              l.a.createElement('span', null),
              l.a.createElement('button', {
                title: 'Copy source code',
                className: '__dumi-default-icon',
                role: 'copy',
                'data-status': j,
                onClick: function () {
                  return L(H);
                },
              }),
              'tsx' === T &&
                J &&
                l.a.createElement(
                  o['Link'],
                  { target: '_blank', to: G },
                  l.a.createElement('button', {
                    title: 'Get JSX via TypeScript Playground',
                    className: '__dumi-default-icon',
                    role: 'change-tsx',
                    type: 'button',
                  }),
                ),
              l.a.createElement('button', {
                title: 'Toggle source code panel',
                className: '__dumi-default-icon'.concat(
                  J ? ' __dumi-default-btn-expand' : '',
                ),
                role: 'source',
                type: 'button',
                onClick: function () {
                  return $(!J);
                },
              }),
            ),
            J &&
              l.a.createElement(
                'div',
                { className: '__dumi-default-previewer-source-wrapper' },
                !v &&
                  l.a.createElement(
                    r['b'],
                    {
                      className: '__dumi-default-previewer-source-tab',
                      prefixCls: '__dumi-default-tabs',
                      moreIcon: '\xb7\xb7\xb7',
                      defaultActiveKey: S,
                      onChange: Q,
                    },
                    Object.keys(f.sources).map(function (e) {
                      return l.a.createElement(r['a'], {
                        tab:
                          '_' === e ? 'index.'.concat(b(e, f.sources[e])) : e,
                        key: e,
                      });
                    }),
                  ),
                l.a.createElement(
                  'div',
                  { className: '__dumi-default-previewer-source' },
                  l.a.createElement(d['a'], { code: H, lang: T, showCopy: !1 }),
                ),
              ),
          )
        );
      };
      t['default'] = p;
    },
  },
]);
