"use strict";
const common_vendor = require("../../common/vendor.js");
const constants_help = require("../../constants/help.js");
const _sfc_main = {
  data() {
    return {
      HELP_CONTENT: constants_help.HELP_CONTENT,
      faqList: constants_help.HELP_CONTENT.FAQ_LIST.map((item) => ({
        ...item,
        isOpen: false
      }))
    };
  },
  methods: {
    toggleFaq(index) {
      this.faqList[index].isOpen = !this.faqList[index].isOpen;
    },
    makePhoneCall() {
      common_vendor.index.makePhoneCall({
        phoneNumber: constants_help.HELP_CONTENT.CONTACT.PHONE.VALUE
      });
    }
  }
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return {
    a: common_vendor.f($data.faqList, (item, index, i0) => {
      return {
        a: common_vendor.t(item.question),
        b: item.isOpen ? 1 : "",
        c: common_vendor.t(item.answer),
        d: item.isOpen,
        e: index,
        f: common_vendor.o(($event) => $options.toggleFaq(index), index)
      };
    }),
    b: common_vendor.t($data.HELP_CONTENT.CONTACT.TITLE),
    c: common_vendor.t($data.HELP_CONTENT.CONTACT.PHONE.LABEL),
    d: common_vendor.t($data.HELP_CONTENT.CONTACT.PHONE.VALUE),
    e: common_vendor.o((...args) => $options.makePhoneCall && $options.makePhoneCall(...args)),
    f: common_vendor.t($data.HELP_CONTENT.CONTACT.SERVICE_TIME.LABEL),
    g: common_vendor.t($data.HELP_CONTENT.CONTACT.SERVICE_TIME.VALUE)
  };
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e6af2099"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/help/index.js.map
