(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
  [49],
  {
    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) {},
    Zrbh: 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'),
        d = n.a.memo(o['default']['radio-basic'].component),
        i = n.a.memo(o['default']['radio-disabled'].component),
        m = n.a.memo(o['default']['radio-radiogroup'].component),
        u = n.a.memo(o['default']['radio-radiogroup-more'].component),
        E = n.a.memo(o['default']['radio-radiogroup-options'].component),
        s = n.a.memo(o['default']['radio-radiobutton'].component),
        p = n.a.memo(o['default']['radio-radiogroup-with-name'].component),
        f = n.a.memo(o['default']['radio-size'].component),
        h = n.a.memo(o['default']['radio-radiobutton-solid'].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: 'radio-\u5355\u9009\u6846' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#radio-\u5355\u9009\u6846',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Radio \u5355\u9009\u6846',
              ),
              n.a.createElement(
                'p',
                null,
                '\u6309\u94ae\u7528\u4e8e\u5f00\u59cb\u4e00\u4e2a\u5373\u65f6\u64cd\u4f5c\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,
                  '\u7528\u4e8e\u5728\u591a\u4e2a\u5907\u9009\u9879\u4e2d\u9009\u4e2d\u5355\u4e2a\u72b6\u6001\u3002',
                ),
                n.a.createElement(
                  'li',
                  null,
                  '\u548c Select \u7684\u533a\u522b\u662f\uff0cRadio \u6240\u6709\u9009\u9879\u9ed8\u8ba4\u53ef\u89c1\uff0c\u65b9\u4fbf\u7528\u6237\u5728\u6bd4\u8f83\u4e2d\u9009\u62e9\uff0c\u56e0\u6b64\u9009\u9879\u4e0d\u5b9c\u8fc7\u591a\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: '\u57fa\u672c' },
                n.a.createElement(
                  r['AnchorLink'],
                  { to: '#\u57fa\u672c', 'aria-hidden': 'true', tabIndex: -1 },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u57fa\u672c',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['radio-basic'].previewerProps,
              n.a.createElement(d, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u4e0d\u53ef\u7528' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4e0d\u53ef\u7528',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4e0d\u53ef\u7528',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['radio-disabled'].previewerProps,
              n.a.createElement(i, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u5355\u9009\u7ec4\u5408' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u5355\u9009\u7ec4\u5408',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u5355\u9009\u7ec4\u5408',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['radio-radiogroup'].previewerProps,
              n.a.createElement(m, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: 'radiogroup-\u5782\u76f4' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#radiogroup-\u5782\u76f4',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Radio.Group \u5782\u76f4',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['radio-radiogroup-more'].previewerProps,
              n.a.createElement(u, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: 'radiogroup-\u7ec4\u5408---\u914d\u7f6e\u65b9\u5f0f' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#radiogroup-\u7ec4\u5408---\u914d\u7f6e\u65b9\u5f0f',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Radio.Group \u7ec4\u5408 - \u914d\u7f6e\u65b9\u5f0f',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['radio-radiogroup-options'].previewerProps,
              n.a.createElement(E, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u6309\u94ae\u6837\u5f0f' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u6309\u94ae\u6837\u5f0f',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u6309\u94ae\u6837\u5f0f',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['radio-radiobutton'].previewerProps,
              n.a.createElement(s, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                {
                  id: '\u5355\u9009\u7ec4\u5408---\u914d\u5408-name-\u4f7f\u7528',
                },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u5355\u9009\u7ec4\u5408---\u914d\u5408-name-\u4f7f\u7528',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u5355\u9009\u7ec4\u5408 - \u914d\u5408 name \u4f7f\u7528',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['radio-radiogroup-with-name'].previewerProps,
              n.a.createElement(p, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u5927\u5c0f' },
                n.a.createElement(
                  r['AnchorLink'],
                  { to: '#\u5927\u5c0f', 'aria-hidden': 'true', tabIndex: -1 },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u5927\u5c0f',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['radio-size'].previewerProps,
              n.a.createElement(f, null),
            ),
            n.a.createElement(
              'div',
              { className: 'markdown' },
              n.a.createElement(
                'h3',
                { id: '\u586b\u5e95\u7684\u6309\u94ae\u6837\u5f0f' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u586b\u5e95\u7684\u6309\u94ae\u6837\u5f0f',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u586b\u5e95\u7684\u6309\u94ae\u6837\u5f0f',
              ),
            ),
            n.a.createElement(
              c['default'],
              o['default']['radio-radiobutton-solid'].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: 'radioradiobutton' },
                n.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#radioradiobutton',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Radio/Radio.Button',
              ),
              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(
                  'tbody',
                  null,
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'autoFocus'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u81ea\u52a8\u83b7\u53d6\u7126\u70b9',
                    ),
                    n.a.createElement('td', null, 'boolean'),
                    n.a.createElement('td', null, 'false'),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'checked'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u6307\u5b9a\u5f53\u524d\u662f\u5426\u9009\u4e2d',
                    ),
                    n.a.createElement('td', null, 'boolean'),
                    n.a.createElement('td', null, 'false'),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'defaultChecked'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u521d\u59cb\u662f\u5426\u9009\u4e2d',
                    ),
                    n.a.createElement('td', null, 'boolean'),
                    n.a.createElement('td', null, 'false'),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'disabled'),
                    n.a.createElement('td', null, '\u7981\u7528 Radio'),
                    n.a.createElement('td', null, 'boolean'),
                    n.a.createElement('td', null, 'false'),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'value'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u6839\u636e value \u8fdb\u884c\u6bd4\u8f83\uff0c\u5224\u65ad\u662f\u5426\u9009\u4e2d',
                    ),
                    n.a.createElement('td', null, 'any'),
                    n.a.createElement('td', null, '-'),
                  ),
                ),
              ),
              n.a.createElement(
                'h3',
                { id: 'radiogroup' },
                n.a.createElement(
                  r['AnchorLink'],
                  { to: '#radiogroup', 'aria-hidden': 'true', tabIndex: -1 },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'RadioGroup',
              ),
              n.a.createElement(
                'p',
                null,
                '\u5355\u9009\u6846\u7ec4\u5408\uff0c\u7528\u4e8e\u5305\u88f9\u4e00\u7ec4 ',
                n.a.createElement('code', null, 'Radio'),
                '\u3002',
              ),
              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('th', null),
                  ),
                ),
                n.a.createElement(
                  'tbody',
                  null,
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'buttonStyle'),
                    n.a.createElement(
                      'td',
                      null,
                      'RadioButton \u7684\u98ce\u683c\u6837\u5f0f\uff0c\u76ee\u524d\u6709\u63cf\u8fb9\u548c\u586b\u8272\u4e24\u79cd\u98ce\u683c',
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      n.a.createElement('code', null, 'outline'),
                      ' | ',
                      n.a.createElement('code', null, 'solid'),
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      n.a.createElement('code', null, 'outline'),
                    ),
                    n.a.createElement('td', null),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'defaultValue'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u9ed8\u8ba4\u9009\u4e2d\u7684\u503c',
                    ),
                    n.a.createElement('td', null, 'any'),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'disabled'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u7981\u9009\u6240\u6709\u5b50\u5355\u9009\u5668',
                    ),
                    n.a.createElement('td', null, 'boolean'),
                    n.a.createElement('td', null, 'false'),
                    n.a.createElement('td', null),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'name'),
                    n.a.createElement(
                      'td',
                      null,
                      'RadioGroup \u4e0b\u6240\u6709 ',
                      n.a.createElement('code', null, 'input[type="radio"]'),
                      ' \u7684 ',
                      n.a.createElement('code', null, 'name'),
                      ' \u5c5e\u6027',
                    ),
                    n.a.createElement('td', null, 'string'),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'options'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u4ee5\u914d\u7f6e\u5f62\u5f0f\u8bbe\u7f6e\u5b50\u5143\u7d20',
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      'string[] | Array<',
                      '{',
                      ' label: string value: string disabled?: boolean ',
                      '}',
                      '>',
                    ),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'optionType'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u7528\u4e8e\u8bbe\u7f6e Radio ',
                      n.a.createElement('code', null, 'options'),
                      ' \u7c7b\u578b',
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      n.a.createElement('code', null, 'default'),
                      ' | ',
                      n.a.createElement('code', null, 'button'),
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      n.a.createElement('code', null, 'default'),
                    ),
                    n.a.createElement('td', null, '4.4.0'),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'size'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u5927\u5c0f\uff0c\u53ea\u5bf9\u6309\u94ae\u6837\u5f0f\u751f\u6548',
                    ),
                    n.a.createElement(
                      'td',
                      null,
                      n.a.createElement('code', null, 'large'),
                      ' | ',
                      n.a.createElement('code', null, 'middle'),
                      ' | ',
                      n.a.createElement('code', null, 'small'),
                    ),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'value'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u7528\u4e8e\u8bbe\u7f6e\u5f53\u524d\u9009\u4e2d\u7684\u503c',
                    ),
                    n.a.createElement('td', null, 'any'),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                    n.a.createElement('td', null),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'onChange'),
                    n.a.createElement(
                      'td',
                      null,
                      '\u9009\u9879\u53d8\u5316\u65f6\u7684\u56de\u8c03\u51fd\u6570',
                    ),
                    n.a.createElement('td', null, 'function(e:Event)'),
                    n.a.createElement('td', null, '-'),
                    n.a.createElement('td', null),
                    n.a.createElement('td', null),
                  ),
                ),
              ),
              n.a.createElement(
                'h2',
                { id: '\u65b9\u6cd5' },
                n.a.createElement(
                  r['AnchorLink'],
                  { to: '#\u65b9\u6cd5', 'aria-hidden': 'true', tabIndex: -1 },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u65b9\u6cd5',
              ),
              n.a.createElement(
                'h3',
                { id: 'radio' },
                n.a.createElement(
                  r['AnchorLink'],
                  { to: '#radio', 'aria-hidden': 'true', tabIndex: -1 },
                  n.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Radio',
              ),
              n.a.createElement(
                'table',
                null,
                n.a.createElement(
                  'thead',
                  null,
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('th', null, '\u540d\u79f0'),
                    n.a.createElement('th', null, '\u63cf\u8ff0'),
                  ),
                ),
                n.a.createElement(
                  'tbody',
                  null,
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'blur()'),
                    n.a.createElement('td', null, '\u79fb\u9664\u7126\u70b9'),
                  ),
                  n.a.createElement(
                    'tr',
                    null,
                    n.a.createElement('td', null, 'focus()'),
                    n.a.createElement('td', null, '\u83b7\u53d6\u7126\u70b9'),
                  ),
                ),
              ),
            ),
          ),
        )
      );
    },
    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'),
        d = a('H1Ra');
      a('RZMt');
      function i(e, t) {
        return p(e) || s(e, t) || u(e, t) || m();
      }
      function m() {
        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 E(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)
              ? E(e, t)
              : void 0
          );
        }
      }
      function E(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 s(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 (d) {
            (o = !0), (n = d);
          } 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,
          m,
          u = Object(l['useRef'])(),
          E = Object(l['useContext'])(o['context']),
          s = E.locale,
          p = Object(o['useLocaleProps'])(s, 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,
          g = Object(o['useCodeSandbox'])(
            (
              null === (t = p.hideActions) || void 0 === t
                ? void 0
                : t.includes('CSB')
            )
              ? null
              : p,
          ),
          w = Object(o['useRiddle'])(
            (
              null === (a = p.hideActions) || void 0 === a
                ? void 0
                : a.includes('RIDDLE')
            )
              ? null
              : p,
          ),
          y = Object(o['useMotions'])(p.motions || [], u.current),
          N = i(y, 2),
          _ = N[0],
          x = N[1],
          A = Object(o['useCopy'])(),
          I = i(A, 2),
          L = I[0],
          j = I[1],
          R = Object(l['useState'])('_'),
          O = i(R, 2),
          C = O[0],
          S = O[1],
          P = Object(l['useState'])(f(C, p.sources[C])),
          M = i(P, 2),
          T = M[0],
          Z = M[1],
          G = Object(l['useState'])(Boolean(p.defaultShowCode)),
          U = i(G, 2),
          B = U[0],
          F = U[1],
          J = Object(l['useState'])(Math.random()),
          q = i(J, 2),
          $ = q[0],
          z = q[1],
          D = p.sources[C][T] || p.sources[C].content,
          H = Object(o['useTSPlaygroundUrl'])(s, D),
          V = Object(l['useRef'])(),
          X = Object(o['usePrefersColor'])(),
          K = i(X, 1),
          Q = K[0];
        function W(e) {
          S(e), Z(f(e, p.sources[e]));
        }
        return (
          Object(l['useEffect'])(
            function () {
              z(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: u,
                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: V,
                  })
                : 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' },
              g &&
                n.a.createElement('button', {
                  title: 'Open demo on CodeSandbox.io',
                  className: '__dumi-default-icon',
                  role: 'codesandbox',
                  onClick: g,
                }),
              w &&
                n.a.createElement('button', {
                  title: 'Open demo on Riddle',
                  className: '__dumi-default-icon',
                  role: 'riddle',
                  onClick: w,
                }),
              p.motions &&
                n.a.createElement('button', {
                  title: 'Execute motions',
                  className: '__dumi-default-icon',
                  role: 'motions',
                  disabled: x,
                  onClick: function () {
                    return _();
                  },
                }),
              p.iframe &&
                n.a.createElement('button', {
                  title: 'Reload demo iframe page',
                  className: '__dumi-default-icon',
                  role: 'refresh',
                  onClick: function () {
                    return z(Math.random());
                  },
                }),
              !(null === (m = p.hideActions) || void 0 === m
                ? void 0
                : m.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 L(D);
                },
              }),
              'tsx' === T &&
                B &&
                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(
                  B ? ' __dumi-default-btn-expand' : '',
                ),
                role: 'source',
                type: 'button',
                onClick: function () {
                  return F(!B);
                },
              }),
            ),
            B &&
              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: C,
                      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(d['a'], { code: D, lang: T, showCopy: !1 }),
                ),
              ),
          )
        );
      };
      t['default'] = h;
    },
  },
]);
