"use strict";var t=require("./i18n-CP31jeWH.js");const r="($1) $2-$3",e=/^\d{10}$/,n=/(\d{3})(\d{3})(\d{4})/,u=/^1\d{10}$/,c=/1(\d{3})(\d{3})(\d{4})$/;exports.toNorthAmericanPhoneNumber=function(o,i){return function(t){const r=function(t){if(!t)return null;const[,r]=t.split("-");return r}(t);if("US"===r||"CA"===r)return!0;return!1}(i||t.locale)?e.test(o)?o.replace(n,r):u.test(o)?o.replace(c,r):o||"":o};
