"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
  __name: "index",
  props: {
    modelValue: {
      type: String,
      default: ""
    }
  },
  emits: ["update:modelValue"],
  setup(__props, { emit: __emit }) {
    const emit = __emit;
    const onInput = common_vendor.inject("onInput", null);
    const onBlur = common_vendor.inject("onBlur", null);
    const handleInput = (event) => {
      var _a, _b;
      const value = ((_a = event.detail) == null ? void 0 : _a.value) || ((_b = event.target) == null ? void 0 : _b.value) || "";
      emit("update:modelValue", value);
      if (onInput) {
        onInput(event);
      }
      common_vendor.index.__f__("log", "at components/SsInput/index.vue:47", `SsInput handleInput: ${value}`);
    };
    const handleBlur = (event) => {
      if (onBlur) {
        onBlur(event);
      }
    };
    return (_ctx, _cache) => {
      return {
        a: _ctx.$attrs.placeholder || "请输入",
        b: __props.modelValue,
        c: common_vendor.o(handleInput),
        d: common_vendor.o(handleBlur),
        e: common_vendor.o(handleInput),
        f: common_vendor.gei(_ctx, "")
      };
    };
  }
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-8a0c74ed"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/SsInput/index.js.map
