import{l as t}from"./i18n-B98kiI7M.js";const n="($1) $2-$3",r=/^\d{10}$/,e=/(\d{3})(\d{3})(\d{4})/,o=/^1\d{10}$/,s=/1(\d{3})(\d{3})(\d{4})$/;function u(u,c){return function(t){const n=function(t){if(!t)return null;const[,n]=t.split("-");return n}(t);if("US"===n||"CA"===n)return!0;return!1}(c||t)?r.test(u)?u.replace(e,n):o.test(u)?u.replace(s,n):u||"":u}export{u as t};
