PageSourceSearch

https://www.childrensnational.org/_next/static/chunks/80826-b366560be4e1b263.js

js childrensnational.org collected 2026-10-01 10:12:11 UTC 14,476 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80826],{80826:(e,t,n)=>{var i,a,r,s;n.d(t,{T:()=>T});let o="1.4.3",l="v1.2",c="bid_";function u(e){if(e&&e.trim().length>0)return e;throw Error('[MV-0003] "pointOfSale" is required.')}!function(e){e.Events="events",e.Browser="browser",e.Batches="batches",e.CallFlows="callFlows"}(i||(i={})),function(e){e.Add="ADD",e.AddConsumers="ADD_CONSUMERS",e.AddContacts="ADD_CONTACTS",e.AddProduct="ADD_PRODUCT",e.Calculator="CALCULATOR",e.CampaignTracking="CAMPAIGN_TRACKING",e.ClearCart="CLEAR_CART",e.Click="CLICK",e.Chat="CHAT",e.Checkout="CHECKOUT",e.Comment="COMMENT",e.Confirm="CONFIRM",e.ContactRequest="CONTACT_REQUEST",e.Consumers="CONSUMERS",e.Email="EMAIL",e.Login="LOGIN",e.Identity="IDENTITY",e.Notification="NOTIFICATION",e.OrderUpdate="ORDER_UPDATE",e.Payment="PAYMENT",e.Purchase="PURCHASE",e.PnrRecord="PNR_RECORD",e.Sms="SMS",e.Subscription="SUBSCRIPTION",e.Search="SEARCH",e.Select="SELECT",e.Trigger="TRIGGER",e.TripSummary="TRIP_SUMMARY",e.Update="UPDATE",e.View="VIEW"}(a||(a={}));class h{constructor(e,t,n,i){var a,r,s;this.baseEventData=e,this.settings=t,this.infer=i,this.pointOfSale=u(this.baseEventData.pointOfSale||t.pointOfSale),this.browserId=n,this.language=null!=(a=this.baseEventData.language)?a:null==(r=this.infer)?void 0:r.language(),this.page=null!=(s=this.baseEventData.page)?s:this.infer?this.infer.pageName():""}mapBaseEventPayload(){return{browser_id:this.browserId,channel:this.baseEventData.channel,client_key:this.settings.clientKey,currency:this.baseEventData.currency,language:this.language,page:this.page,pos:this.pointOfSale}}}function d(e){var t;let{currentKey:n,object:i}=e,a=null!=(t=e.newObject)?t:{};for(let e in i){let t=i[e];void 0!==t&&("object"!=typeof t||Array.isArray(t)?a[n?`${n}_${e}`:e]=t:d({currentKey:`${n?`${n}_${e}`:e}`,newObject:a,object:t}))}return a}class p extends h{constructor(e){let{channel:t,currency:n,pointOfSale:i,language:a,page:r}=e.eventData;if(super({channel:t,currency:n,language:a,page:r,pointOfSale:i},e.settings,e.id,e.infer),this.extensionData={},this.eventData=e.eventData,this.urlSearchParams=new URLSearchParams(decodeURI(e.searchParams)),e.extensionData&&(this.extensionData=d({object:e.extensionData})),Object.entries(this.extensionData).length>50)throw Error("[IV-0005] This event supports maximum 50 attributes. Reduce the number of attributes.");this.eventApiClient=e.eventApiClient}getUTMParameters(){let e={};return this.urlSearchParams.forEach((t,n)=>{let i=n.toLowerCase();0===i.indexOf("utm_")&&(e[i]=t)}),e}getPageVariantId(e,t){if(e)return e;let n=this.urlSearchParams.get("variantid");return n||t||null}getReferrer(){if(this.eventData.referrer)return this.eventData.referrer;if("undefined"==typeof window||!p.isFirstPageView||!document.referrer)return null;let{hostname:e,href:t}=new URL(document.referrer);return window.location.hostname!==e?t:null}mapAttributes(){let e={type:a.View};if(this.settings.includeUTMParameters){let t=this.getUTMParameters();e={...e,...t}}let t=this.getPageVariantId(this.eventData.pageVariantId,this.extensionData.pageVariantId);null!==t&&(e.ext={...e.ext,pageVariantId:t}),Object.keys(this.extensionData).length>0&&(delete this.extensionData.pageVariantId,e.ext={...e.ext,...this.extensionData});let n=this.getReferrer();return null!==n&&(e={...e,referrer:n}),e}async send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.mapAttributes(),e);return p.isFirstPageView=!1,await this.eventApiClient.send(t)}}p.isFirstPageView=!0;class g extends h{constructor(e){let{channel:t,currency:n,pointOfSale:i,language:a,page:r,...s}=e.eventData;super({channel:t,currency:n,language:a,page:r,pointOfSale:i},e.settings,e.id,e.infer),this.extensionData={},this.eventApiClient=e.eventApiClient,this.customEventPayload={type:e.type,...s},e.extensionData&&(this.extensionData=d({object:e.extensionData}));let o=Object.entries(this.extensionData).length;if(o>50)throw Error("[IV-0005] This event supports maximum 50 attributes. Reduce the number of attributes.");o>0&&(this.customEventPayload.ext=this.extensionData)}async send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.customEventPayload,e);return await this.eventApiClient.send(t)}}function f(e){try{return new Date(e+"Z").toISOString().substring(0,16)===e}catch(e){return!1}}class m extends h{constructor(e){let{channel:t,currency:n,pointOfSale:i,language:a,page:r}=e.eventData;if(super({channel:t,currency:n,language:a,page:r,pointOfSale:i},e.settings,e.id,e.infer),this.extensionData={},this.numberOfExtensionDataProperties=0,this.validateAttributes(e.eventData),this.eventData=e.eventData,this.eventApiClient=e.eventApiClient,e.extensionData&&(this.extensionData=d({object:e.extensionData})),this.numberOfExtensionDataProperties=Object.entries(this.extensionData).length,this.numberOfExtensionDataProperties>50)throw Error("[IV-0005] This event supports maximum 50 attributes. Reduce the number of attributes.")}validateAttributes(e){var t;
1if(0===e.identifiers.length)throw Error('[MV-0004] "identifiers" is required.');if(void 0!==e.dob&&!f(e.dob))throw Error('[IV-0002] Incorrect value for "dob". Format the value according to ISO 8601.');if(e.identifiers.forEach(e=>{if(e.expiryDate&&!f(e.expiryDate))throw Error('[IV-0004] Incorrect value for "expiryDate". Format the value according to ISO 8601.')}),e.email&&(t=e.email,!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)))throw Error('[IV-0003] Incorrect value for "email". Set the value to a valid email address.')}mapAttributes(){let e={city:this.eventData.city,country:this.eventData.country,dob:this.eventData.dob,email:this.eventData.email,firstname:this.eventData.firstName,gender:this.eventData.gender,identifiers:this.eventData.identifiers.map(e=>({expiry_date:e.expiryDate,id:e.id,provider:e.provider})),lastname:this.eventData.lastName,mobile:this.eventData.mobile,phone:this.eventData.phone,postal_code:this.eventData.postalCode,state:this.eventData.state,street:this.eventData.street,title:this.eventData.title,type:a.Identity};return this.numberOfExtensionDataProperties>0&&(e.ext=this.extensionData),e}async send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.mapAttributes(),e);return await this.eventApiClient.send(t)}}class v{constructor(e,t,n){this.personalizeClient=e,this.id=t,this.infer=n}async getInteractiveExperienceData(e,t){this.validate(e);let n=this.sanitizeInput(e),i=this.mapPersonalizeInputToCDPData(n);return i.email||i.identifiers||(i.browserId=this.id),await this.personalizeClient.sendCallFlowsRequest(i,t)}sanitizeInput(e){let t={channel:e.channel,currency:e.currency,friendlyId:e.friendlyId,language:e.language,pointOfSale:u(e.pointOfSale||this.personalizeClient.settings.pointOfSale)};return e.identifier&&e.identifier.id&&e.identifier.id.trim().length>0&&(t.identifier=e.identifier),e.email&&e.email.trim().length>0&&(t.email=e.email),e.params&&Object.keys(e.params).length>0&&(t.params=d({object:e.params})),t}mapPersonalizeInputToCDPData(e){var t,n;return{channel:e.channel,clientKey:this.personalizeClient.settings.clientKey,currencyCode:e.currency,email:e.email,friendlyId:e.friendlyId,identifiers:e.identifier,language:null!=(t=e.language)?t:null==(n=this.infer)?void 0:n.language(),params:e.params,pointOfSale:e.pointOfSale}}validate({friendlyId:e}){if(!e||0===e.trim().length)throw Error('[MV-0008] "friendlyId" is required.')}}function w(e,t){return`${e}/${l}/${i.Browser}/create.json?client_key=${t}&message={}`}async function y(e,t,n){if(!Number.isInteger(t)||t<0)throw Error("[IV-0006] Incorrect value for the timeout parameter. Set the value to an integer greater than or equal to 0.");let i=new AbortController,a=i.signal,r=setTimeout(()=>{i.abort()},t);return fetch(e,{...n,signal:a}).then(e=>(clearTimeout(r),e.json())).then(e=>e).catch(e=>{if("AbortError"===e.name)throw Error("[IE-0003] Timeout exceeded. The server did not respond within the allotted time.");return null})}class D{constructor(e){this.settings=e}async sendCallFlowsRequest(e,t){var n;let a=(n=this.settings.targetURL,`${n}/v2/${i.CallFlows}`),r={body:JSON.stringify(e),headers:{"Content-Type":"application/json","X-Library-Version":o},method:"POST"};return void 0===t?fetch(a,r).then(e=>e.json()).then(e=>e).catch(()=>null):y(a,t,r)}}function E(e,t,n){let i=`${e}=${t};`;return i+=` Max-Age=${n.maxAge}; SameSite=${n.sameSite};`,i+=n.secure?" Secure;":"",i+=n.path?` Path=${n.path};`:"",i+=n.domain?` Domain=${n.domain};`:"",i=i.substring(0,i.length-1)}function b(e=730,t){return{domain:t,maxAge:86400*e,path:"/",sameSite:r.None,secure:!0}}async function C(e,t,n){let i,a={headers:{"X-Library-Version":o}};if(!(i=void 0!==n?await y(w(e,t),n,a):await fetch(w(e,t),a).then(e=>e.json()).then(e=>e).catch(()=>void 0)))return"";let{ref:r}=i;return r}async function S(e,t,n){let i=await C(e,t),a=b(n.cookieExpiryDays,n.cookieDomain);return document.cookie=E(n.cookieName,i,a),i}!function(e){e.Strict="Strict",e.Lax="Lax",e.None="None"}(r||(r={}));class I{constructor(e,t){this.targetURL=e,this.apiVersion=t,this.eventUrl=`${this.targetURL}/${this.apiVersion}/${i.Events}`}async send(e){let t={body:JSON.stringify(e),headers:{"Content-Type":"application/json","X-Library-Version":o},method:"POST"};return await fetch(this.eventUrl,t).then(e=>e.json()).then(e=>e).catch(()=>null)}}async function x(e){let t=0,i=Object.keys(s),a={clientKey:e.clientKey,pointOfSale:e.pointOfSale,targetURL:e.targetURL};for await(let r of i){let i=e[r];if(!i)continue;let o=(await function(e){return"./plugins/web-personalization.ts"===e?n.e(12475).then(n.bind(n,12475)):new Promise(function(t,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,Error("Unknown variable dynamic import: "+e)))})}(`./plugins/${s[r]}.ts`)).default;await o(i,a),t++}return Promise.resolve(`${t} plugins loaded`)}function O(e){var t;let n=function(e,t){if(!e)return;let n=e.split("; ").find(e=>e.indexOf("=")>0&&e.split("=")[0]===t);return void 0!==n?{name:n.split("=")[0],value:n.split("=")[1]}:void 0}(document.cookie,e);return null!=(t=null==n?void 0:n.value)?t:""}(s||(s={})).webPersonalization="web-personalization";class A{language(){return window.document.documentElement.lang.length>1?new Intl.Locale(window.document.documentElement.lang).language.toLocaleUpperCase():void 0}pageName(){return"/"===window.location.pathname?"Home Page":window.location.pathname.split("/").pop()}}async function P(e,t,n){let i=`${t}/${l}/browser/${e}/show.json?client_key=${n}&api_token=${n}`,a=await fetch(i,{headers:{"X-Library-Version":o}}
1),r=await a.json();if(!a.ok){let{error_msg:e,moreInfo:t}=r;throw Error(`${e}, for more info: ${t}`)}return r.customer.ref}class k{constructor(e,t,n){this.storage=e,this.eventApiClient=t,this.infer=n,this.key="EngageEventQueue"}getEventQueue(){let e=this.storage.getItem(this.key);if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}}enqueueEvent(e){var t,n;e.eventData.page=null!=(t=e.eventData.page)?t:this.infer.pageName(),e.eventData.language=null!=(n=e.eventData.language)?n:this.infer.language(),new g({eventApiClient:this.eventApiClient,infer:this.infer,...e});let i=this.getEventQueue();i.push(e),this.storage.setItem(this.key,JSON.stringify(i))}async sendAllEvents(){for(let e of this.getEventQueue())await new g({eventApiClient:this.eventApiClient,eventData:e.eventData,extensionData:e.extensionData,id:e.id,infer:this.infer,settings:e.settings,type:e.type}).send();this.clearQueue()}clearQueue(){this.storage.removeItem(this.key)}}async function T(e){var t,n,i,a;if("undefined"==typeof window)throw Error('[IE-0001] The "window" object is not available on the server side. Use the "window" object only on the client side, and in the correct execution context.');let r=function(e){var t=e;let{clientKey:n,targetURL:i,pointOfSale:a}=t;if(!n)throw Error('[MV-0001] "clientKey" is required.');if(!i)throw Error('[MV-0002] "targetURL" is required.');if(a&&0===a.trim().length)throw Error('[MV-0009] "pointOfSale" cannot be empty.');try{new URL(i)}catch(e){throw Error('[IV-0001] Incorrect value for "targetURL". Set the value to a valid URL string.')}let{clientKey:r,targetURL:s,cookieDomain:o,cookiePath:l,cookieExpiryDays:u,forceServerCookieMode:h,includeUTMParameters:d,pointOfSale:p}=e;return{clientKey:r,cookieSettings:{cookieDomain:o,cookieExpiryDays:u||730,cookieName:`${c}${r}`,cookiePath:l||"/",forceServerCookieMode:null!=h&&h},includeUTMParameters:null==d||d,pointOfSale:null!=p?p:void 0,targetURL:s}}(e);r.cookieSettings.forceServerCookieMode||(t=r.cookieSettings,(n=document.cookie,n.split("; ").filter(e=>e.split("=")[0].startsWith("BID_")).map(e=>({name:e.split("=")[0],value:e.split("=")[1]}))).forEach(e=>{var n;n=e.name,document.cookie=n+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";let i={name:e.name.replace("BID_",c),value:e.value},a=b(t.cookieExpiryDays,t.cookieDomain);document.cookie=E(i.name,i.value,a)})),r.cookieSettings.forceServerCookieMode||(i=window.document.cookie,a=r.cookieSettings.cookieName,i.split("; ").some(e=>e.split("=")[0]===a))||await S(r.targetURL,r.clientKey,r.cookieSettings);let s=O(r.cookieSettings.cookieName),u=new I(r.targetURL,l);window.Engage={},await x(e),window.Engage={...window.Engage,getBrowserId:()=>O(r.cookieSettings.cookieName),version:o};let h=new A,d=new k(sessionStorage,u,h),f=new D(r);return{addToEventQueue:(e,t,n)=>{d.enqueueEvent({eventData:t,extensionData:n,id:s,settings:r,type:e})},clearEventQueue:()=>{d.clearQueue()},event:(e,t,n)=>new g({eventApiClient:u,eventData:t,extensionData:n,id:s,infer:h,settings:r,type:e}).send(),form:(e,t,n)=>new g({eventApiClient:u,eventData:{pointOfSale:n},extensionData:{formId:e,interactionType:t.toUpperCase()},id:s,infer:{language:()=>void 0,pageName:()=>void 0},settings:r,type:"FORM"}).send(),getBrowserId:()=>O(r.cookieSettings.cookieName),getGuestId:()=>P(s,r.targetURL,r.clientKey),identity:(e,t)=>new m({eventApiClient:u,eventData:e,extensionData:t,id:s,infer:h,settings:r}).send(),pageView:(e,t)=>new p({eventApiClient:u,eventData:e,extensionData:t,id:s,infer:h,searchParams:window.location.search,settings:r}).send(),personalize:(e,t)=>new v(f,s,h).getInteractiveExperienceData(e,t),processEventQueue:()=>d.sendAllEvents(),updatePointOfSale:e=>(function(e,t){if(e&&e.trim().length>0)window&&window.Engage&&window.Engage.settings&&(window.Engage.settings.pointOfSale=e),t.pointOfSale=e;else throw Error('[MV-0009] "pointOfSale" cannot be empty.')})(e,r),version:o}}}}]);

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.