"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-BB7fFseo.cjs"),o=s=>(e.pushScopeId("data-v-3d942269"),s=s(),e.popScopeId(),s),i={class:"contact-us"},l=o(()=>e.createBaseVNode("i",{class:"iconfont icon-form-tel"},null,-1)),d=o(()=>e.createBaseVNode("div",{class:"txt"},"联系我们",-1)),p=[l,d],u=o(()=>e.createBaseVNode("i",{class:"iconfont icon-form-delete"},null,-1)),_=[u],f={key:0,class:"tel"},m=o(()=>e.createBaseVNode("i",{class:"iconfont icon-form-tel"},null,-1)),v=["href"],B={key:1,class:"qrcode"},h=o(()=>e.createBaseVNode("span",null,"扫码添加",-1)),k=["src"],N=o(()=>e.createBaseVNode("div",{class:"mask"},null,-1)),V=e.defineComponent({__name:"ContactUs",props:{attrs:{},isActive:{type:Boolean}},setup(s){const c=e.inject("editable"),a=e.inject("isMobileSize"),n=e.ref(),r=()=>{e.contactUsWidget.value=void 0};return(t,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createBaseVNode("div",i,[e.createBaseVNode("div",{ref_key:"contactUsRef",ref:n,class:e.normalizeClass(["main",[e.unref(a)?"mobile":"pc",{active:t.isActive}]])},p,2),e.unref(c)&&t.isActive?(e.openBlock(),e.createElementBlock("div",{key:0,class:"action",onClick:r},_)):e.createCommentVNode("",!0)]),e.unref(c)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(e.ElPopover),{key:0,placement:"left","virtual-ref":n.value,"virtual-triggering":"","show-arrow":!1,offset:20,trigger:"click",disabled:!t.attrs.qrcode&&!t.attrs.tel,width:170,"append-to-body":!0,"popper-style":{padding:"10px"}},{default:e.withCtx(()=>[e.createBaseVNode("div",{class:e.normalizeClass(["popover-view",{mobile:e.unref(a)}])},[t.attrs.tel?(e.openBlock(),e.createElementBlock("div",f,[m,e.createBaseVNode("a",{href:`tel:${t.attrs.tel}`},e.toDisplayString(t.attrs.tel),9,v)])):e.createCommentVNode("",!0),t.attrs.qrcode?(e.openBlock(),e.createElementBlock("div",B,[h,e.createBaseVNode("img",{src:t.attrs.qrcode,alt:""},null,8,k)])):e.createCommentVNode("",!0)],2)]),_:1},8,["virtual-ref","disabled"])),N],64))}}),g=e._export_sfc(V,[["__scopeId","data-v-3d942269"]]);exports.default=g;
