"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _a2 = _interopRequireDefault(require("./a"));
var _p = _interopRequireDefault(require("./p"));
var _tag = _interopRequireDefault(require("./tag"));
var _div2 = _interopRequireDefault(require("./div"));
var _img2 = _interopRequireDefault(require("./img"));
var _tabbed = _interopRequireDefault(require("./tabbed"));
var _heading2 = _interopRequireDefault(require("./heading"));
var _blockquote = _interopRequireDefault(require("./blockquote"));
var _list = require("./list");
var _details = require("./details");
var _table = require("./table");
var _code2 = _interopRequireDefault(require("./code"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/*
 * Copyright 2021 The Kubernetes Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

function typedComponents(args) {
  const {
    mdprops,
    repl,
    uuid,
    codeBlockResponses
  } = args;
  const a = (0, _a2.default)(mdprops, uuid, repl);
  const div = (0, _div2.default)(mdprops, uuid, args.choices);
  const img = (0, _img2.default)(mdprops);
  const code = (0, _code2.default)(mdprops, uuid, codeBlockResponses);
  const heading = (0, _heading2.default)(uuid);
  return {
    a,
    blockquote: _blockquote.default,
    code,
    details: _details.details,
    div,
    h1: heading,
    h2: heading,
    h3: heading,
    h4: heading,
    h5: heading,
    h6: heading,
    img,
    li: _list.li,
    ol: _list.list,
    p: _p.default,
    table: _table.table,
    thead: _table.thead,
    tbody: _table.tbody,
    tr: _table.tr,
    th: _table.th,
    td: _table.td,
    ul: _list.list
  };
}
/** avoid typing issues... */
function components(args) {
  const components = Object.assign({
    tip: _details.tip,
    tag: _tag.default,
    tabbed: (0, _tabbed.default)(args.uuid, args.choices)
  }, typedComponents(args));
  return function mkComponents() {
    return components;
  };
}
var _default = components;
exports.default = _default;