const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_index = require("../../../../locales/index.js");
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_venueWallUtils = require("./venueWallUtils.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.tsx
/** 控制台「外观 / 颜色」分页：占用/空闲底色与六态表格 */
const ResourceWallControlPanelColorTab = ({ adminSectionBg, adminInputBg, headerText, mutedText, divider, draftOcc, setDraftOcc, draftAvail, setDraftAvail, draftTones, setDraftTones }) => {
	return /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, /* @__PURE__ */ react.default.createElement("section", { className: `rounded-2xl border p-4 space-y-4 ${adminSectionBg}` }, /* @__PURE__ */ react.default.createElement("div", { className: `text-sm font-semibold ${headerText}` }, require_index.getText("pisell-resource-wall-tab-colors")), /* @__PURE__ */ react.default.createElement("div", { className: "grid grid-cols-2 gap-3" }, /* @__PURE__ */ react.default.createElement("label", { className: `rounded-2xl border p-3 block ${adminInputBg}` }, /* @__PURE__ */ react.default.createElement("div", { className: `text-xs mb-2 ${mutedText}` }, require_index.getText("pisell-resource-wall-occupied-card-color-label")), /* @__PURE__ */ react.default.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ react.default.createElement("input", {
		type: "color",
		value: draftOcc,
		onChange: (e) => setDraftOcc(e.target.value),
		className: `h-10 w-14 shrink-0 rounded-lg border p-1 ${adminInputBg}`
	}), /* @__PURE__ */ react.default.createElement("input", {
		type: "text",
		value: draftOcc,
		onChange: (e) => setDraftOcc(e.target.value),
		className: `flex-1 rounded-xl border px-3 py-2 outline-none ${adminInputBg}`
	}))), /* @__PURE__ */ react.default.createElement("label", { className: `rounded-2xl border p-3 block ${adminInputBg}` }, /* @__PURE__ */ react.default.createElement("div", { className: `text-xs mb-2 ${mutedText}` }, require_index.getText("pisell-resource-wall-available-card-color-label")), /* @__PURE__ */ react.default.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ react.default.createElement("input", {
		type: "color",
		value: draftAvail,
		onChange: (e) => setDraftAvail(e.target.value),
		className: `h-10 w-14 shrink-0 rounded-lg border p-1 ${adminInputBg}`
	}), /* @__PURE__ */ react.default.createElement("input", {
		type: "text",
		value: draftAvail,
		onChange: (e) => setDraftAvail(e.target.value),
		className: `flex-1 rounded-xl border px-3 py-2 outline-none ${adminInputBg}`
	}))))), /* @__PURE__ */ react.default.createElement("section", { className: `overflow-hidden rounded-2xl border ${adminSectionBg}` }, /* @__PURE__ */ react.default.createElement("div", { className: `border-b px-4 py-3 text-sm font-semibold ${headerText} ${divider}` }, require_index.getText("pisell-resource-wall-status-table-title")), /* @__PURE__ */ react.default.createElement("div", { className: "grid grid-cols-[0.8fr_1fr_1.3fr_0.9fr_0.9fr] gap-3 border-b px-4 py-3 text-xs font-semibold text-slate-500" }, /* @__PURE__ */ react.default.createElement("div", null, require_index.getText("pisell-resource-wall-status-col-key")), /* @__PURE__ */ react.default.createElement("div", null, require_index.getText("pisell-resource-wall-status-col-label")), /* @__PURE__ */ react.default.createElement("div", null, require_index.getText("pisell-resource-wall-status-col-explain")), /* @__PURE__ */ react.default.createElement("div", null, require_index.getText("pisell-resource-wall-status-col-color")), /* @__PURE__ */ react.default.createElement("div", null, require_index.getText("pisell-resource-wall-status-col-notebg"))), require_venueWallUtils.VENUE_WALL_STATUS_KEYS.map((key) => {
		const item = draftTones[key];
		return /* @__PURE__ */ react.default.createElement("div", {
			key,
			className: `grid grid-cols-[0.8fr_1fr_1.3fr_0.9fr_0.9fr] items-center gap-3 border-b px-4 py-3 last:border-b-0 ${divider}`
		}, /* @__PURE__ */ react.default.createElement("div", { className: `text-sm font-medium ${headerText}` }, require_index.getText(`pisell-resource-wall-status-id-${key}`)), /* @__PURE__ */ react.default.createElement("input", {
			type: "text",
			value: item.label,
			onChange: (e) => setDraftTones((prev) => require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, prev), {}, { [key]: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, prev[key]), {}, { label: e.target.value }) })),
			className: `w-full rounded-xl border px-3 py-2 outline-none ${adminInputBg}`
		}), /* @__PURE__ */ react.default.createElement("textarea", {
			rows: 2,
			value: item.note,
			onChange: (e) => setDraftTones((prev) => require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, prev), {}, { [key]: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, prev[key]), {}, { note: e.target.value }) })),
			className: `w-full resize-none rounded-xl border px-3 py-2 outline-none ${adminInputBg}`
		}), /* @__PURE__ */ react.default.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ react.default.createElement("input", {
			type: "color",
			value: item.color,
			onChange: (e) => setDraftTones((prev) => require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, prev), {}, { [key]: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, prev[key]), {}, { color: e.target.value }) })),
			className: `h-10 w-14 shrink-0 rounded-lg border p-1 ${adminInputBg}`
		}), /* @__PURE__ */ react.default.createElement("input", {
			type: "text",
			value: item.color,
			onChange: (e) => setDraftTones((prev) => require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, prev), {}, { [key]: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, prev[key]), {}, { color: e.target.value }) })),
			className: `w-full rounded-xl border px-3 py-2 outline-none ${adminInputBg}`
		})), /* @__PURE__ */ react.default.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ react.default.createElement("input", {
			type: "text",
			value: item.noteBg,
			onChange: (e) => setDraftTones((prev) => require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, prev), {}, { [key]: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, prev[key]), {}, { noteBg: e.target.value }) })),
			className: `w-full rounded-xl border px-3 py-2 outline-none ${adminInputBg}`
		})));
	})));
};
//#endregion
exports.ResourceWallControlPanelColorTab = ResourceWallControlPanelColorTab;
