(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{98945:function(e,t,o){"use strict";o.d(t,{C:function(){return ChevronDown}});var i=o(67294);let ChevronDown=e=>i.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),i.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}))},92639:function(e,t,o){"use strict";o.d(t,{L:function(){return d}});var i,a,n=o(86623),r=o(83454);let l="vi-VN";r.env.NEXT_PUBLIC_GOOGLE_MAP_KEY,r.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,r.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID;let s={"vi-VN":"hellobacsi.blog","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"};n.i,s[l],n.i?s[l]:s[l],r.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==r.env.NEXT_PUBLIC_TOGETHER_API_URL?r.env.NEXT_PUBLIC_TOGETHER_API_URL:s[l],r.env.NEXT_PUBLIC_SSO_URL,(i=a||(a={}))[i.FEMALE=0]="FEMALE",i[i.MALE=1]="MALE",i[i.ANY=2]="ANY";let d={"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}}},23318:function(e,t,o){"use strict";o.d(t,{I:function(){return f},L:function(){return Label},S:function(){return c},a:function(){return h},b:function(){return g},d:function(){return p},e:function(){return m},f:function(){return v}});var i,a,n,r,l=o(10166),s=o(15184),d=o(7259),u=o(67294);let c=l.Z.div` position: relative; width: 100%; &[data-has-error] { input { border-color: ${s.t.colors.red700}; } } input { width: 100%; padding: 12px 16px; border: solid 1px ${s.t.colors.gray200}; border-radius: ${s.t.borderRadius}; &:active, &:focus, &.focused { border-color: ${e=>e.color}; box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor}; } &:disabled { background-color: ${s.t.colors.gray100}; cursor: not-allowed; } } &[data-has-action-icon] { input { padding: 12px 48px 12px 16px; } } &[data-has-display-icon] { input { padding: 12px 16px 12px 48px; } } &[data-has-action-icon][data-has-display-icon] { input { padding: 12px 48px; } } &[data-size='lg'] { input { font-size: 16px; font-weight: ${s.t.sizes.fwRegular}; ${d.M.mbDown} { font-size: 22px; line-height: 1.2; } ${d.M.mbUp} { font-size: 26px; line-height: 1.2; } } } &[data-size='md'] { input { font-weight: ${s.t.sizes.fwRegular}; line-height: 22px; ${d.M.mbDown} { font-size: 14px; line-height: 1.2; } ${d.M.mbUp} { font-size: 16px; line-height: 1.2; } } } &[data-size='sm'] { input { font-weight: ${s.t.sizes.fwRegular}; line-height: 20px; ${d.M.mbDown} { font-size: 13px; line-height: 1.5; } ${d.M.mbUp} { font-size: 13px; line-height: 1.5; } } } `,m=l.Z.label` color: ${s.t.colors.red700}; font-weight: ${s.t.sizes.fwRegular}; `,p=l.Z.div` position: absolute; top: 50%; right: 16px; cursor: pointer; transform: translateY(-50%); `,g=l.Z.div` position: absolute; top: 50%; left: 16px; display: inline-flex; cursor: default; transform: translateY(-50%); `,Label=({children:e,className:t,style:o,htmlFor:i,size:a})=>u.createElement("label",{"data-size":a,className:`DjBFAbd ${t||""}`,style:o,htmlFor:i},e),h={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"tl-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"zh-TW":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"},"ms-MY":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"}},v=-1,f=-2;(i=n||(n={})).GSK="gsk",i.ROCHE="roche",i.MSD="msd",(a=r||(r={})).GSK="gsk",a.ROCHE="roche",a.MSD="spesialis",r.GSK,r.MSD,r.GSK,r.MSD},30444:function(e,t,o){"use strict";o.d(t,{g:function(){return getDataWithCache}});var i=o(57264),a=o(86623);let n={},getCachedItem=e=>{if("undefined"==typeof window)return n[e];{let t;try{t=JSON.parse(localStorage.getItem((a.i?"":"staging_")+"hhg-cache-"+e)||"{}")}catch(e){}return t||{}}},setCachedItem=(e,t)=>{try{"undefined"!=typeof window?localStorage.setItem((a.i?"":"staging_")+"hhg-cache-"+e,JSON.stringify({data:t,time:Date.now()})):n[e]={data:t,time:Date.now()}}catch(e){}},getDataWithCache=(e,t,o,a=9e5)=>(0,i.a)(void 0,void 0,void 0,function*(){let i=getCachedItem(e);if(i&&i.data&&i.time&&Date.now()-i.time{var{styles:t,color:o=r.t.colors.red700}=e,l=(0,i._)(e,["styles","color"]);return a.createElement(n.z,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},t),color:o},l))}},17495:function(e,t,o){"use strict";o.d(t,{M:function(){return MarryBabyText},a:function(){return MarryBabyHeading}});var i=o(57264),a=o(67294),n=o(10166),r=o(15184);let l=(0,n.Z)(e=>{var{type:t}=e,o=(0,i._)(e,["type"]);return a.createElement(t,o)})` color: var(--text-color, ${r.t.mbColors.dark}); font-family: Krub; font-weight: 600; letter-spacing: -0.2px; &[data-type='headline-1'] { font-size: 40px; line-height: 60px; } &[data-type='headline-2'] { font-size: 32px; line-height: 48px; } &[data-type='headline-3'] { font-size: 24px; line-height: 40px; } &[data-type='headline-4'] { font-size: 18px; line-height: 32px; } `,s=n.Z.p` color: var(--text-color, ${r.t.mbColors.dark}); letter-spacing: -0.2px; &[data-type='subtitle-1'] { font-size: 16px; font-weight: 600; line-height: 26px; } &[data-type='subtitle-2'] { font-size: 14px; font-weight: 500; line-height: 24px; } &[data-type='subtitle-3'] { font-size: 12px; font-weight: 500; line-height: 20px; } &[data-type='bodytext-1'] { font-size: 16px; font-weight: 400; line-height: 28px; } &[data-type='bodytext-2'] { font-size: 14px; font-weight: 400; line-height: 24px; } &[data-type='bodytext-3'] { font-size: 12px; font-weight: 400; line-height: 20px; } &[data-type='caption-1'] { font-size: 10px; font-weight: 500; letter-spacing: -0.1px; line-height: 14px; } &[data-type='caption-2'] { font-size: 10px; font-weight: 400; letter-spacing: -0.1px; line-height: 14px; } `,MarryBabyHeading=e=>{var{type:t,color:o,style:n}=e,r=(0,i._)(e,["type","color","style"]);return a.createElement(l,Object.assign({type:t,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[t],style:Object.assign(Object.assign({},o&&{"--text-color":o}),n)},r))},MarryBabyText=e=>{var{type:t,color:o,style:n}=e,r=(0,i._)(e,["type","color","style"]);return a.createElement(s,Object.assign({"data-type":t,style:Object.assign(Object.assign({},n),o&&{"--text-color":o})},r))}},74360:function(e,t,o){"use strict";o.d(t,{P:function(){return Popup},U:function(){return UserAvatar},a:function(){return formatCommunity},b:function(){return formatPost},c:function(){return formatTopic},d:function(){return m},e:function(){return formatComment},f:function(){return formatUserProfileUrl},g:function(){return formatArticle},h:function(){return formatCategory}});var i=o(67294),a=o(10166),n=o(7259),r=o(15184),l=o(57264),s=o(40650);let d=a.Z.div` position: fixed; left: 50%; padding: 0 16px 32px; background-color: ${r.t.colors.white}; border-radius: ${r.t.borderRadius}; box-shadow: 0px 4px 8px ${r.t.colors.gray200}; transform: translate(-50%, -50%); transition: all 0.5s ease-in-out; visibility: hidden; &[data-open='true'] { z-index: 400; top: 50%; opacity: 1; visibility: visible; } &[data-open='false'] { top: -50%; } &[data-type='lead'] { width: 332px; height: 460px; div { top: -15px; right: -15px; } } &[data-type='form'] { width: 496px; height: 548px; ${n.M.mbDown} { width: 340px; } } &[data-type='confirm'] { ${n.M.mbDown} { width: calc(100% - 32px); } ${n.M.mbUp} { width: 100%; max-width: 407px; } } .popup-content { position: relative; z-index: 111; height: 100%; padding: 16px; } .close-button { position: absolute; top: 16px; right: 0; cursor: pointer; img { width: 100%; height: 100%; border-radius: 50%; } } `,u=a.Z.div` position: fixed; z-index: 110; top: 0; left: 0; width: 100%; height: 100%; align-items: center; background: rgba(38, 38, 38, 0.3); &[data-open='false'] { display: none; } `,Popup=({type:e="lead",closeIcon:t,isOpen:o=!0,onClose:a,children:n,className:r="",enableAnimation:l=!0})=>i.createElement(i.Fragment,null,i.createElement(d,{"data-open":o,"data-type":e,"data-animation":l},i.createElement("div",{className:`${r||""} popup-content`},!!t&&i.createElement("div",{className:"close-button",onClick:a},t),n)),i.createElement(u,{"data-open":o,onClick:a})),formatAuthor=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},formatArticleExpert=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},formatSpotlightsSummary=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,formatArticleSubscriptionBanner=e=>{if(!e)return{};let{button_text:t,button_url:o,status:i,banner_desktop:a,banner_mobile:n}=e,r=(0,l._)(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:t||"",buttonUrl:o||"",status:!!i,bannerDesktop:a||"",bannerMobile:n||""},r)},c={EN:"English",FIL:"Filipino"},formatTranslateOptions=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map(t=>({label:t.toUpperCase()in c?c[t.toUpperCase()]:t.toUpperCase(),value:"/"===e[t].slice(-1)?e[t]:`${e[t]}/`})),formatArticle=e=>{var t,o,i,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?formatSponsor(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:formatAuthor(e.author),reviewer:e.reviewed_by&&formatAuthor(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:formatUserProfile(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.author),editor:formatUserProfile(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:formatUserProfile(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.expert),fact_check:formatUserProfile(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:formatCategory(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(formatCategory),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:formatArticleExpert(e.expert),metaTag:e.meta_tag||null,spotlight:formatSpotlightsSummary(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:formatTranslateOptions(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:formatCategory(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:formatAuthor(e.edit_last),subscriptionBanner:formatArticleSubscriptionBanner(e.subscription_banner)}:{}},formatUserProfile=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,formatSponsor=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},formatReviewedCategory=e=>({postTitle:e.post_title,permalink:e.permalink}),formatCategory=e=>{var t,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?formatSponsor(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map(e=>formatCategory(e)))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?formatReviewedCategory(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map(e=>formatFaqsCategory(e)):null}:{}},formatFaqsCategory=e=>({title:e.title,content:e.content}),formatHealthTool=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},formatCommunity=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:!!e.joined,isActive:null===e.is_active||void 0===e.is_active||!!e.is_active,mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:!!e.is_hidden}:{},formatTopic=e=>{var t,o,i,a;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(t=e.community)||void 0===t?void 0:t.slug)+"/"+(null==e?void 0:e.slug)||0,description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(i=e.community)||void 0===i?void 0:i.slug,communityName:null===(a=e.community)||void 0===a?void 0:a.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||!!e.is_active,mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:!!e.is_hidden}:{}},formatExpertAnswer=e=>e?{answer:null==e?void 0:e.answer.map(formatComment),expert:null==e?void 0:e.expert}:{},formatPost=e=>{var t,o,i,a,n,r,l,s,d,u,c,m,p,g,h,v,f,y,_,C,w;return e?{id:e.id,topics:(null===(t=e.topics)||void 0===t?void 0:t.map(t=>{var o,i,a,n;return{id:t.id||0,name:t.name||"",slug:t.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+t.slug,communityId:String(null===(i=e.community)||void 0===i?void 0:i.id),communitySlug:(null===(a=e.community)||void 0===a?void 0:a.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:!!t.is_hidden,isActive:!0}}))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(i=e.community)||void 0===i?void 0:i.name)||"",slug:(null===(a=e.community)||void 0===a?void 0:a.slug)||"",isActive:!0,isHidden:!!(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(r=e.user)||void 0===r?void 0:r.id)||0,username:(null===(l=e.user)||void 0===l?void 0:l.user_name)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",name:(null===(d=e.user)||void 0===d?void 0:d.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(c=e.user)||void 0===c?void 0:c.role)?null===(p=null===(m=e.user)||void 0===m?void 0:m.role)||void 0===p?void 0:p.toLowerCase():"",type:(null===(g=e.user)||void 0===g?void 0:g.type)||"",partnerId:(null===(h=e.user)||void 0===h?void 0:h.partner_id)?String(null===(v=e.user)||void 0===v?void 0:v.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(y=e.user)||void 0===y?void 0:y.doctor_id)?String(null===(_=e.user)||void 0===_?void 0:_.doctor_id):"",hospitalId:(null===(C=e.user)||void 0===C?void 0:C.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:!!e.bookmarked,mentions:e.mentions||[],commented:!!e.commented,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:formatExpertAnswer(null==e?void 0:e.expert_answer),createdTime:e.created_time||"",isMinigame:"mini_game"===e.event_type,eventStart:e.event_start,eventEnd:e.event_end}:{}},formatComment=e=>{var t,o,i,a,n,r,l,s,d,u,c,m,p,g,h,v,f,y,_,C,w,b,x,E,A,I,P,k,S,T,D,R;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(formatComment):[],author:{id:(null===(t=e.user)||void 0===t?void 0:t.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(i=e.user)||void 0===i?void 0:i.name)||"",role:(null===(a=e.user)||void 0===a?void 0:a.role)?null===(r=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(l=e.user)||void 0===l?void 0:l.avatar)||"",type:(null===(s=e.user)||void 0===s?void 0:s.type)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(c=e.user)||void 0===c?void 0:c.partner_id):"",title:(null===(m=e.user)||void 0===m?void 0:m.title)||"",doctorId:(null===(p=e.user)||void 0===p?void 0:p.doctor_id)?String(null===(g=e.user)||void 0===g?void 0:g.doctor_id):"",hospitalId:(null===(h=e.user)||void 0===h?void 0:h.hospital_id)?String(null===(v=e.user)||void 0===v?void 0:v.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(f=e.mentioned)||void 0===f?void 0:f.id)||0,username:(null===(y=e.mentioned)||void 0===y?void 0:y.user_name)||"",name:(null===(_=e.mentioned)||void 0===_?void 0:_.name)||"",role:(null===(C=e.mentioned)||void 0===C?void 0:C.role)?null===(b=null===(w=e.mentioned)||void 0===w?void 0:w.role)||void 0===b?void 0:b.toLowerCase():"",avatar:(null===(x=e.mentioned)||void 0===x?void 0:x.avatar)||"",type:(null===(E=e.mentioned)||void 0===E?void 0:E.type)||"",email:(null===(A=e.mentioned)||void 0===A?void 0:A.email)||"",partnerId:(null===(I=e.mentioned)||void 0===I?void 0:I.partner_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.partner_id):"",doctorId:(null===(k=e.mentioned)||void 0===k?void 0:k.doctor_id)?String(null===(S=e.mentioned)||void 0===S?void 0:S.doctor_id):"",hospitalId:(null===(T=e.mentioned)||void 0===T?void 0:T.hospital_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id):"",title:(null===(R=e.mentioned)||void 0===R?void 0:R.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:!!Number(e.is_anonymous||0)}:{}},formatUserProfileUrl=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var m=Object.freeze({__proto__:null,formatAuthor:formatAuthor,formatArticleExpert:formatArticleExpert,formatSpotlightsSummary:formatSpotlightsSummary,TRANSLATE_LANGUAGES:c,formatTranslateOptions:formatTranslateOptions,formatArticle:formatArticle,formatUserProfile:formatUserProfile,formatBMIResult:e=>{var t,o,i,a,n,r,l,s,d;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(t=null==e?void 0:e.comparison)&&void 0!==t?t:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(i=null==e?void 0:e.risk)&&void 0!==i?i:""},{tab:"tools.suggestion",content:null!==(a=null==e?void 0:e.suggestion)&&void 0!==a?a:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(r=null==e?void 0:e.disclaimer)&&void 0!==r?r:"",illustrator:null!==(l=null==e?void 0:e.illustrator)&&void 0!==l?l:"",faqs:null!==(s=null==e?void 0:e.faqs)&&void 0!==s?s:[],suggestedArticlesLink:null!==(d=null==e?void 0:e.suggested_articles_link)&&void 0!==d?d:""}:{}},formatSponsor:formatSponsor,formatReviewedCategory:formatReviewedCategory,formatCategory:formatCategory,formatCategoryApi:e=>e?{categoryInfo:formatCategory(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(formatArticle),subCategories:(e.data.sub_categories||[]).map(formatCategory)}:{},formatFaqsCategory:formatFaqsCategory,formatHealthTool:formatHealthTool,formatHealthToolTypeCategory:e=>{var t,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(t=null==e?void 0:e.health_tools)||void 0===t?void 0:t.map(e=>formatHealthTool(e)))&&void 0!==o?o:[]}:{}},formatCommunity:formatCommunity,formatTopic:formatTopic,formatExpertAnswer:formatExpertAnswer,formatPost:formatPost,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var t,o,i;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(t=e.from_user)||void 0===t?void 0:t.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(i=e.from_user)||void 0===i?void 0:i.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map(e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date})):[],formatOvulationInfo:e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:formatComment,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,t)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:t||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?formatUserProfile(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:formatUserProfileUrl,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?formatUserProfile(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var t,o,i;return e&&e.information?{information:null!==(t=e.information.map(e=>({title:e.title,description:e.description})))&&void 0!==t?t:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(i=e.reviewed_by)||void 0===i?void 0:i.name)||"",date:e.reviewed_date||"",link:formatUserProfileUrl(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});let p=a.Z.div` width: ${e=>e.size||40}px; height: ${e=>e.size||40}px; flex-shrink: 0; cursor: pointer; img { border-radius: 50%; } .avatar { width: 100%; height: 100%; object-fit: cover; } .avatar-default { display: flex; align-items: center; justify-content: center; background-color: ${r.t.colors.secondaryBase}; border-radius: 50%; color: white; font-size: 1em; font-weight: bold; line-height: 1; } &[data-is-marrybaby='true'] { .avatar-default { background-color: ${r.t.mbColors.pink}; } } `,UserAvatar=e=>{var{className:t,isMarryBaby:o,style:a,avatar:n,username:r,size:d}=e,u=(0,l._)(e,["className","isMarryBaby","style","avatar","username","size"]);let{data:{env:{isMarryBaby:c}}}=(0,i.useContext)(s.T),[m,g]=(0,i.useState)(!1);return i.createElement(p,Object.assign({"data-is-marrybaby":"boolean"==typeof o?o:c,className:t,style:a,size:d},u),n&&!m?i.createElement("img",{loading:"lazy",src:n,className:"avatar",alt:"avatar",onError:()=>{m||g(!0)}}):i.createElement("div",{className:"avatar avatar-default"},r&&(null==r?void 0:r.length)>0?r[0].toUpperCase():"A"))}},92935:function(e,t,o){"use strict";o.d(t,{H:function(){return Heading}});var i=o(57264),a=o(67294),n=o(64761),r=o(54576);let Heading=e=>{var{as:t,tag:o,color:l,fontWeight:s,dataEventCategory:d,dataEventAction:u,dataEventLabel:c}=e,m=(0,i._)(e,["as","tag","color","fontWeight","dataEventCategory","dataEventAction","dataEventLabel"]);let p=(0,n.rZ)();return a.createElement(r.T,Object.assign({as:t||o,color:l||p.colors.gray[8],"data-event-category":d,"data-event-action":u,"data-event-label":c,weight:"semibold"===s?"semiBold":"bold",size:o,"data-size":o,"data-font-weight":s||void 0},m))}},50722:function(e,t,o){"use strict";o.d(t,{B:function(){return Button}});var i=o(57264),a=o(67294),n=o(74706);let Button=e=>{var{size:t,color:o="primary",isDisabled:r,isBlock:l,title:s,onClick:d,icon:u,iconPosition:c="left",children:m,isLoading:p=!1,loadingText:g,dataEventCategory:h,dataEventAction:v,dataEventLabel:f,dataProductChannel:y,dataProductSku:_,dataProductBrand:C,dataProductName:w,dataProductPrice:b,dataProductCategory:x,dataProductPosition:E,type:A}=e,I=(0,i._)(e,["size","color","isDisabled","isBlock","title","onClick","icon","iconPosition","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","type"]);return a.createElement(n.B,Object.assign({},{"data-event-category":h,"data-event-action":v,"data-event-label":f,"data-product-channel":y,"data-product-sku":_,"data-product-brand":C,"data-product-name":w,"data-product-price":b,"data-product-category":x,"data-product-position":E},{size:t,variant:"transparent"===o?"white":"danger"===o?"error":o,disabled:r,onClick:e=>{p||r||!d||d(e)},title:s,loading:p,type:A||"submit",leftIcon:"left"===c?u:void 0,rightIcon:"right"===c?u:void 0,w:l?"100%":void 0,p:l?"12px auto":void 0,"data-color":o,"data-size":t,"data-block":l,"data-has-icon":!!u||void 0,"data-theme":I.theme,"data-is-loading":p},I),p&&g||m)}},96749:function(e,t,o){"use strict";o.d(t,{C:function(){return Container}});var i=o(67294);let Container=({children:e,className:t,style:o,type:a})=>i.createElement("div",{className:`d76E4SH ${t||""}`,style:o,"data-type":a},e)},85453:function(e,t,o){"use strict";o.d(t,{L:function(){return Logo}});var i=o(67294),a=o(36965),n=o(10981),r=o(41585),l=o(74706);let Logo=({type:e,className:t,style:o,isLightLogo:s,customSize:d,badge:u,locale:c,dateForSeasonal:m,isPro:p})=>{let[g,h]=(0,i.useState)({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1});return(0,i.useEffect)(()=>{if(!m||isNaN(new Date(m).getTime()))return;let e=new Date(m),t=(0,r.i)(e),o=r.a.includes(c)&&(0,r.b)(e),i=!o&&(0,r.c)(e),n=(0,r.d)(e),l=c===a.L.Vietnam&&(0,r.e)(e),s=c===a.L.Vietnam&&(0,r.f)(e),d=c===a.L.Vietnam&&(0,r.g)(e);h({isChristmas:t,isLunarNewYear:o,isNewYear:i,isRamadan:n,isVNHungKing:l,isVN3004:s,isLabourDay:d})},[c,new Date(m).getDate()]),i.createElement(r.S,{className:t,style:o,"data-logo-is-light":s||void 0,"data-has-badge":!!u,"data-seasonal":g.isRamadan?"ramadan":g.isChristmas?"christmas":g.isLunarNewYear?"lunar-new-year":g.isNewYear?"new-year":g.isVNHungKing?"hung-king":g.isVN3004?"30-04":g.isLabourDay?"labour-day":void 0,"data-type":e},g.isChristmas?i.createElement(i.Fragment,null,i.createElement(l.I,{alt:"left xmas logo",src:n.C.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),i.createElement(l.I,{alt:"right xmas logo",src:n.C.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):g.isNewYear?i.createElement(i.Fragment,null,i.createElement(l.I,{alt:"left new year logo",src:n.C.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),i.createElement(l.I,{alt:"right new year logo",src:n.C.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):g.isLunarNewYear?i.createElement(i.Fragment,null,i.createElement(l.I,{alt:"left lunar new year logo",loading:"lazy",src:n.C.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),i.createElement(l.I,{alt:"right lunar new year logo",loading:"lazy",src:n.C.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):g.isRamadan&&"hellosehat"===e?i.createElement(i.Fragment,null,i.createElement(l.I,{alt:"left ramadan logo",loading:"lazy",src:n.C.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),i.createElement(l.I,{alt:"right ramadan logo",loading:"lazy",src:n.C.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):g.isRamadan&&"hellodoktor"===e?i.createElement(i.Fragment,null,i.createElement(l.I,{alt:"left ramadan logo",loading:"lazy",src:n.C.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),i.createElement(l.I,{alt:"right ramadan logo",loading:"lazy",src:n.C.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):g.isVNHungKing&&("hellobacsi"===e||"marryBaby"===e)?i.createElement(i.Fragment,null,i.createElement(l.I,{alt:"Hung King logo",loading:"lazy",src:n.C.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})):null,i.createElement(r.L,{type:e,width:null==d?void 0:d.width,height:null==d?void 0:d.height}),p?i.createElement(r.h,{src:n.C.getAssetPath("logo/pro-suffix.svg")}):null,u)}},90951:function(e,t,o){"use strict";o.d(t,{a:function(){return normalizeLink},n:function(){return normalizeLinkSlash}});let normalizeLinkSlash=e=>e.replace(/([^:]\/)\/+/g,"$1"),forceEndSlash=e=>e.replace(/\/?$/,"/"),normalizeLink=e=>normalizeLinkSlash(forceEndSlash(e))},90545:function(e,t,o){"use strict";o.d(t,{a:function(){return getCurrentSsoUrl},b:function(){return getTogetherApiDomain},c:function(){return getDiscoverApiDomain},d:function(){return getCareApiDomain},g:function(){return getCurrentBaseUrl}});var i=o(37658),a=o(86623),n=o(83454);let getCurrentBaseUrl=(e,t)=>{if("undefined"!=typeof window)return window.location.origin;let o=!a.i;return`https://${o?t?"fe.":"discover.":t?"www.":""}${i.d[t?"vi-VN_MB":e]}`},getCurrentSsoUrl=(e,t)=>n.env.UNIFY_SSO_API||`https://${a.i?"id.":"staging-id."}${i.d[t?"vi-VN_MB":e]}`,getTogetherApiDomain=()=>n.env.UNIFY_INTERNAL_TOGETHER_API||n.env.UNIFY_TOGETHER_API||`https://${a.i?"together.":"staging-together."}hellohealthgroup.com`,getDiscoverApiDomain=e=>n.env.UNIFY_INTERNAL_DISCOVER_API||n.env.UNIFY_DISCOVER_API||`https://${a.i?"wp.":"staging."}${i.d[e]}`,getCareApiDomain=()=>n.env.UNIFY_INTERNAL_CARE_API||n.env.UNIFY_CARE_API||`https://${a.i?"health-care.":"service-health-care."}hellohealthgroup.com`},95258:function(e,t,o){"use strict";o.d(t,{u:function(){return useIsInit}});var i=o(67294);let useIsInit=()=>{let[e,t]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{t(!1)},[]),e}},39238:function(e,t,o){"use strict";o.d(t,{u:function(){return useTranslations}});var i=o(67294),a=o(96536),n=o(47856),r=o.n(n);function useTranslations(){let{values:e,locale:t}=(0,i.useContext)(a.T)||{locale:"en-PH"};return(0,i.useMemo)(()=>({t:(o,i)=>e?e[o]?i?r()(e[o]||o,i):e[o]||o:(console.warn(`[useTranslations] Missing translation for key ${o} and locale ${t}`),i?r()(o,i):o):(console.error("[useTranslations] t method called before translation values are loaded"),o),locale:t}),[e,t])}},41585:function(e,t,o){"use strict";o.d(t,{L:function(){return c},S:function(){return d},a:function(){return p},b:function(){return isLunarNewYear},c:function(){return isNewYear},d:function(){return isRamadan},e:function(){return isVNHungKing},f:function(){return isVN3004},g:function(){return isLabourDay},h:function(){return u},i:function(){return isChristmas}});var i=o(10166),a=o(7259),n=o(67294),r=o(10981),l=o(74706),s=o(36965);let d=i.Z.div` position: relative; display: inline-flex; align-items: center; z-index: 1; .main-logo-icon { object-fit: contain; } &[data-logo-is-light] { > svg path { fill: #fff; } img { filter: brightness(0) invert(1); } } &[data-has-badge] { @supports (display: flex) and (gap: 1em) { gap: 0.5rem; } @supports not ((display: flex) and (gap: 1em)) { > img { margin-left: 0.25rem; } } } .common-logo-seasonal-left, .common-logo-seasonal-right { z-index: -1; max-width: unset; max-height: unset; } .common-logo-seasonal-left { position: absolute; top: 50%; left: 0; transform: translateY(-50%); } .common-logo-seasonal-right { position: absolute; top: 50%; right: 0; transform: translateY(-50%); } &[data-seasonal='christmas'] { padding-left: 37px; padding-right: 22px; .common-logo-seasonal-left { width: 125px; height: 56px; } .common-logo-seasonal-right { width: 23px; height: 17px; } } &[data-seasonal='new-year'] { padding-right: 85px; .common-logo-seasonal-left { top: 35%; width: 100px; height: 56px; } .common-logo-seasonal-right { width: 85px; height: 54px; } ${a.M.mbDown} { padding-right: 0; .common-logo-seasonal-right { display: none; } } } &[data-seasonal='lunar-new-year'] { padding-left: 30px; padding-right: 35px; .common-logo-seasonal-left { width: 33px; height: 41px; } .common-logo-seasonal-right { width: 37px; height: 54px; } } &[data-seasonal='ramadan'] { &[data-type='hellosehat'] { padding-right: 35px; .common-logo-seasonal-left { width: 165px; height: unset; left: 6px; } .common-logo-seasonal-right { width: 33px; height: unset; } } &[data-type='hellodoktor'] { padding-right: 66px; .common-logo-seasonal-left { width: 133px; height: unset; left: 6px; } .common-logo-seasonal-right { width: 63px; height: unset; } } } &[data-seasonal='hung-king'] { &[data-type='hellobacsi'] { .common-logo-seasonal-left { width: 134px; height: unset; left: 50%; top: 50%; transform: translate(-50%, -50%); } } &[data-type='marryBaby'] { .common-logo-seasonal-left { width: 145px; height: unset; left: 50%; top: 50%; transform: translate(-50%, -50%); } } } `,u=i.Z.img` height: 16px; width: unset; margin-bottom: 4px; margin-left: -3px; `,c=(0,n.memo)(({type:e,width:t,height:o})=>{let i=(0,n.useMemo)(()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:o||"24px",src:r.C.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:t||"127px",height:o||"24px",src:r.C.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:o||"27px",src:r.C.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:t||"123px",height:o||"24px",src:r.C.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:o||"24px",src:r.C.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:o||"24px",src:r.C.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:o||"24px",src:r.C.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:o||"24px",src:r.C.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:o||"24px",src:r.C.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:o||"24px",src:r.C.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:o||"24px",src:r.C.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:o||"24px",src:r.C.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:o||"57px",src:r.C.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:o||"28px",src:r.C.getAssetPath("logo/marrybaby.png")};default:return null}},[e,t,o]),{src:a,width:s,height:d}=i||{};return n.createElement(l.I,{alt:`${e} logo`,className:"main-logo-icon",src:a,style:{width:s,height:d}})}),isChristmas=e=>{let t=e.getDate(),o=e.getMonth();return 11===o&&t>=16&&t<=25},m={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},p=[s.L.Vietnam,s.L.Taiwan,s.L.Indonesia,s.L.Malaysia],isLunarNewYear=e=>{let t=e.getFullYear(),o=m[t];if(!o)return!1;let i=new Date(t,o[1],o[0]),a=new Date(i);a.setDate(i.getDate()-7);let n=new Date(i);return n.setDate(i.getDate()+5),a<=e&&e<=n},isNewYear=e=>{let t=e.getDate(),o=e.getMonth();return 11===o&&t>=26||0===o&&t<=15},g=[{year:2024,start:[10,2],end:[8,3]},{year:2025,start:[1,2],end:[30,2]},{year:2026,start:[18,1],end:[19,2]},{year:2027,start:[8,1],end:[9,2]},{year:2028,start:[28,0],end:[26,1]},{year:2029,start:[16,0],end:[14,1]},{year:2030,start:[6,0],end:[4,1]},{year:2030,start:[26,11],end:[24,0,2031]},{year:2031,start:[15,11],end:[13,0,2032]},{year:2032,start:[4,11],end:[2,0,2033]}],isRamadan=e=>{let t=e.getFullYear(),o=g.filter(e=>e.year===t);return!!o.length&&o.some(o=>{let i=o.start[2]||t,a=new Date(i,o.start[1],o.start[0]),n=new Date(i,o.end[1],o.end[0]);return a<=e&&e<=n})},h={2024:[18,3],2025:[7,3],2026:[26,3],2027:[16,3],2028:[4,3],2029:[23,3],2030:[12,3],2031:[1,3],2032:[19,3],2033:[9,3],2034:[28,3],2035:[17,3]},isVNHungKing=e=>{let t=e.getFullYear(),o=h[t];if(!o)return!1;let i=new Date(t,o[1],o[0]),a=new Date(i);a.setDate(i.getDate()-1);let n=new Date(i);return n.setDate(i.getDate()+1),a<=e&&e<=n},isVN3004=e=>{let t=e.getFullYear(),o=new Date(t,3,30),i=new Date(o);i.setDate(o.getDate()-1);let a=new Date(o);return a.setDate(o.getDate()+2),i<=e&&e<=a},isLabourDay=e=>{let t=e.getFullYear(),o=new Date(t,4,1),i=new Date(o);i.setDate(o.getDate()-1);let a=new Date(o);return a.setDate(o.getDate()+1),i<=e&&e<=a}},58809:function(e,t,o){"use strict";var i=o(67294),a=o(36834),__rest=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);at.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]]);return o};t.Z=e=>{var{size:t=24,color:o=a.SQ,isActive:n,activeColor:r=a.SK,isSolid:l}=e,s=__rest(e,["size","color","isActive","activeColor","isSolid"]);return i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",width:t,height:t},s),i.createElement("path",{d:l?"M12 11.6923C11.0346 11.6923 10.21 11.3503 9.52598 10.6664C8.84201 9.98239 8.50003 9.15773 8.50003 8.19236C8.50003 7.22698 8.84201 6.4023 9.52598 5.71833C10.21 5.03437 11.0346 4.69238 12 4.69238C12.9654 4.69238 13.79 5.03437 14.474 5.71833C15.158 6.4023 15.5 7.22698 15.5 8.19236C15.5 9.15773 15.158 9.98239 14.474 10.6664C13.79 11.3503 12.9654 11.6923 12 11.6923ZM6.01923 19.3077C5.59745 19.3077 5.23881 19.1599 4.94331 18.8644C4.64779 18.5689 4.50003 18.2103 4.50003 17.7885V17.0846C4.50003 16.5949 4.63305 16.1414 4.89908 15.7241C5.1651 15.3068 5.52054 14.986 5.96541 14.7616C6.95387 14.277 7.95099 13.9135 8.95676 13.6712C9.96252 13.4289 10.9769 13.3078 12 13.3078C13.0231 13.3078 14.0375 13.4289 15.0433 13.6712C16.049 13.9135 17.0461 14.277 18.0346 14.7616C18.4795 14.986 18.8349 15.3068 19.1009 15.7241C19.367 16.1414 19.5 16.5949 19.5 17.0846V17.7885C19.5 18.2103 19.3522 18.5689 19.0567 18.8644C18.7612 19.1599 18.4026 19.3077 17.9808 19.3077H6.01923Z":"M12 11.6923C11.0375 11.6923 10.2136 11.3496 9.52816 10.6642C8.84274 9.97879 8.50003 9.15484 8.50003 8.19236C8.50003 7.22986 8.84274 6.40591 9.52816 5.72051C10.2136 5.03509 11.0375 4.69238 12 4.69238C12.9625 4.69238 13.7864 5.03509 14.4719 5.72051C15.1573 6.40591 15.5 7.22986 15.5 8.19236C15.5 9.15484 15.1573 9.97879 14.4719 10.6642C13.7864 11.3496 12.9625 11.6923 12 11.6923ZM17.9808 19.3077H6.01923C5.59745 19.3077 5.23881 19.1599 4.94331 18.8644C4.64779 18.5689 4.50003 18.2103 4.50003 17.7885V17.0846C4.50003 16.5949 4.63305 16.1414 4.89908 15.7241C5.1651 15.3068 5.52054 14.986 5.96541 14.7616C6.95387 14.277 7.95099 13.9135 8.95676 13.6712C9.96252 13.4289 10.9769 13.3078 12 13.3078C13.0231 13.3078 14.0375 13.4289 15.0433 13.6712C16.049 13.9135 17.0461 14.277 18.0346 14.7616C18.4795 14.986 18.8349 15.3068 19.1009 15.7241C19.367 16.1414 19.5 16.5949 19.5 17.0846V17.7885C19.5 18.2103 19.3522 18.5689 19.0567 18.8644C18.7612 19.1599 18.4026 19.3077 17.9808 19.3077ZM6.00001 17.8077H18V17.0846C18 16.8821 17.9413 16.6946 17.824 16.5221C17.7067 16.3497 17.5474 16.209 17.3462 16.1C16.4846 15.6757 15.6061 15.3542 14.7107 15.1356C13.8153 14.917 12.9117 14.8077 12 14.8077C11.0883 14.8077 10.1847 14.917 9.28931 15.1356C8.39387 15.3542 7.51539 15.6757 6.65386 16.1C6.45257 16.209 6.29328 16.3497 6.17598 16.5221C6.05866 16.6946 6.00001 16.8821 6.00001 17.0846V17.8077ZM12 10.1924C12.55 10.1924 13.0208 9.99653 13.4125 9.60486C13.8042 9.21319 14 8.74236 14 8.19236C14 7.64236 13.8042 7.17153 13.4125 6.77986C13.0208 6.38819 12.55 6.19236 12 6.19236C11.45 6.19236 10.9792 6.38819 10.5875 6.77986C10.1958 7.17153 10 7.64236 10 8.19236C10 8.74236 10.1958 9.21319 10.5875 9.60486C10.9792 9.99653 11.45 10.1924 12 10.1924Z",fill:n?r:o}))}},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,o=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,r=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g;function trim(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,u=1;function updatePosition(e){var t=e.match(o);t&&(d+=t.length);var i=e.lastIndexOf("\n");u=~i?e.length-i:u+e.length}function position(){var e={line:d,column:u};return function(t){return t.position=new Position(e),match(i),t}}function Position(e){this.start=e,this.end={line:d,column:u},this.source=s.source}Position.prototype.content=e;var c=[];function error(t){var o=Error(s.source+":"+d+":"+u+": "+t);if(o.reason=t,o.filename=s.source,o.line=d,o.column=u,o.source=e,s.silent)c.push(o);else throw o}function match(t){var o=t.exec(e);if(o){var i=o[0];return updatePosition(i),e=e.slice(i.length),o}}function comments(e){var t;for(e=e||[];t=comment();)!1!==t&&e.push(t);return e}function comment(){var t=position();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var o=2;""!=e.charAt(o)&&("*"!=e.charAt(o)||"/"!=e.charAt(o+1));)++o;if(o+=2,""===e.charAt(o-1))return error("End of comment missing");var i=e.slice(2,o-2);return u+=2,updatePosition(i),e=e.slice(o),u+=2,t({type:"comment",comment:i})}}return match(i),function(){var e,o=[];for(comments(o);e=function(){var e=position(),o=match(a);if(o){if(comment(),!match(n))return error("property missing ':'");var i=match(r),s=e({type:"declaration",property:trim(o[0].replace(t,"")),value:i?trim(i[0].replace(t,"")):""});return match(l),s}}();)!1!==e&&(o.push(e),comments(o));return o}()}},23493:function(e,t,o){var i=o(23279),a=o(13218);e.exports=function(e,t,o){var n=!0,r=!0;if("function"!=typeof e)throw TypeError("Expected a function");return a(o)&&(n="leading"in o?!!o.leading:n,r="trailing"in o?!!o.trailing:r),i(e,t,{leading:n,maxWait:t,trailing:r})}},57848:function(e,t,o){var i=o(18139);e.exports=function(e,t){var o,a,n,r=null;if(!e||"string"!=typeof e)return r;for(var l=i(e),s="function"==typeof t,d=0,u=l.length;d