PageSourceSearch

https://gaiafamily.com/en-us/_next/static/chunks/6669-b7d26a1a559758c5.js?dpl=dpl_CJPurkrPeaL5jw4oF8DS75wyXHbC

js gaiafamily.com collected 2026-09-24 21:51:43 UTC 12,007 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2198c3a0-a5d3-4093-ad33-ae1832cf1edd",e._sentryDebugIdIdentifier="sentry-dbid-2198c3a0-a5d3-4093-ad33-ae1832cf1edd")}catch(e){}{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:gaia-app":!0})}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6669],{6873:(e,t,n)=>{n.d(t,{N:()=>r});let a=new Set(n(57382));function r(e){let t=e.lastIndexOf("@"),n=e.lastIndexOf(".");if(t<0||n<=t)return!1;let r=e.slice(n+1).toLowerCase();return a.has(r)}},17409:(e,t,n)=>{n.d(t,{IU:()=>c,J2:()=>o,gm:()=>d,pR:()=>u,sx:()=>s});var a=n(96294),r=n(27122),i=n(26614);function s(e,t){i.Ay.capture(e,t)}function o(e){i.Ay.register(e)}let l=/^[a-z]+-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function d(e,t){if(!(0,a.bO)()){if(!l.test(e))return void r.wd("identifyUser called with a non-public_id identity",{level:"warning"});i.Ay.identify(e,t)}}function c(){i.Ay.reset()}function u(e,t){(e||t)&&i.Ay.setPersonProperties(e,t)}},18940:(e,t,n)=>{n.d(t,{I:()=>i});var a=n(95155),r=n(49692);let i=(0,n(12115).forwardRef)((e,t)=>{let{className:n,style:i={},noMask:s,...o}=e;return(0,a.jsx)("span",{ref:t,className:(0,r.cn)("pointer-events-none block [contain:strict] flex-shrink-0",{"[mask-image:var(--image)] [mask-size:contain] [mask-position:center] [mask-repeat:no-repeat] bg-current":!s,"[background-image:var(--image)] [background-size:contain] [background-position:center] [background-repeat:no-repeat]":s},n),style:{...i,"--image":'url("'.concat(e.path?e.path:"/en-us/icons/".concat(e.name,".svg"),'")')},...o})});i.displayName="Icon"},26422:(e,t,n)=>{n.d(t,{$B:()=>c,Fe:()=>s,gf:()=>d,j:()=>l,v3:()=>o});var a=n(85445),r=n(78526),i=n(27122);class s extends Error{}async function o(e){let t=await fetch("/en-us/api/lab-tests/create-order",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,...(0,a.zN)(),...(0,a.C1)()})});if(!t.ok){var n;let e=await t.json().catch(()=>null),a=null==e?void 0:e.field_errors,r=a&&a.length>0?"Please check your details and try again.":null!=(n=null==e?void 0:e.message)?n:"Failed to create order: ".concat(t.status);throw i.wd("create_lab_test_order failed",{level:"error",extra:{status:t.status,field_errors:null==a?void 0:a.map(e=>e.field)}}),new s(r)}let o=await t.json();return r.mD.parse(o)}async function l(e){var t,n;let a=await fetch("/en-us/api/lab-tests/update-order-details",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),r=await a.json().catch(()=>null);if(!a.ok||(null==r?void 0:r.status)==="error"){let e=null!=(t=null==r?void 0:r.message)?t:"Failed to save details: ".concat(a.status);throw i.wd("update_lab_test_order_details failed",{level:"error",extra:{status:a.status}}),new s(e)}return{individualPublicId:null!=(n=null==r?void 0:r.individual_public_id)?n:null}}async function d(e,t){let n=await fetch("/en-us/api/lab-tests/mark-payment-failed",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({order_id:e,payment_intent_id:t})});if(!n.ok)throw i.wd("mark_lab_test_payment_failed failed",{level:"warning",extra:{status:n.status,order_id:e}}),new s("Failed to mark payment as failed: ".concat(n.status))}async function c(e,t){let n=await fetch("/en-us/api/lab-tests/confirm-payment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({order_id:e,payment_intent_id:t})});if(!n.ok)throw i.wd("confirm_lab_test_payment failed",{level:"error",extra:{status:n.status,order_id:e}}),new s("Failed to confirm payment: ".concat(n.status));return await n.json()}},34159:(e,t,n)=>{n.d(t,{b:()=>r});let a=new Map;function r(e,t){var n;return a.set(e,[...null!=(n=a.get(e))?n:[],...Object.values(t).map(e=>{let{name:t,description:n}=e;return{name:t,description:n}})]),Object.fromEntries(Object.entries(t).map(e=>{let[t,n]=e;return[t,n.name]}))}}
1,38943:(e,t,n)=>{n.d(t,{eD:()=>a,IF:()=>l,R3:()=>d});let a=(0,n(34159).b)("lab_tests_",{cta_clicked:{name:"lab_tests_cta_clicked",description:"Fires when a lab-tests order CTA is clicked; trigger says which entry point."},checkout_form_started:{name:"lab_tests_checkout_form_started",description:"Fires when the payer starts filling in the lab-tests checkout form."},order_submitted:{name:"lab_tests_order_submitted",description:"Fires when a lab-tests order is placed after the checkout form, before payment."},setup_submitted:{name:"lab_tests_setup_submitted",description:"Fires when the patient submits the lab-tests setup step."},back_to_action_plan_clicked:{name:"lab_tests_back_to_action_plan_clicked",description:"Fires when the patient returns from the lab-tests checkout to their sign-up Action Plan."}});var r=n(78455),i=n(85712),s=n(17409);let o={[a.order_submitted]:"lab_tests_order_created"};function l(e,t){var n;(0,i.Q8)(null!=(n=o[e])?n:e,t),(0,s.sx)(e,t)}function d(){(0,i.Q8)("lab_tests_payment_made"),(0,s.sx)(r.R.completed,{product:"lab_tests",amount:160,currency:"USD"})}},78455:(e,t,n)=>{n.d(t,{R:()=>a});let a=(0,n(34159).b)("payment_",{completed:{name:"payment_completed",description:"Fires when a payment succeeds. The product property distinguishes the invoice payment status page from the Lab Tests checkout."}})},78526:(e,t,n)=>{n.d(t,{F2:()=>y,_H:()=>g,mD:()=>f});var a=n(6873),r=n(34334),i=n(76265),s=n(58561),o=n(15653);let l=/^[A-Z]{2}$/,d=["NY","NJ","RI","HI","AK"],c=/^\d{5}(-\d{4})?$/,u=o.z.string().trim().min(1,"Email is required").email("Enter a valid email address").refine(a.N,{message:"Please enter a valid email address."}),p=o.z.string().min(1,"Phone number is required").refine(e=>(0,s.g)(e,"US"),{message:"Please enter a valid US phone number."}),m=o.z.object({first_name:o.z.string().trim().min(1,"First name is required"),last_name:o.z.string().trim().min(1,"Last name is required"),email:u,phone:p,date_of_birth:o.z.string().min(1,"Date of birth is required").refine(e=>{let t=(0,r.qg)(e,"yyyy-MM-dd",new Date);return(0,i.V)(new Date,t)>=18},{message:"You must be at least 18 years old to purchase this test"}),biological_sex:o.z.enum(["Male","Female","Other/Intersex"],{errorMap:()=>({message:"Biological sex is required"})}),address_line_one:o.z.string().trim().min(1,"Address is required"),state:o.z.string().regex(l,{message:"Enter a valid 2-letter state code"}).refine(e=>!d.includes(e),{message:"This test is not available in your state"}),zip_code:o.z.string().trim().min(1,"Zip code is required").regex(c,"Enter a valid US zip code (12345 or 12345-6789)"),agreed_to_tos:o.z.literal(!0,{errorMap:()=>({message:"You must agree to the Terms of Service"})})});m.omit({agreed_to_tos:!0}).extend({payment_method_id:o.z.string().optional()}),m.pick({first_name:!0,last_name:!0,email:!0,phone:!0,address_line_one:!0,state:!0,zip_code:!0}),m.pick({date_of_birth:!0,biological_sex:!0,agreed_to_tos:!0});let f=o.z.object({order_id:o.z.string(),public_order_id:o.z.string(),client_secret:o.z.string().nullable(),payment_intent_id:o.z.string().optional(),payment_status:o.z.string().optional()});o.z.object({email:u,payment_method:o.z.enum(["Card","Apple Pay","Google Pay","Link"]).optional(),payment_method_id:o.z.string().optional(),first_name:o.z.string().optional(),last_name:o.z.string().optional(),phone:o.z.string().optional(),date_of_birth:o.z.string().optional(),biological_sex:o.z.string().optional(),address_line_one:o.z.string().optional(),address_line_two:o.z.string().optional(),state:o.z.string().optional(),zip_code:o.z.string().optional(),gclid:o.z.string().optional(),fbclid:o.z.string().optional(),utm_source:o.z.string().optional(),utm_medium:o.z.string().optional(),utm_campaign:o.z.string().optional(),utm_content:o.z.string().optional(),utm_term:o.z.string().optional(),referrer:o.z.string().optional(),landing_path:o.z.string().optional()});let g=o.z.object({email:u}),_=o.z.string().min(1,"Date of birth is required").refine(e=>{let t=(0,r.qg)(e,"yyyy-MM-dd",new Date);return(0,i.V)(new Date,t)>=18},{message:"You must be at least 18 years old to purchase this test"}
1),h=o.z.enum(["Male","Female","Other/Intersex"],{errorMap:()=>({message:"Biological sex is required"})});o.z.object({date_of_birth:_,biological_sex:h});let y=o.z.object({first_name:o.z.string().trim().min(1,"First name is required"),last_name:o.z.string().trim().min(1,"Last name is required"),phone:p,date_of_birth:_,biological_sex:h,address_line_one:o.z.string().trim().min(1,"Address is required"),state:o.z.string().regex(l,{message:"Enter a valid 2-letter state code"}),zip_code:o.z.string().trim().min(1,"Zip code is required").regex(c,"Enter a valid US zip code (12345 or 12345-6789)")})},85445:(e,t,n)=>{n.d(t,{C1:()=>c,YA:()=>o,b4:()=>d,zN:()=>l});let a="gaia.attribution",r="gaia.attribution.context";function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;try{let t=window.localStorage.getItem(e);if(!t)return{};let n=JSON.parse(t);if(n&&"object"==typeof n&&!Array.isArray(n)){let e={};for(let[t,a]of Object.entries(n))if("string"==typeof a){let n=a.trim();n&&(e[t]=n)}return e}}catch(e){}return{}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;try{window.localStorage.setItem(t,JSON.stringify(e))}catch(e){}}function o(e){let t=i(),n=!1;for(let[a,r]of Object.entries(e)){if(t[a])continue;let e=null==r?void 0:r.trim();e&&(t[a]=e,n=!0)}return n&&s(t),t}function l(){return i()}function d(){let e=i(r);if(e.landing_path)return e;let t={landing_path:window.location.pathname},n=function(){let e=document.referrer;if(!e)return null;try{return new URL(e).origin===window.location.origin?null:e}catch(e){return null}}();return n&&(t.referrer=n),s(t,r),t}function c(){return i(r)}},85712:(e,t,n)=>{n.d(t,{Q8:()=>f,_O:()=>p,tf:()=>m});var a=n(81611),r=n(27122);let i=!1,s=0,o=(e,t)=>{a.Z({message:"[Heap] ".concat(e),category:"heap",level:"info",data:t})},l=e=>{if(i)return void o("Blocked recursive Heap call");if(s>=3){o("Heap retry limit exceeded",{retryCount:s}),r.wd("Heap Analytics retry limit exceeded",{level:"warning",tags:{component:"heap-wrapper"},extra:{retryCount:s}});return}if(!window.heap)return void o("Heap not available");i=!0,o("Starting Heap call");try{e(),o("Heap call successful"),s=0}catch(e){s++,o("Heap call failed",{error:e instanceof Error?e.message:String(e),retryCount:s}),r.Cp(e,{tags:{component:"heap-wrapper",ios:/iPhone|iPad|iPod/.test(navigator.userAgent)},extra:{retryCount:s,userAgent:navigator.userAgent}})}finally{i=!1,o("Heap processing flag reset")}},d=[],c=null;function u(){null===c&&(c=setInterval(()=>{if(window.heap)for(let e of(clearInterval(c),c=null,d.splice(0)))"track"===e.type?l(()=>{var t;null==(t=window.heap)||t.track(e.event,e.properties)}):l(()=>{var t;null==(t=window.heap)||t.addEventProperties(e.properties)})},200),setTimeout(()=>{c&&(clearInterval(c),c=null),d.length=0},1e4))}let p=e=>{if(window.heap)for(let t of e)l(()=>{var e;null==(e=window.heap)||e.removeEventProperty(t)})},m=e=>{var t;if(t=0,!window.heap){d.push({type:"addEventProperties",properties:e}),u();return}o("Adding event properties",{properties:e}),l(()=>{var t;null==(t=window.heap)||t.addEventProperties(e)})},f=(e,t)=>{if(!window.heap){d.push({type:"track",event:e,properties:t}),u();return}l(()=>{var n;null==(n=window.heap)||n.track(e,t)})}},96294:(e,t,n)=>{n.d(t,{bO:()=>r,w4:()=>i});let a="gaia-staff";function r(){return"undefined"!=typeof document&&document.cookie.split("; ").some(e=>e.startsWith("".concat(a,"=")))}function i(){"undefined"!=typeof document&&(document.cookie="".concat(a,"=; Max-Age=0; Path=/"))}}}]);

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.