"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const index = require("../popup/index.js");
const shared = require("../popup/shared.js");
const basic = require("../utils/basic.js");
const create = require("../utils/create.js");
const props = require("../utils/props.js");
const [name, bem] = create.createNamespace("notify");
const popupInheritProps = ["lockScroll", "position", "show", "teleport", "zIndex"];
const notifyProps = basic.extend({}, shared.popupSharedProps, {
  type: props.makeStringProp("danger"),
  color: String,
  message: props.numericProp,
  position: props.makeStringProp("top"),
  className: props.unknownProp,
  background: String,
  lockScroll: Boolean
});
var stdin_default = Vue.defineComponent({
  name,
  props: notifyProps,
  emits: ["update:show"],
  setup(props2, {
    emit,
    slots
  }) {
    const updateShow = (show) => emit("update:show", show);
    return () => Vue.createVNode(index.Popup, Vue.mergeProps({
      "class": [bem([props2.type]), props2.className],
      "style": {
        color: props2.color,
        background: props2.background
      },
      "overlay": false,
      "duration": 0.2,
      "onUpdate:show": updateShow
    }, basic.pick(props2, popupInheritProps)), {
      default: () => [slots.default ? slots.default() : props2.message]
    });
  }
});
exports.default = stdin_default;
exports.notifyProps = notifyProps;
