System.register(["./index-legacy-f073bf97.js"],(function(t,n){"use strict";var e,i,a,o,A;return{setters:[t=>{e=t.d,i=t.r,a=t.e,o=t.y,A=t.f}],execute:function(){var n=document.createElement("style");n.textContent="._wrap_3lsnj_1{max-width:100%;overflow:hidden;display:flex;align-items:center}._wrap_3lsnj_1._isAnitaion_3lsnj_7 ._notice_3lsnj_7,._wrap_3lsnj_1:hover ._notice_3lsnj_7{width:auto;overflow:initial}._notice_3lsnj_7{transition-duration:5s;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition-timing-function:linear}\n",document.head.appendChild(n),t("a","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=="),t("i","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/////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lymOYNREghwYgJWlVEvFZjmkJXMwAjJP1Q4nlO22SxvFJtNOhY0LLRJsfY4dCPR5EX2o6tNOmAOtXoDvF4NK1MJirt9lGezspONs3mkGmVwq4MY4ZG6cLJLHU11WEYY1f0y8sQz9PNzcjCAtOMDcIEP3eNCkyOHuT26RJ6NAxTQtyFLhJ+9SSzNfZyBKY4udLCmOkpXEbwNosc6+WW9cLPegl628Ww9bLceoNgvVWx3jRZb9+sN5K31tJab66tt/nWXzhYf/XxP1/CWH8d9A98BgCf4ervbgAAAABJRU5ErkJggg==");const s="_wrap_3lsnj_1",r="_isAnitaion_3lsnj_7",l="_notice_3lsnj_7",c=t=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t()}))}))};t("T",e({name:"TheNoticeBar",props:{text:{type:String,default:""},isAnimation:{type:Boolean,default:!1}},setup(t){const n=i(),e=i(),f=a({isActive:!1,wrapWidth:0,contentWidth:0,contentStyle:{transitionDuration:"0s",transform:"translateX(0px)"},time:null}),d=()=>{!f.isActive&&e.value&&n.value&&(f.isActive=!0,f.contentWidth=e.value.getBoundingClientRect().width,f.wrapWidth=n.value.getBoundingClientRect().width,u())},u=()=>{if(f.contentWidth<=f.wrapWidth||!f.isActive)return f.contentStyle.transitionDuration="0s",void(f.contentStyle.transform="translateX(0px)");f.contentStyle.transitionDuration="5s",f.contentStyle.transform="translateX(-100%)",f.time=setTimeout((()=>{f.contentStyle.transitionDuration="0s",f.contentStyle.transform=`translateX(${f.wrapWidth}px)`,c(u)}),5e3)},g=()=>{clearTimeout(f.time),f.isActive=!1,f.contentStyle.transitionDuration="0s",f.contentStyle.transform="translateX(0px)",f.time=null};return o((()=>t.isAnimation),(t=>{c(t?d:g)})),()=>A("div",{ref:n,class:[s,t.isAnimation?r:""],onMouseenter:()=>!t.isAnimation&&d(),onMouseleave:()=>!t.isAnimation&&g()},[A("div",{ref:e,style:f.contentStyle,class:l},[t.text])])}}))}}}));