"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-BB7fFseo.cjs"),s=a=>(e.pushScopeId("data-v-b65be1ea"),a=a(),e.popScopeId(),a),r={class:"signature-setting-container"},u={class:"header"},p={class:"header-left"},v=s(()=>e.createBaseVNode("div",{class:"left-title"},"水印",-1)),h=s(()=>e.createBaseVNode("i",{class:"iconfont icon-form-question"},null,-1)),g=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/watermark-tip@1x.jpg",alt:"水印示例"})])],-1)),m={class:"header-right"},_={key:0,class:"setting-info"},f={class:"checkbox-item"},w={class:"item-title"},b=s(()=>e.createBaseVNode("i",{class:"iconfont icon-form-question"},null,-1)),V=e.defineComponent({__name:"WatermarkSetting",setup(a){const i=e.computed({get:()=>e.activeWidgetAttrs.value.enabled,set:o=>{e.setWidgetAttrs({attr:"enabled",value:o}),o&&e.setWidgetAttrs({attr:"showUploadTime",value:!0})}}),d=e.computed(()=>[{label:"上传时间",value:e.activeWidgetAttrs.value.showUploadTime,tooltip:"勾选后，签名图片将展示提交时间",type:"showUploadTime"},{label:"填表人",value:e.activeWidgetAttrs.value.showFiller,tooltip:"勾选后，签名图片将展示填表人名称",type:"showFiller"},{label:"定位",value:e.activeWidgetAttrs.value.showLocation,tooltip:"勾选后，签名图片将展示提交时的地理位置，需填表人授权",type:"showLocation"},{label:"二维码",value:e.activeWidgetAttrs.value.showQRCode,tooltip:"勾选后，签名图片将展示提交时的数据二维码，扫码可查看详细填写内容",type:"showQRCode"},{label:"标注“仅限本次使用”",value:e.activeWidgetAttrs.value.showOneTimeUseTag,tooltip:"勾选后，签名图片将增加背景斜纹，标注仅限本次使用",type:"showOneTimeUseTag"}]),n=(o,l)=>{e.setWidgetAttrs({attr:o,value:l}),!e.activeWidgetAttrs.value.showUploadTime&&!e.activeWidgetAttrs.value.showFiller&&!e.activeWidgetAttrs.value.showLocation&&!e.activeWidgetAttrs.value.showQRCode&&!e.activeWidgetAttrs.value.showOneTimeUseTag&&e.setWidgetAttrs({attr:"enabled",value:!1})};return(o,l)=>(e.openBlock(),e.createElementBlock("div",r,[e.createBaseVNode("div",u,[e.createBaseVNode("div",p,[v,e.createVNode(e.unref(e.ElTooltip),{placement:"bottom",effect:"light"},{content:e.withCtx(()=>[g]),default:e.withCtx(()=>[h]),_:1})]),e.createBaseVNode("div",m,[e.createVNode(e.unref(e.ElSwitch),{class:"switch","active-value":!0,"inactive-value":!1,modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=t=>i.value=t)},null,8,["modelValue"])])]),i.value?(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,t=>(e.openBlock(),e.createBlock(e.unref(e.ElCheckbox),{modelValue:t.value,"onUpdate:modelValue":c=>t.value=c,onChange:c=>n(t.type,c)},{default:e.withCtx(()=>[e.createBaseVNode("div",f,[e.createBaseVNode("div",w,e.toDisplayString(t.label),1),e.createVNode(e.unref(e.ElTooltip),{placement:"top",content:t.tooltip},{default:e.withCtx(()=>[b]),_:2},1032,["content"])])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),256))])):e.createCommentVNode("",!0)]))}}),B=e._export_sfc(V,[["__scopeId","data-v-b65be1ea"]]);exports.default=B;
