import{d as D,r as f,G as E,s as x,m as C,V as R,j as c,o as p,h as b,w as r,b as n,y as g,e as i,f as v,c as I,i as N}from"./index-90c78f99.js";const Y="data:image/png;base64,[encoded data, 5156 characters]",U=["onMousemove"],V=n("div",{class:"box cursor-pointer"},[n("img",{src:Y})],-1),S=[V],K=n("span",null,"意见反馈",-1),O=n("span",null,"反馈进度",-1),k=n("span",null,"反馈处理",-1),X=D({__name:"feedback-icon",props:{svgIconName:{type:String,default:"yjfk-icon"},type:{type:Number,default:1}},setup(B){const s=f(),e=E({flags:!1,position:{x:0,y:0},nx:0,ny:0,dx:0,dy:0,xPum:0,yPum:0,firstTime:0,lastTime:0});function y(o){e.firstTime=new Date().getTime(),e.flags=!0,e.position.x=o.clientX,e.position.y=o.clientY,e.dx=s.value.offsetLeft,e.dy=s.value.offsetTop}function w(o){if(e.flags){const t=o;e.nx=t.clientX-e.position.x,e.ny=t.clientY-e.position.y,e.xPum=e.dx+e.nx,e.yPum=e.dy+e.ny;const l=window.innerWidth-s.value.offsetWidth,a=window.innerHeight-s.value.offsetHeight;e.xPum<0&&(e.xPum=0),e.yPum<0&&(e.yPum=0),e.xPum>l&&(e.xPum=l),e.yPum>a&&(e.yPum=a),s.value.style.left=e.xPum+"px",s.value.style.top=e.yPum+"px"}}function d(){e.lastTime=new Date().getTime(),e.flags=!1}const m=x(C.userStore).userInfo,A=f(!1);function h(){if(e.lastTime-e.firstTime>200)return!1;A.value=!0}return window.addEventListener("mouseup",d),R(()=>{window.removeEventListener("mouseup",d)}),(o,t)=>{const l=c("ArrowRightBold"),a=c("el-icon"),j=c("el-dialog"),P=c("views");return p(),b(P,null,{default:r(()=>[n("div",{id:"moveDiv",ref_key:"kefu",ref:s,class:"xuanfu",onMousedown:y,onMousemove:g(w,["stop"]),onClick:h},S,40,U),i(j,{modelValue:A.value,"onUpdate:modelValue":t[3]||(t[3]=u=>A.value=u),width:"400",title:"反馈"},{default:r(()=>[n("p",{class:"flex items-center pb-16 justify-between cursor-pointer border-b-[1px] border-[#DCDEE2] hover-primary",onClick:t[0]||(t[0]=u=>o.$router.push({name:"feedback"}))},[K,i(a,null,{default:r(()=>[i(l)]),_:1})]),n("p",{class:"flex items-center pt-16 justify-between cursor-pointer hover-primary",onClick:t[1]||(t[1]=u=>o.$router.push({name:"feedbackProgress"}))},[O,i(a,null,{default:r(()=>[i(l)]),_:1})]),v(m)&&v(m).companyName==="大数据局"?(p(),I("p",{key:0,class:"flex items-center pt-16 mt-16 justify-between cursor-pointer hover-primary border-t-[1px] border-[#DCDEE2]",onClick:t[2]||(t[2]=u=>o.$router.push({name:"feedbackHandle"}))},[k,i(a,null,{default:r(()=>[i(l)]),_:1})])):N("",!0)]),_:1},8,["modelValue"])]),_:1})}}});export{X as _};
