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/plus/pisellReservation/components/ReservationFloorMapDockAppearanceToggle.tsx
var ReservationFloorMapDockAppearanceToggle_exports = {};
__export(ReservationFloorMapDockAppearanceToggle_exports, {
  ReservationFloorMapDockAppearanceToggle: () => ReservationFloorMapDockAppearanceToggle
});
module.exports = __toCommonJS(ReservationFloorMapDockAppearanceToggle_exports);
var import_react = __toESM(require("react"));
var import_utils = require("@pisell/utils");
var import_reservationConstants = require("../reservationConstants");
function ReservationFloorMapAppearanceModeIcon(props) {
  if (props.mode === "light") {
    return /* @__PURE__ */ import_react.default.createElement(
      "svg",
      {
        "data-icon": "sun",
        viewBox: "0 0 24 24",
        width: "1em",
        height: "1em",
        fill: "none",
        stroke: "currentColor",
        strokeWidth: "1.8",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        "aria-hidden": "true"
      },
      /* @__PURE__ */ import_react.default.createElement("circle", { cx: "12", cy: "12", r: "4" }),
      /* @__PURE__ */ import_react.default.createElement("path", { d: "M12 2.5V5" }),
      /* @__PURE__ */ import_react.default.createElement("path", { d: "M12 19V21.5" }),
      /* @__PURE__ */ import_react.default.createElement("path", { d: "M21.5 12H19" }),
      /* @__PURE__ */ import_react.default.createElement("path", { d: "M5 12H2.5" }),
      /* @__PURE__ */ import_react.default.createElement("path", { d: "M18.72 5.28L16.95 7.05" }),
      /* @__PURE__ */ import_react.default.createElement("path", { d: "M7.05 16.95L5.28 18.72" }),
      /* @__PURE__ */ import_react.default.createElement("path", { d: "M18.72 18.72L16.95 16.95" }),
      /* @__PURE__ */ import_react.default.createElement("path", { d: "M7.05 7.05L5.28 5.28" })
    );
  }
  return /* @__PURE__ */ import_react.default.createElement(
    "svg",
    {
      "data-icon": "moon",
      viewBox: "0 0 24 24",
      width: "1em",
      height: "1em",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "1.8",
      strokeLinecap: "round",
      strokeLinejoin: "round",
      "aria-hidden": "true"
    },
    /* @__PURE__ */ import_react.default.createElement("path", { d: "M18 15.5a7 7 0 0 1-9.5-9.5 8.5 8.5 0 1 0 9.5 9.5Z" })
  );
}
function ReservationFloorMapDockAppearanceToggle(props) {
  const label = props.mode === "light" ? import_utils.locales.getText(import_reservationConstants.I18N_FLOOR_MAP_APPEARANCE_DARK) : import_utils.locales.getText(import_reservationConstants.I18N_FLOOR_MAP_APPEARANCE_LIGHT);
  return /* @__PURE__ */ import_react.default.createElement(
    "button",
    {
      type: "button",
      className: "pisell-floor-map-layout-view-controls-tool-btn pisell-floor-map-layout-view-controls-dock-collapsed-extras-btn",
      title: label,
      "aria-label": label,
      onClick: props.onToggle
    },
    /* @__PURE__ */ import_react.default.createElement(ReservationFloorMapAppearanceModeIcon, { mode: props.mode })
  );
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  ReservationFloorMapDockAppearanceToggle
});
