PageSourceSearch

https://www.cvshealth.com/etc.clientlibs/brand-enterprise/clientli…/js/enterprise-form-text-20260915193221.js

js cvshealth.com collected 2026-09-24 07:00:42 UTC 3,107 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[9743],{3134(e,t,i){i.d(t,{default:()=>m});var a=i(1065);const s="d-none",n="cmp-form-text__invalid",r="visuallyhidden",c=".cmp-form-text",d=".cmp-form-text__input",l=".cmp-form-field__error-message",o=".cmp-form-field__error-text",u=".cmp-form-text__help-block",m={_initializeFormText(e){const t=e.querySelector(d),i=t.form,r=e.querySelector(l),c=e.querySelector(o),m=e.querySelector(u),v=e.dataset,h={typeMismatch:v.cmpConstraintMessage,valueMissing:v.cmpRequiredMessage,patternMismatch:v.cmpPatternMessage,tooLong:v.cmpMaxLengthMessage,valueMismatch:v.cmpSameValueMessage},p={required:v.isRequired,hidden:v.cmpHideOnLoad};if(t.addEventListener("invalid",(function(e){let i="";t.validity.typeMismatch?i=h.typeMismatch:t.validity.valueMissing?i=h.valueMissing:t.validity.patternMismatch?i=h.patternMismatch:t.validity.tooLong?i=h.tooLong:t.validity.valueMismatch&&(i=h.valueMismatch),t.classList.add(n),c.innerText=i||t.validationMessage,t.setCustomValidity(" "),r.classList.remove(s),t.setAttribute("aria-describedby",r.getAttribute("id"))})),t.addEventListener("input",(function(){t.setCustomValidity(""),v.cmpSameValue&&(t.validity.valueMismatch=!1),t.classList.remove(n),c.innerText="",r.classList.add(s),m?t.setAttribute("aria-describedby",m.getAttribute("id")):t.removeAttribute("aria-describedby")})),v.cmpSameValue){const e=i.querySelector(`[name="${v.cmpSameValue}"`);e&&e.addEventListener("change",(function(){const i=e.value,a=t.value;a&&a!=i?(t.setCustomValidity("valueMismatch"),t.validity.valueMismatch=!0,t.dispatchEvent(new Event("invalid"))):a&&a==i&&(t.validity.valueMismatch=!1,t.dispatchEvent(new Event("input")))})),t.addEventListener("change",(function(){const i=e.value;t.value!=i&&(t.setCustomValidity("valueMismatch"),t.validity.valueMismatch=!0,t.dispatchEvent(new Event("invalid")))}))}p.hidden&&(0,a.NY)([t],e),(0,a.N$)([t],e,i,p)},init:function(){const e=document.querySelectorAll(c);e.forEach((e=>{this._initializeFormText(e)})),e.forEach((e=>{e.classList.remove(r)}))}}},1065(e,t,i){i.d(t,{N$:()=>u,NY:()=>l});const a="show",s="hide",n="required",r="optional",c=e=>{e.forEach((e=>e.setAttribute("required",!0)))},d=e=>{e.forEach((e=>{e.removeAttribute("required"),e.validity.valid||("checkbox"===e.type||"radio"===e.type||"select"===e.type?e.dispatchEvent(new Event("change")):e.dispatchEvent(new Event("input")))}))},l=(e,t)=>{t.parentElement.classList.add("d-none"),e.forEach((e=>e.setAttribute("disabled",!0)))},o=(e,t)=>{t.parentElement.classList.remove("d-none"),e.forEach((e=>e.removeAttribute("disabled")))},u=(e,t,i,u)=>{const m=(v=e[0],window.CVS?.Forms?.Rules?.[v.getAttribute("name")]);var v;m&&m.length>0&&m.forEach((m=>{i.querySelectorAll(`[name="${m.field}"]`).forEach((i=>{i.addEventListener("change",(()=>{const v="checkbox"===i.type||"radio"===i.type;new RegExp(m.value).test(i.value)&&(v&&i.checked||!v)?((e,t,i)=>{a===i?o(e,t):s===i?l(e,t):n===i?c(e):r===i&&d(e)})(e,t,m.action):((e,t,i)=>{i.required?c(e):d(e),i.hidden?l(e,t):o(e,t)})(e,t,u)}))}))}))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.