import { useForwardExpose } from "../shared/useForwardExpose.js"; import { Primitive } from "../Primitive/Primitive.js"; import { injectToastRootContext } from "./ToastRootImpl.js"; import { createBlock, createCommentVNode, createTextVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue"; //#region src/Toast/ToastDescription.vue?vue&type=script&setup=true&lang.ts var ToastDescription_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({ __name: "ToastDescription", props: { asChild: { type: Boolean, required: false }, as: { type: null, required: false } }, setup(__props) { const props = __props; useForwardExpose(); const rootContext = injectToastRootContext(null); return (_ctx, _cache) => { return _ctx.$slots.default || !unref(rootContext)?.toast.value || unref(rootContext).toast.value.description ? (openBlock(), createBlock(unref(Primitive), normalizeProps(mergeProps({ key: 0 }, props)), { default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(unref(rootContext)?.toast.value?.description), 1)])]), _: 3 }, 16)) : createCommentVNode("v-if", true); }; } }); //#endregion //#region src/Toast/ToastDescription.vue var ToastDescription_default = ToastDescription_vue_vue_type_script_setup_true_lang_default; //#endregion export { ToastDescription_default }; //# sourceMappingURL=ToastDescription.js.map