"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9487],{"DOR+":function(e,t,n){n.d(t,{Y:function(){return RiskScreenerEmbed}});var a=n("BGKE"),i=n("q1tI"),r=n("Eso5"),l=n("p46w"),o=n.n(l),s=n("o6HM"),d=n("HdVw"),c=n("JuOI"),m=n("csLd"),h=n("hXNO"),p=n("P5LW"),g=n("rIrU"),u=n("/npG"),f=(0,u.k)((e,t)=>{let{loading:n}=t;return{root:{position:"relative",...n&&{backgroundColor:e.colors.blue[0]},[e.fn.largerThan("sm")]:{'&[data-type-form="true"]':{".si-revamp-left":{paddingTop:0}}}}}}),x=n("OAL+"),v=n("0D4Z"),b=n("SPK5"),k=n("gHFm"),y=(0,u.k)(e=>({root:{position:"relative",[e.fn.smallerThan("sm")]:{paddingTop:40,paddingBottom:40},[e.fn.largerThan("sm")]:{height:"calc(654px + 160px)",paddingTop:80,paddingBottom:80}},inner:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:24},[e.fn.largerThan("sm")]:{gap:30}},subotIframe:{position:"absolute",inset:0},colLeft:{width:"100%",maxWidth:490},colLeftInner:{[e.fn.smallerThan("sm")]:{gap:12},[e.fn.largerThan("sm")]:{paddingTop:48}},colRight:{backgroundColor:"#fff",borderRadius:12,padding:12,[e.fn.smallerThan("sm")]:{height:"80vh",maxHeight:480},[e.fn.largerThan("sm")]:{width:720,height:654,padding:48,borderRadius:20}},header:{[e.fn.smallerThan("sm")]:{flexDirection:"row",gap:16}},heading:{[e.fn.smallerThan("sm")]:{width:"calc(100% - 48px)"}},icon:{[e.fn.smallerThan("sm")]:{width:48,height:48}},form:{position:"absolute",inset:0}}));let SubotSkeleton=e=>{let{children:t,loading:n}=e,{classes:i}=y(void 0,{name:"RiskScreenerEmbed__SubotSkeleton"});return(0,a.BX)(r.x,{className:i.root,children:[(0,a.BX)(k.W,{className:i.inner,style:{opacity:Number(n)},children:[(0,a.BX)(x.K,{spacing:24,justify:"space-between",className:i.colLeft,children:[(0,a.BX)(x.K,{spacing:24,className:i.header,children:[(0,a.tZ)(v.O,{height:64,width:64,radius:"100%",className:i.icon}),(0,a.BX)(x.K,{spacing:16,className:i.heading,children:[(0,a.tZ)(v.O,{height:24,width:"100%",radius:12}),(0,a.tZ)(v.O,{height:24,width:"70%",radius:12})]})]}),(0,a.BX)(b.k,{gap:12,align:"center",children:[(0,a.tZ)(v.O,{height:40,width:40,radius:"100%",sx:{flexShrink:0}}),(0,a.BX)(x.K,{spacing:8,sx:{width:"100%"},children:[(0,a.tZ)(v.O,{height:12,width:"100%",radius:4}),(0,a.tZ)(v.O,{height:12,width:"70%",radius:4})]})]})]}),(0,a.tZ)(b.k,{align:"center",justify:"center",className:i.colRight,children:(0,a.BX)(x.K,{spacing:16,sx:{width:"100%"},children:[(0,a.tZ)(v.O,{height:32,width:"80%",radius:8}),(0,a.BX)(x.K,{spacing:8,children:[(0,a.tZ)(v.O,{height:16,width:"100%",radius:4}),(0,a.tZ)(v.O,{height:16,width:"100%",radius:4}),(0,a.tZ)(v.O,{height:16,width:"40%",radius:4})]}),(0,a.tZ)(v.O,{height:40,width:130,radius:8})]})}),(0,a.BX)(b.k,{gap:8,align:"center",sx:e=>({[e.fn.largerThan("sm")]:{display:"none"}}),children:[(0,a.tZ)(v.O,{height:20,width:20,radius:"100%"}),(0,a.tZ)(v.O,{height:16,width:300,radius:4})]})]}),(0,a.tZ)(r.x,{className:i.form,sx:{opacity:Number(!n)},children:t})]})};var Z=(0,u.k)(e=>({root:{position:"relative",[e.fn.smallerThan("sm")]:{paddingTop:40,paddingBottom:40},[e.fn.largerThan("sm")]:{paddingTop:80,paddingBottom:80}},inner:{display:"flex",flexDirection:"column",[e.fn.smallerThan("sm")]:{gap:24},[e.fn.largerThan("sm")]:{gap:30}},subotIframe:{position:"absolute",inset:0},colLeft:{width:"100%",maxWidth:900},colRight:{backgroundColor:"#fff",borderRadius:12,padding:12,width:"100%",[e.fn.smallerThan("sm")]:{height:"80vh"},[e.fn.largerThan("sm")]:{height:550,padding:48,borderRadius:20}},header:{flexDirection:"row",gap:16},heading:{width:"calc(100% - 80px)",[e.fn.smallerThan("sm")]:{width:"calc(100% - 48px)"}},icon:{[e.fn.smallerThan("sm")]:{width:48,height:48}},form:{position:"absolute",inset:0}}));let TypeFormSkeleton=e=>{let{children:t,loading:n}=e,{classes:i}=Z(void 0,{name:"RiskScreenerEmbed__TypeFormSkeleton"}),l=(0,h.d)();return(0,a.BX)(r.x,{className:i.root,children:[(0,a.BX)(k.W,{className:i.inner,style:{opacity:Number(n)},children:[(0,a.BX)(x.K,{spacing:24,justify:"space-between",className:i.colLeft,children:[(0,a.BX)(x.K,{spacing:12,className:i.header,children:[(0,a.tZ)(v.O,{height:64,width:64,radius:"100%",className:i.icon}),(0,a.tZ)(x.K,{spacing:8,className:i.heading,children:(0,a.tZ)(v.O,{height:l?24:36,width:"100%",radius:12})})]}),(0,a.BX)(b.k,{gap:12,align:"center",sx:e=>({[e.fn.largerThan("sm")]:{marginLeft:60,marginTop:-20}}),children:[(0,a.tZ)(v.O,{height:40,width:40,radius:"100%",sx:{flexShrink:0}}),(0,a.BX)(x.K,{spacing:8,sx:{width:"100%"},children:[(0,a.tZ)(v.O,{height:12,width:"80%",radius:4}),(0,a.tZ)(v.O,{height:12,width:"30%",radius:4})]})]})]}),(0,a.tZ)(b.k,{align:"center",justify:"center",className:i.colRight,children:(0,a.BX)(x.K,{spacing:16,sx:{width:"100%"},children:[(0,a.tZ)(v.O,{height:32,width:"80%",radius:8}),(0,a.BX)(x.K,{spacing:8,children:[(0,a.tZ)(v.O,{height:16,width:"100%",radius:4}),(0,a.tZ)(v.O,{height:16,width:"100%",radius:4}),(0,a.tZ)(v.O,{height:16,width:"40%",radius:4})]}),(0,a.tZ)(v.O,{height:40,width:130,radius:8})]})}),(0,a.BX)(b.k,{gap:8,align:"center",children:[(0,a.tZ)(v.O,{height:20,width:20,radius:"100%"}),(0,a.tZ)(v.O,{height:16,width:300,radius:4})]})]}),(0,a.tZ)(r.x,{className:i.form,sx:{opacity:Number(!n)},children:t})]})},RiskScreenerEmbed=e=>{let{data:t,primaryColor:n,onLoad:l,isFullContainer:u,isDisabledAnimationOnMobile:x,handleOnCloseMobile:v,typeoformId:b,className:k,classNames:y,styles:Z,withoutSkeleton:w,...T}=e,{asPath:S,locale:N,query:C}=(0,p.h)(),{state:B}=(0,m.b)(),{selectSubot:I=[],backgroundColor:E}=t,L=(0,h.d)(),[D,F]=(0,i.useState)(),z=!w&&void 0===D,[W,M]=(0,i.useState)(!1),{classes:R,cx:X}=f({loading:z},{name:"RiskScreenerEmbed",classNames:y,styles:Z}),A=(0,i.useMemo)(()=>{let e={...C};return delete e.slug,e},[C]),O=b?{id:b||"",params:{ga_client:o().get(g.ch),page_path:S,...A}}:void 0,_=!!O,Y=_?TypeFormSkeleton:SubotSkeleton;return((0,i.useEffect)(()=>{setTimeout(()=>{M(!0)},1e3),(E||n)&&console.warn("[Warning] Please remove the setting primaryColor and backgroundColor in the CMS. All these fields will be configured in SubotAdmin.")},[]),I[0])?(0,a.tZ)(r.x,{...T,className:X(k,R.root),"data-type-form":_,children:(0,a.tZ)(Y,{loading:z,children:W&&(0,a.BX)(c.Z,{children:[(0,a.tZ)(s.a,{}),(0,a.tZ)(d.oh,{id:Number(I[0]),isFullContainer:u,isDisabledAnimationOnMobile:x,onCloseMobile:v,articleLink:S,userInfo:B.userInfo,typeFormProps:O,isMobile:L,locale:N,onLoadFirstNode:e=>{setTimeout(()=>F(e),600)}})]})})}):null}},"4aBO":function(e,t,n){n.d(t,{B:function(){return RiskScreenerLayout}});var a=n("BGKE"),i=n("mH4H"),r=n("UldL"),l=n("u5t1"),o=n("Eso5"),s=n("SPK5"),d=n("mYVa"),c=n("RZSM"),m=n("dDsW"),h=n("gHFm"),p=n("hXNO"),g=n("P5LW"),u=n("rIrU"),f=n("tQmg"),x=n("q1tI"),v=n("f8uB"),b=n("vaps"),k=n("ItJP"),y=n("/npG"),Z=(0,y.k)((e,t)=>{let{opened:n}=t;return{root:{display:"flex",flexDirection:"column",gap:(0,d.h)(8)},targetBtn:{display:"flex",alignItems:"center",gap:(0,d.h)(8),cursor:"pointer"},dropdown:{display:n?"block":"none"},icon:{},arrowIcon:{},targetText:{},scrollThumb:{backgroundColor:"#D9D9D9"}}});let Disclaimer=e=>{let{heading:t,description:n,maxHeight:i,styles:l,className:s,classNames:d}=e,{formatMessage:c}=(0,m.Z)(),[h,p]=(0,x.useState)(!1),{cx:g,classes:u}=Z({opened:h},{name:"ClickableSingleBanner__Disclaimer",styles:l,classNames:d});return(0,a.BX)(o.x,{className:g(u.root,s),children:[(0,a.BX)(o.x,{className:u.targetBtn,onClick:()=>p(e=>!e),children:[(0,a.tZ)(v.Z,{size:18,className:u.icon}),(0,a.tZ)(r.T,{size:"s4",className:u.targetText,children:t||c({id:"clickableSingleBanner.disclaimer.heading"})}),(0,a.tZ)(k.Z,{size:18,className:u.arrowIcon})]}),i?(0,a.tZ)(b.x,{mah:i,scrollbarSize:4,classNames:{thumb:u.scrollThumb},children:(0,a.tZ)(r.T,{size:"p5",className:u.dropdown,children:n||c({id:"clickableSingleBanner.disclaimer.description"})})}):(0,a.tZ)(r.T,{size:"p5",className:u.dropdown,children:n||c({id:"clickableSingleBanner.disclaimer.description"})})]})};var w=(0,y.k)(e=>({root:{backgroundColor:e.colors.blue[0],paddingTop:(0,d.h)(80),paddingBottom:(0,d.h)(80),[e.fn.smallerThan("sm")]:{paddingTop:(0,d.h)(40),paddingBottom:(0,d.h)(40)}},container:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:(0,d.h)(24)},[e.fn.largerThan("sm")]:{gap:(0,d.h)(48),justifyContent:"space-between"}},icon:{width:(0,d.h)(64)},iconWrapper:{flexShrink:0},heading:{},info:{display:"flex",gap:(0,d.h)(16),alignItems:"center",[e.fn.largerThan("sm")]:{flexDirection:"column",gap:(0,d.h)(24),alignItems:"flex-start"}},infoTop:{display:"flex",flexDirection:"column",gap:(0,d.h)(24)},infoCol:{display:"flex",flexDirection:"column",gap:(0,d.h)(24),maxWidth:(0,d.h)(360),justifyContent:"space-between"},imgCol:{[e.fn.largerThan("sm")]:{width:"100%",maxWidth:(0,d.h)(648)}},boxFrame:{borderRadius:(0,d.h)(12),[e.fn.largerThan("sm")]:{borderRadius:(0,d.h)(24)}},boxFrameInner:{borderRadius:"inherit"},imgHref:{display:"block"},img:{borderRadius:"inherit"},ctaBtn:{minWidth:(0,d.h)(180)},disclaimerRoot:{},disclaimerTargetBtn:{},disclaimerDropdown:{},disclaimerIcon:{}}));let RiskScreenerLayout=e=>{let{icon:t,title:n,description:x,disclaimer:v,reviewedBy:b,url:k,ctaTitle:y,ctaFn:Z,ctaBtnProps:T,bodyRatio:S=648/486,children:N,styles:C,classNames:B,applyH1:I,...E}=e,L=(0,p.d)(),{locale:D}=(0,g.h)(),{formatMessage:F}=(0,m.Z)(),{classes:z}=w(void 0,{name:"RiskScreenerLayout",styles:C,classNames:B}),W=k&&y?(0,a.tZ)(o.x,{className:z.ctaBtn,children:(0,a.tZ)(i.B,{fullWidth:!0,variant:"primary",onClick:Z,...T,children:y})}):null,M={heading:(null==v?void 0:v.heading)||"",description:(null==v?void 0:v.description)||"",classNames:{root:z.disclaimerRoot,targetBtn:z.disclaimerTargetBtn,dropdown:z.disclaimerDropdown,icon:z.disclaimerIcon}};return(0,a.tZ)(o.x,{className:z.root,styles:C,...E,children:(0,a.BX)(h.W,{className:z.container,children:[(0,a.BX)(o.x,{className:z.infoCol,children:[(0,a.BX)(o.x,{className:z.infoTop,children:[(0,a.BX)(o.x,{className:z.info,children:[t&&(0,a.tZ)(o.x,{className:z.iconWrapper,children:(0,a.tZ)("img",{src:t,alt:n,loading:"lazy",className:z.icon,onError:e=>{e.currentTarget.style.display="none"}})}),n&&(0,a.tZ)(r.T,{size:"h1",as:I?"h1":"h2",className:z.heading,children:n})]}),x&&(0,a.tZ)(r.T,{size:"p3",children:x}),!L&&W,(null==b?void 0:b.reviewer)&&(0,a.BX)(s.k,{gap:12,sx:e=>({alignItems:"center",[e.fn.smallerThan("sm")]:{position:"relative",zIndex:1,alignItems:"flex-start"}}),children:[(0,a.tZ)(o.x,{children:(0,a.tZ)(l.A,{size:32,src:b.avatar,withIndicator:!0,indicatorConfig:{size:18,label:(0,a.tZ)("img",{loading:"lazy",width:"16",src:"".concat(u.Nr,"/reviewer-medical.svg"),alt:""})},styles:{root:{".mantine-Indicator-indicator":{bottom:"7px",right:"5px"},".mantine-Avatar-placeholder":{border:0}}}})}),(0,a.BX)(r.T,{size:L?"p3":"p4",color:"gray.6",as:"div",sx:e=>({lineHeight:"".concat((0,d.h)(24),"!important"),[e.fn.largerThan("sm")]:{div:{display:"inline"}}}),children:[(0,a.BX)("div",{children:[F({id:"articlePage.reviewed.factCheck"},{name:(0,a.BX)("div",{children:[(0,a.tZ)("a",{href:b.link||"#",style:{color:"#262626"},children:b.reviewer}),!L&&b.date&&" • "]})})," "]}),b.date&&(0,a.tZ)("div",{children:(0,f.m)(b.date,D)})]})]})]}),!L&&(null==v?void 0:v.heading)&&(null==v?void 0:v.description)&&(0,a.tZ)(Disclaimer,{maxHeight:90,...M})]}),(0,a.tZ)(o.x,{className:z.imgCol,children:"none"===S?(0,a.tZ)(o.x,{className:z.boxFrame,children:(0,a.tZ)(o.x,{className:z.boxFrameInner,children:N})}):(0,a.tZ)(c.o,{ratio:S,className:z.boxFrame,children:(0,a.tZ)(o.x,{className:z.boxFrameInner,children:N})})}),L&&(null==v?void 0:v.heading)&&(null==v?void 0:v.description)&&(0,a.BX)(a.HY,{children:[W,(0,a.tZ)(Disclaimer,{...M})]})]})})}},iI4N:function(e,t,n){n.d(t,{_:function(){return ScheduleEvent}});var a,i,r=n("BGKE"),l=n("q1tI"),o=n("0TCZ"),s=n("P5LW");(a=i||(i={})).LIVED="lived",a.LIVE="live",a.COMMING_SOON="comming",a.NOT_YET="notyet",a.NEAREST_COMMING="nearest_comming";let d="YYYY-MM-DD HH:mm:ss",c=(0,l.createContext)({});var m=n("hXNO"),h=n("+24l"),p=n("UldL"),g=n("R3fp"),u=n("Eso5"),f=n("25AQ"),x=n("Wgwc"),v=n.n(x),b=n("/npG"),k=(0,b.k)(e=>({root:{},body:{overflow:"hidden",paddingLeft:80,paddingTop:40},bodyInner:{display:"flex",flexDirection:"column",gap:40,backgroundColor:"#EDF4FF",borderRadius:24,padding:24,position:"relative","&:before, &:after":{content:'""',position:"absolute",left:42,top:40,bottom:30,width:4,backgroundColor:e.colors.neutral[1],transition:"height .3s ease"}},title:{textTransform:"capitalize",paddingLeft:64},group:{display:"flex",flexDirection:"column",gap:40,position:"relative",zIndex:1},header:{display:"flex",gap:24,alignItems:"center",justifyContent:"space-between"},headerLeft:{display:"flex",gap:24,alignItems:"center"},heading:{textTransform:"capitalize"},icon:{position:"relative",width:40,height:40,borderRadius:"100%",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",backgroundImage:"linear-gradient(139.59deg, #FFE16B 2.87%, #FFBA0F 58.46%, #FB8908 89.05%)"},cardWrapper:{position:"relative",paddingLeft:64},card:{position:"relative","&:before, &:after":{content:'""',position:"absolute",top:24,left:-51,width:12,height:12,borderRadius:"100%",backgroundImage:"linear-gradient(139.59deg, #FFE16B 2.87%, #FFBA0F 33.47%, #FB8908 89.05%)"}},desc:{position:"sticky",paddingTop:40,paddingBottom:40,top:56,left:0,display:"flex",flexDirection:"column",gap:24,width:256,float:"left"},listing:{display:"flex",flexDirection:"column",gap:40},info:{display:"flex",flexDirection:"column",gap:8},maskcot:{display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",backgroundColor:"#EDF4FF",width:120,height:120,img:{maxWidth:96,maxHeight:96}}})),y=n("RZSM"),Z=n("S3OL"),w=(0,b.k)(e=>({root:{borderRadius:8,border:"1px solid ".concat(e.colors.neutral[1]),boxShadow:e.shadows.sm,backgroundColor:"#fff"},info:{display:"flex",flexDirection:"column",padding:16,gap:12,[e.fn.smallerThan("sm")]:{},[e.fn.largerThan("sm")]:{width:320,flexShrink:0,justifyContent:"space-between",borderTopLeftRadius:"inherit",borderBottomLeftRadius:"inherit"}},topInfo:{display:"flex",flexDirection:"column",gap:8,alignItems:"flex-start"},countdown:{width:"100%",[e.fn.largerThan("sm")]:{order:2}},title:{[e.fn.smallerThan("sm")]:{textAlign:"center"},[e.fn.largerThan("sm")]:{order:1}},thumbFrame:{"&, *, img":{borderRadius:"inherit"}},thumbImg:{borderRadius:"inherit",display:"block"},action:{[e.fn.largerThan("sm")]:{display:"flex",alignItems:"center",justifyContent:"space-between"}}}));let EventCard=e=>{let{startCountdown:t,className:n,classNames:a,styles:i,item:l,...o}=e,{title:s,state:d,bannersDesktop:c,bannersMobile:h}=l,p=(0,m.d)(),{classes:g,cx:f}=w(void 0,{name:"ScheduleEvent__EventCard",styles:i,classNames:a});return(0,r.tZ)(u.x,{"data-status":d,className:f(n,g.root,"event-card"),...o,children:(0,r.tZ)(y.o,{ratio:p?1:664/206,className:f("thumb-frame",g.thumbFrame),children:(0,r.tZ)(Z.R,{src:p?h:c,alt:s||"",loading:"lazy",className:g.thumbImg,fill:!0})})})},DesktopLayout=e=>{let{groupByMothList:t,styles:n,classNames:a,className:i}=e,{maskcot:o,wrapperProps:d}=(0,l.useContext)(c),{locale:m}=(0,s.h)(),{classes:x,cx:b}=k(void 0,{name:"ScheduleEvent__EventList-GroupByStatus--Desktop",styles:n,classNames:a});return(0,r.BX)(u.x,{className:b(i,x.root),children:[(0,r.BX)(u.x,{className:x.desc,children:[(0,r.tZ)(u.x,{className:b(x.maskcot),children:(0,r.tZ)("img",{src:o,alt:"maskcot",loading:"lazy"})}),(0,r.BX)(u.x,{className:x.info,children:[(0,r.tZ)(p.T,{size:"h2",children:d.title}),(0,r.tZ)(p.T,{size:"p3",children:d.description})]})]}),(0,r.tZ)(u.x,{className:x.body,children:(0,r.tZ)(u.x,{className:x.bodyInner,children:t.monthArr.map(e=>{let n=t.listing[e]||[];return(0,r.BX)(u.x,{className:b(x.group),children:[(0,r.tZ)(u.x,{className:x.header,children:(0,r.BX)(u.x,{className:x.headerLeft,children:[(0,r.tZ)(u.x,{className:b(x.icon),children:(0,r.tZ)(g.Z,{size:24,color:"currentColor"})}),(0,r.tZ)(p.T,{size:"h2",as:"h2",className:x.heading,children:(0,f.Z)(new Date(2020,v()(e,"MM-YYYY").month(),1),"MMMM",{locale:h.j[m]})})]})}),(0,r.tZ)(u.x,{className:x.listing,children:n.map((e,t)=>(0,r.tZ)(u.x,{className:b(x.cardWrapper),children:(0,r.tZ)(EventCard,{item:e,className:b(x.card)})},t))})]},e)})})})]})};var T=n("rlLN"),S=(0,b.k)(e=>({root:{display:"flex",flexDirection:"column",gap:24},body:{},bodyInner:{},title:{textTransform:"capitalize",paddingLeft:64},group:{},heading:{textTransform:"capitalize"},card:{},listing:{display:"flex",flexDirection:"column",gap:40},info:{display:"flex",flexDirection:"column",gap:8},calendarImg:{display:"block"},monthGroup:{},monthList:{display:"flex"},monthItem:{flexGrow:1,backgroundColor:e.colors.neutral[0],height:52,borderRadius:0,paddingLeft:4,paddingRight:4,".text":{color:e.colors.neutral[5],textTransform:"capitalize"},"&,&:active":{border:"1px solid ".concat(e.colors.neutral[1]),borderTop:0},"&[data-active]":{"&,&:active":{backgroundColor:"#FFF5DC",borderLeftColor:"#FFE299",borderBottomColor:"#FFE299",borderRightColor:e.colors.neutral[1],".text":{color:"#262626"}}}}})),N=n("5SVV");function hasCommingCountdown(e){if(!e||!e.countdownStart)return!1;let t=v()(e.countdownStart,d).toDate();return e.state===i.NOT_YET&&v()().isAfter(t)}var C=n("raAP"),B=n("SjA+"),I=n("TYy9"),E=n.n(I);let MobileLayout=e=>{let{groupByMothList:t,styles:n,classNames:a,className:i}=e,{wrapperProps:o}=(0,l.useContext)(c),{locale:d}=(0,s.h)(),{classes:m,cx:g}=S(void 0,{name:"ScheduleEvent__EventList-GroupByStatus--Desktop",styles:n,classNames:a}),[x,b]=(0,l.useState)(t.monthArr[0]),[k,y]=(0,l.useState)(null),Z=(0,C.U)(),w=(0,l.useMemo)(()=>{let e=t.monthArr.slice(0,3),n=0,a={},i=E()(e.map((e,i)=>{a[e]=i+n;let r=t.listing[e]||[];return n=n+r.length-1,r}));return{monthList:e,listing:i,indexOfMonth:a}},[t]);return console.log({formatedList:w}),(0,r.BX)(u.x,{className:g(i,m.root),children:[(0,r.BX)(u.x,{className:m.info,children:[(0,r.tZ)(p.T,{size:"h2",children:o.title}),(0,r.tZ)(p.T,{size:"p3",children:o.description})]}),(0,r.tZ)(u.x,{className:m.body,children:(0,r.tZ)(u.x,{className:m.bodyInner,children:(0,r.BX)(T.m,{classNames:{tab:m.monthItem},value:x,keepMounted:!0,onTabChange:e=>{b(e),e&&(null==k||k.scrollTo(w.indexOfMonth[e])),e&&console.log({v:e,index:w.indexOfMonth[e]})},styles:{root:{position:"relative",display:"flex",flexDirection:"column",gap:24},tabsList:{borderBottom:0},tab:{"&[data-active],&:focus":{borderColor:"transparent",outline:0}},panel:{display:"block !important",transition:"opacity 0.2s ease","&.inactive":{position:"absolute",top:0,left:0,right:0,opacity:0,zIndex:0},"&.active":{position:"relative",zIndex:1}}},children:[(0,r.tZ)(T.m.List,{children:(0,r.BX)(u.x,{className:m.monthGroup,children:[(0,r.tZ)("img",{src:N.C.getAssetPath("tiki/calendar-bar.png"),className:m.calendarImg,alt:"calendar",loading:"lazy"}),(0,r.tZ)(u.x,{className:m.monthList,children:w.monthList.map((e,t)=>{let n=(0,f.Z)(new Date(2020,v()(e,"MM-YYYY").month(),1),"MMMM",{locale:h.j[d]});return(0,r.tZ)(T.m.Tab,{value:e,className:g(Number(e)===Number(v()().format("MM"))?"active":"",m.monthItem),"data-event-category":"Service Connection","data-event-action":"Livestream Schedule - ".concat(n),"data-event-label":Z,children:(0,r.tZ)(p.T,{size:"s1",className:"text",children:n})},t)})})]})}),(0,r.tZ)(u.x,{sx:{position:"relative"},children:(0,r.BX)(u.x,{className:g(m.group),children:[(0,r.tZ)(B.Y,{percentOfEndSlideMobile:85,onSlideChange:e=>{var t;return b((null===(t=w.listing[e])||void 0===t?void 0:t.monthKey)||null)},carouselSetting:{getEmblaApi:y},children:(0,r.tZ)(B.Y.Slider,{styles:()=>({progressRoot:{display:"none"}}),children:w.listing.map((e,t)=>(0,r.tZ)(EventCard,{item:e,classNames:{root:m.card}},t))})}),(0,r.tZ)(u.x,{className:m.listing})]})})]})})})]})},GroupByStatus=e=>{let{listEvent:t=[],...n}=e,a=(0,m.d)(),i=(0,l.useMemo)(()=>{let e=function(e){let t={};return e.map(e=>{let n=v()(e.startDate,d).format("MM-YYYY"),a={...e,monthKey:n};if(Object.keys(t).includes(n)){let e=t[n]||[];t[n]=[...e,a]}else t[n]=[a]}),t}(t);return{listing:e,monthArr:Object.keys(e),monthLength:Object.keys(e).length}},[t]);return a?(0,r.tZ)(MobileLayout,{groupByMothList:i,...n}):(0,r.tZ)(DesktopLayout,{groupByMothList:i,...n})};var L=(0,b.k)(e=>({root:{[e.fn.largerThan("sm")]:{paddingTop:0}}})),D=n("kZvb");let EventList=e=>{let{className:t,classNames:n,styles:a}=e,{listEvent:o=[],wrapperProps:s}=(0,l.useContext)(c),{classes:d,cx:m}=L(void 0,{name:"ScheduleEvent__EventList",styles:a,classNames:n}),h=(0,l.useMemo)(()=>o.filter(e=>e.state===i.NOT_YET),[o]);return h.length>0?(0,r.tZ)(D.Z,{className:m(t,d.root),...s,title:"",description:"",children:(0,r.tZ)(GroupByStatus,{listEvent:h})}):null};var F=n("mH4H"),z=n("SPK5"),W=n("dDsW"),M=n("eDIe"),R=n("5SlL"),X=n("nYOs"),A=n("UcrG"),O=n("rIrU"),_=(0,b.k)(e=>({thumbFrame:{cursor:"pointer",[e.fn.smallerThan("sm")]:{width:"100%"},flexGrow:1,"&, img":{borderRadius:8}},img:{display:"block"}}));let Banner=e=>{let{event:t,status:n,handleOnClick:a,...i}=e,l=(0,m.d)(),{classes:o}=_(void 0,{name:"ScheduleEvent__UpcommingBanner__Banner"});return(0,r.tZ)(u.x,{component:"a",href:"live"===n?t.ctaUrl:"#",target:"_blank",className:o.thumbFrame,...i,onClick:e=>{e.preventDefault(),a(t,n)},children:(0,r.tZ)(y.o,{ratio:l?1:3.25,children:(0,r.tZ)(Z.R,{alt:t.title||"",src:l?t.bannersMobile:t.bannersDesktop,loading:"lazy",className:o.img,fill:!0})})})};var Y=n("mYVa");let H={fontSize:40,fontWeight:750,color:"#fff",textShadow:"rgb(43, 191, 255) 0px 0px 0px, 0.5px 1px 2px #663C1D"};var j=(0,b.k)((e,t)=>{let{isLiveEvent:n,isEndLive:a}=t;return{root:{display:"flex",gap:40,alignItems:"center",[e.fn.smallerThan("sm")]:{flexDirection:"column",justifyContent:"center",gap:16}},heading:{fontSize:24,lineHeight:(0,Y.h)(32),fontWeight:700,textAlign:"center",marginBottom:8,color:e.colors.gray[7],[e.fn.largerThan("sm")]:{fontSize:26,lineHeight:(0,Y.h)(36)}},info:{display:"flex",flexDirection:"column",justifyContent:"center",gap:24,[e.fn.largerThan("sm")]:{width:360},[e.fn.smallerThan("sm")]:{width:"100%"}},topInfo:{display:"flex",flexDirection:"column",justifyContent:"center"},thumbFrame:{cursor:"pointer",[e.fn.smallerThan("sm")]:{width:"100%"},flexGrow:1,"&, img":{borderRadius:8}},statusBar:{display:"flex",alignItems:"center",backgroundImage:a?"linear-gradient(139.59deg, #BFC5CC 2.87%, #87909C 89.05%)":n?"linear-gradient(271.93deg, #E64728 25.89%, #FC8A09 131.8%)":"linear-gradient(139.59deg, #FFE16B 2.87%, #FFBA0F 58.46%, #FB8908 89.05%)",justifyContent:"center",height:76,marginTop:-10,borderRadius:12},liveBar:{display:"flex",alignItems:"center",gap:16},liveText:{color:"#fff",textTransform:"uppercase",fontSize:24,fontWeight:700,textShadow:"rgb(43, 191, 255) 0px 0px 0px, 0.5px 1px 2px #663C1D",[e.fn.largerThan("sm")]:{fontSize:32}},timer:{background:"transparent"},timerItem:{background:"transparent",width:50,height:"auto"},timerText:{...H},timerDivider:{...H,padding:"0 5px",marginTop:-5},timerUnit:{textTransform:"uppercase",fontSize:(0,Y.h)(12),color:"#fff",fontWeight:700},announceText:{color:"#fff",fontWeight:800,fontSize:18,textTransform:"uppercase"},action:{display:"flex",justifyContent:"center",[e.fn.smallerThan("sm")]:{display:"none"}},btn:{backgroundColor:"#FB8908 !important",height:48,[e.fn.smallerThan("sm")]:{fontSize:14,paddingLeft:0,paddingRight:0,textAlign:"center"}},sticky:{position:"fixed",bottom:0,left:0,right:0,zIndex:3,backgroundColor:"rgba(255,255,255,0.95)",backdropFilter:"blur(8px)",padding:16,display:"flex",gap:8,".action-btn":{width:"100%"}},share:{width:48,flexShrink:0}}});let G=["lived","about-lived"],HighlightEvent=e=>{var t,a;let{className:o,styles:p,classNames:g}=e,{locale:x}=(0,s.h)(),{formatMessage:b}=(0,W.Z)(),{applyH1:k,listEvent:Z,openLeadModal:w,setCampaign:T,setHighlightEvent:S}=(0,l.useContext)(c),B=(0,m.d)(),I=(0,C.U)(),[E,L]=(0,l.useState)(null),_=(0,l.useMemo)(()=>Z.filter(e=>e.state===i.LIVE||e.state===i.NOT_YET),[]),[Y,H]=(0,l.useState)((()=>{let e=null==_?void 0:_[0];return{event:e,isLive:(null==e?void 0:e.state)===i.LIVE,isComming:(null==e?void 0:e.state)===i.NOT_YET,hasCountdownNow:hasCommingCountdown(e)}})()),[P,K]=(0,l.useState)(Y.isLive?"live":Y.isComming&&Y.hasCountdownNow?"commingWithCountDown":Y.isComming?"comming":"lived"),{classes:U,cx:V}=j({isLiveEvent:"live"===P,isEndLive:G.includes(P)},{name:"ScheduleEvent__HighlightEvent",styles:p,classNames:g});(0,l.useEffect)(()=>{Promise.all([n.e(4846),n.e(2233),n.e(1058),n.e(5638),n.e(3295),n.e(1538),n.e(6629),n.e(7152),n.e(5684),n.e(2574),n.e(2513),n.e(5238),n.e(7644),n.e(6962),n.e(4050),n.e(6638),n.e(7741),n.e(1137),n.e(2433),n.e(9689),n.e(5385),n.e(3564),n.e(3158),n.e(8320),n.e(5641),n.e(7454),n.e(7004),n.e(4758),n.e(6219),n.e(17),n.e(8990),n.e(4067),n.e(9487),n.e(9931),n.e(9083),n.e(1520),n.e(270),n.e(7596),n.e(8217),n.e(7543),n.e(2835),n.e(2507),n.e(6885),n.e(7859),n.e(5970),n.e(2730),n.e(6287),n.e(7682),n.e(1551),n.e(4870),n.e(9922),n.e(3133),n.e(612),n.e(2002),n.e(1880),n.e(7471),n.e(7165),n.e(8854),n.e(5451),n.e(8612)]).then(n.t.bind(n,"S4a3",19)).then(e=>{L(e.default)})},[]);let q=(0,l.useCallback)((e,t)=>{"live"===t||"lived"===t?e.ctaUrl&&window.open(e.ctaUrl):w()},[]),J=(0,l.useMemo)(()=>{var e,t;return(0,r.tZ)(F.B,{size:"lg",variant:"primary",className:"action-btn",classNames:{root:U.btn},rightIcon:(0,r.tZ)(R.Z,{size:18,color:"#FB8908"}),"data-event-category":"Service Connection","data-event-action":"live"===P?"Watch Livestream Button":"Leadgen Livestream Button","data-event-label":I,onClick:()=>q(Y.event,P),children:b({id:"live"===P||"lived"===P?(null===(e=Y.event)||void 0===e?void 0:e.ctaTitle)||"common.clickToPlay":(null===(t=Y.event)||void 0===t?void 0:t.leadgenCampaign.ctaTitle)||"common.registerToPlayNow"})})},[P]);return((0,l.useEffect)(()=>{(Y.isLive||Y.isComming)&&S(Y.event)},[]),(0,l.useEffect)(()=>{if("comming"===P||"commingWithCountDown"===P)fetch(O.ENV.NEXT_PUBLIC_LEAD_API+"api/campaign/"+String(O.CX[x].SITE_ID||1),{method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{var t;T(((null===(t=e._data)||void 0===t?void 0:t.campaigns)||[]).find(e=>e.code===Y.event.leadgenCampaign.code))});else if("about-lived"===P){let e=function(e,t){let n=t.findIndex(t=>t.id===e.id);return t[n]}(Y.event,Z);e?(K(hasCommingCountdown(e)?"commingWithCountDown":"comming"),H({event:e,isLive:e.state===i.LIVE,isComming:e.state===i.NOT_YET,hasCountdownNow:hasCommingCountdown(e)})):K("lived")}},[P]),Y.event)?(0,r.BX)(r.HY,{children:[(0,r.tZ)(D.Z,{title:"",description:"",styles:e=>({root:{background:G.includes(P)?e.colors.neutral[0]:"#FFFAED",[e.fn.smallerThan("sm")]:{paddingTop:24}}}),children:(0,r.BX)(u.x,{className:V(o,U.root),children:[(0,r.BX)(u.x,{className:U.info,children:[(0,r.BX)(u.x,{className:U.topInfo,children:[("commingWithCountDown"===P||"comming"===P)&&(0,r.tZ)(u.x,{component:k?"h1":"div",className:U.heading,children:"Đ\xf3n xem livestream"}),(0,r.BX)(y.o,{ratio:512/68,children:[(0,r.tZ)("img",{src:N.C.getAssetPath("tiki/annouce-bar.png"),alt:Y.event.title,loading:"lazy"}),(0,r.tZ)(z.k,{align:"center",justify:"center",sx:{paddingBottom:8},children:(0,r.tZ)(u.x,{className:U.announceText,children:(0,f.Z)(v()(null===(t=Y.event)||void 0===t?void 0:t.startDate,"YYYY-MM-DD HH:mm").toDate(),"eeee, dd.MM.yyyy",{locale:h.j[x]})})})]}),(0,r.tZ)(u.x,{className:U.statusBar,sx:{position:"relative"},children:"comming"===P?(0,r.BX)(r.HY,{children:[(0,r.tZ)(u.x,{className:U.liveBar,children:(0,r.tZ)(u.x,{className:U.liveText,children:b({id:"common.livestreamIsComming"})})}),(0,r.tZ)(A.W,{endDate:v()(Y.event.countdownStart||Y.event.startDate,d).toDate(),onEnd:()=>{K(Y.event.countdownStart?"commingWithCountDown":"live"),S(Y.event)},styles:{root:{display:"none"}}})]}):"commingWithCountDown"===P?(0,r.tZ)(A.W,{hasUnit:!0,endDate:v()(null===(a=Y.event)||void 0===a?void 0:a.startDate,d).toDate(),classNames:{root:U.timer,item:U.timerItem,divider:U.timerDivider,text:U.timerText,unit:U.timerUnit},onEnd:()=>K("live"),styles:{root:{height:62},heading:{display:"none"}}}):"live"===P?(0,r.BX)(r.HY,{children:[(0,r.BX)(u.x,{className:U.liveBar,children:[E&&(0,r.tZ)(X.Z,{animationData:E,style:{width:24,height:24},loop:!0}),(0,r.tZ)(u.x,{className:U.liveText,children:b({id:"common.livestreamIsLive"})})]}),(0,r.tZ)(A.W,{endDate:v()(Y.event.endDate,d).toDate(),onEnd:()=>K("about-lived"),styles:{root:{display:"none"}}})]}):"lived"===P?(0,r.tZ)(r.HY,{children:(0,r.tZ)(u.x,{className:U.liveBar,children:(0,r.tZ)(u.x,{className:U.liveText,children:b({id:"common.ended"})})})}):null})]}),(0,r.tZ)(u.x,{className:U.action,children:J})]}),(0,r.tZ)(Banner,{status:P,event:Y.event,handleOnClick:q,"data-event-category":"Service Connection","data-event-action":Y.isLive?"Watch Livestream Banner":"Leadgen Livestream Banner","data-event-label":I})]})}),B&&(0,r.BX)(u.x,{className:U.sticky,children:[(0,r.tZ)(F.B,{size:"lg",variant:"tertiary",leftIcon:(0,r.tZ)(M.Z,{size:18,isOutline:!0}),className:U.share,"data-event-category":"Service Connection","data-event-action":"Share Livestream Button","data-event-label":I,onClick:()=>{var e;return navigator.share({url:I,title:"Đ\xf3n xem livestream ".concat(v()(null===(e=Y.event)||void 0===e?void 0:e.startDate,"YYYY-MM-DD HH:mm").format("DD.MM.YYYY"))})}}),J]})]}):null};var P=n("k8Y/"),K=n.n(P),U=n("OB5W"),V=n("HC7W"),q=(0,b.k)(e=>({leadWrapper:{[e.fn.smallerThan("sm")]:{padding:0},[e.fn.largerThan("sm")]:{padding:"60px 0",backgroundImage:"linear-gradient(139.59deg, #182EF3 2.87%, #021575 89.05%)",position:"relative","&:before,&:after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0,backgroundRepeat:"no-repeat",backgroundPosition:"top"},"&:before":{backgroundImage:"url(".concat(N.C.getAssetPath("tiki/top-bg.png"),")"),backgroundSize:"contain"},"&:after":{backgroundImage:"url(".concat(N.C.getAssetPath("tiki/icon-bg.png"),")"),backgroundSize:"95%"}},".mantine-LeadgenWithBanner-root":{position:"relative",zIndex:1}},leadRoot:{backgroundColor:"#fff !important",[e.fn.largerThan("sm")]:{paddingBottom:0,backgroundColor:"transparent !important"}},leadModalRoot:{ref:(0,V.A)("leadModalRoot"),".form-wrapper":{},".action-list":{display:"flex",justifyContent:"flex-end"},".banner-img":{[e.fn.largerThan("sm")]:{maxHeight:600}},".banner-wrapper,.form-wrapper":{flex:"none"},".mantine-Form-container":{justifyContent:"space-evenly"}},leadModalWrapper:{".banner-img":{maxHeight:500,maxWidth:450},".mantine-Form-container":{height:560},".mantine-Form-formFrame":{maxWidth:416},".mantine-Form-formSubmitBtnWrapper":{},".mantine-SuccessBox-description":{textAlign:"left"},".mantine-SuccessBox-img":{height:120}},leadInlineRoot:{backgroundColor:"#fff !important",[e.fn.smallerThan("sm")]:{padding:"0 !important",".banner-wrapper":{marginLeft:-16,marginRight:-16}},[e.fn.largerThan("sm")]:{backgroundColor:"transparent !important",padding:0},".banner-wrapper,.form-wrapper":{flex:"none"},".action-list":{display:"flex",justifyContent:"flex-end"},".banner-img":{[e.fn.largerThan("sm")]:{}},".mantine-SuccessBox-description":{textAlign:"left"}},leadFormFrame:{[e.fn.smallerThan("sm")]:{background:"#fff",padding:0,paddingBottom:16},[e.fn.largerThan("sm")]:{maxWidth:456}}})),J=(0,b.k)(e=>({root:{padding:60,[e.fn.smallerThan("sm")]:{padding:0}},wrapper:{display:"flex",flexDirection:"column",alignItems:"center",gap:24,position:"relative",padding:"0 0 24px 0",[e.fn.largerThan("sm")]:{padding:"0 80px",backgroundImage:"linear-gradient(90deg, rgba(180, 214, 249, 0) 0%, rgba(180, 214, 249, 0.25) 50.5%, rgba(180, 214, 249, 0) 100%)"}},border:{[e.fn.smallerThan("sm")]:{display:"none"},[e.fn.largerThan("sm")]:{position:"relative",width:"100%","&:before":{content:'""',position:"absolute",left:0,right:0,height:2,top:1,backgroundImage:"linear-gradient(90deg, rgba(32, 202, 255, 0) 0%, #20CAFF 54.74%, rgba(32, 202, 255, 0) 110.59%)"},"&:after":{content:'""',height:4,width:"100%",filter:"blur(8px)",display:"block",backgroundImage:"linear-gradient(90deg, rgba(32, 202, 255, 0) 0%, #20CAFF 54.74%, rgba(32, 202, 255, 0) 110.59%)"}}},ruleBoxTitle:{color:"#fff"},header:{textAlign:"center",padding:"12px 24px",boxShadow:"2px 4px 8px 0px #031676",borderRadius:24,position:"relative",backgroundImage:"linear-gradient(162.6deg, #20CAFF -3.27%, #4297FC 113.89%)","&:before":{content:'""',position:"absolute",borderRadius:"inherit",top:1,left:1,right:1,bottom:1,zIndex:0,backgroundColor:"#0C2498"}},heading:{position:"relative",fontSize:32,lineHeight:"40px",textTransform:"uppercase",color:"#fff",backgroundImage:"linear-gradient(350.43deg, #FFE16B -30.23%, #FFFFFF 90.17%)",backgroundClip:"text","-webkit-text-fill-color":"transparent",textShadow:"1px 2px 4px 0px #000622"},listing:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:16},[e.fn.largerThan("sm")]:{gap:80}},item:{display:"flex",flexDirection:"column",gap:8,position:"relative",color:"#fff",p:{margin:"10px 0"},[e.fn.smallerThan("sm")]:{paddingLeft:24,"&:before":{content:'""',position:"absolute",top:18,left:0,width:8,height:8,borderRadius:"50%",backgroundImage:"linear-gradient(139.59deg, #FFE16B 2.87%, #FFBA0F 58.46%, #FB8908 89.05%)"}},[e.fn.largerThan("sm")]:{"&:before":{content:'""',position:"absolute",top:"50%",transform:"translate(0, -50%)",left:-40,height:"50%",maxHeight:80,width:1,background:e.colors.neutral[1]},"&:first-child":{"&:before":{content:"none"}}}},bannerWrapper:{[e.fn.smallerThan("sm")]:{margin:"0 -10px 0 -16px"},[e.fn.largerThan("sm")]:{display:"none"}},banner:{display:"block"}}));let GameRules=e=>{let{className:t,classNames:n,styles:a,...i}=e,{wrapperProps:o}=(0,l.useContext)(c),{classes:s}=J(void 0,{name:"ScheduleEvent__GameRules",styles:a,classNames:n});return(0,r.tZ)(D.Z.Wrapper,{className:t,classNames:{root:s.root},...o,children:(0,r.BX)(u.x,{className:s.wrapper,...i,children:[(0,r.tZ)(u.x,{className:s.border}),(0,r.tZ)(u.x,{className:s.bannerWrapper,children:(0,r.tZ)("img",{src:N.C.getAssetPath("tiki/game-rules.png"),loading:"lazy",className:s.banner,alt:"THỂ LỆ MINI GAME"})}),(0,r.tZ)(u.x,{className:s.header,children:(0,r.tZ)("h3",{className:s.heading,children:"THỂ LỆ MINIGAME"})}),(0,r.BX)(u.x,{className:s.listing,children:[(0,r.tZ)(p.T,{size:"p3",className:s.item,as:"div",children:(0,r.tZ)("div",{dangerouslySetInnerHTML:{__html:"

