"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
  __name: "AgreementPopup",
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    type: {
      type: String,
      default: "user"
      // 'user' 或 'privacy'
    }
  },
  emits: ["update:visible"],
  setup(__props, { emit: __emit }) {
    const props = __props;
    const emit = __emit;
    const title = common_vendor.computed(() => {
      return props.type === "user" ? "用户服务协议" : "隐私政策";
    });
    const handleClose = () => {
      emit("update:visible", false);
    };
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: common_vendor.o(handleClose),
        b: common_vendor.t(title.value),
        c: common_vendor.o(handleClose),
        d: __props.type === "user"
      }, __props.type === "user" ? {} : {}, {
        e: __props.visible ? 1 : "",
        f: common_vendor.gei(_ctx, "")
      });
    };
  }
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-26c25bcb"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/agreement/AgreementPopup.js.map
