import { defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, renderSlot, normalizeStyle, toDisplayString, createVNode, createTextVNode } from 'vue';
import { MeEnv } from '../../env/index.mjs';
import { MeText } from '../../text/index.mjs';

"use strict";
const _hoisted_1 = { class: "me-todo" };
const __default__ = defineComponent({
  name: "me-todo"
});
var script = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: {
    envFn: { type: Function, required: true },
    titleStyle: { type: Object, required: false },
    title: { type: String, required: false, default: "Todo" },
    desc: { type: String, required: false },
    descStyle: { type: Object, required: false }
  },
  setup(__props) {
    const props = __props;
    return (_ctx, _cache) => {
      return openBlock(), createBlock(unref(MeEnv), {
        env: "dev",
        envFn: props.envFn
      }, {
        default: withCtx(() => [
          createElementVNode("div", _hoisted_1, [
            renderSlot(_ctx.$slots, "default"),
            createElementVNode(
              "div",
              {
                class: "todo-text",
                style: normalizeStyle(__props.titleStyle)
              },
              toDisplayString(__props.title),
              5
              /* TEXT, STYLE */
            ),
            createElementVNode(
              "div",
              {
                class: "todo-desc",
                style: normalizeStyle(__props.descStyle)
              },
              [
                createVNode(unref(MeText), {
                  copy: false,
                  color: "#000"
                }, {
                  default: withCtx(() => [
                    createTextVNode(
                      toDisplayString(__props.desc),
                      1
                      /* TEXT */
                    )
                  ]),
                  _: 1
                  /* STABLE */
                })
              ],
              4
              /* STYLE */
            )
          ])
        ]),
        _: 3
        /* FORWARDED */
      }, 8, ["envFn"]);
    };
  }
});

export { script as default };
//# sourceMappingURL=todo.vue2.mjs.map
