(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6349],{38339:function(e,t,a){"use strict";a.d(t,{W:function(){return Container}});var n=a(35944),o=a(67294);let Container=e=>{let{className:t,...a}=e;return(0,n.tZ)("div",{className:(0,o.useMemo)(()=>"hhg-page-container ".concat(t),[t]),...a})}},97721:function(e,t,a){"use strict";a.d(t,{e:function(){return Disclaimer}});var n=a(35944),o=a(54576),r=a(57646),i=a(97564),l=a(96768),s=a(64523),c=a(86896),d=a(83015),h=(0,a(56817).k)(e=>({root:{padding:"".concat((0,l.h)(12)," ").concat((0,l.h)(16)),textAlign:"left",borderRadius:(0,l.h)(4),backgroundColor:e.colors.yellow[0]},icon:{display:"inline-block",verticalAlign:"middle",marginRight:(0,l.h)(4),[e.fn.largerThan("sm")]:{marginRight:(0,l.h)(8)}},title:{},content:{}}));let Disclaimer=e=>{let{title:t,content:a,styles:u,classNames:g}=e,{formatMessage:m}=(0,c.Z)(),{classes:p,theme:C}=h(void 0,{name:"Disclaimer",styles:u,classNames:g}),v=(0,d.d)();return t||a?(0,n.BX)(i.K,{className:p.root,spacing:(0,l.h)(4),children:[t&&(0,n.BX)(s.x,{children:[(0,n.tZ)(r.Z,{className:p.icon,isSolid:!0,color:C.colors.yellow[8],size:v?18:24}),(0,n.tZ)(o.T,{size:"s4",weight:"semiBold",as:"span",className:p.title,children:t||m({id:"confirmLeavePage.title",defaultMessage:"Leaving HHG page"})})]}),(0,n.tZ)(o.T,{size:"p4",className:p.content,children:a})]}):null}},56704:function(e,t,a){"use strict";var n=a(35944);a(67294),t.Z=e=>{let{size:t=40,color:a="#595959",...o}=e;return(0,n.tZ)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",...o,children:(0,n.tZ)("path",{d:"M7.99982 9.38055L5.45248 6.83322C5.17648 6.55722 4.72848 6.55722 4.45248 6.83322C4.17648 7.10922 4.17648 7.55722 4.45248 7.83322L7.52848 10.9092C7.78915 11.1699 8.21115 11.1699 8.47115 10.9092L11.5471 7.83322C11.8231 7.55722 11.8231 7.10922 11.5471 6.83322C11.2711 6.55722 10.8232 6.55722 10.5472 6.83322L7.99982 9.38055Z",fill:a})})}},4413:function(e,t,a){"use strict";var n=a(35944);a(67294),t.Z=e=>{let{size:t=24,color:a="#595959",...o}=e;return(0,n.tZ)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:(0,n.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.68301 13.3168C2.91634 13.5501 3.20139 13.6668 3.53814 13.6668H12.4612C12.7979 13.6668 13.083 13.5501 13.3163 13.3168C13.5496 13.0835 13.6663 12.7984 13.6663 12.4617V8.75656C13.6663 8.61469 13.6184 8.49589 13.5227 8.40016C13.427 8.30444 13.3082 8.25658 13.1663 8.25658C13.0244 8.25658 12.9056 8.30444 12.8099 8.40016C12.7142 8.49589 12.6663 8.61469 12.6663 8.75656V12.4617C12.6663 12.513 12.645 12.56 12.6022 12.6027C12.5595 12.6454 12.5125 12.6668 12.4612 12.6668H3.53814C3.48685 12.6668 3.43984 12.6454 3.39709 12.6027C3.35436 12.56 3.33299 12.513 3.33299 12.4617V3.53863C3.33299 3.48734 3.35436 3.44032 3.39709 3.39758C3.43984 3.35485 3.48685 3.33348 3.53814 3.33348H7.24324C7.38512 3.33348 7.50392 3.28562 7.59964 3.1899C7.69536 3.09417 7.74323 2.97537 7.74323 2.8335C7.74323 2.69162 7.69536 2.57282 7.59964 2.4771C7.50392 2.38136 7.38512 2.3335 7.24324 2.3335H3.53814C3.20139 2.3335 2.91634 2.45016 2.68301 2.6835C2.44967 2.91683 2.33301 3.20187 2.33301 3.53863V12.4617C2.33301 12.7984 2.44967 13.0835 2.68301 13.3168ZM6.83042 9.87193L12.6663 4.03603V6.16683C12.6663 6.30871 12.7142 6.42751 12.8099 6.52323C12.9056 6.61895 13.0244 6.66681 13.1663 6.66681C13.3082 6.66681 13.427 6.61895 13.5227 6.52323C13.6184 6.42751 13.6663 6.30871 13.6663 6.16683V2.3335H9.83298C9.6911 2.3335 9.5723 2.38136 9.47657 2.4771C9.38085 2.57282 9.33299 2.69162 9.33299 2.8335C9.33299 2.97537 9.38085 3.09417 9.47657 3.1899C9.5723 3.28562 9.6911 3.33348 9.83298 3.33348H11.9638L6.12787 9.16938C6.0313 9.26596 5.98301 9.38305 5.98301 9.52066C5.98301 9.65826 6.0313 9.77535 6.12787 9.87193C6.22445 9.96851 6.34261 10.0157 6.48236 10.0136C6.62209 10.0115 6.73811 9.96424 6.83042 9.87193Z",fill:a})})}},33877:function(e,t,a){"use strict";a.d(t,{U:function(){return Markdown}});var n=a(35944),o=a(67294),r=a(94184),i=a.n(r),l=a(89927),s=a(10166);let c=(0,s.Z)("div",{target:"e18kzt4e0"})("sup{position:relative;top:-0.5em;font-size:0.7em;}sub{position:relative;bottom:-0.5em;font-size:0.7em;}ul{padding-left:1.2em;list-style:inherit;}ol{padding-left:1.2em;}"),getMDInstance=()=>new l._("full",{html:!0,linkTarget:"_blank"}),Markdown=e=>{let{children:t,className:a,...r}=e,l=(0,o.useMemo)(()=>getMDInstance(),[]),s=i()(a,"markdown"),d=(0,o.useMemo)(()=>{let e={...r};return"string"==typeof t?e.dangerouslySetInnerHTML={__html:l.render(t)}:e.children=t,e},[t]);return(0,n.tZ)(c,{...d,className:s})}},21732:function(e,t,a){"use strict";a.d(t,{Z:function(){return er}});var n=a(35944),o=a(67294),r=a(27484),i=a.n(r),l=a(36808),s=a.n(l),c=a(97627),d=a(45683),h=a(10981),u=a(74641),g=a(80912),m=a(31932),p=a(40254),C=a(64523),v=a(58036),b=a(20868),x=a(83015),y=a(24612),w=a(70917),Z=a(56817),S=a(96768);let B=(0,w.F4)({from:{opacity:1,transform:"scale(0)"},to:{opacity:0,transform:"scale(1)"}});var T=(0,Z.k)((e,t)=>{let{showAnimation:a,bgImage:n}=t;return{root:{position:"fixed",bottom:(0,S.h)(16),right:(0,S.h)(16),[e.fn.largerThan("sm")]:{bottom:(0,S.h)(32),right:(0,S.h)(32)}},wrapper:{position:"relative",display:"flex",flexDirection:"row-reverse",alignItems:"center",gap:(0,S.h)(8),".ripple":{position:"absolute",width:"120px",height:"120px",zIndex:-1,left:"50%",top:"50%",opacity:"0",margin:"-60px 0 0 -60px",borderRadius:"100px",backgroundColor:"#ed184f",backgroundImage:"linear-gradient(90deg, #fd5581, #fd8b55)",...a&&{animation:"".concat(B," 1.8s infinite"),"&:nth-child(2)":{animationDelay:".3s"}}}},widget:{[e.fn.largerThan("sm")]:{position:"absolute",right:0,bottom:0,zIndex:1,borderRadius:(0,S.h)(16),width:(0,S.h)(480),height:(0,S.h)(640),boxShadow:"0 24px 32px 0px #0000001a"}},widgetHeader:{},widgetAction:{},welcomeBox:{position:"absolute",right:"10%",bottom:"25%",cursor:"pointer",[e.fn.largerThan("md")]:{right:"35%",bottom:"35%"}},welcomeBoxInner:{backgroundImage:"url(".concat(n,")"),backgroundSize:"contain",backgroundRepeat:"no-repeat",width:(0,S.h)(210),height:(0,S.h)(159),padding:"".concat((0,S.h)(8)," ").concat((0,S.h)(50)," ").concat((0,S.h)(16)," ").concat((0,S.h)(22)),[e.fn.largerThan("sm")]:{padding:"".concat((0,S.h)(6)," ").concat((0,S.h)(30)," ").concat((0,S.h)(16)," ").concat((0,S.h)(18))}},welcomeText:{color:"#fff"},welcomeClose:{position:"absolute",left:(0,S.h)(-9),top:(0,S.h)(-9),border:"3px solid transparent",borderRadius:"50%",backgroundColor:e.colors.gray[8]},indicatorCommon:{width:(0,S.h)(12),height:(0,S.h)(12),bottom:0,right:(0,S.h)(12),top:"auto"}}});let N=(0,o.createContext)({});var I=a(54576),E=(0,Z.k)(e=>({root:{}}));let TypeWritingEffect=e=>{let{text:t,delay:a=30,className:r,...i}=e,[l,s]=(0,o.useState)(""),[c,d]=(0,o.useState)(0),{classes:h,cx:u}=E(void 0,{name:"TypeWritingEffect"});return(0,o.useEffect)(()=>{if(c{s(e=>e+t[c]),d(e=>e+1)},a);return()=>clearTimeout(e)}},[c,a,t]),(0,n.tZ)(I.T,{className:u(r,h.root),...i,children:l})};var M=(0,Z.k)(e=>({root:{borderRadius:"inherit",background:e.colors.neutral[0],display:"flex",flexDirection:"column",height:"100%"},header:{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",flexShrink:0},footer:{},body:{overflowY:"hidden",height:"100%"},bodyWrapper:{}}));let ChatContainer=e=>{let{header:t,children:a,styles:o,classNames:r,className:i,...l}=e,{classes:s,cx:c}=M(void 0,{name:"AIChatBotWidget__ChatContainer",styles:o,classNames:r});return(0,n.BX)(C.x,{className:c(s.root,i),...l,children:[t&&(0,n.tZ)(C.x,{className:s.header,children:t}),(0,n.tZ)(C.x,{className:s.body,children:a})]})};var _=a(74706),D=(0,Z.k)(()=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"inherit",backgroundColor:"#EA0029",padding:"".concat((0,S.h)(8)," ").concat((0,S.h)(16)),".cs-conversation-header__user-name":{backgroundColor:"transparent"},".cs-conversation-header__avatar":{width:(0,S.h)(32),height:(0,S.h)(32),marginRight:(0,S.h)(8),".cs-avatar":{width:(0,S.h)(32)}}},info:{display:"flex",alignItems:"center",gap:(0,S.h)(8)},name:{color:"#fff"},closeBtn:{marginRight:(0,S.h)(-10),marginTop:(0,S.h)(-6),marginBottom:(0,S.h)(-6),"svg path":{fill:"#fff"}}}));(0,w.F4)({from:{width:"100%"},to:{width:"140%"}});var A=(0,Z.k)((e,t)=>{let{borderSize:a,maxWidthPercent:n}=t;return{root:{borderRadius:"50%",border:"".concat(a,"px solid transparent"),...a>0&&{backgroundImage:"linear-gradient(143.34deg, #BA0711 9.97%, #FF676F 49.87%, #B2050F 89.78%)"},cursor:"pointer","&, *":{transition:"all .3s ease !important"}},avatarRoot:{position:"relative",borderRadius:"inherit",display:"flex",justifyContent:"center",alignItems:"center","&:before":{content:'""',position:"absolute",width:"100%",height:"100%",backgroundImage:"linear-gradient(90deg, #E3BE52 0%, #FCE7A3 21.89%, #EDC255 50.25%, #FADB7D 79.29%, #E5BA47 93.5%)"}},avatarImage:{position:"relative",zIndex:1,borderRadius:"inherit",maxWidth:"".concat(n,"%"),maxHeight:"".concat(n,"%")}}});let AvatarFocus=e=>{let{borderSize:t=1,avatarSize:a=32,maxWidthPercent:r=80,className:i,classNames:l,styles:s,onClick:c,...d}=e,{avatar:h}=(0,o.useContext)(N),{classes:u,cx:g}=A({borderSize:t,maxWidthPercent:r},{name:"AIChatBotWidget__ConversationHeader",classNames:l,styles:s});return(0,n.tZ)(C.x,{className:g(u.root,i),...d,onClick:c,children:(0,n.tZ)(_.a,{size:a,src:h,classNames:{root:u.avatarRoot,image:u.avatarImage}})})},ConversationHeader=e=>{let{headingTag:t=(0,n.tZ)(I.T,{}),styles:a,classNames:r,className:i,onClose:l,...s}=e,{name:c}=(0,o.useContext)(N),{classes:d,cx:h}=D(void 0,{name:"AIChatBotWidget__ConversationHeader",styles:a,classNames:r});return(0,n.BX)(C.x,{className:h(d.root,i),...s,children:[(0,n.BX)(C.x,{className:d.info,children:[(0,n.tZ)(AvatarFocus,{}),o.cloneElement(t,{size:"s3",className:d.name,children:c})]}),l&&(0,n.tZ)(_.B,{color:"#EA0029",leftIcon:(0,n.tZ)(m.Z,{}),className:d.closeBtn,onClick:()=>null==l?void 0:l()})]})};var L=(0,Z.k)(()=>({root:{},header:{},action:{},starterBox:{},scrollBody:{}})),R=a(86896),F=a(50667),H=a(61902),z=a(95386),W=(0,Z.k)(()=>({root:{display:"flex",flexDirection:"column",gap:(0,S.h)(12)},timeBar:{textAlign:"center"},highlightMessage:{cursor:"pointer"},errorTxt:{},indicator:{},action:{},scrollBody:{}})),P=a(12185),X=(0,Z.k)(e=>({root:{display:"flex",flexDirection:"column",height:"100%",justifyContent:"space-between",gap:(0,S.h)(0)},header:{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",flexShrink:0},footer:{},bodyWrapper:{},action:{padding:"".concat((0,S.h)(12)," ").concat((0,S.h)(16)),flexShrink:0,display:"flex",flexDirection:"column",gap:(0,S.h)(12),[e.fn.largerThan("sm")]:{padding:(0,S.h)(16)}},scrollArea:{height:"100%",overflowY:"auto"},scrollBody:{padding:(0,S.h)(16),paddingBottom:0,"*":{overflowAnchor:"none"},"#anchor":{overflowAnchor:"auto",height:"1px"},[e.fn.largerThan("sm")]:{"::-webkit-scrollbar":{width:(0,S.h)(6)},"::-webkit-scrollbar-track":{background:"transparent"},"::-webkit-scrollbar-thumb":{background:e.colors.neutral[3],borderRadius:(0,S.h)(6)}}}}));let ChatBody=e=>{let{action:t,actionState:a,children:r,styles:i,classNames:l,className:s,scrollToBottom:c,...d}=e,{classes:h,cx:u}=X(void 0,{name:"AIChatBotWidget__ChatBody",styles:i,classNames:l}),[g,m]=(0,P.y)();return(0,o.useEffect)(()=>{c&&g.current&&(g.current.scrollTop=g.current.scrollHeight)},[m.height]),(0,n.BX)(C.x,{className:u(h.root,s),...d,children:[(0,n.tZ)(C.x,{className:h.scrollArea,children:(0,n.BX)(C.x,{className:h.scrollBody,ref:g,children:[r,(0,n.tZ)("div",{id:"anchor"})]})}),(0,n.BX)(C.x,{className:h.action,children:[a&&(0,n.tZ)(C.x,{children:a}),(0,n.tZ)(C.x,{children:t})]})]})};var V=a(92935),O=a(38347),U=(0,Z.k)(()=>({root:{borderRadius:(0,S.h)(8),gap:(0,S.h)(2),background:"linear-gradient(90deg, #F5D796 0%, #F5DDA0 13.5%, #FEF8CF 21.89%, #F8D694 50.25%, #F4DB9D 69.5%, #FEF8CF 79.29%, #EEC981 93.5%)\n ",padding:"".concat((0,S.h)(8)," ").concat((0,S.h)(12)),color:"#EA0029"},heading:{color:"#EA0029"},description:{color:"#EA0029"},icon:{flexShrink:0},header:{display:"flex",justifyContent:"space-between"}}));let HightlightMessage=e=>{let{heading:t,description:a,withArrow:o=!0,styles:r,classNames:i,className:l,onClick:s,...c}=e,{classes:d,cx:h}=U(void 0,{name:"AIChatBotWidget__VoucherMessage",styles:r,classNames:i});return(0,n.BX)(C.x,{className:h(d.root,l),...c,onClick:s,children:[(0,n.BX)(C.x,{className:d.header,children:[t&&(0,n.tZ)(V.H,{className:d.heading,tag:"h6",children:t}),o&&(0,n.tZ)(O.I.ArrowRightTail,{className:d.icon,size:20,useCurrentColor:!0})]}),a&&(0,n.tZ)(I.T,{className:d.description,size:"n1",children:a})]})};var j=a(33877),Y=(0,Z.k)((e,t)=>{let{isIncomming:a}=t;return{root:{display:"flex",gap:(0,S.h)(8),alignItems:"flex-start",...!a&&{borderBottomRightRadius:0,alignSelf:"flex-end"},[e.fn.largerThan("sm")]:{maxWidth:a?"calc(100% - 40px)":"calc(100% - 80px)"}},avatar:{flexShrink:0},content:{borderRadius:(0,S.h)(16),backgroundColor:a?"#fff":"#FBE6E6",padding:"".concat((0,S.h)(8)," ").concat((0,S.h)(12)),...a?{borderTopLeftRadius:0}:{borderBottomRightRadius:0}}}});let G=o.memo(e=>{let{isIncomming:t,content:a,styles:o,classNames:r,className:i,...l}=e,s=(0,x.d)(),{classes:c,cx:d}=Y({isIncomming:t},{name:"AIChatBotWidget__Message",styles:o,classNames:r});return a?(0,n.BX)(C.x,{className:d(c.root,i),style:o,...l,children:[t&&(0,n.tZ)(AvatarFocus,{className:c.avatar,avatarSize:28,borderSize:0}),(0,n.tZ)(I.T,{size:s?"p3":"p4",className:c.content,as:"div",children:(0,n.tZ)(j.U,{children:a})})]}):null});var q=a(57646),icons_Send=e=>{let{size:t=40,color:a="#595959",...o}=e;return(0,n.tZ)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:(0,n.tZ)("path",{d:"M18.723 12.8385L4.76541 18.7231C4.46414 18.8436 4.17793 18.8176 3.90678 18.6452C3.63561 18.4727 3.50003 18.2224 3.50003 17.8942V6.10586C3.50003 5.77764 3.63561 5.52731 3.90678 5.35488C4.17793 5.18245 4.46414 5.15649 4.76541 5.27701L18.723 11.1616C19.0948 11.3257 19.2807 11.6052 19.2807 12C19.2807 12.3949 19.0948 12.6744 18.723 12.8385ZM5.00001 17L16.85 12L5.00001 7.00003V10.6924L10.423 12L5.00001 13.3077V17Z",fill:a})})},K=(0,Z.k)(e=>({root:{display:"flex",flexDirection:"column",gap:(0,S.h)(4)},inputRoot:{position:"relative"},inputInput:{width:"100%",height:(0,S.h)(46),lineHeight:(0,S.h)(28),fontSize:(0,S.h)(14),paddingLeft:(0,S.h)(14),paddingRight:(0,S.h)(50),borderRadius:(0,S.h)(8),backgroundColor:"#fff",border:"1px solid ".concat(e.colors.neutral[2]),"&:focus":{boxShadow:"0px 0px 0px 2px #91caff",borderColor:"#2d87f3"}},rightSection:{position:"absolute",top:0,right:0,bottom:0,display:"flex",alignItems:"center"},disclaimer:{display:"flex",gap:(0,S.h)(4)},disclaimerText:{fontSize:(0,S.h)(10),lineHeight:(0,S.h)(16)},disclaimerIcon:{flexShrink:0,marginTop:(0,S.h)(1)},input:{},submitBtn:{width:(0,S.h)(40),backgroundColor:"transparent","&[data-disabled]":{backgroundColor:"transparent",svg:{opacity:.2}}}}));let MessageInput=e=>{let{children:t,disabled:a,styles:r,classNames:i,className:l,onSubmit:s,...c}=e,{formatMessage:d}=(0,R.Z)(),{classes:h,cx:u}=K(void 0,{name:"AIChatBotWidget__MessageInput",styles:r,classNames:i}),[g,m]=(0,o.useState)(""),p=(0,o.useCallback)(e=>{if(e.preventDefault(),a)return!1;g&&(s({message:g}),m(""))},[g]);return(0,n.BX)("form",{className:u(h.root,l),onSubmit:p,...c,children:[(0,n.BX)(C.x,{className:h.inputRoot,children:[(0,n.tZ)("input",{type:"text",value:g,onChange:e=>m(e.target.value),className:h.inputInput,name:"input-message",placeholder:d({id:"chatbot.inputPlaceholder"})}),(0,n.tZ)(C.x,{className:h.rightSection,children:(0,n.tZ)(_.B,{className:u(h.submitBtn),disabled:a,type:"submit",variant:"white",leftIcon:(0,n.tZ)(icons_Send,{size:24})})})]}),(0,n.BX)(C.x,{className:h.disclaimer,children:[(0,n.tZ)(q.Z,{size:14,className:h.disclaimerIcon}),(0,n.tZ)(I.T,{size:"n1",className:h.disclaimerText,children:d({id:"chatbot.disclaimer"})})]})]})};async function readMessageStream(e,t){let a=e.getReader(),n=new TextDecoder,o=[];for(;;){let{done:e,value:r}=await a.read();if(e)break;if(r){let e=n.decode(r);o.push(e),null==t||t(e)}}let r=o.join("");return formatStream(r)}let formatStream=e=>{let t=e.split("\n\n").filter(Boolean),a=t.map(e=>{let t=JSON.parse(e.replace("data: ",""));return"MESSAGE"===t.event?t.message.content:""});return a.join("")};function StreamingMessage(e){let{stream:t}=e,[a,r]=(0,o.useState)("");return(0,o.useEffect)(()=>{t.locked||readMessageStream(t,e=>{r(t=>t+formatStream(e))})},[t]),(0,n.tZ)(G,{isIncomming:!0,content:a})}let TimeBar=e=>{let{date:t,...a}=e,{locale:r}=(0,z.h)(),{formatMessage:l}=(0,R.Z)(),s=(0,o.useMemo)(()=>i()(t),[t]);return t?(0,n.tZ)(C.x,{...a,children:(0,n.BX)(I.T,{size:"s4",sx:{padding:"4px 12px"},children:[s.isBefore(i()().subtract(1,"week"))?s.format(y.TT[r]):s.isSame(i()().subtract(1,"day"),"day")?l({id:"searchPage.yesterday"}):s.isSame(i()(),"day")?l({id:"searchPage.today"}):s.format("dddd")," ",s.format("HH:mm")]})}):null},$=(0,w.F4)({"0%":{transform:"translateY(0px)"},"28%":{transform:"translateY(-5px)"},"44%":{transform:"translateY(0px)"}});var J=(0,Z.k)(e=>({root:{"& .cs-typing-indicator":{boxSizing:"content-box",fontSize:"0.9em",display:"flex",gap:(0,S.h)(8),alignItems:"stretch",".indicator":{boxSizing:"inherit",display:"flex",alignItems:"center"},".dot":{boxSizing:"inherit",animation:"".concat($," 1.3s infinite ease-in-out"),borderRadius:"50%",display:"inline-block",height:(0,S.h)(4),width:(0,S.h)(4),backgroundColor:e.colors.blue[8]},".dot:not(:last-child)":{marginRight:(0,S.h)(3)},".dot:nth-of-type(1)":{boxSizing:"inherit"},".dot:nth-of-type(2)":{animationDelay:"300ms"},".dot:nth-of-type(3)":{animationDelay:"400ms"},".text":{fontStyle:"italic"}}}}));let TypingIndicator=e=>{let{children:t,styles:a,classNames:r,className:i,...l}=e,{formatMessage:s}=(0,R.Z)(),{name:c}=(0,o.useContext)(N),{classes:d,cx:h}=J(void 0,{name:"AIChatBotWidget__TypingIndicator",styles:a,classNames:r});return(0,n.tZ)(C.x,{className:h(d.root,i),...l,children:(0,n.BX)("div",{className:"cs-typing-indicator",children:[(0,n.BX)("div",{className:"indicator",children:[(0,n.tZ)("div",{className:"dot"}),(0,n.tZ)("div",{className:"dot"}),(0,n.tZ)("div",{className:"dot"})]}),(0,n.tZ)(I.T,{size:"n1",className:"text",children:s({id:"chatbot.isTypingState"},{name:c})})]})})},MessageList=e=>{var t;let{starterMessage:a,children:r,styles:i,classNames:l,className:c,...h}=e,{formatMessage:u}=(0,R.Z)(),{locale:g}=(0,z.h)(),{classes:m}=W(void 0,{name:"AIChatBotWidget__MessageList",styles:i,classNames:l}),p=(0,b.U)(),{showHighlightMessage:v,chatId:x,messageList:w,numberToShowHighlightMess:Z,onClickHighlightMess:B}=(0,o.useContext)(N),[T,E]=(0,o.useState)(!1),[M,_]=(0,o.useState)(),[D,A]=(0,o.useState)(!1),[L,P]=(0,o.useState)(w||[]),[X,V]=(0,o.useState)(!1),[O,U]=(0,o.useState)(!1);(0,o.useEffect)(()=>{if(w){var e;P(w||[]),1===w.length&&(null==w?void 0:null===(e=w[0])||void 0===e?void 0:e.message)&&j(w[0].message)}},[w]),(0,o.useEffect)(()=>{v&&!O&&q()},[,L]);let j=(0,o.useCallback)(async e=>{V(!1),e&&Y(e)},[]),Y=(0,o.useCallback)(async e=>{E(!0),A(!0),fetch((0,F.Zo)(d.y.CHATBOT.SEND_MESSAGE,{project:"sgm-soya-chat"}),{method:"POST",body:JSON.stringify({user_id:s().get("_ga"),chat_id:x,message:e,country_code:y.kk[g]}),headers:{"Content-Type":"application/json"}}).then(e=>e.body).then(e=>{let t=null==e?void 0:e.getReader();return new ReadableStream({start(e){!function push(){null==t||t.read().then(t=>{let{done:a,value:n}=t;if(a){e.close();return}e.enqueue(n),push()})}()}})}).then(e=>{let[t,a]=e.tee();return E(!1),_(t),readMessageStream(a)}).then(e=>(_(void 0),P(t=>[...t,{type:"incoming",message:e}]),A(!1),e)).catch(e=>{_(void 0),A(!1),E(!1),V(!0),console.log(e),(0,H.showNotification)({title:"",message:u({id:"notification.comment.somethingWrong"}),type:"danger"})})},[]),q=(0,o.useCallback)(()=>{P(e=>(e.filter(e=>"incoming"===e.type).length>=Z&&U(!0),e))},[]);return(0,n.tZ)(ChatBody,{scrollToBottom:!0,classNames:{action:m.action,scrollBody:m.scrollBody},actionState:O||T||X?(0,n.BX)(C.x,{sx:{display:"flex",flexDirection:"column",gap:(0,S.h)(10)},children:[O&&(0,n.tZ)(HightlightMessage,{className:m.highlightMessage,heading:"Ambil Voucher Diskon Rp 12,000 Di Sini!",description:"Berikan Nutrisi Tepat untuk si Kecil Tidak Cocok Susu Sapi di Sini","data-event-category":"Chatbot","data-event-action":"Form Open Click","data-event-label":p,onClick:B}),T&&(0,n.tZ)(TypingIndicator,{className:m.indicator}),X&&(0,n.tZ)(I.T,{size:"n1",color:"red",className:m.errorTxt,children:u({id:"chatbot.messageErr",defaultMessage:"There was an error sending the message, please try again."})})]}):void 0,action:(0,n.tZ)(MessageInput,{disabled:D,onSubmit:e=>{let{message:t}=e;P(e=>[...e,{message:t,type:"current"}]),j(t)}}),...h,children:(0,n.BX)(C.x,{className:m.root,children:[(0,n.tZ)(TimeBar,{date:null==L?void 0:null===(t=L[0])||void 0===t?void 0:t.date,className:m.timeBar}),L.map((e,t)=>(0,n.tZ)(G,{content:e.message,isIncomming:"incoming"===e.type},String(t))),M&&(0,n.tZ)(StreamingMessage,{stream:M})]})})};var Q=a(64577),ee=a(83855),et=(0,Z.k)((e,t)=>{let{starterAvatarSize:a}=t;return{root:{display:"flex",flexDirection:"column",gap:(0,S.h)(16),justifyContent:"center",height:"100%"},heading:{color:"#fff"},description:{color:"#fff"},icon:{flexShrink:0},header:{display:"flex",flexDirection:"column",alignItems:"center",gap:(0,S.h)(8)},mainInfo:{display:"flex",flexDirection:"column",gap:(0,S.h)(12),height:"100%",justifyContent:"center"},avatarWrapper:{width:(0,S.h)(a)},frame:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,backgroundImage:"url(".concat(h.C.getAssetPath("soya/avatar-frame.png"),")"),backgroundRepeat:"no-repeat",backgroundSize:"contain"},avatar:{position:"absolute",top:"14%"},avatarRoot:{width:"".concat(.75*a,"px"),height:"".concat(.75*a,"px"),minWidth:"".concat(.75*a,"px"),backgroundImage:"linear-gradient(90deg, #F8EABF 0%, #F7DA92 50.25%, #F2CA67 100%)"},suggestContent:{textAlign:"center"},suggestListing:{display:"flex",flexDirection:"column",gap:(0,S.h)(12),flexShrink:0,paddingBottom:(0,S.h)(16)},action:{},welcomeText:{textAlign:"center",maxWidth:(0,S.h)(520)},scrollBody:{}}}),ea=(0,Z.k)(()=>({root:{borderRadius:(0,S.h)(16),gap:(0,S.h)(8),backgroundColor:"#fff",padding:(0,S.h)(12),boxShadow:"0 4px 16px 0px #0000000A",cursor:"pointer"},heading:{color:"#EA0029"},description:{}}));let SuggestMessage=e=>{let{heading:t,description:a,styles:o,classNames:r,className:i,onClick:l,...s}=e,{classes:c,cx:d}=ea(void 0,{name:"AIChatBotWidget__SuggestMessage",styles:o,classNames:r});return(0,n.BX)(C.x,{className:d(c.root,i),...s,onClick:l,children:[t&&(0,n.tZ)(I.T,{className:c.heading,size:"s2",children:t}),a&&(0,n.tZ)(I.T,{className:c.description,size:"p3",children:a})]})},StarterBox=e=>{let{styles:t,classNames:a,onStart:r,...i}=e,{formatMessage:l}=(0,R.Z)(),c=(0,x.d)(),d=(0,b.U)(),{cookieId:h,setChatId:u,allowSaveHistory:g,starterAvatarSize:m}=(0,o.useContext)(N),{classes:p}=et({starterAvatarSize:m||183},{name:"AIChatBotWidget__StarterBox",styles:t,classNames:a}),v=(0,o.useMemo)(()=>[{title:"Ciri-ciri Si Kecil Tidak Cocok Susu Sapi",description:""},{title:"Tips untuk Si Kecil Tidak Cocok Susu Sapi Tumbuh Optimal",description:""}],[]),y=(0,o.useCallback)(e=>{if(!e)return;let t=(0,ee.DM)();u(t),g&&h&&s().set(h,t),null==r||r({message:e,type:"current",date:new Date})},[]);return(0,n.tZ)(ChatBody,{classNames:{action:p.action,scrollBody:p.scrollBody},action:(0,n.tZ)(MessageInput,{onSubmit:e=>{let{message:t}=e;return y(t)}}),...i,children:(0,n.BX)(C.x,{className:p.root,children:[(0,n.tZ)(C.x,{className:p.mainInfo,children:(0,n.BX)(C.x,{className:p.header,children:[(0,n.tZ)(C.x,{className:p.avatarWrapper,children:(0,n.tZ)(Q.o,{ratio:1.14375,children:(0,n.BX)(C.x,{children:[(0,n.tZ)(C.x,{className:p.frame}),(0,n.tZ)(AvatarFocus,{borderSize:0,avatarSize:c?122:140,maxWidthPercent:65,classNames:{root:p.avatar,avatarRoot:p.avatarRoot}})]})})}),(0,n.BX)(I.T,{size:"s1",className:p.welcomeText,children:["Halo Ayah/Bunda!",(0,n.tZ)("br",{}),"Bagaimana Hello Sehat Expert bisa membantu hari ini?"]})]})}),(0,n.BX)(C.x,{className:p.suggestListing,children:[(0,n.tZ)(I.T,{size:"p4",className:p.suggestContent,children:l({id:"chatbot.suggestIntro",defaultMessage:"Typing in a message or choose one of the options below:"})}),v.map((e,t)=>(0,n.tZ)(SuggestMessage,{heading:e.title,description:e.description,"data-event-category":"Chatbot","data-event-action":"Click - ".concat(e.title),"data-event-label":d,onClick:()=>y(e.title)},String(t)))]})]})})},Widget=e=>{let{headingTag:t,styles:a,classNames:r,onClose:i,...l}=e,{classes:s}=L(void 0,{name:"AIChatBot__Widget",styles:a,classNames:r}),{messageList:c,setMessageList:d}=(0,o.useContext)(N);return(0,n.tZ)(ChatContainer,{classNames:{root:s.root},header:(0,n.tZ)(ConversationHeader,{headingTag:t,onClose:i,className:s.header}),...l,children:null!==c?(0,n.tZ)(MessageList,{classNames:{action:s.action,scrollBody:s.scrollBody}}):(0,n.tZ)(StarterBox,{onStart:e=>{d([e])},classNames:{action:s.action,root:s.starterBox,scrollBody:s.scrollBody}})})},BubbleChat=e=>{let{styles:t,classNames:a,widgetModalProps:r,...i}=e,l=(0,x.d)(),[s,c]=(0,o.useState)(!1),[d,w]=(0,o.useState)(!1),[Z,S]=(0,o.useState)(!1),[B,I]=(0,o.useState)(!1),E=h.C.getAssetPath("soya/chat-bubble.png"),{avatar:M,showWidget:_,setShowWidget:D}=(0,o.useContext)(N),{classes:A}=T({showAnimation:s&&B&&!_,bgImage:E},{name:"AIChatBot__BubbleChat",styles:t,classNames:a}),L=(0,b.U)(),R={className:A.widget,onClose:()=>D(!1)};return(0,o.useEffect)(()=>{let e=new Image;e.src=M,e.onload=()=>{c(!0)}},[]),(0,o.useEffect)(()=>{_&&w(!1)},[_]),(0,o.useEffect)(()=>{let e=new Image;e.src=E,e.onload=()=>{setTimeout(()=>w(!0),1e3)}},[s]),(0,o.useEffect)(()=>{d?setTimeout(()=>S(!0),1e3):s&&I(!0)},[d]),(0,n.tZ)(p.h,{target:y.Hh,children:(0,n.BX)(C.x,{className:A.root,...i,children:[(0,n.tZ)(v.u,{mounted:s,keepMounted:!0,transition:"slide-left",children:e=>(0,n.BX)(C.x,{className:A.wrapper,style:e,children:[(0,n.tZ)("span",{className:"ripple pinkBg"}),(0,n.tZ)("span",{className:"ripple pinkBg"}),(0,n.tZ)("span",{className:"ripple pinkBg"}),(0,n.tZ)(u.I,{disabled:!B,inline:!0,size:12,classNames:{common:A.indicatorCommon},style:e,children:(0,n.tZ)(AvatarFocus,{borderSize:4,avatarSize:l||!d&&B?64:80,"data-event-category":"Chatbot","data-event-action":"Start Chat","data-event-label":L,onClick:()=>D(!0)})})]})}),(0,n.tZ)(v.u,{mounted:d,keepMounted:!0,transition:"pop-bottom-right",children:e=>(0,n.BX)(C.x,{className:A.welcomeBox,style:e,children:[(0,n.tZ)(C.x,{"data-event-category":"Chatbot","data-event-action":"Start Chat","data-event-label":L,onClick:()=>D(!0),children:(0,n.tZ)(C.x,{className:A.welcomeBoxInner,children:Z&&(0,n.tZ)(TypeWritingEffect,{className:A.welcomeText,size:"s3",text:"Chat Hello Sehat Expert, Dapatkan Tips Tumbuh Kembang Si Kecil!"})})}),(0,n.tZ)(m.Z,{size:20,color:"#fff",className:A.welcomeClose,onClick:e=>{e.stopPropagation(),w(!1)}})]})}),l?(0,n.tZ)(g.M,{keepMounted:!0,fullScreen:!0,target:y.Hh,opened:_,styles:()=>({content:{height:"100%"},body:{height:"100%",padding:0}}),onClose:()=>console.log("close"),...r,children:(0,n.tZ)(Widget,{...R,styles:{root:{height:"100%"}}})}):(0,n.tZ)(v.u,{mounted:_,keepMounted:!0,transition:"pop-bottom-right",children:e=>(0,n.tZ)(Widget,{...R,style:e})})]})})},en=(0,o.forwardRef)(function(e,t){let{name:a,avatar:r,children:l,cookieId:h="aiChatId",allowSaveHistory:u,numberToShowHighlightMess:g=2,showHighlightMessage:m,onClickHighlightMess:p,widgetModalProps:C,starterAvatarSize:v}=e,[b,x]=(0,o.useState)(""),[y,w]=(0,o.useState)(null),[Z,S]=(0,o.useState)(!1);(0,o.useImperativeHandle)(t,()=>({resetChatId:()=>{u&&(x(""),s().remove(h)),w(null)},setShowWidget:S}));let B=(0,o.useCallback)(async e=>{let t=await(0,c.d)(d.y.CHATBOT.GET_CHAT_HISTORY,{method:"GET",params:{project:"sgm-soya-chat",userId:s().get("_ga"),chatId:e}},"chatbot"),a=(null==t?void 0:t.history)||[];a.length>0?(x(e),w(a.map(e=>({type:"BOT"===e.role?"incoming":"current",message:e.content,date:i()(e.created_at).toDate()})))):s().remove(h)},[]);return(0,o.useEffect)(()=>{if(u){let e=s().get(h);e&&B(e)}},[]),(0,n.tZ)(N.Provider,{value:{name:a,avatar:r,cookieId:h,fetchHistory:B,messageList:y,setMessageList:w,chatId:b,setChatId:x,numberToShowHighlightMess:g,showHighlightMessage:m,onClickHighlightMess:p,starterAvatarSize:v,showWidget:Z,setShowWidget:S},children:l||(0,n.tZ)(BubbleChat,{widgetModalProps:C})})}),eo={...en,Widget:Widget,BubbleChat:BubbleChat};var er=eo},1956:function(e,t,a){"use strict";a.d(t,{$:function(){return o}});var n=a(67294);let o=(0,n.createContext)({})},90925:function(e,t,a){"use strict";a.d(t,{b:function(){return CustomBanner}});var n=a(35944),o=a(67294),r=a(74706),i=a(64523),l=a(96768),s=a(97564),c=a(38339),d=a(97721),h=a(97802),u=a(83015),g=a(56817),m=(0,g.k)((e,t)=>{let{numberItem:a,blockName:n}=t;return{navigatorWrapper:{..."ElegantUI"!==n&&{background:e.colors.neutral[0]}},navigatorInner:{},navigatorRoot:{display:"flex",gap:(0,l.h)(24),..."FlatIcon"===n?{...a>6?{flexWrap:"wrap"}:{justifyContent:"center"},[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:(0,l.h)(8)}}:"ElegantUI"===n?{gap:(0,l.h)(12),...a>6?{flexWrap:"wrap"}:{justifyContent:"center"},[e.fn.smallerThan("sm")]:{flexDirection:"column"}}:"ImageIcon"==n?{[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:(0,l.h)(8)}}:{}},navigatorItem:{..."FlatIcon"===n?{width:"100%",flexGrow:1,...a>6&&{width:(0,l.h)(168),flexGrow:0},[e.fn.smallerThan("sm")]:{width:"100%"},[e.fn.largerThan("sm")]:{gap:(0,l.h)(12)}}:"ImageIcon"===n?{width:"100%",flexGrow:1,...a>6&&{width:(0,l.h)(168),flexGrow:0},[e.fn.largerThan("sm")]:{gap:(0,l.h)(12)}}:"ElegantUI"===n?{width:"calc((100% - 36px)/4)",[e.fn.smallerThan("sm")]:{width:"100%"}}:{}},navigatorItemImgWrapper:{[e.fn.largerThan("sm")]:{width:(0,l.h)(64),height:(0,l.h)(64)}},navigatorItemTitle:{},disclaimer:{border:"1px solid ".concat(e.colors.yellow[1]),borderRadius:(0,l.h)(8),[e.fn.smallerThan("sm")]:{padding:(0,l.h)(8)}},disclaimerTitle:{fontWeight:"normal"}}}),p=a(63963),C=a(13275),v=a(2480),b=a(38347),x=a(92935),y=a(64577),w=a(67841),Z=a(91759),S=a(86896),B=a(79069),T=a(70917);let N=(0,T.F4)({"0%":{transform:"translateX(-2px)"},"50%":{transform:"translateX(2px)"},"100%":{transform:"translateX(-2px)"}});(0,T.F4)({"0%, 5%, 50%, 100%":{backgroundPosition:"0 50%"},"35%":{backgroundPosition:"100% 50%"}});var I=(0,g.k)(e=>({root:{overflow:"hidden",img:{objectFit:"cover",width:"100%",height:"100%"}},wrapper:{position:"relative"},heading:{position:"absolute",[e.fn.smallerThan("sm")]:{left:(0,l.h)(16),right:(0,l.h)(16),top:(0,l.h)(16),textAlign:"center"},[e.fn.largerThan("sm")]:{left:(0,l.h)(40),top:(0,l.h)(40)}},cta:{position:"absolute",[e.fn.smallerThan("sm")]:{left:(0,l.h)(16),right:(0,l.h)(16)},[e.fn.largerThan("sm")]:{left:(0,l.h)(40),bottom:(0,l.h)(40)}},ctaBtn:{color:"#fff",[e.fn.smallerThan("sm")]:{width:"100%"}},ctaBtnRightIcon:{},ctaArrow:{animation:"".concat(N," 0.6s infinite")},popoperDropdown:{padding:0,border:0},popoperArrow:{backgroundColor:e.colors.yellow[0]},disclaimer:{padding:(0,l.h)(8),border:"1px solid ".concat(e.colors.yellow[1])},disclaimerText:{fontSize:(0,l.h)(12),lineHeight:(0,l.h)(18)}})),E=a(1956);let SingleBannerItem=e=>{let{desktopBanner:t,mobileBanner:a,linkTo:l,title:s,ctaTitle:c,styles:g,ratio:m,className:p,classNames:C,dataTracking:v,hasLeavePageConfirm:T,keepRatio:N=!0,onBannerLoad:M,..._}=e,{formatMessage:D}=(0,S.Z)(),{classes:A,cx:L}=I(void 0,{name:"CarePathHeroBannerBannerItem",styles:g,classNames:C}),{onItemClick:R}=(0,o.useContext)(E.$),[F,{close:H,open:z}]=(0,Z.q)(!1),W=(0,u.d)(),P=(0,h.t)([l]),X=N?(0,n.tZ)(y.o,{ratio:m||(W?.75:3.2),children:(0,n.tZ)("img",{loading:"lazy",src:W?a:t,alt:""})}):(0,n.tZ)(i.x,{children:(0,n.tZ)("img",{loading:"lazy",src:W?a:t,alt:"",onLoad:()=>setTimeout(()=>null==M?void 0:M(),400)})}),{formatUrl:V,isValidUrl:O,isExternalUrl:U,isExternalSite:j}=(null==P?void 0:P[0])||{},{handleClick:Y}=(0,B.g)(V),G={component:O?"a":"div",href:V,target:U?"_blank":"_self","data-event-category":"Service Connection","data-event-action":"Banner Click","data-event-label":V,...v,onClick:T?Y:e=>{if(!U&&V.includes("#")){e.preventDefault();let t=V.split("#");console.log({abcdef:t[t.length-1]}),null==R||R(t[t.length-1])}}},q=(0,n.tZ)(w.z,{"data-primary-btn":"true",onMouseEnter:z,onMouseLeave:H,classNames:{root:A.ctaBtn,rightIcon:A.ctaBtnRightIcon},size:"lg",rightIcon:(0,n.tZ)(b.I.ArrowRightTail,{className:A.ctaArrow,color:"currentColor",size:W?20:24}),children:c});return(0,n.tZ)(i.x,{className:L(A.root,p),sx:()=>({overflow:"hidden",img:{objectFit:"cover",width:"100%",height:"100%"}}),..._,children:c?(0,n.BX)(i.x,{className:A.wrapper,children:[X,s&&(0,n.tZ)(x.H,{className:A.heading,tag:"h1",children:s}),(0,n.tZ)(i.x,{...G,className:L(A.cta,"pointer-event-child-none"),children:j?(0,n.BX)(r.p,{width:264,withinPortal:!0,position:"bottom",withArrow:!0,shadow:"md",opened:F,classNames:{dropdown:A.popoperDropdown,arrow:A.popoperArrow},children:[(0,n.tZ)(r.p.Target,{children:q}),(0,n.tZ)(r.p.Dropdown,{children:(0,n.tZ)(d.e,{classNames:{root:A.disclaimer,content:A.disclaimerText},content:D({id:"confirmLeavePage.content",defaultMessage:"As your trusted health partner, we want to ensure you have the information you need to safeguard your health. Are you sure you want to leave this page?"})})})]}):q})]}):(0,n.BX)(i.x,{...G,className:"pointer-event-child-none",children:[(0,n.tZ)(i.x,{className:A.wrapper,children:X}),s&&(0,n.tZ)(x.H,{className:A.heading,tag:"h1",children:s})]})})},CustomBanner=e=>{let{colorArr:t,sessionProps:{imageBanner:a,navigating:g=[],medicalFacts:b},navigatorProps:x,styles:y,bannerTracking:w,keepRatio:Z,onBannerLoad:S}=e,B=(0,u.d)(),T=[...g].slice(0,6),N=(0,o.useMemo)(()=>{var e;return(null==x?void 0:null===(e=x.itemComponent)||void 0===e?void 0:e.displayName)||"FlatIcon"},[T]),{classes:I}=m({numberItem:T.length,blockName:N},{name:"CarePathHeroBannerCustomLayout",styles:y}),E=(0,h.t)([a[0].linkTo,...T.map(e=>e.url)]);return(0,n.BX)(i.x,{children:[(0,n.tZ)(i.x,{children:a.length>1?(0,n.tZ)(r.n,{withIndicators:!0,withControls:!B,controlSize:32,controlsOffset:5,loop:!0,styles:e=>({indicator:{width:"8px",height:"8px",borderWidth:0,opacity:1,backgroundColor:e.colors.neutral[2],"&[data-active]":{backgroundColor:e.colors.blue[6]},".mantine-Carousel-control[data-inactive]":{opacity:0,cursor:"default"}},controls:{left:(0,l.h)(30),right:(0,l.h)(30),transform:"translate(0, -50%)"},control:{width:(0,l.h)(40),height:(0,l.h)(40),border:0},arrow:{background:"#fff",opacity:1}}),children:a.map((e,t)=>(0,n.tZ)(r.n.Slide,{children:(0,n.tZ)(SingleBannerItem,{...e,dataTracking:w,keepRatio:Z,onBannerLoad:S})},String(t)))}):(0,n.tZ)(SingleBannerItem,{...a[0],dataTracking:w,keepRatio:Z,onBannerLoad:S})}),(T.length>0||(null==b?void 0:b.listContent.length)>0)&&(0,n.tZ)(i.x,{className:I.navigatorWrapper,sx:e=>({padding:"".concat((0,l.h)(24)," 0"),[e.fn.largerThan("sm")]:{padding:"".concat((0,l.h)(48)," 0"),..."ElegantUI"===N&&{paddingBottom:0}}}),children:(0,n.tZ)(c.W,{className:I.navigatorInner,children:(0,n.BX)(s.K,{sx:e=>({gap:(0,l.h)(24),[e.fn.largerThan("sm")]:{gap:(0,l.h)(40)}}),children:[T.length>0&&(0,n.tZ)(C.C3,{applyCustomUrl:!0,classNames:{root:I.navigatorRoot},colorArr:t,navigating:T,...x,children:T.map((e,t)=>{var a,o;return(0,n.tZ)(v.j,{"data-type":e.type,classNames:{root:I.navigatorItem},displayAs:null==x?void 0:x.itemComponent,isExternalUrl:null===(a=E[t+1])||void 0===a?void 0:a.isExternalSite,target:(null===(o=E[t+1])||void 0===o?void 0:o.isExternalUrl)?"_blank":"_self",..."FlatIcon"===N&&B&&{layout:"horizon"}},String(t))})}),B&&E.filter(e=>e.isExternalSite).length>0&&(0,n.tZ)(d.e,{classNames:{root:I.disclaimer,title:I.disclaimerTitle},content:"Anda akan diarahkan ke situs web lain",styles:e=>({root:{borderColor:"".concat(e.colors.neutral[1]," !important"),backgroundColor:e.colors.neutral[0]}})}),b.listContent.length>0&&(0,n.tZ)(p.p,{medicalFacts:b,sx:e=>({..."ElegantUI"===N&&{background:e.colors.neutral[0]},[e.fn.smallerThan("sm")]:{marginLeft:(0,l.h)(-10),marginRight:(0,l.h)(-10)}})})]})})})]})};CustomBanner.displayName="CustomBanner"},71494:function(e,t,a){"use strict";a.d(t,{r:function(){return CarePathHeroBanner}});var n=a(35944),o=a(64523),r=a(1956),i=a(90925);let CarePathHeroBanner=e=>{let{layout:t=i.b,...a}=e;return(0,n.tZ)(r.$.Provider,{value:{...a},children:(0,n.tZ)(o.x,{children:(0,n.tZ)(t,{...a})})})}},63963:function(e,t,a){"use strict";a.d(t,{p:function(){return MedicalFacts}});var n=a(35944),o=a(67294),r=a(92935),i=a(54576),l=a(47195),s=a(87861),c=a(11363),d=a(97564),h=a(96768),u=a(64523),g=a(69876),m=a(86896),p=a(20868),C=a(83015),v=a(79069),b=(0,a(56817).k)(e=>({root:{display:"flex",borderRadius:(0,h.h)(16),padding:(0,h.h)(16),gap:(0,h.h)(16),[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{padding:(0,h.h)(24)}},heading:{}})),x=a(1956);let Item=e=>{let{content:t,link:a}=e,{formatMessage:r}=(0,m.Z)(),{hasLeavePageConfirm:s}=(0,o.useContext)(x.$),{handleClick:c}=(0,v.g)(a.url);return(0,n.BX)(d.K,{spacing:(0,h.h)(16),justify:"space-between",children:[(0,n.tZ)(i.T,{size:"s3",weight:"semiBold",children:t}),a.url&&(0,n.tZ)(u.x,{children:(0,n.tZ)("a",{className:"pointer-event-child-none",href:a.url,target:"_blank",style:{display:"inline-block"},"data-event-category":"Service Connection","data-event-action":"Medical Fact Read More","data-event-label":a.url,...s&&{onClick:c},children:(0,n.tZ)(u.x,{sx:e=>({display:"flex",padding:"".concat((0,h.h)(4)," 0"),[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:(0,h.h)(2)},[e.fn.largerThan("sm")]:{gap:(0,h.h)(8),alignItems:"center",textDecoration:"underline",textUnderlineOffset:(0,h.h)(8)}}),children:(0,n.BX)(i.T,{size:"p3",as:"span",sx:e=>({[e.fn.largerThan("sm")]:{lineHeight:(0,h.h)(36)}}),children:[(0,n.BX)(i.T,{size:"p3",as:"span",color:"gray.6",sx:e=>({[e.fn.smallerThan("sm")]:{display:"block"}}),children:[r({id:"articlePage.readMore"}),":\xa0\xa0"]}),(0,n.BX)(i.T,{size:"p2",as:"span",sx:e=>({[e.fn.smallerThan("sm")]:{textDecoration:"underline",textUnderlineOffset:(0,h.h)(8),lineHeight:(0,h.h)(30)}}),children:[(0,n.tZ)("span",{children:a.title}),(0,n.BX)("span",{style:{position:"relative"},children:["\xa0\xa0\xa0\xa0",(0,n.tZ)(l.Z,{size:16,style:{position:"absolute",bottom:(0,h.h)(1),right:"-3px",verticalAlign:"middle",display:"inline-block"}})]})]})]})})})})]})},MedicalFacts=e=>{let{medicalFacts:t,className:a,classNames:i,styles:m,...v}=e,{classes:x,cx:y}=b(void 0,{name:"MedicalFacts",classNames:i,styles:m}),[w,Z]=(0,o.useState)(null),{title:S,listContent:B=[]}=t,T=(0,C.d)(),N=(0,p.U)(),I={sx:e=>({display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",width:(0,h.h)(40),height:(0,h.h)(40),border:"1px solid ".concat(e.colors.neutral[1]),background:"white",cursor:"pointer",transition:"all .2s ease","&:hover":{background:e.colors.neutral[1]}})},E=B.length>1?(0,n.BX)(g.k,{gap:(0,h.h)(16),children:[(0,n.tZ)(u.x,{className:"pointer-event-child-none",...I,"data-event-category":"Service Connection","data-event-action":"Medical Fact Carousel Click","data-event-label":N,onClick:()=>null==w?void 0:w.scrollPrev(),children:(0,n.tZ)(s.Z,{size:20})}),(0,n.tZ)(u.x,{className:"pointer-event-child-none",...I,"data-event-category":"Service Connection","data-event-action":"Medical Fact Carousel Click","data-event-label":N,onClick:()=>null==w?void 0:w.scrollNext(),children:(0,n.tZ)(l.Z,{size:20})})]}):null;return B.length>0?(0,n.BX)(u.x,{className:y(x.root,a),...v,children:[S&&(0,n.BX)(d.K,{justify:"space-between",sx:e=>({[e.fn.largerThan("sm")]:{minWidth:(0,h.h)(320)}}),children:[S&&(0,n.tZ)(r.H,{tag:"h3",className:x.heading,children:S}),!T&&E]}),(0,n.tZ)(u.x,{children:B.length>1?(0,n.tZ)(c.l,{withControls:!1,getEmblaApi:Z,loop:!0,children:B.map((e,t)=>(0,n.tZ)(c.l.Slide,{children:(0,n.tZ)(Item,{...e})},String(t)))}):(0,n.tZ)(Item,{...null==B?void 0:B[0]})}),T&&E]}):null}},4666:function(e,t,a){"use strict";a.d(t,{g:function(){return FlatIcon}});var n=a(35944),o=a(67294),r=a(54576),i=a(74706),l=a(71663),s=a(69876),c=a(96768),d=a(64523),h=a(67841),u=a(91759),g=a(86896),m=a(97721),p=a(4413),C=a(83015),v=a(56817),b=a(47802),x=(0,v.k)((e,t)=>{let{layout:a,bgColor:n,fullWidth:o,useBgColor:r}=t;return{root:{position:"relative",display:"flex",padding:"".concat((0,c.h)(16)," ").concat((0,c.h)(8)),gap:"vertical"===a?(0,c.h)(16):(0,c.h)(12),boxShadow:"0px 0px 1px 0px rgba(0, 0, 0, 0.04), 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 16px 24px 0px rgba(0, 0, 0, 0.06)",alignItems:"center",cursor:"pointer",borderRadius:(0,c.h)(16),background:r?function(e){let t=(0,b.oo)(e,!0),a=(0,b.At)(t.r,t.g,t.b),n=(0,b.Nv)(a[0],8,99),o="rgb(".concat(n[0],",").concat(n[1],",").concat(n[2],")");return o}(n):"#fff",..."vertical"===a&&{flexDirection:"column"},[e.fn.largerThan("sm")]:{padding:"vertical"===a?"".concat((0,c.h)(24)," ").concat((0,c.h)(12)):(0,c.h)(24),gap:(0,c.h)(24)},...o&&{width:"100%",justifyContent:"center"}},imgWrapper:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:n,width:(0,c.h)(40),height:(0,c.h)(40),borderRadius:(0,c.h)(12),flexShrink:0,[e.fn.largerThan("sm")]:{borderRadius:(0,c.h)(16),width:(0,c.h)(56),height:(0,c.h)(56)}},title:{textAlign:"vertical"===a?"center":"left"},hint:{position:"absolute",bottom:0,zIndex:3,paddingLeft:(0,c.h)(10),[e.fn.largerThan("sm")]:{paddingLeft:(0,c.h)(20)}},popoperDropdown:{padding:0,border:0},popoperArrow:{backgroundColor:e.colors.neutral[0]},disclaimer:{padding:(0,c.h)(8),border:"1px solid ".concat(e.colors.neutral[1]),backgroundColor:e.colors.neutral[0],textAlign:"center"},disclaimerText:{fontSize:(0,c.h)(12),lineHeight:(0,c.h)(18)},externalIcon:{position:"absolute",right:(0,c.h)(10),[e.fn.smallerThan("sm")]:{top:"50%",transform:"translate(0, -50%)"},[e.fn.largerThan("sm")]:{top:(0,c.h)(10)}}}});let FlatIcon=e=>{let{icon:t=(0,n.tZ)(l.Z,{}),title:a,bgColor:v="blue.6",layout:b="vertical",fullWidth:y,className:w,classNames:Z,styles:S,iconSize:B=32,hideTitle:T,isSelected:N=!1,useBgColor:I,isExternalUrl:E,...M}=e,{classes:_,cx:D}=x({bgColor:v,layout:b,fullWidth:y,isSelected:N,useBgColor:I},{name:"CarePathHeroBannerNavigatorItemFlatIcon",classNames:Z,styles:S}),A=(0,C.d)(),[L,{close:R,open:F}]=(0,u.q)(!1),{formatMessage:H}=(0,g.Z)(),z=(0,n.BX)(s.k,{gap:(0,c.h)(4),align:"center",sx:{color:"transparent"},children:[(0,n.tZ)(p.Z,{size:18,color:"inherit"}),(0,n.tZ)(r.T,{size:"n1",color:"inherit",children:H({id:"ctaBanner.leavingSite",defaultMessage:"Leaving site"})})]});return(0,n.BX)(d.x,{className:D(_.root,w),"data-is-selected":N,onMouseEnter:F,onMouseLeave:R,...M,children:[(0,n.tZ)(d.x,{className:D(_.imgWrapper,"img-wrapper"),children:o.cloneElement(t,{size:A?24:B,color:"#fff"})}),!T&&a&&(0,n.tZ)(r.T,{className:_.title,size:"s3",weight:"semiBold","data-is-selected":N,children:a}),E&&(0,n.tZ)(p.Z,{size:18,className:_.externalIcon,color:"#87909C"}),E&&!A?(0,n.tZ)(d.x,{className:_.hint,children:(0,n.BX)(i.p,{width:240,withinPortal:!0,position:"bottom",withArrow:!0,shadow:"md",opened:L,classNames:{dropdown:_.popoperDropdown,arrow:_.popoperArrow},children:[(0,n.tZ)(i.p.Target,{children:(0,n.tZ)(h.z,{sx:{pointerEvents:"auto",height:"auto",padding:0},children:z})}),(0,n.tZ)(i.p.Dropdown,{children:(0,n.tZ)(m.e,{classNames:{root:_.disclaimer,content:_.disclaimerText},content:"Anda akan diarahkan ke situs web lain"})})]})}):null]})};FlatIcon.displayName="FlatIcon"},2480:function(e,t,a){"use strict";a.d(t,{j:function(){return BlockItem}});var n=a(35944);a(67294);var o=a(54576),r=a(1413),i=a(96768),l=a(4666);let BlockItem=e=>{let{title:t,hasHover:a,displayAs:s=l.g,onClick:c,item:d,...h}=e;return a?(0,n.BX)(r.z,{position:"right",openDelay:.2,offset:8,shadow:"sm",styles:{dropdown:{border:0,padding:(0,i.h)(8)}},children:[(0,n.tZ)(r.z.Target,{children:(0,n.tZ)(s,{component:"a",title:t,...d,...h,onClick:c})}),(0,n.tZ)(r.z.Dropdown,{children:(0,n.tZ)(o.T,{size:"p4",weight:"semiBold",children:t})})]}):(0,n.tZ)(s,{component:"a",title:t,...d,...h,onClick:c})}},13275:function(e,t,a){"use strict";a.d(t,{F0:function(){return _},C3:function(){return Navigator}});var n=a(35944),o=a(67294),r=a(74706),i=a(93018),l=a(71663),s=a(69228),c=a(97919),d=a(40745),h=a(47098),u=a(47146),g=a(29828),m=a(64523),p=a(69876),C=a(15536),v=a(56704),b=a(20868),x=a(97802),y=a(98926),w=a(2480),Z=a(54576),S=a(56817),B=a(96768),T=(0,S.k)(()=>({root:{display:"flex",padding:"".concat((0,B.h)(5)," ").concat((0,B.h)(12)),gap:(0,B.h)(8),alignItems:"center",borderRadius:(0,B.h)(8)},title:{}}));let DropdownItem=e=>{let{icon:t=(0,n.tZ)(l.Z,{}),title:a,bgColor:r="blue.6",className:i,classNames:s,styles:c,iconSize:d=18,...h}=e,{classes:u,cx:g}=T(void 0,{name:"CarePathHeroBannerNavigatorItemDropdownItem",classNames:s,styles:c});return(0,n.BX)(m.x,{className:g(u.root,i),...h,children:[o.cloneElement(t,{size:d,color:r}),(0,n.tZ)(Z.T,{className:g(u.title,"title"),size:"p3",children:a})]})};DropdownItem.displayName="DropdownItem";let N=(0,o.forwardRef)(function(e,t){var a,o;let{blockProps:r,...i}=e,l=(0,x.t)([r.url||""]);return(0,n.tZ)("div",{ref:t,...i,children:(0,n.tZ)(w.j,{displayAs:DropdownItem,...r,isExternalUrl:null==l?void 0:null===(a=l[0])||void 0===a?void 0:a.isExternalSite,target:(null==l?void 0:null===(o=l[0])||void 0===o?void 0:o.isExternalUrl)?"_blank":"_self"})})});var I=(0,S.k)(e=>({root:{display:"flex",gap:(0,B.h)(24)},item:{},itemImgWrapper:{},itemTitle:{},dropdownRoot:{position:"relative",height:(0,B.h)(40),display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"},dropdownSelected:{position:"absolute",width:"100%",paddingRight:(0,B.h)(12),display:"flex",alignItems:"center",justifyContent:"space-between"},dropdownSelectedWrapper:{".title":{fontWeight:600,color:e.colors.gray[6]}},selectRoot:{width:"100%"},selectDropdown:{top:"100%!important",borderRadius:0,border:0},selectInput:{opacity:0},selectItemsWrapper:{padding:(0,B.h)(4)},selectItem:{padding:"".concat((0,B.h)(5)," 0"),'&[data-selected="true"]':{background:e.colors.gray[1],color:e.colors.gray[7]},[e.fn.smallerThan("sm")]:{"& > a":{padding:"".concat((0,B.h)(5)," ").concat((0,B.h)(8))}}},selectRightSection:{display:"none"}}));let E={[y.FF.HERO_BANNER_DEFAULT]:(0,n.tZ)(i.Z,{}),[y.FF.HERO_BANNER_FULLWIDTH]:(0,n.tZ)(i.Z,{}),[y.FF.EMBEDDING_DOCTORS]:(0,n.tZ)(l.Z,{}),[y.FF.CLINIC_LOCATORS]:(0,n.tZ)(s.Z,{}),[y.FF.EMBEDDING_RISKSCREENER]:(0,n.tZ)(c.Z,{}),[y.FF.EMBEDDING_RISKSCREENER_MULTI]:(0,n.tZ)(c.Z,{}),[y.FF.VIDEOS]:(0,n.tZ)(i.Z,{isSolid:!0}),[y.FF.ARTICLES]:(0,n.tZ)(d.Z,{}),[y.FF.CLICKABLE_BANNER]:(0,n.tZ)(h.Z,{}),[y.FF.CHAT_WITH_EXPERT]:(0,n.tZ)(e=>{let{size:t=40,color:a="#595959",...o}=e;return(0,n.tZ)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:(0,n.tZ)("path",{d:"M12.8432 20.6119H11.8059C9.07567 20.6119 6.75878 19.6603 4.85528 17.7573C2.95176 15.8542 2 13.5379 2 10.8083C2 8.07866 2.95162 5.76154 4.85485 3.85694C6.75809 1.95231 9.07466 1 11.8046 1C13.1695 1 14.4448 1.25498 15.6305 1.76493C16.8161 2.27486 17.8545 2.97533 18.7455 3.86635C19.6365 4.75738 20.337 5.79498 20.8469 6.97913C21.3569 8.16326 21.6119 9.43886 21.6119 10.8059C21.6119 13.2606 20.9546 15.5506 19.6401 17.6759C18.3256 19.8013 16.6508 21.5201 14.6158 22.8323C14.4272 22.9305 14.2406 22.9857 14.0559 22.9979C13.8713 23.0101 13.6972 22.969 13.5338 22.8748C13.3704 22.7805 13.2333 22.6575 13.1225 22.5058C13.0117 22.3542 12.95 22.1739 12.9375 21.9649L12.8432 20.6119ZM11.8125 17.2694C12.1114 17.2694 12.3658 17.1639 12.5755 16.9529C12.7853 16.7419 12.8902 16.4869 12.8902 16.1879C12.8902 15.889 12.7847 15.6347 12.5737 15.4249C12.3627 15.2151 12.1078 15.1102 11.8088 15.1102C11.5099 15.1102 11.2555 15.2157 11.0458 15.4267C10.836 15.6377 10.7311 15.8927 10.7311 16.1916C10.7311 16.4905 10.8366 16.7449 11.0476 16.9547C11.2586 17.1645 11.5136 17.2694 11.8125 17.2694ZM9.20665 8.09514C9.39004 8.17371 9.57323 8.17447 9.75621 8.09744C9.93922 8.0204 10.0889 7.89627 10.2054 7.72506C10.3814 7.4642 10.6077 7.25952 10.8843 7.11102C11.1608 6.96252 11.4759 6.88827 11.8295 6.88827C12.3757 6.88827 12.8195 7.03598 13.1608 7.33141C13.5022 7.62685 13.6729 8.01577 13.6729 8.49816C13.6729 8.7968 13.5943 9.0848 13.4371 9.36216C13.28 9.63953 13.0073 9.97229 12.6192 10.3604C12.1006 10.8413 11.7227 11.2731 11.4854 11.6557C11.2481 12.0384 11.1294 12.4183 11.1294 12.7954C11.1294 12.9983 11.1992 13.1716 11.3386 13.3153C11.478 13.459 11.6462 13.5309 11.843 13.5309C12.0399 13.5309 12.2043 13.4566 12.3363 13.3081C12.4683 13.1596 12.5594 12.9824 12.6097 12.7766C12.6804 12.4764 12.8407 12.1775 13.0906 11.8797C13.3404 11.5819 13.6052 11.2931 13.885 11.0134C14.3297 10.5686 14.6554 10.137 14.862 9.71849C15.0687 9.29995 15.172 8.88142 15.172 8.46289C15.172 7.57276 14.866 6.85678 14.2539 6.31496C13.6418 5.77316 12.8415 5.50226 11.8531 5.50226C11.2257 5.50226 10.6473 5.65469 10.1179 5.95955C9.5885 6.26442 9.17339 6.65635 8.87257 7.13535C8.7664 7.33049 8.74552 7.5196 8.80994 7.70269C8.87437 7.88575 9.00661 8.01657 9.20665 8.09514Z",fill:a})})},{}),[y.FF.ECOMMERCE_PRODUCS]:(0,n.tZ)(e=>{let{size:t=40,color:a="#595959",...o}=e;return(0,n.BX)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[(0,n.tZ)("path",{d:"M13.2995 1.69449C14.7592 1.30338 16.3143 1.50709 17.624 2.26093C18.9317 3.01821 19.8857 4.26317 20.2768 5.72281C20.6679 7.18245 20.4642 8.73761 19.7103 10.0473L17.286 14.2464L7.41328 8.54642L9.83766 4.34728C10.5949 3.0396 11.8399 2.0856 13.2995 1.69449Z",fill:a}),(0,n.tZ)("path",{d:"M16.5828 15.4643L6.69717 9.75676L4.28766 13.9602C3.53179 15.2694 3.32696 16.8252 3.71822 18.2854C4.10949 19.7457 5.0648 20.9906 6.374 21.7465C7.6832 22.5024 9.23905 22.7072 10.6993 22.3159C12.1595 21.9247 13.4045 20.9694 14.1603 19.6602L16.5828 15.4643Z",fill:a})]})},{}),[y.FF.COMMUNITY_WITH_POSTS]:(0,n.tZ)(e=>{let{size:t=40,color:a="#595959",...o}=e;return(0,n.tZ)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:(0,n.tZ)("path",{d:"M1.875 19.975C1.625 19.975 1.41667 19.8958 1.25 19.7375C1.08333 19.5792 1 19.375 1 19.125V17.475C1 16.8583 1.15833 16.3 1.475 15.8C1.79167 15.3 2.23333 14.925 2.8 14.675C4.01667 14.1417 5.12083 13.7583 6.1125 13.525C7.10417 13.2917 8.11667 13.175 9.15 13.175C10.2167 13.175 11.2375 13.2917 12.2125 13.525C13.1875 13.7583 14.2833 14.1417 15.5 14.675C16.0667 14.925 16.5125 15.3 16.8375 15.8C17.1625 16.3 17.325 16.8583 17.325 17.475V19.125C17.325 19.375 17.2417 19.5792 17.075 19.7375C16.9083 19.8958 16.7083 19.975 16.475 19.975H1.875ZM18.275 19.975C18.4583 19.925 18.6042 19.8208 18.7125 19.6625C18.8208 19.5042 18.875 19.3083 18.875 19.075V17.475C18.875 16.425 18.6125 15.5542 18.0875 14.8625C17.5625 14.1708 16.8583 13.5917 15.975 13.125C17.0917 13.2583 18.1458 13.4542 19.1375 13.7125C20.1292 13.9708 20.9417 14.2583 21.575 14.575C22.125 14.8917 22.5667 15.3 22.9 15.8C23.2333 16.3 23.4 16.8667 23.4 17.5V19.125C23.4 19.375 23.3167 19.5792 23.15 19.7375C22.9833 19.8958 22.775 19.975 22.525 19.975H18.275ZM9.175 11.65C8.04167 11.65 7.12083 11.2917 6.4125 10.575C5.70417 9.85833 5.35 8.94167 5.35 7.825C5.35 6.69167 5.70417 5.77083 6.4125 5.0625C7.12083 4.35417 8.03333 4 9.15 4C10.2833 4 11.2083 4.35417 11.925 5.0625C12.6417 5.77083 13 6.69167 13 7.825C13 8.94167 12.6417 9.85833 11.925 10.575C11.2083 11.2917 10.2917 11.65 9.175 11.65ZM18.375 7.825C18.375 8.94167 18.0208 9.85833 17.3125 10.575C16.6042 11.2917 15.6833 11.65 14.55 11.65C14.3667 11.65 14.1625 11.6375 13.9375 11.6125C13.7125 11.5875 13.5083 11.5333 13.325 11.45C13.725 11.0333 14.0292 10.5167 14.2375 9.9C14.4458 9.28333 14.55 8.59167 14.55 7.825C14.55 7.05833 14.4458 6.38333 14.2375 5.8C14.0292 5.21667 13.725 4.675 13.325 4.175C13.5083 4.125 13.7125 4.08333 13.9375 4.05C14.1625 4.01667 14.3667 4 14.55 4C15.6833 4 16.6042 4.35833 17.3125 5.075C18.0208 5.79167 18.375 6.70833 18.375 7.825ZM2.725 18.275H15.6V17.5C15.6 17.2333 15.5208 16.975 15.3625 16.725C15.2042 16.475 15.0083 16.3 14.775 16.2C13.5917 15.6833 12.6 15.3333 11.8 15.15C11 14.9667 10.1167 14.875 9.15 14.875C8.21667 14.875 7.3375 14.9667 6.5125 15.15C5.6875 15.3333 4.69167 15.6833 3.525 16.2C3.29167 16.3 3.1 16.475 2.95 16.725C2.8 16.975 2.725 17.2333 2.725 17.5V18.275ZM9.15 10C9.78333 10 10.3083 9.79583 10.725 9.3875C11.1417 8.97917 11.35 8.45833 11.35 7.825C11.35 7.19167 11.1458 6.66667 10.7375 6.25C10.3292 5.83333 9.80833 5.625 9.175 5.625C8.54167 5.625 8.01667 5.83333 7.6 6.25C7.18333 6.66667 6.975 7.19167 6.975 7.825C6.975 8.45833 7.18333 8.97917 7.6 9.3875C8.01667 9.79583 8.53333 10 9.15 10Z",fill:a})})},{}),[y.FF.LEADGEN]:(0,n.tZ)(e=>{let{size:t=40,color:a="#595959",...o}=e;return(0,n.tZ)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:(0,n.tZ)("path",{d:"M5.3077 20.5C4.80257 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.3077C3.5 4.80257 3.675 4.375 4.025 4.025C4.375 3.675 4.80257 3.5 5.3077 3.5H15.0404C15.2814 3.5 15.5131 3.5468 15.7355 3.6404C15.958 3.73398 16.1513 3.86283 16.3154 4.02693L19.973 7.6846C20.1371 7.8487 20.266 8.04198 20.3596 8.26443C20.4531 8.48686 20.5 8.71858 20.5 8.9596V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.3077ZM5.3077 19H18.6923C18.782 19 18.8557 18.9711 18.9134 18.9134C18.9711 18.8557 19 18.782 19 18.6923V8.99998H15.9038C15.6461 8.99998 15.4311 8.91376 15.2586 8.74133C15.0862 8.56889 15 8.35383 15 8.09613V4.99998H5.3077C5.21795 4.99998 5.14423 5.02883 5.08653 5.08653C5.02883 5.14423 4.99997 5.21795 4.99997 5.3077V18.6923C4.99997 18.782 5.02883 18.8557 5.08653 18.9134C5.14423 18.9711 5.21795 19 5.3077 19ZM16 16.5C16.2128 16.5 16.391 16.4282 16.5346 16.2846C16.6782 16.141 16.75 15.9628 16.75 15.75C16.75 15.5371 16.6782 15.3589 16.5346 15.2154C16.391 15.0718 16.2128 15 16 15H7.99998C7.78716 15 7.60896 15.0718 7.46538 15.2154C7.32179 15.3589 7.25 15.5371 7.25 15.75C7.25 15.9628 7.32179 16.141 7.46538 16.2846C7.60896 16.4282 7.78716 16.5 7.99998 16.5H16ZM11.25 8.99998C11.4628 8.99998 11.641 8.92818 11.7846 8.7846C11.9282 8.64102 12 8.46282 12 8.25C12 8.03718 11.9282 7.85898 11.7846 7.7154C11.641 7.5718 11.4628 7.5 11.25 7.5H7.99998C7.78716 7.5 7.60896 7.5718 7.46538 7.7154C7.32179 7.85898 7.25 8.03718 7.25 8.25C7.25 8.46282 7.32179 8.64102 7.46538 8.7846C7.60896 8.92818 7.78716 8.99998 7.99998 8.99998H11.25ZM16 12.75C16.2128 12.75 16.391 12.6782 16.5346 12.5346C16.6782 12.391 16.75 12.2128 16.75 12C16.75 11.7872 16.6782 11.609 16.5346 11.4654C16.391 11.3218 16.2128 11.25 16 11.25H7.99998C7.78716 11.25 7.60896 11.3218 7.46538 11.4654C7.32179 11.609 7.25 11.7872 7.25 12C7.25 12.2128 7.32179 12.391 7.46538 12.5346C7.60896 12.6782 7.78716 12.75 7.99998 12.75H16Z",fill:a})})},{}),[y.FF.SOYA_EXTERNAL_LINK]:(0,n.tZ)(e=>{let{size:t=40,color:a="#EC1B2E",...o}=e;return(0,n.BX)("svg",{width:t,height:t,viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[(0,n.tZ)("path",{d:"M15.3893 23.4501C16.4093 23.1201 17.3093 22.5601 18.0693 21.8C18.8293 21.04 19.3793 20.1401 19.7193 19.1301C20.0693 18.0701 19.1393 17.6801 18.9493 17.6201C18.8993 17.6 18.6993 17.54 18.4393 17.54C18.0593 17.54 17.5593 17.6801 17.3093 18.3701L17.1193 18.9C16.7893 19.8101 16.0793 20.52 15.1693 20.85L14.6293 21.05C13.4993 21.46 13.8393 22.5601 13.8893 22.6901C13.9493 22.8801 14.3393 23.8 15.3893 23.4501Z",fill:a}),(0,n.tZ)("path",{d:"M7.7002 13.0601V29.0001C7.7002 29.55 8.15015 30.0001 8.7002 30.0001H24.9001C25.4502 30.0001 25.9001 29.55 25.9001 29.0001V13.0601H7.7002ZM13.9502 19.17L14.4902 18.97C14.8401 18.84 15.1102 18.5701 15.2402 18.22L15.4402 17.6801C16.1602 15.7001 18.0802 15.2001 19.6102 15.73C21.1002 16.2501 22.2701 17.8 21.6202 19.7501C21.1802 21.0601 20.4702 22.23 19.4802 23.21C18.5002 24.2001 17.3302 24.92 16.0201 25.35C15.6402 25.48 15.2802 25.53 14.9302 25.53C13.5002 25.53 12.4102 24.54 12.0002 23.34C11.4702 21.8101 11.9702 19.8901 13.9502 19.17Z",fill:a}),(0,n.tZ)("path",{d:"M25.5796 11.0601L24.1396 7.31006H9.45953L8.01953 11.0601H25.5796ZM16.8096 8.19006H16.8196C17.3696 8.19006 17.8196 8.64008 17.8196 9.19006C17.8196 9.74005 17.3696 10.1901 16.8196 10.1901C16.2695 10.1901 15.8196 9.74005 15.8196 9.19006C15.8196 8.64008 16.2596 8.19006 16.8096 8.19006Z",fill:a}),(0,n.tZ)("path",{d:"M23.6902 5.31V3C23.6902 2.45001 23.2402 2 22.6902 2H10.9102C10.3602 2 9.91016 2.45001 9.91016 3V5.31H23.6902Z",fill:a})]})},{}),[y.FF.SOYA_OPEN_CHAT]:(0,n.tZ)(u.Z,{}),[y.FF.HEALTH_TOOL]:(0,n.tZ)(g.Z,{})},M="heroBanner",_=["hero_banner_default","hero_banner_full_width"],Navigator=e=>{let{navigating:t=[],className:a,classNames:i,styles:l,itemProps:s,children:d,iconSize:h,dataActionBySession:u,colorArr:g,selectedSection:y,isDropdown:Z,mappingIconList:S,applyCustomUrl:B,itemComponent:T,onItemClick:D,openChatFn:A,...L}=e,{classes:R,cx:F}=I(void 0,{name:"CarePathHeroBannerNavigator",classNames:i,styles:l}),H=(0,b.U)(),z=(0,o.useRef)(null),[W,P]=(0,o.useState)((0,n.tZ)(n.HY,{})),[X,V]=(0,o.useState)(null),O=(0,x.t)(t.map(e=>B?e.url:"")),U={};t.map((e,t)=>{U[e.idScroll]=O[t]});let navigatingListing=()=>t.map((e,a)=>(0,n.tZ)(w.j,{displayAs:DropdownItem,isSelected:_.includes(e.sessionLayout)?y===M:y===e.idScroll,className:F(null==s?void 0:s.className,"pointer-event-child-none"),classNames:{root:R.item,imgWrapper:R.itemImgWrapper,title:R.itemTitle},...e,icon:(null==S?void 0:S[e.sessionLayout])||(null==E?void 0:E[e.sessionLayout])||(0,n.tZ)(c.Z,{}),iconSize:h,bgColor:g[a],layout:t.length>2?"vertical":"horizon","data-event-category":"Service Connection","data-event-action":(null==u?void 0:u[e.sessionLayout])||"","data-event-label":H,onClick:t=>{t.preventDefault(),null==D||D(e.idScroll)},...s},String(a)));return(0,o.useEffect)(()=>{let e=t.findIndex(e=>y===e.idScroll);-1!==e&&(V(String(e)),P(navigatingListing()[e]))},[y]),t.length>0?Z?(0,n.BX)(m.x,{className:R.dropdownRoot,children:[(0,n.BX)(p.k,{className:R.dropdownSelected,children:[(0,n.tZ)(m.x,{className:R.dropdownSelectedWrapper,children:W}),(0,n.tZ)(v.Z,{size:18})]}),(0,n.tZ)(r.S,{ref:z,value:X,itemComponent:N,classNames:{root:R.selectRoot,dropdown:R.selectDropdown,input:R.selectInput,itemsWrapper:R.selectItemsWrapper,item:R.selectItem,rightSection:R.selectRightSection},data:t.map((e,a)=>({label:e.sessionLayout,value:String(a),blockProps:{applyCustomUrl:B,isSelected:y===e.sessionLayout,className:F(null==s?void 0:s.className,"sticky-nav-item","pointer-event-child-none"),classNames:{root:R.item,imgWrapper:R.itemImgWrapper,title:R.itemTitle},...e,icon:S?S[e.sessionLayout]:null==E?void 0:E[e.sessionLayout],iconSize:h,bgColor:g[a%4],layout:t.length>2?"vertical":"horizon","data-event-category":"Service Connection","data-event-action":(null==u?void 0:u[e.sessionLayout])||"","data-event-label":e.url||"".concat(H.split("#")[0]).concat(e.idScroll?"#"+decodeURI(e.idScroll):""),...s}})),searchable:!1,maxDropdownHeight:400,onChange:e=>{let a=t[e],n=U[a.idScroll];B&&n.isValidUrl?n.isExternalUrl?window.open(n.formatUrl):window.location.href=n.formatUrl:null==D||D(a.idScroll)}})]}):d?(0,n.tZ)(m.x,{className:F(R.root,a),...L,children:(0,C.Z)(d).map((e,a)=>{let r=t[a];return r?o.cloneElement(e,{component:"a",href:r.url||"#".concat(r.idScroll),key:String(a),onClick:e=>{if("open_chat"===r.type)e.preventDefault(),null==A||A();else{let t=U[r.idScroll];if(!t.isValidUrl||t.isCurrentSite&&t.formatUrl.includes("#")){e.preventDefault();let a=t.formatUrl.split("#");null==D||D(a[a.length-1]||r.idScroll)}}},item:r,displayAs:T,isSelected:_.includes(r.sessionLayout)?y===M:y===r.idScroll,icon:(null==S?void 0:S[r.sessionLayout])||(null==E?void 0:E[r.sessionLayout])||(0,n.tZ)(c.Z,{}),bgColor:g[a%4],"data-event-category":"Service Connection","data-event-action":(null==u?void 0:u[r.sessionLayout])||"","data-event-label":r.url||"".concat(H.split("#")[0]).concat(r.idScroll?"#"+decodeURI(r.idScroll):""),"data-banner-navigate":!0,className:"sticky-nav-item pointer-event-child-none",...e.props}):null})}):null:null}},61902:function(e,t,a){"use strict";a.r(t),a.d(t,{NotificationsHandler:function(){return NotificationsHandler},showNotification:function(){return showNotification}});var n=a(35944);a(67294);var o=a(42471),r=a(33575),i=a(42937),l=a.n(i),s=a(35949),c=a.n(s),d=a(59133),h=a.n(d),u=a(96721),g=a.n(u);function NotificationsHandler(){return(0,n.tZ)(o.T,{position:"top-right",zIndex:2077,autoClose:5e3})}let showNotification=e=>{let{type:t,title:a,...o}=e,i={success:"green",danger:"red",warning:"yellow",info:"blue",firebase:"gray"},s={success:(0,n.tZ)(h(),{width:20,height:20}),danger:(0,n.tZ)(l(),{width:20,height:20}),warning:(0,n.tZ)(g(),{width:20,height:20}),info:(0,n.tZ)(c(),{width:20,height:20}),firebase:""},d=s[t];r.N9.show({title:(0,n.tZ)("b",{children:a}),icon:d,withCloseButton:!0,closeButtonProps:{label:"Close alert"},...o,styles:e=>{let a=i[t]||"blue";return{root:{backgroundColor:e.colors[a][0],borderColor:e.colors[a][0],"&::before":{backgroundColor:e.white}},title:{color:e.colors[a][8]},description:{color:e.black},closeButton:{color:e.black,"&:hover":{backgroundColor:e.colors[a][0]}},icon:{backgroundColor:"transparent",padding:0}}}})}},81569:function(e,t,a){"use strict";a.d(t,{_:function(){return SuccessBox}});var n=a(35944),o=a(10981),r=a(54576),i=a(74706),l=a(64523),s=a(86896),c=a(56817),d=a(96768),h=(0,c.k)(()=>({heading:{},description:{},root:{display:"flex",flexDirection:"column",gap:(0,d.h)(8),alignItems:"center"},img:{width:(0,d.h)(160)},button:{}}));let SuccessBox=e=>{let{heading:t,description:a,image:c,ctaText:d,styles:u,classNames:g,className:m,onClose:p}=e,{formatMessage:C}=(0,s.Z)(),{classes:v,cx:b}=h(void 0,{name:"SuccessBox",styles:u,classNames:g});return(0,n.BX)(l.x,{className:b(m,v.root),children:[(0,n.tZ)("img",{className:v.img,src:c||o.C.getAssetPath("complete.svg"),alt:"Thank you",loading:"lazy"}),(0,n.tZ)(r.T,{size:"h4",className:v.heading,children:t}),(0,n.tZ)(r.T,{size:"p2",className:v.description,sx:{textAlign:"center"},children:a}),(0,n.tZ)(i.B,{variant:"primary",className:v.button,onClick:()=>null==p?void 0:p(),children:d||C({id:"subot.landingPage.booking.done"})})]})}},88908:function(e,t,a){"use strict";a.d(t,{m:function(){return LeadgenWithBanner}});var n=a(35944),o=a(67294),r=a(80912),i=a(64523),l=a(96768),s=a(91759),c=a(38339),d=a(95386),h=a(24612),u=a(92935),g=a(54576),m=a(74706),p=a(82824),C=a(94151),v=a(71232),b=a(77248),x=a(57317),y=a(27484),w=a.n(y),Z=a(36808),S=a.n(Z),B=a(86896),T=a(97627),N=a(45683),I=a(61902),E=a(81569),M=a(7102),_=a(20868),D=a(83015),A=a(74231);let generateSchema=e=>A.Ry().shape({name:A.Z_().required(e({id:"onboarding.errorMessage.requiredName",defaultMessage:"Please fill your name"})),child_dob:A.hT().required(e({id:"bmi.ageInput.error",defaultMessage:"Please enter a valid age"})),phone:A.Z_().required(e({id:"carePathLead.form.requiredPhone",defaultMessage:"Please provide your phone number"})).min(12,e({id:"onboarding.updatePhone.error"})).max(15,e({id:"onboarding.updatePhone.error"})),question:A.Z_().required(e({id:"validation.error.requiredField"})),term:A.Xg().required(e({id:"onboarding.friso.term.error"})).oneOf([!0],e({id:"onboarding.friso.term.error"}))});var L=a(56817),R=(0,L.k)(e=>({root:{},wrapper:{display:"flex",flexDirection:"column",gap:(0,l.h)(24)},controlList:{display:"flex",flexWrap:"wrap",gap:(0,l.h)(12),[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{justifyContent:"space-between"},".phone-input":{"&,& .PhoneInput":{marginBottom:0}}},control:{flex:"0 0 48%"},controlErr:{fontSize:(0,l.h)(14)},hint:{textAlign:"center"},actionList:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:"inherit"},[e.fn.largerThan("sm")]:{justifyContent:"space-between",alignItems:"center",gap:(0,l.h)(16),width:"100%"}},successBox:{display:"flex",flexDirection:"column",gap:(0,l.h)(8),alignItems:"center"},successImg:{width:(0,l.h)(160)}}));let Form=e=>{let{title:t,description:a,ctaTitle:s,campaignCode:c,term:d,styles:y,classNames:Z,className:A,primaryColor:L,thankYouMessage:F,onDone:H}=e,z=(0,_.U)(),W=(0,D.d)(),{formatMessage:P}=(0,B.Z)(),{classes:X,cx:V}=R(void 0,{name:"LeadgenWithBannerForm",styles:y,classNames:Z}),[O,U]=(0,o.useState)(!1),[j,Y]=(0,o.useState)(!1),G=(0,b.c)({validate:(0,x.X)(generateSchema(P))});return(0,n.BX)(n.HY,{children:[(0,n.tZ)(i.x,{className:V(X.root,A),children:(0,n.BX)("form",{className:X.wrapper,onSubmit:G.onSubmit(e=>{if(!c)return;let t={...e,child_dob:e.child_dob?w()(e.child_dob).format("YYYY-MM-DD"):""};Y(!0),(0,M.oU)(e.phone,c).then(async e=>{var a;if((null==e?void 0:null===(a=e._messages)||void 0===a?void 0:a[0])==="Phone was exist")G.setFieldError("phone",P({id:"carePathLead.form.existingVoucher",defaultMessage:"This phone received the voucher."})),Y(!1);else{let e=await(0,T.d)(N.y.LEADGEN.POST_LEAD_LEAD,{method:"POST",params:{campaignCode:c},data:{url:window.location.href,title_article:document.title,referrer:window.location.href,meta:Object.keys(t).filter(e=>"term"!==e).map(e=>({key:e,value:t[e],control:"text"})),ga_client_id:S().get(h.ch)}},"lead");(null==e?void 0:e._status)===1?(U(!0),G.setValues({name:"",child_dob:null,email:"",phone:"",question:!1,term:!1})):(0,I.showNotification)({title:P({id:"notification.comment.somethingWrong"}),message:"",type:"danger"}),Y(!1)}})}),children:[t&&(0,n.tZ)(u.H,{tag:"h3",children:t}),a&&(0,n.tZ)(g.T,{size:"p3",children:a}),(0,n.BX)(i.x,{className:X.controlList,children:[(0,n.tZ)(m.c,{className:X.control,"data-event-category":"Chatbot","data-event-action":"Form Filling","data-event-label":z,label:(0,n.tZ)(g.T,{size:"s4",as:"label",children:P({id:"carePathLead.form.name",defaultMessage:"Name"})}),withAsterisk:!0,...G.getInputProps("name")}),(0,n.BX)(C.I.Wrapper,{className:X.control,withAsterisk:!0,label:(0,n.tZ)(g.T,{size:"s4",as:"label",children:P({id:"carePathLead.form.phone",defaultMessage:"Phone number"})}),children:[(0,n.tZ)(m.P,{defaultCountry:"ID","data-event-category":"Chatbot","data-event-action":"Form Filling","data-event-label":z,...G.getInputProps("phone")}),(0,n.tZ)(C.I.Error,{size:"md",children:G.errors.phone})]}),(0,n.tZ)(p.D,{"data-event-category":"Chatbot","data-event-action":"Form Filling","data-event-label":z,classNames:{root:X.control},label:(0,n.tZ)(g.T,{size:"s4",as:"label",children:P({id:"carePathLead.form.dob",defaultMessage:"Child of DOB "})}),placeholder:"DD/MM/YYYY",maxDate:w()().toDate(),...G.getInputProps("child_dob")}),(0,n.tZ)(m.R.Group,{classNames:{root:X.control,error:X.controlErr},label:(0,n.tZ)(g.T,{size:"s4",as:"label",children:P({id:"carePathLead.form.milkAllergy",defaultMessage:"Does your child have a cow's milk allergy?"})}),withAsterisk:!0,...G.getInputProps("question"),styles:{root:{marginBottom:(0,l.h)(10)}},children:(0,n.BX)(v.Z,{mt:"xs",children:[(0,n.tZ)(m.R,{value:"yes",label:P({id:"switchBtn.yes"}),"data-event-category":"Chatbot","data-event-action":"Form Filling","data-event-label":z}),(0,n.tZ)(m.R,{value:"no",label:P({id:"switchBtn.no"}),"data-event-category":"Chatbot","data-event-action":"Form Filling","data-event-label":z})]})}),(0,n.BX)(i.x,{className:X.actionList,children:[(0,n.tZ)(m.d,{classNames:{error:X.controlErr},label:(0,n.tZ)("div",{dangerouslySetInnerHTML:{__html:d}}),color:L,"data-event-category":"Chatbot","data-event-action":"Form Filling","data-event-label":z,...G.getInputProps("term",{type:"checkbox"}),sx:{a:{color:L}}}),(0,n.tZ)(m.B,{size:W?"md":"lg",variant:"primary",type:"submit",loading:j,color:L,fullWidth:W,"data-event-category":"Chatbot","data-event-action":"Form Submit","data-event-label":z,children:s||P({id:"carePathLead.form.submitBtn"})})]})]})]})}),(0,n.tZ)(r.M,{target:h.Hh,size:(0,l.h)(408),opened:O,withCloseButton:!0,styles:{header:{border:0,paddingBottom:0},body:{padding:(0,l.h)(32)}},onClose:()=>{U(!1),null==H||H()},children:(0,n.tZ)(E._,{heading:F.title,description:F.description,onClose:()=>{U(!1),null==H||H()},styles:{button:{width:"100%",'&[data-variant="primary"],&[data-primary-btn="true"]':{"&:not(:disabled)":{backgroundColor:L,"&:hover":{backgroundColor:L}}}}}})})]})};var F=(0,L.k)(e=>({root:{},wrapper:{display:"flex",gap:(0,l.h)(24),padding:(0,l.h)(16),alignItems:"center",[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{alignItems:"center",justifyContent:"space-between",padding:"".concat((0,l.h)(40)," 0")}},bannerWrapper:{[e.fn.smallerThan("sm")]:{margin:"0 ".concat((0,l.h)(-16))},[e.fn.largerThan("sm")]:{display:"flex",justifyContent:"center"}},bannerImg:{[e.fn.largerThan("sm")]:{maxWidth:(0,l.h)(360)}},formWrapper:{[e.fn.largerThan("sm")]:{maxWidth:(0,l.h)(688)}},modal:{position:"fixed",top:0,left:0,right:0,bottom:0}}));let LeadgenWithBanner=e=>{let{title:t,description:a,ctaTitle:u,campaignCode:g,banner:m,term:p,thankYouMessage:C,primaryColor:v,isModal:b,modalBanner:x,styles:y,className:w,classNames:Z,hashToOpenModal:S="open-lead",onDone:B,modalProps:T}=e,N=(0,d.h)(),{asPath:I}=N,[E,{open:M,close:_}]=(0,s.q)(!1),{classes:D,cx:A}=F(void 0,{name:"LeadgenWithBanner",styles:y,classNames:Z});(0,o.useEffect)(()=>{if(b){var e;let t=null===(e=(window.location.hash||"").substring(1).toLowerCase().split("?"))||void 0===e?void 0:e[0];t.includes(S)?M():_()}},[I]),(0,o.useEffect)(()=>{if(b){let onhashchange=()=>{window.location.hash==="#".concat(S)?M():_()};return window.addEventListener("hashchange",onhashchange,{passive:!0}),()=>window.removeEventListener("hashchange",onhashchange)}},[]);let Content=e=>{let{onDone:o,...r}=e;return(0,n.BX)(i.x,{className:A(D.root,w),...r,children:[x&&x,(0,n.BX)(c.W,{className:D.wrapper,children:[(0,n.tZ)(i.x,{className:D.bannerWrapper,children:(0,n.tZ)("img",{className:D.bannerImg,src:m.desktop,loading:"lazy",alt:""})}),(0,n.tZ)(i.x,{className:D.formWrapper,children:(0,n.tZ)(Form,{title:t,description:a,ctaTitle:u,campaignCode:g,term:p,thankYouMessage:C,primaryColor:v,onDone:o})})]})]})};return b?(0,n.tZ)(r.M,{fullScreen:!0,target:h.Hh,opened:E,styles:e=>({body:{height:"100%",padding:0,[e.fn.smallerThan("sm")]:{paddingBottom:(0,l.h)(16)}},content:{height:"100%"}}),onClose:()=>console.log("close"),...T,children:(0,n.tZ)(Content,{sx:{height:"100%",minHeight:"auto"},onDone:B})}):(0,n.tZ)(Content,{onDone:B})}},7102:function(e,t,a){"use strict";a.d(t,{VL:function(){return verifyPhoneExistApi},o:function(){return onResendCode},oU:function(){return verifyPhoneExistByCampaignCodeApi},vt:function(){return saveLeadApi}});var n=a(27484),o=a.n(n),r=a(97627),i=a(45683),l=a(50667);let verifyPhoneExistApi=async e=>await(0,l.uu)((0,l.DS)(i.y.LEADGEN.POST_LEAD_FRISO_VERIFY_PHONE_EXIST),"POST",{data:{phone:e}}),verifyPhoneExistByCampaignCodeApi=async(e,t)=>await(0,r.d)(i.y.LEADGEN.POST_LEAD_VERIFY_EXIST_PHONE,{method:"POST",data:{phone:e,campaign_code:t}},"lead"),saveLeadApi=async e=>{let{first_name:t,last_name:a,address:n,dob:r,email:s,phone:c}=e||{};return await(0,l.uu)((0,l.DS)(i.y.LEADGEN.POST_LEAD_LEAD,{campaignCode:"lhdqxfoggwgskbb"}),"POST",{data:{url:window.location.href,title_article:document.title,referrer:"hlbs_pooptracker",meta:[{key:"first_name",value:t||"",control:"text"},{key:"last_name",value:a||"",control:"text"},{key:"due_date_dob",value:r?o()(r).format("YYYY-MM-DD"):"",control:"due_date_dob"},{key:"province",value:(null==n?void 0:n.selectedProvince)||"",control:"province"},{key:"email",value:s||"",control:"email"},{key:"phone",value:c||"",control:"tel"},{key:"address",value:n?[(null==n?void 0:n.selectedProvince)||"",(null==n?void 0:n.selectedDistrict)||"",(null==n?void 0:n.selectedWard)||"",(null==n?void 0:n.extraInfo)||""].join("; "):"",control:"text"}]}})},onResendCode=async e=>{await(0,l.uu)((0,l.DS)(i.y.LEADGEN.POST_LEAD_SEND_OTP),"POST",{data:{phone_number:e}})}},97802:function(e,t,a){"use strict";a.d(t,{t:function(){return useHandlerUrls}});var n=a(67294),o=a(5882);function useHandlerUrls(e){let[t,a]=(0,n.useState)([]);return(0,n.useEffect)(()=>{let t=[];e.map(e=>{let a=e.startsWith("http")?e:e.startsWith("#")?"".concat(window.location.origin).concat(window.location.pathname).concat(e):"",n=!1,r=!1;try{let i=new URL(a),l=i.origin===window.location.origin;n=(r=!(o.aD.some(e=>i.origin.endsWith(e))||l))||i.pathname.startsWith("/care/")||i.pathname.startsWith("/community/"),t.push({formatUrl:a,isExternalUrl:n,isExternalSite:r,isInternalSite:!r,isCurrentSite:!r&&i.pathname===window.location.pathname,isValidUrl:e.startsWith("http")||e.startsWith("#")})}catch(e){t.push({formatUrl:"",isValidUrl:!1,isExternalUrl:!1,isExternalSite:!1,isInternalSite:!1,isCurrentSite:!1})}}),a(t)},[]),t}},79069:function(e,t,a){"use strict";a.d(t,{g:function(){return useLeavePageConfirm}});var n=a(67294),o=a(71216),r=a(29017),i=a(5882);function useLeavePageConfirm(e){let{dispatch:t}=(0,n.useContext)(r.I),a=(0,n.useCallback)(a=>{let n=new URL(e),r=i.aD.some(e=>n.origin.endsWith(e));r||(a.preventDefault(),t({type:o.H.SET_OPEN_CONFIRM_LEAVE_PAGE_POPUP,payload:e}))},[e]);return{handleClick:a}}},12159:function(e,t,a){"use strict";a.d(t,{J9:function(){return l},MN:function(){return i},M_:function(){return c},dr:function(){return o},oA:function(){return s},tv:function(){return r},wN:function(){return d}});var n=a(98926);let o=[n.MV.Vietnam],r=[n.MV.PhilippinesEnglish,n.MV.Thailand,n.MV.Malaysia,n.MV.Indonesia,n.MV.Myanmar,n.MV.Vietnam],i=[n.MV.Vietnam,n.MV.Indonesia,n.MV.Malaysia],l=[n.MV.Vietnam],s=[],c="open-lead",d="aiChatId"},47802:function(e,t,a){"use strict";function hexToRgb(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!1,n=e.slice(e.startsWith("#")?1:0);3===n.length?n=[...n].map(e=>e+e).join(""):8===n.length&&(a=!0),n=parseInt(n,16);let o={r:n>>>(a?24:16),g:(n&(a?16711680:65280))>>>(a?16:8),b:(n&(a?65280:255))>>>(a?8:0)};return t?o:"rgb"+(a?"a":"")+"("+o.r+", "+o.g+", "+o.b+(a?", ".concat(255&n):"")+")"}function rgbToHsb(e,t,a){e/=255,t/=255,a/=255;let n=Math.max(e,t,a),o=n-Math.min(e,t,a),r=0===o?0:o&&n===e?(t-a)/o:n===t?2+(a-e)/o:4+(e-t)/o;return[60*(r<0?r+6:r),n&&o/n*100,100*n]}function hsbToRgb(e,t,a){t/=100,a/=100;let k=t=>(t+e/60)%6,f=e=>a*(1-t*Math.max(0,Math.min(k(e),4-k(e),1)));return[255*f(5),255*f(3),255*f(1)]}a.d(t,{At:function(){return rgbToHsb},Nv:function(){return hsbToRgb},oo:function(){return hexToRgb}})},5882:function(e,t,a){"use strict";a.d(t,{Nw:function(){return sanitize},Tn:function(){return decodeMention},aD:function(){return r},rz:function(){return decodePostUrl}});var n=a(29238),o=a.n(n);a(24612);let sanitize=e=>e?o().sanitize(e,{ADD_ATTR:["name","target","data-url"],FORBID_ATTR:["style"],ADD_TAGS:["mention"]}):"",getAnchorHtml=e=>{let{url:t,text:a,method:n}=e,o=a.indexOf(a.trimStart()),r=a.trimEnd().length,i=a.substring(0,o),l=a.substring(o,r),s=a.substring(r);return"edit"===n?"".concat(i,'').concat(l,"").concat(s):"display"===n&&(t.startsWith("http://")||t.startsWith("https://"))?"".concat(i,'').concat(l,"").concat(s):a},decodePostUrl=(e,t)=>e.replace(/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,(e,a,n)=>{let o=n||a;return getAnchorHtml({text:o,url:a,method:t})}).replace(/]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,(e,a,n)=>{let o=n||a;return getAnchorHtml({text:o,url:a,method:t})}),decodeMention=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.replace(/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,(e,a,n)=>{let o=t.find(e=>String(e.id)===a);if(!o){if(!n)return"";let e="";return n.replace(/\+name="([^<"]+)"/i,(t,a)=>(e=a,t)),'').concat(e,"")}return'').concat(o.name,"")})},r=["hellobacsi.blog","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"]},35949:function(e,t,a){var n=a(67294);function Info(e){return n.createElement("svg",e,[n.createElement("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",fill:"#2D87F3",key:0}),n.createElement("path",{d:"M8 11V8",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1}),n.createElement("path",{d:"M8 5H8.01",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:2})])}Info.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=Info,Info.default=Info},42937:function(e,t,a){var n=a(67294);function Danger(e){return n.createElement("svg",e,[n.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"#262626",key:0}),n.createElement("path",{d:"M14.8286 9.17163L9.17176 14.8285",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1}),n.createElement("path",{d:"M9.17139 9.17163L14.8282 14.8285",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:2})])}Danger.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.exports=Danger,Danger.default=Danger},59133:function(e,t,a){var n=a(67294);function Success(e){return n.createElement("svg",e,[n.createElement("path",{d:"M10.0001 18.3334C14.6025 18.3334 18.3334 14.6024 18.3334 10C18.3334 5.39765 14.6025 1.66669 10.0001 1.66669C5.39771 1.66669 1.66675 5.39765 1.66675 10C1.66675 14.6024 5.39771 18.3334 10.0001 18.3334Z",fill:"#00B16A",key:0}),n.createElement("path",{d:"M13.8333 7.5L8.33325 12.5L5.83325 10.2273",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1})])}Success.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=Success,Success.default=Success},96721:function(e,t,a){var n=a(67294);function Warning(e){return n.createElement("svg",e,n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1.66666C5.4 1.66666 1.66667 5.39999 1.66667 9.99999C1.66667 14.6 5.4 18.3333 10 18.3333C14.6 18.3333 18.3333 14.6 18.3333 9.99999C18.3333 5.39999 14.6 1.66666 10 1.66666ZM10 10.8333C9.54167 10.8333 9.16667 10.4583 9.16667 9.99999V6.66666C9.16667 6.20832 9.54167 5.83332 10 5.83332C10.4583 5.83332 10.8333 6.20832 10.8333 6.66666V9.99999C10.8333 10.4583 10.4583 10.8333 10 10.8333ZM9.16667 12.5V14.1667H10.8333V12.5H9.16667Z",fill:"#FE921D"}))}Warning.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=Warning,Warning.default=Warning}}]);