/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */
const o=o=>{const t=o.classList.contains("ion-touched"),n=o.classList.contains("ion-invalid");return t&&n},t=(o,t)=>{var n;if(null==o?void 0:o.validity)if(o.validity.valid)t.setValidity({});else{const r={badInput:(n=o.validity).badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing};t.setValidity(r,o.validationMessage,o)}};export{o as c,t as r}