import React from 'react';
import SalesModel, { useSales } from "../../businessModel/SalesModel";
import { StepProvider, useStep } from "./Step";
import { CheckoutProvider, useCheckout } from "./Checkout";
import { SummaryProvider, useSummary } from "./Summary";
import { CartProvider, useCart } from "./Cart";
import { HolderProvider, useHolder } from "./Holder";
import { EventProvider, useEvent } from "./Event";
import { EventDetailProvider, useEventDetail } from "./Event/Detail";
import { ResourceProvider, useResource } from "./Resource";
import { CustomerProvider, useCustomer } from "./Customer";
import { InitProvider, useInit } from "./Init";
import { useCustomInit } from "./hooks";
var SalesPage = function SalesPage(_ref) {
  var config = _ref.config,
    children = _ref.children;
  return /*#__PURE__*/React.createElement(CustomerProvider, null, /*#__PURE__*/React.createElement(SalesModel, {
    className: "",
    hooks: {
      useCustomInit: useCustomInit
    },
    config: config
  }, /*#__PURE__*/React.createElement(InitProvider, null, /*#__PURE__*/React.createElement(StepProvider, null, /*#__PURE__*/React.createElement(CartProvider, null, /*#__PURE__*/React.createElement(ResourceProvider, null, /*#__PURE__*/React.createElement(EventProvider, null, /*#__PURE__*/React.createElement(EventDetailProvider, null, /*#__PURE__*/React.createElement(HolderProvider, null, /*#__PURE__*/React.createElement(SummaryProvider, null, /*#__PURE__*/React.createElement(CheckoutProvider, null, children)))))))))));
};
export default SalesPage;
export { useCustomer, useInit, useSales, useStep, useResource, useEvent, useEventDetail, useHolder, useSummary, useCheckout, useCart };