"use strict";(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[2581,5201,6419],{z2FJ:function(e,t,a){a.d(t,{J:function(){return formatString},e:function(){return getApiPath}});var i=a("gY0P"),r=a.n(i),o=a("9brV");let formatString=function(){for(var e=arguments.length,t=Array(e),a=0;ae&&(!e.includes("=")||e.split("=")[1]));return 0===a.length?e:"".concat(e,"?").concat(a.join("&"))}return i},getApiPath=()=>{let{NEXT_PUBLIC_BASE_API_URL:e,WP_INTERNAL_API:t}=o.Km;return(t||e)+"wp-json/api/"}},"JOt+":function(e,t,a){a.r(t),a.d(t,{MAPPED_AXIOS_INSTANCE:function(){return v},callApiNew:function(){return callApiNew}});var i=a("77FC"),r=a("dvDa"),o=a("9brV"),s=a("z2FJ"),n=a("p46w"),l=a.n(n),d=a("Sb+D"),c=a("/sjq");let getFormattedUrl=e=>{let{template:t,params:a,url:i}=e,r=(0,s.J)(i||"",{...a,..."together"===t?{websiteUrl:"https://".concat(c.domainLocales[o.Km.DEPLOY_LOCALE||"en-PH"])}:{},...("care"===t||"careV2"===t||"premium"===t||"unified"===t?{site:c.domainLocales[o.Km.DEPLOY_LOCALE||"en-PH"]}:{})||"ecommerce"===t,..."babyVaccine"===t?{domain:c.domainLocales[o.Km.DEPLOY_LOCALE||"en-PH"]}:{}});return r},getMainInterceptors=e=>({request:t=>{try{let a=l().get(o.ty),i=getFormattedUrl({url:t.url||"",params:t.params,template:e});t.url=i,t.params="tl-PH"===o.Km.NEXT_PUBLIC_DEPLOY_LOCALE?{lang:"fil"}:null,a&&(t.headers.Authorization="Bearer ".concat(a))}catch(e){console.error("\uD83D\uDE80 ~ file: interceptors.ts:53 ~ getMainInterceptors ~ error:",e)}finally{return t}},response:e=>e,error:e=>{console.error(e),(0,d.Cp)(e)}}),_={discover:void 0,care:"care",careV2:"careV2",together:"together",sso:void 0,lead:void 0,sidis:void 0,sidis_frontend:void 0,sidis_subscription:void 0,sidis_update:void 0,baby_vaccine:"babyVaccine",premium:"premium",unified:void 0,ecommerce:"ecommerce",chatbot:"chatbot",open_health_tools:void 0},E={discover:(0,s.e)(),premium:o.Km.NEXT_PUBLIC_PREMIUM_URL,together:o.Km.NEXT_PUBLIC_TOGETHER_API+"api/v1/",care:o.Km.NEXT_PUBLIC_CARE_API+"api/",careV2:o.Km.NEXT_PUBLIC_CARE_API+"api/v2/",sso:o.Km.NEXT_PUBLIC_SSO+"api/",lead:o.Km.NEXT_PUBLIC_LEAD_API+"api/",chatbot:o.Km.NEXT_PUBLIC_CHAT_BOT_API,sidis:o.Km.NEXT_PUBLIC_SIDIS_TEMPLATE_API,sidis_update:o.Km.NEXT_PUBLIC_SIDIS_API+"api/",sidis_frontend:o.Km.NEXT_PUBLIC_SIDIS_API_GET+"frontend/",sidis_subscription:o.Km.NEXT_PUBLIC_SIDIS_API_GET+"api/",baby_vaccine:o.Km.INTERNAL_VACCINATION_TOOL_API||o.Km.NEXT_PUBLIC_VACCINATION_TOOL_API,unified:o.Km.NEXT_PUBLIC_UNIFIED_API,ecommerce:o.Km.NEXT_PUBLIC_ECOMMERCE_API+"rest/"+o.Km.NEXT_PUBLIC_STORE_CODE+"/V1/",open_health_tools:o.Km.NEXT_PUBLIC_OPEN_HEALTH_TOOLS_API};r.A.defaults.headers.post["Content-Type"]="application/json",r.A.defaults.timeout=3e4;let T=r.A.create({baseURL:E.discover}),p=r.A.create({baseURL:E.premium}),u=r.A.create({baseURL:E.together}),g=r.A.create({baseURL:E.care}),m=r.A.create({baseURL:E.careV2,headers:{Accept:"version=2.0.0"}}),h=r.A.create({baseURL:E.sso,headers:{"Accept-Encoding":"*"}}),I=r.A.create({baseURL:E.lead}),A=r.A.create({baseURL:E.chatbot}),S=r.A.create({baseURL:E.sidis}),O=r.A.create({baseURL:E.sidis_update}),L=r.A.create({baseURL:E.sidis_frontend}),b=r.A.create({baseURL:E.sidis_subscription}),f=r.A.create({baseURL:E.baby_vaccine}),y=r.A.create({baseURL:E.unified}),G=r.A.create({baseURL:E.ecommerce});(async()=>{[T,h,g,m,I,S,L,b,O,f,u,p,y,G].forEach(e=>{let{request:t,error:a,response:i}=getMainInterceptors();e.interceptors.request.use(t,a),e.interceptors.response.use(i,a)});let{together:e,care:t,careV2:a,premium:i,baby_vaccine:r,unified:o,ecommerce:s,chatbot:n}=_;u.interceptors.request.use(getMainInterceptors(e).request,getMainInterceptors().error),g.interceptors.request.use(getMainInterceptors(t).request,getMainInterceptors().error),m.interceptors.request.use(getMainInterceptors(a).request,getMainInterceptors().error),p.interceptors.request.use(getMainInterceptors(i).request,getMainInterceptors().error),f.interceptors.request.use(getMainInterceptors(r).request,getMainInterceptors().error),y.interceptors.request.use(getMainInterceptors(o).request,getMainInterceptors().error),G.interceptors.request.use(getMainInterceptors(s).request,getMainInterceptors().error),A.interceptors.request.use(getMainInterceptors(n).request,getMainInterceptors().error)})();let P=r.A.create({baseURL:o.Km.NEXT_PUBLIC_OPEN_HEALTH_TOOLS_API}),v={discover:T,care:g,careV2:m,together:u,sso:h,lead:I,sidis:S,sidis_frontend:L,sidis_subscription:b,sidis_update:O,baby_vaccine:f,premium:p,unified:y,ecommerce:G,chatbot:A,open_health_tools:P},callApiNew=async function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"discover",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=v[a];try{let a=await s({url:e,...t});if(a)return r?a:a.data}catch(a){if((0,i.H4)(null,e,(null==t?void 0:t.method)||"GET","",a),o)throw a}return null}},"LSb+":function(e,t,a){a.r(t),a.d(t,{PATHS:function(){return i}});let i={CATEGORY:{GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_CATEGORY_TAG:"tags?category_id={categoryId}",GET_AZ_DRUGS:"category/a-z/{category}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch{basePath}/{fullSlug}",GET_CATEGORIES:"categories?type={type}",GET_TRENDING_CATEGORIES:"category/trending"},ARTICLE:{GET_ARTICLE_BY_TAG:"articles?category_id={categoryId}&tag_id={tagId}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_PREVIEW_ARTICLE:"fetch{basePath}/{fullSlug}/?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_ARTICLE_DETAIL:"article/{slug}/?skip_ids={skipIds}&_isrelated={isRelated}",GET_ARTICLES:"articles?ids={ids}",GET_BOOST_PAGE_VIEW_INFO:"boost/popup-card?type={type}&article_id={articleId}&primary_category={primaryCategoryId}&community={community}&post_id={postId}"},HEALTH_TOOL:{GET_WEEK_PREGNANCY_PROGRESS:"health-tools/due-date-calculator/all",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info?type={type}",GET_HEALTH_TOOL_BMI_INFOR:"health-tools/bmi-calculator/infor?gender={gender}&level={level}",GET_HEALTH_TOOL_BABY_GROWTH_INFO:"health-tools/baby-growth-tracking/info",GET_HEALTH_TOOL_BABY_GROWTH_RESULT:"health-tools/baby-growth-tracking/result",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result/?gender={gender}&bmi={bmi}&age={age}&type={type}&level={level}&unit={unit}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_INFOR:"health-tools/bmr-calculator/infor/?status={status}",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result/?kcals={kcals}&gender={gender}&age={age}&status={status}&activity_level={activityLevel}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_PWG_RESULT:"health-tools/preweight-gain-calculator/result?bmi={bmi}&week={week}&weight_gain={pwg}&type={type}",GET_HEALTH_TOOL_THR_RESULT:"health-tools/target-heart-rate/result?result=heart-rate&gender={gender}&age={age}&resting_rate={rate}&intensity={intensity}",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",GET_HEALTH_TOOL_BABY_POOP:"health-tools/baby-poop-tool",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_RESULT:"health-tools/due-date-calculator/formula",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_ALL_HEALTH_TOOLS:"healthtools?ismenu=0&per_page=100",GET_HEALTH_TOOLS_HOME_PAGE:"healthtools?ishome=1",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_HEALTH_TOOL_BABY_VACCINE_INFO:"health-tools/vaccination/info",GET_HEALTH_TOOL_BABY_VACCINE_RESULT:"health-tools/vaccination/result",GET_HEALTH_TOOL_BABY_VACCINE_TIMELINE:"health-tools/vaccination/timeline",GET_HEALTH_TOOL_BABY_VACCINE_WITH_ID:"health-tools/vaccination/vaccine/{vaccineId}",CALCULATE_CALORIES:"healthtools/calculator/?weight={weight}&height={height}&activity_level={activityLevel}&age={age}&gender={gender}&unit={unit}",GET_AIR_POPULATION_INFO:"health-tools/air-population-tool/info",GET_AIR_POPULATION_PROVINCE:"health-tools/air-population-tool/provinces",GET_AIR_POPULATION_SPECIFIC_PROVINCE:"health-tools/air-population-tool/result?type={type}&state={name}&lat={lat}&lng={lng}",GET_AIR_POPULATION_DEFAULT:"health-tools/air-population-tool/result",GET_SITEWIDE_BANNER:"sitewide/health-tool",GET_LANDING_PAGE:"healthtools/landing-page"},EXPERT:{GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}&number={perPage}",GET_ALL_EXPERTS_HEADING:"expert/heading",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}&per_page={perPage}&user_id={userId}&number={numberOfPost}&reviewed_by_expert={reviewedByExpert}&offset={offset}",GET_LIST_OF_SPECIALTIES:"specialty",GET_EXPERT_BY_SPECIALTY:"experts?specialty={specialty}",GET_EXPERT_BY_NAME_AND_SPECIALTY:"experts?s={name}&specialty={specialty}&page={page}&search_by=display_name"},SSO:{POST_CHANGE_EMAIL:"user/change-email",POST_COMMENT_NOTIFICATION:"comment/notification",POST_SSO_VERIFY_TOKEN:"verify-id-token",SSO_FEEDBACK:"feedback/create",SSO_FEEDBACK_USER:"feedback/create?result=like",GET_FEATURE:"feature",UPDATE_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",GET_ALL_BOOKMARK:"bookmark",UPDATE_PROFILE:"user/update",POST_FCM_TOKEN_AUTH:"user/webpush",POST_FCM_TOKEN:"webpush",UPDATE_SUBSCRIPTION:"user/subscription",ONBOARDING_EMAIL:"user/onboarding/yesdok-email",POST_VERIFY_CHANGE_EMAIL:"user/verify-change-email",UPDATE_HEALTH_TOOL:"healthtool/update",SEND_OTP_VIA_WHATSAPP:"sms/whatsapp_otp",VERIFY_OTP_VIA_WHATSAPP:"sms/whatsapp_verify",AUTH_APP_TOKEN:"auth-app-token",UPLOAD:"upload"},SPOTLIGHT:{GET_SPOTLIGHT_LANDING:"spotlight/{slug}/?group_id={groupId}&additional_slug={additionalSlug}&api_for_website=1",GET_ALL_SPOTLIGHT:"spotlights/?per_page={perPage}&order_by={orderBy}",CHECK_IS_SPOTLIGHT_URL:"find-by-url/?url={url}"},TOGETHER:{GET_TOGETHER_COMMUNITY:"community?website_url={websiteUrl}&community_in={includeIds}",POST_TOGETHER_LIKE_POST:"post/{postId}/like?website_url={websiteUrl}",GET_TOGETHER_TOPICS:"topic?community_id={communityId}&website_url={websiteUrl}&due_date_month={dueDateMonth}&due_date_year={dueDateYear}&show_hidden={showHidden}",GET_TOGETHER_POST_LIST:"post?community_id={communityId}&website_url={websiteUrl}&sort_by={sortBy}&article_id={articleId}&page={page}&report_start_date={reportStartDate}&report_end_date={reportEndDate}&user_type={userType}&post_in={includeIds}&items_per_page={pageSize}&start_date={startDate}&end_date={endDate}&related_posts={postId}&post_by={postBy}&ignore-cache={ignoreCache}",GET_TOGETHER_POST_DETAIL:"post/{idOrSlug}/?website_url={websiteUrl}",GET_TOGETHER_POST_COMMENT:"comment?website_url={websiteUrl}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",GET_TOGETHER_COMMUNITY_DETAIL:"community/{communityId}?website_url={websiteUrl}",GET_TOGETHER_COMMUNITY_DETAIL_AUTH:"auth/community/{communityId}?website_url={websiteUrl}",POST_VALIDATE_ASK_DOCTOR:"validate-ask-doctor-post",GET_TOGETHER_SUGGESTED_POST:"suggested-post?topic_id={topicId}&website_url={websiteUrl}",POST_CREATE_POST:"post/create?website_url={websiteUrl}",POST_TOGETHER_JOIN_COMMUNITY:"community/join?website_url={websiteUrl}",POST_TOGETHER_JOIN_TOPIC:"topic/join?website_url={websiteUrl}",POST_TOGETHER_LEAVE_TOPIC:"topic/leave?website_url={websiteUrl}",GET_TOGETHER_USER_POSTS:"profile/posts?website_url={websiteUrl}",GET_TOGETHER_USER_AUTHORIZE:"auth/user/{userId}",IMAGE_UPLOAD:"comment/image/upload?website_url={websiteUrl}",USER:{DETAIL:"profile/user/detail?website_url={websiteUrl}&user_id=0&email={email}&filter_by_email=1",LIST_POST:"profile/user/posts?website_url={websiteUrl}&user_id={id}&hhd_expert_id={hhgExpertId}&is_anonymous={isAnonymous}&paging=none&items_per_page={pageSize}",LIST_ANSWERS:"replied/{id}?website_url={websiteUrl}&paging=1&items_per_page={pageSize}&filter_by_expert_hhd={filterByExpertHhd}"},FETCH_PREVIEW:"fetch/preview/?website_url={websiteUrl}",FETCH_MULTI_PREVIEW:"fetch/preview-multi/?website_url={websiteUrl}",HEALTH_TOOL:{CREATE:"health-profile/create?website_url={websiteUrl}",GET_STATUS:"health-profile/{type}/get-status?website_url={websiteUrl}"},GET_ELASTIC_SEARCH:"elasticsearch/search?lang={lang}&website_url={websiteUrl}&keyword={keyWord}&paged={page}&per_page={pageSize}&type={type}",COUNT_ELASTIC_SEARCH:"elasticsearch/count-total?website_url={website_url}&keyword={keyword}"},CARE:{GET_CARE_GEOBYIP:"geobyip?latitude={latitude}&longitude={longitude}&site={site}",GET_CARE_LIST_EMBEDDING:"{type}?site={site}&city_id={cityId}&random=1&{type_id}={id}&recommend_same_province=1",GET_CARE_SPECIALTY_DETAIL:"specialties/{specialtyId}?site={site}",GET_CARE_SERVICE_TYPE_DETAIL:"service-types/{serviceTypeId}?site={site}&keyword={keyword}",GET_CARE_CITY_LIST:"lists/cities?keyword={keyword}&site={site}&_nopaging=1",GET_SPECIALTY_LIST:"specialties?site={site}",GET_SEARCH_CARE:"search/?site={site}&keyword={keyword}&city_id={cityId}&district_id={districtId}&type={type}&specialty_id={specialtyId}&specialty_ids={specialtyIds}&doctor_specialty_id={doctorSpecialtyId}&doctor_ids={doctorIds}&service_id={serviceId}&hospital_branch_name={hospitalBranchName}&latitude={latitude}&longitude={longitude}&distance={distance}&page={page}&per_page={perPage}&show_districts={showDistricts}&_nopaging={noPaging}&is_discover={allowSearchInDistrict}&care_path={isCarePath}&skip_booking={skipBooking}",GET_HOSPITAL_BRANCH_LIST:"/hospital/branch?site={site}&keyword={keyword}",GET_HOSPITAL_DETAIL:"hospital/branch/{id}?site={site}",GET_DOCTOR_LIST:"doctors?site={site}&keyword={keyword}&hospital_id={hospitalId}&random={random}&city_id={cityId}&page={page}&specialty_id={specialtyId}&hospital_branch_id={hospitalBranchId}",GET_DOCTOR_DETAIL:"doctors/{id}?site={site}",GET_DOCTOR_SCHEDULE:"doctors/{id}/schedule?site={site}&from_date={startDate}&to_date={endDate}",GET_SERVICE_SCHEDULE:"hospital/service/{serviceId}/schedule?site={site}&from_date={startDate}&to_date={endDate}",GET_SERVICE_DETAIL:"hospital/service/{serviceId}?site={site}",GET_ALL_SERVICE_BASED_ON_SERVICE:"hospital/services?site={site}&hospital_branch_id={hospitalBranchId}",GET_BRANCH_DETAIL:"search/?site={site}&type={type}&hospital_branch_id={id}",GET_TOP_SERVICES:"options/top_services?site={site}&show_district={showDistrict}&city_id={cityId}&categories={categoryIds}",GET_CITY_ID_BY_LAT_LNG:"geobyip?site=hellobacsi.com&latitude={lat}&longitude={lng}",GET_LISTING_POPULAR:"v4/listing-popular?site={site}",GET_LISTING_DETAIL:"v4/listing?site={site}&product_type={productType}",GET_LISTING_FEEDBACK:"v4/listing-feedback?site={site}",GET_SEARCH_LISTING:"v4/listing-home-search?site={site}&keyword={keyword}"},LEADGEN:{POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_LEAD_SEND_OTP:"sms/otp",POST_LEAD_VERIFY_OTP:"sms/verify",POST_LEAD_GET_LOG:"collection/get-data",POST_LEAD_UPDATE_LOG:"collection/log",POST_LEAD_CHECK_PHONE_LOG:"collection/log/check-phone",POST_LEAD_FRISO_VERIFY_PHONE_EXIST:"friso/check",POST_LEAD_VERIFY_EXIST_EMAIL:"collection/log/check-email",POST_LEAD_VERIFY_EXIST_PHONE:"collection/log/check-phone-with-campaign",GET_FORMULA_CTA:"formula-cta?category_id={categoryIds}&country_code={countryCode}",GET_CTA_SUBMIT:"collection/cta-submit",POST_TRACKING_OTHERS:"collection/tracking-others"},SIDIS:{GET_UNSUBSCRIPTION:"unsubscription?eid={eid}&cid={cid}&tid={tid}",PUT_UNSUBSCRIPTION_UPDATE:"unsubscription",GET_SIDIS_TEMPLATE_BY_SLUG:"api/templates/get-by-slug/?domain={domain}&slug={slug}",POST_SIDIS_DUE_DATE:"frontend/tools/due_dates",POST_SIDIS_OVULATION:"frontend/tools/ovulations",POST_SIDIS_BMI:"frontend/tools/bmis",POST_SIDIS_BMR:"frontend/tools/bmrs",POST_SIDIS_THR:"frontend/tools/heart-rates",POST_SIDIS_PWG:"frontend/tools/pregnancies",GET_SIDIS_BMI:"api/bmis/{resultId}",GET_SIDIS_BMR:"api/bmrs/{resultId}",GET_SIDIS_THR:"api/heart-rates/{resultId}",GET_SIDIS_PWG:"api/pregnancies/{resultId}",GET_SIDIS_HEALTH_INFO:"api/my-profile/health-info",GET_SIDIS_RISK_SCREENERS:"api/my-profile/my-health/risk-screeners",GET_SIDIS_RISK_SCREENERS_ID:"api/my-profile/my-health/risk-screeners/{id}"},SUBOT:{POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},COMMON:{GET_PROVINCE:"provinces?country_code={countryCode}",GET_DISTRICT:"districts?parent_id={parentId}",GET_COMMUNE:"communes?parent_id={parentId}",GET_FOOTER_INFO:"footer",GET_AFFILIATE_PRODUCT:"product/{productId}",GET_CAROUSEL:"carousel/{id}",GET_ABOUT_US_DATA:"about",GET_ADS_TXT:"adspage",POST_UPDATE_LOCATION:"tracking/geo/",GET_AUTHOR:"author/{slug}",GET_PAGE_STATIC:"page/{slug}",BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ABOUT_US_META_TAG:"/about",GET_APP_LANDING_PAGE:"landing-page/tai-app",POST_HHG_CONTACT_FORM:"hhg-contact/v1/submit"},BABY_VACCINE:{POST_SUB_CHANNEL:"frontend/api/channels/registrations?site={domain}",POST_SUB_CHANNEL_DETAIL:"frontend/api/channels?site={domain}",GET_MAIN_TIMELINES:"frontend/api/babies/{babyId}/schedules?site={domain}",POST_RECORD_TIMELINE:"frontend/api/babies/{babyId}/timelines/records?site={domain}",DELETED_RECORD_TIMELINE:"frontend/api/babies/{babyId}/timelines/records/{idRecord}?site={domain}",GET_RESULT_BABY_VACCINE_INFO:"vaccination/result?site={domain}",POST_RECORD_IN_VACCINE_DETAIL:"frontend/api/babies/{babyId}/vaccines/{vaccineId}/records?site={domain}",DELETE_RECORD_IN_VACCINE_DETAIL:"frontend/api/babies/{babyId}/vaccines/{vaccineId}/records/{recordId}?site={domain}",PUT_BABY_DETAIL:"frontend/api/babies/{babyId}?site={domain}",DELETE_BABY:"frontend/api/babies/{babyId}?site={domain}",GET_BANNER_BABY_VACCINE:"frontend/api/banners?site={domain}",ADD_MEASUREMENT:"frontend/api/babies/{babyId}/measurements?site={domain}",GET_HEALTH_TOOL_BABY_VACCINE_INFO:"vaccination/info?site={domain}",GET_HEALTH_TOOL_BABY_VACCINE_LIST:"frontend/api/babies?site={domain}",GET_HEALTH_TOOL_BABY_DETAIL:"frontend/api/babies/{babyId}?site={domain}",GET_GROWTH_CHART_LATEST:"frontend/api/tools/growth-chart?site={domain}",GET_VACCINATION_TOOL_LATEST:"frontend/api/tools/vaccination?site={domain}",GET_HEALTH_TOOL_BABY_DETAIL_V2:"frontend/api/v2/babies/{babyId}?site={domain}",GET_HEALTH_TOOL_BABY_IMMUNIZATION_V2:"frontend/api/v2/babies/{babyId}/statics?site={domain}",GET_VACCINE_DETAIL:"frontend/api/v2/babies/{babyId}/vaccines/{vaccineId}?site={domain}",ADD_INJECTED_DATE:"frontend/api/v2/babies/{babyId}/vaccines/{vaccineId}/records?site={domain}"},USER_PROFILE:{GET_PROFILE:"user/profile/",GET_TOKENS_UID2:"user/uid2",SSO_USER_PROFILE:"user",POST_LOGOUT:"user/logout",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",POST_USER_REFRESH:"v1/user/refresh"},PREMIUM:{GET_SUGGESTED_TOPIC:"api/v1/categories?external_id={externalId}&site={site}",GET_NEWSLETTER_CATEGORIES:"api/v1/categories?site={site}",POST_SUBSCRIPTION:"api/v1/subscription?site={site}",TEMP_POST_SUBSCRIPTION:"api/v1/subscription/temporary?site={site}",TEMP_POST_SUBSCRIPTION_OFFICIAL:"api/v1/subscription/official?site={site}",TEMP_GET_NEWSLETTER_CATEGORIES:"api/v1/categories/temporary?site={site}",GET_SUBSCRIPTION_CATEGORIES:"api/v1/categories?site={site}"},UNIFIED:{GET_USER_FIELDS:"api/user/fields?site={site}"},ECOMMERCE:{GET_PRODUCT_DETAIL_BY_LIST_IDS:"catalog/products?sku={skuList}",GUEST_GET_CART_ID:"guest-carts",GUEST_ADD_ITEM_TO_CART:"guest-carts/{cartId}/items",GUEST_GET_CART:"guest-carts/{cartId}",GUEST_GET_CART_TOTALS:"guest-carts/{cartId}/totals",GET_CART_ID:"carts/mine",ADD_ITEM_TO_CART:"carts/mine/items",GET_CART:"carts/mine",GET_CART_TOTALS:"carts/mine/totals",MERGE_GUEST_CART_TO_MINE:"guest-carts/{cartId}"},CHATBOT:{SEND_MESSAGE:"{project}/v1/reply",GET_CHAT_HISTORY:"{project}/v1/users/{userId}/chats/{chatId}"},VIDEOS:{GET_LANDING_PAGE:"landing-page/videos/",GET_LISTING:"videos?type={type}&tags={tags}&order_by={orderBy}&page={page}&per_page={pageSize}",GET_VIDEO_DETAIL:""},RAMADAN_WIDGET:{GET_ZONES:"ramadan-widget/zones",GET_PRAYER_TIMES:"ramadan-widget/prayer-times?zone={zoneId}&lat={lat}&lon={lng}&date={date}"},OPEN_HEALTH_TOOLS:{BMI_LOG:"api/v1/bmi/log"},POLL_WIDGET:{GET_WIDGETS:"poll-article/polls?poll_ids={ids}",GET_RESULT:"poll-article/results/{id}?user_id={userId}",POST_VOTE:"poll-article/vote"},RATING_REVIEW:{POST_RATING_REVIEW:"rating-review",GET_RATING_REVIEWS:"rating-reviews?collection_id={collectionId}&rating={rating}&page={page}&per_page={perPage}"},HOMEPAGE:{GET_HOMEPAGE_SETTING:"home/settings",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_HOMEPAGE_BANNER:"home/home-banner",GET_HOMEPAGE_SIDE_BANNER:"home/side-banner",GET_HOMEPAGE_FOOTER_BANNER:"home/footer-banner",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_HOMEPAGE_COMMUNITY_DATA:"home/community",GET_HOMEPAGE_HEALTH_TOOL:"home/health-tools",GET_HOMEAGE_SCHEMA:"home/schema",GET_HOME_VIDEOS:"home/videos/"}}},"Sb+D":function(e,t,a){a.d(t,{Cp:function(){return captureException},wd:function(){return captureMessage}});let debug_showDebug=()=>"undefined"==typeof localStorage||"true"===localStorage.getItem("hhg_debug"),i=null,getSentry=async()=>i||((i=await a.e(2538).then(a.bind(a,"4Q42")))?(i.init({dsn:"https://a9c5a9ddf01e4f4c88e80bf43c490a8f@sentry.hellohealthgroup.com/15",tracesSampleRate:.1,environment:"production",beforeSend:function(e){return -1!==window.location.search.indexOf("fbclid")?null:e}}),i):null),captureException=async function(){for(var e=arguments.length,t=Array(e),a=0;aS Exception",t):null)},captureMessage=async function(){for(var e=arguments.length,t=Array(e),a=0;aS Message",t):null)}},"77FC":function(e,t,a){a.d(t,{H4:function(){return logApiCall}});var i=a("Sb+D");let r={},logApiCall=(e,t,a,o,s)=>{setTimeout(()=>{if(r[t]&&r[t]===JSON.stringify(s))return;r[t]=JSON.stringify(s);let n={"user-id":o,path:t,method:a,body:null==e?void 0:e.data,locale:"vi-VN",error:s};(0,i.wd)("clientSide_logs_api_call",{level:"log",extra:n})},0)}},q6HN:function(e,t,a){a.d(t,{m:function(){return Container}});var i=a("BGKE"),r=a("TSYQ"),o=a.n(r);let Container=e=>{let{className:t,isFluid:a,...r}=e;return(0,i.Y)("div",{className:o()("hhg-page-container",t,{fluid:a}),...r})}},SHon:function(e,t,a){a.d(t,{W:function(){return HideAdsProvider},w:function(){return AdBlockContainer}});var i=a("BGKE"),r=a("+OUp"),o=a("AG8C"),s=a("VtAy");let n=(0,r.createContext)(!1),HideAdsProvider=e=>{let{hideAds:t,children:a}=e;return(0,i.Y)(n.Provider,{value:t,children:a})},AdBlockContainer=e=>{let{children:t,hidden:a=!1}=e,{locale:l}=(0,o.$)(),d=(0,r.useContext)(n),c=null===s.Km||void 0===s.Km?void 0:s.Km.includes(l);return c||a||d?null:(0,i.Y)(i.FK,{children:t})}},WkTD:function(e,t,a){a.r(t),a.d(t,{FixedBottomAdBlock:function(){return FixedBottomAdBlock}});var i=a("BGKE"),r=a("+OUp"),o=a("4BRW"),s=a("Q6jF"),n=a("AG8C"),l=a("Ud3P"),d=a("moN4");let FixedBottomAdBlock=e=>{let{className:t="",adUnitPath:a,divId:c,isMobile:_,contentId:E,ignoreRefreshAd:T=!1,customTargetings:p,...u}=e,{locale:g}=(0,n.$)(),[m,h]=(0,r.useState)(!0),[I,A]=(0,r.useState)(!1),[S,O]=(0,r.useState)(!0),L=(0,r.useRef)(null),b=(0,r.useRef)((0,s.A)()),f=(0,r.useRef)(null),y=(0,r.useRef)(),G=(0,r.useRef)();return((0,r.useEffect)(()=>{let checkAdShowing=()=>{G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{if(document.getElementById("subot--container"))h(!0);else{var e;h(!1),(null===(e=L.current)||void 0===e?void 0:e.clientHeight)?O(!1):O(!0)}checkAdShowing()},4e3)};return checkAdShowing(),()=>{y.current&&clearTimeout(y.current),G.current&&clearTimeout(G.current)}},[]),m||I)?null:(0,i.Y)(d.kc,{ref:f,className:"".concat(t," sticky-bottom-ad"),"data-visible":!S,...u,children:a&&(0,i.Y)(l.AdBlock,{wrapperProps:{m:0},ref:L,adUnitPath:a,size:_?[[320,50],[320,100],[1,1]]:[[728,90],[1,1]],divId:(c||"div-gpt-ad-sticky")+(_?"-mobile":"")+E+String(b.current),pos:["Sticky"],contentId:E,hideIfHasSubot:_,customTargetings:p,adDefaultSize:_?[320,50]:[728,90],showCloseBtn:!0,onCloseAd:()=>A(!0),refreshInterval:g===o.L.Vietnam?30:60,ignoreRefreshAd:T})},_?"mobile":"desktop")}},B5fr:function(e,t,a){a.d(t,{Z:function(){return VideoLibrary}});var i=a("BGKE"),r=a("+OUp"),o=a("yUew"),s=a("E+gi"),n=a("P+HS"),l=a("vH4S"),d=(0,l.createStyles)(()=>({root:{},heading:{},player:{},otherList:{}}));let VideoLibrary=e=>{let{videoList:t=[],styles:a,autoPlay:c=!1,classNames:_,className:E,slideSize:T,dataEventCategoryForList:p="Recommend Video",isMobile:u,...g}=e,{classes:m,cx:h}=d(void 0,{name:"VideoLibrary",styles:a,classNames:_}),[I,A]=(0,r.useState)((null==t?void 0:t[0])||null),[S,O]=(0,r.useState)(null),[L,b]=(0,r.useState)(c),f=(0,l.useMantineTheme)(),y=(0,r.useMemo)(()=>t.length>1,[t]),G=(0,r.useMemo)(()=>t.length>2,[t]);return t.length>0?(0,i.Y)(l.Box,{className:h(m.root,E),...g,children:(0,i.FD)(l.Stack,{spacing:24,sx:e=>({[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:8}}),children:[I&&(0,i.Y)(l.Box,{className:m.player,children:(0,i.Y)(o.S,{url:I.url||"",autoPlay:L},I.url)}),y&&(0,i.Y)(l.Box,{className:m.otherList,children:(0,i.Y)(n.Carousel,{slidesToScroll:1,slideSize:T||"38%",slideGap:24,breakpoints:[{maxWidth:"sm",slideSize:T||"46%",slideGap:8}],withIndicators:!1,withControls:!u&&G,align:"start",loop:!1,getEmblaApi:O,styles:e=>({indicators:{bottom:"auto",top:"calc(100% + 30px - 8px)"},indicator:{width:"8px",height:"8px",opacity:1,backgroundColor:f.colors.neutral[5],"&[data-active]":{backgroundColor:f.colors.blue[7]},".mantine-Carousel-control[data-inactive]":{opacity:0,cursor:"default"}},control:{width:40,height:40,opacity:1,borderColor:e.fn.primaryColor(),transition:"all .2s ease",svg:{width:"18px !important",height:"18px !important",color:e.fn.primaryColor()},"&:hover":{backgroundColor:e.fn.primaryColor(),svg:{color:"#fff"}}},controls:{padding:0,marginLeft:-20,marginRight:-20,top:"calc((100% - 70px)/2)",transform:"translateY(-50%)"},viewport:{[e.fn.smallerThan("sm")]:{paddingLeft:8,paddingRight:8}}}),children:t.map((e,t)=>(0,i.Y)(n.Carousel.Slide,{children:(0,i.Y)(s.V,{data:{...e,active:e.url===(null==I?void 0:I.url)},disableDefaultFn:!0,onClick:a=>{a.preventDefault(),b(!0),A(e),null==S||S.scrollTo(t)},dataEventCategory:p,dataEventAction:"Video Click ".concat(t+1),sx:{cursor:"pointer"}})},String(t)))})})]})}):null}},NwNR:function(e,t,a){a.d(t,{p3:function(){return MastheadAd}});var i=a("BGKE"),r=a("+OUp"),o=a("rBCA"),s=a("CL9C"),n=a("iBNF"),l=a("vH4S");a("ns0B");var d=a("dDsW"),c=a("Ud3P"),_=a("moN4");a("P7Ch");var E=a("a5L+");a("AG8C");var T=a("U6DU"),p=a("imPi");let MastheadAd=e=>{let{adUnitPath:t,customTargetting:a,isSponsored:o,defaultNoScroll:n,initialSticky:g=!1,className:m,hasPlaceholder:h,onCloseAd:I,containerClassName:A}=e,{formatMessage:S}=(0,d.A)(),O=(0,E.a)(),[L,b]=(0,r.useState)(!!h),[f,y]=(0,r.useState)(g);return(0,r.useEffect)(()=>{let e=null,checkShowPadding=()=>{p.$.measure(()=>{let e=document.querySelector("[id^=super-masthead-ad-]");((null==e?void 0:e.getBoundingClientRect().height)||0)>10&&b(!0)}),e=setTimeout(checkShowPadding,1e3)};return e=setTimeout(checkShowPadding,1e3),(0,T.GF)(()=>{let{googletag:e}=window;(null==e?void 0:e.pubads)&&e.pubads().addEventListener("slotRenderEnded",e=>{var t;(null===(t=e.slot)||void 0===t?void 0:t.getSlotElementId().startsWith("super-masthead-ad"))&&(setTimeout(()=>{y(!1)},4e3),setTimeout(()=>{var e;null===(e=document.querySelector("html"))||void 0===e||e.classList.remove("ad-noscroll")},700))})}),setTimeout(()=>{var e;null===(e=document.querySelector("html"))||void 0===e||e.classList.remove("ad-noscroll")},1500),()=>{e&&clearTimeout(e)}},[]),(0,i.Y)(l.Box,{className:A,sx:e=>({...h&&{position:"relative",height:234,backgroundColor:"#f8f9fc",".article-masthead":{position:"absolute",top:0,right:0,bottom:0,left:0},[e.fn.largerThan("sm")]:{height:296}},[e.fn.smallerThan("sm")]:{...f&&{position:"sticky",top:0,zIndex:304,width:"100%",overflow:"hidden"}}}),children:(0,i.Y)(i.FK,{children:(0,i.FD)(u,{"data-visible":L,"data-sponsored":o,"data-sticky":f,className:m,children:[n&&(0,i.Y)("script",{async:!0,dangerouslySetInnerHTML:{__html:"\n if (window.innerWidth > ".concat(s.B.BREAK_POINT_MOBILE,") {\n document.querySelector('html')?.classList.add('ad-noscroll')\n }\n ")}}),L&&(0,i.FD)(_.AY,{children:[(0,i.Y)("img",{src:"/svg/adsIcon.svg",alt:"ads sign icon",loading:"lazy"}),(0,i.Y)("span",{children:S({id:"adBanner.title",defaultMessage:"Advertisement"})})]}),(0,i.Y)(c.AdBlock,{adUnitPath:t,size:O?[[414,200],[375,188],[1,1]]:[[970,250],[1,1]],divId:"super-masthead-ad-".concat(O?"mobile":"desktop","-").concat(null==a?void 0:a.Content_ID),pos:["masthead"],customTargetings:a,contentId:String(null==a?void 0:a.Content_ID),adDefaultSize:[0,0],noWrapper:!0,showCloseBtn:!0,wrapperProps:{m:0},onCloseAd:I},String(O))]})})})},u=(0,o.A)("div",{target:"e838u5x0"})("background:",n.w.colors.neutral50,";&[data-visible='true']{padding:1rem 0;&[data-sponsored='true']{padding:0 0 1rem;}}")},I3oT:function(e,t,a){a.r(t),a.d(t,{VIDEO_PAGE_HIGHLIGHT_TAB_NAME:function(){return F},VideoPage:function(){return VideoPage}});var i,r,o=a("BGKE"),s=a("+OUp"),n=a("Imrq"),l=a("AG8C"),d=a("9brV"),c=a("Wbba"),_=a("P+HS"),E=a("vH4S"),T=a("/zZM"),p=a.n(T),u=a("dDsW"),g=a("q6HN"),m=a("SHon"),h=a("WkTD"),I=a("B5fr"),A=a("a5L+"),S=(0,E.createStyles)(e=>({root:{position:"relative",[e.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16}},inner:{display:"flex",flexDirection:"column",gap:24},player:{},otherList:{[e.fn.smallerThan("sm")]:{".mantine-Carousel-viewport":{padding:0}}},tabList:{display:"flex",gap:24,borderBottom:"1px solid ".concat(e.colors.neutral[1])},tab:{paddingBottom:8,color:"#8c8c8c",borderBottom:"2px solid transparent","&:hover":{color:e.fn.primaryColor()},"&.active":{color:e.fn.primaryColor(),borderBottomColor:e.fn.primaryColor()}}}));let FeatureVideoWithTabs=e=>{let{videos:t=[],styles:a,classNames:i,className:r,...s}=e,{classes:n,cx:l}=S(void 0,{name:"FeatureVideoWithTabs",styles:a,classNames:i}),d=(0,A.a)();return t.length>0?(0,o.Y)(E.Box,{className:l(n.root,r),...s,children:(0,o.Y)(g.m,{className:n.inner,children:(0,o.Y)(I.Z,{slideSize:d?"46%":"25%",classNames:{player:n.player,otherList:n.otherList},videoList:t,dataEventCategoryForList:"Highlight Video"})})}):null};var O=(0,E.createStyles)((e,t)=>{let{fullWidthBanner:a,bannerMobile:i,bannerDesktop:r}=t,o=a&&i&&r;return{root:{...!o&&{backgroundImage:"url(".concat(c.C.getAssetPath("video-pages/banner-bg-m.jpg"),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",[e.fn.largerThan("sm")]:{backgroundImage:"url(".concat(c.C.getAssetPath("video-pages/banner-bg-d.jpg"),")")}},...o&&{backgroundImage:"url(".concat(r,")"),[e.fn.smallerThan("sm")]:{backgroundImage:"url(".concat(i,")")},backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",width:"100%"}},inner:{display:"flex",justifyContent:"space-between",minHeight:220,[e.fn.smallerThan("sm")]:{flexDirection:"column",alignItems:"center",gap:0},[e.fn.largerThan("sm")]:{alignItems:"center",minHeight:280}},info:{display:"flex",flexDirection:"column",gap:16,maxWidth:552},title:{[e.fn.smallerThan("sm")]:{minHeight:64,display:"flex",alignItems:"center"}},thumbnail:{},thumbnailImg:{display:"block",[e.fn.smallerThan("sm")]:{maxHeight:156},[e.fn.largerThan("sm")]:{maxHeight:280}},desc:{[e.fn.smallerThan("sm")]:{display:"none"}}}});let HeaderBanner=e=>{let{title:t,description:a,backgroundBanner:i,fullWidthBanner:r,bannerDesktop:s,bannerMobile:n,styles:l,classNames:d,className:c,...T}=e,{classes:p,cx:u}=O({fullWidthBanner:r,bannerDesktop:s,bannerMobile:n},{name:"HeaderBanner",styles:l,classNames:d});return(0,o.Y)(E.Box,{className:u(p.root,c),...T,children:(0,o.Y)(g.m,{children:(0,o.FD)(E.Box,{className:p.inner,children:[(0,o.FD)(E.Box,{className:p.info,children:[t&&(0,o.Y)(E.Box,{className:p.title,children:(0,o.Y)(_.Text,{size:"h2",as:"h1",lineClamp:2,children:t})}),a&&(0,o.Y)(_.Text,{size:"p3",className:p.desc,children:a})]}),!r&&i&&(0,o.Y)(E.Box,{className:p.thumbnail,children:(0,o.Y)("img",{loading:"lazy",src:i,alt:t,className:p.thumbnailImg})})]})})})};var L=a("E+gi"),b=a("HG5m"),f=(0,E.createStyles)(e=>({root:{[e.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16}}}));let ShortReelList=e=>{let{videoList:t=[],slideNumberDesktop:a,slideNumberMobile:i,styles:r,...s}=e,n=(0,A.a)(),{classes:l}=f(void 0,{name:"ShortReelList",styles:r});return t.length>0?(0,o.Y)(E.Box,{className:l.root,...s,children:t.length>0?(0,o.Y)(_.Carousel,{slideSize:"15.8%",slideGap:12,breakpoints:[{maxWidth:"sm",slideSize:"55%",slideGap:8}],withControls:!n,withIndicators:!1,styles:e=>({control:{width:40,height:40,opacity:1,borderColor:e.fn.primaryColor(),transition:"all .2s ease",svg:{width:"18px !important",height:"18px !important",color:e.fn.primaryColor()},"&:hover":{backgroundColor:e.fn.primaryColor(),svg:{color:"#fff"}}},controls:{padding:0,marginLeft:-20,marginRight:-20,top:"50%",transform:"translateY(-50%)"},viewport:{[e.fn.smallerThan("sm")]:{paddingLeft:16,paddingRight:16}}}),children:t.map((e,t)=>(0,o.Y)(_.Carousel.Slide,{children:(0,o.Y)(L.V,{data:e,layout:"overlay",dataEventCategory:"Highlight Video",dataEventAction:"Short Video Click ".concat(t+1),dataEventLabel:e.url,forceTypeModal:b.V.SHORTS})},String(t)))}):null}):null};var y=a("ysNr"),G=(0,E.createStyles)(e=>({root:{".videos-ad-block":{margin:0}},inner:{[e.fn.smallerThan("sm")]:{display:"flex",flexDirection:"column",alignItems:"center",gap:16}},adsLayout:{display:"flex",justifyContent:"space-between",gap:24,[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:16}}}));let VideoListing=e=>{let{videos:t=[],layout:a="grid",showAds:i=!0,adUnitPath:r,title:n,styles:l,classNames:d,dataTrackingName:c="",dataEventCategory:T,...p}=e,u=(0,A.a)(),{classes:g,theme:m}=G(void 0,{name:"HeaderBanner",styles:l,classNames:d}),h=(0,s.useMemo)(()=>u?4:"grid"===a?8:i?8:16,[u]),I=(0,s.useMemo)(()=>t.slice(0,h),[h]);return(0,o.Y)(E.Box,{className:g.root,...p,children:"grid"===a?(0,o.Y)(E.SimpleGrid,{cols:u?1:4,children:I.map((e,t)=>(0,o.Y)(L.V,{data:e,dataEventCategory:T,dataEventAction:"".concat(c," Click ").concat(t+1)},String(t)))}):(0,o.FD)(E.Box,{className:g.inner,children:[i&&u&&r&&(0,o.FD)(o.FK,{children:[n&&(0,o.Y)(_.Text,{size:"h3",as:"h2",sx:{alignSelf:"flex-start"},children:n}),(0,o.Y)(y.A,{wrapperProps:{my:"1rem",mx:"auto"},adUnitPath:r,size:[[300,250],[300,600]],divId:"videos-top-banner-mobile",pos:["TopBanner"],className:"videos-ad-block"})]}),i?(0,o.FD)(E.Box,{className:g.adsLayout,children:[(0,o.Y)(E.Stack,{sx:{gap:16,[m.fn.largerThan("sm")]:{gap:40}},children:I.map((e,t)=>(0,o.Y)(L.V,{data:e,layout:"horizon",dataEventCategory:T,dataEventAction:"".concat(c," Click ").concat(t+1)},String(t)))}),!u&&r&&(0,o.Y)(y.A,{adUnitPath:r,size:[[300,250]],divId:"videos-top-banner-desktop",pos:["TopBanner"],className:"videos-ad-block"})]}):(0,o.Y)(E.SimpleGrid,{cols:u?1:2,sx:{gap:16,rowGap:16,[m.fn.largerThan("sm")]:{gap:40,rowGap:40}},children:I.map((e,t)=>(0,o.Y)(L.V,{data:e,layout:"horizon",dataEventCategory:T,dataEventAction:"".concat(c," Click ").concat(t+1)},String(t)))})]})})};var P=a("NwNR"),v=a("/sjq"),C=a("wA0V"),R=a("suM+"),N=a("U6DU"),D=a("4Qlo"),H=(0,E.createStyles)((e,t)=>{let{isHighlightTab:a}=t;return{bannerWrapper:{position:"relative"},breadcrumb:{position:"absolute",top:16,left:0,right:0,[e.fn.smallerThan("sm")]:{display:"none"}},filterArea:{...!a&&{display:"flex",gap:16,[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{justifyContent:"space-between",alignItems:"center"}}},filterBar:{display:"flex",gap:8},featureVideo:{display:"flex",flexDirection:"column",gap:16,[e.fn.largerThan("sm")]:{gap:40}},tabList:{display:"flex",gap:24,borderBottom:"1px solid ".concat(e.colors.neutral[1])},tab:{display:"inline-block",paddingBottom:8,color:"#8c8c8c",borderBottom:"2px solid transparent","&:hover":{color:e.fn.primaryColor()},"&.active":{color:e.fn.primaryColor(),borderBottomColor:e.fn.primaryColor()}}}}),B=a("wo9K"),U=a("O/o9"),w=a("JOt+"),M=a("qqwk"),k=a("LSb+"),Y=(0,E.createStyles)(()=>({root:{},inner:{position:"relative",display:"flex",flexDirection:"column",gap:40}}));let ListingPage=e=>{let{videos:t=[],orderBy:a=r.LATEST,type:i,styles:n,classNames:c,...T}=e,{formatMessage:p}=(0,u.A)(),{classes:m}=Y(void 0,{name:"Videos__ListingPage",styles:n,classNames:c}),{ref:h,inView:I}=(0,U.Wx)(),{query:S}=(0,l.$)(),{slug:O,id:f,...y}=S,[G,P]=(0,s.useState)(t),[v,C]=(0,s.useState)(!1),[R,N]=(0,s.useState)(!1),[H,x]=(0,s.useState)(1),[V,F]=(0,s.useState)(!1),[K,W]=(0,s.useState)(null),z=(0,A.a)(),X=(0,s.useCallback)(async(e,t)=>{var a,o,s,n,l;C(!0),t&&N(!0);let d=await (0,w.callApiNew)(k.PATHS.VIDEOS.GET_LISTING,{method:"GET",params:{page:1,orderBy:r.LATEST,type:i,...e,pageSize:i!==b.V.SHORTS||z?20:18}});C(!1),t&&N(!1);let c=(null==d?void 0:null===(a=d.data)||void 0===a?void 0:a.videos)||[];P(e=>[...t?[]:e,...c.map(e=>(0,M.yf)(e))]),F(0==c.length||(null==d?void 0:null===(s=d.data)||void 0===s?void 0:null===(o=s.paging)||void 0===o?void 0:o.current_page)===(null==d?void 0:null===(l=d.data)||void 0===l?void 0:null===(n=l.paging)||void 0===n?void 0:n.max_num_pages))},[i,z]);return(0,s.useEffect)(()=>{let e=JSON.parse(localStorage.getItem(d.pc)||"{}");String(null==e?void 0:e.id)===f&&(W(e),localStorage.removeItem(d.pc))},[]),(0,s.useEffect)(()=>{X({type:i,orderBy:r.LATEST,page:1,...y},!0)},[i]),(0,s.useEffect)(()=>{!I||V||v||x(e=>e+1)},[I]),(0,s.useEffect)(()=>{X({type:i,orderBy:a,page:1,...y},!0),F(!1)},[a]),(0,s.useEffect)(()=>{H>1&&X({type:i,orderBy:a,page:H,...y})},[H]),(0,o.FD)(o.FK,{children:[(0,o.Y)(E.Box,{...T,children:(0,o.FD)(g.m,{className:m.inner,children:[(0,o.Y)(E.LoadingOverlay,{zIndex:1,keepMounted:!0,visible:R,transitionDuration:300}),G.length>0&&(0,o.Y)(E.SimpleGrid,{spacing:i===b.V.SHORTS?8:24,verticalSpacing:z?16:24,cols:i===b.V.SHORTS?z?2:6:z?1:4,children:G.map((e,t)=>(0,o.Y)(L.V,{data:e,dataEventCategory:"".concat((0,D.Z)(i)," Video"),dataEventAction:"".concat((0,D.Z)(i)," Video Click ").concat(t+1)},String(t)))}),0===G.length&&V?(0,o.Y)(E.Flex,{justify:"center",children:(0,o.FD)(E.Stack,{spacing:24,justify:"center",children:[(0,o.Y)(E.AspectRatio,{ratio:247/154,w:400,children:(0,o.Y)("img",{loading:"lazy",src:"/svg/not-found.svg",alt:"not found"})}),(0,o.Y)(_.Text,{size:"p3",sx:{textAlign:"center"},children:p({id:"rateReview.noResult",defaultMessage:"No Results Found"})})]})}):(0,o.Y)(E.Box,{ref:h,sx:{opacity:Number(!V&&I)},children:(0,o.Y)(B.L,{})})]})}),K&&(0,o.Y)(L.a,{opened:!!(null==K?void 0:K.videoId),data:K,onClose:()=>W(null),isMobile:z})]})};var x=a("iZ8j"),V=(0,E.createStyles)(e=>({root:{},inner:{display:"flex",flexDirection:"column",gap:16,[e.fn.largerThan("sm")]:{gap:40}},info:{display:"flex",flexDirection:"column",gap:16,maxWidth:552},thumbnail:{},thumbnailImg:{[e.fn.largerThan("sm")]:{maxHeight:280}},desc:{[e.fn.smallerThan("sm")]:{display:"none"}},action:{},seeMoreBtn:{[e.fn.smallerThan("sm")]:{width:"100%"}}}));let SessionWrapper=e=>{let{title:t,actionUrl:a,children:i,dataTrackingName:r,styles:s,classNames:n,className:d,...c}=e,{locale:T}=(0,l.$)(),{classes:m,cx:h}=V(void 0,{name:"Videos__SessionWrapper",styles:s,classNames:n}),{formatMessage:I}=(0,u.A)();return(0,o.Y)(E.Box,{className:h(m.root,d),...c,children:(0,o.FD)(g.m,{className:m.inner,children:[t&&(0,o.Y)(_.Text,{size:"h3",as:"h2",children:t}),i,a&&(0,o.Y)(E.Box,{className:m.action,children:(0,o.Y)(p(),{prefetch:!1,href:a,children:(0,o.Y)(_.Button,{variant:"secondary",rightIcon:(0,o.Y)(x.A,{color:"currentColor",size:18}),className:m.seeMoreBtn,dataEventCategory:"Highlight Video",dataEventAction:"See More ".concat(r),dataEventLabel:a.startsWith("https://")?a:"https://".concat(v.domainLocales[T]).concat(a),children:I({id:"home.seeMore"})})})})]})})};(i=r||(r={})).LATEST="latest",i.OLDEST="oldest",i.POPULAR="popular";let VideoLandingPage=e=>{let{videoLandingPage:t,videos:a,styles:i,classNames:r}=e,{formatMessage:n}=(0,u.A)(),{query:d,locale:T}=(0,l.$)(),{slug:I}=d,S=(0,A.a)(),O=(0,C.m)(),L=(0,s.useMemo)(()=>(null==I?void 0:I[1])||F,[I]),{classes:b,cx:f,theme:y}=H({isHighlightTab:L===F},{name:"VideoLandingPage",styles:i,classNames:r}),G=(0,s.useMemo)(()=>[{name:n({id:"choicePopover.latest"}),type:"latest"},{name:n({id:"choicePopover.oldest"}),type:"oldest"},{name:n({id:"choicePopover.popular"}),type:"popular"}],[]),[B,U]=(0,s.useState)("latest"),w=[{label:t.name||n({id:"videosPage.pageTitle",defaultMessage:"Videos"}),value:"/videos/"}],M=(0,N.oq)({countryAdTag:(0,N._3)(T,{isMobile:S}),contentAdTag:{result:"Videos",redundant:!0}});return(0,o.FD)(o.FK,{children:[!t.disableAd&&(0,o.FD)(m.w,{children:[(0,o.Y)(P.p3,{adUnitPath:M,className:"videos-masthead"}),(0,o.Y)(h.FixedBottomAdBlock,{adUnitPath:M,className:"videos-bottom-ad",isMobile:S})]}),(0,o.FD)(E.Stack,{sx:e=>({gap:16,paddingBottom:16,[e.fn.largerThan("sm")]:{paddingBottom:48,gap:48}}),children:[t.listSessions.map((e,a)=>(0,o.Y)(s.Fragment,{children:e.sessionLayout===R.k.HeadingBanner?(0,o.FD)(E.Box,{className:b.bannerWrapper,children:[(0,o.Y)(E.Box,{className:b.breadcrumb,children:(0,o.Y)(g.m,{children:(0,o.Y)(_.Breadcrumbs,{children:(w||[]).map(e=>(0,o.Y)(_.Breadcrumbs.Item,{href:e.value,...e,children:e.label},e.value))})})}),(0,o.Y)(HeaderBanner,{...e})]}):e.sessionLayout===R.k.FeatureVideo?(0,o.FD)(g.m,{className:b.featureVideo,children:[(0,o.FD)(E.Box,{className:b.filterArea,children:[(0,o.Y)(E.Box,{className:b.tabList,children:[{name:n({id:"videosPage.highlightTab"}),type:F},...e.tabList].map((e,t)=>(0,o.Y)(p(),{prefetch:!1,href:e.type===F?"/videos/":"/videos/".concat(e.type,"/"),"data-event-category":"Video Type","data-event-action":e.type,"data-event-label":"https://".concat(v.domainLocales[T]).concat(e.type===F?"/videos/":"/videos/".concat(e.type,"/")),children:(0,o.Y)(_.Text,{size:"s3",className:f(b.tab,L===e.type?"active":""),children:e.name})},String(t)))}),L!==F&&(0,o.Y)(E.Box,{className:b.filterBar,children:G.map(e=>{let t=B===e.type;return(0,o.Y)(_.Button,{variant:t?"secondary":"tertiary",onClick:()=>U(e.type),dataEventCategory:"".concat((0,D.Z)(L)," Video"),dataEventAction:(0,D.Z)(e.type),dataEventLabel:O,sx:{fontWeight:"normal",...t&&{backgroundColor:y.colors.blue[0]}},children:e.name},e.type)})})]}),L===F&&(0,o.Y)(FeatureVideoWithTabs,{...e})]}):L===F?(0,o.Y)(o.FK,{children:e.videos.length>0&&[R.k.HCPVideo,R.k.CategoriesVideo,R.k.ShortsVideo].includes(e.sessionLayout)?(0,o.Y)(SessionWrapper,{title:e.sessionLayout===R.k.CategoriesVideo&&!t.disableAd&&S&&"list"===e.layout?void 0:e.title,dataTrackingName:e.sessionLayout===R.k.HCPVideo?"HCP Video":e.sessionId,actionUrl:e.readMore,styles:t=>({root:{[t.fn.smallerThan("sm")]:{paddingTop:10,paddingBottom:10}},...e.sessionLayout===R.k.HCPVideo&&{root:{backgroundImage:"url(".concat(c.C.getAssetPath("video-pages/banner-hpc.jpg"),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",paddingTop:40,paddingBottom:40,[t.fn.largerThan("sm")]:{paddingTop:80,paddingBottom:80}},action:{[t.fn.largerThan("sm")]:{display:"flex",justifyContent:"center"}},seeMoreBtn:{borderColor:"transparent"}}}),children:e.sessionLayout===R.k.ShortsVideo?(0,o.Y)(ShortReelList,{slideNumberDesktop:7,videoList:e.videos}):(0,o.Y)(VideoListing,{title:e.title,videos:e.videos,adUnitPath:M,showAds:!t.disableAd,dataEventCategory:"Highlight Video",dataTrackingName:e.sessionLayout===R.k.HCPVideo?"HCP Video":e.sessionId,layout:e.sessionLayout===R.k.HCPVideo?"grid":e.layout})}):null}):null},String(a))),L!==F&&(0,o.Y)(ListingPage,{orderBy:B,videos:a,type:L})]})]})},F="highlight",VideoPage=e=>{let{videoLandingPage:t,footerInfo:a,dataNavMenuContent:i,activeTab:r,videos:c,tags:_}=e,[E,T]=(0,s.useState)(!1),{locale:p,asPath:u}=(0,l.$)();return(0,o.Y)(n.s,{title:t.name,image:d.El[p].HOMEPAGE_IMAGE,onTopBarAppears:e=>{T(e)},SEOData:{apiMetaData:t.metaTag,isIndexable:!0},footerInfo:a,dataNavMenuContent:i,languageOptions:(0,n.q)(p,u),activeMenuService:"video",children:(0,o.Y)(VideoLandingPage,{videoLandingPage:t,activeTab:r,videos:c,tags:_})})}},P7Ch:function(e,t,a){a.d(t,{C4:function(){return splitHtml2}});let splitByTag=(e,t,a)=>{let i=e.indexOf(t),r=e.substring(0,i),o=a.map(t=>({index:e.indexOf(t,i),length:t.length})),s=o.find(e=>e.index>-1);if(!s)return[r,e.substring(i),""];{let t=s.index+s.length,a=e.substring(i,t),o=e.substring(t);return[r,a,o]}},splitHtml2=e=>{let t=[],a=splitSpecialTag(e);return t.push(...a),t.filter(e=>!!e.trim())},i=[{identifier:'
","/>",">"]},{identifier:'
","/>",">"]},{identifier:'
","/>",">"]},{identifier:'
","/>",">"]},{identifier:'
","/>",">"]},{identifier:"[article-yoast-faqs",ends:["]"]},{identifier:"[embed-health-tool",ends:["]"]},{identifier:"

","/>",">"]},{identifier:"

","/>",">"]}],splitFeatureImgParagraph=e=>{let t=/]*>\s*]*\bdata-feature-img\b[^>]*\/?>[\s\S]*?<\/p>/i.exec(e);if(!t)return null;let a=t.index,i=t[0];return[e.slice(0,a),i,e.slice(a+i.length)]},splitSpecialTag=e=>{let t=[];if(e){let a=splitFeatureImgParagraph(e);if(a){let[e,t,i]=a;return[...splitSpecialTag(e),t,...splitSpecialTag(i)]}i.every(a=>{if(e.indexOf(a.identifier)>-1){let[i,r,o]=splitByTag(e,a.identifier,a.ends);return t.push(...splitSpecialTag(i)),t.push(r),t.push(...splitSpecialTag(o)),!1}return!0})}return t.length||t.push(e),t}},"/sjq":function(e){e.exports={domainLocales:{"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","tl-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","zh-SG":"hellojiankang.com"},ignoreList:[]}},imPi:function(e,t,a){a.d(t,{$:function(){return n}});var i=a("Sn6X"),r=a.n(i),o=a("KYiY"),s=a.n(o);let n=r().extend(s())}}]);