"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-BB7fFseo.cjs"),s=a=>(e.pushScopeId("data-v-f9720727"),a=a(),e.popScopeId(),a),i=s(()=>e.createBaseVNode("div",{class:"setting-item-title"},"上传方式",-1)),r={class:"setting-container"},n={class:"select-item select-item-column"},u={class:"value-box"},m={class:"select-item select-item-row watermark-row"},p={class:"key"},_=s(()=>e.createBaseVNode("span",null,"图片水印防作假",-1)),V=s(()=>e.createBaseVNode("i",{class:"iconfont icon-form-question"},null,-1)),h=s(()=>e.createBaseVNode("div",{class:"tooltip-container"},[e.createBaseVNode("p",{class:"tooltip-title"},"图片水印防作假"),e.createBaseVNode("p",{class:"tooltip-subtitle"},"开启后，上传的图片会标注时间、地点和上传人，适用于现场作业，防止作假"),e.createBaseVNode("div",{class:"tooltip-img-block"},[e.createBaseVNode("img",{src:"https://static.bmwax.cn/form_static/images/widget/image-watermark-tip.jpg",alt:"显示规则示例"})])],-1)),v={class:"value-box"},g=e.defineComponent({__name:"ImageSetting",setup(a){const l=e.computed({get:()=>{var t;return((t=e.activeWidgetAttrs.value)==null?void 0:t.uploadMethods)||[]},set:t=>{if(t.length===0){e.ElMessage.warning("至少选择 1 种上传方式");return}e.setWidgetAttrs({attr:"uploadMethods",value:[...t]})}}),d=e.computed({get:()=>{var t;return!!((t=e.activeWidgetAttrs.value)!=null&&t.watermark)},set:t=>e.setWidgetAttrs({attr:"watermark",value:t})});return(t,o)=>(e.openBlock(),e.createElementBlock("div",null,[i,e.createBaseVNode("div",r,[e.createBaseVNode("div",n,[e.createBaseVNode("div",u,[e.createVNode(e.unref(e.ElCheckboxGroup),{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=c=>l.value=c),class:"methods-group"},{default:e.withCtx(()=>[e.createVNode(e.unref(e.ElCheckbox),{value:"camera"},{default:e.withCtx(()=>[e.createTextVNode("拍照上传")]),_:1}),e.createVNode(e.unref(e.ElCheckbox),{value:"album"},{default:e.withCtx(()=>[e.createTextVNode("从相册选择")]),_:1}),e.createVNode(e.unref(e.ElCheckbox),{value:"wechat"},{default:e.withCtx(()=>[e.createTextVNode("从微信聊天中选择")]),_:1})]),_:1},8,["modelValue"])])]),e.createBaseVNode("div",m,[e.createBaseVNode("div",p,[_,e.createVNode(e.unref(e.ElTooltip),{placement:"bottom",effect:"light"},{content:e.withCtx(()=>[h]),default:e.withCtx(()=>[V]),_:1})]),e.createBaseVNode("div",v,[e.createVNode(e.unref(e.ElSwitch),{modelValue:d.value,"onUpdate:modelValue":o[1]||(o[1]=c=>d.value=c)},null,8,["modelValue"])])])])]))}}),f=e._export_sfc(g,[["__scopeId","data-v-f9720727"]]);exports.default=f;
