const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./ReadPretty.less");
//#region src/components/dataSourceComponents/fields/Input.Password/ReadPretty.tsx
const PasswordReadPretty = (props) => {
	const { value, renderMode } = props;
	const className = (0, classnames.default)("pisell-password-read-pretty", { "pisell-password-read-pretty-table-view": renderMode === "tableView" });
	if (value && (0, _pisell_utils.isString)(value)) {
		var _value$split;
		return /* @__PURE__ */ react.default.createElement("span", { className }, value === null || value === void 0 || (_value$split = value.split) === null || _value$split === void 0 ? void 0 : _value$split.call(value, "").map(() => "•"));
	}
	return /* @__PURE__ */ react.default.createElement("span", { className }, "••••••");
};
//#endregion
exports.default = PasswordReadPretty;
