"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
require("../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.js");
const runtimeCore_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
const runtimeDom_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_runtime-dom@3.3.4/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js");
const reactivity_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
const _withScopeId = (n) => (runtimeCore_esmBundler.pushScopeId("data-v-b4d0ec68"), n = n(), runtimeCore_esmBundler.popScopeId(), n);
const _hoisted_1 = {
  xmlns: "http://www.w3.org/2000/svg",
  viewBox: `0 0 200 200`
};
const _hoisted_2 = /* @__PURE__ */ runtimeCore_esmBundler.createStaticVNode('<filter id="innerShadow" x="-20%" y="-20%" width="140%" height="140%" data-v-b4d0ec68><feGaussianBlur in="SourceGraphic" stdDeviation="3" result="blur" data-v-b4d0ec68></feGaussianBlur><feOffset in="blur" dx="2.5" dy="2.5" data-v-b4d0ec68></feOffset></filter><g data-v-b4d0ec68><circle id="shadow" style="fill:rgba(0, 0, 0, 0.1);" cx="100" cy="100" r="87" filter="url(#innerShadow)" data-v-b4d0ec68></circle><circle id="circle" class="clock-border" cx="100" cy="100" r="80" data-v-b4d0ec68></circle></g>', 2);
const _hoisted_4 = {
  x1: "100",
  y1: "100",
  x2: "100",
  y2: "55",
  style: { "stroke-width": "3px" },
  class: "clock-line"
};
const _hoisted_5 = ["from", "to"];
const _hoisted_6 = {
  x1: "100",
  y1: "100",
  x2: "100",
  y2: "40",
  style: { "stroke-width": "4px" },
  class: "clock-line"
};
const _hoisted_7 = ["from", "to"];
const _hoisted_8 = {
  x1: "100",
  y1: "100",
  x2: "100",
  y2: "30",
  style: { "stroke-width": "2px" },
  class: "clock-line"
};
const _hoisted_9 = ["from", "to"];
const _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ runtimeCore_esmBundler.createElementVNode("circle", {
  id: "center",
  style: { "fill": "#128a86", "stroke": "#c1efed", "stroke-width": "2px" },
  cx: "100",
  cy: "100",
  r: "3"
}, null, -1));
const _hoisted_11 = ["transform"];
const _sfc_main = /* @__PURE__ */ runtimeCore_esmBundler.defineComponent({
  __name: "index",
  props: {
    chartConfig: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    runtimeDom_esmBundler.useCssVars((_ctx) => ({
      "47fe3763": reactivity_esmBundler.unref(borderColor),
      "46891283": reactivity_esmBundler.unref(border) + "px",
      "7239e62c": reactivity_esmBundler.unref(bgColor),
      "67e7692f": reactivity_esmBundler.unref(color)
    }));
    let { border, color, bgColor, borderColor } = reactivity_esmBundler.toRefs(props.chartConfig.option);
    const date = /* @__PURE__ */ new Date();
    const hoursAngle = 360 * date.getHours() / 12 + date.getMinutes() / 2;
    const minuteAngle = 360 * date.getMinutes() / 60;
    const secAngle = 360 * date.getSeconds() / 60;
    return (_ctx, _cache) => {
      return runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createElementBlock("svg", _hoisted_1, [
        _hoisted_2,
        runtimeCore_esmBundler.createElementVNode("g", null, [
          runtimeCore_esmBundler.createElementVNode("line", _hoisted_4, [
            runtimeCore_esmBundler.createElementVNode("animateTransform", {
              attributeName: "transform",
              attributeType: "XML",
              type: "rotate",
              dur: "43200s",
              repeatCount: "indefinite",
              from: `${hoursAngle} 100 100`,
              to: `${hoursAngle + 360} 100 100`
            }, null, 8, _hoisted_5)
          ]),
          runtimeCore_esmBundler.createElementVNode("line", _hoisted_6, [
            runtimeCore_esmBundler.createElementVNode("animateTransform", {
              attributeName: "transform",
              attributeType: "XML",
              type: "rotate",
              dur: "3600s",
              repeatCount: "indefinite",
              from: `${minuteAngle} 100 100`,
              to: `${minuteAngle + 360} 100 100`
            }, null, 8, _hoisted_7)
          ]),
          runtimeCore_esmBundler.createElementVNode("line", _hoisted_8, [
            runtimeCore_esmBundler.createElementVNode("animateTransform", {
              attributeName: "transform",
              attributeType: "XML",
              type: "rotate",
              dur: "60s",
              repeatCount: "indefinite",
              from: `${secAngle} 100 100`,
              to: `${secAngle + 360} 100 100`
            }, null, 8, _hoisted_9)
          ])
        ]),
        _hoisted_10,
        (runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createElementBlock(runtimeCore_esmBundler.Fragment, null, runtimeCore_esmBundler.renderList(12, (num) => {
          return runtimeCore_esmBundler.createElementVNode("line", {
            x1: "100",
            y1: "30",
            x2: "100",
            y2: "40",
            class: "clock-line",
            transform: `rotate(${(num + 1) * 360 / 12} 100 100)`,
            key: `line_${num + 1}`
          }, null, 8, _hoisted_11);
        }), 64))
      ]);
    };
  }
});
exports.default = _sfc_main;
