var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/bigSale/templates/Standard/index.tsx
var Standard_exports = {};
__export(Standard_exports, {
  StandardBigSaleTemplate: () => StandardBigSaleTemplate,
  default: () => Standard_default
});
module.exports = __toCommonJS(Standard_exports);
var import_react = __toESM(require("react"));
var import_classnames = __toESM(require("classnames"));
var import_Base = __toESM(require("../../../../plus/saleDetail/Base"));
var import_BookingFloatingPanel = __toESM(require("../../components/BookingFloatingPanel"));
var import_FloatingActions = __toESM(require("../../components/FloatingActions"));
var import_ProductList = require("../../components/ProductList");
var import_TimeBar = __toESM(require("../../components/TimeBar"));
function pickSaleDetailContext(bigSaleContext, onOrderComplete) {
  return {
    sales: bigSaleContext.sales,
    customer: bigSaleContext.customer,
    cart: bigSaleContext.cart,
    summary: bigSaleContext.summary,
    booking: bigSaleContext.booking,
    onOrderComplete
  };
}
function StandardBigSaleTemplate({
  context,
  mode,
  variant,
  productLoadParams,
  productDisplayConfig,
  productCatalogSessionKey,
  saleDetailTemplate,
  saleDetailModuleConfig,
  orderId,
  locale,
  saleDetailHeaderSlot,
  onOrderComplete
}) {
  const floatingPanelRef = (0, import_react.useRef)(null);
  const timeBarRef = (0, import_react.useRef)(null);
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("section", { className: "pisell-big-sale__product-panel" }, /* @__PURE__ */ import_react.default.createElement(
    import_ProductList.BigSaleProductList,
    {
      mode,
      context,
      productLoadParams,
      productDisplayConfig,
      productCatalogSessionKey,
      variant
    }
  ), /* @__PURE__ */ import_react.default.createElement(
    import_FloatingActions.default,
    {
      context,
      variant,
      floatingPanelRef,
      timeBarRef
    }
  )), /* @__PURE__ */ import_react.default.createElement(
    "section",
    {
      className: (0, import_classnames.default)("pisell-big-sale__sale-detail", {
        "pisell-big-sale__sale-detail--has-header": Boolean(saleDetailHeaderSlot)
      })
    },
    saleDetailHeaderSlot,
    /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-big-sale__sale-detail-body" }, /* @__PURE__ */ import_react.default.createElement(
      import_Base.default,
      {
        context: pickSaleDetailContext(context, onOrderComplete),
        renderType: "current",
        template: saleDetailTemplate,
        variant,
        mobilePresentation: "bottomSheet",
        moduleConfig: saleDetailModuleConfig
      }
    ))
  ), /* @__PURE__ */ import_react.default.createElement(
    import_TimeBar.default,
    {
      context,
      productLoadParams,
      orderId,
      locale,
      variant,
      ref: timeBarRef
    }
  ), /* @__PURE__ */ import_react.default.createElement(
    import_BookingFloatingPanel.default,
    {
      context,
      ref: floatingPanelRef,
      variant
    }
  ));
}
var Standard_default = StandardBigSaleTemplate;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  StandardBigSaleTemplate
});
