{"version":3,"file":"validator-mixin-66964f14-chunk.js","sources":["../../../../app/javascript/views/profile/index/mixins/validator-mixin.js"],"sourcesContent":["import { helpers } from \"@vuelidate/validators\";\r\nexport const isPhoneValid = (phone) => (!helpers.req(phone)) || (phone.number === undefined) || (phone.isValid === true)\r\n\r\nexport default {\r\n inject: ['locale'],\r\n computed: {\r\n requiredLabel() {\r\n return this.locale === 'es' ? 'Campo requerido' : 'Required field';\r\n },\r\n phoneValidLabel() {\r\n return this.locale === 'es' ? 'Número inválido' : 'Invalid number';\r\n },\r\n passwordFormatLabel() {\r\n return this.locale === 'es' ? 'Mínimo 6 caracteres' : 'Minimum 6 characters';\r\n },\r\n passwordsMatchLabel() {\r\n return this.locale === 'es' ? 'Las contraseñas no coinciden' : 'Passwords do not match';\r\n },\r\n formatLabel() {\r\n return this.locale === 'es' ? 'Formato incorrecto' : 'Incorrect format';\r\n }\r\n }\r\n}"],"names":["isPhoneValid","phone","helpers","validatorMixin"],"mappings":"+CACY,MAACA,EAAgBC,GAAW,CAACC,EAAQ,IAAID,CAAK,GAAOA,EAAM,SAAW,QAAeA,EAAM,UAAY,GAEpGE,EAAA,CACb,OAAQ,CAAC,QAAQ,EACjB,SAAU,CACR,eAAgB,CACd,OAAO,KAAK,SAAW,KAAO,kBAAoB,gBACnD,EACD,iBAAkB,CAChB,OAAO,KAAK,SAAW,KAAO,kBAAoB,gBACnD,EACD,qBAAsB,CACpB,OAAO,KAAK,SAAW,KAAO,sBAAwB,sBACvD,EACD,qBAAsB,CACpB,OAAO,KAAK,SAAW,KAAO,+BAAiC,wBAChE,EACD,aAAc,CACZ,OAAO,KAAK,SAAW,KAAO,qBAAuB,kBACtD,CACF,CACH"}