"use strict";const e=require("../../../common/vendor.js");require("../../index.js"),require("../../url/index.js"),require("../../store/index.js"),require("../../store/app.js"),require("../../api/promotion/diy.js"),require("../../request/index.js"),require("../../config/index.js"),require("../../platform/index.js"),require("../../platform/provider/wechat/index.js"),require("../../platform/provider/wechat/miniProgram.js"),require("../../api/member/auth.js"),require("../../api/member/social.js"),require("../../api/member/user.js"),require("../../platform/provider/apple/index.js"),require("../../platform/share.js"),require("../../router/index.js"),require("../../hooks/useModal.js"),require("../../helper/index.js"),require("../../helper/test.js"),require("../../helper/digit.js"),require("../../api/member/signin.js"),require("../../helper/throttle.js"),require("../../platform/pay.js"),require("../../api/pay/order.js"),require("../../store/user.js"),require("../../store/cart.js"),require("../../api/trade/cart.js"),require("../../api/pay/wallet.js"),require("../../api/trade/order.js"),require("../../api/promotion/coupon.js"),require("../../store/sys.js"),require("../../store/modal.js"),require("../../config/zIndex.js");const r={__name:"su-video",props:{moveX:{type:[Number],default:0},uid:{type:[Number,String],default:0},height:{type:Number,default:300},width:{type:Number,default:750},initialTime:{type:Number,default:1},src:{type:String,default:""},poster:{type:String,default:"https://img1.baidu.com/it/u=1601695551,235775011&fm=26&fmt=auto"},autoplay:{type:Boolean,default:!1}},emits:["videoTimeupdate"],setup(r,{expose:i,emit:t}){const s=e.getCurrentInstance(),o=e.reactive({enableProgressGesture:!1,showModal:!1}),u=r,a=t,p=e=>{a("videoTimeupdate",e)},d=e=>{console.log("视频错误信息:",e.target.errMsg)},n=()=>{console.log("视频开始")},l=()=>{console.log("视频暂停")},m=()=>{console.log("视频结束")};return i({pausePlay:()=>{e.index.createVideoContext(`sVideo${u.index}`,s).pause()}}),(i,t)=>({a:`sVideo${r.uid}`,b:e.s({height:r.height+"rpx"}),c:r.src,d:o.enableProgressGesture,e:r.initialTime,f:e.o(d),g:e.o(p),h:e.o(n),i:e.o(l),j:e.o(m),k:r.poster,l:r.autoplay})}},i=e._export_sfc(r,[["__scopeId","data-v-f5e784aa"]]);wx.createComponent(i);
