import{w as p}from"./dom.js";import{o as s,c as o,a as c,F,i as E,d as w,j as I,n as x,_ as g,y as l,Q as h,H as T,K as A,J as C}from"./index.js";/* empty css                                                           */function K(t){let e=t.toString();return e.length===6?e.replace(/(\d{2})(\d{2})(\d{2})/,"$1-$2-$3"):e.length===7?e.replace(/(\d{3})(\d{2})(\d{2})/,"$1-$2-$3"):t}function D(t,e,d,n,r,a){return s(),o("div",{class:x(["running-line",n.classes]),ref:"line"},[c("div",{class:"running-line__content",style:w({animationDuration:`${n.animationSpeed}s`,justifyContent:n.justifyContent})},[(s(!0),o(F,null,E(n.lineIsActive?2:1,i=>(s(),o("div",{class:"running-line__string",ref_for:!0,ref:"strings",key:i,style:w(n.stringStyles)},[I(t.$slots,"default",{onSlotchange:e[0]||(e[0]=(...u)=>n.updateLine&&n.updateLine(...u))},void 0,!0)],4))),128))],4)],2)}const S=5,y=.74,M={props:{isAutoActivated:{default:!1},isActive:{default:!1},isActiveOnHover:{default:!1},minWidth:{default:"auto"},direction:{type:String,default:"ltr",validator:t=>["ltr","rtl"].includes(t)}},setup(t){const e=l(!1),d=l(S),n=l(null),r=l(null);let a=0,i=0;const u=h(()=>({"running-line_active":e.value,"running-line_on-hover-active":t.isActiveOnHover})),m=h(()=>t.direction==="rtl"?"flex-end":"flex-start"),H=h(()=>({minWidth:t.minWidth,justifyContent:m.value,...t.direction==="ltr"?{marginRight:`${y}vh`}:{marginLeft:`${y}vh`}}));T(()=>{p(()=>{f()})});const f=()=>{!n.value||!r.value[0]||(i=A(n.value).offsetWidth,a=A(r.value[0]).offsetWidth,e.value=L(i,a),d.value=$(i,a))},L=(_,v)=>t.isAutoActivated&&!t.isActive?v>_:t.isActive,$=(_,v)=>v/_*S;return C(()=>t.isActive,f),{classes:u,justifyContent:m,stringStyles:H,line:n,strings:r,lineIsActive:e,animationSpeed:d,updateLine:f}}},Q=g(M,[["render",D],["__scopeId","data-v-3b613a11"]]),k={},R={width:"451",height:"421",viewBox:"0 0 451 421",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V=c("path",{d:"M1 311.5L1 1L29.0625 17H57.125H113.25H225.5H337.75H393.875H421.937L450 1V311.5",stroke:"#F8F6ED","stroke-opacity":"0.25"},null,-1),W=c("path",{d:"M1 312V420C150.079 399.841 300.921 399.841 450 420V312H1Z",stroke:"#F8F6ED","stroke-opacity":"0.25"},null,-1),B=[V,W];function j(t,e){return s(),o("svg",R,B)}const U=g(k,[["render",j]]),O={},N={width:"18",height:"22",viewBox:"0 0 18 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P=c("path",{d:"M18 15.7143L9 0L0 15.7143H6.92144V22H11.0784V15.7143H18Z",fill:"#F8F6ED","fill-opacity":"0.7"},null,-1),z=[P];function G(t,e){return s(),o("svg",N,z)}const X=g(O,[["render",G]]),q={TITLE:"Репутация",DESCRIPTION:"Участвуйте в схватках за территории и поднимайте свой рейтинг в лиге улиц."};export{U as I,q as M,Q as R,X as a,K as f};
