"use strict";(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[6419,6801,9102],{z2FJ:function(e,t,i){i.d(t,{J:function(){return formatString},e:function(){return getApiPath}});var n=i("gY0P"),o=i.n(n),a=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 n},getApiPath=()=>{let{NEXT_PUBLIC_BASE_API_URL:e,WP_INTERNAL_API:t}=a.Km;return(t||e)+"wp-json/api/"}},"JOt+":function(e,t,i){i.r(t),i.d(t,{MAPPED_AXIOS_INSTANCE:function(){return f},callApiNew:function(){return callApiNew}});var n=i("77FC"),o=i("dvDa"),a=i("9brV"),r=i("z2FJ"),l=i("p46w"),s=i.n(l),c=i("Sb+D"),_=i("/sjq");let getFormattedUrl=e=>{let{template:t,params:i,url:n}=e,o=(0,r.J)(n||"",{...i,..."together"===t?{websiteUrl:"https://".concat(_.domainLocales[a.Km.DEPLOY_LOCALE||"en-PH"])}:{},...("care"===t||"careV2"===t||"premium"===t||"unified"===t?{site:_.domainLocales[a.Km.DEPLOY_LOCALE||"en-PH"]}:{})||"ecommerce"===t,..."babyVaccine"===t?{domain:_.domainLocales[a.Km.DEPLOY_LOCALE||"en-PH"]}:{}});return o},getMainInterceptors=e=>({request:t=>{try{let i=s().get(a.ty),n=getFormattedUrl({url:t.url||"",params:t.params,template:e});t.url=n,t.params="tl-PH"===a.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,c.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},T={discover:(0,r.e)(),premium:a.Km.NEXT_PUBLIC_PREMIUM_URL,together:a.Km.NEXT_PUBLIC_TOGETHER_API+"api/v1/",care:a.Km.NEXT_PUBLIC_CARE_API+"api/",careV2:a.Km.NEXT_PUBLIC_CARE_API+"api/v2/",sso:a.Km.NEXT_PUBLIC_SSO+"api/",lead:a.Km.NEXT_PUBLIC_LEAD_API+"api/",chatbot:a.Km.NEXT_PUBLIC_CHAT_BOT_API,sidis:a.Km.NEXT_PUBLIC_SIDIS_TEMPLATE_API,sidis_update:a.Km.NEXT_PUBLIC_SIDIS_API+"api/",sidis_frontend:a.Km.NEXT_PUBLIC_SIDIS_API_GET+"frontend/",sidis_subscription:a.Km.NEXT_PUBLIC_SIDIS_API_GET+"api/",baby_vaccine:a.Km.INTERNAL_VACCINATION_TOOL_API||a.Km.NEXT_PUBLIC_VACCINATION_TOOL_API,unified:a.Km.NEXT_PUBLIC_UNIFIED_API,ecommerce:a.Km.NEXT_PUBLIC_ECOMMERCE_API+"rest/"+a.Km.NEXT_PUBLIC_STORE_CODE+"/V1/",open_health_tools:a.Km.NEXT_PUBLIC_OPEN_HEALTH_TOOLS_API};o.A.defaults.headers.post["Content-Type"]="application/json",o.A.defaults.timeout=3e4;let u=o.A.create({baseURL:T.discover}),p=o.A.create({baseURL:T.premium}),I=o.A.create({baseURL:T.together}),d=o.A.create({baseURL:T.care}),h=o.A.create({baseURL:T.careV2,headers:{Accept:"version=2.0.0"}}),A=o.A.create({baseURL:T.sso,headers:{"Accept-Encoding":"*"}}),g=o.A.create({baseURL:T.lead}),O=o.A.create({baseURL:T.chatbot}),m=o.A.create({baseURL:T.sidis}),S=o.A.create({baseURL:T.sidis_update}),P=o.A.create({baseURL:T.sidis_frontend}),L=o.A.create({baseURL:T.sidis_subscription}),N=o.A.create({baseURL:T.baby_vaccine}),C=o.A.create({baseURL:T.unified}),y=o.A.create({baseURL:T.ecommerce});(async()=>{[u,A,d,h,g,m,P,L,S,N,I,p,C,y].forEach(e=>{let{request:t,error:i,response:n}=getMainInterceptors();e.interceptors.request.use(t,i),e.interceptors.response.use(n,i)});let{together:e,care:t,careV2:i,premium:n,baby_vaccine:o,unified:a,ecommerce:r,chatbot:l}=E;I.interceptors.request.use(getMainInterceptors(e).request,getMainInterceptors().error),d.interceptors.request.use(getMainInterceptors(t).request,getMainInterceptors().error),h.interceptors.request.use(getMainInterceptors(i).request,getMainInterceptors().error),p.interceptors.request.use(getMainInterceptors(n).request,getMainInterceptors().error),N.interceptors.request.use(getMainInterceptors(o).request,getMainInterceptors().error),C.interceptors.request.use(getMainInterceptors(a).request,getMainInterceptors().error),y.interceptors.request.use(getMainInterceptors(r).request,getMainInterceptors().error),O.interceptors.request.use(getMainInterceptors(l).request,getMainInterceptors().error)})();let R=o.A.create({baseURL:a.Km.NEXT_PUBLIC_OPEN_HEALTH_TOOLS_API}),f={discover:u,care:d,careV2:h,together:I,sso:A,lead:g,sidis:m,sidis_frontend:P,sidis_subscription:L,sidis_update:S,baby_vaccine:N,premium:p,unified:C,ecommerce:y,chatbot:O,open_health_tools:R},callApiNew=async function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"discover",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=f[i];try{let i=await r({url:e,...t});if(i)return o?i:i.data}catch(i){if((0,n.H4)(null,e,(null==t?void 0:t.method)||"GET","",i),a)throw i}return null}},"LSb+":function(e,t,i){i.r(t),i.d(t,{PATHS:function(){return n}});let n={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){i.d(t,{Cp:function(){return captureException},wd:function(){return captureMessage}});let debug_showDebug=()=>"undefined"==typeof localStorage||"true"===localStorage.getItem("hhg_debug"),n=null,getSentry=async()=>n||((n=await i.e(2538).then(i.bind(i,"4Q42")))?(n.init({dsn:"https://a9c5a9ddf01e4f4c88e80bf43c490a8f@sentry.hellohealthgroup.com/15",tracesSampleRate:.1,environment:"production",beforeSend:function(e){return -1!==window.location.search.indexOf("fbclid")?null:e}}),n):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){i.d(t,{H4:function(){return logApiCall}});var n=i("Sb+D");let o={},logApiCall=(e,t,i,a,r)=>{setTimeout(()=>{if(o[t]&&o[t]===JSON.stringify(r))return;o[t]=JSON.stringify(r);let l={"user-id":a,path:t,method:i,body:null==e?void 0:e.data,locale:"vi-VN",error:r};(0,n.wd)("clientSide_logs_api_call",{level:"log",extra:l})},0)}},"85Xk":function(e,t,i){i.d(t,{Q:function(){return AdditionalQuestionField},E:function(){return p}});var n=i("BGKE"),o=i("+OUp"),a=i("P+HS"),r=i("f8uB"),l=i("AJQa"),s=i("vH4S"),c=i("TSYQ"),_=i.n(c),E=i("dDsW"),T=i("le9Y"),additionalQuestionField_ControlNext=e=>{let{canScrollNext:t,onClick:i}=e;return(0,n.FD)(s.Box,{className:_()("flex w-12 h-10 absolute right-0 top-0 transition-all",{"opacity-0 pointer-events-none":!t}),children:[(0,n.Y)(s.Box,{className:"w-6",style:{background:"linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%)"}}),(0,n.Y)(s.Box,{className:"w-6 bg-white py-2 cursor-pointer",onClick:i,children:(0,n.Y)(T.A,{size:24})})]})},u=i("Nels"),additionalQuestionField_ControlPrev=e=>{let{canScrollPrev:t,onClick:i}=e;return(0,n.FD)(s.Box,{className:_()("flex w-12 h-10 absolute left-0 top-0 z-[1] transition-all",{"opacity-0 pointer-events-none":!t}),children:[(0,n.Y)(s.Box,{className:"w-6 bg-white py-2 cursor-pointer",onClick:i,children:(0,n.Y)(u.A,{size:24})}),(0,n.Y)(s.Box,{className:"w-6",style:{background:"linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%)"}})]})};let p="otherQuestionField",AdditionalQuestionField=e=>{let{question:t,onChange:i,chipProps:c,inputProps:T,multiple:u,disabledOther:I,isOneLine:d=!0}=e,h=(0,o.useRef)(null),A=(0,o.useRef)(null),{formatMessage:g}=(0,E.A)(),[O,m]=(0,o.useState)(),[S,P]=(0,o.useState)(""),[L,N]=(0,o.useState)(null),[C,y]=(0,o.useState)(!1),[R,f]=(0,o.useState)(!1),{hasAnother:b}=t;(0,o.useEffect)(()=>{if(void 0!==T.value){let e=((null==T?void 0:T.value)||"").split(",").filter(Boolean),i=(t.answers||[]).map(e=>String(e.id)),n=[],o=[];e.map(e=>{i.includes(e)?n.push(e):o.push(e)});let a=(null==t?void 0:t.hasAnother)&&o.length>0;m([...n,...a?[p]:[]]),a&&P((null==o?void 0:o[0])||"")}},[null==T?void 0:T.value]);let formatCustomValue=e=>u?e:[e],handleBtnClick=e=>{u||(null==O?void 0:O[0])!==e||(m(""),null==i||i([]))},handleOnchange=e=>{let{value:t,otherText:i=""}=e,n=t.findIndex(e=>e===p);if(-1!==n){let e=[...t];return i&&(e[n]=i),e}return t};(0,o.useEffect)(()=>{if(L){let handler=()=>{y(L.canScrollNext()),f(L.canScrollPrev())};return L.on("scroll",handler),handler(),()=>{L.off("scroll",handler)}}},[L]);let D=d?(0,n.FD)(s.Box,{className:_()("min-w-0 w-full relative",{"pr-5":C}),ref:A,children:[(0,n.Y)(additionalQuestionField_ControlPrev,{canScrollPrev:R,onClick:()=>null==L?void 0:L.scrollPrev()}),(0,n.FD)(l.F,{align:"start",containScroll:"trimSnaps",dragFree:C||R,draggable:C||R,slideGap:8,slideSize:"auto",withControls:!1,withIndicators:!1,getEmblaApi:N,children:[t.answers.map((e,i)=>(0,n.FD)(l.F.Slide,{children:[(0,n.Y)(a.ChipButton,{value:String(e.id),onClick:()=>handleBtnClick(String(e.id)),children:e.answer},String(i)),i===t.answers.length-1&&(0,n.Y)("div",{className:"absolute top-0 right-0",ref:h})]},String(i))),b&&!I&&(0,n.Y)(l.F.Slide,{children:(0,n.Y)(a.ChipButton,{value:p,onClick:()=>handleBtnClick(p),children:g({id:"additionalQuestion.otherLabel",defaultMessage:"Other ..."})})},"hasAnother")]}),(0,n.Y)(additionalQuestionField_ControlNext,{canScrollNext:C,onClick:()=>null==L?void 0:L.scrollNext()})]}):(0,n.FD)(n.FK,{children:[t.answers.map((e,t)=>(0,n.Y)(a.ChipButton,{value:String(e.id),onClick:()=>handleBtnClick(String(e.id)),children:e.answer},String(t))),b&&!I&&(0,n.Y)(a.ChipButton,{value:p,onClick:()=>handleBtnClick(p),children:g({id:"additionalQuestion.otherLabel",defaultMessage:"Other ..."})})]});return(0,n.FD)(s.Stack,{spacing:(0,s.rem)(8),children:[(0,n.FD)(s.Stack,{spacing:(0,s.rem)(2),children:[(0,n.FD)(s.Flex,{align:"center",gap:(0,s.rem)(8),children:[(0,n.Y)(a.Text,{as:"label",size:"s4",children:t.question.question}),t.question.questionHint&&(0,n.Y)(s.Box,{sx:{position:"relative"},children:(0,n.FD)(s.HoverCard,{withArrow:!0,withinPortal:!0,styles:e=>({dropdown:{background:e.colors.gray[8],maxWidth:(0,s.rem)(300)}}),children:[(0,n.Y)(s.HoverCard.Target,{children:(0,n.Y)(s.Button,{styles:{root:{padding:0,height:"auto"}},children:(0,n.Y)(r.A,{size:18})})}),(0,n.FD)(s.HoverCard.Dropdown,{children:[(0,n.Y)(a.Text,{size:"n1",color:"#ffffff",children:t.question.questionHint})," "]})]})})]}),(0,n.Y)(a.ChipButton.Group,{multiple:u,value:u?O:(null==O?void 0:O[0])||"",...c||{},onChange:e=>{let t=formatCustomValue(e);m(t),null==i||i(handleOnchange({value:t,otherText:S}))},children:(0,n.Y)(s.Group,{spacing:(0,s.rem)(8),children:D})}),(0,n.Y)(a.Input,{type:"hidden",...T})]}),(O||[]).includes(p)&&!I&&(0,n.Y)(a.Input,{value:S===p?"":S,placeholder:t.otherInputPlaceholder,onChange:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";P(e),null==i||i(handleOnchange({value:O,otherText:e}))}})]})}},qoqD:function(e,t,i){i.d(t,{A:function(){return T}});var n=i("BGKE"),o=i("+OUp"),a=i("vH4S"),r=i("oguI"),l=i("Tabs"),s=i("dDsW"),c=i("mdEm"),_=i("uYWT"),E=i("85Xk");let generateSchema=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i={};return t.map(t=>{i[t]=_.Yj().valIncludesStr(E.E,e)}),_.Ik().shape({...i})};_.Zg(_.Yj,"valIncludesStr",function(e,t){return this.test({name:"valIncludesStr",message:t({id:"additionalQuestion.inputErr.otherAnswerRequire",defaultMessage:"Please fill your other answer"}),exclusive:!1,test:t=>!t.includes(e)})});var T=(0,o.forwardRef)((e,t)=>{let{additionalQuestions:i,onChange:_,disabledOther:T,className:u}=e,{formatMessage:p}=(0,s.A)(),I=(0,o.useMemo)(()=>generateSchema(p,i.map(e=>c.CD+e.question.id)),[i]),d=(0,r.m)({validate:(0,l.t)(I)}),getList=e=>{let t=[];return i.map(i=>{let n=t.findIndex(e=>e.question.id===i.question.id),o=(e[c.CD+i.question.id]||"").split(",").filter(Boolean),a={};i.answers.map(e=>{a[e.id]=e});let r=[],l=[];o.map(e=>{a[e]?r.push({id:a[e].id,value:a[e].answer}):l.push(e)}).filter(Boolean);let s=[...r,...l.length>0?[{id:0,value:null==l?void 0:l[0]}]:[]].filter(Boolean),_={question:{id:Number(i.question.id),value:i.question.question},answers:s};-1!==n?_.answers.length>0?t[n]=_:t.splice(n,1):_.answers.length>0&&t.push(_)}),t};return(0,o.useImperativeHandle)(t,()=>({validate:(e,t)=>{d.validate(),d.isValid()?null==e||e():null==t||t()}})),(0,n.Y)(a.Stack,{spacing:(0,a.rem)(12),className:u,children:i.map((e,t)=>(0,n.Y)(E.Q,{question:e,multiple:e.isMulti,inputProps:d.getInputProps(c.CD+e.question.id),disabledOther:T,onChange:t=>{d.setFieldValue(c.CD+e.question.id,t.join(",")),null==_||_(getList({...d.values,[c.CD+e.question.id]:t.join(",")}))}},String(t)))})})},"1sn1":function(e,t,i){i.d(t,{$_:function(){return formatInjectedCareInfo},Fl:function(){return calculateCalories},VR:function(){return getActivityLevelVal},gc:function(){return checkBMRStatus},oj:function(){return addResultToLink},yl:function(){return r}});var n=i("JOt+"),o=i("LSb+"),a=i("mdEm");i("iZSu");let formatInjectedCareInfo=e=>{var t,i,n,o;return"string"!=typeof e?null:{type:(null===(t=/type="(.*?)"/gi.exec(e))||void 0===t?void 0:t[1])||"",dataId:(null===(i=/id="(.*?)"/gi.exec(e))||void 0===i?void 0:i[1])||"",dataTitle:(null===(n=/title="(.*?)"/gi.exec(e))||void 0===n?void 0:n[1])||"",dataDescription:(null===(o=/description="(.*?)"/gi.exec(e))||void 0===o?void 0:o[1])||""}},addResultToLink=e=>e.includes("?result=1")?e:e.includes("?")?e.replace("?","?result=1&"):e+"?result=1",calculateCalories=async e=>{let{weight:t,height:i,activityLevel:r=a.vL.LOW_INTENSITY,age:l,gender:s="male",withImperialUnit:c=!1}=e;return await (0,n.callApiNew)(o.PATHS.HEALTH_TOOL.CALCULATE_CALORIES,{params:{weight:t,height:i,activityLevel:getActivityLevelNumberVal(r),age:l,gender:s,unit:c?"imperial":"metric"}})},getActivityLevelNumberVal=e=>Object.values(a.vL).indexOf(e)+1,getActivityLevelVal=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return(null===(e=Object.values(a.vL))||void 0===e?void 0:e[t])||""},checkBMRStatus=e=>{let{gender:t,bmr:i}=e,n=Number(i);return"male"===t?n<1600?"low":n>1800?"high":"normal":n<1200?"low":n>1400?"high":"normal"},r={[a.e4.BMI]:"blue",[a.e4.BMR]:"green",[a.e4.THR]:"red",[a.e4.OVULATION]:"pink",[a.e4.DUE_DATE]:"pink",[a.e4.PWG]:"pink",[a.e4.BABY_POOP]:"pink",[a.e4.BABY_VACCINE]:"blue",[a.e4.BABY_GROWTH]:"blue"}},tjpU:function(e,t,i){i.d(t,{N_:function(){return o},ZT:function(){return r},mF:function(){return a}});var n=i("U80/");let[o,a,r]=(0,n.c)()},su1x:function(e,t,i){i.d(t,{B6:function(){return generateSchema},Bg:function(){return getOvulationResultLink},Qf:function(){return useDrawCalendar}});var n=i("+OUp"),o=i("iBNF"),a=i("8BcA"),r=i.n(a),l=i("uYWT"),s=i("0kcD"),c=i("9brV"),_=i("+u84");let getOvulationResultLink=(e,t)=>{let{type:i,startDate:n,periodLength:o,cycle:a}=t;return"".concat(e,"?result=1&").concat(_.Q.method,"=").concat(i,"&").concat(_.Q.day,"=").concat(r()(n).format(c.qC),"&").concat(_.Q.cycle,"=").concat(a,"&").concat(_.Q.period,"=").concat(o,"&joincommunity=1")},useDrawCalendar=e=>{let t={color:o.w.colors.pink800,backgroundColor:o.w.colors.pink50},i={color:e.type===c.hL?o.w.colors.error:o.w.colors.green700,backgroundColor:o.w.colors.green50},a=(0,n.useMemo)(()=>{let i=[];if(e){let{cycle:n,periodLength:o,startDate:a}=e,l=o-1;i.push({rangeType:"period",...t,startDate:a,endDate:r()(a).add(l,"day").toDate()});let s=a,c=a;for(let e=0;e<=12;e++)s=r()(s).subtract(n,"day").toDate(),c=r()(c).add(n,"day").toDate(),i.unshift({rangeType:"period",...t,startDate:s,endDate:r()(s).add(l,"day").toDate()}),i.push({rangeType:"period",...t,startDate:c,endDate:r()(c).add(l,"day").toDate()})}return i},[e]),l=(0,n.useMemo)(()=>a.map(e=>r()(e.startDate).subtract(14,"day").toDate()),[a]),s=(0,n.useMemo)(()=>l.map(e=>({markerType:"ovulation",markerStyle:"dashed",date:e,color:i.color})),[l,i]),_=(0,n.useMemo)(()=>l.map(e=>({rangeType:"fertile",startDate:r()(e).subtract(5,"day").toDate(),endDate:r()(e).add(1,"day").toDate(),...i})),[l,i]),E=(0,n.useMemo)(()=>e.type===c.DM?a:a.concat(_),[e,a,_]);return{ovulationMarkers:s,calendarRanges:E,ovulationDays:l}},generateSchema=()=>l.Ik().shape({type:l.gl().oneOf(Object.values(s.W)).default(s.W.TrackPeriod).required(),cycle:l.ai().required(),periodLength:l.ai().required(),startDate:l.p6().required()})},n8Gv:function(e,t,i){i.d(t,{Ez:function(){return E},MM:function(){return p},Nb:function(){return _},V4:function(){return s},YR:function(){return u},bv:function(){return I},ip:function(){return c},yY:function(){return T}});var n=i("rBCA"),o=i("ysNr"),a=i("CL9C"),r=i("iBNF"),l=i("UC+x");let s=(0,n.A)(l.gS,{target:"e7pcofi0"})("margin-right:0.3rem;vertical-align:middle;"),c=(0,n.A)("div",{target:"e7pcofi1"})("width:100%;margin-bottom:2rem;"),_=(0,n.A)("div",{target:"e7pcofi2"})("display:flex;width:100%;justify-content:space-between;margin-top:0.5rem;margin-bottom:12px;"),E=(0,n.A)("div",{target:"e7pcofi3"})("width:31%;height:140px;",a.M.mbDown,"{height:130px;width:32.5%;}"),T=(0,n.A)(o.C,{target:"e7pcofi4"})("width:100%;height:100%;justify-content:space-around;",a.M.mbDown,"{padding:0.25rem;}&.active{border-color:",r.w.colors.primaryBase,";box-shadow:none;p{color:",r.w.colors.primaryBase,";}}"),u=(0,n.A)("div",{target:"e7pcofi5"})("width:100%;margin-bottom:2rem;.due-date-calculate-button{margin-right:auto;margin-left:auto;}"),p=(0,n.A)("div",{target:"e7pcofi6"})("margin-bottom:1rem;",a.M.mbUp,"{padding-left:1rem;}"),I=(0,n.A)("div",{target:"e7pcofi7"})("display:flex;flex-direction:column;gap:1.5rem;margin-bottom:1rem;")},"0kcD":function(e,t,i){i.d(t,{D:function(){return OvulationCalculator},W:function(){return o}});var n,o,a=i("BGKE"),r=i("+OUp"),l=i("soWg"),s=i("tuDO"),c=i("P+HS"),_=i("vH4S"),E=i("8BcA"),T=i.n(E),u=i("dDsW"),p=i("bPK4"),I=i("qoqD"),d=i("h1yn"),h=i("RzAk"),A=i("tjpU"),g=i("AG8C"),O=i("9brV"),m=i("mdEm"),S=i("VnHZ"),P=i("n8Gv");(n=o||(o={}))[n.TrackPeriod=1]="TrackPeriod",n[n.Conceive=2]="Conceive",n[n.AvoidPregnancy=3]="AvoidPregnancy";let OvulationCalculator=e=>{let{additionalQuestions:t=[],onCalc:i}=e,{formatMessage:n}=(0,u.A)(),{locale:o}=(0,g.$)(),{state:{userInfo:E}}=(0,r.useContext)(S.B),{getHealthToolLink:L}=(0,l.u)(o),N=(0,r.useRef)(null),C=(0,r.useMemo)(()=>L(m.zY.OVULATION),[L]),y=(0,r.useMemo)(()=>[{imageSrc:"".concat(O.nS,"/ovulation-track-period-icon.png"),label:n({id:"ovulationPage.trackPeriod"}),value:1},{imageSrc:"".concat(O.nS,"/ovulation-conceive-icon.png"),label:n({id:"ovulationPage.conceive"}),value:2},{imageSrc:"".concat(O.nS,"/ovulation-avoid-pregnancy-icon.png"),label:n({id:"ovulationPage.avoidPregnancy"}),value:3}],[]),R=(0,A.mF)(),onSubmit=async e=>{var t;null==N||null===(t=N.current)||void 0===t||t.validate(async()=>{localStorage.setItem("ovulationInfo",JSON.stringify({...e,isSubmitted:!!(null==E?void 0:E.id),source_url:window.location.href})),null==i||i()})};return(0,a.FD)("form",{onSubmit:R.onSubmit(onSubmit),children:[(0,a.FD)(_.Flex,{gap:(0,_.rem)(24),sx:e=>({[e.fn.smallerThan("sm")]:{flexDirection:"column",".birthday-field":{marginBottom:0}},[e.fn.largerThan("sm")]:{"& > div":{width:"100%",flexGrow:1}}}),children:[(0,a.Y)(P.bv,{className:"birthday-field",children:(0,a.Y)(d.w,{...R.getInputProps("birthday"),onChange:e=>{R.setFieldValue("age",String(T()().diff(e,"year"))),R.setFieldValue("birthday",e)}})}),(0,a.Y)(P.bv,{children:(0,a.Y)(h.E,{checked:R.getInputProps("isYourself").value,onChange:e=>R.setFieldValue("isYourself",e.currentTarget.checked)})})]}),(0,a.FD)(P.ip,{children:[(0,a.Y)(c.Text,{as:"label",size:"s4",children:n({id:"ovulationPage.objectives"})}),(0,a.Y)(P.Nb,{children:y.map(e=>(0,a.Y)(P.Ez,{onClick:t=>{t.stopPropagation(),R.getInputProps("type").onChange(e.value)},children:(0,a.Y)(P.yY,{className:e.value===R.getInputProps("type").value?"active":void 0,imgBanner:(0,a.Y)("img",{src:e.imageSrc,style:{width:"63px",height:"63px",objectFit:"contain",maxWidth:"100%"},alt:e.label,loading:"lazy"}),label:e.label})},e.value))})]}),(0,a.FD)(P.YR,{children:[(0,a.Y)(P.bv,{children:(0,a.Y)(c.DatePicker,{label:(0,a.Y)(c.Text,{as:"label",size:"s4",children:n({id:"dueDatePage.lastPeriod.lastPeriodLabel"})}),excludeDate:e=>T()(e).isBefore(T()().subtract(46,"day"))||T()(e).isAfter(T()()),...R.getInputProps("startDate")})}),(0,a.FD)(P.bv,{children:[(0,a.FD)(c.Text,{as:"label",size:"s4",children:[n({id:"ovulationPage.cycleLength"})+" ",(0,a.Y)(c.Text,{size:"s4",color:"#797979",style:{display:"inline"},children:n({id:"ovulationPage.dayUnit"})})]}),(0,a.Y)(c.Slider,{...R.getInputProps("cycle"),withControl:!0,min:21,max:45})]}),(0,a.FD)(P.bv,{children:[(0,a.FD)(c.Text,{size:"s4",color:"#595959",children:[n({id:"ovulationPage.periodDuration"})+" ",(0,a.Y)(c.Text,{size:"s4",color:"#797979",style:{display:"inline"},children:n({id:"ovulationPage.dayUnit"})})]}),(0,a.Y)(c.Slider,{...R.getInputProps("periodLength"),withControl:!0,min:1,max:15})]}),(0,a.FD)(_.Stack,{spacing:(0,_.rem)(24),children:[(0,a.Y)(I.A,{ref:N,additionalQuestions:t,onChange:e=>R.setFieldValue("additionalQuestions",e)}),(0,a.Y)(P.bv,{children:(0,a.Y)(s.B,{className:"due-date-calculate-button",size:"lg",color:"primary",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:"".concat((0,p.oN)(o)).concat(C),type:"submit",children:n({id:"dueDatePage.lastPeriod.calculate"})})})]})]})]})}},"/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:[]}},ErZK:function(e,t,i){i.d(t,{Ek:function(){return o},WJ:function(){return n},e7:function(){return a},jf:function(){return s},oP:function(){return c},tK:function(){return l},u0:function(){return r}});let n="temp_baby_growth",o="baby_growth_data",a="temp_baby_vaccination",r="baby_vaccination_data",l="inskin_ovulation",s="service_connection_page",c="snp-latest-access"},"9brV":function(e,t,i){i.d(t,{$1:function(){return ed},AR:function(){return eC},B8:function(){return w},CS:function(){return B},Cn:function(){return v},Cs:function(){return U},D9:function(){return eD},DK:function(){return J},DM:function(){return ec},Dn:function(){return R},EH:function(){return V},El:function(){return Y},H5:function(){return em},HL:function(){return eR},Hl:function(){return eI},I6:function(){return M},Iu:function(){return D},JH:function(){return et},Jp:function(){return u},KN:function(){return H},K_:function(){return Z},Kl:function(){return eT},Km:function(){return T},LI:function(){return C},MM:function(){return ep},Mb:function(){return eb},Mp:function(){return d},Mu:function(){return x},NV:function(){return ei},OA:function(){return G},OJ:function(){return $},OZ:function(){return eH},Oe:function(){return W},Ok:function(){return eu},PF:function(){return l},Pn:function(){return eV},QM:function(){return ee},Rs:function(){return en},S1:function(){return j},S3:function(){return k},Sj:function(){return h},TK:function(){return eP},U2:function(){return p},V7:function(){return y},WO:function(){return F},XP:function(){return es},Y3:function(){return S},_q:function(){return z},a5:function(){return A},a7:function(){return q},bF:function(){return eG},c8:function(){return L},cD:function(){return eU},dX:function(){return eM},dZ:function(){return ek},eY:function(){return eN},fg:function(){return eB},hL:function(){return e_},hj:function(){return s},ix:function(){return er},jJ:function(){return f},jX:function(){return N},kH:function(){return K},kU:function(){return b},le:function(){return ev},m4:function(){return el},mw:function(){return eA},nF:function(){return ef},nN:function(){return m},nS:function(){return I},oQ:function(){return eh},p8:function(){return g},pJ:function(){return P},pc:function(){return eY},q0:function(){return eO},qC:function(){return Q},qg:function(){return eE},rN:function(){return eg},ty:function(){return O},vV:function(){return ey},xu:function(){return eS},yc:function(){return X},zh:function(){return ew},zp:function(){return eL}});var n,o,a,r,l,s,c=i("mdEm"),_=i("iZSu"),E=i("yNk5");let T={NEXT_PUBLIC_PREMIUM_URL:"https://premium-content.hellohealthgroup.com/",NEXT_PUBLIC_BUILD_ID:"FV1-1787645821242",DEPLOY_ENV:"production",NEXT_PUBLIC_DEPLOY_ENV:"production",NEXT_PUBLIC_SUBOT_URL:"https://subot.hellobacsi.com/",SUBOT_URL:"https://subot.hellobacsi.com/",SUBOT_INTERNAL:E.env.SUBOT_INTERNAL,NEXT_PUBLIC_SUBOT_API:"https://subot.hellohealthgroup.com/frontend/api/",WP_INTERNAL_API:E.env.WP_INTERNAL_API,SENTRY_DSN:E.env.SENTRY_DSN,NEXT_PUBLIC_BASE_API_URL:"https://wp.hellobacsi.com/",NEXT_PUBLIC_BASE_PROD_API_URL:"https://wp.hellobacsi.com/",NEXT_PUBLIC_SSO:"https://id.hellobacsi.com/",SSO_URL:"https://id.hellobacsi.com/",NEXT_PUBLIC_SIDIS_API:"https://producer-sidis.hellohealthgroup.com/",NEXT_PUBLIC_CARE_API:"https://health-care.hellohealthgroup.com/",INTERNAL_VACCINATION_TOOL_API:E.env.INTERNAL_VACCINATION_TOOL_API,NEXT_PUBLIC_VACCINATION_TOOL_API:"https://vaccination-service.hellohealthgroup.com/",NEXT_PUBLIC_LOGGING_ENABLED:"true",NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",DEPLOY_LOCALE:"vi-VN",NEXT_PUBLIC_SIDIS_API_GET:"https://api-internal-sidis.hellohealthgroup.com/",NEXT_PUBLIC_LEAD_API:"https://lead.hellohealthgroup.com/",NEXT_PUBLIC_TOGETHER_API:"https://together.hellohealthgroup.com/",NEXT_PUBLIC_GTM_AMP:"GTM-TJ5CHH6",NEXT_PUBLIC_SIDIS_TEMPLATE_API:"https://sidis-template-be.hellohealthgroup.com/",INTERNAL_TOGETHER_API:E.env.INTERNAL_TOGETHER_API,INTERNAL_CARE_API:E.env.INTERNAL_CARE_API,NEXT_PUBLIC_DISCOVER_MARRY_BABY_BASE_API_URL:"https://wp.marrybaby.vn/",NEXT_PUBLIC_DISCOVER_MARRY_BABY_BASE_PROD_API_URL:"https://wp.marrybaby.vn/",NEXT_PUBLIC_UNIFIED_API:"https://unified-360-user-profile.hellohealthgroup.com",NEXT_PUBLIC_ECOMMERCE_API:"https://ecommerce.hellohealthgroup.com/",NEXT_PUBLIC_STORE_CODE:"vi",NEXT_PUBLIC_CHAT_BOT_API:E.env.NEXT_PUBLIC_CHAT_BOT_API,NEXT_PUBLIC_CHATBOT_API_URL:E.env.NEXT_PUBLIC_CHATBOT_API_URL,NEXT_PUBLIC_THE_TRADE_DESK_API:"https://thetradedesk.hellohealthgroup.com/",NEXT_PUBLIC_VACCINATION_ENABLED:"true",NEXT_PUBLIC_OPEN_HEALTH_TOOLS_API:E.env.NEXT_PUBLIC_OPEN_HEALTH_TOOLS_API},u="",p="care",I="".concat(u,"/images"),d="".concat(u,"/svg"),h="DD/MM/YYYY",A="https://id.hellobacsi.com/",g=!0,O="hhg_user_token",m="hhg_user_refresh_token",S="hhg-id",P="_ga",L="__uid20_tokens",N="refresh_token",C="user_token",y="_gtm_consent",R="hhg_workshop_user_email",f="hhg_workshop_user_phone",b=!1,D="".concat(I,"/anonymous.jpg"),G="".concat(I,"/avatar.jpg"),v="".concat(I,"/default.png?v=1"),M="".concat(I,"/default-image.jpg?v=1"),H="".concat(I,"/hhg-logo.png");(n=r||(r={}))[n.CategoryType1=1]="CategoryType1",n[n.CategoryType2=2]="CategoryType2",(o=l||(l={}))[o.ArticleType1=1]="ArticleType1",o[o.ArticleType2=2]="ArticleType2",o[o.ArticleType3=3]="ArticleType3";let U={categoryType:1,articleType:3},Y={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"".concat(I,"/tooltips-vn.png"),ABOUT_US_IMAGE:"".concat(I,"/aboutus/VN.png"),PHONE:"+84",FLAG:"".concat(d,"/flags/flag-rect-vn.svg"),PUBMATIC_PROFILE_ID:"6950",CATEGORIES_TYPE:"short",PUBLIFT_ID:"2820"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"".concat(I,"/tooltips-ph.png"),ABOUT_US_IMAGE:"".concat(I,"/aboutus/PH.png"),PHONE:"+63",FLAG:"".concat(d,"/flags/flag-rect-ph.svg"),PUBMATIC_PROFILE_ID:"6947"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"".concat(I,"/tooltips-ph.png"),ABOUT_US_IMAGE:"".concat(I,"/aboutus/PH.png"),PHONE:"+63",FLAG:"".concat(d,"/flags/flag-rect-ph.svg"),PUBMATIC_PROFILE_ID:"6947"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello คุณหมอ",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"".concat(I,"/tooltips-th.png"),ABOUT_US_IMAGE:"".concat(I,"/aboutus/TH.png"),PHONE:"+66",FLAG:"".concat(d,"/flags/flag-rect-th.svg"),PUBMATIC_PROFILE_ID:"6952"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.png",SITE_NAME_FORMATTED:"Hello គ្រូពេទ្យ",SITE_ID:"4",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"".concat(I,"/tooltips-kh.png"),ABOUT_US_IMAGE:"".concat(I,"/aboutus/KH.png"),PHONE:"+855",FLAG:"".concat(d,"/flags/flag-rect-kh.svg"),PUBMATIC_PROFILE_ID:"6954"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/MM.png",SITE_NAME_FORMATTED:"Hello ဆရာဝန်",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522",ABOUT_US_IMAGE:"".concat(I,"/aboutus/MM.png"),PHONE:"+95",FLAG:"".concat(d,"/flags/flag-rect-mm.svg"),PUBMATIC_PROFILE_ID:"6953",CATEGORIES_TYPE:"long"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello 醫師",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"".concat(I,"/tooltips-tw.png"),ABOUT_US_IMAGE:"".concat(I,"/aboutus/TW.png"),PHONE:"+886",FLAG:"".concat(d,"/flags/flag-rect-tw.svg"),PUBMATIC_PROFILE_ID:"6949",CATEGORIES_TYPE:"short",PUBLIFT_ID:"2819"},"zh-SG":{LOGO_TYPE:"hellojiankang",SITE_NAME:"HelloJianKang",HOMEPAGE_IMAGE:"",SITE_NAME_FORMATTED:"Hello 健康",SITE_ID:"12",INSIDER_TAG:"",TOOLTIP_IMAGE:"",ABOUT_US_IMAGE:"",PHONE:"",FLAG:"".concat(d,"/flags/flag-rect-tw.svg"),PUBMATIC_PROFILE_ID:"",CATEGORIES_TYPE:"short",PUBLIFT_ID:""},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"".concat(I,"/tooltips-id.png"),ABOUT_US_IMAGE:"".concat(I,"/aboutus/ID.png"),PHONE:"+62",FLAG:"".concat(d,"/flags/flag-rect-id.svg"),PUBMATIC_PROFILE_ID:"1959",CATEGORIES_TYPE:"short",PUBLIFT_ID:"2812"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"Hello स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"".concat(I,"/tooltips-in.png"),ABOUT_US_IMAGE:"".concat(I,"/aboutus/IN.png"),PHONE:"+91",FLAG:"".concat(d,"/flags/flag-rect-in.svg"),PUBMATIC_PROFILE_ID:"6951"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"".concat(I,"/tooltips-my.png"),ABOUT_US_IMAGE:"".concat(I,"/aboutus/MY.png"),PHONE:"+60",FLAG:"".concat(d,"/flags/flag-rect-my.svg"),PUBMATIC_PROFILE_ID:"6946",CATEGORIES_TYPE:"short",PUBLIFT_ID:"2816"}};(a=s||(s={})).PRIVACY="PRIVACY",a.TERM_OF_USE="TERM_OF_USE",a.PRIVACY_POLICY="PRIVACY_POLICY",a.PRIVACY_POLICY_EN="PRIVACY_POLICY_EN",a.EDITORIAL_CORRECTIONS_POLICY="EDITORIAL_CORRECTIONS_POLICY",a.ADVERTISING_SPONSOR_POLICY="ADVERTISING_SPONSOR_POLICY",a.CANCELLATION_RETURN_POLICY="CANCELLATION_RETURN_POLICY",a.FULFILMENT_DISPENSATION_POLICY="FULFILMENT_DISPENSATION_POLICY",a.POLICIES="POLICIES",a.FAQS="FAQS",a.SITEMAP="SITEMAP",a.ABOUT_US="ABOUT_US",a.ADVERTISEMENT="ADVERTISEMENT",a.CONTACT_US="CONTACT_US",a.ABOUT_GO_CARE="ABOUT_GO_CARE",a.HEALTH_TOOLS="HEALTH_TOOLS",a.EXECUTIVE_BIOS="EXECUTIVE_BIOS",a.RECRUITMENT="RECRUITMENT",a.COMMUNITY_GUIDELINE="COMMUNITY_GUIDELINE",a.TOGETHER="TOGETHER",a.CARE="CARE",a.FEEDBACK="FEEDBACK",a.CARE_SHOP_POLICIES="CARE_SHOP_POLICIES",a.FACILITY="FACILITY",a.POLICIES_EN="POLICIES_EN",a.CONTACT_EN="CONTACT_EN",a.EDITORIAL_POLICY="EDITORIAL_POLICY",a.EDITORIAL_POLICY_EN="EDITORIAL_POLICY_EN",a.HSWY_PRIVACY_POLICY="HSWY_PRIVACY_POLICY",a.PRIVACY_ADDENDUM="PRIVACY_ADDENDUM";let B={[_.ne.Vietnam]:{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community",CARE:"/care",FEEDBACK:"/pn-rating",CARE_SHOP_POLICIES:"/quy-dinh-dat-lich-bac-si-va-mua-hang"},[_.ne.Singapore]:{POLICIES:null,TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:null,CARE:null}},k={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","zh-SG":"pregnancy","hi-IN":"pregnancy"},w={ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},V={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"tl-PH":[{type:"link",rel:"icon",href:"/fil/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/fil/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/fil/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/fil/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-SG":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},F=["low","normal","high"],x={adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},K="289442006438-040a42cbidr6v5d178f3iqi9q95821r3.apps.googleusercontent.com",X={REVIEWED_DISPLAY_NAME:"reviewed_display_name",REVIEWED_AVATAR_THUMBNAIL:"reviewed_avatar_thumbnail",REVIEWED_URL:"reviewed_url",POST_ID:"post_id",POST_MODIFIED:"post_modified",CATEGORY_ID:"category_id",CATEGORY_NAME:"category_name",CATEGORY_URL:"category_url",CATEGORY_TEXT_COLOR:"category_text_color"},z=["vi-VN","id-ID"],W=g?["th-TH"]:["vi-VN","th-TH"],q="YYYY-MM-DD",j="dd-MM-yyyy",Q="DD-MM-YYYY",J="DD MMM YYYY",Z="DD/MM/YYYY",$="MMMM YYYY",ee="MM/DD/YYYY",et={[_.ne.PhilippinesEnglish]:"MM/DD/YYYY",[_.ne.PhilippinesTagalog]:"MM/DD/YYYY",[_.ne.Cambodia]:"DD/MM/YYYY",[_.ne.India]:"DD/MM/YYYY",[_.ne.Thailand]:"DD/MM/YYYY",[_.ne.Malaysia]:"DD/MM/YYYY",[_.ne.Singapore]:"YYYY/MM/DD",[_.ne.Indonesia]:"DD/MM/YYYY",[_.ne.Taiwan]:"YYYY/MM/DD",[_.ne.Myanmar]:"DD/MM/YYYY",[_.ne.Vietnam]:"DD/MM/YYYY"},ei="MM/DD/YYYY";E.env.SENTRY_DSN;let en={EN:"English",FIL:"Filipino"},eo={ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location",ORGANIZATION:"organization",VACCINATIONS:"vaccination",IVF:"ivf",IVF_DETAIL:"ivf-detail",EGG_FREEZING:"egg-freezing",EGG_FREEZING_DETAIL:"egg-freezing-detail",VACCINATION_DETAIL:"vaccination-detail",HEALTH_SCREENER:"health-screener",HEALTH_SCREENER_DETAIL:"health-screener-detail",USER_REVIEWS:"user-reviews"},ea={[_.ne.PhilippinesEnglish]:eo,[_.ne.Vietnam]:{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai",ORGANIZATION:"to-chuc",IVF:"thu-tinh-ong-nghiem",IVF_DETAIL:"ivf-detail",EGG_FREEZING:"dong-lanh-trung",EGG_FREEZING_DETAIL:"egg-freezing-detail",VACCINATIONS:"tiem-chung",VACCINATION_DETAIL:"vaccination-detail",HEALTH_SCREENER:"xet-nghiem",HEALTH_SCREENER_DETAIL:"health-screener-detail",USER_REVIEWS:"danh-gia-dich-vu"},[_.ne.Indonesia]:{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini",ORGANIZATION:"organisasi",IVF:"ivf",IVF_DETAIL:"ivf-detail",EGG_FREEZING:"egg-freezing",EGG_FREEZING_DETAIL:"egg-freezing-detail",VACCINATIONS:"vaccination",VACCINATION_DETAIL:"vaccination-detail",HEALTH_SCREENER:"health-screener",HEALTH_SCREENER_DETAIL:"health-screener-detail",USER_REVIEWS:"ulasan-pengguna"},[_.ne.Taiwan]:eo,[_.ne.Malaysia]:eo,[_.ne.Thailand]:eo},er=ea,el={doctor:"DOCTOR",service:"SERVICE",hospital:"HOSPITAL"},es={MY_HEALTH_TRACKER:"user/health/trackers",MY_HEALTH_PARENTING:"user/health/parenting"},ec=1,e_=3,eE={[-1]:5.7,0:15.7,1:23.5,2:19.3,3:10.7,4:7.8,5:6.4},eT="workshop-success",eu="thrInfo",ep={label:"",value:""},eI=7,ed="https://cdn-healthcare.hellohealthgroup.com/2021/11/1636963243_619213ab2d91e3.52220855.png";_.ne.Vietnam,_.ne.Indonesia;let eh=[_.ne.Vietnam],eA=[_.ne.Indonesia],eg=[_.ne.Vietnam],eO="/ai-doctor",em=30;_.ne.Indonesia,_.ne.Vietnam,_.ne.PhilippinesEnglish,_.ne.PhilippinesTagalog,_.ne.Malaysia,_.ne.Thailand,_.ne.Cambodia,_.ne.Myanmar,_.ne.India,_.ne.Taiwan,_.ne.Singapore;let eS={[_.ne.Vietnam]:"HelloBacsi",[_.ne.Indonesia]:"HelloSehat",[_.ne.Malaysia]:"HelloDoktor",[_.ne.Cambodia]:"HelloKrupet",[_.ne.PhilippinesEnglish]:"HelloDoctorPH",[_.ne.Thailand]:"HelloKhunmor",[_.ne.Myanmar]:"HelloSayarwon",[_.ne.Taiwan]:"HelloYishi",[_.ne.India]:"HelloSwasthya",[_.ne.PhilippinesTagalog]:"HelloDoctorPH",[_.ne.Singapore]:"HelloJianKang"},eP={MOBILE:"Mobile",DESKTOP:"Desktop"},eL="duedate_leadgen_submit",eN=19,eC="MMM DD, YYYY",ey=[_.ne.Indonesia],eR={[_.ne.Vietnam]:"hellobacsi.com",[_.ne.Indonesia]:"hellosehat.com",[_.ne.Malaysia]:"hellodoktor.com",[_.ne.Cambodia]:"hellokrupet.com",[_.ne.PhilippinesEnglish]:"hellodoctor.com.ph",[_.ne.PhilippinesTagalog]:"hellodoctor.com.ph",[_.ne.Thailand]:"hellokhunmor.com",[_.ne.Myanmar]:"hellosayarwon.com",[_.ne.Taiwan]:"helloyishi.com.tw",[_.ne.India]:"helloswasthya.com",[_.ne.Singapore]:"hellojiankang.com"},ef="".concat(I,"/default-fruit-icon.svg");c.zY.DUE_DATE,c.zY.PWG;let eb={[_.ne.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than",menHealth:"suc-khoe-nam-gioi"},[_.ne.Indonesia]:{},[_.ne.Malaysia]:{},[_.ne.Cambodia]:{},[_.ne.PhilippinesEnglish]:{},[_.ne.PhilippinesTagalog]:{},[_.ne.Thailand]:{},[_.ne.Myanmar]:{},[_.ne.Taiwan]:{},[_.ne.Singapore]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",heartHealth:"heart-health",sexualWellness:"sexual-health",healthyEating:"",skinHealth:""},[_.ne.India]:{}},eD="#mantine-modal-target";_.ne.PhilippinesEnglish,_.ne.Thailand,_.ne.Malaysia,_.ne.Indonesia,_.ne.Myanmar,_.ne.Vietnam;let eG="hhg_guest_cart_id",ev={[_.ne.Indonesia]:"IDN",[_.ne.Vietnam]:"VNM",[_.ne.Malaysia]:"MYS"};_.ne.Taiwan,_.ne.Myanmar,_.ne.Malaysia,_.ne.Cambodia;let eM=[_.ne.Vietnam,_.ne.Indonesia,_.ne.Malaysia].includes("vi-VN"),eH=[_.ne.Cambodia,_.ne.India,_.ne.Taiwan,_.ne.Singapore],eU=80,eY="video_item_detail",eB="true"===T.NEXT_PUBLIC_VACCINATION_ENABLED,ek="https://m.me/hellobacsi?ref=w43585717",ew=[_.ne.PhilippinesEnglish,_.ne.PhilippinesTagalog],eV=[_.ne.Vietnam,_.ne.Malaysia];_.ne.Vietnam,_.ne.Malaysia}}]);