"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
  const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
  _easycom_uni_popup2();
}
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
  _easycom_uni_popup();
}
const _sfc_main = {
  __name: "BasicModal",
  props: {
    open: { type: Boolean, default: false },
    isMack: { type: Boolean, default: true }
  },
  emits: ["update:open"],
  setup(__props, { emit: __emit }) {
    const props = __props;
    const emit = __emit;
    const popup = common_vendor.ref();
    const getOpen = common_vendor.computed({
      get: () => props.open,
      set: (val) => emit("update:open", val)
    });
    common_vendor.watch(getOpen, (v) => {
      v && common_vendor.unref(popup).open();
      !v && common_vendor.unref(popup).close();
    });
    function handleChange({ show }) {
      getOpen.value = show;
    }
    return (_ctx, _cache) => {
      return {
        a: common_vendor.sr(popup, "41038859-0", {
          "k": "popup"
        }),
        b: common_vendor.o(handleChange),
        c: common_vendor.p({
          ..._ctx.$attrs,
          ["is-mask-click"]: __props.isMack,
          ["safe-area"]: false
        })
      };
    };
  }
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-41038859"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/Modal/BasicModal.js.map
