import{_ as e,b8 as a,b as s,d as l,p as t,w as c,H as i,i as u,o as n,f as r,k as o,t as d,a5 as h,ag as f}from"./index-2PZN6pGH.js";var m=[["camera"],["album"],["camera","album"]];const p=e({data:()=>({title:"chooseVideo",sourceTypeIndex:2,sourceType:["拍摄","相册","拍摄或相册"],src:"",cameraList:[{value:"back",name:"后置摄像头",checked:"true"},{value:"front",name:"前置摄像头"}],cameraIndex:0}),onUnload(){this.src="",this.sourceTypeIndex=2,this.sourceType=["拍摄","相册","拍摄或相册"]},methods:{radioChange(e){for(let a=0;a{this.src=e.tempFilePath},fail:e=>{}})}}},[["render",function(e,a,m,p,y,T){const _=s(l("page-head"),i),g=u,v=h,x=f;return n(),t(g,null,{default:c((()=>[r(_,{title:y.title},null,8,["title"]),r(g,{class:"uni-common-mt"},{default:c((()=>[r(g,{class:"uni-list"},{default:c((()=>[r(g,{class:"uni-list-cell"},{default:c((()=>[r(g,{class:"uni-list-cell-left"},{default:c((()=>[r(g,{class:"uni-label"},{default:c((()=>[o("视频来源")])),_:1})])),_:1}),r(g,{class:"uni-list-cell-right"},{default:c((()=>[r(v,{range:y.sourceType,onChange:T.sourceTypeChange,value:y.sourceTypeIndex},{default:c((()=>[r(g,{class:"uni-input"},{default:c((()=>[o(d(y.sourceType[y.sourceTypeIndex]),1)])),_:1})])),_:1},8,["range","onChange","value"])])),_:1})])),_:1})])),_:1})])),_:1}),y.src?(n(),t(x,{key:1,src:y.src,class:"video"},null,8,["src"])):(n(),t(g,{key:0,class:"uni-hello-addfile",onClick:T.chooseVideo},{default:c((()=>[o("+ 添加视频")])),_:1},8,["onClick"]))])),_:1})}],["__scopeId","data-v-990638e9"]]);export{p as default};