import{o as r,c as l,a as p,F as u,i as h,d as m,t as d,n as _,_ as f}from"./index.js";const b={class:"car-number-chars car-number-chars-1"},z={class:"car-number-chars car-number-chars-2"};function S(i,t,s,n,e,c){return r(),l("div",{class:_(["car-number-plate-container",[`car-number-plate-container_size-${e.localSize}`]])},[p("div",{class:_(["car-number-plate",[`car-number-plate_${s.currentType}`]])},[p("div",b,[(r(!0),l(u,null,h(e.symbols[0],(a,y)=>(r(),l("span",{style:m(a[1])},d(a[0].toUpperCase()),5))),256))]),p("div",z,[(r(!0),l(u,null,h(e.symbols[1],(a,y)=>(r(),l("span",{style:m(a[1])},d(a[0].toUpperCase()),5))),256))])],2)],2)}const o=.85,v={props:["inputs","currentType","placeholders","size"],data(){return{symbols:{0:[],1:[]},localSize:"l"}},mounted(){this.size!==void 0&&(this.localSize=this.size),this.reloadSymbols()},methods:{reloadSymbols(){let i=[],t="",s={},n=1;[0,1].forEach(e=>{i=[],this.inputs[e].length==0?this.placeholders[e]&&(t=this.placeholders[e],n=.4):this.localSize==="s"?t=this.inputs[e].replace(/\s/g,""):t=this.inputs[e];for(let c of t)s={opacity:n},this.currentType=="custom"&&/\d/.test(c)&&(s.fontFamily="RoadNumbers2.0",this.localSize=="m"?(s.fontSize=`${3*o}vh`,s.marginTop=`${.4*o}vh`):this.localSize!=="s"&&(s.fontSize=`${11.33*o}vh`,s.marginTop=`${.2*o}vh`)),i.push([c,s]);this.symbols[e]=i})}},watch:{inputs(){this.reloadSymbols()}}},C=f(v,[["render",S],["__scopeId","data-v-157d2ef9"]]);export{C};
