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/floorRoomCard/views/RoomCardRectEdgeProgress.tsx
var RoomCardRectEdgeProgress_exports = {};
__export(RoomCardRectEdgeProgress_exports, {
  RoomCardRectEdgeProgress: () => RoomCardRectEdgeProgress
});
module.exports = __toCommonJS(RoomCardRectEdgeProgress_exports);
var import_react = __toESM(require("react"));
var VB = 100;
var STROKE = 1.9;
var PATH_LEN = 100;
var RADIUS = 6;
function RoomCardRectEdgeProgress(props) {
  const clamped = Math.min(100, Math.max(0, props.percent));
  const strokeMain = props.isTimeout ? "#f5c542" : "var(--rc-pay-paid)";
  const track = "rgba(0, 0, 0, 0.22)";
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-res-floor-room-card__rect-edge-progress", "aria-hidden": true }, /* @__PURE__ */ import_react.default.createElement("svg", { viewBox: `0 0 ${VB} ${VB}`, preserveAspectRatio: "none" }, /* @__PURE__ */ import_react.default.createElement(
    "rect",
    {
      x: STROKE / 2,
      y: STROKE / 2,
      width: VB - STROKE,
      height: VB - STROKE,
      rx: RADIUS,
      ry: RADIUS,
      pathLength: PATH_LEN,
      fill: "none",
      stroke: track,
      strokeWidth: STROKE,
      strokeLinejoin: "round"
    }
  ), /* @__PURE__ */ import_react.default.createElement(
    "rect",
    {
      x: STROKE / 2,
      y: STROKE / 2,
      width: VB - STROKE,
      height: VB - STROKE,
      rx: RADIUS,
      ry: RADIUS,
      pathLength: PATH_LEN,
      fill: "none",
      stroke: strokeMain,
      strokeWidth: STROKE,
      strokeLinecap: "round",
      strokeLinejoin: "round",
      strokeDasharray: `${clamped} ${PATH_LEN}`,
      transform: `rotate(-90 ${VB / 2} ${VB / 2})`,
      style: { transition: "stroke-dasharray 0.6s ease" }
    }
  )));
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  RoomCardRectEdgeProgress
});
