import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import locales_default from "./locales.js";
import { CartProvider } from "./Provider.js";
import Content from "./components/Render/index.js";
import React from "react";
import { locales } from "@pisell/utils";
//#region src/components/shoppingCart/index.tsx
const _excluded = [
	"onCard",
	"onAction",
	"onChange",
	"onAddProduct",
	"onActiveKey"
];
locales.init(locales_default, localStorage.getItem("umi_locale") || "en");
const shoppingCart = (_ref) => {
	let { onCard, onAction, onChange, onAddProduct, onActiveKey } = _ref, props = _objectWithoutProperties(_ref, _excluded);
	return /* @__PURE__ */ React.createElement(CartProvider, {
		props,
		onCard,
		onAction,
		onChange,
		onAddProduct,
		onActiveKey
	}, /* @__PURE__ */ React.createElement(Content, null));
};
//#endregion
export { shoppingCart as default };
