const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_locales = require("./locales.js");
const require_hooks = require("./hooks.js");
const require_provider = require("./store/provider.js");
const require_index = require("./components/Content/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
//#region src/components/pay/toB/index.tsx
const ToBPay = (0, react.forwardRef)((props, ref) => {
	const toBPayRef = (0, react.useRef)(null);
	const engineLocale = require_hooks.useEngineLocale();
	_pisell_utils.locales.init(require_locales.default, engineLocale);
	(0, react.useImperativeHandle)(ref, () => {
		var _toBPayRef$current;
		return { open: (_toBPayRef$current = toBPayRef.current) === null || _toBPayRef$current === void 0 ? void 0 : _toBPayRef$current.open };
	});
	console.log("toBPayProps", props);
	return /* @__PURE__ */ react.default.createElement(require_provider.ToBPayProvider, null, /* @__PURE__ */ react.default.createElement(require_index.default, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props || {}), {}, { ref: toBPayRef })));
});
//#endregion
exports.default = ToBPay;
