const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
const require_objectWithoutProperties = require("../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
const require_index = require("../../utils/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
//#region src/components/table/Table/fields/link/Show/index.tsx
const _excluded = [
	"title",
	"editable",
	"dataIndex",
	"field_type",
	"record",
	"handleSave"
];
const Show = (props) => {
	const { title, editable, dataIndex, field_type, record, handleSave } = props;
	require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
	const content = require_index.getValueByKeys(record, dataIndex);
	const field = (0, react.useMemo)(() => {
		if ((0, _pisell_utils.isString)(content)) return {
			content,
			url: content
		};
		return content;
	}, [content]);
	return /* @__PURE__ */ react.default.createElement("a", {
		className: "",
		href: field.url,
		target: "_blank",
		onClick: (e) => e.stopPropagation()
	}, field.content);
};
//#endregion
exports.default = Show;
