"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
  __name: "index",
  props: {
    imgUrls: {
      type: Array,
      default: () => []
    },
    videoline: {
      type: String,
      default: ""
    }
  },
  setup(__props) {
    const props = __props;
    const indicatorDots = common_vendor.ref(true);
    const circular = common_vendor.ref(true);
    const autoplay = common_vendor.ref(true);
    const interval = common_vendor.ref(3e3);
    const duration = common_vendor.ref(500);
    const currents = common_vendor.ref("1");
    const controls = common_vendor.ref(true);
    common_vendor.ref(true);
    const videoContext = common_vendor.ref("");
    common_vendor.onMounted(() => {
      if (props.videoline) {
        props.imgUrls.shift();
      }
    });
    const bindPause = () => {
      videoContext.value.play();
      controls.value = false;
      autoplay.value = false;
    };
    const change = (e) => {
      currents.value = e.detail.current + 1;
    };
    const videoPause = (e) => {
    };
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: __props.videoline
      }, __props.videoline ? {
        b: __props.videoline,
        c: __props.imgUrls[0],
        d: common_vendor.o(videoPause),
        e: !controls.value,
        f: __props.imgUrls[0],
        g: controls.value,
        h: common_assets._imports_0,
        i: controls.value,
        j: common_vendor.o(bindPause)
      } : {}, {
        k: common_vendor.f(__props.imgUrls, (item, index, i0) => {
          return {
            a: item,
            b: index
          };
        }),
        l: indicatorDots.value,
        m: autoplay.value,
        n: circular.value,
        o: interval.value,
        p: duration.value,
        q: common_vendor.o(change)
      });
    };
  }
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-afea8b02"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/productConSwiper/index.js.map
