const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
let _pisell_materials_src_components_iconfont = require("@pisell/materials/src/components/iconfont");
_pisell_materials_src_components_iconfont = require_runtime.__toESM(_pisell_materials_src_components_iconfont);
//#region src/pro/Login2.0/steps/WaitEmailLink.tsx
/**
* 等待邮件链接验证页面（对应图1）
*/
function WaitEmailLink({ flowData, onResend, onBack, onEditEmail, countdown = 0, verificationMethod }) {
	const canResend = countdown === 0;
	const displayEmail = typeof flowData.account === "string" ? flowData.account : "";
	return /* @__PURE__ */ react.default.createElement("div", { className: "register-step-container" }, onBack && /* @__PURE__ */ react.default.createElement("button", {
		className: "back-button-top",
		onClick: onBack,
		"aria-label": "Go back"
	}, /* @__PURE__ */ react.default.createElement(_pisell_materials_src_components_iconfont.default, { type: "pisell2-arrow-left" })), /* @__PURE__ */ react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ react.default.createElement("div", { className: "register-step-title-verify-email" }, _pisell_utils.locales.getText("pisell-register2-verify-email-title")), /* @__PURE__ */ react.default.createElement("div", { className: "register-step-desc-verify-email" }, _pisell_utils.locales.getText("pisell-register2-verify-email-desc")), /* @__PURE__ */ react.default.createElement("div", { className: "register-email-display" }, /* @__PURE__ */ react.default.createElement("span", { className: "email-text" }, displayEmail), onEditEmail && /* @__PURE__ */ react.default.createElement("button", {
		className: "edit-email-btn",
		onClick: onEditEmail,
		"aria-label": "Edit email"
	}, /* @__PURE__ */ react.default.createElement(_pisell_materials_src_components_iconfont.default, {
		type: "pisell2-edit-05",
		style: {
			fontSize: "20px",
			color: "#7F56D9"
		}
	}))), /* @__PURE__ */ react.default.createElement("div", { className: "register-resend-section" }, /* @__PURE__ */ react.default.createElement("span", { className: "resend-text" }, _pisell_utils.locales.getText("pisell-register2-no-link-received"), " "), /* @__PURE__ */ react.default.createElement("button", {
		className: "resend-link",
		onClick: onResend,
		disabled: !canResend
	}, _pisell_utils.locales.getText("pisell-common-resend"), " ", countdown > 0 && `(${countdown} s)`))));
}
//#endregion
exports.default = WaitEmailLink;
