"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8261],{mGnJ:function(e,t,a){a.d(t,{A:function(){return j},B:function(){return F},C:function(){return D},D:function(){return R},E:function(){return P},F:function(){return Y},G:function(){return z},H:function(){return k},I:function(){return B},L:function(){return O},Q:function(){return r},S:function(){return w},U:function(){return C},V:function(){return H},Z:function(){return W},a:function(){return $},b:function(){return _},c:function(){return S},d:function(){return M},e:function(){return L},f:function(){return Z},g:function(){return U},h:function(){return K},i:function(){return X},j:function(){return V},k:function(){return G},l:function(){return N},m:function(){return A},r:function(){return d},s:function(){return q}});var n,o,i,l,r,s,c,d,p=a("EikE"),m=a("OT65"),u=a("G2RZ"),h=a("YNYf"),g=a("R43W"),E=a("+xLi"),y=a("tO2/"),b=a("YJaS"),I=a("tiWT"),f=a("xrdX"),T=a("UIg8"),x=a("GOBr"),v=a("r9m4");let _="",N="https://id.hellobacsi.com/",C="userGeoLocationCoordinates",O={"vi-VN":{PHONE:"+84",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:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{PHONE:"+63",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:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{PHONE:"+66",LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{PHONE:"+855",LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{PHONE:"+95",LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{PHONE:"+886",LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"zh-SG":{PHONE:"",LOGO_TYPE:"hellojiankang",SITE_NAME:"Hello健康",HOMEPAGE_IMAGE:"",SITE_NAME_FORMATTED:"Hello 健康",SITE_ID:"12",INSIDER_TAG:"",TOOLTIP_IMAGE:"",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{PHONE:"+62",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:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{PHONE:"+91",LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{PHONE:"+60",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:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{PHONE:"+63",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:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},A=[{countryCode:"VN",countryName:"Việt Nam",languageCode:"vi"},{countryCode:"PH",countryName:"Philippines",languageCode:"en"},{countryCode:"TH",countryName:"ประเทศไทย",languageCode:"th"},{countryCode:"KH",countryName:"កម្ពុជា",languageCode:"km"},{countryCode:"MM",countryName:"မြန်မာ",languageCode:"my"},{countryCode:"TW",countryName:"台灣",languageCode:"zh"},{countryCode:"SG",countryName:"新加坡",languageCode:"zh"},{countryCode:"ID",countryName:"Indonesia",languageCode:"id"},{countryCode:"IN",countryName:"भारत",languageCode:"hi"},{countryCode:"MY",countryName:"Malaysia",languageCode:"ms"}],w={"vi-VN":{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",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/GxlKjAMGvWb"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/T0Op0XUtt0b"},"en-PH":{POLICIES:"/policies",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:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"zh-TW":{POLICIES:"/policies",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:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/Zi0O2HxIvWb"},"zh-SG":{POLICIES:"/policies",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:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/eyzYCiacZ0b"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/5zzz90iHvWb"},"hi-IN":{POLICIES:"/policies",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:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/DgSznupHvWb"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/F8yihqrIvWb"},"tl-PH":{POLICIES:"/policies",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:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"}},S=[v.L.Vietnam,v.L.Indonesia,v.L.Thailand,v.L.Malaysia,v.L.Myanmar],k=[v.L.Indonesia,v.L.Cambodia,v.L.PhilippinesEnglish,v.L.PhilippinesTagalog,v.L.Thailand,v.L.Singapore],L=[v.L.Vietnam],P=["vi-VN"],R=["id-ID"],D=["vi-VN","id-ID","en-PH","tl-PH","ms-MY","th-TH"],M=["vi-VN","id-ID"],H=[v.L.Vietnam,v.L.Taiwan],Y={"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:"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:"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"}],"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:"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:"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:"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:"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:"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:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};(n=r||(r={})).bmi="mi",n.gender="gndr",n.age="ge",n.slug="slug",n.resultId="resultId",n.bmr="mr",n.height="gt",n.weight="wght",n.source="surc",n.type="tp",n.startDate="sd",n.additional="tnl",n.week="wk",n.twins="twn",n.weightBefore="wb",n.yourself="yrslf",n.intensity="sy",n.rate="rt",n.method="mthd",n.day="dy",n.pwg="pwg",n.cycle="le",n.period="prd",n.access_token="tkn",n.name="nm",n.id="id",n.activityLevel="actl",n.status="status",n.birthday="brd",n.withImperialUnit="lbs";let B={[v.L.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[v.L.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[v.L.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[v.L.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[v.L.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[v.L.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[v.L.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[v.L.Singapore]:{dateFormat:"YYYY/MM/DD",separator:","},[v.L.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[v.L.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[v.L.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},F="hhg_user_token",G="hhg_user_refresh_token",V={[v.L.PhilippinesEnglish]:p.Z,[v.L.Vietnam]:m.default,[v.L.Cambodia]:u.Z,[v.L.India]:h.Z,[v.L.Indonesia]:g.Z,[v.L.Myanmar]:p.Z,[v.L.Malaysia]:E.Z,[v.L.Thailand]:y.Z,[v.L.Taiwan]:b.Z},U="https://cdn.hellohealthgroup.com/countries",z="_ga",j="YYYY-MM-DD",W=9999999,$=305,Z="video_item_detail",K="hhg_cart_care_store_key";(o=s||(s={}))[o.UNAVAILABLE=0]="UNAVAILABLE",o[o.AVAILABLE=1]="AVAILABLE",(i=c||(c={}))[i.FIXED=1]="FIXED",i[i.STARTING=2]="STARTING",i[i.RANGE=3]="RANGE",(l=d||(d={})).VACCINE="VACCINE",l.IVF="IVF",l.EGG_FREEZING="EGG_FREEZING",l.HEALTH_SCREENER="HEALTH_SCREENER";let q={vaccine:d.VACCINE,ivf:d.IVF,"egg-freezing":d.EGG_FREEZING,screener:d.HEALTH_SCREENER},Q={[d.VACCINE]:"vaccine",[d.IVF]:"ivf",[d.EGG_FREEZING]:"egg-freezing",[d.HEALTH_SCREENER]:"screener"};var X=Object.freeze({__proto__:null,basePath:_,SSO_URL:N,USER_GEOLOCATION_COORDINATES_COOKIE:C,LOCALE_SPECS:O,COUNTRY_LIST:A,STATIC_PAGES:w,UP_BASEPATH:"user",LOCALE_HAS_COMMUNITY_SITE:S,HAS_CLINITY_DOWNLOAD_SITE:k,LOCALE_HAS_CART_CARE_SITE:L,ECOM_LOCALES:P,DATA_PRIVACY_LOCALES:R,CARE_LOCALES:D,CARE_BOOKING_LOCALES:M,VIDEO_LOCALES:H,FAVICONS:Y,get QUERY_HEALTH_TOOL(){return r},ISO_FORMAT:B,BEARER_TOKEN_COOKIE:F,BEARER_REFRESH_TOKEN_COOKIE:G,DATE_FNS_LOCALE:V,CDN_ADDRESS:U,GA_TOKEN_COOKIE:z,API_DATE_FORMAT:j,DATE_FNS_DATE_FORMAT:"dd-MM-yyyy",ZINDEX_SSO:W,ZINDEX_HEADER:$,VIDEO_DETAIL_TEMP_STORAGE:Z,HHG_CART_CARE_STORE_KEY:K,get EMERGENCY_STATUS(){return s},get ServicePrice(){return c},get SERVICE_TYPE(){return d},serviceTypeByProductType:q,productTypeByServiceType:Q,siteHost:I.Cf,siteOptions:I.x9,COUNTRY_CURRENCY_SYMBOL:I.Z5,domainLocales:f.v,MAP_DOMAIN_BY_LOCALE:f.f,get RISK_SCREENER_NAME(){return T.t},RISK_SCREENER_SLUG:T.n,isProduction:x.y})},pf9o:function(e,t,a){a.d(t,{L:function(){return Logo}});var n=a("q1tI"),o=a("r9m4"),i=a("owZr"),l=a("rBCA"),r=a("HMwR"),s=a("HwUa"),c=a("vq0H");let d=l.Z.div` position: relative; display: inline-flex; align-items: center; z-index: 0; .main-logo-icon { object-fit: contain; } &[data-logo-is-light] { > svg path { fill: #fff; } img { filter: brightness(0) invert(1); } } &[data-has-badge] { @supports (display: flex) and (gap: 1em) { gap: 0.5rem; } @supports not ((display: flex) and (gap: 1em)) { > img { margin-left: 0.25rem; } } } .common-logo-seasonal-left, .common-logo-seasonal-right { z-index: -1; max-width: unset; max-height: unset; pointer-events: none; } .common-logo-seasonal-left { position: absolute; top: 50%; left: 0; transform: translateY(-50%); pointer-events: none; } .common-logo-seasonal-right { position: absolute; top: 50%; right: 0; transform: translateY(-50%); } &[data-seasonal='christmas'] { padding-left: 37px; padding-right: 22px; .common-logo-seasonal-left { width: 125px; height: 56px; } .common-logo-seasonal-right { width: 23px; height: 17px; } ${r.M.mbDown} { padding-left: 30px; padding-right: 16px; .common-logo-seasonal-left { // width: 125px; height: 46px; } .common-logo-seasonal-right { // width: 23px; height: 12px; } } } &[data-seasonal='new-year'] { padding-right: 85px; .common-logo-seasonal-left { top: 35%; width: 100px; height: 56px; } .common-logo-seasonal-right { width: 85px; height: 54px; } ${r.M.mbDown} { padding-right: 0; .common-logo-seasonal-right { display: none; } } } &[data-seasonal='lunar-new-year'] { padding-left: 30px; padding-right: 35px; .common-logo-seasonal-left { width: 33px; height: 41px; } .common-logo-seasonal-right { width: 37px; height: 54px; } } &[data-seasonal='ramadan'] { &[data-type='hellosehat'] { padding-right: 35px; .common-logo-seasonal-left { width: 165px; height: unset; left: 6px; } .common-logo-seasonal-right { width: 33px; height: unset; } } &[data-type='hellodoktor'] { padding-right: 66px; .common-logo-seasonal-left { width: 133px; height: unset; left: 6px; } .common-logo-seasonal-right { width: 63px; height: unset; } } } &[data-seasonal='hung-king'] { &[data-type='hellobacsi'] { .common-logo-seasonal-left { width: 134px; height: unset; left: 50%; top: 50%; transform: translate(-50%, -50%); } } &[data-type='marryBaby'] { .common-logo-seasonal-left { width: 145px; height: unset; left: 50%; top: 50%; transform: translate(-50%, -50%); } } } &[data-seasonal='vn-independent-day'] { &[data-type='hellobacsi'], &[data-type='marryBaby'] { .common-logo-seasonal-left.desktop-only { width: unset; height: 56px; left: 65%; top: 50%; transform: translate(-50%, -50%); } } &[data-type='marryBaby'] { .common-logo-seasonal-left.desktop-only { left: 50%; z-index: 1; } } &[data-type='hellobacsi'], &[data-type='marryBaby'] { .common-logo-seasonal-left.mobile-only { width: unset; height: 56px; left: 60%; top: 50%; transform: translate(-50%, -50%); } } &[data-type='marryBaby'] { .common-logo-seasonal-left.mobile-only { left: 40%; z-index: 1; } } } .desktop-only { ${r.M.mbDown} { display: none; } } .mobile-only { ${r.M.mbUp} { display: none; } } `,p=l.Z.img` height: 16px; width: unset; margin-bottom: 4px; margin-left: -3px; `,isChristmas=e=>{let t=e.getDate(),a=e.getMonth();return 11===a&&t>=16&&t<=25},m={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},u=[o.L.Vietnam,o.L.Taiwan,o.L.Indonesia,o.L.Malaysia],isLunarNewYear=e=>{let t=e.getFullYear(),a=m[t];if(!a)return!1;let n=new Date(t,a[1],a[0]),o=new Date(n);o.setDate(n.getDate()-7);let i=new Date(n);return i.setDate(n.getDate()+5),o<=e&&e<=i},isNewYear=e=>{let t=e.getDate(),a=e.getMonth();return 11===a&&t>=26||0===a&&t<=15},h=[{year:2024,start:[10,2],end:[8,3]},{year:2025,start:[1,2],end:[30,2]},{year:2026,start:[18,1],end:[19,2]},{year:2027,start:[8,1],end:[9,2]},{year:2028,start:[28,0],end:[26,1]},{year:2029,start:[16,0],end:[14,1]},{year:2030,start:[6,0],end:[4,1]},{year:2030,start:[26,11],end:[24,0,2031]},{year:2031,start:[15,11],end:[13,0,2032]},{year:2032,start:[4,11],end:[2,0,2033]}],isRamadan=e=>{let t=e.getFullYear(),a=h.filter(e=>e.year===t);return!!a.length&&a.some(a=>{let n=a.start[2]||t,o=new Date(n,a.start[1],a.start[0]),i=new Date(n,a.end[1],a.end[0]);return o<=e&&e<=i})},g={2024:[18,3],2025:[7,3],2026:[26,3],2027:[16,3],2028:[4,3],2029:[23,3],2030:[12,3],2031:[1,3],2032:[19,3],2033:[9,3],2034:[28,3],2035:[17,3]},isVNHungKing=e=>{let t=e.getFullYear(),a=g[t];if(!a)return!1;let n=new Date(t,a[1],a[0]),o=new Date(n);o.setDate(n.getDate()-1);let i=new Date(n);return i.setDate(n.getDate()+1),o<=e&&e<=i},isVN3004=e=>{let t=e.getFullYear(),a=new Date(t,3,30),n=new Date(a);n.setDate(a.getDate()-1);let o=new Date(a);return o.setDate(a.getDate()+2),n<=e&&e<=o},isLabourDay=e=>{let t=e.getFullYear(),a=new Date(t,4,1),n=new Date(a);n.setDate(a.getDate()-1);let o=new Date(a);return o.setDate(a.getDate()+1),n<=e&&e<=o},isVNIndependentDay=e=>{let t=e.getFullYear(),a=new Date(t,8,2),n=new Date(a);n.setDate(a.getDate()-1);let o=new Date(a);return o.setDate(a.getDate()+1),n<=e&&e<=o},Logo=({type:e,className:t,style:a,isLightLogo:l,customSize:r,badge:m,locale:h,dateForSeasonal:g,isPro:E})=>{let[y,b]=(0,n.useState)({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1,isVNIndependentDay:!1});return(0,n.useEffect)(()=>{if(!g||isNaN(new Date(g).getTime()))return;let e=new Date(g),t=isChristmas(e),a=u.includes(h)&&isLunarNewYear(e),n=!a&&isNewYear(e),i=isRamadan(e),l=h===o.L.Vietnam&&isVNHungKing(e),r=h===o.L.Vietnam&&isVN3004(e),s=h===o.L.Vietnam&&isLabourDay(e),c=h===o.L.Vietnam&&isVNIndependentDay(e);b({isChristmas:t,isLunarNewYear:a,isNewYear:n,isRamadan:i,isVNHungKing:l,isVN3004:r,isLabourDay:s,isVNIndependentDay:c})},[h,new Date(g).getDate()]),n.createElement(d,{className:t,style:a,"data-logo-is-light":l||void 0,"data-has-badge":!!m,"data-seasonal":y.isRamadan?"ramadan":y.isChristmas?"christmas":y.isLunarNewYear?"lunar-new-year":y.isNewYear?"new-year":y.isVNHungKing?"hung-king":y.isVN3004?"30-04":y.isLabourDay?"labour-day":y.isVNIndependentDay?"vn-independent-day":void 0,"data-type":e},y.isChristmas?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"left xmas logo",src:i.C.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),n.createElement(c.I,{alt:"right xmas logo",src:i.C.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):y.isNewYear?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"left new year logo",src:i.C.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),n.createElement(c.I,{alt:"right new year logo",src:i.C.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):y.isLunarNewYear?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"left lunar new year logo",loading:"lazy",src:i.C.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),n.createElement(c.I,{alt:"right lunar new year logo",loading:"lazy",src:i.C.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):y.isRamadan&&"hellosehat"===e?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"left ramadan logo",loading:"lazy",src:i.C.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),n.createElement(c.I,{alt:"right ramadan logo",loading:"lazy",src:i.C.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):y.isRamadan&&"hellodoktor"===e?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"left ramadan logo",loading:"lazy",src:i.C.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),n.createElement(c.I,{alt:"right ramadan logo",loading:"lazy",src:i.C.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):y.isVNHungKing&&("hellobacsi"===e||"marryBaby"===e)?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"Hung King logo",loading:"lazy",src:i.C.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})):y.isVNIndependentDay&&("hellobacsi"===e||"marryBaby"===e)?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"VN Independent day logo",loading:"lazy",src:i.C.getAssetPath("logo/vn-independence-desktop.png"),className:"common-logo-seasonal-left desktop-only"}),n.createElement(c.I,{alt:"VN Independent day logo",loading:"lazy",src:i.C.getAssetPath("logo/vn-independence-mobile.png"),className:"common-logo-seasonal-left mobile-only"})):null,n.createElement(s.L,{type:e,width:null==r?void 0:r.width,height:null==r?void 0:r.height,isLight:l}),E?n.createElement(p,{src:i.C.getAssetPath("logo/pro-suffix.svg")}):null,m)}},"5jN0":function(e,t,a){a.d(t,{M:function(){return Modal}});var n=a("q1tI"),o=a("vw/B"),i=a("i8i4"),l=a("rBCA"),r=a("HMwR"),s=a("gEnE"),c=a("iBNF");let d=(0,s.Z)(l.Z.div` position: relative; z-index: 200; background-color: ${c.r.colors.white}; border-radius: ${c.r.borderRadius}; box-shadow: 0px 8px 40px 0px #0000001a; &[data-site-type='marryBaby'] { border-radius: 16px; .hhg-modal__content { position: relative; z-index: 111; height: 100%; padding: 24px; } } .hhg-modal__content { position: relative; z-index: 111; height: 100%; padding: 16px; } .hhg-modal__video { position: relative; z-index: 111; height: 100%; background-color: none; box-shadow: none; } `,"hhgcomp-modal-modal"),p=l.Z.div` position: fixed; top: 0; left: 0; z-index: 201; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; visibility: hidden; opacity: 0; background-color: rgba(0, 0, 0, 0.6); transition: opacity 0.3s ease-in-out; .hhg-modal__close { position: absolute; top: 16px; right: 16px; cursor: pointer; img { width: 100%; height: 100%; border-radius: 50%; } } &[data-type='video'] { z-index: 1001; } &[data-open='true'] { opacity: 1; visibility: visible; } ${d.classSelector} { transition: transform 0.3s ease-in-out; } &.slideTop { ${d.classSelector} { transform: translate(0, -100vh); } &[data-open='true'] { ${d.classSelector} { transform: translate(0); } } } &.scaleUp { ${d.classSelector} { transform: scale(0.9); } &[data-open='true'] { ${d.classSelector} { transform: scale(1); } } } &[data-type='tail'] { justify-content: flex-end; ${d.classSelector} { width: 420px; height: 100%; border-radius: 0; overflow: hidden auto; } } &[data-type='form'] { ${d.classSelector} { width: 496px; height: 548px; max-height: 100%; overflow-y: auto; ${r.M.mbDown} { width: 340px; } } } &[data-type='video'] { ${d.classSelector} { height: 100%; max-height: 539px; ${r.M.mbDown} { height: 192px; width: 100%; height: 100%; border-radius: ${c.r.borderRadius}; max-height: 192px; } } } &[data-type='confirm'] { ${d.classSelector} { width: 100%; max-width: 407px; ${r.M.mbDown} { width: calc(100% - 32px); max-width: calc(100% - 32px); } } } `,m=l.Z.div` position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; align-items: center; &[data-open='false'] { display: none; } &[data-type='video'] { background-color: ${c.r.colors.secondaryDark}; } `,u="hhg-modals",getModalsRoot=()=>{let e=document.getElementById(u);return e||((e=document.createElement("div")).setAttribute("id",u),document.body.append(e)),e},cleanUpModalShow=()=>{let e=document.querySelectorAll('.hhg-modal[data-open="true"]');e.length<1&&document.body.classList.remove("hhc-modal-show")},cleanUpDisabledScroll=()=>{let e=document.querySelectorAll('.hhg-modal[data-open="true"]');e.length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},Modal=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:l,children:r,className:s="",animationType:c="scaleUp",isStaticBackdrop:u=!1,siteType:h})=>{let[g,E]=(0,n.useState)(!1),y=(0,n.useRef)(null),{width:b}=(0,o.u)();if(!y.current&&g&&(y.current=document.createElement("div")),(0,n.useEffect)(()=>(E(!0),()=>{E(!1),cleanUpModalShow(),cleanUpDisabledScroll()}),[]),(0,n.useEffect)(()=>{if(g){let e=getModalsRoot();return e.appendChild(y.current),()=>{e.removeChild(y.current)}}},[g]),(0,n.useEffect)(()=>{a?document.body.classList.add("hhc-modal-show"):cleanUpModalShow()},[a]),(0,n.useEffect)(()=>{a?(document.body.style.overflow="hidden",document.body.style.paddingRight=b+"px",document.body.classList.add("hhc-disabled-scroll")):cleanUpDisabledScroll()},[a,b]),!g)return null;let I=["hhg-modal__wrapper",s,c].filter(e=>e).join(" ");return(0,i.createPortal)(n.createElement(p,{className:I,"data-open":a,"data-type":e},!u&&n.createElement(m,{"data-open":a,onClick:l,"data-type":e}),!u&&"video"===e&&!!t&&n.createElement("div",{className:"hhg-modal__close",onClick:l},t),n.createElement(d,{className:"hhg-modal","data-open":a,"data-site-type":h},n.createElement("div",{className:"video"===e?"hhg-modal__video":"hhg-modal__content"},!!t&&"video"!==e&&n.createElement("div",{className:"hhg-modal__close",onClick:l},t),r))),y.current)}},s5u8:function(e,t,a){a.d(t,{C:function(){return h},I:function(){return ImagePreviewPopup},P:function(){return PostSingleImageViewPopup},a:function(){return PostImagePreview},b:function(){return g}});var n=a("q1tI"),o=a("rPIz"),i=a("HMwR"),l=a("5kis"),r=a("EJrp"),s=a("t/pd"),c=a("/kWL"),d=a("rBCA"),p=a("z/kP"),m=a("iBNF"),u=a("gEnE"),h="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6 6 18M6 6l12 12'/%3e%3c/svg%3e",g="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M10.05 18.06 4 12.038l6.05-6.025M4.002 12.035h15'/%3e%3c/svg%3e";let E=d.Z.div` padding: 14px 16px 14px 17px; background: ${e=>e.bgColor}; border-left: 3px solid ${e=>e.highlight}; ${i.M.mbUp} { padding: 12px 12px 12px 17px; } `,y=d.Z.div` display: flex; `,b=d.Z.div` font-size: 12px; line-height: 18px; &[data-has-icon='true'] { margin-left: 10px; } `,I=d.Z.div` flex-shrink: 0; `,f=d.Z.div` display: grid; grid-gap: 3px; grid-template-columns: 1fr 1fr; grid-template-rows: auto; .img-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; grid-column: auto; & > img { cursor: zoom-in; } .img-preview-blur { position: absolute; top: 50%; left: 50%; width: 110%; height: 110%; /* Add the blur effect */ -webkit-filter: blur(8px); filter: blur(8px); object-fit: cover; object-position: center; opacity: 0.8; transform: translate(-50%, -50%); } .img-preview { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; } .img-more-overlay { position: absolute; top: 0; left: 0; display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.5); z-index: 4; } } &[data-image-count='1'] { .img-wrapper { /* padding-top: 100%; */ grid-column: 1/3; } } &[data-image-count='2'] { .img-wrapper { /* padding-top: 100%; */ } } &[data-image-count='3'] { .img-wrapper { &:first-child { grid-column: 1/3; } } } &[data-image-count='4'] { .img-wrapper { /* padding-top: 100%; */ } } &[data-image-count='5'] { grid-template-columns: repeat(6, 1fr); .img-wrapper { /* padding-top: 100%; */ grid-column: auto/ span 2; &:first-child { padding-top: 56.25%; grid-column: 1/4; } &:nth-child(2) { padding-top: 56.25%; grid-column: 4/7; } } } &[data-is-marrybaby='true'] { grid-gap: 8px; .img-wrapper { padding-top: 66.66%; border-radius: 1rem; .img-preview { object-fit: cover; } } &[data-image-count='3'] { grid-template-columns: 1fr 1fr 1fr; .img-wrapper { &:first-child { padding-top: 100%; grid-column: 1/3; grid-row: 1/3; } } } } `,T=d.Z.div` position: fixed; z-index: 999; top: 0; left: 0; display: flex; overflow: hidden; width: 100vw; height: 100vh; flex-direction: column; background: white; opacity: 0; pointer-events: none; transition: opacity 0.2s linear; &[data-open='true'] { opacity: 1; pointer-events: auto; } .top-bar { position: relative; padding: 20px 40px; .icon-arrow-left { position: absolute; top: 50%; left: 20px; height: 24px; width: 24px; cursor: pointer; transform: translateY(-50%); } } .container { flex: 1; overflow-y: auto; .img-preview { width: 100%; min-width: 100%; margin-bottom: 0.5rem; cursor: pointer; max-height: 100%; object-fit: cover; } } `,x=(0,d.Z)(e=>{var{icon:t,bgColor:a=m.r.colors.yellow50,highlightColor:o=m.r.colors.yellow800,message:i}=e,l=(0,p._)(e,["icon","bgColor","highlightColor","message"]);return n.createElement(E,Object.assign({bgColor:a,highlight:o},l),n.createElement(y,null,t&&n.createElement(I,null,t),n.createElement(b,{"data-has-icon":!!t},i)))})` margin-bottom: 16px; &.noti-bottom { border-left: none; margin-top: 4px; padding: 4px 8px; margin-left: 16px; margin-right: 16px; border-radius: 4px; } `,ImagePreviewPopup=({className:e,style:t,authorName:a,images:o,onClose:i,onOpenSingleView:r,alt:d})=>{let{t:p}=(0,l.u)(),[m,u]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{setTimeout(()=>{u(!0)},0)},[]),n.createElement(s.h,null,n.createElement(T,{className:e,style:t,"data-open":m},n.createElement("div",{className:"top-bar"},n.createElement("img",{className:"icon-arrow-left",src:g,onClick:i,alt:"go back",loading:"lazy"}),n.createElement(c.T,{size:"p2",weight:"bold",style:{textAlign:"center"}},p("previewPhotos.title",{name:a}))),n.createElement("div",{className:"container"},o.map((e,t)=>n.createElement("img",{className:"img-preview",key:t,src:e,onClick:()=>null==r?void 0:r(t),alt:d,loading:"lazy"})))),",")},v=d.Z.div` position: fixed; z-index: 999; top: 0; left: 0; display: flex; width: 100%; height: 100%; flex-direction: column; background: black; opacity: 0; pointer-events: none; transition: opacity 0.2s linear; &[data-open='true'] { opacity: 1; pointer-events: auto; } `,_=d.Z.div` padding: 1rem; background: white; .icon-close { width: 26px; height: 26px; cursor: pointer; } `,N=d.Z.div` position: relative; flex: 1; overflow: hidden; > img { height: 100%; width: 100%; object-fit: contain; object-position: center; } `,C=d.Z.div` --inner-padding: max(16px, 20%); height: 100%; position: absolute; left: 0; padding: 8px; padding-right: var(--inner-padding); display: flex; align-items: center; top: 0; cursor: pointer; &[data-right] { padding-right: 8px; padding-left: var(--inner-padding); left: unset; right: 0; } &[data-disabled='true'] { cursor: not-allowed; } `,O=d.Z.div` border-radius: 50%; background: rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; padding: 4px; > img { width: 16px; height: 16px; &[data-disabled='true'] { opacity: 0.5; } } ${i.M.tdUp} { padding: 8px; > img { width: 30px; height: 30px; } } `;var A="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m6 12.813 4-4-4-4'/%3e%3c/svg%3e";let PostSingleImageViewPopup=({initialViewIndex:e,images:t,onClose:a,alt:o})=>{let[i,l]=(0,n.useState)(e),[r,c]=(0,n.useState)(!1);(0,n.useEffect)(()=>{setTimeout(()=>{c(!0)},0)},[]);let d=null==t?void 0:t[i],p=0===i,m=!(null==t?void 0:t.length)||i===(null==t?void 0:t.length)-1;return n.createElement(s.h,null,n.createElement(v,{"data-open":r&&!!d},n.createElement(_,null,n.createElement("img",{src:h,className:"icon-close",onClick:a,alt:"close",loading:"lazy"})),d&&i>=0&&n.createElement(n.Fragment,null,n.createElement(N,null,n.createElement("img",{className:"img-preview",src:d,alt:o,loading:"lazy"}),n.createElement(C,{"data-disabled":p,onClick:()=>!p&&l(i-1)},n.createElement(O,null,n.createElement("img",{src:A,style:{transform:"rotate(180deg)"},alt:"left arrow","data-disabled":p,loading:"lazy"}))),n.createElement(C,{"data-right":!0,"data-disabled":m,onClick:()=>!m&&l(i+1)},n.createElement(O,null,n.createElement("img",{src:A,alt:"right arrow","data-disabled":m,loading:"lazy"})))))))},w=(0,u.Z)(d.Z.div` position: absolute; top: 0; right: 0; left: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; `,"hhgcomp-sensitivemask-inner"),S=d.Z.div``,k=d.Z.div` position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 3; background: white; cursor: pointer; &, * { // transition: all 300ms; transform-origin: bottom left; } img { transition: none; } .img-preview { width: 100%; } &[data-is-blurred='true'] { .img-preview { /* Add the blur effect */ -webkit-filter: blur(24px); filter: blur(24px); } } &[data-is-blurred='false'] { background: transparent; cursor: zoom-in; ${w.classSelector} { top: auto; right: auto; left: 8px; bottom: 8px; background: rgba(0, 0, 0, 0); align-items: flex-end; justify-content: flex-start; } } `,SensitiveMask=({image:e,showIcon:t=!0})=>{let[a,o]=(0,n.useState)(!0);return n.createElement(k,{"data-is-blurred":a,onClick:e=>a&&e.stopPropagation()},n.createElement("img",{loading:"lazy",className:"img-preview",src:e}),n.createElement(w,{onClick:e=>{e.stopPropagation(),o(!a)}},t&&n.createElement(S,null,a?n.createElement("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},n.createElement("path",{d:"M1.71 2.54a.996.996 0 0 1 0-1.41c.39-.39 1.03-.39 1.42 0l16.31 16.33a.996.996 0 1 1-1.41 1.41l-2.72-2.72c-1.34.52-2.79.82-4.31.82-5 0-9.27-3.11-11-7.5C.77 7.5 2.06 5.8 3.68 4.51zM16 9.47c0-2.76-2.24-5-5-5-.51 0-1 .1-1.47.24L7.36 2.54c1.15-.37 2.37-.57 3.64-.57 5 0 9.27 3.11 11 7.49-.69 1.76-1.79 3.3-3.18 4.53l-3.06-3.06c.14-.46.24-.95.24-1.46m-5 5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14L8.06 8.9c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07l1.57 1.57c-.65.32-1.37.5-2.14.5m2.97-5.33a2.97 2.97 0 0 0-2.64-2.64z",fill:"#fff"})):n.createElement("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none"},n.createElement("path",{d:"M12 0C5.142 0 1.886 5.879 1.096 7.557c-.132.28-.132.604 0 .884C1.886 10.121 5.142 16 12 16c6.834 0 10.092-5.837 10.896-7.54a1.08 1.08 0 0 0 0-.92C22.092 5.836 18.834 0 12 0m0 3a5 5 0 1 1-.001 10.001 5 5 0 0 1 0-10.001m0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6",fill:"#2D87F3"})))))},PostImagePreview=({className:e,images:t=[],style:a,authorName:s,isSensitive:c=!1,alt:d,positionAlert:p="top"})=>{let{data:{env:{isMarryBaby:m}}}=(0,n.useContext)(r.T),{t:u}=(0,l.u)(),h=`+ ${(t.length||0)-4}`,[g,E]=(0,n.useState)(!1),[y,b]=(0,n.useState)(-1),I=t.length>5,T=(0,n.useRef)(!1);return(0,n.useEffect)(()=>()=>{T.current&&(0,i.t)(!1)},[]),(0,n.useEffect)(()=>{g||y>=0?((0,i.t)(!0),T.current=!0):((0,i.t)(!1),T.current=!1)},[g,y]),n.createElement(n.Fragment,null,c&&"top"===p&&n.createElement(x,{message:u("sensitiveMask.contentWarningDescription"),icon:n.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},n.createElement("path",{d:"M9 .667A8.336 8.336 0 0 0 .667 9c0 4.6 3.733 8.333 8.333 8.333S17.333 13.6 17.333 9 13.6.667 9 .667m0 9.166A.836.836 0 0 1 8.167 9V5.667c0-.459.375-.834.833-.834s.833.375.833.834V9A.836.836 0 0 1 9 9.833M8.167 11.5v1.667h1.666V11.5z",fill:"#FE921D"}))}),n.createElement(f,{className:e,style:a,"data-image-count":I?5:t.length||0,"data-is-marrybaby":m,"data-cursor-pointer":!c},null==t?void 0:t.slice(0,5).map((e,t)=>{let a=4===t&&I;return n.createElement("div",{className:"img-wrapper",key:t,onClick:()=>{t>=4&&I?E(!0):b(t)}},c&&n.createElement(SensitiveMask,{image:e,showIcon:!a}),!m&&n.createElement("img",{loading:"lazy",className:"img-preview-blur",src:e,alt:d}),n.createElement("img",{loading:"lazy",className:"img-preview",src:e,alt:d}),a&&n.createElement("div",{className:"img-more-overlay"},n.createElement(o.H,{tag:"h1",as:"h2",color:"white"},h)))})),g&&n.createElement(ImagePreviewPopup,{authorName:s||"",images:t,onClose:()=>E(!1),onOpenSingleView:b,alt:d}),y>=0&&n.createElement(PostSingleImageViewPopup,{images:t,initialViewIndex:y,onClose:()=>b(-1),alt:d}),c&&"bottom"===p&&n.createElement(x,{message:u("sensitiveMask.contentWarningDescription.community"),className:"noti-bottom",icon:n.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},n.createElement("path",{d:"M9 .667A8.336 8.336 0 0 0 .667 9c0 4.6 3.733 8.333 8.333 8.333S17.333 13.6 17.333 9 13.6.667 9 .667m0 9.166A.836.836 0 0 1 8.167 9V5.667c0-.459.375-.834.833-.834s.833.375.833.834V9A.836.836 0 0 1 9 9.833M8.167 11.5v1.667h1.666V11.5z",fill:"#FE921D"}))}))}},dpUs:function(e,t,a){a.d(t,{I:function(){return Indicator}});var n=a("z/kP"),o=a("q1tI"),i=a("QJsO"),l=a("iBNF");let Indicator=e=>{var{styles:t,color:a=l.r.colors.red700}=e,r=(0,n._)(e,["styles","color"]);return o.createElement(i.z,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},t),color:a},r))}},Vitr:function(e,t,a){a.d(t,{T:function(){return Text}});var n=a("z/kP"),o=a("q1tI"),i=a("/kWL");let Text=e=>{var{size:t="base",type:a="regular"}=e,l=(0,n._)(e,["size","type"]);return o.createElement(i.T,Object.assign({size:t,weight:"caption"===a?"bold":a,"data-size":t,"data-type":a,"data-word-wrap":l.wordWrap,"data-is-uppercase":l.isUppercase},l))}},"1X1S":function(e,t,a){a.d(t,{C:function(){return ChoiceField},T:function(){return TextField},i:function(){return N},u:function(){return h}});var n=a("/npG"),o=a("iuhU"),i=a("Eso5"),l=a("8vDj"),r=a("2451"),s=a("z/kP"),c=a("q1tI"),d=a("ChHM"),p=a("AeFk"),m=a("rBCA"),u=a("iBNF"),h=(0,n.k)(e=>(0,r.G)(e)[r.C.LEADGEN]);let g=(0,c.createContext)({}),E=p.iv` height: 100% !important; min-height: calc(var(--container-height, 56px) * 24 / 56); line-height: calc(var(--container-height, 56px) * 24 / 56); border: none !important; border-radius: 0 !important; outline: none !important; box-shadow: none !important; padding: 0; cursor: pointer; /* opacity: 0; */ ::placeholder { color: ${u.r.colors.gray400}; } `,y=p.iv` height: auto !important; cursor: text; opacity: 1; transition: 0.1s ease-in-out all; `,b=p.iv` position: absolute; top: calc(var(--container-height) / 2); left: var(--space-x, 16px); margin: 0; z-index: 1; cursor: pointer; transform: translateY(-50%); transition: 0.125s ease-in all; right: 0; // auto grow width `,I=p.iv` top: var(--space-y-shrink, 6px); transform: translateY(0); transition: 0.125s ease-out all; right: 0; // auto grow width `,f=p.iv` min-height: var(--container-height, 56px); display: flex; align-items: flex-end; border: 1px solid ${u.r.colors.gray200}; border-radius: 8px; background-color: #fff; padding-inline: var(--space-x, 16px); padding-block: var(--space-y-not-shrink, 16px); cursor: pointer; pointer-events: none; &:has(.mantine-Input-rightSection) { padding-right: var(--container-height, 56px); } .mantine-Input-icon { display: none; } .mantine-NumberInput-control { border-color: ${u.r.colors.gray200}; } `,T=p.iv` height: auto; min-height: var(--container-height, 56px); padding-block: var(--space-y-shrink, 6px); cursor: text; pointer-events: auto; `,x=p.iv` color: ${u.r.colors.red800}; font-size: 12px; line-height: 1.5; `,v=m.Z.div` --space-x: 16px; --space-y-not-shrink: 15px; --space-y-shrink: 6px; --container-height: 56px; --label-not-shrink: 16px; --label-shrink: 12px; --input: 15px; position: relative; min-width: 100px; max-width: 100%; display: inline-block; .textField_wrapper { display: inline-block; width: 100%; cursor: pointer; } .mantine-InputWrapper-root { &[data-invalid='true'] { .mantine-Input-wrapper { border-color: ${u.r.colors.red400}; } } .mantine-Input-wrapper { &:has([data-invalid]) { border-color: ${u.r.colors.red400}; } } } .mantine-InputWrapper-label { ${b} } .mantine-Input-wrapper { ${f} + .mantine-Popover-dropdown[data-position="bottom-start"] { left: 0 !important; } + .mantine-Popover-dropdown[data-position='top-start'] { top: unset !important; left: 0 !important; bottom: 100% !important; } } .mantine-Input-input { ${E} } &.textField_shrink { .mantine-InputWrapper-label { ${I} } .mantine-Input-wrapper { ${T} &.mantine-Select-wrapper { .mantine-Select-rightSection { pointer-events: auto !important; } } } .mantine-Input-input { ${y} } &:has(.PhoneInput) { .mantine-InputWrapper-label { left: var(--space-x, 16px); } .PhoneInput { .PhoneInputInput { opacity: 1; } } } } &:focus-within { .mantine-Input-wrapper { transition: 0.25s linear border; border-color: ${u.r.colors.primary600}; box-shadow: 0 0 4px ${u.r.colors.primary200}; } } .PhoneInput { --phone-select: 75px; --phone-input-space-x: 8px; width: 100%; opacity: 1; border: none; .PhoneInputCountry { background-color: transparent; border: none; padding: 0; width: var(--phone-select, 75px); } .PhoneInputInput { flex: 1; min-width: 0; line-height: 1.5; outline: none !important; border: none; box-shadow: none; font-size: var(--input, 15px); padding: 0 var(--phone-input-space-x, 8px); /* opacity: 0; */ color: ${u.r.colors.gray800} !important; :focus { color: ${u.r.colors.gray800} !important; } } } &:has(.PhoneInput) { .mantine-InputWrapper-label { left: calc( var(--space-x, 16px) + var(--phone-select, 75px) + var(--phone-input-space-x, 8px) ); } } .icon { position: absolute; top: calc(var(--container-height) / 2); right: var(--space-x, 16px); transform: translateY(-50%); transition: 0.125s ease-in all; &.shrink { top: calc(var(--container-height) / 2 - 4px); transform: translateY(0); } } `,_=m.Z.div` &.leadgen-form_checkbox, &.leadgen-form_radio { width: 100%; } &.leadgen-form_dropdown { width: calc(50% - 12px); } .mantine-InputWrapper-root { display: block; } .mantine-InputWrapper-label { margin-bottom: 0.5rem; color: ${u.r.colors.gray800}; font-size: 16px; font-weight: 400; line-height: 1.5; } .mantine-Radio-root, .mantine-Checkbox-root { gap: 8px; min-width: calc(50% - 4px); // input[type='radio'], // input[type='checkbox'] { // border-color: ${u.r.colors.gray600}; // width: 18px; // height: 18px; // } // input[type='checkbox'] { // border-radius: 4px; // } // &[data-checked='true'] { // input[type='radio'], // input[type='checkbox'] { // border-color: ${u.r.colors.primary600}; // } // input[type='radio'] { // background-color: white; // } // } .mantine-Checkbox-input { &:checked { border-color: ${u.r.colors.primary600}; } } } .leadgen-choiceContainer { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; } .mantine-InputWrapper-error { ${x} } `;m.Z.div` position: absolute; top: calc(var(--container-height) / 2); right: var(--space-x, 16px); `;let TextField=e=>{let{shrink:t,onChangeShrink:a,children:n,className:i}=e,l=(0,s._)(e,["shrink","onChangeShrink","children","className"]),[r,d]=(0,c.useState)(t),[p,m]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{d(t)},[t]),c.createElement(g.Provider,Object.assign({value:{shrinkProps:t,shrink:r,setShrink:d,onChangeShrink:a,hasIcon:p,setHasIcon:m}},l),c.createElement(v,Object.assign({shrink:r,className:(0,o.default)(i,"textField",{textField_shrink:!!r})},l),n))},TextFieldControl=e=>{let{shrink:t,shrinkProps:a,onChangeShrink:n,setShrink:o,hasIcon:l}=(0,c.useContext)(g),{children:r,htmlFor:s}=e,p=(0,d.O)(()=>{a||(o(!1),null==n||n(!1))}),focusInput=e=>{setTimeout(()=>{let t=e.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])'),a=t.item(t.length-1);a&&a.focus({preventScroll:!0})},150)},m=(0,c.useCallback)(e=>{if(t){focusInput(e.currentTarget);return}o(!0),null==n||n(!0),focusInput(e.currentTarget)},[t]);return(0,c.useEffect)(()=>{o(a)},[a]),c.createElement(i.x,{ref:p,onClick:m,className:"textField_wrapper",component:s?"label":"div",htmlFor:s},"function"==typeof r?r({shrink:!!t,hasIcon:l}):r)},TextFieldIcon=({Icon:e})=>{let{shrink:t,setHasIcon:a}=(0,c.useContext)(g),n=(0,l.rZ)();return(0,c.useEffect)(()=>{e&&a(!0)},[]),e?c.createElement(e,{className:`icon ${t?"shrink":""}`,shrink:t,size:24,color:n.colors.gray[9]}):null};TextField.Control=TextFieldControl,TextField.Icon=TextFieldIcon;let ChoiceField=e=>{let{children:t,className:a}=e,n=(0,s._)(e,["children","className"]);return c.createElement(_,Object.assign({className:(0,o.default)(a,"choiceField")},n),t)};var N=Object.freeze({__proto__:null,TextField:TextField,TextFieldControl:TextFieldControl,TextFieldIcon:TextFieldIcon,ChoiceField:ChoiceField})},Jgk1:function(e,t,a){a.d(t,{B:function(){return BabyPoopForm}});var n=a("z/kP"),o=a("q1tI"),i=a("/npG"),l=a("mYVa"),r=a("Eso5"),s=a("iuhU"),c=a("/kWL"),d=a("g8xC"),p=a("5kis"),m=a("hePw"),u=a("8PAx"),h=(0,i.k)((e,{hasOnClickFn:t})=>({root:{position:"relative",display:"flex",flexDirection:"column",gap:(0,l.h)(16)},sponsorBox:{display:"flex",gap:(0,l.h)(12),alignItems:"center",backgroundColor:e.colors.neutral[0],border:`1px solid ${e.colors.neutral[1]}`,borderRadius:(0,l.h)(4),padding:"4px 12px",alignSelf:"flex-start"},sponsorLogo:{maxHeight:(0,l.h)(32)},btn:{minWidth:(0,l.h)(180),[e.fn.largerThan("sm")]:{alignSelf:"flex-end"},visibility:t?"visible":"hidden"}}));let BabyPoopForm=e=>{var{babyPoopPage:t,onClickFindOut:a,currentUrl:i,sponsorLogo:l,btnProps:g,styles:E,classNames:y}=e,b=(0,n._)(e,["babyPoopPage","onClickFindOut","currentUrl","sponsorLogo","btnProps","styles","classNames"]);let{t:I}=(0,p.u)(),{classes:f}=h({hasOnClickFn:!!a},{name:"BabyPoopForm",styles:E,classNames:y}),{classes:T={}}=(0,o.useContext)(m.C);return o.createElement(u.H.FormRow,null,o.createElement(r.x,Object.assign({className:f.root},b),l&&o.createElement(r.x,{className:f.sponsorBox},o.createElement(c.T,{size:"p4"},I("common.sponsoredBy")),o.createElement("img",{loading:"lazy",src:l,alt:"sponsor",className:f.sponsorLogo})),o.createElement(c.T,{size:"p3",as:"div",className:"description",dangerouslySetInnerHTML:{__html:t.description}}),o.createElement(d.B,Object.assign({className:(0,s.default)(f.btn,T.submitBtn),onClick:a,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:i},g),I("babyPoop.findOut"))))}},"7C7H":function(e,t,a){a.d(t,{B:function(){return BlueWhiteLogin},N:function(){return NavigationProfileButton},U:function(){return UserPlain},a:function(){return _},b:function(){return NavigationProvider},u:function(){return useCSSFocusPopupHelper}});var n=a("z/kP"),o=a("q1tI"),i=a("nmRb"),l=a("EkXo"),r=a("FNss"),s=a("g8xC"),c=a("/kWL"),d=a("5kis"),p=a("owZr"),m=a("iBNF"),u=a("rBCA"),h=a("HMwR"),g=a("gEnE"),E=a("xXM3"),y=a.n(E),b=a("mGnJ"),I=a("EJrp"),f=a("Pt5v"),T=a("xrdX"),x=a("QHxc"),v=a("hPj0");let BlueWhiteLogin=e=>o.createElement("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("rect",{y:"0.5",width:"31",height:"31",rx:"15.5",fill:"white"}),o.createElement("path",{d:"M15.4999 14.3797C16.9062 14.3797 18.0462 13.2397 18.0462 11.8334C18.0462 10.4271 16.9062 9.28711 15.4999 9.28711C14.0936 9.28711 12.9536 10.4271 12.9536 11.8334C12.9536 13.2397 14.0936 14.3797 15.4999 14.3797Z",stroke:"#2743AD",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.9092 22.0335C20.7055 21.7825 21.124 20.9029 20.786 20.1399C19.8879 18.1112 17.861 16.6946 15.4999 16.6946C13.1388 16.6946 11.112 18.1112 10.2138 20.1399C9.87585 20.9038 10.2944 21.7825 11.0907 22.0335C12.2249 22.3909 13.7258 22.7131 15.4999 22.7131C17.274 22.7131 18.7749 22.3909 19.9092 22.0335Z",stroke:"#2743AD",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),UserPlain=e=>o.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{d:"M9.99991 8.3797C11.4062 8.3797 12.5462 7.23969 12.5462 5.83341C12.5462 4.42712 11.4062 3.28711 9.99991 3.28711C8.59363 3.28711 7.45361 4.42712 7.45361 5.83341C7.45361 7.23969 8.59363 8.3797 9.99991 8.3797Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M14.4092 16.0335C15.2055 15.7825 15.624 14.9029 15.286 14.1399C14.3879 12.1112 12.361 10.6946 9.99992 10.6946C7.63881 10.6946 5.61196 12.1112 4.71381 14.1399C4.37585 14.9038 4.79436 15.7825 5.59066 16.0335C6.72492 16.3909 8.22584 16.7131 9.99992 16.7131C11.774 16.7131 13.2749 16.3909 14.4092 16.0335Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),useNavConfig=({locale:e,projectType:t,siteType:a,enableBookingBtn:n})=>{let i=(0,o.useMemo)(()=>{let o="discover"===t||"together"===t||"marryBaby"===t||"profile"===t&&"marryBaby"===a,i="marryBaby"!==a&&"marryBaby"!==t&&b.C.includes(e),l=n&&"marryBaby"!==t&&"discover"===t&&"marryBaby"!==a&&b.d.includes(e),r="marryBaby"===t||b.c.includes(e),s="marryBaby"!==a&&b.E.includes(e),c="marryBaby"!==a&&b.E.includes(e),d=b.V.includes(e),p=b.H.includes(e),m=b.e.includes(e),u=(0,f.g)(e,"marryBaby"===a),h=u;"undefined"!=typeof window&&(h.includes("//id.")&&(h=h.replace("id.","")),h.includes("//staging-id.")&&(h=h.replace("staging-id.","discover.")));let g=(0,f.a)(e,"marryBaby"===a),E={HOME_PAGE_URL:h,CARE_URL_FE:`${h}/care`,TOGETHER_URL_FE:`${h}/community`,VIDEO_URL_FE:`${h}/videos`,SSO_URL:g,TOGETHER_API:(0,f.b)(),DISCOVER_API:(0,f.c)(e)};return{enableSearchBar:o,enableNavCare:i,enableNavCareBooking:l,enableNavTogether:r,enableNavEcom:s,enableProfileEcom:c,enableNavVideo:d,enableProfileMyHealth:!0,enableNavDiscover:!0,enableNavHealthTools:!0,enableProfileMySaved:!0,statics:E,enableNavClinityDownload:p,enableNavCartCare:m}},[]);return i},_=o.createContext({}),NavigationProvider=e=>{var{children:t}=e,a=(0,n._)(e,["children"]);let[i,l]=o.useState(()=>a.currentUrl||`https://${"marryBaby"===a.siteType?I.d[a.locale||"en-PH"]:T.v[a.locale||"en-PH"]}${"together"===a.projectType?"/community":"ecom"===a.projectType?"/ecom":"care"===a.projectType?"/care":""}/`);(0,o.useEffect)(()=>{let update=()=>{l(window.location.href)};return window.addEventListener("popstate",update),update(),()=>{window.removeEventListener("popstate",update)}},[]);let r=useNavConfig({locale:a.locale,projectType:a.projectType,siteType:a.siteType,enableBookingBtn:a.enableBookingBtn});return o.createElement(_.Provider,{value:Object.assign(Object.assign({},a),{customClasses:a.customClasses||{},configs:Object.assign(Object.assign({},r),a.configs),currentUrl:a.currentUrl||i})},t)},useCSSFocusPopupHelper=e=>{let{allowBgScroll:t}=e||{},a=(0,o.useRef)();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},N=(0,g.Z)(u.Z.div` position: absolute; right: 0; transition: all 0.5s ease-in-out; overflow-y: auto; &[data-open='true'] { z-index: 200; top: 120%; opacity: 1; visibility: visible; } &[data-open='false'] { display: none; } .popup-content { z-index: 111; height: 100%; border: 1px solid #0000001a; border-radius: 16px; border-top-left-radius: 0; border-top-right-radius: 0; } /* min-height: 415px; */ ${h.M.mbUp} { width: 320px; } ${h.M.mbDown} { position: fixed; left: 0; width: 100%; padding-bottom: 70px; } `,"hhgcomp-navprofilebutton-popup"),C=(0,g.Z)(u.Z.div` position: fixed; z-index: 150; top: var(--header-bottom, 56px); left: 0; width: 100%; height: 100%; align-items: center; ${h.M.mbUp} { background-color: transparent; &[data-type='welcome'] { background: rgba(38, 38, 38, 0.3); } &[data-type='due-date'] { background: rgba(38, 38, 38, 0.3); } } ${h.M.mbDown} { background: rgba(38, 38, 38, 0.3); } &[data-type='welcome'] { top: 0; } &[data-open='false'] { display: none; } `,"hhgcomp-navprofilebutton-popupwrapper"),O=u.Z.div` width: 36px; height: 36px; cursor: pointer; img { border-radius: 50%; } .avatar { width: 36px; height: 36px; object-fit: cover; } .avatar-default { display: flex; align-items: center; justify-content: center; background-color: ${m.r.colors.secondaryBase}; border-radius: 50%; color: white; font-size: 20px; font-weight: bold; } `,A=u.Z.div` display: inline-flex; position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; cursor: pointer; .user-close-icon { display: none; } &:focus-within { .user-close-icon { display: block; } .user-avatar { display: none; } ${N.classSelector} { z-index: 200; top: 120%; opacity: 1; visibility: visible; display: initial; ${h.M.mbDown} { top: 100%; } } ${C.classSelector} { display: initial; } } `,w=u.Z.a` display: inline-flex; .login-btn[data-color='tertiary'][data-size='md'] { padding-left: 12px; padding-right: 12px; } .mobile-only { ${h.M.mbUp} { display: none; } } .login-btn { display: none; ${h.M.mbUp} { display: block; border: 1px solid ${m.r.colors.neutral100}; } } &[data-win-cash-back-theme='true'] { .login-btn { ${h.M.mbUp} { color: ${m.r.colors.white}; } } } `,ProfilePopup=({isOpen:e,userInfo:t,closePopup:a,siteType:n="helloSites",dispatchLogout:i})=>{let{customClasses:l={},configs:{enableProfileFindMyBooking:r}}=(0,o.useContext)(_);return o.createElement(N,{className:l.profilePopup,"data-open":e},o.createElement("div",{className:y()("popup-content",l.profilePopupContent)},o.createElement(x.l,{siteType:n,onLogout:()=>{i&&(i(),a())},userInfo:t,configs:{enableProfileFindMyBooking:r}})))},NavigationProfileButton=({userInfo:e,siteType:t,onLoginClick:a,currentUrl:u,isMinifyLogin:h,onLogout:g,style:E,isLoading:y,isMobile:b,className:I})=>{let{isWinCashBackTheme:f}=(0,o.useContext)(_),{t:T}=(0,d.u)(),[x,N]=(0,o.useState)(!1),C=(null==e?void 0:e.name)||(null==e?void 0:e.username),{containerRef:S,onContainerFocus:k,onContainerBlur:L,onButtonMouseDown:P,onClose:R}=useCSSFocusPopupHelper(),D=(0,o.useMemo)(()=>b&&"helloSites"===t,[b]);return y?D?o.createElement(l.S,null):o.createElement(s.B,{size:"sm",color:"transparent",loading:!0}):(null==e?void 0:e.id)?o.createElement(o.Fragment,null,o.createElement(A,{ref:S,style:E,tabIndex:0,onBlur:L,onFocus:()=>{var e;k();let t=null===(e=S.current)||void 0===e?void 0:e.querySelector("#navigation-v2 .hhgcomp-navprofilebutton-popup");if(t){let e=t.getBoundingClientRect(),a=e.top,n=`calc(100vh - ${a}px)`;t.setAttribute("style",`max-height: ${n};`)}},className:I},o.createElement("div",{onMouseDown:P},o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},o.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),o.createElement(r.A,{size:32,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===t?m.r.mbColors.pink:m.r.colors.secondaryBase,placeholderText:C&&C.length?C[0].toUpperCase():"A"})),o.createElement(ProfilePopup,{dispatchLogout:()=>{R(),N(!0)},isOpen:!1,closePopup:R,siteType:t,userInfo:e})),o.createElement(v.F,{openLogoutPopup:x,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),N(!1)},siteType:t,onLogoutHandler:()=>(0,n.a)(void 0,void 0,void 0,function*(){N(!1),document.body.classList.toggle("noscroll",!1),yield g()})})):o.createElement(w,{style:Object.assign({textDecoration:"none"},E),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":u,"data-win-cash-back-theme":f,"data-site-type":t,onClick:a},h?o.createElement(O,null,o.createElement("img",{src:p.C.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):o.createElement(o.Fragment,null,"helloSites"===t&&(D?f?o.createElement(BlueWhiteLogin,{className:"mobile-only",style:{cursor:"pointer",width:32,height:32,flexShrink:0}}):o.createElement("img",{className:"mobile-only",src:p.C.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24}}):o.createElement(s.B,{className:"mobile-only",size:"sm",leftIcon:o.createElement(i.Z,{color:"currentColor",isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"},styles:{leftIcon:{marginRight:4}}},T("navigation.loginJoin"))),"marryBaby"===t&&o.createElement("div",{className:"mobile-only",style:{paddingLeft:16}},o.createElement(c.T,{size:"p3",color:m.r.mbColors.pink},T("navigation.loginJoin"))),"marryBaby"===t?o.createElement(s.B,{className:"login-btn",size:"md",leftIcon:o.createElement(i.Z,{color:"currentColor",isSolid:!0,size:22})},T("navigation.loginJoin")):o.createElement(s.B,{className:"login-btn",size:"md",leftIcon:f?o.createElement(UserPlain,{style:{flexShrink:0,width:20,height:20}}):o.createElement(i.Z,{color:"#595959",isSolid:!0,size:22}),variant:"ghost",color:"#262626",sx:{fontWeight:500,fontSize:14,lineHeight:22}},T("navigation.loginJoin"))))}},Zin3:function(e,t,a){a.d(t,{L:function(){return Loading}});var n=a("q1tI"),o=a("odgB"),i=a("5kis"),l=a("AeFk"),r=a("rBCA"),s=a("iBNF");let c=r.Z.div` display: flex; align-items: center; justify-content: center; padding: 1em; button { position: relative; } `,d=l.F4` 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } `;r.Z.div` display: flex; width: fit-content; width: -moz-fit-content; flex-direction: column; align-items: center; justify-content: center; padding: 1rem 2rem; background: white; border-radius: ${s.r.borderRadius}; box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001), -2px 2px 5px rgba(67, 86, 100, 0.123689); .loading-spinner { width: 24px; height: 24px; margin-bottom: 0.5rem; animation: ${d} 1.2s linear infinite; } &[data-is-marrybaby='true'] { box-shadow: none; } `;let Loading=({className:e,size:t="md"})=>{let{t:a}=(0,i.u)();return n.createElement(c,{className:e},n.createElement(o.B,{size:t,color:"transparent",isLoading:!0},a("loading")))}},odgB:function(e,t,a){a.d(t,{B:function(){return Button}});var n=a("z/kP"),o=a("q1tI"),i=a("g8xC");let Button=e=>{var{size:t,color:a="primary",isDisabled:l,isBlock:r,title:s,onClick:c,icon:d,iconPosition:p="left",children:m,isLoading:u=!1,loadingText:h,dataEventCategory:g,dataEventAction:E,dataEventLabel:y,dataProductChannel:b,dataProductSku:I,dataProductBrand:f,dataProductName:T,dataProductPrice:x,dataProductCategory:v,dataProductPosition:_,type:N}=e,C=(0,n._)(e,["size","color","isDisabled","isBlock","title","onClick","icon","iconPosition","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","type"]);return o.createElement(i.B,Object.assign({},{"data-event-category":g,"data-event-action":E,"data-event-label":y,"data-product-channel":b,"data-product-sku":I,"data-product-brand":f,"data-product-name":T,"data-product-price":x,"data-product-category":v,"data-product-position":_},{size:t,variant:"transparent"===a?"white":"danger"===a?"error":a,disabled:l,onClick:e=>{u||l||!c||c(e)},title:s,loading:u,type:N||"submit",leftIcon:"left"===p?d:void 0,rightIcon:"right"===p?d:void 0,w:r?"100%":void 0,p:r?"12px auto":void 0,"data-color":a,"data-size":t,"data-block":r,"data-has-icon":!!d||void 0,"data-theme":C.theme,"data-is-loading":u},C),u&&h||m)}},b2o5:function(e,t,a){a.r(t),a.d(t,{ProfileChatbot:function(){return ProfileChatbot},TabDataInit:function(){return T},TabName:function(){return i},UserType:function(){return l}});var n,o,i,l,r=a("z/kP"),s=a("q1tI"),c=a("/TVU"),d=a("B+GY"),p=a("OQ3V"),m=a("IQVP"),u=a("EJrp"),h=a("WedE"),g=a("vWP/"),E=a("4JiQ"),y=a("jkNU"),b=a("r9m4");a("NmYn"),a("gY0P"),a("Wgwc"),a("QgiU"),a("rBCA");let I=(0,s.createContext)({}),Faqs=({faqs:e})=>{let[t,a]=(0,s.useState)([]),handleClick=e=>{if(t.includes(e)){let n=t.filter(t=>t!==e);a(n)}else a(t=>[...t,e])};return s.createElement("div",{className:"_0NhMo6T"},e.map((e,a)=>{let n=t.includes(a);return s.createElement("div",{className:"nrZtZ-u",key:a},s.createElement("div",{className:"faq-item",onClick:()=>handleClick(a)},s.createElement("div",{className:"faq-question",dangerouslySetInnerHTML:{__html:e.question||""}}),n?s.createElement(h.Z,null):s.createElement(g.Z,null)),s.createElement(E.U,{in:n,className:"faq-answer"},s.createElement("div",{dangerouslySetInnerHTML:{__html:e.answer||""}})))}))};var f={container:"_2ugC2Ll",body:"CCwRHCd",description:"RF63WXG",cardAuthorWrapper:"PIaeC0v"};let formatExperience=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},formatEducation=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};(n=i||(i={}))[n.About=0]="About",n[n.Care=1]="Care",n[n.Answer=2]="Answer",n[n.Posts=3]="Posts",(o=l||(l={}))[o.Expert=0]="Expert",o[o.User=1]="User";let T={experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileChatbot=e=>{var{authorProps:t,authActionWrapper:a,onSkipQuestion:n,onCloseFromPost:o,onChatWithBot:i,showSkipQuestionTag:l,currentPageUrl:h}=e,g=(0,r._)(e,["authorProps","authActionWrapper","onSkipQuestion","onCloseFromPost","onChatWithBot","showSkipQuestionTag","currentPageUrl"]);let{data:{locale:E,userInfo:T,env:{isMarryBaby:x}}}=(0,s.useContext)(u.T),v=String(null==t?void 0:t.userId),[_,N]=(0,s.useState)(),[C,O]=(0,s.useState)(!1),[A,w]=(0,s.useState)(),[S,k]=(0,s.useState)([]),[L,P]=(0,s.useState)(""),R=(null==T?void 0:T._togetherUserId)===(null==t?void 0:t.userId),[D,M]=(0,s.useState)(1),H={value:String(D),dataList:[{value:"1",text:"FAQs",content:s.createElement(Faqs,{faqs:S})}],onTabChange:e=>M(Number(e))};return(0,s.useEffect)(()=>{(0,r.a)(void 0,void 0,void 0,function*(){var e,t,a,n,o,i,l,r,s,c,d;O(!0);let h=yield Promise.all([(0,u.c)((0,u.f)(m.yy.USER.DETAIL,{_locale:E,id:v}),"GET"),(0,u.c)((0,u.f)(m.yy.CHATBOT.PROFILE,{_locale:E}),"GET"),(0,u.c)((0,u.f)(m.yy.CHATBOT.FAQS_LIST,{_locale:E}),"GET")]),[g,y,b]=h,I={data:null==g?void 0:g.data,experiences:((null===(t=null===(e=null==g?void 0:g.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(formatExperience),relatedPosts:((null===(a=null==g?void 0:g.data)||void 0===a?void 0:a.related_post)||[]).map(e=>(0,p.b)(e.post)),educations:((null===(o=null===(n=null==g?void 0:g.data)||void 0===n?void 0:n.fields)||void 0===o?void 0:o.educations)||[]).map(formatEducation),awards:(null===(l=null===(i=null==g?void 0:g.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==g?void 0:g.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};(null==g?void 0:g.status)===1&&w(I),k((null===(c=null==b?void 0:b.data)||void 0===c?void 0:c.faqs)||[]),P((null===(d=null==y?void 0:y.data)||void 0===d?void 0:d.description)||""),O(!1)})},[]),s.createElement(I.Provider,{value:{isMarryBaby:x,siteType:x?"marryBaby":"helloSites",authorId:String((null==t?void 0:t.userId)||""),authActionWrapper:a,onSkipQuestion:n,info:A,authorProps:t,onCloseFromPost:o,countValues:_,setCountValues:N,isAuthorLogin:R,showSkipQuestionTag:l,currentPageUrl:h}},s.createElement("div",Object.assign({},g,{className:`${f.container} ${(null==g?void 0:g.className)||""}`,"data-is-marrybaby":x}),C?s.createElement(d.L,null):s.createElement(s.Fragment,null,s.createElement("div",{className:f.cardAuthorWrapper},s.createElement(y.C,Object.assign({},t,{className:"card-author",showDetailPopup:!1,showChatbotButton:E===b.L.Vietnam,onChatWithBot:i}))),s.createElement("div",{className:f.description,dangerouslySetInnerHTML:{__html:L}}),S.length>0&&s.createElement("div",{className:f.body},s.createElement(c.T,Object.assign({},H))))))}},D0UF:function(e,t,a){a.d(t,{P:function(){return PillCarousel}});var n=a("z/kP"),o=a("q1tI"),i=a("rBCA"),l=a("owZr"),r=a("iBNF"),s=a("vq0H"),c=a("Vitr"),d=a("r9m4"),p=a("FNss");let m=i.Z.div` display: inline-flex; overflow: hidden; width: ${e=>e.size}px; height: ${e=>e.size}px; box-sizing: border-box; align-items: center; justify-content: center; border: 1px solid #e4e8ec; background-color: ${e=>e.backgroundColor||r.r.colors.white}; border-radius: ${e=>e.borderRadius||"50%"}; & > * { width: ${e=>e.iconSize}px; height: ${e=>e.iconSize}px; } `,u=i.Z.div` display: inline-block; height: 108px; background-color: ${r.r.colors.white}; border-radius: 60px; cursor: pointer; &.selected-week-pill { background-color: ${r.r.colors.pink100}; } & > div:first-child { margin: 4px 4px 0; } & > p { margin-top: 8px; text-align: center; } & > * { pointer-events: none; } `,h=[d.L.Myanmar,d.L.Taiwan],g=(0,i.Z)(e=>{var{icon:t,name:a,className:i,locale:d="en-PH",dataEventCategory:p,dataEventAction:g,dataEventLabel:E,onSelect:y}=e,b=(0,n._)(e,["icon","name","className","locale","dataEventCategory","dataEventAction","dataEventLabel","onSelect"]);let I=(0,o.useMemo)(()=>null==i?void 0:i.includes("selected-week-pill"),[i]);return o.createElement(u,Object.assign({onClick:y,className:i?"week-pill".concat(" non-pointer-event-child ",i):"week-pill non-pointer-event-child","data-event-category":p,"data-event-action":g,"data-event-label":E},b),o.createElement(m,{size:64,iconSize:40,backgroundColor:r.r.colors.white},o.createElement(s.I,{src:t||l.C.getAssetPath("week_default.png"),alt:`week ${a}`})),I?o.createElement(c.T,Object.assign({type:"semiBold",size:"n1",color:r.r.colors.gray800},h.includes(d)&&{style:{fontSize:"10px"}}),a):o.createElement(c.T,Object.assign({size:"n1",color:r.r.colors.gray600},h.includes(d)&&{style:{fontSize:"10px"}}),a))})` box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.08); `,E=(0,i.Z)(p.f.Slide)` cursor: pointer; > div * { pointer-events: none; } `,y=(0,i.Z)(p.f)` .centerred-pill-wrapper { padding: 16px 0; } `,PillCarousel=e=>{var{data:t,isMobile:a,onSlideChange:i,pillProps:l,locale:r=d.L.Vietnam,blurFromIndex:s,blurLength:c}=e,p=(0,n._)(e,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);let[m,u]=(0,o.useState)("");return(0,o.useEffect)(()=>{u(window.location.href)},[]),o.createElement(y,Object.assign({},{withControls:!a,slideGap:16,blurFromCenter:!0,blurFromIndex:s||(a?2:4),blurLength:c||(a?1:3),onSlideChange:i},p,{selectSlideWhenClick:!0,previousControlIcon:o.createElement(Arrow,{currentUrl:m}),nextControlIcon:o.createElement(Arrow,{currentUrl:m,isRight:!0})}),e=>t.map((t,a)=>o.createElement(E,Object.assign({key:a,onClick:i,"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":m,innerSlideProps:{"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":m}},l),o.createElement("div",{className:"centerred-pill-wrapper"},o.createElement(g,{"data-event-category":"Health Tool","data-event-action":"Fetal Week Click","data-event-label":m,locale:r,name:t.name,icon:t.icon,className:a===e?"selected-week-pill pointer-event-child-none":"pointer-event-child-none"})))))},Arrow=({isRight:e,currentUrl:t})=>o.createElement("svg",{viewBox:"0 0 15 15",fill:"none",width:"16",height:"16",style:e?{transform:"rotate(-90deg)"}:{transform:"rotate(90deg)"},"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Arrow Click","data-event-label":t,className:"pointer-event-child-none"},o.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))},"8PAx":function(e,t,a){a.d(t,{H:function(){return HealthToolFormWrapper}});var n=a("z/kP"),o=a("q1tI"),i=a("/npG"),l=a("mYVa"),r=a("Eso5"),s=a("aDCK"),c=a("9n+W"),d=a("8vDj"),p=a("SPK5"),m=a("2wr/"),u=a("/kWL"),h=a("g8xC"),g=a("5kis"),E=a("yVya"),y=a("iBNF"),b=(0,i.k)(()=>({root:{justifyContent:"flex-start"},group:{display:"flex",alignItems:"stretch",gap:(0,l.h)(8)},item:{flex:"1 1 0px"},icon:{flexShrink:0}}));let I=(0,o.createContext)({}),f=(0,i.k)(()=>({root:{display:"flex",flexDirection:"column",gap:(0,l.h)(8),paddingLeft:16,paddingRight:16,"&:last-child":{paddingBottom:16}}}));var T=(0,i.k)((e,{formLayout:t})=>({root:{display:"flex",flexDirection:"column",gap:(0,l.h)("inline"===t?8:16),borderRadius:"inherit",".mantine-Input-input::placeholder, .mantine-Input-input[data-invalid]::placeholder":{color:"#8C8C8C"},[e.fn.smallerThan("sm")]:Object.assign({"input, .mantine-DatePickerInput-input":{fontSize:(0,l.h)(14)}},"default"===t&&{gap:8})},control:{width:(0,l.h)(180),flexShrink:1,"&.error":{"button, input":{borderColor:e.colors.red[7]}}}}));let x=(0,i.k)((e,{formLayout:t})=>{let a="mb"===e.other.template;return{root:Object.assign(Object.assign({minWidth:(0,l.h)(180)},"inline"===t&&{alignSelf:"flex-end",marginTop:(0,l.h)(16)}),"default"===t&&Object.assign({},a&&{alignSelf:"center"}))}}),v=(0,i.k)(e=>({root:{color:e.colors.gray[6],whiteSpace:"nowrap",paddingRight:(0,l.h)(16)}}));var _=(0,i.k)(()=>({root:{display:"flex",gap:(0,l.h)(8),border:"1px solid #EAEAEC",borderRadius:(0,l.h)(16),padding:"10px 16px 12px 16px",flex:"1 1 0px",".mantine-Input-input":{border:0,paddingLeft:0,height:"22px",borderRadius:0,"&:focus":{outline:0,boxShadow:"none"}}},info:{display:"flex",flexDirection:"column",gap:0,flex:"1 1 0px"},label:{color:"#7C7C8F",fontWeight:"normal"},content:{},rightSection:{display:"flex",alignItems:"center",textTransform:"lowercase",color:"#3E3F58"}})),N=(0,i.k)((e,{width:t,direction:a})=>{let n="mb"===e.other.template;return{root:{display:"flex",flexDirection:"column",gap:(0,l.h)(8)},row:{display:"flex",flexDirection:a,alignItems:"stretch",justifyContent:"space-between",gap:(0,l.h)(16),minHeight:(0,l.h)(40)},labelWrapper:Object.assign({flex:"1 1 0px",display:"flex",alignItems:"center"},"row"===a&&{borderBottom:`1px solid ${e.colors.neutral[1]}`}),label:{fontSize:(0,l.h)(14),lineHeight:(0,l.h)(22),color:e.colors.gray[6]},content:{display:"flex",alignItems:"center",gap:(0,l.h)(8),input:{backgroundColor:"#fff"}},control:{width:"number"==typeof t?(0,l.h)(t):t,flexShrink:1,input:Object.assign({},n&&{borderRadius:(0,l.h)(12)}),"&.error":{"button, input":{borderColor:e.colors.red[7]}}},error:{color:"red",textAlign:"right"}}});let C=(0,i.k)(()=>({root:{color:"red",textAlign:"right",width:"auto"}}));var O=(0,i.k)(e=>{let t="mb"===e.other.template;return{root:{label:Object.assign({},t&&{color:y.r.mbColors.midGray,fontSize:(0,l.h)(12),fontWeight:"normal"})}}});let HealthToolFormWrapper=e=>{var{children:t,formLayout:a,styles:i,classNames:l,className:s,component:c="form"}=e,d=(0,n._)(e,["children","formLayout","styles","classNames","className","component"]);let p=a||"default",{classes:m,cx:u}=T({formLayout:p},{name:"HealthToolFormWrapper",styles:i,classNames:l});return o.createElement(I.Provider,{value:{formLayout:p}},o.createElement(r.x,Object.assign({component:c,className:u(s,m.root)},d),t))};HealthToolFormWrapper.Control=e=>{var{className:t,styles:a,classNames:i}=e,l=(0,n._)(e,["className","styles","classNames"]);let{classes:s,cx:c}=O(void 0,{name:"HealthToolFormWrapper__Control",styles:a,classNames:i});return o.createElement(r.x,Object.assign({className:c(t,s.root)},l))},HealthToolFormWrapper.BorderInlineControl=({label:e,children:t,styles:a,classNames:n,direction:i="row",width:l=180,errorMess:s})=>{let{classes:c}=N({width:l,direction:i},{name:"HealthToolFormWrapper__BorderInlineControl",styles:a,classNames:n});return o.createElement(r.x,{className:c.root},o.createElement(r.x,{className:c.row},o.createElement(r.x,{className:c.labelWrapper},e&&o.createElement("label",{className:c.label,htmlFor:"gender"},e)),o.createElement(r.x,{className:c.content},(0,E.Z)(t).map((e,t)=>o.createElement(r.x,{key:t,className:c.control},e)))),s&&o.createElement(u.T,{size:"p4",className:c.error},s))},HealthToolFormWrapper.BorderBoxControl=e=>{var{label:t,rightSection:a,children:i,styles:l,className:s,classNames:c}=e,d=(0,n._)(e,["label","rightSection","children","styles","className","classNames"]);let{classes:p,cx:m}=_(void 0,{name:"HealthToolFormWrapper__BorderBoxControl",styles:l,classNames:c});return o.createElement(r.x,Object.assign({className:m(p.root,s)},d),o.createElement(r.x,{className:p.info},t&&o.createElement(u.T,{size:"n1",as:"label",className:p.label},t),o.createElement(r.x,{className:p.content},o.isValidElement(i)?o.cloneElement(i,Object.assign(Object.assign({},i.props),{size:"sm",error:null})):null)),a&&o.createElement(r.x,{className:p.rightSection},"string"==typeof a?o.createElement(u.T,{size:"p4"},a):o.isValidElement(a)?o.cloneElement(a,{size:24}):null))},HealthToolFormWrapper.Error=e=>{var{styles:t,classNames:a,className:i}=e,l=(0,n._)(e,["styles","classNames","className"]);let{classes:r,cx:s}=C(void 0,{name:"HealthToolFormWrapper__UnitText",styles:t,classNames:a});return o.createElement(u.T,Object.assign({size:"p4",className:s(i,r.root)},l))},HealthToolFormWrapper.FormRow=e=>{var{styles:t,classNames:a,className:i,children:l}=e,s=(0,n._)(e,["styles","classNames","className","children"]);let{classes:c,cx:d}=f(void 0,{name:"HealthToolFormWrapper__FormRow",styles:t,classNames:a});return o.createElement(r.x,Object.assign({className:d(i,c.root)},s),l)},HealthToolFormWrapper.Submit=e=>{var{styles:t,classNames:a,className:i}=e,l=(0,n._)(e,["styles","classNames","className"]);let{formLayout:r}=(0,o.useContext)(I),{classes:s,cx:c}=x({formLayout:r},{name:"HealthToolFormWrapper__SubmitBtn",styles:t,classNames:a});return o.createElement(h.B,Object.assign({className:c("submit-btn",i,s.root)},l,{variant:"primary",size:"md"}))},HealthToolFormWrapper.Unit=e=>{var{styles:t,classNames:a,className:i}=e,l=(0,n._)(e,["styles","classNames","className"]);let{classes:r,cx:s}=v(void 0,{name:"HealthToolFormWrapper__UnitText",styles:t,classNames:a});return o.createElement(u.T,Object.assign({size:"p4",className:s(i,r.root)},l))},HealthToolFormWrapper.Switching=e=>{var{label:t}=e,a=(0,n._)(e,["label"]);let{t:i}=(0,g.u)(),r=(0,d.rZ)(),s="mb"===r.other.template;return o.createElement(p.k,{gap:(0,l.h)(4),sx:()=>({justifyContent:"space-between",alignItems:"center"})},t&&o.createElement(u.T,{size:s?"p4":"s4",color:"gray.6"},t),o.createElement(m.r,Object.assign({labelPosition:"left",onLabel:i("switchBtn.yes"),offLabel:i("switchBtn.no")},a,{styles:e=>({trackLabel:{fontSize:(0,l.h)(12)},track:{cursor:"pointer"},body:{[e.fn.largerThan("sm")]:{flexDirection:"column",alignItems:"flex-start"},[e.fn.smallerThan("sm")]:{justifyContent:"space-between"}},labelWrapper:{[e.fn.smallerThan("sm")]:{display:"flex",justifyContent:"center"}}})})))},HealthToolFormWrapper.ChipGroup=e=>{var{data:t=[],label:a,isMobile:i,layout:d="horizonal",classNames:p,styles:m}=e,h=(0,n._)(e,["data","label","isMobile","layout","classNames","styles"]);let{classes:g,theme:E}=b(void 0,{name:"ChipGroup",classNames:p,styles:m}),y="mb"===E.other.template,I=i?48:y?32:"vertical"===d?32:18;return o.createElement(r.x,null,o.createElement(s.I.Wrapper,{label:a&&o.createElement(u.T,{size:"p3",weight:"semiBold"},a)},o.createElement(c.A.Group,Object.assign({},h),o.createElement(r.x,{className:g.group},t.map((e,t)=>o.createElement(c.A,{className:g.item,key:t,value:String(e.value),styles:{iconWrapper:{display:"none"},label:{width:"100%",borderRadius:(0,l.h)(y?12:8),padding:0,border:`1px solid ${y?"#EAEAEC":E.colors.neutral[2]}`,height:"100%","&[data-checked]":{padding:0,backgroundColor:y?"#FFE9F1":E.colors.blue[0],border:`1px solid ${y?"#F5B4CB":E.colors.blue[1]}`},[E.fn.smallerThan("sm")]:{alignItems:"flex-start"}}}},o.createElement(r.x,{sx:Object.assign(Object.assign(Object.assign({width:"100%",display:"flex",gap:(0,l.h)(y?2:8),padding:"8px 16px 8px 12px",justifyContent:"center",alignItems:"center"},y&&{flexDirection:"column"}),"vertical"===d&&{flexDirection:"column",padding:"16px 8px 8px"}),{[E.fn.smallerThan("sm")]:{flexDirection:"column",padding:"16px 8px 8px"}})},o.isValidElement(e.icon)?o.cloneElement(e.icon,{size:I,isMarryBaby:y,className:g.icon}):null,o.createElement(u.T,{size:"p4",styles:{root:Object.assign(Object.assign({},y&&{textAlign:"center"}),{whiteSpace:"normal",[E.fn.smallerThan("sm")]:{fontSize:(0,l.h)(12),lineHeight:(0,l.h)(18),textAlign:"center"}})}},e.label))))))))}},"+JOW":function(e,t,a){a.d(t,{D:function(){return DrawerBottom}});var n=a("z/kP"),o=a("q1tI"),i=a("iuhU"),l=a("h8tX"),r=a("uFLQ"),s=a("rSBk"),c=a("rBCA"),d=a("iBNF"),p=a("mGnJ");(0,c.Z)(r.D)` /* max-height: 100vh; max-height: 100dvh; */ background-color: white; &[data-vaul-drawer-direction='bottom'] { top: initial !important; border-top-left-radius: 16px !important; border-top-right-radius: 16px !important; padding-bottom: 32px; padding-left: 20px; padding-right: 20px; } .drawer__handle { width: 44px; height: 3px; background-color: ${d.r.colors.neutral500}; margin: 16px auto; flex-shrink: 0; } `;let m=(0,c.Z)(s.dy.Content)` position: fixed; z-index: ${p.Z-9e6+1}; inset: 0; background-color: #fff; outline: none !important; &[data-is-linear='true'] { background: linear-gradient(180deg, #c3e3ff 1.86%, #fff 20%) !important; } &::-webkit-scrollbar { width: 6px; height: 6px; } &::-webkit-scrollbar-track { background-color: transparent; } &::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.4); border-radius: 6px; } &[data-vaul-drawer-direction='bottom'] { top: initial; border-top-left-radius: 16px; border-top-right-radius: 16px; /* padding-bottom: 16px; */ } ${e=>e.isDragging&&` input { caret-color: transparent; } `} `,u=(0,c.Z)(s.dy.Overlay)` position: fixed; inset: 0; z-index: ${p.Z-9e6}; width: 100%; max-height: 100%; background-color: rgb(0, 0, 0, 0.4); `,h=(0,c.Z)(s.dy.Handle)` &[data-vaul-handle] { width: 44px; height: 3px; background-color: ${d.r.colors.neutral500}; margin: 16px auto; flex-shrink: 0; } `;function DrawerBottom(e){var{children:t,onClose:a,isOpen:c,onOpenChange:d,isMobile:p,classNames:g,isLinear:E,overlayClassName:y,contentClassName:b,handlerClassName:I,drawerOverlayProps:f}=e,T=(0,n._)(e,["children","onClose","isOpen","onOpenChange","isMobile","classNames","isLinear","overlayClassName","contentClassName","handlerClassName","drawerOverlayProps"]);let{isDragging:x,handleDragStart:v,handleDragEnd:_}=(0,r.u)(),{onDrag:N,onRelease:C}=T,O=(0,n._)(T,["onDrag","onRelease"]);return p?o.createElement(s.dy.Root,Object.assign({},O,{open:c,onOpenChange:d,onClose:a,onDrag:(e,t)=>{v(),null==N||N(e,t)},onRelease:(e,t)=>{_(),null==C||C(e,t)}}),o.createElement(s.dy.Portal,null,o.createElement(u,Object.assign({className:(0,i.default)(y,"drawer__overlay")},f)),o.createElement(m,{isDragging:x,className:(0,i.default)(b,"drawer__content"),"data-is-linear":E},o.createElement(s.dy.Title,{style:{display:"none"}}),o.createElement(h,{className:(0,i.default)(I,"drawer__handle")}),t))):o.createElement(l.u,Object.assign({withCloseButton:!0,centered:!0,zIndex:500,size:"auto",classNames:g,radius:"lg"},T,{onClose:a,opened:c,styles:{root:{maxHeight:"400px"},body:{background:E?"linear-gradient(180deg, #A5D4FF 0%, #FFFFFF 20%)":void 0}}}),t)}}}]);