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/RoomCardDiscEdgeProgress.tsx
var RoomCardDiscEdgeProgress_exports = {};
__export(RoomCardDiscEdgeProgress_exports, {
  RoomCardDiscEdgeProgress: () => RoomCardDiscEdgeProgress
});
module.exports = __toCommonJS(RoomCardDiscEdgeProgress_exports);
var import_react = __toESM(require("react"));
var VB = 100;
var CX = 50;
var CY = 50;
var STROKE = 1.75;
var RX = 50 - STROKE / 2;
var RY = 50 - STROKE / 2;
var PATH_LEN = 100;
function RoomCardDiscEdgeProgress(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__disc-edge-progress",
      "aria-hidden": true
    },
    /* @__PURE__ */ import_react.default.createElement("svg", { viewBox: `0 0 ${VB} ${VB}`, preserveAspectRatio: "none" }, /* @__PURE__ */ import_react.default.createElement(
      "ellipse",
      {
        cx: CX,
        cy: CY,
        rx: RX,
        ry: RY,
        pathLength: PATH_LEN,
        fill: "none",
        stroke: track,
        strokeWidth: STROKE
      }
    ), /* @__PURE__ */ import_react.default.createElement(
      "ellipse",
      {
        cx: CX,
        cy: CY,
        rx: RX,
        ry: RY,
        pathLength: PATH_LEN,
        fill: "none",
        stroke: strokeMain,
        strokeWidth: STROKE,
        strokeLinecap: "round",
        strokeDasharray: `${clamped} ${PATH_LEN}`,
        transform: `rotate(-90 ${CX} ${CY})`,
        style: { transition: "stroke-dasharray 0.6s ease" }
      }
    ))
  );
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  RoomCardDiscEdgeProgress
});
