import{d as m,r,e as g,z as u,f as l}from"./index-b1b92161-1694073636386.js";const R="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAMAAAAPzWOAAAAAwFBMVEX///8AAAD////9/f3///////////////////8FBQVMTEz19fUJCQkqKio4ODhBQUGSkpLIyMj///////////////////////////////////////////////////////////8dHR0aGhoRERFycnLc3Nzv7+/q6uoWFhYiIiIwMDBHR0dbW1t5eXmDg4ONjY2JiYmtra23t7e+vr67u7vExMTf39/l5eVVVVVpaWlnZ2d3d3enp6fPz8/T09MAAACM0PN4AAAAP3RSTlPMABzMyLSTQwX+7c789PLv39XBwL2mpImAem1pZ1tKMCj4+Prm0s/P+fbz7urk4uDg2tjX19XR0Ovn5+Tb1NN/7vKiAAAC0UlEQVRYw7WY6XrqIBCGp8SYRK3GXatV61brUtfW7rn/uzpAHk06A1aD5/vjw8z4BsiEAeBGK9Zp1at2JZWq2NV6q8P0kRqI6zRsQLIbjnsBpNcsg1LlZu9MSDcNJ5TungFhGEEx7A+I207Bn0q13VMQVoOzVGN6iFOCM1VydJB7uED3asgdXKQ7CpGMpBRAY7loRBjiQAI5vyGslARSYnGIW4NEqrkxSBsSqh1BWCopJMWOkDQkVvoA6aq83/7n0N9ZIGXt/OGn/w0KdQVE2RHLfwqk+sMxwHjYD1tPvkW7EkJ6xDG6DY562O36Uet2BFg9CWlic3EQaDUoAlJTQFy8nj72ZfR8tXx/OPbnfbmaS3b/Ea+77g3QhM+I2IyMtZY50cgtLUkPPST5OaSBbC8icnFobbwg8DaH1kL4XtAfGhyC68ucx02jt/A1GHxFb23KnXNcj26AAdKEx8Vnz7Lic86dE0Bi0EGWvZhG0EpM9R7ZOtASP+hZBT2kgPop1II6ndfTEDqzdajiLBHprYeIzwFnShVI8c/xvLB0DEt4sdGGCjaJ72atg6zF94ONFSDr0QJlJcnmBVmZKGTE47yRmjHyuHNEIRXAyvPAmRoy46480OHYxLYJdLOyFp4N0Imtqgc+eaX214l6uqpQVwTnxDvIYnNWvLcchXNEC6j8gGtmoRSZCasPVC3ogEIfIr6Q/dWPgrB9ABVHMGViyn/kx5FlnJdcZSozuShRjadyZS0ev2252k45lcqOlkekrHyy92zJjj17smfR+PDy6ICakgkLzRZgG5ahjJoBTlQyqMLHB/l8EHYK1Cq7seJFtY2Vvv4WNGqiMoqVHXohwhtmQaceKuhUP2+i7rz9gFZpurWg2q9W+1P+7jU3OebbLfONn/kW9NqbYfNtufkBwfyoYn5oMj++mR8kr3akNT9cmx/zzS8czK8+/ucljPl10D+nrmo4jdGd2gAAAABJRU5ErkJggg==",j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAMAAAAPzWOAAAABXFBMVEX///8AAAD/////////////////////////////////////3+b/////////////////////////////////////pLb/8PP/9/n/usj/09v/+/3/NF3/nbH/p7n/bIr/lqz/rr//5uv/0dr/X4D/lKn/V3j/jaT/boz/QGj/Xn//ssL/iKD/gZz/ydT/o7b/s8L/wc7/QWj/LFf/N1//gZr/THD/aYf/jKT/ZYT/Vnj/WXz/vsv/PGP/TXH/WXr/V3j/fpj/YID/ZYT/UXT/OWH/dJD/cI3/a4n/YoL/XX7/SG3/bov/aYf/Z4X/W3z/Sm//RGr/KVT/Qmj/M1z/MFr/hp7/fJb/dpL/PmX/Nl//g5z/eZT/T3P/QGf/IE3/gJr/co7/Rmz/U3b/JlL/Ik//i6L/VXf/G0n/LVj/GEf/kaf/iKH/JFH/HUv/jaT/epX/K1f/////9/n/t8ZcHWQ1AAAAPHRSTlPMABzIwbSlk2hDBdW9iYB6bVtKMCjn0s7d3M379O/q5d7W1fv6+fj29vHs6Ofh3t3a+/j39vb08PDw7ejaLmX2AAADo0lEQVRYw7WY91MaQRTHvznggAMkAoo1lvTeOy0QCE3RAwHFgthQY9T4/8/k3cJZdu8snPnM8AMM7zNv97a8d7hjihRw+WSH12bzOmSfKyCZ/9NEorj7HOBw9LmVG0hCfjsMsftD15QEnbgEZ/AaEolXiBrpConisuFKbC7lMokk41rIkrnE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AAABJRU5ErkJggg==",B="_wrap_3lsnj_1",E="_isAnitaion_3lsnj_7",d="_notice_3lsnj_7",a={wrap:B,isAnitaion:E,notice:d},o=n=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})},p=m({name:"TheNoticeBar",props:{text:{type:String,default:""},isAnimation:{type:Boolean,default:!1}},setup(n){const e=r(),i=r(),t=g({isActive:!1,wrapWidth:0,contentWidth:0,contentStyle:{transitionDuration:"0s",transform:"translateX(0px)"},time:null}),A=()=>{t.isActive||!i.value||!e.value||(t.isActive=!0,t.contentWidth=i.value.getBoundingClientRect().width,t.wrapWidth=e.value.getBoundingClientRect().width,s())},s=()=>{if(t.contentWidth<=t.wrapWidth||!t.isActive){t.contentStyle.transitionDuration="0s",t.contentStyle.transform="translateX(0px)";return}t.contentStyle.transitionDuration="5s",t.contentStyle.transform="translateX(-100%)",t.time=setTimeout(()=>{t.contentStyle.transitionDuration="0s",t.contentStyle.transform="translateX(".concat(t.wrapWidth,"px)"),o(s)},5*1e3)},c=()=>{clearTimeout(t.time),t.isActive=!1,t.contentStyle.transitionDuration="0s",t.contentStyle.transform="translateX(0px)",t.time=null};return u(()=>n.isAnimation,f=>{o(f?A:c)}),()=>l("div",{ref:e,class:[a.wrap,n.isAnimation?a.isAnitaion:""],onMouseenter:()=>!n.isAnimation&&A(),onMouseleave:()=>!n.isAnimation&&c()},[l("div",{ref:i,style:t.contentStyle,class:a.notice},[n.text])])}});export{p as T,R as a,j as i};
