"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8309],{80372:function(e,t,a){a.d(t,{e:function(){return ArticleAudioPlayer}});var o=a(35944),n=a(67294),i=a(13023),l=a(86896),C=a(28847),r=a(50667),c=a(81077),d=a(83015),s=a(29017),h=a(74706),u=a(96768),g=a(20868),m=a(71216),p=a(10166),v=a(15184),f=a(7259);let Z=(0,p.Z)("div",{target:"ebob4tu0"})("display:flex;min-height:48px;height:48px;background-color:",v.t.colors.primary50,";border-radius:4px;align-items:center;padding:8px 12px;margin-bottom:24px;user-select:none;gap:16px;",f.M.mbDown,"{background-color:#ffffff;border-radius:0;padding:0;flex-direction:column;min-height:initial;height:initial;gap:4px;margin:0;}"),b=(0,p.Z)("img",{target:"ebob4tu1"})("width:24px;height:24px;cursor:pointer;/* margin-left:-2px;*/"),M=(0,p.Z)("div",{target:"ebob4tu2"})("&.hidden{display:none;}"),y=(0,p.Z)("div",{target:"ebob4tu3"})("flex:1;",f.M.mbDown,"{max-width:85px;.mobile-navigation-label{width:70px;text-align:center;font-weight:500;font-size:10px;line-height:16px;color:",null===v.t||void 0===v.t?void 0:v.t.colors.gray600,";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",f.M.mbDown,"{max-width:70px;}}}"),w=(0,p.Z)("div",{target:"ebob4tu4"})("height:4px;width:100%;background-color:",v.t.colors.white,";border-radius:4px;position:relative;overflow:hidden;cursor:pointer;"),x=(0,p.Z)("div",{target:"ebob4tu5"})("background-color:",v.t.colors.primaryBase,";position:absolute;top:0;bottom:0;left:0;"),k=(0,p.Z)("div",{target:"ebob4tu6"})("display:flex;gap:16px;align-items:center;"),B=(0,p.Z)(i.T,{target:"ebob4tu7"})("font-variant-numeric:tabular-nums;white-space:nowrap;");function AudioPlayerControls(e){let{articleId:t,audioPlayerState:a,className:i,onClickPlay:l}=e,{play:r,pause:c}=(0,C.xm)(),{dispatch:p}=(0,n.useContext)(s.I),v=(0,g.U)(),f=(0,d.d)();return(0,o.BX)(M,{className:i,children:[["idle","paused","ended"].includes(a)&&(0,o.tZ)(h.B,{size:"md",type:"button",variant:"primary",id:"test-play",onClick:function(){null==l||l(),r(),p({type:m.H.PLAY_ARTICLE,payload:{id:t}})},dataEventCategory:"Audio",dataEventAction:"Request Article Audio",dataEventLabel:v,styles:e=>({root:{padding:0,borderRadius:"50%",width:"".concat((0,u.h)(32)," !important"),height:"".concat((0,u.h)(32)," !important"),backgroundColor:e.colors.primaryBase,img:{width:"20px",height:"20px"},[e.fn.smallerThan("md")]:{backgroundColor:"initial",width:"".concat((0,u.h)(24)," !important"),height:"".concat((0,u.h)(22)," !important")}}}),children:f?(0,o.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.tZ)("path",{d:"M9.75 9.625V14.375C9.75 14.7417 9.90833 15.0127 10.225 15.188C10.5417 15.3627 10.85 15.3417 11.15 15.125L14.875 12.75C15.1583 12.5833 15.3 12.3333 15.3 12C15.3 11.6667 15.1583 11.4167 14.875 11.25L11.15 8.875C10.85 8.65833 10.5417 8.63733 10.225 8.812C9.90833 8.98733 9.75 9.25833 9.75 9.625ZM12 21.5C10.6833 21.5 9.446 21.25 8.288 20.75C7.12933 20.25 6.125 19.575 5.275 18.725C4.425 17.875 3.75 16.8707 3.25 15.712C2.75 14.554 2.5 13.3167 2.5 12C2.5 10.6833 2.75 9.44567 3.25 8.287C3.75 7.129 4.425 6.125 5.275 5.275C6.125 4.425 7.12933 3.75 8.288 3.25C9.446 2.75 10.6833 2.5 12 2.5C13.3167 2.5 14.5543 2.75 15.713 3.25C16.871 3.75 17.875 4.425 18.725 5.275C19.575 6.125 20.25 7.129 20.75 8.287C21.25 9.44567 21.5 10.6833 21.5 12C21.5 13.3167 21.25 14.554 20.75 15.712C20.25 16.8707 19.575 17.875 18.725 18.725C17.875 19.575 16.871 20.25 15.713 20.75C14.5543 21.25 13.3167 21.5 12 21.5Z",fill:"#2D87F3"})}):(0,o.tZ)(b,{width:"24",height:"24",src:"/svg/player-play.svg"})}),"playing"===a&&(0,o.tZ)(h.B,{size:"md",type:"button",onClick:function(){c()},variant:"primary",styles:e=>({root:{padding:"0 !important",[e.fn.largerThan("md")]:{borderRadius:"50%",width:"".concat((0,u.h)(32)," !important"),height:"".concat((0,u.h)(32)," !important"),backgroundColor:e.colors.primaryBase,display:"flex",alignItems:"center",gap:(0,u.h)(4),margin:0,span:{display:"none"},"&:before, &:after":{content:'""',height:"15px",width:"4px",borderRadius:"4px",backgroundColor:e.fn.primaryColor(),marginTop:"1px"}},[e.fn.smallerThan("md")]:{width:"".concat((0,u.h)(24)," !important"),height:"".concat((0,u.h)(24)," !important"),backgroundImage:'url(\'data:image/svg+xml;charset=UTF-8,\')',backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundColor:"transparent"}}})})]})}let L={};function track(e,t){let a=L[e];if(a){var o;o={action:t,post_id:a.postId,duration:a.currentTime,total_duration:a.duration,voice_type:a.voiceType},"dataLayer"in window&&window.dataLayer.push({event:"audio",...o})}}function Player(e){let{url:t,setAudioPlayerState:a,articleId:o}=e,{state:{articlePlayingId:i}}=(0,n.useContext)(s.I),{playing:l,pause:r,duration:c}=(0,C.xm)({src:t,format:"mp3",autoplay:!0,onplay:()=>{a("playing"),track(o,"play")},onpause:()=>{a("paused"),track(o,"pause")},onend:()=>{a("ended"),track(o,"finished")}});return(0,n.useEffect)(()=>{let e="female",t=L[o];c>0&&(!t||t.voiceType!==e)&&(L[o]={postId:o,voiceType:e,duration:c,currentTime:0})},[o,c]),(0,n.useEffect)(()=>{l&&o!==i&&r()},[o,i,l,r]),null}var H=a(50176);let pad=e=>e<10?"0".concat(e):e.toString(),formatTime=e=>"".concat(pad(Math.floor(e/60)),":").concat(pad(Math.round(e%60))),S=(0,n.forwardRef)(function(e,t){let{percent:a,onClick:n}=e;return(0,o.tZ)(w,{ref:t,onClick:n,children:(0,o.tZ)(x,{style:{width:"".concat(a,"%")}})})});function AudioTrackProgress(e){let{articleId:t}=e,{percentComplete:a,position:i,seek:l,duration:r}=(0,C.E)(),c=(0,n.useRef)(null),s=(0,d.d)(),h=(0,n.useMemo)(()=>formatTime(r),[r]),u=(0,n.useMemo)(()=>Math.round(a*r/100),[a,r]),g=(0,n.useCallback)(e=>{let{pageX:a}=e;H.E.measure(()=>{if(c.current){let{x:e,width:o}=c.current.getBoundingClientRect(),n=(a-e)/o*r;l(n);let i=L[t];i&&(i.currentTime=Math.round(n),track(t,"forward"))}})},[r,l,t]);return(0,n.useEffect)(()=>{let e=L[t];e&&(e.currentTime=u)},[u,t]),(0,o.BX)(k,{children:[(0,o.BX)(B,{size:s?"xs":"p3",className:"mobile-navigation-label",children:[formatTime(i)," / ",h]}),!s&&(0,o.tZ)(S,{onClick:g,ref:c,percent:a})]})}function ArticleAudioPlayer(e){let{articleId:t="0",articleContent:a="",isPremium:h}=e,{formatMessage:u}=(0,l.Z)(),g=(0,d.d)(),{state:{isLoggedIn:m}}=(0,n.useContext)(s.I),[p,v]=(0,n.useState)("loading"),[f,b]=(0,n.useState)(""),[M,w]=(0,n.useState)(""),[x,k]=(0,n.useState)(0),B=["generating","loading"].includes(p);return((0,n.useEffect)(()=>{var e;let t=document.createElement("div");t.innerHTML=a;let o=(null===(e=t.textContent)||void 0===e?void 0:e.trim().replace(/\[.*\]/g,""))||"";o.length||console.debug("[ArticleAudioPlayer] hidden because of empty article content"),k(o.length)},[a]),(0,n.useEffect)(()=>{fetch("/api/read-article/".concat(t,"?t=").concat(Math.floor(Date.now()/30/60/1e3))).then(e=>e.json()).then(e=>{e.url?(b(e.url),v("idle")):v("error")})},[t]),0===x)?(0,o.tZ)(Z,{}):(0,o.tZ)(C.Vt,{children:(0,o.BX)(Z,{onClickCapture:e=>{h&&!m&&((0,r.p0)(window.location.href),e.stopPropagation())},children:[!B&&"error"!==p&&(0,o.tZ)(AudioPlayerControls,{articleId:Number(t),audioPlayerState:p,onClickPlay:()=>{w(f)}}),"error"===p&&(0,o.tZ)(i.T,{size:g?"xs":"p3",children:u({id:"player.error",defaultMessage:"Error reading article"})}),(0,o.BX)(y,{children:[B&&(0,o.tZ)(c.g,{}),M&&(0,o.tZ)(Player,{articleId:Number(t),setAudioPlayerState:v,url:M}),"idle"===p&&(0,o.tZ)(i.T,{style:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},size:g?"p4":"p3",className:"mobile-navigation-label",children:u({id:"player.readArticle",defaultMessage:"Read Article"})}),["playing","paused","ended"].includes(p)&&(0,o.tZ)(AudioTrackProgress,{articleId:Number(t)})]})]})})}},48309:function(e,t,a){a.r(t),a.d(t,{default:function(){return _}});var o=a(35944),n=a(67294),i=a(91344),l=a(23577),C=a(29828),r=a(47146),c=a(50794),d=a(25470),s=a(86896),h=a(50667),u=a(95386);function useSpacingSubotStickyBar(){(0,n.useEffect)(()=>(document.body.classList.add("hhg-has-sticky-bar"),()=>{document.body.classList.remove("hhg-has-sticky-bar")}),[])}var g=a(24612),m=a(68206),p=a(10981),v=a(74641),f=a(64523),Z=a(96768),b=a(10753),M=a(76248),y=a(80372),w=a(20868),x=a(99285),k=a(29017),B=a(79364),L=a(82729),H=a(15184),S=a(7259),A=a(72660);function _templateObject(){let e=(0,L._)(["\n position: absolute;\n top: 0;\n left: 0;\n height: 3px;\n background-color: ",";\n transition: width 150ms linear;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,L._)(["\n "," {\n display: none !important;\n }\n &[data-template='health-tool'] {\n justify-content: space-evenly;\n }\n .mobile-navigation-icon,\n .mobile-navigation-label {\n pointer-events: none;\n }\n a > * {\n pointer-events: none;\n }\n\n .new-post {\n .mobile-navigation-icon > span {\n background-color: ",";\n }\n }\n > div {\n flex: 0;\n }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,L._)(["\n /* m/S3 14-22 Semi */\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n /* identical to box height, or 157% */\n\n display: flex;\n flex-direction: column;\n gap: 12px;\n letter-spacing: -0.2px;\n\n /* Gray/Gray-800 */\n\n color: ",";\n\n /* Inside auto layout */\n\n flex: none;\n order: 1;\n flex-grow: 0;\n\n li {\n width: 100%;\n list-style: none;\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"]);return _templateObject2=function(){return e},e}let I=A.ZP.div.withConfig({componentId:"sc-878ee2a2-0"})(_templateObject(),H.t.colors.primaryBase),T=(0,A.ZP)(i.M).withConfig({componentId:"sc-878ee2a2-1"})(_templateObject1(),S.M.mbUp,H.t.colors.yellow900),P=A.ZP.ul.withConfig({componentId:"sc-878ee2a2-2"})(_templateObject2(),H.t.colors.gray800),_MobileBottomArticleNavigation=e=>{let{isBookmarked:t,onBookmarkClick:a,progress:C=0,turnOffComment:r,jumpingLink:c,turnOffArticleVoice:d,articleId:h,articleContent:x,isPremium:L}=e,{formatMessage:H}=(0,s.Z)(),{locale:S,router:{pathname:A}}=(0,u.h)(),{state:{zaloConfig:V,chatwootWebsiteToken:E}}=(0,n.useContext)(k.I),_=(0,b.O)(()=>R(!1)),N=(0,w.U)(),{totalComment:D,setIsCommentPopupOpen:z}=(0,B.WM)(e=>({totalComment:e.totalComment,setIsCommentPopupOpen:e.setIsCommentPopupOpen}),M.X),[O,R]=(0,n.useState)(!1);useSpacingSubotStickyBar();let{state:{currentDomain:X}}=(0,n.useContext)(k.I),j=(0,n.useMemo)(()=>!g.DY.includes(S),[S]),Y=(0,n.useMemo)(()=>D&&D>0?String(D):null,[D]),[F,U]=(0,n.useState)(!1),G=null==c?void 0:c.map(e=>{var t;return{content:e,target:e?null===(t=e.match(/href="([^"]*)/))||void 0===t?void 0:t[1]:""}}),K=(0,n.useMemo)(()=>null==G?void 0:G.findIndex(e=>{if(e.target)return window.location.href.includes(e.target)}),[G]),$=(0,n.useMemo)(()=>({voice:!d,jumpingLink:c&&c.length>0,togetherComment:!j,thirdPartyChat:(null==V?void 0:V.oaid)||E}),[d,c,j,null==V?void 0:V.oaid,E]),q=(0,n.useMemo)(()=>g.AM+(null==V?void 0:V.oaid),[null==V?void 0:V.oaid]),J=(0,n.useCallback)(()=>{O&&R(!1)},[O]);return(0,n.useEffect)(()=>(window.addEventListener("scroll",J,{passive:!0}),()=>{window.removeEventListener("scroll",J)})),(0,o.BX)(o.HY,{children:[(0,o.BX)(T,{isCollapsed:!1,children:[(0,o.tZ)(I,{id:"progress",style:{width:100*C+"%"}}),(0,o.tZ)("a",{href:"/categories","data-event-category":"Sticky Bottom","data-event-action":"Home Click","data-event-label":N,className:"pointer-event-child-none",children:(0,o.tZ)(i.M.Icon,{icon:(0,o.tZ)(l.Z,{isActive:"/categories"===A}),isActive:"/categories"===A,label:H({id:"mobileBar.home",defaultMessage:"Discover"})})}),$.voice?(0,o.tZ)(y.e,{articleId:h,articleContent:x,isPremium:L}):(0,o.tZ)("a",{href:X+"/health-tools","data-event-category":"Sticky Bottom","data-event-action":"Engage Click","data-event-label":N,className:"pointer-event-child-none",children:(0,o.tZ)(i.M.Icon,{icon:(0,o.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.tZ)("path",{d:"M10.6 15.35C10.95 15.7 11.4083 15.8667 11.975 15.85C12.5417 15.8333 12.95 15.6333 13.2 15.25L17.2 9.45C17.35 9.23333 17.3333 9.03767 17.15 8.863C16.9667 8.68767 16.7667 8.66667 16.55 8.8L10.75 12.8C10.3667 13.05 10.1583 13.45 10.125 14C10.0917 14.55 10.25 15 10.6 15.35ZM5.1 19.5C4.83333 19.5 4.58333 19.4373 4.35 19.312C4.11667 19.1873 3.925 19 3.775 18.75C3.39167 18.0833 3.08333 17.3583 2.85 16.575C2.61667 15.7917 2.5 14.9333 2.5 14C2.5 12.7 2.75 11.475 3.25 10.325C3.75 9.175 4.425 8.16667 5.275 7.3C6.125 6.43333 7.12933 5.75 8.288 5.25C9.446 4.75 10.6833 4.5 12 4.5C12.7667 4.5 13.4877 4.579 14.163 4.737C14.8377 4.89567 15.4917 5.13333 16.125 5.45C16.4083 5.6 16.571 5.79567 16.613 6.037C16.6543 6.279 16.575 6.50833 16.375 6.725C16.275 6.825 16.1377 6.88333 15.963 6.9C15.7877 6.91667 15.6333 6.9 15.5 6.85C14.95 6.56667 14.3873 6.35433 13.812 6.213C13.2373 6.071 12.6333 6 12 6C9.78333 6 7.896 6.779 6.338 8.337C4.77933 9.89567 4 11.7833 4 14C4 14.7 4.09567 15.3917 4.287 16.075C4.479 16.7583 4.75 17.4 5.1 18H18.9C19.2833 17.3667 19.5627 16.7083 19.738 16.025C19.9127 15.3417 20 14.6333 20 13.9C20 13.3167 19.9293 12.7333 19.788 12.15C19.646 11.5667 19.4333 11 19.15 10.45C19.0667 10.2833 19.0373 10.1207 19.062 9.962C19.0873 9.804 19.175 9.65833 19.325 9.525C19.525 9.35833 19.746 9.30833 19.988 9.375C20.2293 9.44167 20.4083 9.6 20.525 9.85C20.8417 10.5167 21.0793 11.175 21.238 11.825C21.396 12.475 21.4833 13.1583 21.5 13.875C21.5 14.775 21.396 15.6293 21.188 16.438C20.9793 17.246 20.6583 18.0333 20.225 18.8C20.0917 19.0167 19.9043 19.1873 19.663 19.312C19.421 19.4373 19.1667 19.5 18.9 19.5H5.1Z",fill:"#595959"})}),label:H({id:"mobileBar.healthTools",defaultMessage:"Health Screening"})})}),(null==$?void 0:$.thirdPartyChat)?(0,o.BX)(f.x,{sx:{position:"relative"},ref:_,children:[(0,o.tZ)(i.M.Icon,{icon:(null==V?void 0:V.oaid)&&E?O?(0,o.BX)("svg",{width:"29",height:"28",viewBox:"0 0 29 28",fill:"none",children:[(0,o.tZ)("rect",{x:"0.5",width:"28",height:"28",rx:"14",fill:"#2D87F3"}),(0,o.tZ)("path",{d:"M10.4918 8.743C10.3426 8.74304 10.1968 8.78758 10.0731 8.87091C9.94931 8.95425 9.85322 9.0726 9.79708 9.21083C9.74093 9.34906 9.72729 9.5009 9.75789 9.64693C9.7885 9.79296 9.86195 9.92654 9.96887 10.0306L13.9386 14.0003L9.96887 17.9701C9.89689 18.0392 9.83943 18.1219 9.79984 18.2135C9.76025 18.3051 9.73934 18.4037 9.73832 18.5035C9.7373 18.6033 9.75621 18.7022 9.79393 18.7946C9.83164 18.887 9.88741 18.9709 9.95797 19.0415C10.0285 19.1121 10.1125 19.1678 10.2048 19.2055C10.2972 19.2433 10.3962 19.2622 10.496 19.2612C10.5958 19.2601 10.6943 19.2392 10.7859 19.1996C10.8775 19.16 10.9603 19.1026 11.0294 19.0306L14.9991 15.0609L18.9689 19.0306C19.038 19.1026 19.1208 19.16 19.2124 19.1996C19.304 19.2392 19.4025 19.2601 19.5023 19.2612C19.6021 19.2622 19.7011 19.2433 19.7935 19.2056C19.8858 19.1678 19.9698 19.1121 20.0403 19.0415C20.1109 18.9709 20.1667 18.887 20.2044 18.7946C20.2421 18.7022 20.261 18.6033 20.26 18.5035C20.259 18.4037 20.238 18.3051 20.1985 18.2135C20.1589 18.1219 20.1014 18.0392 20.0294 17.9701L16.0597 14.0003L20.0294 10.0306C20.1378 9.92525 20.2118 9.78962 20.2418 9.64148C20.2718 9.49334 20.2563 9.3396 20.1974 9.20042C20.1385 9.06123 20.0389 8.94308 19.9117 8.86146C19.7845 8.77984 19.6356 8.73855 19.4845 8.743C19.2896 8.74881 19.1047 8.83024 18.9689 8.97005L14.9991 12.9398L11.0294 8.97005C10.9595 8.89821 10.8759 8.8411 10.7836 8.8021C10.6913 8.7631 10.5921 8.74301 10.4918 8.743Z",fill:"white"})]}):(0,o.BX)("svg",{width:"29",height:"28",viewBox:"0 0 29 28",fill:"none",children:[(0,o.tZ)("rect",{x:"0.5",width:"28",height:"28",rx:"14",fill:"#2D87F3"}),(0,o.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.06632 15.6355C8.19469 16.1682 8.37762 16.6884 8.61512 17.1961L7.64346 20.5145C7.56527 20.7715 7.62161 20.9954 7.81249 21.1862C8.00335 21.3771 8.22727 21.4334 8.48424 21.3553L11.8026 20.3836C12.3103 20.6211 12.8305 20.804 13.3633 20.9324C13.896 21.0608 14.4412 21.125 14.9987 21.125C15.9844 21.125 16.9106 20.9379 17.7775 20.5637C18.6444 20.1896 19.3984 19.6818 20.0397 19.0403C20.6809 18.3989 21.1886 17.6447 21.5626 16.7775C21.9367 15.9104 22.1237 14.9842 22.1237 13.9987C22.1237 13.0133 21.9366 12.0872 21.5625 11.2205C21.1883 10.3538 20.6805 9.59983 20.0391 8.95869C19.3977 8.31756 18.6434 7.81 17.7763 7.436C16.9092 7.062 15.9829 6.875 14.9975 6.875C14.012 6.875 13.086 7.06203 12.2192 7.43609C11.3525 7.81016 10.5986 8.31781 9.95745 8.95906C9.31632 9.60031 8.80876 10.3544 8.43476 11.2213C8.06076 12.0881 7.87376 13.0144 7.87376 14C7.87376 14.5575 7.93795 15.1027 8.06632 15.6355ZM12.7566 14.6078C12.6273 14.7371 12.4708 14.8018 12.2872 14.8018C12.1035 14.8018 11.947 14.7371 11.8177 14.6078C11.6884 14.4784 11.6237 14.322 11.6237 14.1383C11.6237 13.9547 11.6884 13.7982 11.8177 13.6688C11.947 13.5395 12.1035 13.4749 12.2872 13.4749C12.4708 13.4749 12.6273 13.5395 12.7566 13.6688C12.886 13.7982 12.9506 13.9547 12.9506 14.1383C12.9506 14.322 12.886 14.4784 12.7566 14.6078ZM15.7566 14.6078C15.6273 14.7371 15.4708 14.8018 15.2872 14.8018C15.1035 14.8018 14.947 14.7371 14.8177 14.6078C14.6884 14.4784 14.6237 14.322 14.6237 14.1383C14.6237 13.9547 14.6884 13.7982 14.8177 13.6688C14.947 13.5395 15.1035 13.4749 15.2872 13.4749C15.4708 13.4749 15.6273 13.5395 15.7566 13.6688C15.886 13.7982 15.9506 13.9547 15.9506 14.1383C15.9506 14.322 15.886 14.4784 15.7566 14.6078ZM18.7566 14.6078C18.6273 14.7371 18.4708 14.8018 18.2872 14.8018C18.1035 14.8018 17.947 14.7371 17.8177 14.6078C17.6884 14.4784 17.6237 14.322 17.6237 14.1383C17.6237 13.9547 17.6884 13.7982 17.8177 13.6688C17.947 13.5395 18.1035 13.4749 18.2872 13.4749C18.4708 13.4749 18.6273 13.5395 18.7566 13.6688C18.886 13.7982 18.9506 13.9547 18.9506 14.1383C18.9506 14.322 18.886 14.4784 18.7566 14.6078Z",fill:"white"})]}):(null==V?void 0:V.oaid)?(0,o.tZ)("img",{alt:"zalo chat",loading:"lazy",className:"chat-icon zalo-chat",src:p.C.getAssetPath("zalo-chat-logo.svg")}):E?(0,o.tZ)("img",{loading:"lazy",alt:"chatwoot",className:"chat-icon chatwood-icon",src:p.C.getAssetPath("chat-wood.svg")}):(0,o.tZ)(o.HY,{}),onClick:()=>{var e,t;return(null==V?void 0:V.oaid)&&E?R(!O):E?null===(e=window)||void 0===e?void 0:e.$chatwoot.toggle("open"):(null==V?void 0:V.oaid)?null===(t=window)||void 0===t?void 0:t.open(q):null},"data-event-category":"Sticky Bottom","data-event-action":"Ask Doctor Click","data-event-label":N,className:"pointer-event-child-none",label:H({id:"mobileBar.chat",defaultMessage:"Chat"})}),(0,o.tZ)(f.x,{sx:{position:"absolute",bottom:"calc(100% + 6px)",left:"50%",opacity:Number(O),transform:"translate(-50%,0) scale(".concat(Number(O),")"),width:(0,Z.h)(200),height:(0,Z.h)(90),overflow:"hidden",pointerEvents:O?"inherit":"none",transformOrigin:"50% 100%",transition:"transform 0.2s, opacity 0.2s","&:before":{content:'""',position:"absolute",top:(0,Z.h)(4),left:(0,Z.h)(4),right:(0,Z.h)(4),height:(0,Z.h)(200),borderRadius:"50%",background:"rgba(255,255,255,0.6)",backdropFilter:"blur(8px)",zIndex:1,boxShadow:"0px 4px 8px 0px #c9c8c8"}},children:(0,o.BX)(f.x,{sx:{position:"relative",zIndex:2,display:"flex",alignItems:"center",justifyContent:"center",gap:(0,Z.h)(18),height:"100%",paddingTop:(0,Z.h)(10),img:{width:(0,Z.h)(48)}},children:[(null==V?void 0:V.oaid)&&(0,o.tZ)(f.x,{sx:{position:"relative"},onClick:()=>{window.open(q),R(!1)},children:(0,o.tZ)("img",{alt:"zalo chat",loading:"lazy",className:"chat-icon zalo-chat",src:p.C.getAssetPath("zalo-chat-logo.svg")})}),E&&(0,o.tZ)(f.x,{onClick:()=>{var e;R(!1),null===(e=window)||void 0===e||e.$chatwoot.toggle("open")},children:(0,o.tZ)("img",{loading:"lazy",alt:"chatwoot",className:"chat-icon chatwood-icon",src:p.C.getAssetPath("chat-wood.svg")})})]})})]}):$.togetherComment&&(r||Y?(0,o.tZ)(i.M.Icon,{style:{cursor:r?"default":"pointer"},hasBadge:!r&&void 0!==D,disabled:r,badgeAmount:String(Y),icon:(0,o.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.tZ)("path",{d:"M12.5 21.125L12.35 18.5H11.5C9.26667 18.5 7.375 17.725 5.825 16.175C4.275 14.625 3.5 12.7333 3.5 10.5C3.5 8.26667 4.275 6.375 5.825 4.825C7.375 3.275 9.26667 2.5 11.5 2.5C12.6167 2.5 13.6583 2.70833 14.625 3.125C15.5917 3.54167 16.4377 4.11267 17.163 4.838C17.8877 5.56267 18.4583 6.40833 18.875 7.375C19.2917 8.34167 19.5 9.38333 19.5 10.5C19.5 12.7833 18.8373 14.854 17.512 16.712C16.1873 18.5707 14.5167 20.0417 12.5 21.125ZM11.5 15.775C11.75 15.775 11.9583 15.6873 12.125 15.512C12.2917 15.3373 12.375 15.1333 12.375 14.9C12.375 14.65 12.2917 14.4373 12.125 14.262C11.9583 14.0873 11.75 14 11.5 14C11.25 14 11.0417 14.0873 10.875 14.262C10.7083 14.4373 10.625 14.65 10.625 14.9C10.625 15.1333 10.7083 15.3373 10.875 15.512C11.0417 15.6873 11.25 15.775 11.5 15.775ZM11.525 12.725C11.6583 12.725 11.7877 12.6707 11.913 12.562C12.0377 12.454 12.125 12.3083 12.175 12.125C12.2083 11.8917 12.3 11.675 12.45 11.475C12.6 11.275 12.8667 10.9833 13.25 10.6C13.55 10.3167 13.7917 10.0127 13.975 9.688C14.1583 9.36267 14.25 9 14.25 8.6C14.25 7.81667 13.9793 7.21667 13.438 6.8C12.896 6.38333 12.2583 6.175 11.525 6.175C10.975 6.175 10.496 6.304 10.088 6.562C9.67933 6.82067 9.35 7.14167 9.1 7.525C9 7.675 8.97933 7.829 9.038 7.987C9.096 8.14567 9.21667 8.25833 9.4 8.325C9.53333 8.375 9.67067 8.375 9.812 8.325C9.954 8.275 10.075 8.175 10.175 8.025C10.3083 7.825 10.4833 7.654 10.7 7.512C10.9167 7.37067 11.1917 7.3 11.525 7.3C12.025 7.3 12.4 7.44167 12.65 7.725C12.9 8.00833 13.025 8.31667 13.025 8.65C13.025 8.95 12.9417 9.21267 12.775 9.438C12.6083 9.66267 12.3917 9.90833 12.125 10.175C11.6917 10.5417 11.396 10.8583 11.238 11.125C11.0793 11.3917 10.9833 11.725 10.95 12.125C10.9333 12.275 10.9793 12.4123 11.088 12.537C11.196 12.6623 11.3417 12.725 11.525 12.725ZM14 17V18.35C15.1833 17.35 16.1457 16.1793 16.887 14.838C17.629 13.496 18 12.05 18 10.5C18 8.68333 17.371 7.14567 16.113 5.887C14.8543 4.629 13.3167 4 11.5 4C9.68333 4 8.146 4.629 6.888 5.887C5.62933 7.14567 5 8.68333 5 10.5C5 12.3167 5.62933 13.8543 6.888 15.113C8.146 16.371 9.68333 17 11.5 17H14Z",fill:"#595959"})}),onClick:()=>{r||z(!0)},"data-event-category":"Sticky Bottom","data-event-action":"Ask Doctor Click","data-event-label":N,className:"pointer-event-child-none",label:H({id:"mobileBar.askDoctor",defaultMessage:"Ask Doctor"})}):(0,o.tZ)(i.M.Icon,{disabled:r,icon:(0,o.tZ)(v.I,{offset:0,processing:!0,styles:{common:{top:6,right:-2}},children:(0,o.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.tZ)("path",{d:"M12.5 21.125L12.35 18.5H11.5C9.26667 18.5 7.375 17.725 5.825 16.175C4.275 14.625 3.5 12.7333 3.5 10.5C3.5 8.26667 4.275 6.375 5.825 4.825C7.375 3.275 9.26667 2.5 11.5 2.5C12.6167 2.5 13.6583 2.70833 14.625 3.125C15.5917 3.54167 16.4377 4.11267 17.163 4.838C17.8877 5.56267 18.4583 6.40833 18.875 7.375C19.2917 8.34167 19.5 9.38333 19.5 10.5C19.5 12.7833 18.8373 14.854 17.512 16.712C16.1873 18.5707 14.5167 20.0417 12.5 21.125ZM11.5 15.775C11.75 15.775 11.9583 15.6873 12.125 15.512C12.2917 15.3373 12.375 15.1333 12.375 14.9C12.375 14.65 12.2917 14.4373 12.125 14.262C11.9583 14.0873 11.75 14 11.5 14C11.25 14 11.0417 14.0873 10.875 14.262C10.7083 14.4373 10.625 14.65 10.625 14.9C10.625 15.1333 10.7083 15.3373 10.875 15.512C11.0417 15.6873 11.25 15.775 11.5 15.775ZM11.525 12.725C11.6583 12.725 11.7877 12.6707 11.913 12.562C12.0377 12.454 12.125 12.3083 12.175 12.125C12.2083 11.8917 12.3 11.675 12.45 11.475C12.6 11.275 12.8667 10.9833 13.25 10.6C13.55 10.3167 13.7917 10.0127 13.975 9.688C14.1583 9.36267 14.25 9 14.25 8.6C14.25 7.81667 13.9793 7.21667 13.438 6.8C12.896 6.38333 12.2583 6.175 11.525 6.175C10.975 6.175 10.496 6.304 10.088 6.562C9.67933 6.82067 9.35 7.14167 9.1 7.525C9 7.675 8.97933 7.829 9.038 7.987C9.096 8.14567 9.21667 8.25833 9.4 8.325C9.53333 8.375 9.67067 8.375 9.812 8.325C9.954 8.275 10.075 8.175 10.175 8.025C10.3083 7.825 10.4833 7.654 10.7 7.512C10.9167 7.37067 11.1917 7.3 11.525 7.3C12.025 7.3 12.4 7.44167 12.65 7.725C12.9 8.00833 13.025 8.31667 13.025 8.65C13.025 8.95 12.9417 9.21267 12.775 9.438C12.6083 9.66267 12.3917 9.90833 12.125 10.175C11.6917 10.5417 11.396 10.8583 11.238 11.125C11.0793 11.3917 10.9833 11.725 10.95 12.125C10.9333 12.275 10.9793 12.4123 11.088 12.537C11.196 12.6623 11.3417 12.725 11.525 12.725ZM14 17V18.35C15.1833 17.35 16.1457 16.1793 16.887 14.838C17.629 13.496 18 12.05 18 10.5C18 8.68333 17.371 7.14567 16.113 5.887C14.8543 4.629 13.3167 4 11.5 4C9.68333 4 8.146 4.629 6.888 5.887C5.62933 7.14567 5 8.68333 5 10.5C5 12.3167 5.62933 13.8543 6.888 15.113C8.146 16.371 9.68333 17 11.5 17H14Z",fill:"#595959"})})}),onClick:()=>{r||z(!0)},"data-event-category":"Sticky Bottom","data-event-action":"Ask Doctor Click","data-event-label":N,className:"pointer-event-child-none",label:H({id:"mobileBar.askDoctor",defaultMessage:"Ask Doctor"})})),(0,o.tZ)(i.M.Icon,{onClick:a,icon:t?(0,o.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.tZ)("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#2D87F3"})}):(0,o.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.tZ)("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})}),isActive:t,"data-event-category":"Sticky Bottom","data-event-action":"Bookmark Click","data-event-label":N,className:"pointer-event-child-none",label:H({id:"mobileBar.save",defaultMessage:"Save"})}),$.voice&&(0,o.tZ)("a",{href:"/health-tools","data-event-category":"Sticky Bottom","data-event-action":"Engage Click","data-event-label":N,className:"pointer-event-child-none",children:(0,o.tZ)(i.M.Icon,{icon:(0,o.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.tZ)("path",{d:"M10.6 15.35C10.95 15.7 11.4083 15.8667 11.975 15.85C12.5417 15.8333 12.95 15.6333 13.2 15.25L17.2 9.45C17.35 9.23333 17.3333 9.03767 17.15 8.863C16.9667 8.68767 16.7667 8.66667 16.55 8.8L10.75 12.8C10.3667 13.05 10.1583 13.45 10.125 14C10.0917 14.55 10.25 15 10.6 15.35ZM5.1 19.5C4.83333 19.5 4.58333 19.4373 4.35 19.312C4.11667 19.1873 3.925 19 3.775 18.75C3.39167 18.0833 3.08333 17.3583 2.85 16.575C2.61667 15.7917 2.5 14.9333 2.5 14C2.5 12.7 2.75 11.475 3.25 10.325C3.75 9.175 4.425 8.16667 5.275 7.3C6.125 6.43333 7.12933 5.75 8.288 5.25C9.446 4.75 10.6833 4.5 12 4.5C12.7667 4.5 13.4877 4.579 14.163 4.737C14.8377 4.89567 15.4917 5.13333 16.125 5.45C16.4083 5.6 16.571 5.79567 16.613 6.037C16.6543 6.279 16.575 6.50833 16.375 6.725C16.275 6.825 16.1377 6.88333 15.963 6.9C15.7877 6.91667 15.6333 6.9 15.5 6.85C14.95 6.56667 14.3873 6.35433 13.812 6.213C13.2373 6.071 12.6333 6 12 6C9.78333 6 7.896 6.779 6.338 8.337C4.77933 9.89567 4 11.7833 4 14C4 14.7 4.09567 15.3917 4.287 16.075C4.479 16.7583 4.75 17.4 5.1 18H18.9C19.2833 17.3667 19.5627 16.7083 19.738 16.025C19.9127 15.3417 20 14.6333 20 13.9C20 13.3167 19.9293 12.7333 19.788 12.15C19.646 11.5667 19.4333 11 19.15 10.45C19.0667 10.2833 19.0373 10.1207 19.062 9.962C19.0873 9.804 19.175 9.65833 19.325 9.525C19.525 9.35833 19.746 9.30833 19.988 9.375C20.2293 9.44167 20.4083 9.6 20.525 9.85C20.8417 10.5167 21.0793 11.175 21.238 11.825C21.396 12.475 21.4833 13.1583 21.5 13.875C21.5 14.775 21.396 15.6293 21.188 16.438C20.9793 17.246 20.6583 18.0333 20.225 18.8C20.0917 19.0167 19.9043 19.1873 19.663 19.312C19.421 19.4373 19.1667 19.5 18.9 19.5H5.1Z",fill:"#595959"})}),label:H({id:"mobileBar.healthTools",defaultMessage:"Health Screening"})})}),$.jumpingLink&&(0,o.tZ)(i.M.Icon,{onClick:()=>U(!0),icon:(0,o.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.tZ)("path",{d:"M5.3 20.5C4.8 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.2 3.5 18.7V5.3C3.5 4.8 3.675 4.375 4.025 4.025C4.375 3.675 4.8 3.5 5.3 3.5H18.7C19.2 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.8 20.5 5.3V18.7C20.5 19.2 20.325 19.625 19.975 19.975C19.625 20.325 19.2 20.5 18.7 20.5H5.3ZM5.3 19H18.7C18.7667 19 18.8333 18.9667 18.9 18.9C18.9667 18.8333 19 18.7667 19 18.7V5.3C19 5.23333 18.9667 5.16667 18.9 5.1C18.8333 5.03333 18.7667 5 18.7 5H5.3C5.23333 5 5.16667 5.03333 5.1 5.1C5.03333 5.16667 5 5.23333 5 5.3V18.7C5 18.7667 5.03333 18.8333 5.1 18.9C5.16667 18.9667 5.23333 19 5.3 19ZM8.05 16.775C8.3 16.775 8.51267 16.6873 8.688 16.512C8.86267 16.3373 8.95 16.125 8.95 15.875C8.95 15.625 8.86267 15.4167 8.688 15.25C8.51267 15.0833 8.3 15 8.05 15C7.8 15 7.59167 15.0833 7.425 15.25C7.25833 15.4167 7.175 15.625 7.175 15.875C7.175 16.125 7.25833 16.3373 7.425 16.512C7.59167 16.6873 7.8 16.775 8.05 16.775ZM8.05 12.875C8.3 12.875 8.51267 12.7917 8.688 12.625C8.86267 12.4583 8.95 12.25 8.95 12C8.95 11.75 8.86267 11.5417 8.688 11.375C8.51267 11.2083 8.3 11.125 8.05 11.125C7.8 11.125 7.59167 11.2083 7.425 11.375C7.25833 11.5417 7.175 11.75 7.175 12C7.175 12.25 7.25833 12.4583 7.425 12.625C7.59167 12.7917 7.8 12.875 8.05 12.875ZM8.05 9C8.3 9 8.51267 8.91667 8.688 8.75C8.86267 8.58333 8.95 8.375 8.95 8.125C8.95 7.875 8.86267 7.66233 8.688 7.487C8.51267 7.31233 8.3 7.225 8.05 7.225C7.8 7.225 7.59167 7.31233 7.425 7.487C7.25833 7.66233 7.175 7.875 7.175 8.125C7.175 8.375 7.25833 8.58333 7.425 8.75C7.59167 8.91667 7.8 9 8.05 9ZM11.85 16.625H16.05C16.25 16.625 16.425 16.5543 16.575 16.413C16.725 16.271 16.8 16.0917 16.8 15.875C16.8 15.675 16.725 15.5 16.575 15.35C16.425 15.2 16.25 15.125 16.05 15.125H11.85C11.6333 15.125 11.454 15.2 11.312 15.35C11.1707 15.5 11.1 15.675 11.1 15.875C11.1 16.0917 11.1707 16.271 11.312 16.413C11.454 16.5543 11.6333 16.625 11.85 16.625ZM11.85 12.75H16.05C16.25 12.75 16.425 12.679 16.575 12.537C16.725 12.3957 16.8 12.2167 16.8 12C16.8 11.7833 16.725 11.604 16.575 11.462C16.425 11.3207 16.25 11.25 16.05 11.25H11.85C11.6333 11.25 11.454 11.3207 11.312 11.462C11.1707 11.604 11.1 11.7833 11.1 12C11.1 12.2167 11.1707 12.3957 11.312 12.537C11.454 12.679 11.6333 12.75 11.85 12.75ZM11.85 8.875H16.05C16.25 8.875 16.425 8.8 16.575 8.65C16.725 8.5 16.8 8.325 16.8 8.125C16.8 7.90833 16.725 7.72933 16.575 7.588C16.425 7.446 16.25 7.375 16.05 7.375H11.85C11.6333 7.375 11.454 7.446 11.312 7.588C11.1707 7.72933 11.1 7.90833 11.1 8.125C11.1 8.325 11.1707 8.5 11.312 8.65C11.454 8.8 11.6333 8.875 11.85 8.875ZM5 19V5V19Z",fill:"#595959"})}),"data-event-category":"Sticky Bottom","data-event-action":"See More Click","data-event-label":N,className:"pointer-event-child-none",label:H({id:"mobileBar.tableOfContent",defaultMessage:"Table Of Content"})})]}),$.jumpingLink&&(0,o.tZ)(m.D,{title:H({id:"mobileBar.tableOfContent",defaultMessage:"Table of Content"}),open:F,onClose:()=>U(!1),placement:"bottom",children:(0,o.tZ)(P,{children:null==G?void 0:G.map((e,t)=>(0,o.BX)("li",{children:[K===t?(0,o.tZ)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,o.tZ)("path",{d:"M13.1796 8.50948C13.6068 8.69692 13.6068 9.30324 13.1796 9.49143L5.06066 13.0641C4.90927 13.1305 4.73359 13.0975 4.61711 12.981C4.50404 12.8679 4.46913 12.6987 4.5287 12.5503L5.94851 9.00046L4.5287 5.45056C4.46913 5.30221 4.50404 5.13298 4.61711 5.01992C4.73359 4.90343 4.90927 4.87042 5.06028 4.93644L13.1796 8.50948Z",fill:"#2D87F3"})}):(0,o.tZ)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,o.tZ)("circle",{cx:"9",cy:"9",r:"1.5",fill:"#8C8C8C"})}),(0,o.tZ)("span",{onClick:()=>U(!1),dangerouslySetInnerHTML:{__html:e.content.replace("{let{locale:e,pathname:t}=(0,u.h)(),{formatMessage:a}=(0,s.Z)();useSpacingSubotStickyBar();let m=(0,n.useMemo)(()=>(0,h.UC)(e),[e]),p=(0,n.useMemo)(()=>g.DY.includes(e),[e]),v=(0,n.useMemo)(()=>g.kJ.includes(e),[e]),f=(0,n.useMemo)(()=>t.split("/").includes("health-tools"),[t]);return(0,o.BX)(T,{isCollapsed:!1,children:[(0,o.tZ)("a",{href:m+"/categories",children:(0,o.tZ)(i.M.Icon,{icon:(0,o.tZ)(l.Z,{isActive:"/categories"===t}),label:a({id:"mobileBar.home",defaultMessage:"Home"}),isActive:"/categories"===t,"data-event-category":"Sticky Bottom","data-event-action":"Home Click","data-event-label":m+"/categories"})}),(0,o.tZ)("a",{href:m+"/health-tools",children:(0,o.tZ)(i.M.Icon,{icon:(0,o.tZ)(C.Z,{isActive:f}),label:a({id:"mobileBar.healthTools",defaultMessage:"Health Screening"}),isActive:f,"data-event-category":"Sticky Bottom","data-event-action":"Engage Click","data-event-label":m+"/health-tools"})}),v&&(0,o.tZ)("a",{href:m+"/care",children:(0,o.tZ)(i.M.Icon,{icon:(0,o.tZ)(r.Z,{}),label:a({id:"mobileBar.care",defaultMessage:"Care"}),"data-event-category":"Sticky Bottom","data-event-action":"Care Click","data-event-label":m+"/care"})}),p&&(0,o.tZ)("a",{href:m+"/community",children:(0,o.tZ)(i.M.Icon,{icon:(0,o.tZ)(c.Z,{size:24}),label:a({id:"mobileBar.community",defaultMessage:"Community"}),"data-event-category":"Sticky Bottom","data-event-action":"Together Click","data-event-label":m+"/community"})}),!v&&!p&&(0,o.tZ)("a",{href:"".concat(g.MO).concat(g.YP.MY_HEALTH_TRACKER),children:(0,o.tZ)(i.M.Icon,{icon:(0,o.tZ)(d.Z,{}),label:a({id:"mobileBar.myHealth",defaultMessage:"My Health"}),"data-event-category":"Sticky Bottom","data-event-action":"User Profile Click","data-event-label":"".concat(g.MO).concat(g.YP.MY_HEALTH_TRACKER)})})]})});E.Article=e=>{let{isMobile:t}=(0,x.eI)();return"boolean"!=typeof t||t?(0,o.tZ)(_MobileBottomArticleNavigation,{...e}):null},E.HealthTool=e=>{let{isResult:t=!1,topicLink:a,onReadMoreClick:l}=e,{locale:r="vi-VN",pathname:d}=(0,V.useRouter)(),{formatMessage:h}=(0,s.Z)(),{state:{currentDomain:u}}=(0,n.useContext)(k.I),m=(0,w.U)();useSpacingSubotStickyBar();let p=(0,n.useMemo)(()=>g.DY.includes(r),[r]);return(0,o.BX)(T,{isCollapsed:!1,children:[(0,o.tZ)("a",{href:u,children:(0,o.tZ)(i.M.Icon,{icon:(0,o.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.tZ)("path",{d:"M8.8 10.6248C8.45 10.6248 8.18733 10.4665 8.012 10.1498C7.83733 9.83314 7.84167 9.5248 8.025 9.2248L11.225 3.9998C11.4083 3.6998 11.6667 3.5498 12 3.5498C12.3333 3.5498 12.5917 3.6998 12.775 3.9998L15.975 9.2248C16.1583 9.5248 16.1627 9.83314 15.988 10.1498C15.8127 10.4665 15.55 10.6248 15.2 10.6248L8.8 10.6248ZM17.5 21.6248C16.35 21.6248 15.375 21.2248 14.575 20.4248C13.775 19.6248 13.375 18.6498 13.375 17.4998C13.375 16.3498 13.775 15.3748 14.575 14.5748C15.375 13.7748 16.35 13.3748 17.5 13.3748C18.65 13.3748 19.625 13.7748 20.425 14.5748C21.225 15.3748 21.625 16.3498 21.625 17.4998C21.625 18.6498 21.225 19.6248 20.425 20.4248C19.625 21.2248 18.65 21.6248 17.5 21.6248ZM4.275 21.1248C4.025 21.1248 3.81267 21.0375 3.638 20.8628C3.46267 20.6875 3.375 20.4665 3.375 20.1998L3.375 14.7748C3.375 14.5248 3.46267 14.3121 3.638 14.1368C3.81267 13.9621 4.03333 13.8748 4.3 13.8748H9.725C9.975 13.8748 10.1877 13.9621 10.363 14.1368C10.5377 14.3121 10.625 14.5331 10.625 14.7998V20.2248C10.625 20.4748 10.5377 20.6875 10.363 20.8628C10.1877 21.0375 9.96667 21.1248 9.7 21.1248H4.275ZM17.5 20.1248C18.2333 20.1248 18.8543 19.8708 19.363 19.3628C19.871 18.8541 20.125 18.2331 20.125 17.4998C20.125 16.7665 19.871 16.1455 19.363 15.6368C18.8543 15.1288 18.2333 14.8748 17.5 14.8748C16.7667 14.8748 16.146 15.1288 15.638 15.6368C15.1293 16.1455 14.875 16.7665 14.875 17.4998C14.875 18.2331 15.1293 18.8541 15.638 19.3628C16.146 19.8708 16.7667 20.1248 17.5 20.1248ZM4.875 19.6248H9.125V15.3748H4.875V19.6248ZM9.85 9.1248H14.15L12 5.6498L9.85 9.1248Z",fill:"#595959"})}),label:h({id:"mobileBar.home",defaultMessage:"Home"}),isActive:"/"===d,"data-event-category":"Sticky Bottom","data-event-action":"Home Click","data-event-label":u+"/categories"})}),(0,o.tZ)("a",{href:u+"/health-tools",children:(0,o.tZ)(i.M.Icon,{icon:(0,o.tZ)(C.Z,{isActive:!0}),label:h({id:"mobileBar.healthTools",defaultMessage:"Health Tools"}),isActive:!0,"data-event-category":"Sticky Bottom","data-event-action":"Engage Click","data-event-label":u+"/health-tools"})}),p&&(0,o.tZ)("a",{href:t?u+a:u+"/community",children:(0,o.tZ)(i.M.Icon,{icon:t?(0,o.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.tZ)("path",{d:"M2.8 21.175L7.175 8.9L15.075 16.8L2.8 21.175ZM5.275 18.7L12.325 16.2L7.775 11.65L5.275 18.7ZM13.975 12.7L13.15 11.875L18.625 6.375C19.125 5.875 19.7333 5.625 20.45 5.625C21.1667 5.625 21.775 5.875 22.275 6.375L22.75 6.875L21.925 7.7L21.45 7.225C21.1833 6.94167 20.854 6.8 20.462 6.8C20.0707 6.8 19.7417 6.94167 19.475 7.225L13.975 12.7ZM10.325 9.05L9.5 8.2L10.1 7.6C10.3833 7.31667 10.525 6.96233 10.525 6.537C10.525 6.11233 10.3833 5.75 10.1 5.45L9.45 4.825L10.3 3.975L10.925 4.6C11.4583 5.13333 11.725 5.775 11.725 6.525C11.725 7.275 11.4583 7.91667 10.925 8.45L10.325 9.05ZM12.15 10.875L11.325 10.05L14.8 6.55C15.0667 6.28333 15.2 5.954 15.2 5.562C15.2 5.17067 15.0667 4.84167 14.8 4.575L13.325 3.1L14.15 2.25L15.65 3.725C16.15 4.24167 16.4 4.854 16.4 5.562C16.4 6.27067 16.15 6.88333 15.65 7.4L12.15 10.875ZM15.8 14.525L14.975 13.7L16.175 12.5C16.7083 11.95 17.3583 11.675 18.125 11.675C18.8917 11.675 19.5417 11.95 20.075 12.5L21.275 13.7L20.425 14.525L19.225 13.325C18.925 13.025 18.5543 12.875 18.113 12.875C17.671 12.875 17.3 13.025 17 13.325L15.8 14.525Z",fill:"#595959"})}):(0,o.tZ)(c.Z,{}),label:h({id:"mobileBar.community",defaultMessage:"Community"}),"data-event-category":"Sticky Bottom","data-event-action":"Together Click","data-event-label":t?u+a:u+"/community"})}),l&&(0,o.tZ)(i.M.Icon,{onClick:l,icon:(0,o.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.tZ)("path",{d:"M5.3 20.5C4.8 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.2 3.5 18.7V5.3C3.5 4.8 3.675 4.375 4.025 4.025C4.375 3.675 4.8 3.5 5.3 3.5H18.7C19.2 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.8 20.5 5.3V18.7C20.5 19.2 20.325 19.625 19.975 19.975C19.625 20.325 19.2 20.5 18.7 20.5H5.3ZM5.3 19H18.7C18.7667 19 18.8333 18.9667 18.9 18.9C18.9667 18.8333 19 18.7667 19 18.7V5.3C19 5.23333 18.9667 5.16667 18.9 5.1C18.8333 5.03333 18.7667 5 18.7 5H5.3C5.23333 5 5.16667 5.03333 5.1 5.1C5.03333 5.16667 5 5.23333 5 5.3V18.7C5 18.7667 5.03333 18.8333 5.1 18.9C5.16667 18.9667 5.23333 19 5.3 19ZM8.05 16.775C8.3 16.775 8.51267 16.6873 8.688 16.512C8.86267 16.3373 8.95 16.125 8.95 15.875C8.95 15.625 8.86267 15.4167 8.688 15.25C8.51267 15.0833 8.3 15 8.05 15C7.8 15 7.59167 15.0833 7.425 15.25C7.25833 15.4167 7.175 15.625 7.175 15.875C7.175 16.125 7.25833 16.3373 7.425 16.512C7.59167 16.6873 7.8 16.775 8.05 16.775ZM8.05 12.875C8.3 12.875 8.51267 12.7917 8.688 12.625C8.86267 12.4583 8.95 12.25 8.95 12C8.95 11.75 8.86267 11.5417 8.688 11.375C8.51267 11.2083 8.3 11.125 8.05 11.125C7.8 11.125 7.59167 11.2083 7.425 11.375C7.25833 11.5417 7.175 11.75 7.175 12C7.175 12.25 7.25833 12.4583 7.425 12.625C7.59167 12.7917 7.8 12.875 8.05 12.875ZM8.05 9C8.3 9 8.51267 8.91667 8.688 8.75C8.86267 8.58333 8.95 8.375 8.95 8.125C8.95 7.875 8.86267 7.66233 8.688 7.487C8.51267 7.31233 8.3 7.225 8.05 7.225C7.8 7.225 7.59167 7.31233 7.425 7.487C7.25833 7.66233 7.175 7.875 7.175 8.125C7.175 8.375 7.25833 8.58333 7.425 8.75C7.59167 8.91667 7.8 9 8.05 9ZM11.85 16.625H16.05C16.25 16.625 16.425 16.5543 16.575 16.413C16.725 16.271 16.8 16.0917 16.8 15.875C16.8 15.675 16.725 15.5 16.575 15.35C16.425 15.2 16.25 15.125 16.05 15.125H11.85C11.6333 15.125 11.454 15.2 11.312 15.35C11.1707 15.5 11.1 15.675 11.1 15.875C11.1 16.0917 11.1707 16.271 11.312 16.413C11.454 16.5543 11.6333 16.625 11.85 16.625ZM11.85 12.75H16.05C16.25 12.75 16.425 12.679 16.575 12.537C16.725 12.3957 16.8 12.2167 16.8 12C16.8 11.7833 16.725 11.604 16.575 11.462C16.425 11.3207 16.25 11.25 16.05 11.25H11.85C11.6333 11.25 11.454 11.3207 11.312 11.462C11.1707 11.604 11.1 11.7833 11.1 12C11.1 12.2167 11.1707 12.3957 11.312 12.537C11.454 12.679 11.6333 12.75 11.85 12.75ZM11.85 8.875H16.05C16.25 8.875 16.425 8.8 16.575 8.65C16.725 8.5 16.8 8.325 16.8 8.125C16.8 7.90833 16.725 7.72933 16.575 7.588C16.425 7.446 16.25 7.375 16.05 7.375H11.85C11.6333 7.375 11.454 7.446 11.312 7.588C11.1707 7.72933 11.1 7.90833 11.1 8.125C11.1 8.325 11.1707 8.5 11.312 8.65C11.454 8.8 11.6333 8.875 11.85 8.875ZM5 19V5V19Z",fill:"#595959"})}),label:h({id:"article.ampReadmore",defaultMessage:"Read more"}),"data-event-category":"Sticky Bottom","data-event-action":"See More Click","data-event-label":m})]})};var _=E}}]);