import{D as l}from"./vendor-datetime.430013a3.js";import{u as m}from"./vendor-phone.81e539bd.js";import"./app-core.82d0a9b8.js";import{_ as p}from"./_plugin-vue_export-helper.eefbdd86.js";import{as as c,f as d,Q as f,P as _}from"./vendor-vue-ui.02763c14.js";import{_ as n}from"./vendor-other.2cdd5822.js";import"./vendor-lodash.f9514987.js";const r="all-in-one-seo-pack",h={emits:["inputFormatted","update:modelValue"],components:{MazPhoneNumberInput:m},props:{modelValue:String},data(){return{phoneNumber:this.modelValue,isInvalidNumber:!1,isValidNumber:!1,translations:{countrySelector:{placeholder:n("Country code",r),error:n("Choose country",r)},phoneInput:{placeholder:n("Phone number",r),example:n("Example",r)+":"}}}},methods:{emit(e){return this.isInvalidNumber=!1,this.isValidNumber=!1,e.isValid?(this.isValidNumber=!0,this.$emit("inputFormatted","+"+e.countryCallingCode+" "+e.formatNational),this.$emit("update:modelValue",e.e164)):(e.e164&&(this.isInvalidNumber=!0),this.$emit("update:modelValue",""))}},mounted(){const t="aioseo-phone-number-"+l.now().toFormat("x").toString();document.querySelectorAll(".aioseo-phone-number input").forEach(s=>{s.setAttribute("autocomplete",t)})}};function b(e,t,s,V,o,a){const i=c("maz-phone-number-input");return d(),f(i,{class:_(["aioseo-phone-number",{invalidNumber:o.isInvalidNumber,validNumber:o.isValidNumber}]),modelValue:o.phoneNumber,"onUpdate:modelValue":t[0]||(t[0]=u=>o.phoneNumber=u),"show-code-on-list":"","ignored-countries":["KP"],"preferred-countries":["US","GB","CA","AU","JP","RU","IN","TR","BR","MX"],translations:o.translations,onUpdate:a.emit},null,8,["class","modelValue","translations","onUpdate"])}const I=p(h,[["render",b]]);export{I as default};
