import { resolveComponent as i, openBlock as t, createElementBlock as h, createBlock as o, withCtx as e, createVNode as n, createCommentVNode as g, createElementVNode as u, toDisplayString as d } from "vue"; import { y as k, B as S } from "./index2.js"; const w = { class: "modal-custom-header" }, B = { style: { color: "black" } }, b = { style: { color: "black" } }, D = /* @__PURE__ */ Object.assign({ name: "SModalHeader" }, { __name: "ModalHeader", props: { width: { type: [String, Number], default: "40%" }, showFullScreen: { type: Boolean, default: !0 } }, emits: ["fullScreen", "reduction"], setup(l, { emit: m }) { const c = m; function f() { c("fullScreen"); } function _() { c("reduction"); } return (a, v) => { const p = i("BorderOutlined"), r = S, s = k, y = i("SwitcherOutlined"); return t(), h("div", w, [ l.width != "100vw" ? (t(), o(s, { key: 0, color: "#ffffff", placement: "bottom", mouseEnterDelay: 1.5, mouseLeaveDelay: 0.5 }, { title: e(() => [ u("span", B, d(a.$l("全屏")), 1) ]), default: e(() => [ l.showFullScreen ? (t(), o(r, { key: 0, type: "text", class: "ant-modal-close", style: { "margin-right": "30px" }, onClick: f }, { default: e(() => [ n(p) ]), _: 1 })) : g("", !0) ]), _: 1 })) : (t(), o(s, { key: 1, color: "#ffffff", placement: "bottom", mouseEnterDelay: 3, mouseLeaveDelay: 3 }, { title: e(() => [ u("span", b, d(a.$l("还原")), 1) ]), default: e(() => [ n(r, { type: "text", class: "ant-modal-close", style: { "margin-right": "30px" }, onClick: _ }, { default: e(() => [ n(y, { class: "toggle-icon" }) ]), _: 1 }) ]), _: 1 })) ]); }; } }); export { D as default };