const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
//#region src/components/pisellNumber/components/ReadOnlyView.tsx
/**
* PisellNumber 只读态视图组件
* 
* 负责渲染只读态的纯文本展示
* 
* 功能：
* - 格式化数值并展示
* - 支持自定义字体样式
* - 处理空值显示
* 
* @param props 组件 Props
*/
const ReadOnlyView = (props) => {
	const { value, precision, useGrouping, formatter, emptyText = "-", fontSize, fontWeight, color, textAlign = "left", className, style, "aria-label": ariaLabel } = props;
	const displayValue = (0, _pisell_utils.formatNumber)(value, {
		precision,
		useGrouping,
		formatter
	});
	const text = displayValue !== null && displayValue !== void 0 ? displayValue : emptyText;
	const combinedStyle = require_objectSpread2._objectSpread2({
		fontSize,
		fontWeight,
		color,
		textAlign
	}, style);
	return /* @__PURE__ */ react.default.createElement("span", {
		className: `pisell-number pisell-number-read ${className || ""}`,
		style: combinedStyle,
		"aria-label": ariaLabel
	}, text);
};
//#endregion
exports.default = ReadOnlyView;
