import{D as l}from"./vendor-datetime.361c8690.js";import{u as m}from"./vendor-phone.8bb0befc.js";import"./app-core.152db1db.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.9852a9dd.js";import{_ as n}from"./vendor-other.35999c47.js";import"./vendor-lodash.e0b5303e.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};
