'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
require('../../../../../index.js');
var antDesignVue = require('ant-design-vue');
var secondConfirmation = require('./second-confirmation.js');
require('../../../../../../utils/index.js');
var createNamespace = require('../../../../../../utils/create-namespace.js');
var index = require('../../../../../modal/index.js');
var index$1 = require('../../../../../icon/index.js');

"use strict";
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{ name: "LlSecondConfirmation" },
  __name: "second-confirmation",
  props: secondConfirmation.secondConfirmationProps,
  setup(__props) {
    const bem = createNamespace.createNamespace("second-confirmation");
    const props = __props;
    const warningColor = antDesignVue.theme.defaultConfig.token.colorWarning;
    return (_ctx, _cache) => {
      return vue.openBlock(), vue.createBlock(vue.unref(index.LlModal), {
        open: props.open,
        loading: props.loading,
        title: props.title,
        "confirm-text": props.confirmText,
        "cancel-text": props.cancelText,
        width: 500,
        "root-class-name": vue.unref(bem).b(),
        class: vue.normalizeClass("confirm-modal"),
        onCancel: props.onCancel,
        onOk: props.onConfirm
      }, {
        default: vue.withCtx(() => [
          vue.renderSlot(_ctx.$slots, "default", {}, () => [
            vue.createElementVNode(
              "div",
              {
                class: vue.normalizeClass(vue.unref(bem).e("wrapper"))
              },
              [
                vue.createElementVNode(
                  "div",
                  {
                    class: vue.normalizeClass(vue.unref(bem).e("container"))
                  },
                  [
                    vue.createVNode(
                      vue.unref(index$1.LlIcon),
                      vue.normalizeProps(vue.guardReactiveProps(
                        props.icon || {
                          iconName: "icon-warning",
                          color: vue.unref(warningColor),
                          class: ["mr-20px"],
                          style: { "font-size": "30px" }
                        }
                      )),
                      null,
                      16
                      /* FULL_PROPS */
                    ),
                    vue.renderSlot(_ctx.$slots, "message", {}, () => [
                      vue.createElementVNode(
                        "span",
                        {
                          class: vue.normalizeClass(vue.unref(bem).e("text"))
                        },
                        vue.toDisplayString(props.message),
                        3
                        /* TEXT, CLASS */
                      )
                    ])
                  ],
                  2
                  /* CLASS */
                ),
                vue.renderSlot(_ctx.$slots, "extra")
              ],
              2
              /* CLASS */
            )
          ])
        ]),
        _: 3
        /* FORWARDED */
      }, 8, ["open", "loading", "title", "confirm-text", "cancel-text", "root-class-name", "onCancel", "onOk"]);
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=second-confirmation.vue2.js.map
