const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_objectWithoutProperties = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
const require_useResponsive = require("../../hooks/useResponsive.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
//#region src/components/typography/index.tsx
const _excluded = [
	"pcIsEllipsis",
	"padIsEllipsis",
	"mobileIsEllipsis",
	"ellipsis"
], _excluded2 = [
	"pcIsEllipsis",
	"padIsEllipsis",
	"mobileIsEllipsis",
	"ellipsis"
];
const { Paragraph: AntParagraph, Title: AntTitle } = antd.Typography;
const Paragraph = (props) => {
	const { pcIsEllipsis, padIsEllipsis, mobileIsEllipsis, ellipsis } = props, others = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
	const responsive = require_useResponsive.default();
	const ellipsisObj = (0, react.useMemo)(() => {
		if (pcIsEllipsis && responsive === "pc") return { ellipsis };
		if (padIsEllipsis && responsive === "ipad") return { ellipsis };
		if (mobileIsEllipsis && responsive === "phone") return { ellipsis };
		return {};
	}, [
		pcIsEllipsis,
		padIsEllipsis,
		mobileIsEllipsis,
		ellipsis,
		responsive
	]);
	return /* @__PURE__ */ react.default.createElement(AntParagraph, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, others), ellipsisObj));
};
const Title = (props) => {
	const { pcIsEllipsis, padIsEllipsis, mobileIsEllipsis, ellipsis } = props, others = require_objectWithoutProperties._objectWithoutProperties(props, _excluded2);
	const responsive = require_useResponsive.default();
	const ellipsisObj = (0, react.useMemo)(() => {
		if (pcIsEllipsis && responsive === "pc") return { ellipsis };
		if (padIsEllipsis && responsive === "ipad") return { ellipsis };
		if (mobileIsEllipsis && responsive === "phone") return { ellipsis };
		return {};
	}, [
		pcIsEllipsis,
		padIsEllipsis,
		mobileIsEllipsis,
		ellipsis,
		responsive
	]);
	return /* @__PURE__ */ react.default.createElement(AntTitle, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, others), ellipsisObj));
};
const Typography = antd.Typography;
Typography.Paragraph = Paragraph;
Typography.Title = Title;
//#endregion
exports.default = Typography;
