PageSourceSearch

https://assets.healthline.com/_next/chunks/medchat-2086d4b0.js

js healthline.com collected 2026-09-24 08:30:58 UTC 5,099 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[3500],{81329(e,t,a){a.r(t),a.d(t,{default:()=>k});var n=a(96540),i=(a(5556),a(77066)),o=a(93743),c=a(20949).h,d=function(e){return c("svg",{...e},c("path",{fill:"#3D5191",d:"M19 38c10.493 0 19-8.507 19-19S29.493 0 19 0 0 8.507 0 19s8.507 19 19 19Z"}),c("path",{fill:"#fff",d:"M10.796 28.02c-.146 0-.298-.034-.437-.1a1.008 1.008 0 0 1-.577-.915v-13.92c0-.558.457-1.015 1.014-1.015H27.21c.557 0 1.015.457 1.015 1.014v11.03c0 .556-.458 1.014-1.015 1.014H15.34l-3.947 2.699a.994.994 0 0 1-.597.199v-.007Zm.677-14.266v11.97l3.057-2.095c.173-.126.385-.199.604-.199H26.54v-9.676H11.473Z"}),c("path",{fill:"#fff",d:"M14.81 19.968a1.373 1.373 0 1 0 0-2.745 1.373 1.373 0 0 0 0 2.745ZM19 19.968a1.373 1.373 0 1 0 0-2.745 1.373 1.373 0 0 0 0 2.745ZM23.198 19.968a1.373 1.373 0 1 0 0-2.745 1.373 1.373 0 0 0 0 2.745Z"}))};d.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"38",height:"38",fill:"none",viewBox:"0 0 38 38"};const r=(0,n.memo)(d);var l=a(94580),p=a(997),s=a(3141),h=a(5759),m=a(35879),u=a(22400),w=a(72364),f=a(16370),x=a(56865),g=a(20949).h;const v={fontSize:["16px","24px","20px"],fontWeight:700,lineHeight:["24px","30px","26px"],color:void 0},y=(0,i.AH)([{display:"flex",alignItems:"center",height:"124px",background:void 0,width:"100%","@media(min-width:768px)":{height:"154px"},"@media(min-width:990px)":{height:"124px"}}]),A=(0,i.AH)([{display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"36px 12px",alignItems:"center",gap:"4px",width:"100%",cursor:"pointer","@media(min-width:768px)":{padding:"36px 20px"},"@media(min-width:990px)":{padding:"36px 30px"}}]),b=(0,i.AH)({display:"flex",flexDirection:"column"}),C=(0,i.AH)((0,o.mq)({...v,width:"max-content"})),I=(0,i.AH)((0,o.mq)({...v,textDecoration:"underline"})),H=(0,i.AH)({display:"flex",flexGrow:0,alignSelf:"center"}),T=(0,i.AH)([{height:"38px",width:"38px","@media(min-width:768px)":{height:"54px",width:"54px"}}]);const k=function(e){let{headline:t,callToAction:a,k1:i,driver:o}=e;const[c,d]=(0,n.useState)(!1),v=(0,n.useRef)(!1),k=(0,n.useRef)((0,p.lk)()).current,M=(0,n.useRef)((0,p.lk)()).current,N=n.useMemo(()=>({brand:"Find and Path to Care - Medchat",category:"Medchat",formatType:i,location:"in-content",name:o.campaignName,productId:o.productId,text:a,variant:o.articlePlacement,marioStyle:o.style}),[i,a,o]);(0,n.useEffect)(()=>{v.current||((0,f.K8)(N,M),v.current=!0)},[N,M]);const R=`https://medchatapp.com/widget/widget.js?api-key=${m.A.medchatKey}&hide-launcher=true`,Z=(0,n.useCallback)(()=>{(0,w.cY)("medchat","Medchat window property is defined. Attempting to register chat properties..."),window.medchatapp.registerChatProperties([{name:"k1",value:i},{name:"correlationId",value:k},{name:"viewcorrelationId",value:M}
1,{name:"instanceId",value:window._Tagular.webContext.instanceId},{name:"anonymousId",value:window._Tagular.webContext.anonymousId},{name:"sessionId",value:window._Tagular.webContext.sessionId},{name:"pageUrl",value:window._Tagular.webContext.page.url},{name:"pageReferrer",value:window._Tagular.webContext.page.referrer}])},[i,k,M]);return(0,n.useEffect)(()=>{let e=!0;return(0,h.hq)(()=>{(0,s.Ay)(R,!1,{async:!0}).then(()=>{!function(e,t){void 0===t&&(t=()=>!0);const a=Date.now();!function n(){t()&&(window.medchatapp&&window.medchatapp.launcherReady?e():Date.now()-a<3e4?setTimeout(n,250):((0,u.nQ)("ui.medchat.appNeverReady"),(0,w.UT)("medchat","window.medchatapp was not defined within 30000ms")))}()}(()=>{(0,w.cY)("medchat","Medchat script has mounted. Awaiting window.medchatapp to be set..."),e&&d(!0)},()=>e)}).catch(()=>{(0,u.nQ)("ui.medchat.scriptLoadFailed"),(0,w.cY)("medchat","Medchat script failed to load.")})}),()=>{e=!1}},[R,i]),(0,n.useEffect)(()=>{c&&setTimeout(()=>{Z()},2500)},[c,Z]),g(n.Fragment,null,g(x.Waypoint,{onView:()=>(0,f.Z3)(N,M),repeat:!1}),g("div",{id:"medchat-driver-container",className:y},g("div",{id:"content-container",className:A,onClick:function(){c&&(window.medchatapp.expand(),(0,w.cY)("medchat","medchat expanded"),(0,f.uH)({...N,actionOutcome:"chat open",correlationId:k,viewCorrelationId:M}))},role:"button",tabIndex:"0"},g("div",{id:"text-container",className:b},g("span",{id:"headline-text",className:C},(0,l.A)({text:t,maxChars:99})),g("span",{id:"cta-text",className:I},(0,l.A)({text:a,maxChars:99}))),g("span",{id:"icon-wrapper",className:H},g(r,{className:T})))))}},72364(e,t,a){function n(e){try{return new URLSearchParams(window.location.search).get("debug")===e}catch{return!1}}function i(e){if(n(e)){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];console.log(`[${e}]`,...a)}}function o(e){if(n(e)){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];console.warn(`[${e}]`,...a)}}function c(e){if(n(e)){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];console.error(`[${e}]`,...a)}}function d(e,t){n(e)&&console.count(`[${e}] ${t}`)}a.d(t,{AO:()=>c,B$:()=>d,TT:()=>n,UT:()=>o,cY:()=>i})}}]);
2//# sourceMappingURL=medchat-2086d4b0.js.map

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.