PageSourceSearch

https://healthsport.com/assets/form-field-bwwilk0T.js

js healthsport.com collected 2026-10-07 13:56:54 UTC 3,020 bytes, 1 lines download raw bytes

1import{b0 as u,j as s}from"./index-C3bYeAVA.js";import{C as l}from"./circle-alert-vzChOUcE.js";const c=7;function d(e){return(e||"").replace(/\D/g,"")}function h(e,r){return(e||"").trim()?null:`${r} is required.`}function p(e){const r=(e||"").trim();return r?d(r).length<c?"That doesn't look like a phone number — use digits only, e.g. 707 822 3488.":null:"Enter a phone number we can reach you at."}function g(e){const r=(e||"").trim();return r?/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(r)?null:"That email address doesn't look right — check for a missing @ or .com.":"Enter an email address."}function E(e){const r=(e||"").trim();return r?/^\d{5}(-\d{4})?$/.test(r)?null:"Enter a 5-digit ZIP code.":"Enter a ZIP code."}function x(e){const r=(e||"").trim();return r?r.length<2?"Enter a state, e.g. CA.":null:"Enter a state."}function N(e,r="Name"){return u(e,r)}function b(e,r="This"){return(e||"").trim()?null:`Choose ${r.toLowerCase()} from the list.`}function $(e,r="This box"){return e?null:`${r} must be checked to continue.`}function T(e,r){const i="Date of birth",t=(e||"").trim();if(!t)return`${i} is required.`;const n=new Date(`${t}T00:00:00`);if(Number.isNaN(n.getTime()))return"Enter a date as MM/DD/YYYY.";const a=new Date;return n.getTime()>a.getTime()?"That date is in the future.":n.getFullYear()<1900?"Check the year on that date.":null}function D(e,r){const i="Date",t=(e||"").trim();if(!t)return`${i} is required.`;const n=new Date(`${t}T00:00:00`);if(Number.isNaN(n.getTime()))return"Enter a date as MM/DD/YYYY.";const a=new Date;return a.setHours(0,0,0,0),n.getTime()<a.getTime()?"Pick a date that hasn't passed yet.":null}const o="VALIDATION:";function v(e,r){return`${o}${e}:${r}`}function k(e){const r=typeof e=="string"?e:e instanceof Error||typeof e?.message=="string"?e.message:"",i=r.indexOf(o);if(i===-1)return null;const t=r.slice(i+o.length),n=t.indexOf(":");return n===-1?{path:"",message:t.trim()}:{path:t.slice(0,n).trim(),message:t.slice(n+1).replace(/["}\]]+\s*$/,"").trim()}}function j({className:e=""}){return s.jsxs("p",{className:`text-xs text-brand-ink/70 ${e}`,children:["Fields marked ",s.jsx("span",{className:"font-bold text-destructive",children:"*"})," are required."]})}function y(){return s.jsxs(s.Fragment,{children:[s.jsx("span",{"aria-hidden":"true",className:"ml-0.5 font-bold text-destructive",children:"*"}),s.jsx("span",{className:"sr-only",children:" (required)"})]})}function I(){return s.jsx("span",{className:"ml-1 font-normal opacity-60",children:"(optional)"})}function w({name:e,message:r,className:i=""}){return r?s.jsxs("p",{id:`err-${e}`,role:"alert",className:`mt-1.5 flex items-start gap-1.5 text-xs font-semibold text-destructive ${i}`,children:[s.jsx(l,{className:"mt-0.5 h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),s.jsx("span",{children:r})]}):null}function Y(e,r){return r?`${e} border-destructive ring-1 ring-destructive/30`:e}export{w as F,I as O,j as R,y as a,b,$ as c,k as d,g as e,D as f,T as g,v as h,Y as i,N as n,p,h as r,x as s,E as z};

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.