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");
let react = require("react");
react = require_runtime.__toESM(react);
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/booking/components/browserSelect/index.tsx
const _excluded = ["options"];
/**
* @title: 系统级别的下拉框
* @description:
* @param {BrowserSelectProps} props
* @return {*}
* @Author: zhiwei.Wang
* @Date: 2024-01-30 16:43
*/
const BrowserSelect = (props) => {
	const { options } = props, resetProps = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
	const _options = (0, react.useMemo)(() => {
		return (props.options || []).map((d) => {
			return /* @__PURE__ */ react.default.createElement("option", {
				value: d.value,
				key: d.value
			}, d.label);
		});
	}, [props.options]);
	return /* @__PURE__ */ react.default.createElement("select", require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, resetProps), {}, {
		className: (0, classnames.default)("pisell-browser-select", resetProps.className),
		onChange: (e) => {
			var _resetProps$onChange;
			e.persist();
			(_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 || _resetProps$onChange.call(resetProps, e);
		}
	}), _options);
};
//#endregion
exports.default = BrowserSelect;