200 bạn may mắn đăng k\xfd đầu ti\xean sẽ được nhận m\xe3 Coupon th\xf4ng qua tin nhắn của HelloBACSI.

Ngo\xe0i ra, HelloBACSI sẽ gửi tin nhắn SMS nhắc nhở k\xe8m đường dẫn xem livestream 15 ph\xfat trước khi chương tr\xecnh bắt đầu cho c\xe1c bạn đăng k\xfd th\xe0nh c\xf4ng.

"}})}),(0,r.tZ)(p.T,{size:"p3",className:s.item,as:"div",children:(0,r.tZ)("div",{dangerouslySetInnerHTML:{__html:"

Trị gi\xe1 coupon: Giảm 50% tối đa 100K \xe1p dụng cho to\xe0n bộ sản phẩm tại Tiki.vn. Mỗi bạn c\xf3 1 m\xe3 ri\xeang, 1 số điện thoại chỉ nhận được 1 m\xe3 duy nhất.

\n

Thời hạn sử dụng coupon: 01.11.2024 - 14.11.2024.

"}})})]}),(0,r.tZ)(u.x,{className:s.border})]})})};var Q=(0,l.forwardRef)((e,t)=>{let{campaign:n,event:a,styles:i,classNames:l}=e,{classes:o,theme:s}=q(void 0,{name:"ScheduleEvent___LeadgenSection",styles:i,classNames:l}),d={isSkippable:!0,campaignCode:n.code,banner:{desktop:(null==a?void 0:a.leadgenCampaign.bannerDesktop)||"",mobile:(null==a?void 0:a.leadgenCampaign.bannerMobile)||""},thankYouMessage:(()=>{var e,t,a,i,r;let l=JSON.parse((null===(e=n.extra_fields)||void 0===e?void 0:e.listBlockThankyou)||null);return{title:(null==l?void 0:null===(a=l.find(e=>"TitleBlock"==e.name))||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.value)||"",description:(null==l?void 0:null===(r=l.find(e=>"SubtitleBlock"==e.name))||void 0===r?void 0:null===(i=r.data)||void 0===i?void 0:i.value)||""}})(),campaigns:n};return(0,r.BX)(r.HY,{children:[a.leadgenCampaign.enableLeadgenInline&&(0,r.BX)(u.x,{className:o.leadWrapper,children:[(0,r.tZ)(U.Z,{classNames:{root:o.leadInlineRoot,formFrame:o.leadFormFrame},scrollable:!0,data:d}),(0,r.tZ)(GameRules,{styles:{root:{[s.fn.smallerThan("sm")]:{backgroundImage:"linear-gradient(139.59deg, #2338F7 2.87%, #021575 89.05%)"},[s.fn.largerThan("sm")]:{paddingBottom:0}}}})]}),(0,r.tZ)(U.Z,{isModal:!0,scrollable:!0,desktopModalType:"normal",mobileModalType:"drawer",ref:t,classNames:{root:o.leadModalRoot,formFrame:o.leadFormFrame,wrapper:o.leadModalWrapper},data:d})]})});let ScheduleEvent=e=>{let{locale:t}=(0,s.h)(),{listEvent:n,wrapperProps:a}=e,m=(0,l.useMemo)(()=>{let e=n.map(e=>({...e,timestamp:v()(e.startDate,d).unix()}));return K()(e,["timestamp"],["asc"])},[n]),[p,g]=(0,o.n)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.map((e,n)=>{var a,r;let l=(a=v()(e.startDate,d).toDate(),r=v()(e.endDate,d).toDate(),v()().isAfter(r)?i.LIVED:v()().isBetween(a,r)?i.LIVE:i.NOT_YET),o={...e,state:l,title:(0,f.Z)(v()(e.startDate,d).toDate(),"HH:mm - eeee, dd.MM.YYY",{locale:h.j[t]}),episode:n+1};return o})}(m,t)),[u,x]=(0,l.useState)(),[b,k]=(0,l.useState)(null),y=(0,l.useRef)(),Z=(0,l.useCallback)(()=>{var e;null==y||null===(e=y.current)||void 0===e||e.openModal()},[]),w=(0,l.useCallback)(e=>{let t=n.findIndex(t=>t.id===e.id);t>-1&&g.setItemProp(t,"state",i.LIVED)},[p]),T=(0,l.useCallback)(e=>{let t=n.findIndex(t=>t.id===e.id);t>-1&&g.setItemProp(t,"state",i.LIVE)},[p]);return(0,l.useEffect)(()=>{setTimeout(()=>Z(),1e3)},[]),(0,l.useEffect)(()=>{g.filter(e=>e.id!==(null==b?void 0:b.id)),x(null)},[b]),(0,r.BX)(c.Provider,{value:{...e,listEvent:p,wrapperProps:a,changeToLivedEvent:w,changeToLiveEvent:T,openLeadModal:Z,campaign:u,setCampaign:x,highlightEvent:b,setHighlightEvent:k},children:[(0,r.tZ)(HighlightEvent,{}),(0,r.tZ)(EventList,{}),u&&b&&(0,r.tZ)(Q,{ref:y,event:b,campaign:u})]})}},kZvb:function(e,t,n){n.d(t,{Z:function(){return u}});var a=n("BGKE"),i=n("UldL"),r=n("Eso5"),l=n("RZSM"),o=n("SPK5"),s=n("hXNO"),d=n("/npG"),c=(0,d.k)(e=>({root:{"&.with-icon-style":{display:"flex",gap:16,[e.fn.smallerThan("sm")]:{gap:8,flexDirection:"column"},".inner":{display:"flex",gap:16,alignItems:"flex-start",[e.fn.smallerThan("sm")]:{alignItems:"center"}},".info":{display:"flex",flexDirection:"column",gap:4,[e.fn.largerThan("sm")]:{"&.no-desc":{minHeight:80,justifyContent:"center"}}},".desc-mobile":{[e.fn.largerThan("sm")]:{display:"none"}},".desc-desktop":{[e.fn.smallerThan("sm")]:{display:"none"}},".icon":{flexGrow:0},".icon-wrapper":{background:"#fff",borderRadius:"100%",border:"1px solid ".concat(e.colors.neutral[1]),img:{maxWidth:"80%"}}}}}));let Header=e=>{let{title:t,titleAs:n,description:d,icon:m,layout:h="normal",children:p,className:g,styles:u,classNames:f,...x}=e,v=(0,s.d)(),{classes:b,cx:k,theme:y}=c(void 0,{name:"ServiceConnections__SectionWrapper",styles:u,classNames:f});return"normal"===h?(0,a.BX)(r.x,{className:k(g,b.root,"normal-style","header"),...x,children:[t&&(0,a.tZ)(i.T,{size:"h1",as:n||"h2",className:"heading-title title",children:t}),d&&(0,a.tZ)(i.T,{size:"s3",className:"description",children:d}),p]}):"withIcon"===h?(0,a.BX)(r.x,{className:k(g,b.root,"with-icon-style"),...x,children:[(0,a.BX)(r.x,{className:"inner",children:[m&&(0,a.tZ)(r.x,{className:"icon",children:(0,a.tZ)(l.o,{ratio:1,sx:{width:40,[y.fn.largerThan("sm")]:{width:80}},children:(0,a.tZ)(o.k,{justify:"center",align:"center",className:"icon-wrapper",children:(0,a.tZ)("img",{src:m,alt:t,loading:"lazy"})})})}),(t||d)&&(0,a.BX)(r.x,{className:"info ".concat(d?"":"no-desc"),children:[t&&(0,a.tZ)(i.T,{size:"h3",as:n||"h2",className:"heading-title title",children:t}),!v&&d&&(0,a.tZ)(i.T,{size:"p3",className:"desc desc-desktop",children:d})]})]}),v&&d&&(0,a.tZ)(i.T,{size:"p3",className:"desc desc-mobile",children:d})]}):null};var m=(0,d.k)(()=>({root:{},header:{},innerClass:{}})),h=n("OAL+"),p=(0,d.k)((e,t)=>{let{hasColor:n,bgColor:a,noPadding:i}=t;return{root:{backgroundColor:a,...!i&&{paddingTop:n?80:40,paddingBottom:n?80:40,[e.fn.smallerThan("sm")]:{paddingTop:32,paddingBottom:32}}},innerClass:{gap:16,[e.fn.largerThan("sm")]:{gap:24}},withIconLayout:{display:"flex",gap:16,[e.fn.smallerThan("sm")]:{gap:8,flexDirection:"column"},".inner":{display:"flex",gap:16,[e.fn.smallerThan("sm")]:{alignItems:"center"}},".info":{display:"flex",flexDirection:"column",gap:4},".desc-mobile":{[e.fn.largerThan("sm")]:{display:"none"}},".desc-desktop":{[e.fn.smallerThan("sm")]:{display:"none"}}}}}),g=n("q1tI");let Wrapper=e=>{let{title:t,titleAs:n,description:i,icon:l,children:o,bgColor:s,className:d,classNames:c,layout:m,styles:u,innerClass:f="hhg-page-container",noPadding:x,defaultColor:v="transparent",...b}=e,k=(0,g.useMemo)(()=>s||v,[]),y=0===["","#fff","#fff","transparent"].filter(e=>e===k.toLowerCase()).length,{classes:Z,cx:w}=p({bgColor:k,noPadding:x,hasColor:y},{name:"ServiceConnections__SectionWrapper-Wrapper",styles:u,classNames:c});return(0,a.tZ)(r.x,{className:w(Z.root,d),"data-has-color":y,...y&&{"data-color":k},...b,children:(0,a.tZ)(h.K,{className:w(f,Z.innerClass),children:o})})},SectionWrapper=e=>{let{title:t,titleAs:n,description:i,icon:r,children:l,layout:o="normal",innerClass:s,styles:d,className:c,classNames:h,applyH1:p,...g}=e,{classes:u,cx:f}=m(void 0,{name:"ServiceConnections__SectionWrapper",styles:d,classNames:h});return(0,a.BX)(Wrapper,{classNames:{root:f(c,"section-wrapper",u.root),innerClass:u.innerClass},...g,children:[(t||i)&&(0,a.tZ)(Header,{className:u.header,title:t,description:i,icon:r,titleAs:n||(p?"h1":void 0),layout:o}),l||l]})};SectionWrapper.Header=Header,SectionWrapper.Wrapper=Wrapper;var u=SectionWrapper},E7r1:function(e,t,n){n.r(t),n.d(t,{StickyMenuScrollContainer:function(){return StickyMenuScrollContainer},default:function(){return StickyNavWrapper}});var a=n("BGKE"),i=n("q1tI"),r=n("Nels"),l=n("le9Y"),o=n("mYVa"),s=n("Eso5"),d=n("vaps"),c=n("Gwuz"),m=n("5fZt"),h=n("mU93"),p=n("77u+"),g=n("ZpEA"),u=n("hXNO"),f=n("GwGV"),x=n("e0pn"),v=n("SPK5"),b=n("/npG"),k=(0,b.k)(e=>({dropdown:{padding:"".concat((0,o.h)(10)," ").concat((0,o.h)(12)),backgroundColor:"#fff",cursor:"pointer",width:(0,o.h)(250),[e.fn.smallerThan("sm")]:{width:"100%"}},selectedItem:{padding:0,width:"90%"},selectedItemTitle:{fontWeight:600},navigatorRoot:{paddingTop:(0,o.h)(4),flexDirection:"column",gap:(0,o.h)(4)},item:{paddingTop:(0,o.h)(10),paddingBottom:(0,o.h)(10),borderRadius:0,"&.active":{backgroundColor:e.colors.gray[1]}},app:{borderRadius:8,overflow:"hidden"},appImg:{height:40,display:"block"}})),y=n("uzt2"),Z=n("/ch6"),w=n("+9w5"),T=n("5SVV");let Dropdown=e=>{var t,n;let{navigating:r=[],mappingIconList:l,colorArr:d,onNavClick:c,selectedSection:m,hideIcon:h,isApp:g,logo:u,...b}=e,{classes:S,cx:N}=k(void 0,{name:"CarePathHeroBannerNavigator__Dropdown"}),[C,B]=(0,i.useState)(0),[I,E]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=r.findIndex(e=>m===e.idScroll);-1!==e&&B(e)},[m]),(0,a.BX)(s.x,{sx:{position:"relative",userSelect:"none"},...b,children:[(0,a.BX)(v.k,{className:S.dropdown,align:"center",justify:"space-between",onClick:()=>E(!I),children:[(0,a.tZ)(w.h,{hideIcon:h,icon:(null==l?void 0:l[null==r?void 0:null===(t=r[C])||void 0===t?void 0:t.sessionLayout])||(0,a.tZ)(f.Z,{}),title:null==r?void 0:null===(n=r[C])||void 0===n?void 0:n.title,bgColor:null==d?void 0:d[C%4],classNames:{root:S.selectedItem,title:S.selectedItemTitle}}),(0,a.tZ)(x.Z,{size:18})]}),(0,a.BX)(s.x,{sx:e=>({display:I?"block":"none",position:"absolute",top:(0,o.h)(39),width:"100%",background:"#fff",border:"1px solid ".concat(e.colors.gray[1]),zIndex:1}),children:[(0,a.tZ)(y.C3,{mappingIconList:l,classNames:{root:S.navigatorRoot},colorArr:d,navigating:r,onNavClick:c,dataActionBySession:(()=>{let e={};return Object.keys(p.e).map(t=>{e[t]="".concat(p.e[t]," - Header Navigate")}),e})(),children:r.map((e,t)=>(0,a.tZ)(Z.j,{className:N(S.item,C===t?"active":""),displayAs:e=>(0,a.tZ)(w.h,{...e,hideIcon:h,isActive:C===t}),onClick:()=>{B(t),E(!1)}},String(t)))}),g&&(0,a.BX)(v.k,{align:"center",gap:16,sx:{padding:14},children:[(0,a.tZ)("a",{href:null==u?void 0:u.url,target:"_blank",children:(0,a.tZ)("div",{className:S.app,children:(0,a.tZ)("img",{src:T.C.getAssetPath("appIntro/app-store.png"),className:S.appImg,loading:"lazy",alt:"App Store"})})}),(0,a.tZ)("a",{href:null==u?void 0:u.url,target:"_blank",children:(0,a.tZ)("div",{className:S.app,children:(0,a.tZ)("img",{src:T.C.getAssetPath("appIntro/google-play.png"),className:S.appImg,loading:"lazy",alt:"Google Play"})})})]})]})]})};var S=(0,b.k)((e,t)=>{let{hasSponsor:n}=t;return{root:{},wrapper:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{padding:n?"0 ".concat((0,o.h)(16)):void 0,gap:(0,o.h)(24),alignItems:"center"}},sponsor:{},menuScrollContainer:{flex:1,minWidth:0,width:"100%"},navigator:{gap:(0,o.h)(8),flexWrap:"nowrap",width:"max-content",justifyContent:"flex-start",alignItems:"flex-start"},navigatorItem:{img:{height:18},flexShrink:0},buttonItemTitle:{whiteSpace:"nowrap",maxWidth:"unset",overflow:"visible",textOverflow:"unset"}}}),N=n("d9F/"),C=(0,i.forwardRef)((e,t)=>{let{sponsoredBy:n=[],onNavClick:r,children:l,styles:d,classNames:f,isAppPage:x,logo:v,...b}=e,{colorArr:k,navigating:w=[],mappingIconList:T}=(0,i.useContext)(h.F),C=(n||[]).length>0,{classes:B}=S({hasSponsor:C},{name:"StickyNavigator",classNames:f,styles:d}),I=(0,u.d)(),[E,L]=(0,i.useState)(""),D=(0,i.useMemo)(()=>w.filter(e=>"comming_soon"!==e.type),[w]);(0,i.useImperativeHandle)(t,()=>({setSelectedSection:L}));let F=(0,g.t)(D.map(e=>e.url)),z={};return D.map((e,t)=>{z[e.idScroll]=F[t]}),D.length>0?(0,a.BX)(m.b,{className:B.wrapper,sx:e=>({position:"absolute",width:"100%",borderBottom:"1px solid ".concat(e.colors.neutral[1]),transform:"translateY(".concat(""!==E?0:"-100%",")"),transition:"transform .3s ease",[e.fn.largerThan("sm")]:{padding:"".concat((0,o.h)(8)," 0"),display:"flex",justifyContent:"stretch"}}),children:[C&&!I&&(0,a.tZ)(s.x,{className:B.sponsor,sx:{order:2,flexShrink:0,marginLeft:"auto",paddingRight:(0,o.h)(16)},children:(0,a.tZ)(c.StickySponsoredBy,{isCollapsed:!1,sponsoredType:"content",sponsoredBy:n,isMobile:I,styles:e=>({root:{position:"relative",zIndex:1,backgroundColor:"transparent",border:0,[e.fn.largerThan("sm")]:{padding:0}},logoWrapper:{marginLeft:(0,o.h)(12)},logo:{[e.fn.largerThan("sm")]:{height:(0,o.h)(32)}},container:{[e.fn.largerThan("sm")]:{padding:0}}})})}),"function"==typeof l?null==l?void 0:l(r,E):I?(0,a.tZ)(Dropdown,{navigating:D,mappingIconList:T,colorArr:k,selectedSection:E,onNavClick:r,hideIcon:x,logo:v,isApp:x}):(0,a.tZ)(StickyMenuScrollContainer,{className:B.menuScrollContainer,sx:C?{order:1}:void 0,children:(0,a.tZ)(y.C3,{className:B.navigator,colorArr:k,navigating:D,iconSize:24,selectedSection:E,mappingIconList:T,dataActionBySession:(()=>{let e={};return Object.keys(p.e).map(t=>{e[t]="".concat(p.e[t]," - Header Navigate")}),e})(),onNavClick:r,...b,children:D.map((e,t)=>{var n,i;return(0,a.tZ)(Z.j,{classNames:{root:B.navigatorItem,title:B.buttonItemTitle},displayAs:N.y,iconSize:18,isExternalUrl:null===(n=z[e.idScroll])||void 0===n?void 0:n.isExternalSite,target:(null===(i=z[e.idScroll])||void 0===i?void 0:i.isExternalUrl)?"_blank":"_self"},String(t))})})})]}):null});function StickyMenuScrollContainer(e){let{children:t,enabled:n=!0,className:c,sx:m,...h}=e,p=(0,i.useRef)(null),g=(0,i.useRef)(null),u=(0,i.useRef)(!1),f=(0,i.useRef)({pending:!1,active:!1,pointerId:-1,startX:0,startScrollLeft:0,hasDragged:!1}),[x,v]=(0,i.useState)(!1),[b,k]=(0,i.useState)(!1),[y,Z]=(0,i.useState)(0),[w,T]=(0,i.useState)(0),[S,N]=(0,i.useState)(0),C=(0,i.useCallback)(()=>{let e=p.current;if(!e)return;let t=e.scrollWidth>e.clientWidth+1;v(t),u.current=t,Z(e.scrollLeft),T(e.clientWidth),N(e.scrollWidth)},[]);(0,i.useEffect)(()=>{if(!n)return;let e=p.current,t=g.current;if(!e)return;let runUpdate=()=>{requestAnimationFrame(C)};runUpdate();let a=new ResizeObserver(runUpdate);return a.observe(e),t&&a.observe(t),window.addEventListener("resize",runUpdate),()=>{a.disconnect(),window.removeEventListener("resize",runUpdate)}},[n,t,C]);let B=(0,i.useCallback)(()=>{f.current={pending:!1,active:!1,pointerId:-1,startX:0,startScrollLeft:0,hasDragged:!1}},[]),I=(0,i.useCallback)(e=>{if(!f.current.pending||e.pointerId!==f.current.pointerId)return;let t=p.current;if(!t)return;let n=e.clientX-f.current.startX;!f.current.active&&Math.abs(n)>8&&(f.current.active=!0,f.current.hasDragged=!0,k(!0),t.setPointerCapture(e.pointerId)),f.current.active&&(e.preventDefault(),t.scrollLeft=f.current.startScrollLeft-n)},[]),E=(0,i.useCallback)(e=>{if(!f.current.pending||e.pointerId!==f.current.pointerId)return;let t=p.current,n=f.current.hasDragged;window.removeEventListener("pointermove",I),window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",E),(null==t?void 0:t.hasPointerCapture(e.pointerId))&&t.releasePointerCapture(e.pointerId),B(),k(!1),n&&window.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation()},{capture:!0,once:!0})},[I,B]),L=(0,i.useCallback)(()=>{window.removeEventListener("pointermove",I),window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",E)},[I,E]);(0,i.useEffect)(()=>()=>{L()},[L]);let D=(0,i.useCallback)(e=>{if(!u.current||0!==e.button||"mouse"!==e.pointerType)return;let t=p.current;t&&(f.current={pending:!0,active:!1,pointerId:e.pointerId,startX:e.clientX,startScrollLeft:t.scrollLeft,hasDragged:!1},window.addEventListener("pointermove",I),window.addEventListener("pointerup",E),window.addEventListener("pointercancel",E))},[I,E]),F=(0,i.useCallback)(()=>{L(),B(),k(!1)},[L,B]),scrollBy=e=>{let t=p.current;if(!t)return;let n=.6*t.clientWidth;t.scrollTo({left:t.scrollLeft+("left"===e?-n:n),behavior:"smooth"})};if(!n)return(0,a.tZ)(a.HY,{children:t});let z={position:"absolute",top:"50%",display:"flex",alignItems:"center",justifyContent:"center",width:(0,o.h)(32),height:(0,o.h)(32),borderRadius:"50%",cursor:"pointer",backgroundColor:"#fff",border:"1px solid #e4e8ec",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)",color:"#404040",padding:0,pointerEvents:"auto",transform:"translateY(-50%)",transition:"background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease","&:hover":{backgroundColor:"#fafafa",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-50%) scale(1.05)"},"&:active":{transform:"translateY(-50%) scale(0.95)",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.08)"}},renderScrollButton=(e,t)=>(0,a.tZ)(s.x,{component:"button",type:"button","aria-label":t,onClick:()=>scrollBy(e),sx:{...z,..."left"===e?{left:5}:{right:5}},children:"left"===e?(0,a.tZ)(r.Z,{size:18}):(0,a.tZ)(l.Z,{size:18})});return(0,a.BX)(s.x,{className:c,sx:[{position:"relative",flex:1,minWidth:0,display:"flex",alignItems:"center"},...Array.isArray(m)?m:m?[m]:[]],...h,children:[(0,a.tZ)(d.x,{viewportRef:p,onScrollPositionChange:e=>{let{x:t}=e;Z(t),C()},viewportProps:{onPointerDownCapture:D,onLostPointerCapture:F},scrollbarSize:0,type:"never",offsetScrollbars:!1,sx:{flex:1,minWidth:0,width:"100%",marginLeft:x?45:0,marginRight:x?45:0},styles:{root:{overflow:"hidden"},viewport:{overflowX:"auto",overflowY:"hidden",touchAction:"pan-x",WebkitOverflowScrolling:"touch",overscrollBehaviorX:"contain",cursor:x?b?"grabbing":"grab":"default",userSelect:b?"none":void 0,"& .sticky-nav-item, & a":{touchAction:"pan-x",WebkitUserDrag:"none",pointerEvents:"auto",cursor:x?b?"grabbing":"grab":"pointer"},"& .sticky-nav-item > *":{pointerEvents:"auto"}},scrollbar:{display:"none"},corner:{display:"none"}},children:(0,a.tZ)(s.x,{ref:g,sx:{display:"flex",width:"max-content",minWidth:"100%",flexShrink:0,justifyContent:"center",boxSizing:"border-box"},children:t})}),x&&(0,a.BX)(s.x,{sx:{position:"absolute",inset:0,pointerEvents:"none",zIndex:3},children:[x&&y>1&&renderScrollButton("left","Scroll menu left"),x&&y+w{let{url:t,...n}=e;return(0,a.tZ)(d.x,{component:"iframe",src:t,...n,allow:"camera; microphone; autoplay; encrypted-media;",loading:"lazy",title:"Typeform"})},FullScreen=e=>{let{url:t}=e;return(0,a.tZ)(d.x,{sx:{height:"calc(100vh - 53px)",minHeight:500},children:(0,a.tZ)(TypeformEmbed,{url:t,style:{width:"100%",height:"100%",border:"none"}})})};var c=n("4Jk+"),m=n("UldL"),h=n("J+gj"),p=n("RZSM"),g=n("SPK5"),u=n("OAL+"),f=n("0D4Z"),x=n("gHFm"),v=n("usqR"),b=n("/npG"),k=n("mYVa"),y=(0,b.k)(e=>({root:{position:"relative",padding:"".concat((0,k.h)(40)," 0"),[e.fn.largerThan("sm")]:{padding:"".concat((0,k.h)(80)," 0")}},inner:{display:"flex",flexDirection:"column",gap:30,position:"relative"},header:{display:"flex",flexWrap:"wrap",gap:"10px 0"},headerIcon:{flexShrink:0,width:48,[e.fn.largerThan("sm")]:{width:64}},heading:{fontWeight:400,fontSize:(0,k.h)(28),lineHeight:1.2,[e.fn.largerThan("sm")]:{fontSize:(0,k.h)(40),lineHeight:(0,k.h)(48),letterSpacing:"-0.88px"}},headingWrapper:{width:"calc(100% - 68px)",paddingLeft:12,[e.fn.largerThan("sm")]:{width:"calc(100% - 88px)",paddingLeft:24,minHeight:64,display:"flex",alignItems:"center"}},headerInfo:{},medicalAvatar:{flexShrink:0,width:32,[e.fn.largerThan("sm")]:{width:40}},medicalReview:{marginLeft:16,[e.fn.largerThan("sm")]:{marginLeft:88}},medicalTitle:{fontSize:(0,k.h)(14),lineHeight:"150%",letterSpacing:"-0.07px",color:"#595959"},medicalSubTitle:{fontSize:(0,k.h)(12),lineHeight:"140%",letterSpacing:"-0.07px",color:"#595959"},iframeWrapper:{height:"80vh",backgroundColor:"#fff",position:"relative",[e.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16},[e.fn.largerThan("sm")]:{height:550,borderRadius:20}},iframe:{position:"relative",width:"100%",height:"100%",borderRadius:"inherit"},disclaimer:{},skeleton:{position:"absolute",inset:0,zIndex:0,borderRadius:0,[e.fn.largerThan("sm")]:{borderRadius:20}}}));let InlineScreen=e=>{let{data:t,url:n}=e,{headline:i,headlineIcon:r,disclaimer:l,backgroundColor:o,medicalInfo:s}=t||{},{classes:b}=y(void 0,{name:"TypeFormInlineInlineScreen"});return(0,a.tZ)(c.T,{variant:c.C.LEADGEN,children:(0,a.tZ)(d.x,{bg:o,className:b.root,children:(0,a.BX)(x.W,{className:b.inner,children:[(r||r)&&(0,a.BX)(d.x,{className:b.header,children:[r&&(0,a.tZ)(d.x,{className:b.headerIcon,children:(0,a.tZ)(p.o,{ratio:1,children:(0,a.tZ)("img",{loading:"lazy",src:r,alt:i})})}),(i||s)&&(0,a.BX)(a.HY,{children:[i&&(0,a.tZ)("div",{className:b.headingWrapper,children:(0,a.tZ)("h2",{className:b.heading,children:i})}),s&&(0,a.BX)(g.k,{gap:12,align:"center",className:b.medicalReview,children:[(0,a.tZ)(d.x,{className:b.medicalAvatar,children:(0,a.tZ)(p.o,{ratio:1,children:(0,a.tZ)("img",{loading:"lazy",src:s.icon,alt:s.doctorInfo})})}),(0,a.BX)(u.K,{spacing:4,children:[(0,a.tZ)(d.x,{...s.url&&{component:"a",href:s.url,target:"_blank"},"data-event-category":"Reviewer Name","data-event-action":"Click text","data-event-label":s.url,className:b.medicalTitle,children:s.doctorInfo}),(0,a.tZ)(d.x,{className:b.medicalSubTitle,children:s.subText})]})]})]})]}),(0,a.BX)(d.x,{className:b.iframeWrapper,children:[(0,a.tZ)(f.O,{visible:!0,className:b.skeleton}),(0,a.tZ)(TypeformEmbed,{url:n,className:b.iframe})]}),l&&(0,a.tZ)(d.x,{className:b.disclaimer,children:(0,a.tZ)(v.E,{contentSize:"n1",bordered:!1,description:l,HeadingWrapper:e=>(0,a.tZ)(m.T,{...e,size:"p2",sx:{textTransform:"none"}}),ContentWrapper:e=>(0,a.tZ)(m.T,{...e,size:"p3"}),icon:(0,a.tZ)(h.Z,{color:"#FE921D",size:20}),expand:!1})})]})})})},TypeFormInline=e=>{var t;let n,{data:r}=e,{formId:d,displayFull:c,utmParams:m}=r||{},{query:h,asPath:p}=(0,o.h)(),g=(0,i.useMemo)(()=>{let e={...h};return delete e.slug,e},[h]);if(!d)return null;let u=m.split("&").filter(Boolean),f=u.reduce((e,t)=>{let[n,a]=t.split("=");return n&&(e[n]=a),e},{}),x="https://form.typeform.com/to/".concat(d,"?").concat((t={ga_client:l().get(s.ch),page_path:p,...g,...f},n="",t&&(n=Object.keys(t).map(e=>e+"="+t[e]).join("&")),n));return c?(0,a.tZ)(FullScreen,{url:x}):(0,a.tZ)(InlineScreen,{data:r,url:x})}},S4a3:function(e){e.exports=JSON.parse('{"nm":"Group 38793 (1)","ddd":0,"h":512,"w":512,"meta":{"g":"LottieFiles AE 3.5.9"},"layers":[{"ty":4,"nm":"Shape Layer 2","sr":1,"st":0,"op":1800,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[252,248,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Ellipse 1","ix":1,"cix":2,"np":3,"it":[{"ty":"el","bm":0,"hd":false,"mn":"ADBE Vector Shape - Ellipse","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"s":{"a":0,"k":[462,462],"ix":2}},{"ty":"gs","bm":0,"hd":false,"mn":"ADBE Vector Graphic - G-Stroke","nm":"Gradient Stroke 1","e":{"a":0,"k":[234,-227],"ix":5},"g":{"p":3,"k":{"a":0,"k":[0,1,1,1,0.5,1,1,1,1,1,1,1],"ix":8}},"t":1,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"s":{"a":0,"k":[-230,237],"ix":4},"lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":50,"ix":10}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[4,8],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1},{"ty":4,"nm":"Shape Layer 1","sr":1,"st":0,"op":1800,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[252,248,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[100],"t":0},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":15},{"s":[100],"t":30}],"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Ellipse 1","ix":1,"cix":2,"np":3,"it":[{"ty":"el","bm":0,"hd":false,"mn":"ADBE Vector Shape - Ellipse","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"s":{"a":0,"k":[205,205],"ix":2}},{"ty":"gf","bm":0,"hd":false,"mn":"ADBE Vector Graphic - G-Fill","nm":"Gradient Fill 1","e":{"a":0,"k":[253,-255],"ix":6},"g":{"p":3,"k":{"a":0,"k":[0,1,1,1,0.5,1,1,1,1,1,1,1],"ix":9}},"t":1,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"s":{"a":0,"k":[-253,253],"ix":5},"r":1,"o":{"a":0,"k":100,"ix":10}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[4,8],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":2}],"v":"4.8.0","fr":30,"op":31,"ip":0,"assets":[]}')}}]);