"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9487],{"DOR+":function(e,t,a){a.d(t,{Y:function(){return RiskScreenerEmbed}});var n=a("BGKE"),i=a("q1tI"),r=a("Eso5"),l=a("kfjY"),o=a("p46w"),s=a.n(o),d=a("gHFm"),c=a("o6HM"),h=a("HdVw"),m=a("JuOI"),g=a("csLd"),p=a("hXNO"),u=a("P5LW"),f=a("rIrU"),x=a("/npG"),v=(0,x.k)(e=>({root:{position:"relative",backgroundColor:e.colors.blue[0]}})),b=a("OAL+"),k=a("0D4Z"),y=a("SPK5"),Z=(0,x.k)(e=>({root:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:24,paddingTop:40,paddingBottom:40},[e.fn.largerThan("sm")]:{gap:30,paddingTop:80,paddingBottom:80}},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}}}));let SubotSkeleton=()=>{let{classes:e}=Z(void 0,{name:"RiskScreenerEmbed__SubotSkeleton"});return(0,n.BX)(r.x,{className:e.root,children:[(0,n.BX)(b.K,{spacing:24,justify:"space-between",className:e.colLeft,children:[(0,n.BX)(b.K,{spacing:24,className:e.header,children:[(0,n.tZ)(k.O,{height:64,width:64,radius:"100%",className:e.icon}),(0,n.BX)(b.K,{spacing:16,className:e.heading,children:[(0,n.tZ)(k.O,{height:24,width:"100%",radius:12}),(0,n.tZ)(k.O,{height:24,width:"70%",radius:12})]})]}),(0,n.BX)(y.k,{gap:12,align:"center",children:[(0,n.tZ)(k.O,{height:40,width:40,radius:"100%",sx:{flexShrink:0}}),(0,n.BX)(b.K,{spacing:8,sx:{width:"100%"},children:[(0,n.tZ)(k.O,{height:12,width:"100%",radius:4}),(0,n.tZ)(k.O,{height:12,width:"70%",radius:4})]})]})]}),(0,n.tZ)(y.k,{align:"center",justify:"center",className:e.colRight,children:(0,n.BX)(b.K,{spacing:16,sx:{width:"100%"},children:[(0,n.tZ)(k.O,{height:32,width:"80%",radius:8}),(0,n.BX)(b.K,{spacing:8,children:[(0,n.tZ)(k.O,{height:16,width:"100%",radius:4}),(0,n.tZ)(k.O,{height:16,width:"100%",radius:4}),(0,n.tZ)(k.O,{height:16,width:"40%",radius:4})]}),(0,n.tZ)(k.O,{height:40,width:130,radius:8})]})}),(0,n.BX)(y.k,{gap:8,align:"center",sx:e=>({[e.fn.largerThan("sm")]:{display:"none"}}),children:[(0,n.tZ)(k.O,{height:20,width:20,radius:"100%"}),(0,n.tZ)(k.O,{height:16,width:300,radius:4})]})]})};var T=(0,x.k)(e=>({root:{display:"flex",flexDirection:"column",[e.fn.smallerThan("sm")]:{gap:24,paddingTop:40,paddingBottom:40},[e.fn.largerThan("sm")]:{gap:30,paddingTop:80,paddingBottom:80}},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}}}));let TypeFormSkeleton=()=>{let{classes:e}=T(void 0,{name:"RiskScreenerEmbed__TypeFormSkeleton"}),t=(0,p.d)();return(0,n.BX)(r.x,{className:e.root,children:[(0,n.BX)(b.K,{spacing:24,justify:"space-between",className:e.colLeft,children:[(0,n.BX)(b.K,{spacing:12,className:e.header,children:[(0,n.tZ)(k.O,{height:64,width:64,radius:"100%",className:e.icon}),(0,n.BX)(b.K,{spacing:8,className:e.heading,children:[(0,n.tZ)(k.O,{height:t?24:36,width:"100%",radius:12}),(0,n.tZ)(k.O,{height:t?24:36,width:"70%",radius:12})]})]}),(0,n.BX)(y.k,{gap:12,align:"center",children:[(0,n.tZ)(k.O,{height:40,width:40,radius:"100%",sx:{flexShrink:0}}),(0,n.BX)(b.K,{spacing:8,sx:{width:"100%"},children:[(0,n.tZ)(k.O,{height:12,width:"100%",radius:4}),(0,n.tZ)(k.O,{height:12,width:"70%",radius:4})]})]})]}),(0,n.tZ)(y.k,{align:"center",justify:"center",className:e.colRight,children:(0,n.BX)(b.K,{spacing:16,sx:{width:"100%"},children:[(0,n.tZ)(k.O,{height:32,width:"80%",radius:8}),(0,n.BX)(b.K,{spacing:8,children:[(0,n.tZ)(k.O,{height:16,width:"100%",radius:4}),(0,n.tZ)(k.O,{height:16,width:"100%",radius:4}),(0,n.tZ)(k.O,{height:16,width:"40%",radius:4})]}),(0,n.tZ)(k.O,{height:40,width:130,radius:8})]})}),(0,n.BX)(y.k,{gap:8,align:"center",children:[(0,n.tZ)(k.O,{height:20,width:20,radius:"100%"}),(0,n.tZ)(k.O,{height:16,width:300,radius:4})]})]})},RiskScreenerEmbed=e=>{let{data:t,primaryColor:a,onLoad:o,isFullContainer:x,isDisabledAnimationOnMobile:b,handleOnCloseMobile:k,typeoformId:y,className:Z,classNames:T,styles:w,withoutSkeleton:N,...S}=e,{asPath:B,locale:C,query:I}=(0,u.h)(),{state:D}=(0,g.b)(),{classes:E,cx:L}=v(void 0,{name:"RiskScreenerEmbed",classNames:T,styles:w}),{selectSubot:F=[],backgroundColor:z}=t,M=(0,p.d)(),[X,R]=(0,i.useState)(),W=!N&&void 0===X,O=(0,i.useMemo)(()=>{let e={...I};return delete e.slug,e},[I]),A=y?{id:y||"",params:{ga_client:s().get(f.ch),page_path:B,...O}}:void 0,_=!!A;return((0,i.useEffect)(()=>{(z||a)&&console.warn("[Warning] Please remove the setting primaryColor and backgroundColor in the CMS. All these fields will be configured in SubotAdmin.")},[]),F[0])?(0,n.BX)(r.x,{...S,className:L(Z,E.root),children:[(0,n.tZ)(l.u,{transition:"fade",mounted:W,children:e=>(0,n.tZ)(r.x,{style:e,children:(0,n.tZ)(d.W,{children:_?(0,n.tZ)(TypeFormSkeleton,{}):(0,n.tZ)(SubotSkeleton,{})})})}),(0,n.tZ)(m.Z,{children:(0,n.tZ)(l.u,{transition:"fade",keepMounted:!0,mounted:!W,duration:300,children:e=>(0,n.BX)(r.x,{style:e,children:[(0,n.tZ)(c.a,{}),(0,n.tZ)(h.oh,{id:Number(F[0]),isFullContainer:x,isDisabledAnimationOnMobile:b,onCloseMobile:k,articleLink:B,userInfo:D.userInfo,typeFormProps:A,isMobile:M,locale:C,onLoadFirstNode:e=>{setTimeout(()=>R(e),400)}})]})})})]}):null}},"4aBO":function(e,t,a){a.d(t,{B:function(){return RiskScreenerLayout}});var n=a("BGKE"),i=a("G7ij"),r=a("rrs9"),l=a("9uQI"),o=a("Eso5"),s=a("SPK5"),d=a("mYVa"),c=a("RZSM"),h=a("dDsW"),m=a("gHFm"),g=a("hXNO"),p=a("P5LW"),u=a("rIrU"),f=a("tQmg"),x=a("q1tI"),v=a("f8uB"),b=a("vaps"),k=a("ItJP"),y=a("/npG"),Z=(0,y.k)((e,t)=>{let{opened:a}=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:a?"block":"none"},icon:{},arrowIcon:{},targetText:{},scrollThumb:{backgroundColor:"#D9D9D9"}}});let Disclaimer=e=>{let{heading:t,description:a,maxHeight:i,styles:l,className:s,classNames:d}=e,{formatMessage:c}=(0,h.Z)(),[m,g]=(0,x.useState)(!1),{cx:p,classes:u}=Z({opened:m},{name:"ClickableSingleBanner__Disclaimer",styles:l,classNames:d});return(0,n.BX)(o.x,{className:p(u.root,s),children:[(0,n.BX)(o.x,{className:u.targetBtn,onClick:()=>g(e=>!e),children:[(0,n.tZ)(v.Z,{size:18,className:u.icon}),(0,n.tZ)(r.T,{size:"s4",className:u.targetText,children:t||c({id:"clickableSingleBanner.disclaimer.heading"})}),(0,n.tZ)(k.Z,{size:18,className:u.arrowIcon})]}),i?(0,n.tZ)(b.x,{mah:i,scrollbarSize:4,classNames:{thumb:u.scrollThumb},children:(0,n.tZ)(r.T,{size:"p5",className:u.dropdown,children:a||c({id:"clickableSingleBanner.disclaimer.description"})})}):(0,n.tZ)(r.T,{size:"p5",className:u.dropdown,children:a||c({id:"clickableSingleBanner.disclaimer.description"})})]})};var T=(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:a,description:x,disclaimer:v,reviewedBy:b,url:k,ctaTitle:y,ctaFn:Z,ctaBtnProps:w,bodyRatio:N=648/486,children:S,styles:B,classNames:C,applyH1:I,...D}=e,E=(0,g.d)(),{locale:L}=(0,p.h)(),{formatMessage:F}=(0,h.Z)(),{classes:z}=T(void 0,{name:"RiskScreenerLayout",styles:B,classNames:C}),M=k&&y?(0,n.tZ)(o.x,{className:z.ctaBtn,children:(0,n.tZ)(i.B,{fullWidth:!0,variant:"primary",onClick:Z,...w,children:y})}):null,X={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,n.tZ)(o.x,{className:z.root,styles:B,...D,children:(0,n.BX)(m.W,{className:z.container,children:[(0,n.BX)(o.x,{className:z.infoCol,children:[(0,n.BX)(o.x,{className:z.infoTop,children:[(0,n.BX)(o.x,{className:z.info,children:[t&&(0,n.tZ)(o.x,{className:z.iconWrapper,children:(0,n.tZ)("img",{src:t,alt:a,loading:"lazy",className:z.icon,onError:e=>{e.currentTarget.style.display="none"}})}),a&&(0,n.tZ)(r.T,{size:"h1",as:I?"h1":"h2",className:z.heading,children:a})]}),x&&(0,n.tZ)(r.T,{size:"p3",children:x}),!E&&M,(null==b?void 0:b.reviewer)&&(0,n.BX)(s.k,{gap:12,sx:e=>({alignItems:"center",[e.fn.smallerThan("sm")]:{position:"relative",zIndex:1,alignItems:"flex-start"}}),children:[(0,n.tZ)(o.x,{children:(0,n.tZ)(l.A,{size:32,src:b.avatar,withIndicator:!0,indicatorConfig:{size:18,label:(0,n.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,n.BX)(r.T,{size:E?"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,n.BX)("div",{children:[F({id:"articlePage.reviewed.factCheck"},{name:(0,n.BX)("div",{children:[(0,n.tZ)("a",{href:b.link||"#",style:{color:"#262626"},children:b.reviewer}),!E&&b.date&&" • "]})})," "]}),b.date&&(0,n.tZ)("div",{children:(0,f.m)(b.date,L)})]})]})]}),!E&&(null==v?void 0:v.heading)&&(null==v?void 0:v.description)&&(0,n.tZ)(Disclaimer,{maxHeight:90,...X})]}),(0,n.tZ)(o.x,{className:z.imgCol,children:"none"===N?(0,n.tZ)(o.x,{className:z.boxFrame,children:(0,n.tZ)(o.x,{className:z.boxFrameInner,children:S})}):(0,n.tZ)(c.o,{ratio:N,className:z.boxFrame,children:(0,n.tZ)(o.x,{className:z.boxFrameInner,children:S})})}),E&&(null==v?void 0:v.heading)&&(null==v?void 0:v.description)&&(0,n.BX)(n.HY,{children:[M,(0,n.tZ)(Disclaimer,{...X})]})]})})}},iI4N:function(e,t,a){a.d(t,{_:function(){return ScheduleEvent}});var n,i,r=a("BGKE"),l=a("q1tI"),o=a("0TCZ"),s=a("P5LW");(n=i||(i={})).LIVED="lived",n.LIVE="live",n.COMMING_SOON="comming",n.NOT_YET="notyet",n.NEAREST_COMMING="nearest_comming";let d="YYYY-MM-DD HH:mm:ss",c=(0,l.createContext)({});var h=a("hXNO"),m=a("L6+J"),g=a("rrs9"),p=a("R3fp"),u=a("Eso5"),f=a("25AQ"),x=a("Wgwc"),v=a.n(x),b=a("/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=a("RZSM"),Z=a("S3OL"),T=(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:a,classNames:n,styles:i,item:l,...o}=e,{title:s,state:d,bannersDesktop:c,bannersMobile:m}=l,g=(0,h.d)(),{classes:p,cx:f}=T(void 0,{name:"ScheduleEvent__EventCard",styles:i,classNames:n});return(0,r.tZ)(u.x,{"data-status":d,className:f(a,p.root,"event-card"),...o,children:(0,r.tZ)(y.o,{ratio:g?1:664/206,className:f("thumb-frame",p.thumbFrame),children:(0,r.tZ)(Z.R,{src:g?m:c,alt:s||"",loading:"lazy",className:p.thumbImg,fill:!0})})})},DesktopLayout=e=>{let{groupByMothList:t,styles:a,classNames:n,className:i}=e,{maskcot:o,wrapperProps:d}=(0,l.useContext)(c),{locale:h}=(0,s.h)(),{classes:x,cx:b}=k(void 0,{name:"ScheduleEvent__EventList-GroupByStatus--Desktop",styles:a,classNames:n});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)(g.T,{size:"h2",children:d.title}),(0,r.tZ)(g.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 a=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)(p.Z,{size:24,color:"currentColor"})}),(0,r.tZ)(g.T,{size:"h2",as:"h2",className:x.heading,children:(0,f.Z)(new Date(2020,v()(e,"MM-YYYY").month(),1),"MMMM",{locale:m.j[h]})})]})}),(0,r.tZ)(u.x,{className:x.listing,children:a.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 w=a("rlLN"),N=(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"}}}}})),S=a("UbCi");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 B=a("raAP"),C=a("SjA+"),I=a("TYy9"),D=a.n(I);let MobileLayout=e=>{let{groupByMothList:t,styles:a,classNames:n,className:i}=e,{wrapperProps:o}=(0,l.useContext)(c),{locale:d}=(0,s.h)(),{classes:h,cx:p}=N(void 0,{name:"ScheduleEvent__EventList-GroupByStatus--Desktop",styles:a,classNames:n}),[x,b]=(0,l.useState)(t.monthArr[0]),[k,y]=(0,l.useState)(null),Z=(0,B.U)(),T=(0,l.useMemo)(()=>{let e=t.monthArr.slice(0,3),a=0,n={},i=D()(e.map((e,i)=>{n[e]=i+a;let r=t.listing[e]||[];return a=a+r.length-1,r}));return{monthList:e,listing:i,indexOfMonth:n}},[t]);return console.log({formatedList:T}),(0,r.BX)(u.x,{className:p(i,h.root),children:[(0,r.BX)(u.x,{className:h.info,children:[(0,r.tZ)(g.T,{size:"h2",children:o.title}),(0,r.tZ)(g.T,{size:"p3",children:o.description})]}),(0,r.tZ)(u.x,{className:h.body,children:(0,r.tZ)(u.x,{className:h.bodyInner,children:(0,r.BX)(w.m,{classNames:{tab:h.monthItem},value:x,keepMounted:!0,onTabChange:e=>{b(e),e&&(null==k||k.scrollTo(T.indexOfMonth[e])),e&&console.log({v:e,index:T.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)(w.m.List,{children:(0,r.BX)(u.x,{className:h.monthGroup,children:[(0,r.tZ)("img",{src:S.C.getAssetPath("tiki/calendar-bar.png"),className:h.calendarImg,alt:"calendar",loading:"lazy"}),(0,r.tZ)(u.x,{className:h.monthList,children:T.monthList.map((e,t)=>{let a=(0,f.Z)(new Date(2020,v()(e,"MM-YYYY").month(),1),"MMMM",{locale:m.j[d]});return(0,r.tZ)(w.m.Tab,{value:e,className:p(Number(e)===Number(v()().format("MM"))?"active":"",h.monthItem),"data-event-category":"Service Connection","data-event-action":"Livestream Schedule - ".concat(a),"data-event-label":Z,children:(0,r.tZ)(g.T,{size:"s1",className:"text",children:a})},t)})})]})}),(0,r.tZ)(u.x,{sx:{position:"relative"},children:(0,r.BX)(u.x,{className:p(h.group),children:[(0,r.tZ)(C.Y,{percentOfEndSlideMobile:85,onSlideChange:e=>{var t;return b((null===(t=T.listing[e])||void 0===t?void 0:t.monthKey)||null)},carouselSetting:{getEmblaApi:y},children:(0,r.tZ)(C.Y.Slider,{styles:()=>({progressRoot:{display:"none"}}),children:T.listing.map((e,t)=>(0,r.tZ)(EventCard,{item:e,classNames:{root:h.card}},t))})}),(0,r.tZ)(u.x,{className:h.listing})]})})]})})})]})},GroupByStatus=e=>{let{listEvent:t=[],...a}=e,n=(0,h.d)(),i=(0,l.useMemo)(()=>{let e=function(e){let t={};return e.map(e=>{let a=v()(e.startDate,d).format("MM-YYYY"),n={...e,monthKey:a};if(Object.keys(t).includes(a)){let e=t[a]||[];t[a]=[...e,n]}else t[a]=[n]}),t}(t);return{listing:e,monthArr:Object.keys(e),monthLength:Object.keys(e).length}},[t]);return n?(0,r.tZ)(MobileLayout,{groupByMothList:i,...a}):(0,r.tZ)(DesktopLayout,{groupByMothList:i,...a})};var E=(0,b.k)(e=>({root:{[e.fn.largerThan("sm")]:{paddingTop:0}}})),L=a("kZvb");let EventList=e=>{let{className:t,classNames:a,styles:n}=e,{listEvent:o=[],wrapperProps:s}=(0,l.useContext)(c),{classes:d,cx:h}=E(void 0,{name:"ScheduleEvent__EventList",styles:n,classNames:a}),m=(0,l.useMemo)(()=>o.filter(e=>e.state===i.NOT_YET),[o]);return m.length>0?(0,r.tZ)(L.Z,{className:h(t,d.root),...s,title:"",description:"",children:(0,r.tZ)(GroupByStatus,{listEvent:m})}):null};var F=a("G7ij"),z=a("SPK5"),M=a("dDsW"),X=a("eDIe"),R=a("5SlL"),W=a("nYOs"),O=a("UcrG"),A=a("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:a,handleOnClick:n,...i}=e,l=(0,h.d)(),{classes:o}=_(void 0,{name:"ScheduleEvent__UpcommingBanner__Banner"});return(0,r.tZ)(u.x,{component:"a",href:"live"===a?t.ctaUrl:"#",target:"_blank",className:o.thumbFrame,...i,onClick:e=>{e.preventDefault(),n(t,a)},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 H=a("mYVa");let Y={fontSize:40,fontWeight:750,color:"#fff",textShadow:"rgb(43, 191, 255) 0px 0px 0px, 0.5px 1px 2px #663C1D"};var G=(0,b.k)((e,t)=>{let{isLiveEvent:a,isEndLive:n}=t;return{root:{display:"flex",gap:40,alignItems:"center",[e.fn.smallerThan("sm")]:{flexDirection:"column",justifyContent:"center",gap:16}},heading:{fontSize:24,lineHeight:(0,H.h)(32),fontWeight:700,textAlign:"center",marginBottom:8,color:e.colors.gray[7],[e.fn.largerThan("sm")]:{fontSize:26,lineHeight:(0,H.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:n?"linear-gradient(139.59deg, #BFC5CC 2.87%, #87909C 89.05%)":a?"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:{...Y},timerDivider:{...Y,padding:"0 5px",marginTop:-5},timerUnit:{textTransform:"uppercase",fontSize:(0,H.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 j=["lived","about-lived"],HighlightEvent=e=>{var t,n;let{className:o,styles:g,classNames:p}=e,{locale:x}=(0,s.h)(),{formatMessage:b}=(0,M.Z)(),{applyH1:k,listEvent:Z,openLeadModal:T,setCampaign:w,setHighlightEvent:N}=(0,l.useContext)(c),C=(0,h.d)(),I=(0,B.U)(),[D,E]=(0,l.useState)(null),_=(0,l.useMemo)(()=>Z.filter(e=>e.state===i.LIVE||e.state===i.NOT_YET),[]),[H,Y]=(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,V]=(0,l.useState)(H.isLive?"live":H.isComming&&H.hasCountdownNow?"commingWithCountDown":H.isComming?"comming":"lived"),{classes:K,cx:U}=G({isLiveEvent:"live"===P,isEndLive:j.includes(P)},{name:"ScheduleEvent__HighlightEvent",styles:g,classNames:p});(0,l.useEffect)(()=>{Promise.all([a.e(4846),a.e(2233),a.e(1058),a.e(3295),a.e(1538),a.e(7152),a.e(5684),a.e(2574),a.e(9057),a.e(9884),a.e(7644),a.e(6962),a.e(8767),a.e(6638),a.e(7741),a.e(3434),a.e(2433),a.e(5385),a.e(3564),a.e(7082),a.e(3158),a.e(5641),a.e(7454),a.e(7004),a.e(4758),a.e(6219),a.e(17),a.e(8990),a.e(4067),a.e(9487),a.e(9083),a.e(1520),a.e(270),a.e(7596),a.e(8217),a.e(7543),a.e(2835),a.e(2507),a.e(6885),a.e(7859),a.e(690),a.e(2730),a.e(6287),a.e(7682),a.e(1551),a.e(4870),a.e(9922),a.e(3133),a.e(612),a.e(2002),a.e(1880),a.e(7471),a.e(7165),a.e(5451),a.e(8612)]).then(a.t.bind(a,"S4a3",19)).then(e=>{E(e.default)})},[]);let q=(0,l.useCallback)((e,t)=>{"live"===t||"lived"===t?e.ctaUrl&&window.open(e.ctaUrl):T()},[]),Q=(0,l.useMemo)(()=>{var e,t;return(0,r.tZ)(F.B,{size:"lg",variant:"primary",className:"action-btn",classNames:{root:K.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(H.event,P),children:b({id:"live"===P||"lived"===P?(null===(e=H.event)||void 0===e?void 0:e.ctaTitle)||"common.clickToPlay":(null===(t=H.event)||void 0===t?void 0:t.leadgenCampaign.ctaTitle)||"common.registerToPlayNow"})})},[P]);return((0,l.useEffect)(()=>{(H.isLive||H.isComming)&&N(H.event)},[]),(0,l.useEffect)(()=>{if("comming"===P||"commingWithCountDown"===P)fetch(A.ENV.NEXT_PUBLIC_LEAD_API+"api/campaign/"+String(A.CX[x].SITE_ID||1),{method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{var t;w(((null===(t=e._data)||void 0===t?void 0:t.campaigns)||[]).find(e=>e.code===H.event.leadgenCampaign.code))});else if("about-lived"===P){let e=function(e,t){let a=t.findIndex(t=>t.id===e.id);return t[a]}(H.event,Z);e?(V(hasCommingCountdown(e)?"commingWithCountDown":"comming"),Y({event:e,isLive:e.state===i.LIVE,isComming:e.state===i.NOT_YET,hasCountdownNow:hasCommingCountdown(e)})):V("lived")}},[P]),H.event)?(0,r.BX)(r.HY,{children:[(0,r.tZ)(L.Z,{title:"",description:"",styles:e=>({root:{background:j.includes(P)?e.colors.neutral[0]:"#FFFAED",[e.fn.smallerThan("sm")]:{paddingTop:24}}}),children:(0,r.BX)(u.x,{className:U(o,K.root),children:[(0,r.BX)(u.x,{className:K.info,children:[(0,r.BX)(u.x,{className:K.topInfo,children:[("commingWithCountDown"===P||"comming"===P)&&(0,r.tZ)(u.x,{component:k?"h1":"div",className:K.heading,children:"Đ\xf3n xem livestream"}),(0,r.BX)(y.o,{ratio:512/68,children:[(0,r.tZ)("img",{src:S.C.getAssetPath("tiki/annouce-bar.png"),alt:H.event.title,loading:"lazy"}),(0,r.tZ)(z.k,{align:"center",justify:"center",sx:{paddingBottom:8},children:(0,r.tZ)(u.x,{className:K.announceText,children:(0,f.Z)(v()(null===(t=H.event)||void 0===t?void 0:t.startDate,"YYYY-MM-DD HH:mm").toDate(),"eeee, dd.MM.yyyy",{locale:m.j[x]})})})]}),(0,r.tZ)(u.x,{className:K.statusBar,sx:{position:"relative"},children:"comming"===P?(0,r.BX)(r.HY,{children:[(0,r.tZ)(u.x,{className:K.liveBar,children:(0,r.tZ)(u.x,{className:K.liveText,children:b({id:"common.livestreamIsComming"})})}),(0,r.tZ)(O.W,{endDate:v()(H.event.countdownStart||H.event.startDate,d).toDate(),onEnd:()=>{V(H.event.countdownStart?"commingWithCountDown":"live"),N(H.event)},styles:{root:{display:"none"}}})]}):"commingWithCountDown"===P?(0,r.tZ)(O.W,{hasUnit:!0,endDate:v()(null===(n=H.event)||void 0===n?void 0:n.startDate,d).toDate(),classNames:{root:K.timer,item:K.timerItem,divider:K.timerDivider,text:K.timerText,unit:K.timerUnit},onEnd:()=>V("live"),styles:{root:{height:62},heading:{display:"none"}}}):"live"===P?(0,r.BX)(r.HY,{children:[(0,r.BX)(u.x,{className:K.liveBar,children:[D&&(0,r.tZ)(W.Z,{animationData:D,style:{width:24,height:24},loop:!0}),(0,r.tZ)(u.x,{className:K.liveText,children:b({id:"common.livestreamIsLive"})})]}),(0,r.tZ)(O.W,{endDate:v()(H.event.endDate,d).toDate(),onEnd:()=>V("about-lived"),styles:{root:{display:"none"}}})]}):"lived"===P?(0,r.tZ)(r.HY,{children:(0,r.tZ)(u.x,{className:K.liveBar,children:(0,r.tZ)(u.x,{className:K.liveText,children:b({id:"common.ended"})})})}):null})]}),(0,r.tZ)(u.x,{className:K.action,children:Q})]}),(0,r.tZ)(Banner,{status:P,event:H.event,handleOnClick:q,"data-event-category":"Service Connection","data-event-action":H.isLive?"Watch Livestream Banner":"Leadgen Livestream Banner","data-event-label":I})]})}),C&&(0,r.BX)(u.x,{className:K.sticky,children:[(0,r.tZ)(F.B,{size:"lg",variant:"tertiary",leftIcon:(0,r.tZ)(X.Z,{size:18,isOutline:!0}),className:K.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=H.event)||void 0===e?void 0:e.startDate,"YYYY-MM-DD HH:mm").format("DD.MM.YYYY"))})}}),Q]})]}):null};var P=a("k8Y/"),V=a.n(P),K=a("OB5W"),U=a("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(S.C.getAssetPath("tiki/top-bg.png"),")"),backgroundSize:"contain"},"&:after":{backgroundImage:"url(".concat(S.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,U.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}}})),Q=(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:a,styles:n,...i}=e,{wrapperProps:o}=(0,l.useContext)(c),{classes:s}=Q(void 0,{name:"ScheduleEvent__GameRules",styles:n,classNames:a});return(0,r.tZ)(L.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:S.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)(g.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)(g.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 J=(0,l.forwardRef)((e,t)=>{let{campaign:a,event:n,styles:i,classNames:l}=e,{classes:o,theme:s}=q(void 0,{name:"ScheduleEvent___LeadgenSection",styles:i,classNames:l}),d={isSkippable:!0,campaignCode:a.code,banner:{desktop:(null==n?void 0:n.leadgenCampaign.bannerDesktop)||"",mobile:(null==n?void 0:n.leadgenCampaign.bannerMobile)||""},thankYouMessage:(()=>{var e,t,n,i,r;let l=JSON.parse((null===(e=a.extra_fields)||void 0===e?void 0:e.listBlockThankyou)||null);return{title:(null==l?void 0:null===(n=l.find(e=>"TitleBlock"==e.name))||void 0===n?void 0:null===(t=n.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:a};return(0,r.BX)(r.HY,{children:[n.leadgenCampaign.enableLeadgenInline&&(0,r.BX)(u.x,{className:o.leadWrapper,children:[(0,r.tZ)(K.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)(K.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:a,wrapperProps:n}=e,h=(0,l.useMemo)(()=>{let e=a.map(e=>({...e,timestamp:v()(e.startDate,d).unix()}));return V()(e,["timestamp"],["asc"])},[a]),[g,p]=(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,a)=>{var n,r;let l=(n=v()(e.startDate,d).toDate(),r=v()(e.endDate,d).toDate(),v()().isAfter(r)?i.LIVED:v()().isBetween(n,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:m.j[t]}),episode:a+1};return o})}(h,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()},[]),T=(0,l.useCallback)(e=>{let t=a.findIndex(t=>t.id===e.id);t>-1&&p.setItemProp(t,"state",i.LIVED)},[g]),w=(0,l.useCallback)(e=>{let t=a.findIndex(t=>t.id===e.id);t>-1&&p.setItemProp(t,"state",i.LIVE)},[g]);return(0,l.useEffect)(()=>{setTimeout(()=>Z(),1e3)},[]),(0,l.useEffect)(()=>{p.filter(e=>e.id!==(null==b?void 0:b.id)),x(null)},[b]),(0,r.BX)(c.Provider,{value:{...e,listEvent:g,wrapperProps:n,changeToLivedEvent:T,changeToLiveEvent:w,openLeadModal:Z,campaign:u,setCampaign:x,highlightEvent:b,setHighlightEvent:k},children:[(0,r.tZ)(HighlightEvent,{}),(0,r.tZ)(EventList,{}),u&&b&&(0,r.tZ)(J,{ref:y,event:b,campaign:u})]})}},kZvb:function(e,t,a){a.d(t,{Z:function(){return u}});var n=a("BGKE"),i=a("rrs9"),r=a("Eso5"),l=a("RZSM"),o=a("SPK5"),s=a("hXNO"),d=a("/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:a,description:d,icon:h,layout:m="normal",children:g,className:p,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"===m?(0,n.BX)(r.x,{className:k(p,b.root,"normal-style","header"),...x,children:[t&&(0,n.tZ)(i.T,{size:"h1",as:a||"h2",className:"heading-title title",children:t}),d&&(0,n.tZ)(i.T,{size:"s3",className:"description",children:d}),g]}):"withIcon"===m?(0,n.BX)(r.x,{className:k(p,b.root,"with-icon-style"),...x,children:[(0,n.BX)(r.x,{className:"inner",children:[h&&(0,n.tZ)(r.x,{className:"icon",children:(0,n.tZ)(l.o,{ratio:1,sx:{width:40,[y.fn.largerThan("sm")]:{width:80}},children:(0,n.tZ)(o.k,{justify:"center",align:"center",className:"icon-wrapper",children:(0,n.tZ)("img",{src:h,alt:t,loading:"lazy"})})})}),(t||d)&&(0,n.BX)(r.x,{className:"info ".concat(d?"":"no-desc"),children:[t&&(0,n.tZ)(i.T,{size:"h3",as:a||"h2",className:"heading-title title",children:t}),!v&&d&&(0,n.tZ)(i.T,{size:"p3",className:"desc desc-desktop",children:d})]})]}),v&&d&&(0,n.tZ)(i.T,{size:"p3",className:"desc desc-mobile",children:d})]}):null};var h=(0,d.k)(()=>({root:{},header:{},innerClass:{}})),m=a("OAL+"),g=(0,d.k)((e,t)=>{let{hasColor:a,bgColor:n,noPadding:i}=t;return{root:{backgroundColor:n,...!i&&{paddingTop:a?80:40,paddingBottom:a?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"}}}}}),p=a("q1tI");let Wrapper=e=>{let{title:t,titleAs:a,description:i,icon:l,children:o,bgColor:s,className:d,classNames:c,layout:h,styles:u,innerClass:f="hhg-page-container",noPadding:x,defaultColor:v="transparent",...b}=e,k=(0,p.useMemo)(()=>s||v,[]),y=0===["","#fff","#fff","transparent"].filter(e=>e===k.toLowerCase()).length,{classes:Z,cx:T}=g({bgColor:k,noPadding:x,hasColor:y},{name:"ServiceConnections__SectionWrapper-Wrapper",styles:u,classNames:c});return(0,n.tZ)(r.x,{className:T(Z.root,d),"data-has-color":y,...y&&{"data-color":k},...b,children:(0,n.tZ)(m.K,{className:T(f,Z.innerClass),children:o})})},SectionWrapper=e=>{let{title:t,titleAs:a,description:i,icon:r,children:l,layout:o="normal",innerClass:s,styles:d,className:c,classNames:m,applyH1:g,...p}=e,{classes:u,cx:f}=h(void 0,{name:"ServiceConnections__SectionWrapper",styles:d,classNames:m});return(0,n.BX)(Wrapper,{classNames:{root:f(c,"section-wrapper",u.root),innerClass:u.innerClass},...p,children:[(t||i)&&(0,n.tZ)(Header,{className:u.header,title:t,description:i,icon:r,titleAs:a||(g?"h1":void 0),layout:o}),l||l]})};SectionWrapper.Header=Header,SectionWrapper.Wrapper=Wrapper;var u=SectionWrapper},"62e8":function(e,t,a){a.d(t,{e:function(){return ShortReelList}});var n=a("BGKE"),i=a("q1tI"),r=a("UbCi"),l=a("rrs9"),o=a("Eso5"),s=a("OAL+"),d=a("mYVa"),c=a("RZSM"),h=a("09QT"),m=a("oQBk"),g=a("gHFm"),p=a("S3OL"),u=a("KX2h"),f=a("raAP"),x=a("hXNO"),v=(0,a("/npG").k)((e,t)=>{let{hasSlider:a}=t;return{root:{position:"relative",backgroundImage:"linear-gradient(162.45deg, #DDF0FF 2.18%, #80BDFF 99.05%)",[e.fn.smallerThan("sm")]:{padding:"".concat((0,d.h)(24)," 0")},[e.fn.largerThan("sm")]:{"&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:"url(".concat(r.C.getAssetPath("tiki/circle-patter.png"),")"),backgroundSize:"contain",backgroundRepeat:"no-repeat"}}},container:{},heading:{},body:{display:"flex",alignItems:"center",...!a&&{justifyContent:"center"},[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{gap:a?24:80}},listing:{position:"relative",...a&&{width:"100%"},[e.fn.smallerThan("sm")]:{width:"100%"},".arrow":{width:40,height:40},".arrow-next":{right:-60},".arrow-prev":{left:-60}},thumbnail:{position:"relative",[e.fn.largerThan("sm")]:{width:456,minHeight:585,flexShrink:0}},item:{display:"block",transition:"all .3s ease","&, & *":{borderRadius:8},[e.fn.largerThan("sm")]:{...!a&&{width:240},"&:hover":{".item-title":{transform:"translateY(-10px)"},".item-overlay-wrapper":{backgroundColor:"rgba(0,0,0,0.4)"}}}},itemThumbImg:{},itemThumb:{},overlayWrapper:{transition:"all .3s ease"},overlay:{position:"absolute",left:0,bottom:0,right:0,backgroundImage:"linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, #111111 100%)",minHeight:96,padding:"16px 12px",display:"flex",alignItems:"flex-end"},title:{transition:"all .3s ease"}}}),b=a("vODv");let ShortReelList=e=>{let{sessionProps:t,styles:a,...k}=e,y=(0,x.d)(),[Z,T]=(0,i.useState)([]),w=(0,i.useMemo)(()=>Z.length>2,[Z]),{classes:N,cx:S}=v({hasSlider:w},{name:"ShortReelList",styles:a}),{title:B,videoList:C=[]}=t,I=(0,f.U)(),[D,E]=(0,i.useState)(!1),L=(0,i.useCallback)(async()=>{try{E(!0);let e=await Promise.all(C.map(e=>(0,h.d)(m.y.TOGETHER.FETCH_PREVIEW,{method:"POST",data:{link:e.urlVideo}},"together")));E(!1);let t=e.map((e,t)=>(null==e?void 0:e.data)&&{...e.data,url:C[t].urlVideo,title:C[t].videoTitle||e.title}).filter(Boolean);t.length>0&&T(t)}catch(e){console.log(e),E(!1)}},[]);return(0,i.useEffect)(()=>{C.length>0&&L()},[]),C.length>0?(0,n.tZ)(o.x,{className:N.root,...k,children:(0,n.tZ)(g.W,{className:N.container,children:(0,n.BX)(s.K,{spacing:(0,d.h)(40),sx:e=>({gap:(0,d.h)(24),[e.fn.largerThan("sm")]:{gap:(0,d.h)(40)}}),children:[B&&(0,n.tZ)(l.T,{size:"h2",as:"h2",className:N.heading,children:B}),D?(0,n.tZ)(u.g,{}):Z.length>0?(0,n.BX)(o.x,{className:N.body,children:[(0,n.tZ)(o.x,{className:N.thumbnail,children:(0,n.tZ)("img",{src:r.C.getAssetPath(y?"tiki/tamdiem-mb.png":"tiki/tamdiem-desktop.png"),alt:"T\xe2m điểm",loading:"lazy"})}),(0,n.tZ)(o.x,{className:N.listing,children:(0,n.tZ)(b.jx,{lengthToCarouselDesktop:3,gapDesktop:24,carouselSetting:{withIndicators:!1},children:(0,n.tZ)(b.jx.Slider,{children:Z.map((e,t)=>(0,n.tZ)("a",{href:e.url,target:"_blank",className:N.item,"data-event-category":"Service Connection","data-event-action":"Livestream highlight Video","data-event-label":I,children:(0,n.BX)(c.o,{ratio:240/431,className:N.itemThumb,children:[(0,n.tZ)(p.R,{src:e.image||"",className:N.itemThumbImg,alt:e.title,loading:"lazy",fill:!0}),(0,n.tZ)(o.x,{className:S(N.overlayWrapper,"item-overlay-wrapper"),children:(0,n.tZ)(o.x,{className:S(N.overlay,"item-overlay"),children:(0,n.tZ)(l.T,{size:"s3",color:"#fff",className:S(N.title,"item-title"),children:e.title})})})]})},t))})})})]}):null]})})}):null}},E7r1:function(e,t,a){a.r(t),a.d(t,{default:function(){return StickyNavWrapper}});var n=a("BGKE"),i=a("q1tI"),r=a("mYVa"),l=a("Gwuz"),o=a("5fZt"),s=a("mU93"),d=a("77u+"),c=a("ZpEA"),h=a("hXNO"),m=a("GwGV"),g=a("e0pn"),p=a("Eso5"),u=a("SPK5"),f=a("/npG"),x=(0,f.k)(e=>({dropdown:{padding:"".concat((0,r.h)(10)," ").concat((0,r.h)(12)),backgroundColor:"#fff",cursor:"pointer",width:(0,r.h)(250),[e.fn.smallerThan("sm")]:{width:"100%"}},selectedItem:{padding:0,width:"90%"},selectedItemTitle:{fontWeight:600},navigatorRoot:{paddingTop:(0,r.h)(4),flexDirection:"column",gap:(0,r.h)(4)},item:{paddingTop:(0,r.h)(10),paddingBottom:(0,r.h)(10),borderRadius:0,"&.active":{backgroundColor:e.colors.gray[1]}},app:{borderRadius:8,overflow:"hidden"},appImg:{height:40,display:"block"}})),v=a("uzt2"),b=a("/ch6"),k=a("+9w5"),y=a("UbCi");let Dropdown=e=>{var t,a;let{navigating:l=[],mappingIconList:o,colorArr:s,onNavClick:c,selectedSection:h,hideIcon:f,isApp:Z,logo:T,...w}=e,{classes:N,cx:S}=x(void 0,{name:"CarePathHeroBannerNavigator__Dropdown"}),[B,C]=(0,i.useState)(0),[I,D]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=l.findIndex(e=>h===e.idScroll);-1!==e&&C(e)},[h]),(0,n.BX)(p.x,{sx:{position:"relative",userSelect:"none"},...w,children:[(0,n.BX)(u.k,{className:N.dropdown,align:"center",justify:"space-between",onClick:()=>D(!I),children:[(0,n.tZ)(k.h,{hideIcon:f,icon:(null==o?void 0:o[null==l?void 0:null===(t=l[B])||void 0===t?void 0:t.sessionLayout])||(0,n.tZ)(m.Z,{}),title:null==l?void 0:null===(a=l[B])||void 0===a?void 0:a.title,bgColor:null==s?void 0:s[B%4],classNames:{root:N.selectedItem,title:N.selectedItemTitle}}),(0,n.tZ)(g.Z,{size:18})]}),(0,n.BX)(p.x,{sx:e=>({display:I?"block":"none",position:"absolute",top:(0,r.h)(39),width:"100%",background:"#fff",border:"1px solid ".concat(e.colors.gray[1]),zIndex:1}),children:[(0,n.tZ)(v.C3,{mappingIconList:o,classNames:{root:N.navigatorRoot},colorArr:s,navigating:l,onNavClick:c,dataActionBySession:(()=>{let e={};return Object.keys(d.e).map(t=>{e[t]="".concat(d.e[t]," - Header Navigate")}),e})(),children:l.map((e,t)=>(0,n.tZ)(b.j,{className:S(N.item,B===t?"active":""),displayAs:e=>(0,n.tZ)(k.h,{...e,hideIcon:f,isActive:B===t}),onClick:()=>{C(t),D(!1)}},String(t)))}),Z&&(0,n.BX)(u.k,{align:"center",gap:16,sx:{padding:14},children:[(0,n.tZ)("a",{href:null==T?void 0:T.url,target:"_blank",children:(0,n.tZ)("div",{className:N.app,children:(0,n.tZ)("img",{src:y.C.getAssetPath("appIntro/app-store.png"),className:N.appImg,loading:"lazy",alt:"App Store"})})}),(0,n.tZ)("a",{href:null==T?void 0:T.url,target:"_blank",children:(0,n.tZ)("div",{className:N.app,children:(0,n.tZ)("img",{src:y.C.getAssetPath("appIntro/google-play.png"),className:N.appImg,loading:"lazy",alt:"Google Play"})})})]})]})]})};var Z=(0,f.k)((e,t)=>{let{hasSponsor:a}=t;return{root:{},wrapper:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{gap:(0,r.h)(24)}},sponsor:{},navigator:{gap:(0,r.h)(8)},navigatorItem:{img:{height:18}},buttonItemTitle:{...a&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:(0,r.h)(180)}}}}),T=a("d9F/"),w=(0,i.forwardRef)((e,t)=>{let{sponsoredBy:a=[],onNavClick:m,children:g,styles:p,classNames:u,isAppPage:f,logo:x,...k}=e,{colorArr:y,navigating:w=[],mappingIconList:N}=(0,i.useContext)(s.F),S=(a||[]).length>0,{classes:B}=Z({hasSponsor:S},{name:"StickyNavigator",classNames:u,styles:p}),C=(0,h.d)(),[I,D]=(0,i.useState)(""),E=(0,i.useMemo)(()=>w.filter(e=>"comming_soon"!==e.type),[w]);(0,i.useImperativeHandle)(t,()=>({setSelectedSection:D}));let L=(0,c.t)(E.map(e=>e.url)),F={};return E.map((e,t)=>{F[e.idScroll]=L[t]}),E.length>0?(0,n.BX)(o.SubHeader,{className:B.wrapper,sx:e=>({position:"absolute",width:"100%",borderBottom:"1px solid ".concat(e.colors.neutral[1]),transform:"translateY(".concat(""!==I?0:"-100%",")"),transition:"transform .3s ease",[e.fn.largerThan("sm")]:{padding:"".concat((0,r.h)(8)," 0"),display:"flex",justifyContent:"center"}}),children:["function"==typeof g?null==g?void 0:g(m,I):C?(0,n.tZ)(Dropdown,{navigating:E,mappingIconList:N,colorArr:y,selectedSection:I,onNavClick:m,hideIcon:f,logo:x,isApp:f}):(0,n.tZ)(v.C3,{colorArr:y,navigating:E,iconSize:24,selectedSection:I,mappingIconList:N,dataActionBySession:(()=>{let e={};return Object.keys(d.e).map(t=>{e[t]="".concat(d.e[t]," - Header Navigate")}),e})(),onNavClick:m,...k,children:E.map((e,t)=>{var a,i;return(0,n.tZ)(b.j,{classNames:{root:B.navigatorItem},displayAs:T.y,iconSize:18,isExternalUrl:null===(a=F[e.idScroll])||void 0===a?void 0:a.isExternalSite,target:(null===(i=F[e.idScroll])||void 0===i?void 0:i.isExternalUrl)?"_blank":"_self"},String(t))})}),S&&!C&&(0,n.tZ)(l.StickySponsoredBy,{className:B.sponsor,isCollapsed:!1,sponsoredType:"content",sponsoredBy:a,isMobile:C,styles:e=>({root:{position:"relative",zIndex:1,backgroundColor:"transparent",border:0,[e.fn.largerThan("sm")]:{padding:0}},logoWrapper:{marginLeft:(0,r.h)(12)},logo:{[e.fn.largerThan("sm")]:{height:(0,r.h)(32)}},container:{[e.fn.largerThan("sm")]:{padding:0}}})})]}):null});function StickyNavWrapper(e){let{stickyRef:t,...a}=e;return(0,n.tZ)(w,{...a,ref:t})}},lYwf:function(e,t,a){a.d(t,{i:function(){return TypeFormInline}});var n=a("BGKE"),i=a("q1tI"),r=a("p46w"),l=a.n(r),o=a("P5LW"),s=a("rIrU"),d=a("Eso5");let TypeformEmbed=e=>{let{url:t,...a}=e;return(0,n.tZ)(d.x,{component:"iframe",src:t,...a,allow:"camera; microphone; autoplay; encrypted-media;",loading:"lazy",title:"Typeform"})},FullScreen=e=>{let{url:t}=e;return(0,n.tZ)(d.x,{sx:{height:"calc(100vh - 53px)",minHeight:500},children:(0,n.tZ)(TypeformEmbed,{url:t,style:{width:"100%",height:"100%",border:"none"}})})};var c=a("5juI"),h=a("rrs9"),m=a("J+gj"),g=a("RZSM"),p=a("SPK5"),u=a("OAL+"),f=a("0D4Z"),x=a("gHFm"),v=a("usqR"),b=a("/npG"),k=a("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:a}=e,{headline:i,headlineIcon:r,disclaimer:l,backgroundColor:o,medicalInfo:s}=t||{},{classes:b}=y(void 0,{name:"TypeFormInlineInlineScreen"});return(0,n.tZ)(c.T,{variant:c.C.LEADGEN,children:(0,n.tZ)(d.x,{bg:o,className:b.root,children:(0,n.BX)(x.W,{className:b.inner,children:[(r||r)&&(0,n.BX)(d.x,{className:b.header,children:[r&&(0,n.tZ)(d.x,{className:b.headerIcon,children:(0,n.tZ)(g.o,{ratio:1,children:(0,n.tZ)("img",{loading:"lazy",src:r,alt:i})})}),(i||s)&&(0,n.BX)(n.HY,{children:[i&&(0,n.tZ)("div",{className:b.headingWrapper,children:(0,n.tZ)("h2",{className:b.heading,children:i})}),s&&(0,n.BX)(p.k,{gap:12,align:"center",className:b.medicalReview,children:[(0,n.tZ)(d.x,{className:b.medicalAvatar,children:(0,n.tZ)(g.o,{ratio:1,children:(0,n.tZ)("img",{loading:"lazy",src:s.icon,alt:s.doctorInfo})})}),(0,n.BX)(u.K,{spacing:4,children:[(0,n.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,n.tZ)(d.x,{className:b.medicalSubTitle,children:s.subText})]})]})]})]}),(0,n.BX)(d.x,{className:b.iframeWrapper,children:[(0,n.tZ)(f.O,{visible:!0,className:b.skeleton}),(0,n.tZ)(TypeformEmbed,{url:a,className:b.iframe})]}),l&&(0,n.tZ)(d.x,{className:b.disclaimer,children:(0,n.tZ)(v.E,{contentSize:"n1",bordered:!1,description:l,HeadingWrapper:e=>(0,n.tZ)(h.T,{...e,size:"p2",sx:{textTransform:"none"}}),ContentWrapper:e=>(0,n.tZ)(h.T,{...e,size:"p3"}),icon:(0,n.tZ)(m.Z,{color:"#FE921D",size:20}),expand:!1})})]})})})},TypeFormInline=e=>{var t;let a,{data:r}=e,{formId:d,displayFull:c,utmParams:h}=r||{},{query:m,asPath:g}=(0,o.h)(),p=(0,i.useMemo)(()=>{let e={...m};return delete e.slug,e},[m]);if(!d)return null;let u=h.split("&").filter(Boolean),f=u.reduce((e,t)=>{let[a,n]=t.split("=");return a&&(e[a]=n),e},{}),x="https://form.typeform.com/to/".concat(d,"?").concat((t={ga_client:l().get(s.ch),page_path:g,...p,...f},a="",t&&(a=Object.keys(t).map(e=>e+"="+t[e]).join("&")),a));return c?(0,n.tZ)(FullScreen,{url:x}):(0,n.tZ)(InlineScreen,{data:r,url:x})}},DcJK:function(e,t,a){a.d(t,{y:function(){return VideoLibrary}});var n=a("BGKE"),i=a("q1tI"),r=a("HqVW"),l=a("h7+k"),o=a("rrs9"),s=a("9uQI"),d=a("8vDj"),c=a("mYVa"),h=a("SPK5"),m=a("Eso5"),g=a("RZSM"),p=a("0D4Z"),u=a("OAL+"),f=a("vaps"),x=a("4wSK"),v=a("dDsW"),b=a("09QT"),k=a("oQBk"),y=a("gHFm"),Z=a("hXNO"),T=(0,a("/npG").k)((e,t)=>{let{bgColor:a,hasOtherList:n}=t;return{root:{backgroundColor:a||e.colors.neutral[0],padding:"".concat((0,c.h)(24)," 0"),[e.fn.largerThan("sm")]:{padding:"".concat((0,c.h)(80)," 0")}},heading:{},playerListing:{gap:24,[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:8}},heroVideo:{[e.fn.largerThan("sm")]:{width:n?"65%":"100%"}},otherListDesktop:{position:"relative",display:"flex",[e.fn.smallerThan("sm")]:{gap:8,".video-item-skeleton":{width:"45%",display:"none","&:nth-child(1),&:nth-child(2)":{display:"flex"}}},[e.fn.largerThan("sm")]:{width:"35%",flexDirection:"column",gap:24}},otherListMobile:{},videoItemSkeleton:{}}}),w=a("UbCi"),N=a("rIrU");let VideoItem=e=>{let{title:t,image:a,active:i,url:r,indexNumber:l,showIndex:s,...d}=e,{formatMessage:p}=(0,v.Z)();return(0,n.tZ)(m.x,{...d,children:(0,n.BX)(h.k,{className:"pointer-event-child-none","data-event-category":"Service Connection","data-event-action":"Video List Click","data-event-label":r,gap:(0,c.h)(8),align:"center",sx:e=>({[e.fn.smallerThan("sm")]:{flexDirection:"column",alignItems:"stretch"}}),children:[s&&(0,n.tZ)(m.x,{children:(0,n.tZ)(o.T,{size:"s4",weight:"semiBold",children:l})}),(0,n.BX)(m.x,{sx:e=>({position:"relative",[e.fn.largerThan("sm")]:{width:(0,c.h)(120)}}),children:[(0,n.tZ)(g.o,{ratio:120/68,children:(0,n.tZ)("img",{loading:"lazy",src:a,alt:t,onError:e=>{e.currentTarget.src="".concat(N.Nr,"/default-image.jpg")}})}),(0,n.tZ)(h.k,{align:"center",justify:"center",sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:i?"rgba(0, 0, 0, .5)":"transparent",transition:"all .2s ease"},children:i?(0,n.tZ)(o.T,{size:"s4",weight:"semiBold",color:"#fff",children:p({id:"common.playing",defaultMessage:"Playing ..."})}):(0,n.tZ)("img",{src:w.C.getAssetPath("play-circle-bg.svg"),alt:"play",loading:"lazy"})})]}),(0,n.tZ)(m.x,{sx:e=>({[e.fn.largerThan("sm")]:{width:"calc(100% - 128px)"}}),children:(0,n.tZ)(o.T,{size:"s3",weight:"semiBold",color:i?"blue.6":void 0,sx:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"},children:t})})]})})},VideoItemSkeleton=()=>(0,n.BX)(h.k,{align:"center",gap:8,className:"video-item-skeleton",sx:e=>({[e.fn.smallerThan("sm")]:{flexDirection:"column"}}),children:[(0,n.tZ)(m.x,{sx:e=>({flexShrink:0,width:"100%",[e.fn.largerThan("sm")]:{width:120}}),children:(0,n.tZ)(g.o,{ratio:16/9,children:(0,n.tZ)(p.O,{})})}),(0,n.BX)(u.K,{spacing:4,w:"100%",children:[(0,n.tZ)(p.O,{width:"100%",height:12}),(0,n.tZ)(p.O,{width:"100%",height:12}),(0,n.tZ)(p.O,{width:"70%",height:12})]})]}),VideoLibrary=e=>{let{sessionProps:t,styles:a,autoPlay:w=!1,applyH1:N,...S}=e,{backgroundColor:B}=t,{formatMessage:C}=(0,v.Z)(),{title:I,videoList:D=[]}=t,E=D.length>1,{classes:L}=T({bgColor:B,hasOtherList:E},{name:"VideoLibrary",styles:a}),[F,z]=(0,i.useState)([]),[M,X]=(0,i.useState)(!0),[R,W]=(0,i.useState)((null==D?void 0:D[0])?{title:D[0].videoTitle,url:D[0].urlVideo}:null),[O,A]=(0,i.useState)(w),[_,H]=(0,i.useState)(1),Y=(0,Z.d)(),G=(0,d.rZ)(),{ref:j,entry:P}=(0,x.s)({threshold:1}),V=(0,i.useCallback)(async()=>{try{X(!0);let e=await Promise.all(D.map(e=>(0,b.d)(k.y.TOGETHER.FETCH_PREVIEW,{method:"POST",data:{link:e.urlVideo}},"together")));X(!1);let t=e.map((e,t)=>(null==e?void 0:e.data)&&{...e.data,url:D[t].urlVideo,title:D[t].videoTitle||e.title}).filter(Boolean);t.length>0&&(W(null==t?void 0:t[0]),z(t))}catch(e){console.log(e),X(!1)}},[]);(0,i.useEffect)(()=>{D.length>0&&V()},[]),(0,i.useEffect)(()=>{if(P&&O){var e,t,a;null==P||null===(a=P.target)||void 0===a||null===(t=a.querySelector("iframe"))||void 0===t||null===(e=t.contentWindow)||void 0===e||e.postMessage('{"event":"command","func":"'.concat(P.isIntersecting?"playVideo":"pauseVideo",'","args":""}'),"*")}},[P]);let K={slidesToScroll:1,slideSize:"45%",slideGap:(0,c.h)(8),withIndicators:!0,withControls:!1,align:"start",loop:!0,styles:()=>({indicators:{bottom:"auto",top:"calc(100% + 30px - 8px)"},indicator:{width:"8px",height:"8px",opacity:1,backgroundColor:G.colors.neutral[5],"&[data-active]":{backgroundColor:G.colors.blue[7]},".mantine-Carousel-control[data-inactive]":{opacity:0,cursor:"default"}}})},U=D.length>1&&(0,n.tZ)(o.T,{size:"s4",children:C({id:"common.currentOnTotalVideo",defaultMessage:"Total video {number}/{count}"},{number:_,count:D.length})});if(0===D.length)return null;let q=(0,n.BX)(h.k,{className:L.playerListing,children:[(0,n.tZ)(m.x,{className:L.heroVideo,children:(0,n.tZ)(g.o,{ratio:16/9,children:(0,n.tZ)(p.O,{})})}),E&&(0,n.tZ)(m.x,{className:L.otherListDesktop,children:[,,,,].fill("").map((e,t)=>(0,n.tZ)(VideoItemSkeleton,{},String(t)))})]}),Q=F.length>0?(0,n.BX)(h.k,{className:L.playerListing,ref:j,children:[R&&(0,n.BX)(u.K,{className:L.heroVideo,spacing:(0,c.h)(16),children:[(0,n.tZ)(r.S,{url:R.url||"",autoPlay:O},R.url),!E&&(0,n.tZ)(l.H,{tag:"h3",children:R.title})]}),E&&(Y?(0,n.tZ)(m.x,{sx:{paddingBottom:(0,c.h)(30)},children:(0,n.tZ)(s.a,{...K,children:F.map((e,t)=>(0,n.tZ)(s.a.Slide,{children:(0,n.tZ)(VideoItem,{title:e.title,url:e.url,image:e.image,active:e.url===(null==R?void 0:R.url),onClick:()=>{A(!0),W(e)},sx:{cursor:"pointer"}})},String(t)))})}):(0,n.BX)(m.x,{className:L.otherListDesktop,children:[U,(0,n.tZ)(m.x,{sx:e=>({[e.fn.largerThan("sm")]:{position:"absolute",top:(0,c.h)(30),left:0,right:0,bottom:0}}),children:(0,n.tZ)(f.x,{h:"100%",type:"always",offsetScrollbars:!0,scrollbarSize:8,children:(0,n.tZ)(h.k,{sx:e=>({gap:(0,c.h)(8),[e.fn.largerThan("sm")]:{flexDirection:"column",gap:(0,c.h)(24)}}),children:F.map((e,t)=>(0,n.tZ)(VideoItem,{indexNumber:t+1,showIndex:!Y,title:e.title,url:e.url,image:e.image,active:e.url===(null==R?void 0:R.url),onClick:()=>{H(t+1),A(!0),W(e)},sx:{cursor:"pointer"}},String(t)))})})})]}))]}):null;return(0,n.tZ)(m.x,{className:L.root,...S,children:(0,n.tZ)(y.W,{children:(0,n.BX)(u.K,{spacing:(0,c.h)(40),sx:e=>({gap:(0,c.h)(24),[e.fn.largerThan("sm")]:{gap:(0,c.h)(40)}}),children:[I&&(0,n.BX)(u.K,{spacing:(0,c.h)(8),children:[I&&(0,n.tZ)(o.T,{size:"h2",as:N?"h1":"h2",className:L.heading,children:I}),Y&&U]}),M?q:Q]})})})}},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":[]}')}}]);