(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".pl-notification-alert{padding:12px;position:relative;border-radius:6px;border:1px solid var(--border-color-default);min-height:40px;width:256px;max-height:100%;overflow:auto}.pl-notification-alert .ui-btn-ghost{position:absolute;right:0;top:0}.pl-notification-alert__close{width:32px;min-width:28px}.pl-notification-alert__close .pl-btn-ghost{position:absolute;top:0;right:0;width:40px!important;height:40px!important}.pl-notification-alert__wrapper{flex-grow:1;overflow:auto}.pl-notification-alert.neutral{background:var(--notification-neutral)}.pl-notification-alert.error{background:var(--notification-error)}.pl-notification-alert.success{background:var(--notification-success)}.pl-notification-alert.warning{background:var(--notification-warning)}")),document.head.appendChild(t)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
import { defineComponent as d, mergeModels as f, useModel as p, createElementBlock as t, createCommentVNode as o, openBlock as l, normalizeStyle as m, normalizeClass as u, createElementVNode as i, renderSlot as n, createVNode as _, unref as h, withModifiers as y } from "vue";
import v from "../PlBtnGhost/PlBtnGhost.vue.js";

const k = { class: "pl-notification-alert__wrapper d-flex text-s" }, w = { class: "pl-notification-alert__content flex-grow-1" }, V = {
  key: 0,
  class: "pl-notification-alert__close"
}, $ = {
  key: 0,
  class: "pl-notification-alert__actions d-flex"
}, b = /* @__PURE__ */ d({
  __name: "PlNotificationAlert",
  props: /* @__PURE__ */ f({
    type: { default: "neutral" },
    width: { default: "256px" },
    closable: { type: Boolean }
  }, {
    modelValue: { type: Boolean, default: !0 },
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(s) {
    const r = s, a = p(s, "modelValue");
    function c() {
      r.closable && (a.value = !1);
    }
    return (e, B) => a.value ? (l(), t("div", {
      key: 0,
      class: u([e.type, "pl-notification-alert d-flex flex-column gap-16"]),
      style: m({ width: `${e.width}` })
    }, [
      i("div", k, [
        i("div", w, [
          n(e.$slots, "default")
        ]),
        e.closable ? (l(), t("div", V, [
          _(h(v), {
            icon: "close",
            onClick: y(c, ["stop"])
          })
        ])) : o("", !0)
      ]),
      e.$slots.actions ? (l(), t("div", $, [
        n(e.$slots, "actions")
      ])) : o("", !0)
    ], 6)) : o("", !0);
  }
});
export {
  b as default
};
//# sourceMappingURL=PlNotificationAlert.vue.js.map
