(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[1231,2584,6419,6441],{z2FJ:function(e,t,i){"use strict";i.d(t,{J:function(){return formatString},e:function(){return getApiPath}});var r=i("gY0P"),a=i.n(r),o=i("9brV");let formatString=function(){for(var e=arguments.length,t=Array(e),i=0;ie&&(!e.includes("=")||e.split("=")[1]));return 0===i.length?e:"".concat(e,"?").concat(i.join("&"))}return r},getApiPath=()=>{let{NEXT_PUBLIC_BASE_API_URL:e,WP_INTERNAL_API:t}=o.Km;return(t||e)+"wp-json/api/"}},"JOt+":function(e,t,i){"use strict";i.r(t),i.d(t,{MAPPED_AXIOS_INSTANCE:function(){return R},callApiNew:function(){return callApiNew}});var r=i("77FC"),a=i("dvDa"),o=i("9brV"),s=i("z2FJ"),n=i("p46w"),_=i.n(n),l=i("Sb+D"),c=i("/sjq");let getFormattedUrl=e=>{let{template:t,params:i,url:r}=e,a=(0,s.J)(r||"",{...i,..."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 a},getMainInterceptors=e=>({request:t=>{try{let i=_().get(o.ty),r=getFormattedUrl({url:t.url||"",params:t.params,template:e});t.url=r,t.params="tl-PH"===o.Km.NEXT_PUBLIC_DEPLOY_LOCALE?{lang:"fil"}:null,i&&(t.headers.Authorization="Bearer ".concat(i))}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,l.Cp)(e)}}),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},d={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};a.A.defaults.headers.post["Content-Type"]="application/json",a.A.defaults.timeout=3e4;let T=a.A.create({baseURL:d.discover}),p=a.A.create({baseURL:d.premium}),u=a.A.create({baseURL:d.together}),I=a.A.create({baseURL:d.care}),m=a.A.create({baseURL:d.careV2,headers:{Accept:"version=2.0.0"}}),g=a.A.create({baseURL:d.sso,headers:{"Accept-Encoding":"*"}}),h=a.A.create({baseURL:d.lead}),A=a.A.create({baseURL:d.chatbot}),O=a.A.create({baseURL:d.sidis}),S=a.A.create({baseURL:d.sidis_update}),L=a.A.create({baseURL:d.sidis_frontend}),b=a.A.create({baseURL:d.sidis_subscription}),G=a.A.create({baseURL:d.baby_vaccine}),f=a.A.create({baseURL:d.unified}),y=a.A.create({baseURL:d.ecommerce});(async()=>{[T,g,I,m,h,O,L,b,S,G,u,p,f,y].forEach(e=>{let{request:t,error:i,response:r}=getMainInterceptors();e.interceptors.request.use(t,i),e.interceptors.response.use(r,i)});let{together:e,care:t,careV2:i,premium:r,baby_vaccine:a,unified:o,ecommerce:s,chatbot:n}=E;u.interceptors.request.use(getMainInterceptors(e).request,getMainInterceptors().error),I.interceptors.request.use(getMainInterceptors(t).request,getMainInterceptors().error),m.interceptors.request.use(getMainInterceptors(i).request,getMainInterceptors().error),p.interceptors.request.use(getMainInterceptors(r).request,getMainInterceptors().error),G.interceptors.request.use(getMainInterceptors(a).request,getMainInterceptors().error),f.interceptors.request.use(getMainInterceptors(o).request,getMainInterceptors().error),y.interceptors.request.use(getMainInterceptors(s).request,getMainInterceptors().error),A.interceptors.request.use(getMainInterceptors(n).request,getMainInterceptors().error)})();let P=a.A.create({baseURL:o.Km.NEXT_PUBLIC_OPEN_HEALTH_TOOLS_API}),R={discover:T,care:I,careV2:m,together:u,sso:g,lead:h,sidis:O,sidis_frontend:L,sidis_subscription:b,sidis_update:S,baby_vaccine:G,premium:p,unified:f,ecommerce:y,chatbot:A,open_health_tools:P},callApiNew=async function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"discover",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=R[i];try{let i=await s({url:e,...t});if(i)return a?i:i.data}catch(i){if((0,r.H4)(null,e,(null==t?void 0:t.method)||"GET","",i),o)throw i}return null}},"LSb+":function(e,t,i){"use strict";i.r(t),i.d(t,{PATHS:function(){return r}});let r={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,i){"use strict";i.d(t,{Cp:function(){return captureException},wd:function(){return captureMessage}});let debug_showDebug=()=>"undefined"==typeof localStorage||"true"===localStorage.getItem("hhg_debug"),r=null,getSentry=async()=>r||((r=await i.e(2538).then(i.bind(i,"4Q42")))?(r.init({dsn:"https://a9c5a9ddf01e4f4c88e80bf43c490a8f@sentry.hellohealthgroup.com/15",tracesSampleRate:.1,environment:"production",beforeSend:function(e){return -1!==window.location.search.indexOf("fbclid")?null:e}}),r):null),captureException=async function(){for(var e=arguments.length,t=Array(e),i=0;iS Exception",t):null)},captureMessage=async function(){for(var e=arguments.length,t=Array(e),i=0;iS Message",t):null)}},"77FC":function(e,t,i){"use strict";i.d(t,{H4:function(){return logApiCall}});var r=i("Sb+D");let a={},logApiCall=(e,t,i,o,s)=>{setTimeout(()=>{if(a[t]&&a[t]===JSON.stringify(s))return;a[t]=JSON.stringify(s);let n={"user-id":o,path:t,method:i,body:null==e?void 0:e.data,locale:"vi-VN",error:s};(0,r.wd)("clientSide_logs_api_call",{level:"log",extra:n})},0)}},sjee:function(e,t,i){"use strict";i.r(t),i.d(t,{DynamicSpotlightPage:function(){return DynamicSpotlightPage}});var r=i("BGKE"),a=i("ZIrc"),o=i("a5L+");let DynamicSpotlightPage=e=>{var t;let{spotlight:i,footerInfo:s,dataNavMenuContent:n,pageType:_=null,pageHasOnlyActiveGroup:l}=e,c=(0,o.a)(),E=(null==n?void 0:null===(t=n.healthTools)||void 0===t?void 0:t.items)||[];return(0,r.Y)(a.default,{isMobile:c,spotlight:i,healthTools:E,pageType:_,pageHasOnlyActiveGroup:l,footerInfo:s,dataNavMenuContent:n},"".concat(i.groupIdActive,"-").concat(i.additionalSlugActive))}},"/sjq":function(e){"use strict";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:[]}},AuMj:function(e,t,i){"use strict";i.d(t,{VD:function(){return ArticleStoreProvider},NP:function(){return useArticleStore}});var r,a,o=i("BGKE"),s=i("+OUp"),n=i("sEfC"),_=i.n(n),l=i("oWg6"),c=i("VNqU");(r=a||(a={}))[r.traditional=0]="traditional",r[r.simplified=1]="simplified";let E=["small","medium","large"],d=(0,s.createContext)(null),createArticleStore=e=>(0,l.y)((t,i)=>({articles:[],bookmarkIds:[],chineseTranslate:a.traditional,currentArticle:null,currentProgress:0,fontSize:"small",isBookmarked:!1,isCommentPopupOpen:!1,isLiked:!1,isDisliked:!1,totalComment:0,categories:[],...e||{},addToArticles:e=>{!e||i().articles.find(t=>e.id===t.id)||t({articles:i().articles.concat(e)})},addToBookmark:e=>t({isBookmarked:!0,bookmarkIds:[...i().bookmarkIds,e]}),removeBookmark:e=>{let r=i().bookmarkIds.filter(t=>t!==e);t({isBookmarked:!1,bookmarkIds:r})},setArticles:e=>t(t=>({articles:"function"==typeof e?e(t.articles):e})),setBookmarkIds:e=>{t({bookmarkIds:e})},setChineseTranslate:e=>t({chineseTranslate:e}),setCurrentArticle:_()(e=>t({currentArticle:e}),300),setCurrentProgress:e=>t({currentProgress:e}),cycleFontSize:()=>t({fontSize:function(e,t){let i=e.indexOf(t);return i===e.length-1?e[0]:e[i+1]}(E,i().fontSize)}),setIsBookmarked:e=>t({isBookmarked:e}),setIsCommentPopupOpen:e=>t({isCommentPopupOpen:e}),setIsLiked:e=>t({isLiked:e}),setIsDisliked:e=>t({isDisliked:e}),setTotalComment:e=>t({totalComment:e}),setCategories:e=>t({categories:e}),setShowDictionaryShortcutBtn:e=>t({showDictionaryShortcutBtn:e})})),ArticleStoreProvider=e=>{let{init:t,refreshKey:i,children:r}=e,a=(0,s.useRef)(createArticleStore(t)),n=a.current;return(0,s.useEffect)(()=>{i&&a.current.setState(t)},[i]),(0,o.Y)(d.Provider,{value:n,children:r})},useArticleStore=(e,t)=>{let i=(0,s.useContext)(d),r=(0,c.Pj)(i,e,t);return r}},S7Sk:function(e,t,i){"use strict";i.d(t,{EC:function(){return decodePostUrl},RM:function(){return o},V5:function(){return decodeMention},aj:function(){return sanitize}});var r=i("XiKa"),a=i.n(r);i("9brV");let sanitize=(e,t)=>e?a()(e,{allowedTags:["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts","#text","mention"],disallowedTagsMode:"discard",allowedAttributes:{"*":["target","data-*","accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot","accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width",...t?["style"]:[],"surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan","accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns","xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]}}):"",getAnchorHtml=e=>{let{url:t,text:i,method:r}=e,a=i.indexOf(i.trimStart()),o=i.trimEnd().length,s=i.substring(0,a),n=i.substring(a,o),_=i.substring(o);return"edit"===r?"".concat(s,'').concat(n,"").concat(_):"display"===r&&(t.startsWith("http://")||t.startsWith("https://"))?"".concat(s,'').concat(n,"").concat(_):i},decodePostUrl=(e,t)=>e.replace(/\[a\+href="/([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,(e,i,r)=>{let a=r||i;return getAnchorHtml({text:a,url:i,method:t})}).replace(/]*href="/([^>"]+)"[^>]*>([^<]+)<\/a>/gim,(e,i,r)=>{let a=r||i;return getAnchorHtml({text:a,url:i,method:t})}),decodeMention=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.replace(/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,(e,i,r)=>{let a=t.find(e=>String(e.id)===i);if(!a){if(!r)return"";let e="";return r.replace(/\+name="([^<"]+)"/i,(t,i)=>(e=i,t)),'').concat(e,"")}return'').concat(a.name,"")})},o=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"]},VYCi:function(){},"A/s0":function(){},YZfw:function(){},uMuU:function(){}}]);