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/ticketBooking/components/bookingDataPanel/bookingDashboard/index.tsx
var bookingDashboard_exports = {};
__export(bookingDashboard_exports, {
  default: () => bookingDashboard_default
});
module.exports = __toCommonJS(bookingDashboard_exports);
var import_react = __toESM(require("react"));
var import_react2 = require("react");
var import_dashboard = __toESM(require("../../../../booking/dashboard"));
var import_index = require("./index.less");
var BookingDashboard = (0, import_react.forwardRef)((props, ref) => {
  const { bookingTimeStartBetween } = props;
  const bookingDashboardRef = (0, import_react.useRef)(null);
  const cptProps = (0, import_react.useMemo)(() => {
    return {
      style: {
        padding: "16px"
      },
      otherParams: { booking_time_start_between: bookingTimeStartBetween },
      backgroundColors: [
        "rgba(224, 79, 22, 0.20)",
        "rgba(217, 45, 32, 0.14)",
        "rgba(127, 86, 217, 0.22)",
        "rgba(7, 148, 85, 0.20)",
        "rgba(21, 112, 239, 0.23)",
        "rgba(202, 133, 4, 0.20)",
        "var(--Gray-800, #1D2939)",
        "var(--Gray-true-800, #292929)"
      ]
    };
  }, [bookingTimeStartBetween]);
  (0, import_react2.useImperativeHandle)(ref, () => ({
    refresh: () => {
      var _a;
      (_a = bookingDashboardRef.current) == null ? void 0 : _a.refresh();
    }
  }));
  return /* @__PURE__ */ import_react.default.createElement(
    import_dashboard.default,
    {
      className: "pisell-ticket-booking-dashboard pisell-lowcode-statistic-list-wrap",
      ref: bookingDashboardRef,
      ...cptProps
    }
  );
});
var bookingDashboard_default = BookingDashboard;
