"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4584],{EoE9:function(e,t,a){a.d(t,{A:function(){return j},B:function(){return B},C:function(){return w},D:function(){return M},E:function(){return P},F:function(){return D},G:function(){return $},H:function(){return k},I:function(){return Y},L:function(){return A},Q:function(){return i},S:function(){return S},U:function(){return v},V:function(){return G},Z:function(){return z},a:function(){return W},b:function(){return f},c:function(){return L},d:function(){return H},e:function(){return R},f:function(){return Z},g:function(){return F},h:function(){return K},i:function(){return X},j:function(){return V},k:function(){return U},l:function(){return N},m:function(){return x},r:function(){return p},s:function(){return q}});var o,n,r,l,i,s,c,p,d=a("EikE"),u=a("OT65"),g=a("G2RZ"),h=a("YNYf"),m=a("R43W"),E=a("+xLi"),I=a("tO2/"),O=a("YJaS"),b=a("tiWT"),T=a("xrdX"),_=a("UIg8"),y=a("GOBr"),C=a("e6f9");let f="",N="https://id.hellobacsi.com/",v="userGeoLocationCoordinates",A={"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"}},x=[{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"}],S={"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:""},"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"}},L=[C.L.Vietnam,C.L.Indonesia,C.L.Thailand,C.L.Malaysia,C.L.Myanmar],k=[C.L.Indonesia,C.L.Cambodia,C.L.PhilippinesEnglish,C.L.PhilippinesTagalog,C.L.Thailand],R=[C.L.Vietnam],P=["vi-VN"],M=["id-ID"],w=["vi-VN","id-ID","en-PH","tl-PH","ms-MY","th-TH"],H=["vi-VN","id-ID"],G=[C.L.Vietnam,C.L.Taiwan],D={"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"}]};(o=i||(i={})).bmi="mi",o.gender="gndr",o.age="ge",o.slug="slug",o.resultId="resultId",o.bmr="mr",o.height="gt",o.weight="wght",o.source="surc",o.type="tp",o.startDate="sd",o.additional="tnl",o.week="wk",o.twins="twn",o.weightBefore="wb",o.yourself="yrslf",o.intensity="sy",o.rate="rt",o.method="mthd",o.day="dy",o.pwg="pwg",o.cycle="le",o.period="prd",o.access_token="tkn",o.name="nm",o.id="id",o.activityLevel="actl",o.status="status",o.birthday="brd";let Y={[C.L.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[C.L.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[C.L.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[C.L.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[C.L.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[C.L.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[C.L.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[C.L.Singapore]:{dateFormat:"YYYY/MM/DD",separator:","},[C.L.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[C.L.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[C.L.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},B="hhg_user_token",U="hhg_user_refresh_token",V={[C.L.PhilippinesEnglish]:d.Z,[C.L.Vietnam]:u.default,[C.L.Cambodia]:g.Z,[C.L.India]:h.Z,[C.L.Indonesia]:m.Z,[C.L.Myanmar]:d.Z,[C.L.Malaysia]:E.Z,[C.L.Thailand]:I.Z,[C.L.Taiwan]:O.Z},F="https://cdn.hellohealthgroup.com/countries",$="_ga",j="YYYY-MM-DD",z=9999999,W=305,Z="video_item_detail",K="hhg_cart_care_store_key";(n=s||(s={}))[n.UNAVAILABLE=0]="UNAVAILABLE",n[n.AVAILABLE=1]="AVAILABLE",(r=c||(c={}))[r.FIXED=1]="FIXED",r[r.STARTING=2]="STARTING",r[r.RANGE=3]="RANGE",(l=p||(p={})).VACCINE="VACCINE",l.IVF="IVF",l.EGG_FREEZING="EGG_FREEZING",l.HEALTH_SCREENER="HEALTH_SCREENER";let q={vaccine:p.VACCINE,ivf:p.IVF,"egg-freezing":p.EGG_FREEZING,screener:p.HEALTH_SCREENER},Q={[p.VACCINE]:"vaccine",[p.IVF]:"ivf",[p.EGG_FREEZING]:"egg-freezing",[p.HEALTH_SCREENER]:"screener"};var X=Object.freeze({__proto__:null,basePath:f,SSO_URL:N,USER_GEOLOCATION_COORDINATES_COOKIE:v,LOCALE_SPECS:A,COUNTRY_LIST:x,STATIC_PAGES:S,UP_BASEPATH:"user",LOCALE_HAS_COMMUNITY_SITE:L,HAS_CLINITY_DOWNLOAD_SITE:k,LOCALE_HAS_CART_CARE_SITE:R,ECOM_LOCALES:P,DATA_PRIVACY_LOCALES:M,CARE_LOCALES:w,CARE_BOOKING_LOCALES:H,VIDEO_LOCALES:G,FAVICONS:D,get QUERY_HEALTH_TOOL(){return i},ISO_FORMAT:Y,BEARER_TOKEN_COOKIE:B,BEARER_REFRESH_TOKEN_COOKIE:U,DATE_FNS_LOCALE:V,CDN_ADDRESS:F,GA_TOKEN_COOKIE:$,API_DATE_FORMAT:j,DATE_FNS_DATE_FORMAT:"dd-MM-yyyy",ZINDEX_SSO:z,ZINDEX_HEADER:W,VIDEO_DETAIL_TEMP_STORAGE:Z,HHG_CART_CARE_STORE_KEY:K,get EMERGENCY_STATUS(){return s},get ServicePrice(){return c},get SERVICE_TYPE(){return p},serviceTypeByProductType:q,productTypeByServiceType:Q,siteHost:b.Cf,siteOptions:b.x9,COUNTRY_CURRENCY_SYMBOL:b.Z5,domainLocales:T.v,MAP_DOMAIN_BY_LOCALE:T.f,get RISK_SCREENER_NAME(){return _.t},RISK_SCREENER_SLUG:_.n,isProduction:y.y})},zAYZ:function(e,t,a){a.d(t,{A:function(){return Alert},B:function(){return Badge},C:function(){return CardCollapse},D:function(){return DragFreeCarousel},F:function(){return FileDropdown},G:function(){return Grid},H:function(){return HtmlContent},I:function(){return IconHeading},R:function(){return Radio},S:function(){return StepRenderer},T:function(){return Tag},U:function(){return Upload},a:function(){return BorderHeading},b:function(){return RateStars},c:function(){return Toggle},d:function(){return V},e:function(){return q},f:function(){return r},g:function(){return l}});var o,n,r,l,i=a("q1tI"),s=a("srUE"),c=a("rBCA"),p=a("iBNF"),d=a("pvoY"),u=a("4JiQ"),g=a("mYVa"),h=a("iuhU"),m=a("Iblh"),E=a("xhSO"),I=a("MQ5V"),O=a("usZY"),b=a("vk9b"),T=a("gEnE"),_=a("yVya"),y=a("6Dmq"),C=a("UmVG"),f=a("FQi+"),N=a("Zdfy");let Upload=e=>i.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"none"},e),i.createElement("path",{d:"M9.82324 8.7033L10.8228 9.70287C10.9267 9.80662 11.056 9.8573 11.2107 9.85493C11.3655 9.85255 11.4948 9.79943 11.5987 9.69555C11.7026 9.59168 11.7545 9.46074 11.7545 9.30274C11.7545 9.14474 11.7026 9.01462 11.5987 8.91237L9.7353 7.04899C9.59968 6.91337 9.44149 6.84555 9.26074 6.84555C9.07999 6.84555 8.9218 6.91337 8.78618 7.04899L6.91549 8.91968C6.81174 9.02355 6.75987 9.15287 6.75987 9.30762C6.75987 9.46237 6.81174 9.59168 6.91549 9.69555C7.01937 9.79943 7.1503 9.85137 7.3083 9.85137C7.4663 9.85137 7.59643 9.79943 7.69868 9.69555L8.69824 8.7033L8.69824 11.5576C8.69824 11.717 8.75218 11.8506 8.86005 11.9583C8.96793 12.0662 9.10156 12.1201 9.26093 12.1201C9.42043 12.1201 9.55399 12.0662 9.66162 11.9583C9.76937 11.8506 9.82324 11.717 9.82324 11.5576L9.82324 8.7033ZM16.3857 9.3063C16.3857 10.2918 16.1987 11.2181 15.8247 12.0852C15.4507 12.9524 14.9432 13.7066 14.3021 14.348C13.6609 14.9894 12.907 15.4972 12.0402 15.8714C11.1735 16.2456 10.2474 16.4326 9.26205 16.4326C8.27655 16.4326 7.35024 16.2456 6.48312 15.8716C5.61599 15.4976 4.86174 14.9901 4.22037 14.3489C3.57899 13.7078 3.07118 12.9539 2.69693 12.0871C2.3228 11.2204 2.13574 10.2943 2.13574 9.30893C2.13574 8.32343 2.32274 7.39712 2.69674 6.52999C3.07074 5.66287 3.5783 4.90862 4.21943 4.26724C4.86055 3.62587 5.61449 3.11805 6.48124 2.7438C7.34799 2.36968 8.27405 2.18262 9.25943 2.18262C10.2449 2.18262 11.1712 2.36962 12.0384 2.74362C12.9055 3.11762 13.6597 3.62518 14.3011 4.2663C14.9425 4.90743 15.4503 5.66137 15.8246 6.52812C16.1987 7.39487 16.3857 8.32093 16.3857 9.3063ZM15.2607 9.30762C15.2607 7.63262 14.6795 6.21387 13.517 5.05137C12.3545 3.88887 10.9357 3.30762 9.26074 3.30762C7.58574 3.30762 6.16699 3.88887 5.00449 5.05137C3.84199 6.21387 3.26074 7.63262 3.26074 9.30762C3.26074 10.9826 3.84199 12.4014 5.00449 13.5639C6.16699 14.7264 7.58574 15.3076 9.26074 15.3076C10.9357 15.3076 12.3545 14.7264 13.517 13.5639C14.6795 12.4014 15.2607 10.9826 15.2607 9.30762Z",fill:"#595959"})),Alert=({style:e,onClose:t,text:a,type:o,contentIcon:n,closeIcon:r,className:l,description:c})=>i.createElement("div",{className:`CHw-fZZ ${l||""}`,style:e,"data-alert-type":o},i.createElement("div",{className:"_03U6VRS"},i.createElement("div",{className:"icon-title"},n,i.createElement(s.T,{weight:"bold",size:"label1"},a)),i.createElement(s.T,{weight:"regular",size:"p3"},c)),i.createElement("div",{className:"EO828Vv",onClick:t},r)),renderNotificationStyles=(e,t,a,o)=>{let n,r="";if("numeric"===e)switch(t){case"medium":r=`
height: 16px;
font-size: 11px;
padding: 1px 6px;
`;case"large":r=`
height: 24px;
font-size: 13px;
padding: 1px 10px;
`}let l="";a&&(l=`
position: absolute;
top: 0;
left: 75%;
`),a&&(n=`
left: 70%;
${"large"===t?`
top: -7px;
`:"medium"===t?`
top: -2px;
width: 16px;
height: 16px;
`:""}
`);let i="";switch(o){case"primary":i=`
background: ${p.r.colors.primary50};
color: ${p.r.colors.primary600};
`;break;case"error":i=`
background: ${p.r.colors.error};
color: white;
`}switch(e){case"dot":return`
${l}
width: 8px;
height: 8px;
font-size: 0px;
border-radius: 50%;
${i}
`;case"numeric":return`
${l}
width: max-content;
border-radius: 32px;
${r}
${n}
${i}
`}},v=c.Z.div`
position: relative;
> div {
width: max-content;
position: relative;
}
span {
font-weight: ${p.r.sizes.fwBold};
display: flex;
justify-content: center;
align-items: center;
${e=>renderNotificationStyles(e.notificationType,e.notificationSize,e.hasIcon,e.notificationColor)}
}
${e=>e.hasIcon&&`
svg {
width: 40px;
height: 40px;
}
`}
`,Badge=({amount:e,type:t,size:a="medium",color:o="primary",icon:n,className:r})=>i.createElement(v,{"data-notification-type":t,"data-notification-size":a,"data-notification-color":o,"data-has-icon":!!n||void 0,notificationType:t,notificationSize:a,notificationColor:o,hasIcon:!!n,className:r},i.createElement("div",null,e&&i.createElement("span",null,e)," ",n&&i.createElement("div",null,n))),A=c.Z.h4`
position: relative;
line-height: 18px;
&:after {
position: absolute;
top: 1px;
left: 0;
width: 4px;
height: 18px;
background-color: ${p.r.colors.primaryBase};
content: '';
}
&[data-size='lg'] {
font-size: 18px;
padding-left: 12px;
}
&[data-size='sm'] {
font-size: 14px;
padding-left: 8px;
&::after {
width: 2px;
height: 15px;
}
}
&[data-type='bold'] {
font-weight: ${p.r.sizes.fwBold};
}
&[data-type='semiBold'] {
font-weight: ${p.r.sizes.fwSemiBold};
}
&[data-uppercase] {
text-transform: uppercase;
}
${d.M.mbDown} {
&[data-size='lg'] {
font-size: 16px;
}
}
`,BorderHeading=({style:e,children:t,className:a,size:o="lg",type:n="bold",upperCase:r,as:l="h4",color:s})=>i.createElement(A,{style:Object.assign({color:s},e),className:a,"data-size":o,"data-type":n,"data-uppercase":r,as:l},t),x=(0,c.Z)(E.S)`
flex-shrink: 0;
color: ${p.r.colors.neutral800};
width: 16px;
height: 16px;
transition: transform 0.2s ease-in-out;
transform: rotate(-180deg);
&[data-is-collapsed='true'] {
transform: rotate(0deg);
}
`,S=c.Z.div`
background-color: white;
.icon {
width: 20px;
height: 20px;
flex-shrink: 0;
color: ${p.r.colors.neutral800};
}
.title-collapse {
color: #111111;
font-weight: var(--fwSemiBold);
font-size: 1.0625rem;
line-height: 1.5rem;
flex-grow: 1;
}
.box-collapse {
display: flex;
padding: 1.5rem 1rem 1rem 1rem;
gap: 0.75rem;
align-items: center;
}
`;function CardCollapse({children:e,title:t,icon:a,defaultOpened:o=!0,haveCollapse:n=!0,id:r,className:l,as:c="h2"}){let[p,{toggle:d}]=(0,m.q)(o);return i.createElement(S,{id:r,className:l},i.createElement("div",{className:"box-collapse",onClick:()=>{n&&d()}},n&&a,i.createElement(s.T,{as:c,className:"title-collapse"},t),n&&i.createElement(x,{"data-is-collapsed":p})),i.createElement(u.U,{in:!n||p,transitionDuration:200,transitionTimingFunction:"ease"},e))}let L=c.Z.div`
position: relative;
box-sizing: border-box;
border: 1px solid ${p.r.colors.gray200};
background: url('../../../public/bgSvg/arrow-down.svg') no-repeat;
background-position: right 16px center;
border-radius: ${p.r.borderRadius};
&[data-has-icons='true'] {
border: none;
background: ${p.r.colors.gray100};
img,
svg {
display: inline-block;
max-width: 16px;
margin-right: 6px;
}
span {
vertical-align: middle;
display: inline-block;
}
&:hover {
box-shadow: none;
}
> div {
position: relative;
width: 100%;
display: flex;
align-items: center;
box-sizing: border-box;
}
> div::after {
content: '';
right: 12px;
top: 50%;
background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
width: 10px;
height: 8px;
position: absolute;
background-repeat: no-repeat;
transform: translateY(-50%);
}
}
&:hover {
box-shadow: 0 0 2px 2px ${p.r.colors.primary200};
}
`,k=c.Z.div`
padding: 12px 18px 12px 16px;
cursor: pointer;
&[data-dropdown-open] {
padding: 11px 15px 11px 15px;
border: 1px solid ${p.r.colors.primaryBase};
border-radius: ${p.r.borderRadius};
box-shadow: 0 0 2px 2px ${p.r.colors.primary200};
}
& > svg {
height: 16px;
width: 16px;
}
`,R=c.Z.ul`
position: absolute;
top: 100%;
right: 0;
left: 0;
display: block;
margin-top: 4px;
background: ${p.r.colors.white};
border-radius: ${p.r.borderRadius};
box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
-2px 2px 5px rgba(67, 86, 100, 0.123689);
cursor: pointer;
&[data-has-icons='true'] {
background: white;
box-shadow: none;
border: 1px solid ${p.r.colors.gray200};
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));
}
`,P=c.Z.li`
margin: 8px;
padding: 12px 18px 12px 16px;
border-radius: ${p.r.borderRadius};
display: flex;
&:hover,
:active {
background: ${p.r.colors.gray100};
}
`,M=c.Z.div`
display: flex;
align-items: center;
margin-right: 8px;
& > svg {
height: 16px;
width: 16px;
}
`,ShareIconPathStyle=()=>i.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),DefaultFileIcon=()=>i.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},i.createElement("defs",null,i.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},i.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),i.createElement("title",null,"File"),i.createElement("g",{clipPath:"url(#prefix__clip-path)"},i.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),i.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),DownloadIcon=()=>i.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},i.createElement("title",null,"download"),i.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),UploadIcon=()=>i.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},i.createElement("title",null,"upload"),i.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"})),FileDropdown=({className:e,value:t,options:a,onUploadSelected:o,id:n,placeholderIcon:r,placeholder:l,style:s})=>{let[c,p]=(0,i.useState)(!1),showDropdown=()=>p(!c),d=(0,i.useRef)(a.map(e=>"upload"===e.type&&i.createElement("input",{id:"uploader-dropdown-input-"+n+"-"+e.value,key:"uploader-dropdown-input-"+n+"-"+e.value,accept:e.fileAcceptedType,multiple:e.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),o(e.target.files)}}))),onUpload=e=>{var t;null===(t=document.querySelector(e))||void 0===t||t.click()},onDownload=e=>{e&&window.open(e,"_blank")};return i.createElement(L,{className:e,"data-dropdown-open":!!c,id:n,"data-has-icons":!0,style:s,onBlur:()=>p(!1),tabIndex:0},i.createElement(ShareIconPathStyle,null),i.createElement(k,{onClick:showDropdown},r||i.createElement(DefaultFileIcon,null)," ",i.createElement("span",null,t&&t.value?t.label:l)),c&&i.createElement(R,{onClick:showDropdown,"data-has-icons":!0},a.map(e=>i.createElement(P,{key:`${n}-${e.value}`,"data-selected":t&&t.value===e.value||void 0,onClick:()=>"upload"===e.type?onUpload("#uploader-dropdown-input-"+n+"-"+e.value):onDownload(e.url)},i.createElement(M,null,e.icon||"download"===e.type?i.createElement(DownloadIcon,null):i.createElement(UploadIcon,null)),e.label))),i.createElement(i.Fragment,null,d.current))},w=c.Z.div`
--columns: var(--grid-template-columns, repeat(var(--columns-count), 1fr));
--columns-desktop: var(
--grid-template-columns-desktop,
repeat(var(--columns-count-desktop), 1fr)
);
display: grid;
grid-template-columns: var(--columns);
grid-gap: var(--grid-gap);
align-items: var(--align-items);
${d.M.tdUp} {
grid-template-columns: var(--columns-desktop);
}
> * {
justify-self: var(--justify-children);
}
`,Grid=({className:e,columns:t,columnsDesktop:a,gridTemplateColumns:o,gridTemplateColumnsDesktop:n,gap:r,children:l,justifyChildren:s,style:c,alignItems:p})=>i.createElement(w,{className:e,style:Object.assign({"--columns-count":t,"--columns-count-desktop":a,"--grid-template-columns":o,"--grid-template-columns-desktop":n,"--justify-children":s,"--grid-gap":r,"--align-items":p},c)},l),Radio=({size:e="small",label:t,name:a,checked:o,value:n,className:r,isDisabled:l=!1,onChange:s,dataEventCategory:c,dataEventAction:p,dataEventLabel:d})=>{let u=!!p&&!!c&&!!d,g=u?{"data-event-category":c,"data-event-action":p,"data-event-label":d}:{};return i.createElement(I.R,Object.assign({size:"small"===e?"md":"lg",label:t,name:a,checked:o,value:n,className:r,disabled:l,onChange:e=>null==s?void 0:s(e.target.value)},g))},H=c.Z.div`
display: inline-flex;
gap: calc(var(--gap) * 1px);
> svg {
width: calc(var(--star-size) * 1px);
height: calc(var(--star-size) * 1px);
}
&[data-selectable='true'] {
> svg {
cursor: pointer;
}
}
`,StarHalfIcon=e=>i.createElement("svg",Object.assign({},e,{viewBox:"0 0 24 24",fill:"none"}),i.createElement("path",{d:"m139.287 144.772 5.17 3.12c.38.23.85-.11.75-.54l-1.37-5.88 4.56-3.95c.33-.29.16-.84-.29-.88l-6.01-.51-2.35-5.54a.498.498 0 0 0-.92 0l-2.35 5.54-6.01.51a.499.499 0 0 0-.28.88l4.56 3.95-1.37 5.88c-.1.43.37.77.75.54z",fill:"#E4E8EC"}),i.createElement("path",{d:"M139.289 144.771s.013-14.488 0-14.488a.49.49 0 0 0-.46.308l-2.35 5.54-6.01.51a.499.499 0 0 0-.28.88l4.56 3.95-1.37 5.88c-.1.43.37.77.75.54z",fill:"#FFC326"})),StarIcon=e=>{var{isFull:t}=e,a=(0,O._)(e,["isFull"]);return i.createElement("svg",Object.assign({},a,{viewBox:"0 0 32 32",fill:"none"}),i.createElement("path",{d:"m16 23.027 6.893 4.16c.507.306 1.134-.147 1-.72l-1.826-7.84 6.08-5.267a.67.67 0 0 0-.387-1.173l-8.013-.68-3.134-7.387a.664.664 0 0 0-1.226 0l-3.133 7.387-8.014.68a.668.668 0 0 0-.373 1.173l6.08 5.267-1.827 7.84c-.133.573.493 1.026 1 .72z",fill:t?"#FFC326":"#D2D6DC"}))},RateStars=({gap:e=2,size:t=24,star:a,totalStars:o=5,onSelect:n,hideEmptyStars:r,style:l,className:s})=>{let c=Math.floor(a),p=a-c>=.5?1:0,[d,u]=(0,i.useState)(null),g=d||c,h=d?0:p;return i.createElement(H,{"data-selectable":!!n,style:Object.assign({"--gap":e,"--star-size":t},l),className:s},Array.from({length:r?c+p:o}).map((e,t)=>{let onMouseOver=()=>!!n&&u(t+1),onMouseLeave=()=>!!n&&u(null);return t+1<=g?i.createElement(StarIcon,{key:t,onClick:()=>null==n?void 0:n(t+1),onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,isFull:!0}):t+1===g+h?i.createElement(StarHalfIcon,{key:t,onClick:()=>null==n?void 0:n(t+1),onMouseOver:onMouseOver,onMouseLeave:onMouseLeave}):i.createElement(StarIcon,{key:t,onClick:()=>null==n?void 0:n(t+1),onMouseOver:onMouseOver,onMouseLeave:onMouseLeave})}))},getTag=(e,t)=>{switch(e){case"yellow":{let e=t?p.r.colors.yellow50:p.r.colors.yellow600;return`
background: ${e};
p {
color: var(
--text-props-color,
${p.r.colors.gray800}
);
}
`}case"standard":return`
background: ${p.r.colors.white};
border: 1px solid ${p.r.colors.gray200};
p {
color: var(
--text-props-color,
${p.r.colors.gray800}
);
}
&:hover {
background: ${p.r.colors.gray100};
}
`;case"red":{let e=t?p.r.colors.red50:p.r.colors.red500;return`
background: ${e};
`}case"green":{let e=t?p.r.colors.green50:p.r.colors.green500;return`
background: ${e};
`}case"blue":{let e=t?p.r.colors.primary50:p.r.colors.primaryBase;return`
background: ${e};
`}case"teal":{let e=t?p.r.colors.teal100:p.r.colors.teal600;return`
background: ${e};
`}case"pink":{let e=t?p.r.colors.pink200:p.r.colors.pink800;return`
background: ${e};
`}case"violet":{let e=t?p.r.colors.violet100:p.r.colors.violet500;return`
background: ${e};
`}case"grey":{let e=t?p.r.colors.gray100:p.r.colors.gray600;return`
background: ${e};
`}}},G=c.Z.div`
--padding-horizontal: 8px;
--pading-vertical: 2px;
display: flex;
align-items: center;
justify-content: center;
padding: var(--pading-vertical) var(--padding-horizontal);
border-radius: 24px;
${e=>"sponsored"===e.tagType&&`
--offset-size: 4px;
display: flex;
align-items: center;
justify-content: center;
box-sizing: content-box;
position: relative;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
border-radius: 0 4px 18px 0;
height: 24px;
width: 90px;
border-left: var(--offset-size) solid ${p.r.colors.accentLight};
padding: 0;
margin-left: calc(var(--offset-size) * -1);
p {
font-weight: ${p.r.sizes.fwBold};
color: var(
--text-props-color,
${p.r.colors.secondaryDark}
);
font-size: 11px;
margin-left: calc(var(--offset-size) * -1);
}
&::after {
width: calc(var(--offset-size) * 2);
height: var(--offset-size);
background: ${p.r.colors.accentMain};
position: absolute;
left: calc(var(--offset-size) * -1);
bottom: calc(var(--offset-size) * -1);
clip-path: polygon(0 1%, 100% 0%, 100% 100%);
content: '';
}
`}
${e=>e.isInline&&`
display: inline-block;
`}
${e=>e.tagHasMorePadding&&`
&[data-has-more-padding] {
padding: calc(var(--pading-vertical) + 5px) var(--padding-horizontal);
}
`}
p {
${e=>e.tagIsLight?`
color: var(--text-props-color, #000);
`:`
color: var(--text-props-color, ${p.r.colors.white});
`}
}
${e=>getTag(e.tagType,e.tagIsLight)}
${e=>e.tagIsSquared&&"sponsored"!==e.tagType&&`
border-radius: 4px;
`}
${e=>e.tagIsALink&&`
cursor: pointer;
`}
&[data-is-selected],
&:active {
background: ${p.r.colors.primary50};
}
`,Tag=({type:e,children:t,style:a,isInline:o,isSquared:n=!1,className:r,isLight:l,hasMorePadding:s,isLink:c,isSelected:p,textProps:d={size:"sm"}})=>{let u=d.color?{"--text-props-color":d.color}:{};return i.createElement(G,{"data-is-squared":n||void 0,"data-tag-type":e,"data-is-light":l||void 0,"data-has-more-padding":s||void 0,"data-is-inline":o||void 0,style:Object.assign(Object.assign({},a),u),className:r,"data-is-selected":p||void 0,"data-is-link":c||void 0,tagType:e,isInline:o,tagHasMorePadding:s,tagIsLight:l,tagIsSquared:n,tagIsALink:c},i.createElement(b.T,Object.assign({},d),t))},D="24px",Y=(0,T.Z)(c.Z.span`
position: relative;
display: block;
width: 40px;
height: ${D};
background: #c3cbd4;
border-radius: 100px;
cursor: pointer;
&:after {
position: absolute;
top: 2px;
left: 2px;
width: 20px;
height: 20px;
background: #fff;
border-radius: 90px;
content: '';
transition: 0.3s;
}
`,"hhgcomp-toggle-icon"),B=c.Z.span`
padding-left: 15px;
`,U=c.Z.div`
height: ${D};
input[type='checkbox'] {
width: 0;
height: 0;
visibility: hidden;
}
label {
cursor: pointer;
display: inline-flex;
color: ${p.r.colors.gray600};
}
input:checked + label ${Y.classSelector} {
background: ${p.r.colors.primaryBase};
&:after {
left: calc(100% - 2px);
transform: translateX(-100%);
}
}
`,Toggle=({className:e,id:t,onChange:a,checked:o,style:n,label:r})=>i.createElement(U,{className:e,style:n},i.createElement("input",{type:"checkbox",id:t,onChange:a,checked:o}),i.createElement("label",{htmlFor:t},i.createElement(Y,null),r&&i.createElement(B,null,r))),V=(0,i.createContext)({currentStep:0,setCurrentStep:()=>!1,setMaxStep:()=>!1,nextStep:()=>!1,prevStep:()=>!1}),StepRenderer=({children:e,onStepChange:t})=>{let[a,o]=(0,i.useState)(0),[n,r]=(0,i.useState)(0),l=i.Children.count(e);return(0,i.useEffect)(()=>{r(l-1)},[l]),(0,i.useEffect)(()=>{null==t||t(a)},[a]),i.createElement(V.Provider,{value:{currentStep:a,setCurrentStep:o,setMaxStep:r,nextStep:()=>a+1<=n&&o(a+1),prevStep:()=>a-1>=0&&o(a-1)}},(0,_.Z)(e).map((e,t)=>{let o=t===a;return i.createElement(i.Fragment,{key:t},i.isValidElement(e)?e.props.alwaysRender||o?i.cloneElement(e,{isActive:t===a,stepIndex:t}):null:o?e:null)}))},F=c.Z.div`
display: flex;
align-items: center;
gap: 8px;
`,$=(0,c.Z)(y.H)`
font-weight: var(--fwBold);
`,IconHeading=({icon:e,title:t,className:a,style:o})=>i.createElement(F,{className:a,style:o},e,i.createElement($,{tag:"h6",color:"var(--secondaryDark)"},t)),sanitizeHtml=e=>{if(!e)return"";let t=e.replace(/\n$/,"").replace(/\n/g,"
");return t},HtmlContent=({htmlContent:e,className:t})=>{let a=sanitizeHtml(e);return i.createElement("div",{className:t,dangerouslySetInnerHTML:{__html:a}})};(o=r||(r={})).ONE_TO_ONE="1:1",o.THREE_TO_ONE="3:1",(n=l||(l={})).PNG=".png",n.JPG=".jpg",n.JPEG=".jpeg";let getBase64=e=>new Promise((t,a)=>{let o=new FileReader;o.onload=()=>t(o.result),o.onerror=a,o.readAsDataURL(e)}),handleMultipleImageFiles=e=>(0,O.a)(void 0,void 0,void 0,function*(){if(0===e.length)return[];let t=yield Promise.all(e.map(e=>getBase64(e)));return t}),j=c.Z.div`
display: flex;
flex-direction: column;
.image-upload-input-error {
margin-top: ${(0,g.h)(12)};
display: flex;
flex-direction: column;
gap: ${(0,g.h)(4)};
}
`,z=c.Z.div`
display: flex;
flex-direction: column;
gap: ${(0,g.h)(4)};
margin-top: ${(0,g.h)(4)};
span {
color: ${p.r.colors.neutral500};
}
`,W=c.Z.div`
position: relative;
width: fit-content;
padding: ${(0,g.h)(8)} ${(0,g.h)(12)};
border-radius: ${(0,g.h)(12)};
border: ${(0,g.h)(1)} solid ${p.r.colors.neutral200};
cursor: pointer;
display: flex;
align-items: center;
gap: ${(0,g.h)(8)};
margin-top: ${(0,g.h)(18)};
&.image-upload-dragover {
border-color: ${p.r.colors.primaryBase};
}
&.image-upload-error {
border-color: ${p.r.colors.error};
}
&.image-upload-disabled {
cursor: not-allowed;
background-color: ${p.r.colors.gray100};
color: ${p.r.colors.gray400};
border-color: ${p.r.colors.gray200};
}
svg {
width: ${(0,g.h)(18)};
height: ${(0,g.h)(18)};
}
input {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
z-index: -1;
}
`,Z=c.Z.div`
position: relative;
width: ${(0,g.h)(90)};
height: ${(0,g.h)(90)};
border-radius: ${(0,g.h)(12)};
overflow: hidden;
background-color: ${p.r.colors.gray100};
display: flex;
align-items: center;
justify-content: center;
img {
width: 100%;
height: 100%;
object-fit: contain;
}
svg {
width: ${(0,g.h)(14)};
height: ${(0,g.h)(14)};
color: ${p.r.colors.white};
}
.image-upload-remove-button {
cursor: pointer;
position: absolute;
top: ${(0,g.h)(6)};
right: ${(0,g.h)(6)};
background: ${p.r.colors.black};
border-radius: ${(0,g.h)(12)};
padding: ${(0,g.h)(2)};
display: flex;
&:hover {
opacity: 0.8;
}
}
`,K=c.Z.div`
display: flex;
gap: ${(0,g.h)(8)};
margin-top: ${(0,g.h)(18)};
`,q=(0,i.forwardRef)(({label:e,name:t,error:a,acceptedTypes:o=[l.PNG,l.JPG,l.JPEG],maxSize:n=1,acceptedRatios:r,multiple:c=!1,disabled:d=!1,id:u,className:m,onChange:E,value:I,showValidationRules:b=!1,description:T,useBase64:_=!1,placeholder:y},N)=>{let{t:v}=(0,f.u)(),[A,x]=(0,i.useState)(!1),[S,L]=(0,i.useState)([]),k=(0,i.useRef)(null),R=!!a||S.length>0,P=(0,i.useMemo)(()=>I?Array.isArray(I)?I:[I]:[],[I]),M=(0,i.useCallback)(e=>{var t;let a=[],r="."+(null===(t=e.name.split(".").pop())||void 0===t?void 0:t.toLowerCase());o.includes(r)||a.push(`Unsupported file format. Please upload a ${o.join(", ")} file.`);let l=e.size/1048576;return l>n&&a.push(`File too large. Please upload an image smaller than ${n}MB.`),{file:e,isValid:0===a.length,errors:a}},[o,n]),w=(0,i.useCallback)(e=>new Promise(t=>{if(!r||!r.length||!e.type.startsWith("image/")){t([]);return}let a=new Image;a.onload=()=>{let e=a.width/a.height,o=`${e.toFixed(1)}:1`,n=r.some(t=>{let[a,o]=t.split(":"),n=parseInt(a)/parseInt(o);return .1>Math.abs(e-n)});t(n?[]:[`Image ratio ${o} is not accepted.`])},a.onerror=()=>t(["Invalid image file"]),a.src=URL.createObjectURL(e)}),[r]),H=(0,i.useMemo)(()=>P.map(e=>"string"==typeof e?e:e instanceof File?URL.createObjectURL(e):"").filter(Boolean),[P]),G=(0,i.useCallback)(e=>(0,O.a)(void 0,void 0,void 0,function*(){let a=Array.from(e),o=[],n=[];for(let e of a){let t=M(e),a=yield w(e),r=[...t.errors,...a];0===r.length?n.push(e):o.push(...r)}if(L(o),0===n.length)return;let r=_?yield handleMultipleImageFiles(n):n;E({target:{name:t,value:c?[...P,...r]:r.slice(0,1)}})}),[M,w,c,E,t,P]),removeFile=e=>{let a=P.filter((t,a)=>a!==e);L([]),E({target:{name:t,value:c?a:""}})},D=(0,i.useCallback)(e=>{k.current=e,"function"==typeof N?N(e):N&&(N.current=e)},[N]),Y=(0,i.useCallback)(()=>{!d&&k.current&&k.current.click()},[d]),B=(0,i.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),x(!0)},[]),U=(0,i.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),x(!1)},[]),V=(0,i.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),F=(0,i.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),x(!1);let t=e.dataTransfer.files;t.length>0&&G(t)},[G]);return i.createElement(j,{className:m},i.createElement("label",{htmlFor:u||t},"string"==typeof e?i.createElement(s.T,{size:"title2"},e):e,T&&i.createElement(s.T,{size:"p3",mt:(0,g.h)(4),color:p.r.colors.gray700},T)),b&&i.createElement(z,null,i.createElement(s.T,{size:"p3"},"Formats: ",o.join("/")),r&&i.createElement(s.T,{size:"p3"},"Max size: ",n,"MB - Accepted ratios:"," ",r.join("/"))),(c||0===P.length)&&i.createElement(W,{className:(0,h.default)(A&&"image-upload-dragover",R&&"image-upload-error",d&&"image-upload-disabled"),onDragEnter:B,onDragLeave:U,onDragOver:V,onDrop:F,onClick:Y},i.createElement("input",{ref:D,type:"file",id:u||t,name:t,accept:o.join(","),multiple:c,onChange:e=>{let t=e.target.files;t&&t.length>0&&G(t)},disabled:d}),i.createElement(Upload,null),i.createElement(s.T,{size:"p3",fw:500},y||v("common.btn.uploadPhoto"))),P.length>0&&i.createElement(K,null,H.map((e,t)=>i.createElement(Z,{key:t},i.createElement("img",{src:e,alt:`Uploaded file ${t+1}`,className:"image-upload-preview-image"}),i.createElement("button",{onClick:e=>{e.stopPropagation(),removeFile(t)},className:"image-upload-remove-button"},i.createElement(C.C,null))))),R&&i.createElement("div",{className:"image-upload-input-error"},[...S,a].map(e=>i.createElement(s.T,{key:e,className:"error-text",size:"c1",color:p.r.colors.red600},e))))}),Q=(0,c.Z)(N.l)`
& .mantine-Carousel-control {
width: auto;
}
`,DragFreeCarousel=e=>{var{children:t,gapItem:a=8,slideSize:o="auto",withControls:n=!1,withIndicators:r=!1,dragFree:l=!0,align:s="start"}=e,c=(0,O._)(e,["children","gapItem","slideSize","withControls","withIndicators","dragFree","align"]);return i.createElement(Q,Object.assign({slideSize:o,slideGap:a,withControls:n,withIndicators:r,dragFree:l,align:s,containScroll:"trimSnaps"},c),i.Children.map(t,(e,t)=>i.createElement(N.l.Slide,{key:t},e)))}},VrSb:function(e,t,a){a.d(t,{R:function(){return RadioImageGroup}});var o=a("q1tI"),n=a("iBNF"),r=a("rBCA"),l=a("PbJh"),i=a("vk9b");let s=r.Z.div`
display: flex;
width: 100%;
&[data-direction='vertical'] {
flex-direction: column;
}
&[data-direction='horizontal'] {
flex-wrap: wrap;
}
`,c=r.Z.div`
display: flex;
padding: 8px;
border-radius: ${n.r.borderRadius};
cursor: pointer;
& > div {
display: flex;
width: 100%;
height: 100%;
flex-direction: column;
align-items: center;
justify-content: flex-start;
}
&[data-is-mb='false'] {
&[data-selected='true'] {
border: 1px solid #2d87f3;
background: white;
}
&[data-selected='false'] {
border: 1px solid #f2f2f2;
box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
}
}
&[data-is-mb='true'] {
border-radius: 16px;
background: white;
padding: 16px auto;
&[data-selected='true'] {
border: 1px solid ${n.r.mbColors.mint};
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);
}
&[data-selected='false'] {
border: none;
}
}
&[data-disabled='true'] {
cursor: auto;
}
.radio-group-item-heading {
margin-top: 8px;
//height: 48px;
text-align: center;
}
.gender-image {
width: 70px;
height: 70px;
&[data-is-mobile='true'] {
width: 40px;
height: 40px;
}
}
`,RadioImageGroup=({value:e,options:t,className:a,direction:r="horizontal",onChange:p,isDisabled:d,siteType:u})=>{let[g,h]=(0,o.useState)(e),handleOnChange=e=>{!d&&(h(e),p&&p(e))},m="marryBaby"===u;return o.createElement(s,{className:a,"data-direction":r},t.map((t,a)=>o.createElement(c,{"data-selected":(e||g)===t.value,"data-is-mb":m,"data-disabled":d,key:a,onClick:()=>{handleOnChange(t.value)}},o.createElement("div",null,t.content,t.label&&o.createElement(o.Fragment,null,m?o.createElement(l.M,{type:"subtitle-2",color:(e||g)===t.value?n.r.mbColors.dark:n.r.mbColors.midGray},t.label):o.createElement(i.T,{type:"bold",color:(e||g)===t.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},t.label))))))}},"5bY3":function(e,t,a){a.d(t,{B:function(){return g}});var o=a("usZY"),n=a("q1tI"),r=a("/npG"),l=a("HC7W"),i=a("8vDj"),s=a("mAfZ"),c=a("RvUM"),p=a("COU7"),d=(0,r.k)((e,t)=>{var a,o,n,r,i,s;let{other:d}=e,{template:u}=d,{size:g,variant:h,skipHover:m,withColorHover:E,isError:I,isSuccess:O,color:b,gradient:T,children:_,theme:y,customStylesType:C}=t,f="mb"===u||"marryBaby"===y,N=b||(y&&f?"mb":e.primaryColor),v=N.startsWith("#"),A=v?e.fn.lighten(b,.9):(null===(o=null===(a=e.colors)||void 0===a?void 0:a[N])||void 0===o?void 0:o[0])||"",x=v?N:null===(r=null===(n=e.colors)||void 0===n?void 0:n[N])||void 0===r?void 0:r[e.fn.primaryShade()],S=v?e.fn.darken(b,.05):null===(s=null===(i=e.colors)||void 0===i?void 0:i[N])||void 0===s?void 0:s[e.fn.primaryShade()+1],L=C===p.C.LEADGEN;return{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({transition:`all ${c.A} ease-in-out`},T&&Object.assign({border:0,position:"relative"},"secondary"===h&&{"&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"#fff",borderRadius:"inherit"}})),{"&:focus":{outline:"none"}}),L&&{borderRadius:12}),!_&&{paddingLeft:"10px",paddingRight:"10px",".mantine-Button-icon":{margin:0}}),(()=>{switch(g){case"xl":return Object.assign({height:56,fontWeight:L?p.F.halfBold:p.F.semiBold,fontSize:L?"15px":f?"14px":"16px",lineHeight:"24px"},L&&{letterSpacing:"-0.3px"});case"lg":return Object.assign({height:48,fontWeight:L?p.F.halfBold:p.F.semiBold,fontSize:L?"15px":f?"14px":"16px",lineHeight:"24px"},L&&{letterSpacing:"-0.3px"});case"md":return Object.assign({height:40,fontWeight:L?p.F.halfBold:p.F.semiBold,fontSize:L?"13px":"14px",lineHeight:L?"20px":"22px"},L&&{letterSpacing:"-0.3px"});case"sm":return Object.assign(Object.assign({height:32,fontWeight:L?p.F.halfBold:p.F.semiBold,fontSize:L?"11px":f?"12px":"14px",lineHeight:L?"16px":"22px"},L&&{letterSpacing:"-0.2px"}),{paddingLeft:"16px",paddingRight:"16px"});case"xs":return Object.assign({height:24,fontWeight:L?p.F.halfBold:p.F.semiBold,fontSize:L?"11px":"12px",lineHeight:L?"16px":"18px",paddingLeft:"8px",paddingRight:"8px"},L&&{letterSpacing:"-0.2px"})}})()),(()=>{switch(h){case"primary":return Object.assign(Object.assign({color:e.white},T?{backgroundImage:T,backgroundColor:"initial"}:{backgroundColor:x}),!m&&{"&:hover":{backgroundColor:T?"initial":S}});case"secondary":return Object.assign(Object.assign(Object.assign({color:x,backgroundColor:"transparent",border:`1px solid ${x}`},T&&{backgroundImage:T,borderColor:"transparent"}),!m&&!T&&{"&:hover":{backgroundColor:A,border:`1px solid ${x}`}}),E&&!T&&{"&:hover":{backgroundColor:x,border:`1px solid ${x}`,color:"#fff"}});case"white":return{color:x,backgroundColor:"transparent",border:"1px solid transparent","&:hover":{backgroundColor:"transparent",borderColor:"transparent"}};case"tertiary":return{color:e.colors.gray[8],backgroundColor:e.white,border:`1px solid ${e.colors.neutral[2]}`,"&:hover":Object.assign({},m?{backgroundColor:e.white,border:`1px solid ${e.colors.neutral[2]}`}:{backgroundColor:e.colors.neutral[0],border:`1px solid ${e.colors.neutral[0]}`})};case"light":return{color:x,backgroundColor:A,border:"1px solid transparent","&:hover":Object.assign({},m?{backgroundColor:A,border:"1px solid transparent"}:{backgroundColor:e.white,border:`1px solid ${A}`})};case"ghost":return Object.assign({color:x,backgroundColor:"transparent",border:"1px solid transparent"},!m&&{"&:hover":{backgroundColor:A,border:"1px solid transparent"}})}})()),{"&[data-disabled]":{backgroundColor:e.colors.gray[1],color:e.colors.gray[4]}}),I?Object.assign({color:e.colors.red[6],backgroundColor:e.white,border:`1px solid ${e.colors.red[6]}`},!m&&{"&:hover":{backgroundColor:e.colors.red[0],border:`1px solid ${e.colors.red[6]}`}}):{}),O?Object.assign({color:e.colors.green[8],backgroundColor:e.colors.green[0]},!m&&{"&:hover":{backgroundColor:e.colors.green[0]}}):{}),inner:Object.assign({ref:(0,l.A)("inner")},T&&{position:"relative"}),leftIcon:{marginRight:8},rightIcon:{},label:Object.assign({},T&&"secondary"===h&&{background:T,"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})}});let u={primary:"filled",secondary:"outline",tertiary:"default",light:"light",ghost:"subtle",error:"outline",white:"white",success:"subtle"},g=(0,n.forwardRef)((e,t)=>{var a,r;let l=(0,i.rZ)(),c=Object.assign(Object.assign({},null===(r=null===(a=l.components)||void 0===a?void 0:a.Button)||void 0===r?void 0:r.defaultProps),function(e){let t={};return Object.keys(e).filter(t=>void 0!==e[t]).forEach(a=>t[a]=e[a]),t}(e)),{variant:g,size:h,color:m,gradient:E,skipHover:I,withColorHover:O,className:b,dataEventCategory:T,dataEventAction:_,dataEventLabel:y,children:C,theme:f,component:N,styles:v,classNames:A}=c,x=(0,o._)(c,["variant","size","color","gradient","skipHover","withColorHover","className","dataEventCategory","dataEventAction","dataEventLabel","children","theme","component","styles","classNames"]),S="error"===g,L=(0,p.u)(),{classes:k,cx:R}=d({variant:g,size:h,color:m,gradient:E,skipHover:I,withColorHover:O,isError:S,isSuccess:"success"===g,children:C,theme:f,customStylesType:L},{name:"ButtonMantine",styles:v,classNames:A});return n.createElement(s.z,Object.assign({component:N,className:R(b,g),classNames:{root:k.root,inner:k.inner,leftIcon:k.leftIcon,rightIcon:k.rightIcon,label:k.label},variant:u[g],"data-variant":g,"data-event-category":T,"data-event-action":_,"data-event-label":y,ref:t,loaderProps:x.disabled?{color:"currentColor"}:void 0},x),C)})},wIOq:function(e,t,a){a.d(t,{M:function(){return MantineProvider}});var o=a("usZY"),n=a("q1tI"),r=a("8vDj"),l=a("g2vb"),i=a("COU7");let MantineProvider=e=>{var{children:t,locale:a,template:s="hb",isNotifications:c=!0,customStyleType:p=i.C.NONE}=e,d=(0,o._)(e,["children","locale","template","isNotifications","customStyleType"]);return(0,l.u)(a),n.createElement(r.Me,Object.assign({theme:(0,l.g)(a,s,p)},d),n.createElement(i.T,{variant:p},t,c&&n.createElement(l.N,null)))}},"Mf+z":function(e,t,a){a.d(t,{P:function(){return PWGForm}});var o=a("usZY"),n=a("q1tI"),r=a("8vDj"),l=a("iuhU"),i=a("cChf"),s=a("ZFu2"),c=a("gcJ3"),p=a("FQi+"),d=a("ORpR"),u=a("MQ5V"),g=a("srUE"),h=a("68DG"),m=a("WdVV"),E=a("Tm5g"),I=a("xrdX");let O=(0,n.createContext)({}),DefaultForm=e=>{var t=(0,o._)(e,[]);let{t:a,locale:i}=(0,p.u)(),{linkTool:s,form:c,submitProps:d}=(0,n.useContext)(O),{classes:b={}}=(0,n.useContext)(h.C),T=(0,r.rZ)(),_="mb"===T.other.template;return n.createElement(m.H,Object.assign({formLayout:"default"},t),n.createElement(m.H.FormRow,null,n.createElement(u.I.Number,Object.assign({label:n.createElement(g.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.weekInput")),min:E.I.pregnantWeek.min,max:E.I.pregnantWeek.max,placeholder:`${E.I.pregnantWeek.min} - ${E.I.pregnantWeek.max}`},c.getInputProps("pregnantWeek")))),n.createElement(m.H.FormRow,null,n.createElement(u.I.Number,Object.assign({label:n.createElement(g.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.weightBeforeInput")),min:E.I.weight.min,max:E.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"})},c.getInputProps("lastWeight")))),n.createElement(m.H.FormRow,null,n.createElement(u.I.Number,Object.assign({label:n.createElement(g.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.heightInput")),min:E.I.height.min,max:E.I.height.max,placeholder:a("tools.inputPlaceholder",{content:"160"})},c.getInputProps("height")))),n.createElement(m.H.FormRow,null,n.createElement(u.I.Number,Object.assign({label:n.createElement(g.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.weightInput")),min:E.I.weight.min,max:E.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"})},c.getInputProps("weight")))),n.createElement(m.H.FormRow,null,n.createElement(m.H.Switching,Object.assign({label:n.createElement(g.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.havingTwins"))},c.getInputProps("hasTwin")))),n.createElement(m.H.FormRow,{className:b.submitWrapper},n.createElement(m.H.Submit,Object.assign({type:"submit",dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${I.v[_?"vi-VN_MB":i]}/${s}`,className:(0,l.default)("due-date-calculate-button",b.submitBtn)},d),a("dueDatePage.lastPeriod.calculate"))))},InlineForm=e=>{var t=(0,o._)(e,[]);let{t:a,locale:i}=(0,p.u)(),{classes:s={}}=(0,n.useContext)(h.C),{linkTool:c,form:d,submitProps:g}=(0,n.useContext)(O),b=(0,r.rZ)(),T="mb"===b.other.template;return n.createElement(m.H,Object.assign({formLayout:"inline"},t),n.createElement(m.H.FormRow,null,n.createElement(m.H.BorderInlineControl,{label:a("pregnancyWeightGain.weekInput")},n.createElement(u.I.Number,Object.assign({min:E.I.pregnantWeek.min,max:E.I.pregnantWeek.max,placeholder:`${E.I.pregnantWeek.min} - ${E.I.pregnantWeek.max}`,rightSection:n.createElement(m.H.Unit,null,a("pwgForm.week"))},d.getInputProps("pregnantWeek"))))),n.createElement(m.H.FormRow,null,n.createElement(m.H.BorderInlineControl,{label:a("pregnancyWeightGain.weightBeforeInput")},n.createElement(u.I.Number,Object.assign({},d.getInputProps("lastWeight"),{min:E.I.weight.min,max:E.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"}),rightSection:n.createElement(m.H.Unit,null,a("babyGrowth.kg"))})))),n.createElement(m.H.FormRow,null,n.createElement(m.H.BorderInlineControl,{label:a("pregnancyWeightGain.heightInput")},n.createElement(u.I.Number,Object.assign({},d.getInputProps("height"),{min:E.I.height.min,max:E.I.height.max,placeholder:a("tools.inputPlaceholder",{content:"160"}),rightSection:n.createElement(m.H.Unit,null,a("babyGrowth.cm"))})))),n.createElement(m.H.FormRow,null,n.createElement(m.H.BorderInlineControl,{label:a("pregnancyWeightGain.weightInput")},n.createElement(u.I.Number,Object.assign({},d.getInputProps("weight"),{min:E.I.weight.min,max:E.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"}),rightSection:n.createElement(m.H.Unit,null,a("babyGrowth.kg"))})))),n.createElement(m.H.FormRow,null,n.createElement(m.H.BorderInlineControl,{label:a("pregnancyWeightGain.havingTwins"),width:"none"},n.createElement(m.H.Switching,Object.assign({},d.getInputProps("hasTwin"))))),n.createElement(m.H.FormRow,{className:s.submitWrapper},n.createElement(m.H.Submit,Object.assign({type:"submit",dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${I.v[T?"vi-VN_MB":i]}/${c}`,className:(0,l.default)("due-date-calculate-button",s.submitBtn)},g),a("dueDatePage.lastPeriod.calculate"))))},MbLayout=e=>{var t=(0,o._)(e,[]);let{t:a,locale:l}=(0,p.u)(),{linkTool:i,form:s,submitProps:c}=(0,n.useContext)(O),d=(0,r.rZ)(),g="mb"===d.other.template;return n.createElement(m.H,Object.assign({formLayout:"inline"},t),n.createElement(m.H.FormRow,null,n.createElement(m.H.BorderBoxControl,{label:a("pregnancyWeightGain.weekInput"),rightSection:a("pregnancy.week")},n.createElement(u.I.Number,Object.assign({min:E.I.pregnantWeek.min,max:E.I.pregnantWeek.max,placeholder:`${E.I.pregnantWeek.min} - ${E.I.pregnantWeek.max}`},s.getInputProps("pregnantWeek")))),s.errors.pregnantWeek&&n.createElement(m.H.Error,null,s.errors.pregnantWeek)),n.createElement(m.H.FormRow,null,n.createElement(m.H.BorderBoxControl,{label:a("pregnancyWeightGain.weightBeforeInput"),rightSection:"kg"},n.createElement(u.I.Number,Object.assign({min:E.I.weight.min,max:E.I.weight.max},s.getInputProps("lastWeight"),{placeholder:a("tools.inputPlaceholder",{content:"50"})}))),s.errors.lastWeight&&n.createElement(m.H.Error,null,s.errors.lastWeight)),n.createElement(m.H.FormRow,null,n.createElement(m.H.BorderBoxControl,{label:a("pregnancyWeightGain.heightInput"),rightSection:"cm"},n.createElement(u.I.Number,Object.assign({min:E.I.height.min,max:E.I.height.max},s.getInputProps("height"),{placeholder:a("tools.inputPlaceholder",{content:"160"})}))),s.errors.height&&n.createElement(m.H.Error,null,s.errors.height)),n.createElement(m.H.FormRow,null,n.createElement(m.H.BorderBoxControl,{label:a("pregnancyWeightGain.weightInput"),rightSection:"kg"},n.createElement(u.I.Number,Object.assign({min:E.I.weight.min,max:E.I.weight.max},s.getInputProps("weight"),{placeholder:a("tools.inputPlaceholder",{content:"50"})}))),s.errors.weight&&n.createElement(m.H.Error,null,s.errors.weight)),n.createElement(m.H.Switching,Object.assign({label:a("pregnancyWeightGain.havingTwins")},s.getInputProps("hasTwin"))),n.createElement(m.H.Submit,Object.assign({type:"submit",dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${I.v[g?"vi-VN_MB":l]}/${i}`,className:"due-date-calculate-button"},c),a("dueDatePage.lastPeriod.calculate")))},PWGForm=e=>{var{formLayout:t="default",submitProps:a,onSubmit:l}=e,u=(0,o._)(e,["formLayout","submitProps","onSubmit"]);let{t:g,locale:h}=(0,p.u)(),m=(0,r.rZ)(),E="mb"===m.other.template,I=(0,i.c)({validate:{pregnantWeek:(0,s.U)(g("validation.error.requiredField")),height:(0,s.U)(g("validation.error.requiredField")),weight:(e,t)=>e?Number(e)>=Number(t.lastWeight)?null:g("pregnancyWeightGain.weightInput.error"):g("validation.error.requiredField"),lastWeight:(e,t)=>e?Number(e)b(d.H.PWG),[b]),_=Object.assign({onSubmit:I.onSubmit(l)},u);return n.createElement(O.Provider,{value:{linkTool:T,form:I,submitProps:a}},"inline"===t?n.createElement(InlineForm,Object.assign({},_)):E?n.createElement(MbLayout,Object.assign({formLayout:t},_)):n.createElement(DefaultForm,Object.assign({},_)))}}}]);