import{fa as c,ga as i}from"./chunk-6PWFR42O.js";var d={mask:["+","7"," ","(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,"-",/\d/,/\d/],postprocessors:[c("+7 ")],preprocessors:[l()],plugins:[i((t,[s,e])=>[s===e?3:0,t.length])]};function l(){let t=e=>e.replace(/^(\+?7?\s?8?)\s?/,""),s=e=>e.replace(/\D/g,"").length;return({elementState:e,data:o})=>{let{value:r,selection:a}=e,n=s(r);return{elementState:{selection:a,value:n>11?t(r):n==11&&r.startsWith("8")?`+7${t(r)}`:r},data:s(o)>=11?t(o):o}}}export{d as a};
//# sourceMappingURL=chunk-7O3WP2YW.js.map
