"use strict";
const TUIKit_tuiCustomerServicePlugin_adapterVue = require("../../adapter-vue.js");
const common_vendor = require("../../../../common/vendor.js");
const { ref } = TUIKit_tuiCustomerServicePlugin_adapterVue.vue;
const _sfc_main = {
  props: {
    title: {
      type: String,
      default: ""
    }
  },
  emits: ["input-submit"],
  setup(props, { emit }) {
    const disabled = ref(false);
    const text = ref("");
    const listItemClick = () => {
      disabled.value = true;
      emit("input-submit", text.value);
    };
    return {
      disabled,
      text,
      listItemClick,
      props
    };
  }
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return {
    a: common_vendor.t($setup.props.title),
    b: $setup.text,
    c: common_vendor.o$1(($event) => $setup.text = $event.detail.value),
    d: $setup.disabled,
    e: common_vendor.o$1((...args) => $setup.listItemClick && $setup.listItemClick(...args))
  };
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/TUIKit/tui-customer-service-plugin/components/message-form/form-input.js.map
